From b22ac8ef45515d2ab9f162f03084545644d73fd5 Mon Sep 17 00:00:00 2001 From: rochdev Date: Thu, 20 Nov 2025 19:04:40 -0500 Subject: [PATCH 01/95] vendor bundled non-datadog dependencies --- .gitignore | 2 + package.json | 3 +- packages/node_modules/@isaacs/ttlcache.js | 1 + .../node_modules/@opentelemetry/api-logs.js | 1 + packages/node_modules/@opentelemetry/api.js | 1 + packages/node_modules/@opentelemetry/core.js | 1 + .../node_modules/@opentelemetry/resources.js | 1 + packages/node_modules/crypto-randomuuid.js | 1 + packages/node_modules/dc-polyfill.js | 1 + packages/node_modules/escape-string-regexp.js | 1 + packages/node_modules/ignore.js | 1 + packages/node_modules/import-in-the-middle.js | 1 + .../node_modules/istanbul-lib-coverage.js | 1 + packages/node_modules/jest-docblock.js | 1 + packages/node_modules/jsonpath-plus.js | 1 + packages/node_modules/limiter.js | 1 + packages/node_modules/lodash.sortby.js | 1 + packages/node_modules/lru-cache.js | 1 + .../node_modules/module-details-from-path.js | 1 + packages/node_modules/mutexify.js | 1 + packages/node_modules/opentracing.js | 1 + packages/node_modules/path-to-regexp.js | 1 + packages/node_modules/pprof-format.js | 2 + .../node_modules/pprof-format.js.LICENSE.txt | 3 + packages/node_modules/protobufjs.js | 1 + packages/node_modules/retry.js | 1 + packages/node_modules/rfdc.js | 1 + packages/node_modules/semifies.js | 1 + packages/node_modules/shell-quote.js | 1 + packages/node_modules/source-map.js | 1 + packages/node_modules/tlhunter-sorted-set.js | 1 + packages/node_modules/ttl-set.js | 1 + vendor/bun.lock | 381 ++++++++++++++++++ vendor/package.json | 44 ++ vendor/webpack.config.js | 25 ++ 35 files changed, 487 insertions(+), 1 deletion(-) create mode 100644 packages/node_modules/@isaacs/ttlcache.js create mode 100644 packages/node_modules/@opentelemetry/api-logs.js create mode 100644 packages/node_modules/@opentelemetry/api.js create mode 100644 packages/node_modules/@opentelemetry/core.js create mode 100644 packages/node_modules/@opentelemetry/resources.js create mode 100644 packages/node_modules/crypto-randomuuid.js create mode 100644 packages/node_modules/dc-polyfill.js create mode 100644 packages/node_modules/escape-string-regexp.js create mode 100644 packages/node_modules/ignore.js create mode 100644 packages/node_modules/import-in-the-middle.js create mode 100644 packages/node_modules/istanbul-lib-coverage.js create mode 100644 packages/node_modules/jest-docblock.js create mode 100644 packages/node_modules/jsonpath-plus.js create mode 100644 packages/node_modules/limiter.js create mode 100644 packages/node_modules/lodash.sortby.js create mode 100644 packages/node_modules/lru-cache.js create mode 100644 packages/node_modules/module-details-from-path.js create mode 100644 packages/node_modules/mutexify.js create mode 100644 packages/node_modules/opentracing.js create mode 100644 packages/node_modules/path-to-regexp.js create mode 100644 packages/node_modules/pprof-format.js create mode 100644 packages/node_modules/pprof-format.js.LICENSE.txt create mode 100644 packages/node_modules/protobufjs.js create mode 100644 packages/node_modules/retry.js create mode 100644 packages/node_modules/rfdc.js create mode 100644 packages/node_modules/semifies.js create mode 100644 packages/node_modules/shell-quote.js create mode 100644 packages/node_modules/source-map.js create mode 100644 packages/node_modules/tlhunter-sorted-set.js create mode 100644 packages/node_modules/ttl-set.js create mode 100644 vendor/bun.lock create mode 100644 vendor/package.json create mode 100644 vendor/webpack.config.js diff --git a/.gitignore b/.gitignore index 7c782561b6a..49c3be00169 100644 --- a/.gitignore +++ b/.gitignore @@ -131,6 +131,8 @@ packages/dd-trace/test/plugins/versions/node_modules packages/dd-trace/test/plugins/versions/yarn.lock !packages/dd-trace/**/telemetry/logs packages/datadog-plugin-azure-functions/test/integration-test/fixtures/node_modules +!packages/node_modules +!vendor/bun.lock __azurite_db_queue__.json __azurite_db_queue_extent__.json __queuestorage__/AzuriteConfig diff --git a/package.json b/package.json index 4a6f9a5e119..3c709931ea8 100644 --- a/package.json +++ b/package.json @@ -7,6 +7,7 @@ "scripts": { "env": "bash ./plugin-env", "preinstall": "node scripts/preinstall.js", + "prepare": "cd vendor && bun install", "bench": "node benchmark/index.js", "bench:e2e:test-optimization": "node benchmark/e2e-test-optimization/benchmark-run.js", "dependencies:dedupe": "yarn-deduplicate yarn.lock", @@ -115,11 +116,11 @@ "packages/*/index.js", "packages/*/lib/**/*", "packages/*/src/**/*", + "packages/node_modules/**/*", "packages/datadog-instrumentations/orchestrion.yml", "README.md", "register.js", "scripts/preinstall.js", - "vendor/**/*", "version.js" ], "dependencies": { diff --git a/packages/node_modules/@isaacs/ttlcache.js b/packages/node_modules/@isaacs/ttlcache.js new file mode 100644 index 00000000000..16e91f7a330 --- /dev/null +++ b/packages/node_modules/@isaacs/ttlcache.js @@ -0,0 +1 @@ +(()=>{"use strict";var t={d:(e,i)=>{for(var s in i)t.o(i,s)&&!t.o(e,s)&&Object.defineProperty(e,s,{enumerable:!0,get:i[s]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r:t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}},e={};t.r(e),t.d(e,{TTLCache:()=>n});const i="object"==typeof performance&&performance&&"function"==typeof performance.now?performance:Date,s=()=>i.now(),o=t=>t===1/0||(t=>!!t&&t===Math.floor(t)&&t>0&&isFinite(t))(t);class n{expirations=Object.create(null);data=new Map;expirationMap=new Map;ttl;max;updateAgeOnGet;updateAgeOnHas;noUpdateTTL;noDisposeOnSet;checkAgeOnGet;checkAgeOnHas;dispose;timer;timerExpiration;immortalKeys=new Set;constructor({max:t=1/0,ttl:e,updateAgeOnGet:i=!1,checkAgeOnGet:s=!1,updateAgeOnHas:n=!1,checkAgeOnHas:a=!1,noUpdateTTL:r=!1,dispose:h,noDisposeOnSet:p=!1}={}){if(void 0!==e&&!o(e))throw new TypeError("ttl must be positive integer or Infinity if set");if(!o(t))throw new TypeError("max must be positive integer or Infinity");if(this.ttl=e,this.max=t,this.updateAgeOnGet=!!i,this.checkAgeOnGet=!!s,this.updateAgeOnHas=!!n,this.checkAgeOnHas=!!a,this.noUpdateTTL=!!r,this.noDisposeOnSet=!!p,void 0!==h){if("function"!=typeof h)throw new TypeError("dispose must be function if set");this.dispose=h}else this.dispose=(t,e,i)=>{};this.timer=void 0,this.timerExpiration=void 0}setTimer(t,e){if(this.timerExpiration&&this.timerExpiration{this.timer=void 0,this.timerExpiration=void 0,this.purgeStale();for(const t in this.expirations){const e=Number(t);this.setTimer(e,e-s());break}},Math.max(0,e));i.unref&&i.unref(),this.timerExpiration=t,this.timer=i}cancelTimer(){this.timer&&(clearTimeout(this.timer),this.timerExpiration=void 0,this.timer=void 0)}cancelTimers(){return process.emitWarning('TTLCache.cancelTimers has been renamed to TTLCache.cancelTimer (no "s"), and will be removed in the next major version update'),this.cancelTimer()}clear(){const t=this.dispose!==n.prototype.dispose?[...this]:[];this.data.clear(),this.expirationMap.clear(),this.cancelTimer(),this.expirations=Object.create(null);for(const[e,i]of t)this.dispose(i,e,"delete")}setTTL(t,e=this.ttl){const i=this.expirationMap.get(t);if(void 0!==i){const e=this.expirations[i];!e||e.length<=1?delete this.expirations[i]:this.expirations[i]=e.filter(e=>e!==t)}if(e&&e!==1/0){this.immortalKeys.delete(t);const i=Math.floor(s()+e);this.expirationMap.set(t,i),this.expirations[i]||(this.expirations[i]=[],this.setTimer(i,e)),this.expirations[i].push(t)}else this.immortalKeys.add(t),this.expirationMap.set(t,1/0)}set(t,e,{ttl:i=this.ttl,noUpdateTTL:s=this.noUpdateTTL,noDisposeOnSet:n=this.noDisposeOnSet}={}){if(!o(i))throw new TypeError("ttl must be positive integer or Infinity");if(this.expirationMap.has(t)){s||this.setTTL(t,i);const o=this.data.get(t),a=!n&&this.data.has(t);o!==e&&(this.data.set(t,e),a&&this.dispose(o,t,"set"))}else this.setTTL(t,i),this.data.set(t,e);for(;this.size>this.max;)this.purgeToCapacity();return this}has(t,{checkAgeOnHas:e=this.checkAgeOnHas,ttl:i=this.ttl,updateAgeOnHas:s=this.updateAgeOnHas}={}){return!!this.data.has(t)&&(e&&0===this.getRemainingTTL(t)?(this.delete(t),!1):(s&&this.setTTL(t,i),!0))}getRemainingTTL(t){const e=this.expirationMap.get(t);return e===1/0?e:void 0!==e?Math.max(0,Math.ceil(e-s())):0}get(t,{updateAgeOnGet:e=this.updateAgeOnGet,ttl:i=this.ttl,checkAgeOnGet:s=this.checkAgeOnGet}={}){const o=this.data.get(t);if(!s||0!==this.getRemainingTTL(t))return e&&this.setTTL(t,i),o;this.delete(t)}delete(t){const e=this.expirationMap.get(t);if(void 0!==e){const i=this.data.get(t);this.data.delete(t),this.expirationMap.delete(t),this.immortalKeys.delete(t);const s=this.expirations[e];return s&&(s.length<=1?delete this.expirations[e]:this.expirations[e]=s.filter(e=>e!==t)),this.dispose(i,t,"delete"),0===this.size&&this.cancelTimer(),!0}return!1}purgeToCapacity(){for(const t in this.expirations){const e=this.expirations[t];if(!(this.size-e.length>=this.max)){const t=this.size-this.max,i=[];for(const s of e.splice(0,t))i.push([s,this.data.get(s)]),this.data.delete(s),this.expirationMap.delete(s);for(const[t,e]of i)this.dispose(e,t,"evict");return}{delete this.expirations[t];const i=[];for(const t of e)i.push([t,this.data.get(t)]),this.data.delete(t),this.expirationMap.delete(t);for(const[t,e]of i)this.dispose(e,t,"evict")}}}get size(){return this.data.size}purgeStale(){const t=Math.ceil(s());for(const e in this.expirations){if("Infinity"===e||Number(e)>t)return;const i=[...this.expirations[e]||[]],s=[];delete this.expirations[e];for(const t of i)s.push([t,this.data.get(t)]),this.data.delete(t),this.expirationMap.delete(t);for(const[t,e]of s)this.dispose(e,t,"stale")}0===this.size&&this.cancelTimer()}*entries(){for(const t in this.expirations)for(const e of this.expirations[t])yield[e,this.data.get(e)];for(const t of this.immortalKeys)yield[t,this.data.get(t)]}*keys(){for(const t in this.expirations)for(const e of this.expirations[t])yield e;for(const t of this.immortalKeys)yield t}*values(){for(const t in this.expirations)for(const e of this.expirations[t])yield this.data.get(e);for(const t of this.immortalKeys)yield this.data.get(t)}[Symbol.iterator](){return this.entries()}}module.exports=e})(); \ No newline at end of file diff --git a/packages/node_modules/@opentelemetry/api-logs.js b/packages/node_modules/@opentelemetry/api-logs.js new file mode 100644 index 00000000000..04f375ec8c6 --- /dev/null +++ b/packages/node_modules/@opentelemetry/api-logs.js @@ -0,0 +1 @@ +(()=>{"use strict";var e,t={d:(e,r)=>{for(var o in r)t.o(r,o)&&!t.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:r[o]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},r={};t.r(r),t.d(r,{NOOP_LOGGER:()=>g,NoopLogger:()=>o,ProxyLoggerProvider:()=>n,SeverityNumber:()=>e,logs:()=>A}),function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.TRACE=1]="TRACE",e[e.TRACE2=2]="TRACE2",e[e.TRACE3=3]="TRACE3",e[e.TRACE4=4]="TRACE4",e[e.DEBUG=5]="DEBUG",e[e.DEBUG2=6]="DEBUG2",e[e.DEBUG3=7]="DEBUG3",e[e.DEBUG4=8]="DEBUG4",e[e.INFO=9]="INFO",e[e.INFO2=10]="INFO2",e[e.INFO3=11]="INFO3",e[e.INFO4=12]="INFO4",e[e.WARN=13]="WARN",e[e.WARN2=14]="WARN2",e[e.WARN3=15]="WARN3",e[e.WARN4=16]="WARN4",e[e.ERROR=17]="ERROR",e[e.ERROR2=18]="ERROR2",e[e.ERROR3=19]="ERROR3",e[e.ERROR4=20]="ERROR4",e[e.FATAL=21]="FATAL",e[e.FATAL2=22]="FATAL2",e[e.FATAL3=23]="FATAL3",e[e.FATAL4=24]="FATAL4"}(e||(e={}));class o{emit(e){}}const g=new o,i=new class{getLogger(e,t,r){return new o}};class s{constructor(e,t,r,o){this._provider=e,this.name=t,this.version=r,this.options=o}emit(e){this._getLogger().emit(e)}_getLogger(){if(this._delegate)return this._delegate;const e=this._provider._getDelegateLogger(this.name,this.version,this.options);return e?(this._delegate=e,this._delegate):g}}class n{getLogger(e,t,r){var o;return null!==(o=this._getDelegateLogger(e,t,r))&&void 0!==o?o:new s(this,e,t,r)}_getDelegate(){var e;return null!==(e=this._delegate)&&void 0!==e?e:i}_setDelegate(e){this._delegate=e}_getDelegateLogger(e,t,r){var o;return null===(o=this._delegate)||void 0===o?void 0:o.getLogger(e,t,r)}}const l="object"==typeof globalThis?globalThis:global,a=Symbol.for("io.opentelemetry.js.api.logs"),R=l;class d{constructor(){this._proxyLoggerProvider=new n}static getInstance(){return this._instance||(this._instance=new d),this._instance}setGlobalLoggerProvider(e){return R[a]?this.getLoggerProvider():(R[a]=(t=e,r=i,e=>1===e?t:r),this._proxyLoggerProvider._setDelegate(e),e);var t,r}getLoggerProvider(){var e,t;return null!==(t=null===(e=R[a])||void 0===e?void 0:e.call(R,1))&&void 0!==t?t:this._proxyLoggerProvider}getLogger(e,t,r){return this.getLoggerProvider().getLogger(e,t,r)}disable(){delete R[a],this._proxyLoggerProvider=new n}}const A=d.getInstance();module.exports=r})(); \ No newline at end of file diff --git a/packages/node_modules/@opentelemetry/api.js b/packages/node_modules/@opentelemetry/api.js new file mode 100644 index 00000000000..91f4fed1660 --- /dev/null +++ b/packages/node_modules/@opentelemetry/api.js @@ -0,0 +1 @@ +(()=>{"use strict";var t={d:(e,n)=>{for(var r in n)t.o(n,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:n[r]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r:t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}},e={};t.r(e),t.d(e,{DiagConsoleLogger:()=>R,DiagLogLevel:()=>p,INVALID_SPANID:()=>tt,INVALID_SPAN_CONTEXT:()=>nt,INVALID_TRACEID:()=>et,ProxyTracer:()=>Et,ProxyTracerProvider:()=>Ct,ROOT_CONTEXT:()=>O,SamplingDecision:()=>ht,SpanKind:()=>_t,SpanStatusCode:()=>bt,TraceFlags:()=>X,ValueType:()=>E,baggageEntryMetadataFromString:()=>w,context:()=>Dt,createContextKey:()=>S,createNoopMeter:()=>W,createTraceState:()=>It,default:()=>Yt,defaultTextMapGetter:()=>H,defaultTextMapSetter:()=>Y,diag:()=>Pt,isSpanContextValid:()=>vt,isValidSpanId:()=>gt,isValidTraceId:()=>yt,metrics:()=>Vt,propagation:()=>Wt,trace:()=>Ht});var n="object"==typeof globalThis?globalThis:global,r="1.9.0",o=/^(\d+)\.(\d+)\.(\d+)(-(.+))?$/,i=function(t){var e=new Set([t]),n=new Set,r=t.match(o);if(!r)return function(){return!1};var i=+r[1],a=+r[2],u=+r[3];if(null!=r[4])return function(e){return e===t};function c(t){return n.add(t),!1}function l(t){return e.add(t),!0}return function(t){if(e.has(t))return!0;if(n.has(t))return!1;var r=t.match(o);if(!r)return c(t);var s=+r[1],f=+r[2],p=+r[3];return null!=r[4]||i!==s?c(t):0===i?a===f&&u<=p?l(t):c(t):a<=f?l(t):c(t)}}(r),a=r.split(".")[0],u=Symbol.for("opentelemetry.js.api."+a),c=n;function l(t,e,n,o){var i;void 0===o&&(o=!1);var a=c[u]=null!==(i=c[u])&&void 0!==i?i:{version:r};if(!o&&a[t]){var l=new Error("@opentelemetry/api: Attempted duplicate registration of API: "+t);return n.error(l.stack||l.message),!1}return a.version!==r?(l=new Error("@opentelemetry/api: Registration of version v"+a.version+" for "+t+" does not match previously registered API v"+r),n.error(l.stack||l.message),!1):(a[t]=e,n.debug("@opentelemetry/api: Registered a global for "+t+" v"+r+"."),!0)}function s(t){var e,n,r=null===(e=c[u])||void 0===e?void 0:e.version;if(r&&i(r))return null===(n=c[u])||void 0===n?void 0:n[t]}function f(t,e){e.debug("@opentelemetry/api: Unregistering a global for "+t+" v"+r+".");var n=c[u];n&&delete n[t]}var p,y=function(){function t(t){this._namespace=t.namespace||"DiagComponentLogger"}return t.prototype.debug=function(){for(var t=[],e=0;e0)&&!(r=i.next()).done;)a.push(r.value)}catch(t){o={error:t}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}(n),!1))}!function(t){t[t.NONE=0]="NONE",t[t.ERROR=30]="ERROR",t[t.WARN=50]="WARN",t[t.INFO=60]="INFO",t[t.DEBUG=70]="DEBUG",t[t.VERBOSE=80]="VERBOSE",t[t.ALL=9999]="ALL"}(p||(p={}));var v=function(){function t(){function t(t){return function(){for(var e=[],n=0;n0)&&!(r=i.next()).done;)a.push(r.value)}catch(t){o={error:t}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}(e),!1))}}var e=this;e.setLogger=function(t,n){var r,o,i;if(void 0===n&&(n={logLevel:p.INFO}),t===e){var a=new Error("Cannot use diag as the logger for itself. Please use a DiagLogger implementation like ConsoleDiagLogger or a custom implementation");return e.error(null!==(r=a.stack)&&void 0!==r?r:a.message),!1}"number"==typeof n&&(n={logLevel:n});var u=s("diag"),c=function(t,e){function n(n,r){var o=e[n];return"function"==typeof o&&t>=r?o.bind(e):function(){}}return tp.ALL&&(t=p.ALL),e=e||{},{error:n("error",p.ERROR),warn:n("warn",p.WARN),info:n("info",p.INFO),debug:n("debug",p.DEBUG),verbose:n("verbose",p.VERBOSE)}}(null!==(o=n.logLevel)&&void 0!==o?o:p.INFO,t);if(u&&!n.suppressOverrideMessage){var f=null!==(i=(new Error).stack)&&void 0!==i?i:"";u.warn("Current logger will be overwritten from "+f),c.warn("Current logger will overwrite one already registered from "+f)}return l("diag",c,e,!0)},e.disable=function(){f("diag",e)},e.createComponentLogger=function(t){return new y(t)},e.verbose=t("verbose"),e.debug=t("debug"),e.info=t("info"),e.warn=t("warn"),e.error=t("error")}return t.instance=function(){return this._instance||(this._instance=new t),this._instance},t}(),d=function(){function t(t){this._entries=t?new Map(t):new Map}return t.prototype.getEntry=function(t){var e=this._entries.get(t);if(e)return Object.assign({},e)},t.prototype.getAllEntries=function(){return Array.from(this._entries.entries()).map(function(t){var e=function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,o,i=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(t){o={error:t}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}(t,2);return[e[0],e[1]]})},t.prototype.setEntry=function(e,n){var r=new t(this._entries);return r._entries.set(e,n),r},t.prototype.removeEntry=function(e){var n=new t(this._entries);return n._entries.delete(e),n},t.prototype.removeEntries=function(){for(var e,n,r=[],o=0;o=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}(r),u=a.next();!u.done;u=a.next()){var c=u.value;i._entries.delete(c)}}catch(t){e={error:t}}finally{try{u&&!u.done&&(n=a.return)&&n.call(a)}finally{if(e)throw e.error}}return i},t.prototype.clear=function(){return new t},t}(),h=Symbol("BaggageEntryMetadata"),_=v.instance();function b(t){return void 0===t&&(t={}),new d(new Map(Object.entries(t)))}function w(t){return"string"!=typeof t&&(_.error("Cannot create baggage metadata from unknown type: "+typeof t),t=""),{__TYPE__:h,toString:function(){return t}}}function S(t){return Symbol.for(t)}var m,E,O=new function t(e){var n=this;n._currentContext=e?new Map(e):new Map,n.getValue=function(t){return n._currentContext.get(t)},n.setValue=function(e,r){var o=new t(n._currentContext);return o._currentContext.set(e,r),o},n.deleteValue=function(e){var r=new t(n._currentContext);return r._currentContext.delete(e),r}},C=[{n:"error",c:"error"},{n:"warn",c:"warn"},{n:"info",c:"info"},{n:"debug",c:"debug"},{n:"verbose",c:"trace"}],R=function(){function t(t){return function(){for(var e=[],n=0;n0)&&!(r=i.next()).done;)a.push(r.value)}catch(t){o={error:t}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}(r),!1))},t.prototype.bind=function(t,e){return e},t.prototype.enable=function(){return this},t.prototype.disable=function(){return this},t}(),J="context",Q=new q,Z=function(){function t(){}return t.getInstance=function(){return this._instance||(this._instance=new t),this._instance},t.prototype.setGlobalContextManager=function(t){return l(J,t,v.instance())},t.prototype.active=function(){return this._getContextManager().active()},t.prototype.with=function(t,e,n){for(var r,o=[],i=3;i0)&&!(r=i.next()).done;)a.push(r.value)}catch(t){o={error:t}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}(o),!1))},t.prototype.bind=function(t,e){return this._getContextManager().bind(t,e)},t.prototype._getContextManager=function(){return s(J)||Q},t.prototype.disable=function(){this._getContextManager().disable(),f(J,v.instance())},t}();!function(t){t[t.NONE=0]="NONE",t[t.SAMPLED=1]="SAMPLED"}(X||(X={}));var tt="0000000000000000",et="00000000000000000000000000000000",nt={traceId:et,spanId:tt,traceFlags:X.NONE},rt=function(){function t(t){void 0===t&&(t=nt),this._spanContext=t}return t.prototype.spanContext=function(){return this._spanContext},t.prototype.setAttribute=function(t,e){return this},t.prototype.setAttributes=function(t){return this},t.prototype.addEvent=function(t,e){return this},t.prototype.addLink=function(t){return this},t.prototype.addLinks=function(t){return this},t.prototype.setStatus=function(t){return this},t.prototype.updateName=function(t){return this},t.prototype.end=function(t){},t.prototype.isRecording=function(){return!1},t.prototype.recordException=function(t,e){},t}(),ot=S("OpenTelemetry Context Key SPAN");function it(t){return t.getValue(ot)||void 0}function at(){return it(Z.getInstance().active())}function ut(t,e){return t.setValue(ot,e)}function ct(t){return t.deleteValue(ot)}function lt(t,e){return ut(t,new rt(e))}function st(t){var e;return null===(e=it(t))||void 0===e?void 0:e.spanContext()}var ft=/^([0-9a-f]{32})$/i,pt=/^[0-9a-f]{16}$/i;function yt(t){return ft.test(t)&&t!==et}function gt(t){return pt.test(t)&&t!==tt}function vt(t){return yt(t.traceId)&>(t.spanId)}function dt(t){return new rt(t)}var ht,_t,bt,wt=Z.getInstance(),St=function(){function t(){}return t.prototype.startSpan=function(t,e,n){if(void 0===n&&(n=wt.active()),Boolean(null==e?void 0:e.root))return new rt;var r,o=n&&st(n);return"object"==typeof(r=o)&&"string"==typeof r.spanId&&"string"==typeof r.traceId&&"number"==typeof r.traceFlags&&vt(o)?new rt(o):new rt},t.prototype.startActiveSpan=function(t,e,n,r){var o,i,a;if(!(arguments.length<2)){2===arguments.length?a=e:3===arguments.length?(o=e,a=n):(o=e,i=n,a=r);var u=null!=i?i:wt.active(),c=this.startSpan(t,o,u),l=ut(u,c);return wt.with(l,a,void 0,c)}},t}(),mt=new St,Et=function(){function t(t,e,n,r){this._provider=t,this.name=e,this.version=n,this.options=r}return t.prototype.startSpan=function(t,e,n){return this._getTracer().startSpan(t,e,n)},t.prototype.startActiveSpan=function(t,e,n,r){var o=this._getTracer();return Reflect.apply(o.startActiveSpan,o,arguments)},t.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):mt},t}(),Ot=new(function(){function t(){}return t.prototype.getTracer=function(t,e,n){return new St},t}()),Ct=function(){function t(){}return t.prototype.getTracer=function(t,e,n){var r;return null!==(r=this.getDelegateTracer(t,e,n))&&void 0!==r?r:new Et(this,t,e,n)},t.prototype.getDelegate=function(){var t;return null!==(t=this._delegate)&&void 0!==t?t:Ot},t.prototype.setDelegate=function(t){this._delegate=t},t.prototype.getDelegateTracer=function(t,e,n){var r;return null===(r=this._delegate)||void 0===r?void 0:r.getTracer(t,e,n)},t}();!function(t){t[t.NOT_RECORD=0]="NOT_RECORD",t[t.RECORD=1]="RECORD",t[t.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"}(ht||(ht={})),function(t){t[t.INTERNAL=0]="INTERNAL",t[t.SERVER=1]="SERVER",t[t.CLIENT=2]="CLIENT",t[t.PRODUCER=3]="PRODUCER",t[t.CONSUMER=4]="CONSUMER"}(_t||(_t={})),function(t){t[t.UNSET=0]="UNSET",t[t.OK=1]="OK",t[t.ERROR=2]="ERROR"}(bt||(bt={}));var Rt="[_0-9a-z-*/]",Tt=new RegExp("^(?:[a-z]"+Rt+"{0,255}|[a-z0-9]"+Rt+"{0,240}@[a-z]"+Rt+"{0,13})$"),xt=/^[ -~]{0,255}[!-~]$/,Nt=/,|=/,At=function(){function t(t){this._internalState=new Map,t&&this._parse(t)}return t.prototype.set=function(t,e){var n=this._clone();return n._internalState.has(t)&&n._internalState.delete(t),n._internalState.set(t,e),n},t.prototype.unset=function(t){var e=this._clone();return e._internalState.delete(t),e},t.prototype.get=function(t){return this._internalState.get(t)},t.prototype.serialize=function(){var t=this;return this._keys().reduce(function(e,n){return e.push(n+"="+t.get(n)),e},[]).join(",")},t.prototype._parse=function(t){t.length>512||(this._internalState=t.split(",").reverse().reduce(function(t,e){var n=e.trim(),r=n.indexOf("=");if(-1!==r){var o=n.slice(0,r),i=n.slice(r+1,e.length);(function(t){return Tt.test(t)})(o)&&function(t){return xt.test(t)&&!Nt.test(t)}(i)&&t.set(o,i)}return t},new Map),this._internalState.size>32&&(this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,32))))},t.prototype._keys=function(){return Array.from(this._internalState.keys()).reverse()},t.prototype._clone=function(){var e=new t;return e._internalState=new Map(this._internalState),e},t}();function It(t){return new At(t)}var Dt=Z.getInstance(),Pt=v.instance(),Mt=new(function(){function t(){}return t.prototype.getMeter=function(t,e,n){return k},t}()),Lt="metrics",Vt=function(){function t(){}return t.getInstance=function(){return this._instance||(this._instance=new t),this._instance},t.prototype.setGlobalMeterProvider=function(t){return l(Lt,t,v.instance())},t.prototype.getMeterProvider=function(){return s(Lt)||Mt},t.prototype.getMeter=function(t,e,n){return this.getMeterProvider().getMeter(t,e,n)},t.prototype.disable=function(){f(Lt,v.instance())},t}().getInstance(),jt=function(){function t(){}return t.prototype.inject=function(t,e){},t.prototype.extract=function(t,e){return t},t.prototype.fields=function(){return[]},t}(),kt=S("OpenTelemetry Baggage Key");function Bt(t){return t.getValue(kt)||void 0}function Gt(){return Bt(Z.getInstance().active())}function Ut(t,e){return t.setValue(kt,e)}function Ft(t){return t.deleteValue(kt)}var zt="propagation",Kt=new jt,$t=function(){function t(){this.createBaggage=b,this.getBaggage=Bt,this.getActiveBaggage=Gt,this.setBaggage=Ut,this.deleteBaggage=Ft}return t.getInstance=function(){return this._instance||(this._instance=new t),this._instance},t.prototype.setGlobalPropagator=function(t){return l(zt,t,v.instance())},t.prototype.inject=function(t,e,n){return void 0===n&&(n=Y),this._getGlobalPropagator().inject(t,e,n)},t.prototype.extract=function(t,e,n){return void 0===n&&(n=H),this._getGlobalPropagator().extract(t,e,n)},t.prototype.fields=function(){return this._getGlobalPropagator().fields()},t.prototype.disable=function(){f(zt,v.instance())},t.prototype._getGlobalPropagator=function(){return s(zt)||Kt},t}(),Wt=$t.getInstance(),Xt="trace",Ht=function(){function t(){this._proxyTracerProvider=new Ct,this.wrapSpanContext=dt,this.isSpanContextValid=vt,this.deleteSpan=ct,this.getSpan=it,this.getActiveSpan=at,this.getSpanContext=st,this.setSpan=ut,this.setSpanContext=lt}return t.getInstance=function(){return this._instance||(this._instance=new t),this._instance},t.prototype.setGlobalTracerProvider=function(t){var e=l(Xt,this._proxyTracerProvider,v.instance());return e&&this._proxyTracerProvider.setDelegate(t),e},t.prototype.getTracerProvider=function(){return s(Xt)||this._proxyTracerProvider},t.prototype.getTracer=function(t,e){return this.getTracerProvider().getTracer(t,e)},t.prototype.disable=function(){f(Xt,v.instance()),this._proxyTracerProvider=new Ct},t}().getInstance();const Yt={context:Dt,diag:Pt,metrics:Vt,propagation:Wt,trace:Ht};module.exports=e})(); \ No newline at end of file diff --git a/packages/node_modules/@opentelemetry/core.js b/packages/node_modules/@opentelemetry/core.js new file mode 100644 index 00000000000..2fcf4fd71de --- /dev/null +++ b/packages/node_modules/@opentelemetry/core.js @@ -0,0 +1 @@ +(()=>{"use strict";var t={d:(e,r)=>{for(var n in r)t.o(r,n)&&!t.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:r[n]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r:t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}},e={};t.r(e),t.d(e,{AlwaysOffSampler:()=>Ke,AlwaysOnSampler:()=>We,AnchoredClock:()=>z,BindOnceFuture:()=>Lr,CompositePropagator:()=>re,DEFAULT_ATTRIBUTE_COUNT_LIMIT:()=>Ut,DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT:()=>Mt,DEFAULT_ENVIRONMENT:()=>xt,DEFAULT_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT:()=>Dt,DEFAULT_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT:()=>Bt,ExportResultCode:()=>at,ParentBasedSampler:()=>Ye,RPCType:()=>Be,RandomIdGenerator:()=>zt,SDK_INFO:()=>qt,TRACE_PARENT_HEADER:()=>we,TRACE_STATE_HEADER:()=>Me,TimeoutError:()=>yr,TraceIdRatioBasedSampler:()=>ze,TraceState:()=>Ne,TracesSamplerValues:()=>ut,VERSION:()=>Qt,W3CBaggagePropagator:()=>Y,W3CTraceContextPropagator:()=>Xe,_globalThis:()=>Wt,addHrTimes:()=>St,baggageUtils:()=>mr,callWithTimeout:()=>dr,deleteRPCMetadata:()=>Ve,getEnv:()=>Ht,getEnvWithoutDefaults:()=>Kt,getRPCMetadata:()=>Fe,getTimeOrigin:()=>pt,globalErrorHandler:()=>it,hexToBase64:()=>Yt,hexToBinary:()=>Pt,hrTime:()=>Et,hrTimeDuration:()=>Ot,hrTimeToMicroseconds:()=>vt,hrTimeToMilliseconds:()=>gt,hrTimeToNanoseconds:()=>dt,hrTimeToTimeStamp:()=>yt,internal:()=>Ar,isAttributeKey:()=>q,isAttributeValue:()=>tt,isTimeInput:()=>Rt,isTimeInputHrTime:()=>ht,isTracingSuppressed:()=>V,isUrlIgnored:()=>hr,isWrapped:()=>Rr,loggingErrorHandler:()=>rt,merge:()=>ur,millisToHrTime:()=>_t,otperformance:()=>ct,parseEnvironment:()=>kt,parseTraceParent:()=>De,sanitizeAttributes:()=>Q,setGlobalErrorHandler:()=>ot,setRPCMetadata:()=>Ge,suppressTracing:()=>j,timeInputToHrTime:()=>Tt,unrefTimer:()=>te,unsuppressTracing:()=>G,urlMatches:()=>vr});var r="object"==typeof globalThis?globalThis:global,n="1.9.0",o=/^(\d+)\.(\d+)\.(\d+)(-(.+))?$/,i=function(t){var e=new Set([t]),r=new Set,n=t.match(o);if(!n)return function(){return!1};var i=+n[1],a=+n[2],u=+n[3];if(null!=n[4])return function(e){return e===t};function c(t){return r.add(t),!1}function l(t){return e.add(t),!0}return function(t){if(e.has(t))return!0;if(r.has(t))return!1;var n=t.match(o);if(!n)return c(t);var f=+n[1],s=+n[2],_=+n[3];return null!=n[4]||i!==f?c(t):0===i?a===s&&u<=_?l(t):c(t):a<=s?l(t):c(t)}}(n),a=n.split(".")[0],u=Symbol.for("opentelemetry.js.api."+a),c=r;function l(t,e,r,o){var i;void 0===o&&(o=!1);var a=c[u]=null!==(i=c[u])&&void 0!==i?i:{version:n};if(!o&&a[t]){var l=new Error("@opentelemetry/api: Attempted duplicate registration of API: "+t);return r.error(l.stack||l.message),!1}return a.version!==n?(l=new Error("@opentelemetry/api: Registration of version v"+a.version+" for "+t+" does not match previously registered API v"+n),r.error(l.stack||l.message),!1):(a[t]=e,r.debug("@opentelemetry/api: Registered a global for "+t+" v"+n+"."),!0)}function f(t){var e,r,n=null===(e=c[u])||void 0===e?void 0:e.version;if(n&&i(n))return null===(r=c[u])||void 0===r?void 0:r[t]}function s(t,e){e.debug("@opentelemetry/api: Unregistering a global for "+t+" v"+n+".");var r=c[u];r&&delete r[t]}var _=function(){function t(){}return t.prototype.inject=function(t,e){},t.prototype.extract=function(t,e){return t},t.prototype.fields=function(){return[]},t}(),p={get:function(t,e){if(null!=t)return t[e]},keys:function(t){return null==t?[]:Object.keys(t)}},E={set:function(t,e,r){null!=t&&(t[e]=r)}};function T(t){return Symbol.for(t)}var O,y=new function t(e){var r=this;r._currentContext=e?new Map(e):new Map,r.getValue=function(t){return r._currentContext.get(t)},r.setValue=function(e,n){var o=new t(r._currentContext);return o._currentContext.set(e,n),o},r.deleteValue=function(e){var n=new t(r._currentContext);return n._currentContext.delete(e),n}},d=function(){function t(){}return t.prototype.active=function(){return y},t.prototype.with=function(t,e,r){for(var n=[],o=3;o0)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}(n),!1))},t.prototype.bind=function(t,e){return e},t.prototype.enable=function(){return this},t.prototype.disable=function(){return this},t}(),g=function(){function t(t){this._namespace=t.namespace||"DiagComponentLogger"}return t.prototype.debug=function(){for(var t=[],e=0;e0)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}(r),!1))}!function(t){t[t.NONE=0]="NONE",t[t.ERROR=30]="ERROR",t[t.WARN=50]="WARN",t[t.INFO=60]="INFO",t[t.DEBUG=70]="DEBUG",t[t.VERBOSE=80]="VERBOSE",t[t.ALL=9999]="ALL"}(O||(O={}));var h=function(){function t(){function t(t){return function(){for(var e=[],r=0;r0)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}(e),!1))}}var e=this;e.setLogger=function(t,r){var n,o,i;if(void 0===r&&(r={logLevel:O.INFO}),t===e){var a=new Error("Cannot use diag as the logger for itself. Please use a DiagLogger implementation like ConsoleDiagLogger or a custom implementation");return e.error(null!==(n=a.stack)&&void 0!==n?n:a.message),!1}"number"==typeof r&&(r={logLevel:r});var u=f("diag"),c=function(t,e){function r(r,n){var o=e[r];return"function"==typeof o&&t>=n?o.bind(e):function(){}}return tO.ALL&&(t=O.ALL),e=e||{},{error:r("error",O.ERROR),warn:r("warn",O.WARN),info:r("info",O.INFO),debug:r("debug",O.DEBUG),verbose:r("verbose",O.VERBOSE)}}(null!==(o=r.logLevel)&&void 0!==o?o:O.INFO,t);if(u&&!r.suppressOverrideMessage){var s=null!==(i=(new Error).stack)&&void 0!==i?i:"";u.warn("Current logger will be overwritten from "+s),c.warn("Current logger will overwrite one already registered from "+s)}return l("diag",c,e,!0)},e.disable=function(){s("diag",e)},e.createComponentLogger=function(t){return new g(t)},e.verbose=t("verbose"),e.debug=t("debug"),e.info=t("info"),e.warn=t("warn"),e.error=t("error")}return t.instance=function(){return this._instance||(this._instance=new t),this._instance},t}(),R="context",S=new d,L=function(){function t(){}return t.getInstance=function(){return this._instance||(this._instance=new t),this._instance},t.prototype.setGlobalContextManager=function(t){return l(R,t,h.instance())},t.prototype.active=function(){return this._getContextManager().active()},t.prototype.with=function(t,e,r){for(var n,o=[],i=3;i0)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}(o),!1))},t.prototype.bind=function(t,e){return this._getContextManager().bind(t,e)},t.prototype._getContextManager=function(){return f(R)||S},t.prototype.disable=function(){this._getContextManager().disable(),s(R,h.instance())},t}(),P=T("OpenTelemetry Baggage Key");function m(t){return t.getValue(P)||void 0}function A(){return m(L.getInstance().active())}function I(t,e){return t.setValue(P,e)}function C(t){return t.deleteValue(P)}var b=function(){function t(t){this._entries=t?new Map(t):new Map}return t.prototype.getEntry=function(t){var e=this._entries.get(t);if(e)return Object.assign({},e)},t.prototype.getAllEntries=function(){return Array.from(this._entries.entries()).map(function(t){var e=function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}(t,2);return[e[0],e[1]]})},t.prototype.setEntry=function(e,r){var n=new t(this._entries);return n._entries.set(e,r),n},t.prototype.removeEntry=function(e){var r=new t(this._entries);return r._entries.delete(e),r},t.prototype.removeEntries=function(){for(var e,r,n=[],o=0;o=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}(n),u=a.next();!u.done;u=a.next()){var c=u.value;i._entries.delete(c)}}catch(t){e={error:t}}finally{try{u&&!u.done&&(r=a.return)&&r.call(a)}finally{if(e)throw e.error}}return i},t.prototype.clear=function(){return new t},t}(),N=Symbol("BaggageEntryMetadata"),w=h.instance();function M(t){return void 0===t&&(t={}),new b(new Map(Object.entries(t)))}var U="propagation",D=new _,B=function(){function t(){this.createBaggage=M,this.getBaggage=m,this.getActiveBaggage=A,this.setBaggage=I,this.deleteBaggage=C}return t.getInstance=function(){return this._instance||(this._instance=new t),this._instance},t.prototype.setGlobalPropagator=function(t){return l(U,t,h.instance())},t.prototype.inject=function(t,e,r){return void 0===r&&(r=E),this._getGlobalPropagator().inject(t,e,r)},t.prototype.extract=function(t,e,r){return void 0===r&&(r=p),this._getGlobalPropagator().extract(t,e,r)},t.prototype.fields=function(){return this._getGlobalPropagator().fields()},t.prototype.disable=function(){s(U,h.instance())},t.prototype._getGlobalPropagator=function(){return f(U)||D},t}(),x=B.getInstance(),X=T("OpenTelemetry SDK Context Key SUPPRESS_TRACING");function j(t){return t.setValue(X,!0)}function G(t){return t.deleteValue(X)}function V(t){return!0===t.getValue(X)}var F=",",k="baggage";function H(t){return t.reduce(function(t,e){var r=""+t+(""!==t?F:"")+e;return r.length>8192?t:r},"")}function K(t){return t.getAllEntries().map(function(t){var e=function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}(t,2),r=e[0],n=e[1],o=encodeURIComponent(r)+"="+encodeURIComponent(n.value);return void 0!==n.metadata&&(o+=";"+n.metadata.toString()),o})}function W(t){var e=t.split(";");if(!(e.length<=0)){var r=e.shift();if(r){var n=r.indexOf("=");if(!(n<=0)){var o,i,a=decodeURIComponent(r.substring(0,n).trim()),u=decodeURIComponent(r.substring(n+1).trim());return e.length>0&&("string"!=typeof(i=e.join(";"))&&(w.error("Cannot create baggage metadata from unknown type: "+typeof i),i=""),o={__TYPE__:N,toString:function(){return i}}),{key:a,value:u,metadata:o}}}}}var Y=function(){function t(){}return t.prototype.inject=function(t,e,r){var n=x.getBaggage(t);if(n&&!V(t)){var o=H(K(n).filter(function(t){return t.length<=4096}).slice(0,180));o.length>0&&r.set(e,k,o)}},t.prototype.extract=function(t,e,r){var n=r.get(e,k),o=Array.isArray(n)?n.join(F):n;if(!o)return t;var i={};return 0===o.length?t:(o.split(F).forEach(function(t){var e=W(t);if(e){var r={value:e.value};e.metadata&&(r.metadata=e.metadata),i[e.key]=r}}),0===Object.entries(i).length?t:x.setBaggage(t,x.createBaggage(i)))},t.prototype.fields=function(){return[k]},t}(),z=function(){function t(t,e){this._monotonicClock=e,this._epochMillis=t.now(),this._performanceMillis=e.now()}return t.prototype.now=function(){var t=this._monotonicClock.now()-this._performanceMillis;return this._epochMillis+t},t}(),Z=h.instance(),J=function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},$=function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a};function Q(t){var e,r,n={};if("object"!=typeof t||null==t)return n;try{for(var o=J(Object.entries(t)),i=o.next();!i.done;i=o.next()){var a=$(i.value,2),u=a[0],c=a[1];q(u)?tt(c)?Array.isArray(c)?n[u]=c.slice():n[u]=c:Z.warn("Invalid attribute value set for key: "+u):Z.warn("Invalid attribute key: "+u)}}catch(t){e={error:t}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(e)throw e.error}}return n}function q(t){return"string"==typeof t&&t.length>0}function tt(t){return null==t||(Array.isArray(t)?function(t){var e,r,n;try{for(var o=J(t),i=o.next();!i.done;i=o.next()){var a=i.value;if(null!=a){if(!n){if(et(a)){n=typeof a;continue}return!1}if(typeof a!==n)return!1}}}catch(t){e={error:t}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(e)throw e.error}}return!0}(t):et(t))}function et(t){switch(typeof t){case"number":case"boolean":case"string":return!0}return!1}function rt(){return function(t){Z.error(function(t){return"string"==typeof t?t:JSON.stringify(function(t){for(var e={},r=t;null!==r;)Object.getOwnPropertyNames(r).forEach(function(t){if(!e[t]){var n=r[t];n&&(e[t]=String(n))}}),r=Object.getPrototypeOf(r);return e}(t))}(t))}}var nt=rt();function ot(t){nt=t}function it(t){try{nt(t)}catch(t){}}var at,ut,ct=require("perf_hooks").performance,lt=9,ft=Math.pow(10,6),st=Math.pow(10,lt);function _t(t){var e=t/1e3;return[Math.trunc(e),Math.round(t%1e3*ft)]}function pt(){var t=ct.timeOrigin;if("number"!=typeof t){var e=ct;t=e.timing&&e.timing.fetchStart}return t}function Et(t){return St(_t(pt()),_t("number"==typeof t?t:ct.now()))}function Tt(t){if(ht(t))return t;if("number"==typeof t)return t=st&&(r[1]-=st,r[0]+=1),r}function Lt(t){return t>=48&&t<=57?t-48:t>=97&&t<=102?t-87:t-55}function Pt(t){for(var e=new Uint8Array(t.length/2),r=0,n=0;n-1}var Ct=["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 bt(t){return Ct.indexOf(t)>-1}var Nt=["OTEL_NO_PATCH_MODULES","OTEL_PROPAGATORS","OTEL_SEMCONV_STABILITY_OPT_IN"];function wt(t){return Nt.indexOf(t)>-1}var Mt=1/0,Ut=128,Dt=128,Bt=128,xt={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:O.INFO,OTEL_NO_PATCH_MODULES:[],OTEL_PROPAGATORS:["tracecontext","baggage"],OTEL_RESOURCE_ATTRIBUTES:"",OTEL_SERVICE_NAME:"",OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT:Mt,OTEL_ATTRIBUTE_COUNT_LIMIT:Ut,OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT:Mt,OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT:Ut,OTEL_LOGRECORD_ATTRIBUTE_VALUE_LENGTH_LIMIT:Mt,OTEL_LOGRECORD_ATTRIBUTE_COUNT_LIMIT:Ut,OTEL_SPAN_EVENT_COUNT_LIMIT:128,OTEL_SPAN_LINK_COUNT_LIMIT:128,OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT:Dt,OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT:Bt,OTEL_TRACES_EXPORTER:"",OTEL_TRACES_SAMPLER:ut.ParentBasedAlwaysOn,OTEL_TRACES_SAMPLER_ARG:"",OTEL_LOGS_EXPORTER:"",OTEL_EXPORTER_OTLP_INSECURE:"",OTEL_EXPORTER_OTLP_TRACES_INSECURE:"",OTEL_EXPORTER_OTLP_METRICS_INSECURE:"",OTEL_EXPORTER_OTLP_LOGS_INSECURE:"",OTEL_EXPORTER_OTLP_CERTIFICATE:"",OTEL_EXPORTER_OTLP_TRACES_CERTIFICATE:"",OTEL_EXPORTER_OTLP_METRICS_CERTIFICATE:"",OTEL_EXPORTER_OTLP_LOGS_CERTIFICATE:"",OTEL_EXPORTER_OTLP_COMPRESSION:"",OTEL_EXPORTER_OTLP_TRACES_COMPRESSION:"",OTEL_EXPORTER_OTLP_METRICS_COMPRESSION:"",OTEL_EXPORTER_OTLP_LOGS_COMPRESSION:"",OTEL_EXPORTER_OTLP_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_TRACES_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_METRICS_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_LOGS_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_TRACES_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_METRICS_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_LOGS_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_TRACES_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_METRICS_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_LOGS_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE:"cumulative",OTEL_SEMCONV_STABILITY_OPT_IN:[]};function Xt(t,e,r){if(void 0!==r[t]){var n=String(r[t]);e[t]="true"===n.toLowerCase()}}function jt(t,e,r,n,o){if(void 0===n&&(n=-1/0),void 0===o&&(o=1/0),void 0!==r[t]){var i=Number(r[t]);isNaN(i)||(e[t]=io?o:i)}}function Gt(t,e,r,n){void 0===n&&(n=mt);var o=r[t];"string"==typeof o&&(e[t]=o.split(n).map(function(t){return t.trim()}))}var Vt={ALL:O.ALL,VERBOSE:O.VERBOSE,DEBUG:O.DEBUG,INFO:O.INFO,WARN:O.WARN,ERROR:O.ERROR,NONE:O.NONE};function Ft(t,e,r){var n=r[t];if("string"==typeof n){var o=Vt[n.toUpperCase()];null!=o&&(e[t]=o)}}function kt(t){var e={};for(var r in xt){var n=r;if("OTEL_LOG_LEVEL"===n)Ft(n,e,t);else if(It(n))Xt(n,e,t);else if(bt(n))jt(n,e,t);else if(wt(n))Gt(n,e,t);else{var o=t[n];null!=o&&(e[n]=String(o))}}return e}function Ht(){var t=kt(process.env);return Object.assign({},xt,t)}function Kt(){return kt(process.env)}var Wt="object"==typeof globalThis?globalThis:global;function Yt(t){return Buffer.from(Pt(t)).toString("base64")}var zt=function(){this.generateTraceId=Jt(16),this.generateSpanId=Jt(8)},Zt=Buffer.allocUnsafe(16);function Jt(t){return function(){for(var e=0;e>>0,4*e);for(e=0;e0);e++)e===t-1&&(Zt[t-1]=1);return Zt.toString("hex",0,t)}}var $t,Qt="1.30.1",qt=(($t={})["telemetry.sdk.name"]="opentelemetry",$t["process.runtime.name"]="node",$t["telemetry.sdk.language"]="nodejs",$t["telemetry.sdk.version"]=Qt,$t);function te(t){t.unref()}var ee,re=function(){function t(t){var e;void 0===t&&(t={}),this._propagators=null!==(e=t.propagators)&&void 0!==e?e:[],this._fields=Array.from(new Set(this._propagators.map(function(t){return"function"==typeof t.fields?t.fields():[]}).reduce(function(t,e){return t.concat(e)},[])))}return t.prototype.inject=function(t,e,r){var n,o;try{for(var i=function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}(this._propagators),a=i.next();!a.done;a=i.next()){var u=a.value;try{u.inject(t,e,r)}catch(t){Z.warn("Failed to inject with "+u.constructor.name+". Err: "+t.message)}}}catch(t){n={error:t}}finally{try{a&&!a.done&&(o=i.return)&&o.call(i)}finally{if(n)throw n.error}}},t.prototype.extract=function(t,e,r){return this._propagators.reduce(function(t,n){try{return n.extract(t,e,r)}catch(t){Z.warn("Failed to extract with "+n.constructor.name+". Err: "+t.message)}return t},t)},t.prototype.fields=function(){return this._fields.slice()},t}();!function(t){t[t.NONE=0]="NONE",t[t.SAMPLED=1]="SAMPLED"}(ee||(ee={}));var ne="0000000000000000",oe="00000000000000000000000000000000",ie={traceId:oe,spanId:ne,traceFlags:ee.NONE},ae=function(){function t(t){void 0===t&&(t=ie),this._spanContext=t}return t.prototype.spanContext=function(){return this._spanContext},t.prototype.setAttribute=function(t,e){return this},t.prototype.setAttributes=function(t){return this},t.prototype.addEvent=function(t,e){return this},t.prototype.addLink=function(t){return this},t.prototype.addLinks=function(t){return this},t.prototype.setStatus=function(t){return this},t.prototype.updateName=function(t){return this},t.prototype.end=function(t){},t.prototype.isRecording=function(){return!1},t.prototype.recordException=function(t,e){},t}(),ue=T("OpenTelemetry Context Key SPAN");function ce(t){return t.getValue(ue)||void 0}function le(){return ce(L.getInstance().active())}function fe(t,e){return t.setValue(ue,e)}function se(t){return t.deleteValue(ue)}function _e(t,e){return fe(t,new ae(e))}function pe(t){var e;return null===(e=ce(t))||void 0===e?void 0:e.spanContext()}var Ee=/^([0-9a-f]{32})$/i,Te=/^[0-9a-f]{16}$/i;function Oe(t){return Ee.test(t)&&t!==oe}function ye(t){return Oe(t.traceId)&&(e=t.spanId,Te.test(e)&&e!==ne);var e}function de(t){return new ae(t)}var ge=L.getInstance(),ve=function(){function t(){}return t.prototype.startSpan=function(t,e,r){if(void 0===r&&(r=ge.active()),Boolean(null==e?void 0:e.root))return new ae;var n,o=r&&pe(r);return"object"==typeof(n=o)&&"string"==typeof n.spanId&&"string"==typeof n.traceId&&"number"==typeof n.traceFlags&&ye(o)?new ae(o):new ae},t.prototype.startActiveSpan=function(t,e,r,n){var o,i,a;if(!(arguments.length<2)){2===arguments.length?a=e:3===arguments.length?(o=e,a=r):(o=e,i=r,a=n);var u=null!=i?i:ge.active(),c=this.startSpan(t,o,u),l=fe(u,c);return ge.with(l,a,void 0,c)}},t}(),he=new ve,Re=function(){function t(t,e,r,n){this._provider=t,this.name=e,this.version=r,this.options=n}return t.prototype.startSpan=function(t,e,r){return this._getTracer().startSpan(t,e,r)},t.prototype.startActiveSpan=function(t,e,r,n){var o=this._getTracer();return Reflect.apply(o.startActiveSpan,o,arguments)},t.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):he},t}(),Se=new(function(){function t(){}return t.prototype.getTracer=function(t,e,r){return new ve},t}()),Le=function(){function t(){}return t.prototype.getTracer=function(t,e,r){var n;return null!==(n=this.getDelegateTracer(t,e,r))&&void 0!==n?n:new Re(this,t,e,r)},t.prototype.getDelegate=function(){var t;return null!==(t=this._delegate)&&void 0!==t?t:Se},t.prototype.setDelegate=function(t){this._delegate=t},t.prototype.getDelegateTracer=function(t,e,r){var n;return null===(n=this._delegate)||void 0===n?void 0:n.getTracer(t,e,r)},t}(),Pe="trace",me=function(){function t(){this._proxyTracerProvider=new Le,this.wrapSpanContext=de,this.isSpanContextValid=ye,this.deleteSpan=se,this.getSpan=ce,this.getActiveSpan=le,this.getSpanContext=pe,this.setSpan=fe,this.setSpanContext=_e}return t.getInstance=function(){return this._instance||(this._instance=new t),this._instance},t.prototype.setGlobalTracerProvider=function(t){var e=l(Pe,this._proxyTracerProvider,h.instance());return e&&this._proxyTracerProvider.setDelegate(t),e},t.prototype.getTracerProvider=function(){return f(Pe)||this._proxyTracerProvider},t.prototype.getTracer=function(t,e){return this.getTracerProvider().getTracer(t,e)},t.prototype.disable=function(){s(Pe,h.instance()),this._proxyTracerProvider=new Le},t}().getInstance(),Ae="[_0-9a-z-*/]",Ie=new RegExp("^(?:[a-z]"+Ae+"{0,255}|[a-z0-9]"+Ae+"{0,240}@[a-z]"+Ae+"{0,13})$"),Ce=/^[ -~]{0,255}[!-~]$/,be=/,|=/,Ne=function(){function t(t){this._internalState=new Map,t&&this._parse(t)}return t.prototype.set=function(t,e){var r=this._clone();return r._internalState.has(t)&&r._internalState.delete(t),r._internalState.set(t,e),r},t.prototype.unset=function(t){var e=this._clone();return e._internalState.delete(t),e},t.prototype.get=function(t){return this._internalState.get(t)},t.prototype.serialize=function(){var t=this;return this._keys().reduce(function(e,r){return e.push(r+"="+t.get(r)),e},[]).join(",")},t.prototype._parse=function(t){t.length>512||(this._internalState=t.split(",").reverse().reduce(function(t,e){var r=e.trim(),n=r.indexOf("=");if(-1!==n){var o=r.slice(0,n),i=r.slice(n+1,e.length);(function(t){return Ie.test(t)})(o)&&function(t){return Ce.test(t)&&!be.test(t)}(i)&&t.set(o,i)}return t},new Map),this._internalState.size>32&&(this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,32))))},t.prototype._keys=function(){return Array.from(this._internalState.keys()).reverse()},t.prototype._clone=function(){var e=new t;return e._internalState=new Map(this._internalState),e},t}(),we="traceparent",Me="tracestate",Ue=new RegExp("^\\s?((?!ff)[\\da-f]{2})-((?![0]{32})[\\da-f]{32})-((?![0]{16})[\\da-f]{16})-([\\da-f]{2})(-.*)?\\s?$");function De(t){var e=Ue.exec(t);return e?"00"===e[1]&&e[5]?null:{traceId:e[2],spanId:e[3],traceFlags:parseInt(e[4],16)}:null}var Be,xe,Xe=function(){function t(){}return t.prototype.inject=function(t,e,r){var n=me.getSpanContext(t);if(n&&!V(t)&&ye(n)){var o="00-"+n.traceId+"-"+n.spanId+"-0"+Number(n.traceFlags||ee.NONE).toString(16);r.set(e,we,o),n.traceState&&r.set(e,Me,n.traceState.serialize())}},t.prototype.extract=function(t,e,r){var n=r.get(e,we);if(!n)return t;var o=Array.isArray(n)?n[0]:n;if("string"!=typeof o)return t;var i=De(o);if(!i)return t;i.isRemote=!0;var a=r.get(e,Me);if(a){var u=Array.isArray(a)?a.join(","):a;i.traceState=new Ne("string"==typeof u?u:void 0)}return me.setSpanContext(t,i)},t.prototype.fields=function(){return[we,Me]},t}(),je=T("OpenTelemetry SDK Context Key RPC_METADATA");function Ge(t,e){return t.setValue(je,e)}function Ve(t){return t.deleteValue(je)}function Fe(t){return t.getValue(je)}!function(t){t.HTTP="http"}(Be||(Be={})),function(t){t[t.NOT_RECORD=0]="NOT_RECORD",t[t.RECORD=1]="RECORD",t[t.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"}(xe||(xe={}));var ke,He,Ke=function(){function t(){}return t.prototype.shouldSample=function(){return{decision:xe.NOT_RECORD}},t.prototype.toString=function(){return"AlwaysOffSampler"},t}(),We=function(){function t(){}return t.prototype.shouldSample=function(){return{decision:xe.RECORD_AND_SAMPLED}},t.prototype.toString=function(){return"AlwaysOnSampler"},t}(),Ye=function(){function t(t){var e,r,n,o;this._root=t.root,this._root||(it(new Error("ParentBasedSampler must have a root sampler configured")),this._root=new We),this._remoteParentSampled=null!==(e=t.remoteParentSampled)&&void 0!==e?e:new We,this._remoteParentNotSampled=null!==(r=t.remoteParentNotSampled)&&void 0!==r?r:new Ke,this._localParentSampled=null!==(n=t.localParentSampled)&&void 0!==n?n:new We,this._localParentNotSampled=null!==(o=t.localParentNotSampled)&&void 0!==o?o:new Ke}return t.prototype.shouldSample=function(t,e,r,n,o,i){var a=me.getSpanContext(t);return a&&ye(a)?a.isRemote?a.traceFlags&ee.SAMPLED?this._remoteParentSampled.shouldSample(t,e,r,n,o,i):this._remoteParentNotSampled.shouldSample(t,e,r,n,o,i):a.traceFlags&ee.SAMPLED?this._localParentSampled.shouldSample(t,e,r,n,o,i):this._localParentNotSampled.shouldSample(t,e,r,n,o,i):this._root.shouldSample(t,e,r,n,o,i)},t.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()+"}"},t}(),ze=function(){function t(t){void 0===t&&(t=0),this._ratio=t,this._ratio=this._normalize(t),this._upperBound=Math.floor(4294967295*this._ratio)}return t.prototype.shouldSample=function(t,e){return{decision:Oe(e)&&this._accumulate(e)=1?1:t<=0?0:t},t.prototype._accumulate=function(t){for(var e=0,r=0;r>>0}return e},t}(),Ze="[object Object]",Je="[object Null]",$e="[object Undefined]",Qe=Function.prototype.toString,qe=Qe.call(Object),tr=(ke=Object.getPrototypeOf,He=Object,function(t){return ke(He(t))}),er=Object.prototype,rr=er.hasOwnProperty,nr=Symbol?Symbol.toStringTag:void 0,or=er.toString;function ir(t){if(!function(t){return null!=t&&"object"==typeof t}(t)||function(t){return null==t?void 0===t?$e:Je:nr&&nr in Object(t)?function(t){var e=rr.call(t,nr),r=t[nr],n=!1;try{t[nr]=void 0,n=!0}catch(t){}var o=or.call(t);return n&&(e?t[nr]=r:delete t[nr]),o}(t):function(t){return or.call(t)}(t)}(t)!==Ze)return!1;var e=tr(t);if(null===e)return!0;var r=rr.call(e,"constructor")&&e.constructor;return"function"==typeof r&&r instanceof r&&Qe.call(r)===qe}var ar=20;function ur(){for(var t=[],e=0;e0;)r=lr(r,t.shift(),0,n);return r}function cr(t){return sr(t)?t.slice():t}function lr(t,e,r,n){var o;if(void 0===r&&(r=0),!(r>ar)){if(r++,Er(t)||Er(e)||_r(e))o=cr(e);else if(sr(t)){if(o=t.slice(),sr(e))for(var i=0,a=e.length;i=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};function vr(t,e){return"string"==typeof e?t===e:!!t.match(e)}function hr(t,e){var r,n;if(!e)return!1;try{for(var o=gr(e),i=o.next();!i.done;i=o.next())if(vr(t,i.value))return!0}catch(t){r={error:t}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return!1}function Rr(t){return"function"==typeof t&&"function"==typeof t.__original&&"function"==typeof t.__unwrap&&!0===t.__wrapped}var Sr=function(){function t(){var t=this;this._promise=new Promise(function(e,r){t._resolve=e,t._reject=r})}return Object.defineProperty(t.prototype,"promise",{get:function(){return this._promise},enumerable:!1,configurable:!0}),t.prototype.resolve=function(t){this._resolve(t)},t.prototype.reject=function(t){this._reject(t)},t}(),Lr=function(){function t(t,e){this._callback=t,this._that=e,this._isCalled=!1,this._deferred=new Sr}return Object.defineProperty(t.prototype,"isCalled",{get:function(){return this._isCalled},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"promise",{get:function(){return this._deferred.promise},enumerable:!1,configurable:!0}),t.prototype.call=function(){for(var t,e=this,r=[],n=0;n0)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}(r),!1))).then(function(t){return e._deferred.resolve(t)},function(t){return e._deferred.reject(t)})}catch(t){this._deferred.reject(t)}}return this._deferred.promise},t}(),Pr=L.getInstance(),mr={getKeyPairs:K,serializeKeyPairs:H,parseKeyPairsIntoRecord:function(t){return"string"!=typeof t||0===t.length?{}:t.split(F).map(function(t){return W(t)}).filter(function(t){return void 0!==t&&t.value.length>0}).reduce(function(t,e){return t[e.key]=e.value,t},{})},parsePairKeyValue:W},Ar={_export:function(t,e){return new Promise(function(r){Pr.with(j(Pr.active()),function(){t.export(e,function(t){r(t)})})})}};module.exports=e})(); \ No newline at end of file diff --git a/packages/node_modules/@opentelemetry/resources.js b/packages/node_modules/@opentelemetry/resources.js new file mode 100644 index 00000000000..23f156a83a3 --- /dev/null +++ b/packages/node_modules/@opentelemetry/resources.js @@ -0,0 +1 @@ +(()=>{"use strict";var e={454:(e,t,r)=>{r.d(t,{D:()=>c});var n=r(9896),o=r(2733),i=r(8758),a=function(e,t,r,n){return new(r||(r=Promise))(function(o,i){function a(e){try{c(n.next(e))}catch(e){i(e)}}function u(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(a,u)}c((n=n.apply(e,t||[])).next())})},u=function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]{e.exports=require("process")},1275:(e,t,r)=>{r.d(t,{V:()=>o});var n=r(6051),o=function(){function e(e){this._namespace=e.namespace||"DiagComponentLogger"}return e.prototype.debug=function(){for(var e=[],t=0;t0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}(r),!1))}},1568:(e,t,r)=>{r.d(t,{D:()=>u});var n=r(2733),o=r(8758),i=function(e,t,r,n){return new(r||(r=Promise))(function(o,i){function a(e){try{c(n.next(e))}catch(e){i(e)}}function u(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(a,u)}c((n=n.apply(e,t||[])).next())})},a=function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]{r.d(t,{c:()=>o});var n=r(6733);function o(e,t){function r(r,n){var o=t[r];return"function"==typeof o&&e>=n?o.bind(t):function(){}}return en.u.ALL&&(e=n.u.ALL),t=t||{},{error:r("error",n.u.ERROR),warn:r("warn",n.u.WARN),info:r("info",n.u.INFO),debug:r("debug",n.u.DEBUG),verbose:r("verbose",n.u.VERBOSE)}}},2408:(e,t,r)=>{r.d(t,{D:()=>a});var n=r(8758),o=function(e,t,r,n){return new(r||(r=Promise))(function(o,i){function a(e){try{c(n.next(e))}catch(e){i(e)}}function u(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(a,u)}c((n=n.apply(e,t||[])).next())})},i=function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]{r.d(t,{q:()=>o});const n=require("child_process");var o=require("util").promisify(n.exec)},2910:(e,t,r)=>{r.d(t,{x:()=>n});var n="1.9.0"},5234:(e,t,r)=>{r.d(t,{X:()=>n});var n="object"==typeof globalThis?globalThis:global},5726:(e,t,r)=>{r.d(t,{K:()=>u});var n=r(1275),o=r(1994),i=r(6733),a=r(6051),u=function(){function e(){function e(e){return function(){for(var t=[],r=0;r0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}(t),!1))}}var t=this;t.setLogger=function(e,r){var n,u,c;if(void 0===r&&(r={logLevel:i.u.INFO}),e===t){var s=new Error("Cannot use diag as the logger for itself. Please use a DiagLogger implementation like ConsoleDiagLogger or a custom implementation");return t.error(null!==(n=s.stack)&&void 0!==n?n:s.message),!1}"number"==typeof r&&(r={logLevel:r});var l=(0,a.mS)("diag"),E=(0,o.c)(null!==(u=r.logLevel)&&void 0!==u?u:i.u.INFO,e);if(l&&!r.suppressOverrideMessage){var f=null!==(c=(new Error).stack)&&void 0!==c?c:"";l.warn("Current logger will be overwritten from "+f),E.warn("Current logger will overwrite one already registered from "+f)}return(0,a.$G)("diag",E,t,!0)},t.disable=function(){(0,a.kv)("diag",t)},t.createComponentLogger=function(e){return new n.V(e)},t.verbose=e("verbose"),t.debug=e("debug"),t.info=e("info"),t.warn=e("warn"),t.error=e("error")}return e.instance=function(){return this._instance||(this._instance=new e),this._instance},e}()},6051:(e,t,r)=>{r.d(t,{$G:()=>s,kv:()=>E,mS:()=>l});var n=r(5234),o=r(2910),i=r(8336),a=o.x.split(".")[0],u=Symbol.for("opentelemetry.js.api."+a),c=n.X;function s(e,t,r,n){var i;void 0===n&&(n=!1);var a=c[u]=null!==(i=c[u])&&void 0!==i?i:{version:o.x};if(!n&&a[e]){var s=new Error("@opentelemetry/api: Attempted duplicate registration of API: "+e);return r.error(s.stack||s.message),!1}return a.version!==o.x?(s=new Error("@opentelemetry/api: Registration of version v"+a.version+" for "+e+" does not match previously registered API v"+o.x),r.error(s.stack||s.message),!1):(a[e]=t,r.debug("@opentelemetry/api: Registered a global for "+e+" v"+o.x+"."),!0)}function l(e){var t,r,n=null===(t=c[u])||void 0===t?void 0:t.version;if(n&&(0,i.$)(n))return null===(r=c[u])||void 0===r?void 0:r[e]}function E(e,t){t.debug("@opentelemetry/api: Unregistering a global for "+e+" v"+o.x+".");var r=c[u];r&&delete r[e]}},6733:(e,t,r)=>{var n;r.d(t,{u:()=>n}),function(e){e[e.NONE=0]="NONE",e[e.ERROR=30]="ERROR",e[e.WARN=50]="WARN",e[e.INFO=60]="INFO",e[e.DEBUG=70]="DEBUG",e[e.VERBOSE=80]="VERBOSE",e[e.ALL=9999]="ALL"}(n||(n={}))},7349:(e,t,r)=>{r.d(t,{D:()=>c});var n=r(932),o=r(2733),i=r(8758),a=function(e,t,r,n){return new(r||(r=Promise))(function(o,i){function a(e){try{c(n.next(e))}catch(e){i(e)}}function u(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(a,u)}c((n=n.apply(e,t||[])).next())})},u=function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]{r.d(t,{D:()=>c});var n=r(9896),o=r(8758),i=function(e,t,r,n){return new(r||(r=Promise))(function(o,i){function a(e){try{c(n.next(e))}catch(e){i(e)}}function u(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(a,u)}c((n=n.apply(e,t||[])).next())})},a=function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]=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 c(){return i(this,void 0,void 0,function(){var e,t,r,i,c,s,l,E;return a(this,function(a){switch(a.label){case 0:e=["/etc/machine-id","/var/lib/dbus/machine-id"],a.label=1;case 1:a.trys.push([1,8,9,10]),t=u(e),r=t.next(),a.label=2;case 2:if(r.done)return[3,7];i=r.value,a.label=3;case 3:return a.trys.push([3,5,,6]),[4,n.promises.readFile(i,{encoding:"utf8"})];case 4:return[2,a.sent().trim()];case 5:return c=a.sent(),o.s.debug("error reading machine id: "+c),[3,6];case 6:return r=t.next(),[3,2];case 7:return[3,10];case 8:return s=a.sent(),l={error:s},[3,10];case 9:try{r&&!r.done&&(E=t.return)&&E.call(t)}finally{if(l)throw l.error}return[7];case 10:return[2,""]}})})}},8336:(e,t,r)=>{r.d(t,{$:()=>i});var n=r(2910),o=/^(\d+)\.(\d+)\.(\d+)(-(.+))?$/,i=function(e){var t=new Set([e]),r=new Set,n=e.match(o);if(!n)return function(){return!1};var i=+n[1],a=+n[2],u=+n[3];if(null!=n[4])return function(t){return t===e};function c(e){return r.add(e),!1}function s(e){return t.add(e),!0}return function(e){if(t.has(e))return!0;if(r.has(e))return!1;var n=e.match(o);if(!n)return c(e);var l=+n[1],E=+n[2],f=+n[3];return null!=n[4]||i!==l?c(e):0===i?a===E&&u<=f?s(e):c(e):a<=E?s(e):c(e)}}(n.x)},8758:(e,t,r)=>{r.d(t,{s:()=>n});var n=r(5726).K.instance()},9896:e=>{e.exports=require("fs")}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var i=t[n]={exports:{}};return e[n](i,i.exports,r),i.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};r.r(n),r.d(n,{Resource:()=>p,browserDetector:()=>S,browserDetectorSync:()=>P,defaultServiceName:()=>T,detectResources:()=>oe,detectResourcesSync:()=>ie,envDetector:()=>j,envDetectorSync:()=>F,hostDetector:()=>L,hostDetectorSync:()=>R,osDetector:()=>q,osDetectorSync:()=>Y,processDetector:()=>Q,processDetectorSync:()=>$,serviceInstanceIdDetectorSync:()=>te});var o,i=r(8758),a="process.runtime.name",u="process.runtime.version",c="process.runtime.description",s="service.name",l="telemetry.sdk.name",E="telemetry.sdk.language",f="telemetry.sdk.version",_=((o={})[l]="opentelemetry",o[a]="node",o[E]="nodejs",o[f]="1.30.1",o);function T(){return"unknown_service:"+process.argv0}var O=function(){return O=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}(e,2),i=o[0],a=o[1];return O(O(O(O({},n._syncAttributes),i),null!==(r=t._syncAttributes)&&void 0!==r?r:t.attributes),a)});return new e(o,i)},e.EMPTY=new e({}),e}();const d=require("os");var v;switch(r(932).platform){case"darwin":v=r(1568).D;break;case"linux":v=r(7917).D;break;case"freebsd":v=r(454).D;break;case"win32":v=r(7349).D;break;default:v=r(2408).D}var y,h=function(){function e(){}return e.prototype.detect=function(e){var t,r=((t={})["host.name"]=(0,d.hostname)(),t["host.arch"]=function(e){switch(e){case"arm":return"arm32";case"ppc":return"ppc32";case"x64":return"amd64";default:return e}}((0,d.arch)()),t);return new p(r,this._getAsyncAttributes())},e.prototype._getAsyncAttributes=function(){return v().then(function(e){var t={};return e&&(t["host.id"]=e),t})},e}(),R=new h,L=new(function(){function e(){}return e.prototype.detect=function(e){return Promise.resolve(R.detect(e))},e}()),b=function(){return b=Object.assign||function(e){for(var t,r=1,n=arguments.length;r-1}var m=["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 N(e){return m.indexOf(e)>-1}var C=["OTEL_NO_PATCH_MODULES","OTEL_PROPAGATORS","OTEL_SEMCONV_STABILITY_OPT_IN"];function U(e){return C.indexOf(e)>-1}var M=1/0,x={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:g.u.INFO,OTEL_NO_PATCH_MODULES:[],OTEL_PROPAGATORS:["tracecontext","baggage"],OTEL_RESOURCE_ATTRIBUTES:"",OTEL_SERVICE_NAME:"",OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT:M,OTEL_ATTRIBUTE_COUNT_LIMIT:128,OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT:M,OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT:128,OTEL_LOGRECORD_ATTRIBUTE_VALUE_LENGTH_LIMIT:M,OTEL_LOGRECORD_ATTRIBUTE_COUNT_LIMIT:128,OTEL_SPAN_EVENT_COUNT_LIMIT:128,OTEL_SPAN_LINK_COUNT_LIMIT:128,OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT:128,OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT:128,OTEL_TRACES_EXPORTER:"",OTEL_TRACES_SAMPLER:y.ParentBasedAlwaysOn,OTEL_TRACES_SAMPLER_ARG:"",OTEL_LOGS_EXPORTER:"",OTEL_EXPORTER_OTLP_INSECURE:"",OTEL_EXPORTER_OTLP_TRACES_INSECURE:"",OTEL_EXPORTER_OTLP_METRICS_INSECURE:"",OTEL_EXPORTER_OTLP_LOGS_INSECURE:"",OTEL_EXPORTER_OTLP_CERTIFICATE:"",OTEL_EXPORTER_OTLP_TRACES_CERTIFICATE:"",OTEL_EXPORTER_OTLP_METRICS_CERTIFICATE:"",OTEL_EXPORTER_OTLP_LOGS_CERTIFICATE:"",OTEL_EXPORTER_OTLP_COMPRESSION:"",OTEL_EXPORTER_OTLP_TRACES_COMPRESSION:"",OTEL_EXPORTER_OTLP_METRICS_COMPRESSION:"",OTEL_EXPORTER_OTLP_LOGS_COMPRESSION:"",OTEL_EXPORTER_OTLP_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_TRACES_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_METRICS_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_LOGS_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_TRACES_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_METRICS_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_LOGS_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_TRACES_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_METRICS_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_LOGS_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE:"cumulative",OTEL_SEMCONV_STABILITY_OPT_IN:[]};function X(e,t,r){if(void 0!==r[e]){var n=String(r[e]);t[e]="true"===n.toLowerCase()}}function D(e,t,r,n,o){if(void 0===n&&(n=-1/0),void 0===o&&(o=1/0),void 0!==r[e]){var i=Number(r[e]);isNaN(i)||(t[e]=io?o:i)}}function B(e,t,r,n){void 0===n&&(n=",");var o=r[e];"string"==typeof o&&(t[e]=o.split(n).map(function(e){return e.trim()}))}var G={ALL:g.u.ALL,VERBOSE:g.u.VERBOSE,DEBUG:g.u.DEBUG,INFO:g.u.INFO,WARN:g.u.WARN,ERROR:g.u.ERROR,NONE:g.u.NONE};function k(e,t,r){var n=r[e];if("string"==typeof n){var o=G[n.toUpperCase()];null!=o&&(t[e]=o)}}var V=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},H=function(){function e(){this._MAX_LENGTH=255,this._COMMA_SEPARATOR=",",this._LABEL_KEY_VALUE_SPLITTER="=",this._ERROR_MESSAGE_INVALID_CHARS="should be a ASCII string with a length greater than 0 and not exceed "+this._MAX_LENGTH+" characters.",this._ERROR_MESSAGE_INVALID_VALUE="should be a ASCII string with a length not exceed "+this._MAX_LENGTH+" characters."}return e.prototype.detect=function(e){var t,r={},n=(t=function(e){var t={};for(var r in x){var n=r;if("OTEL_LOG_LEVEL"===n)k(n,t,e);else if(w(n))X(n,t,e);else if(N(n))D(n,t,e);else if(U(n))B(n,t,e);else{var o=e[n];null!=o&&(t[n]=String(o))}}return t}(process.env),Object.assign({},x,t)),o=n.OTEL_RESOURCE_ATTRIBUTES,a=n.OTEL_SERVICE_NAME;if(o)try{var u=this._parseResourceAttributes(o);Object.assign(r,u)}catch(e){i.s.debug("EnvDetector failed: "+e.message)}return a&&(r[s]=a),new p(r)},e.prototype._parseResourceAttributes=function(e){var t,r;if(!e)return{};var n={},o=e.split(this._COMMA_SEPARATOR,-1);try{for(var i=function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)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.")}(o),a=i.next();!a.done;a=i.next()){var u=a.value.split(this._LABEL_KEY_VALUE_SPLITTER,-1);if(2===u.length){var c=V(u,2),s=c[0],l=c[1];if(s=s.trim(),l=l.trim().split(/^"|"$/).join(""),!this._isValidAndNotEmpty(s))throw new Error("Attribute key "+this._ERROR_MESSAGE_INVALID_CHARS);if(!this._isValid(l))throw new Error("Attribute value "+this._ERROR_MESSAGE_INVALID_VALUE);n[s]=decodeURIComponent(l)}}}catch(e){t={error:e}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}return n},e.prototype._isValid=function(e){return e.length<=this._MAX_LENGTH&&this._isBaggageOctetString(e)},e.prototype._isBaggageOctetString=function(e){for(var t=0;t126)return!1}return!0},e.prototype._isValidAndNotEmpty=function(e){return e.length>0&&this._isValid(e)},e}(),F=new H,j=new(function(){function e(){}return e.prototype.detect=function(e){return Promise.resolve(F.detect(e))},e}()),K=function(){function e(){}return e.prototype.detect=function(e){var t,r=((t={})["os.type"]=function(e){switch(e){case"sunos":return"solaris";case"win32":return"windows";default:return e}}((0,d.platform)()),t["os.version"]=(0,d.release)(),t);return new p(r)},e}(),Y=new K,q=new(function(){function e(){}return e.prototype.detect=function(e){return Promise.resolve(Y.detect(e))},e}()),Z=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},W=function(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o1&&(r["process.command"]=process.argv[1]);try{var n=d.userInfo();r["process.owner"]=n.username}catch(e){i.s.debug("error obtaining process owner: "+e)}return new p(r)},e}(),$=new J,Q=new(function(){function e(){}return e.prototype.detect=function(e){return Promise.resolve($.detect(e))},e}());const z=require("crypto");var ee=function(){function e(){}return e.prototype.detect=function(e){var t,r=((t={})["service.instance.id"]=(0,z.randomUUID)(),t);return new p(r)},e}(),te=new ee,re=function(e,t,r,n){return new(r||(r=Promise))(function(o,i){function a(e){try{c(n.next(e))}catch(e){i(e)}}function u(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(a,u)}c((n=n.apply(e,t||[])).next())})},ne=function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]0){var t=JSON.stringify(e.attributes,null,4);i.s.verbose(t)}})};module.exports=n})(); \ No newline at end of file diff --git a/packages/node_modules/crypto-randomuuid.js b/packages/node_modules/crypto-randomuuid.js new file mode 100644 index 00000000000..c9698e8423b --- /dev/null +++ b/packages/node_modules/crypto-randomuuid.js @@ -0,0 +1 @@ +(()=>{"use strict";var e={2613:e=>{e.exports=require("assert")},4487:(e,t,o)=>{const n=o(6982);e.exports="function"==typeof n.randomUUID?n.randomUUID:o(4908)},4908:(e,t,o)=>{const n=o(6982),{validateBoolean:r,validateObject:s,codes:{ERR_OPERATION_FAILED:i}}=o(7352),{randomFillSync:c}=n;function a(e){const t=Buffer.alloc(e);return c(t)}let l,u,f,p=0;function h(e,t=0){const o=function(){if(void 0===f){f=new Array(256);for(let e=0;e{e.exports=require("crypto")},7352:(e,t,o)=>{const n=o(2613),r=o(9023),s=["string","function","number","object","Function","Object","boolean","bigint","symbol"];class i extends TypeError{constructor(e){super(`Operation failed: ${e}`),this.code=this.constructor.name,Object.defineProperties(this,{toString:{value(){return`${this.name} [${this.code}]: ${this.message}`},enumerable:!1,writable:!0,configurable:!0}})}}class c extends TypeError{constructor(e,t,o){super(),n("string"==typeof e,"'name' must be a string"),Array.isArray(t)||(t=[t]);let i="The ";if(e.endsWith(" argument"))i+=`${e} `;else{const t=e.includes(".")?"property":"argument";i+=`"${e}" ${t} `}i+="must be ";const c=[],a=[],l=[];for(const e of t)n("string"==typeof e,"All expected entries have to be of type string"),s.includes(e)?c.push(e.toLowerCase()):classRegExp.test(e)?a.push(e):(n("object"!==e,'The value "object" should be written as "Object"'),l.push(e));if(a.length>0){const e=c.indexOf("object");-1!==e&&(c.splice(e,1),a.push("Object"))}if(c.length>0){if(c.length>2){const e=c.pop();i+=`one of type ${c.join(", ")}, or ${e}`}else 2===c.length?i+=`one of type ${c[0]} or ${c[1]}`:i+=`of type ${c[0]}`;(a.length>0||l.length>0)&&(i+=" or ")}if(a.length>0){if(a.length>2){const e=a.pop();i+=`an instance of ${a.join(", ")}, or ${e}`}else i+=`an instance of ${a[0]}`,2===a.length&&(i+=` or ${a[1]}`);l.length>0&&(i+=" or ")}if(l.length>0)if(l.length>2){const e=l.pop();i+=`one of ${l.join(", ")}, or ${e}`}else 2===l.length?i+=`one of ${l[0]} or ${l[1]}`:(l[0].toLowerCase()!==l[0]&&(i+="an "),i+=`${l[0]}`);if(null==o)i+=`. Received ${o}`;else if("function"==typeof o&&o.name)i+=`. Received function ${o.name}`;else if("object"==typeof o)o.constructor&&o.constructor.name?i+=`. Received an instance of ${o.constructor.name}`:i+=`. Received ${r.inspect(o,{depth:-1})}`;else{let e=r.inspect(o,{colors:!1});e.length>25&&(e=`${e.slice(0,25)}...`),i+=`. Received type ${typeof o} (${e})`}this.code=this.constructor.name,Object.defineProperties(this,{message:{value:i,enumerable:!1,writable:!0,configurable:!0},toString:{value(){return`${this.name} [${this.code}]: ${this.message}`},enumerable:!1,writable:!0,configurable:!0}})}}e.exports={validateBoolean:function(e,t){if("boolean"!=typeof e)throw new c(t,"boolean",e)},validateObject:function(e,t,{nullable:o=!1,allowArray:n=!1,allowFunction:r=!1}={}){if(!o&&null===e||!n&&Array.isArray(e)||"object"!=typeof e&&(!r||"function"!=typeof e))throw new c(t,"Object",e)},codes:{ERR_OPERATION_FAILED:i}}},9023:e=>{e.exports=require("util")}},t={},o=function o(n){var r=t[n];if(void 0!==r)return r.exports;var s=t[n]={exports:{}};return e[n](s,s.exports,o),s.exports}(4487);module.exports=o})(); \ No newline at end of file diff --git a/packages/node_modules/dc-polyfill.js b/packages/node_modules/dc-polyfill.js new file mode 100644 index 00000000000..f2d245c1e8f --- /dev/null +++ b/packages/node_modules/dc-polyfill.js @@ -0,0 +1 @@ +(()=>{var t={730:(t,e,r)=>{const s=function(){},{ObjectDefineProperty:n,ObjectGetOwnPropertyDescriptor:o}=r(6884);t.exports=function(t){const e=t.channel,r=new WeakSet,c={...t};return c.channel=function(){const t=e.apply(this,arguments);return r.has(t)||(e(arguments[0]).subscribe(s),r.add(t),o(t,"hasSubscribers")||n(t,"hasSubscribers",{get:function(){const e=t._subscribers;return e.length>1||(t._stores.size>0||!(e.length<1)&&e[0]!==s)}})),t},c}},1247:(t,e,r)=>{const s=r(6427);r(6884);let n=s.hasDiagnosticsChannel()?r(1637):r(4285);s.hasGarbageCollectionBug()&&(n=r(730)(n)),s.hasTopSubscribeUnsubscribe()||(n=r(1353)(n)),s.hasChUnsubscribeReturn()||(n=r(8075)(n)),s.hasChannelStoreMethods()||(n=r(3671)(n)),s.hasTracingChannel()||(n=r(8879)(n)),s.hasSyncUnsubscribeBug()&&(n=r(5591)(n)),s.hasTracingChannelHasSubscribers()||(n=r(3308)(n)),t.exports=n},1353:t=>{t.exports=function(t){const e={...t};return e.subscribe=(t,r)=>e.channel(t).subscribe(r),e.unsubscribe=(t,r)=>e.channel(t).unsubscribe(r),e}},1637:t=>{"use strict";t.exports=require("diagnostics_channel")},1857:(t,e,r)=>{const s=r(9023),{ObjectDefineProperties:n}=r(6884);class o extends TypeError{constructor(t,e){if(super(),null==e)t+=`. Received ${e}`;else if("function"==typeof e&&e.name)t+=`. Received function ${e.name}`;else if("object"==typeof e)e.constructor&&e.constructor.name?t+=`. Received an instance of ${e.constructor.name}`:t+=`. Received ${s.inspect(e,{depth:-1})}`;else{let r=s.inspect(e,{colors:!1});r.length>25&&(r=`${r.slice(0,25)}...`),t+=`. Received type ${typeof e} (${r})`}this.code=this.constructor.name,n(this,{message:{value:t,enumerable:!1,writable:!0,configurable:!0},toString:{value(){return`${this.name} [${this.code}]: ${this.message}`},enumerable:!1,writable:!0,configurable:!0}})}}t.exports={ERR_INVALID_ARG_TYPE:o}},3308:(t,e,r)=>{const{ObjectDefineProperty:s,ObjectGetPrototypeOf:n}=r(6884);t.exports=function(t){const e={...t};{const t=e.tracingChannel("dc-polyfill-faux"),r=n(t);s(r,"hasSubscribers",{get:function(){return this.start.hasSubscribers||this.end.hasSubscribers||this.asyncStart.hasSubscribers||this.asyncEnd.hasSubscribers||this.error.hasSubscribers},configurable:!0})}return e}},3671:(t,e,r)=>{const{ReflectApply:s,ObjectDefineProperty:n,ObjectGetOwnPropertyDescriptor:o}=r(6884);function c(t,e,r,s=i){return()=>{let n;try{n=s(e)}catch(t){return process.nextTick(()=>{throw t}),r()}return t.run(n,r)}}function i(t){return t}t.exports=function(t){const e=new WeakSet,r=t.channel,i={...t};return i.channel=function(){const t=r.apply(this,arguments);return e.has(t)||(t._stores=new Map,t.bindStore=function(t,e){this._stores.set(t,e)},t.unbindStore=function(t){return!!this._stores.has(t)&&(this._stores.delete(t),!0)},t.runStores=function(t,e,r,...n){let o=()=>(this.publish(t),s(e,r,n));for(const e of this._stores.entries()){const r=e[0],s=e[1];o=c(r,t,o,s)}return o()},o(t,"hasSubscribers")||n(t,"hasSubscribers",{get:function(){return this.__proto__.hasSubscribers||t._stores.size>0}}),e.add(t)),t},i}},4028:(t,e,r)=>{const{ObjectDefineProperty:s,SymbolFor:n}=r(6884),o=n("dc-polyfill-v1");process[o]||s(process,o,{configurable:!1,enumerable:!1,writable:!1,value:{}}),t.exports=process[o]},4285:(t,e,r)=>{"use strict";const{ObjectSetPrototypeOf:s,ObjectGetPrototypeOf:n}=r(6884),{ERR_INVALID_ARG_TYPE:o}=r(1857),c=r(4028);class i{subscribe(t){if("function"!=typeof t)throw new o('The "subscription" argument must be of type function',t);this._subscribers.push(t)}unsubscribe(t){const e=this._subscribers.indexOf(t);return-1!==e&&(this._subscribers.splice(e,1),this._subscribers.length||s(this,u.prototype),!0)}get hasSubscribers(){return!0}publish(t){for(let e=0;e{throw t})}}}class u{constructor(t){this._subscribers=void 0,this.name=t}static[Symbol.hasInstance](t){const e=n(t);return e===u.prototype||e===i.prototype}subscribe(t){s(this,i.prototype),this._subscribers=[],this.subscribe(t)}unsubscribe(){return!1}get hasSubscribers(){return!1}publish(){}}t.exports={channel:function(t){const e=c[t];if(e)return e;if("string"!=typeof t&&"symbol"!=typeof t)throw new o('The "channel" argument must be one of type string or symbol',t);return c[t]=new u(t)},hasSubscribers:function(t){const e=c[t];return!!e&&e.hasSubscribers},Channel:u,deleteChannel:function(t){return!!c[t]&&(c[t]=null,!0)}}},5591:t=>{t.exports=function(t){const e=new WeakSet,r=t.channel,s={...t};return s.channel=function(){const t=r.apply(this,arguments);if(e.has(t))return t;const s=t.publish;return t.publish=function(){return t._subscribers||(t._subscribers=[]),s.apply(t,arguments)},t},s}},6427:t=>{const[e,r,s]=process.versions.node.split(".").map(Number);function n(){return e>20||e>=20&&r>=6}function o(){return e>=16||15===e&&r>=1||14===e&&r>=17}t.exports.MAJOR=e,t.exports.MINOR=r,t.exports.PATCH=s,t.exports.hasFullSupport=n,t.exports.hasTracingChannel=function(){return e>=20||18===e&&r>=19},t.exports.hasDiagnosticsChannel=o,t.exports.hasTopSubscribeUnsubscribe=function(){return e>=20||16===e&&r>=17||18===e&&r>=7},t.exports.hasGarbageCollectionBug=function(){return o()&&!n()},t.exports.hasChannelStoreMethods=function(){return e>=20||19===e&&r>=9},t.exports.hasChUnsubscribeReturn=function(){return e>=18||14===e&&r>=19||16===e&&r>=14||17===e&&r>=1},t.exports.hasSyncUnsubscribeBug=function(){return 20===e&&r<=5},t.exports.hasTracingChannelHasSubscribers=function(){return e>=22||20==e&&r>=13}},6884:t=>{const e=t=>(...e)=>t.call(...e),r=Reflect.apply,s=Promise.reject.bind(Promise),n=Promise.resolve,o=e(Promise.prototype.then),c=e(Array.prototype.splice),i=e(Array.prototype.at||function(t){if((t=Math.trunc(t)||0)<0&&(t+=this.length),!(t<0||t>=this.length))return this[t]}),u=Object.defineProperty,a=Object.defineProperties,b=Object.getOwnPropertyDescriptor,h=Object.getPrototypeOf,p=Object.setPrototypeOf,l=Symbol.for;t.exports={ReflectApply:r,PromiseReject:s,PromiseResolve:n,PromisePrototypeThen:o,ArrayPrototypeSplice:c,ArrayPrototypeAt:i,ObjectDefineProperty:u,ObjectDefineProperties:a,ObjectGetOwnPropertyDescriptor:b,ObjectGetPrototypeOf:h,ObjectSetPrototypeOf:p,SymbolFor:l}},8075:(t,e,r)=>{const{ObjectGetPrototypeOf:s}=r(6884);t.exports=function(t){const e=new WeakSet,r=t.channel,n={...t};return n.channel=function(){const t=r.apply(this,arguments);return e.has(t)||(t.unsubscribe=function(){delete t.unsubscribe;const e=this._subscribers.length;return s(t).unsubscribe.apply(this,arguments),this._subscribers.length{const{ReflectApply:s,PromiseReject:n,PromiseResolve:o,PromisePrototypeThen:c,ArrayPrototypeSplice:i,ArrayPrototypeAt:u}=r(6884),{ERR_INVALID_ARG_TYPE:a}=r(1857),b=["start","end","asyncStart","asyncEnd","error"];t.exports=function(t){const{channel:e}=t,r={...t};class h{constructor(t){if("string"==typeof t)this.start=e(`tracing:${t}:start`),this.end=e(`tracing:${t}:end`),this.asyncStart=e(`tracing:${t}:asyncStart`),this.asyncEnd=e(`tracing:${t}:asyncEnd`),this.error=e(`tracing:${t}:error`);else{if("object"!=typeof t)throw new a("nameOrChannels",["string","object","Channel"],t);{const{start:e,end:r,asyncStart:s,asyncEnd:n,error:o}=t;this.start=e,this.end=r,this.asyncStart=s,this.asyncEnd=n,this.error=o}}}subscribe(t){for(const e of b)t[e]&&this[e]&&this[e].subscribe(t[e])}unsubscribe(t){let e=!0;for(const r of b)t[r]&&(this[r]&&this[r].unsubscribe(t[r])||(e=!1));return e}traceSync(t,e={},r,...n){const{start:o,end:c,error:i}=this;return o.runStores(e,()=>{try{const o=s(t,r,n);return e.result=o,o}catch(t){throw e.error=t,i.publish(e),t}finally{c.publish(e)}})}tracePromise(t,e={},r,...i){const{start:u,end:a,asyncStart:b,asyncEnd:h,error:p}=this;function l(t){return e.error=t,p.publish(e),b.publish(e),h.publish(e),n(t)}function f(t){return e.result=t,b.publish(e),h.publish(e),t}return u.runStores(e,()=>{try{let e=s(t,r,i);return e instanceof Promise||(e=o(e)),c(e,f,l)}catch(t){throw e.error=t,p.publish(e),t}finally{a.publish(e)}})}traceCallback(t,e=-1,r={},n,...o){const{start:c,end:b,asyncStart:h,asyncEnd:p,error:l}=this,f=u(o,e);if("function"!=typeof f)throw new a("callback",["function"],f);return i(o,e,1,function(t,e){t?(r.error=t,l.publish(r)):r.result=e,h.runStores(r,()=>{try{if(f)return s(f,this,arguments)}finally{p.publish(r)}})}),c.runStores(r,()=>{try{return s(t,n,o)}catch(t){throw r.error=t,l.publish(r),t}finally{b.publish(r)}})}}return r.tracingChannel=function(t){return new h(t)},r}},9023:t=>{"use strict";t.exports=require("util")}},e={},r=function r(s){var n=e[s];if(void 0!==n)return n.exports;var o=e[s]={exports:{}};return t[s](o,o.exports,r),o.exports}(1247);module.exports=r})(); \ No newline at end of file diff --git a/packages/node_modules/escape-string-regexp.js b/packages/node_modules/escape-string-regexp.js new file mode 100644 index 00000000000..41cfd73f26b --- /dev/null +++ b/packages/node_modules/escape-string-regexp.js @@ -0,0 +1 @@ +(()=>{"use strict";var e={d:(r,t)=>{for(var o in t)e.o(t,o)&&!e.o(r,o)&&Object.defineProperty(r,o,{enumerable:!0,get:t[o]})},o:(e,r)=>Object.prototype.hasOwnProperty.call(e,r),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},r={};function t(e){if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}e.r(r),e.d(r,{default:()=>t}),module.exports=r})(); \ No newline at end of file diff --git a/packages/node_modules/ignore.js b/packages/node_modules/ignore.js new file mode 100644 index 00000000000..be3cc1d2a1b --- /dev/null +++ b/packages/node_modules/ignore.js @@ -0,0 +1 @@ +(()=>{var t={2535:t=>{function e(t){return Array.isArray(t)?t:[t]}const r=/^\s+$/,s=/(?:[^\\]|^)\\$/,i=/^\\!/,n=/^\\#/,o=/\r?\n/g,h=/^\.{0,2}\/|^\.{1,2}$/,a=/\/$/,c="/";let l="node-ignore";"undefined"!=typeof Symbol&&(l=Symbol.for("node-ignore"));const u=l,d=(t,e,r)=>(Object.defineProperty(t,e,{value:r}),r),g=/([0-z])-([0-z])/g,p=()=>!1,_=[[/^\uFEFF/,()=>""],[/((?:\\\\)*?)(\\?\s+)$/,(t,e,r)=>e+(0===r.indexOf("\\")?" ":"")],[/(\\+?)\s/g,(t,e)=>{const{length:r}=e;return e.slice(0,r-r%2)+" "}],[/[\\$.|*+(){^]/g,t=>`\\${t}`],[/(?!\\)\?/g,()=>"[^/]"],[/^\//,()=>"^"],[/\//g,()=>"\\/"],[/^\^*\\\*\\\*\\\//,()=>"^(?:.*\\/)?"],[/^(?=[^^])/,function(){return/\/(?!$)/.test(this)?"^":"(?:^|\\/)"}],[/\\\/\\\*\\\*(?=\\\/|$)/g,(t,e,r)=>e+6e+r.replace(/\\\*/g,"[^\\/]*")],[/\\\\\\(?=[$.|*+(){^])/g,()=>"\\"],[/\\\\/g,()=>"\\"],[/(\\)?\[([^\]/]*?)(\\*)($|\])/g,(t,e,r,s,i)=>"\\"===e?`\\[${r}${(t=>{const{length:e}=t;return t.slice(0,e-e%2)})(s)}${i}`:"]"===i&&s.length%2==0?`[${(t=>t.replace(g,(t,e,r)=>e.charCodeAt(0)<=r.charCodeAt(0)?t:""))(r)}${s}]`:"[]"],[/(?:[^*])$/,t=>/\/$/.test(t)?`${t}$`:`${t}(?=$|\\/$)`]],f=/(^|\\\/)?\\\*$/,$="regex",x="checkRegex",v={[$]:(t,e)=>(e?`${e}[^/]+`:"[^/]*")+"(?=$|\\/$)",[x]:(t,e)=>(e?`${e}[^/]*`:"[^/]*")+"(?=$|\\/$)"},C=t=>"string"==typeof t;class b{constructor(t,e,r,s,i,n){this.pattern=t,this.mark=e,this.negative=i,d(this,"body",r),d(this,"ignoreCase",s),d(this,"regexPrefix",n)}get regex(){const t="_"+$;return this[t]?this[t]:this._make($,t)}get checkRegex(){const t="_"+x;return this[t]?this[t]:this._make(x,t)}_make(t,e){const r=this.regexPrefix.replace(f,v[t]),s=this.ignoreCase?new RegExp(r,"i"):new RegExp(r);return d(this,e,s)}}class m{constructor(t){this._ignoreCase=t,this._rules=[]}_add(t){if(t&&t[u])return this._rules=this._rules.concat(t._rules._rules),void(this._added=!0);if(C(t)&&(t={pattern:t}),(t=>t&&C(t)&&!r.test(t)&&!s.test(t)&&0!==t.indexOf("#"))(t.pattern)){const e=(({pattern:t,mark:e},r)=>{let s=!1,o=t;0===o.indexOf("!")&&(s=!0,o=o.substr(1)),o=o.replace(i,"!").replace(n,"#");const h=(t=>_.reduce((e,[r,s])=>e.replace(r,s.bind(t)),t))(o);return new b(t,e,o,r,s,h)})(t,this._ignoreCase);this._added=!0,this._rules.push(e)}}add(t){return this._added=!1,e(C(t)?(t=>t.split(o).filter(Boolean))(t):t).forEach(this._add,this),this._added}test(t,e,r){let s,i=!1,n=!1;this._rules.forEach(o=>{const{negative:h}=o;n===h&&i!==n||h&&!i&&!n&&!e||o[r].test(t)&&(i=!h,n=h,s=h?void 0:o)});const o={ignored:i,unignored:n};return s&&(o.rule=s),o}}const y=(t,e)=>{throw new e(t)},k=(t,e,r)=>C(t)?t?!k.isNotRelative(t)||r(`path should be a \`path.relative()\`d string, but got "${e}"`,RangeError):r("path must not be empty",TypeError):r(`path must be a string, but got \`${e}\``,TypeError),w=t=>h.test(t);k.isNotRelative=w,k.convert=t=>t;class R{constructor({ignorecase:t=!0,ignoreCase:e=t,allowRelativePaths:r=!1}={}){d(this,u,!0),this._rules=new m(e),this._strictPathCheck=!r,this._initCache()}_initCache(){this._ignoreCache=Object.create(null),this._testCache=Object.create(null)}add(t){return this._rules.add(t)&&this._initCache(),this}addPattern(t){return this.add(t)}_test(t,e,r,s){const i=t&&k.convert(t);return k(i,t,this._strictPathCheck?y:p),this._t(i,e,r,s)}checkIgnore(t){if(!a.test(t))return this.test(t);const e=t.split(c).filter(Boolean);if(e.pop(),e.length){const t=this._t(e.join(c)+c,this._testCache,!0,e);if(t.ignored)return t}return this._rules.test(t,!1,x)}_t(t,e,r,s){if(t in e)return e[t];if(s||(s=t.split(c).filter(Boolean)),s.pop(),!s.length)return e[t]=this._rules.test(t,r,$);const i=this._t(s.join(c)+c,e,r,s);return e[t]=i.ignored?i:this._rules.test(t,r,$)}ignores(t){return this._test(t,this._ignoreCache,!1).ignored}createFilter(){return t=>!this.ignores(t)}filter(t){return e(t).filter(this.createFilter())}test(t){return this._test(t,this._testCache,!0)}}const E=t=>new R(t),P=()=>{k.convert=t=>/^\\\\\?\\/.test(t)||/["<>|\u0000-\u001F]+/u.test(t)?t:t.replace(/\\/g,"/");const t=/^[a-z]:\//i;k.isNotRelative=e=>t.test(e)||w(e)};"undefined"!=typeof process&&"win32"===process.platform&&P(),t.exports=E,E.default=E,t.exports.isPathValid=t=>k(t&&k.convert(t),t,p),d(t.exports,Symbol.for("setupWindows"),P)}},e={},r=function r(s){var i=e[s];if(void 0!==i)return i.exports;var n=e[s]={exports:{}};return t[s](n,n.exports,r),n.exports}(2535);module.exports=r})(); \ No newline at end of file diff --git a/packages/node_modules/import-in-the-middle.js b/packages/node_modules/import-in-the-middle.js new file mode 100644 index 00000000000..955acb5011e --- /dev/null +++ b/packages/node_modules/import-in-the-middle.js @@ -0,0 +1 @@ +(()=>{var e={616:(e,t,o)=>{const r=o(6928),n=o(5335),{fileURLToPath:s}=o(7016),{MessageChannel:i}=o(8167),{importHooks:a,specifiers:c,toHook:p,getExperimentalPatchInternals:u}=o(6467);function f(e){a.push(e),p.forEach(([t,o])=>e(t,o))}function l(e){const t=a.indexOf(e);t>-1&&a.splice(t,1)}function d(e,t,o,r){const n=e(t,o,r);n&&n!==t&&(t.default=n)}let h;function x(e,t,o){if(this instanceof x==0)return new x(e,t,o);"function"==typeof e?(o=e,e=null,t=null):"function"==typeof t&&(o=t,t=null);const i=!!t&&!0===t.internals;h&&Array.isArray(e)&&h(e),this._iitmHook=(t,a)=>{const p=t;let f;if(t.startsWith("node:"))t=t.replace(/^node:/,"");else{if(t.startsWith("file://"))try{t=s(t)}catch(e){}const e=n(t);e&&(t=e.name,f=e.basedir)}if(e){for(const n of e)if(n===t){if(f)if(i)t=t+r.sep+r.relative(f,s(p));else if(!u()&&!f.endsWith(c.get(p)))continue;d(o,a,t,f)}}else d(o,a,t,f)},f(this._iitmHook)}x.prototype.unhook=function(){l(this._iitmHook)},e.exports=x,e.exports.Hook=x,e.exports.addHook=f,e.exports.removeHook=l,e.exports.createAddHookMessageChannel=function(){const{port1:e,port2:t}=new i;let o,r=0;return h=t=>{r++,e.postMessage(t)},e.on("message",()=>{r--,o&&r<=0&&o()}).unref(),{registerOptions:{data:{addHookMessagePort:t,include:[]},transferList:[t]},addHookMessagePort:t,waitForAllMessagesAcknowledged:function(){const e=setInterval(()=>{},1e3),t=new Promise(e=>{o=e}).then(()=>{clearInterval(e)});return 0===r&&o(),t}}}},5335:(e,t,o)=>{"use strict";var r=o(6928).sep;e.exports=function(e){var t=e.split(r),o=t.lastIndexOf("node_modules");if(-1!==o&&t[o+1]){for(var n="@"===t[o+1][0],s=n?t[o+1]+"/"+t[o+2]:t[o+1],i=n?3:2,a="",c=o+i-1,p=0;p<=c;p++)a+=p===c?t[p]:t[p]+r;for(var u="",f=t.length-1,l=o+i;l<=f;l++)u+=l===f?t[l]:t[l]+r;return{name:s,basedir:a,path:u}}}},6467:(e,t)=>{const o=[],r=new WeakMap,n=new WeakMap,s=new Map,i=[],a={set:(e,t,o)=>r.get(e)[t](o),get(e,t){if(t===Symbol.toStringTag)return"Module";const o=n.get(e)[t];return"function"==typeof o?o():void 0},defineProperty(e,t,o){if(!("value"in o))throw new Error("Getters/setters are not supported for exports property descriptors.");return r.get(e)[t](o.value)}};let c=!1;t.register=function(e,t,c,p,u){s.set(e,u),r.set(t,c),n.set(t,p);const f=new Proxy(t,a);o.forEach(t=>t(e,f)),i.push([e,f])},t.importHooks=o,t.specifiers=s,t.toHook=i,t.getExperimentalPatchInternals=function(){return c},t.setExperimentalPatchInternals=function(e){c=e}},6928:e=>{"use strict";e.exports=require("path")},7016:e=>{"use strict";e.exports=require("url")},8167:e=>{"use strict";e.exports=require("worker_threads")}},t={},o=function o(r){var n=t[r];if(void 0!==n)return n.exports;var s=t[r]={exports:{}};return e[r](s,s.exports,o),s.exports}(616);module.exports=o})(); \ No newline at end of file diff --git a/packages/node_modules/istanbul-lib-coverage.js b/packages/node_modules/istanbul-lib-coverage.js new file mode 100644 index 00000000000..acf72a30e53 --- /dev/null +++ b/packages/node_modules/istanbul-lib-coverage.js @@ -0,0 +1 @@ +(()=>{"use strict";var t={20:t=>{t.exports=function(t,e){e.forEach(e=>{Object.defineProperty(t.prototype,e,{enumerable:!0,get(){return this.data[e]}})})}},1958:(t,e,n)=>{const{FileCoverage:a}=n(4709),{CoverageMap:r}=n(3561),{CoverageSummary:s}=n(9455);t.exports={createCoverageSummary:t=>t&&t instanceof s?t:new s(t),createCoverageMap:t=>t&&t instanceof r?t:new r(t),createFileCoverage:t=>t&&t instanceof a?t:new a(t)},t.exports.classes={FileCoverage:a}},2735:t=>{t.exports=function(t,e){let n;return e>0?(n=1e5*t/e,Math.floor(n/10)/100):100}},3561:(t,e,n)=>{const{FileCoverage:a}=n(4709),{CoverageSummary:r}=n(9455);function s(t,e){return t instanceof e?t:new e(t)}class o{constructor(t){this.data=t instanceof o?t.data:function(t){const e=Object.create(null);return t?(Object.entries(t).forEach(([t,n])=>{e[t]=s(n,a)}),e):e}(t)}merge(t){const e=s(t,o);Object.values(e.data).forEach(t=>{this.addFileCoverage(t)})}filter(t){Object.keys(this.data).forEach(e=>{t(e)||delete this.data[e]})}toJSON(){return this.data}files(){return Object.keys(this.data)}fileCoverageFor(t){const e=this.data[t];if(!e)throw new Error(`No file coverage available for: ${t}`);return e}addFileCoverage(t){const e=new a(t),{path:n}=e;this.data[n]?this.data[n].merge(e):this.data[n]=e}getCoverageSummary(){const t=new r;return Object.values(this.data).forEach(e=>{t.merge(e.toSummary())}),t}}t.exports={CoverageMap:o}},4709:(t,e,n)=>{const a=n(2735),r=n(20),{CoverageSummary:s}=n(9455),o=({start:t,end:e})=>`${t.line}|${t.column}|${e.line}|${e.column}`,c=t=>!!t&&"object"==typeof t,i=t=>c(t)&&"number"==typeof t.line&&"number"==typeof t.column,l=t=>c(t)&&i(t.start)&&i(t.end),h=t=>l(t)?t:l(t.loc)?t.loc:null,u=(t,e)=>{const n=h(t);if(!n)return null;let a=null,r=null,s=null;for(const[t,o]of Object.entries(e)){const e=h(o);if(!e)continue;const c=[n.start.line-e.start.line,n.start.column-e.start.column,e.end.line-n.end.line,e.end.column-n.end.column];if(c[0]<0||c[2]<0||0===c[0]&&c[1]<0||0===c[2]&&c[3]<0)continue;if(null===a){r=c,a=o,s=t;continue}const i=c[0]"number"==typeof t&&"number"==typeof e?t+e:Array.isArray(t)&&Array.isArray(e)?t.map((t,n)=>(t||0)+(e[n]||0)):null,p=(t,e,n,a)=>{const r=u(t,n);return r?f(e,a[r]):e},d=(t,e,n,a,r=o)=>{const s={};for(const[n,a]of Object.entries(t)){const t=e[n];s[r(t)]=[a,t]}const c={};for(const[t,e]of Object.entries(n)){const n=a[t];c[r(n)]=[e,n]}const i={};for(const[t,e]of Object.entries(s)){let r=e[0];const s=e[1],o=c[t];r=o?f(r,o[0]):p(s,r,a,n),i[t]=[r,s]}for(const[n,a]of Object.entries(c)){let r=a[0];const s=a[1];i[n]||(r=p(s,r,e,t),i[n]=[r,s])}const l={},h={};return Object.values(i).forEach(([t,e],n)=>{l[n]=t,h[n]=e}),[l,h]};class b{constructor(t,e=!1){if(!t)throw new Error("Coverage must be initialized with a path or an object");if("string"==typeof t)this.data=function(t,e){const n={path:t,statementMap:{},fnMap:{},branchMap:{},s:{},f:{},b:{}};return e&&(n.bT={}),n}(t,e);else if(t instanceof b)this.data=t.data;else{if("object"!=typeof t)throw new Error("Invalid argument to coverage constructor");this.data=t}!function(t){if(!(t&&t.path&&t.statementMap&&t.fnMap&&t.branchMap&&t.s&&t.f&&t.b))throw new Error("Invalid file coverage object, missing keys, found:"+Object.keys(t).join(","))}(this.data)}getLineCoverage(){const t=this.data.statementMap,e=this.data.s,n=Object.create(null);return Object.entries(e).forEach(([e,a])=>{if(!t[e])return;const{line:r}=t[e].start,s=n[r];(void 0===s||s{0===n&&e.push(t)}),e}getBranchCoverageByLine(){const t=this.branchMap,e=this.b,n={};return Object.entries(t).forEach(([t,a])=>{const r=a.line||a.loc.start.line,s=e[t];n[r]=n[r]||[],n[r].push(...s)}),Object.entries(n).forEach(([t,e])=>{const a=e.filter(t=>t>0),r=a.length/e.length*100;n[t]={covered:a.length,total:e.length,coverage:r}}),n}toJSON(){return this.data}merge(t){if(!0===t.all)return;if(!0===this.all)return void(this.data=t.data);let[e,n]=d(this.s,this.statementMap,t.s,t.statementMap);this.data.s=e,this.data.statementMap=n;const a=t=>o(t.locations[0]);[e,n]=d(this.f,this.fnMap,t.f,t.fnMap,t=>o(t.loc)),this.data.f=e,this.data.fnMap=n,[e,n]=d(this.b,this.branchMap,t.b,t.branchMap,a),this.data.b=e,this.data.branchMap=n,this.bT&&t.bT&&([e,n]=d(this.bT,this.branchMap,t.bT,t.branchMap,a),this.data.bT=e)}computeSimpleTotals(t){let e=this[t];"function"==typeof e&&(e=e.call(this));const n={total:Object.keys(e).length,covered:Object.values(e).filter(t=>!!t).length,skipped:0};return n.pct=a(n.covered,n.total),n}computeBranchTotals(t){const e=this[t],n={total:0,covered:0,skipped:0};return Object.values(e).forEach(t=>{n.covered+=t.filter(t=>t>0).length,n.total+=t.length}),n.pct=a(n.covered,n.total),n}resetHits(){const t=this.s,e=this.f,n=this.b,a=this.bT;Object.keys(t).forEach(e=>{t[e]=0}),Object.keys(e).forEach(t=>{e[t]=0}),Object.keys(n).forEach(t=>{n[t].fill(0)}),a&&Object.keys(a).forEach(t=>{a[t].fill(0)})}toSummary(){const t={};return t.lines=this.computeSimpleTotals("getLineCoverage"),t.functions=this.computeSimpleTotals("f","fnMap"),t.statements=this.computeSimpleTotals("s","statementMap"),t.branches=this.computeBranchTotals("b"),this.bT&&(t.branchesTrue=this.computeBranchTotals("bT")),new s(t)}}r(b,["path","statementMap","fnMap","branchMap","s","f","b","bT","all"]),t.exports={FileCoverage:b,findNearestContainer:u,addHits:f,addNearestContainerHits:p}},9455:(t,e,n)=>{const a=n(2735),r=n(20);class s{constructor(t){this.data=t?t instanceof s?t.data:t:{lines:{total:0,covered:0,skipped:0,pct:"Unknown"},statements:{total:0,covered:0,skipped:0,pct:"Unknown"},functions:{total:0,covered:0,skipped:0,pct:"Unknown"},branches:{total:0,covered:0,skipped:0,pct:"Unknown"},branchesTrue:{total:0,covered:0,skipped:0,pct:"Unknown"}},function(t){if(!(t&&t.lines&&t.statements&&t.functions&&t.branches))throw new Error("Invalid summary coverage object, missing keys, found:"+Object.keys(t).join(","))}(this.data)}merge(t){return["lines","statements","branches","functions","branchesTrue"].forEach(e=>{t[e]&&(this[e].total+=t[e].total,this[e].covered+=t[e].covered,this[e].skipped+=t[e].skipped,this[e].pct=a(this[e].covered,this[e].total))}),this}toJSON(){return this.data}isEmpty(){return 0===this.lines.total}}r(s,["lines","statements","functions","branches","branchesTrue"]),t.exports={CoverageSummary:s}}},e={},n=function n(a){var r=e[a];if(void 0!==r)return r.exports;var s=e[a]={exports:{}};return t[a](s,s.exports,n),s.exports}(1958);module.exports=n})(); \ No newline at end of file diff --git a/packages/node_modules/jest-docblock.js b/packages/node_modules/jest-docblock.js new file mode 100644 index 00000000000..6d7fdcc791d --- /dev/null +++ b/packages/node_modules/jest-docblock.js @@ -0,0 +1 @@ +(()=>{"use strict";var r={857:r=>{r.exports=require("os")},1671:r=>{const t=r=>{if("string"!=typeof r)throw new TypeError("Expected a string");const t=r.match(/(?:\r?\n)/g)||[];if(0===t.length)return;const n=t.filter(r=>"\r\n"===r).length;return n>t.length-n?"\r\n":"\n"};r.exports=t,r.exports.graceful=r=>"string"==typeof r&&t(r)||"\n"}},t={};function n(e){var o=t[e];if(void 0!==o)return o.exports;var c=t[e]={exports:{}};return r[e](c,c.exports,n),c.exports}var e={};(()=>{var r=e;function t(){const r=n(857);return t=function(){return r},r}function o(){const r=(t=n(1671))&&t.__esModule?t:{default:t};var t;return o=function(){return r},r}Object.defineProperty(r,"__esModule",{value:!0}),r.extract=function(r){const t=r.match(a);return t?t[0].trimLeft():""},r.parse=function(r){return m(r).pragmas},r.parseWithComments=m,r.print=function({comments:r="",pragmas:n={}}){const e=(0,o().default)(r)??t().EOL,c=" *",s=Object.keys(n),a=s.flatMap(r=>h(r,n[r])).map(r=>`${c} ${r}${e}`).join("");if(!r){if(0===s.length)return"";if(1===s.length&&!Array.isArray(n[s[0]])){const r=n[s[0]];return`/** ${h(s[0],r)[0]} */`}}const i=r.split(e).map(r=>`${c} ${r}`).join(e)+e;return"/**"+e+(r?i:"")+(r&&s.length?c+e:"")+a+" */"},r.strip=function(r){const t=r.match(a);return t&&t[0]?r.substring(t[0].length):r};const c=/\*\/$/,s=/^\/\*\*?/,a=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,i=/(^|\s+)\/\/([^\r\n]*)/g,u=/^(\r?\n)+/,p=/(?:^|\r?\n) *(@[^\r\n]*?) *\r?\n *(?![^@\r\n]*\/\/[^]*)([^@\r\n\s][^@\r\n]+?) *\r?\n/g,f=/(?:^|\r?\n) *@(\S+) *([^\r\n]*)/g,l=/(\r?\n|^) *\* ?/g,g=[];function m(r){const n=(0,o().default)(r)??t().EOL;r=r.replace(s,"").replace(c,"").replace(l,"$1");let e="";for(;e!==r;)e=r,r=r.replace(p,`${n}$1 $2${n}`);r=r.replace(u,"").trimRight();const a=Object.create(null),m=r.replace(f,"").replace(u,"").trimRight();let h;for(;h=f.exec(r);){const r=h[2].replace(i,"");"string"==typeof a[h[1]]||Array.isArray(a[h[1]])?a[h[1]]=g.concat(a[h[1]],r):a[h[1]]=r}return{comments:m,pragmas:a}}function h(r,t){return g.concat(t).map(t=>`@${r} ${t}`.trim())}})(),module.exports=e})(); \ No newline at end of file diff --git a/packages/node_modules/jsonpath-plus.js b/packages/node_modules/jsonpath-plus.js new file mode 100644 index 00000000000..d22367bd0f8 --- /dev/null +++ b/packages/node_modules/jsonpath-plus.js @@ -0,0 +1 @@ +(()=>{"use strict";var e={d:(t,r)=>{for(var i in r)e.o(r,i)&&!e.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:r[i]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};e.r(t),e.d(t,{JSONPath:()=>b});const r=require("vm");class i{static get version(){return"1.4.0"}static toString(){return"JavaScript Expression Parser (JSEP) v"+i.version}static addUnaryOp(e){return i.max_unop_len=Math.max(e.length,i.max_unop_len),i.unary_ops[e]=1,i}static addBinaryOp(e,t,r){return i.max_binop_len=Math.max(e.length,i.max_binop_len),i.binary_ops[e]=t,r?i.right_associative.add(e):i.right_associative.delete(e),i}static addIdentifierChar(e){return i.additional_identifier_chars.add(e),i}static addLiteral(e,t){return i.literals[e]=t,i}static removeUnaryOp(e){return delete i.unary_ops[e],e.length===i.max_unop_len&&(i.max_unop_len=i.getMaxKeyLen(i.unary_ops)),i}static removeAllUnaryOps(){return i.unary_ops={},i.max_unop_len=0,i}static removeIdentifierChar(e){return i.additional_identifier_chars.delete(e),i}static removeBinaryOp(e){return delete i.binary_ops[e],e.length===i.max_binop_len&&(i.max_binop_len=i.getMaxKeyLen(i.binary_ops)),i.right_associative.delete(e),i}static removeAllBinaryOps(){return i.binary_ops={},i.max_binop_len=0,i}static removeLiteral(e){return delete i.literals[e],i}static removeAllLiterals(){return i.literals={},i}get char(){return this.expr.charAt(this.index)}get code(){return this.expr.charCodeAt(this.index)}constructor(e){this.expr=e,this.index=0}static parse(e){return new i(e).parse()}static getMaxKeyLen(e){return Math.max(0,...Object.keys(e).map(e=>e.length))}static isDecimalDigit(e){return e>=48&&e<=57}static binaryPrecedence(e){return i.binary_ops[e]||0}static isIdentifierStart(e){return e>=65&&e<=90||e>=97&&e<=122||e>=128&&!i.binary_ops[String.fromCharCode(e)]||i.additional_identifier_chars.has(String.fromCharCode(e))}static isIdentifierPart(e){return i.isIdentifierStart(e)||i.isDecimalDigit(e)}throwError(e){const t=new Error(e+" at character "+this.index);throw t.index=this.index,t.description=e,t}runHook(e,t){if(i.hooks[e]){const r={context:this,node:t};return i.hooks.run(e,r),r.node}return t}searchHook(e){if(i.hooks[e]){const t={context:this};return i.hooks[e].find(function(e){return e.call(t.context,t),t.node}),t.node}}gobbleSpaces(){let e=this.code;for(;e===i.SPACE_CODE||e===i.TAB_CODE||e===i.LF_CODE||e===i.CR_CODE;)e=this.expr.charCodeAt(++this.index);this.runHook("gobble-spaces")}parse(){this.runHook("before-all");const e=this.gobbleExpressions(),t=1===e.length?e[0]:{type:i.COMPOUND,body:e};return this.runHook("after-all",t)}gobbleExpressions(e){let t,r,s=[];for(;this.index0;){if(i.binary_ops.hasOwnProperty(e)&&(!i.isIdentifierStart(this.code)||this.index+e.lengthn.right_a&&e.right_a?r>e.prec:r<=e.prec;for(;s.length>2&&h(s[s.length-2]);)a=s.pop(),t=s.pop().value,o=s.pop(),e={type:i.BINARY_EXP,operator:t,left:o,right:a},s.push(e);e=this.gobbleToken(),e||this.throwError("Expected expression after "+l),s.push(n,e)}for(h=s.length-1,e=s[h];h>1;)e={type:i.BINARY_EXP,operator:s[h-1].value,left:s[h-2],right:e},h-=2;return e}gobbleToken(){let e,t,r,s;if(this.gobbleSpaces(),s=this.searchHook("gobble-token"),s)return this.runHook("after-token",s);if(e=this.code,i.isDecimalDigit(e)||e===i.PERIOD_CODE)return this.gobbleNumericLiteral();if(e===i.SQUOTE_CODE||e===i.DQUOTE_CODE)s=this.gobbleStringLiteral();else if(e===i.OBRACK_CODE)s=this.gobbleArray();else{for(t=this.expr.substr(this.index,i.max_unop_len),r=t.length;r>0;){if(i.unary_ops.hasOwnProperty(t)&&(!i.isIdentifierStart(this.code)||this.index+t.length=t.length&&this.throwError("Unexpected token "+String.fromCharCode(e));break}if(n===i.COMMA_CODE){if(this.index++,s++,s!==t.length)if(e===i.CPAREN_CODE)this.throwError("Unexpected token ,");else if(e===i.CBRACK_CODE)for(let e=t.length;e{if("object"!=typeof e||!e.name||!e.init)throw new Error("Invalid JSEP plugin format");this.registered[e.name]||(e.init(this.jsep),this.registered[e.name]=e)})}}(i),COMPOUND:"Compound",SEQUENCE_EXP:"SequenceExpression",IDENTIFIER:"Identifier",MEMBER_EXP:"MemberExpression",LITERAL:"Literal",THIS_EXP:"ThisExpression",CALL_EXP:"CallExpression",UNARY_EXP:"UnaryExpression",BINARY_EXP:"BinaryExpression",ARRAY_EXP:"ArrayExpression",TAB_CODE:9,LF_CODE:10,CR_CODE:13,SPACE_CODE:32,PERIOD_CODE:46,COMMA_CODE:44,SQUOTE_CODE:39,DQUOTE_CODE:34,OPAREN_CODE:40,CPAREN_CODE:41,OBRACK_CODE:91,CBRACK_CODE:93,QUMARK_CODE:63,SEMCOL_CODE:59,COLON_CODE:58,unary_ops:{"-":1,"!":1,"~":1,"+":1},binary_ops:{"||":1,"??":1,"&&":2,"|":3,"^":4,"&":5,"==":6,"!=":6,"===":6,"!==":6,"<":7,">":7,"<=":7,">=":7,"<<":8,">>":8,">>>":8,"+":9,"-":9,"*":10,"/":10,"%":10,"**":11},right_associative:new Set(["**"]),additional_identifier_chars:new Set(["$","_"]),literals:{true:!0,false:!1,null:null},this_str:"this"}),i.max_unop_len=i.getMaxKeyLen(i.unary_ops),i.max_binop_len=i.getMaxKeyLen(i.binary_ops);const n=e=>new i(e).parse(),o=Object.getOwnPropertyNames(class{});Object.getOwnPropertyNames(i).filter(e=>!o.includes(e)&&void 0===n[e]).forEach(e=>{n[e]=i[e]}),n.Jsep=i;var a={name:"ternary",init(e){e.hooks.add("after-expression",function(t){if(t.node&&this.code===e.QUMARK_CODE){this.index++;const r=t.node,i=this.gobbleExpression();if(i||this.throwError("Expected expression"),this.gobbleSpaces(),this.code===e.COLON_CODE){this.index++;const s=this.gobbleExpression();if(s||this.throwError("Expected expression"),t.node={type:"ConditionalExpression",test:r,consequent:i,alternate:s},r.operator&&e.binary_ops[r.operator]<=.9){let i=r;for(;i.right.operator&&e.binary_ops[i.right.operator]<=.9;)i=i.right;t.node.test=i.right,i.right=t.node,t.node=r}}else this.throwError("Expected :")}})}};n.plugins.register(a);var h={name:"regex",init(e){e.hooks.add("gobble-token",function(t){if(47===this.code){const r=++this.index;let i=!1;for(;this.index=97&&e<=122||e>=65&&e<=90||e>=48&&e<=57))break;n+=this.char}try{s=new RegExp(i,n)}catch(e){this.throwError(e.message)}return t.node={type:e.LITERAL,value:s,raw:this.expr.slice(r-1,this.index)},t.node=this.gobbleTokenProperty(t.node),t.node}this.code===e.OBRACK_CODE?i=!0:i&&this.code===e.CBRACK_CODE&&(i=!1),this.index+=92===this.code?2:1}this.throwError("Unclosed Regex")}})}};const l={name:"assignment",assignmentOperators:new Set(["=","*=","**=","/=","%=","+=","-=","<<=",">>=",">>>=","&=","^=","|=","||=","&&=","??="]),updateOperators:[43,45],assignmentPrecedence:.9,init(e){const t=[e.IDENTIFIER,e.MEMBER_EXP];function r(e){l.assignmentOperators.has(e.operator)?(e.type="AssignmentExpression",r(e.left),r(e.right)):e.operator||Object.values(e).forEach(e=>{e&&"object"==typeof e&&r(e)})}l.assignmentOperators.forEach(t=>e.addBinaryOp(t,l.assignmentPrecedence,!0)),e.hooks.add("gobble-token",function(e){const r=this.code;l.updateOperators.some(e=>e===r&&e===this.expr.charCodeAt(this.index+1))&&(this.index+=2,e.node={type:"UpdateExpression",operator:43===r?"++":"--",argument:this.gobbleTokenProperty(this.gobbleIdentifier()),prefix:!0},e.node.argument&&t.includes(e.node.argument.type)||this.throwError(`Unexpected ${e.node.operator}`))}),e.hooks.add("after-token",function(e){if(e.node){const r=this.code;l.updateOperators.some(e=>e===r&&e===this.expr.charCodeAt(this.index+1))&&(t.includes(e.node.type)||this.throwError(`Unexpected ${e.node.operator}`),this.index+=2,e.node={type:"UpdateExpression",operator:43===r?"++":"--",argument:e.node,prefix:!1})}}),e.hooks.add("after-expression",function(e){e.node&&r(e.node)})}};n.plugins.register(h,l),n.addUnaryOp("typeof"),n.addLiteral("null",null),n.addLiteral("undefined",void 0);const c=new Set(["constructor","__proto__","__defineGetter__","__defineSetter__"]),p={evalAst(e,t){switch(e.type){case"BinaryExpression":case"LogicalExpression":return p.evalBinaryExpression(e,t);case"Compound":return p.evalCompound(e,t);case"ConditionalExpression":return p.evalConditionalExpression(e,t);case"Identifier":return p.evalIdentifier(e,t);case"Literal":return p.evalLiteral(e,t);case"MemberExpression":return p.evalMemberExpression(e,t);case"UnaryExpression":return p.evalUnaryExpression(e,t);case"ArrayExpression":return p.evalArrayExpression(e,t);case"CallExpression":return p.evalCallExpression(e,t);case"AssignmentExpression":return p.evalAssignmentExpression(e,t);default:throw SyntaxError("Unexpected expression",e)}},evalBinaryExpression:(e,t)=>({"||":(e,t)=>e||t(),"&&":(e,t)=>e&&t(),"|":(e,t)=>e|t(),"^":(e,t)=>e^t(),"&":(e,t)=>e&t(),"==":(e,t)=>e==t(),"!=":(e,t)=>e!=t(),"===":(e,t)=>e===t(),"!==":(e,t)=>e!==t(),"<":(e,t)=>e":(e,t)=>e>t(),"<=":(e,t)=>e<=t(),">=":(e,t)=>e>=t(),"<<":(e,t)=>e<>":(e,t)=>e>>t(),">>>":(e,t)=>e>>>t(),"+":(e,t)=>e+t(),"-":(e,t)=>e-t(),"*":(e,t)=>e*t(),"/":(e,t)=>e/t(),"%":(e,t)=>e%t()}[e.operator](p.evalAst(e.left,t),()=>p.evalAst(e.right,t))),evalCompound(e,t){let r;for(let i=0;ip.evalAst(e.test,t)?p.evalAst(e.consequent,t):p.evalAst(e.alternate,t),evalIdentifier(e,t){if(Object.hasOwn(t,e.name))return t[e.name];throw ReferenceError(`${e.name} is not defined`)},evalLiteral:e=>e.value,evalMemberExpression(e,t){const r=String(e.computed?p.evalAst(e.property):e.property.name),i=p.evalAst(e.object,t);if(null==i)throw TypeError(`Cannot read properties of ${i} (reading '${r}')`);if(!Object.hasOwn(i,r)&&c.has(r))throw TypeError(`Cannot read properties of ${i} (reading '${r}')`);const s=i[r];return"function"==typeof s?s.bind(i):s},evalUnaryExpression:(e,t)=>({"-":e=>-p.evalAst(e,t),"!":e=>!p.evalAst(e,t),"~":e=>~p.evalAst(e,t),"+":e=>+p.evalAst(e,t),typeof:e=>typeof p.evalAst(e,t)}[e.operator](e.argument)),evalArrayExpression:(e,t)=>e.elements.map(e=>p.evalAst(e,t)),evalCallExpression(e,t){const r=e.arguments.map(e=>p.evalAst(e,t));return p.evalAst(e.callee,t)(...r)},evalAssignmentExpression(e,t){if("Identifier"!==e.left.type)throw SyntaxError("Invalid left-hand side in assignment");const r=e.left.name,i=p.evalAst(e.right,t);return t[r]=i,t[r]}};function u(e,t){return(e=e.slice()).push(t),e}function d(e,t){return(t=t.slice()).unshift(e),t}class f extends Error{constructor(e){super('JSONPath should not be called with "new" (it prevents return of (unwrapped) scalar values)'),this.avoidNew=!0,this.value=e,this.name="NewError"}}function b(e,t,r,i,s){if(!(this instanceof b))try{return new b(e,t,r,i,s)}catch(e){if(!e.avoidNew)throw e;return e.value}"string"==typeof e&&(s=i,i=r,r=t,t=e,e=null);const n=e&&"object"==typeof e;if(e=e||{},this.json=e.json||r,this.path=e.path||t,this.resultType=e.resultType||"value",this.flatten=e.flatten||!1,this.wrap=!Object.hasOwn(e,"wrap")||e.wrap,this.sandbox=e.sandbox||{},this.eval=void 0===e.eval?"safe":e.eval,this.ignoreEvalErrors=void 0!==e.ignoreEvalErrors&&e.ignoreEvalErrors,this.parent=e.parent||null,this.parentProperty=e.parentProperty||null,this.callback=e.callback||i||null,this.otherTypeCallback=e.otherTypeCallback||s||function(){throw new TypeError("You must supply an otherTypeCallback callback option with the @other() operator.")},!1!==e.autostart){const i={path:n?e.path:t};n?"json"in e&&(i.json=e.json):i.json=r;const s=this.evaluate(i);if(!s||"object"!=typeof s)throw new f(s);return s}}b.prototype.evaluate=function(e,t,r,i){let s=this.parent,n=this.parentProperty,{flatten:o,wrap:a}=this;if(this.currResultType=this.resultType,this.currEval=this.eval,this.currSandbox=this.sandbox,r=r||this.callback,this.currOtherTypeCallback=i||this.otherTypeCallback,t=t||this.json,(e=e||this.path)&&"object"==typeof e&&!Array.isArray(e)){if(!e.path&&""!==e.path)throw new TypeError('You must supply a "path" property when providing an object argument to JSONPath.evaluate().');if(!Object.hasOwn(e,"json"))throw new TypeError('You must supply a "json" property when providing an object argument to JSONPath.evaluate().');({json:t}=e),o=Object.hasOwn(e,"flatten")?e.flatten:o,this.currResultType=Object.hasOwn(e,"resultType")?e.resultType:this.currResultType,this.currSandbox=Object.hasOwn(e,"sandbox")?e.sandbox:this.currSandbox,a=Object.hasOwn(e,"wrap")?e.wrap:a,this.currEval=Object.hasOwn(e,"eval")?e.eval:this.currEval,r=Object.hasOwn(e,"callback")?e.callback:r,this.currOtherTypeCallback=Object.hasOwn(e,"otherTypeCallback")?e.otherTypeCallback:this.currOtherTypeCallback,s=Object.hasOwn(e,"parent")?e.parent:s,n=Object.hasOwn(e,"parentProperty")?e.parentProperty:n,e=e.path}if(s=s||null,n=n||null,Array.isArray(e)&&(e=b.toPathString(e)),!e&&""!==e||!t)return;const h=b.toPathArray(e);"$"===h[0]&&h.length>1&&h.shift(),this._hasParentSelector=null;const l=this._trace(h,t,["$"],s,n,r).filter(function(e){return e&&!e.isParentSelector});return l.length?a||1!==l.length||l[0].hasArrExpr?l.reduce((e,t)=>{const r=this._getPreferredOutput(t);return o&&Array.isArray(r)?e=e.concat(r):e.push(r),e},[]):this._getPreferredOutput(l[0]):a?[]:void 0},b.prototype._getPreferredOutput=function(e){const t=this.currResultType;switch(t){case"all":{const t=Array.isArray(e.path)?e.path:b.toPathArray(e.path);return e.pointer=b.toPointer(t),e.path="string"==typeof e.path?e.path:b.toPathString(e.path),e}case"value":case"parent":case"parentProperty":return e[t];case"path":return b.toPathString(e[t]);case"pointer":return b.toPointer(e.path);default:throw new TypeError("Unknown result type")}},b.prototype._handleCallback=function(e,t,r){if(t){const i=this._getPreferredOutput(e);e.path="string"==typeof e.path?e.path:b.toPathString(e.path),t(i,r,e)}},b.prototype._trace=function(e,t,r,i,s,n,o,a){let h;if(!e.length)return h={path:r,value:t,parent:i,parentProperty:s,hasArrExpr:o},this._handleCallback(h,n,"value"),h;const l=e[0],c=e.slice(1),p=[];function f(e){Array.isArray(e)?e.forEach(e=>{p.push(e)}):p.push(e)}if(("string"!=typeof l||a)&&t&&Object.hasOwn(t,l))f(this._trace(c,t[l],u(r,l),t,l,n,o));else if("*"===l)this._walk(t,e=>{f(this._trace(c,t[e],u(r,e),t,e,n,!0,!0))});else if(".."===l)f(this._trace(c,t,r,i,s,n,o)),this._walk(t,i=>{"object"==typeof t[i]&&f(this._trace(e.slice(),t[i],u(r,i),t,i,n,!0))});else{if("^"===l)return this._hasParentSelector=!0,{path:r.slice(0,-1),expr:c,isParentSelector:!0};if("~"===l)return h={path:u(r,l),value:s,parent:i,parentProperty:null},this._handleCallback(h,n,"property"),h;if("$"===l)f(this._trace(c,t,r,null,null,n,o));else if(/^(-?\d*):(-?\d*):?(\d*)$/u.test(l))f(this._slice(l,c,t,r,i,s,n));else if(0===l.indexOf("?(")){if(!1===this.currEval)throw new Error("Eval [?(expr)] prevented in JSONPath expression.");const e=l.replace(/^\?\((.*?)\)$/u,"$1"),o=/@.?([^?]*)[['](\??\(.*?\))(?!.\)\])[\]']/gu.exec(e);o?this._walk(t,e=>{const a=[o[2]],h=o[1]?t[e][o[1]]:t[e];this._trace(a,h,r,i,s,n,!0).length>0&&f(this._trace(c,t[e],u(r,e),t,e,n,!0))}):this._walk(t,o=>{this._eval(e,t[o],o,r,i,s)&&f(this._trace(c,t[o],u(r,o),t,o,n,!0))})}else if("("===l[0]){if(!1===this.currEval)throw new Error("Eval [(expr)] prevented in JSONPath expression.");f(this._trace(d(this._eval(l,t,r.at(-1),r.slice(0,-1),i,s),c),t,r,i,s,n,o))}else if("@"===l[0]){let e=!1;const o=l.slice(1,-2);switch(o){case"scalar":t&&["object","function"].includes(typeof t)||(e=!0);break;case"boolean":case"string":case"undefined":case"function":typeof t===o&&(e=!0);break;case"integer":!Number.isFinite(t)||t%1||(e=!0);break;case"number":Number.isFinite(t)&&(e=!0);break;case"nonFinite":"number"!=typeof t||Number.isFinite(t)||(e=!0);break;case"object":t&&typeof t===o&&(e=!0);break;case"array":Array.isArray(t)&&(e=!0);break;case"other":e=this.currOtherTypeCallback(t,r,i,s);break;case"null":null===t&&(e=!0);break;default:throw new TypeError("Unknown value type "+o)}if(e)return h={path:r,value:t,parent:i,parentProperty:s},this._handleCallback(h,n,"value"),h}else if("`"===l[0]&&t&&Object.hasOwn(t,l.slice(1))){const e=l.slice(1);f(this._trace(c,t[e],u(r,e),t,e,n,o,!0))}else if(l.includes(",")){const e=l.split(",");for(const o of e)f(this._trace(d(o,c),t,r,i,s,n,!0))}else!a&&t&&Object.hasOwn(t,l)&&f(this._trace(c,t[l],u(r,l),t,l,n,o,!0))}if(this._hasParentSelector)for(let e=0;e{t(e)})},b.prototype._slice=function(e,t,r,i,s,n,o){if(!Array.isArray(r))return;const a=r.length,h=e.split(":"),l=h[2]&&Number.parseInt(h[2])||1;let c=h[0]&&Number.parseInt(h[0])||0,p=h[1]&&Number.parseInt(h[1])||a;c=c<0?Math.max(0,c+a):Math.min(a,c),p=p<0?Math.max(0,p+a):Math.min(a,p);const u=[];for(let e=c;e{u.push(e)});return u},b.prototype._eval=function(e,t,r,i,s,n){this.currSandbox._$_parentProperty=n,this.currSandbox._$_parent=s,this.currSandbox._$_property=r,this.currSandbox._$_root=this.json,this.currSandbox._$_v=t;const o=e.includes("@path");o&&(this.currSandbox._$_path=b.toPathString(i.concat([r])));const a=this.currEval+"Script:"+e;if(!b.cache[a]){let t=e.replaceAll("@parentProperty","_$_parentProperty").replaceAll("@parent","_$_parent").replaceAll("@property","_$_property").replaceAll("@root","_$_root").replaceAll(/@([.\s)[])/gu,"_$_v$1");if(o&&(t=t.replaceAll("@path","_$_path")),"safe"===this.currEval||!0===this.currEval||void 0===this.currEval)b.cache[a]=new this.safeVm.Script(t);else if("native"===this.currEval)b.cache[a]=new this.vm.Script(t);else if("function"==typeof this.currEval&&this.currEval.prototype&&Object.hasOwn(this.currEval.prototype,"runInNewContext")){const e=this.currEval;b.cache[a]=new e(t)}else{if("function"!=typeof this.currEval)throw new TypeError(`Unknown "eval" property "${this.currEval}"`);b.cache[a]={runInNewContext:e=>this.currEval(t,e)}}}try{return b.cache[a].runInNewContext(this.currSandbox)}catch(t){if(this.ignoreEvalErrors)return!1;throw new Error("jsonPath: "+t.message+": "+e)}},b.cache={},b.toPathString=function(e){const t=e,r=t.length;let i="$";for(let e=1;e{var t={3065:(t,e,n)=>{var i=n(5472),r=n(3085),s=function(t,e,n){this.tokenBucket=new i(t,t,e,null),this.tokenBucket.content=t,this.curIntervalStart=r(),this.tokensThisInterval=0,this.fireImmediately=n};s.prototype={tokenBucket:null,curIntervalStart:0,tokensThisInterval:0,fireImmediately:!1,removeTokens:function(t,e){if(t>this.tokenBucket.bucketSize)return process.nextTick(e.bind(null,"Requested tokens "+t+" exceeds maximum tokens per interval "+this.tokenBucket.bucketSize,null)),!1;var n=this,i=r();if((i=this.tokenBucket.interval)&&(this.curIntervalStart=i,this.tokensThisInterval=0),t>this.tokenBucket.tokensPerInterval-this.tokensThisInterval){if(this.fireImmediately)process.nextTick(e.bind(null,null,-1));else{var s=Math.ceil(this.curIntervalStart+this.tokenBucket.interval-i);setTimeout(function(){n.tokenBucket.removeTokens(t,o)},s)}return!1}return this.tokenBucket.removeTokens(t,o);function o(i,r){if(i)return e(i,null);n.tokensThisInterval+=t,e(null,r)}},tryRemoveTokens:function(t){if(t>this.tokenBucket.bucketSize)return!1;var e=r();if((e=this.tokenBucket.interval)&&(this.curIntervalStart=e,this.tokensThisInterval=0),t>this.tokenBucket.tokensPerInterval-this.tokensThisInterval)return!1;var n=this.tokenBucket.tryRemoveTokens(t);return n&&(this.tokensThisInterval+=t),n},getTokensRemaining:function(){return this.tokenBucket.drip(),this.tokenBucket.content}},t.exports=s},3085:t=>{t.exports=function(){if("undefined"!=typeof process&&process.hrtime){var t=process.hrtime(),e=t[0],n=t[1];return 1e3*e+Math.floor(n/1e6)}return(new Date).getTime()}},5472:t=>{var e=function(t,e,n,i){if(this.bucketSize=t,this.tokensPerInterval=e,"string"==typeof n)switch(n){case"sec":case"second":this.interval=1e3;break;case"min":case"minute":this.interval=6e4;break;case"hr":case"hour":this.interval=36e5;break;case"day":this.interval=864e5;break;default:throw new Error("Invaid interval "+n)}else this.interval=n;this.parentBucket=i,this.content=0,this.lastDrip=+new Date};e.prototype={bucketSize:1,tokensPerInterval:1,interval:1e3,parentBucket:null,content:0,lastDrip:0,removeTokens:function(t,e){var n=this;return this.bucketSize?t>this.bucketSize?(process.nextTick(e.bind(null,"Requested tokens "+t+" exceeds bucket size "+this.bucketSize,null)),!1):(this.drip(),t>this.content?i():this.parentBucket?this.parentBucket.removeTokens(t,function(r,s){return r?e(r,null):t>n.content?i():(n.content-=t,void e(null,Math.min(s,n.content)))}):(this.content-=t,process.nextTick(e.bind(null,null,this.content)),!0)):(process.nextTick(e.bind(null,null,t,Number.POSITIVE_INFINITY)),!0);function i(){var i=Math.ceil((t-n.content)*(n.interval/n.tokensPerInterval));return setTimeout(function(){n.removeTokens(t,e)},i),!1}},tryRemoveTokens:function(t){return!(this.bucketSize&&(t>this.bucketSize||(this.drip(),t>this.content||this.parentBucket&&!this.parentBucket.tryRemoveTokens(t)||(this.content-=t,0))))},drip:function(){if(this.tokensPerInterval){var t=+new Date,e=Math.max(t-this.lastDrip,0);this.lastDrip=t;var n=e*(this.tokensPerInterval/this.interval);this.content=Math.min(this.content+n,this.bucketSize)}else this.content=this.bucketSize}},t.exports=e}},e={};function n(i){var r=e[i];if(void 0!==r)return r.exports;var s=e[i]={exports:{}};return t[i](s,s.exports,n),s.exports}var i,r={};(i=r).RateLimiter=n(3065),i.TokenBucket=n(5472),module.exports=r})(); \ No newline at end of file diff --git a/packages/node_modules/lodash.sortby.js b/packages/node_modules/lodash.sortby.js new file mode 100644 index 00000000000..37256f8debc --- /dev/null +++ b/packages/node_modules/lodash.sortby.js @@ -0,0 +1 @@ +(()=>{var t={8479:(t,r,n)=>{t=n.nmd(t);var e="__lodash_hash_undefined__",o=9007199254740991,u="[object Arguments]",a="[object Array]",i="[object Boolean]",c="[object Date]",f="[object Error]",l="[object Function]",s="[object Map]",v="[object Number]",h="[object Object]",p="[object Promise]",_="[object RegExp]",y="[object Set]",d="[object String]",b="[object Symbol]",g="[object WeakMap]",j="[object ArrayBuffer]",w="[object DataView]",m=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,A=/^\w*$/,O=/^\./,x=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,S=/\\(\\)?/g,k=/^\[object .+?Constructor\]$/,$=/^(?:0|[1-9]\d*)$/,E={};E["[object Float32Array]"]=E["[object Float64Array]"]=E["[object Int8Array]"]=E["[object Int16Array]"]=E["[object Int32Array]"]=E["[object Uint8Array]"]=E["[object Uint8ClampedArray]"]=E["[object Uint16Array]"]=E["[object Uint32Array]"]=!0,E[u]=E[a]=E[j]=E[i]=E[w]=E[c]=E[f]=E[l]=E[s]=E[v]=E[h]=E[_]=E[y]=E[d]=E[g]=!1;var F="object"==typeof global&&global&&global.Object===Object&&global,C="object"==typeof self&&self&&self.Object===Object&&self,I=F||C||Function("return this")(),M=r&&!r.nodeType&&r,P=M&&t&&!t.nodeType&&t,T=P&&P.exports===M&&F.process,U=function(){try{return T&&T.binding("util")}catch(t){}}(),z=U&&U.isTypedArray;function L(t,r){for(var n=-1,e=t?t.length:0,o=Array(e);++n-1},xt.prototype.set=function(t,r){var n=this.__data__,e=Et(n,t);return e<0?n.push([t,r]):n[e][1]=r,this},St.prototype.clear=function(){this.__data__={hash:new Ot,map:new(st||xt),string:new Ot}},St.prototype.delete=function(t){return Vt(this,t).delete(t)},St.prototype.get=function(t){return Vt(this,t).get(t)},St.prototype.has=function(t){return Vt(this,t).has(t)},St.prototype.set=function(t,r){return Vt(this,t).set(t,r),this},kt.prototype.add=kt.prototype.push=function(t){return this.__data__.set(t,e),this},kt.prototype.has=function(t){return this.__data__.has(t)},$t.prototype.clear=function(){this.__data__=new xt},$t.prototype.delete=function(t){return this.__data__.delete(t)},$t.prototype.get=function(t){return this.__data__.get(t)},$t.prototype.has=function(t){return this.__data__.has(t)},$t.prototype.set=function(t,r){var n=this.__data__;if(n instanceof xt){var e=n.__data__;if(!st||e.length<199)return e.push([t,r]),this;n=this.__data__=new St(e)}return n.set(t,r),this};var Ft,Ct=(Ft=function(t,r){return t&&Mt(t,r,vr)},function(t,r){if(null==t)return t;if(!ur(t))return Ft(t,r);for(var n=t.length,e=-1,o=Object(t);++e0&&n(i)?r>1?It(i,r-1,n,e,o):B(o,i):e||(o[o.length]=i)}return o}var Mt=function(t,r,n){for(var e=-1,o=Object(t),u=n(t),a=u.length;a--;){var i=u[++e];if(!1===r(o[i],i,o))break}return t};function Pt(t,r){for(var n=0,e=(r=Jt(r,t)?[r]:Bt(r)).length;null!=t&&n=i?c:c*("desc"==n[e]?-1:1)}return t.index-r.index}(t,r,n)});r--;)t[r]=t[r].value;return t}(o)}function Bt(t){return or(t)?t:Xt(t)}function Dt(t,r){if(t!==r){var n=void 0!==t,e=null===t,o=t==t,u=lr(t),a=void 0!==r,i=null===r,c=r==r,f=lr(r);if(!i&&!f&&!u&&t>r||u&&a&&c&&!i&&!f||e&&a&&c||!n&&c||!o)return 1;if(!e&&!u&&!f&&ti))return!1;var f=u.get(t);if(f&&u.get(r))return f==r;var l=-1,s=!0,v=1&o?new kt:void 0;for(u.set(t,r),u.set(r,t);++l-1&&t%1==0&&t1&&Ht(t,r[0],r[1])?r=[]:n>2&&Ht(r[0],r[1],r[2])&&(r=[r[0]]),Lt(t,It(r,1),[])});function rr(t,r){if("function"!=typeof t||r&&"function"!=typeof r)throw new TypeError("Expected a function");var n=function(){var e=arguments,o=r?r.apply(this,e):e[0],u=n.cache;if(u.has(o))return u.get(o);var a=t.apply(this,e);return n.cache=u.set(o,a),a};return n.cache=new(rr.Cache||St),n}function nr(t,r){return t===r||t!=t&&r!=r}function er(t){return function(t){return fr(t)&&ur(t)}(t)&&tt.call(t,"callee")&&(!ut.call(t,"callee")||rt.call(t)==u)}rr.Cache=St;var or=Array.isArray;function ur(t){return null!=t&&ir(t.length)&&!ar(t)}function ar(t){var r=cr(t)?rt.call(t):"";return r==l||"[object GeneratorFunction]"==r}function ir(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=o}function cr(t){var r=typeof t;return!!t&&("object"==r||"function"==r)}function fr(t){return!!t&&"object"==typeof t}function lr(t){return"symbol"==typeof t||fr(t)&&rt.call(t)==b}var sr=z?R(z):function(t){return fr(t)&&ir(t.length)&&!!E[rt.call(t)]};function vr(t){return ur(t)?function(t,r){var n=or(t)||er(t)?function(t,r){for(var n=-1,e=Array(t);++n(t.paths=[],t.children||(t.children=[]),t);var e=n(8479);module.exports=e})(); \ No newline at end of file diff --git a/packages/node_modules/lru-cache.js b/packages/node_modules/lru-cache.js new file mode 100644 index 00000000000..6145a89982d --- /dev/null +++ b/packages/node_modules/lru-cache.js @@ -0,0 +1 @@ +(()=>{"use strict";var t={d:(e,i)=>{for(var s in i)t.o(i,s)&&!t.o(e,s)&&Object.defineProperty(e,s,{enumerable:!0,get:i[s]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r:t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}},e={};t.r(e),t.d(e,{LRUCache:()=>u});const i="object"==typeof performance&&performance&&"function"==typeof performance.now?performance:Date,s=new Set,o="object"==typeof process&&process?process:{},h=(t,e,i,s)=>{"function"==typeof o.emitWarning?o.emitWarning(t,e,i,s):console.error(`[${i}] ${e}: ${t}`)};let n=globalThis.AbortController,a=globalThis.AbortSignal;if(void 0===n){a=class{onabort;_onabort=[];reason;aborted=!1;addEventListener(t,e){this._onabort.push(e)}},n=class{constructor(){e()}signal=new a;abort(t){if(!this.signal.aborted){this.signal.reason=t,this.signal.aborted=!0;for(const e of this.signal._onabort)e(t);this.signal.onabort?.(t)}}};let t="1"!==o.env?.LRU_CACHE_IGNORE_AC_WARNING;const e=()=>{t&&(t=!1,h("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.","NO_ABORT_CONTROLLER","ENOTSUP",e))}}Symbol("type");const r=t=>t&&t===Math.floor(t)&&t>0&&isFinite(t),l=t=>r(t)?t<=Math.pow(2,8)?Uint8Array:t<=Math.pow(2,16)?Uint16Array:t<=Math.pow(2,32)?Uint32Array:t<=Number.MAX_SAFE_INTEGER?c:null:null;class c extends Array{constructor(t){super(t),this.fill(0)}}class d{heap;length;static#t=!1;static create(t){const e=l(t);if(!e)return[];d.#t=!0;const i=new d(t,e);return d.#t=!1,i}constructor(t,e){if(!d.#t)throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new e(t),this.length=0}push(t){this.heap[this.length++]=t}pop(){return this.heap[--this.length]}}class u{#e;#i;#s;#o;#h;#n;ttl;ttlResolution;ttlAutopurge;updateAgeOnGet;updateAgeOnHas;allowStale;noDisposeOnSet;noUpdateTTL;maxEntrySize;sizeCalculation;noDeleteOnFetchRejection;noDeleteOnStaleGet;allowStaleOnFetchAbort;allowStaleOnFetchRejection;ignoreFetchAbort;#a;#r;#l;#c;#d;#u;#f;#p;#g;#v;#S;#m;#y;#z;#w;#L;#F;static unsafeExposeInternals(t){return{starts:t.#y,ttls:t.#z,sizes:t.#m,keyMap:t.#l,keyList:t.#c,valList:t.#d,next:t.#u,prev:t.#f,get head(){return t.#p},get tail(){return t.#g},free:t.#v,isBackgroundFetch:e=>t.#x(e),backgroundFetch:(e,i,s,o)=>t.#A(e,i,s,o),moveToTail:e=>t.#_(e),indexes:e=>t.#T(e),rindexes:e=>t.#b(e),isStale:e=>t.#k(e)}}get max(){return this.#e}get maxSize(){return this.#i}get calculatedSize(){return this.#r}get size(){return this.#a}get fetchMethod(){return this.#h}get memoMethod(){return this.#n}get dispose(){return this.#s}get disposeAfter(){return this.#o}constructor(t){const{max:e=0,ttl:i,ttlResolution:o=1,ttlAutopurge:n,updateAgeOnGet:a,updateAgeOnHas:c,allowStale:f,dispose:p,disposeAfter:g,noDisposeOnSet:v,noUpdateTTL:S,maxSize:m=0,maxEntrySize:y=0,sizeCalculation:z,fetchMethod:w,memoMethod:L,noDeleteOnFetchRejection:F,noDeleteOnStaleGet:x,allowStaleOnFetchRejection:A,allowStaleOnFetchAbort:_,ignoreFetchAbort:T}=t;if(0!==e&&!r(e))throw new TypeError("max option must be a nonnegative integer");const b=e?l(e):Array;if(!b)throw new Error("invalid max value: "+e);if(this.#e=e,this.#i=m,this.maxEntrySize=y||this.#i,this.sizeCalculation=z,this.sizeCalculation){if(!this.#i&&!this.maxEntrySize)throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if("function"!=typeof this.sizeCalculation)throw new TypeError("sizeCalculation set to non-function")}if(void 0!==L&&"function"!=typeof L)throw new TypeError("memoMethod must be a function if defined");if(this.#n=L,void 0!==w&&"function"!=typeof w)throw new TypeError("fetchMethod must be a function if specified");if(this.#h=w,this.#L=!!w,this.#l=new Map,this.#c=new Array(e).fill(void 0),this.#d=new Array(e).fill(void 0),this.#u=new b(e),this.#f=new b(e),this.#p=0,this.#g=0,this.#v=d.create(e),this.#a=0,this.#r=0,"function"==typeof p&&(this.#s=p),"function"==typeof g?(this.#o=g,this.#S=[]):(this.#o=void 0,this.#S=void 0),this.#w=!!this.#s,this.#F=!!this.#o,this.noDisposeOnSet=!!v,this.noUpdateTTL=!!S,this.noDeleteOnFetchRejection=!!F,this.allowStaleOnFetchRejection=!!A,this.allowStaleOnFetchAbort=!!_,this.ignoreFetchAbort=!!T,0!==this.maxEntrySize){if(0!==this.#i&&!r(this.#i))throw new TypeError("maxSize must be a positive integer if specified");if(!r(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");this.#O()}if(this.allowStale=!!f,this.noDeleteOnStaleGet=!!x,this.updateAgeOnGet=!!a,this.updateAgeOnHas=!!c,this.ttlResolution=r(o)||0===o?o:1,this.ttlAutopurge=!!n,this.ttl=i||0,this.ttl){if(!r(this.ttl))throw new TypeError("ttl must be a positive integer if specified");this.#E()}if(0===this.#e&&0===this.ttl&&0===this.#i)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!this.#e&&!this.#i){const t="LRU_CACHE_UNBOUNDED";(t=>!s.has(t))(t)&&(s.add(t),h("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",t,u))}}getRemainingTTL(t){return this.#l.has(t)?1/0:0}#E(){const t=new c(this.#e),e=new c(this.#e);this.#z=t,this.#y=e,this.#D=(s,o,h=i.now())=>{if(e[s]=0!==o?h:0,t[s]=o,0!==o&&this.ttlAutopurge){const t=setTimeout(()=>{this.#k(s)&&this.#M(this.#c[s],"expire")},o+1);t.unref&&t.unref()}},this.#C=s=>{e[s]=0!==t[s]?i.now():0},this.#R=(i,h)=>{if(t[h]){const n=t[h],a=e[h];if(!n||!a)return;i.ttl=n,i.start=a,i.now=s||o();const r=i.now-a;i.remainingTTL=n-r}};let s=0;const o=()=>{const t=i.now();if(this.ttlResolution>0){s=t;const e=setTimeout(()=>s=0,this.ttlResolution);e.unref&&e.unref()}return t};this.getRemainingTTL=i=>{const h=this.#l.get(i);if(void 0===h)return 0;const n=t[h],a=e[h];return n&&a?n-((s||o())-a):1/0},this.#k=i=>{const h=e[i],n=t[i];return!!n&&!!h&&(s||o())-h>n}}#C=()=>{};#R=()=>{};#D=()=>{};#k=()=>!1;#O(){const t=new c(this.#e);this.#r=0,this.#m=t,this.#W=e=>{this.#r-=t[e],t[e]=0},this.#I=(t,e,i,s)=>{if(this.#x(e))return 0;if(!r(i)){if(!s)throw new TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");if("function"!=typeof s)throw new TypeError("sizeCalculation must be a function");if(i=s(e,t),!r(i))throw new TypeError("sizeCalculation return invalid (expect positive integer)")}return i},this.#B=(e,i,s)=>{if(t[e]=i,this.#i){const i=this.#i-t[e];for(;this.#r>i;)this.#G(!0)}this.#r+=t[e],s&&(s.entrySize=i,s.totalCalculatedSize=this.#r)}}#W=t=>{};#B=(t,e,i)=>{};#I=(t,e,i,s)=>{if(i||s)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0};*#T({allowStale:t=this.allowStale}={}){if(this.#a)for(let e=this.#g;this.#j(e)&&(!t&&this.#k(e)||(yield e),e!==this.#p);)e=this.#f[e]}*#b({allowStale:t=this.allowStale}={}){if(this.#a)for(let e=this.#p;this.#j(e)&&(!t&&this.#k(e)||(yield e),e!==this.#g);)e=this.#u[e]}#j(t){return void 0!==t&&this.#l.get(this.#c[t])===t}*entries(){for(const t of this.#T())void 0===this.#d[t]||void 0===this.#c[t]||this.#x(this.#d[t])||(yield[this.#c[t],this.#d[t]])}*rentries(){for(const t of this.#b())void 0===this.#d[t]||void 0===this.#c[t]||this.#x(this.#d[t])||(yield[this.#c[t],this.#d[t]])}*keys(){for(const t of this.#T()){const e=this.#c[t];void 0===e||this.#x(this.#d[t])||(yield e)}}*rkeys(){for(const t of this.#b()){const e=this.#c[t];void 0===e||this.#x(this.#d[t])||(yield e)}}*values(){for(const t of this.#T())void 0===this.#d[t]||this.#x(this.#d[t])||(yield this.#d[t])}*rvalues(){for(const t of this.#b())void 0===this.#d[t]||this.#x(this.#d[t])||(yield this.#d[t])}[Symbol.iterator](){return this.entries()}[Symbol.toStringTag]="LRUCache";find(t,e={}){for(const i of this.#T()){const s=this.#d[i],o=this.#x(s)?s.__staleWhileFetching:s;if(void 0!==o&&t(o,this.#c[i],this))return this.get(this.#c[i],e)}}forEach(t,e=this){for(const i of this.#T()){const s=this.#d[i],o=this.#x(s)?s.__staleWhileFetching:s;void 0!==o&&t.call(e,o,this.#c[i],this)}}rforEach(t,e=this){for(const i of this.#b()){const s=this.#d[i],o=this.#x(s)?s.__staleWhileFetching:s;void 0!==o&&t.call(e,o,this.#c[i],this)}}purgeStale(){let t=!1;for(const e of this.#b({allowStale:!0}))this.#k(e)&&(this.#M(this.#c[e],"expire"),t=!0);return t}info(t){const e=this.#l.get(t);if(void 0===e)return;const s=this.#d[e],o=this.#x(s)?s.__staleWhileFetching:s;if(void 0===o)return;const h={value:o};if(this.#z&&this.#y){const t=this.#z[e],s=this.#y[e];if(t&&s){const e=t-(i.now()-s);h.ttl=e,h.start=Date.now()}}return this.#m&&(h.size=this.#m[e]),h}dump(){const t=[];for(const e of this.#T({allowStale:!0})){const s=this.#c[e],o=this.#d[e],h=this.#x(o)?o.__staleWhileFetching:o;if(void 0===h||void 0===s)continue;const n={value:h};if(this.#z&&this.#y){n.ttl=this.#z[e];const t=i.now()-this.#y[e];n.start=Math.floor(Date.now()-t)}this.#m&&(n.size=this.#m[e]),t.unshift([s,n])}return t}load(t){this.clear();for(const[e,s]of t){if(s.start){const t=Date.now()-s.start;s.start=i.now()-t}this.set(e,s.value,s)}}set(t,e,i={}){if(void 0===e)return this.delete(t),this;const{ttl:s=this.ttl,start:o,noDisposeOnSet:h=this.noDisposeOnSet,sizeCalculation:n=this.sizeCalculation,status:a}=i;let{noUpdateTTL:r=this.noUpdateTTL}=i;const l=this.#I(t,e,i.size||0,n);if(this.maxEntrySize&&l>this.maxEntrySize)return a&&(a.set="miss",a.maxEntrySizeExceeded=!0),this.#M(t,"set"),this;let c=0===this.#a?void 0:this.#l.get(t);if(void 0===c)c=0===this.#a?this.#g:0!==this.#v.length?this.#v.pop():this.#a===this.#e?this.#G(!1):this.#a,this.#c[c]=t,this.#d[c]=e,this.#l.set(t,c),this.#u[this.#g]=c,this.#f[c]=this.#g,this.#g=c,this.#a++,this.#B(c,l,a),a&&(a.set="add"),r=!1;else{this.#_(c);const i=this.#d[c];if(e!==i){if(this.#L&&this.#x(i)){i.__abortController.abort(new Error("replaced"));const{__staleWhileFetching:e}=i;void 0===e||h||(this.#w&&this.#s?.(e,t,"set"),this.#F&&this.#S?.push([e,t,"set"]))}else h||(this.#w&&this.#s?.(i,t,"set"),this.#F&&this.#S?.push([i,t,"set"]));if(this.#W(c),this.#B(c,l,a),this.#d[c]=e,a){a.set="replace";const t=i&&this.#x(i)?i.__staleWhileFetching:i;void 0!==t&&(a.oldValue=t)}}else a&&(a.set="update")}if(0===s||this.#z||this.#E(),this.#z&&(r||this.#D(c,s,o),a&&this.#R(a,c)),!h&&this.#F&&this.#S){const t=this.#S;let e;for(;e=t?.shift();)this.#o?.(...e)}return this}pop(){try{for(;this.#a;){const t=this.#d[this.#p];if(this.#G(!0),this.#x(t)){if(t.__staleWhileFetching)return t.__staleWhileFetching}else if(void 0!==t)return t}}finally{if(this.#F&&this.#S){const t=this.#S;let e;for(;e=t?.shift();)this.#o?.(...e)}}}#G(t){const e=this.#p,i=this.#c[e],s=this.#d[e];return this.#L&&this.#x(s)?s.__abortController.abort(new Error("evicted")):(this.#w||this.#F)&&(this.#w&&this.#s?.(s,i,"evict"),this.#F&&this.#S?.push([s,i,"evict"])),this.#W(e),t&&(this.#c[e]=void 0,this.#d[e]=void 0,this.#v.push(e)),1===this.#a?(this.#p=this.#g=0,this.#v.length=0):this.#p=this.#u[e],this.#l.delete(i),this.#a--,e}has(t,e={}){const{updateAgeOnHas:i=this.updateAgeOnHas,status:s}=e,o=this.#l.get(t);if(void 0!==o){const t=this.#d[o];if(this.#x(t)&&void 0===t.__staleWhileFetching)return!1;if(!this.#k(o))return i&&this.#C(o),s&&(s.has="hit",this.#R(s,o)),!0;s&&(s.has="stale",this.#R(s,o))}else s&&(s.has="miss");return!1}peek(t,e={}){const{allowStale:i=this.allowStale}=e,s=this.#l.get(t);if(void 0===s||!i&&this.#k(s))return;const o=this.#d[s];return this.#x(o)?o.__staleWhileFetching:o}#A(t,e,i,s){const o=void 0===e?void 0:this.#d[e];if(this.#x(o))return o;const h=new n,{signal:a}=i;a?.addEventListener("abort",()=>h.abort(a.reason),{signal:h.signal});const r={signal:h.signal,options:i,context:s},l=(s,o=!1)=>{const{aborted:n}=h.signal,a=i.ignoreFetchAbort&&void 0!==s;if(i.status&&(n&&!o?(i.status.fetchAborted=!0,i.status.fetchError=h.signal.reason,a&&(i.status.fetchAbortIgnored=!0)):i.status.fetchResolved=!0),n&&!a&&!o)return c(h.signal.reason);const l=d;return this.#d[e]===d&&(void 0===s?l.__staleWhileFetching?this.#d[e]=l.__staleWhileFetching:this.#M(t,"fetch"):(i.status&&(i.status.fetchUpdated=!0),this.set(t,s,r.options))),s},c=s=>{const{aborted:o}=h.signal,n=o&&i.allowStaleOnFetchAbort,a=n||i.allowStaleOnFetchRejection,r=a||i.noDeleteOnFetchRejection,l=d;if(this.#d[e]===d&&(r&&void 0!==l.__staleWhileFetching?n||(this.#d[e]=l.__staleWhileFetching):this.#M(t,"fetch")),a)return i.status&&void 0!==l.__staleWhileFetching&&(i.status.returnedStale=!0),l.__staleWhileFetching;if(l.__returned===l)throw s};i.status&&(i.status.fetchDispatched=!0);const d=new Promise((e,s)=>{const n=this.#h?.(t,o,r);n&&n instanceof Promise&&n.then(t=>e(void 0===t?void 0:t),s),h.signal.addEventListener("abort",()=>{i.ignoreFetchAbort&&!i.allowStaleOnFetchAbort||(e(void 0),i.allowStaleOnFetchAbort&&(e=t=>l(t,!0)))})}).then(l,t=>(i.status&&(i.status.fetchRejected=!0,i.status.fetchError=t),c(t))),u=Object.assign(d,{__abortController:h,__staleWhileFetching:o,__returned:void 0});return void 0===e?(this.set(t,u,{...r.options,status:void 0}),e=this.#l.get(t)):this.#d[e]=u,u}#x(t){if(!this.#L)return!1;const e=t;return!!e&&e instanceof Promise&&e.hasOwnProperty("__staleWhileFetching")&&e.__abortController instanceof n}async fetch(t,e={}){const{allowStale:i=this.allowStale,updateAgeOnGet:s=this.updateAgeOnGet,noDeleteOnStaleGet:o=this.noDeleteOnStaleGet,ttl:h=this.ttl,noDisposeOnSet:n=this.noDisposeOnSet,size:a=0,sizeCalculation:r=this.sizeCalculation,noUpdateTTL:l=this.noUpdateTTL,noDeleteOnFetchRejection:c=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:d=this.allowStaleOnFetchRejection,ignoreFetchAbort:u=this.ignoreFetchAbort,allowStaleOnFetchAbort:f=this.allowStaleOnFetchAbort,context:p,forceRefresh:g=!1,status:v,signal:S}=e;if(!this.#L)return v&&(v.fetch="get"),this.get(t,{allowStale:i,updateAgeOnGet:s,noDeleteOnStaleGet:o,status:v});const m={allowStale:i,updateAgeOnGet:s,noDeleteOnStaleGet:o,ttl:h,noDisposeOnSet:n,size:a,sizeCalculation:r,noUpdateTTL:l,noDeleteOnFetchRejection:c,allowStaleOnFetchRejection:d,allowStaleOnFetchAbort:f,ignoreFetchAbort:u,status:v,signal:S};let y=this.#l.get(t);if(void 0===y){v&&(v.fetch="miss");const e=this.#A(t,y,m,p);return e.__returned=e}{const e=this.#d[y];if(this.#x(e)){const t=i&&void 0!==e.__staleWhileFetching;return v&&(v.fetch="inflight",t&&(v.returnedStale=!0)),t?e.__staleWhileFetching:e.__returned=e}const o=this.#k(y);if(!g&&!o)return v&&(v.fetch="hit"),this.#_(y),s&&this.#C(y),v&&this.#R(v,y),e;const h=this.#A(t,y,m,p),n=void 0!==h.__staleWhileFetching&&i;return v&&(v.fetch=o?"stale":"refresh",n&&o&&(v.returnedStale=!0)),n?h.__staleWhileFetching:h.__returned=h}}async forceFetch(t,e={}){const i=await this.fetch(t,e);if(void 0===i)throw new Error("fetch() returned undefined");return i}memo(t,e={}){const i=this.#n;if(!i)throw new Error("no memoMethod provided to constructor");const{context:s,forceRefresh:o,...h}=e,n=this.get(t,h);if(!o&&void 0!==n)return n;const a=i(t,n,{options:h,context:s});return this.set(t,a,h),a}get(t,e={}){const{allowStale:i=this.allowStale,updateAgeOnGet:s=this.updateAgeOnGet,noDeleteOnStaleGet:o=this.noDeleteOnStaleGet,status:h}=e,n=this.#l.get(t);if(void 0!==n){const e=this.#d[n],a=this.#x(e);return h&&this.#R(h,n),this.#k(n)?(h&&(h.get="stale"),a?(h&&i&&void 0!==e.__staleWhileFetching&&(h.returnedStale=!0),i?e.__staleWhileFetching:void 0):(o||this.#M(t,"expire"),h&&i&&(h.returnedStale=!0),i?e:void 0)):(h&&(h.get="hit"),a?e.__staleWhileFetching:(this.#_(n),s&&this.#C(n),e))}h&&(h.get="miss")}#U(t,e){this.#f[e]=t,this.#u[t]=e}#_(t){t!==this.#g&&(t===this.#p?this.#p=this.#u[t]:this.#U(this.#f[t],this.#u[t]),this.#U(this.#g,t),this.#g=t)}delete(t){return this.#M(t,"delete")}#M(t,e){let i=!1;if(0!==this.#a){const s=this.#l.get(t);if(void 0!==s)if(i=!0,1===this.#a)this.#N(e);else{this.#W(s);const i=this.#d[s];if(this.#x(i)?i.__abortController.abort(new Error("deleted")):(this.#w||this.#F)&&(this.#w&&this.#s?.(i,t,e),this.#F&&this.#S?.push([i,t,e])),this.#l.delete(t),this.#c[s]=void 0,this.#d[s]=void 0,s===this.#g)this.#g=this.#f[s];else if(s===this.#p)this.#p=this.#u[s];else{const t=this.#f[s];this.#u[t]=this.#u[s];const e=this.#u[s];this.#f[e]=this.#f[s]}this.#a--,this.#v.push(s)}}if(this.#F&&this.#S?.length){const t=this.#S;let e;for(;e=t?.shift();)this.#o?.(...e)}return i}clear(){return this.#N("delete")}#N(t){for(const e of this.#b({allowStale:!0})){const i=this.#d[e];if(this.#x(i))i.__abortController.abort(new Error("deleted"));else{const s=this.#c[e];this.#w&&this.#s?.(i,s,t),this.#F&&this.#S?.push([i,s,t])}}if(this.#l.clear(),this.#d.fill(void 0),this.#c.fill(void 0),this.#z&&this.#y&&(this.#z.fill(0),this.#y.fill(0)),this.#m&&this.#m.fill(0),this.#p=0,this.#g=0,this.#v.length=0,this.#r=0,this.#a=0,this.#F&&this.#S){const t=this.#S;let e;for(;e=t?.shift();)this.#o?.(...e)}}}module.exports=e})(); \ No newline at end of file diff --git a/packages/node_modules/module-details-from-path.js b/packages/node_modules/module-details-from-path.js new file mode 100644 index 00000000000..2b41364da5c --- /dev/null +++ b/packages/node_modules/module-details-from-path.js @@ -0,0 +1 @@ +(()=>{"use strict";var r={5335:(r,e,t)=>{var o=t(6928).sep;r.exports=function(r){var e=r.split(o),t=e.lastIndexOf("node_modules");if(-1!==t&&e[t+1]){for(var s="@"===e[t+1][0],a=s?e[t+1]+"/"+e[t+2]:e[t+1],n=s?3:2,p="",i=t+n-1,u=0;u<=i;u++)p+=u===i?e[u]:e[u]+o;for(var v="",x=e.length-1,f=t+n;f<=x;f++)v+=f===x?e[f]:e[f]+o;return{name:a,basedir:p,path:v}}}},6928:r=>{r.exports=require("path")}},e={},t=function t(o){var s=e[o];if(void 0!==s)return s.exports;var a=e[o]={exports:{}};return r[o](a,a.exports,t),a.exports}(5335);module.exports=t})(); \ No newline at end of file diff --git a/packages/node_modules/mutexify.js b/packages/node_modules/mutexify.js new file mode 100644 index 00000000000..abfc82e7c13 --- /dev/null +++ b/packages/node_modules/mutexify.js @@ -0,0 +1 @@ +(()=>{var e={2133:e=>{e.exports="function"==typeof queueMicrotask?queueMicrotask:e=>Promise.resolve().then(e)},4111:(e,o,r)=>{e.exports="undefined"!=typeof process&&"function"==typeof process.nextTick?process.nextTick.bind(process):r(2133)},7826:(e,o,r)=>{var t=r(4111);e.exports=function(){var e=[],o=null,r=function(){o(s)},n=function(s){return o?e.push(s):(o=s,n.locked=!0,t(r),0)};n.locked=!1;var s=function(r,t,s){o=null,n.locked=!1,e.length&&n(e.shift()),r&&r(t,s)};return n}}},o={},r=function r(t){var n=o[t];if(void 0!==n)return n.exports;var s=o[t]={exports:{}};return e[t](s,s.exports,r),s.exports}(7826);module.exports=r})(); \ No newline at end of file diff --git a/packages/node_modules/opentracing.js b/packages/node_modules/opentracing.js new file mode 100644 index 00000000000..45a58c57aa3 --- /dev/null +++ b/packages/node_modules/opentracing.js @@ -0,0 +1 @@ +(()=>{"use strict";var t={388:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0});var r=n(7168);e.MockContext=r.default;var o=n(5071);e.MockSpan=o.default;var a=n(3554);e.MockTracer=a.default},1459:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0});e.default=function(t){this.buffer=t}},1572:function(t,e,n){var r,o=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},r(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var a=n(2472),i=new a.default,u=null,s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.startSpan=function(){var t=u||i;return t.startSpan.apply(t,arguments)},e.prototype.inject=function(){var t=u||i;return t.inject.apply(t,arguments)},e.prototype.extract=function(){var t=u||i;return t.extract.apply(t,arguments)},e}(a.default),p=new s;e.initGlobalTracer=function(t){u=t},e.globalTracer=function(){return p}},2472:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0});var r=n(8704),o=n(5645),a=n(5942),i=function(){function t(){}return t.prototype.startSpan=function(t,e){if(void 0===e&&(e={}),e.childOf){var n=r.childOf(e.childOf);e.references?e.references.push(n):e.references=[n],delete e.childOf}return this._startSpan(t,e)},t.prototype.inject=function(t,e,n){return t instanceof a.default&&(t=t.context()),this._inject(t,e,n)},t.prototype.extract=function(t,e){return this._extract(t,e)},t.prototype._startSpan=function(t,e){return o.span},t.prototype._inject=function(t,e,n){},t.prototype._extract=function(t,e){return o.spanContext},t}();e.Tracer=i,e.default=i},3554:function(t,e,n){var r,o=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},r(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var a=n(5365),i=n(9485),u=n(5071),s=function(t){function e(){var e=t.call(this)||this;return e._spans=[],e}return o(e,t),e.prototype._startSpan=function(t,e){var n=this._allocSpan();if(n.setOperationName(t),this._spans.push(n),e.references)for(var r=0,o=e.references;r{Object.defineProperty(e,"__esModule",{value:!0}),e.SPAN_KIND="span.kind",e.SPAN_KIND_RPC_CLIENT="client",e.SPAN_KIND_RPC_SERVER="server",e.SPAN_KIND_MESSAGING_PRODUCER="producer",e.SPAN_KIND_MESSAGING_CONSUMER="consumer",e.ERROR="error",e.COMPONENT="component",e.SAMPLING_PRIORITY="sampling.priority",e.PEER_SERVICE="peer.service",e.PEER_HOSTNAME="peer.hostname",e.PEER_ADDRESS="peer.address",e.PEER_HOST_IPV4="peer.ipv4",e.PEER_HOST_IPV6="peer.ipv6",e.PEER_PORT="peer.port",e.HTTP_URL="http.url",e.HTTP_METHOD="http.method",e.HTTP_STATUS_CODE="http.status_code",e.MESSAGE_BUS_DESTINATION="message_bus.destination",e.DB_INSTANCE="db.instance",e.DB_STATEMENT="db.statement",e.DB_TYPE="db.type",e.DB_USER="db.user"},5071:function(t,e,n){var r,o=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},r(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var a=n(5365),i=n(7168),u=function(t){function e(e){var n=t.call(this)||this;return n._mockTracer=e,n._uuid=n._generateUUID(),n._startMs=Date.now(),n._finishMs=0,n._operationName="",n._tags={},n._logs=[],n}return o(e,t),e.prototype._context=function(){return new i.default(this)},e.prototype._setOperationName=function(t){this._operationName=t},e.prototype._addTags=function(t){for(var e=0,n=Object.keys(t);e{function r(t){for(var n in t)e.hasOwnProperty(n)||(e[n]=t[n])}Object.defineProperty(e,"__esModule",{value:!0});var o=n(1459);e.BinaryCarrier=o.default;var a=n(4020);e.Tags=a;var i=n(5645),u=n(6296);e.Reference=u.default;var s=n(5942);e.Span=s.default;var p=n(8685);e.SpanContext=p.default;var c=n(2472);e.Tracer=c.Tracer;var f=n(388);e.MockTracer=f.MockTracer,r(n(1572)),r(n(6140)),r(n(8704)),i.initialize()},5645:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0});var r=n(5942),o=n(8685),a=n(2472);e.tracer=null,e.spanContext=null,e.span=null,e.initialize=function(){e.tracer=new a.default,e.span=new r.default,e.spanContext=new o.default}},5942:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0});var r=n(5645),o=function(){function t(){}return t.prototype.context=function(){return this._context()},t.prototype.tracer=function(){return this._tracer()},t.prototype.setOperationName=function(t){return this._setOperationName(t),this},t.prototype.setBaggageItem=function(t,e){return this._setBaggageItem(t,e),this},t.prototype.getBaggageItem=function(t){return this._getBaggageItem(t)},t.prototype.setTag=function(t,e){var n;return this._addTags(((n={})[t]=e,n)),this},t.prototype.addTags=function(t){return this._addTags(t),this},t.prototype.log=function(t,e){return this._log(t,e),this},t.prototype.logEvent=function(t,e){return this._log({event:t,payload:e})},t.prototype.finish=function(t){this._finish(t)},t.prototype._context=function(){return r.spanContext},t.prototype._tracer=function(){return r.tracer},t.prototype._setOperationName=function(t){},t.prototype._setBaggageItem=function(t,e){},t.prototype._getBaggageItem=function(t){},t.prototype._addTags=function(t){},t.prototype._log=function(t,e){},t.prototype._finish=function(t){},t}();e.Span=o,e.default=o},6140:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.FORMAT_BINARY="binary",e.FORMAT_TEXT_MAP="text_map",e.FORMAT_HTTP_HEADERS="http_headers",e.REFERENCE_CHILD_OF="child_of",e.REFERENCE_FOLLOWS_FROM="follows_from"},6296:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0});var r=n(5942),o=function(){function t(t,e){this._type=t,this._referencedContext=e instanceof r.default?e.context():e}return t.prototype.type=function(){return this._type},t.prototype.referencedContext=function(){return this._referencedContext},t}();e.default=o},7168:function(t,e,n){var r,o=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},r(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var a=function(t){function e(e){var n=t.call(this)||this;return n._span=e,n}return o(e,t),e.prototype.span=function(){return this._span},e}(n(8685).SpanContext);e.MockContext=a,e.default=a},8685:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(){}return t.prototype.toTraceId=function(){return""},t.prototype.toSpanId=function(){return""},t}();e.SpanContext=n,e.default=n},8704:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0});var r=n(6140),o=n(6296),a=n(5942);e.childOf=function(t){return t instanceof a.default&&(t=t.context()),new o.default(r.REFERENCE_CHILD_OF,t)},e.followsFrom=function(t){return t instanceof a.default&&(t=t.context()),new o.default(r.REFERENCE_FOLLOWS_FROM,t)}},9485:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t){var e=this;this.spans=t,this.spansByUUID={},this.spansByTag={},this.debugSpans=[],this.unfinishedSpans=[],t.forEach(function(t){0===t._finishMs&&e.unfinishedSpans.push(t),e.spansByUUID[t.uuid()]=t,e.debugSpans.push(t.debug());var n=t.tags();Object.keys(n).forEach(function(r){var o=n[r];e.spansByTag[r]=e.spansByTag[r]||{},e.spansByTag[r][o]=e.spansByTag[r][o]||[],e.spansByTag[r][o].push(t)})})}return t.prototype.firstSpanWithTagValue=function(t,e){var n=this.spansByTag[t];if(!n)return null;var r=n[e];return r?r[0]:null},t}();e.MockReport=n,e.default=n}},e={},n=function n(r){var o=e[r];if(void 0!==o)return o.exports;var a=e[r]={exports:{}};return t[r].call(a.exports,a,a.exports,n),a.exports}(5365);module.exports=n})(); \ No newline at end of file diff --git a/packages/node_modules/path-to-regexp.js b/packages/node_modules/path-to-regexp.js new file mode 100644 index 00000000000..6c516a18a93 --- /dev/null +++ b/packages/node_modules/path-to-regexp.js @@ -0,0 +1 @@ +(()=>{var e={5302:e=>{e.exports=function e(n,t,o){t=t||[];var i,s=(o=o||{}).strict,f=!1!==o.end,a=o.sensitive?"":"i",u=!1!==o.lookahead,p=0,l=t.length,g=0,c=0,x=0,h="";if(n instanceof RegExp){for(;i=r.exec(n.source);)"\\"!==i[0][0]&&t.push({name:i[1]||c++,optional:!1,offset:i.index});return n}if(Array.isArray(n))return n=n.map(function(r){return e(r,t,o).source}),new RegExp(n.join("|"),a);if("string"!=typeof n)throw new TypeError("path must be a string, array of strings, or regular expression");for(n=n.replace(/\\.|(\/)?(\.)?:(\w+)(\(.*?\))?(\*)?(\?)?|[.*]|\/\(/g,function(e,r,o,i,s,f,a,u){if("\\"===e[0])return h+=e,x+=2,e;if("."===e)return h+="\\.",p+=1,x+=1,"\\.";if(r||o?h="":h+=n.slice(x,u),x=u+e.length,"*"===e)return p+=3,"(.*)";if("/("===e)return h+="/",p+=2,"/(?:";r=r||"",o=o?"\\.":"",a=a||"",s=s?s.replace(/\\.|\*/,function(e){return"*"===e?"(.*)":e}):h?"((?:(?!/|"+h+").)+?)":"([^/"+o+"]+?)",t.push({name:i,optional:!!a,offset:u+p});var l="(?:"+o+r+s+(f?"((?:[/"+o+"].+?)?)":"")+")"+a;return p+=l.length-e.length,l});i=r.exec(n);)"\\"!==i[0][0]&&((l+g===t.length||t[l+g].offset>i.index)&&t.splice(l+g,0,{name:c++,optional:!1,offset:i.index}),g++);return n+=s?"":"/"===n[n.length-1]?"?":"/?",f?n+="$":"/"!==n[n.length-1]&&(n+=u?"(?=/|$)":"(?:/|$)"),new RegExp("^"+n,a)};var r=/\\.|\((?:\?<(.*?)>)?(?!\?)/g}},r={},n=function n(t){var o=r[t];if(void 0!==o)return o.exports;var i=r[t]={exports:{}};return e[t](i,i.exports,n),i.exports}(5302);module.exports=n})(); \ No newline at end of file diff --git a/packages/node_modules/pprof-format.js b/packages/node_modules/pprof-format.js new file mode 100644 index 00000000000..a0689b78aff --- /dev/null +++ b/packages/node_modules/pprof-format.js @@ -0,0 +1,2 @@ +/*! For license information please see pprof-format.js.LICENSE.txt */ +(()=>{"use strict";var e={d:(t,n)=>{for(var s in n)e.o(n,s)&&!e.o(t,s)&&Object.defineProperty(t,s,{enumerable:!0,get:n[s]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};e.r(t),e.d(t,{Function:()=>M,Label:()=>U,Line:()=>P,Location:()=>O,Mapping:()=>A,Profile:()=>j,Sample:()=>V,StringTable:()=>L,ValueType:()=>v,emptyTableToken:()=>S});var n,s,i=function(e,t,n,s){if("a"===n&&!s)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!s:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?s:"a"===n?s.call(e):s?s.value:t.get(e)};const r=2n**32n-1n,o=2**32-1,a=o+1,c="undefined"==typeof Buffer?e=>(new TextEncoder).encode(e):e=>Buffer.from(e,"utf8");function h(e){if(!e.length)return 0;let t=0;for(;t=128;);return t}function u(e,t=0){return{value:e,offset:t}}function d(e,t){switch(e){case l:for(let e=0;e>>0)%a:Number(e&r)}(e),s=function(e){return"bigint"!=typeof e?e/a>>>0:Number(e>>32n&r)}(e);return t&&(s=~s>>>0,n=~n>>>0,++n>o&&(n=0,++s>o&&(s=0))),[s,n]}const l=0,m=2;function p(e){if(h(e)>4)return function(e){if(!e.length)return BigInt(0);let t=BigInt(127&e[0]),n=0;for(;e[n++]>=128;)t|=BigInt(127&e[n])<=128;)t|=(127&e[n])<<7*n;return t}function g(e){const t=[];let n=0;for(let s=0;s>>28|t<<4)>>>0,i=t>>>24;return 0!==i?i<128?9:10:0!==s?s<16384?s<128?5:6:s<2097152?7:8:n<16384?n<128?1:2:n<2097152?3:4}function b(e){return void 0===e?0:"number"==typeof e||"bigint"==typeof e?T(e)||1:e.length}function w(e){let t=0;for(const n of e)t+=b(n);return t}function B(e){const t=T(e);return t?1+t:0}function _(e){let t=0;for(const n of e)t+=T(n)||1;return t?1+T(t)+t:0}function k(e){const t=b(e);return t?1+T(t)+t:0}function I(e){let t=0;for(const n of e)t+=k(n);return t}function F(e,t,n){if(0===n||0n===n)return e[t++]=0,t;let[s,i]=f(n);for(;s;)e[t++]=127&i|128,i=(i>>>7|s<<25)>>>0,s>>>=7;for(;i>127;)e[t++]=127&i|128,i>>>=7;return e[t++]=i,t}const S=Symbol();class L{constructor(e){this.strings=new Array,n.set(this,new Array),s.set(this,new Map),e!==S&&this.dedup("")}get encodedLength(){let e=0;for(const t of i(this,n,"f"))e+=t.length;return e}_encodeToBuffer(e,t){for(const s of i(this,n,"f"))e.set(s,t),t+=s.length;return t}encode(e=new Uint8Array(this.encodedLength)){return this._encodeToBuffer(e,0),e}static _encodeStringFromUtf8(e){const t=new Uint8Array(1+e.length+(T(e.length)||1));let n=0;return t[n++]=50,n=F(t,n,e.length),e.length>0&&t.set(e,n++),t}static _encodeString(e){return L._encodeStringFromUtf8(c(e))}dedup(e){if("number"==typeof e)return e;if(!i(this,s,"f").has(e)){const t=this.strings.push(e)-1;i(this,s,"f").set(e,t),i(this,n,"f").push(L._encodeString(e))}return i(this,s,"f").get(e)}_decodeString(e){const t=(new TextDecoder).decode(e);i(this,s,"f").set(t,this.strings.push(t)-1),i(this,n,"f").push(L._encodeStringFromUtf8(e))}}function N(e,t){const n={};let s=0;for(;s>3,r=7&e[s];s++;const{offset:o,value:a}=d(r,e.slice(s));s+=a.length+o,t(n,i,a)}return n}n=new WeakMap,s=new WeakMap;class v{static create(e){return e instanceof v?e:new v(e)}constructor(e){this.type=e.type||0,this.unit=e.unit||0}get length(){let e=0;return e+=B(this.type),e+=B(this.unit),e}_encodeToBuffer(e,t=0){return this.type&&(e[t++]=8,t=F(e,t,this.type)),this.unit&&(e[t++]=16,t=F(e,t,this.unit)),t}encode(e=new Uint8Array(this.length)){return this._encodeToBuffer(e,0),e}static decodeValue(e,t,n){switch(t){case 1:e.type=p(n);break;case 2:e.unit=p(n)}}static decode(e){return new this(N(e,this.decodeValue))}}class U{static create(e){return e instanceof U?e:new U(e)}constructor(e){this.key=e.key||0,this.str=e.str||0,this.num=e.num||0,this.numUnit=e.numUnit||0}get length(){let e=0;return e+=B(this.key),e+=B(this.str),e+=B(this.num),e+=B(this.numUnit),e}_encodeToBuffer(e,t=0){return this.key&&(e[t++]=8,t=F(e,t,this.key)),this.str&&(e[t++]=16,t=F(e,t,this.str)),this.num&&(e[t++]=24,t=F(e,t,this.num)),this.numUnit&&(e[t++]=32,t=F(e,t,this.numUnit)),t}encode(e=new Uint8Array(this.length)){return this._encodeToBuffer(e,0),e}static decodeValue(e,t,n){switch(t){case 1:e.key=p(n);break;case 2:e.str=p(n);break;case 3:e.num=p(n);break;case 4:e.numUnit=p(n)}}static decode(e){return new this(N(e,this.decodeValue))}}class V{static create(e){return e instanceof V?e:new V(e)}constructor(e){this.locationId=e.locationId||[],this.value=e.value||[],this.label=(e.label||[]).map(U.create)}get length(){let e=0;return e+=_(this.locationId),e+=_(this.value),e+=I(this.label),e}_encodeToBuffer(e,t=0){if(this.locationId.length){e[t++]=10,t=F(e,t,w(this.locationId));for(const n of this.locationId)t=F(e,t,n)}if(this.value.length){e[t++]=18,t=F(e,t,w(this.value));for(const n of this.value)t=F(e,t,n)}for(const n of this.label)e[t++]=26,t=F(e,t,n.length),t=n._encodeToBuffer(e,t);return t}encode(e=new Uint8Array(this.length)){return this._encodeToBuffer(e,0),e}static decodeValue(e,t,n){switch(t){case 1:e.locationId=g(n);break;case 2:e.value=g(n);break;case 3:e.label=y(U.decode(n),e.label)}}static decode(e){return new this(N(e,this.decodeValue))}}class A{static create(e){return e instanceof A?e:new A(e)}constructor(e){this.id=e.id||0,this.memoryStart=e.memoryStart||0,this.memoryLimit=e.memoryLimit||0,this.fileOffset=e.fileOffset||0,this.filename=e.filename||0,this.buildId=e.buildId||0,this.hasFunctions=!!e.hasFunctions,this.hasFilenames=!!e.hasFilenames,this.hasLineNumbers=!!e.hasLineNumbers,this.hasInlineFrames=!!e.hasInlineFrames}get length(){let e=0;return e+=B(this.id),e+=B(this.memoryStart),e+=B(this.memoryLimit),e+=B(this.fileOffset),e+=B(this.filename),e+=B(this.buildId),e+=B(this.hasFunctions?1:0),e+=B(this.hasFilenames?1:0),e+=B(this.hasLineNumbers?1:0),e+=B(this.hasInlineFrames?1:0),e}_encodeToBuffer(e,t=0){return this.id&&(e[t++]=8,t=F(e,t,this.id)),this.memoryStart&&(e[t++]=16,t=F(e,t,this.memoryStart)),this.memoryLimit&&(e[t++]=24,t=F(e,t,this.memoryLimit)),this.fileOffset&&(e[t++]=32,t=F(e,t,this.fileOffset)),this.filename&&(e[t++]=40,t=F(e,t,this.filename)),this.buildId&&(e[t++]=48,t=F(e,t,this.buildId)),this.hasFunctions&&(e[t++]=56,t=F(e,t,1)),this.hasFilenames&&(e[t++]=64,t=F(e,t,1)),this.hasLineNumbers&&(e[t++]=72,t=F(e,t,1)),this.hasInlineFrames&&(e[t++]=80,t=F(e,t,1)),t}encode(e=new Uint8Array(this.length)){return this._encodeToBuffer(e,0),e}static decodeValue(e,t,n){switch(t){case 1:e.id=p(n);break;case 2:e.memoryStart=p(n);break;case 3:e.memoryLimit=p(n);break;case 4:e.fileOffset=p(n);break;case 5:e.filename=p(n);break;case 6:e.buildId=p(n);break;case 7:e.hasFunctions=!!p(n);break;case 8:e.hasFilenames=!!p(n);break;case 9:e.hasLineNumbers=!!p(n);break;case 10:e.hasInlineFrames=!!p(n)}}static decode(e){return new this(N(e,this.decodeValue))}}class P{static create(e){return e instanceof P?e:new P(e)}constructor(e){this.functionId=e.functionId||0,this.line=e.line||0}get length(){let e=0;return e+=B(this.functionId),e+=B(this.line),e}_encodeToBuffer(e,t=0){return this.functionId&&(e[t++]=8,t=F(e,t,this.functionId)),this.line&&(e[t++]=16,t=F(e,t,this.line)),t}encode(e=new Uint8Array(this.length)){return this._encodeToBuffer(e,0),e}static decodeValue(e,t,n){switch(t){case 1:e.functionId=p(n);break;case 2:e.line=p(n)}}static decode(e){return new this(N(e,this.decodeValue))}}class O{static create(e){return e instanceof O?e:new O(e)}constructor(e){this.id=e.id||0,this.mappingId=e.mappingId||0,this.address=e.address||0,this.line=(e.line||[]).map(P.create),this.isFolded=!!e.isFolded}get length(){let e=0;return e+=B(this.id),e+=B(this.mappingId),e+=B(this.address),e+=I(this.line),e+=B(this.isFolded?1:0),e}_encodeToBuffer(e,t=0){this.id&&(e[t++]=8,t=F(e,t,this.id)),this.mappingId&&(e[t++]=16,t=F(e,t,this.mappingId)),this.address&&(e[t++]=24,t=F(e,t,this.address));for(const n of this.line)e[t++]=34,t=F(e,t,n.length),t=n._encodeToBuffer(e,t);return this.isFolded&&(e[t++]=40,t=F(e,t,1)),t}encode(e=new Uint8Array(this.length)){return this._encodeToBuffer(e,0),e}static decodeValue(e,t,n){switch(t){case 1:e.id=p(n);break;case 2:e.mappingId=p(n);break;case 3:e.address=p(n);break;case 4:e.line=y(P.decode(n),e.line);break;case 5:e.isFolded=!!p(n)}}static decode(e){return new this(N(e,this.decodeValue))}}class M{static create(e){return e instanceof M?e:new M(e)}constructor(e){this.id=e.id||0,this.name=e.name||0,this.systemName=e.systemName||0,this.filename=e.filename||0,this.startLine=e.startLine||0}get length(){let e=0;return e+=B(this.id),e+=B(this.name),e+=B(this.systemName),e+=B(this.filename),e+=B(this.startLine),e}_encodeToBuffer(e,t=0){return this.id&&(e[t++]=8,t=F(e,t,this.id)),this.name&&(e[t++]=16,t=F(e,t,this.name)),this.systemName&&(e[t++]=24,t=F(e,t,this.systemName)),this.filename&&(e[t++]=32,t=F(e,t,this.filename)),this.startLine&&(e[t++]=40,t=F(e,t,this.startLine)),t}encode(e=new Uint8Array(this.length)){return this._encodeToBuffer(e,0),e}static decodeValue(e,t,n){switch(t){case 1:e.id=p(n);break;case 2:e.name=p(n);break;case 3:e.systemName=p(n);break;case 4:e.filename=p(n);break;case 5:e.startLine=p(n)}}static decode(e){return new this(N(e,this.decodeValue))}}class j{constructor(e={}){this.sampleType=(e.sampleType||[]).map(v.create),this.sample=(e.sample||[]).map(V.create),this.mapping=(e.mapping||[]).map(A.create),this.location=(e.location||[]).map(O.create),this.function=(e.function||[]).map(M.create),this.stringTable=e.stringTable||new L,this.dropFrames=e.dropFrames||0,this.keepFrames=e.keepFrames||0,this.timeNanos=e.timeNanos||0,this.durationNanos=e.durationNanos||0,this.periodType=e.periodType?v.create(e.periodType):void 0,this.period=e.period||0,this.comment=e.comment||[],this.defaultSampleType=e.defaultSampleType||0}get length(){let e=0;return e+=I(this.sampleType),e+=I(this.sample),e+=I(this.mapping),e+=I(this.location),e+=I(this.function),e+=this.stringTable.encodedLength,e+=B(this.dropFrames),e+=B(this.keepFrames),e+=B(this.timeNanos),e+=B(this.durationNanos),e+=k(this.periodType),e+=B(this.period),e+=_(this.comment),e+=B(this.defaultSampleType),e}_encodeSampleTypesToBuffer(e,t=0){for(const n of this.sampleType)e[t++]=10,t=F(e,t,n.length),t=n._encodeToBuffer(e,t);return t}_encodeSamplesToBuffer(e,t=0){for(const n of this.sample)e[t++]=18,t=F(e,t,n.length),t=n._encodeToBuffer(e,t);return t}_encodeMappingsToBuffer(e,t=0){for(const n of this.mapping)e[t++]=26,t=F(e,t,n.length),t=n._encodeToBuffer(e,t);return t}_encodeLocationsToBuffer(e,t=0){for(const n of this.location)e[t++]=34,t=F(e,t,n.length),t=n._encodeToBuffer(e,t);return t}_encodeFunctionsToBuffer(e,t=0){for(const n of this.function)e[t++]=42,t=F(e,t,n.length),t=n._encodeToBuffer(e,t);return t}_encodeBasicValuesToBuffer(e,t=0){if(this.dropFrames&&(e[t++]=56,t=F(e,t,this.dropFrames)),this.keepFrames&&(e[t++]=64,t=F(e,t,this.keepFrames)),this.timeNanos&&(e[t++]=72,t=F(e,t,this.timeNanos)),this.durationNanos&&(e[t++]=80,t=F(e,t,this.durationNanos)),void 0!==this.periodType&&(e[t++]=90,t=F(e,t,this.periodType.length),t=this.periodType._encodeToBuffer(e,t)),this.period&&(e[t++]=96,t=F(e,t,this.period)),this.comment.length){e[t++]=106,t=F(e,t,w(this.comment));for(const n of this.comment)t=F(e,t,n)}return this.defaultSampleType&&(e[t++]=112,t=F(e,t,this.defaultSampleType)),t}_encodeToBuffer(e,t=0){return t=this._encodeSampleTypesToBuffer(e,t),t=this._encodeSamplesToBuffer(e,t),t=this._encodeMappingsToBuffer(e,t),t=this._encodeLocationsToBuffer(e,t),t=this._encodeFunctionsToBuffer(e,t),t=this.stringTable._encodeToBuffer(e,t),this._encodeBasicValuesToBuffer(e,t)}async _encodeToBufferAsync(e,t=0){return t=this._encodeSampleTypesToBuffer(e,t),await new Promise(setImmediate),t=this._encodeSamplesToBuffer(e,t),await new Promise(setImmediate),t=this._encodeMappingsToBuffer(e,t),await new Promise(setImmediate),t=this._encodeLocationsToBuffer(e,t),await new Promise(setImmediate),t=this._encodeFunctionsToBuffer(e,t),await new Promise(setImmediate),t=this.stringTable._encodeToBuffer(e,t),await new Promise(setImmediate),this._encodeBasicValuesToBuffer(e,t)}encode(e=new Uint8Array(this.length)){return this._encodeToBuffer(e,0),e}async encodeAsync(e=new Uint8Array(this.length)){return await this._encodeToBufferAsync(e,0),e}static decodeValue(e,t,n){switch(t){case 1:e.sampleType=y(v.decode(n),e.sampleType);break;case 2:e.sample=y(V.decode(n),e.sample);break;case 3:e.mapping=y(A.decode(n),e.mapping);break;case 4:e.location=y(O.decode(n),e.location);break;case 5:e.function=y(M.decode(n),e.function);break;case 6:void 0===e.stringTable&&(e.stringTable=new L(S)),e.stringTable._decodeString(n);break;case 7:e.dropFrames=p(n);break;case 8:e.keepFrames=p(n);break;case 9:e.timeNanos=p(n);break;case 10:e.durationNanos=p(n);break;case 11:e.periodType=v.decode(n);break;case 12:e.period=p(n);break;case 13:e.comment=g(n);break;case 14:e.defaultSampleType=p(n)}}static decode(e){return new this(N(e,this.decodeValue))}}module.exports=t})(); \ No newline at end of file diff --git a/packages/node_modules/pprof-format.js.LICENSE.txt b/packages/node_modules/pprof-format.js.LICENSE.txt new file mode 100644 index 00000000000..8d878823994 --- /dev/null +++ b/packages/node_modules/pprof-format.js.LICENSE.txt @@ -0,0 +1,3 @@ +/*! + * Private helpers. These are only used by other helpers. + */ diff --git a/packages/node_modules/protobufjs.js b/packages/node_modules/protobufjs.js new file mode 100644 index 00000000000..99522e2a30e --- /dev/null +++ b/packages/node_modules/protobufjs.js @@ -0,0 +1 @@ +(()=>{"use strict";var __webpack_modules__={361:(e,t,r)=>{var i=t,n=r(3262),o=["double","float","int32","uint32","sint32","fixed32","sfixed32","int64","uint64","sint64","fixed64","sfixed64","bool","string","bytes"];function s(e,t){var r=0,i={};for(t|=0;r{e.exports=function(e){var t=n.codegen(["m"],e.name+"$verify")('if(typeof m!=="object"||m===null)')("return%j","object expected"),r={};e.oneofsArray.length&&t("var p={}");for(var i=0;i{e.exports=p;var t=/[\s{}=;:[\],'"()<>]/g,r=/(?:"([^"\\]*(?:\\.[^"\\]*)*)")/g,i=/(?:'([^'\\]*(?:\\.[^'\\]*)*)')/g,n=/^ *[*/]+ */,o=/^\s*\*?\/*/,s=/\n/g,a=/\s/,u=/\\(.?)/g,f={0:"\0",r:"\r",n:"\n",t:"\t"};function l(e){return e.replace(u,function(e,t){switch(t){case"\\":case"":return t;default:return f[t]||""}})}function p(e,u){e=e.toString();var f=0,p=e.length,h=1,c=0,d={},y=[],v=null;function m(e){return Error("illegal "+e+" (line "+h+")")}function g(t){return e.charAt(t)}function b(t,r,i){var a,f={type:e.charAt(t++),lineEmpty:!1,leading:i},l=t-(u?2:3);do{if(--l<0||"\n"===(a=e.charAt(l))){f.lineEmpty=!0;break}}while(" "===a||"\t"===a);for(var p=e.substring(t,r).split(s),y=0;y0)return y.shift();if(v)return function(){var t="'"===v?i:r;t.lastIndex=f-1;var n=t.exec(e);if(!n)throw m("string");return f=t.lastIndex,k(v),v=null,l(n[1])}();var n,o,s,c,d,O=0===f;do{if(f===p)return null;for(n=!1;a.test(s=g(f));)if("\n"===s&&(O=!0,++h),++f===p)return null;if("/"===g(f)){if(++f===p)throw m("comment");if("/"===g(f))if(u){if(c=f,d=!1,_(f-1)){d=!0;do{if((f=w(f))===p)break;if(f++,!O)break}while(_(f))}else f=Math.min(p,w(f)+1);d&&(b(c,f,O),O=!0),h++,n=!0}else{for(d="/"===g(c=f+1);"\n"!==g(++f);)if(f===p)return null;++f,d&&(b(c,f-1,O),O=!0),++h,n=!0}else{if("*"!==(s=g(f)))return"/";c=f+1,d=u||"*"===g(c);do{if("\n"===s&&++h,++f===p)throw m("comment");o=s,s=g(f)}while("*"!==o||"/"!==s);++f,d&&(b(c,f-2,O),O=!0),n=!0}}}while(n);var j=f;if(t.lastIndex=0,!t.test(g(j++)))for(;j{var i=t,n=r(5643),o=r(3262);function s(e,t,r,i){var o=!1;if(t.resolvedType)if(t.resolvedType instanceof n){e("switch(d%s){",i);for(var s=t.resolvedType.values,a=Object.keys(s),u=0;u>>0",i,i);break;case"int32":case"sint32":case"sfixed32":e("m%s=d%s|0",i,i);break;case"uint64":f=!0;case"int64":case"sint64":case"fixed64":case"sfixed64":e("if(util.Long)")("(m%s=util.Long.fromValue(d%s)).unsigned=%j",i,i,f)('else if(typeof d%s==="string")',i)("m%s=parseInt(d%s,10)",i,i)('else if(typeof d%s==="number")',i)("m%s=d%s",i,i)('else if(typeof d%s==="object")',i)("m%s=new util.LongBits(d%s.low>>>0,d%s.high>>>0).toNumber(%s)",i,i,i,f?"true":"");break;case"bytes":e('if(typeof d%s==="string")',i)("util.base64.decode(d%s,m%s=util.newBuffer(util.base64.length(d%s)),0)",i,i,i)("else if(d%s.length >= 0)",i)("m%s=d%s",i,i);break;case"string":e("m%s=String(d%s)",i,i);break;case"bool":e("m%s=Boolean(d%s)",i,i)}}return e}function a(e,t,r,i){if(t.resolvedType)t.resolvedType instanceof n?e("d%s=o.enums===String?(types[%i].values[m%s]===undefined?m%s:types[%i].values[m%s]):m%s",i,r,i,i,r,i,i):e("d%s=types[%i].toObject(m%s,o)",i,r,i);else{var o=!1;switch(t.type){case"double":case"float":e("d%s=o.json&&!isFinite(m%s)?String(m%s):m%s",i,i,i,i);break;case"uint64":o=!0;case"int64":case"sint64":case"fixed64":case"sfixed64":e('if(typeof m%s==="number")',i)("d%s=o.longs===String?String(m%s):m%s",i,i,i)("else")("d%s=o.longs===String?util.Long.prototype.toString.call(m%s):o.longs===Number?new util.LongBits(m%s.low>>>0,m%s.high>>>0).toNumber(%s):m%s",i,i,i,i,o?"true":"",i);break;case"bytes":e("d%s=o.bytes===String?util.base64.encode(m%s,0,m%s.length):o.bytes===Array?Array.prototype.slice.call(m%s):m%s",i,i,i,i,i);break;default:e("d%s=m%s",i,i)}}return e}i.fromObject=function(e){var t=e.fieldsArray,r=o.codegen(["d"],e.name+"$fromObject")("if(d instanceof this.ctor)")("return d");if(!t.length)return r("return new this.ctor");r("var m=new this.ctor");for(var i=0;i{e.exports=o;var i=r(3449);(o.prototype=Object.create(i.prototype)).constructor=o;var n=r(3610);function o(){i.call(this)}function s(e,t,r){e.length<40?n.utf8.write(e,t,r):t.utf8Write?t.utf8Write(e,r):t.write(e,r)}o._configure=function(){o.alloc=n._Buffer_allocUnsafe,o.writeBytesBuffer=n.Buffer&&n.Buffer.prototype instanceof Uint8Array&&"set"===n.Buffer.prototype.set.name?function(e,t,r){t.set(e,r)}:function(e,t,r){if(e.copy)e.copy(t,r,0,e.length);else for(var i=0;i>>0;return this.uint32(t),t&&this._push(o.writeBytesBuffer,t,e),this},o.prototype.string=function(e){var t=n.Buffer.byteLength(e);return this.uint32(t),t&&this._push(s,t,e),this},o._configure()},1080:(e,t,r)=>{e.exports=function(e){for(var t,r=o.codegen(["m","w"],e.name+"$encode")("if(!w)")("w=Writer.create()"),a=e.fieldsArray.slice().sort(o.compareFieldsById),u=0;u>>0,8|n.mapKey[f.keyType],f.keyType),void 0===h?r("types[%i].encode(%s[ks[i]],w.uint32(18).fork()).ldelim().ldelim()",l,t):r(".uint32(%i).%s(%s[ks[i]]).ldelim()",16|h,p,t),r("}")("}")):f.repeated?(r("if(%s!=null&&%s.length){",t,t),f.packed&&void 0!==n.packed[p]?r("w.uint32(%i).fork()",(f.id<<3|2)>>>0)("for(var i=0;i<%s.length;++i)",t)("w.%s(%s[i])",p,t)("w.ldelim()"):(r("for(var i=0;i<%s.length;++i)",t),void 0===h?s(r,f,l,t+"[i]"):r("w.uint32(%i).%s(%s[i])",(f.id<<3|h)>>>0,p,t)),r("}")):(f.optional&&r("if(%s!=null&&Object.hasOwnProperty.call(m,%j))",t,f.name),void 0===h?s(r,f,l,t):r("w.uint32(%i).%s(%s)",(f.id<<3|h)>>>0,p,t))}return r("return w")};var i=r(5643),n=r(361),o=r(3262);function s(e,t,r,i){return t.delimited?e("types[%i].encode(%s,w.uint32(%i)).uint32(%i)",r,i,(t.id<<3|3)>>>0,(t.id<<3|4)>>>0):e("types[%i].encode(%s,w.uint32(%i).fork()).ldelim()",r,i,(t.id<<3|2)>>>0)}},1344:(e,t,r)=>{e.exports=f;var i=r(7209);((f.prototype=Object.create(i.prototype)).constructor=f).className="Field";var n,o=r(5643),s=r(361),a=r(3262),u=/^required|optional|repeated$/;function f(e,t,r,n,o,f,l){if(a.isObject(n)?(l=o,f=n,n=o=void 0):a.isObject(o)&&(l=f,f=o,o=void 0),i.call(this,e,f),!a.isInteger(t)||t<0)throw TypeError("id must be a non-negative integer");if(!a.isString(r))throw TypeError("type must be a string");if(void 0!==n&&!u.test(n=n.toString().toLowerCase()))throw TypeError("rule must be a string rule");if(void 0!==o&&!a.isString(o))throw TypeError("extend must be a string");"proto3_optional"===n&&(n="optional"),this.rule=n&&"optional"!==n?n:void 0,this.type=r,this.id=t,this.extend=o||void 0,this.repeated="repeated"===n,this.map=!1,this.message=null,this.partOf=null,this.typeDefault=null,this.defaultValue=null,this.long=!!a.Long&&void 0!==s.long[r],this.bytes="bytes"===r,this.resolvedType=null,this.extensionField=null,this.declaringField=null,this.comment=l}f.fromJSON=function(e,t){var r=new f(e,t.id,t.type,t.rule,t.extend,t.options,t.comment);return t.edition&&(r._edition=t.edition),r._defaultEdition="proto3",r},Object.defineProperty(f.prototype,"required",{get:function(){return"LEGACY_REQUIRED"===this._features.field_presence}}),Object.defineProperty(f.prototype,"optional",{get:function(){return!this.required}}),Object.defineProperty(f.prototype,"delimited",{get:function(){return this.resolvedType instanceof n&&"DELIMITED"===this._features.message_encoding}}),Object.defineProperty(f.prototype,"packed",{get:function(){return"PACKED"===this._features.repeated_field_encoding}}),Object.defineProperty(f.prototype,"hasPresence",{get:function(){return!this.repeated&&!this.map&&(this.partOf||this.declaringField||this.extensionField||"IMPLICIT"!==this._features.field_presence)}}),f.prototype.setOption=function(e,t,r){return i.prototype.setOption.call(this,e,t,r)},f.prototype.toJSON=function(e){var t=!!e&&Boolean(e.keepComments);return a.toObject(["edition",this._editionToJSON(),"rule","optional"!==this.rule&&this.rule||void 0,"type",this.type,"id",this.id,"extend",this.extend,"options",this.options,"comment",t?this.comment:void 0])},f.prototype.resolve=function(){if(this.resolved)return this;if(void 0===(this.typeDefault=s.defaults[this.type])?(this.resolvedType=(this.declaringField?this.declaringField.parent:this.parent).lookupTypeOrEnum(this.type),this.resolvedType instanceof n?this.typeDefault=null:this.typeDefault=this.resolvedType.values[Object.keys(this.resolvedType.values)[0]]):this.options&&this.options.proto3_optional&&(this.typeDefault=null),this.options&&null!=this.options.default&&(this.typeDefault=this.options.default,this.resolvedType instanceof o&&"string"==typeof this.typeDefault&&(this.typeDefault=this.resolvedType.values[this.typeDefault])),this.options&&(void 0===this.options.packed||!this.resolvedType||this.resolvedType instanceof o||delete this.options.packed,Object.keys(this.options).length||(this.options=void 0)),this.long)this.typeDefault=a.Long.fromNumber(this.typeDefault,"u"===this.type.charAt(0)),Object.freeze&&Object.freeze(this.typeDefault);else if(this.bytes&&"string"==typeof this.typeDefault){var e;a.base64.test(this.typeDefault)?a.base64.decode(this.typeDefault,e=a.newBuffer(a.base64.length(this.typeDefault)),0):a.utf8.write(this.typeDefault,e=a.newBuffer(a.utf8.length(this.typeDefault)),0),this.typeDefault=e}return this.map?this.defaultValue=a.emptyObject:this.repeated?this.defaultValue=a.emptyArray:this.defaultValue=this.typeDefault,this.parent instanceof n&&(this.parent.ctor.prototype[this.name]=this.defaultValue),i.prototype.resolve.call(this)},f.prototype._inferLegacyProtoFeatures=function(e){if("proto2"!==e&&"proto3"!==e)return{};var t={};if("required"===this.rule&&(t.field_presence="LEGACY_REQUIRED"),this.parent&&void 0===s.defaults[this.type]){var r=this.parent.get(this.type.split(".").pop());r&&r instanceof n&&r.group&&(t.message_encoding="DELIMITED")}return!0===this.getOption("packed")?t.repeated_field_encoding="PACKED":!1===this.getOption("packed")&&(t.repeated_field_encoding="EXPANDED"),t},f.prototype._resolveFeatures=function(e){return i.prototype._resolveFeatures.call(this,this._edition||e)},f.d=function(e,t,r,i){return"function"==typeof t?t=a.decorateType(t).name:t&&"object"==typeof t&&(t=a.decorateEnum(t).name),function(n,o){a.decorateType(n.constructor).add(new f(o,e,t,r,{default:i}))}},f._configure=function(e){n=e}},1447:(e,t)=>{var r=t;r.length=function(e){for(var t=0,r=0,i=0;i191&&i<224?o[s++]=(31&i)<<6|63&e[t++]:i>239&&i<365?(i=((7&i)<<18|(63&e[t++])<<12|(63&e[t++])<<6|63&e[t++])-65536,o[s++]=55296+(i>>10),o[s++]=56320+(1023&i)):o[s++]=(15&i)<<12|(63&e[t++])<<6|63&e[t++],s>8191&&((n||(n=[])).push(String.fromCharCode.apply(String,o)),s=0);return n?(s&&n.push(String.fromCharCode.apply(String,o.slice(0,s))),n.join("")):String.fromCharCode.apply(String,o.slice(0,s))},r.write=function(e,t,r){for(var i,n,o=r,s=0;s>6|192,t[r++]=63&i|128):55296==(64512&i)&&56320==(64512&(n=e.charCodeAt(s+1)))?(i=65536+((1023&i)<<10)+(1023&n),++s,t[r++]=i>>18|240,t[r++]=i>>12&63|128,t[r++]=i>>6&63|128,t[r++]=63&i|128):(t[r++]=i>>12|224,t[r++]=i>>6&63|128,t[r++]=63&i|128);return r-o}},1457:(e,t,r)=>{e.exports=s;var i=r(7209);((s.prototype=Object.create(i.prototype)).constructor=s).className="OneOf";var n=r(1344),o=r(3262);function s(e,t,r,n){if(Array.isArray(t)||(r=t,t=void 0),i.call(this,e,r),void 0!==t&&!Array.isArray(t))throw TypeError("fieldNames must be an Array");this.oneof=t||[],this.fieldsArray=[],this.comment=n}function a(e){if(e.parent)for(var t=0;t-1&&this.oneof.splice(t,1),e.partOf=null,this},s.prototype.onAdd=function(e){i.prototype.onAdd.call(this,e);for(var t=0;t{e.exports=n;var i=r(3610);function n(e,t){this.lo=e>>>0,this.hi=t>>>0}var o=n.zero=new n(0,0);o.toNumber=function(){return 0},o.zzEncode=o.zzDecode=function(){return this},o.length=function(){return 1};var s=n.zeroHash="\0\0\0\0\0\0\0\0";n.fromNumber=function(e){if(0===e)return o;var t=e<0;t&&(e=-e);var r=e>>>0,i=(e-r)/4294967296>>>0;return t&&(i=~i>>>0,r=~r>>>0,++r>4294967295&&(r=0,++i>4294967295&&(i=0))),new n(r,i)},n.from=function(e){if("number"==typeof e)return n.fromNumber(e);if(i.isString(e)){if(!i.Long)return n.fromNumber(parseInt(e,10));e=i.Long.fromString(e)}return e.low||e.high?new n(e.low>>>0,e.high>>>0):o},n.prototype.toNumber=function(e){if(!e&&this.hi>>>31){var t=1+~this.lo>>>0,r=~this.hi>>>0;return t||(r=r+1>>>0),-(t+4294967296*r)}return this.lo+4294967296*this.hi},n.prototype.toLong=function(e){return i.Long?new i.Long(0|this.lo,0|this.hi,Boolean(e)):{low:0|this.lo,high:0|this.hi,unsigned:Boolean(e)}};var a=String.prototype.charCodeAt;n.fromHash=function(e){return e===s?o:new n((a.call(e,0)|a.call(e,1)<<8|a.call(e,2)<<16|a.call(e,3)<<24)>>>0,(a.call(e,4)|a.call(e,5)<<8|a.call(e,6)<<16|a.call(e,7)<<24)>>>0)},n.prototype.toHash=function(){return String.fromCharCode(255&this.lo,this.lo>>>8&255,this.lo>>>16&255,this.lo>>>24,255&this.hi,this.hi>>>8&255,this.hi>>>16&255,this.hi>>>24)},n.prototype.zzEncode=function(){var e=this.hi>>31;return this.hi=((this.hi<<1|this.lo>>>31)^e)>>>0,this.lo=(this.lo<<1^e)>>>0,this},n.prototype.zzDecode=function(){var e=-(1&this.lo);return this.lo=((this.lo>>>1|this.hi<<31)^e)>>>0,this.hi=(this.hi>>>1^e)>>>0,this},n.prototype.length=function(){var e=this.lo,t=(this.lo>>>28|this.hi<<4)>>>0,r=this.hi>>>24;return 0===r?0===t?e<16384?e<128?1:2:e<2097152?3:4:t<16384?t<128?5:6:t<2097152?7:8:r<128?9:10}},2549:(e,t,r)=>{e.exports=r(9100)},2551:(e,t,r)=>{e.exports=n;var i=r(3610);function n(e){if(e)for(var t=Object.keys(e),r=0;r{e.exports=o;var i=r(6237);(o.prototype=Object.create(i.prototype)).constructor=o;var n=r(3610);function o(e){i.call(this,e)}o._configure=function(){n.Buffer&&(o.prototype._slice=n.Buffer.prototype.slice)},o.prototype.string=function(){var e=this.uint32();return this.buf.utf8Slice?this.buf.utf8Slice(this.pos,this.pos=Math.min(this.pos+e,this.len)):this.buf.toString("utf-8",this.pos,this.pos=Math.min(this.pos+e,this.len))},o._configure()},3262:(e,t,r)=>{var i,n,o=e.exports=r(3610),s=r(4529);o.codegen=r(8561),o.fetch=r(5212),o.path=r(9207),o.fs=o.inquire("fs"),o.toArray=function(e){if(e){for(var t=Object.keys(e),r=new Array(t.length),i=0;i0)t[o]=e(t[o]||{},r,n);else{var s=t[o];if(s&&i)return t;s&&(n=[].concat(s).concat(n)),t[o]=n}return t}(e,t=t.split("."),r)},Object.defineProperty(o,"decorateRoot",{get:function(){return s.decorated||(s.decorated=new(r(5330)))}})},3449:(e,t,r)=>{e.exports=p;var i,n=r(3610),o=n.LongBits,s=n.base64,a=n.utf8;function u(e,t,r){this.fn=e,this.len=t,this.next=void 0,this.val=r}function f(){}function l(e){this.head=e.head,this.tail=e.tail,this.len=e.len,this.next=e.states}function p(){this.len=0,this.head=new u(f,0,0),this.tail=this.head,this.states=null}var h=function(){return n.Buffer?function(){return(p.create=function(){return new i})()}:function(){return new p}};function c(e,t,r){t[r]=255&e}function d(e,t){this.len=e,this.next=void 0,this.val=t}function y(e,t,r){for(;e.hi;)t[r++]=127&e.lo|128,e.lo=(e.lo>>>7|e.hi<<25)>>>0,e.hi>>>=7;for(;e.lo>127;)t[r++]=127&e.lo|128,e.lo=e.lo>>>7;t[r++]=e.lo}function v(e,t,r){t[r]=255&e,t[r+1]=e>>>8&255,t[r+2]=e>>>16&255,t[r+3]=e>>>24}p.create=h(),p.alloc=function(e){return new n.Array(e)},n.Array!==Array&&(p.alloc=n.pool(p.alloc,n.Array.prototype.subarray)),p.prototype._push=function(e,t,r){return this.tail=this.tail.next=new u(e,t,r),this.len+=t,this},d.prototype=Object.create(u.prototype),d.prototype.fn=function(e,t,r){for(;e>127;)t[r++]=127&e|128,e>>>=7;t[r]=e},p.prototype.uint32=function(e){return this.len+=(this.tail=this.tail.next=new d((e>>>=0)<128?1:e<16384?2:e<2097152?3:e<268435456?4:5,e)).len,this},p.prototype.int32=function(e){return e<0?this._push(y,10,o.fromNumber(e)):this.uint32(e)},p.prototype.sint32=function(e){return this.uint32((e<<1^e>>31)>>>0)},p.prototype.uint64=function(e){var t=o.from(e);return this._push(y,t.length(),t)},p.prototype.int64=p.prototype.uint64,p.prototype.sint64=function(e){var t=o.from(e).zzEncode();return this._push(y,t.length(),t)},p.prototype.bool=function(e){return this._push(c,1,e?1:0)},p.prototype.fixed32=function(e){return this._push(v,4,e>>>0)},p.prototype.sfixed32=p.prototype.fixed32,p.prototype.fixed64=function(e){var t=o.from(e);return this._push(v,4,t.lo)._push(v,4,t.hi)},p.prototype.sfixed64=p.prototype.fixed64,p.prototype.float=function(e){return this._push(n.float.writeFloatLE,4,e)},p.prototype.double=function(e){return this._push(n.float.writeDoubleLE,8,e)};var m=n.Array.prototype.set?function(e,t,r){t.set(e,r)}:function(e,t,r){for(var i=0;i>>0;if(!t)return this._push(c,1,0);if(n.isString(e)){var r=p.alloc(t=s.length(e));s.decode(e,r,0),e=r}return this.uint32(t)._push(m,t,e)},p.prototype.string=function(e){var t=a.length(e);return t?this.uint32(t)._push(a.write,t,e):this._push(c,1,0)},p.prototype.fork=function(){return this.states=new l(this),this.head=this.tail=new u(f,0,0),this.len=0,this},p.prototype.reset=function(){return this.states?(this.head=this.states.head,this.tail=this.states.tail,this.len=this.states.len,this.states=this.states.next):(this.head=this.tail=new u(f,0,0),this.len=0),this},p.prototype.ldelim=function(){var e=this.head,t=this.tail,r=this.len;return this.reset().uint32(r),r&&(this.tail.next=e.next,this.tail=t,this.len+=r),this},p.prototype.finish=function(){for(var e=this.head.next,t=this.constructor.alloc(this.len),r=0;e;)e.fn(e.val,t,r),r+=e.len,e=e.next;return t},p._configure=function(e){i=e,p.create=h(),i._configure()}},3610:function(e,t,r){var i=t;function n(e,t,r){for(var i=Object.keys(t),n=0;n0)},i.Buffer=function(){try{var e=i.inquire("buffer").Buffer;return e.prototype.utf8Write?e:null}catch(e){return null}}(),i._Buffer_from=null,i._Buffer_allocUnsafe=null,i.newBuffer=function(e){return"number"==typeof e?i.Buffer?i._Buffer_allocUnsafe(e):new i.Array(e):i.Buffer?i._Buffer_from(e):"undefined"==typeof Uint8Array?e:new Uint8Array(e)},i.Array="undefined"!=typeof Uint8Array?Uint8Array:Array,i.Long=i.global.dcodeIO&&i.global.dcodeIO.Long||i.global.Long||i.inquire("long"),i.key2Re=/^true|false|0|1$/,i.key32Re=/^-?(?:0|[1-9][0-9]*)$/,i.key64Re=/^(?:[\\x00-\\xff]{8}|-?(?:0|[1-9][0-9]*))$/,i.longToHash=function(e){return e?i.LongBits.from(e).toHash():i.LongBits.zeroHash},i.longFromHash=function(e,t){var r=i.LongBits.fromHash(e);return i.Long?i.Long.fromBits(r.lo,r.hi,t):r.toNumber(Boolean(t))},i.merge=n,i.lcFirst=function(e){return e.charAt(0).toLowerCase()+e.substring(1)},i.newError=o,i.ProtocolError=o("ProtocolError"),i.oneOfGetter=function(e){for(var t={},r=0;r-1;--r)if(1===t[e[r]]&&void 0!==this[e[r]]&&null!==this[e[r]])return e[r]}},i.oneOfSetter=function(e){return function(t){for(var r=0;r{function inquire(moduleName){try{var mod=eval("quire".replace(/^/,"re"))(moduleName);if(mod&&(mod.length||Object.keys(mod).length))return mod}catch(e){}return null}module.exports=inquire},4358:e=>{function t(){this._listeners={}}e.exports=t,t.prototype.on=function(e,t,r){return(this._listeners[e]||(this._listeners[e]=[])).push({fn:t,ctx:r||this}),this},t.prototype.off=function(e,t){if(void 0===e)this._listeners={};else if(void 0===t)this._listeners[e]=[];else for(var r=this._listeners[e],i=0;i{var i=t;function n(){i.util._configure(),i.Writer._configure(i.BufferWriter),i.Reader._configure(i.BufferReader)}i.build="minimal",i.Writer=r(3449),i.BufferWriter=r(818),i.Reader=r(6237),i.BufferReader=r(3158),i.util=r(3610),i.rpc=r(5047),i.roots=r(4529),i.configure=n,n()},4529:e=>{e.exports={}},4863:(e,t,r)=>{e.exports=j,j.filename=null,j.defaults={keepCase:!1};var i=r(527),n=r(5330),o=r(7882),s=r(1344),a=r(8252),u=r(1457),f=r(5643),l=r(9687),p=r(8811),h=r(7209),c=r(361),d=r(3262),y=/^[1-9][0-9]*$/,v=/^-?[1-9][0-9]*$/,m=/^0[x][0-9a-fA-F]+$/,g=/^-?0[x][0-9a-fA-F]+$/,b=/^0[0-7]+$/,_=/^-?0[0-7]+$/,w=/^(?![eE])[0-9]*(?:\.[0-9]*)?(?:[eE][+-]?[0-9]+)?$/,O=/^[a-zA-Z_][a-zA-Z_0-9]*$/,k=/^(?:\.?[a-zA-Z_][a-zA-Z_0-9]*)(?:\.[a-zA-Z_][a-zA-Z_0-9]*)*$/;function j(e,t,r){t instanceof n||(r=t,t=new n),r||(r=j.defaults);var A,E,x,S,T=r.preferTrailingComment||!1,N=i(e,r.alternateCommentMode||!1),R=N.next,F=N.push,I=N.peek,B=N.skip,P=N.cmnt,D=!0,L="proto2",C=t,J=[],$={},q=r.keepCase?function(e){return e}:d.camelCase;function V(e,t,r){var i=j.filename;return r||(j.filename=null),Error("illegal "+(t||"token")+" '"+e+"' ("+(i?i+", ":"")+"line "+N.line+")")}function M(){var e,t=[];do{if('"'!==(e=R())&&"'"!==e)throw V(e);t.push(R()),B(e),e=I()}while('"'===e||"'"===e);return t.join("")}function z(e){var t=R();switch(t){case"'":case'"':return F(t),M();case"true":case"TRUE":return!0;case"false":case"FALSE":return!1}try{return function(e){var t=1;switch("-"===e.charAt(0)&&(t=-1,e=e.substring(1)),e){case"inf":case"INF":case"Inf":return t*(1/0);case"nan":case"NAN":case"Nan":case"NaN":return NaN;case"0":return 0}if(y.test(e))return t*parseInt(e,10);if(m.test(e))return t*parseInt(e,16);if(b.test(e))return t*parseInt(e,8);if(w.test(e))return t*parseFloat(e);throw V(e,"number",!0)}(t)}catch(r){if(e&&k.test(t))return t;throw V(t,"value")}}function U(e,t){var r,i;do{if(!t||'"'!==(r=I())&&"'"!==r)try{e.push([i=H(R()),B("to",!0)?H(R()):i])}catch(i){if(!(t&&k.test(r)&&L>=2023))throw i;e.push(r)}else{var n=M();if(e.push(n),L>=2023)throw V(n,"id")}}while(B(",",!0));var o={options:void 0,setOption:function(e,t){void 0===this.options&&(this.options={}),this.options[e]=t}};Q(o,function(e){if("option"!==e)throw V(e);re(o,e),B(";")},function(){oe(o)})}function H(e,t){switch(e){case"max":case"MAX":case"Max":return 536870911;case"0":return 0}if(!t&&"-"===e.charAt(0))throw V(e,"id");if(v.test(e))return parseInt(e,10);if(g.test(e))return parseInt(e,16);if(_.test(e))return parseInt(e,8);throw V(e,"id")}function W(){if(void 0!==A)throw V("package");if(A=R(),!k.test(A))throw V(A,"name");C=C.define(A),B(";")}function G(){var e,t=I();switch(t){case"weak":e=x||(x=[]),R();break;case"public":R();default:e=E||(E=[])}t=M(),B(";"),e.push(t)}function X(){if(B("="),(L=M())<2023)throw V(L,"syntax");B(";")}function Z(){if(B("="),L=M(),!["2023"].includes(L))throw V(L,"edition");B(";")}function K(e,t){switch(t){case"option":return re(e,t),B(";"),!0;case"message":return Y(e,t),!0;case"enum":return te(e,t),!0;case"service":return function(e,t){if(!O.test(t=R()))throw V(t,"service name");var r=new l(t);Q(r,function(e){if(!K(r,e)){if("rpc"!==e)throw V(e);!function(e,t){var r=P(),i=t;if(!O.test(t=R()))throw V(t,"name");var n,o,s,a,u=t;if(B("("),B("stream",!0)&&(o=!0),!k.test(t=R()))throw V(t);if(n=t,B(")"),B("returns"),B("("),B("stream",!0)&&(a=!0),!k.test(t=R()))throw V(t);s=t,B(")");var f=new p(u,i,n,s,o,a);f.comment=r,Q(f,function(e){if("option"!==e)throw V(e);re(f,e),B(";")}),e.add(f)}(r,e)}}),e.add(r),e===C&&J.push(r)}(e,t),!0;case"extend":return function(e,t){if(!k.test(t=R()))throw V(t,"reference");var r=t;Q(null,function(t){switch(t){case"required":case"repeated":ee(e,t,r);break;case"optional":ee(e,"proto3"===L?"proto3_optional":"optional",r);break;default:if("proto2"===L||!k.test(t))throw V(t);F(t),ee(e,"optional",r)}})}(e,t),!0}return!1}function Q(e,t,r){var i=N.line;if(e&&("string"!=typeof e.comment&&(e.comment=P()),e.filename=j.filename),B("{",!0)){for(var n;"}"!==(n=R());)t(n);B(";",!0)}else r&&r(),B(";"),e&&("string"!=typeof e.comment||T)&&(e.comment=P(i)||e.comment)}function Y(e,t){if(!O.test(t=R()))throw V(t,"type name");var r=new o(t);Q(r,function(e){if(!K(r,e))switch(e){case"map":!function(e){B("<");var t=R();if(void 0===c.mapKey[t])throw V(t,"type");B(",");var r=R();if(!k.test(r))throw V(r,"type");B(">");var i=R();if(!O.test(i))throw V(i,"name");B("=");var n=new a(q(i),H(R()),t,r);Q(n,function(e){if("option"!==e)throw V(e);re(n,e),B(";")},function(){oe(n)}),e.add(n)}(r);break;case"required":if("proto2"!==L)throw V(e);case"repeated":ee(r,e);break;case"optional":if("proto3"===L)ee(r,"proto3_optional");else{if("proto2"!==L)throw V(e);ee(r,"optional")}break;case"oneof":!function(e,t){if(!O.test(t=R()))throw V(t,"name");var r=new u(q(t));Q(r,function(e){"option"===e?(re(r,e),B(";")):(F(e),ee(r,"optional"))}),e.add(r)}(r,e);break;case"extensions":U(r.extensions||(r.extensions=[]));break;case"reserved":U(r.reserved||(r.reserved=[]),!0);break;default:if("proto2"===L||!k.test(e))throw V(e);F(e),ee(r,"optional")}}),e.add(r),e===C&&J.push(r)}function ee(e,t,r){var i=R();if("group"!==i){for(;i.endsWith(".")||I().startsWith(".");)i+=R();if(!k.test(i))throw V(i,"type");var n=R();if(!O.test(n))throw V(n,"name");n=q(n),B("=");var a=new s(n,H(R()),i,t,r);if(Q(a,function(e){if("option"!==e)throw V(e);re(a,e),B(";")},function(){oe(a)}),"proto3_optional"===t){var f=new u("_"+n);a.setOption("proto3_optional",!0),f.add(a),e.add(f)}else e.add(a);e===C&&J.push(a)}else!function(e,t){if(L>=2023)throw V("group");var r=R();if(!O.test(r))throw V(r,"name");var i=d.lcFirst(r);r===i&&(r=d.ucFirst(r)),B("=");var n=H(R()),a=new o(r);a.group=!0;var u=new s(i,n,r,t);u.filename=j.filename,Q(a,function(e){switch(e){case"option":re(a,e),B(";");break;case"required":case"repeated":ee(a,e);break;case"optional":ee(a,"proto3"===L?"proto3_optional":"optional");break;case"message":Y(a,e);break;case"enum":te(a,e);break;case"reserved":U(a.reserved||(a.reserved=[]),!0);break;default:throw V(e)}}),e.add(a).add(u)}(e,t)}function te(e,t){if(!O.test(t=R()))throw V(t,"name");var r=new f(t);Q(r,function(e){switch(e){case"option":re(r,e),B(";");break;case"reserved":U(r.reserved||(r.reserved=[]),!0),void 0===r.reserved&&(r.reserved=[]);break;default:!function(e,t){if(!O.test(t))throw V(t,"name");B("=");var r=H(R(),!0),i={options:void 0,getOption:function(e){return this.options[e]},setOption:function(e,t){h.prototype.setOption.call(i,e,t)},setParsedOption:function(){}};Q(i,function(e){if("option"!==e)throw V(e);re(i,e),B(";")},function(){oe(i)}),e.add(t,r,i.comment,i.parsedOptions||i.options)}(r,e)}}),e.add(r),e===C&&J.push(r)}function re(e,t){var r,i,n=!0;for("option"===t&&(t=R());"="!==t;){if("("===t){var o=R();B(")"),t="("+o+")"}if(n){if(n=!1,t.includes(".")&&!t.includes("(")){var s=t.split(".");r=s[0]+".",t=s[1];continue}r=t}else i=i?i+=t:t;t=R()}var a=ie(e,i?r.concat(i):r);i=i&&"."===i[0]?i.slice(1):i,function(e,t,r,i){e.setParsedOption&&e.setParsedOption(t,r,i)}(e,r=r&&"."===r[r.length-1]?r.slice(0,-1):r,a,i)}function ie(e,t){if(B("{",!0)){for(var r={};!B("}",!0);){if(!O.test(S=R()))throw V(S,"name");if(null===S)throw V(S,"end of input");var i,n=S;if(B(":",!0),"{"===I())i=ie(e,t+"."+S);else if("["===I()){var o;if(i=[],B("[",!0)){do{o=z(!0),i.push(o)}while(B(",",!0));B("]"),void 0!==o&&ne(e,t+"."+S,o)}}else i=z(!0),ne(e,t+"."+S,i);var s=r[n];s&&(i=[].concat(s).concat(i)),r[n]=i,B(",",!0),B(";",!0)}return r}var a=z(!0);return ne(e,t,a),a}function ne(e,t,r){C===e&&/^features\./.test(t)?$[t]=r:e.setOption&&e.setOption(t,r)}function oe(e){if(B("[",!0)){do{re(e,"option")}while(B(",",!0));B("]")}return e}for(;null!==(S=R());)switch(S){case"package":if(!D)throw V(S);W();break;case"import":if(!D)throw V(S);G();break;case"syntax":if(!D)throw V(S);X();break;case"edition":if(!D)throw V(S);Z();break;case"option":re(C,S),B(";",!0);break;default:if(K(C,S)){D=!1;continue}throw V(S)}return J.forEach(e=>{e._edition=L,Object.keys($).forEach(t=>{void 0===e.getOption(t)&&e.setOption(t,$[t],!0)})}),j.filename=null,{package:A,imports:E,weakImports:x,root:t}}},5047:(e,t,r)=>{t.Service=r(7595)},5095:e=>{e.exports=i;var t,r=/\/|\./;function i(e,t){r.test(e)||(e="google/protobuf/"+e+".proto",t={nested:{google:{nested:{protobuf:{nested:t}}}}}),i[e]=t}i("any",{Any:{fields:{type_url:{type:"string",id:1},value:{type:"bytes",id:2}}}}),i("duration",{Duration:t={fields:{seconds:{type:"int64",id:1},nanos:{type:"int32",id:2}}}}),i("timestamp",{Timestamp:t}),i("empty",{Empty:{fields:{}}}),i("struct",{Struct:{fields:{fields:{keyType:"string",type:"Value",id:1}}},Value:{oneofs:{kind:{oneof:["nullValue","numberValue","stringValue","boolValue","structValue","listValue"]}},fields:{nullValue:{type:"NullValue",id:1},numberValue:{type:"double",id:2},stringValue:{type:"string",id:3},boolValue:{type:"bool",id:4},structValue:{type:"Struct",id:5},listValue:{type:"ListValue",id:6}}},NullValue:{values:{NULL_VALUE:0}},ListValue:{fields:{values:{rule:"repeated",type:"Value",id:1}}}}),i("wrappers",{DoubleValue:{fields:{value:{type:"double",id:1}}},FloatValue:{fields:{value:{type:"float",id:1}}},Int64Value:{fields:{value:{type:"int64",id:1}}},UInt64Value:{fields:{value:{type:"uint64",id:1}}},Int32Value:{fields:{value:{type:"int32",id:1}}},UInt32Value:{fields:{value:{type:"uint32",id:1}}},BoolValue:{fields:{value:{type:"bool",id:1}}},StringValue:{fields:{value:{type:"string",id:1}}},BytesValue:{fields:{value:{type:"bytes",id:1}}}}),i("field_mask",{FieldMask:{fields:{paths:{rule:"repeated",type:"string",id:1}}}}),i.get=function(e){return i[e]||null}},5212:(e,t,r)=>{e.exports=o;var i=r(8045),n=r(4153)("fs");function o(e,t,r){return"function"==typeof t?(r=t,t={}):t||(t={}),r?!t.xhr&&n&&n.readFile?n.readFile(e,function(i,n){return i&&"undefined"!=typeof XMLHttpRequest?o.xhr(e,t,r):i?r(i):r(null,t.binary?n:n.toString("utf8"))}):o.xhr(e,t,r):i(o,this,e,t)}o.xhr=function(e,t,r){var i=new XMLHttpRequest;i.onreadystatechange=function(){if(4===i.readyState){if(0!==i.status&&200!==i.status)return r(Error("status "+i.status));if(t.binary){var e=i.response;if(!e){e=[];for(var n=0;n{var i=e.exports=r(4394);i.build="light",i.load=function(e,t,r){return"function"==typeof t?(r=t,t=new i.Root):t||(t=new i.Root),t.load(e,r)},i.loadSync=function(e,t){return t||(t=new i.Root),t.loadSync(e)},i.encoder=r(1080),i.decoder=r(7728),i.verifier=r(420),i.converter=r(744),i.ReflectionObject=r(7209),i.Namespace=r(8923),i.Root=r(5330),i.Enum=r(5643),i.Type=r(7882),i.Field=r(1344),i.OneOf=r(1457),i.MapField=r(8252),i.Service=r(9687),i.Method=r(8811),i.Message=r(2551),i.wrappers=r(6434),i.types=r(361),i.util=r(3262),i.ReflectionObject._configure(i.Root),i.Namespace._configure(i.Type,i.Service,i.Enum),i.Root._configure(i.Type),i.Field._configure(i.Type)},5330:(e,t,r)=>{e.exports=p;var i=r(8923);((p.prototype=Object.create(i.prototype)).constructor=p).className="Root";var n,o,s,a=r(1344),u=r(5643),f=r(1457),l=r(3262);function p(e){i.call(this,"",e),this.deferred=[],this.files=[],this._edition="proto2",this._fullyQualifiedObjects={}}function h(){}p.fromJSON=function(e,t){return t||(t=new p),e.options&&t.setOptions(e.options),t.addJSON(e.nested).resolveAll()},p.prototype.resolvePath=l.path.resolve,p.prototype.fetch=l.fetch,p.prototype.load=function e(t,r,i){"function"==typeof r&&(i=r,r=void 0);var n=this;if(!i)return l.asPromise(e,n,t,r);var a=i===h;function u(e,t){if(i){if(a)throw e;t&&t.resolveAll();var r=i;i=null,r(e,t)}}function f(e){var t=e.lastIndexOf("google/protobuf/");if(t>-1){var r=e.substring(t);if(r in s)return r}return null}function p(e,t){try{if(l.isString(t)&&"{"===t.charAt(0)&&(t=JSON.parse(t)),l.isString(t)){o.filename=e;var i,s=o(t,n,r),p=0;if(s.imports)for(;p-1))if(n.files.push(e),e in s)a?p(e,s[e]):(++d,setTimeout(function(){--d,p(e,s[e])}));else if(a){var r;try{r=l.fs.readFileSync(e).toString("utf8")}catch(e){return void(t||u(e))}p(e,r)}else++d,n.fetch(e,function(r,o){--d,i&&(r?t?d||u(null,n):u(r):p(e,o))})}var d=0;l.isString(t)&&(t=[t]);for(var y,v=0;v-1&&this.deferred.splice(t,1)}}else if(e instanceof u)c.test(e.name)&&delete e.parent[e.name];else if(e instanceof i){for(var r=0;r{e.exports=s;var i=r(7209);((s.prototype=Object.create(i.prototype)).constructor=s).className="Enum";var n=r(8923),o=r(3262);function s(e,t,r,n,o,s){if(i.call(this,e,r),t&&"object"!=typeof t)throw TypeError("values must be an object");if(this.valuesById={},this.values=Object.create(this.valuesById),this.comment=n,this.comments=o||{},this.valuesOptions=s,this._valuesFeatures={},this.reserved=void 0,t)for(var a=Object.keys(t),u=0;u{var t=Object.assign({},this._features);this._valuesFeatures[e]=Object.assign(t,this.valuesOptions&&this.valuesOptions[e]&&this.valuesOptions[e].features)}),this},s.fromJSON=function(e,t){var r=new s(e,t.values,t.options,t.comment,t.comments);return r.reserved=t.reserved,t.edition&&(r._edition=t.edition),r._defaultEdition="proto3",r},s.prototype.toJSON=function(e){var t=!!e&&Boolean(e.keepComments);return o.toObject(["edition",this._editionToJSON(),"options",this.options,"valuesOptions",this.valuesOptions,"values",this.values,"reserved",this.reserved&&this.reserved.length?this.reserved:void 0,"comment",t?this.comment:void 0,"comments",t?this.comments:void 0])},s.prototype.add=function(e,t,r,i){if(!o.isString(e))throw TypeError("name must be a string");if(!o.isInteger(t))throw TypeError("id must be an integer");if(void 0!==this.values[e])throw Error("duplicate name '"+e+"' in "+this);if(this.isReservedId(t))throw Error("id "+t+" is reserved in "+this);if(this.isReservedName(e))throw Error("name '"+e+"' is reserved in "+this);if(void 0!==this.valuesById[t]){if(!this.options||!this.options.allow_alias)throw Error("duplicate id "+t+" in "+this);this.values[e]=t}else this.valuesById[this.values[e]=t]=e;return i&&(void 0===this.valuesOptions&&(this.valuesOptions={}),this.valuesOptions[e]=i||null),this.comments[e]=r||null,this},s.prototype.remove=function(e){if(!o.isString(e))throw TypeError("name must be a string");var t=this.values[e];if(null==t)throw Error("name '"+e+"' does not exist in "+this);return delete this.valuesById[t],delete this.values[e],delete this.comments[e],this.valuesOptions&&delete this.valuesOptions[e],this},s.prototype.isReservedId=function(e){return n.isReservedId(this.reserved,e)},s.prototype.isReservedName=function(e){return n.isReservedName(this.reserved,e)}},6237:(e,t,r)=>{e.exports=u;var i,n=r(3610),o=n.LongBits,s=n.utf8;function a(e,t){return RangeError("index out of range: "+e.pos+" + "+(t||1)+" > "+e.len)}function u(e){this.buf=e,this.pos=0,this.len=e.length}var f,l="undefined"!=typeof Uint8Array?function(e){if(e instanceof Uint8Array||Array.isArray(e))return new u(e);throw Error("illegal buffer")}:function(e){if(Array.isArray(e))return new u(e);throw Error("illegal buffer")},p=function(){return n.Buffer?function(e){return(u.create=function(e){return n.Buffer.isBuffer(e)?new i(e):l(e)})(e)}:l};function h(){var e=new o(0,0),t=0;if(!(this.len-this.pos>4)){for(;t<3;++t){if(this.pos>=this.len)throw a(this);if(e.lo=(e.lo|(127&this.buf[this.pos])<<7*t)>>>0,this.buf[this.pos++]<128)return e}return e.lo=(e.lo|(127&this.buf[this.pos++])<<7*t)>>>0,e}for(;t<4;++t)if(e.lo=(e.lo|(127&this.buf[this.pos])<<7*t)>>>0,this.buf[this.pos++]<128)return e;if(e.lo=(e.lo|(127&this.buf[this.pos])<<28)>>>0,e.hi=(e.hi|(127&this.buf[this.pos])>>4)>>>0,this.buf[this.pos++]<128)return e;if(t=0,this.len-this.pos>4){for(;t<5;++t)if(e.hi=(e.hi|(127&this.buf[this.pos])<<7*t+3)>>>0,this.buf[this.pos++]<128)return e}else for(;t<5;++t){if(this.pos>=this.len)throw a(this);if(e.hi=(e.hi|(127&this.buf[this.pos])<<7*t+3)>>>0,this.buf[this.pos++]<128)return e}throw Error("invalid varint encoding")}function c(e,t){return(e[t-4]|e[t-3]<<8|e[t-2]<<16|e[t-1]<<24)>>>0}function d(){if(this.pos+8>this.len)throw a(this,8);return new o(c(this.buf,this.pos+=4),c(this.buf,this.pos+=4))}u.create=p(),u.prototype._slice=n.Array.prototype.subarray||n.Array.prototype.slice,u.prototype.uint32=(f=4294967295,function(){if(f=(127&this.buf[this.pos])>>>0,this.buf[this.pos++]<128)return f;if(f=(f|(127&this.buf[this.pos])<<7)>>>0,this.buf[this.pos++]<128)return f;if(f=(f|(127&this.buf[this.pos])<<14)>>>0,this.buf[this.pos++]<128)return f;if(f=(f|(127&this.buf[this.pos])<<21)>>>0,this.buf[this.pos++]<128)return f;if(f=(f|(15&this.buf[this.pos])<<28)>>>0,this.buf[this.pos++]<128)return f;if((this.pos+=5)>this.len)throw this.pos=this.len,a(this,10);return f}),u.prototype.int32=function(){return 0|this.uint32()},u.prototype.sint32=function(){var e=this.uint32();return e>>>1^-(1&e)},u.prototype.bool=function(){return 0!==this.uint32()},u.prototype.fixed32=function(){if(this.pos+4>this.len)throw a(this,4);return c(this.buf,this.pos+=4)},u.prototype.sfixed32=function(){if(this.pos+4>this.len)throw a(this,4);return 0|c(this.buf,this.pos+=4)},u.prototype.float=function(){if(this.pos+4>this.len)throw a(this,4);var e=n.float.readFloatLE(this.buf,this.pos);return this.pos+=4,e},u.prototype.double=function(){if(this.pos+8>this.len)throw a(this,4);var e=n.float.readDoubleLE(this.buf,this.pos);return this.pos+=8,e},u.prototype.bytes=function(){var e=this.uint32(),t=this.pos,r=this.pos+e;if(r>this.len)throw a(this,e);if(this.pos+=e,Array.isArray(this.buf))return this.buf.slice(t,r);if(t===r){var i=n.Buffer;return i?i.alloc(0):new this.buf.constructor(0)}return this._slice.call(this.buf,t,r)},u.prototype.string=function(){var e=this.bytes();return s.read(e,0,e.length)},u.prototype.skip=function(e){if("number"==typeof e){if(this.pos+e>this.len)throw a(this,e);this.pos+=e}else do{if(this.pos>=this.len)throw a(this)}while(128&this.buf[this.pos++]);return this},u.prototype.skipType=function(e){switch(e){case 0:this.skip();break;case 1:this.skip(8);break;case 2:this.skip(this.uint32());break;case 3:for(;4!=(e=7&this.uint32());)this.skipType(e);break;case 5:this.skip(4);break;default:throw Error("invalid wire type "+e+" at offset "+this.pos)}return this},u._configure=function(e){i=e,u.create=p(),i._configure();var t=n.Long?"toLong":"toNumber";n.merge(u.prototype,{int64:function(){return h.call(this)[t](!1)},uint64:function(){return h.call(this)[t](!0)},sint64:function(){return h.call(this).zzDecode()[t](!1)},fixed64:function(){return d.call(this)[t](!0)},sfixed64:function(){return d.call(this)[t](!1)}})}},6434:(e,t,r)=>{var i=t,n=r(2551);i[".google.protobuf.Any"]={fromObject:function(e){if(e&&e["@type"]){var t=e["@type"].substring(e["@type"].lastIndexOf("/")+1),r=this.lookup(t);if(r){var i="."===e["@type"].charAt(0)?e["@type"].slice(1):e["@type"];return-1===i.indexOf("/")&&(i="/"+i),this.create({type_url:i,value:r.encode(r.fromObject(e)).finish()})}}return this.fromObject(e)},toObject:function(e,t){var r="",i="";if(t&&t.json&&e.type_url&&e.value){i=e.type_url.substring(e.type_url.lastIndexOf("/")+1),r=e.type_url.substring(0,e.type_url.lastIndexOf("/")+1);var o=this.lookup(i);o&&(e=o.decode(e.value))}if(!(e instanceof this.ctor)&&e instanceof n){var s=e.$type.toObject(e,t);return""===r&&(r="type.googleapis.com/"),i=r+("."===e.$type.fullName[0]?e.$type.fullName.slice(1):e.$type.fullName),s["@type"]=i,s}return this.toObject(e,t)}}},7209:(e,t,r)=>{e.exports=f,f.className="ReflectionObject";const i=r(1457);var n,o=r(3262),s={enum_type:"OPEN",field_presence:"EXPLICIT",json_format:"ALLOW",message_encoding:"LENGTH_PREFIXED",repeated_field_encoding:"PACKED",utf8_validation:"VERIFY"},a={enum_type:"CLOSED",field_presence:"EXPLICIT",json_format:"LEGACY_BEST_EFFORT",message_encoding:"LENGTH_PREFIXED",repeated_field_encoding:"EXPANDED",utf8_validation:"NONE"},u={enum_type:"OPEN",field_presence:"IMPLICIT",json_format:"ALLOW",message_encoding:"LENGTH_PREFIXED",repeated_field_encoding:"PACKED",utf8_validation:"VERIFY"};function f(e,t){if(!o.isString(e))throw TypeError("name must be a string");if(t&&!o.isObject(t))throw TypeError("options must be an object");this.options=t,this.parsedOptions=null,this.name=e,this._edition=null,this._defaultEdition="proto2",this._features={},this._featuresResolved=!1,this.parent=null,this.resolved=!1,this.comment=null,this.filename=null}Object.defineProperties(f.prototype,{root:{get:function(){for(var e=this;null!==e.parent;)e=e.parent;return e}},fullName:{get:function(){for(var e=[this.name],t=this.parent;t;)e.unshift(t.name),t=t.parent;return e.join(".")}}}),f.prototype.toJSON=function(){throw Error()},f.prototype.onAdd=function(e){this.parent&&this.parent!==e&&this.parent.remove(this),this.parent=e,this.resolved=!1;var t=e.root;t instanceof n&&t._handleAdd(this)},f.prototype.onRemove=function(e){var t=e.root;t instanceof n&&t._handleRemove(this),this.parent=null,this.resolved=!1},f.prototype.resolve=function(){return this.resolved||this.root instanceof n&&(this.resolved=!0),this},f.prototype._resolveFeaturesRecursive=function(e){return this._resolveFeatures(this._edition||e)},f.prototype._resolveFeatures=function(e){if(!this._featuresResolved){var t={};if(!e)throw new Error("Unknown edition for "+this.fullName);var r=Object.assign(this.options?Object.assign({},this.options.features):{},this._inferLegacyProtoFeatures(e));if(this._edition){if("proto2"===e)t=Object.assign({},a);else if("proto3"===e)t=Object.assign({},u);else{if("2023"!==e)throw new Error("Unknown edition: "+e);t=Object.assign({},s)}return this._features=Object.assign(t,r||{}),void(this._featuresResolved=!0)}if(this.partOf instanceof i){var n=Object.assign({},this.partOf._features);this._features=Object.assign(n,r||{})}else if(this.declaringField);else{if(!this.parent)throw new Error("Unable to find a parent for "+this.fullName);var o=Object.assign({},this.parent._features);this._features=Object.assign(o,r||{})}this.extensionField&&(this.extensionField._features=this._features),this._featuresResolved=!0}},f.prototype._inferLegacyProtoFeatures=function(){return{}},f.prototype.getOption=function(e){if(this.options)return this.options[e]},f.prototype.setOption=function(e,t,r){return this.options||(this.options={}),/^features\./.test(e)?o.setProperty(this.options,e,t,r):r&&void 0!==this.options[e]||(this.getOption(e)!==t&&(this.resolved=!1),this.options[e]=t),this},f.prototype.setParsedOption=function(e,t,r){this.parsedOptions||(this.parsedOptions=[]);var i=this.parsedOptions;if(r){var n=i.find(function(t){return Object.prototype.hasOwnProperty.call(t,e)});if(n){var s=n[e];o.setProperty(s,r,t)}else(n={})[e]=o.setProperty({},r,t),i.push(n)}else{var a={};a[e]=t,i.push(a)}return this},f.prototype.setOptions=function(e,t){if(e)for(var r=Object.keys(e),i=0;i{e.exports=n;var i=r(3610);function n(e,t,r){if("function"!=typeof e)throw TypeError("rpcImpl must be a function");i.EventEmitter.call(this),this.rpcImpl=e,this.requestDelimited=Boolean(t),this.responseDelimited=Boolean(r)}(n.prototype=Object.create(i.EventEmitter.prototype)).constructor=n,n.prototype.rpcCall=function e(t,r,n,o,s){if(!o)throw TypeError("request must be specified");var a=this;if(!s)return i.asPromise(e,a,t,r,n,o);if(a.rpcImpl)try{return a.rpcImpl(t,r[a.requestDelimited?"encodeDelimited":"encode"](o).finish(),function(e,r){if(e)return a.emit("error",e,t),s(e);if(null!==r){if(!(r instanceof n))try{r=n[a.responseDelimited?"decodeDelimited":"decode"](r)}catch(e){return a.emit("error",e,t),s(e)}return a.emit("data",r,t),s(null,r)}a.end(!0)})}catch(e){return a.emit("error",e,t),void setTimeout(function(){s(e)},0)}else setTimeout(function(){s(Error("already ended"))},0)},n.prototype.end=function(e){return this.rpcImpl&&(e||this.rpcImpl(null,null,null),this.rpcImpl=null,this.emit("end").off()),this}},7728:(e,t,r)=>{e.exports=function(e){for(var t=o.codegen(["r","l","e"],e.name+"$decode")("if(!(r instanceof Reader))")("r=Reader.create(r)")("var c=l===undefined?r.len:r.pos+l,m=new this.ctor"+(e.fieldsArray.filter(function(e){return e.map}).length?",k,value":""))("while(r.pos>>3){"),r=0;r>>3){")("case 1: k=r.%s(); break",a.keyType)("case 2:"),void 0===n.basic[u]?t("value=types[%i].decode(r,r.uint32())",r):t("value=r.%s()",u),t("break")("default:")("r.skipType(tag2&7)")("break")("}")("}"),void 0!==n.long[a.keyType]?t('%s[typeof k==="object"?util.longToHash(k):k]=value',f):t("%s[k]=value",f)):a.repeated?(t("if(!(%s&&%s.length))",f,f)("%s=[]",f),void 0!==n.packed[u]&&t("if((t&7)===2){")("var c2=r.uint32()+r.pos")("while(r.pos{e.exports=g;var i=r(8923);((g.prototype=Object.create(i.prototype)).constructor=g).className="Type";var n=r(5643),o=r(1457),s=r(1344),a=r(8252),u=r(9687),f=r(2551),l=r(6237),p=r(3449),h=r(3262),c=r(1080),d=r(7728),y=r(420),v=r(744),m=r(6434);function g(e,t){i.call(this,e,t),this.fields={},this.oneofs=void 0,this.extensions=void 0,this.reserved=void 0,this.group=void 0,this._fieldsById=null,this._fieldsArray=null,this._oneofsArray=null,this._ctor=null}function b(e){return e._fieldsById=e._fieldsArray=e._oneofsArray=null,delete e.encode,delete e.decode,delete e.verify,e}Object.defineProperties(g.prototype,{fieldsById:{get:function(){if(this._fieldsById)return this._fieldsById;this._fieldsById={};for(var e=Object.keys(this.fields),t=0;t{t._resolveFeatures(e)}),this.fieldsArray.forEach(t=>{t._resolveFeatures(e)}),this):this},g.prototype.get=function(e){return this.fields[e]||this.oneofs&&this.oneofs[e]||this.nested&&this.nested[e]||null},g.prototype.add=function(e){if(this.get(e.name))throw Error("duplicate name '"+e.name+"' in "+this);if(e instanceof s&&void 0===e.extend){if(this._fieldsById?this._fieldsById[e.id]:this.fieldsById[e.id])throw Error("duplicate id "+e.id+" in "+this);if(this.isReservedId(e.id))throw Error("id "+e.id+" is reserved in "+this);if(this.isReservedName(e.name))throw Error("name '"+e.name+"' is reserved in "+this);return e.parent&&e.parent.remove(e),this.fields[e.name]=e,e.message=this,e.onAdd(this),b(this)}return e instanceof o?(this.oneofs||(this.oneofs={}),this.oneofs[e.name]=e,e.onAdd(this),b(this)):i.prototype.add.call(this,e)},g.prototype.remove=function(e){if(e instanceof s&&void 0===e.extend){if(!this.fields||this.fields[e.name]!==e)throw Error(e+" is not a member of "+this);return delete this.fields[e.name],e.parent=null,e.onRemove(this),b(this)}if(e instanceof o){if(!this.oneofs||this.oneofs[e.name]!==e)throw Error(e+" is not a member of "+this);return delete this.oneofs[e.name],e.parent=null,e.onRemove(this),b(this)}return i.prototype.remove.call(this,e)},g.prototype.isReservedId=function(e){return i.isReservedId(this.reserved,e)},g.prototype.isReservedName=function(e){return i.isReservedName(this.reserved,e)},g.prototype.create=function(e){return new this.ctor(e)},g.prototype.setup=function(){for(var e=this.fullName,t=[],r=0;r{e.exports=function(e,t){for(var r=new Array(arguments.length-1),i=0,n=2,o=!0;n{e.exports=s;var i=r(1344);((s.prototype=Object.create(i.prototype)).constructor=s).className="MapField";var n=r(361),o=r(3262);function s(e,t,r,n,s,a){if(i.call(this,e,t,n,void 0,void 0,s,a),!o.isString(r))throw TypeError("keyType must be a string");this.keyType=r,this.resolvedKeyType=null,this.map=!0}s.fromJSON=function(e,t){return new s(e,t.id,t.keyType,t.type,t.options,t.comment)},s.prototype.toJSON=function(e){var t=!!e&&Boolean(e.keepComments);return o.toObject(["keyType",this.keyType,"type",this.type,"id",this.id,"extend",this.extend,"options",this.options,"comment",t?this.comment:void 0])},s.prototype.resolve=function(){if(this.resolved)return this;if(void 0===n.mapKey[this.keyType])throw Error("invalid key type: "+this.keyType);return i.prototype.resolve.call(this)},s.d=function(e,t,r){return"function"==typeof r?r=o.decorateType(r).name:r&&"object"==typeof r&&(r=o.decorateEnum(r).name),function(i,n){o.decorateType(i.constructor).add(new s(n,e,t,r))}}},8561:e=>{function t(e,r){"string"==typeof e&&(r=e,e=void 0);var i=[];function n(e){if("string"!=typeof e){var r=o();if(t.verbose&&console.log("codegen: "+r),r="return "+r,e){for(var s=Object.keys(e),a=new Array(s.length+1),u=new Array(s.length),f=0;f{e.exports=o;var i=r(7209);((o.prototype=Object.create(i.prototype)).constructor=o).className="Method";var n=r(3262);function o(e,t,r,o,s,a,u,f,l){if(n.isObject(s)?(u=s,s=a=void 0):n.isObject(a)&&(u=a,a=void 0),void 0!==t&&!n.isString(t))throw TypeError("type must be a string");if(!n.isString(r))throw TypeError("requestType must be a string");if(!n.isString(o))throw TypeError("responseType must be a string");i.call(this,e,u),this.type=t||"rpc",this.requestType=r,this.requestStream=!!s||void 0,this.responseType=o,this.responseStream=!!a||void 0,this.resolvedRequestType=null,this.resolvedResponseType=null,this.comment=f,this.parsedOptions=l}o.fromJSON=function(e,t){return new o(e,t.type,t.requestType,t.responseType,t.requestStream,t.responseStream,t.options,t.comment,t.parsedOptions)},o.prototype.toJSON=function(e){var t=!!e&&Boolean(e.keepComments);return n.toObject(["type","rpc"!==this.type&&this.type||void 0,"requestType",this.requestType,"requestStream",this.requestStream,"responseType",this.responseType,"responseStream",this.responseStream,"options",this.options,"comment",t?this.comment:void 0,"parsedOptions",this.parsedOptions])},o.prototype.resolve=function(){return this.resolved?this:(this.resolvedRequestType=this.parent.lookupType(this.requestType),this.resolvedResponseType=this.parent.lookupType(this.responseType),i.prototype.resolve.call(this))}},8839:(e,t)=>{var r=t;r.length=function(e){var t=e.length;if(!t)return 0;for(var r=0;--t%4>1&&"="===e.charAt(t);)++r;return Math.ceil(3*e.length)/4-r};for(var i=new Array(64),n=new Array(123),o=0;o<64;)n[i[o]=o<26?o+65:o<52?o+71:o<62?o-4:o-59|43]=o++;r.encode=function(e,t,r){for(var n,o=null,s=[],a=0,u=0;t>2],n=(3&f)<<4,u=1;break;case 1:s[a++]=i[n|f>>4],n=(15&f)<<2,u=2;break;case 2:s[a++]=i[n|f>>6],s[a++]=i[63&f],u=0}a>8191&&((o||(o=[])).push(String.fromCharCode.apply(String,s)),a=0)}return u&&(s[a++]=i[n],s[a++]=61,1===u&&(s[a++]=61)),o?(a&&o.push(String.fromCharCode.apply(String,s.slice(0,a))),o.join("")):String.fromCharCode.apply(String,s.slice(0,a))};var s="invalid encoding";r.decode=function(e,t,r){for(var i,o=r,a=0,u=0;u1)break;if(void 0===(f=n[f]))throw Error(s);switch(a){case 0:i=f,a=1;break;case 1:t[r++]=i<<2|(48&f)>>4,i=f,a=2;break;case 2:t[r++]=(15&i)<<4|(60&f)>>2,i=f,a=3;break;case 3:t[r++]=(3&i)<<6|f,a=0}}if(1===a)throw Error(s);return r-o},r.test=function(e){return/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(e)}},8923:(e,t,r)=>{e.exports=p;var i=r(7209);((p.prototype=Object.create(i.prototype)).constructor=p).className="Namespace";var n,o,s,a=r(1344),u=r(3262),f=r(1457);function l(e,t){if(e&&e.length){for(var r={},i=0;it)return!0;return!1},p.isReservedName=function(e,t){if(e)for(var r=0;r0;){var i=e.shift();if(r.nested&&r.nested[i]){if(!((r=r.nested[i])instanceof p))throw Error("path conflicts with non-namespace objects")}else r.add(r=new p(i))}return t&&r.addJSON(t),r},p.prototype.resolveAll=function(){if(!this._needsRecursiveResolve)return this;this._resolveFeaturesRecursive(this._edition);var e=this.nestedArray,t=0;for(this.resolve();t{t._resolveFeaturesRecursive(e)}),this):this},p.prototype.lookup=function(e,t,r){if("boolean"==typeof t?(r=t,t=void 0):t&&!Array.isArray(t)&&(t=[t]),u.isString(e)&&e.length){if("."===e)return this.root;e=e.split(".")}else if(!e.length)return this;var i=e.join(".");if(""===e[0])return this.root.lookup(e.slice(1),t);var n=this.root._fullyQualifiedObjects&&this.root._fullyQualifiedObjects["."+i];if(n&&(!t||t.indexOf(n.constructor)>-1))return n;if((n=this._lookupImpl(e,i))&&(!t||t.indexOf(n.constructor)>-1))return n;if(r)return null;for(var o=this;o.parent;){if((n=o.parent._lookupImpl(e,i))&&(!t||t.indexOf(n.constructor)>-1))return n;o=o.parent}return null},p.prototype._lookupImpl=function(e,t){if(Object.prototype.hasOwnProperty.call(this._lookupCache,t))return this._lookupCache[t];var r=this.get(e[0]),i=null;if(r)1===e.length?i=r:r instanceof p&&(e=e.slice(1),i=r._lookupImpl(e,e.join(".")));else for(var n=0;n{var i=e.exports=r(5325);i.build="full",i.tokenize=r(527),i.parse=r(4863),i.common=r(5095),i.Root._configure(i.Type,i.parse,i.common)},9207:(e,t)=>{var r=t,i=r.isAbsolute=function(e){return/^(?:\/|\w+:)/.test(e)},n=r.normalize=function(e){var t=(e=e.replace(/\\/g,"/").replace(/\/{2,}/g,"/")).split("/"),r=i(e),n="";r&&(n=t.shift()+"/");for(var o=0;o0&&".."!==t[o-1]?t.splice(--o,2):r?t.splice(o,1):++o:"."===t[o]?t.splice(o,1):++o;return n+t.join("/")};r.resolve=function(e,t,r){return r||(t=n(t)),i(t)?t:(r||(e=n(e)),(e=e.replace(/(?:\/|^)[^/]+$/,"")).length?n(e+"/"+t):t)}},9390:e=>{e.exports=function(e,t,r){var i=r||8192,n=i>>>1,o=null,s=i;return function(r){if(r<1||r>n)return e(r);s+r>i&&(o=e(i),s=0);var a=t.call(o,s,s+=r);return 7&s&&(s=1+(7|s)),a}}},9410:e=>{function t(e){return"undefined"!=typeof Float32Array?function(){var t=new Float32Array([-0]),r=new Uint8Array(t.buffer),i=128===r[3];function n(e,i,n){t[0]=e,i[n]=r[0],i[n+1]=r[1],i[n+2]=r[2],i[n+3]=r[3]}function o(e,i,n){t[0]=e,i[n]=r[3],i[n+1]=r[2],i[n+2]=r[1],i[n+3]=r[0]}function s(e,i){return r[0]=e[i],r[1]=e[i+1],r[2]=e[i+2],r[3]=e[i+3],t[0]}function a(e,i){return r[3]=e[i],r[2]=e[i+1],r[1]=e[i+2],r[0]=e[i+3],t[0]}e.writeFloatLE=i?n:o,e.writeFloatBE=i?o:n,e.readFloatLE=i?s:a,e.readFloatBE=i?a:s}():function(){function t(e,t,r,i){var n=t<0?1:0;if(n&&(t=-t),0===t)e(1/t>0?0:2147483648,r,i);else if(isNaN(t))e(2143289344,r,i);else if(t>34028234663852886e22)e((n<<31|2139095040)>>>0,r,i);else if(t<11754943508222875e-54)e((n<<31|Math.round(t/1401298464324817e-60))>>>0,r,i);else{var o=Math.floor(Math.log(t)/Math.LN2);e((n<<31|o+127<<23|8388607&Math.round(t*Math.pow(2,-o)*8388608))>>>0,r,i)}}function s(e,t,r){var i=e(t,r),n=2*(i>>31)+1,o=i>>>23&255,s=8388607&i;return 255===o?s?NaN:n*(1/0):0===o?1401298464324817e-60*n*s:n*Math.pow(2,o-150)*(s+8388608)}e.writeFloatLE=t.bind(null,r),e.writeFloatBE=t.bind(null,i),e.readFloatLE=s.bind(null,n),e.readFloatBE=s.bind(null,o)}(),"undefined"!=typeof Float64Array?function(){var t=new Float64Array([-0]),r=new Uint8Array(t.buffer),i=128===r[7];function n(e,i,n){t[0]=e,i[n]=r[0],i[n+1]=r[1],i[n+2]=r[2],i[n+3]=r[3],i[n+4]=r[4],i[n+5]=r[5],i[n+6]=r[6],i[n+7]=r[7]}function o(e,i,n){t[0]=e,i[n]=r[7],i[n+1]=r[6],i[n+2]=r[5],i[n+3]=r[4],i[n+4]=r[3],i[n+5]=r[2],i[n+6]=r[1],i[n+7]=r[0]}function s(e,i){return r[0]=e[i],r[1]=e[i+1],r[2]=e[i+2],r[3]=e[i+3],r[4]=e[i+4],r[5]=e[i+5],r[6]=e[i+6],r[7]=e[i+7],t[0]}function a(e,i){return r[7]=e[i],r[6]=e[i+1],r[5]=e[i+2],r[4]=e[i+3],r[3]=e[i+4],r[2]=e[i+5],r[1]=e[i+6],r[0]=e[i+7],t[0]}e.writeDoubleLE=i?n:o,e.writeDoubleBE=i?o:n,e.readDoubleLE=i?s:a,e.readDoubleBE=i?a:s}():function(){function t(e,t,r,i,n,o){var s=i<0?1:0;if(s&&(i=-i),0===i)e(0,n,o+t),e(1/i>0?0:2147483648,n,o+r);else if(isNaN(i))e(0,n,o+t),e(2146959360,n,o+r);else if(i>17976931348623157e292)e(0,n,o+t),e((s<<31|2146435072)>>>0,n,o+r);else{var a;if(i<22250738585072014e-324)e((a=i/5e-324)>>>0,n,o+t),e((s<<31|a/4294967296)>>>0,n,o+r);else{var u=Math.floor(Math.log(i)/Math.LN2);1024===u&&(u=1023),e(4503599627370496*(a=i*Math.pow(2,-u))>>>0,n,o+t),e((s<<31|u+1023<<20|1048576*a&1048575)>>>0,n,o+r)}}}function s(e,t,r,i,n){var o=e(i,n+t),s=e(i,n+r),a=2*(s>>31)+1,u=s>>>20&2047,f=4294967296*(1048575&s)+o;return 2047===u?f?NaN:a*(1/0):0===u?5e-324*a*f:a*Math.pow(2,u-1075)*(f+4503599627370496)}e.writeDoubleLE=t.bind(null,r,0,4),e.writeDoubleBE=t.bind(null,i,4,0),e.readDoubleLE=s.bind(null,n,0,4),e.readDoubleBE=s.bind(null,o,4,0)}(),e}function r(e,t,r){t[r]=255&e,t[r+1]=e>>>8&255,t[r+2]=e>>>16&255,t[r+3]=e>>>24}function i(e,t,r){t[r]=e>>>24,t[r+1]=e>>>16&255,t[r+2]=e>>>8&255,t[r+3]=255&e}function n(e,t){return(e[t]|e[t+1]<<8|e[t+2]<<16|e[t+3]<<24)>>>0}function o(e,t){return(e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3])>>>0}e.exports=t(t)},9687:(e,t,r)=>{e.exports=a;var i=r(8923);((a.prototype=Object.create(i.prototype)).constructor=a).className="Service";var n=r(8811),o=r(3262),s=r(5047);function a(e,t){i.call(this,e,t),this.methods={},this._methodsArray=null}function u(e){return e._methodsArray=null,e}a.fromJSON=function(e,t){var r=new a(e,t.options);if(t.methods)for(var i=Object.keys(t.methods),o=0;o{t._resolveFeaturesRecursive(e)}),this):this},a.prototype.add=function(e){if(this.get(e.name))throw Error("duplicate name '"+e.name+"' in "+this);return e instanceof n?(this.methods[e.name]=e,e.parent=this,u(this)):i.prototype.add.call(this,e)},a.prototype.remove=function(e){if(e instanceof n){if(this.methods[e.name]!==e)throw Error(e+" is not a member of "+this);return delete this.methods[e.name],e.parent=null,u(this)}return i.prototype.remove.call(this,e)},a.prototype.create=function(e,t,r){for(var i,n=new s.Service(e,t,r),a=0;a{var t={3961:t=>{function e(t,e){"boolean"==typeof e&&(e={forever:e}),this._originalTimeouts=JSON.parse(JSON.stringify(t)),this._timeouts=t,this._options=e||{},this._maxRetryTime=e&&e.maxRetryTime||1/0,this._fn=null,this._errors=[],this._attempts=1,this._operationTimeout=null,this._operationTimeoutCb=null,this._timeout=null,this._operationStart=null,this._timer=null,this._options.forever&&(this._cachedTimeouts=this._timeouts.slice(0))}t.exports=e,e.prototype.reset=function(){this._attempts=1,this._timeouts=this._originalTimeouts.slice(0)},e.prototype.stop=function(){this._timeout&&clearTimeout(this._timeout),this._timer&&clearTimeout(this._timer),this._timeouts=[],this._cachedTimeouts=null},e.prototype.retry=function(t){if(this._timeout&&clearTimeout(this._timeout),!t)return!1;var e=(new Date).getTime();if(t&&e-this._operationStart>=this._maxRetryTime)return this._errors.push(t),this._errors.unshift(new Error("RetryOperation timeout occurred")),!1;this._errors.push(t);var r=this._timeouts.shift();if(void 0===r){if(!this._cachedTimeouts)return!1;this._errors.splice(0,this._errors.length-1),r=this._cachedTimeouts.slice(-1)}var i=this;return this._timer=setTimeout(function(){i._attempts++,i._operationTimeoutCb&&(i._timeout=setTimeout(function(){i._operationTimeoutCb(i._attempts)},i._operationTimeout),i._options.unref&&i._timeout.unref()),i._fn(i._attempts)},r),this._options.unref&&this._timer.unref(),!0},e.prototype.attempt=function(t,e){this._fn=t,e&&(e.timeout&&(this._operationTimeout=e.timeout),e.cb&&(this._operationTimeoutCb=e.cb));var r=this;this._operationTimeoutCb&&(this._timeout=setTimeout(function(){r._operationTimeoutCb()},r._operationTimeout)),this._operationStart=(new Date).getTime(),this._fn(this._attempts)},e.prototype.try=function(t){console.log("Using RetryOperation.try() is deprecated"),this.attempt(t)},e.prototype.start=function(t){console.log("Using RetryOperation.start() is deprecated"),this.attempt(t)},e.prototype.start=e.prototype.try,e.prototype.errors=function(){return this._errors},e.prototype.attempts=function(){return this._attempts},e.prototype.mainError=function(){if(0===this._errors.length)return null;for(var t={},e=null,r=0,i=0;i=r&&(e=o,r=s)}return e}},5617:(t,e,r)=>{t.exports=r(8303)},8303:(t,e,r)=>{var i=r(3961);e.operation=function(t){var r=e.timeouts(t);return new i(r,{forever:t&&(t.forever||t.retries===1/0),unref:t&&t.unref,maxRetryTime:t&&t.maxRetryTime})},e.timeouts=function(t){if(t instanceof Array)return[].concat(t);var e={retries:10,factor:2,minTimeout:1e3,maxTimeout:1/0,randomize:!1};for(var r in t)e[r]=t[r];if(e.minTimeout>e.maxTimeout)throw new Error("minTimeout is greater than maxTimeout");for(var i=[],o=0;o{"use strict";var t={9844:t=>{function r(t){return t instanceof Buffer?Buffer.from(t):new t.constructor(t.buffer.slice(),t.byteOffset,t.length)}t.exports=function(t){if((t=t||{}).circles)return function(t){const e=[],n=[],o=new Map;if(o.set(Date,t=>new Date(t)),o.set(Map,(t,r)=>new Map(s(Array.from(t),r))),o.set(Set,(t,r)=>new Set(s(Array.from(t),r))),t.constructorHandlers)for(const r of t.constructorHandlers)o.set(r[0],r[1]);let c=null;return t.proto?function t(u){if("object"!=typeof u||null===u)return u;if(Array.isArray(u))return s(u,t);if(u.constructor!==Object&&(c=o.get(u.constructor)))return c(u,t);const f={};e.push(u),n.push(f);for(const s in u){const i=u[s];if("object"!=typeof i||null===i)f[s]=i;else if(i.constructor!==Object&&(c=o.get(i.constructor)))f[s]=c(i,t);else if(ArrayBuffer.isView(i))f[s]=r(i);else{const r=e.indexOf(i);f[s]=-1!==r?n[r]:t(i)}}return e.pop(),n.pop(),f}:function t(u){if("object"!=typeof u||null===u)return u;if(Array.isArray(u))return s(u,t);if(u.constructor!==Object&&(c=o.get(u.constructor)))return c(u,t);const f={};e.push(u),n.push(f);for(const s in u){if(!1===Object.hasOwnProperty.call(u,s))continue;const i=u[s];if("object"!=typeof i||null===i)f[s]=i;else if(i.constructor!==Object&&(c=o.get(i.constructor)))f[s]=c(i,t);else if(ArrayBuffer.isView(i))f[s]=r(i);else{const r=e.indexOf(i);f[s]=-1!==r?n[r]:t(i)}}return e.pop(),n.pop(),f};function s(t,s){const u=Object.keys(t),f=new Array(u.length);for(let i=0;inew Date(t)),e.set(Map,(t,r)=>new Map(o(Array.from(t),r))),e.set(Set,(t,r)=>new Set(o(Array.from(t),r))),t.constructorHandlers)for(const r of t.constructorHandlers)e.set(r[0],r[1]);let n=null;return t.proto?function t(c){if("object"!=typeof c||null===c)return c;if(Array.isArray(c))return o(c,t);if(c.constructor!==Object&&(n=e.get(c.constructor)))return n(c,t);const s={};for(const o in c){const u=c[o];"object"!=typeof u||null===u?s[o]=u:u.constructor!==Object&&(n=e.get(u.constructor))?s[o]=n(u,t):ArrayBuffer.isView(u)?s[o]=r(u):s[o]=t(u)}return s}:function t(c){if("object"!=typeof c||null===c)return c;if(Array.isArray(c))return o(c,t);if(c.constructor!==Object&&(n=e.get(c.constructor)))return n(c,t);const s={};for(const o in c){if(!1===Object.hasOwnProperty.call(c,o))continue;const u=c[o];"object"!=typeof u||null===u?s[o]=u:u.constructor!==Object&&(n=e.get(u.constructor))?s[o]=n(u,t):ArrayBuffer.isView(u)?s[o]=r(u):s[o]=t(u)}return s};function o(t,o){const c=Object.keys(t),s=new Array(c.length);for(let u=0;u{var t={3734:t=>{function n(t,n){for(const[e,r]of t)if(!l(n,r,e))return!1;return!0}function e(t){return"latest"===t&&(t=">=0"),t.match(/^([^\d+]*)(\d.*)$/)||[null,"","*.*.*"]}function r(t,n){const e=t.slice(0);if(-1===t[n])return e;for(e[n++]++;n<3;n++)e[n]=0;return e}function u(t){return"x"===t||"X"===t||"*"===t||"latest"===t?-1:Number(t)}function i(t){return/^\d+$/.test(t)?Number(t):t}function s(t,n,e){return-1===e?"<"!==t:"="===t?n===e:">"===t?n>e:">="===t?n>=e:"<"===t?n"===n?(n=">=",s.push(0,0,0),s[o]++):""===n?s.push(0,0,0):s.push(-1,-1,-1),r?[s.slice(0,3).concat(r.split(".").map(i)),n]:[s.slice(0,3),n]}function l(t,n,e){if(!s("=",t[0],n[0]))return s(e,t[0],n[0]);if(!s("=",t[1],n[1]))return s(e,t[1],n[1]);if(!s("=",t[2],n[2]))return s(e,t[2],n[2]);if(3===t.length&&3===n.length)return s(e,t[2],n[2]);if("<"===e[0]&&(3===n.length||3===t.length))return!1;if(">"===e[0]){if(3===t.length)return!0;if(3===n.length)return!1}for(let r=3;r=~v^]+$/.test(s)&&t+1="}if("~"===h[0]){const t=l[2].split("-")[0].split(".").length;u.push([">=",c]),u.push(["<",r(c,1===t?0:1)])}else if("^"===h[0]){const t=0!==c[0]?0:0!==c[1]?1:2;u.push([">=",c]),u.push(["<",r(c,0===t?0:1===t?1:2)])}else u.push([h.replace("~","").replace("^",""),c])}return u.length&&n.push(u),n}(u))if(n(t,i))return!0;return!1}}},n={},e=function e(r){var u=n[r];if(void 0!==u)return u.exports;var i=n[r]={exports:{}};return t[r](i,i.exports,e),i.exports}(3734);module.exports=e})(); \ No newline at end of file diff --git a/packages/node_modules/shell-quote.js b/packages/node_modules/shell-quote.js new file mode 100644 index 00000000000..f06ddbb72ee --- /dev/null +++ b/packages/node_modules/shell-quote.js @@ -0,0 +1 @@ +(()=>{"use strict";var e={3940:e=>{e.exports=function(e){return e.map(function(e){return""===e?"''":e&&"object"==typeof e?e.op.replace(/(.)/g,"\\$1"):/["\s\\]/.test(e)&&!/'/.test(e)?"'"+e.replace(/(['])/g,"\\$1")+"'":/["'\s]/.test(e)?'"'+e.replace(/(["\\$`!])/g,"\\$1")+'"':String(e).replace(/([A-Za-z]:)?([#!"$&'()*,:;<=>?@[\\\]^`{|}])/g,"$1\\$2")}).join(" ")}},9563:e=>{for(var t="(?:"+["\\|\\|","\\&\\&",";;","\\|\\&","\\<\\(","\\<\\<\\<",">>",">\\&","<\\&","[&;()|<>]"].join("|")+")",r=new RegExp("^"+t+"$"),n="|&;()<> \\t",o=/^#$/,i="",a=0;a<4;a++)i+=(4294967296*Math.random()).toString(16);var c=new RegExp("^"+i);e.exports=function(e,a,s){var u=function(e,a,c){c||(c={});var s=c.escape||"\\",u=new RegExp(["("+t+")","((\\"+s+"['\""+n+"]|[^\\s'\""+n+"])+|\"((\\\\\"|[^\"])*?)\"|'((\\\\'|[^'])*?)')+"].join("|"),"g"),f=function(e,t){for(var r,n=t.lastIndex,o=[];r=t.exec(e);)o.push(r),t.lastIndex===r.index&&(t.lastIndex+=1);return t.lastIndex=n,o}(e,u);if(0===f.length)return[];a||(a={});var p=!1;return f.map(function(t){var n=t[0];if(n&&!p){if(r.test(n))return{op:n};var c,u=!1,f=!1,l="",v=!1;for(c=0;c{var e={251:(e,n,t)=>{const r=t(2626);n.getArg=function(e,n,t){if(n in e)return e[n];if(3===arguments.length)return t;throw new Error('"'+n+'" is a required argument.')};const o=!("__proto__"in Object.create(null));function s(e){return e}function i(e){if(!e)return!1;const n=e.length;if(n<9)return!1;if(95!==e.charCodeAt(n-1)||95!==e.charCodeAt(n-2)||111!==e.charCodeAt(n-3)||116!==e.charCodeAt(n-4)||111!==e.charCodeAt(n-5)||114!==e.charCodeAt(n-6)||112!==e.charCodeAt(n-7)||95!==e.charCodeAt(n-8)||95!==e.charCodeAt(n-9))return!1;for(let t=n-10;t>=0;t--)if(36!==e.charCodeAt(t))return!1;return!0}function l(e,n){return e===n?0:null===e?1:null===n?-1:e>n?1:-1}n.toSetString=o?s:function(e){return i(e)?"$"+e:e},n.fromSetString=o?s:function(e){return i(e)?e.slice(1):e},n.compareByGeneratedPositionsInflated=function(e,n){let t=e.generatedLine-n.generatedLine;return 0!==t?t:(t=e.generatedColumn-n.generatedColumn,0!==t?t:(t=l(e.source,n.source),0!==t?t:(t=e.originalLine-n.originalLine,0!==t?t:(t=e.originalColumn-n.originalColumn,0!==t?t:l(e.name,n.name)))))},n.parseSourceMapInput=function(e){return JSON.parse(e.replace(/^\)]}'[^\n]*\n/,""))};const a="http://host";function u(e){return n=>{const t=m(n),o=g(n),s=new r(n,o);e(s);const i=s.toString();return"absolute"===t?i:"scheme-relative"===t?i.slice(5):"path-absolute"===t?i.slice(11):p(o,i)}}function c(e,n){return new r(e,n).toString()}function g(e){const n=e.split("..").length-1,t=function(e,n){let t=0;for(;;){const e="p"+t++;if(-1===n.indexOf(e))return e}}(0,e);let r=`${a}/`;for(let e=0;e0&&!o[o.length-1]&&o.pop();t.length>0&&o.length>0&&t[0]===o[0];)t.shift(),o.shift();return o.map(()=>"..").concat(t).join("/")+n.search+n.hash}const d=u(e=>{e.pathname=e.pathname.replace(/\/?$/,"/")}),_=u(e=>{e.href=new r(".",e.toString()).toString()}),f=u(e=>{});function C(e,n){const t=m(n),r=m(e);if(e=d(e),"absolute"===t)return c(n,void 0);if("absolute"===r)return c(n,e);if("scheme-relative"===t)return f(n);if("scheme-relative"===r)return c(n,c(e,a)).slice(5);if("path-absolute"===t)return f(n);if("path-absolute"===r)return c(n,c(e,a)).slice(11);const o=g(n+e);return p(o,c(n,c(e,o)))}n.normalize=f,n.join=C,n.relative=function(e,n){const t=function(e,n){if(m(e)!==m(n))return null;const t=g(e+n),o=new r(e,t),s=new r(n,t);try{new r("",s.toString())}catch(e){return null}return s.protocol!==o.protocol||s.user!==o.user||s.password!==o.password||s.hostname!==o.hostname||s.port!==o.port?null:p(o,s)}(e,n);return"string"==typeof t?t:f(n)},n.computeSourceURL=function(e,n,t){e&&"path-absolute"===m(n)&&(n=n.replace(/^\//,""));let r=f(n||"");return e&&(r=C(e,r)),t&&(r=C(_(t),r)),r}},735:(e,n)=>{class t{constructor(){this._array=[],this._set=new Map}static fromArray(e,n){const r=new t;for(let t=0,o=e.length;t=0)return n;throw new Error('"'+e+'" is not in the set.')}at(e){if(e>=0&&e{function t(e,r,o,s,i,l){const a=Math.floor((r-e)/2)+e,u=i(o,s[a],!0);return 0===u?a:u>0?r-a>1?t(a,r,o,s,i,l):l===n.LEAST_UPPER_BOUND?r1?t(e,a,o,s,i,l):l==n.LEAST_UPPER_BOUND?a:e<0?-1:e}n.GREATEST_LOWER_BOUND=1,n.LEAST_UPPER_BOUND=2,n.search=function(e,r,o,s){if(0===r.length)return-1;let i=t(-1,r.length,e,r,o,s||n.GREATEST_LOWER_BOUND);if(i<0)return-1;for(;i-1>=0&&0===o(r[i],r[i-1],!0);)--i;return i}},1683:(e,n,t)=>{const r=t(4041).SourceMapGenerator,o=t(251),s=/(\r?\n)/,i="$$$isSourceNode$$$";class l{constructor(e,n,t,r,o){this.children=[],this.sourceContents={},this.line=null==e?null:e,this.column=null==n?null:n,this.source=null==t?null:t,this.name=null==o?null:o,this[i]=!0,null!=r&&this.add(r)}static fromStringWithSourceMap(e,n,t){const r=new l,i=e.split(s);let a=0;const u=function(){return e()+(e()||"");function e(){return a=0;n--)this.prepend(e[n]);else{if(!e[i]&&"string"!=typeof e)throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e);this.children.unshift(e)}return this}walk(e){let n;for(let t=0,r=this.children.length;t0){for(n=[],t=0;t{const t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");n.encode=function(e){if(0<=e&&e{"use strict";e.exports="function"==typeof URL?URL:t(7016).URL},3302:(e,n,t)=>{const r=t(251);n.P=class{constructor(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}unsortedForEach(e,n){this._array.forEach(e,n)}add(e){!function(e,n){const t=e.generatedLine,o=n.generatedLine,s=e.generatedColumn,i=n.generatedColumn;return o>t||o==t&&i>=s||r.compareByGeneratedPositionsInflated(e,n)<=0}(this._last,e)?(this._sorted=!1,this._array.push(e)):(this._last=e,this._array.push(e))}toArray(){return this._sorted||(this._array.sort(r.compareByGeneratedPositionsInflated),this._sorted=!0),this._array}}},4041:(e,n,t)=>{const r=t(7092),o=t(251),s=t(735).C,i=t(3302).P;class l{constructor(e){e||(e={}),this._file=o.getArg(e,"file",null),this._sourceRoot=o.getArg(e,"sourceRoot",null),this._skipValidation=o.getArg(e,"skipValidation",!1),this._sources=new s,this._names=new s,this._mappings=new i,this._sourcesContents=null}static fromSourceMap(e){const n=e.sourceRoot,t=new l({file:e.file,sourceRoot:n});return e.eachMapping(function(e){const r={generated:{line:e.generatedLine,column:e.generatedColumn}};null!=e.source&&(r.source=e.source,null!=n&&(r.source=o.relative(n,r.source)),r.original={line:e.originalLine,column:e.originalColumn},null!=e.name&&(r.name=e.name)),t.addMapping(r)}),e.sources.forEach(function(r){let s=r;null!=n&&(s=o.relative(n,r)),t._sources.has(s)||t._sources.add(s);const i=e.sourceContentFor(r);null!=i&&t.setSourceContent(r,i)}),t}addMapping(e){const n=o.getArg(e,"generated"),t=o.getArg(e,"original",null);let r=o.getArg(e,"source",null),s=o.getArg(e,"name",null);this._skipValidation||this._validateMapping(n,t,r,s),null!=r&&(r=String(r),this._sources.has(r)||this._sources.add(r)),null!=s&&(s=String(s),this._names.has(s)||this._names.add(s)),this._mappings.add({generatedLine:n.line,generatedColumn:n.column,originalLine:t&&t.line,originalColumn:t&&t.column,source:r,name:s})}setSourceContent(e,n){let t=e;null!=this._sourceRoot&&(t=o.relative(this._sourceRoot,t)),null!=n?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[o.toSetString(t)]=n):this._sourcesContents&&(delete this._sourcesContents[o.toSetString(t)],0===Object.keys(this._sourcesContents).length&&(this._sourcesContents=null))}applySourceMap(e,n,t){let r=n;if(null==n){if(null==e.file)throw new Error('SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map\'s "file" property. Both were omitted.');r=e.file}const i=this._sourceRoot;null!=i&&(r=o.relative(i,r));const l=this._mappings.toArray().length>0?new s:this._sources,a=new s;this._mappings.unsortedForEach(function(n){if(n.source===r&&null!=n.originalLine){const r=e.originalPositionFor({line:n.originalLine,column:n.originalColumn});null!=r.source&&(n.source=r.source,null!=t&&(n.source=o.join(t,n.source)),null!=i&&(n.source=o.relative(i,n.source)),n.originalLine=r.line,n.originalColumn=r.column,null!=r.name&&(n.name=r.name))}const s=n.source;null==s||l.has(s)||l.add(s);const u=n.name;null==u||a.has(u)||a.add(u)},this),this._sources=l,this._names=a,e.sources.forEach(function(n){const r=e.sourceContentFor(n);null!=r&&(null!=t&&(n=o.join(t,n)),null!=i&&(n=o.relative(i,n)),this.setSourceContent(n,r))},this)}_validateMapping(e,n,t,r){if(n&&"number"!=typeof n.line&&"number"!=typeof n.column)throw new Error("original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.");if(e&&"line"in e&&"column"in e&&e.line>0&&e.column>=0&&!n&&!t&&!r);else if(!(e&&"line"in e&&"column"in e&&n&&"line"in n&&"column"in n&&e.line>0&&e.column>=0&&n.line>0&&n.column>=0&&t))throw new Error("Invalid mapping: "+JSON.stringify({generated:e,source:t,original:n,name:r}))}_serializeMappings(){let e,n,t,s,i=0,l=1,a=0,u=0,c=0,g=0,h="";const m=this._mappings.toArray();for(let p=0,d=m.length;p0){if(!o.compareByGeneratedPositionsInflated(n,m[p-1]))continue;e+=","}e+=r.encode(n.generatedColumn-i),i=n.generatedColumn,null!=n.source&&(s=this._sources.indexOf(n.source),e+=r.encode(s-g),g=s,e+=r.encode(n.originalLine-1-u),u=n.originalLine-1,e+=r.encode(n.originalColumn-a),a=n.originalColumn,null!=n.name&&(t=this._names.indexOf(n.name),e+=r.encode(t-c),c=t)),h+=e}return h}_generateSourcesContent(e,n){return e.map(function(e){if(!this._sourcesContents)return null;null!=n&&(e=o.relative(n,e));const t=o.toSetString(e);return Object.prototype.hasOwnProperty.call(this._sourcesContents,t)?this._sourcesContents[t]:null},this)}toJSON(){const e={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return null!=this._file&&(e.file=this._file),null!=this._sourceRoot&&(e.sourceRoot=this._sourceRoot),this._sourcesContents&&(e.sourcesContent=this._generateSourcesContent(e.sources,e.sourceRoot)),e}toString(){return JSON.stringify(this.toJSON())}}l.prototype._version=3,n.SourceMapGenerator=l},6576:(e,n,t)=>{"use strict";const r=t(9896),o=t(6928);e.exports=function(){return new Promise((e,n)=>{const t=o.join(__dirname,"mappings.wasm");r.readFile(t,null,(t,r)=>{t?n(t):e(r.buffer)})})},e.exports.initialize=e=>{console.debug("SourceMapConsumer.initialize is a no-op when running in node.js")}},6928:e=>{"use strict";e.exports=require("path")},7016:e=>{"use strict";e.exports=require("url")},7092:(e,n,t)=>{const r=t(2364);n.encode=function(e){let n,t="",o=function(e){return e<0?1+(-e<<1):0+(e<<1)}(e);do{n=31&o,o>>>=5,o>0&&(n|=32),t+=r.encode(n)}while(o>0);return t}},7446:(e,n,t)=>{const r=t(251),o=t(1163),s=t(735).C,i=(t(7092),t(6576)),l=t(8991),a=Symbol("smcInternal");class u{constructor(e,n){return e==a?Promise.resolve(this):function(e,n){let t=e;"string"==typeof e&&(t=r.parseSourceMapInput(e));const o=null!=t.sections?new g(t,n):new c(t,n);return Promise.resolve(o)}(e,n)}static initialize(e){i.initialize(e["lib/mappings.wasm"])}static fromSourceMap(e,n){return function(e,n){return c.fromSourceMap(e,n)}(e,n)}static async with(e,n,t){const r=await new u(e,n);try{return await t(r)}finally{r.destroy()}}eachMapping(e,n,t){throw new Error("Subclasses must implement eachMapping")}allGeneratedPositionsFor(e){throw new Error("Subclasses must implement allGeneratedPositionsFor")}destroy(){throw new Error("Subclasses must implement destroy")}}u.prototype._version=3,u.GENERATED_ORDER=1,u.ORIGINAL_ORDER=2,u.GREATEST_LOWER_BOUND=1,u.LEAST_UPPER_BOUND=2,n.SourceMapConsumer=u;class c extends u{constructor(e,n){return super(a).then(t=>{let o=e;"string"==typeof e&&(o=r.parseSourceMapInput(e));const i=r.getArg(o,"version"),a=r.getArg(o,"sources").map(String),u=r.getArg(o,"names",[]),c=r.getArg(o,"sourceRoot",null),g=r.getArg(o,"sourcesContent",null),h=r.getArg(o,"mappings"),m=r.getArg(o,"file",null),p=r.getArg(o,"x_google_ignoreList",null);if(i!=t._version)throw new Error("Unsupported version: "+i);return t._sourceLookupCache=new Map,t._names=s.fromArray(u.map(String),!0),t._sources=s.fromArray(a,!0),t._absoluteSources=s.fromArray(t._sources.toArray().map(function(e){return r.computeSourceURL(c,e,n)}),!0),t.sourceRoot=c,t.sourcesContent=g,t._mappings=h,t._sourceMapURL=n,t.file=m,t.x_google_ignoreList=p,t._computedColumnSpans=!1,t._mappingsPtr=0,t._wasm=null,l().then(e=>(t._wasm=e,t))})}_findSourceIndex(e){const n=this._sourceLookupCache.get(e);if("number"==typeof n)return n;const t=r.computeSourceURL(null,e,this._sourceMapURL);if(this._absoluteSources.has(t)){const n=this._absoluteSources.indexOf(t);return this._sourceLookupCache.set(e,n),n}const o=r.computeSourceURL(this.sourceRoot,e,this._sourceMapURL);if(this._absoluteSources.has(o)){const n=this._absoluteSources.indexOf(o);return this._sourceLookupCache.set(e,n),n}return-1}static fromSourceMap(e,n){return new c(e.toString())}get sources(){return this._absoluteSources.toArray()}_getMappingsPtr(){return 0===this._mappingsPtr&&this._parseMappings(),this._mappingsPtr}_parseMappings(){const e=this._mappings,n=e.length,t=this._wasm.exports.allocate_mappings(n)>>>0,r=new Uint8Array(this._wasm.exports.memory.buffer,t,n);for(let t=0;t{null!==n.source&&(n.source=this._absoluteSources.at(n.source),null!==n.name&&(n.name=this._names.at(n.name))),this._computedColumnSpans&&null===n.lastGeneratedColumn&&(n.lastGeneratedColumn=1/0),e.call(r,n)},()=>{switch(o){case u.GENERATED_ORDER:this._wasm.exports.by_generated_location(this._getMappingsPtr());break;case u.ORIGINAL_ORDER:this._wasm.exports.by_original_location(this._getMappingsPtr());break;default:throw new Error("Unknown order of iteration.")}})}allGeneratedPositionsFor(e){let n=r.getArg(e,"source");const t=r.getArg(e,"line"),o=e.column||0;if(n=this._findSourceIndex(n),n<0)return[];if(t<1)throw new Error("Line numbers must be >= 1");if(o<0)throw new Error("Column numbers must be >= 0");const s=[];return this._wasm.withMappingCallback(e=>{let n=e.lastGeneratedColumn;this._computedColumnSpans&&null===n&&(n=1/0),s.push({line:e.generatedLine,column:e.generatedColumn,lastColumn:n})},()=>{this._wasm.exports.all_generated_locations_for(this._getMappingsPtr(),n,t-1,"column"in e,o)}),s}destroy(){0!==this._mappingsPtr&&(this._wasm.exports.free_mappings(this._mappingsPtr),this._mappingsPtr=0)}computeColumnSpans(){this._computedColumnSpans||(this._wasm.exports.compute_column_spans(this._getMappingsPtr()),this._computedColumnSpans=!0)}originalPositionFor(e){const n={generatedLine:r.getArg(e,"line"),generatedColumn:r.getArg(e,"column")};if(n.generatedLine<1)throw new Error("Line numbers must be >= 1");if(n.generatedColumn<0)throw new Error("Column numbers must be >= 0");let t,o=r.getArg(e,"bias",u.GREATEST_LOWER_BOUND);if(null==o&&(o=u.GREATEST_LOWER_BOUND),this._wasm.withMappingCallback(e=>t=e,()=>{this._wasm.exports.original_location_for(this._getMappingsPtr(),n.generatedLine-1,n.generatedColumn,o)}),t&&t.generatedLine===n.generatedLine){let e=r.getArg(t,"source",null);null!==e&&(e=this._absoluteSources.at(e));let n=r.getArg(t,"name",null);return null!==n&&(n=this._names.at(n)),{source:e,line:r.getArg(t,"originalLine",null),column:r.getArg(t,"originalColumn",null),name:n}}return{source:null,line:null,column:null,name:null}}hasContentsOfAllSources(){return!!this.sourcesContent&&this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(e){return null==e})}sourceContentFor(e,n){if(!this.sourcesContent)return null;const t=this._findSourceIndex(e);if(t>=0)return this.sourcesContent[t];if(n)return null;throw new Error('"'+e+'" is not in the SourceMap.')}generatedPositionFor(e){let n=r.getArg(e,"source");if(n=this._findSourceIndex(n),n<0)return{line:null,column:null,lastColumn:null};const t={source:n,originalLine:r.getArg(e,"line"),originalColumn:r.getArg(e,"column")};if(t.originalLine<1)throw new Error("Line numbers must be >= 1");if(t.originalColumn<0)throw new Error("Column numbers must be >= 0");let o,s=r.getArg(e,"bias",u.GREATEST_LOWER_BOUND);if(null==s&&(s=u.GREATEST_LOWER_BOUND),this._wasm.withMappingCallback(e=>o=e,()=>{this._wasm.exports.generated_location_for(this._getMappingsPtr(),t.source,t.originalLine-1,t.originalColumn,s)}),o&&o.source===t.source){let e=o.lastGeneratedColumn;return this._computedColumnSpans&&null===e&&(e=1/0),{line:r.getArg(o,"generatedLine",null),column:r.getArg(o,"generatedColumn",null),lastColumn:e}}return{line:null,column:null,lastColumn:null}}}c.prototype.consumer=u;class g extends u{constructor(e,n){return super(a).then(t=>{let o=e;"string"==typeof e&&(o=r.parseSourceMapInput(e));const s=r.getArg(o,"version"),i=r.getArg(o,"sections");if(s!=t._version)throw new Error("Unsupported version: "+s);let l={line:-1,column:0};return Promise.all(i.map(e=>{if(e.url)throw new Error("Support for url field in sections not implemented.");const t=r.getArg(e,"offset"),o=r.getArg(t,"line"),s=r.getArg(t,"column");if(o({generatedOffset:{generatedLine:o+1,generatedColumn:s+1},consumer:e}))})).then(e=>(t._sections=e,t))})}get sources(){const e=[];for(let n=0;n=0?this._sections[n]:null,o=n>=0&&n+1=0?this._sections[n]:null,o=n>=0&&n+1{const n=t.generatedOffset.generatedLine-1,r=t.generatedOffset.generatedColumn-1;return 1===e.line&&(e.column+=r,"number"==typeof e.lastColumn&&(e.lastColumn+=r)),e.lastColumn===1/0&&o&&e.line===o.generatedOffset.generatedLine&&(e.lastColumn=o.generatedOffset.generatedColumn-2),e.line+=n,e}):[]}eachMapping(e,n,t){this._sections.forEach((r,o)=>{const s=o+1{const r=t(6576);function o(){this.generatedLine=0,this.generatedColumn=0,this.lastGeneratedColumn=null,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}let s=null;e.exports=function(){if(s)return s;const e=[];return s=r().then(n=>WebAssembly.instantiate(n,{env:{mapping_callback(n,t,r,s,i,l,a,u,c,g){const h=new o;h.generatedLine=n+1,h.generatedColumn=t,r&&(h.lastGeneratedColumn=s-1),i&&(h.source=l,h.originalLine=a+1,h.originalColumn=u,c&&(h.name=g)),e[e.length-1](h)},start_all_generated_locations_for(){console.time("all_generated_locations_for")},end_all_generated_locations_for(){console.timeEnd("all_generated_locations_for")},start_compute_column_spans(){console.time("compute_column_spans")},end_compute_column_spans(){console.timeEnd("compute_column_spans")},start_generated_location_for(){console.time("generated_location_for")},end_generated_location_for(){console.timeEnd("generated_location_for")},start_original_location_for(){console.time("original_location_for")},end_original_location_for(){console.timeEnd("original_location_for")},start_parse_mappings(){console.time("parse_mappings")},end_parse_mappings(){console.timeEnd("parse_mappings")},start_sort_by_generated_location(){console.time("sort_by_generated_location")},end_sort_by_generated_location(){console.timeEnd("sort_by_generated_location")},start_sort_by_original_location(){console.time("sort_by_original_location")},end_sort_by_original_location(){console.timeEnd("sort_by_original_location")}}})).then(n=>({exports:n.instance.exports,withMappingCallback:(n,t)=>{e.push(n);try{t()}finally{e.pop()}}})).then(null,e=>{throw s=null,e}),s}},9896:e=>{"use strict";e.exports=require("fs")}},n={};function t(r){var o=n[r];if(void 0!==o)return o.exports;var s=n[r]={exports:{}};return e[r](s,s.exports,t),s.exports}var r,o={};(r=o).SourceMapGenerator=t(4041).SourceMapGenerator,r.SourceMapConsumer=t(7446).SourceMapConsumer,r.SourceNode=t(1683).SourceNode,module.exports=o})(); \ No newline at end of file diff --git a/packages/node_modules/tlhunter-sorted-set.js b/packages/node_modules/tlhunter-sorted-set.js new file mode 100644 index 00000000000..ff2831b728c --- /dev/null +++ b/packages/node_modules/tlhunter-sorted-set.js @@ -0,0 +1 @@ +(()=>{var e={234:(e,t,n)=>{"use strict";const r=n(7647),l=Array.prototype.slice,i=1/Math.E;class h{constructor(e={}){this._unique=!!e.unique,this.empty()}static intersect(){return r.call(h,l.call(arguments))}add(e,t){let n;if(null==t)return this.rem(e);if(n=this._map.get(e),void 0!==n){if(t===n)return n;this._remove(e,n)}if(!this._insert(e,t))throw void 0===n||this._insert(e,n),new Error("unique constraint violated");return this._map.set(e,t),void 0===n?null:n}card(){return this.length?this.length:0}count(e,t){if(!this.length)return 0;if(null==e&&(e=-1/0),null==t&&(t=1/0),e<=this._head.next[0].next.value&&t>=this._tail.value)return this.length;if(tthis._tail.value||t=0;n-=1)for(;r.next[n].next&&r.next[n].next.value<=t;)l+=r.next[n].span,r=r.next[n].next;return l&&l+1}del(e){return this.rem(e)}empty(){this.length=0,this._level=1,this._map=new Map,this._head=new u(32,null,0),this._tail=null;for(let e=0;e<32;e+=1)this._head.next[e]=new s(null,0)}get(e){return this.score(e)}has(e){return this._map.has(e)}incrBy(e,t){let n=this.score(t);return n?(this.add(t,n+e),n+e):(this.add(t,e),e)}intersect(){let e=l.call(arguments);return e.unshift(this),r.call(this,e)}intersectKeys(){let e=l.call(arguments);return e.unshift(this),intersectKeys.call(this,e)}keys(){if(!this.length)return[];let e,t=new Array(this.length),n=this._head.next[0].next;for(e=0;n;n=n.next[0].next)t[e]=n.key,e+=1;return t}range(e,t,n){if(0===this.length)return[];if(null==e?e=0:e<0&&(e=Math.max(this.length+e,0)),null==t?t=this.length-1:t<0&&(t=this.length+t),e>t||e>=this.length)return[];t>=this.length&&(t=this.length-1),"object"!=typeof n&&(n={withScores:!1});let r,l=0,i=t-e+1;try{r=new Array(i)}catch(n){throw console.log("start",e),console.log("stop",t),console.log("Invalid length",i),n}let h=e>0?this._get(e):this._head.next[0].next;if(n.withScores)for(;i--;h=h.next[0].next)r[l]=[h.key,h.value],l+=1;else for(;i--;h=h.next[0].next)r[l]=h.key,l+=1;return r}rangeByScore(e,t,n){if(!this.length)return[];if("object"!=typeof n&&(n={withScores:!1}),null==e&&(e=-1/0),null==t&&(t=1/0),e<=this._head.next[0].next.value&&t>=this._tail.value)return this.toArray({withScores:n.withScores});if(tthis._tail.value||t=0;t-=1){for(;(l=r.next[t].next)&&(l.valuet||e>=n)return 0;if(t>n&&(t=n),0===e&&t===n)return this.empty(),n;let r,l,i=this._head,h=new Array(32),s=-1;for(r=this._level-1;r>=0;r-=1){for(;(l=i.next[r].next)&&s+i.next[r].span=this._tail.value)return l=this.length,this.empty(),l;let i=this._head,h=new Array(32);for(r=this._level-1;r>=0;r-=1){for(;(n=i.next[r].next)&&n.value=0;r-=1)for(;(n=t.next[r].next)&&n.value=0;t-=1){for(;n.next[t].next&&r+n.next[t].span<=e;)r+=n.next[t].span,n=n.next[t].next;if(r===e)return n}return null}_insert(e,t){let n,r=new Array(32),l=new Array(32),h=this._head,a=null;for(n=this._level-1;n>=0;n-=1){for(l[n]=n===this._level-1?0:l[n+1];(a=h.next[n].next)&&a.value<=t;){if(a.value===t){if(this._unique)return null;if(a.key>=e)break}l[n]+=h.next[n].span,h=a}if(this._unique&&h.value===t)return null;r[n]=h}if(this._unique&&h.value===t)return null;let x=function(){let e=1;for(;Math.random()this._level){for(n=this._level;n=0;r-=1){for(;(n=t.next[r].next)&&n.value=0;n-=1){for(;(r=i.next[n].next)&&(r.value1&&!this._head.next[this._level-1].next;)this._level-=1}}function s(e,t){this.next=e,this.span=t}function u(e,t,n){this.key=t,this.value=n,this.next=new Array(e),this.prev=null}e.exports=h},7647:e=>{e.exports=function(e){let t,n,r,l,i,h,s;if(!e.length)return[];for(i=e.length-1;i>=0;i--){if(!e[i].length)return[];e[i]=e[i]._head.next[0].next}if(1===e.length)return e[0].toArray({field:"key"});if(2===e.length)return function(e,t){let n=Object.create(null),r=[];for(;e;e=e.next[0].next)n[e.key]=!0;for(;t;t=t.next[0].next)n[t.key]&&r.push(t.key);return r}(e[0],e[1]);if(3===e.length)return function(e,t,n){let r=Object.create(null),l=[];for(;e;e=e.next[0].next)r[e.key]=0;for(;t;t=t.next[0].next)0===r[t.key]&&(r[t.key]=1);for(;n;n=n.next[0].next)1===r[n.key]&&l.push(n.key);return l}(e[0],e[1],e[2]);for(r=Object.create(null),n=e.shift();n;n=n.next[0].next)r[n.key]=0;for(i=0,s=e.length-1;i{var t={2782:(t,i,s)=>{"use strict";const e=s(6080);t.exports=class{constructor(t){this._ttl=t,this._list=new e,this._index=new Set,this._timer=null}add(t){this._index.add(t),this._list.push([Date.now(),t]),null===this._timer&&(this._timer=setTimeout(this._prune.bind(this),this._ttl).unref())}clear(){this._list.clear(),this._index.clear(),clearTimeout(this._timer),this._timer=null}has(t){return this._index.has(t)}get size(){return this._index.size}_prune(){for(;;){const t=this._list.peek();if(void 0===t)return void(this._timer=null);if(t[0]>Date.now()-this._ttl)break;const i=this._list.shift();this._index.delete(i[1])}this._timer=setTimeout(this._prune.bind(this),Date.now()-this._list.peek()[0]).unref()}}},6080:(t,i,s)=>{const e=s(8190);t.exports=class{constructor(t){this.hwm=t||16,this.head=new e(this.hwm),this.tail=this.head,this.length=0}clear(){this.head=this.tail,this.head.clear(),this.length=0}push(t){if(this.length++,!this.head.push(t)){const i=this.head;this.head=i.next=new e(2*this.head.buffer.length),this.head.push(t)}}shift(){0!==this.length&&this.length--;const t=this.tail.shift();if(void 0===t&&this.tail.next){const t=this.tail.next;return this.tail.next=null,this.tail=t,this.tail.shift()}return t}peek(){const t=this.tail.peek();return void 0===t&&this.tail.next?this.tail.next.peek():t}isEmpty(){return 0===this.length}}},8190:t=>{t.exports=class{constructor(t){if(!(t>0)||t-1&t)throw new Error("Max size for a FixedFIFO should be a power of two");this.buffer=new Array(t),this.mask=t-1,this.top=0,this.btm=0,this.next=null}clear(){this.top=this.btm=0,this.next=null,this.buffer.fill(void 0)}push(t){return void 0===this.buffer[this.top]&&(this.buffer[this.top]=t,this.top=this.top+1&this.mask,!0)}shift(){const t=this.buffer[this.btm];if(void 0!==t)return this.buffer[this.btm]=void 0,this.btm=this.btm+1&this.mask,t}peek(){return this.buffer[this.btm]}isEmpty(){return void 0===this.buffer[this.btm]}}}},i={},s=function s(e){var h=i[e];if(void 0!==h)return h.exports;var r=i[e]={exports:{}};return t[e](r,r.exports,s),r.exports}(2782);module.exports=s})(); \ No newline at end of file diff --git a/vendor/bun.lock b/vendor/bun.lock new file mode 100644 index 00000000000..42d24201f6a --- /dev/null +++ b/vendor/bun.lock @@ -0,0 +1,381 @@ +{ + "lockfileVersion": 1, + "configVersion": 1, + "workspaces": { + "": { + "name": "dd-trace", + "dependencies": { + "@isaacs/ttlcache": "^2.0.1", + "@opentelemetry/api": ">=1.0.0 <1.10.0", + "@opentelemetry/api-logs": "<1.0.0", + "@opentelemetry/core": ">=1.14.0 <1.31.0", + "@opentelemetry/resources": ">=1.0.0 <1.31.0", + "crypto-randomuuid": "^1.0.0", + "dc-polyfill": "^0.1.10", + "escape-string-regexp": "^5.0.0", + "ignore": "^7.0.5", + "import-in-the-middle": "^1.14.2", + "istanbul-lib-coverage": "^3.2.2", + "jest-docblock": "^29.7.0", + "jsonpath-plus": "^10.3.0", + "limiter": "^1.1.5", + "lodash.sortby": "^4.7.0", + "lru-cache": "^10.4.3", + "module-details-from-path": "^1.0.4", + "mutexify": "^1.4.0", + "opentracing": ">=0.14.7", + "path-to-regexp": "^0.1.12", + "pprof-format": "^2.1.1", + "protobufjs": "^7.5.3", + "retry": "^0.13.1", + "rfdc": "^1.4.1", + "semifies": "^1.0.0", + "shell-quote": "^1.8.2", + "source-map": "^0.7.4", + "tlhunter-sorted-set": "^0.1.0", + "ttl-set": "^1.0.0", + }, + "devDependencies": { + "webpack": "^5.103.0", + "webpack-cli": "^6.0.1", + }, + }, + }, + "packages": { + "@discoveryjs/json-ext": ["@discoveryjs/json-ext@0.6.3", "", {}, "sha512-4B4OijXeVNOPZlYA2oEwWOTkzyltLao+xbotHQeqN++Rv27Y6s818+n2Qkp8q+Fxhn0t/5lA5X1Mxktud8eayQ=="], + + "@isaacs/ttlcache": ["@isaacs/ttlcache@2.1.2", "", {}, "sha512-lmG2ZHXBo7tgF1I3vGvBMnUJYhaNE25fmx+tUfotvE3vsARzxiiDXmCBI6Ch8qEHeHmfunr+eVPgIaIc8xIkbg=="], + + "@jridgewell/gen-mapping": ["@jridgewell/gen-mapping@0.3.13", "", { "dependencies": { "@jridgewell/sourcemap-codec": "^1.5.0", "@jridgewell/trace-mapping": "^0.3.24" } }, "sha512-2kkt/7niJ6MgEPxF0bYdQ6etZaA+fQvDcLKckhy1yIQOzaoKjBBjSj63/aLVjYE3qhRt5dvM+uUyfCg6UKCBbA=="], + + "@jridgewell/resolve-uri": ["@jridgewell/resolve-uri@3.1.2", "", {}, "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw=="], + + "@jridgewell/source-map": ["@jridgewell/source-map@0.3.11", "", { "dependencies": { "@jridgewell/gen-mapping": "^0.3.5", "@jridgewell/trace-mapping": "^0.3.25" } }, "sha512-ZMp1V8ZFcPG5dIWnQLr3NSI1MiCU7UETdS/A0G8V/XWHvJv3ZsFqutJn1Y5RPmAPX6F3BiE397OqveU/9NCuIA=="], + + "@jridgewell/sourcemap-codec": ["@jridgewell/sourcemap-codec@1.5.5", "", {}, "sha512-cYQ9310grqxueWbl+WuIUIaiUaDcj7WOq5fVhEljNVgRfOUhY9fy2zTvfoqWsnebh8Sl70VScFbICvJnLKB0Og=="], + + "@jridgewell/trace-mapping": ["@jridgewell/trace-mapping@0.3.31", "", { "dependencies": { "@jridgewell/resolve-uri": "^3.1.0", "@jridgewell/sourcemap-codec": "^1.4.14" } }, "sha512-zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw=="], + + "@jsep-plugin/assignment": ["@jsep-plugin/assignment@1.3.0", "", { "peerDependencies": { "jsep": "^0.4.0||^1.0.0" } }, "sha512-VVgV+CXrhbMI3aSusQyclHkenWSAm95WaiKrMxRFam3JSUiIaQjoMIw2sEs/OX4XifnqeQUN4DYbJjlA8EfktQ=="], + + "@jsep-plugin/regex": ["@jsep-plugin/regex@1.0.4", "", { "peerDependencies": { "jsep": "^0.4.0||^1.0.0" } }, "sha512-q7qL4Mgjs1vByCaTnDFcBnV9HS7GVPJX5vyVoCgZHNSC9rjwIlmbXG5sUuorR5ndfHAIlJ8pVStxvjXHbNvtUg=="], + + "@opentelemetry/api": ["@opentelemetry/api@1.9.0", "", {}, "sha512-3giAOQvZiH5F9bMlMiv8+GSPMeqg0dbaeo58/0SlA9sxSqZhnUtxzX9/2FzyhS9sWQf5S0GJE0AKBrFqjpeYcg=="], + + "@opentelemetry/api-logs": ["@opentelemetry/api-logs@0.208.0", "", { "dependencies": { "@opentelemetry/api": "^1.3.0" } }, "sha512-CjruKY9V6NMssL/T1kAFgzosF1v9o6oeN+aX5JB/C/xPNtmgIJqcXHG7fA82Ou1zCpWGl4lROQUKwUNE1pMCyg=="], + + "@opentelemetry/core": ["@opentelemetry/core@1.30.1", "", { "dependencies": { "@opentelemetry/semantic-conventions": "1.28.0" }, "peerDependencies": { "@opentelemetry/api": ">=1.0.0 <1.10.0" } }, "sha512-OOCM2C/QIURhJMuKaekP3TRBxBKxG/TWWA0TL2J6nXUtDnuCtccy49LUJF8xPFXMX+0LMcxFpCo8M9cGY1W6rQ=="], + + "@opentelemetry/resources": ["@opentelemetry/resources@1.30.1", "", { "dependencies": { "@opentelemetry/core": "1.30.1", "@opentelemetry/semantic-conventions": "1.28.0" }, "peerDependencies": { "@opentelemetry/api": ">=1.0.0 <1.10.0" } }, "sha512-5UxZqiAgLYGFjS4s9qm5mBVo433u+dSPUFWVWXmLAD4wB65oMCoXaJP1KJa9DIYYMeHu3z4BZcStG3LC593cWA=="], + + "@opentelemetry/semantic-conventions": ["@opentelemetry/semantic-conventions@1.28.0", "", {}, "sha512-lp4qAiMTD4sNWW4DbKLBkfiMZ4jbAboJIGOQr5DvciMRI494OapieI9qiODpOt0XBr1LjIDy1xAGAnVs5supTA=="], + + "@protobufjs/aspromise": ["@protobufjs/aspromise@1.1.2", "", {}, "sha512-j+gKExEuLmKwvz3OgROXtrJ2UG2x8Ch2YZUxahh+s1F2HZ+wAceUNLkvy6zKCPVRkU++ZWQrdxsUeQXmcg4uoQ=="], + + "@protobufjs/base64": ["@protobufjs/base64@1.1.2", "", {}, "sha512-AZkcAA5vnN/v4PDqKyMR5lx7hZttPDgClv83E//FMNhR2TMcLUhfRUBHCmSl0oi9zMgDDqRUJkSxO3wm85+XLg=="], + + "@protobufjs/codegen": ["@protobufjs/codegen@2.0.4", "", {}, "sha512-YyFaikqM5sH0ziFZCN3xDC7zeGaB/d0IUb9CATugHWbd1FRFwWwt4ld4OYMPWu5a3Xe01mGAULCdqhMlPl29Jg=="], + + "@protobufjs/eventemitter": ["@protobufjs/eventemitter@1.1.0", "", {}, "sha512-j9ednRT81vYJ9OfVuXG6ERSTdEL1xVsNgqpkxMsbIabzSo3goCjDIveeGv5d03om39ML71RdmrGNjG5SReBP/Q=="], + + "@protobufjs/fetch": ["@protobufjs/fetch@1.1.0", "", { "dependencies": { "@protobufjs/aspromise": "^1.1.1", "@protobufjs/inquire": "^1.1.0" } }, "sha512-lljVXpqXebpsijW71PZaCYeIcE5on1w5DlQy5WH6GLbFryLUrBD4932W/E2BSpfRJWseIL4v/KPgBFxDOIdKpQ=="], + + "@protobufjs/float": ["@protobufjs/float@1.0.2", "", {}, "sha512-Ddb+kVXlXst9d+R9PfTIxh1EdNkgoRe5tOX6t01f1lYWOvJnSPDBlG241QLzcyPdoNTsblLUdujGSE4RzrTZGQ=="], + + "@protobufjs/inquire": ["@protobufjs/inquire@1.1.0", "", {}, "sha512-kdSefcPdruJiFMVSbn801t4vFK7KB/5gd2fYvrxhuJYg8ILrmn9SKSX2tZdV6V+ksulWqS7aXjBcRXl3wHoD9Q=="], + + "@protobufjs/path": ["@protobufjs/path@1.1.2", "", {}, "sha512-6JOcJ5Tm08dOHAbdR3GrvP+yUUfkjG5ePsHYczMFLq3ZmMkAD98cDgcT2iA1lJ9NVwFd4tH/iSSoe44YWkltEA=="], + + "@protobufjs/pool": ["@protobufjs/pool@1.1.0", "", {}, "sha512-0kELaGSIDBKvcgS4zkjz1PeddatrjYcmMWOlAuAPwAeccUrPHdUqo/J6LiymHHEiJT5NrF1UVwxY14f+fy4WQw=="], + + "@protobufjs/utf8": ["@protobufjs/utf8@1.1.0", "", {}, "sha512-Vvn3zZrhQZkkBE8LSuW3em98c0FwgO4nxzv6OdSxPKJIEKY2bGbHn+mhGIPerzI4twdxaP8/0+06HBpwf345Lw=="], + + "@types/eslint": ["@types/eslint@9.6.1", "", { "dependencies": { "@types/estree": "*", "@types/json-schema": "*" } }, "sha512-FXx2pKgId/WyYo2jXw63kk7/+TY7u7AziEJxJAnSFzHlqTAS3Ync6SvgYAN/k4/PQpnnVuzoMuVnByKK2qp0ag=="], + + "@types/eslint-scope": ["@types/eslint-scope@3.7.7", "", { "dependencies": { "@types/eslint": "*", "@types/estree": "*" } }, "sha512-MzMFlSLBqNF2gcHWO0G1vP/YQyfvrxZ0bF+u7mzUdZ1/xK4A4sru+nraZz5i3iEIk1l1uyicaDVTB4QbbEkAYg=="], + + "@types/estree": ["@types/estree@1.0.8", "", {}, "sha512-dWHzHa2WqEXI/O1E9OjrocMTKJl2mSrEolh1Iomrv6U+JuNwaHXsXx9bLu5gG7BUWFIN0skIQJQ/L1rIex4X6w=="], + + "@types/json-schema": ["@types/json-schema@7.0.15", "", {}, "sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA=="], + + "@types/node": ["@types/node@24.10.1", "", { "dependencies": { "undici-types": "~7.16.0" } }, "sha512-GNWcUTRBgIRJD5zj+Tq0fKOJ5XZajIiBroOF0yvj2bSU1WvNdYS/dn9UxwsujGW4JX06dnHyjV2y9rRaybH0iQ=="], + + "@webassemblyjs/ast": ["@webassemblyjs/ast@1.14.1", "", { "dependencies": { "@webassemblyjs/helper-numbers": "1.13.2", "@webassemblyjs/helper-wasm-bytecode": "1.13.2" } }, "sha512-nuBEDgQfm1ccRp/8bCQrx1frohyufl4JlbMMZ4P1wpeOfDhF6FQkxZJ1b/e+PLwr6X1Nhw6OLme5usuBWYBvuQ=="], + + "@webassemblyjs/floating-point-hex-parser": ["@webassemblyjs/floating-point-hex-parser@1.13.2", "", {}, "sha512-6oXyTOzbKxGH4steLbLNOu71Oj+C8Lg34n6CqRvqfS2O71BxY6ByfMDRhBytzknj9yGUPVJ1qIKhRlAwO1AovA=="], + + "@webassemblyjs/helper-api-error": ["@webassemblyjs/helper-api-error@1.13.2", "", {}, "sha512-U56GMYxy4ZQCbDZd6JuvvNV/WFildOjsaWD3Tzzvmw/mas3cXzRJPMjP83JqEsgSbyrmaGjBfDtV7KDXV9UzFQ=="], + + "@webassemblyjs/helper-buffer": ["@webassemblyjs/helper-buffer@1.14.1", "", {}, "sha512-jyH7wtcHiKssDtFPRB+iQdxlDf96m0E39yb0k5uJVhFGleZFoNw1c4aeIcVUPPbXUVJ94wwnMOAqUHyzoEPVMA=="], + + "@webassemblyjs/helper-numbers": ["@webassemblyjs/helper-numbers@1.13.2", "", { "dependencies": { "@webassemblyjs/floating-point-hex-parser": "1.13.2", "@webassemblyjs/helper-api-error": "1.13.2", "@xtuc/long": "4.2.2" } }, "sha512-FE8aCmS5Q6eQYcV3gI35O4J789wlQA+7JrqTTpJqn5emA4U2hvwJmvFRC0HODS+3Ye6WioDklgd6scJ3+PLnEA=="], + + "@webassemblyjs/helper-wasm-bytecode": ["@webassemblyjs/helper-wasm-bytecode@1.13.2", "", {}, "sha512-3QbLKy93F0EAIXLh0ogEVR6rOubA9AoZ+WRYhNbFyuB70j3dRdwH9g+qXhLAO0kiYGlg3TxDV+I4rQTr/YNXkA=="], + + "@webassemblyjs/helper-wasm-section": ["@webassemblyjs/helper-wasm-section@1.14.1", "", { "dependencies": { "@webassemblyjs/ast": "1.14.1", "@webassemblyjs/helper-buffer": "1.14.1", "@webassemblyjs/helper-wasm-bytecode": "1.13.2", "@webassemblyjs/wasm-gen": "1.14.1" } }, "sha512-ds5mXEqTJ6oxRoqjhWDU83OgzAYjwsCV8Lo/N+oRsNDmx/ZDpqalmrtgOMkHwxsG0iI//3BwWAErYRHtgn0dZw=="], + + "@webassemblyjs/ieee754": ["@webassemblyjs/ieee754@1.13.2", "", { "dependencies": { "@xtuc/ieee754": "^1.2.0" } }, "sha512-4LtOzh58S/5lX4ITKxnAK2USuNEvpdVV9AlgGQb8rJDHaLeHciwG4zlGr0j/SNWlr7x3vO1lDEsuePvtcDNCkw=="], + + "@webassemblyjs/leb128": ["@webassemblyjs/leb128@1.13.2", "", { "dependencies": { "@xtuc/long": "4.2.2" } }, "sha512-Lde1oNoIdzVzdkNEAWZ1dZ5orIbff80YPdHx20mrHwHrVNNTjNr8E3xz9BdpcGqRQbAEa+fkrCb+fRFTl/6sQw=="], + + "@webassemblyjs/utf8": ["@webassemblyjs/utf8@1.13.2", "", {}, "sha512-3NQWGjKTASY1xV5m7Hr0iPeXD9+RDobLll3T9d2AO+g3my8xy5peVyjSag4I50mR1bBSN/Ct12lo+R9tJk0NZQ=="], + + "@webassemblyjs/wasm-edit": ["@webassemblyjs/wasm-edit@1.14.1", "", { "dependencies": { "@webassemblyjs/ast": "1.14.1", "@webassemblyjs/helper-buffer": "1.14.1", "@webassemblyjs/helper-wasm-bytecode": "1.13.2", "@webassemblyjs/helper-wasm-section": "1.14.1", "@webassemblyjs/wasm-gen": "1.14.1", "@webassemblyjs/wasm-opt": "1.14.1", "@webassemblyjs/wasm-parser": "1.14.1", "@webassemblyjs/wast-printer": "1.14.1" } }, "sha512-RNJUIQH/J8iA/1NzlE4N7KtyZNHi3w7at7hDjvRNm5rcUXa00z1vRz3glZoULfJ5mpvYhLybmVcwcjGrC1pRrQ=="], + + "@webassemblyjs/wasm-gen": ["@webassemblyjs/wasm-gen@1.14.1", "", { "dependencies": { "@webassemblyjs/ast": "1.14.1", "@webassemblyjs/helper-wasm-bytecode": "1.13.2", "@webassemblyjs/ieee754": "1.13.2", "@webassemblyjs/leb128": "1.13.2", "@webassemblyjs/utf8": "1.13.2" } }, "sha512-AmomSIjP8ZbfGQhumkNvgC33AY7qtMCXnN6bL2u2Js4gVCg8fp735aEiMSBbDR7UQIj90n4wKAFUSEd0QN2Ukg=="], + + "@webassemblyjs/wasm-opt": ["@webassemblyjs/wasm-opt@1.14.1", "", { "dependencies": { "@webassemblyjs/ast": "1.14.1", "@webassemblyjs/helper-buffer": "1.14.1", "@webassemblyjs/wasm-gen": "1.14.1", "@webassemblyjs/wasm-parser": "1.14.1" } }, "sha512-PTcKLUNvBqnY2U6E5bdOQcSM+oVP/PmrDY9NzowJjislEjwP/C4an2303MCVS2Mg9d3AJpIGdUFIQQWbPds0Sw=="], + + "@webassemblyjs/wasm-parser": ["@webassemblyjs/wasm-parser@1.14.1", "", { "dependencies": { "@webassemblyjs/ast": "1.14.1", "@webassemblyjs/helper-api-error": "1.13.2", "@webassemblyjs/helper-wasm-bytecode": "1.13.2", "@webassemblyjs/ieee754": "1.13.2", "@webassemblyjs/leb128": "1.13.2", "@webassemblyjs/utf8": "1.13.2" } }, "sha512-JLBl+KZ0R5qB7mCnud/yyX08jWFw5MsoalJ1pQ4EdFlgj9VdXKGuENGsiCIjegI1W7p91rUlcB/LB5yRJKNTcQ=="], + + "@webassemblyjs/wast-printer": ["@webassemblyjs/wast-printer@1.14.1", "", { "dependencies": { "@webassemblyjs/ast": "1.14.1", "@xtuc/long": "4.2.2" } }, "sha512-kPSSXE6De1XOR820C90RIo2ogvZG+c3KiHzqUoO/F34Y2shGzesfqv7o57xrxovZJH/MetF5UjroJ/R/3isoiw=="], + + "@webpack-cli/configtest": ["@webpack-cli/configtest@3.0.1", "", { "peerDependencies": { "webpack": "^5.82.0", "webpack-cli": "6.x.x" } }, "sha512-u8d0pJ5YFgneF/GuvEiDA61Tf1VDomHHYMjv/wc9XzYj7nopltpG96nXN5dJRstxZhcNpV1g+nT6CydO7pHbjA=="], + + "@webpack-cli/info": ["@webpack-cli/info@3.0.1", "", { "peerDependencies": { "webpack": "^5.82.0", "webpack-cli": "6.x.x" } }, "sha512-coEmDzc2u/ffMvuW9aCjoRzNSPDl/XLuhPdlFRpT9tZHmJ/039az33CE7uH+8s0uL1j5ZNtfdv0HkfaKRBGJsQ=="], + + "@webpack-cli/serve": ["@webpack-cli/serve@3.0.1", "", { "peerDependencies": { "webpack": "^5.82.0", "webpack-cli": "6.x.x" } }, "sha512-sbgw03xQaCLiT6gcY/6u3qBDn01CWw/nbaXl3gTdTFuJJ75Gffv3E3DBpgvY2fkkrdS1fpjaXNOmJlnbtKauKg=="], + + "@xtuc/ieee754": ["@xtuc/ieee754@1.2.0", "", {}, "sha512-DX8nKgqcGwsc0eJSqYt5lwP4DH5FlHnmuWWBRy7X0NcaGR0ZtuyeESgMwTYVEtxmsNGY+qit4QYT/MIYTOTPeA=="], + + "@xtuc/long": ["@xtuc/long@4.2.2", "", {}, "sha512-NuHqBY1PB/D8xU6s/thBgOAiAP7HOYDQ32+BFZILJ8ivkUkAHQnWfn6WhL79Owj1qmUnoN/YPhktdIoucipkAQ=="], + + "acorn": ["acorn@8.15.0", "", { "bin": { "acorn": "bin/acorn" } }, "sha512-NZyJarBfL7nWwIq+FDL6Zp/yHEhePMNnnJ0y3qfieCrmNvYct8uvtiV41UvlSe6apAfk0fY1FbWx+NwfmpvtTg=="], + + "acorn-import-attributes": ["acorn-import-attributes@1.9.5", "", { "peerDependencies": { "acorn": "^8" } }, "sha512-n02Vykv5uA3eHGM/Z2dQrcD56kL8TyDb2p1+0P83PClMnC/nc+anbQRhIOWnSq4Ke/KvDPrY3C9hDtC/A3eHnQ=="], + + "acorn-import-phases": ["acorn-import-phases@1.0.4", "", { "peerDependencies": { "acorn": "^8.14.0" } }, "sha512-wKmbr/DDiIXzEOiWrTTUcDm24kQ2vGfZQvM2fwg2vXqR5uW6aapr7ObPtj1th32b9u90/Pf4AItvdTh42fBmVQ=="], + + "ajv": ["ajv@8.17.1", "", { "dependencies": { "fast-deep-equal": "^3.1.3", "fast-uri": "^3.0.1", "json-schema-traverse": "^1.0.0", "require-from-string": "^2.0.2" } }, "sha512-B/gBuNg5SiMTrPkC+A2+cW0RszwxYmn6VYxB/inlBStS5nx6xHIt/ehKRhIMhqusl7a8LjQoZnjCs5vhwxOQ1g=="], + + "ajv-formats": ["ajv-formats@2.1.1", "", { "dependencies": { "ajv": "^8.0.0" } }, "sha512-Wx0Kx52hxE7C18hkMEggYlEifqWZtYaRgouJor+WMdPnQyEK13vgEWyVNup7SoeeoLMsr4kf5h6dOW11I15MUA=="], + + "ajv-keywords": ["ajv-keywords@5.1.0", "", { "dependencies": { "fast-deep-equal": "^3.1.3" }, "peerDependencies": { "ajv": "^8.8.2" } }, "sha512-YCS/JNFAUyr5vAuhk1DWm1CBxRHW9LbJ2ozWeemrIqpbsqKjHVxYPyi5GC0rjZIT5JxJ3virVTS8wk4i/Z+krw=="], + + "baseline-browser-mapping": ["baseline-browser-mapping@2.8.30", "", { "bin": { "baseline-browser-mapping": "dist/cli.js" } }, "sha512-aTUKW4ptQhS64+v2d6IkPzymEzzhw+G0bA1g3uBRV3+ntkH+svttKseW5IOR4Ed6NUVKqnY7qT3dKvzQ7io4AA=="], + + "browserslist": ["browserslist@4.28.0", "", { "dependencies": { "baseline-browser-mapping": "^2.8.25", "caniuse-lite": "^1.0.30001754", "electron-to-chromium": "^1.5.249", "node-releases": "^2.0.27", "update-browserslist-db": "^1.1.4" }, "bin": { "browserslist": "cli.js" } }, "sha512-tbydkR/CxfMwelN0vwdP/pLkDwyAASZ+VfWm4EOwlB6SWhx1sYnWLqo8N5j0rAzPfzfRaxt0mM/4wPU/Su84RQ=="], + + "buffer-from": ["buffer-from@1.1.2", "", {}, "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ=="], + + "caniuse-lite": ["caniuse-lite@1.0.30001756", "", {}, "sha512-4HnCNKbMLkLdhJz3TToeVWHSnfJvPaq6vu/eRP0Ahub/07n484XHhBF5AJoSGHdVrS8tKFauUQz8Bp9P7LVx7A=="], + + "chrome-trace-event": ["chrome-trace-event@1.0.4", "", {}, "sha512-rNjApaLzuwaOTjCiT8lSDdGN1APCiqkChLMJxJPWLunPAt5fy8xgU9/jNOchV84wfIxrA0lRQB7oCT8jrn/wrQ=="], + + "cjs-module-lexer": ["cjs-module-lexer@1.4.3", "", {}, "sha512-9z8TZaGM1pfswYeXrUpzPrkx8UnWYdhJclsiYMm6x/w5+nN+8Tf/LnAgfLGQCm59qAOxU8WwHEq2vNwF6i4j+Q=="], + + "clone-deep": ["clone-deep@4.0.1", "", { "dependencies": { "is-plain-object": "^2.0.4", "kind-of": "^6.0.2", "shallow-clone": "^3.0.0" } }, "sha512-neHB9xuzh/wk0dIHweyAXv2aPGZIVk3pLMe+/RNzINf17fe0OG96QroktYAUm7SM1PBnzTabaLboqqxDyMU+SQ=="], + + "colorette": ["colorette@2.0.20", "", {}, "sha512-IfEDxwoWIjkeXL1eXcDiow4UbKjhLdq6/EuSVR9GMN7KVH3r9gQ83e73hsz1Nd1T3ijd5xv1wcWRYO+D6kCI2w=="], + + "commander": ["commander@12.1.0", "", {}, "sha512-Vw8qHK3bZM9y/P10u3Vib8o/DdkvA2OtPtZvD871QKjy74Wj1WSKFILMPRPSdUSx5RFK1arlJzEtA4PkFgnbuA=="], + + "cross-spawn": ["cross-spawn@7.0.6", "", { "dependencies": { "path-key": "^3.1.0", "shebang-command": "^2.0.0", "which": "^2.0.1" } }, "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA=="], + + "crypto-randomuuid": ["crypto-randomuuid@1.0.0", "", {}, "sha512-/RC5F4l1SCqD/jazwUF6+t34Cd8zTSAGZ7rvvZu1whZUhD2a5MOGKjSGowoGcpj/cbVZk1ZODIooJEQQq3nNAA=="], + + "dc-polyfill": ["dc-polyfill@0.1.10", "", {}, "sha512-9iSbB8XZ7aIrhUtWI5ulEOJ+IyUN+axquodHK+bZO4r7HfY/xwmo6I4fYYf+aiDom+WMcN/wnzCz+pKvHDDCug=="], + + "detect-newline": ["detect-newline@3.1.0", "", {}, "sha512-TLz+x/vEXm/Y7P7wn1EJFNLxYpUD4TgMosxY6fAVJUnJMbupHBOncxyWUG9OpTaH9EBD7uFI5LfEgmMOc54DsA=="], + + "electron-to-chromium": ["electron-to-chromium@1.5.259", "", {}, "sha512-I+oLXgpEJzD6Cwuwt1gYjxsDmu/S/Kd41mmLA3O+/uH2pFRO/DvOjUyGozL8j3KeLV6WyZ7ssPwELMsXCcsJAQ=="], + + "enhanced-resolve": ["enhanced-resolve@5.18.3", "", { "dependencies": { "graceful-fs": "^4.2.4", "tapable": "^2.2.0" } }, "sha512-d4lC8xfavMeBjzGr2vECC3fsGXziXZQyJxD868h2M/mBI3PwAuODxAkLkq5HYuvrPYcUtiLzsTo8U3PgX3Ocww=="], + + "envinfo": ["envinfo@7.20.0", "", { "bin": { "envinfo": "dist/cli.js" } }, "sha512-+zUomDcLXsVkQ37vUqWBvQwLaLlj8eZPSi61llaEFAVBY5mhcXdaSw1pSJVl4yTYD5g/gEfpNl28YYk4IPvrrg=="], + + "es-module-lexer": ["es-module-lexer@1.7.0", "", {}, "sha512-jEQoCwk8hyb2AZziIOLhDqpm5+2ww5uIE6lkO/6jcOCusfk6LhMHpXXfBLXTZ7Ydyt0j4VoUQv6uGNYbdW+kBA=="], + + "escalade": ["escalade@3.2.0", "", {}, "sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA=="], + + "escape-string-regexp": ["escape-string-regexp@5.0.0", "", {}, "sha512-/veY75JbMK4j1yjvuUxuVsiS/hr/4iHs9FTT6cgTexxdE0Ly/glccBAkloH/DofkjRbZU3bnoj38mOmhkZ0lHw=="], + + "eslint-scope": ["eslint-scope@5.1.1", "", { "dependencies": { "esrecurse": "^4.3.0", "estraverse": "^4.1.1" } }, "sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw=="], + + "esrecurse": ["esrecurse@4.3.0", "", { "dependencies": { "estraverse": "^5.2.0" } }, "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag=="], + + "estraverse": ["estraverse@4.3.0", "", {}, "sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw=="], + + "events": ["events@3.3.0", "", {}, "sha512-mQw+2fkQbALzQ7V0MY0IqdnXNOeTtP4r0lN9z7AAawCXgqea7bDii20AYrIBrFd/Hx0M2Ocz6S111CaFkUcb0Q=="], + + "fast-deep-equal": ["fast-deep-equal@3.1.3", "", {}, "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q=="], + + "fast-fifo": ["fast-fifo@1.3.2", "", {}, "sha512-/d9sfos4yxzpwkDkuN7k2SqFKtYNmCTzgfEpz82x34IM9/zc8KGxQoXg1liNC/izpRM/MBdt44Nmx41ZWqk+FQ=="], + + "fast-uri": ["fast-uri@3.1.0", "", {}, "sha512-iPeeDKJSWf4IEOasVVrknXpaBV0IApz/gp7S2bb7Z4Lljbl2MGJRqInZiUrQwV16cpzw/D3S5j5Julj/gT52AA=="], + + "fastest-levenshtein": ["fastest-levenshtein@1.0.16", "", {}, "sha512-eRnCtTTtGZFpQCwhJiUOuxPQWRXVKYDn0b2PeHfXL6/Zi53SLAzAHfVhVWK2AryC/WH05kGfxhFIPvTF0SXQzg=="], + + "find-up": ["find-up@4.1.0", "", { "dependencies": { "locate-path": "^5.0.0", "path-exists": "^4.0.0" } }, "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw=="], + + "flat": ["flat@5.0.2", "", { "bin": { "flat": "cli.js" } }, "sha512-b6suED+5/3rTpUBdG1gupIl8MPFCAMA0QXwmljLhvCUKcUvdE4gWky9zpuGCcXHOsz4J9wPGNWq6OKpmIzz3hQ=="], + + "function-bind": ["function-bind@1.1.2", "", {}, "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA=="], + + "glob-to-regexp": ["glob-to-regexp@0.4.1", "", {}, "sha512-lkX1HJXwyMcprw/5YUZc2s7DrpAiHB21/V+E1rHUrVNokkvB6bqMzT0VfV6/86ZNabt1k14YOIaT7nDvOX3Iiw=="], + + "graceful-fs": ["graceful-fs@4.2.11", "", {}, "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ=="], + + "has-flag": ["has-flag@4.0.0", "", {}, "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ=="], + + "hasown": ["hasown@2.0.2", "", { "dependencies": { "function-bind": "^1.1.2" } }, "sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ=="], + + "ignore": ["ignore@7.0.5", "", {}, "sha512-Hs59xBNfUIunMFgWAbGX5cq6893IbWg4KnrjbYwX3tx0ztorVgTDA6B2sxf8ejHJ4wz8BqGUMYlnzNBer5NvGg=="], + + "import-in-the-middle": ["import-in-the-middle@1.15.0", "", { "dependencies": { "acorn": "^8.14.0", "acorn-import-attributes": "^1.9.5", "cjs-module-lexer": "^1.2.2", "module-details-from-path": "^1.0.3" } }, "sha512-bpQy+CrsRmYmoPMAE/0G33iwRqwW4ouqdRg8jgbH3aKuCtOc8lxgmYXg2dMM92CRiGP660EtBcymH/eVUpCSaA=="], + + "import-local": ["import-local@3.2.0", "", { "dependencies": { "pkg-dir": "^4.2.0", "resolve-cwd": "^3.0.0" }, "bin": { "import-local-fixture": "fixtures/cli.js" } }, "sha512-2SPlun1JUPWoM6t3F0dw0FkCF/jWY8kttcY4f599GLTSjh2OCuuhdTkJQsEcZzBqbXZGKMK2OqW1oZsjtf/gQA=="], + + "interpret": ["interpret@3.1.1", "", {}, "sha512-6xwYfHbajpoF0xLW+iwLkhwgvLoZDfjYfoFNu8ftMoXINzwuymNLd9u/KmwtdT2GbR+/Cz66otEGEVVUHX9QLQ=="], + + "is-core-module": ["is-core-module@2.16.1", "", { "dependencies": { "hasown": "^2.0.2" } }, "sha512-UfoeMA6fIJ8wTYFEUjelnaGI67v6+N7qXJEvQuIGa99l4xsCruSYOVSQ0uPANn4dAzm8lkYPaKLrrijLq7x23w=="], + + "is-plain-object": ["is-plain-object@2.0.4", "", { "dependencies": { "isobject": "^3.0.1" } }, "sha512-h5PpgXkWitc38BBMYawTYMWJHFZJVnBquFE57xFpjB8pJFiF6gZ+bU+WyI/yqXiFR5mdLsgYNaPe8uao6Uv9Og=="], + + "isexe": ["isexe@2.0.0", "", {}, "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw=="], + + "isobject": ["isobject@3.0.1", "", {}, "sha512-WhB9zCku7EGTj/HQQRz5aUQEUeoQZH2bWcltRErOpymJ4boYE6wL9Tbr23krRPSZ+C5zqNSrSw+Cc7sZZ4b7vg=="], + + "istanbul-lib-coverage": ["istanbul-lib-coverage@3.2.2", "", {}, "sha512-O8dpsF+r0WV/8MNRKfnmrtCWhuKjxrq2w+jpzBL5UZKTi2LeVWnWOmWRxFlesJONmc+wLAGvKQZEOanko0LFTg=="], + + "jest-docblock": ["jest-docblock@29.7.0", "", { "dependencies": { "detect-newline": "^3.0.0" } }, "sha512-q617Auw3A612guyaFgsbFeYpNP5t2aoUNLwBUbc/0kD1R4t9ixDbyFTHd1nok4epoVFpr7PmeWHrhvuV3XaJ4g=="], + + "jest-worker": ["jest-worker@27.5.1", "", { "dependencies": { "@types/node": "*", "merge-stream": "^2.0.0", "supports-color": "^8.0.0" } }, "sha512-7vuh85V5cdDofPyxn58nrPjBktZo0u9x1g8WtjQol+jZDaE+fhN+cIvTj11GndBnMnyfrUOG1sZQxCdjKh+DKg=="], + + "jsep": ["jsep@1.4.0", "", {}, "sha512-B7qPcEVE3NVkmSJbaYxvv4cHkVW7DQsZz13pUMrfS8z8Q/BuShN+gcTXrUlPiGqM2/t/EEaI030bpxMqY8gMlw=="], + + "json-parse-even-better-errors": ["json-parse-even-better-errors@2.3.1", "", {}, "sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w=="], + + "json-schema-traverse": ["json-schema-traverse@1.0.0", "", {}, "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug=="], + + "jsonpath-plus": ["jsonpath-plus@10.3.0", "", { "dependencies": { "@jsep-plugin/assignment": "^1.3.0", "@jsep-plugin/regex": "^1.0.4", "jsep": "^1.4.0" }, "bin": { "jsonpath": "bin/jsonpath-cli.js", "jsonpath-plus": "bin/jsonpath-cli.js" } }, "sha512-8TNmfeTCk2Le33A3vRRwtuworG/L5RrgMvdjhKZxvyShO+mBu2fP50OWUjRLNtvw344DdDarFh9buFAZs5ujeA=="], + + "kind-of": ["kind-of@6.0.3", "", {}, "sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw=="], + + "limiter": ["limiter@1.1.5", "", {}, "sha512-FWWMIEOxz3GwUI4Ts/IvgVy6LPvoMPgjMdQ185nN6psJyBJ4yOpzqm695/h5umdLJg2vW3GR5iG11MAkR2AzJA=="], + + "loader-runner": ["loader-runner@4.3.1", "", {}, "sha512-IWqP2SCPhyVFTBtRcgMHdzlf9ul25NwaFx4wCEH/KjAXuuHY4yNjvPXsBokp8jCB936PyWRaPKUNh8NvylLp2Q=="], + + "locate-path": ["locate-path@5.0.0", "", { "dependencies": { "p-locate": "^4.1.0" } }, "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g=="], + + "lodash.sortby": ["lodash.sortby@4.7.0", "", {}, "sha512-HDWXG8isMntAyRF5vZ7xKuEvOhT4AhlRt/3czTSjvGUxjYCBVRQY48ViDHyfYz9VIoBkW4TMGQNapx+l3RUwdA=="], + + "long": ["long@5.3.2", "", {}, "sha512-mNAgZ1GmyNhD7AuqnTG3/VQ26o760+ZYBPKjPvugO8+nLbYfX6TVpJPseBvopbdY+qpZ/lKUnmEc1LeZYS3QAA=="], + + "lru-cache": ["lru-cache@10.4.3", "", {}, "sha512-JNAzZcXrCt42VGLuYz0zfAzDfAvJWW6AfYlDBQyDV5DClI2m5sAmK+OIO7s59XfsRsWHp02jAJrRadPRGTt6SQ=="], + + "merge-stream": ["merge-stream@2.0.0", "", {}, "sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w=="], + + "mime-db": ["mime-db@1.52.0", "", {}, "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg=="], + + "mime-types": ["mime-types@2.1.35", "", { "dependencies": { "mime-db": "1.52.0" } }, "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw=="], + + "module-details-from-path": ["module-details-from-path@1.0.4", "", {}, "sha512-EGWKgxALGMgzvxYF1UyGTy0HXX/2vHLkw6+NvDKW2jypWbHpjQuj4UMcqQWXHERJhVGKikolT06G3bcKe4fi7w=="], + + "mutexify": ["mutexify@1.4.0", "", { "dependencies": { "queue-tick": "^1.0.0" } }, "sha512-pbYSsOrSB/AKN5h/WzzLRMFgZhClWccf2XIB4RSMC8JbquiB0e0/SH5AIfdQMdyHmYtv4seU7yV/TvAwPLJ1Yg=="], + + "neo-async": ["neo-async@2.6.2", "", {}, "sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw=="], + + "node-releases": ["node-releases@2.0.27", "", {}, "sha512-nmh3lCkYZ3grZvqcCH+fjmQ7X+H0OeZgP40OierEaAptX4XofMh5kwNbWh7lBduUzCcV/8kZ+NDLCwm2iorIlA=="], + + "opentracing": ["opentracing@0.14.7", "", {}, "sha512-vz9iS7MJ5+Bp1URw8Khvdyw1H/hGvzHWlKQ7eRrQojSCDL1/SrWfrY9QebLw97n2deyRtzHRC3MkQfVNUCo91Q=="], + + "p-limit": ["p-limit@2.3.0", "", { "dependencies": { "p-try": "^2.0.0" } }, "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w=="], + + "p-locate": ["p-locate@4.1.0", "", { "dependencies": { "p-limit": "^2.2.0" } }, "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A=="], + + "p-try": ["p-try@2.2.0", "", {}, "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ=="], + + "path-exists": ["path-exists@4.0.0", "", {}, "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w=="], + + "path-key": ["path-key@3.1.1", "", {}, "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q=="], + + "path-parse": ["path-parse@1.0.7", "", {}, "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw=="], + + "path-to-regexp": ["path-to-regexp@0.1.12", "", {}, "sha512-RA1GjUVMnvYFxuqovrEqZoxxW5NUZqbwKtYz/Tt7nXerk0LbLblQmrsgdeOxV5SFHf0UDggjS/bSeOZwt1pmEQ=="], + + "picocolors": ["picocolors@1.1.1", "", {}, "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA=="], + + "pkg-dir": ["pkg-dir@4.2.0", "", { "dependencies": { "find-up": "^4.0.0" } }, "sha512-HRDzbaKjC+AOWVXxAU/x54COGeIv9eb+6CkDSQoNTt4XyWoIJvuPsXizxu/Fr23EiekbtZwmh1IcIG/l/a10GQ=="], + + "pprof-format": ["pprof-format@2.2.1", "", {}, "sha512-p4tVN7iK19ccDqQv8heyobzUmbHyds4N2FI6aBMcXz6y99MglTWDxIyhFkNaLeEXs6IFUEzT0zya0icbSLLY0g=="], + + "protobufjs": ["protobufjs@7.5.4", "", { "dependencies": { "@protobufjs/aspromise": "^1.1.2", "@protobufjs/base64": "^1.1.2", "@protobufjs/codegen": "^2.0.4", "@protobufjs/eventemitter": "^1.1.0", "@protobufjs/fetch": "^1.1.0", "@protobufjs/float": "^1.0.2", "@protobufjs/inquire": "^1.1.0", "@protobufjs/path": "^1.1.2", "@protobufjs/pool": "^1.1.0", "@protobufjs/utf8": "^1.1.0", "@types/node": ">=13.7.0", "long": "^5.0.0" } }, "sha512-CvexbZtbov6jW2eXAvLukXjXUW1TzFaivC46BpWc/3BpcCysb5Vffu+B3XHMm8lVEuy2Mm4XGex8hBSg1yapPg=="], + + "queue-tick": ["queue-tick@1.0.1", "", {}, "sha512-kJt5qhMxoszgU/62PLP1CJytzd2NKetjSRnyuj31fDd3Rlcz3fzlFdFLD1SItunPwyqEOkca6GbV612BWfaBag=="], + + "randombytes": ["randombytes@2.1.0", "", { "dependencies": { "safe-buffer": "^5.1.0" } }, "sha512-vYl3iOX+4CKUWuxGi9Ukhie6fsqXqS9FE2Zaic4tNFD2N2QQaXOMFbuKK4QmDHC0JO6B1Zp41J0LpT0oR68amQ=="], + + "rechoir": ["rechoir@0.8.0", "", { "dependencies": { "resolve": "^1.20.0" } }, "sha512-/vxpCXddiX8NGfGO/mTafwjq4aFa/71pvamip0++IQk3zG8cbCj0fifNPrjjF1XMXUne91jL9OoxmdykoEtifQ=="], + + "require-from-string": ["require-from-string@2.0.2", "", {}, "sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw=="], + + "resolve": ["resolve@1.22.11", "", { "dependencies": { "is-core-module": "^2.16.1", "path-parse": "^1.0.7", "supports-preserve-symlinks-flag": "^1.0.0" }, "bin": { "resolve": "bin/resolve" } }, "sha512-RfqAvLnMl313r7c9oclB1HhUEAezcpLjz95wFH4LVuhk9JF/r22qmVP9AMmOU4vMX7Q8pN8jwNg/CSpdFnMjTQ=="], + + "resolve-cwd": ["resolve-cwd@3.0.0", "", { "dependencies": { "resolve-from": "^5.0.0" } }, "sha512-OrZaX2Mb+rJCpH/6CpSqt9xFVpN++x01XnN2ie9g6P5/3xelLAkXWVADpdz1IHD/KFfEXyE6V0U01OQ3UO2rEg=="], + + "resolve-from": ["resolve-from@5.0.0", "", {}, "sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw=="], + + "retry": ["retry@0.13.1", "", {}, "sha512-XQBQ3I8W1Cge0Seh+6gjj03LbmRFWuoszgK9ooCpwYIrhhoO80pfq4cUkU5DkknwfOfFteRwlZ56PYOGYyFWdg=="], + + "rfdc": ["rfdc@1.4.1", "", {}, "sha512-q1b3N5QkRUWUl7iyylaaj3kOpIT0N2i9MqIEQXP73GVsN9cw3fdx8X63cEmWhJGi2PPCF23Ijp7ktmd39rawIA=="], + + "safe-buffer": ["safe-buffer@5.2.1", "", {}, "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ=="], + + "schema-utils": ["schema-utils@4.3.3", "", { "dependencies": { "@types/json-schema": "^7.0.9", "ajv": "^8.9.0", "ajv-formats": "^2.1.1", "ajv-keywords": "^5.1.0" } }, "sha512-eflK8wEtyOE6+hsaRVPxvUKYCpRgzLqDTb8krvAsRIwOGlHoSgYLgBXoubGgLd2fT41/OUYdb48v4k4WWHQurA=="], + + "semifies": ["semifies@1.0.0", "", {}, "sha512-xXR3KGeoxTNWPD4aBvL5NUpMTT7WMANr3EWnaS190QVkY52lqqcVRD7Q05UVbBhiWDGWMlJEUam9m7uFFGVScw=="], + + "serialize-javascript": ["serialize-javascript@6.0.2", "", { "dependencies": { "randombytes": "^2.1.0" } }, "sha512-Saa1xPByTTq2gdeFZYLLo+RFE35NHZkAbqZeWNd3BpzppeVisAqpDjcp8dyf6uIvEqJRd46jemmyA4iFIeVk8g=="], + + "shallow-clone": ["shallow-clone@3.0.1", "", { "dependencies": { "kind-of": "^6.0.2" } }, "sha512-/6KqX+GVUdqPuPPd2LxDDxzX6CAbjJehAAOKlNpqqUpAqPM6HeL8f+o3a+JsyGjn2lv0WY8UsTgUJjU9Ok55NA=="], + + "shebang-command": ["shebang-command@2.0.0", "", { "dependencies": { "shebang-regex": "^3.0.0" } }, "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA=="], + + "shebang-regex": ["shebang-regex@3.0.0", "", {}, "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A=="], + + "shell-quote": ["shell-quote@1.8.3", "", {}, "sha512-ObmnIF4hXNg1BqhnHmgbDETF8dLPCggZWBjkQfhZpbszZnYur5DUljTcCHii5LC3J5E0yeO/1LIMyH+UvHQgyw=="], + + "source-map": ["source-map@0.7.6", "", {}, "sha512-i5uvt8C3ikiWeNZSVZNWcfZPItFQOsYTUAOkcUPGd8DqDy1uOUikjt5dG+uRlwyvR108Fb9DOd4GvXfT0N2/uQ=="], + + "source-map-support": ["source-map-support@0.5.21", "", { "dependencies": { "buffer-from": "^1.0.0", "source-map": "^0.6.0" } }, "sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w=="], + + "supports-color": ["supports-color@8.1.1", "", { "dependencies": { "has-flag": "^4.0.0" } }, "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q=="], + + "supports-preserve-symlinks-flag": ["supports-preserve-symlinks-flag@1.0.0", "", {}, "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w=="], + + "tapable": ["tapable@2.3.0", "", {}, "sha512-g9ljZiwki/LfxmQADO3dEY1CbpmXT5Hm2fJ+QaGKwSXUylMybePR7/67YW7jOrrvjEgL1Fmz5kzyAjWVWLlucg=="], + + "terser": ["terser@5.44.1", "", { "dependencies": { "@jridgewell/source-map": "^0.3.3", "acorn": "^8.15.0", "commander": "^2.20.0", "source-map-support": "~0.5.20" }, "bin": { "terser": "bin/terser" } }, "sha512-t/R3R/n0MSwnnazuPpPNVO60LX0SKL45pyl9YlvxIdkH0Of7D5qM2EVe+yASRIlY5pZ73nclYJfNANGWPwFDZw=="], + + "terser-webpack-plugin": ["terser-webpack-plugin@5.3.14", "", { "dependencies": { "@jridgewell/trace-mapping": "^0.3.25", "jest-worker": "^27.4.5", "schema-utils": "^4.3.0", "serialize-javascript": "^6.0.2", "terser": "^5.31.1" }, "peerDependencies": { "webpack": "^5.1.0" } }, "sha512-vkZjpUjb6OMS7dhV+tILUW6BhpDR7P2L/aQSAv+Uwk+m8KATX9EccViHTJR2qDtACKPIYndLGCyl3FMo+r2LMw=="], + + "tlhunter-sorted-set": ["tlhunter-sorted-set@0.1.0", "", {}, "sha512-eGYW4bjf1DtrHzUYxYfAcSytpOkA44zsr7G2n3PV7yOUR23vmkGe3LL4R+1jL9OsXtbsFOwe8XtbCrabeaEFnw=="], + + "ttl-set": ["ttl-set@1.0.0", "", { "dependencies": { "fast-fifo": "^1.3.2" } }, "sha512-2fuHn/UR+8Z9HK49r97+p2Ru1b5Eewg2QqPrU14BVCQ9QoyU3+vLLZk2WEiyZ9sgJh6W8G1cZr9I2NBLywAHrA=="], + + "undici-types": ["undici-types@7.16.0", "", {}, "sha512-Zz+aZWSj8LE6zoxD+xrjh4VfkIG8Ya6LvYkZqtUQGJPZjYl53ypCaUwWqo7eI0x66KBGeRo+mlBEkMSeSZ38Nw=="], + + "update-browserslist-db": ["update-browserslist-db@1.1.4", "", { "dependencies": { "escalade": "^3.2.0", "picocolors": "^1.1.1" }, "peerDependencies": { "browserslist": ">= 4.21.0" }, "bin": { "update-browserslist-db": "cli.js" } }, "sha512-q0SPT4xyU84saUX+tomz1WLkxUbuaJnR1xWt17M7fJtEJigJeWUNGUqrauFXsHnqev9y9JTRGwk13tFBuKby4A=="], + + "watchpack": ["watchpack@2.4.4", "", { "dependencies": { "glob-to-regexp": "^0.4.1", "graceful-fs": "^4.1.2" } }, "sha512-c5EGNOiyxxV5qmTtAB7rbiXxi1ooX1pQKMLX/MIabJjRA0SJBQOjKF+KSVfHkr9U1cADPon0mRiVe/riyaiDUA=="], + + "webpack": ["webpack@5.103.0", "", { "dependencies": { "@types/eslint-scope": "^3.7.7", "@types/estree": "^1.0.8", "@types/json-schema": "^7.0.15", "@webassemblyjs/ast": "^1.14.1", "@webassemblyjs/wasm-edit": "^1.14.1", "@webassemblyjs/wasm-parser": "^1.14.1", "acorn": "^8.15.0", "acorn-import-phases": "^1.0.3", "browserslist": "^4.26.3", "chrome-trace-event": "^1.0.2", "enhanced-resolve": "^5.17.3", "es-module-lexer": "^1.2.1", "eslint-scope": "5.1.1", "events": "^3.2.0", "glob-to-regexp": "^0.4.1", "graceful-fs": "^4.2.11", "json-parse-even-better-errors": "^2.3.1", "loader-runner": "^4.3.1", "mime-types": "^2.1.27", "neo-async": "^2.6.2", "schema-utils": "^4.3.3", "tapable": "^2.3.0", "terser-webpack-plugin": "^5.3.11", "watchpack": "^2.4.4", "webpack-sources": "^3.3.3" }, "bin": { "webpack": "bin/webpack.js" } }, "sha512-HU1JOuV1OavsZ+mfigY0j8d1TgQgbZ6M+J75zDkpEAwYeXjWSqrGJtgnPblJjd/mAyTNQ7ygw0MiKOn6etz8yw=="], + + "webpack-cli": ["webpack-cli@6.0.1", "", { "dependencies": { "@discoveryjs/json-ext": "^0.6.1", "@webpack-cli/configtest": "^3.0.1", "@webpack-cli/info": "^3.0.1", "@webpack-cli/serve": "^3.0.1", "colorette": "^2.0.14", "commander": "^12.1.0", "cross-spawn": "^7.0.3", "envinfo": "^7.14.0", "fastest-levenshtein": "^1.0.12", "import-local": "^3.0.2", "interpret": "^3.1.1", "rechoir": "^0.8.0", "webpack-merge": "^6.0.1" }, "peerDependencies": { "webpack": "^5.82.0" }, "bin": { "webpack-cli": "./bin/cli.js" } }, "sha512-MfwFQ6SfwinsUVi0rNJm7rHZ31GyTcpVE5pgVA3hwFRb7COD4TzjUUwhGWKfO50+xdc2MQPuEBBJoqIMGt3JDw=="], + + "webpack-merge": ["webpack-merge@6.0.1", "", { "dependencies": { "clone-deep": "^4.0.1", "flat": "^5.0.2", "wildcard": "^2.0.1" } }, "sha512-hXXvrjtx2PLYx4qruKl+kyRSLc52V+cCvMxRjmKwoA+CBbbF5GfIBtR6kCvl0fYGqTUPKB+1ktVmTHqMOzgCBg=="], + + "webpack-sources": ["webpack-sources@3.3.3", "", {}, "sha512-yd1RBzSGanHkitROoPFd6qsrxt+oFhg/129YzheDGqeustzX0vTZJZsSsQjVQC4yzBQ56K55XU8gaNCtIzOnTg=="], + + "which": ["which@2.0.2", "", { "dependencies": { "isexe": "^2.0.0" }, "bin": { "node-which": "./bin/node-which" } }, "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA=="], + + "wildcard": ["wildcard@2.0.1", "", {}, "sha512-CC1bOL87PIWSBhDcTrdeLo6eGT7mCFtrg0uIJtqJUFyK+eJnzl8A1niH56uu7KMa5XFrtiV+AQuHO3n7DsHnLQ=="], + + "esrecurse/estraverse": ["estraverse@5.3.0", "", {}, "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA=="], + + "source-map-support/source-map": ["source-map@0.6.1", "", {}, "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g=="], + + "terser/commander": ["commander@2.20.3", "", {}, "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ=="], + } +} diff --git a/vendor/package.json b/vendor/package.json new file mode 100644 index 00000000000..903597980bb --- /dev/null +++ b/vendor/package.json @@ -0,0 +1,44 @@ +{ + "name": "dd-trace", + "version": "6.0.0-pre", + "description": "Datadog APM tracing client for JavaScript", + "main": "index.js", + "scripts": { + "postinstall": "webpack" + }, + "dependencies": { + "@isaacs/ttlcache": "^2.0.1", + "@opentelemetry/api": ">=1.0.0 <1.10.0", + "@opentelemetry/api-logs": "<1.0.0", + "@opentelemetry/core": ">=1.14.0 <1.31.0", + "@opentelemetry/resources": ">=1.0.0 <1.31.0", + "crypto-randomuuid": "^1.0.0", + "dc-polyfill": "^0.1.10", + "escape-string-regexp": "^5.0.0", + "ignore": "^7.0.5", + "import-in-the-middle": "^1.14.2", + "istanbul-lib-coverage": "^3.2.2", + "jest-docblock": "^29.7.0", + "jsonpath-plus": "^10.3.0", + "limiter": "^1.1.5", + "lodash.sortby": "^4.7.0", + "lru-cache": "^10.4.3", + "module-details-from-path": "^1.0.4", + "mutexify": "^1.4.0", + "opentracing": ">=0.14.7", + "path-to-regexp": "^0.1.12", + "pprof-format": "^2.1.1", + "protobufjs": "^7.5.3", + "retry": "^0.13.1", + "rfdc": "^1.4.1", + "semifies": "^1.0.0", + "shell-quote": "^1.8.2", + "source-map": "^0.7.4", + "tlhunter-sorted-set": "^0.1.0", + "ttl-set": "^1.0.0" + }, + "devDependencies": { + "webpack": "^5.103.0", + "webpack-cli": "^6.0.1" + } +} diff --git a/vendor/webpack.config.js b/vendor/webpack.config.js new file mode 100644 index 00000000000..85bdbf2c9c8 --- /dev/null +++ b/vendor/webpack.config.js @@ -0,0 +1,25 @@ +'use strict' + +const { hash } = require('crypto') +const { join } = require('path') +const pkg = require('./package.json') +const { readFileSync } = require('fs') + +const dependOn = Object.keys(pkg.dependencies) +const version = hash('sha256', readFileSync(__filename)) + +module.exports = { + entry: Object.fromEntries(dependOn.map((next) => [next, `./node_modules/${next}`])), + target: 'node', + mode: 'production', + cache: { + type: 'filesystem', + version, + }, + output: { + filename: '[name].js', + libraryTarget: 'commonjs2', + path: join(__dirname, '..', 'packages', 'node_modules'), + clean: true + }, +} From 404eb5d1689701d1b84f9a8f7d40f35f4311262b Mon Sep 17 00:00:00 2001 From: rochdev Date: Thu, 20 Nov 2025 19:26:11 -0500 Subject: [PATCH 02/95] fix support for old node versions --- vendor/webpack.config.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vendor/webpack.config.js b/vendor/webpack.config.js index 85bdbf2c9c8..6cee09810f1 100644 --- a/vendor/webpack.config.js +++ b/vendor/webpack.config.js @@ -1,12 +1,12 @@ 'use strict' -const { hash } = require('crypto') +const { createHash } = require('crypto') const { join } = require('path') const pkg = require('./package.json') const { readFileSync } = require('fs') const dependOn = Object.keys(pkg.dependencies) -const version = hash('sha256', readFileSync(__filename)) +const version = createHash('sha256').update(readFileSync(__filename)) module.exports = { entry: Object.fromEntries(dependOn.map((next) => [next, `./node_modules/${next}`])), From 6695a295a1332a59eefd48ac1c74117c3c63fa94 Mon Sep 17 00:00:00 2001 From: rochdev Date: Thu, 20 Nov 2025 19:30:26 -0500 Subject: [PATCH 03/95] remove redundant dependencies --- package.json | 31 +--- vendor/webpack.config.js | 6 +- yarn.lock | 378 ++++++--------------------------------- 3 files changed, 56 insertions(+), 359 deletions(-) diff --git a/package.json b/package.json index 3c709931ea8..773ea9942eb 100644 --- a/package.json +++ b/package.json @@ -131,36 +131,7 @@ "@datadog/openfeature-node-server": "^0.2.0", "@datadog/pprof": "5.12.0", "@datadog/sketches-js": "2.1.1", - "@datadog/wasm-js-rewriter": "5.0.1", - "@isaacs/ttlcache": "^2.0.1", - "@opentelemetry/api": ">=1.0.0 <1.10.0", - "@opentelemetry/api-logs": "<1.0.0", - "@opentelemetry/core": ">=1.14.0 <1.31.0", - "@opentelemetry/resources": ">=1.0.0 <1.31.0", - "crypto-randomuuid": "^1.0.0", - "dc-polyfill": "^0.1.10", - "escape-string-regexp": "^5.0.0", - "ignore": "^7.0.5", - "import-in-the-middle": "^1.14.2", - "istanbul-lib-coverage": "^3.2.2", - "jest-docblock": "^29.7.0", - "jsonpath-plus": "^10.3.0", - "limiter": "^1.1.5", - "lodash.sortby": "^4.7.0", - "lru-cache": "^10.4.3", - "module-details-from-path": "^1.0.4", - "mutexify": "^1.4.0", - "opentracing": ">=0.14.7", - "path-to-regexp": "^0.1.12", - "pprof-format": "^2.1.1", - "protobufjs": "^7.5.3", - "retry": "^0.13.1", - "rfdc": "^1.4.1", - "semifies": "^1.0.0", - "shell-quote": "^1.8.2", - "source-map": "^0.7.4", - "tlhunter-sorted-set": "^0.1.0", - "ttl-set": "^1.0.0" + "@datadog/wasm-js-rewriter": "5.0.1" }, "devDependencies": { "@babel/helpers": "^7.28.4", diff --git a/vendor/webpack.config.js b/vendor/webpack.config.js index 6cee09810f1..c404800801f 100644 --- a/vendor/webpack.config.js +++ b/vendor/webpack.config.js @@ -6,7 +6,11 @@ const pkg = require('./package.json') const { readFileSync } = require('fs') const dependOn = Object.keys(pkg.dependencies) -const version = createHash('sha256').update(readFileSync(__filename)) +const hash = createHash('sha256') + +hash.update(readFileSync(__filename)) + +const version = hash.digest('utf8') module.exports = { entry: Object.fromEntries(dependOn.map((next) => [next, `./node_modules/${next}`])), diff --git a/yarn.lock b/yarn.lock index 8e45483c03d..d601674514a 100644 --- a/yarn.lock +++ b/yarn.lock @@ -406,11 +406,6 @@ resolve-from "^3.0.0" rimraf "^3.0.0" -"@isaacs/ttlcache@^2.0.1": - version "2.1.3" - resolved "https://registry.yarnpkg.com/@isaacs/ttlcache/-/ttlcache-2.1.3.tgz#b5da3615f0a22e7687779afd899dd8f44cc36602" - integrity sha512-NCnhdBecu8reiXZ067zrpwR+xU2MY9wFTpRGpc7oZ1MwWC3EZmZkuqKdYI1Um5phbH1ql8kfiFjLdFkeuEWhfw== - "@istanbuljs/load-nyc-config@^1.0.0": version "1.1.0" resolved "https://registry.yarnpkg.com/@istanbuljs/load-nyc-config/-/load-nyc-config-1.1.0.tgz#fd3db1d59ecf7cf121e80650bb86712f9b55eced" @@ -461,16 +456,6 @@ "@jridgewell/resolve-uri" "^3.1.0" "@jridgewell/sourcemap-codec" "^1.4.14" -"@jsep-plugin/assignment@^1.3.0": - version "1.3.0" - resolved "https://registry.yarnpkg.com/@jsep-plugin/assignment/-/assignment-1.3.0.tgz#fcfc5417a04933f7ceee786e8ab498aa3ce2b242" - integrity sha512-VVgV+CXrhbMI3aSusQyclHkenWSAm95WaiKrMxRFam3JSUiIaQjoMIw2sEs/OX4XifnqeQUN4DYbJjlA8EfktQ== - -"@jsep-plugin/regex@^1.0.4": - version "1.0.4" - resolved "https://registry.yarnpkg.com/@jsep-plugin/regex/-/regex-1.0.4.tgz#cb2fc423220fa71c609323b9ba7f7d344a755fcc" - integrity sha512-q7qL4Mgjs1vByCaTnDFcBnV9HS7GVPJX5vyVoCgZHNSC9rjwIlmbXG5sUuorR5ndfHAIlJ8pVStxvjXHbNvtUg== - "@msgpack/msgpack@^3.1.2": version "3.1.2" resolved "https://registry.yarnpkg.com/@msgpack/msgpack/-/msgpack-3.1.2.tgz#fdd25cc2202297519798bbaf4689152ad9609e19" @@ -612,10 +597,10 @@ resolved "https://registry.yarnpkg.com/@octokit/openapi-types/-/openapi-types-27.0.0.tgz#374ea53781965fd02a9d36cacb97e152cefff12d" integrity sha512-whrdktVs1h6gtR+09+QsNk2+FO+49j6ga1c55YZudfEG+oKJVvJLQi3zkOm5JjiUXAagWK2tI2kTGKJ2Ys7MGA== -"@octokit/openapi-webhooks-types@12.0.3": - version "12.0.3" - resolved "https://registry.yarnpkg.com/@octokit/openapi-webhooks-types/-/openapi-webhooks-types-12.0.3.tgz#fa44fb31fbb4c444c5fd640dbbf537f00c20617c" - integrity sha512-90MF5LVHjBedwoHyJsgmaFhEN1uzXyBDRLEBe7jlTYx/fEhPAk3P3DAJsfZwC54m8hAIryosJOL+UuZHB3K3yA== +"@octokit/openapi-webhooks-types@12.1.0": + version "12.1.0" + resolved "https://registry.yarnpkg.com/@octokit/openapi-webhooks-types/-/openapi-webhooks-types-12.1.0.tgz#6f1b2839a0d00c9524e81f16d8735ec410bce187" + integrity sha512-WiuzhOsiOvb7W3Pvmhf8d2C6qaLHXrWiLBP4nJ/4kydu+wpagV5Fkz9RfQwV2afYzv3PB+3xYgp4mAdNGjDprA== "@octokit/plugin-paginate-graphql@^6.0.0": version "6.0.0" @@ -684,11 +669,11 @@ integrity sha512-MFlzzoDJVw/GcbfzVC1RLR36QqkTLUf79vLVO3D+xn7r0QgxnFoLZgtrzxiQErAjFUOdH6fas2KeQJ1yr/qaXQ== "@octokit/webhooks@^14.0.0": - version "14.1.3" - resolved "https://registry.yarnpkg.com/@octokit/webhooks/-/webhooks-14.1.3.tgz#2d0bed71b07745c0b33363d69e0ae0e440469a18" - integrity sha512-gcK4FNaROM9NjA0mvyfXl0KPusk7a1BeA8ITlYEZVQCXF5gcETTd4yhAU0Kjzd8mXwYHppzJBWgdBVpIR9wUcQ== + version "14.2.0" + resolved "https://registry.yarnpkg.com/@octokit/webhooks/-/webhooks-14.2.0.tgz#db5e730fb3a2841f4dec6a1394d98589e74371d2" + integrity sha512-da6KbdNCV5sr1/txD896V+6W0iamFWrvVl8cHkBSPT+YlvmT3DwXa4jxZnQc+gnuTEqSWbBeoSZYTayXH9wXcw== dependencies: - "@octokit/openapi-webhooks-types" "12.0.3" + "@octokit/openapi-webhooks-types" "12.1.0" "@octokit/request-error" "^7.0.0" "@octokit/webhooks-methods" "^6.0.0" @@ -707,38 +692,6 @@ resolved "https://registry.yarnpkg.com/@openfeature/server-sdk/-/server-sdk-1.20.0.tgz#43a5d3cffd915742ff64eeef53b7132279df4823" integrity sha512-95L9CCaGVKC6+7rNCmDxjthFvUyPLOUkoYyjg9Y/Cmy0G9D63xrJBsmH6fqHtLifzAu4+E7fWAZ3TIBnnCtr7A== -"@opentelemetry/api-logs@<1.0.0": - version "0.208.0" - resolved "https://registry.yarnpkg.com/@opentelemetry/api-logs/-/api-logs-0.208.0.tgz#56d3891010a1fa1cf600ba8899ed61b43ace511c" - integrity sha512-CjruKY9V6NMssL/T1kAFgzosF1v9o6oeN+aX5JB/C/xPNtmgIJqcXHG7fA82Ou1zCpWGl4lROQUKwUNE1pMCyg== - dependencies: - "@opentelemetry/api" "^1.3.0" - -"@opentelemetry/api@>=1.0.0 <1.10.0", "@opentelemetry/api@^1.3.0": - version "1.9.0" - resolved "https://registry.yarnpkg.com/@opentelemetry/api/-/api-1.9.0.tgz#d03eba68273dc0f7509e2a3d5cba21eae10379fe" - integrity sha512-3giAOQvZiH5F9bMlMiv8+GSPMeqg0dbaeo58/0SlA9sxSqZhnUtxzX9/2FzyhS9sWQf5S0GJE0AKBrFqjpeYcg== - -"@opentelemetry/core@1.30.1", "@opentelemetry/core@>=1.14.0 <1.31.0": - version "1.30.1" - resolved "https://registry.yarnpkg.com/@opentelemetry/core/-/core-1.30.1.tgz#a0b468bb396358df801881709ea38299fc30ab27" - integrity sha512-OOCM2C/QIURhJMuKaekP3TRBxBKxG/TWWA0TL2J6nXUtDnuCtccy49LUJF8xPFXMX+0LMcxFpCo8M9cGY1W6rQ== - dependencies: - "@opentelemetry/semantic-conventions" "1.28.0" - -"@opentelemetry/resources@>=1.0.0 <1.31.0": - version "1.30.1" - resolved "https://registry.yarnpkg.com/@opentelemetry/resources/-/resources-1.30.1.tgz#a4eae17ebd96947fdc7a64f931ca4b71e18ce964" - integrity sha512-5UxZqiAgLYGFjS4s9qm5mBVo433u+dSPUFWVWXmLAD4wB65oMCoXaJP1KJa9DIYYMeHu3z4BZcStG3LC593cWA== - dependencies: - "@opentelemetry/core" "1.30.1" - "@opentelemetry/semantic-conventions" "1.28.0" - -"@opentelemetry/semantic-conventions@1.28.0": - version "1.28.0" - resolved "https://registry.yarnpkg.com/@opentelemetry/semantic-conventions/-/semantic-conventions-1.28.0.tgz#337fb2bca0453d0726696e745f50064411f646d6" - integrity sha512-lp4qAiMTD4sNWW4DbKLBkfiMZ4jbAboJIGOQr5DvciMRI494OapieI9qiODpOt0XBr1LjIDy1xAGAnVs5supTA== - "@oven/bun-darwin-aarch64@1.3.3": version "1.3.3" resolved "https://registry.yarnpkg.com/@oven/bun-darwin-aarch64/-/bun-darwin-aarch64-1.3.3.tgz#2ba3a5bbe5171cb99422a873e93d130c6ee24b8b" @@ -799,59 +752,6 @@ resolved "https://registry.yarnpkg.com/@pkgjs/parseargs/-/parseargs-0.11.0.tgz#a77ea742fab25775145434eb1d2328cf5013ac33" integrity sha512-+1VkjdD0QBLPodGrJUeqarH8VAIvQODIbwh9XpP5Syisf7YoQgsJKPNFoqqLQlu+VQ/tVSshMR6loPMn8U+dPg== -"@protobufjs/aspromise@^1.1.1", "@protobufjs/aspromise@^1.1.2": - version "1.1.2" - resolved "https://registry.yarnpkg.com/@protobufjs/aspromise/-/aspromise-1.1.2.tgz#9b8b0cc663d669a7d8f6f5d0893a14d348f30fbf" - integrity sha512-j+gKExEuLmKwvz3OgROXtrJ2UG2x8Ch2YZUxahh+s1F2HZ+wAceUNLkvy6zKCPVRkU++ZWQrdxsUeQXmcg4uoQ== - -"@protobufjs/base64@^1.1.2": - version "1.1.2" - resolved "https://registry.yarnpkg.com/@protobufjs/base64/-/base64-1.1.2.tgz#4c85730e59b9a1f1f349047dbf24296034bb2735" - integrity sha512-AZkcAA5vnN/v4PDqKyMR5lx7hZttPDgClv83E//FMNhR2TMcLUhfRUBHCmSl0oi9zMgDDqRUJkSxO3wm85+XLg== - -"@protobufjs/codegen@^2.0.4": - version "2.0.4" - resolved "https://registry.yarnpkg.com/@protobufjs/codegen/-/codegen-2.0.4.tgz#7ef37f0d010fb028ad1ad59722e506d9262815cb" - integrity sha512-YyFaikqM5sH0ziFZCN3xDC7zeGaB/d0IUb9CATugHWbd1FRFwWwt4ld4OYMPWu5a3Xe01mGAULCdqhMlPl29Jg== - -"@protobufjs/eventemitter@^1.1.0": - version "1.1.0" - resolved "https://registry.yarnpkg.com/@protobufjs/eventemitter/-/eventemitter-1.1.0.tgz#355cbc98bafad5978f9ed095f397621f1d066b70" - integrity sha512-j9ednRT81vYJ9OfVuXG6ERSTdEL1xVsNgqpkxMsbIabzSo3goCjDIveeGv5d03om39ML71RdmrGNjG5SReBP/Q== - -"@protobufjs/fetch@^1.1.0": - version "1.1.0" - resolved "https://registry.yarnpkg.com/@protobufjs/fetch/-/fetch-1.1.0.tgz#ba99fb598614af65700c1619ff06d454b0d84c45" - integrity sha512-lljVXpqXebpsijW71PZaCYeIcE5on1w5DlQy5WH6GLbFryLUrBD4932W/E2BSpfRJWseIL4v/KPgBFxDOIdKpQ== - dependencies: - "@protobufjs/aspromise" "^1.1.1" - "@protobufjs/inquire" "^1.1.0" - -"@protobufjs/float@^1.0.2": - version "1.0.2" - resolved "https://registry.yarnpkg.com/@protobufjs/float/-/float-1.0.2.tgz#5e9e1abdcb73fc0a7cb8b291df78c8cbd97b87d1" - integrity sha512-Ddb+kVXlXst9d+R9PfTIxh1EdNkgoRe5tOX6t01f1lYWOvJnSPDBlG241QLzcyPdoNTsblLUdujGSE4RzrTZGQ== - -"@protobufjs/inquire@^1.1.0": - version "1.1.0" - resolved "https://registry.yarnpkg.com/@protobufjs/inquire/-/inquire-1.1.0.tgz#ff200e3e7cf2429e2dcafc1140828e8cc638f089" - integrity sha512-kdSefcPdruJiFMVSbn801t4vFK7KB/5gd2fYvrxhuJYg8ILrmn9SKSX2tZdV6V+ksulWqS7aXjBcRXl3wHoD9Q== - -"@protobufjs/path@^1.1.2": - version "1.1.2" - resolved "https://registry.yarnpkg.com/@protobufjs/path/-/path-1.1.2.tgz#6cc2b20c5c9ad6ad0dccfd21ca7673d8d7fbf68d" - integrity sha512-6JOcJ5Tm08dOHAbdR3GrvP+yUUfkjG5ePsHYczMFLq3ZmMkAD98cDgcT2iA1lJ9NVwFd4tH/iSSoe44YWkltEA== - -"@protobufjs/pool@^1.1.0": - version "1.1.0" - resolved "https://registry.yarnpkg.com/@protobufjs/pool/-/pool-1.1.0.tgz#09fd15f2d6d3abfa9b65bc366506d6ad7846ff54" - integrity sha512-0kELaGSIDBKvcgS4zkjz1PeddatrjYcmMWOlAuAPwAeccUrPHdUqo/J6LiymHHEiJT5NrF1UVwxY14f+fy4WQw== - -"@protobufjs/utf8@^1.1.0": - version "1.1.0" - resolved "https://registry.yarnpkg.com/@protobufjs/utf8/-/utf8-1.1.0.tgz#a777360b5b39a1a2e5106f8e858f2fd2d060c570" - integrity sha512-Vvn3zZrhQZkkBE8LSuW3em98c0FwgO4nxzv6OdSxPKJIEKY2bGbHn+mhGIPerzI4twdxaP8/0+06HBpwf345Lw== - "@rtsao/scc@^1.1.0": version "1.1.0" resolved "https://registry.yarnpkg.com/@rtsao/scc/-/scc-1.1.0.tgz#927dd2fae9bc3361403ac2c7a00c32ddce9ad7e8" @@ -926,7 +826,7 @@ resolved "https://registry.yarnpkg.com/@types/mocha/-/mocha-10.0.10.tgz#91f62905e8d23cbd66225312f239454a23bebfa0" integrity sha512-xPyYSz1cMPnJQhl0CLMH68j3gprKZaTjG3s5Vi+fDgx+uhG9NOXwbVt52eFS8ECyXhyKcjDLCBEqBExKuiZb7Q== -"@types/node@*", "@types/node@>=13.7.0": +"@types/node@*": version "24.10.1" resolved "https://registry.yarnpkg.com/@types/node/-/node-24.10.1.tgz#91e92182c93db8bd6224fca031e2370cef9a8f01" integrity sha512-GNWcUTRBgIRJD5zj+Tq0fKOJ5XZajIiBroOF0yvj2bSU1WvNdYS/dn9UxwsujGW4JX06dnHyjV2y9rRaybH0iQ== @@ -984,9 +884,9 @@ integrity sha512-S9q47ByT2pPvD65IvrWp7qppVMpk9WGMbVq9wbWZOHg6tnXSD4vyhao6nOSBwwfDdV2p3Kx9evA9vI+XWTfDvw== "@typescript-eslint/types@^8.46.0", "@typescript-eslint/types@^8.47.0": - version "8.47.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/types/-/types-8.47.0.tgz#c7fc9b6642d03505f447a8392934b9d1850de5af" - integrity sha512-nHAE6bMKsizhA2uuYZbEbmp5z2UpffNrPEqiKIeN7VsV6UY/roxanWfoRrf6x/k9+Obf+GQdkm0nPU+vnMXo9A== + version "8.48.1" + resolved "https://registry.yarnpkg.com/@typescript-eslint/types/-/types-8.48.1.tgz#a9ff808f5f798f28767d5c0b015a88fa7ce46bd7" + integrity sha512-+fZ3LZNeiELGmimrujsDCT4CRIbq5oXdHe7chLiW8qzqyPMnn1puNstCrMNVAqwcl2FdIxkuJ4tOs/RFDBVc/Q== "@yarnpkg/lockfile@^1.1.0": version "1.1.0" @@ -1001,17 +901,12 @@ accepts@^2.0.0: mime-types "^3.0.0" negotiator "^1.0.0" -acorn-import-attributes@^1.9.5: - version "1.9.5" - resolved "https://registry.yarnpkg.com/acorn-import-attributes/-/acorn-import-attributes-1.9.5.tgz#7eb1557b1ba05ef18b5ed0ec67591bfab04688ef" - integrity sha512-n02Vykv5uA3eHGM/Z2dQrcD56kL8TyDb2p1+0P83PClMnC/nc+anbQRhIOWnSq4Ke/KvDPrY3C9hDtC/A3eHnQ== - acorn-jsx@^5.3.2: version "5.3.2" resolved "https://registry.yarnpkg.com/acorn-jsx/-/acorn-jsx-5.3.2.tgz#7ed5bb55908b3b2f1bc55c6af1653bada7f07937" integrity sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ== -acorn@^8.14.0, acorn@^8.15.0: +acorn@^8.15.0: version "8.15.0" resolved "https://registry.yarnpkg.com/acorn/-/acorn-8.15.0.tgz#a360898bc415edaac46c8241f6383975b930b816" integrity sha512-NZyJarBfL7nWwIq+FDL6Zp/yHEhePMNnnJ0y3qfieCrmNvYct8uvtiV41UvlSe6apAfk0fY1FbWx+NwfmpvtTg== @@ -1229,10 +1124,10 @@ balanced-match@^1.0.0: resolved "https://registry.yarnpkg.com/balanced-match/-/balanced-match-1.0.2.tgz#e83e3a7e3f300b34cb9d87f615fa0cbf357690ee" integrity sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw== -baseline-browser-mapping@^2.8.25: - version "2.8.29" - resolved "https://registry.yarnpkg.com/baseline-browser-mapping/-/baseline-browser-mapping-2.8.29.tgz#d8800b71399c783cb1bf2068c2bcc3b6cfd7892c" - integrity sha512-sXdt2elaVnhpDNRDz+1BDx1JQoJRuNk7oVlAlbGiFkLikHCAQiccexF/9e91zVi6RCgqspl04aP+6Cnl9zRLrA== +baseline-browser-mapping@^2.9.0: + version "2.9.2" + resolved "https://registry.yarnpkg.com/baseline-browser-mapping/-/baseline-browser-mapping-2.9.2.tgz#0ae89ec3e10e07c368b77def89db8044409461d1" + integrity sha512-PxSsosKQjI38iXkmb3d0Y32efqyA0uW4s41u4IVBsLlWLhCiYNpH/AfNOVWRqCQBlD8TFJTz6OUWNd4DFJCnmw== before-after-hook@^4.0.0: version "4.0.0" @@ -1305,15 +1200,15 @@ browser-stdout@^1.3.1: integrity sha512-qhAVI1+Av2X7qelOfAIYwXONood6XlZE/fXaBSmW/T5SzLAmCgzi+eiWE7fUvbHaeNBQH13UftjpXxsfLkMpgw== browserslist@^4.24.0, browserslist@^4.28.0: - version "4.28.0" - resolved "https://registry.yarnpkg.com/browserslist/-/browserslist-4.28.0.tgz#9cefece0a386a17a3cd3d22ebf67b9deca1b5929" - integrity sha512-tbydkR/CxfMwelN0vwdP/pLkDwyAASZ+VfWm4EOwlB6SWhx1sYnWLqo8N5j0rAzPfzfRaxt0mM/4wPU/Su84RQ== + version "4.28.1" + resolved "https://registry.yarnpkg.com/browserslist/-/browserslist-4.28.1.tgz#7f534594628c53c63101079e27e40de490456a95" + integrity sha512-ZC5Bd0LgJXgwGqUknZY/vkUQ04r8NXnJZ3yYi4vDmSiZmC/pdSN0NbNRPxZpbtO4uAfDUAFffO8IZoM3Gj8IkA== dependencies: - baseline-browser-mapping "^2.8.25" - caniuse-lite "^1.0.30001754" - electron-to-chromium "^1.5.249" + baseline-browser-mapping "^2.9.0" + caniuse-lite "^1.0.30001759" + electron-to-chromium "^1.5.263" node-releases "^2.0.27" - update-browserslist-db "^1.1.4" + update-browserslist-db "^1.2.0" buffer-from@^1.0.0: version "1.1.2" @@ -1419,10 +1314,10 @@ camelcase@^6.0.0: resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-6.3.0.tgz#5685b95eb209ac9c0c177467778c9c84df58ba9a" integrity sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA== -caniuse-lite@^1.0.30001754: - version "1.0.30001755" - resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001755.tgz#c01cfb1c30f5acf1229391666ec03492f4c332ff" - integrity sha512-44V+Jm6ctPj7R52Na4TLi3Zri4dWUljJd+RDm+j8LtNCc/ihLCT+X1TzoOAkRETEWqjuLnh9581Tl80FvK7jVA== +caniuse-lite@^1.0.30001759: + version "1.0.30001759" + resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001759.tgz#d569e7b010372c6b0ca3946e30dada0a2e9d5006" + integrity sha512-Pzfx9fOKoKvevQf8oCXoyNRQ5QyxJj+3O0Rqx2V5oxT61KGx8+n6hV/IUyJeifUci2clnmmKVpvtiqRzgiWjSw== cardinal@^2.1.1: version "2.1.1" @@ -1510,11 +1405,6 @@ ci-info@^4.3.1: resolved "https://registry.yarnpkg.com/ci-info/-/ci-info-4.3.1.tgz#355ad571920810b5623e11d40232f443f16f1daa" integrity sha512-Wdy2Igu8OcBpI2pZePZ5oWjPC38tmDVx5WKUXKwlLYkA0ozo85sLsLvkBbBn/sZaSCMFOGZJ14fvW9t5/d7kdA== -cjs-module-lexer@^1.2.2: - version "1.4.3" - resolved "https://registry.yarnpkg.com/cjs-module-lexer/-/cjs-module-lexer-1.4.3.tgz#0f79731eb8cfe1ec72acd4066efac9d61991b00d" - integrity sha512-9z8TZaGM1pfswYeXrUpzPrkx8UnWYdhJclsiYMm6x/w5+nN+8Tf/LnAgfLGQCm59qAOxU8WwHEq2vNwF6i4j+Q== - clean-regexp@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/clean-regexp/-/clean-regexp-1.0.0.tgz#8df7c7aae51fd36874e8f8d05b9180bc11a3fed7" @@ -1696,11 +1586,6 @@ crypt@0.0.2: resolved "https://registry.yarnpkg.com/crypt/-/crypt-0.0.2.tgz#88d7ff7ec0dfb86f713dc87bbb42d044d3e6c41b" integrity sha512-mCxBlsHFYh9C+HVpiEacem8FEBnMXgU9gy4zmNC+SXAZNB/1idgp/aulFJ4FgCi7GPEVbfyng092GqL2k2rmow== -crypto-randomuuid@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/crypto-randomuuid/-/crypto-randomuuid-1.0.0.tgz#acf583e5e085e867ae23e107ff70279024f9e9e7" - integrity sha512-/RC5F4l1SCqD/jazwUF6+t34Cd8zTSAGZ7rvvZu1whZUhD2a5MOGKjSGowoGcpj/cbVZk1ZODIooJEQQq3nNAA== - csstype@^3.2.2: version "3.2.3" resolved "https://registry.yarnpkg.com/csstype/-/csstype-3.2.3.tgz#ec48c0f3e993e50648c86da559e2610995cf989a" @@ -1733,11 +1618,6 @@ data-view-byte-offset@^1.0.1: es-errors "^1.3.0" is-data-view "^1.0.1" -dc-polyfill@^0.1.10: - version "0.1.10" - resolved "https://registry.yarnpkg.com/dc-polyfill/-/dc-polyfill-0.1.10.tgz#6f2ada1a9e449587c363ca98cfb79b443cf74b70" - integrity sha512-9iSbB8XZ7aIrhUtWI5ulEOJ+IyUN+axquodHK+bZO4r7HfY/xwmo6I4fYYf+aiDom+WMcN/wnzCz+pKvHDDCug== - debug@^3.2.7: version "3.2.7" resolved "https://registry.yarnpkg.com/debug/-/debug-3.2.7.tgz#72580b7e9145fb39b6676f9c5e5fb100b934179a" @@ -1814,11 +1694,6 @@ depd@^2.0.0, depd@~2.0.0: resolved "https://registry.yarnpkg.com/depd/-/depd-2.0.0.tgz#b696163cc757560d09cf22cc8fad1571b79e76df" integrity sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw== -detect-newline@^3.0.0: - version "3.1.0" - resolved "https://registry.yarnpkg.com/detect-newline/-/detect-newline-3.1.0.tgz#576f5dfc63ae1a192ff192d8ad3af6308991b651" - integrity sha512-TLz+x/vEXm/Y7P7wn1EJFNLxYpUD4TgMosxY6fAVJUnJMbupHBOncxyWUG9OpTaH9EBD7uFI5LfEgmMOc54DsA== - diff@^4.0.1, diff@^4.0.2: version "4.0.2" resolved "https://registry.yarnpkg.com/diff/-/diff-4.0.2.tgz#60f3aecb89d5fae520c11aa19efc2bb982aade7d" @@ -1855,10 +1730,10 @@ ee-first@1.1.1: resolved "https://registry.yarnpkg.com/ee-first/-/ee-first-1.1.1.tgz#590c61156b0ae2f4f0255732a158b266bc56b21d" integrity sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow== -electron-to-chromium@^1.5.249: - version "1.5.255" - resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.5.255.tgz#fe9294ce172241eb50733bc00f2bd00d9c1e4ec7" - integrity sha512-Z9oIp4HrFF/cZkDPMpz2XSuVpc1THDpT4dlmATFlJUIBVCy9Vap5/rIXsASP1CscBacBqhabwh8vLctqBwEerQ== +electron-to-chromium@^1.5.263: + version "1.5.264" + resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.5.264.tgz#38d2262e290bf5b424ba1488e072c7b0163400be" + integrity sha512-1tEf0nLgltC3iy9wtlYDlQDc5Rg9lEKVjEmIHJ21rI9OcqkvD45K1oyNIRA4rR1z3LgJ7KeGzEBojVcV6m4qjA== emoji-regex@^8.0.0: version "8.0.0" @@ -2016,11 +1891,6 @@ escape-string-regexp@^4.0.0: resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz#14ba83a5d373e3d311e5afca29cf5bfad965bf34" integrity sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA== -escape-string-regexp@^5.0.0: - version "5.0.0" - resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-5.0.0.tgz#4683126b500b61762f2dbebace1806e8be31b1c8" - integrity sha512-/veY75JbMK4j1yjvuUxuVsiS/hr/4iHs9FTT6cgTexxdE0Ly/glccBAkloH/DofkjRbZU3bnoj38mOmhkZ0lHw== - eslint-compat-utils@^0.5.1: version "0.5.1" resolved "https://registry.yarnpkg.com/eslint-compat-utils/-/eslint-compat-utils-0.5.1.tgz#7fc92b776d185a70c4070d03fd26fde3d59652e4" @@ -2309,11 +2179,6 @@ fast-deep-equal@^3.1.1, fast-deep-equal@^3.1.3: resolved "https://registry.yarnpkg.com/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz#3a7d56b559d6cbc3eb512325244e619a65c6c525" integrity sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q== -fast-fifo@^1.3.2: - version "1.3.2" - resolved "https://registry.yarnpkg.com/fast-fifo/-/fast-fifo-1.3.2.tgz#286e31de96eb96d38a97899815740ba2a4f3640c" - integrity sha512-/d9sfos4yxzpwkDkuN7k2SqFKtYNmCTzgfEpz82x34IM9/zc8KGxQoXg1liNC/izpRM/MBdt44Nmx41ZWqk+FQ== - fast-json-stable-stringify@^2.0.0: version "2.1.0" resolved "https://registry.yarnpkg.com/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz#874bf69c6f404c2b5d99c481341399fd55892633" @@ -2347,9 +2212,9 @@ fill-range@^7.1.1: to-regex-range "^5.0.1" finalhandler@^2.1.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/finalhandler/-/finalhandler-2.1.0.tgz#72306373aa89d05a8242ed569ed86a1bff7c561f" - integrity sha512-/t88Ty3d5JWQbWYgaOGCCYfXRwV1+be02WqYYlL6h0lEiUAMPM8o8qKGO01YIkOHzka2up08wvgYD0mDiI+q3Q== + version "2.1.1" + resolved "https://registry.yarnpkg.com/finalhandler/-/finalhandler-2.1.1.tgz#a2c517a6559852bcdb06d1f8bd7f51b68fad8099" + integrity sha512-S8KoZgRZN+a5rNwqTxlZZePjT/4cnm0ROV70LedRHZ0p8u9fRID0hJUZQpkKLzro8LfmC8sx23bY6tVNxv8pQA== dependencies: debug "^4.4.0" encodeurl "^2.0.0" @@ -2742,11 +2607,6 @@ ignore@^5.2.0, ignore@^5.3.2: resolved "https://registry.yarnpkg.com/ignore/-/ignore-5.3.2.tgz#3cd40e729f3643fd87cb04e50bf0eb722bc596f5" integrity sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g== -ignore@^7.0.5: - version "7.0.5" - resolved "https://registry.yarnpkg.com/ignore/-/ignore-7.0.5.tgz#4cb5f6cd7d4c7ab0365738c7aea888baa6d7efd9" - integrity sha512-Hs59xBNfUIunMFgWAbGX5cq6893IbWg4KnrjbYwX3tx0ztorVgTDA6B2sxf8ejHJ4wz8BqGUMYlnzNBer5NvGg== - immediate@~3.0.5: version "3.0.6" resolved "https://registry.yarnpkg.com/immediate/-/immediate-3.0.6.tgz#9db1dbd0faf8de6fbe0f5dd5e56bb606280de69b" @@ -2760,16 +2620,6 @@ import-fresh@^3.2.1: parent-module "^1.0.0" resolve-from "^4.0.0" -import-in-the-middle@^1.14.2: - version "1.15.0" - resolved "https://registry.yarnpkg.com/import-in-the-middle/-/import-in-the-middle-1.15.0.tgz#9e20827a322bbadaeb5e3bac49ea8f6d4685fdd8" - integrity sha512-bpQy+CrsRmYmoPMAE/0G33iwRqwW4ouqdRg8jgbH3aKuCtOc8lxgmYXg2dMM92CRiGP660EtBcymH/eVUpCSaA== - dependencies: - acorn "^8.14.0" - acorn-import-attributes "^1.9.5" - cjs-module-lexer "^1.2.2" - module-details-from-path "^1.0.3" - imurmurhash@^0.1.4: version "0.1.4" resolved "https://registry.yarnpkg.com/imurmurhash/-/imurmurhash-0.1.4.tgz#9218b9b2b928a238b13dc4fb6b6d576f231453ea" @@ -3110,7 +2960,7 @@ isexe@^2.0.0: resolved "https://registry.yarnpkg.com/isexe/-/isexe-2.0.0.tgz#e8fbf374dc556ff8947a10dcb0572d633f2cfa10" integrity sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw== -istanbul-lib-coverage@^3.0.0, istanbul-lib-coverage@^3.2.0, istanbul-lib-coverage@^3.2.2: +istanbul-lib-coverage@^3.0.0, istanbul-lib-coverage@^3.2.0: version "3.2.2" resolved "https://registry.yarnpkg.com/istanbul-lib-coverage/-/istanbul-lib-coverage-3.2.2.tgz#2d166c4b0644d43a39f04bf6c2edd1e585f31756" integrity sha512-O8dpsF+r0WV/8MNRKfnmrtCWhuKjxrq2w+jpzBL5UZKTi2LeVWnWOmWRxFlesJONmc+wLAGvKQZEOanko0LFTg== @@ -3186,13 +3036,6 @@ jackspeak@^3.1.2: optionalDependencies: "@pkgjs/parseargs" "^0.11.0" -jest-docblock@^29.7.0: - version "29.7.0" - resolved "https://registry.yarnpkg.com/jest-docblock/-/jest-docblock-29.7.0.tgz#8fddb6adc3cdc955c93e2a87f61cfd350d5d119a" - integrity sha512-q617Auw3A612guyaFgsbFeYpNP5t2aoUNLwBUbc/0kD1R4t9ixDbyFTHd1nok4epoVFpr7PmeWHrhvuV3XaJ4g== - dependencies: - detect-newline "^3.0.0" - "js-tokens@^3.0.0 || ^4.0.0", js-tokens@^4.0.0: version "4.0.0" resolved "https://registry.yarnpkg.com/js-tokens/-/js-tokens-4.0.0.tgz#19203fb59991df98e3a287050d4647cdeaf32499" @@ -3218,11 +3061,6 @@ jsdoc-type-pratt-parser@~6.10.0: resolved "https://registry.yarnpkg.com/jsdoc-type-pratt-parser/-/jsdoc-type-pratt-parser-6.10.0.tgz#0846ab682d937eb7272b0e42f49d7f22039059a2" integrity sha512-+LexoTRyYui5iOhJGn13N9ZazL23nAHGkXsa1p/C8yeq79WRfLBag6ZZ0FQG2aRoc9yfo59JT9EYCQonOkHKkQ== -jsep@^1.4.0: - version "1.4.0" - resolved "https://registry.yarnpkg.com/jsep/-/jsep-1.4.0.tgz#19feccbfa51d8a79f72480b4b8e40ce2e17152f0" - integrity sha512-B7qPcEVE3NVkmSJbaYxvv4cHkVW7DQsZz13pUMrfS8z8Q/BuShN+gcTXrUlPiGqM2/t/EEaI030bpxMqY8gMlw== - jsesc@^3.0.2, jsesc@^3.1.0, jsesc@~3.1.0: version "3.1.0" resolved "https://registry.yarnpkg.com/jsesc/-/jsesc-3.1.0.tgz#74d335a234f67ed19907fdadfac7ccf9d409825d" @@ -3260,15 +3098,6 @@ json5@^2.2.3: resolved "https://registry.yarnpkg.com/json5/-/json5-2.2.3.tgz#78cd6f1a19bdc12b73db5ad0c61efd66c1e29283" integrity sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg== -jsonpath-plus@^10.3.0: - version "10.3.0" - resolved "https://registry.yarnpkg.com/jsonpath-plus/-/jsonpath-plus-10.3.0.tgz#59e22e4fa2298c68dfcd70659bb47f0cad525238" - integrity sha512-8TNmfeTCk2Le33A3vRRwtuworG/L5RrgMvdjhKZxvyShO+mBu2fP50OWUjRLNtvw344DdDarFh9buFAZs5ujeA== - dependencies: - "@jsep-plugin/assignment" "^1.3.0" - "@jsep-plugin/regex" "^1.0.4" - jsep "^1.4.0" - jszip@^3.10.1: version "3.10.1" resolved "https://registry.yarnpkg.com/jszip/-/jszip-3.10.1.tgz#34aee70eb18ea1faec2f589208a157d1feb091c2" @@ -3320,11 +3149,6 @@ lie@~3.3.0: dependencies: immediate "~3.0.5" -limiter@^1.1.5: - version "1.1.5" - resolved "https://registry.yarnpkg.com/limiter/-/limiter-1.1.5.tgz#8f92a25b3b16c6131293a0cc834b4a838a2aa7c2" - integrity sha512-FWWMIEOxz3GwUI4Ts/IvgVy6LPvoMPgjMdQ185nN6psJyBJ4yOpzqm695/h5umdLJg2vW3GR5iG11MAkR2AzJA== - locate-path@^5.0.0: version "5.0.0" resolved "https://registry.yarnpkg.com/locate-path/-/locate-path-5.0.0.tgz#1afba396afd676a6d42504d0a67a3a7eb9f62aa0" @@ -3349,11 +3173,6 @@ lodash.merge@^4.6.2: resolved "https://registry.yarnpkg.com/lodash.merge/-/lodash.merge-4.6.2.tgz#558aa53b43b661e1925a0afdfa36a9a1085fe57a" integrity sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ== -lodash.sortby@^4.7.0: - version "4.7.0" - resolved "https://registry.yarnpkg.com/lodash.sortby/-/lodash.sortby-4.7.0.tgz#edd14c824e2cc9c1e0b0a1b42bb5210516a42438" - integrity sha512-HDWXG8isMntAyRF5vZ7xKuEvOhT4AhlRt/3czTSjvGUxjYCBVRQY48ViDHyfYz9VIoBkW4TMGQNapx+l3RUwdA== - lodash@^4.17.15, lodash@^4.17.20, lodash@^4.17.4: version "4.17.21" resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.21.tgz#679591c564c3bffaae8454cf0b3df370c3d6911c" @@ -3367,11 +3186,6 @@ log-symbols@^4.1.0: chalk "^4.1.0" is-unicode-supported "^0.1.0" -long@^5.0.0: - version "5.3.2" - resolved "https://registry.yarnpkg.com/long/-/long-5.3.2.tgz#1d84463095999262d7d7b7f8bfd4a8cc55167f83" - integrity sha512-mNAgZ1GmyNhD7AuqnTG3/VQ26o760+ZYBPKjPvugO8+nLbYfX6TVpJPseBvopbdY+qpZ/lKUnmEc1LeZYS3QAA== - loose-envify@^1.1.0: version "1.4.0" resolved "https://registry.yarnpkg.com/loose-envify/-/loose-envify-1.4.0.tgz#71ee51fa7be4caec1a63839f7e682d8132d30caf" @@ -3386,7 +3200,7 @@ loupe@^2.3.6: dependencies: get-func-name "^2.0.1" -lru-cache@^10.2.0, lru-cache@^10.4.3: +lru-cache@^10.2.0: version "10.4.3" resolved "https://registry.yarnpkg.com/lru-cache/-/lru-cache-10.4.3.tgz#410fc8a17b70e598013df257c2446b7f3383f119" integrity sha512-JNAzZcXrCt42VGLuYz0zfAzDfAvJWW6AfYlDBQyDV5DClI2m5sAmK+OIO7s59XfsRsWHp02jAJrRadPRGTt6SQ== @@ -3469,9 +3283,9 @@ mime-types@^2.1.12, mime-types@~2.1.24: mime-db "1.52.0" mime-types@^3.0.0, mime-types@^3.0.1: - version "3.0.1" - resolved "https://registry.yarnpkg.com/mime-types/-/mime-types-3.0.1.tgz#b1d94d6997a9b32fd69ebaed0db73de8acb519ce" - integrity sha512-xRc4oEhT6eaBpU1XF7AjpOFD+xQmXNB5OVKwp4tqCuBpHLS/ZbBDrc07mYTDqVMg6PfxUjjNp85O6Cd2Z/5HWA== + version "3.0.2" + resolved "https://registry.yarnpkg.com/mime-types/-/mime-types-3.0.2.tgz#39002d4182575d5af036ffa118100f2524b2e2ab" + integrity sha512-Lbgzdk0h4juoQ9fCKXW4by0UJqj+nOOrI9MJ1sSj4nI8aI2eo1qmvQEie4VD1glsS250n15LsWsYtCugiStS5A== dependencies: mime-db "^1.54.0" @@ -3574,7 +3388,7 @@ mocha@^11.6.0: yargs-parser "^21.1.1" yargs-unparser "^2.0.0" -module-details-from-path@^1.0.3, module-details-from-path@^1.0.4: +module-details-from-path@^1.0.3: version "1.0.4" resolved "https://registry.yarnpkg.com/module-details-from-path/-/module-details-from-path-1.0.4.tgz#b662fdcd93f6c83d3f25289da0ce81c8d9685b94" integrity sha512-EGWKgxALGMgzvxYF1UyGTy0HXX/2vHLkw6+NvDKW2jypWbHpjQuj4UMcqQWXHERJhVGKikolT06G3bcKe4fi7w== @@ -3602,13 +3416,6 @@ multer@^2.0.2: type-is "^1.6.18" xtend "^4.0.2" -mutexify@^1.4.0: - version "1.4.0" - resolved "https://registry.yarnpkg.com/mutexify/-/mutexify-1.4.0.tgz#b7f4ac0273c81824b840887c6a6e0bfab14bbe94" - integrity sha512-pbYSsOrSB/AKN5h/WzzLRMFgZhClWccf2XIB4RSMC8JbquiB0e0/SH5AIfdQMdyHmYtv4seU7yV/TvAwPLJ1Yg== - dependencies: - queue-tick "^1.0.0" - natural-compare@^1.4.0: version "1.4.0" resolved "https://registry.yarnpkg.com/natural-compare/-/natural-compare-1.4.0.tgz#4abebfeed7541f2c27acfb29bdbbd15c8d5ba4f7" @@ -3797,11 +3604,6 @@ opener@^1.5.1: resolved "https://registry.yarnpkg.com/opener/-/opener-1.5.2.tgz#5d37e1f35077b9dcac4301372271afdeb2a13598" integrity sha512-ur5UIdyw5Y7yEj9wLzhqXiy6GZ3Mwx0yGI+5sMn2r0N0v3cKJvUmFH5yPP+WXh9e0xfyzyJX95D8l088DNFj7A== -opentracing@>=0.14.7: - version "0.14.7" - resolved "https://registry.yarnpkg.com/opentracing/-/opentracing-0.14.7.tgz#25d472bd0296dc0b64d7b94cbc995219031428f5" - integrity sha512-vz9iS7MJ5+Bp1URw8Khvdyw1H/hGvzHWlKQ7eRrQojSCDL1/SrWfrY9QebLw97n2deyRtzHRC3MkQfVNUCo91Q== - optionator@^0.9.3: version "0.9.4" resolved "https://registry.yarnpkg.com/optionator/-/optionator-0.9.4.tgz#7ea1c1a5d91d764fb282139c88fe11e182a3a734" @@ -3952,11 +3754,6 @@ path-scurry@^1.11.1: lru-cache "^10.2.0" minipass "^5.0.0 || ^6.0.2 || ^7.0.0" -path-to-regexp@^0.1.12: - version "0.1.12" - resolved "https://registry.yarnpkg.com/path-to-regexp/-/path-to-regexp-0.1.12.tgz#d5e1a12e478a976d432ef3c58d534b9923164bb7" - integrity sha512-RA1GjUVMnvYFxuqovrEqZoxxW5NUZqbwKtYz/Tt7nXerk0LbLblQmrsgdeOxV5SFHf0UDggjS/bSeOZwt1pmEQ== - path-to-regexp@^8.0.0: version "8.3.0" resolved "https://registry.yarnpkg.com/path-to-regexp/-/path-to-regexp-8.3.0.tgz#aa818a6981f99321003a08987d3cec9c3474cd1f" @@ -4004,7 +3801,7 @@ possible-typed-array-names@^1.0.0: resolved "https://registry.yarnpkg.com/possible-typed-array-names/-/possible-typed-array-names-1.1.0.tgz#93e3582bc0e5426586d9d07b79ee40fc841de4ae" integrity sha512-/+5VFTchJDoVj3bhoqi6UeymcD00DAwb1nJwamzPvHEszJ4FpF6SNNbUbOS8yI56qHzdV8eK0qEfOSiodkTdxg== -pprof-format@^2.1.1, pprof-format@^2.2.1: +pprof-format@^2.2.1: version "2.2.1" resolved "https://registry.yarnpkg.com/pprof-format/-/pprof-format-2.2.1.tgz#64d32207fb46990349eb52825defb449d6ccc9b4" integrity sha512-p4tVN7iK19ccDqQv8heyobzUmbHyds4N2FI6aBMcXz6y99MglTWDxIyhFkNaLeEXs6IFUEzT0zya0icbSLLY0g== @@ -4031,24 +3828,6 @@ propagate@^2.0.0: resolved "https://registry.yarnpkg.com/propagate/-/propagate-2.0.1.tgz#40cdedab18085c792334e64f0ac17256d38f9a45" integrity sha512-vGrhOavPSTz4QVNuBNdcNXePNdNMaO1xj9yBeH1ScQPjk/rhg9sSlCXPhMkFuaNNW/syTvYqsnbIJxMBfRbbag== -protobufjs@^7.5.3: - version "7.5.4" - resolved "https://registry.yarnpkg.com/protobufjs/-/protobufjs-7.5.4.tgz#885d31fe9c4b37f25d1bb600da30b1c5b37d286a" - integrity sha512-CvexbZtbov6jW2eXAvLukXjXUW1TzFaivC46BpWc/3BpcCysb5Vffu+B3XHMm8lVEuy2Mm4XGex8hBSg1yapPg== - dependencies: - "@protobufjs/aspromise" "^1.1.2" - "@protobufjs/base64" "^1.1.2" - "@protobufjs/codegen" "^2.0.4" - "@protobufjs/eventemitter" "^1.1.0" - "@protobufjs/fetch" "^1.1.0" - "@protobufjs/float" "^1.0.2" - "@protobufjs/inquire" "^1.1.0" - "@protobufjs/path" "^1.1.2" - "@protobufjs/pool" "^1.1.0" - "@protobufjs/utf8" "^1.1.0" - "@types/node" ">=13.7.0" - long "^5.0.0" - proxy-addr@^2.0.7: version "2.0.7" resolved "https://registry.yarnpkg.com/proxy-addr/-/proxy-addr-2.0.7.tgz#f19fe69ceab311eeb94b42e70e8c2070f9ba1025" @@ -4083,11 +3862,6 @@ qs@^6.14.0: dependencies: side-channel "^1.1.0" -queue-tick@^1.0.0: - version "1.0.1" - resolved "https://registry.yarnpkg.com/queue-tick/-/queue-tick-1.0.1.tgz#f6f07ac82c1fd60f82e098b417a80e52f1f4c142" - integrity sha512-kJt5qhMxoszgU/62PLP1CJytzd2NKetjSRnyuj31fDd3Rlcz3fzlFdFLD1SItunPwyqEOkca6GbV612BWfaBag== - randombytes@^2.1.0: version "2.1.0" resolved "https://registry.yarnpkg.com/randombytes/-/randombytes-2.1.0.tgz#df6f84372f0270dc65cdf6291349ab7a473d4f2a" @@ -4273,16 +4047,6 @@ restore-cursor@^3.1.0: onetime "^5.1.0" signal-exit "^3.0.2" -retry@^0.13.1: - version "0.13.1" - resolved "https://registry.yarnpkg.com/retry/-/retry-0.13.1.tgz#185b1587acf67919d63b357349e03537b2484658" - integrity sha512-XQBQ3I8W1Cge0Seh+6gjj03LbmRFWuoszgK9ooCpwYIrhhoO80pfq4cUkU5DkknwfOfFteRwlZ56PYOGYyFWdg== - -rfdc@^1.4.1: - version "1.4.1" - resolved "https://registry.yarnpkg.com/rfdc/-/rfdc-1.4.1.tgz#778f76c4fb731d93414e8f925fbecf64cce7f6ca" - integrity sha512-q1b3N5QkRUWUl7iyylaaj3kOpIT0N2i9MqIEQXP73GVsN9cw3fdx8X63cEmWhJGi2PPCF23Ijp7ktmd39rawIA== - rimraf@^3.0.0: version "3.0.2" resolved "https://registry.yarnpkg.com/rimraf/-/rimraf-3.0.2.tgz#f1a5402ba6220ad52cc1282bac1ae3aa49fd061a" @@ -4352,11 +4116,6 @@ scheduler@^0.20.2: loose-envify "^1.1.0" object-assign "^4.1.1" -semifies@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/semifies/-/semifies-1.0.0.tgz#b69569f32c2ba2ac04f705ea82831364289b2ae2" - integrity sha512-xXR3KGeoxTNWPD4aBvL5NUpMTT7WMANr3EWnaS190QVkY52lqqcVRD7Q05UVbBhiWDGWMlJEUam9m7uFFGVScw== - semver@^6.0.0, semver@^6.3.0, semver@^6.3.1: version "6.3.1" resolved "https://registry.yarnpkg.com/semver/-/semver-6.3.1.tgz#556d2ef8689146e46dcea4bfdd095f3434dffcb4" @@ -4459,7 +4218,7 @@ shebang-regex@^3.0.0: resolved "https://registry.yarnpkg.com/shebang-regex/-/shebang-regex-3.0.0.tgz#ae16f1644d873ecad843b0307b143362d4c42172" integrity sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A== -shell-quote@^1.6.1, shell-quote@^1.8.2: +shell-quote@^1.6.1: version "1.8.3" resolved "https://registry.yarnpkg.com/shell-quote/-/shell-quote-1.8.3.tgz#55e40ef33cf5c689902353a3d8cd1a6725f08b4b" integrity sha512-ObmnIF4hXNg1BqhnHmgbDETF8dLPCggZWBjkQfhZpbszZnYur5DUljTcCHii5LC3J5E0yeO/1LIMyH+UvHQgyw== @@ -4622,16 +4381,7 @@ streamsearch@^1.1.0: resolved "https://registry.yarnpkg.com/streamsearch/-/streamsearch-1.1.0.tgz#404dd1e2247ca94af554e841a8ef0eaa238da764" integrity sha512-Mcc5wHehp9aXz1ax6bZUyY5afg9u2rv5cqQI3mRrYkGC8rW2hM02jWuwjtL++LS5qinSyhj2QfLyNsuc+VsExg== -"string-width-cjs@npm:string-width@^4.2.0": - version "4.2.3" - resolved "https://registry.yarnpkg.com/string-width/-/string-width-4.2.3.tgz#269c7117d27b05ad2e536830a8ec895ef9c6d010" - integrity sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g== - dependencies: - emoji-regex "^8.0.0" - is-fullwidth-code-point "^3.0.0" - strip-ansi "^6.0.1" - -string-width@^4.0.0, string-width@^4.1.0, string-width@^4.2.0, string-width@^4.2.2, string-width@^4.2.3: +"string-width-cjs@npm:string-width@^4.2.0", string-width@^4.0.0, string-width@^4.1.0, string-width@^4.2.0, string-width@^4.2.2, string-width@^4.2.3: version "4.2.3" resolved "https://registry.yarnpkg.com/string-width/-/string-width-4.2.3.tgz#269c7117d27b05ad2e536830a8ec895ef9c6d010" integrity sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g== @@ -4695,14 +4445,7 @@ string_decoder@~1.1.1: dependencies: safe-buffer "~5.1.0" -"strip-ansi-cjs@npm:strip-ansi@^6.0.1": - version "6.0.1" - resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-6.0.1.tgz#9e26c63d30f53443e9489495b2105d37b67a85d9" - integrity sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A== - dependencies: - ansi-regex "^5.0.1" - -strip-ansi@^6.0.0, strip-ansi@^6.0.1: +"strip-ansi-cjs@npm:strip-ansi@^6.0.1", strip-ansi@^6.0.0, strip-ansi@^6.0.1: version "6.0.1" resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-6.0.1.tgz#9e26c63d30f53443e9489495b2105d37b67a85d9" integrity sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A== @@ -4843,11 +4586,6 @@ tiktoken@^1.0.21: resolved "https://registry.yarnpkg.com/tiktoken/-/tiktoken-1.0.22.tgz#a6c674839228bb88f32dfe646dff47193762f7d3" integrity sha512-PKvy1rVF1RibfF3JlXBSP0Jrcw2uq3yXdgcEXtKTYn3QJ/cBRBHDnrJ5jHky+MENZ6DIPwNUGWpkVx+7joCpNA== -tlhunter-sorted-set@^0.1.0: - version "0.1.0" - resolved "https://registry.yarnpkg.com/tlhunter-sorted-set/-/tlhunter-sorted-set-0.1.0.tgz#1c3eae28c0fa4dff97e9501d2e3c204b86406f4b" - integrity sha512-eGYW4bjf1DtrHzUYxYfAcSytpOkA44zsr7G2n3PV7yOUR23vmkGe3LL4R+1jL9OsXtbsFOwe8XtbCrabeaEFnw== - to-regex-range@^5.0.1: version "5.0.1" resolved "https://registry.yarnpkg.com/to-regex-range/-/to-regex-range-5.0.1.tgz#1648c44aae7c8d988a326018ed72f5b4dd0392e4" @@ -4914,13 +4652,6 @@ tslib@^2.5.0: resolved "https://registry.yarnpkg.com/tslib/-/tslib-2.8.1.tgz#612efe4ed235d567e8aba5f2a5fab70280ade83f" integrity sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w== -ttl-set@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/ttl-set/-/ttl-set-1.0.0.tgz#e7895d946ad9cedfadcf6e3384ea97322a86dd3b" - integrity sha512-2fuHn/UR+8Z9HK49r97+p2Ru1b5Eewg2QqPrU14BVCQ9QoyU3+vLLZk2WEiyZ9sgJh6W8G1cZr9I2NBLywAHrA== - dependencies: - fast-fifo "^1.3.2" - type-check@^0.4.0, type-check@~0.4.0: version "0.4.0" resolved "https://registry.yarnpkg.com/type-check/-/type-check-0.4.0.tgz#07b8203bfa7056c0657050e3ccd2c37730bab8f1" @@ -5074,10 +4805,10 @@ unpipe@~1.0.0: resolved "https://registry.yarnpkg.com/unpipe/-/unpipe-1.0.0.tgz#b2bf4ee8514aae6165b4817829d21b2ef49904ec" integrity sha512-pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ== -update-browserslist-db@^1.1.4: - version "1.1.4" - resolved "https://registry.yarnpkg.com/update-browserslist-db/-/update-browserslist-db-1.1.4.tgz#7802aa2ae91477f255b86e0e46dbc787a206ad4a" - integrity sha512-q0SPT4xyU84saUX+tomz1WLkxUbuaJnR1xWt17M7fJtEJigJeWUNGUqrauFXsHnqev9y9JTRGwk13tFBuKby4A== +update-browserslist-db@^1.2.0: + version "1.2.2" + resolved "https://registry.yarnpkg.com/update-browserslist-db/-/update-browserslist-db-1.2.2.tgz#cfb4358afa08b3d5731a2ecd95eebf4ddef8033e" + integrity sha512-E85pfNzMQ9jpKkA7+TJAi4TJN+tBCuWh5rUcS/sv6cFi+1q9LYDwDI5dpUL0u/73EElyQ8d3TEaeW4sPedBqYA== dependencies: escalade "^3.2.0" picocolors "^1.1.1" @@ -5191,7 +4922,7 @@ workerpool@^9.2.0: resolved "https://registry.yarnpkg.com/workerpool/-/workerpool-9.3.4.tgz#f6c92395b2141afd78e2a889e80cb338fe9fca41" integrity sha512-TmPRQYYSAnnDiEB0P/Ytip7bFGvqnSU6I2BcuSw7Hx+JSg/DsUi5ebYfc8GYaSdpuvOcEs6dXxPurOYpe9QFwg== -"wrap-ansi-cjs@npm:wrap-ansi@^7.0.0": +"wrap-ansi-cjs@npm:wrap-ansi@^7.0.0", wrap-ansi@^7.0.0: version "7.0.0" resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-7.0.0.tgz#67e145cff510a6a6984bdf1152911d69d2eb9e43" integrity sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q== @@ -5209,15 +4940,6 @@ wrap-ansi@^6.2.0: string-width "^4.1.0" strip-ansi "^6.0.0" -wrap-ansi@^7.0.0: - version "7.0.0" - resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-7.0.0.tgz#67e145cff510a6a6984bdf1152911d69d2eb9e43" - integrity sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q== - dependencies: - ansi-styles "^4.0.0" - string-width "^4.1.0" - strip-ansi "^6.0.0" - wrap-ansi@^8.1.0: version "8.1.0" resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-8.1.0.tgz#56dc22368ee570face1b49819975d9b9a5ead214" From ed2379070a99b6c589023e92845c9a55e759c4b7 Mon Sep 17 00:00:00 2001 From: rochdev Date: Thu, 20 Nov 2025 20:01:51 -0500 Subject: [PATCH 04/95] fix esm tests --- package.json | 4 +- packages/dd-trace/src/loader-hook.mjs | 52 +++++++++++++++++++ packages/node_modules/escape-string-regexp.js | 1 - packages/node_modules/import-in-the-middle.js | 1 - vendor/bun.lock | 10 ---- vendor/package.json | 2 - yarn.lock | 30 ++++++++++- 7 files changed, 84 insertions(+), 16 deletions(-) create mode 100644 packages/dd-trace/src/loader-hook.mjs delete mode 100644 packages/node_modules/escape-string-regexp.js delete mode 100644 packages/node_modules/import-in-the-middle.js diff --git a/package.json b/package.json index 773ea9942eb..4b2d3ef9b26 100644 --- a/package.json +++ b/package.json @@ -131,7 +131,9 @@ "@datadog/openfeature-node-server": "^0.2.0", "@datadog/pprof": "5.12.0", "@datadog/sketches-js": "2.1.1", - "@datadog/wasm-js-rewriter": "5.0.1" + "@datadog/wasm-js-rewriter": "5.0.1", + "escape-string-regexp": "^5.0.0", + "import-in-the-middle": "^1.14.2" }, "devDependencies": { "@babel/helpers": "^7.28.4", diff --git a/packages/dd-trace/src/loader-hook.mjs b/packages/dd-trace/src/loader-hook.mjs new file mode 100644 index 00000000000..1ad3206c752 --- /dev/null +++ b/packages/dd-trace/src/loader-hook.mjs @@ -0,0 +1,52 @@ +import regexpEscape from 'escape-string-regexp' +import * as iitm from 'import-in-the-middle/hook.mjs' +import hooks from './packages/datadog-instrumentations/src/helpers/hooks.js' +import configHelper from './packages/dd-trace/src/config-helper.js' + +// For some reason `getEnvironmentVariable` is not otherwise available to ESM. +const env = configHelper.getEnvironmentVariable + +function initialize (data = {}) { + data.include ??= [] + data.exclude ??= [] + + addInstrumentations(data) + addSecurityControls(data) + addExclusions(data) + + return iitm.initialize(data) +} + +function addInstrumentations (data) { + const instrumentations = Object.keys(hooks) + + for (const moduleName of instrumentations) { + data.include.push(new RegExp(`node_modules/${moduleName}/(?!node_modules).+`), moduleName) + } +} + +function addSecurityControls (data) { + const securityControls = (env('DD_IAST_SECURITY_CONTROLS_CONFIGURATION') || '') + .split(';') + .map(sc => sc.trim().split(':')[2]) + .filter(Boolean) + .map(sc => sc.trim()) + + for (const subpath of securityControls) { + data.include.push(new RegExp(regexpEscape(subpath))) + } +} + +function addExclusions (data) { + data.exclude.push( + /middle/, + /langsmith/, + /openai\/_shims/, + /openai\/resources\/chat\/completions\/messages/, + /openai\/agents-core\/dist\/shims/, + /@anthropic-ai\/sdk\/_shims/ + ) +} + +export { initialize } +export { load, getFormat, resolve, getSource } from 'import-in-the-middle/hook.mjs' diff --git a/packages/node_modules/escape-string-regexp.js b/packages/node_modules/escape-string-regexp.js deleted file mode 100644 index 41cfd73f26b..00000000000 --- a/packages/node_modules/escape-string-regexp.js +++ /dev/null @@ -1 +0,0 @@ -(()=>{"use strict";var e={d:(r,t)=>{for(var o in t)e.o(t,o)&&!e.o(r,o)&&Object.defineProperty(r,o,{enumerable:!0,get:t[o]})},o:(e,r)=>Object.prototype.hasOwnProperty.call(e,r),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},r={};function t(e){if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}e.r(r),e.d(r,{default:()=>t}),module.exports=r})(); \ No newline at end of file diff --git a/packages/node_modules/import-in-the-middle.js b/packages/node_modules/import-in-the-middle.js deleted file mode 100644 index 955acb5011e..00000000000 --- a/packages/node_modules/import-in-the-middle.js +++ /dev/null @@ -1 +0,0 @@ -(()=>{var e={616:(e,t,o)=>{const r=o(6928),n=o(5335),{fileURLToPath:s}=o(7016),{MessageChannel:i}=o(8167),{importHooks:a,specifiers:c,toHook:p,getExperimentalPatchInternals:u}=o(6467);function f(e){a.push(e),p.forEach(([t,o])=>e(t,o))}function l(e){const t=a.indexOf(e);t>-1&&a.splice(t,1)}function d(e,t,o,r){const n=e(t,o,r);n&&n!==t&&(t.default=n)}let h;function x(e,t,o){if(this instanceof x==0)return new x(e,t,o);"function"==typeof e?(o=e,e=null,t=null):"function"==typeof t&&(o=t,t=null);const i=!!t&&!0===t.internals;h&&Array.isArray(e)&&h(e),this._iitmHook=(t,a)=>{const p=t;let f;if(t.startsWith("node:"))t=t.replace(/^node:/,"");else{if(t.startsWith("file://"))try{t=s(t)}catch(e){}const e=n(t);e&&(t=e.name,f=e.basedir)}if(e){for(const n of e)if(n===t){if(f)if(i)t=t+r.sep+r.relative(f,s(p));else if(!u()&&!f.endsWith(c.get(p)))continue;d(o,a,t,f)}}else d(o,a,t,f)},f(this._iitmHook)}x.prototype.unhook=function(){l(this._iitmHook)},e.exports=x,e.exports.Hook=x,e.exports.addHook=f,e.exports.removeHook=l,e.exports.createAddHookMessageChannel=function(){const{port1:e,port2:t}=new i;let o,r=0;return h=t=>{r++,e.postMessage(t)},e.on("message",()=>{r--,o&&r<=0&&o()}).unref(),{registerOptions:{data:{addHookMessagePort:t,include:[]},transferList:[t]},addHookMessagePort:t,waitForAllMessagesAcknowledged:function(){const e=setInterval(()=>{},1e3),t=new Promise(e=>{o=e}).then(()=>{clearInterval(e)});return 0===r&&o(),t}}}},5335:(e,t,o)=>{"use strict";var r=o(6928).sep;e.exports=function(e){var t=e.split(r),o=t.lastIndexOf("node_modules");if(-1!==o&&t[o+1]){for(var n="@"===t[o+1][0],s=n?t[o+1]+"/"+t[o+2]:t[o+1],i=n?3:2,a="",c=o+i-1,p=0;p<=c;p++)a+=p===c?t[p]:t[p]+r;for(var u="",f=t.length-1,l=o+i;l<=f;l++)u+=l===f?t[l]:t[l]+r;return{name:s,basedir:a,path:u}}}},6467:(e,t)=>{const o=[],r=new WeakMap,n=new WeakMap,s=new Map,i=[],a={set:(e,t,o)=>r.get(e)[t](o),get(e,t){if(t===Symbol.toStringTag)return"Module";const o=n.get(e)[t];return"function"==typeof o?o():void 0},defineProperty(e,t,o){if(!("value"in o))throw new Error("Getters/setters are not supported for exports property descriptors.");return r.get(e)[t](o.value)}};let c=!1;t.register=function(e,t,c,p,u){s.set(e,u),r.set(t,c),n.set(t,p);const f=new Proxy(t,a);o.forEach(t=>t(e,f)),i.push([e,f])},t.importHooks=o,t.specifiers=s,t.toHook=i,t.getExperimentalPatchInternals=function(){return c},t.setExperimentalPatchInternals=function(e){c=e}},6928:e=>{"use strict";e.exports=require("path")},7016:e=>{"use strict";e.exports=require("url")},8167:e=>{"use strict";e.exports=require("worker_threads")}},t={},o=function o(r){var n=t[r];if(void 0!==n)return n.exports;var s=t[r]={exports:{}};return e[r](s,s.exports,o),s.exports}(616);module.exports=o})(); \ No newline at end of file diff --git a/vendor/bun.lock b/vendor/bun.lock index 42d24201f6a..3746c09804c 100644 --- a/vendor/bun.lock +++ b/vendor/bun.lock @@ -12,9 +12,7 @@ "@opentelemetry/resources": ">=1.0.0 <1.31.0", "crypto-randomuuid": "^1.0.0", "dc-polyfill": "^0.1.10", - "escape-string-regexp": "^5.0.0", "ignore": "^7.0.5", - "import-in-the-middle": "^1.14.2", "istanbul-lib-coverage": "^3.2.2", "jest-docblock": "^29.7.0", "jsonpath-plus": "^10.3.0", @@ -142,8 +140,6 @@ "acorn": ["acorn@8.15.0", "", { "bin": { "acorn": "bin/acorn" } }, "sha512-NZyJarBfL7nWwIq+FDL6Zp/yHEhePMNnnJ0y3qfieCrmNvYct8uvtiV41UvlSe6apAfk0fY1FbWx+NwfmpvtTg=="], - "acorn-import-attributes": ["acorn-import-attributes@1.9.5", "", { "peerDependencies": { "acorn": "^8" } }, "sha512-n02Vykv5uA3eHGM/Z2dQrcD56kL8TyDb2p1+0P83PClMnC/nc+anbQRhIOWnSq4Ke/KvDPrY3C9hDtC/A3eHnQ=="], - "acorn-import-phases": ["acorn-import-phases@1.0.4", "", { "peerDependencies": { "acorn": "^8.14.0" } }, "sha512-wKmbr/DDiIXzEOiWrTTUcDm24kQ2vGfZQvM2fwg2vXqR5uW6aapr7ObPtj1th32b9u90/Pf4AItvdTh42fBmVQ=="], "ajv": ["ajv@8.17.1", "", { "dependencies": { "fast-deep-equal": "^3.1.3", "fast-uri": "^3.0.1", "json-schema-traverse": "^1.0.0", "require-from-string": "^2.0.2" } }, "sha512-B/gBuNg5SiMTrPkC+A2+cW0RszwxYmn6VYxB/inlBStS5nx6xHIt/ehKRhIMhqusl7a8LjQoZnjCs5vhwxOQ1g=="], @@ -162,8 +158,6 @@ "chrome-trace-event": ["chrome-trace-event@1.0.4", "", {}, "sha512-rNjApaLzuwaOTjCiT8lSDdGN1APCiqkChLMJxJPWLunPAt5fy8xgU9/jNOchV84wfIxrA0lRQB7oCT8jrn/wrQ=="], - "cjs-module-lexer": ["cjs-module-lexer@1.4.3", "", {}, "sha512-9z8TZaGM1pfswYeXrUpzPrkx8UnWYdhJclsiYMm6x/w5+nN+8Tf/LnAgfLGQCm59qAOxU8WwHEq2vNwF6i4j+Q=="], - "clone-deep": ["clone-deep@4.0.1", "", { "dependencies": { "is-plain-object": "^2.0.4", "kind-of": "^6.0.2", "shallow-clone": "^3.0.0" } }, "sha512-neHB9xuzh/wk0dIHweyAXv2aPGZIVk3pLMe+/RNzINf17fe0OG96QroktYAUm7SM1PBnzTabaLboqqxDyMU+SQ=="], "colorette": ["colorette@2.0.20", "", {}, "sha512-IfEDxwoWIjkeXL1eXcDiow4UbKjhLdq6/EuSVR9GMN7KVH3r9gQ83e73hsz1Nd1T3ijd5xv1wcWRYO+D6kCI2w=="], @@ -188,8 +182,6 @@ "escalade": ["escalade@3.2.0", "", {}, "sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA=="], - "escape-string-regexp": ["escape-string-regexp@5.0.0", "", {}, "sha512-/veY75JbMK4j1yjvuUxuVsiS/hr/4iHs9FTT6cgTexxdE0Ly/glccBAkloH/DofkjRbZU3bnoj38mOmhkZ0lHw=="], - "eslint-scope": ["eslint-scope@5.1.1", "", { "dependencies": { "esrecurse": "^4.3.0", "estraverse": "^4.1.1" } }, "sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw=="], "esrecurse": ["esrecurse@4.3.0", "", { "dependencies": { "estraverse": "^5.2.0" } }, "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag=="], @@ -222,8 +214,6 @@ "ignore": ["ignore@7.0.5", "", {}, "sha512-Hs59xBNfUIunMFgWAbGX5cq6893IbWg4KnrjbYwX3tx0ztorVgTDA6B2sxf8ejHJ4wz8BqGUMYlnzNBer5NvGg=="], - "import-in-the-middle": ["import-in-the-middle@1.15.0", "", { "dependencies": { "acorn": "^8.14.0", "acorn-import-attributes": "^1.9.5", "cjs-module-lexer": "^1.2.2", "module-details-from-path": "^1.0.3" } }, "sha512-bpQy+CrsRmYmoPMAE/0G33iwRqwW4ouqdRg8jgbH3aKuCtOc8lxgmYXg2dMM92CRiGP660EtBcymH/eVUpCSaA=="], - "import-local": ["import-local@3.2.0", "", { "dependencies": { "pkg-dir": "^4.2.0", "resolve-cwd": "^3.0.0" }, "bin": { "import-local-fixture": "fixtures/cli.js" } }, "sha512-2SPlun1JUPWoM6t3F0dw0FkCF/jWY8kttcY4f599GLTSjh2OCuuhdTkJQsEcZzBqbXZGKMK2OqW1oZsjtf/gQA=="], "interpret": ["interpret@3.1.1", "", {}, "sha512-6xwYfHbajpoF0xLW+iwLkhwgvLoZDfjYfoFNu8ftMoXINzwuymNLd9u/KmwtdT2GbR+/Cz66otEGEVVUHX9QLQ=="], diff --git a/vendor/package.json b/vendor/package.json index 903597980bb..b4274a069c8 100644 --- a/vendor/package.json +++ b/vendor/package.json @@ -14,9 +14,7 @@ "@opentelemetry/resources": ">=1.0.0 <1.31.0", "crypto-randomuuid": "^1.0.0", "dc-polyfill": "^0.1.10", - "escape-string-regexp": "^5.0.0", "ignore": "^7.0.5", - "import-in-the-middle": "^1.14.2", "istanbul-lib-coverage": "^3.2.2", "jest-docblock": "^29.7.0", "jsonpath-plus": "^10.3.0", diff --git a/yarn.lock b/yarn.lock index d601674514a..233910bd290 100644 --- a/yarn.lock +++ b/yarn.lock @@ -901,12 +901,17 @@ accepts@^2.0.0: mime-types "^3.0.0" negotiator "^1.0.0" +acorn-import-attributes@^1.9.5: + version "1.9.5" + resolved "https://registry.yarnpkg.com/acorn-import-attributes/-/acorn-import-attributes-1.9.5.tgz#7eb1557b1ba05ef18b5ed0ec67591bfab04688ef" + integrity sha512-n02Vykv5uA3eHGM/Z2dQrcD56kL8TyDb2p1+0P83PClMnC/nc+anbQRhIOWnSq4Ke/KvDPrY3C9hDtC/A3eHnQ== + acorn-jsx@^5.3.2: version "5.3.2" resolved "https://registry.yarnpkg.com/acorn-jsx/-/acorn-jsx-5.3.2.tgz#7ed5bb55908b3b2f1bc55c6af1653bada7f07937" integrity sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ== -acorn@^8.15.0: +acorn@^8.14.0, acorn@^8.15.0: version "8.15.0" resolved "https://registry.yarnpkg.com/acorn/-/acorn-8.15.0.tgz#a360898bc415edaac46c8241f6383975b930b816" integrity sha512-NZyJarBfL7nWwIq+FDL6Zp/yHEhePMNnnJ0y3qfieCrmNvYct8uvtiV41UvlSe6apAfk0fY1FbWx+NwfmpvtTg== @@ -1405,6 +1410,11 @@ ci-info@^4.3.1: resolved "https://registry.yarnpkg.com/ci-info/-/ci-info-4.3.1.tgz#355ad571920810b5623e11d40232f443f16f1daa" integrity sha512-Wdy2Igu8OcBpI2pZePZ5oWjPC38tmDVx5WKUXKwlLYkA0ozo85sLsLvkBbBn/sZaSCMFOGZJ14fvW9t5/d7kdA== +cjs-module-lexer@^1.2.2: + version "1.4.3" + resolved "https://registry.yarnpkg.com/cjs-module-lexer/-/cjs-module-lexer-1.4.3.tgz#0f79731eb8cfe1ec72acd4066efac9d61991b00d" + integrity sha512-9z8TZaGM1pfswYeXrUpzPrkx8UnWYdhJclsiYMm6x/w5+nN+8Tf/LnAgfLGQCm59qAOxU8WwHEq2vNwF6i4j+Q== + clean-regexp@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/clean-regexp/-/clean-regexp-1.0.0.tgz#8df7c7aae51fd36874e8f8d05b9180bc11a3fed7" @@ -1891,6 +1901,11 @@ escape-string-regexp@^4.0.0: resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz#14ba83a5d373e3d311e5afca29cf5bfad965bf34" integrity sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA== +escape-string-regexp@^5.0.0: + version "5.0.0" + resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-5.0.0.tgz#4683126b500b61762f2dbebace1806e8be31b1c8" + integrity sha512-/veY75JbMK4j1yjvuUxuVsiS/hr/4iHs9FTT6cgTexxdE0Ly/glccBAkloH/DofkjRbZU3bnoj38mOmhkZ0lHw== + eslint-compat-utils@^0.5.1: version "0.5.1" resolved "https://registry.yarnpkg.com/eslint-compat-utils/-/eslint-compat-utils-0.5.1.tgz#7fc92b776d185a70c4070d03fd26fde3d59652e4" @@ -2620,6 +2635,16 @@ import-fresh@^3.2.1: parent-module "^1.0.0" resolve-from "^4.0.0" +import-in-the-middle@^1.14.2: + version "1.15.0" + resolved "https://registry.yarnpkg.com/import-in-the-middle/-/import-in-the-middle-1.15.0.tgz#9e20827a322bbadaeb5e3bac49ea8f6d4685fdd8" + integrity sha512-bpQy+CrsRmYmoPMAE/0G33iwRqwW4ouqdRg8jgbH3aKuCtOc8lxgmYXg2dMM92CRiGP660EtBcymH/eVUpCSaA== + dependencies: + acorn "^8.14.0" + acorn-import-attributes "^1.9.5" + cjs-module-lexer "^1.2.2" + module-details-from-path "^1.0.3" + imurmurhash@^0.1.4: version "0.1.4" resolved "https://registry.yarnpkg.com/imurmurhash/-/imurmurhash-0.1.4.tgz#9218b9b2b928a238b13dc4fb6b6d576f231453ea" @@ -4382,6 +4407,7 @@ streamsearch@^1.1.0: integrity sha512-Mcc5wHehp9aXz1ax6bZUyY5afg9u2rv5cqQI3mRrYkGC8rW2hM02jWuwjtL++LS5qinSyhj2QfLyNsuc+VsExg== "string-width-cjs@npm:string-width@^4.2.0", string-width@^4.0.0, string-width@^4.1.0, string-width@^4.2.0, string-width@^4.2.2, string-width@^4.2.3: + name string-width-cjs version "4.2.3" resolved "https://registry.yarnpkg.com/string-width/-/string-width-4.2.3.tgz#269c7117d27b05ad2e536830a8ec895ef9c6d010" integrity sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g== @@ -4446,6 +4472,7 @@ string_decoder@~1.1.1: safe-buffer "~5.1.0" "strip-ansi-cjs@npm:strip-ansi@^6.0.1", strip-ansi@^6.0.0, strip-ansi@^6.0.1: + name strip-ansi-cjs version "6.0.1" resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-6.0.1.tgz#9e26c63d30f53443e9489495b2105d37b67a85d9" integrity sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A== @@ -4923,6 +4950,7 @@ workerpool@^9.2.0: integrity sha512-TmPRQYYSAnnDiEB0P/Ytip7bFGvqnSU6I2BcuSw7Hx+JSg/DsUi5ebYfc8GYaSdpuvOcEs6dXxPurOYpe9QFwg== "wrap-ansi-cjs@npm:wrap-ansi@^7.0.0", wrap-ansi@^7.0.0: + name wrap-ansi-cjs version "7.0.0" resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-7.0.0.tgz#67e145cff510a6a6984bdf1152911d69d2eb9e43" integrity sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q== From 7db38c36d3662d7a245dc689357cee1c773ef163 Mon Sep 17 00:00:00 2001 From: rochdev Date: Thu, 20 Nov 2025 20:19:17 -0500 Subject: [PATCH 05/95] code cleanup --- packages/node_modules/@opentelemetry/core.js | 2 +- packages/node_modules/@opentelemetry/resources.js | 2 +- vendor/bun.lock | 1 - vendor/package.json | 4 ---- 4 files changed, 2 insertions(+), 7 deletions(-) diff --git a/packages/node_modules/@opentelemetry/core.js b/packages/node_modules/@opentelemetry/core.js index 2fcf4fd71de..314e3b23ef0 100644 --- a/packages/node_modules/@opentelemetry/core.js +++ b/packages/node_modules/@opentelemetry/core.js @@ -1 +1 @@ -(()=>{"use strict";var t={d:(e,r)=>{for(var n in r)t.o(r,n)&&!t.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:r[n]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r:t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}},e={};t.r(e),t.d(e,{AlwaysOffSampler:()=>Ke,AlwaysOnSampler:()=>We,AnchoredClock:()=>z,BindOnceFuture:()=>Lr,CompositePropagator:()=>re,DEFAULT_ATTRIBUTE_COUNT_LIMIT:()=>Ut,DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT:()=>Mt,DEFAULT_ENVIRONMENT:()=>xt,DEFAULT_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT:()=>Dt,DEFAULT_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT:()=>Bt,ExportResultCode:()=>at,ParentBasedSampler:()=>Ye,RPCType:()=>Be,RandomIdGenerator:()=>zt,SDK_INFO:()=>qt,TRACE_PARENT_HEADER:()=>we,TRACE_STATE_HEADER:()=>Me,TimeoutError:()=>yr,TraceIdRatioBasedSampler:()=>ze,TraceState:()=>Ne,TracesSamplerValues:()=>ut,VERSION:()=>Qt,W3CBaggagePropagator:()=>Y,W3CTraceContextPropagator:()=>Xe,_globalThis:()=>Wt,addHrTimes:()=>St,baggageUtils:()=>mr,callWithTimeout:()=>dr,deleteRPCMetadata:()=>Ve,getEnv:()=>Ht,getEnvWithoutDefaults:()=>Kt,getRPCMetadata:()=>Fe,getTimeOrigin:()=>pt,globalErrorHandler:()=>it,hexToBase64:()=>Yt,hexToBinary:()=>Pt,hrTime:()=>Et,hrTimeDuration:()=>Ot,hrTimeToMicroseconds:()=>vt,hrTimeToMilliseconds:()=>gt,hrTimeToNanoseconds:()=>dt,hrTimeToTimeStamp:()=>yt,internal:()=>Ar,isAttributeKey:()=>q,isAttributeValue:()=>tt,isTimeInput:()=>Rt,isTimeInputHrTime:()=>ht,isTracingSuppressed:()=>V,isUrlIgnored:()=>hr,isWrapped:()=>Rr,loggingErrorHandler:()=>rt,merge:()=>ur,millisToHrTime:()=>_t,otperformance:()=>ct,parseEnvironment:()=>kt,parseTraceParent:()=>De,sanitizeAttributes:()=>Q,setGlobalErrorHandler:()=>ot,setRPCMetadata:()=>Ge,suppressTracing:()=>j,timeInputToHrTime:()=>Tt,unrefTimer:()=>te,unsuppressTracing:()=>G,urlMatches:()=>vr});var r="object"==typeof globalThis?globalThis:global,n="1.9.0",o=/^(\d+)\.(\d+)\.(\d+)(-(.+))?$/,i=function(t){var e=new Set([t]),r=new Set,n=t.match(o);if(!n)return function(){return!1};var i=+n[1],a=+n[2],u=+n[3];if(null!=n[4])return function(e){return e===t};function c(t){return r.add(t),!1}function l(t){return e.add(t),!0}return function(t){if(e.has(t))return!0;if(r.has(t))return!1;var n=t.match(o);if(!n)return c(t);var f=+n[1],s=+n[2],_=+n[3];return null!=n[4]||i!==f?c(t):0===i?a===s&&u<=_?l(t):c(t):a<=s?l(t):c(t)}}(n),a=n.split(".")[0],u=Symbol.for("opentelemetry.js.api."+a),c=r;function l(t,e,r,o){var i;void 0===o&&(o=!1);var a=c[u]=null!==(i=c[u])&&void 0!==i?i:{version:n};if(!o&&a[t]){var l=new Error("@opentelemetry/api: Attempted duplicate registration of API: "+t);return r.error(l.stack||l.message),!1}return a.version!==n?(l=new Error("@opentelemetry/api: Registration of version v"+a.version+" for "+t+" does not match previously registered API v"+n),r.error(l.stack||l.message),!1):(a[t]=e,r.debug("@opentelemetry/api: Registered a global for "+t+" v"+n+"."),!0)}function f(t){var e,r,n=null===(e=c[u])||void 0===e?void 0:e.version;if(n&&i(n))return null===(r=c[u])||void 0===r?void 0:r[t]}function s(t,e){e.debug("@opentelemetry/api: Unregistering a global for "+t+" v"+n+".");var r=c[u];r&&delete r[t]}var _=function(){function t(){}return t.prototype.inject=function(t,e){},t.prototype.extract=function(t,e){return t},t.prototype.fields=function(){return[]},t}(),p={get:function(t,e){if(null!=t)return t[e]},keys:function(t){return null==t?[]:Object.keys(t)}},E={set:function(t,e,r){null!=t&&(t[e]=r)}};function T(t){return Symbol.for(t)}var O,y=new function t(e){var r=this;r._currentContext=e?new Map(e):new Map,r.getValue=function(t){return r._currentContext.get(t)},r.setValue=function(e,n){var o=new t(r._currentContext);return o._currentContext.set(e,n),o},r.deleteValue=function(e){var n=new t(r._currentContext);return n._currentContext.delete(e),n}},d=function(){function t(){}return t.prototype.active=function(){return y},t.prototype.with=function(t,e,r){for(var n=[],o=3;o0)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}(n),!1))},t.prototype.bind=function(t,e){return e},t.prototype.enable=function(){return this},t.prototype.disable=function(){return this},t}(),g=function(){function t(t){this._namespace=t.namespace||"DiagComponentLogger"}return t.prototype.debug=function(){for(var t=[],e=0;e0)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}(r),!1))}!function(t){t[t.NONE=0]="NONE",t[t.ERROR=30]="ERROR",t[t.WARN=50]="WARN",t[t.INFO=60]="INFO",t[t.DEBUG=70]="DEBUG",t[t.VERBOSE=80]="VERBOSE",t[t.ALL=9999]="ALL"}(O||(O={}));var h=function(){function t(){function t(t){return function(){for(var e=[],r=0;r0)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}(e),!1))}}var e=this;e.setLogger=function(t,r){var n,o,i;if(void 0===r&&(r={logLevel:O.INFO}),t===e){var a=new Error("Cannot use diag as the logger for itself. Please use a DiagLogger implementation like ConsoleDiagLogger or a custom implementation");return e.error(null!==(n=a.stack)&&void 0!==n?n:a.message),!1}"number"==typeof r&&(r={logLevel:r});var u=f("diag"),c=function(t,e){function r(r,n){var o=e[r];return"function"==typeof o&&t>=n?o.bind(e):function(){}}return tO.ALL&&(t=O.ALL),e=e||{},{error:r("error",O.ERROR),warn:r("warn",O.WARN),info:r("info",O.INFO),debug:r("debug",O.DEBUG),verbose:r("verbose",O.VERBOSE)}}(null!==(o=r.logLevel)&&void 0!==o?o:O.INFO,t);if(u&&!r.suppressOverrideMessage){var s=null!==(i=(new Error).stack)&&void 0!==i?i:"";u.warn("Current logger will be overwritten from "+s),c.warn("Current logger will overwrite one already registered from "+s)}return l("diag",c,e,!0)},e.disable=function(){s("diag",e)},e.createComponentLogger=function(t){return new g(t)},e.verbose=t("verbose"),e.debug=t("debug"),e.info=t("info"),e.warn=t("warn"),e.error=t("error")}return t.instance=function(){return this._instance||(this._instance=new t),this._instance},t}(),R="context",S=new d,L=function(){function t(){}return t.getInstance=function(){return this._instance||(this._instance=new t),this._instance},t.prototype.setGlobalContextManager=function(t){return l(R,t,h.instance())},t.prototype.active=function(){return this._getContextManager().active()},t.prototype.with=function(t,e,r){for(var n,o=[],i=3;i0)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}(o),!1))},t.prototype.bind=function(t,e){return this._getContextManager().bind(t,e)},t.prototype._getContextManager=function(){return f(R)||S},t.prototype.disable=function(){this._getContextManager().disable(),s(R,h.instance())},t}(),P=T("OpenTelemetry Baggage Key");function m(t){return t.getValue(P)||void 0}function A(){return m(L.getInstance().active())}function I(t,e){return t.setValue(P,e)}function C(t){return t.deleteValue(P)}var b=function(){function t(t){this._entries=t?new Map(t):new Map}return t.prototype.getEntry=function(t){var e=this._entries.get(t);if(e)return Object.assign({},e)},t.prototype.getAllEntries=function(){return Array.from(this._entries.entries()).map(function(t){var e=function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}(t,2);return[e[0],e[1]]})},t.prototype.setEntry=function(e,r){var n=new t(this._entries);return n._entries.set(e,r),n},t.prototype.removeEntry=function(e){var r=new t(this._entries);return r._entries.delete(e),r},t.prototype.removeEntries=function(){for(var e,r,n=[],o=0;o=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}(n),u=a.next();!u.done;u=a.next()){var c=u.value;i._entries.delete(c)}}catch(t){e={error:t}}finally{try{u&&!u.done&&(r=a.return)&&r.call(a)}finally{if(e)throw e.error}}return i},t.prototype.clear=function(){return new t},t}(),N=Symbol("BaggageEntryMetadata"),w=h.instance();function M(t){return void 0===t&&(t={}),new b(new Map(Object.entries(t)))}var U="propagation",D=new _,B=function(){function t(){this.createBaggage=M,this.getBaggage=m,this.getActiveBaggage=A,this.setBaggage=I,this.deleteBaggage=C}return t.getInstance=function(){return this._instance||(this._instance=new t),this._instance},t.prototype.setGlobalPropagator=function(t){return l(U,t,h.instance())},t.prototype.inject=function(t,e,r){return void 0===r&&(r=E),this._getGlobalPropagator().inject(t,e,r)},t.prototype.extract=function(t,e,r){return void 0===r&&(r=p),this._getGlobalPropagator().extract(t,e,r)},t.prototype.fields=function(){return this._getGlobalPropagator().fields()},t.prototype.disable=function(){s(U,h.instance())},t.prototype._getGlobalPropagator=function(){return f(U)||D},t}(),x=B.getInstance(),X=T("OpenTelemetry SDK Context Key SUPPRESS_TRACING");function j(t){return t.setValue(X,!0)}function G(t){return t.deleteValue(X)}function V(t){return!0===t.getValue(X)}var F=",",k="baggage";function H(t){return t.reduce(function(t,e){var r=""+t+(""!==t?F:"")+e;return r.length>8192?t:r},"")}function K(t){return t.getAllEntries().map(function(t){var e=function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}(t,2),r=e[0],n=e[1],o=encodeURIComponent(r)+"="+encodeURIComponent(n.value);return void 0!==n.metadata&&(o+=";"+n.metadata.toString()),o})}function W(t){var e=t.split(";");if(!(e.length<=0)){var r=e.shift();if(r){var n=r.indexOf("=");if(!(n<=0)){var o,i,a=decodeURIComponent(r.substring(0,n).trim()),u=decodeURIComponent(r.substring(n+1).trim());return e.length>0&&("string"!=typeof(i=e.join(";"))&&(w.error("Cannot create baggage metadata from unknown type: "+typeof i),i=""),o={__TYPE__:N,toString:function(){return i}}),{key:a,value:u,metadata:o}}}}}var Y=function(){function t(){}return t.prototype.inject=function(t,e,r){var n=x.getBaggage(t);if(n&&!V(t)){var o=H(K(n).filter(function(t){return t.length<=4096}).slice(0,180));o.length>0&&r.set(e,k,o)}},t.prototype.extract=function(t,e,r){var n=r.get(e,k),o=Array.isArray(n)?n.join(F):n;if(!o)return t;var i={};return 0===o.length?t:(o.split(F).forEach(function(t){var e=W(t);if(e){var r={value:e.value};e.metadata&&(r.metadata=e.metadata),i[e.key]=r}}),0===Object.entries(i).length?t:x.setBaggage(t,x.createBaggage(i)))},t.prototype.fields=function(){return[k]},t}(),z=function(){function t(t,e){this._monotonicClock=e,this._epochMillis=t.now(),this._performanceMillis=e.now()}return t.prototype.now=function(){var t=this._monotonicClock.now()-this._performanceMillis;return this._epochMillis+t},t}(),Z=h.instance(),J=function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},$=function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a};function Q(t){var e,r,n={};if("object"!=typeof t||null==t)return n;try{for(var o=J(Object.entries(t)),i=o.next();!i.done;i=o.next()){var a=$(i.value,2),u=a[0],c=a[1];q(u)?tt(c)?Array.isArray(c)?n[u]=c.slice():n[u]=c:Z.warn("Invalid attribute value set for key: "+u):Z.warn("Invalid attribute key: "+u)}}catch(t){e={error:t}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(e)throw e.error}}return n}function q(t){return"string"==typeof t&&t.length>0}function tt(t){return null==t||(Array.isArray(t)?function(t){var e,r,n;try{for(var o=J(t),i=o.next();!i.done;i=o.next()){var a=i.value;if(null!=a){if(!n){if(et(a)){n=typeof a;continue}return!1}if(typeof a!==n)return!1}}}catch(t){e={error:t}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(e)throw e.error}}return!0}(t):et(t))}function et(t){switch(typeof t){case"number":case"boolean":case"string":return!0}return!1}function rt(){return function(t){Z.error(function(t){return"string"==typeof t?t:JSON.stringify(function(t){for(var e={},r=t;null!==r;)Object.getOwnPropertyNames(r).forEach(function(t){if(!e[t]){var n=r[t];n&&(e[t]=String(n))}}),r=Object.getPrototypeOf(r);return e}(t))}(t))}}var nt=rt();function ot(t){nt=t}function it(t){try{nt(t)}catch(t){}}var at,ut,ct=require("perf_hooks").performance,lt=9,ft=Math.pow(10,6),st=Math.pow(10,lt);function _t(t){var e=t/1e3;return[Math.trunc(e),Math.round(t%1e3*ft)]}function pt(){var t=ct.timeOrigin;if("number"!=typeof t){var e=ct;t=e.timing&&e.timing.fetchStart}return t}function Et(t){return St(_t(pt()),_t("number"==typeof t?t:ct.now()))}function Tt(t){if(ht(t))return t;if("number"==typeof t)return t=st&&(r[1]-=st,r[0]+=1),r}function Lt(t){return t>=48&&t<=57?t-48:t>=97&&t<=102?t-87:t-55}function Pt(t){for(var e=new Uint8Array(t.length/2),r=0,n=0;n-1}var Ct=["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 bt(t){return Ct.indexOf(t)>-1}var Nt=["OTEL_NO_PATCH_MODULES","OTEL_PROPAGATORS","OTEL_SEMCONV_STABILITY_OPT_IN"];function wt(t){return Nt.indexOf(t)>-1}var Mt=1/0,Ut=128,Dt=128,Bt=128,xt={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:O.INFO,OTEL_NO_PATCH_MODULES:[],OTEL_PROPAGATORS:["tracecontext","baggage"],OTEL_RESOURCE_ATTRIBUTES:"",OTEL_SERVICE_NAME:"",OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT:Mt,OTEL_ATTRIBUTE_COUNT_LIMIT:Ut,OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT:Mt,OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT:Ut,OTEL_LOGRECORD_ATTRIBUTE_VALUE_LENGTH_LIMIT:Mt,OTEL_LOGRECORD_ATTRIBUTE_COUNT_LIMIT:Ut,OTEL_SPAN_EVENT_COUNT_LIMIT:128,OTEL_SPAN_LINK_COUNT_LIMIT:128,OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT:Dt,OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT:Bt,OTEL_TRACES_EXPORTER:"",OTEL_TRACES_SAMPLER:ut.ParentBasedAlwaysOn,OTEL_TRACES_SAMPLER_ARG:"",OTEL_LOGS_EXPORTER:"",OTEL_EXPORTER_OTLP_INSECURE:"",OTEL_EXPORTER_OTLP_TRACES_INSECURE:"",OTEL_EXPORTER_OTLP_METRICS_INSECURE:"",OTEL_EXPORTER_OTLP_LOGS_INSECURE:"",OTEL_EXPORTER_OTLP_CERTIFICATE:"",OTEL_EXPORTER_OTLP_TRACES_CERTIFICATE:"",OTEL_EXPORTER_OTLP_METRICS_CERTIFICATE:"",OTEL_EXPORTER_OTLP_LOGS_CERTIFICATE:"",OTEL_EXPORTER_OTLP_COMPRESSION:"",OTEL_EXPORTER_OTLP_TRACES_COMPRESSION:"",OTEL_EXPORTER_OTLP_METRICS_COMPRESSION:"",OTEL_EXPORTER_OTLP_LOGS_COMPRESSION:"",OTEL_EXPORTER_OTLP_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_TRACES_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_METRICS_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_LOGS_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_TRACES_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_METRICS_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_LOGS_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_TRACES_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_METRICS_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_LOGS_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE:"cumulative",OTEL_SEMCONV_STABILITY_OPT_IN:[]};function Xt(t,e,r){if(void 0!==r[t]){var n=String(r[t]);e[t]="true"===n.toLowerCase()}}function jt(t,e,r,n,o){if(void 0===n&&(n=-1/0),void 0===o&&(o=1/0),void 0!==r[t]){var i=Number(r[t]);isNaN(i)||(e[t]=io?o:i)}}function Gt(t,e,r,n){void 0===n&&(n=mt);var o=r[t];"string"==typeof o&&(e[t]=o.split(n).map(function(t){return t.trim()}))}var Vt={ALL:O.ALL,VERBOSE:O.VERBOSE,DEBUG:O.DEBUG,INFO:O.INFO,WARN:O.WARN,ERROR:O.ERROR,NONE:O.NONE};function Ft(t,e,r){var n=r[t];if("string"==typeof n){var o=Vt[n.toUpperCase()];null!=o&&(e[t]=o)}}function kt(t){var e={};for(var r in xt){var n=r;if("OTEL_LOG_LEVEL"===n)Ft(n,e,t);else if(It(n))Xt(n,e,t);else if(bt(n))jt(n,e,t);else if(wt(n))Gt(n,e,t);else{var o=t[n];null!=o&&(e[n]=String(o))}}return e}function Ht(){var t=kt(process.env);return Object.assign({},xt,t)}function Kt(){return kt(process.env)}var Wt="object"==typeof globalThis?globalThis:global;function Yt(t){return Buffer.from(Pt(t)).toString("base64")}var zt=function(){this.generateTraceId=Jt(16),this.generateSpanId=Jt(8)},Zt=Buffer.allocUnsafe(16);function Jt(t){return function(){for(var e=0;e>>0,4*e);for(e=0;e0);e++)e===t-1&&(Zt[t-1]=1);return Zt.toString("hex",0,t)}}var $t,Qt="1.30.1",qt=(($t={})["telemetry.sdk.name"]="opentelemetry",$t["process.runtime.name"]="node",$t["telemetry.sdk.language"]="nodejs",$t["telemetry.sdk.version"]=Qt,$t);function te(t){t.unref()}var ee,re=function(){function t(t){var e;void 0===t&&(t={}),this._propagators=null!==(e=t.propagators)&&void 0!==e?e:[],this._fields=Array.from(new Set(this._propagators.map(function(t){return"function"==typeof t.fields?t.fields():[]}).reduce(function(t,e){return t.concat(e)},[])))}return t.prototype.inject=function(t,e,r){var n,o;try{for(var i=function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}(this._propagators),a=i.next();!a.done;a=i.next()){var u=a.value;try{u.inject(t,e,r)}catch(t){Z.warn("Failed to inject with "+u.constructor.name+". Err: "+t.message)}}}catch(t){n={error:t}}finally{try{a&&!a.done&&(o=i.return)&&o.call(i)}finally{if(n)throw n.error}}},t.prototype.extract=function(t,e,r){return this._propagators.reduce(function(t,n){try{return n.extract(t,e,r)}catch(t){Z.warn("Failed to extract with "+n.constructor.name+". Err: "+t.message)}return t},t)},t.prototype.fields=function(){return this._fields.slice()},t}();!function(t){t[t.NONE=0]="NONE",t[t.SAMPLED=1]="SAMPLED"}(ee||(ee={}));var ne="0000000000000000",oe="00000000000000000000000000000000",ie={traceId:oe,spanId:ne,traceFlags:ee.NONE},ae=function(){function t(t){void 0===t&&(t=ie),this._spanContext=t}return t.prototype.spanContext=function(){return this._spanContext},t.prototype.setAttribute=function(t,e){return this},t.prototype.setAttributes=function(t){return this},t.prototype.addEvent=function(t,e){return this},t.prototype.addLink=function(t){return this},t.prototype.addLinks=function(t){return this},t.prototype.setStatus=function(t){return this},t.prototype.updateName=function(t){return this},t.prototype.end=function(t){},t.prototype.isRecording=function(){return!1},t.prototype.recordException=function(t,e){},t}(),ue=T("OpenTelemetry Context Key SPAN");function ce(t){return t.getValue(ue)||void 0}function le(){return ce(L.getInstance().active())}function fe(t,e){return t.setValue(ue,e)}function se(t){return t.deleteValue(ue)}function _e(t,e){return fe(t,new ae(e))}function pe(t){var e;return null===(e=ce(t))||void 0===e?void 0:e.spanContext()}var Ee=/^([0-9a-f]{32})$/i,Te=/^[0-9a-f]{16}$/i;function Oe(t){return Ee.test(t)&&t!==oe}function ye(t){return Oe(t.traceId)&&(e=t.spanId,Te.test(e)&&e!==ne);var e}function de(t){return new ae(t)}var ge=L.getInstance(),ve=function(){function t(){}return t.prototype.startSpan=function(t,e,r){if(void 0===r&&(r=ge.active()),Boolean(null==e?void 0:e.root))return new ae;var n,o=r&&pe(r);return"object"==typeof(n=o)&&"string"==typeof n.spanId&&"string"==typeof n.traceId&&"number"==typeof n.traceFlags&&ye(o)?new ae(o):new ae},t.prototype.startActiveSpan=function(t,e,r,n){var o,i,a;if(!(arguments.length<2)){2===arguments.length?a=e:3===arguments.length?(o=e,a=r):(o=e,i=r,a=n);var u=null!=i?i:ge.active(),c=this.startSpan(t,o,u),l=fe(u,c);return ge.with(l,a,void 0,c)}},t}(),he=new ve,Re=function(){function t(t,e,r,n){this._provider=t,this.name=e,this.version=r,this.options=n}return t.prototype.startSpan=function(t,e,r){return this._getTracer().startSpan(t,e,r)},t.prototype.startActiveSpan=function(t,e,r,n){var o=this._getTracer();return Reflect.apply(o.startActiveSpan,o,arguments)},t.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):he},t}(),Se=new(function(){function t(){}return t.prototype.getTracer=function(t,e,r){return new ve},t}()),Le=function(){function t(){}return t.prototype.getTracer=function(t,e,r){var n;return null!==(n=this.getDelegateTracer(t,e,r))&&void 0!==n?n:new Re(this,t,e,r)},t.prototype.getDelegate=function(){var t;return null!==(t=this._delegate)&&void 0!==t?t:Se},t.prototype.setDelegate=function(t){this._delegate=t},t.prototype.getDelegateTracer=function(t,e,r){var n;return null===(n=this._delegate)||void 0===n?void 0:n.getTracer(t,e,r)},t}(),Pe="trace",me=function(){function t(){this._proxyTracerProvider=new Le,this.wrapSpanContext=de,this.isSpanContextValid=ye,this.deleteSpan=se,this.getSpan=ce,this.getActiveSpan=le,this.getSpanContext=pe,this.setSpan=fe,this.setSpanContext=_e}return t.getInstance=function(){return this._instance||(this._instance=new t),this._instance},t.prototype.setGlobalTracerProvider=function(t){var e=l(Pe,this._proxyTracerProvider,h.instance());return e&&this._proxyTracerProvider.setDelegate(t),e},t.prototype.getTracerProvider=function(){return f(Pe)||this._proxyTracerProvider},t.prototype.getTracer=function(t,e){return this.getTracerProvider().getTracer(t,e)},t.prototype.disable=function(){s(Pe,h.instance()),this._proxyTracerProvider=new Le},t}().getInstance(),Ae="[_0-9a-z-*/]",Ie=new RegExp("^(?:[a-z]"+Ae+"{0,255}|[a-z0-9]"+Ae+"{0,240}@[a-z]"+Ae+"{0,13})$"),Ce=/^[ -~]{0,255}[!-~]$/,be=/,|=/,Ne=function(){function t(t){this._internalState=new Map,t&&this._parse(t)}return t.prototype.set=function(t,e){var r=this._clone();return r._internalState.has(t)&&r._internalState.delete(t),r._internalState.set(t,e),r},t.prototype.unset=function(t){var e=this._clone();return e._internalState.delete(t),e},t.prototype.get=function(t){return this._internalState.get(t)},t.prototype.serialize=function(){var t=this;return this._keys().reduce(function(e,r){return e.push(r+"="+t.get(r)),e},[]).join(",")},t.prototype._parse=function(t){t.length>512||(this._internalState=t.split(",").reverse().reduce(function(t,e){var r=e.trim(),n=r.indexOf("=");if(-1!==n){var o=r.slice(0,n),i=r.slice(n+1,e.length);(function(t){return Ie.test(t)})(o)&&function(t){return Ce.test(t)&&!be.test(t)}(i)&&t.set(o,i)}return t},new Map),this._internalState.size>32&&(this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,32))))},t.prototype._keys=function(){return Array.from(this._internalState.keys()).reverse()},t.prototype._clone=function(){var e=new t;return e._internalState=new Map(this._internalState),e},t}(),we="traceparent",Me="tracestate",Ue=new RegExp("^\\s?((?!ff)[\\da-f]{2})-((?![0]{32})[\\da-f]{32})-((?![0]{16})[\\da-f]{16})-([\\da-f]{2})(-.*)?\\s?$");function De(t){var e=Ue.exec(t);return e?"00"===e[1]&&e[5]?null:{traceId:e[2],spanId:e[3],traceFlags:parseInt(e[4],16)}:null}var Be,xe,Xe=function(){function t(){}return t.prototype.inject=function(t,e,r){var n=me.getSpanContext(t);if(n&&!V(t)&&ye(n)){var o="00-"+n.traceId+"-"+n.spanId+"-0"+Number(n.traceFlags||ee.NONE).toString(16);r.set(e,we,o),n.traceState&&r.set(e,Me,n.traceState.serialize())}},t.prototype.extract=function(t,e,r){var n=r.get(e,we);if(!n)return t;var o=Array.isArray(n)?n[0]:n;if("string"!=typeof o)return t;var i=De(o);if(!i)return t;i.isRemote=!0;var a=r.get(e,Me);if(a){var u=Array.isArray(a)?a.join(","):a;i.traceState=new Ne("string"==typeof u?u:void 0)}return me.setSpanContext(t,i)},t.prototype.fields=function(){return[we,Me]},t}(),je=T("OpenTelemetry SDK Context Key RPC_METADATA");function Ge(t,e){return t.setValue(je,e)}function Ve(t){return t.deleteValue(je)}function Fe(t){return t.getValue(je)}!function(t){t.HTTP="http"}(Be||(Be={})),function(t){t[t.NOT_RECORD=0]="NOT_RECORD",t[t.RECORD=1]="RECORD",t[t.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"}(xe||(xe={}));var ke,He,Ke=function(){function t(){}return t.prototype.shouldSample=function(){return{decision:xe.NOT_RECORD}},t.prototype.toString=function(){return"AlwaysOffSampler"},t}(),We=function(){function t(){}return t.prototype.shouldSample=function(){return{decision:xe.RECORD_AND_SAMPLED}},t.prototype.toString=function(){return"AlwaysOnSampler"},t}(),Ye=function(){function t(t){var e,r,n,o;this._root=t.root,this._root||(it(new Error("ParentBasedSampler must have a root sampler configured")),this._root=new We),this._remoteParentSampled=null!==(e=t.remoteParentSampled)&&void 0!==e?e:new We,this._remoteParentNotSampled=null!==(r=t.remoteParentNotSampled)&&void 0!==r?r:new Ke,this._localParentSampled=null!==(n=t.localParentSampled)&&void 0!==n?n:new We,this._localParentNotSampled=null!==(o=t.localParentNotSampled)&&void 0!==o?o:new Ke}return t.prototype.shouldSample=function(t,e,r,n,o,i){var a=me.getSpanContext(t);return a&&ye(a)?a.isRemote?a.traceFlags&ee.SAMPLED?this._remoteParentSampled.shouldSample(t,e,r,n,o,i):this._remoteParentNotSampled.shouldSample(t,e,r,n,o,i):a.traceFlags&ee.SAMPLED?this._localParentSampled.shouldSample(t,e,r,n,o,i):this._localParentNotSampled.shouldSample(t,e,r,n,o,i):this._root.shouldSample(t,e,r,n,o,i)},t.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()+"}"},t}(),ze=function(){function t(t){void 0===t&&(t=0),this._ratio=t,this._ratio=this._normalize(t),this._upperBound=Math.floor(4294967295*this._ratio)}return t.prototype.shouldSample=function(t,e){return{decision:Oe(e)&&this._accumulate(e)=1?1:t<=0?0:t},t.prototype._accumulate=function(t){for(var e=0,r=0;r>>0}return e},t}(),Ze="[object Object]",Je="[object Null]",$e="[object Undefined]",Qe=Function.prototype.toString,qe=Qe.call(Object),tr=(ke=Object.getPrototypeOf,He=Object,function(t){return ke(He(t))}),er=Object.prototype,rr=er.hasOwnProperty,nr=Symbol?Symbol.toStringTag:void 0,or=er.toString;function ir(t){if(!function(t){return null!=t&&"object"==typeof t}(t)||function(t){return null==t?void 0===t?$e:Je:nr&&nr in Object(t)?function(t){var e=rr.call(t,nr),r=t[nr],n=!1;try{t[nr]=void 0,n=!0}catch(t){}var o=or.call(t);return n&&(e?t[nr]=r:delete t[nr]),o}(t):function(t){return or.call(t)}(t)}(t)!==Ze)return!1;var e=tr(t);if(null===e)return!0;var r=rr.call(e,"constructor")&&e.constructor;return"function"==typeof r&&r instanceof r&&Qe.call(r)===qe}var ar=20;function ur(){for(var t=[],e=0;e0;)r=lr(r,t.shift(),0,n);return r}function cr(t){return sr(t)?t.slice():t}function lr(t,e,r,n){var o;if(void 0===r&&(r=0),!(r>ar)){if(r++,Er(t)||Er(e)||_r(e))o=cr(e);else if(sr(t)){if(o=t.slice(),sr(e))for(var i=0,a=e.length;i=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};function vr(t,e){return"string"==typeof e?t===e:!!t.match(e)}function hr(t,e){var r,n;if(!e)return!1;try{for(var o=gr(e),i=o.next();!i.done;i=o.next())if(vr(t,i.value))return!0}catch(t){r={error:t}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return!1}function Rr(t){return"function"==typeof t&&"function"==typeof t.__original&&"function"==typeof t.__unwrap&&!0===t.__wrapped}var Sr=function(){function t(){var t=this;this._promise=new Promise(function(e,r){t._resolve=e,t._reject=r})}return Object.defineProperty(t.prototype,"promise",{get:function(){return this._promise},enumerable:!1,configurable:!0}),t.prototype.resolve=function(t){this._resolve(t)},t.prototype.reject=function(t){this._reject(t)},t}(),Lr=function(){function t(t,e){this._callback=t,this._that=e,this._isCalled=!1,this._deferred=new Sr}return Object.defineProperty(t.prototype,"isCalled",{get:function(){return this._isCalled},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"promise",{get:function(){return this._deferred.promise},enumerable:!1,configurable:!0}),t.prototype.call=function(){for(var t,e=this,r=[],n=0;n0)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}(r),!1))).then(function(t){return e._deferred.resolve(t)},function(t){return e._deferred.reject(t)})}catch(t){this._deferred.reject(t)}}return this._deferred.promise},t}(),Pr=L.getInstance(),mr={getKeyPairs:K,serializeKeyPairs:H,parseKeyPairsIntoRecord:function(t){return"string"!=typeof t||0===t.length?{}:t.split(F).map(function(t){return W(t)}).filter(function(t){return void 0!==t&&t.value.length>0}).reduce(function(t,e){return t[e.key]=e.value,t},{})},parsePairKeyValue:W},Ar={_export:function(t,e){return new Promise(function(r){Pr.with(j(Pr.active()),function(){t.export(e,function(t){r(t)})})})}};module.exports=e})(); \ No newline at end of file +(()=>{"use strict";var t={d:(e,r)=>{for(var n in r)t.o(r,n)&&!t.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:r[n]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r:t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}},e={};t.r(e),t.d(e,{AlwaysOffSampler:()=>Ke,AlwaysOnSampler:()=>We,AnchoredClock:()=>z,BindOnceFuture:()=>Lr,CompositePropagator:()=>re,DEFAULT_ATTRIBUTE_COUNT_LIMIT:()=>Vt,DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT:()=>Gt,DEFAULT_ENVIRONMENT:()=>Ht,DEFAULT_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT:()=>Ft,DEFAULT_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT:()=>kt,ExportResultCode:()=>at,ParentBasedSampler:()=>Ye,RPCType:()=>Be,RandomIdGenerator:()=>Pt,SDK_INFO:()=>Nt,TRACE_PARENT_HEADER:()=>we,TRACE_STATE_HEADER:()=>Me,TimeoutError:()=>yr,TraceIdRatioBasedSampler:()=>ze,TraceState:()=>Ne,TracesSamplerValues:()=>Ct,VERSION:()=>bt,W3CBaggagePropagator:()=>Y,W3CTraceContextPropagator:()=>Xe,_globalThis:()=>wt,addHrTimes:()=>Rt,baggageUtils:()=>mr,callWithTimeout:()=>dr,deleteRPCMetadata:()=>Ve,getEnv:()=>$t,getEnvWithoutDefaults:()=>Qt,getRPCMetadata:()=>Fe,getTimeOrigin:()=>_t,globalErrorHandler:()=>it,hexToBase64:()=>qt,hexToBinary:()=>Lt,hrTime:()=>pt,hrTimeDuration:()=>Tt,hrTimeToMicroseconds:()=>gt,hrTimeToMilliseconds:()=>dt,hrTimeToNanoseconds:()=>yt,hrTimeToTimeStamp:()=>Ot,internal:()=>Ar,isAttributeKey:()=>q,isAttributeValue:()=>tt,isTimeInput:()=>ht,isTimeInputHrTime:()=>vt,isTracingSuppressed:()=>V,isUrlIgnored:()=>hr,isWrapped:()=>Rr,loggingErrorHandler:()=>rt,merge:()=>ur,millisToHrTime:()=>st,otperformance:()=>ut,parseEnvironment:()=>Jt,parseTraceParent:()=>De,sanitizeAttributes:()=>Q,setGlobalErrorHandler:()=>ot,setRPCMetadata:()=>Ge,suppressTracing:()=>j,timeInputToHrTime:()=>Et,unrefTimer:()=>te,unsuppressTracing:()=>G,urlMatches:()=>vr});var r="object"==typeof globalThis?globalThis:global,n="1.9.0",o=/^(\d+)\.(\d+)\.(\d+)(-(.+))?$/,i=function(t){var e=new Set([t]),r=new Set,n=t.match(o);if(!n)return function(){return!1};var i=+n[1],a=+n[2],u=+n[3];if(null!=n[4])return function(e){return e===t};function c(t){return r.add(t),!1}function l(t){return e.add(t),!0}return function(t){if(e.has(t))return!0;if(r.has(t))return!1;var n=t.match(o);if(!n)return c(t);var f=+n[1],s=+n[2],_=+n[3];return null!=n[4]||i!==f?c(t):0===i?a===s&&u<=_?l(t):c(t):a<=s?l(t):c(t)}}(n),a=n.split(".")[0],u=Symbol.for("opentelemetry.js.api."+a),c=r;function l(t,e,r,o){var i;void 0===o&&(o=!1);var a=c[u]=null!==(i=c[u])&&void 0!==i?i:{version:n};if(!o&&a[t]){var l=new Error("@opentelemetry/api: Attempted duplicate registration of API: "+t);return r.error(l.stack||l.message),!1}return a.version!==n?(l=new Error("@opentelemetry/api: Registration of version v"+a.version+" for "+t+" does not match previously registered API v"+n),r.error(l.stack||l.message),!1):(a[t]=e,r.debug("@opentelemetry/api: Registered a global for "+t+" v"+n+"."),!0)}function f(t){var e,r,n=null===(e=c[u])||void 0===e?void 0:e.version;if(n&&i(n))return null===(r=c[u])||void 0===r?void 0:r[t]}function s(t,e){e.debug("@opentelemetry/api: Unregistering a global for "+t+" v"+n+".");var r=c[u];r&&delete r[t]}var _=function(){function t(){}return t.prototype.inject=function(t,e){},t.prototype.extract=function(t,e){return t},t.prototype.fields=function(){return[]},t}(),p={get:function(t,e){if(null!=t)return t[e]},keys:function(t){return null==t?[]:Object.keys(t)}},E={set:function(t,e,r){null!=t&&(t[e]=r)}};function T(t){return Symbol.for(t)}var O,y=new function t(e){var r=this;r._currentContext=e?new Map(e):new Map,r.getValue=function(t){return r._currentContext.get(t)},r.setValue=function(e,n){var o=new t(r._currentContext);return o._currentContext.set(e,n),o},r.deleteValue=function(e){var n=new t(r._currentContext);return n._currentContext.delete(e),n}},d=function(){function t(){}return t.prototype.active=function(){return y},t.prototype.with=function(t,e,r){for(var n=[],o=3;o0)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}(n),!1))},t.prototype.bind=function(t,e){return e},t.prototype.enable=function(){return this},t.prototype.disable=function(){return this},t}(),g=function(){function t(t){this._namespace=t.namespace||"DiagComponentLogger"}return t.prototype.debug=function(){for(var t=[],e=0;e0)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}(r),!1))}!function(t){t[t.NONE=0]="NONE",t[t.ERROR=30]="ERROR",t[t.WARN=50]="WARN",t[t.INFO=60]="INFO",t[t.DEBUG=70]="DEBUG",t[t.VERBOSE=80]="VERBOSE",t[t.ALL=9999]="ALL"}(O||(O={}));var h=function(){function t(){function t(t){return function(){for(var e=[],r=0;r0)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}(e),!1))}}var e=this;e.setLogger=function(t,r){var n,o,i;if(void 0===r&&(r={logLevel:O.INFO}),t===e){var a=new Error("Cannot use diag as the logger for itself. Please use a DiagLogger implementation like ConsoleDiagLogger or a custom implementation");return e.error(null!==(n=a.stack)&&void 0!==n?n:a.message),!1}"number"==typeof r&&(r={logLevel:r});var u=f("diag"),c=function(t,e){function r(r,n){var o=e[r];return"function"==typeof o&&t>=n?o.bind(e):function(){}}return tO.ALL&&(t=O.ALL),e=e||{},{error:r("error",O.ERROR),warn:r("warn",O.WARN),info:r("info",O.INFO),debug:r("debug",O.DEBUG),verbose:r("verbose",O.VERBOSE)}}(null!==(o=r.logLevel)&&void 0!==o?o:O.INFO,t);if(u&&!r.suppressOverrideMessage){var s=null!==(i=(new Error).stack)&&void 0!==i?i:"";u.warn("Current logger will be overwritten from "+s),c.warn("Current logger will overwrite one already registered from "+s)}return l("diag",c,e,!0)},e.disable=function(){s("diag",e)},e.createComponentLogger=function(t){return new g(t)},e.verbose=t("verbose"),e.debug=t("debug"),e.info=t("info"),e.warn=t("warn"),e.error=t("error")}return t.instance=function(){return this._instance||(this._instance=new t),this._instance},t}(),R="context",S=new d,L=function(){function t(){}return t.getInstance=function(){return this._instance||(this._instance=new t),this._instance},t.prototype.setGlobalContextManager=function(t){return l(R,t,h.instance())},t.prototype.active=function(){return this._getContextManager().active()},t.prototype.with=function(t,e,r){for(var n,o=[],i=3;i0)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}(o),!1))},t.prototype.bind=function(t,e){return this._getContextManager().bind(t,e)},t.prototype._getContextManager=function(){return f(R)||S},t.prototype.disable=function(){this._getContextManager().disable(),s(R,h.instance())},t}(),P=T("OpenTelemetry Baggage Key");function m(t){return t.getValue(P)||void 0}function A(){return m(L.getInstance().active())}function I(t,e){return t.setValue(P,e)}function C(t){return t.deleteValue(P)}var b=function(){function t(t){this._entries=t?new Map(t):new Map}return t.prototype.getEntry=function(t){var e=this._entries.get(t);if(e)return Object.assign({},e)},t.prototype.getAllEntries=function(){return Array.from(this._entries.entries()).map(function(t){var e=function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}(t,2);return[e[0],e[1]]})},t.prototype.setEntry=function(e,r){var n=new t(this._entries);return n._entries.set(e,r),n},t.prototype.removeEntry=function(e){var r=new t(this._entries);return r._entries.delete(e),r},t.prototype.removeEntries=function(){for(var e,r,n=[],o=0;o=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}(n),u=a.next();!u.done;u=a.next()){var c=u.value;i._entries.delete(c)}}catch(t){e={error:t}}finally{try{u&&!u.done&&(r=a.return)&&r.call(a)}finally{if(e)throw e.error}}return i},t.prototype.clear=function(){return new t},t}(),N=Symbol("BaggageEntryMetadata"),w=h.instance();function M(t){return void 0===t&&(t={}),new b(new Map(Object.entries(t)))}var U="propagation",D=new _,B=function(){function t(){this.createBaggage=M,this.getBaggage=m,this.getActiveBaggage=A,this.setBaggage=I,this.deleteBaggage=C}return t.getInstance=function(){return this._instance||(this._instance=new t),this._instance},t.prototype.setGlobalPropagator=function(t){return l(U,t,h.instance())},t.prototype.inject=function(t,e,r){return void 0===r&&(r=E),this._getGlobalPropagator().inject(t,e,r)},t.prototype.extract=function(t,e,r){return void 0===r&&(r=p),this._getGlobalPropagator().extract(t,e,r)},t.prototype.fields=function(){return this._getGlobalPropagator().fields()},t.prototype.disable=function(){s(U,h.instance())},t.prototype._getGlobalPropagator=function(){return f(U)||D},t}(),x=B.getInstance(),X=T("OpenTelemetry SDK Context Key SUPPRESS_TRACING");function j(t){return t.setValue(X,!0)}function G(t){return t.deleteValue(X)}function V(t){return!0===t.getValue(X)}var F=",",k="baggage";function H(t){return t.reduce(function(t,e){var r=""+t+(""!==t?F:"")+e;return r.length>8192?t:r},"")}function K(t){return t.getAllEntries().map(function(t){var e=function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}(t,2),r=e[0],n=e[1],o=encodeURIComponent(r)+"="+encodeURIComponent(n.value);return void 0!==n.metadata&&(o+=";"+n.metadata.toString()),o})}function W(t){var e=t.split(";");if(!(e.length<=0)){var r=e.shift();if(r){var n=r.indexOf("=");if(!(n<=0)){var o,i,a=decodeURIComponent(r.substring(0,n).trim()),u=decodeURIComponent(r.substring(n+1).trim());return e.length>0&&("string"!=typeof(i=e.join(";"))&&(w.error("Cannot create baggage metadata from unknown type: "+typeof i),i=""),o={__TYPE__:N,toString:function(){return i}}),{key:a,value:u,metadata:o}}}}}var Y=function(){function t(){}return t.prototype.inject=function(t,e,r){var n=x.getBaggage(t);if(n&&!V(t)){var o=H(K(n).filter(function(t){return t.length<=4096}).slice(0,180));o.length>0&&r.set(e,k,o)}},t.prototype.extract=function(t,e,r){var n=r.get(e,k),o=Array.isArray(n)?n.join(F):n;if(!o)return t;var i={};return 0===o.length?t:(o.split(F).forEach(function(t){var e=W(t);if(e){var r={value:e.value};e.metadata&&(r.metadata=e.metadata),i[e.key]=r}}),0===Object.entries(i).length?t:x.setBaggage(t,x.createBaggage(i)))},t.prototype.fields=function(){return[k]},t}(),z=function(){function t(t,e){this._monotonicClock=e,this._epochMillis=t.now(),this._performanceMillis=e.now()}return t.prototype.now=function(){var t=this._monotonicClock.now()-this._performanceMillis;return this._epochMillis+t},t}(),Z=h.instance(),J=function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},$=function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a};function Q(t){var e,r,n={};if("object"!=typeof t||null==t)return n;try{for(var o=J(Object.entries(t)),i=o.next();!i.done;i=o.next()){var a=$(i.value,2),u=a[0],c=a[1];q(u)?tt(c)?Array.isArray(c)?n[u]=c.slice():n[u]=c:Z.warn("Invalid attribute value set for key: "+u):Z.warn("Invalid attribute key: "+u)}}catch(t){e={error:t}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(e)throw e.error}}return n}function q(t){return"string"==typeof t&&t.length>0}function tt(t){return null==t||(Array.isArray(t)?function(t){var e,r,n;try{for(var o=J(t),i=o.next();!i.done;i=o.next()){var a=i.value;if(null!=a){if(!n){if(et(a)){n=typeof a;continue}return!1}if(typeof a!==n)return!1}}}catch(t){e={error:t}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(e)throw e.error}}return!0}(t):et(t))}function et(t){switch(typeof t){case"number":case"boolean":case"string":return!0}return!1}function rt(){return function(t){Z.error(function(t){return"string"==typeof t?t:JSON.stringify(function(t){for(var e={},r=t;null!==r;)Object.getOwnPropertyNames(r).forEach(function(t){if(!e[t]){var n=r[t];n&&(e[t]=String(n))}}),r=Object.getPrototypeOf(r);return e}(t))}(t))}}var nt=rt();function ot(t){nt=t}function it(t){try{nt(t)}catch(t){}}var at,ut=require("perf_hooks").performance,ct=9,lt=Math.pow(10,6),ft=Math.pow(10,ct);function st(t){var e=t/1e3;return[Math.trunc(e),Math.round(t%1e3*lt)]}function _t(){var t=ut.timeOrigin;if("number"!=typeof t){var e=ut;t=e.timing&&e.timing.fetchStart}return t}function pt(t){return Rt(st(_t()),st("number"==typeof t?t:ut.now()))}function Et(t){if(vt(t))return t;if("number"==typeof t)return t<_t()?pt(t):st(t);if(t instanceof Date)return st(t.getTime());throw TypeError("Invalid input type")}function Tt(t,e){var r=e[0]-t[0],n=e[1]-t[1];return n<0&&(r-=1,n+=ft),[r,n]}function Ot(t){var e=ct,r=""+"0".repeat(e)+t[1]+"Z",n=r.substring(r.length-e-1);return new Date(1e3*t[0]).toISOString().replace("000Z",n)}function yt(t){return t[0]*ft+t[1]}function dt(t){return 1e3*t[0]+t[1]/1e6}function gt(t){return 1e6*t[0]+t[1]/1e3}function vt(t){return Array.isArray(t)&&2===t.length&&"number"==typeof t[0]&&"number"==typeof t[1]}function ht(t){return vt(t)||"number"==typeof t||t instanceof Date}function Rt(t,e){var r=[t[0]+e[0],t[1]+e[1]];return r[1]>=ft&&(r[1]-=ft,r[0]+=1),r}function St(t){return t>=48&&t<=57?t-48:t>=97&&t<=102?t-87:t-55}function Lt(t){for(var e=new Uint8Array(t.length/2),r=0,n=0;n>>0,4*e);for(e=0;e0);e++)e===t-1&&(mt[t-1]=1);return mt.toString("hex",0,t)}}var It,Ct,bt="1.30.1",Nt=((It={})["telemetry.sdk.name"]="opentelemetry",It["process.runtime.name"]="node",It["telemetry.sdk.language"]="nodejs",It["telemetry.sdk.version"]=bt,It),wt="object"==typeof globalThis?globalThis:global;!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"}(Ct||(Ct={}));var Mt=",",Ut=["OTEL_SDK_DISABLED"];function Dt(t){return Ut.indexOf(t)>-1}var Bt=["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 xt(t){return Bt.indexOf(t)>-1}var Xt=["OTEL_NO_PATCH_MODULES","OTEL_PROPAGATORS","OTEL_SEMCONV_STABILITY_OPT_IN"];function jt(t){return Xt.indexOf(t)>-1}var Gt=1/0,Vt=128,Ft=128,kt=128,Ht={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:O.INFO,OTEL_NO_PATCH_MODULES:[],OTEL_PROPAGATORS:["tracecontext","baggage"],OTEL_RESOURCE_ATTRIBUTES:"",OTEL_SERVICE_NAME:"",OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT:Gt,OTEL_ATTRIBUTE_COUNT_LIMIT:Vt,OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT:Gt,OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT:Vt,OTEL_LOGRECORD_ATTRIBUTE_VALUE_LENGTH_LIMIT:Gt,OTEL_LOGRECORD_ATTRIBUTE_COUNT_LIMIT:Vt,OTEL_SPAN_EVENT_COUNT_LIMIT:128,OTEL_SPAN_LINK_COUNT_LIMIT:128,OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT:Ft,OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT:kt,OTEL_TRACES_EXPORTER:"",OTEL_TRACES_SAMPLER:Ct.ParentBasedAlwaysOn,OTEL_TRACES_SAMPLER_ARG:"",OTEL_LOGS_EXPORTER:"",OTEL_EXPORTER_OTLP_INSECURE:"",OTEL_EXPORTER_OTLP_TRACES_INSECURE:"",OTEL_EXPORTER_OTLP_METRICS_INSECURE:"",OTEL_EXPORTER_OTLP_LOGS_INSECURE:"",OTEL_EXPORTER_OTLP_CERTIFICATE:"",OTEL_EXPORTER_OTLP_TRACES_CERTIFICATE:"",OTEL_EXPORTER_OTLP_METRICS_CERTIFICATE:"",OTEL_EXPORTER_OTLP_LOGS_CERTIFICATE:"",OTEL_EXPORTER_OTLP_COMPRESSION:"",OTEL_EXPORTER_OTLP_TRACES_COMPRESSION:"",OTEL_EXPORTER_OTLP_METRICS_COMPRESSION:"",OTEL_EXPORTER_OTLP_LOGS_COMPRESSION:"",OTEL_EXPORTER_OTLP_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_TRACES_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_METRICS_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_LOGS_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_TRACES_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_METRICS_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_LOGS_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_TRACES_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_METRICS_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_LOGS_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE:"cumulative",OTEL_SEMCONV_STABILITY_OPT_IN:[]};function Kt(t,e,r){if(void 0!==r[t]){var n=String(r[t]);e[t]="true"===n.toLowerCase()}}function Wt(t,e,r,n,o){if(void 0===n&&(n=-1/0),void 0===o&&(o=1/0),void 0!==r[t]){var i=Number(r[t]);isNaN(i)||(e[t]=io?o:i)}}function Yt(t,e,r,n){void 0===n&&(n=Mt);var o=r[t];"string"==typeof o&&(e[t]=o.split(n).map(function(t){return t.trim()}))}var zt={ALL:O.ALL,VERBOSE:O.VERBOSE,DEBUG:O.DEBUG,INFO:O.INFO,WARN:O.WARN,ERROR:O.ERROR,NONE:O.NONE};function Zt(t,e,r){var n=r[t];if("string"==typeof n){var o=zt[n.toUpperCase()];null!=o&&(e[t]=o)}}function Jt(t){var e={};for(var r in Ht){var n=r;if("OTEL_LOG_LEVEL"===n)Zt(n,e,t);else if(Dt(n))Kt(n,e,t);else if(xt(n))Wt(n,e,t);else if(jt(n))Yt(n,e,t);else{var o=t[n];null!=o&&(e[n]=String(o))}}return e}function $t(){var t=Jt(process.env);return Object.assign({},Ht,t)}function Qt(){return Jt(process.env)}function qt(t){return Buffer.from(Lt(t)).toString("base64")}function te(t){t.unref()}var ee,re=function(){function t(t){var e;void 0===t&&(t={}),this._propagators=null!==(e=t.propagators)&&void 0!==e?e:[],this._fields=Array.from(new Set(this._propagators.map(function(t){return"function"==typeof t.fields?t.fields():[]}).reduce(function(t,e){return t.concat(e)},[])))}return t.prototype.inject=function(t,e,r){var n,o;try{for(var i=function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}(this._propagators),a=i.next();!a.done;a=i.next()){var u=a.value;try{u.inject(t,e,r)}catch(t){Z.warn("Failed to inject with "+u.constructor.name+". Err: "+t.message)}}}catch(t){n={error:t}}finally{try{a&&!a.done&&(o=i.return)&&o.call(i)}finally{if(n)throw n.error}}},t.prototype.extract=function(t,e,r){return this._propagators.reduce(function(t,n){try{return n.extract(t,e,r)}catch(t){Z.warn("Failed to extract with "+n.constructor.name+". Err: "+t.message)}return t},t)},t.prototype.fields=function(){return this._fields.slice()},t}();!function(t){t[t.NONE=0]="NONE",t[t.SAMPLED=1]="SAMPLED"}(ee||(ee={}));var ne="0000000000000000",oe="00000000000000000000000000000000",ie={traceId:oe,spanId:ne,traceFlags:ee.NONE},ae=function(){function t(t){void 0===t&&(t=ie),this._spanContext=t}return t.prototype.spanContext=function(){return this._spanContext},t.prototype.setAttribute=function(t,e){return this},t.prototype.setAttributes=function(t){return this},t.prototype.addEvent=function(t,e){return this},t.prototype.addLink=function(t){return this},t.prototype.addLinks=function(t){return this},t.prototype.setStatus=function(t){return this},t.prototype.updateName=function(t){return this},t.prototype.end=function(t){},t.prototype.isRecording=function(){return!1},t.prototype.recordException=function(t,e){},t}(),ue=T("OpenTelemetry Context Key SPAN");function ce(t){return t.getValue(ue)||void 0}function le(){return ce(L.getInstance().active())}function fe(t,e){return t.setValue(ue,e)}function se(t){return t.deleteValue(ue)}function _e(t,e){return fe(t,new ae(e))}function pe(t){var e;return null===(e=ce(t))||void 0===e?void 0:e.spanContext()}var Ee=/^([0-9a-f]{32})$/i,Te=/^[0-9a-f]{16}$/i;function Oe(t){return Ee.test(t)&&t!==oe}function ye(t){return Oe(t.traceId)&&(e=t.spanId,Te.test(e)&&e!==ne);var e}function de(t){return new ae(t)}var ge=L.getInstance(),ve=function(){function t(){}return t.prototype.startSpan=function(t,e,r){if(void 0===r&&(r=ge.active()),Boolean(null==e?void 0:e.root))return new ae;var n,o=r&&pe(r);return"object"==typeof(n=o)&&"string"==typeof n.spanId&&"string"==typeof n.traceId&&"number"==typeof n.traceFlags&&ye(o)?new ae(o):new ae},t.prototype.startActiveSpan=function(t,e,r,n){var o,i,a;if(!(arguments.length<2)){2===arguments.length?a=e:3===arguments.length?(o=e,a=r):(o=e,i=r,a=n);var u=null!=i?i:ge.active(),c=this.startSpan(t,o,u),l=fe(u,c);return ge.with(l,a,void 0,c)}},t}(),he=new ve,Re=function(){function t(t,e,r,n){this._provider=t,this.name=e,this.version=r,this.options=n}return t.prototype.startSpan=function(t,e,r){return this._getTracer().startSpan(t,e,r)},t.prototype.startActiveSpan=function(t,e,r,n){var o=this._getTracer();return Reflect.apply(o.startActiveSpan,o,arguments)},t.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):he},t}(),Se=new(function(){function t(){}return t.prototype.getTracer=function(t,e,r){return new ve},t}()),Le=function(){function t(){}return t.prototype.getTracer=function(t,e,r){var n;return null!==(n=this.getDelegateTracer(t,e,r))&&void 0!==n?n:new Re(this,t,e,r)},t.prototype.getDelegate=function(){var t;return null!==(t=this._delegate)&&void 0!==t?t:Se},t.prototype.setDelegate=function(t){this._delegate=t},t.prototype.getDelegateTracer=function(t,e,r){var n;return null===(n=this._delegate)||void 0===n?void 0:n.getTracer(t,e,r)},t}(),Pe="trace",me=function(){function t(){this._proxyTracerProvider=new Le,this.wrapSpanContext=de,this.isSpanContextValid=ye,this.deleteSpan=se,this.getSpan=ce,this.getActiveSpan=le,this.getSpanContext=pe,this.setSpan=fe,this.setSpanContext=_e}return t.getInstance=function(){return this._instance||(this._instance=new t),this._instance},t.prototype.setGlobalTracerProvider=function(t){var e=l(Pe,this._proxyTracerProvider,h.instance());return e&&this._proxyTracerProvider.setDelegate(t),e},t.prototype.getTracerProvider=function(){return f(Pe)||this._proxyTracerProvider},t.prototype.getTracer=function(t,e){return this.getTracerProvider().getTracer(t,e)},t.prototype.disable=function(){s(Pe,h.instance()),this._proxyTracerProvider=new Le},t}().getInstance(),Ae="[_0-9a-z-*/]",Ie=new RegExp("^(?:[a-z]"+Ae+"{0,255}|[a-z0-9]"+Ae+"{0,240}@[a-z]"+Ae+"{0,13})$"),Ce=/^[ -~]{0,255}[!-~]$/,be=/,|=/,Ne=function(){function t(t){this._internalState=new Map,t&&this._parse(t)}return t.prototype.set=function(t,e){var r=this._clone();return r._internalState.has(t)&&r._internalState.delete(t),r._internalState.set(t,e),r},t.prototype.unset=function(t){var e=this._clone();return e._internalState.delete(t),e},t.prototype.get=function(t){return this._internalState.get(t)},t.prototype.serialize=function(){var t=this;return this._keys().reduce(function(e,r){return e.push(r+"="+t.get(r)),e},[]).join(",")},t.prototype._parse=function(t){t.length>512||(this._internalState=t.split(",").reverse().reduce(function(t,e){var r=e.trim(),n=r.indexOf("=");if(-1!==n){var o=r.slice(0,n),i=r.slice(n+1,e.length);(function(t){return Ie.test(t)})(o)&&function(t){return Ce.test(t)&&!be.test(t)}(i)&&t.set(o,i)}return t},new Map),this._internalState.size>32&&(this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,32))))},t.prototype._keys=function(){return Array.from(this._internalState.keys()).reverse()},t.prototype._clone=function(){var e=new t;return e._internalState=new Map(this._internalState),e},t}(),we="traceparent",Me="tracestate",Ue=new RegExp("^\\s?((?!ff)[\\da-f]{2})-((?![0]{32})[\\da-f]{32})-((?![0]{16})[\\da-f]{16})-([\\da-f]{2})(-.*)?\\s?$");function De(t){var e=Ue.exec(t);return e?"00"===e[1]&&e[5]?null:{traceId:e[2],spanId:e[3],traceFlags:parseInt(e[4],16)}:null}var Be,xe,Xe=function(){function t(){}return t.prototype.inject=function(t,e,r){var n=me.getSpanContext(t);if(n&&!V(t)&&ye(n)){var o="00-"+n.traceId+"-"+n.spanId+"-0"+Number(n.traceFlags||ee.NONE).toString(16);r.set(e,we,o),n.traceState&&r.set(e,Me,n.traceState.serialize())}},t.prototype.extract=function(t,e,r){var n=r.get(e,we);if(!n)return t;var o=Array.isArray(n)?n[0]:n;if("string"!=typeof o)return t;var i=De(o);if(!i)return t;i.isRemote=!0;var a=r.get(e,Me);if(a){var u=Array.isArray(a)?a.join(","):a;i.traceState=new Ne("string"==typeof u?u:void 0)}return me.setSpanContext(t,i)},t.prototype.fields=function(){return[we,Me]},t}(),je=T("OpenTelemetry SDK Context Key RPC_METADATA");function Ge(t,e){return t.setValue(je,e)}function Ve(t){return t.deleteValue(je)}function Fe(t){return t.getValue(je)}!function(t){t.HTTP="http"}(Be||(Be={})),function(t){t[t.NOT_RECORD=0]="NOT_RECORD",t[t.RECORD=1]="RECORD",t[t.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"}(xe||(xe={}));var ke,He,Ke=function(){function t(){}return t.prototype.shouldSample=function(){return{decision:xe.NOT_RECORD}},t.prototype.toString=function(){return"AlwaysOffSampler"},t}(),We=function(){function t(){}return t.prototype.shouldSample=function(){return{decision:xe.RECORD_AND_SAMPLED}},t.prototype.toString=function(){return"AlwaysOnSampler"},t}(),Ye=function(){function t(t){var e,r,n,o;this._root=t.root,this._root||(it(new Error("ParentBasedSampler must have a root sampler configured")),this._root=new We),this._remoteParentSampled=null!==(e=t.remoteParentSampled)&&void 0!==e?e:new We,this._remoteParentNotSampled=null!==(r=t.remoteParentNotSampled)&&void 0!==r?r:new Ke,this._localParentSampled=null!==(n=t.localParentSampled)&&void 0!==n?n:new We,this._localParentNotSampled=null!==(o=t.localParentNotSampled)&&void 0!==o?o:new Ke}return t.prototype.shouldSample=function(t,e,r,n,o,i){var a=me.getSpanContext(t);return a&&ye(a)?a.isRemote?a.traceFlags&ee.SAMPLED?this._remoteParentSampled.shouldSample(t,e,r,n,o,i):this._remoteParentNotSampled.shouldSample(t,e,r,n,o,i):a.traceFlags&ee.SAMPLED?this._localParentSampled.shouldSample(t,e,r,n,o,i):this._localParentNotSampled.shouldSample(t,e,r,n,o,i):this._root.shouldSample(t,e,r,n,o,i)},t.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()+"}"},t}(),ze=function(){function t(t){void 0===t&&(t=0),this._ratio=t,this._ratio=this._normalize(t),this._upperBound=Math.floor(4294967295*this._ratio)}return t.prototype.shouldSample=function(t,e){return{decision:Oe(e)&&this._accumulate(e)=1?1:t<=0?0:t},t.prototype._accumulate=function(t){for(var e=0,r=0;r>>0}return e},t}(),Ze="[object Object]",Je="[object Null]",$e="[object Undefined]",Qe=Function.prototype.toString,qe=Qe.call(Object),tr=(ke=Object.getPrototypeOf,He=Object,function(t){return ke(He(t))}),er=Object.prototype,rr=er.hasOwnProperty,nr=Symbol?Symbol.toStringTag:void 0,or=er.toString;function ir(t){if(!function(t){return null!=t&&"object"==typeof t}(t)||function(t){return null==t?void 0===t?$e:Je:nr&&nr in Object(t)?function(t){var e=rr.call(t,nr),r=t[nr],n=!1;try{t[nr]=void 0,n=!0}catch(t){}var o=or.call(t);return n&&(e?t[nr]=r:delete t[nr]),o}(t):function(t){return or.call(t)}(t)}(t)!==Ze)return!1;var e=tr(t);if(null===e)return!0;var r=rr.call(e,"constructor")&&e.constructor;return"function"==typeof r&&r instanceof r&&Qe.call(r)===qe}var ar=20;function ur(){for(var t=[],e=0;e0;)r=lr(r,t.shift(),0,n);return r}function cr(t){return sr(t)?t.slice():t}function lr(t,e,r,n){var o;if(void 0===r&&(r=0),!(r>ar)){if(r++,Er(t)||Er(e)||_r(e))o=cr(e);else if(sr(t)){if(o=t.slice(),sr(e))for(var i=0,a=e.length;i=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};function vr(t,e){return"string"==typeof e?t===e:!!t.match(e)}function hr(t,e){var r,n;if(!e)return!1;try{for(var o=gr(e),i=o.next();!i.done;i=o.next())if(vr(t,i.value))return!0}catch(t){r={error:t}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return!1}function Rr(t){return"function"==typeof t&&"function"==typeof t.__original&&"function"==typeof t.__unwrap&&!0===t.__wrapped}var Sr=function(){function t(){var t=this;this._promise=new Promise(function(e,r){t._resolve=e,t._reject=r})}return Object.defineProperty(t.prototype,"promise",{get:function(){return this._promise},enumerable:!1,configurable:!0}),t.prototype.resolve=function(t){this._resolve(t)},t.prototype.reject=function(t){this._reject(t)},t}(),Lr=function(){function t(t,e){this._callback=t,this._that=e,this._isCalled=!1,this._deferred=new Sr}return Object.defineProperty(t.prototype,"isCalled",{get:function(){return this._isCalled},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"promise",{get:function(){return this._deferred.promise},enumerable:!1,configurable:!0}),t.prototype.call=function(){for(var t,e=this,r=[],n=0;n0)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}(r),!1))).then(function(t){return e._deferred.resolve(t)},function(t){return e._deferred.reject(t)})}catch(t){this._deferred.reject(t)}}return this._deferred.promise},t}(),Pr=L.getInstance(),mr={getKeyPairs:K,serializeKeyPairs:H,parseKeyPairsIntoRecord:function(t){return"string"!=typeof t||0===t.length?{}:t.split(F).map(function(t){return W(t)}).filter(function(t){return void 0!==t&&t.value.length>0}).reduce(function(t,e){return t[e.key]=e.value,t},{})},parsePairKeyValue:W},Ar={_export:function(t,e){return new Promise(function(r){Pr.with(j(Pr.active()),function(){t.export(e,function(t){r(t)})})})}};module.exports=e})(); \ No newline at end of file diff --git a/packages/node_modules/@opentelemetry/resources.js b/packages/node_modules/@opentelemetry/resources.js index 23f156a83a3..9f5b9437d31 100644 --- a/packages/node_modules/@opentelemetry/resources.js +++ b/packages/node_modules/@opentelemetry/resources.js @@ -1 +1 @@ -(()=>{"use strict";var e={454:(e,t,r)=>{r.d(t,{D:()=>c});var n=r(9896),o=r(2733),i=r(8758),a=function(e,t,r,n){return new(r||(r=Promise))(function(o,i){function a(e){try{c(n.next(e))}catch(e){i(e)}}function u(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(a,u)}c((n=n.apply(e,t||[])).next())})},u=function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]{e.exports=require("process")},1275:(e,t,r)=>{r.d(t,{V:()=>o});var n=r(6051),o=function(){function e(e){this._namespace=e.namespace||"DiagComponentLogger"}return e.prototype.debug=function(){for(var e=[],t=0;t0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}(r),!1))}},1568:(e,t,r)=>{r.d(t,{D:()=>u});var n=r(2733),o=r(8758),i=function(e,t,r,n){return new(r||(r=Promise))(function(o,i){function a(e){try{c(n.next(e))}catch(e){i(e)}}function u(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(a,u)}c((n=n.apply(e,t||[])).next())})},a=function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]{r.d(t,{c:()=>o});var n=r(6733);function o(e,t){function r(r,n){var o=t[r];return"function"==typeof o&&e>=n?o.bind(t):function(){}}return en.u.ALL&&(e=n.u.ALL),t=t||{},{error:r("error",n.u.ERROR),warn:r("warn",n.u.WARN),info:r("info",n.u.INFO),debug:r("debug",n.u.DEBUG),verbose:r("verbose",n.u.VERBOSE)}}},2408:(e,t,r)=>{r.d(t,{D:()=>a});var n=r(8758),o=function(e,t,r,n){return new(r||(r=Promise))(function(o,i){function a(e){try{c(n.next(e))}catch(e){i(e)}}function u(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(a,u)}c((n=n.apply(e,t||[])).next())})},i=function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]{r.d(t,{q:()=>o});const n=require("child_process");var o=require("util").promisify(n.exec)},2910:(e,t,r)=>{r.d(t,{x:()=>n});var n="1.9.0"},5234:(e,t,r)=>{r.d(t,{X:()=>n});var n="object"==typeof globalThis?globalThis:global},5726:(e,t,r)=>{r.d(t,{K:()=>u});var n=r(1275),o=r(1994),i=r(6733),a=r(6051),u=function(){function e(){function e(e){return function(){for(var t=[],r=0;r0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}(t),!1))}}var t=this;t.setLogger=function(e,r){var n,u,c;if(void 0===r&&(r={logLevel:i.u.INFO}),e===t){var s=new Error("Cannot use diag as the logger for itself. Please use a DiagLogger implementation like ConsoleDiagLogger or a custom implementation");return t.error(null!==(n=s.stack)&&void 0!==n?n:s.message),!1}"number"==typeof r&&(r={logLevel:r});var l=(0,a.mS)("diag"),E=(0,o.c)(null!==(u=r.logLevel)&&void 0!==u?u:i.u.INFO,e);if(l&&!r.suppressOverrideMessage){var f=null!==(c=(new Error).stack)&&void 0!==c?c:"";l.warn("Current logger will be overwritten from "+f),E.warn("Current logger will overwrite one already registered from "+f)}return(0,a.$G)("diag",E,t,!0)},t.disable=function(){(0,a.kv)("diag",t)},t.createComponentLogger=function(e){return new n.V(e)},t.verbose=e("verbose"),t.debug=e("debug"),t.info=e("info"),t.warn=e("warn"),t.error=e("error")}return e.instance=function(){return this._instance||(this._instance=new e),this._instance},e}()},6051:(e,t,r)=>{r.d(t,{$G:()=>s,kv:()=>E,mS:()=>l});var n=r(5234),o=r(2910),i=r(8336),a=o.x.split(".")[0],u=Symbol.for("opentelemetry.js.api."+a),c=n.X;function s(e,t,r,n){var i;void 0===n&&(n=!1);var a=c[u]=null!==(i=c[u])&&void 0!==i?i:{version:o.x};if(!n&&a[e]){var s=new Error("@opentelemetry/api: Attempted duplicate registration of API: "+e);return r.error(s.stack||s.message),!1}return a.version!==o.x?(s=new Error("@opentelemetry/api: Registration of version v"+a.version+" for "+e+" does not match previously registered API v"+o.x),r.error(s.stack||s.message),!1):(a[e]=t,r.debug("@opentelemetry/api: Registered a global for "+e+" v"+o.x+"."),!0)}function l(e){var t,r,n=null===(t=c[u])||void 0===t?void 0:t.version;if(n&&(0,i.$)(n))return null===(r=c[u])||void 0===r?void 0:r[e]}function E(e,t){t.debug("@opentelemetry/api: Unregistering a global for "+e+" v"+o.x+".");var r=c[u];r&&delete r[e]}},6733:(e,t,r)=>{var n;r.d(t,{u:()=>n}),function(e){e[e.NONE=0]="NONE",e[e.ERROR=30]="ERROR",e[e.WARN=50]="WARN",e[e.INFO=60]="INFO",e[e.DEBUG=70]="DEBUG",e[e.VERBOSE=80]="VERBOSE",e[e.ALL=9999]="ALL"}(n||(n={}))},7349:(e,t,r)=>{r.d(t,{D:()=>c});var n=r(932),o=r(2733),i=r(8758),a=function(e,t,r,n){return new(r||(r=Promise))(function(o,i){function a(e){try{c(n.next(e))}catch(e){i(e)}}function u(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(a,u)}c((n=n.apply(e,t||[])).next())})},u=function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]{r.d(t,{D:()=>c});var n=r(9896),o=r(8758),i=function(e,t,r,n){return new(r||(r=Promise))(function(o,i){function a(e){try{c(n.next(e))}catch(e){i(e)}}function u(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(a,u)}c((n=n.apply(e,t||[])).next())})},a=function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]=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 c(){return i(this,void 0,void 0,function(){var e,t,r,i,c,s,l,E;return a(this,function(a){switch(a.label){case 0:e=["/etc/machine-id","/var/lib/dbus/machine-id"],a.label=1;case 1:a.trys.push([1,8,9,10]),t=u(e),r=t.next(),a.label=2;case 2:if(r.done)return[3,7];i=r.value,a.label=3;case 3:return a.trys.push([3,5,,6]),[4,n.promises.readFile(i,{encoding:"utf8"})];case 4:return[2,a.sent().trim()];case 5:return c=a.sent(),o.s.debug("error reading machine id: "+c),[3,6];case 6:return r=t.next(),[3,2];case 7:return[3,10];case 8:return s=a.sent(),l={error:s},[3,10];case 9:try{r&&!r.done&&(E=t.return)&&E.call(t)}finally{if(l)throw l.error}return[7];case 10:return[2,""]}})})}},8336:(e,t,r)=>{r.d(t,{$:()=>i});var n=r(2910),o=/^(\d+)\.(\d+)\.(\d+)(-(.+))?$/,i=function(e){var t=new Set([e]),r=new Set,n=e.match(o);if(!n)return function(){return!1};var i=+n[1],a=+n[2],u=+n[3];if(null!=n[4])return function(t){return t===e};function c(e){return r.add(e),!1}function s(e){return t.add(e),!0}return function(e){if(t.has(e))return!0;if(r.has(e))return!1;var n=e.match(o);if(!n)return c(e);var l=+n[1],E=+n[2],f=+n[3];return null!=n[4]||i!==l?c(e):0===i?a===E&&u<=f?s(e):c(e):a<=E?s(e):c(e)}}(n.x)},8758:(e,t,r)=>{r.d(t,{s:()=>n});var n=r(5726).K.instance()},9896:e=>{e.exports=require("fs")}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var i=t[n]={exports:{}};return e[n](i,i.exports,r),i.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};r.r(n),r.d(n,{Resource:()=>p,browserDetector:()=>S,browserDetectorSync:()=>P,defaultServiceName:()=>T,detectResources:()=>oe,detectResourcesSync:()=>ie,envDetector:()=>j,envDetectorSync:()=>F,hostDetector:()=>L,hostDetectorSync:()=>R,osDetector:()=>q,osDetectorSync:()=>Y,processDetector:()=>Q,processDetectorSync:()=>$,serviceInstanceIdDetectorSync:()=>te});var o,i=r(8758),a="process.runtime.name",u="process.runtime.version",c="process.runtime.description",s="service.name",l="telemetry.sdk.name",E="telemetry.sdk.language",f="telemetry.sdk.version",_=((o={})[l]="opentelemetry",o[a]="node",o[E]="nodejs",o[f]="1.30.1",o);function T(){return"unknown_service:"+process.argv0}var O=function(){return O=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}(e,2),i=o[0],a=o[1];return O(O(O(O({},n._syncAttributes),i),null!==(r=t._syncAttributes)&&void 0!==r?r:t.attributes),a)});return new e(o,i)},e.EMPTY=new e({}),e}();const d=require("os");var v;switch(r(932).platform){case"darwin":v=r(1568).D;break;case"linux":v=r(7917).D;break;case"freebsd":v=r(454).D;break;case"win32":v=r(7349).D;break;default:v=r(2408).D}var y,h=function(){function e(){}return e.prototype.detect=function(e){var t,r=((t={})["host.name"]=(0,d.hostname)(),t["host.arch"]=function(e){switch(e){case"arm":return"arm32";case"ppc":return"ppc32";case"x64":return"amd64";default:return e}}((0,d.arch)()),t);return new p(r,this._getAsyncAttributes())},e.prototype._getAsyncAttributes=function(){return v().then(function(e){var t={};return e&&(t["host.id"]=e),t})},e}(),R=new h,L=new(function(){function e(){}return e.prototype.detect=function(e){return Promise.resolve(R.detect(e))},e}()),b=function(){return b=Object.assign||function(e){for(var t,r=1,n=arguments.length;r-1}var m=["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 N(e){return m.indexOf(e)>-1}var C=["OTEL_NO_PATCH_MODULES","OTEL_PROPAGATORS","OTEL_SEMCONV_STABILITY_OPT_IN"];function U(e){return C.indexOf(e)>-1}var M=1/0,x={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:g.u.INFO,OTEL_NO_PATCH_MODULES:[],OTEL_PROPAGATORS:["tracecontext","baggage"],OTEL_RESOURCE_ATTRIBUTES:"",OTEL_SERVICE_NAME:"",OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT:M,OTEL_ATTRIBUTE_COUNT_LIMIT:128,OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT:M,OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT:128,OTEL_LOGRECORD_ATTRIBUTE_VALUE_LENGTH_LIMIT:M,OTEL_LOGRECORD_ATTRIBUTE_COUNT_LIMIT:128,OTEL_SPAN_EVENT_COUNT_LIMIT:128,OTEL_SPAN_LINK_COUNT_LIMIT:128,OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT:128,OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT:128,OTEL_TRACES_EXPORTER:"",OTEL_TRACES_SAMPLER:y.ParentBasedAlwaysOn,OTEL_TRACES_SAMPLER_ARG:"",OTEL_LOGS_EXPORTER:"",OTEL_EXPORTER_OTLP_INSECURE:"",OTEL_EXPORTER_OTLP_TRACES_INSECURE:"",OTEL_EXPORTER_OTLP_METRICS_INSECURE:"",OTEL_EXPORTER_OTLP_LOGS_INSECURE:"",OTEL_EXPORTER_OTLP_CERTIFICATE:"",OTEL_EXPORTER_OTLP_TRACES_CERTIFICATE:"",OTEL_EXPORTER_OTLP_METRICS_CERTIFICATE:"",OTEL_EXPORTER_OTLP_LOGS_CERTIFICATE:"",OTEL_EXPORTER_OTLP_COMPRESSION:"",OTEL_EXPORTER_OTLP_TRACES_COMPRESSION:"",OTEL_EXPORTER_OTLP_METRICS_COMPRESSION:"",OTEL_EXPORTER_OTLP_LOGS_COMPRESSION:"",OTEL_EXPORTER_OTLP_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_TRACES_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_METRICS_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_LOGS_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_TRACES_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_METRICS_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_LOGS_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_TRACES_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_METRICS_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_LOGS_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE:"cumulative",OTEL_SEMCONV_STABILITY_OPT_IN:[]};function X(e,t,r){if(void 0!==r[e]){var n=String(r[e]);t[e]="true"===n.toLowerCase()}}function D(e,t,r,n,o){if(void 0===n&&(n=-1/0),void 0===o&&(o=1/0),void 0!==r[e]){var i=Number(r[e]);isNaN(i)||(t[e]=io?o:i)}}function B(e,t,r,n){void 0===n&&(n=",");var o=r[e];"string"==typeof o&&(t[e]=o.split(n).map(function(e){return e.trim()}))}var G={ALL:g.u.ALL,VERBOSE:g.u.VERBOSE,DEBUG:g.u.DEBUG,INFO:g.u.INFO,WARN:g.u.WARN,ERROR:g.u.ERROR,NONE:g.u.NONE};function k(e,t,r){var n=r[e];if("string"==typeof n){var o=G[n.toUpperCase()];null!=o&&(t[e]=o)}}var V=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},H=function(){function e(){this._MAX_LENGTH=255,this._COMMA_SEPARATOR=",",this._LABEL_KEY_VALUE_SPLITTER="=",this._ERROR_MESSAGE_INVALID_CHARS="should be a ASCII string with a length greater than 0 and not exceed "+this._MAX_LENGTH+" characters.",this._ERROR_MESSAGE_INVALID_VALUE="should be a ASCII string with a length not exceed "+this._MAX_LENGTH+" characters."}return e.prototype.detect=function(e){var t,r={},n=(t=function(e){var t={};for(var r in x){var n=r;if("OTEL_LOG_LEVEL"===n)k(n,t,e);else if(w(n))X(n,t,e);else if(N(n))D(n,t,e);else if(U(n))B(n,t,e);else{var o=e[n];null!=o&&(t[n]=String(o))}}return t}(process.env),Object.assign({},x,t)),o=n.OTEL_RESOURCE_ATTRIBUTES,a=n.OTEL_SERVICE_NAME;if(o)try{var u=this._parseResourceAttributes(o);Object.assign(r,u)}catch(e){i.s.debug("EnvDetector failed: "+e.message)}return a&&(r[s]=a),new p(r)},e.prototype._parseResourceAttributes=function(e){var t,r;if(!e)return{};var n={},o=e.split(this._COMMA_SEPARATOR,-1);try{for(var i=function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)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.")}(o),a=i.next();!a.done;a=i.next()){var u=a.value.split(this._LABEL_KEY_VALUE_SPLITTER,-1);if(2===u.length){var c=V(u,2),s=c[0],l=c[1];if(s=s.trim(),l=l.trim().split(/^"|"$/).join(""),!this._isValidAndNotEmpty(s))throw new Error("Attribute key "+this._ERROR_MESSAGE_INVALID_CHARS);if(!this._isValid(l))throw new Error("Attribute value "+this._ERROR_MESSAGE_INVALID_VALUE);n[s]=decodeURIComponent(l)}}}catch(e){t={error:e}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}return n},e.prototype._isValid=function(e){return e.length<=this._MAX_LENGTH&&this._isBaggageOctetString(e)},e.prototype._isBaggageOctetString=function(e){for(var t=0;t126)return!1}return!0},e.prototype._isValidAndNotEmpty=function(e){return e.length>0&&this._isValid(e)},e}(),F=new H,j=new(function(){function e(){}return e.prototype.detect=function(e){return Promise.resolve(F.detect(e))},e}()),K=function(){function e(){}return e.prototype.detect=function(e){var t,r=((t={})["os.type"]=function(e){switch(e){case"sunos":return"solaris";case"win32":return"windows";default:return e}}((0,d.platform)()),t["os.version"]=(0,d.release)(),t);return new p(r)},e}(),Y=new K,q=new(function(){function e(){}return e.prototype.detect=function(e){return Promise.resolve(Y.detect(e))},e}()),Z=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},W=function(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o1&&(r["process.command"]=process.argv[1]);try{var n=d.userInfo();r["process.owner"]=n.username}catch(e){i.s.debug("error obtaining process owner: "+e)}return new p(r)},e}(),$=new J,Q=new(function(){function e(){}return e.prototype.detect=function(e){return Promise.resolve($.detect(e))},e}());const z=require("crypto");var ee=function(){function e(){}return e.prototype.detect=function(e){var t,r=((t={})["service.instance.id"]=(0,z.randomUUID)(),t);return new p(r)},e}(),te=new ee,re=function(e,t,r,n){return new(r||(r=Promise))(function(o,i){function a(e){try{c(n.next(e))}catch(e){i(e)}}function u(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(a,u)}c((n=n.apply(e,t||[])).next())})},ne=function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]0){var t=JSON.stringify(e.attributes,null,4);i.s.verbose(t)}})};module.exports=n})(); \ No newline at end of file +(()=>{"use strict";var e={454:(e,t,r)=>{r.d(t,{D:()=>c});var n=r(9896),o=r(2733),i=r(8758),a=function(e,t,r,n){return new(r||(r=Promise))(function(o,i){function a(e){try{c(n.next(e))}catch(e){i(e)}}function u(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(a,u)}c((n=n.apply(e,t||[])).next())})},u=function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]{e.exports=require("process")},1275:(e,t,r)=>{r.d(t,{V:()=>o});var n=r(6051),o=function(){function e(e){this._namespace=e.namespace||"DiagComponentLogger"}return e.prototype.debug=function(){for(var e=[],t=0;t0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}(r),!1))}},1568:(e,t,r)=>{r.d(t,{D:()=>u});var n=r(2733),o=r(8758),i=function(e,t,r,n){return new(r||(r=Promise))(function(o,i){function a(e){try{c(n.next(e))}catch(e){i(e)}}function u(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(a,u)}c((n=n.apply(e,t||[])).next())})},a=function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]{r.d(t,{c:()=>o});var n=r(6733);function o(e,t){function r(r,n){var o=t[r];return"function"==typeof o&&e>=n?o.bind(t):function(){}}return en.u.ALL&&(e=n.u.ALL),t=t||{},{error:r("error",n.u.ERROR),warn:r("warn",n.u.WARN),info:r("info",n.u.INFO),debug:r("debug",n.u.DEBUG),verbose:r("verbose",n.u.VERBOSE)}}},2408:(e,t,r)=>{r.d(t,{D:()=>a});var n=r(8758),o=function(e,t,r,n){return new(r||(r=Promise))(function(o,i){function a(e){try{c(n.next(e))}catch(e){i(e)}}function u(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(a,u)}c((n=n.apply(e,t||[])).next())})},i=function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]{r.d(t,{q:()=>o});const n=require("child_process");var o=require("util").promisify(n.exec)},2910:(e,t,r)=>{r.d(t,{x:()=>n});var n="1.9.0"},5234:(e,t,r)=>{r.d(t,{X:()=>n});var n="object"==typeof globalThis?globalThis:global},5726:(e,t,r)=>{r.d(t,{K:()=>u});var n=r(1275),o=r(1994),i=r(6733),a=r(6051),u=function(){function e(){function e(e){return function(){for(var t=[],r=0;r0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}(t),!1))}}var t=this;t.setLogger=function(e,r){var n,u,c;if(void 0===r&&(r={logLevel:i.u.INFO}),e===t){var s=new Error("Cannot use diag as the logger for itself. Please use a DiagLogger implementation like ConsoleDiagLogger or a custom implementation");return t.error(null!==(n=s.stack)&&void 0!==n?n:s.message),!1}"number"==typeof r&&(r={logLevel:r});var l=(0,a.mS)("diag"),E=(0,o.c)(null!==(u=r.logLevel)&&void 0!==u?u:i.u.INFO,e);if(l&&!r.suppressOverrideMessage){var f=null!==(c=(new Error).stack)&&void 0!==c?c:"";l.warn("Current logger will be overwritten from "+f),E.warn("Current logger will overwrite one already registered from "+f)}return(0,a.$G)("diag",E,t,!0)},t.disable=function(){(0,a.kv)("diag",t)},t.createComponentLogger=function(e){return new n.V(e)},t.verbose=e("verbose"),t.debug=e("debug"),t.info=e("info"),t.warn=e("warn"),t.error=e("error")}return e.instance=function(){return this._instance||(this._instance=new e),this._instance},e}()},6051:(e,t,r)=>{r.d(t,{$G:()=>s,kv:()=>E,mS:()=>l});var n=r(5234),o=r(2910),i=r(8336),a=o.x.split(".")[0],u=Symbol.for("opentelemetry.js.api."+a),c=n.X;function s(e,t,r,n){var i;void 0===n&&(n=!1);var a=c[u]=null!==(i=c[u])&&void 0!==i?i:{version:o.x};if(!n&&a[e]){var s=new Error("@opentelemetry/api: Attempted duplicate registration of API: "+e);return r.error(s.stack||s.message),!1}return a.version!==o.x?(s=new Error("@opentelemetry/api: Registration of version v"+a.version+" for "+e+" does not match previously registered API v"+o.x),r.error(s.stack||s.message),!1):(a[e]=t,r.debug("@opentelemetry/api: Registered a global for "+e+" v"+o.x+"."),!0)}function l(e){var t,r,n=null===(t=c[u])||void 0===t?void 0:t.version;if(n&&(0,i.$)(n))return null===(r=c[u])||void 0===r?void 0:r[e]}function E(e,t){t.debug("@opentelemetry/api: Unregistering a global for "+e+" v"+o.x+".");var r=c[u];r&&delete r[e]}},6733:(e,t,r)=>{var n;r.d(t,{u:()=>n}),function(e){e[e.NONE=0]="NONE",e[e.ERROR=30]="ERROR",e[e.WARN=50]="WARN",e[e.INFO=60]="INFO",e[e.DEBUG=70]="DEBUG",e[e.VERBOSE=80]="VERBOSE",e[e.ALL=9999]="ALL"}(n||(n={}))},7349:(e,t,r)=>{r.d(t,{D:()=>c});var n=r(932),o=r(2733),i=r(8758),a=function(e,t,r,n){return new(r||(r=Promise))(function(o,i){function a(e){try{c(n.next(e))}catch(e){i(e)}}function u(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(a,u)}c((n=n.apply(e,t||[])).next())})},u=function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]{r.d(t,{D:()=>c});var n=r(9896),o=r(8758),i=function(e,t,r,n){return new(r||(r=Promise))(function(o,i){function a(e){try{c(n.next(e))}catch(e){i(e)}}function u(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(a,u)}c((n=n.apply(e,t||[])).next())})},a=function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]=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 c(){return i(this,void 0,void 0,function(){var e,t,r,i,c,s,l,E;return a(this,function(a){switch(a.label){case 0:e=["/etc/machine-id","/var/lib/dbus/machine-id"],a.label=1;case 1:a.trys.push([1,8,9,10]),t=u(e),r=t.next(),a.label=2;case 2:if(r.done)return[3,7];i=r.value,a.label=3;case 3:return a.trys.push([3,5,,6]),[4,n.promises.readFile(i,{encoding:"utf8"})];case 4:return[2,a.sent().trim()];case 5:return c=a.sent(),o.s.debug("error reading machine id: "+c),[3,6];case 6:return r=t.next(),[3,2];case 7:return[3,10];case 8:return s=a.sent(),l={error:s},[3,10];case 9:try{r&&!r.done&&(E=t.return)&&E.call(t)}finally{if(l)throw l.error}return[7];case 10:return[2,""]}})})}},8336:(e,t,r)=>{r.d(t,{$:()=>i});var n=r(2910),o=/^(\d+)\.(\d+)\.(\d+)(-(.+))?$/,i=function(e){var t=new Set([e]),r=new Set,n=e.match(o);if(!n)return function(){return!1};var i=+n[1],a=+n[2],u=+n[3];if(null!=n[4])return function(t){return t===e};function c(e){return r.add(e),!1}function s(e){return t.add(e),!0}return function(e){if(t.has(e))return!0;if(r.has(e))return!1;var n=e.match(o);if(!n)return c(e);var l=+n[1],E=+n[2],f=+n[3];return null!=n[4]||i!==l?c(e):0===i?a===E&&u<=f?s(e):c(e):a<=E?s(e):c(e)}}(n.x)},8758:(e,t,r)=>{r.d(t,{s:()=>n});var n=r(5726).K.instance()},9896:e=>{e.exports=require("fs")}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var i=t[n]={exports:{}};return e[n](i,i.exports,r),i.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};r.r(n),r.d(n,{Resource:()=>d,browserDetector:()=>R,browserDetectorSync:()=>h,defaultServiceName:()=>T,detectResources:()=>oe,detectResourcesSync:()=>ie,envDetector:()=>G,envDetectorSync:()=>B,hostDetector:()=>j,hostDetectorSync:()=>F,osDetector:()=>q,osDetectorSync:()=>Y,processDetector:()=>Q,processDetectorSync:()=>$,serviceInstanceIdDetectorSync:()=>te});var o,i=r(8758),a="process.runtime.name",u="process.runtime.version",c="process.runtime.description",s="service.name",l="telemetry.sdk.name",E="telemetry.sdk.language",f="telemetry.sdk.version",_=((o={})[l]="opentelemetry",o[a]="node",o[E]="nodejs",o[f]="1.30.1",o);function T(){return"unknown_service:"+process.argv0}var O,p=function(){return p=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}(e,2),i=o[0],a=o[1];return p(p(p(p({},n._syncAttributes),i),null!==(r=t._syncAttributes)&&void 0!==r?r:t.attributes),a)});return new e(o,i)},e.EMPTY=new e({}),e}(),v=function(){return v=Object.assign||function(e){for(var t,r=1,n=arguments.length;r-1}var P=["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 S(e){return P.indexOf(e)>-1}var g=["OTEL_NO_PATCH_MODULES","OTEL_PROPAGATORS","OTEL_SEMCONV_STABILITY_OPT_IN"];function I(e){return g.indexOf(e)>-1}var w=1/0,m={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:L.u.INFO,OTEL_NO_PATCH_MODULES:[],OTEL_PROPAGATORS:["tracecontext","baggage"],OTEL_RESOURCE_ATTRIBUTES:"",OTEL_SERVICE_NAME:"",OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT:w,OTEL_ATTRIBUTE_COUNT_LIMIT:128,OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT:w,OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT:128,OTEL_LOGRECORD_ATTRIBUTE_VALUE_LENGTH_LIMIT:w,OTEL_LOGRECORD_ATTRIBUTE_COUNT_LIMIT:128,OTEL_SPAN_EVENT_COUNT_LIMIT:128,OTEL_SPAN_LINK_COUNT_LIMIT:128,OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT:128,OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT:128,OTEL_TRACES_EXPORTER:"",OTEL_TRACES_SAMPLER:O.ParentBasedAlwaysOn,OTEL_TRACES_SAMPLER_ARG:"",OTEL_LOGS_EXPORTER:"",OTEL_EXPORTER_OTLP_INSECURE:"",OTEL_EXPORTER_OTLP_TRACES_INSECURE:"",OTEL_EXPORTER_OTLP_METRICS_INSECURE:"",OTEL_EXPORTER_OTLP_LOGS_INSECURE:"",OTEL_EXPORTER_OTLP_CERTIFICATE:"",OTEL_EXPORTER_OTLP_TRACES_CERTIFICATE:"",OTEL_EXPORTER_OTLP_METRICS_CERTIFICATE:"",OTEL_EXPORTER_OTLP_LOGS_CERTIFICATE:"",OTEL_EXPORTER_OTLP_COMPRESSION:"",OTEL_EXPORTER_OTLP_TRACES_COMPRESSION:"",OTEL_EXPORTER_OTLP_METRICS_COMPRESSION:"",OTEL_EXPORTER_OTLP_LOGS_COMPRESSION:"",OTEL_EXPORTER_OTLP_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_TRACES_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_METRICS_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_LOGS_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_TRACES_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_METRICS_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_LOGS_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_TRACES_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_METRICS_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_LOGS_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE:"cumulative",OTEL_SEMCONV_STABILITY_OPT_IN:[]};function N(e,t,r){if(void 0!==r[e]){var n=String(r[e]);t[e]="true"===n.toLowerCase()}}function C(e,t,r,n,o){if(void 0===n&&(n=-1/0),void 0===o&&(o=1/0),void 0!==r[e]){var i=Number(r[e]);isNaN(i)||(t[e]=io?o:i)}}function U(e,t,r,n){void 0===n&&(n=",");var o=r[e];"string"==typeof o&&(t[e]=o.split(n).map(function(e){return e.trim()}))}var M={ALL:L.u.ALL,VERBOSE:L.u.VERBOSE,DEBUG:L.u.DEBUG,INFO:L.u.INFO,WARN:L.u.WARN,ERROR:L.u.ERROR,NONE:L.u.NONE};function x(e,t,r){var n=r[e];if("string"==typeof n){var o=M[n.toUpperCase()];null!=o&&(t[e]=o)}}var X=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},D=function(){function e(){this._MAX_LENGTH=255,this._COMMA_SEPARATOR=",",this._LABEL_KEY_VALUE_SPLITTER="=",this._ERROR_MESSAGE_INVALID_CHARS="should be a ASCII string with a length greater than 0 and not exceed "+this._MAX_LENGTH+" characters.",this._ERROR_MESSAGE_INVALID_VALUE="should be a ASCII string with a length not exceed "+this._MAX_LENGTH+" characters."}return e.prototype.detect=function(e){var t,r={},n=(t=function(e){var t={};for(var r in m){var n=r;if("OTEL_LOG_LEVEL"===n)x(n,t,e);else if(A(n))N(n,t,e);else if(S(n))C(n,t,e);else if(I(n))U(n,t,e);else{var o=e[n];null!=o&&(t[n]=String(o))}}return t}(process.env),Object.assign({},m,t)),o=n.OTEL_RESOURCE_ATTRIBUTES,a=n.OTEL_SERVICE_NAME;if(o)try{var u=this._parseResourceAttributes(o);Object.assign(r,u)}catch(e){i.s.debug("EnvDetector failed: "+e.message)}return a&&(r[s]=a),new d(r)},e.prototype._parseResourceAttributes=function(e){var t,r;if(!e)return{};var n={},o=e.split(this._COMMA_SEPARATOR,-1);try{for(var i=function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)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.")}(o),a=i.next();!a.done;a=i.next()){var u=a.value.split(this._LABEL_KEY_VALUE_SPLITTER,-1);if(2===u.length){var c=X(u,2),s=c[0],l=c[1];if(s=s.trim(),l=l.trim().split(/^"|"$/).join(""),!this._isValidAndNotEmpty(s))throw new Error("Attribute key "+this._ERROR_MESSAGE_INVALID_CHARS);if(!this._isValid(l))throw new Error("Attribute value "+this._ERROR_MESSAGE_INVALID_VALUE);n[s]=decodeURIComponent(l)}}}catch(e){t={error:e}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}return n},e.prototype._isValid=function(e){return e.length<=this._MAX_LENGTH&&this._isBaggageOctetString(e)},e.prototype._isBaggageOctetString=function(e){for(var t=0;t126)return!1}return!0},e.prototype._isValidAndNotEmpty=function(e){return e.length>0&&this._isValid(e)},e}(),B=new D,G=new(function(){function e(){}return e.prototype.detect=function(e){return Promise.resolve(B.detect(e))},e}());const k=require("os");var V;switch(r(932).platform){case"darwin":V=r(1568).D;break;case"linux":V=r(7917).D;break;case"freebsd":V=r(454).D;break;case"win32":V=r(7349).D;break;default:V=r(2408).D}var H=function(){function e(){}return e.prototype.detect=function(e){var t,r=((t={})["host.name"]=(0,k.hostname)(),t["host.arch"]=function(e){switch(e){case"arm":return"arm32";case"ppc":return"ppc32";case"x64":return"amd64";default:return e}}((0,k.arch)()),t);return new d(r,this._getAsyncAttributes())},e.prototype._getAsyncAttributes=function(){return V().then(function(e){var t={};return e&&(t["host.id"]=e),t})},e}(),F=new H,j=new(function(){function e(){}return e.prototype.detect=function(e){return Promise.resolve(F.detect(e))},e}()),K=function(){function e(){}return e.prototype.detect=function(e){var t,r=((t={})["os.type"]=function(e){switch(e){case"sunos":return"solaris";case"win32":return"windows";default:return e}}((0,k.platform)()),t["os.version"]=(0,k.release)(),t);return new d(r)},e}(),Y=new K,q=new(function(){function e(){}return e.prototype.detect=function(e){return Promise.resolve(Y.detect(e))},e}()),Z=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},W=function(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o1&&(r["process.command"]=process.argv[1]);try{var n=k.userInfo();r["process.owner"]=n.username}catch(e){i.s.debug("error obtaining process owner: "+e)}return new d(r)},e}(),$=new J,Q=new(function(){function e(){}return e.prototype.detect=function(e){return Promise.resolve($.detect(e))},e}());const z=require("crypto");var ee=function(){function e(){}return e.prototype.detect=function(e){var t,r=((t={})["service.instance.id"]=(0,z.randomUUID)(),t);return new d(r)},e}(),te=new ee,re=function(e,t,r,n){return new(r||(r=Promise))(function(o,i){function a(e){try{c(n.next(e))}catch(e){i(e)}}function u(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(a,u)}c((n=n.apply(e,t||[])).next())})},ne=function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]0){var t=JSON.stringify(e.attributes,null,4);i.s.verbose(t)}})};module.exports=n})(); \ No newline at end of file diff --git a/vendor/bun.lock b/vendor/bun.lock index 3746c09804c..06ed2a7a3b9 100644 --- a/vendor/bun.lock +++ b/vendor/bun.lock @@ -3,7 +3,6 @@ "configVersion": 1, "workspaces": { "": { - "name": "dd-trace", "dependencies": { "@isaacs/ttlcache": "^2.0.1", "@opentelemetry/api": ">=1.0.0 <1.10.0", diff --git a/vendor/package.json b/vendor/package.json index b4274a069c8..2536c547043 100644 --- a/vendor/package.json +++ b/vendor/package.json @@ -1,8 +1,4 @@ { - "name": "dd-trace", - "version": "6.0.0-pre", - "description": "Datadog APM tracing client for JavaScript", - "main": "index.js", "scripts": { "postinstall": "webpack" }, From 57777dd5fdd2ffd1a44aa734dc17cb81b88090f4 Mon Sep 17 00:00:00 2001 From: rochdev Date: Thu, 20 Nov 2025 20:29:25 -0500 Subject: [PATCH 06/95] fix invalid import --- packages/datadog-plugin-child_process/src/scrub-cmd-params.js | 2 +- packages/node_modules/@opentelemetry/core.js | 2 +- packages/node_modules/@opentelemetry/resources.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/datadog-plugin-child_process/src/scrub-cmd-params.js b/packages/datadog-plugin-child_process/src/scrub-cmd-params.js index 98c8042b8c3..780c7edc18c 100644 --- a/packages/datadog-plugin-child_process/src/scrub-cmd-params.js +++ b/packages/datadog-plugin-child_process/src/scrub-cmd-params.js @@ -1,6 +1,6 @@ 'use strict' -const shellParser = require('shell-quote/parse') +const shellParser = require('shell-quote').parse const ALLOWED_ENV_VARIABLES = new Set(['LD_PRELOAD', 'LD_LIBRARY_PATH', 'PATH']) const PROCESS_DENYLIST = new Set(['md5']) diff --git a/packages/node_modules/@opentelemetry/core.js b/packages/node_modules/@opentelemetry/core.js index 314e3b23ef0..2fcf4fd71de 100644 --- a/packages/node_modules/@opentelemetry/core.js +++ b/packages/node_modules/@opentelemetry/core.js @@ -1 +1 @@ -(()=>{"use strict";var t={d:(e,r)=>{for(var n in r)t.o(r,n)&&!t.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:r[n]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r:t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}},e={};t.r(e),t.d(e,{AlwaysOffSampler:()=>Ke,AlwaysOnSampler:()=>We,AnchoredClock:()=>z,BindOnceFuture:()=>Lr,CompositePropagator:()=>re,DEFAULT_ATTRIBUTE_COUNT_LIMIT:()=>Vt,DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT:()=>Gt,DEFAULT_ENVIRONMENT:()=>Ht,DEFAULT_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT:()=>Ft,DEFAULT_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT:()=>kt,ExportResultCode:()=>at,ParentBasedSampler:()=>Ye,RPCType:()=>Be,RandomIdGenerator:()=>Pt,SDK_INFO:()=>Nt,TRACE_PARENT_HEADER:()=>we,TRACE_STATE_HEADER:()=>Me,TimeoutError:()=>yr,TraceIdRatioBasedSampler:()=>ze,TraceState:()=>Ne,TracesSamplerValues:()=>Ct,VERSION:()=>bt,W3CBaggagePropagator:()=>Y,W3CTraceContextPropagator:()=>Xe,_globalThis:()=>wt,addHrTimes:()=>Rt,baggageUtils:()=>mr,callWithTimeout:()=>dr,deleteRPCMetadata:()=>Ve,getEnv:()=>$t,getEnvWithoutDefaults:()=>Qt,getRPCMetadata:()=>Fe,getTimeOrigin:()=>_t,globalErrorHandler:()=>it,hexToBase64:()=>qt,hexToBinary:()=>Lt,hrTime:()=>pt,hrTimeDuration:()=>Tt,hrTimeToMicroseconds:()=>gt,hrTimeToMilliseconds:()=>dt,hrTimeToNanoseconds:()=>yt,hrTimeToTimeStamp:()=>Ot,internal:()=>Ar,isAttributeKey:()=>q,isAttributeValue:()=>tt,isTimeInput:()=>ht,isTimeInputHrTime:()=>vt,isTracingSuppressed:()=>V,isUrlIgnored:()=>hr,isWrapped:()=>Rr,loggingErrorHandler:()=>rt,merge:()=>ur,millisToHrTime:()=>st,otperformance:()=>ut,parseEnvironment:()=>Jt,parseTraceParent:()=>De,sanitizeAttributes:()=>Q,setGlobalErrorHandler:()=>ot,setRPCMetadata:()=>Ge,suppressTracing:()=>j,timeInputToHrTime:()=>Et,unrefTimer:()=>te,unsuppressTracing:()=>G,urlMatches:()=>vr});var r="object"==typeof globalThis?globalThis:global,n="1.9.0",o=/^(\d+)\.(\d+)\.(\d+)(-(.+))?$/,i=function(t){var e=new Set([t]),r=new Set,n=t.match(o);if(!n)return function(){return!1};var i=+n[1],a=+n[2],u=+n[3];if(null!=n[4])return function(e){return e===t};function c(t){return r.add(t),!1}function l(t){return e.add(t),!0}return function(t){if(e.has(t))return!0;if(r.has(t))return!1;var n=t.match(o);if(!n)return c(t);var f=+n[1],s=+n[2],_=+n[3];return null!=n[4]||i!==f?c(t):0===i?a===s&&u<=_?l(t):c(t):a<=s?l(t):c(t)}}(n),a=n.split(".")[0],u=Symbol.for("opentelemetry.js.api."+a),c=r;function l(t,e,r,o){var i;void 0===o&&(o=!1);var a=c[u]=null!==(i=c[u])&&void 0!==i?i:{version:n};if(!o&&a[t]){var l=new Error("@opentelemetry/api: Attempted duplicate registration of API: "+t);return r.error(l.stack||l.message),!1}return a.version!==n?(l=new Error("@opentelemetry/api: Registration of version v"+a.version+" for "+t+" does not match previously registered API v"+n),r.error(l.stack||l.message),!1):(a[t]=e,r.debug("@opentelemetry/api: Registered a global for "+t+" v"+n+"."),!0)}function f(t){var e,r,n=null===(e=c[u])||void 0===e?void 0:e.version;if(n&&i(n))return null===(r=c[u])||void 0===r?void 0:r[t]}function s(t,e){e.debug("@opentelemetry/api: Unregistering a global for "+t+" v"+n+".");var r=c[u];r&&delete r[t]}var _=function(){function t(){}return t.prototype.inject=function(t,e){},t.prototype.extract=function(t,e){return t},t.prototype.fields=function(){return[]},t}(),p={get:function(t,e){if(null!=t)return t[e]},keys:function(t){return null==t?[]:Object.keys(t)}},E={set:function(t,e,r){null!=t&&(t[e]=r)}};function T(t){return Symbol.for(t)}var O,y=new function t(e){var r=this;r._currentContext=e?new Map(e):new Map,r.getValue=function(t){return r._currentContext.get(t)},r.setValue=function(e,n){var o=new t(r._currentContext);return o._currentContext.set(e,n),o},r.deleteValue=function(e){var n=new t(r._currentContext);return n._currentContext.delete(e),n}},d=function(){function t(){}return t.prototype.active=function(){return y},t.prototype.with=function(t,e,r){for(var n=[],o=3;o0)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}(n),!1))},t.prototype.bind=function(t,e){return e},t.prototype.enable=function(){return this},t.prototype.disable=function(){return this},t}(),g=function(){function t(t){this._namespace=t.namespace||"DiagComponentLogger"}return t.prototype.debug=function(){for(var t=[],e=0;e0)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}(r),!1))}!function(t){t[t.NONE=0]="NONE",t[t.ERROR=30]="ERROR",t[t.WARN=50]="WARN",t[t.INFO=60]="INFO",t[t.DEBUG=70]="DEBUG",t[t.VERBOSE=80]="VERBOSE",t[t.ALL=9999]="ALL"}(O||(O={}));var h=function(){function t(){function t(t){return function(){for(var e=[],r=0;r0)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}(e),!1))}}var e=this;e.setLogger=function(t,r){var n,o,i;if(void 0===r&&(r={logLevel:O.INFO}),t===e){var a=new Error("Cannot use diag as the logger for itself. Please use a DiagLogger implementation like ConsoleDiagLogger or a custom implementation");return e.error(null!==(n=a.stack)&&void 0!==n?n:a.message),!1}"number"==typeof r&&(r={logLevel:r});var u=f("diag"),c=function(t,e){function r(r,n){var o=e[r];return"function"==typeof o&&t>=n?o.bind(e):function(){}}return tO.ALL&&(t=O.ALL),e=e||{},{error:r("error",O.ERROR),warn:r("warn",O.WARN),info:r("info",O.INFO),debug:r("debug",O.DEBUG),verbose:r("verbose",O.VERBOSE)}}(null!==(o=r.logLevel)&&void 0!==o?o:O.INFO,t);if(u&&!r.suppressOverrideMessage){var s=null!==(i=(new Error).stack)&&void 0!==i?i:"";u.warn("Current logger will be overwritten from "+s),c.warn("Current logger will overwrite one already registered from "+s)}return l("diag",c,e,!0)},e.disable=function(){s("diag",e)},e.createComponentLogger=function(t){return new g(t)},e.verbose=t("verbose"),e.debug=t("debug"),e.info=t("info"),e.warn=t("warn"),e.error=t("error")}return t.instance=function(){return this._instance||(this._instance=new t),this._instance},t}(),R="context",S=new d,L=function(){function t(){}return t.getInstance=function(){return this._instance||(this._instance=new t),this._instance},t.prototype.setGlobalContextManager=function(t){return l(R,t,h.instance())},t.prototype.active=function(){return this._getContextManager().active()},t.prototype.with=function(t,e,r){for(var n,o=[],i=3;i0)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}(o),!1))},t.prototype.bind=function(t,e){return this._getContextManager().bind(t,e)},t.prototype._getContextManager=function(){return f(R)||S},t.prototype.disable=function(){this._getContextManager().disable(),s(R,h.instance())},t}(),P=T("OpenTelemetry Baggage Key");function m(t){return t.getValue(P)||void 0}function A(){return m(L.getInstance().active())}function I(t,e){return t.setValue(P,e)}function C(t){return t.deleteValue(P)}var b=function(){function t(t){this._entries=t?new Map(t):new Map}return t.prototype.getEntry=function(t){var e=this._entries.get(t);if(e)return Object.assign({},e)},t.prototype.getAllEntries=function(){return Array.from(this._entries.entries()).map(function(t){var e=function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}(t,2);return[e[0],e[1]]})},t.prototype.setEntry=function(e,r){var n=new t(this._entries);return n._entries.set(e,r),n},t.prototype.removeEntry=function(e){var r=new t(this._entries);return r._entries.delete(e),r},t.prototype.removeEntries=function(){for(var e,r,n=[],o=0;o=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}(n),u=a.next();!u.done;u=a.next()){var c=u.value;i._entries.delete(c)}}catch(t){e={error:t}}finally{try{u&&!u.done&&(r=a.return)&&r.call(a)}finally{if(e)throw e.error}}return i},t.prototype.clear=function(){return new t},t}(),N=Symbol("BaggageEntryMetadata"),w=h.instance();function M(t){return void 0===t&&(t={}),new b(new Map(Object.entries(t)))}var U="propagation",D=new _,B=function(){function t(){this.createBaggage=M,this.getBaggage=m,this.getActiveBaggage=A,this.setBaggage=I,this.deleteBaggage=C}return t.getInstance=function(){return this._instance||(this._instance=new t),this._instance},t.prototype.setGlobalPropagator=function(t){return l(U,t,h.instance())},t.prototype.inject=function(t,e,r){return void 0===r&&(r=E),this._getGlobalPropagator().inject(t,e,r)},t.prototype.extract=function(t,e,r){return void 0===r&&(r=p),this._getGlobalPropagator().extract(t,e,r)},t.prototype.fields=function(){return this._getGlobalPropagator().fields()},t.prototype.disable=function(){s(U,h.instance())},t.prototype._getGlobalPropagator=function(){return f(U)||D},t}(),x=B.getInstance(),X=T("OpenTelemetry SDK Context Key SUPPRESS_TRACING");function j(t){return t.setValue(X,!0)}function G(t){return t.deleteValue(X)}function V(t){return!0===t.getValue(X)}var F=",",k="baggage";function H(t){return t.reduce(function(t,e){var r=""+t+(""!==t?F:"")+e;return r.length>8192?t:r},"")}function K(t){return t.getAllEntries().map(function(t){var e=function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}(t,2),r=e[0],n=e[1],o=encodeURIComponent(r)+"="+encodeURIComponent(n.value);return void 0!==n.metadata&&(o+=";"+n.metadata.toString()),o})}function W(t){var e=t.split(";");if(!(e.length<=0)){var r=e.shift();if(r){var n=r.indexOf("=");if(!(n<=0)){var o,i,a=decodeURIComponent(r.substring(0,n).trim()),u=decodeURIComponent(r.substring(n+1).trim());return e.length>0&&("string"!=typeof(i=e.join(";"))&&(w.error("Cannot create baggage metadata from unknown type: "+typeof i),i=""),o={__TYPE__:N,toString:function(){return i}}),{key:a,value:u,metadata:o}}}}}var Y=function(){function t(){}return t.prototype.inject=function(t,e,r){var n=x.getBaggage(t);if(n&&!V(t)){var o=H(K(n).filter(function(t){return t.length<=4096}).slice(0,180));o.length>0&&r.set(e,k,o)}},t.prototype.extract=function(t,e,r){var n=r.get(e,k),o=Array.isArray(n)?n.join(F):n;if(!o)return t;var i={};return 0===o.length?t:(o.split(F).forEach(function(t){var e=W(t);if(e){var r={value:e.value};e.metadata&&(r.metadata=e.metadata),i[e.key]=r}}),0===Object.entries(i).length?t:x.setBaggage(t,x.createBaggage(i)))},t.prototype.fields=function(){return[k]},t}(),z=function(){function t(t,e){this._monotonicClock=e,this._epochMillis=t.now(),this._performanceMillis=e.now()}return t.prototype.now=function(){var t=this._monotonicClock.now()-this._performanceMillis;return this._epochMillis+t},t}(),Z=h.instance(),J=function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},$=function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a};function Q(t){var e,r,n={};if("object"!=typeof t||null==t)return n;try{for(var o=J(Object.entries(t)),i=o.next();!i.done;i=o.next()){var a=$(i.value,2),u=a[0],c=a[1];q(u)?tt(c)?Array.isArray(c)?n[u]=c.slice():n[u]=c:Z.warn("Invalid attribute value set for key: "+u):Z.warn("Invalid attribute key: "+u)}}catch(t){e={error:t}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(e)throw e.error}}return n}function q(t){return"string"==typeof t&&t.length>0}function tt(t){return null==t||(Array.isArray(t)?function(t){var e,r,n;try{for(var o=J(t),i=o.next();!i.done;i=o.next()){var a=i.value;if(null!=a){if(!n){if(et(a)){n=typeof a;continue}return!1}if(typeof a!==n)return!1}}}catch(t){e={error:t}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(e)throw e.error}}return!0}(t):et(t))}function et(t){switch(typeof t){case"number":case"boolean":case"string":return!0}return!1}function rt(){return function(t){Z.error(function(t){return"string"==typeof t?t:JSON.stringify(function(t){for(var e={},r=t;null!==r;)Object.getOwnPropertyNames(r).forEach(function(t){if(!e[t]){var n=r[t];n&&(e[t]=String(n))}}),r=Object.getPrototypeOf(r);return e}(t))}(t))}}var nt=rt();function ot(t){nt=t}function it(t){try{nt(t)}catch(t){}}var at,ut=require("perf_hooks").performance,ct=9,lt=Math.pow(10,6),ft=Math.pow(10,ct);function st(t){var e=t/1e3;return[Math.trunc(e),Math.round(t%1e3*lt)]}function _t(){var t=ut.timeOrigin;if("number"!=typeof t){var e=ut;t=e.timing&&e.timing.fetchStart}return t}function pt(t){return Rt(st(_t()),st("number"==typeof t?t:ut.now()))}function Et(t){if(vt(t))return t;if("number"==typeof t)return t<_t()?pt(t):st(t);if(t instanceof Date)return st(t.getTime());throw TypeError("Invalid input type")}function Tt(t,e){var r=e[0]-t[0],n=e[1]-t[1];return n<0&&(r-=1,n+=ft),[r,n]}function Ot(t){var e=ct,r=""+"0".repeat(e)+t[1]+"Z",n=r.substring(r.length-e-1);return new Date(1e3*t[0]).toISOString().replace("000Z",n)}function yt(t){return t[0]*ft+t[1]}function dt(t){return 1e3*t[0]+t[1]/1e6}function gt(t){return 1e6*t[0]+t[1]/1e3}function vt(t){return Array.isArray(t)&&2===t.length&&"number"==typeof t[0]&&"number"==typeof t[1]}function ht(t){return vt(t)||"number"==typeof t||t instanceof Date}function Rt(t,e){var r=[t[0]+e[0],t[1]+e[1]];return r[1]>=ft&&(r[1]-=ft,r[0]+=1),r}function St(t){return t>=48&&t<=57?t-48:t>=97&&t<=102?t-87:t-55}function Lt(t){for(var e=new Uint8Array(t.length/2),r=0,n=0;n>>0,4*e);for(e=0;e0);e++)e===t-1&&(mt[t-1]=1);return mt.toString("hex",0,t)}}var It,Ct,bt="1.30.1",Nt=((It={})["telemetry.sdk.name"]="opentelemetry",It["process.runtime.name"]="node",It["telemetry.sdk.language"]="nodejs",It["telemetry.sdk.version"]=bt,It),wt="object"==typeof globalThis?globalThis:global;!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"}(Ct||(Ct={}));var Mt=",",Ut=["OTEL_SDK_DISABLED"];function Dt(t){return Ut.indexOf(t)>-1}var Bt=["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 xt(t){return Bt.indexOf(t)>-1}var Xt=["OTEL_NO_PATCH_MODULES","OTEL_PROPAGATORS","OTEL_SEMCONV_STABILITY_OPT_IN"];function jt(t){return Xt.indexOf(t)>-1}var Gt=1/0,Vt=128,Ft=128,kt=128,Ht={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:O.INFO,OTEL_NO_PATCH_MODULES:[],OTEL_PROPAGATORS:["tracecontext","baggage"],OTEL_RESOURCE_ATTRIBUTES:"",OTEL_SERVICE_NAME:"",OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT:Gt,OTEL_ATTRIBUTE_COUNT_LIMIT:Vt,OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT:Gt,OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT:Vt,OTEL_LOGRECORD_ATTRIBUTE_VALUE_LENGTH_LIMIT:Gt,OTEL_LOGRECORD_ATTRIBUTE_COUNT_LIMIT:Vt,OTEL_SPAN_EVENT_COUNT_LIMIT:128,OTEL_SPAN_LINK_COUNT_LIMIT:128,OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT:Ft,OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT:kt,OTEL_TRACES_EXPORTER:"",OTEL_TRACES_SAMPLER:Ct.ParentBasedAlwaysOn,OTEL_TRACES_SAMPLER_ARG:"",OTEL_LOGS_EXPORTER:"",OTEL_EXPORTER_OTLP_INSECURE:"",OTEL_EXPORTER_OTLP_TRACES_INSECURE:"",OTEL_EXPORTER_OTLP_METRICS_INSECURE:"",OTEL_EXPORTER_OTLP_LOGS_INSECURE:"",OTEL_EXPORTER_OTLP_CERTIFICATE:"",OTEL_EXPORTER_OTLP_TRACES_CERTIFICATE:"",OTEL_EXPORTER_OTLP_METRICS_CERTIFICATE:"",OTEL_EXPORTER_OTLP_LOGS_CERTIFICATE:"",OTEL_EXPORTER_OTLP_COMPRESSION:"",OTEL_EXPORTER_OTLP_TRACES_COMPRESSION:"",OTEL_EXPORTER_OTLP_METRICS_COMPRESSION:"",OTEL_EXPORTER_OTLP_LOGS_COMPRESSION:"",OTEL_EXPORTER_OTLP_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_TRACES_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_METRICS_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_LOGS_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_TRACES_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_METRICS_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_LOGS_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_TRACES_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_METRICS_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_LOGS_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE:"cumulative",OTEL_SEMCONV_STABILITY_OPT_IN:[]};function Kt(t,e,r){if(void 0!==r[t]){var n=String(r[t]);e[t]="true"===n.toLowerCase()}}function Wt(t,e,r,n,o){if(void 0===n&&(n=-1/0),void 0===o&&(o=1/0),void 0!==r[t]){var i=Number(r[t]);isNaN(i)||(e[t]=io?o:i)}}function Yt(t,e,r,n){void 0===n&&(n=Mt);var o=r[t];"string"==typeof o&&(e[t]=o.split(n).map(function(t){return t.trim()}))}var zt={ALL:O.ALL,VERBOSE:O.VERBOSE,DEBUG:O.DEBUG,INFO:O.INFO,WARN:O.WARN,ERROR:O.ERROR,NONE:O.NONE};function Zt(t,e,r){var n=r[t];if("string"==typeof n){var o=zt[n.toUpperCase()];null!=o&&(e[t]=o)}}function Jt(t){var e={};for(var r in Ht){var n=r;if("OTEL_LOG_LEVEL"===n)Zt(n,e,t);else if(Dt(n))Kt(n,e,t);else if(xt(n))Wt(n,e,t);else if(jt(n))Yt(n,e,t);else{var o=t[n];null!=o&&(e[n]=String(o))}}return e}function $t(){var t=Jt(process.env);return Object.assign({},Ht,t)}function Qt(){return Jt(process.env)}function qt(t){return Buffer.from(Lt(t)).toString("base64")}function te(t){t.unref()}var ee,re=function(){function t(t){var e;void 0===t&&(t={}),this._propagators=null!==(e=t.propagators)&&void 0!==e?e:[],this._fields=Array.from(new Set(this._propagators.map(function(t){return"function"==typeof t.fields?t.fields():[]}).reduce(function(t,e){return t.concat(e)},[])))}return t.prototype.inject=function(t,e,r){var n,o;try{for(var i=function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}(this._propagators),a=i.next();!a.done;a=i.next()){var u=a.value;try{u.inject(t,e,r)}catch(t){Z.warn("Failed to inject with "+u.constructor.name+". Err: "+t.message)}}}catch(t){n={error:t}}finally{try{a&&!a.done&&(o=i.return)&&o.call(i)}finally{if(n)throw n.error}}},t.prototype.extract=function(t,e,r){return this._propagators.reduce(function(t,n){try{return n.extract(t,e,r)}catch(t){Z.warn("Failed to extract with "+n.constructor.name+". Err: "+t.message)}return t},t)},t.prototype.fields=function(){return this._fields.slice()},t}();!function(t){t[t.NONE=0]="NONE",t[t.SAMPLED=1]="SAMPLED"}(ee||(ee={}));var ne="0000000000000000",oe="00000000000000000000000000000000",ie={traceId:oe,spanId:ne,traceFlags:ee.NONE},ae=function(){function t(t){void 0===t&&(t=ie),this._spanContext=t}return t.prototype.spanContext=function(){return this._spanContext},t.prototype.setAttribute=function(t,e){return this},t.prototype.setAttributes=function(t){return this},t.prototype.addEvent=function(t,e){return this},t.prototype.addLink=function(t){return this},t.prototype.addLinks=function(t){return this},t.prototype.setStatus=function(t){return this},t.prototype.updateName=function(t){return this},t.prototype.end=function(t){},t.prototype.isRecording=function(){return!1},t.prototype.recordException=function(t,e){},t}(),ue=T("OpenTelemetry Context Key SPAN");function ce(t){return t.getValue(ue)||void 0}function le(){return ce(L.getInstance().active())}function fe(t,e){return t.setValue(ue,e)}function se(t){return t.deleteValue(ue)}function _e(t,e){return fe(t,new ae(e))}function pe(t){var e;return null===(e=ce(t))||void 0===e?void 0:e.spanContext()}var Ee=/^([0-9a-f]{32})$/i,Te=/^[0-9a-f]{16}$/i;function Oe(t){return Ee.test(t)&&t!==oe}function ye(t){return Oe(t.traceId)&&(e=t.spanId,Te.test(e)&&e!==ne);var e}function de(t){return new ae(t)}var ge=L.getInstance(),ve=function(){function t(){}return t.prototype.startSpan=function(t,e,r){if(void 0===r&&(r=ge.active()),Boolean(null==e?void 0:e.root))return new ae;var n,o=r&&pe(r);return"object"==typeof(n=o)&&"string"==typeof n.spanId&&"string"==typeof n.traceId&&"number"==typeof n.traceFlags&&ye(o)?new ae(o):new ae},t.prototype.startActiveSpan=function(t,e,r,n){var o,i,a;if(!(arguments.length<2)){2===arguments.length?a=e:3===arguments.length?(o=e,a=r):(o=e,i=r,a=n);var u=null!=i?i:ge.active(),c=this.startSpan(t,o,u),l=fe(u,c);return ge.with(l,a,void 0,c)}},t}(),he=new ve,Re=function(){function t(t,e,r,n){this._provider=t,this.name=e,this.version=r,this.options=n}return t.prototype.startSpan=function(t,e,r){return this._getTracer().startSpan(t,e,r)},t.prototype.startActiveSpan=function(t,e,r,n){var o=this._getTracer();return Reflect.apply(o.startActiveSpan,o,arguments)},t.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):he},t}(),Se=new(function(){function t(){}return t.prototype.getTracer=function(t,e,r){return new ve},t}()),Le=function(){function t(){}return t.prototype.getTracer=function(t,e,r){var n;return null!==(n=this.getDelegateTracer(t,e,r))&&void 0!==n?n:new Re(this,t,e,r)},t.prototype.getDelegate=function(){var t;return null!==(t=this._delegate)&&void 0!==t?t:Se},t.prototype.setDelegate=function(t){this._delegate=t},t.prototype.getDelegateTracer=function(t,e,r){var n;return null===(n=this._delegate)||void 0===n?void 0:n.getTracer(t,e,r)},t}(),Pe="trace",me=function(){function t(){this._proxyTracerProvider=new Le,this.wrapSpanContext=de,this.isSpanContextValid=ye,this.deleteSpan=se,this.getSpan=ce,this.getActiveSpan=le,this.getSpanContext=pe,this.setSpan=fe,this.setSpanContext=_e}return t.getInstance=function(){return this._instance||(this._instance=new t),this._instance},t.prototype.setGlobalTracerProvider=function(t){var e=l(Pe,this._proxyTracerProvider,h.instance());return e&&this._proxyTracerProvider.setDelegate(t),e},t.prototype.getTracerProvider=function(){return f(Pe)||this._proxyTracerProvider},t.prototype.getTracer=function(t,e){return this.getTracerProvider().getTracer(t,e)},t.prototype.disable=function(){s(Pe,h.instance()),this._proxyTracerProvider=new Le},t}().getInstance(),Ae="[_0-9a-z-*/]",Ie=new RegExp("^(?:[a-z]"+Ae+"{0,255}|[a-z0-9]"+Ae+"{0,240}@[a-z]"+Ae+"{0,13})$"),Ce=/^[ -~]{0,255}[!-~]$/,be=/,|=/,Ne=function(){function t(t){this._internalState=new Map,t&&this._parse(t)}return t.prototype.set=function(t,e){var r=this._clone();return r._internalState.has(t)&&r._internalState.delete(t),r._internalState.set(t,e),r},t.prototype.unset=function(t){var e=this._clone();return e._internalState.delete(t),e},t.prototype.get=function(t){return this._internalState.get(t)},t.prototype.serialize=function(){var t=this;return this._keys().reduce(function(e,r){return e.push(r+"="+t.get(r)),e},[]).join(",")},t.prototype._parse=function(t){t.length>512||(this._internalState=t.split(",").reverse().reduce(function(t,e){var r=e.trim(),n=r.indexOf("=");if(-1!==n){var o=r.slice(0,n),i=r.slice(n+1,e.length);(function(t){return Ie.test(t)})(o)&&function(t){return Ce.test(t)&&!be.test(t)}(i)&&t.set(o,i)}return t},new Map),this._internalState.size>32&&(this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,32))))},t.prototype._keys=function(){return Array.from(this._internalState.keys()).reverse()},t.prototype._clone=function(){var e=new t;return e._internalState=new Map(this._internalState),e},t}(),we="traceparent",Me="tracestate",Ue=new RegExp("^\\s?((?!ff)[\\da-f]{2})-((?![0]{32})[\\da-f]{32})-((?![0]{16})[\\da-f]{16})-([\\da-f]{2})(-.*)?\\s?$");function De(t){var e=Ue.exec(t);return e?"00"===e[1]&&e[5]?null:{traceId:e[2],spanId:e[3],traceFlags:parseInt(e[4],16)}:null}var Be,xe,Xe=function(){function t(){}return t.prototype.inject=function(t,e,r){var n=me.getSpanContext(t);if(n&&!V(t)&&ye(n)){var o="00-"+n.traceId+"-"+n.spanId+"-0"+Number(n.traceFlags||ee.NONE).toString(16);r.set(e,we,o),n.traceState&&r.set(e,Me,n.traceState.serialize())}},t.prototype.extract=function(t,e,r){var n=r.get(e,we);if(!n)return t;var o=Array.isArray(n)?n[0]:n;if("string"!=typeof o)return t;var i=De(o);if(!i)return t;i.isRemote=!0;var a=r.get(e,Me);if(a){var u=Array.isArray(a)?a.join(","):a;i.traceState=new Ne("string"==typeof u?u:void 0)}return me.setSpanContext(t,i)},t.prototype.fields=function(){return[we,Me]},t}(),je=T("OpenTelemetry SDK Context Key RPC_METADATA");function Ge(t,e){return t.setValue(je,e)}function Ve(t){return t.deleteValue(je)}function Fe(t){return t.getValue(je)}!function(t){t.HTTP="http"}(Be||(Be={})),function(t){t[t.NOT_RECORD=0]="NOT_RECORD",t[t.RECORD=1]="RECORD",t[t.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"}(xe||(xe={}));var ke,He,Ke=function(){function t(){}return t.prototype.shouldSample=function(){return{decision:xe.NOT_RECORD}},t.prototype.toString=function(){return"AlwaysOffSampler"},t}(),We=function(){function t(){}return t.prototype.shouldSample=function(){return{decision:xe.RECORD_AND_SAMPLED}},t.prototype.toString=function(){return"AlwaysOnSampler"},t}(),Ye=function(){function t(t){var e,r,n,o;this._root=t.root,this._root||(it(new Error("ParentBasedSampler must have a root sampler configured")),this._root=new We),this._remoteParentSampled=null!==(e=t.remoteParentSampled)&&void 0!==e?e:new We,this._remoteParentNotSampled=null!==(r=t.remoteParentNotSampled)&&void 0!==r?r:new Ke,this._localParentSampled=null!==(n=t.localParentSampled)&&void 0!==n?n:new We,this._localParentNotSampled=null!==(o=t.localParentNotSampled)&&void 0!==o?o:new Ke}return t.prototype.shouldSample=function(t,e,r,n,o,i){var a=me.getSpanContext(t);return a&&ye(a)?a.isRemote?a.traceFlags&ee.SAMPLED?this._remoteParentSampled.shouldSample(t,e,r,n,o,i):this._remoteParentNotSampled.shouldSample(t,e,r,n,o,i):a.traceFlags&ee.SAMPLED?this._localParentSampled.shouldSample(t,e,r,n,o,i):this._localParentNotSampled.shouldSample(t,e,r,n,o,i):this._root.shouldSample(t,e,r,n,o,i)},t.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()+"}"},t}(),ze=function(){function t(t){void 0===t&&(t=0),this._ratio=t,this._ratio=this._normalize(t),this._upperBound=Math.floor(4294967295*this._ratio)}return t.prototype.shouldSample=function(t,e){return{decision:Oe(e)&&this._accumulate(e)=1?1:t<=0?0:t},t.prototype._accumulate=function(t){for(var e=0,r=0;r>>0}return e},t}(),Ze="[object Object]",Je="[object Null]",$e="[object Undefined]",Qe=Function.prototype.toString,qe=Qe.call(Object),tr=(ke=Object.getPrototypeOf,He=Object,function(t){return ke(He(t))}),er=Object.prototype,rr=er.hasOwnProperty,nr=Symbol?Symbol.toStringTag:void 0,or=er.toString;function ir(t){if(!function(t){return null!=t&&"object"==typeof t}(t)||function(t){return null==t?void 0===t?$e:Je:nr&&nr in Object(t)?function(t){var e=rr.call(t,nr),r=t[nr],n=!1;try{t[nr]=void 0,n=!0}catch(t){}var o=or.call(t);return n&&(e?t[nr]=r:delete t[nr]),o}(t):function(t){return or.call(t)}(t)}(t)!==Ze)return!1;var e=tr(t);if(null===e)return!0;var r=rr.call(e,"constructor")&&e.constructor;return"function"==typeof r&&r instanceof r&&Qe.call(r)===qe}var ar=20;function ur(){for(var t=[],e=0;e0;)r=lr(r,t.shift(),0,n);return r}function cr(t){return sr(t)?t.slice():t}function lr(t,e,r,n){var o;if(void 0===r&&(r=0),!(r>ar)){if(r++,Er(t)||Er(e)||_r(e))o=cr(e);else if(sr(t)){if(o=t.slice(),sr(e))for(var i=0,a=e.length;i=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};function vr(t,e){return"string"==typeof e?t===e:!!t.match(e)}function hr(t,e){var r,n;if(!e)return!1;try{for(var o=gr(e),i=o.next();!i.done;i=o.next())if(vr(t,i.value))return!0}catch(t){r={error:t}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return!1}function Rr(t){return"function"==typeof t&&"function"==typeof t.__original&&"function"==typeof t.__unwrap&&!0===t.__wrapped}var Sr=function(){function t(){var t=this;this._promise=new Promise(function(e,r){t._resolve=e,t._reject=r})}return Object.defineProperty(t.prototype,"promise",{get:function(){return this._promise},enumerable:!1,configurable:!0}),t.prototype.resolve=function(t){this._resolve(t)},t.prototype.reject=function(t){this._reject(t)},t}(),Lr=function(){function t(t,e){this._callback=t,this._that=e,this._isCalled=!1,this._deferred=new Sr}return Object.defineProperty(t.prototype,"isCalled",{get:function(){return this._isCalled},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"promise",{get:function(){return this._deferred.promise},enumerable:!1,configurable:!0}),t.prototype.call=function(){for(var t,e=this,r=[],n=0;n0)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}(r),!1))).then(function(t){return e._deferred.resolve(t)},function(t){return e._deferred.reject(t)})}catch(t){this._deferred.reject(t)}}return this._deferred.promise},t}(),Pr=L.getInstance(),mr={getKeyPairs:K,serializeKeyPairs:H,parseKeyPairsIntoRecord:function(t){return"string"!=typeof t||0===t.length?{}:t.split(F).map(function(t){return W(t)}).filter(function(t){return void 0!==t&&t.value.length>0}).reduce(function(t,e){return t[e.key]=e.value,t},{})},parsePairKeyValue:W},Ar={_export:function(t,e){return new Promise(function(r){Pr.with(j(Pr.active()),function(){t.export(e,function(t){r(t)})})})}};module.exports=e})(); \ No newline at end of file +(()=>{"use strict";var t={d:(e,r)=>{for(var n in r)t.o(r,n)&&!t.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:r[n]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r:t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}},e={};t.r(e),t.d(e,{AlwaysOffSampler:()=>Ke,AlwaysOnSampler:()=>We,AnchoredClock:()=>z,BindOnceFuture:()=>Lr,CompositePropagator:()=>re,DEFAULT_ATTRIBUTE_COUNT_LIMIT:()=>Ut,DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT:()=>Mt,DEFAULT_ENVIRONMENT:()=>xt,DEFAULT_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT:()=>Dt,DEFAULT_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT:()=>Bt,ExportResultCode:()=>at,ParentBasedSampler:()=>Ye,RPCType:()=>Be,RandomIdGenerator:()=>zt,SDK_INFO:()=>qt,TRACE_PARENT_HEADER:()=>we,TRACE_STATE_HEADER:()=>Me,TimeoutError:()=>yr,TraceIdRatioBasedSampler:()=>ze,TraceState:()=>Ne,TracesSamplerValues:()=>ut,VERSION:()=>Qt,W3CBaggagePropagator:()=>Y,W3CTraceContextPropagator:()=>Xe,_globalThis:()=>Wt,addHrTimes:()=>St,baggageUtils:()=>mr,callWithTimeout:()=>dr,deleteRPCMetadata:()=>Ve,getEnv:()=>Ht,getEnvWithoutDefaults:()=>Kt,getRPCMetadata:()=>Fe,getTimeOrigin:()=>pt,globalErrorHandler:()=>it,hexToBase64:()=>Yt,hexToBinary:()=>Pt,hrTime:()=>Et,hrTimeDuration:()=>Ot,hrTimeToMicroseconds:()=>vt,hrTimeToMilliseconds:()=>gt,hrTimeToNanoseconds:()=>dt,hrTimeToTimeStamp:()=>yt,internal:()=>Ar,isAttributeKey:()=>q,isAttributeValue:()=>tt,isTimeInput:()=>Rt,isTimeInputHrTime:()=>ht,isTracingSuppressed:()=>V,isUrlIgnored:()=>hr,isWrapped:()=>Rr,loggingErrorHandler:()=>rt,merge:()=>ur,millisToHrTime:()=>_t,otperformance:()=>ct,parseEnvironment:()=>kt,parseTraceParent:()=>De,sanitizeAttributes:()=>Q,setGlobalErrorHandler:()=>ot,setRPCMetadata:()=>Ge,suppressTracing:()=>j,timeInputToHrTime:()=>Tt,unrefTimer:()=>te,unsuppressTracing:()=>G,urlMatches:()=>vr});var r="object"==typeof globalThis?globalThis:global,n="1.9.0",o=/^(\d+)\.(\d+)\.(\d+)(-(.+))?$/,i=function(t){var e=new Set([t]),r=new Set,n=t.match(o);if(!n)return function(){return!1};var i=+n[1],a=+n[2],u=+n[3];if(null!=n[4])return function(e){return e===t};function c(t){return r.add(t),!1}function l(t){return e.add(t),!0}return function(t){if(e.has(t))return!0;if(r.has(t))return!1;var n=t.match(o);if(!n)return c(t);var f=+n[1],s=+n[2],_=+n[3];return null!=n[4]||i!==f?c(t):0===i?a===s&&u<=_?l(t):c(t):a<=s?l(t):c(t)}}(n),a=n.split(".")[0],u=Symbol.for("opentelemetry.js.api."+a),c=r;function l(t,e,r,o){var i;void 0===o&&(o=!1);var a=c[u]=null!==(i=c[u])&&void 0!==i?i:{version:n};if(!o&&a[t]){var l=new Error("@opentelemetry/api: Attempted duplicate registration of API: "+t);return r.error(l.stack||l.message),!1}return a.version!==n?(l=new Error("@opentelemetry/api: Registration of version v"+a.version+" for "+t+" does not match previously registered API v"+n),r.error(l.stack||l.message),!1):(a[t]=e,r.debug("@opentelemetry/api: Registered a global for "+t+" v"+n+"."),!0)}function f(t){var e,r,n=null===(e=c[u])||void 0===e?void 0:e.version;if(n&&i(n))return null===(r=c[u])||void 0===r?void 0:r[t]}function s(t,e){e.debug("@opentelemetry/api: Unregistering a global for "+t+" v"+n+".");var r=c[u];r&&delete r[t]}var _=function(){function t(){}return t.prototype.inject=function(t,e){},t.prototype.extract=function(t,e){return t},t.prototype.fields=function(){return[]},t}(),p={get:function(t,e){if(null!=t)return t[e]},keys:function(t){return null==t?[]:Object.keys(t)}},E={set:function(t,e,r){null!=t&&(t[e]=r)}};function T(t){return Symbol.for(t)}var O,y=new function t(e){var r=this;r._currentContext=e?new Map(e):new Map,r.getValue=function(t){return r._currentContext.get(t)},r.setValue=function(e,n){var o=new t(r._currentContext);return o._currentContext.set(e,n),o},r.deleteValue=function(e){var n=new t(r._currentContext);return n._currentContext.delete(e),n}},d=function(){function t(){}return t.prototype.active=function(){return y},t.prototype.with=function(t,e,r){for(var n=[],o=3;o0)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}(n),!1))},t.prototype.bind=function(t,e){return e},t.prototype.enable=function(){return this},t.prototype.disable=function(){return this},t}(),g=function(){function t(t){this._namespace=t.namespace||"DiagComponentLogger"}return t.prototype.debug=function(){for(var t=[],e=0;e0)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}(r),!1))}!function(t){t[t.NONE=0]="NONE",t[t.ERROR=30]="ERROR",t[t.WARN=50]="WARN",t[t.INFO=60]="INFO",t[t.DEBUG=70]="DEBUG",t[t.VERBOSE=80]="VERBOSE",t[t.ALL=9999]="ALL"}(O||(O={}));var h=function(){function t(){function t(t){return function(){for(var e=[],r=0;r0)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}(e),!1))}}var e=this;e.setLogger=function(t,r){var n,o,i;if(void 0===r&&(r={logLevel:O.INFO}),t===e){var a=new Error("Cannot use diag as the logger for itself. Please use a DiagLogger implementation like ConsoleDiagLogger or a custom implementation");return e.error(null!==(n=a.stack)&&void 0!==n?n:a.message),!1}"number"==typeof r&&(r={logLevel:r});var u=f("diag"),c=function(t,e){function r(r,n){var o=e[r];return"function"==typeof o&&t>=n?o.bind(e):function(){}}return tO.ALL&&(t=O.ALL),e=e||{},{error:r("error",O.ERROR),warn:r("warn",O.WARN),info:r("info",O.INFO),debug:r("debug",O.DEBUG),verbose:r("verbose",O.VERBOSE)}}(null!==(o=r.logLevel)&&void 0!==o?o:O.INFO,t);if(u&&!r.suppressOverrideMessage){var s=null!==(i=(new Error).stack)&&void 0!==i?i:"";u.warn("Current logger will be overwritten from "+s),c.warn("Current logger will overwrite one already registered from "+s)}return l("diag",c,e,!0)},e.disable=function(){s("diag",e)},e.createComponentLogger=function(t){return new g(t)},e.verbose=t("verbose"),e.debug=t("debug"),e.info=t("info"),e.warn=t("warn"),e.error=t("error")}return t.instance=function(){return this._instance||(this._instance=new t),this._instance},t}(),R="context",S=new d,L=function(){function t(){}return t.getInstance=function(){return this._instance||(this._instance=new t),this._instance},t.prototype.setGlobalContextManager=function(t){return l(R,t,h.instance())},t.prototype.active=function(){return this._getContextManager().active()},t.prototype.with=function(t,e,r){for(var n,o=[],i=3;i0)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}(o),!1))},t.prototype.bind=function(t,e){return this._getContextManager().bind(t,e)},t.prototype._getContextManager=function(){return f(R)||S},t.prototype.disable=function(){this._getContextManager().disable(),s(R,h.instance())},t}(),P=T("OpenTelemetry Baggage Key");function m(t){return t.getValue(P)||void 0}function A(){return m(L.getInstance().active())}function I(t,e){return t.setValue(P,e)}function C(t){return t.deleteValue(P)}var b=function(){function t(t){this._entries=t?new Map(t):new Map}return t.prototype.getEntry=function(t){var e=this._entries.get(t);if(e)return Object.assign({},e)},t.prototype.getAllEntries=function(){return Array.from(this._entries.entries()).map(function(t){var e=function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}(t,2);return[e[0],e[1]]})},t.prototype.setEntry=function(e,r){var n=new t(this._entries);return n._entries.set(e,r),n},t.prototype.removeEntry=function(e){var r=new t(this._entries);return r._entries.delete(e),r},t.prototype.removeEntries=function(){for(var e,r,n=[],o=0;o=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}(n),u=a.next();!u.done;u=a.next()){var c=u.value;i._entries.delete(c)}}catch(t){e={error:t}}finally{try{u&&!u.done&&(r=a.return)&&r.call(a)}finally{if(e)throw e.error}}return i},t.prototype.clear=function(){return new t},t}(),N=Symbol("BaggageEntryMetadata"),w=h.instance();function M(t){return void 0===t&&(t={}),new b(new Map(Object.entries(t)))}var U="propagation",D=new _,B=function(){function t(){this.createBaggage=M,this.getBaggage=m,this.getActiveBaggage=A,this.setBaggage=I,this.deleteBaggage=C}return t.getInstance=function(){return this._instance||(this._instance=new t),this._instance},t.prototype.setGlobalPropagator=function(t){return l(U,t,h.instance())},t.prototype.inject=function(t,e,r){return void 0===r&&(r=E),this._getGlobalPropagator().inject(t,e,r)},t.prototype.extract=function(t,e,r){return void 0===r&&(r=p),this._getGlobalPropagator().extract(t,e,r)},t.prototype.fields=function(){return this._getGlobalPropagator().fields()},t.prototype.disable=function(){s(U,h.instance())},t.prototype._getGlobalPropagator=function(){return f(U)||D},t}(),x=B.getInstance(),X=T("OpenTelemetry SDK Context Key SUPPRESS_TRACING");function j(t){return t.setValue(X,!0)}function G(t){return t.deleteValue(X)}function V(t){return!0===t.getValue(X)}var F=",",k="baggage";function H(t){return t.reduce(function(t,e){var r=""+t+(""!==t?F:"")+e;return r.length>8192?t:r},"")}function K(t){return t.getAllEntries().map(function(t){var e=function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}(t,2),r=e[0],n=e[1],o=encodeURIComponent(r)+"="+encodeURIComponent(n.value);return void 0!==n.metadata&&(o+=";"+n.metadata.toString()),o})}function W(t){var e=t.split(";");if(!(e.length<=0)){var r=e.shift();if(r){var n=r.indexOf("=");if(!(n<=0)){var o,i,a=decodeURIComponent(r.substring(0,n).trim()),u=decodeURIComponent(r.substring(n+1).trim());return e.length>0&&("string"!=typeof(i=e.join(";"))&&(w.error("Cannot create baggage metadata from unknown type: "+typeof i),i=""),o={__TYPE__:N,toString:function(){return i}}),{key:a,value:u,metadata:o}}}}}var Y=function(){function t(){}return t.prototype.inject=function(t,e,r){var n=x.getBaggage(t);if(n&&!V(t)){var o=H(K(n).filter(function(t){return t.length<=4096}).slice(0,180));o.length>0&&r.set(e,k,o)}},t.prototype.extract=function(t,e,r){var n=r.get(e,k),o=Array.isArray(n)?n.join(F):n;if(!o)return t;var i={};return 0===o.length?t:(o.split(F).forEach(function(t){var e=W(t);if(e){var r={value:e.value};e.metadata&&(r.metadata=e.metadata),i[e.key]=r}}),0===Object.entries(i).length?t:x.setBaggage(t,x.createBaggage(i)))},t.prototype.fields=function(){return[k]},t}(),z=function(){function t(t,e){this._monotonicClock=e,this._epochMillis=t.now(),this._performanceMillis=e.now()}return t.prototype.now=function(){var t=this._monotonicClock.now()-this._performanceMillis;return this._epochMillis+t},t}(),Z=h.instance(),J=function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},$=function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a};function Q(t){var e,r,n={};if("object"!=typeof t||null==t)return n;try{for(var o=J(Object.entries(t)),i=o.next();!i.done;i=o.next()){var a=$(i.value,2),u=a[0],c=a[1];q(u)?tt(c)?Array.isArray(c)?n[u]=c.slice():n[u]=c:Z.warn("Invalid attribute value set for key: "+u):Z.warn("Invalid attribute key: "+u)}}catch(t){e={error:t}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(e)throw e.error}}return n}function q(t){return"string"==typeof t&&t.length>0}function tt(t){return null==t||(Array.isArray(t)?function(t){var e,r,n;try{for(var o=J(t),i=o.next();!i.done;i=o.next()){var a=i.value;if(null!=a){if(!n){if(et(a)){n=typeof a;continue}return!1}if(typeof a!==n)return!1}}}catch(t){e={error:t}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(e)throw e.error}}return!0}(t):et(t))}function et(t){switch(typeof t){case"number":case"boolean":case"string":return!0}return!1}function rt(){return function(t){Z.error(function(t){return"string"==typeof t?t:JSON.stringify(function(t){for(var e={},r=t;null!==r;)Object.getOwnPropertyNames(r).forEach(function(t){if(!e[t]){var n=r[t];n&&(e[t]=String(n))}}),r=Object.getPrototypeOf(r);return e}(t))}(t))}}var nt=rt();function ot(t){nt=t}function it(t){try{nt(t)}catch(t){}}var at,ut,ct=require("perf_hooks").performance,lt=9,ft=Math.pow(10,6),st=Math.pow(10,lt);function _t(t){var e=t/1e3;return[Math.trunc(e),Math.round(t%1e3*ft)]}function pt(){var t=ct.timeOrigin;if("number"!=typeof t){var e=ct;t=e.timing&&e.timing.fetchStart}return t}function Et(t){return St(_t(pt()),_t("number"==typeof t?t:ct.now()))}function Tt(t){if(ht(t))return t;if("number"==typeof t)return t=st&&(r[1]-=st,r[0]+=1),r}function Lt(t){return t>=48&&t<=57?t-48:t>=97&&t<=102?t-87:t-55}function Pt(t){for(var e=new Uint8Array(t.length/2),r=0,n=0;n-1}var Ct=["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 bt(t){return Ct.indexOf(t)>-1}var Nt=["OTEL_NO_PATCH_MODULES","OTEL_PROPAGATORS","OTEL_SEMCONV_STABILITY_OPT_IN"];function wt(t){return Nt.indexOf(t)>-1}var Mt=1/0,Ut=128,Dt=128,Bt=128,xt={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:O.INFO,OTEL_NO_PATCH_MODULES:[],OTEL_PROPAGATORS:["tracecontext","baggage"],OTEL_RESOURCE_ATTRIBUTES:"",OTEL_SERVICE_NAME:"",OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT:Mt,OTEL_ATTRIBUTE_COUNT_LIMIT:Ut,OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT:Mt,OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT:Ut,OTEL_LOGRECORD_ATTRIBUTE_VALUE_LENGTH_LIMIT:Mt,OTEL_LOGRECORD_ATTRIBUTE_COUNT_LIMIT:Ut,OTEL_SPAN_EVENT_COUNT_LIMIT:128,OTEL_SPAN_LINK_COUNT_LIMIT:128,OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT:Dt,OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT:Bt,OTEL_TRACES_EXPORTER:"",OTEL_TRACES_SAMPLER:ut.ParentBasedAlwaysOn,OTEL_TRACES_SAMPLER_ARG:"",OTEL_LOGS_EXPORTER:"",OTEL_EXPORTER_OTLP_INSECURE:"",OTEL_EXPORTER_OTLP_TRACES_INSECURE:"",OTEL_EXPORTER_OTLP_METRICS_INSECURE:"",OTEL_EXPORTER_OTLP_LOGS_INSECURE:"",OTEL_EXPORTER_OTLP_CERTIFICATE:"",OTEL_EXPORTER_OTLP_TRACES_CERTIFICATE:"",OTEL_EXPORTER_OTLP_METRICS_CERTIFICATE:"",OTEL_EXPORTER_OTLP_LOGS_CERTIFICATE:"",OTEL_EXPORTER_OTLP_COMPRESSION:"",OTEL_EXPORTER_OTLP_TRACES_COMPRESSION:"",OTEL_EXPORTER_OTLP_METRICS_COMPRESSION:"",OTEL_EXPORTER_OTLP_LOGS_COMPRESSION:"",OTEL_EXPORTER_OTLP_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_TRACES_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_METRICS_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_LOGS_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_TRACES_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_METRICS_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_LOGS_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_TRACES_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_METRICS_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_LOGS_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE:"cumulative",OTEL_SEMCONV_STABILITY_OPT_IN:[]};function Xt(t,e,r){if(void 0!==r[t]){var n=String(r[t]);e[t]="true"===n.toLowerCase()}}function jt(t,e,r,n,o){if(void 0===n&&(n=-1/0),void 0===o&&(o=1/0),void 0!==r[t]){var i=Number(r[t]);isNaN(i)||(e[t]=io?o:i)}}function Gt(t,e,r,n){void 0===n&&(n=mt);var o=r[t];"string"==typeof o&&(e[t]=o.split(n).map(function(t){return t.trim()}))}var Vt={ALL:O.ALL,VERBOSE:O.VERBOSE,DEBUG:O.DEBUG,INFO:O.INFO,WARN:O.WARN,ERROR:O.ERROR,NONE:O.NONE};function Ft(t,e,r){var n=r[t];if("string"==typeof n){var o=Vt[n.toUpperCase()];null!=o&&(e[t]=o)}}function kt(t){var e={};for(var r in xt){var n=r;if("OTEL_LOG_LEVEL"===n)Ft(n,e,t);else if(It(n))Xt(n,e,t);else if(bt(n))jt(n,e,t);else if(wt(n))Gt(n,e,t);else{var o=t[n];null!=o&&(e[n]=String(o))}}return e}function Ht(){var t=kt(process.env);return Object.assign({},xt,t)}function Kt(){return kt(process.env)}var Wt="object"==typeof globalThis?globalThis:global;function Yt(t){return Buffer.from(Pt(t)).toString("base64")}var zt=function(){this.generateTraceId=Jt(16),this.generateSpanId=Jt(8)},Zt=Buffer.allocUnsafe(16);function Jt(t){return function(){for(var e=0;e>>0,4*e);for(e=0;e0);e++)e===t-1&&(Zt[t-1]=1);return Zt.toString("hex",0,t)}}var $t,Qt="1.30.1",qt=(($t={})["telemetry.sdk.name"]="opentelemetry",$t["process.runtime.name"]="node",$t["telemetry.sdk.language"]="nodejs",$t["telemetry.sdk.version"]=Qt,$t);function te(t){t.unref()}var ee,re=function(){function t(t){var e;void 0===t&&(t={}),this._propagators=null!==(e=t.propagators)&&void 0!==e?e:[],this._fields=Array.from(new Set(this._propagators.map(function(t){return"function"==typeof t.fields?t.fields():[]}).reduce(function(t,e){return t.concat(e)},[])))}return t.prototype.inject=function(t,e,r){var n,o;try{for(var i=function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}(this._propagators),a=i.next();!a.done;a=i.next()){var u=a.value;try{u.inject(t,e,r)}catch(t){Z.warn("Failed to inject with "+u.constructor.name+". Err: "+t.message)}}}catch(t){n={error:t}}finally{try{a&&!a.done&&(o=i.return)&&o.call(i)}finally{if(n)throw n.error}}},t.prototype.extract=function(t,e,r){return this._propagators.reduce(function(t,n){try{return n.extract(t,e,r)}catch(t){Z.warn("Failed to extract with "+n.constructor.name+". Err: "+t.message)}return t},t)},t.prototype.fields=function(){return this._fields.slice()},t}();!function(t){t[t.NONE=0]="NONE",t[t.SAMPLED=1]="SAMPLED"}(ee||(ee={}));var ne="0000000000000000",oe="00000000000000000000000000000000",ie={traceId:oe,spanId:ne,traceFlags:ee.NONE},ae=function(){function t(t){void 0===t&&(t=ie),this._spanContext=t}return t.prototype.spanContext=function(){return this._spanContext},t.prototype.setAttribute=function(t,e){return this},t.prototype.setAttributes=function(t){return this},t.prototype.addEvent=function(t,e){return this},t.prototype.addLink=function(t){return this},t.prototype.addLinks=function(t){return this},t.prototype.setStatus=function(t){return this},t.prototype.updateName=function(t){return this},t.prototype.end=function(t){},t.prototype.isRecording=function(){return!1},t.prototype.recordException=function(t,e){},t}(),ue=T("OpenTelemetry Context Key SPAN");function ce(t){return t.getValue(ue)||void 0}function le(){return ce(L.getInstance().active())}function fe(t,e){return t.setValue(ue,e)}function se(t){return t.deleteValue(ue)}function _e(t,e){return fe(t,new ae(e))}function pe(t){var e;return null===(e=ce(t))||void 0===e?void 0:e.spanContext()}var Ee=/^([0-9a-f]{32})$/i,Te=/^[0-9a-f]{16}$/i;function Oe(t){return Ee.test(t)&&t!==oe}function ye(t){return Oe(t.traceId)&&(e=t.spanId,Te.test(e)&&e!==ne);var e}function de(t){return new ae(t)}var ge=L.getInstance(),ve=function(){function t(){}return t.prototype.startSpan=function(t,e,r){if(void 0===r&&(r=ge.active()),Boolean(null==e?void 0:e.root))return new ae;var n,o=r&&pe(r);return"object"==typeof(n=o)&&"string"==typeof n.spanId&&"string"==typeof n.traceId&&"number"==typeof n.traceFlags&&ye(o)?new ae(o):new ae},t.prototype.startActiveSpan=function(t,e,r,n){var o,i,a;if(!(arguments.length<2)){2===arguments.length?a=e:3===arguments.length?(o=e,a=r):(o=e,i=r,a=n);var u=null!=i?i:ge.active(),c=this.startSpan(t,o,u),l=fe(u,c);return ge.with(l,a,void 0,c)}},t}(),he=new ve,Re=function(){function t(t,e,r,n){this._provider=t,this.name=e,this.version=r,this.options=n}return t.prototype.startSpan=function(t,e,r){return this._getTracer().startSpan(t,e,r)},t.prototype.startActiveSpan=function(t,e,r,n){var o=this._getTracer();return Reflect.apply(o.startActiveSpan,o,arguments)},t.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):he},t}(),Se=new(function(){function t(){}return t.prototype.getTracer=function(t,e,r){return new ve},t}()),Le=function(){function t(){}return t.prototype.getTracer=function(t,e,r){var n;return null!==(n=this.getDelegateTracer(t,e,r))&&void 0!==n?n:new Re(this,t,e,r)},t.prototype.getDelegate=function(){var t;return null!==(t=this._delegate)&&void 0!==t?t:Se},t.prototype.setDelegate=function(t){this._delegate=t},t.prototype.getDelegateTracer=function(t,e,r){var n;return null===(n=this._delegate)||void 0===n?void 0:n.getTracer(t,e,r)},t}(),Pe="trace",me=function(){function t(){this._proxyTracerProvider=new Le,this.wrapSpanContext=de,this.isSpanContextValid=ye,this.deleteSpan=se,this.getSpan=ce,this.getActiveSpan=le,this.getSpanContext=pe,this.setSpan=fe,this.setSpanContext=_e}return t.getInstance=function(){return this._instance||(this._instance=new t),this._instance},t.prototype.setGlobalTracerProvider=function(t){var e=l(Pe,this._proxyTracerProvider,h.instance());return e&&this._proxyTracerProvider.setDelegate(t),e},t.prototype.getTracerProvider=function(){return f(Pe)||this._proxyTracerProvider},t.prototype.getTracer=function(t,e){return this.getTracerProvider().getTracer(t,e)},t.prototype.disable=function(){s(Pe,h.instance()),this._proxyTracerProvider=new Le},t}().getInstance(),Ae="[_0-9a-z-*/]",Ie=new RegExp("^(?:[a-z]"+Ae+"{0,255}|[a-z0-9]"+Ae+"{0,240}@[a-z]"+Ae+"{0,13})$"),Ce=/^[ -~]{0,255}[!-~]$/,be=/,|=/,Ne=function(){function t(t){this._internalState=new Map,t&&this._parse(t)}return t.prototype.set=function(t,e){var r=this._clone();return r._internalState.has(t)&&r._internalState.delete(t),r._internalState.set(t,e),r},t.prototype.unset=function(t){var e=this._clone();return e._internalState.delete(t),e},t.prototype.get=function(t){return this._internalState.get(t)},t.prototype.serialize=function(){var t=this;return this._keys().reduce(function(e,r){return e.push(r+"="+t.get(r)),e},[]).join(",")},t.prototype._parse=function(t){t.length>512||(this._internalState=t.split(",").reverse().reduce(function(t,e){var r=e.trim(),n=r.indexOf("=");if(-1!==n){var o=r.slice(0,n),i=r.slice(n+1,e.length);(function(t){return Ie.test(t)})(o)&&function(t){return Ce.test(t)&&!be.test(t)}(i)&&t.set(o,i)}return t},new Map),this._internalState.size>32&&(this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,32))))},t.prototype._keys=function(){return Array.from(this._internalState.keys()).reverse()},t.prototype._clone=function(){var e=new t;return e._internalState=new Map(this._internalState),e},t}(),we="traceparent",Me="tracestate",Ue=new RegExp("^\\s?((?!ff)[\\da-f]{2})-((?![0]{32})[\\da-f]{32})-((?![0]{16})[\\da-f]{16})-([\\da-f]{2})(-.*)?\\s?$");function De(t){var e=Ue.exec(t);return e?"00"===e[1]&&e[5]?null:{traceId:e[2],spanId:e[3],traceFlags:parseInt(e[4],16)}:null}var Be,xe,Xe=function(){function t(){}return t.prototype.inject=function(t,e,r){var n=me.getSpanContext(t);if(n&&!V(t)&&ye(n)){var o="00-"+n.traceId+"-"+n.spanId+"-0"+Number(n.traceFlags||ee.NONE).toString(16);r.set(e,we,o),n.traceState&&r.set(e,Me,n.traceState.serialize())}},t.prototype.extract=function(t,e,r){var n=r.get(e,we);if(!n)return t;var o=Array.isArray(n)?n[0]:n;if("string"!=typeof o)return t;var i=De(o);if(!i)return t;i.isRemote=!0;var a=r.get(e,Me);if(a){var u=Array.isArray(a)?a.join(","):a;i.traceState=new Ne("string"==typeof u?u:void 0)}return me.setSpanContext(t,i)},t.prototype.fields=function(){return[we,Me]},t}(),je=T("OpenTelemetry SDK Context Key RPC_METADATA");function Ge(t,e){return t.setValue(je,e)}function Ve(t){return t.deleteValue(je)}function Fe(t){return t.getValue(je)}!function(t){t.HTTP="http"}(Be||(Be={})),function(t){t[t.NOT_RECORD=0]="NOT_RECORD",t[t.RECORD=1]="RECORD",t[t.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"}(xe||(xe={}));var ke,He,Ke=function(){function t(){}return t.prototype.shouldSample=function(){return{decision:xe.NOT_RECORD}},t.prototype.toString=function(){return"AlwaysOffSampler"},t}(),We=function(){function t(){}return t.prototype.shouldSample=function(){return{decision:xe.RECORD_AND_SAMPLED}},t.prototype.toString=function(){return"AlwaysOnSampler"},t}(),Ye=function(){function t(t){var e,r,n,o;this._root=t.root,this._root||(it(new Error("ParentBasedSampler must have a root sampler configured")),this._root=new We),this._remoteParentSampled=null!==(e=t.remoteParentSampled)&&void 0!==e?e:new We,this._remoteParentNotSampled=null!==(r=t.remoteParentNotSampled)&&void 0!==r?r:new Ke,this._localParentSampled=null!==(n=t.localParentSampled)&&void 0!==n?n:new We,this._localParentNotSampled=null!==(o=t.localParentNotSampled)&&void 0!==o?o:new Ke}return t.prototype.shouldSample=function(t,e,r,n,o,i){var a=me.getSpanContext(t);return a&&ye(a)?a.isRemote?a.traceFlags&ee.SAMPLED?this._remoteParentSampled.shouldSample(t,e,r,n,o,i):this._remoteParentNotSampled.shouldSample(t,e,r,n,o,i):a.traceFlags&ee.SAMPLED?this._localParentSampled.shouldSample(t,e,r,n,o,i):this._localParentNotSampled.shouldSample(t,e,r,n,o,i):this._root.shouldSample(t,e,r,n,o,i)},t.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()+"}"},t}(),ze=function(){function t(t){void 0===t&&(t=0),this._ratio=t,this._ratio=this._normalize(t),this._upperBound=Math.floor(4294967295*this._ratio)}return t.prototype.shouldSample=function(t,e){return{decision:Oe(e)&&this._accumulate(e)=1?1:t<=0?0:t},t.prototype._accumulate=function(t){for(var e=0,r=0;r>>0}return e},t}(),Ze="[object Object]",Je="[object Null]",$e="[object Undefined]",Qe=Function.prototype.toString,qe=Qe.call(Object),tr=(ke=Object.getPrototypeOf,He=Object,function(t){return ke(He(t))}),er=Object.prototype,rr=er.hasOwnProperty,nr=Symbol?Symbol.toStringTag:void 0,or=er.toString;function ir(t){if(!function(t){return null!=t&&"object"==typeof t}(t)||function(t){return null==t?void 0===t?$e:Je:nr&&nr in Object(t)?function(t){var e=rr.call(t,nr),r=t[nr],n=!1;try{t[nr]=void 0,n=!0}catch(t){}var o=or.call(t);return n&&(e?t[nr]=r:delete t[nr]),o}(t):function(t){return or.call(t)}(t)}(t)!==Ze)return!1;var e=tr(t);if(null===e)return!0;var r=rr.call(e,"constructor")&&e.constructor;return"function"==typeof r&&r instanceof r&&Qe.call(r)===qe}var ar=20;function ur(){for(var t=[],e=0;e0;)r=lr(r,t.shift(),0,n);return r}function cr(t){return sr(t)?t.slice():t}function lr(t,e,r,n){var o;if(void 0===r&&(r=0),!(r>ar)){if(r++,Er(t)||Er(e)||_r(e))o=cr(e);else if(sr(t)){if(o=t.slice(),sr(e))for(var i=0,a=e.length;i=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};function vr(t,e){return"string"==typeof e?t===e:!!t.match(e)}function hr(t,e){var r,n;if(!e)return!1;try{for(var o=gr(e),i=o.next();!i.done;i=o.next())if(vr(t,i.value))return!0}catch(t){r={error:t}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return!1}function Rr(t){return"function"==typeof t&&"function"==typeof t.__original&&"function"==typeof t.__unwrap&&!0===t.__wrapped}var Sr=function(){function t(){var t=this;this._promise=new Promise(function(e,r){t._resolve=e,t._reject=r})}return Object.defineProperty(t.prototype,"promise",{get:function(){return this._promise},enumerable:!1,configurable:!0}),t.prototype.resolve=function(t){this._resolve(t)},t.prototype.reject=function(t){this._reject(t)},t}(),Lr=function(){function t(t,e){this._callback=t,this._that=e,this._isCalled=!1,this._deferred=new Sr}return Object.defineProperty(t.prototype,"isCalled",{get:function(){return this._isCalled},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"promise",{get:function(){return this._deferred.promise},enumerable:!1,configurable:!0}),t.prototype.call=function(){for(var t,e=this,r=[],n=0;n0)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}(r),!1))).then(function(t){return e._deferred.resolve(t)},function(t){return e._deferred.reject(t)})}catch(t){this._deferred.reject(t)}}return this._deferred.promise},t}(),Pr=L.getInstance(),mr={getKeyPairs:K,serializeKeyPairs:H,parseKeyPairsIntoRecord:function(t){return"string"!=typeof t||0===t.length?{}:t.split(F).map(function(t){return W(t)}).filter(function(t){return void 0!==t&&t.value.length>0}).reduce(function(t,e){return t[e.key]=e.value,t},{})},parsePairKeyValue:W},Ar={_export:function(t,e){return new Promise(function(r){Pr.with(j(Pr.active()),function(){t.export(e,function(t){r(t)})})})}};module.exports=e})(); \ No newline at end of file diff --git a/packages/node_modules/@opentelemetry/resources.js b/packages/node_modules/@opentelemetry/resources.js index 9f5b9437d31..23f156a83a3 100644 --- a/packages/node_modules/@opentelemetry/resources.js +++ b/packages/node_modules/@opentelemetry/resources.js @@ -1 +1 @@ -(()=>{"use strict";var e={454:(e,t,r)=>{r.d(t,{D:()=>c});var n=r(9896),o=r(2733),i=r(8758),a=function(e,t,r,n){return new(r||(r=Promise))(function(o,i){function a(e){try{c(n.next(e))}catch(e){i(e)}}function u(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(a,u)}c((n=n.apply(e,t||[])).next())})},u=function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]{e.exports=require("process")},1275:(e,t,r)=>{r.d(t,{V:()=>o});var n=r(6051),o=function(){function e(e){this._namespace=e.namespace||"DiagComponentLogger"}return e.prototype.debug=function(){for(var e=[],t=0;t0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}(r),!1))}},1568:(e,t,r)=>{r.d(t,{D:()=>u});var n=r(2733),o=r(8758),i=function(e,t,r,n){return new(r||(r=Promise))(function(o,i){function a(e){try{c(n.next(e))}catch(e){i(e)}}function u(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(a,u)}c((n=n.apply(e,t||[])).next())})},a=function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]{r.d(t,{c:()=>o});var n=r(6733);function o(e,t){function r(r,n){var o=t[r];return"function"==typeof o&&e>=n?o.bind(t):function(){}}return en.u.ALL&&(e=n.u.ALL),t=t||{},{error:r("error",n.u.ERROR),warn:r("warn",n.u.WARN),info:r("info",n.u.INFO),debug:r("debug",n.u.DEBUG),verbose:r("verbose",n.u.VERBOSE)}}},2408:(e,t,r)=>{r.d(t,{D:()=>a});var n=r(8758),o=function(e,t,r,n){return new(r||(r=Promise))(function(o,i){function a(e){try{c(n.next(e))}catch(e){i(e)}}function u(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(a,u)}c((n=n.apply(e,t||[])).next())})},i=function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]{r.d(t,{q:()=>o});const n=require("child_process");var o=require("util").promisify(n.exec)},2910:(e,t,r)=>{r.d(t,{x:()=>n});var n="1.9.0"},5234:(e,t,r)=>{r.d(t,{X:()=>n});var n="object"==typeof globalThis?globalThis:global},5726:(e,t,r)=>{r.d(t,{K:()=>u});var n=r(1275),o=r(1994),i=r(6733),a=r(6051),u=function(){function e(){function e(e){return function(){for(var t=[],r=0;r0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}(t),!1))}}var t=this;t.setLogger=function(e,r){var n,u,c;if(void 0===r&&(r={logLevel:i.u.INFO}),e===t){var s=new Error("Cannot use diag as the logger for itself. Please use a DiagLogger implementation like ConsoleDiagLogger or a custom implementation");return t.error(null!==(n=s.stack)&&void 0!==n?n:s.message),!1}"number"==typeof r&&(r={logLevel:r});var l=(0,a.mS)("diag"),E=(0,o.c)(null!==(u=r.logLevel)&&void 0!==u?u:i.u.INFO,e);if(l&&!r.suppressOverrideMessage){var f=null!==(c=(new Error).stack)&&void 0!==c?c:"";l.warn("Current logger will be overwritten from "+f),E.warn("Current logger will overwrite one already registered from "+f)}return(0,a.$G)("diag",E,t,!0)},t.disable=function(){(0,a.kv)("diag",t)},t.createComponentLogger=function(e){return new n.V(e)},t.verbose=e("verbose"),t.debug=e("debug"),t.info=e("info"),t.warn=e("warn"),t.error=e("error")}return e.instance=function(){return this._instance||(this._instance=new e),this._instance},e}()},6051:(e,t,r)=>{r.d(t,{$G:()=>s,kv:()=>E,mS:()=>l});var n=r(5234),o=r(2910),i=r(8336),a=o.x.split(".")[0],u=Symbol.for("opentelemetry.js.api."+a),c=n.X;function s(e,t,r,n){var i;void 0===n&&(n=!1);var a=c[u]=null!==(i=c[u])&&void 0!==i?i:{version:o.x};if(!n&&a[e]){var s=new Error("@opentelemetry/api: Attempted duplicate registration of API: "+e);return r.error(s.stack||s.message),!1}return a.version!==o.x?(s=new Error("@opentelemetry/api: Registration of version v"+a.version+" for "+e+" does not match previously registered API v"+o.x),r.error(s.stack||s.message),!1):(a[e]=t,r.debug("@opentelemetry/api: Registered a global for "+e+" v"+o.x+"."),!0)}function l(e){var t,r,n=null===(t=c[u])||void 0===t?void 0:t.version;if(n&&(0,i.$)(n))return null===(r=c[u])||void 0===r?void 0:r[e]}function E(e,t){t.debug("@opentelemetry/api: Unregistering a global for "+e+" v"+o.x+".");var r=c[u];r&&delete r[e]}},6733:(e,t,r)=>{var n;r.d(t,{u:()=>n}),function(e){e[e.NONE=0]="NONE",e[e.ERROR=30]="ERROR",e[e.WARN=50]="WARN",e[e.INFO=60]="INFO",e[e.DEBUG=70]="DEBUG",e[e.VERBOSE=80]="VERBOSE",e[e.ALL=9999]="ALL"}(n||(n={}))},7349:(e,t,r)=>{r.d(t,{D:()=>c});var n=r(932),o=r(2733),i=r(8758),a=function(e,t,r,n){return new(r||(r=Promise))(function(o,i){function a(e){try{c(n.next(e))}catch(e){i(e)}}function u(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(a,u)}c((n=n.apply(e,t||[])).next())})},u=function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]{r.d(t,{D:()=>c});var n=r(9896),o=r(8758),i=function(e,t,r,n){return new(r||(r=Promise))(function(o,i){function a(e){try{c(n.next(e))}catch(e){i(e)}}function u(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(a,u)}c((n=n.apply(e,t||[])).next())})},a=function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]=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 c(){return i(this,void 0,void 0,function(){var e,t,r,i,c,s,l,E;return a(this,function(a){switch(a.label){case 0:e=["/etc/machine-id","/var/lib/dbus/machine-id"],a.label=1;case 1:a.trys.push([1,8,9,10]),t=u(e),r=t.next(),a.label=2;case 2:if(r.done)return[3,7];i=r.value,a.label=3;case 3:return a.trys.push([3,5,,6]),[4,n.promises.readFile(i,{encoding:"utf8"})];case 4:return[2,a.sent().trim()];case 5:return c=a.sent(),o.s.debug("error reading machine id: "+c),[3,6];case 6:return r=t.next(),[3,2];case 7:return[3,10];case 8:return s=a.sent(),l={error:s},[3,10];case 9:try{r&&!r.done&&(E=t.return)&&E.call(t)}finally{if(l)throw l.error}return[7];case 10:return[2,""]}})})}},8336:(e,t,r)=>{r.d(t,{$:()=>i});var n=r(2910),o=/^(\d+)\.(\d+)\.(\d+)(-(.+))?$/,i=function(e){var t=new Set([e]),r=new Set,n=e.match(o);if(!n)return function(){return!1};var i=+n[1],a=+n[2],u=+n[3];if(null!=n[4])return function(t){return t===e};function c(e){return r.add(e),!1}function s(e){return t.add(e),!0}return function(e){if(t.has(e))return!0;if(r.has(e))return!1;var n=e.match(o);if(!n)return c(e);var l=+n[1],E=+n[2],f=+n[3];return null!=n[4]||i!==l?c(e):0===i?a===E&&u<=f?s(e):c(e):a<=E?s(e):c(e)}}(n.x)},8758:(e,t,r)=>{r.d(t,{s:()=>n});var n=r(5726).K.instance()},9896:e=>{e.exports=require("fs")}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var i=t[n]={exports:{}};return e[n](i,i.exports,r),i.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};r.r(n),r.d(n,{Resource:()=>d,browserDetector:()=>R,browserDetectorSync:()=>h,defaultServiceName:()=>T,detectResources:()=>oe,detectResourcesSync:()=>ie,envDetector:()=>G,envDetectorSync:()=>B,hostDetector:()=>j,hostDetectorSync:()=>F,osDetector:()=>q,osDetectorSync:()=>Y,processDetector:()=>Q,processDetectorSync:()=>$,serviceInstanceIdDetectorSync:()=>te});var o,i=r(8758),a="process.runtime.name",u="process.runtime.version",c="process.runtime.description",s="service.name",l="telemetry.sdk.name",E="telemetry.sdk.language",f="telemetry.sdk.version",_=((o={})[l]="opentelemetry",o[a]="node",o[E]="nodejs",o[f]="1.30.1",o);function T(){return"unknown_service:"+process.argv0}var O,p=function(){return p=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}(e,2),i=o[0],a=o[1];return p(p(p(p({},n._syncAttributes),i),null!==(r=t._syncAttributes)&&void 0!==r?r:t.attributes),a)});return new e(o,i)},e.EMPTY=new e({}),e}(),v=function(){return v=Object.assign||function(e){for(var t,r=1,n=arguments.length;r-1}var P=["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 S(e){return P.indexOf(e)>-1}var g=["OTEL_NO_PATCH_MODULES","OTEL_PROPAGATORS","OTEL_SEMCONV_STABILITY_OPT_IN"];function I(e){return g.indexOf(e)>-1}var w=1/0,m={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:L.u.INFO,OTEL_NO_PATCH_MODULES:[],OTEL_PROPAGATORS:["tracecontext","baggage"],OTEL_RESOURCE_ATTRIBUTES:"",OTEL_SERVICE_NAME:"",OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT:w,OTEL_ATTRIBUTE_COUNT_LIMIT:128,OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT:w,OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT:128,OTEL_LOGRECORD_ATTRIBUTE_VALUE_LENGTH_LIMIT:w,OTEL_LOGRECORD_ATTRIBUTE_COUNT_LIMIT:128,OTEL_SPAN_EVENT_COUNT_LIMIT:128,OTEL_SPAN_LINK_COUNT_LIMIT:128,OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT:128,OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT:128,OTEL_TRACES_EXPORTER:"",OTEL_TRACES_SAMPLER:O.ParentBasedAlwaysOn,OTEL_TRACES_SAMPLER_ARG:"",OTEL_LOGS_EXPORTER:"",OTEL_EXPORTER_OTLP_INSECURE:"",OTEL_EXPORTER_OTLP_TRACES_INSECURE:"",OTEL_EXPORTER_OTLP_METRICS_INSECURE:"",OTEL_EXPORTER_OTLP_LOGS_INSECURE:"",OTEL_EXPORTER_OTLP_CERTIFICATE:"",OTEL_EXPORTER_OTLP_TRACES_CERTIFICATE:"",OTEL_EXPORTER_OTLP_METRICS_CERTIFICATE:"",OTEL_EXPORTER_OTLP_LOGS_CERTIFICATE:"",OTEL_EXPORTER_OTLP_COMPRESSION:"",OTEL_EXPORTER_OTLP_TRACES_COMPRESSION:"",OTEL_EXPORTER_OTLP_METRICS_COMPRESSION:"",OTEL_EXPORTER_OTLP_LOGS_COMPRESSION:"",OTEL_EXPORTER_OTLP_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_TRACES_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_METRICS_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_LOGS_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_TRACES_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_METRICS_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_LOGS_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_TRACES_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_METRICS_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_LOGS_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE:"cumulative",OTEL_SEMCONV_STABILITY_OPT_IN:[]};function N(e,t,r){if(void 0!==r[e]){var n=String(r[e]);t[e]="true"===n.toLowerCase()}}function C(e,t,r,n,o){if(void 0===n&&(n=-1/0),void 0===o&&(o=1/0),void 0!==r[e]){var i=Number(r[e]);isNaN(i)||(t[e]=io?o:i)}}function U(e,t,r,n){void 0===n&&(n=",");var o=r[e];"string"==typeof o&&(t[e]=o.split(n).map(function(e){return e.trim()}))}var M={ALL:L.u.ALL,VERBOSE:L.u.VERBOSE,DEBUG:L.u.DEBUG,INFO:L.u.INFO,WARN:L.u.WARN,ERROR:L.u.ERROR,NONE:L.u.NONE};function x(e,t,r){var n=r[e];if("string"==typeof n){var o=M[n.toUpperCase()];null!=o&&(t[e]=o)}}var X=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},D=function(){function e(){this._MAX_LENGTH=255,this._COMMA_SEPARATOR=",",this._LABEL_KEY_VALUE_SPLITTER="=",this._ERROR_MESSAGE_INVALID_CHARS="should be a ASCII string with a length greater than 0 and not exceed "+this._MAX_LENGTH+" characters.",this._ERROR_MESSAGE_INVALID_VALUE="should be a ASCII string with a length not exceed "+this._MAX_LENGTH+" characters."}return e.prototype.detect=function(e){var t,r={},n=(t=function(e){var t={};for(var r in m){var n=r;if("OTEL_LOG_LEVEL"===n)x(n,t,e);else if(A(n))N(n,t,e);else if(S(n))C(n,t,e);else if(I(n))U(n,t,e);else{var o=e[n];null!=o&&(t[n]=String(o))}}return t}(process.env),Object.assign({},m,t)),o=n.OTEL_RESOURCE_ATTRIBUTES,a=n.OTEL_SERVICE_NAME;if(o)try{var u=this._parseResourceAttributes(o);Object.assign(r,u)}catch(e){i.s.debug("EnvDetector failed: "+e.message)}return a&&(r[s]=a),new d(r)},e.prototype._parseResourceAttributes=function(e){var t,r;if(!e)return{};var n={},o=e.split(this._COMMA_SEPARATOR,-1);try{for(var i=function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)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.")}(o),a=i.next();!a.done;a=i.next()){var u=a.value.split(this._LABEL_KEY_VALUE_SPLITTER,-1);if(2===u.length){var c=X(u,2),s=c[0],l=c[1];if(s=s.trim(),l=l.trim().split(/^"|"$/).join(""),!this._isValidAndNotEmpty(s))throw new Error("Attribute key "+this._ERROR_MESSAGE_INVALID_CHARS);if(!this._isValid(l))throw new Error("Attribute value "+this._ERROR_MESSAGE_INVALID_VALUE);n[s]=decodeURIComponent(l)}}}catch(e){t={error:e}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}return n},e.prototype._isValid=function(e){return e.length<=this._MAX_LENGTH&&this._isBaggageOctetString(e)},e.prototype._isBaggageOctetString=function(e){for(var t=0;t126)return!1}return!0},e.prototype._isValidAndNotEmpty=function(e){return e.length>0&&this._isValid(e)},e}(),B=new D,G=new(function(){function e(){}return e.prototype.detect=function(e){return Promise.resolve(B.detect(e))},e}());const k=require("os");var V;switch(r(932).platform){case"darwin":V=r(1568).D;break;case"linux":V=r(7917).D;break;case"freebsd":V=r(454).D;break;case"win32":V=r(7349).D;break;default:V=r(2408).D}var H=function(){function e(){}return e.prototype.detect=function(e){var t,r=((t={})["host.name"]=(0,k.hostname)(),t["host.arch"]=function(e){switch(e){case"arm":return"arm32";case"ppc":return"ppc32";case"x64":return"amd64";default:return e}}((0,k.arch)()),t);return new d(r,this._getAsyncAttributes())},e.prototype._getAsyncAttributes=function(){return V().then(function(e){var t={};return e&&(t["host.id"]=e),t})},e}(),F=new H,j=new(function(){function e(){}return e.prototype.detect=function(e){return Promise.resolve(F.detect(e))},e}()),K=function(){function e(){}return e.prototype.detect=function(e){var t,r=((t={})["os.type"]=function(e){switch(e){case"sunos":return"solaris";case"win32":return"windows";default:return e}}((0,k.platform)()),t["os.version"]=(0,k.release)(),t);return new d(r)},e}(),Y=new K,q=new(function(){function e(){}return e.prototype.detect=function(e){return Promise.resolve(Y.detect(e))},e}()),Z=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},W=function(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o1&&(r["process.command"]=process.argv[1]);try{var n=k.userInfo();r["process.owner"]=n.username}catch(e){i.s.debug("error obtaining process owner: "+e)}return new d(r)},e}(),$=new J,Q=new(function(){function e(){}return e.prototype.detect=function(e){return Promise.resolve($.detect(e))},e}());const z=require("crypto");var ee=function(){function e(){}return e.prototype.detect=function(e){var t,r=((t={})["service.instance.id"]=(0,z.randomUUID)(),t);return new d(r)},e}(),te=new ee,re=function(e,t,r,n){return new(r||(r=Promise))(function(o,i){function a(e){try{c(n.next(e))}catch(e){i(e)}}function u(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(a,u)}c((n=n.apply(e,t||[])).next())})},ne=function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]0){var t=JSON.stringify(e.attributes,null,4);i.s.verbose(t)}})};module.exports=n})(); \ No newline at end of file +(()=>{"use strict";var e={454:(e,t,r)=>{r.d(t,{D:()=>c});var n=r(9896),o=r(2733),i=r(8758),a=function(e,t,r,n){return new(r||(r=Promise))(function(o,i){function a(e){try{c(n.next(e))}catch(e){i(e)}}function u(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(a,u)}c((n=n.apply(e,t||[])).next())})},u=function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]{e.exports=require("process")},1275:(e,t,r)=>{r.d(t,{V:()=>o});var n=r(6051),o=function(){function e(e){this._namespace=e.namespace||"DiagComponentLogger"}return e.prototype.debug=function(){for(var e=[],t=0;t0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}(r),!1))}},1568:(e,t,r)=>{r.d(t,{D:()=>u});var n=r(2733),o=r(8758),i=function(e,t,r,n){return new(r||(r=Promise))(function(o,i){function a(e){try{c(n.next(e))}catch(e){i(e)}}function u(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(a,u)}c((n=n.apply(e,t||[])).next())})},a=function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]{r.d(t,{c:()=>o});var n=r(6733);function o(e,t){function r(r,n){var o=t[r];return"function"==typeof o&&e>=n?o.bind(t):function(){}}return en.u.ALL&&(e=n.u.ALL),t=t||{},{error:r("error",n.u.ERROR),warn:r("warn",n.u.WARN),info:r("info",n.u.INFO),debug:r("debug",n.u.DEBUG),verbose:r("verbose",n.u.VERBOSE)}}},2408:(e,t,r)=>{r.d(t,{D:()=>a});var n=r(8758),o=function(e,t,r,n){return new(r||(r=Promise))(function(o,i){function a(e){try{c(n.next(e))}catch(e){i(e)}}function u(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(a,u)}c((n=n.apply(e,t||[])).next())})},i=function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]{r.d(t,{q:()=>o});const n=require("child_process");var o=require("util").promisify(n.exec)},2910:(e,t,r)=>{r.d(t,{x:()=>n});var n="1.9.0"},5234:(e,t,r)=>{r.d(t,{X:()=>n});var n="object"==typeof globalThis?globalThis:global},5726:(e,t,r)=>{r.d(t,{K:()=>u});var n=r(1275),o=r(1994),i=r(6733),a=r(6051),u=function(){function e(){function e(e){return function(){for(var t=[],r=0;r0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}(t),!1))}}var t=this;t.setLogger=function(e,r){var n,u,c;if(void 0===r&&(r={logLevel:i.u.INFO}),e===t){var s=new Error("Cannot use diag as the logger for itself. Please use a DiagLogger implementation like ConsoleDiagLogger or a custom implementation");return t.error(null!==(n=s.stack)&&void 0!==n?n:s.message),!1}"number"==typeof r&&(r={logLevel:r});var l=(0,a.mS)("diag"),E=(0,o.c)(null!==(u=r.logLevel)&&void 0!==u?u:i.u.INFO,e);if(l&&!r.suppressOverrideMessage){var f=null!==(c=(new Error).stack)&&void 0!==c?c:"";l.warn("Current logger will be overwritten from "+f),E.warn("Current logger will overwrite one already registered from "+f)}return(0,a.$G)("diag",E,t,!0)},t.disable=function(){(0,a.kv)("diag",t)},t.createComponentLogger=function(e){return new n.V(e)},t.verbose=e("verbose"),t.debug=e("debug"),t.info=e("info"),t.warn=e("warn"),t.error=e("error")}return e.instance=function(){return this._instance||(this._instance=new e),this._instance},e}()},6051:(e,t,r)=>{r.d(t,{$G:()=>s,kv:()=>E,mS:()=>l});var n=r(5234),o=r(2910),i=r(8336),a=o.x.split(".")[0],u=Symbol.for("opentelemetry.js.api."+a),c=n.X;function s(e,t,r,n){var i;void 0===n&&(n=!1);var a=c[u]=null!==(i=c[u])&&void 0!==i?i:{version:o.x};if(!n&&a[e]){var s=new Error("@opentelemetry/api: Attempted duplicate registration of API: "+e);return r.error(s.stack||s.message),!1}return a.version!==o.x?(s=new Error("@opentelemetry/api: Registration of version v"+a.version+" for "+e+" does not match previously registered API v"+o.x),r.error(s.stack||s.message),!1):(a[e]=t,r.debug("@opentelemetry/api: Registered a global for "+e+" v"+o.x+"."),!0)}function l(e){var t,r,n=null===(t=c[u])||void 0===t?void 0:t.version;if(n&&(0,i.$)(n))return null===(r=c[u])||void 0===r?void 0:r[e]}function E(e,t){t.debug("@opentelemetry/api: Unregistering a global for "+e+" v"+o.x+".");var r=c[u];r&&delete r[e]}},6733:(e,t,r)=>{var n;r.d(t,{u:()=>n}),function(e){e[e.NONE=0]="NONE",e[e.ERROR=30]="ERROR",e[e.WARN=50]="WARN",e[e.INFO=60]="INFO",e[e.DEBUG=70]="DEBUG",e[e.VERBOSE=80]="VERBOSE",e[e.ALL=9999]="ALL"}(n||(n={}))},7349:(e,t,r)=>{r.d(t,{D:()=>c});var n=r(932),o=r(2733),i=r(8758),a=function(e,t,r,n){return new(r||(r=Promise))(function(o,i){function a(e){try{c(n.next(e))}catch(e){i(e)}}function u(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(a,u)}c((n=n.apply(e,t||[])).next())})},u=function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]{r.d(t,{D:()=>c});var n=r(9896),o=r(8758),i=function(e,t,r,n){return new(r||(r=Promise))(function(o,i){function a(e){try{c(n.next(e))}catch(e){i(e)}}function u(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(a,u)}c((n=n.apply(e,t||[])).next())})},a=function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]=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 c(){return i(this,void 0,void 0,function(){var e,t,r,i,c,s,l,E;return a(this,function(a){switch(a.label){case 0:e=["/etc/machine-id","/var/lib/dbus/machine-id"],a.label=1;case 1:a.trys.push([1,8,9,10]),t=u(e),r=t.next(),a.label=2;case 2:if(r.done)return[3,7];i=r.value,a.label=3;case 3:return a.trys.push([3,5,,6]),[4,n.promises.readFile(i,{encoding:"utf8"})];case 4:return[2,a.sent().trim()];case 5:return c=a.sent(),o.s.debug("error reading machine id: "+c),[3,6];case 6:return r=t.next(),[3,2];case 7:return[3,10];case 8:return s=a.sent(),l={error:s},[3,10];case 9:try{r&&!r.done&&(E=t.return)&&E.call(t)}finally{if(l)throw l.error}return[7];case 10:return[2,""]}})})}},8336:(e,t,r)=>{r.d(t,{$:()=>i});var n=r(2910),o=/^(\d+)\.(\d+)\.(\d+)(-(.+))?$/,i=function(e){var t=new Set([e]),r=new Set,n=e.match(o);if(!n)return function(){return!1};var i=+n[1],a=+n[2],u=+n[3];if(null!=n[4])return function(t){return t===e};function c(e){return r.add(e),!1}function s(e){return t.add(e),!0}return function(e){if(t.has(e))return!0;if(r.has(e))return!1;var n=e.match(o);if(!n)return c(e);var l=+n[1],E=+n[2],f=+n[3];return null!=n[4]||i!==l?c(e):0===i?a===E&&u<=f?s(e):c(e):a<=E?s(e):c(e)}}(n.x)},8758:(e,t,r)=>{r.d(t,{s:()=>n});var n=r(5726).K.instance()},9896:e=>{e.exports=require("fs")}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var i=t[n]={exports:{}};return e[n](i,i.exports,r),i.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};r.r(n),r.d(n,{Resource:()=>p,browserDetector:()=>S,browserDetectorSync:()=>P,defaultServiceName:()=>T,detectResources:()=>oe,detectResourcesSync:()=>ie,envDetector:()=>j,envDetectorSync:()=>F,hostDetector:()=>L,hostDetectorSync:()=>R,osDetector:()=>q,osDetectorSync:()=>Y,processDetector:()=>Q,processDetectorSync:()=>$,serviceInstanceIdDetectorSync:()=>te});var o,i=r(8758),a="process.runtime.name",u="process.runtime.version",c="process.runtime.description",s="service.name",l="telemetry.sdk.name",E="telemetry.sdk.language",f="telemetry.sdk.version",_=((o={})[l]="opentelemetry",o[a]="node",o[E]="nodejs",o[f]="1.30.1",o);function T(){return"unknown_service:"+process.argv0}var O=function(){return O=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}(e,2),i=o[0],a=o[1];return O(O(O(O({},n._syncAttributes),i),null!==(r=t._syncAttributes)&&void 0!==r?r:t.attributes),a)});return new e(o,i)},e.EMPTY=new e({}),e}();const d=require("os");var v;switch(r(932).platform){case"darwin":v=r(1568).D;break;case"linux":v=r(7917).D;break;case"freebsd":v=r(454).D;break;case"win32":v=r(7349).D;break;default:v=r(2408).D}var y,h=function(){function e(){}return e.prototype.detect=function(e){var t,r=((t={})["host.name"]=(0,d.hostname)(),t["host.arch"]=function(e){switch(e){case"arm":return"arm32";case"ppc":return"ppc32";case"x64":return"amd64";default:return e}}((0,d.arch)()),t);return new p(r,this._getAsyncAttributes())},e.prototype._getAsyncAttributes=function(){return v().then(function(e){var t={};return e&&(t["host.id"]=e),t})},e}(),R=new h,L=new(function(){function e(){}return e.prototype.detect=function(e){return Promise.resolve(R.detect(e))},e}()),b=function(){return b=Object.assign||function(e){for(var t,r=1,n=arguments.length;r-1}var m=["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 N(e){return m.indexOf(e)>-1}var C=["OTEL_NO_PATCH_MODULES","OTEL_PROPAGATORS","OTEL_SEMCONV_STABILITY_OPT_IN"];function U(e){return C.indexOf(e)>-1}var M=1/0,x={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:g.u.INFO,OTEL_NO_PATCH_MODULES:[],OTEL_PROPAGATORS:["tracecontext","baggage"],OTEL_RESOURCE_ATTRIBUTES:"",OTEL_SERVICE_NAME:"",OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT:M,OTEL_ATTRIBUTE_COUNT_LIMIT:128,OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT:M,OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT:128,OTEL_LOGRECORD_ATTRIBUTE_VALUE_LENGTH_LIMIT:M,OTEL_LOGRECORD_ATTRIBUTE_COUNT_LIMIT:128,OTEL_SPAN_EVENT_COUNT_LIMIT:128,OTEL_SPAN_LINK_COUNT_LIMIT:128,OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT:128,OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT:128,OTEL_TRACES_EXPORTER:"",OTEL_TRACES_SAMPLER:y.ParentBasedAlwaysOn,OTEL_TRACES_SAMPLER_ARG:"",OTEL_LOGS_EXPORTER:"",OTEL_EXPORTER_OTLP_INSECURE:"",OTEL_EXPORTER_OTLP_TRACES_INSECURE:"",OTEL_EXPORTER_OTLP_METRICS_INSECURE:"",OTEL_EXPORTER_OTLP_LOGS_INSECURE:"",OTEL_EXPORTER_OTLP_CERTIFICATE:"",OTEL_EXPORTER_OTLP_TRACES_CERTIFICATE:"",OTEL_EXPORTER_OTLP_METRICS_CERTIFICATE:"",OTEL_EXPORTER_OTLP_LOGS_CERTIFICATE:"",OTEL_EXPORTER_OTLP_COMPRESSION:"",OTEL_EXPORTER_OTLP_TRACES_COMPRESSION:"",OTEL_EXPORTER_OTLP_METRICS_COMPRESSION:"",OTEL_EXPORTER_OTLP_LOGS_COMPRESSION:"",OTEL_EXPORTER_OTLP_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_TRACES_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_METRICS_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_LOGS_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_TRACES_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_METRICS_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_LOGS_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_TRACES_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_METRICS_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_LOGS_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE:"cumulative",OTEL_SEMCONV_STABILITY_OPT_IN:[]};function X(e,t,r){if(void 0!==r[e]){var n=String(r[e]);t[e]="true"===n.toLowerCase()}}function D(e,t,r,n,o){if(void 0===n&&(n=-1/0),void 0===o&&(o=1/0),void 0!==r[e]){var i=Number(r[e]);isNaN(i)||(t[e]=io?o:i)}}function B(e,t,r,n){void 0===n&&(n=",");var o=r[e];"string"==typeof o&&(t[e]=o.split(n).map(function(e){return e.trim()}))}var G={ALL:g.u.ALL,VERBOSE:g.u.VERBOSE,DEBUG:g.u.DEBUG,INFO:g.u.INFO,WARN:g.u.WARN,ERROR:g.u.ERROR,NONE:g.u.NONE};function k(e,t,r){var n=r[e];if("string"==typeof n){var o=G[n.toUpperCase()];null!=o&&(t[e]=o)}}var V=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},H=function(){function e(){this._MAX_LENGTH=255,this._COMMA_SEPARATOR=",",this._LABEL_KEY_VALUE_SPLITTER="=",this._ERROR_MESSAGE_INVALID_CHARS="should be a ASCII string with a length greater than 0 and not exceed "+this._MAX_LENGTH+" characters.",this._ERROR_MESSAGE_INVALID_VALUE="should be a ASCII string with a length not exceed "+this._MAX_LENGTH+" characters."}return e.prototype.detect=function(e){var t,r={},n=(t=function(e){var t={};for(var r in x){var n=r;if("OTEL_LOG_LEVEL"===n)k(n,t,e);else if(w(n))X(n,t,e);else if(N(n))D(n,t,e);else if(U(n))B(n,t,e);else{var o=e[n];null!=o&&(t[n]=String(o))}}return t}(process.env),Object.assign({},x,t)),o=n.OTEL_RESOURCE_ATTRIBUTES,a=n.OTEL_SERVICE_NAME;if(o)try{var u=this._parseResourceAttributes(o);Object.assign(r,u)}catch(e){i.s.debug("EnvDetector failed: "+e.message)}return a&&(r[s]=a),new p(r)},e.prototype._parseResourceAttributes=function(e){var t,r;if(!e)return{};var n={},o=e.split(this._COMMA_SEPARATOR,-1);try{for(var i=function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)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.")}(o),a=i.next();!a.done;a=i.next()){var u=a.value.split(this._LABEL_KEY_VALUE_SPLITTER,-1);if(2===u.length){var c=V(u,2),s=c[0],l=c[1];if(s=s.trim(),l=l.trim().split(/^"|"$/).join(""),!this._isValidAndNotEmpty(s))throw new Error("Attribute key "+this._ERROR_MESSAGE_INVALID_CHARS);if(!this._isValid(l))throw new Error("Attribute value "+this._ERROR_MESSAGE_INVALID_VALUE);n[s]=decodeURIComponent(l)}}}catch(e){t={error:e}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}return n},e.prototype._isValid=function(e){return e.length<=this._MAX_LENGTH&&this._isBaggageOctetString(e)},e.prototype._isBaggageOctetString=function(e){for(var t=0;t126)return!1}return!0},e.prototype._isValidAndNotEmpty=function(e){return e.length>0&&this._isValid(e)},e}(),F=new H,j=new(function(){function e(){}return e.prototype.detect=function(e){return Promise.resolve(F.detect(e))},e}()),K=function(){function e(){}return e.prototype.detect=function(e){var t,r=((t={})["os.type"]=function(e){switch(e){case"sunos":return"solaris";case"win32":return"windows";default:return e}}((0,d.platform)()),t["os.version"]=(0,d.release)(),t);return new p(r)},e}(),Y=new K,q=new(function(){function e(){}return e.prototype.detect=function(e){return Promise.resolve(Y.detect(e))},e}()),Z=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},W=function(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o1&&(r["process.command"]=process.argv[1]);try{var n=d.userInfo();r["process.owner"]=n.username}catch(e){i.s.debug("error obtaining process owner: "+e)}return new p(r)},e}(),$=new J,Q=new(function(){function e(){}return e.prototype.detect=function(e){return Promise.resolve($.detect(e))},e}());const z=require("crypto");var ee=function(){function e(){}return e.prototype.detect=function(e){var t,r=((t={})["service.instance.id"]=(0,z.randomUUID)(),t);return new p(r)},e}(),te=new ee,re=function(e,t,r,n){return new(r||(r=Promise))(function(o,i){function a(e){try{c(n.next(e))}catch(e){i(e)}}function u(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(a,u)}c((n=n.apply(e,t||[])).next())})},ne=function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]0){var t=JSON.stringify(e.attributes,null,4);i.s.verbose(t)}})};module.exports=n})(); \ No newline at end of file From aa3c87a55823781e4b59a6875b04e15f756ebc72 Mon Sep 17 00:00:00 2001 From: rochdev Date: Thu, 20 Nov 2025 20:38:11 -0500 Subject: [PATCH 07/95] move dc-polyfill back --- package.json | 1 + packages/node_modules/@opentelemetry/core.js | 2 +- packages/node_modules/@opentelemetry/resources.js | 2 +- packages/node_modules/dc-polyfill.js | 1 - vendor/bun.lock | 3 --- vendor/package.json | 1 - yarn.lock | 5 +++++ 7 files changed, 8 insertions(+), 7 deletions(-) delete mode 100644 packages/node_modules/dc-polyfill.js diff --git a/package.json b/package.json index 4b2d3ef9b26..7aa39b0c821 100644 --- a/package.json +++ b/package.json @@ -132,6 +132,7 @@ "@datadog/pprof": "5.12.0", "@datadog/sketches-js": "2.1.1", "@datadog/wasm-js-rewriter": "5.0.1", + "dc-polyfill": "^0.1.10", "escape-string-regexp": "^5.0.0", "import-in-the-middle": "^1.14.2" }, diff --git a/packages/node_modules/@opentelemetry/core.js b/packages/node_modules/@opentelemetry/core.js index 2fcf4fd71de..314e3b23ef0 100644 --- a/packages/node_modules/@opentelemetry/core.js +++ b/packages/node_modules/@opentelemetry/core.js @@ -1 +1 @@ -(()=>{"use strict";var t={d:(e,r)=>{for(var n in r)t.o(r,n)&&!t.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:r[n]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r:t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}},e={};t.r(e),t.d(e,{AlwaysOffSampler:()=>Ke,AlwaysOnSampler:()=>We,AnchoredClock:()=>z,BindOnceFuture:()=>Lr,CompositePropagator:()=>re,DEFAULT_ATTRIBUTE_COUNT_LIMIT:()=>Ut,DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT:()=>Mt,DEFAULT_ENVIRONMENT:()=>xt,DEFAULT_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT:()=>Dt,DEFAULT_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT:()=>Bt,ExportResultCode:()=>at,ParentBasedSampler:()=>Ye,RPCType:()=>Be,RandomIdGenerator:()=>zt,SDK_INFO:()=>qt,TRACE_PARENT_HEADER:()=>we,TRACE_STATE_HEADER:()=>Me,TimeoutError:()=>yr,TraceIdRatioBasedSampler:()=>ze,TraceState:()=>Ne,TracesSamplerValues:()=>ut,VERSION:()=>Qt,W3CBaggagePropagator:()=>Y,W3CTraceContextPropagator:()=>Xe,_globalThis:()=>Wt,addHrTimes:()=>St,baggageUtils:()=>mr,callWithTimeout:()=>dr,deleteRPCMetadata:()=>Ve,getEnv:()=>Ht,getEnvWithoutDefaults:()=>Kt,getRPCMetadata:()=>Fe,getTimeOrigin:()=>pt,globalErrorHandler:()=>it,hexToBase64:()=>Yt,hexToBinary:()=>Pt,hrTime:()=>Et,hrTimeDuration:()=>Ot,hrTimeToMicroseconds:()=>vt,hrTimeToMilliseconds:()=>gt,hrTimeToNanoseconds:()=>dt,hrTimeToTimeStamp:()=>yt,internal:()=>Ar,isAttributeKey:()=>q,isAttributeValue:()=>tt,isTimeInput:()=>Rt,isTimeInputHrTime:()=>ht,isTracingSuppressed:()=>V,isUrlIgnored:()=>hr,isWrapped:()=>Rr,loggingErrorHandler:()=>rt,merge:()=>ur,millisToHrTime:()=>_t,otperformance:()=>ct,parseEnvironment:()=>kt,parseTraceParent:()=>De,sanitizeAttributes:()=>Q,setGlobalErrorHandler:()=>ot,setRPCMetadata:()=>Ge,suppressTracing:()=>j,timeInputToHrTime:()=>Tt,unrefTimer:()=>te,unsuppressTracing:()=>G,urlMatches:()=>vr});var r="object"==typeof globalThis?globalThis:global,n="1.9.0",o=/^(\d+)\.(\d+)\.(\d+)(-(.+))?$/,i=function(t){var e=new Set([t]),r=new Set,n=t.match(o);if(!n)return function(){return!1};var i=+n[1],a=+n[2],u=+n[3];if(null!=n[4])return function(e){return e===t};function c(t){return r.add(t),!1}function l(t){return e.add(t),!0}return function(t){if(e.has(t))return!0;if(r.has(t))return!1;var n=t.match(o);if(!n)return c(t);var f=+n[1],s=+n[2],_=+n[3];return null!=n[4]||i!==f?c(t):0===i?a===s&&u<=_?l(t):c(t):a<=s?l(t):c(t)}}(n),a=n.split(".")[0],u=Symbol.for("opentelemetry.js.api."+a),c=r;function l(t,e,r,o){var i;void 0===o&&(o=!1);var a=c[u]=null!==(i=c[u])&&void 0!==i?i:{version:n};if(!o&&a[t]){var l=new Error("@opentelemetry/api: Attempted duplicate registration of API: "+t);return r.error(l.stack||l.message),!1}return a.version!==n?(l=new Error("@opentelemetry/api: Registration of version v"+a.version+" for "+t+" does not match previously registered API v"+n),r.error(l.stack||l.message),!1):(a[t]=e,r.debug("@opentelemetry/api: Registered a global for "+t+" v"+n+"."),!0)}function f(t){var e,r,n=null===(e=c[u])||void 0===e?void 0:e.version;if(n&&i(n))return null===(r=c[u])||void 0===r?void 0:r[t]}function s(t,e){e.debug("@opentelemetry/api: Unregistering a global for "+t+" v"+n+".");var r=c[u];r&&delete r[t]}var _=function(){function t(){}return t.prototype.inject=function(t,e){},t.prototype.extract=function(t,e){return t},t.prototype.fields=function(){return[]},t}(),p={get:function(t,e){if(null!=t)return t[e]},keys:function(t){return null==t?[]:Object.keys(t)}},E={set:function(t,e,r){null!=t&&(t[e]=r)}};function T(t){return Symbol.for(t)}var O,y=new function t(e){var r=this;r._currentContext=e?new Map(e):new Map,r.getValue=function(t){return r._currentContext.get(t)},r.setValue=function(e,n){var o=new t(r._currentContext);return o._currentContext.set(e,n),o},r.deleteValue=function(e){var n=new t(r._currentContext);return n._currentContext.delete(e),n}},d=function(){function t(){}return t.prototype.active=function(){return y},t.prototype.with=function(t,e,r){for(var n=[],o=3;o0)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}(n),!1))},t.prototype.bind=function(t,e){return e},t.prototype.enable=function(){return this},t.prototype.disable=function(){return this},t}(),g=function(){function t(t){this._namespace=t.namespace||"DiagComponentLogger"}return t.prototype.debug=function(){for(var t=[],e=0;e0)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}(r),!1))}!function(t){t[t.NONE=0]="NONE",t[t.ERROR=30]="ERROR",t[t.WARN=50]="WARN",t[t.INFO=60]="INFO",t[t.DEBUG=70]="DEBUG",t[t.VERBOSE=80]="VERBOSE",t[t.ALL=9999]="ALL"}(O||(O={}));var h=function(){function t(){function t(t){return function(){for(var e=[],r=0;r0)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}(e),!1))}}var e=this;e.setLogger=function(t,r){var n,o,i;if(void 0===r&&(r={logLevel:O.INFO}),t===e){var a=new Error("Cannot use diag as the logger for itself. Please use a DiagLogger implementation like ConsoleDiagLogger or a custom implementation");return e.error(null!==(n=a.stack)&&void 0!==n?n:a.message),!1}"number"==typeof r&&(r={logLevel:r});var u=f("diag"),c=function(t,e){function r(r,n){var o=e[r];return"function"==typeof o&&t>=n?o.bind(e):function(){}}return tO.ALL&&(t=O.ALL),e=e||{},{error:r("error",O.ERROR),warn:r("warn",O.WARN),info:r("info",O.INFO),debug:r("debug",O.DEBUG),verbose:r("verbose",O.VERBOSE)}}(null!==(o=r.logLevel)&&void 0!==o?o:O.INFO,t);if(u&&!r.suppressOverrideMessage){var s=null!==(i=(new Error).stack)&&void 0!==i?i:"";u.warn("Current logger will be overwritten from "+s),c.warn("Current logger will overwrite one already registered from "+s)}return l("diag",c,e,!0)},e.disable=function(){s("diag",e)},e.createComponentLogger=function(t){return new g(t)},e.verbose=t("verbose"),e.debug=t("debug"),e.info=t("info"),e.warn=t("warn"),e.error=t("error")}return t.instance=function(){return this._instance||(this._instance=new t),this._instance},t}(),R="context",S=new d,L=function(){function t(){}return t.getInstance=function(){return this._instance||(this._instance=new t),this._instance},t.prototype.setGlobalContextManager=function(t){return l(R,t,h.instance())},t.prototype.active=function(){return this._getContextManager().active()},t.prototype.with=function(t,e,r){for(var n,o=[],i=3;i0)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}(o),!1))},t.prototype.bind=function(t,e){return this._getContextManager().bind(t,e)},t.prototype._getContextManager=function(){return f(R)||S},t.prototype.disable=function(){this._getContextManager().disable(),s(R,h.instance())},t}(),P=T("OpenTelemetry Baggage Key");function m(t){return t.getValue(P)||void 0}function A(){return m(L.getInstance().active())}function I(t,e){return t.setValue(P,e)}function C(t){return t.deleteValue(P)}var b=function(){function t(t){this._entries=t?new Map(t):new Map}return t.prototype.getEntry=function(t){var e=this._entries.get(t);if(e)return Object.assign({},e)},t.prototype.getAllEntries=function(){return Array.from(this._entries.entries()).map(function(t){var e=function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}(t,2);return[e[0],e[1]]})},t.prototype.setEntry=function(e,r){var n=new t(this._entries);return n._entries.set(e,r),n},t.prototype.removeEntry=function(e){var r=new t(this._entries);return r._entries.delete(e),r},t.prototype.removeEntries=function(){for(var e,r,n=[],o=0;o=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}(n),u=a.next();!u.done;u=a.next()){var c=u.value;i._entries.delete(c)}}catch(t){e={error:t}}finally{try{u&&!u.done&&(r=a.return)&&r.call(a)}finally{if(e)throw e.error}}return i},t.prototype.clear=function(){return new t},t}(),N=Symbol("BaggageEntryMetadata"),w=h.instance();function M(t){return void 0===t&&(t={}),new b(new Map(Object.entries(t)))}var U="propagation",D=new _,B=function(){function t(){this.createBaggage=M,this.getBaggage=m,this.getActiveBaggage=A,this.setBaggage=I,this.deleteBaggage=C}return t.getInstance=function(){return this._instance||(this._instance=new t),this._instance},t.prototype.setGlobalPropagator=function(t){return l(U,t,h.instance())},t.prototype.inject=function(t,e,r){return void 0===r&&(r=E),this._getGlobalPropagator().inject(t,e,r)},t.prototype.extract=function(t,e,r){return void 0===r&&(r=p),this._getGlobalPropagator().extract(t,e,r)},t.prototype.fields=function(){return this._getGlobalPropagator().fields()},t.prototype.disable=function(){s(U,h.instance())},t.prototype._getGlobalPropagator=function(){return f(U)||D},t}(),x=B.getInstance(),X=T("OpenTelemetry SDK Context Key SUPPRESS_TRACING");function j(t){return t.setValue(X,!0)}function G(t){return t.deleteValue(X)}function V(t){return!0===t.getValue(X)}var F=",",k="baggage";function H(t){return t.reduce(function(t,e){var r=""+t+(""!==t?F:"")+e;return r.length>8192?t:r},"")}function K(t){return t.getAllEntries().map(function(t){var e=function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}(t,2),r=e[0],n=e[1],o=encodeURIComponent(r)+"="+encodeURIComponent(n.value);return void 0!==n.metadata&&(o+=";"+n.metadata.toString()),o})}function W(t){var e=t.split(";");if(!(e.length<=0)){var r=e.shift();if(r){var n=r.indexOf("=");if(!(n<=0)){var o,i,a=decodeURIComponent(r.substring(0,n).trim()),u=decodeURIComponent(r.substring(n+1).trim());return e.length>0&&("string"!=typeof(i=e.join(";"))&&(w.error("Cannot create baggage metadata from unknown type: "+typeof i),i=""),o={__TYPE__:N,toString:function(){return i}}),{key:a,value:u,metadata:o}}}}}var Y=function(){function t(){}return t.prototype.inject=function(t,e,r){var n=x.getBaggage(t);if(n&&!V(t)){var o=H(K(n).filter(function(t){return t.length<=4096}).slice(0,180));o.length>0&&r.set(e,k,o)}},t.prototype.extract=function(t,e,r){var n=r.get(e,k),o=Array.isArray(n)?n.join(F):n;if(!o)return t;var i={};return 0===o.length?t:(o.split(F).forEach(function(t){var e=W(t);if(e){var r={value:e.value};e.metadata&&(r.metadata=e.metadata),i[e.key]=r}}),0===Object.entries(i).length?t:x.setBaggage(t,x.createBaggage(i)))},t.prototype.fields=function(){return[k]},t}(),z=function(){function t(t,e){this._monotonicClock=e,this._epochMillis=t.now(),this._performanceMillis=e.now()}return t.prototype.now=function(){var t=this._monotonicClock.now()-this._performanceMillis;return this._epochMillis+t},t}(),Z=h.instance(),J=function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},$=function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a};function Q(t){var e,r,n={};if("object"!=typeof t||null==t)return n;try{for(var o=J(Object.entries(t)),i=o.next();!i.done;i=o.next()){var a=$(i.value,2),u=a[0],c=a[1];q(u)?tt(c)?Array.isArray(c)?n[u]=c.slice():n[u]=c:Z.warn("Invalid attribute value set for key: "+u):Z.warn("Invalid attribute key: "+u)}}catch(t){e={error:t}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(e)throw e.error}}return n}function q(t){return"string"==typeof t&&t.length>0}function tt(t){return null==t||(Array.isArray(t)?function(t){var e,r,n;try{for(var o=J(t),i=o.next();!i.done;i=o.next()){var a=i.value;if(null!=a){if(!n){if(et(a)){n=typeof a;continue}return!1}if(typeof a!==n)return!1}}}catch(t){e={error:t}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(e)throw e.error}}return!0}(t):et(t))}function et(t){switch(typeof t){case"number":case"boolean":case"string":return!0}return!1}function rt(){return function(t){Z.error(function(t){return"string"==typeof t?t:JSON.stringify(function(t){for(var e={},r=t;null!==r;)Object.getOwnPropertyNames(r).forEach(function(t){if(!e[t]){var n=r[t];n&&(e[t]=String(n))}}),r=Object.getPrototypeOf(r);return e}(t))}(t))}}var nt=rt();function ot(t){nt=t}function it(t){try{nt(t)}catch(t){}}var at,ut,ct=require("perf_hooks").performance,lt=9,ft=Math.pow(10,6),st=Math.pow(10,lt);function _t(t){var e=t/1e3;return[Math.trunc(e),Math.round(t%1e3*ft)]}function pt(){var t=ct.timeOrigin;if("number"!=typeof t){var e=ct;t=e.timing&&e.timing.fetchStart}return t}function Et(t){return St(_t(pt()),_t("number"==typeof t?t:ct.now()))}function Tt(t){if(ht(t))return t;if("number"==typeof t)return t=st&&(r[1]-=st,r[0]+=1),r}function Lt(t){return t>=48&&t<=57?t-48:t>=97&&t<=102?t-87:t-55}function Pt(t){for(var e=new Uint8Array(t.length/2),r=0,n=0;n-1}var Ct=["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 bt(t){return Ct.indexOf(t)>-1}var Nt=["OTEL_NO_PATCH_MODULES","OTEL_PROPAGATORS","OTEL_SEMCONV_STABILITY_OPT_IN"];function wt(t){return Nt.indexOf(t)>-1}var Mt=1/0,Ut=128,Dt=128,Bt=128,xt={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:O.INFO,OTEL_NO_PATCH_MODULES:[],OTEL_PROPAGATORS:["tracecontext","baggage"],OTEL_RESOURCE_ATTRIBUTES:"",OTEL_SERVICE_NAME:"",OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT:Mt,OTEL_ATTRIBUTE_COUNT_LIMIT:Ut,OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT:Mt,OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT:Ut,OTEL_LOGRECORD_ATTRIBUTE_VALUE_LENGTH_LIMIT:Mt,OTEL_LOGRECORD_ATTRIBUTE_COUNT_LIMIT:Ut,OTEL_SPAN_EVENT_COUNT_LIMIT:128,OTEL_SPAN_LINK_COUNT_LIMIT:128,OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT:Dt,OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT:Bt,OTEL_TRACES_EXPORTER:"",OTEL_TRACES_SAMPLER:ut.ParentBasedAlwaysOn,OTEL_TRACES_SAMPLER_ARG:"",OTEL_LOGS_EXPORTER:"",OTEL_EXPORTER_OTLP_INSECURE:"",OTEL_EXPORTER_OTLP_TRACES_INSECURE:"",OTEL_EXPORTER_OTLP_METRICS_INSECURE:"",OTEL_EXPORTER_OTLP_LOGS_INSECURE:"",OTEL_EXPORTER_OTLP_CERTIFICATE:"",OTEL_EXPORTER_OTLP_TRACES_CERTIFICATE:"",OTEL_EXPORTER_OTLP_METRICS_CERTIFICATE:"",OTEL_EXPORTER_OTLP_LOGS_CERTIFICATE:"",OTEL_EXPORTER_OTLP_COMPRESSION:"",OTEL_EXPORTER_OTLP_TRACES_COMPRESSION:"",OTEL_EXPORTER_OTLP_METRICS_COMPRESSION:"",OTEL_EXPORTER_OTLP_LOGS_COMPRESSION:"",OTEL_EXPORTER_OTLP_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_TRACES_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_METRICS_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_LOGS_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_TRACES_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_METRICS_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_LOGS_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_TRACES_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_METRICS_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_LOGS_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE:"cumulative",OTEL_SEMCONV_STABILITY_OPT_IN:[]};function Xt(t,e,r){if(void 0!==r[t]){var n=String(r[t]);e[t]="true"===n.toLowerCase()}}function jt(t,e,r,n,o){if(void 0===n&&(n=-1/0),void 0===o&&(o=1/0),void 0!==r[t]){var i=Number(r[t]);isNaN(i)||(e[t]=io?o:i)}}function Gt(t,e,r,n){void 0===n&&(n=mt);var o=r[t];"string"==typeof o&&(e[t]=o.split(n).map(function(t){return t.trim()}))}var Vt={ALL:O.ALL,VERBOSE:O.VERBOSE,DEBUG:O.DEBUG,INFO:O.INFO,WARN:O.WARN,ERROR:O.ERROR,NONE:O.NONE};function Ft(t,e,r){var n=r[t];if("string"==typeof n){var o=Vt[n.toUpperCase()];null!=o&&(e[t]=o)}}function kt(t){var e={};for(var r in xt){var n=r;if("OTEL_LOG_LEVEL"===n)Ft(n,e,t);else if(It(n))Xt(n,e,t);else if(bt(n))jt(n,e,t);else if(wt(n))Gt(n,e,t);else{var o=t[n];null!=o&&(e[n]=String(o))}}return e}function Ht(){var t=kt(process.env);return Object.assign({},xt,t)}function Kt(){return kt(process.env)}var Wt="object"==typeof globalThis?globalThis:global;function Yt(t){return Buffer.from(Pt(t)).toString("base64")}var zt=function(){this.generateTraceId=Jt(16),this.generateSpanId=Jt(8)},Zt=Buffer.allocUnsafe(16);function Jt(t){return function(){for(var e=0;e>>0,4*e);for(e=0;e0);e++)e===t-1&&(Zt[t-1]=1);return Zt.toString("hex",0,t)}}var $t,Qt="1.30.1",qt=(($t={})["telemetry.sdk.name"]="opentelemetry",$t["process.runtime.name"]="node",$t["telemetry.sdk.language"]="nodejs",$t["telemetry.sdk.version"]=Qt,$t);function te(t){t.unref()}var ee,re=function(){function t(t){var e;void 0===t&&(t={}),this._propagators=null!==(e=t.propagators)&&void 0!==e?e:[],this._fields=Array.from(new Set(this._propagators.map(function(t){return"function"==typeof t.fields?t.fields():[]}).reduce(function(t,e){return t.concat(e)},[])))}return t.prototype.inject=function(t,e,r){var n,o;try{for(var i=function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}(this._propagators),a=i.next();!a.done;a=i.next()){var u=a.value;try{u.inject(t,e,r)}catch(t){Z.warn("Failed to inject with "+u.constructor.name+". Err: "+t.message)}}}catch(t){n={error:t}}finally{try{a&&!a.done&&(o=i.return)&&o.call(i)}finally{if(n)throw n.error}}},t.prototype.extract=function(t,e,r){return this._propagators.reduce(function(t,n){try{return n.extract(t,e,r)}catch(t){Z.warn("Failed to extract with "+n.constructor.name+". Err: "+t.message)}return t},t)},t.prototype.fields=function(){return this._fields.slice()},t}();!function(t){t[t.NONE=0]="NONE",t[t.SAMPLED=1]="SAMPLED"}(ee||(ee={}));var ne="0000000000000000",oe="00000000000000000000000000000000",ie={traceId:oe,spanId:ne,traceFlags:ee.NONE},ae=function(){function t(t){void 0===t&&(t=ie),this._spanContext=t}return t.prototype.spanContext=function(){return this._spanContext},t.prototype.setAttribute=function(t,e){return this},t.prototype.setAttributes=function(t){return this},t.prototype.addEvent=function(t,e){return this},t.prototype.addLink=function(t){return this},t.prototype.addLinks=function(t){return this},t.prototype.setStatus=function(t){return this},t.prototype.updateName=function(t){return this},t.prototype.end=function(t){},t.prototype.isRecording=function(){return!1},t.prototype.recordException=function(t,e){},t}(),ue=T("OpenTelemetry Context Key SPAN");function ce(t){return t.getValue(ue)||void 0}function le(){return ce(L.getInstance().active())}function fe(t,e){return t.setValue(ue,e)}function se(t){return t.deleteValue(ue)}function _e(t,e){return fe(t,new ae(e))}function pe(t){var e;return null===(e=ce(t))||void 0===e?void 0:e.spanContext()}var Ee=/^([0-9a-f]{32})$/i,Te=/^[0-9a-f]{16}$/i;function Oe(t){return Ee.test(t)&&t!==oe}function ye(t){return Oe(t.traceId)&&(e=t.spanId,Te.test(e)&&e!==ne);var e}function de(t){return new ae(t)}var ge=L.getInstance(),ve=function(){function t(){}return t.prototype.startSpan=function(t,e,r){if(void 0===r&&(r=ge.active()),Boolean(null==e?void 0:e.root))return new ae;var n,o=r&&pe(r);return"object"==typeof(n=o)&&"string"==typeof n.spanId&&"string"==typeof n.traceId&&"number"==typeof n.traceFlags&&ye(o)?new ae(o):new ae},t.prototype.startActiveSpan=function(t,e,r,n){var o,i,a;if(!(arguments.length<2)){2===arguments.length?a=e:3===arguments.length?(o=e,a=r):(o=e,i=r,a=n);var u=null!=i?i:ge.active(),c=this.startSpan(t,o,u),l=fe(u,c);return ge.with(l,a,void 0,c)}},t}(),he=new ve,Re=function(){function t(t,e,r,n){this._provider=t,this.name=e,this.version=r,this.options=n}return t.prototype.startSpan=function(t,e,r){return this._getTracer().startSpan(t,e,r)},t.prototype.startActiveSpan=function(t,e,r,n){var o=this._getTracer();return Reflect.apply(o.startActiveSpan,o,arguments)},t.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):he},t}(),Se=new(function(){function t(){}return t.prototype.getTracer=function(t,e,r){return new ve},t}()),Le=function(){function t(){}return t.prototype.getTracer=function(t,e,r){var n;return null!==(n=this.getDelegateTracer(t,e,r))&&void 0!==n?n:new Re(this,t,e,r)},t.prototype.getDelegate=function(){var t;return null!==(t=this._delegate)&&void 0!==t?t:Se},t.prototype.setDelegate=function(t){this._delegate=t},t.prototype.getDelegateTracer=function(t,e,r){var n;return null===(n=this._delegate)||void 0===n?void 0:n.getTracer(t,e,r)},t}(),Pe="trace",me=function(){function t(){this._proxyTracerProvider=new Le,this.wrapSpanContext=de,this.isSpanContextValid=ye,this.deleteSpan=se,this.getSpan=ce,this.getActiveSpan=le,this.getSpanContext=pe,this.setSpan=fe,this.setSpanContext=_e}return t.getInstance=function(){return this._instance||(this._instance=new t),this._instance},t.prototype.setGlobalTracerProvider=function(t){var e=l(Pe,this._proxyTracerProvider,h.instance());return e&&this._proxyTracerProvider.setDelegate(t),e},t.prototype.getTracerProvider=function(){return f(Pe)||this._proxyTracerProvider},t.prototype.getTracer=function(t,e){return this.getTracerProvider().getTracer(t,e)},t.prototype.disable=function(){s(Pe,h.instance()),this._proxyTracerProvider=new Le},t}().getInstance(),Ae="[_0-9a-z-*/]",Ie=new RegExp("^(?:[a-z]"+Ae+"{0,255}|[a-z0-9]"+Ae+"{0,240}@[a-z]"+Ae+"{0,13})$"),Ce=/^[ -~]{0,255}[!-~]$/,be=/,|=/,Ne=function(){function t(t){this._internalState=new Map,t&&this._parse(t)}return t.prototype.set=function(t,e){var r=this._clone();return r._internalState.has(t)&&r._internalState.delete(t),r._internalState.set(t,e),r},t.prototype.unset=function(t){var e=this._clone();return e._internalState.delete(t),e},t.prototype.get=function(t){return this._internalState.get(t)},t.prototype.serialize=function(){var t=this;return this._keys().reduce(function(e,r){return e.push(r+"="+t.get(r)),e},[]).join(",")},t.prototype._parse=function(t){t.length>512||(this._internalState=t.split(",").reverse().reduce(function(t,e){var r=e.trim(),n=r.indexOf("=");if(-1!==n){var o=r.slice(0,n),i=r.slice(n+1,e.length);(function(t){return Ie.test(t)})(o)&&function(t){return Ce.test(t)&&!be.test(t)}(i)&&t.set(o,i)}return t},new Map),this._internalState.size>32&&(this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,32))))},t.prototype._keys=function(){return Array.from(this._internalState.keys()).reverse()},t.prototype._clone=function(){var e=new t;return e._internalState=new Map(this._internalState),e},t}(),we="traceparent",Me="tracestate",Ue=new RegExp("^\\s?((?!ff)[\\da-f]{2})-((?![0]{32})[\\da-f]{32})-((?![0]{16})[\\da-f]{16})-([\\da-f]{2})(-.*)?\\s?$");function De(t){var e=Ue.exec(t);return e?"00"===e[1]&&e[5]?null:{traceId:e[2],spanId:e[3],traceFlags:parseInt(e[4],16)}:null}var Be,xe,Xe=function(){function t(){}return t.prototype.inject=function(t,e,r){var n=me.getSpanContext(t);if(n&&!V(t)&&ye(n)){var o="00-"+n.traceId+"-"+n.spanId+"-0"+Number(n.traceFlags||ee.NONE).toString(16);r.set(e,we,o),n.traceState&&r.set(e,Me,n.traceState.serialize())}},t.prototype.extract=function(t,e,r){var n=r.get(e,we);if(!n)return t;var o=Array.isArray(n)?n[0]:n;if("string"!=typeof o)return t;var i=De(o);if(!i)return t;i.isRemote=!0;var a=r.get(e,Me);if(a){var u=Array.isArray(a)?a.join(","):a;i.traceState=new Ne("string"==typeof u?u:void 0)}return me.setSpanContext(t,i)},t.prototype.fields=function(){return[we,Me]},t}(),je=T("OpenTelemetry SDK Context Key RPC_METADATA");function Ge(t,e){return t.setValue(je,e)}function Ve(t){return t.deleteValue(je)}function Fe(t){return t.getValue(je)}!function(t){t.HTTP="http"}(Be||(Be={})),function(t){t[t.NOT_RECORD=0]="NOT_RECORD",t[t.RECORD=1]="RECORD",t[t.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"}(xe||(xe={}));var ke,He,Ke=function(){function t(){}return t.prototype.shouldSample=function(){return{decision:xe.NOT_RECORD}},t.prototype.toString=function(){return"AlwaysOffSampler"},t}(),We=function(){function t(){}return t.prototype.shouldSample=function(){return{decision:xe.RECORD_AND_SAMPLED}},t.prototype.toString=function(){return"AlwaysOnSampler"},t}(),Ye=function(){function t(t){var e,r,n,o;this._root=t.root,this._root||(it(new Error("ParentBasedSampler must have a root sampler configured")),this._root=new We),this._remoteParentSampled=null!==(e=t.remoteParentSampled)&&void 0!==e?e:new We,this._remoteParentNotSampled=null!==(r=t.remoteParentNotSampled)&&void 0!==r?r:new Ke,this._localParentSampled=null!==(n=t.localParentSampled)&&void 0!==n?n:new We,this._localParentNotSampled=null!==(o=t.localParentNotSampled)&&void 0!==o?o:new Ke}return t.prototype.shouldSample=function(t,e,r,n,o,i){var a=me.getSpanContext(t);return a&&ye(a)?a.isRemote?a.traceFlags&ee.SAMPLED?this._remoteParentSampled.shouldSample(t,e,r,n,o,i):this._remoteParentNotSampled.shouldSample(t,e,r,n,o,i):a.traceFlags&ee.SAMPLED?this._localParentSampled.shouldSample(t,e,r,n,o,i):this._localParentNotSampled.shouldSample(t,e,r,n,o,i):this._root.shouldSample(t,e,r,n,o,i)},t.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()+"}"},t}(),ze=function(){function t(t){void 0===t&&(t=0),this._ratio=t,this._ratio=this._normalize(t),this._upperBound=Math.floor(4294967295*this._ratio)}return t.prototype.shouldSample=function(t,e){return{decision:Oe(e)&&this._accumulate(e)=1?1:t<=0?0:t},t.prototype._accumulate=function(t){for(var e=0,r=0;r>>0}return e},t}(),Ze="[object Object]",Je="[object Null]",$e="[object Undefined]",Qe=Function.prototype.toString,qe=Qe.call(Object),tr=(ke=Object.getPrototypeOf,He=Object,function(t){return ke(He(t))}),er=Object.prototype,rr=er.hasOwnProperty,nr=Symbol?Symbol.toStringTag:void 0,or=er.toString;function ir(t){if(!function(t){return null!=t&&"object"==typeof t}(t)||function(t){return null==t?void 0===t?$e:Je:nr&&nr in Object(t)?function(t){var e=rr.call(t,nr),r=t[nr],n=!1;try{t[nr]=void 0,n=!0}catch(t){}var o=or.call(t);return n&&(e?t[nr]=r:delete t[nr]),o}(t):function(t){return or.call(t)}(t)}(t)!==Ze)return!1;var e=tr(t);if(null===e)return!0;var r=rr.call(e,"constructor")&&e.constructor;return"function"==typeof r&&r instanceof r&&Qe.call(r)===qe}var ar=20;function ur(){for(var t=[],e=0;e0;)r=lr(r,t.shift(),0,n);return r}function cr(t){return sr(t)?t.slice():t}function lr(t,e,r,n){var o;if(void 0===r&&(r=0),!(r>ar)){if(r++,Er(t)||Er(e)||_r(e))o=cr(e);else if(sr(t)){if(o=t.slice(),sr(e))for(var i=0,a=e.length;i=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};function vr(t,e){return"string"==typeof e?t===e:!!t.match(e)}function hr(t,e){var r,n;if(!e)return!1;try{for(var o=gr(e),i=o.next();!i.done;i=o.next())if(vr(t,i.value))return!0}catch(t){r={error:t}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return!1}function Rr(t){return"function"==typeof t&&"function"==typeof t.__original&&"function"==typeof t.__unwrap&&!0===t.__wrapped}var Sr=function(){function t(){var t=this;this._promise=new Promise(function(e,r){t._resolve=e,t._reject=r})}return Object.defineProperty(t.prototype,"promise",{get:function(){return this._promise},enumerable:!1,configurable:!0}),t.prototype.resolve=function(t){this._resolve(t)},t.prototype.reject=function(t){this._reject(t)},t}(),Lr=function(){function t(t,e){this._callback=t,this._that=e,this._isCalled=!1,this._deferred=new Sr}return Object.defineProperty(t.prototype,"isCalled",{get:function(){return this._isCalled},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"promise",{get:function(){return this._deferred.promise},enumerable:!1,configurable:!0}),t.prototype.call=function(){for(var t,e=this,r=[],n=0;n0)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}(r),!1))).then(function(t){return e._deferred.resolve(t)},function(t){return e._deferred.reject(t)})}catch(t){this._deferred.reject(t)}}return this._deferred.promise},t}(),Pr=L.getInstance(),mr={getKeyPairs:K,serializeKeyPairs:H,parseKeyPairsIntoRecord:function(t){return"string"!=typeof t||0===t.length?{}:t.split(F).map(function(t){return W(t)}).filter(function(t){return void 0!==t&&t.value.length>0}).reduce(function(t,e){return t[e.key]=e.value,t},{})},parsePairKeyValue:W},Ar={_export:function(t,e){return new Promise(function(r){Pr.with(j(Pr.active()),function(){t.export(e,function(t){r(t)})})})}};module.exports=e})(); \ No newline at end of file +(()=>{"use strict";var t={d:(e,r)=>{for(var n in r)t.o(r,n)&&!t.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:r[n]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r:t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}},e={};t.r(e),t.d(e,{AlwaysOffSampler:()=>Ke,AlwaysOnSampler:()=>We,AnchoredClock:()=>z,BindOnceFuture:()=>Lr,CompositePropagator:()=>re,DEFAULT_ATTRIBUTE_COUNT_LIMIT:()=>Vt,DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT:()=>Gt,DEFAULT_ENVIRONMENT:()=>Ht,DEFAULT_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT:()=>Ft,DEFAULT_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT:()=>kt,ExportResultCode:()=>at,ParentBasedSampler:()=>Ye,RPCType:()=>Be,RandomIdGenerator:()=>Pt,SDK_INFO:()=>Nt,TRACE_PARENT_HEADER:()=>we,TRACE_STATE_HEADER:()=>Me,TimeoutError:()=>yr,TraceIdRatioBasedSampler:()=>ze,TraceState:()=>Ne,TracesSamplerValues:()=>Ct,VERSION:()=>bt,W3CBaggagePropagator:()=>Y,W3CTraceContextPropagator:()=>Xe,_globalThis:()=>wt,addHrTimes:()=>Rt,baggageUtils:()=>mr,callWithTimeout:()=>dr,deleteRPCMetadata:()=>Ve,getEnv:()=>$t,getEnvWithoutDefaults:()=>Qt,getRPCMetadata:()=>Fe,getTimeOrigin:()=>_t,globalErrorHandler:()=>it,hexToBase64:()=>qt,hexToBinary:()=>Lt,hrTime:()=>pt,hrTimeDuration:()=>Tt,hrTimeToMicroseconds:()=>gt,hrTimeToMilliseconds:()=>dt,hrTimeToNanoseconds:()=>yt,hrTimeToTimeStamp:()=>Ot,internal:()=>Ar,isAttributeKey:()=>q,isAttributeValue:()=>tt,isTimeInput:()=>ht,isTimeInputHrTime:()=>vt,isTracingSuppressed:()=>V,isUrlIgnored:()=>hr,isWrapped:()=>Rr,loggingErrorHandler:()=>rt,merge:()=>ur,millisToHrTime:()=>st,otperformance:()=>ut,parseEnvironment:()=>Jt,parseTraceParent:()=>De,sanitizeAttributes:()=>Q,setGlobalErrorHandler:()=>ot,setRPCMetadata:()=>Ge,suppressTracing:()=>j,timeInputToHrTime:()=>Et,unrefTimer:()=>te,unsuppressTracing:()=>G,urlMatches:()=>vr});var r="object"==typeof globalThis?globalThis:global,n="1.9.0",o=/^(\d+)\.(\d+)\.(\d+)(-(.+))?$/,i=function(t){var e=new Set([t]),r=new Set,n=t.match(o);if(!n)return function(){return!1};var i=+n[1],a=+n[2],u=+n[3];if(null!=n[4])return function(e){return e===t};function c(t){return r.add(t),!1}function l(t){return e.add(t),!0}return function(t){if(e.has(t))return!0;if(r.has(t))return!1;var n=t.match(o);if(!n)return c(t);var f=+n[1],s=+n[2],_=+n[3];return null!=n[4]||i!==f?c(t):0===i?a===s&&u<=_?l(t):c(t):a<=s?l(t):c(t)}}(n),a=n.split(".")[0],u=Symbol.for("opentelemetry.js.api."+a),c=r;function l(t,e,r,o){var i;void 0===o&&(o=!1);var a=c[u]=null!==(i=c[u])&&void 0!==i?i:{version:n};if(!o&&a[t]){var l=new Error("@opentelemetry/api: Attempted duplicate registration of API: "+t);return r.error(l.stack||l.message),!1}return a.version!==n?(l=new Error("@opentelemetry/api: Registration of version v"+a.version+" for "+t+" does not match previously registered API v"+n),r.error(l.stack||l.message),!1):(a[t]=e,r.debug("@opentelemetry/api: Registered a global for "+t+" v"+n+"."),!0)}function f(t){var e,r,n=null===(e=c[u])||void 0===e?void 0:e.version;if(n&&i(n))return null===(r=c[u])||void 0===r?void 0:r[t]}function s(t,e){e.debug("@opentelemetry/api: Unregistering a global for "+t+" v"+n+".");var r=c[u];r&&delete r[t]}var _=function(){function t(){}return t.prototype.inject=function(t,e){},t.prototype.extract=function(t,e){return t},t.prototype.fields=function(){return[]},t}(),p={get:function(t,e){if(null!=t)return t[e]},keys:function(t){return null==t?[]:Object.keys(t)}},E={set:function(t,e,r){null!=t&&(t[e]=r)}};function T(t){return Symbol.for(t)}var O,y=new function t(e){var r=this;r._currentContext=e?new Map(e):new Map,r.getValue=function(t){return r._currentContext.get(t)},r.setValue=function(e,n){var o=new t(r._currentContext);return o._currentContext.set(e,n),o},r.deleteValue=function(e){var n=new t(r._currentContext);return n._currentContext.delete(e),n}},d=function(){function t(){}return t.prototype.active=function(){return y},t.prototype.with=function(t,e,r){for(var n=[],o=3;o0)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}(n),!1))},t.prototype.bind=function(t,e){return e},t.prototype.enable=function(){return this},t.prototype.disable=function(){return this},t}(),g=function(){function t(t){this._namespace=t.namespace||"DiagComponentLogger"}return t.prototype.debug=function(){for(var t=[],e=0;e0)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}(r),!1))}!function(t){t[t.NONE=0]="NONE",t[t.ERROR=30]="ERROR",t[t.WARN=50]="WARN",t[t.INFO=60]="INFO",t[t.DEBUG=70]="DEBUG",t[t.VERBOSE=80]="VERBOSE",t[t.ALL=9999]="ALL"}(O||(O={}));var h=function(){function t(){function t(t){return function(){for(var e=[],r=0;r0)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}(e),!1))}}var e=this;e.setLogger=function(t,r){var n,o,i;if(void 0===r&&(r={logLevel:O.INFO}),t===e){var a=new Error("Cannot use diag as the logger for itself. Please use a DiagLogger implementation like ConsoleDiagLogger or a custom implementation");return e.error(null!==(n=a.stack)&&void 0!==n?n:a.message),!1}"number"==typeof r&&(r={logLevel:r});var u=f("diag"),c=function(t,e){function r(r,n){var o=e[r];return"function"==typeof o&&t>=n?o.bind(e):function(){}}return tO.ALL&&(t=O.ALL),e=e||{},{error:r("error",O.ERROR),warn:r("warn",O.WARN),info:r("info",O.INFO),debug:r("debug",O.DEBUG),verbose:r("verbose",O.VERBOSE)}}(null!==(o=r.logLevel)&&void 0!==o?o:O.INFO,t);if(u&&!r.suppressOverrideMessage){var s=null!==(i=(new Error).stack)&&void 0!==i?i:"";u.warn("Current logger will be overwritten from "+s),c.warn("Current logger will overwrite one already registered from "+s)}return l("diag",c,e,!0)},e.disable=function(){s("diag",e)},e.createComponentLogger=function(t){return new g(t)},e.verbose=t("verbose"),e.debug=t("debug"),e.info=t("info"),e.warn=t("warn"),e.error=t("error")}return t.instance=function(){return this._instance||(this._instance=new t),this._instance},t}(),R="context",S=new d,L=function(){function t(){}return t.getInstance=function(){return this._instance||(this._instance=new t),this._instance},t.prototype.setGlobalContextManager=function(t){return l(R,t,h.instance())},t.prototype.active=function(){return this._getContextManager().active()},t.prototype.with=function(t,e,r){for(var n,o=[],i=3;i0)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}(o),!1))},t.prototype.bind=function(t,e){return this._getContextManager().bind(t,e)},t.prototype._getContextManager=function(){return f(R)||S},t.prototype.disable=function(){this._getContextManager().disable(),s(R,h.instance())},t}(),P=T("OpenTelemetry Baggage Key");function m(t){return t.getValue(P)||void 0}function A(){return m(L.getInstance().active())}function I(t,e){return t.setValue(P,e)}function C(t){return t.deleteValue(P)}var b=function(){function t(t){this._entries=t?new Map(t):new Map}return t.prototype.getEntry=function(t){var e=this._entries.get(t);if(e)return Object.assign({},e)},t.prototype.getAllEntries=function(){return Array.from(this._entries.entries()).map(function(t){var e=function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}(t,2);return[e[0],e[1]]})},t.prototype.setEntry=function(e,r){var n=new t(this._entries);return n._entries.set(e,r),n},t.prototype.removeEntry=function(e){var r=new t(this._entries);return r._entries.delete(e),r},t.prototype.removeEntries=function(){for(var e,r,n=[],o=0;o=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}(n),u=a.next();!u.done;u=a.next()){var c=u.value;i._entries.delete(c)}}catch(t){e={error:t}}finally{try{u&&!u.done&&(r=a.return)&&r.call(a)}finally{if(e)throw e.error}}return i},t.prototype.clear=function(){return new t},t}(),N=Symbol("BaggageEntryMetadata"),w=h.instance();function M(t){return void 0===t&&(t={}),new b(new Map(Object.entries(t)))}var U="propagation",D=new _,B=function(){function t(){this.createBaggage=M,this.getBaggage=m,this.getActiveBaggage=A,this.setBaggage=I,this.deleteBaggage=C}return t.getInstance=function(){return this._instance||(this._instance=new t),this._instance},t.prototype.setGlobalPropagator=function(t){return l(U,t,h.instance())},t.prototype.inject=function(t,e,r){return void 0===r&&(r=E),this._getGlobalPropagator().inject(t,e,r)},t.prototype.extract=function(t,e,r){return void 0===r&&(r=p),this._getGlobalPropagator().extract(t,e,r)},t.prototype.fields=function(){return this._getGlobalPropagator().fields()},t.prototype.disable=function(){s(U,h.instance())},t.prototype._getGlobalPropagator=function(){return f(U)||D},t}(),x=B.getInstance(),X=T("OpenTelemetry SDK Context Key SUPPRESS_TRACING");function j(t){return t.setValue(X,!0)}function G(t){return t.deleteValue(X)}function V(t){return!0===t.getValue(X)}var F=",",k="baggage";function H(t){return t.reduce(function(t,e){var r=""+t+(""!==t?F:"")+e;return r.length>8192?t:r},"")}function K(t){return t.getAllEntries().map(function(t){var e=function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}(t,2),r=e[0],n=e[1],o=encodeURIComponent(r)+"="+encodeURIComponent(n.value);return void 0!==n.metadata&&(o+=";"+n.metadata.toString()),o})}function W(t){var e=t.split(";");if(!(e.length<=0)){var r=e.shift();if(r){var n=r.indexOf("=");if(!(n<=0)){var o,i,a=decodeURIComponent(r.substring(0,n).trim()),u=decodeURIComponent(r.substring(n+1).trim());return e.length>0&&("string"!=typeof(i=e.join(";"))&&(w.error("Cannot create baggage metadata from unknown type: "+typeof i),i=""),o={__TYPE__:N,toString:function(){return i}}),{key:a,value:u,metadata:o}}}}}var Y=function(){function t(){}return t.prototype.inject=function(t,e,r){var n=x.getBaggage(t);if(n&&!V(t)){var o=H(K(n).filter(function(t){return t.length<=4096}).slice(0,180));o.length>0&&r.set(e,k,o)}},t.prototype.extract=function(t,e,r){var n=r.get(e,k),o=Array.isArray(n)?n.join(F):n;if(!o)return t;var i={};return 0===o.length?t:(o.split(F).forEach(function(t){var e=W(t);if(e){var r={value:e.value};e.metadata&&(r.metadata=e.metadata),i[e.key]=r}}),0===Object.entries(i).length?t:x.setBaggage(t,x.createBaggage(i)))},t.prototype.fields=function(){return[k]},t}(),z=function(){function t(t,e){this._monotonicClock=e,this._epochMillis=t.now(),this._performanceMillis=e.now()}return t.prototype.now=function(){var t=this._monotonicClock.now()-this._performanceMillis;return this._epochMillis+t},t}(),Z=h.instance(),J=function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},$=function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a};function Q(t){var e,r,n={};if("object"!=typeof t||null==t)return n;try{for(var o=J(Object.entries(t)),i=o.next();!i.done;i=o.next()){var a=$(i.value,2),u=a[0],c=a[1];q(u)?tt(c)?Array.isArray(c)?n[u]=c.slice():n[u]=c:Z.warn("Invalid attribute value set for key: "+u):Z.warn("Invalid attribute key: "+u)}}catch(t){e={error:t}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(e)throw e.error}}return n}function q(t){return"string"==typeof t&&t.length>0}function tt(t){return null==t||(Array.isArray(t)?function(t){var e,r,n;try{for(var o=J(t),i=o.next();!i.done;i=o.next()){var a=i.value;if(null!=a){if(!n){if(et(a)){n=typeof a;continue}return!1}if(typeof a!==n)return!1}}}catch(t){e={error:t}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(e)throw e.error}}return!0}(t):et(t))}function et(t){switch(typeof t){case"number":case"boolean":case"string":return!0}return!1}function rt(){return function(t){Z.error(function(t){return"string"==typeof t?t:JSON.stringify(function(t){for(var e={},r=t;null!==r;)Object.getOwnPropertyNames(r).forEach(function(t){if(!e[t]){var n=r[t];n&&(e[t]=String(n))}}),r=Object.getPrototypeOf(r);return e}(t))}(t))}}var nt=rt();function ot(t){nt=t}function it(t){try{nt(t)}catch(t){}}var at,ut=require("perf_hooks").performance,ct=9,lt=Math.pow(10,6),ft=Math.pow(10,ct);function st(t){var e=t/1e3;return[Math.trunc(e),Math.round(t%1e3*lt)]}function _t(){var t=ut.timeOrigin;if("number"!=typeof t){var e=ut;t=e.timing&&e.timing.fetchStart}return t}function pt(t){return Rt(st(_t()),st("number"==typeof t?t:ut.now()))}function Et(t){if(vt(t))return t;if("number"==typeof t)return t<_t()?pt(t):st(t);if(t instanceof Date)return st(t.getTime());throw TypeError("Invalid input type")}function Tt(t,e){var r=e[0]-t[0],n=e[1]-t[1];return n<0&&(r-=1,n+=ft),[r,n]}function Ot(t){var e=ct,r=""+"0".repeat(e)+t[1]+"Z",n=r.substring(r.length-e-1);return new Date(1e3*t[0]).toISOString().replace("000Z",n)}function yt(t){return t[0]*ft+t[1]}function dt(t){return 1e3*t[0]+t[1]/1e6}function gt(t){return 1e6*t[0]+t[1]/1e3}function vt(t){return Array.isArray(t)&&2===t.length&&"number"==typeof t[0]&&"number"==typeof t[1]}function ht(t){return vt(t)||"number"==typeof t||t instanceof Date}function Rt(t,e){var r=[t[0]+e[0],t[1]+e[1]];return r[1]>=ft&&(r[1]-=ft,r[0]+=1),r}function St(t){return t>=48&&t<=57?t-48:t>=97&&t<=102?t-87:t-55}function Lt(t){for(var e=new Uint8Array(t.length/2),r=0,n=0;n>>0,4*e);for(e=0;e0);e++)e===t-1&&(mt[t-1]=1);return mt.toString("hex",0,t)}}var It,Ct,bt="1.30.1",Nt=((It={})["telemetry.sdk.name"]="opentelemetry",It["process.runtime.name"]="node",It["telemetry.sdk.language"]="nodejs",It["telemetry.sdk.version"]=bt,It),wt="object"==typeof globalThis?globalThis:global;!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"}(Ct||(Ct={}));var Mt=",",Ut=["OTEL_SDK_DISABLED"];function Dt(t){return Ut.indexOf(t)>-1}var Bt=["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 xt(t){return Bt.indexOf(t)>-1}var Xt=["OTEL_NO_PATCH_MODULES","OTEL_PROPAGATORS","OTEL_SEMCONV_STABILITY_OPT_IN"];function jt(t){return Xt.indexOf(t)>-1}var Gt=1/0,Vt=128,Ft=128,kt=128,Ht={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:O.INFO,OTEL_NO_PATCH_MODULES:[],OTEL_PROPAGATORS:["tracecontext","baggage"],OTEL_RESOURCE_ATTRIBUTES:"",OTEL_SERVICE_NAME:"",OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT:Gt,OTEL_ATTRIBUTE_COUNT_LIMIT:Vt,OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT:Gt,OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT:Vt,OTEL_LOGRECORD_ATTRIBUTE_VALUE_LENGTH_LIMIT:Gt,OTEL_LOGRECORD_ATTRIBUTE_COUNT_LIMIT:Vt,OTEL_SPAN_EVENT_COUNT_LIMIT:128,OTEL_SPAN_LINK_COUNT_LIMIT:128,OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT:Ft,OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT:kt,OTEL_TRACES_EXPORTER:"",OTEL_TRACES_SAMPLER:Ct.ParentBasedAlwaysOn,OTEL_TRACES_SAMPLER_ARG:"",OTEL_LOGS_EXPORTER:"",OTEL_EXPORTER_OTLP_INSECURE:"",OTEL_EXPORTER_OTLP_TRACES_INSECURE:"",OTEL_EXPORTER_OTLP_METRICS_INSECURE:"",OTEL_EXPORTER_OTLP_LOGS_INSECURE:"",OTEL_EXPORTER_OTLP_CERTIFICATE:"",OTEL_EXPORTER_OTLP_TRACES_CERTIFICATE:"",OTEL_EXPORTER_OTLP_METRICS_CERTIFICATE:"",OTEL_EXPORTER_OTLP_LOGS_CERTIFICATE:"",OTEL_EXPORTER_OTLP_COMPRESSION:"",OTEL_EXPORTER_OTLP_TRACES_COMPRESSION:"",OTEL_EXPORTER_OTLP_METRICS_COMPRESSION:"",OTEL_EXPORTER_OTLP_LOGS_COMPRESSION:"",OTEL_EXPORTER_OTLP_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_TRACES_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_METRICS_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_LOGS_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_TRACES_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_METRICS_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_LOGS_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_TRACES_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_METRICS_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_LOGS_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE:"cumulative",OTEL_SEMCONV_STABILITY_OPT_IN:[]};function Kt(t,e,r){if(void 0!==r[t]){var n=String(r[t]);e[t]="true"===n.toLowerCase()}}function Wt(t,e,r,n,o){if(void 0===n&&(n=-1/0),void 0===o&&(o=1/0),void 0!==r[t]){var i=Number(r[t]);isNaN(i)||(e[t]=io?o:i)}}function Yt(t,e,r,n){void 0===n&&(n=Mt);var o=r[t];"string"==typeof o&&(e[t]=o.split(n).map(function(t){return t.trim()}))}var zt={ALL:O.ALL,VERBOSE:O.VERBOSE,DEBUG:O.DEBUG,INFO:O.INFO,WARN:O.WARN,ERROR:O.ERROR,NONE:O.NONE};function Zt(t,e,r){var n=r[t];if("string"==typeof n){var o=zt[n.toUpperCase()];null!=o&&(e[t]=o)}}function Jt(t){var e={};for(var r in Ht){var n=r;if("OTEL_LOG_LEVEL"===n)Zt(n,e,t);else if(Dt(n))Kt(n,e,t);else if(xt(n))Wt(n,e,t);else if(jt(n))Yt(n,e,t);else{var o=t[n];null!=o&&(e[n]=String(o))}}return e}function $t(){var t=Jt(process.env);return Object.assign({},Ht,t)}function Qt(){return Jt(process.env)}function qt(t){return Buffer.from(Lt(t)).toString("base64")}function te(t){t.unref()}var ee,re=function(){function t(t){var e;void 0===t&&(t={}),this._propagators=null!==(e=t.propagators)&&void 0!==e?e:[],this._fields=Array.from(new Set(this._propagators.map(function(t){return"function"==typeof t.fields?t.fields():[]}).reduce(function(t,e){return t.concat(e)},[])))}return t.prototype.inject=function(t,e,r){var n,o;try{for(var i=function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}(this._propagators),a=i.next();!a.done;a=i.next()){var u=a.value;try{u.inject(t,e,r)}catch(t){Z.warn("Failed to inject with "+u.constructor.name+". Err: "+t.message)}}}catch(t){n={error:t}}finally{try{a&&!a.done&&(o=i.return)&&o.call(i)}finally{if(n)throw n.error}}},t.prototype.extract=function(t,e,r){return this._propagators.reduce(function(t,n){try{return n.extract(t,e,r)}catch(t){Z.warn("Failed to extract with "+n.constructor.name+". Err: "+t.message)}return t},t)},t.prototype.fields=function(){return this._fields.slice()},t}();!function(t){t[t.NONE=0]="NONE",t[t.SAMPLED=1]="SAMPLED"}(ee||(ee={}));var ne="0000000000000000",oe="00000000000000000000000000000000",ie={traceId:oe,spanId:ne,traceFlags:ee.NONE},ae=function(){function t(t){void 0===t&&(t=ie),this._spanContext=t}return t.prototype.spanContext=function(){return this._spanContext},t.prototype.setAttribute=function(t,e){return this},t.prototype.setAttributes=function(t){return this},t.prototype.addEvent=function(t,e){return this},t.prototype.addLink=function(t){return this},t.prototype.addLinks=function(t){return this},t.prototype.setStatus=function(t){return this},t.prototype.updateName=function(t){return this},t.prototype.end=function(t){},t.prototype.isRecording=function(){return!1},t.prototype.recordException=function(t,e){},t}(),ue=T("OpenTelemetry Context Key SPAN");function ce(t){return t.getValue(ue)||void 0}function le(){return ce(L.getInstance().active())}function fe(t,e){return t.setValue(ue,e)}function se(t){return t.deleteValue(ue)}function _e(t,e){return fe(t,new ae(e))}function pe(t){var e;return null===(e=ce(t))||void 0===e?void 0:e.spanContext()}var Ee=/^([0-9a-f]{32})$/i,Te=/^[0-9a-f]{16}$/i;function Oe(t){return Ee.test(t)&&t!==oe}function ye(t){return Oe(t.traceId)&&(e=t.spanId,Te.test(e)&&e!==ne);var e}function de(t){return new ae(t)}var ge=L.getInstance(),ve=function(){function t(){}return t.prototype.startSpan=function(t,e,r){if(void 0===r&&(r=ge.active()),Boolean(null==e?void 0:e.root))return new ae;var n,o=r&&pe(r);return"object"==typeof(n=o)&&"string"==typeof n.spanId&&"string"==typeof n.traceId&&"number"==typeof n.traceFlags&&ye(o)?new ae(o):new ae},t.prototype.startActiveSpan=function(t,e,r,n){var o,i,a;if(!(arguments.length<2)){2===arguments.length?a=e:3===arguments.length?(o=e,a=r):(o=e,i=r,a=n);var u=null!=i?i:ge.active(),c=this.startSpan(t,o,u),l=fe(u,c);return ge.with(l,a,void 0,c)}},t}(),he=new ve,Re=function(){function t(t,e,r,n){this._provider=t,this.name=e,this.version=r,this.options=n}return t.prototype.startSpan=function(t,e,r){return this._getTracer().startSpan(t,e,r)},t.prototype.startActiveSpan=function(t,e,r,n){var o=this._getTracer();return Reflect.apply(o.startActiveSpan,o,arguments)},t.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):he},t}(),Se=new(function(){function t(){}return t.prototype.getTracer=function(t,e,r){return new ve},t}()),Le=function(){function t(){}return t.prototype.getTracer=function(t,e,r){var n;return null!==(n=this.getDelegateTracer(t,e,r))&&void 0!==n?n:new Re(this,t,e,r)},t.prototype.getDelegate=function(){var t;return null!==(t=this._delegate)&&void 0!==t?t:Se},t.prototype.setDelegate=function(t){this._delegate=t},t.prototype.getDelegateTracer=function(t,e,r){var n;return null===(n=this._delegate)||void 0===n?void 0:n.getTracer(t,e,r)},t}(),Pe="trace",me=function(){function t(){this._proxyTracerProvider=new Le,this.wrapSpanContext=de,this.isSpanContextValid=ye,this.deleteSpan=se,this.getSpan=ce,this.getActiveSpan=le,this.getSpanContext=pe,this.setSpan=fe,this.setSpanContext=_e}return t.getInstance=function(){return this._instance||(this._instance=new t),this._instance},t.prototype.setGlobalTracerProvider=function(t){var e=l(Pe,this._proxyTracerProvider,h.instance());return e&&this._proxyTracerProvider.setDelegate(t),e},t.prototype.getTracerProvider=function(){return f(Pe)||this._proxyTracerProvider},t.prototype.getTracer=function(t,e){return this.getTracerProvider().getTracer(t,e)},t.prototype.disable=function(){s(Pe,h.instance()),this._proxyTracerProvider=new Le},t}().getInstance(),Ae="[_0-9a-z-*/]",Ie=new RegExp("^(?:[a-z]"+Ae+"{0,255}|[a-z0-9]"+Ae+"{0,240}@[a-z]"+Ae+"{0,13})$"),Ce=/^[ -~]{0,255}[!-~]$/,be=/,|=/,Ne=function(){function t(t){this._internalState=new Map,t&&this._parse(t)}return t.prototype.set=function(t,e){var r=this._clone();return r._internalState.has(t)&&r._internalState.delete(t),r._internalState.set(t,e),r},t.prototype.unset=function(t){var e=this._clone();return e._internalState.delete(t),e},t.prototype.get=function(t){return this._internalState.get(t)},t.prototype.serialize=function(){var t=this;return this._keys().reduce(function(e,r){return e.push(r+"="+t.get(r)),e},[]).join(",")},t.prototype._parse=function(t){t.length>512||(this._internalState=t.split(",").reverse().reduce(function(t,e){var r=e.trim(),n=r.indexOf("=");if(-1!==n){var o=r.slice(0,n),i=r.slice(n+1,e.length);(function(t){return Ie.test(t)})(o)&&function(t){return Ce.test(t)&&!be.test(t)}(i)&&t.set(o,i)}return t},new Map),this._internalState.size>32&&(this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,32))))},t.prototype._keys=function(){return Array.from(this._internalState.keys()).reverse()},t.prototype._clone=function(){var e=new t;return e._internalState=new Map(this._internalState),e},t}(),we="traceparent",Me="tracestate",Ue=new RegExp("^\\s?((?!ff)[\\da-f]{2})-((?![0]{32})[\\da-f]{32})-((?![0]{16})[\\da-f]{16})-([\\da-f]{2})(-.*)?\\s?$");function De(t){var e=Ue.exec(t);return e?"00"===e[1]&&e[5]?null:{traceId:e[2],spanId:e[3],traceFlags:parseInt(e[4],16)}:null}var Be,xe,Xe=function(){function t(){}return t.prototype.inject=function(t,e,r){var n=me.getSpanContext(t);if(n&&!V(t)&&ye(n)){var o="00-"+n.traceId+"-"+n.spanId+"-0"+Number(n.traceFlags||ee.NONE).toString(16);r.set(e,we,o),n.traceState&&r.set(e,Me,n.traceState.serialize())}},t.prototype.extract=function(t,e,r){var n=r.get(e,we);if(!n)return t;var o=Array.isArray(n)?n[0]:n;if("string"!=typeof o)return t;var i=De(o);if(!i)return t;i.isRemote=!0;var a=r.get(e,Me);if(a){var u=Array.isArray(a)?a.join(","):a;i.traceState=new Ne("string"==typeof u?u:void 0)}return me.setSpanContext(t,i)},t.prototype.fields=function(){return[we,Me]},t}(),je=T("OpenTelemetry SDK Context Key RPC_METADATA");function Ge(t,e){return t.setValue(je,e)}function Ve(t){return t.deleteValue(je)}function Fe(t){return t.getValue(je)}!function(t){t.HTTP="http"}(Be||(Be={})),function(t){t[t.NOT_RECORD=0]="NOT_RECORD",t[t.RECORD=1]="RECORD",t[t.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"}(xe||(xe={}));var ke,He,Ke=function(){function t(){}return t.prototype.shouldSample=function(){return{decision:xe.NOT_RECORD}},t.prototype.toString=function(){return"AlwaysOffSampler"},t}(),We=function(){function t(){}return t.prototype.shouldSample=function(){return{decision:xe.RECORD_AND_SAMPLED}},t.prototype.toString=function(){return"AlwaysOnSampler"},t}(),Ye=function(){function t(t){var e,r,n,o;this._root=t.root,this._root||(it(new Error("ParentBasedSampler must have a root sampler configured")),this._root=new We),this._remoteParentSampled=null!==(e=t.remoteParentSampled)&&void 0!==e?e:new We,this._remoteParentNotSampled=null!==(r=t.remoteParentNotSampled)&&void 0!==r?r:new Ke,this._localParentSampled=null!==(n=t.localParentSampled)&&void 0!==n?n:new We,this._localParentNotSampled=null!==(o=t.localParentNotSampled)&&void 0!==o?o:new Ke}return t.prototype.shouldSample=function(t,e,r,n,o,i){var a=me.getSpanContext(t);return a&&ye(a)?a.isRemote?a.traceFlags&ee.SAMPLED?this._remoteParentSampled.shouldSample(t,e,r,n,o,i):this._remoteParentNotSampled.shouldSample(t,e,r,n,o,i):a.traceFlags&ee.SAMPLED?this._localParentSampled.shouldSample(t,e,r,n,o,i):this._localParentNotSampled.shouldSample(t,e,r,n,o,i):this._root.shouldSample(t,e,r,n,o,i)},t.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()+"}"},t}(),ze=function(){function t(t){void 0===t&&(t=0),this._ratio=t,this._ratio=this._normalize(t),this._upperBound=Math.floor(4294967295*this._ratio)}return t.prototype.shouldSample=function(t,e){return{decision:Oe(e)&&this._accumulate(e)=1?1:t<=0?0:t},t.prototype._accumulate=function(t){for(var e=0,r=0;r>>0}return e},t}(),Ze="[object Object]",Je="[object Null]",$e="[object Undefined]",Qe=Function.prototype.toString,qe=Qe.call(Object),tr=(ke=Object.getPrototypeOf,He=Object,function(t){return ke(He(t))}),er=Object.prototype,rr=er.hasOwnProperty,nr=Symbol?Symbol.toStringTag:void 0,or=er.toString;function ir(t){if(!function(t){return null!=t&&"object"==typeof t}(t)||function(t){return null==t?void 0===t?$e:Je:nr&&nr in Object(t)?function(t){var e=rr.call(t,nr),r=t[nr],n=!1;try{t[nr]=void 0,n=!0}catch(t){}var o=or.call(t);return n&&(e?t[nr]=r:delete t[nr]),o}(t):function(t){return or.call(t)}(t)}(t)!==Ze)return!1;var e=tr(t);if(null===e)return!0;var r=rr.call(e,"constructor")&&e.constructor;return"function"==typeof r&&r instanceof r&&Qe.call(r)===qe}var ar=20;function ur(){for(var t=[],e=0;e0;)r=lr(r,t.shift(),0,n);return r}function cr(t){return sr(t)?t.slice():t}function lr(t,e,r,n){var o;if(void 0===r&&(r=0),!(r>ar)){if(r++,Er(t)||Er(e)||_r(e))o=cr(e);else if(sr(t)){if(o=t.slice(),sr(e))for(var i=0,a=e.length;i=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};function vr(t,e){return"string"==typeof e?t===e:!!t.match(e)}function hr(t,e){var r,n;if(!e)return!1;try{for(var o=gr(e),i=o.next();!i.done;i=o.next())if(vr(t,i.value))return!0}catch(t){r={error:t}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return!1}function Rr(t){return"function"==typeof t&&"function"==typeof t.__original&&"function"==typeof t.__unwrap&&!0===t.__wrapped}var Sr=function(){function t(){var t=this;this._promise=new Promise(function(e,r){t._resolve=e,t._reject=r})}return Object.defineProperty(t.prototype,"promise",{get:function(){return this._promise},enumerable:!1,configurable:!0}),t.prototype.resolve=function(t){this._resolve(t)},t.prototype.reject=function(t){this._reject(t)},t}(),Lr=function(){function t(t,e){this._callback=t,this._that=e,this._isCalled=!1,this._deferred=new Sr}return Object.defineProperty(t.prototype,"isCalled",{get:function(){return this._isCalled},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"promise",{get:function(){return this._deferred.promise},enumerable:!1,configurable:!0}),t.prototype.call=function(){for(var t,e=this,r=[],n=0;n0)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}(r),!1))).then(function(t){return e._deferred.resolve(t)},function(t){return e._deferred.reject(t)})}catch(t){this._deferred.reject(t)}}return this._deferred.promise},t}(),Pr=L.getInstance(),mr={getKeyPairs:K,serializeKeyPairs:H,parseKeyPairsIntoRecord:function(t){return"string"!=typeof t||0===t.length?{}:t.split(F).map(function(t){return W(t)}).filter(function(t){return void 0!==t&&t.value.length>0}).reduce(function(t,e){return t[e.key]=e.value,t},{})},parsePairKeyValue:W},Ar={_export:function(t,e){return new Promise(function(r){Pr.with(j(Pr.active()),function(){t.export(e,function(t){r(t)})})})}};module.exports=e})(); \ No newline at end of file diff --git a/packages/node_modules/@opentelemetry/resources.js b/packages/node_modules/@opentelemetry/resources.js index 23f156a83a3..9f5b9437d31 100644 --- a/packages/node_modules/@opentelemetry/resources.js +++ b/packages/node_modules/@opentelemetry/resources.js @@ -1 +1 @@ -(()=>{"use strict";var e={454:(e,t,r)=>{r.d(t,{D:()=>c});var n=r(9896),o=r(2733),i=r(8758),a=function(e,t,r,n){return new(r||(r=Promise))(function(o,i){function a(e){try{c(n.next(e))}catch(e){i(e)}}function u(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(a,u)}c((n=n.apply(e,t||[])).next())})},u=function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]{e.exports=require("process")},1275:(e,t,r)=>{r.d(t,{V:()=>o});var n=r(6051),o=function(){function e(e){this._namespace=e.namespace||"DiagComponentLogger"}return e.prototype.debug=function(){for(var e=[],t=0;t0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}(r),!1))}},1568:(e,t,r)=>{r.d(t,{D:()=>u});var n=r(2733),o=r(8758),i=function(e,t,r,n){return new(r||(r=Promise))(function(o,i){function a(e){try{c(n.next(e))}catch(e){i(e)}}function u(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(a,u)}c((n=n.apply(e,t||[])).next())})},a=function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]{r.d(t,{c:()=>o});var n=r(6733);function o(e,t){function r(r,n){var o=t[r];return"function"==typeof o&&e>=n?o.bind(t):function(){}}return en.u.ALL&&(e=n.u.ALL),t=t||{},{error:r("error",n.u.ERROR),warn:r("warn",n.u.WARN),info:r("info",n.u.INFO),debug:r("debug",n.u.DEBUG),verbose:r("verbose",n.u.VERBOSE)}}},2408:(e,t,r)=>{r.d(t,{D:()=>a});var n=r(8758),o=function(e,t,r,n){return new(r||(r=Promise))(function(o,i){function a(e){try{c(n.next(e))}catch(e){i(e)}}function u(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(a,u)}c((n=n.apply(e,t||[])).next())})},i=function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]{r.d(t,{q:()=>o});const n=require("child_process");var o=require("util").promisify(n.exec)},2910:(e,t,r)=>{r.d(t,{x:()=>n});var n="1.9.0"},5234:(e,t,r)=>{r.d(t,{X:()=>n});var n="object"==typeof globalThis?globalThis:global},5726:(e,t,r)=>{r.d(t,{K:()=>u});var n=r(1275),o=r(1994),i=r(6733),a=r(6051),u=function(){function e(){function e(e){return function(){for(var t=[],r=0;r0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}(t),!1))}}var t=this;t.setLogger=function(e,r){var n,u,c;if(void 0===r&&(r={logLevel:i.u.INFO}),e===t){var s=new Error("Cannot use diag as the logger for itself. Please use a DiagLogger implementation like ConsoleDiagLogger or a custom implementation");return t.error(null!==(n=s.stack)&&void 0!==n?n:s.message),!1}"number"==typeof r&&(r={logLevel:r});var l=(0,a.mS)("diag"),E=(0,o.c)(null!==(u=r.logLevel)&&void 0!==u?u:i.u.INFO,e);if(l&&!r.suppressOverrideMessage){var f=null!==(c=(new Error).stack)&&void 0!==c?c:"";l.warn("Current logger will be overwritten from "+f),E.warn("Current logger will overwrite one already registered from "+f)}return(0,a.$G)("diag",E,t,!0)},t.disable=function(){(0,a.kv)("diag",t)},t.createComponentLogger=function(e){return new n.V(e)},t.verbose=e("verbose"),t.debug=e("debug"),t.info=e("info"),t.warn=e("warn"),t.error=e("error")}return e.instance=function(){return this._instance||(this._instance=new e),this._instance},e}()},6051:(e,t,r)=>{r.d(t,{$G:()=>s,kv:()=>E,mS:()=>l});var n=r(5234),o=r(2910),i=r(8336),a=o.x.split(".")[0],u=Symbol.for("opentelemetry.js.api."+a),c=n.X;function s(e,t,r,n){var i;void 0===n&&(n=!1);var a=c[u]=null!==(i=c[u])&&void 0!==i?i:{version:o.x};if(!n&&a[e]){var s=new Error("@opentelemetry/api: Attempted duplicate registration of API: "+e);return r.error(s.stack||s.message),!1}return a.version!==o.x?(s=new Error("@opentelemetry/api: Registration of version v"+a.version+" for "+e+" does not match previously registered API v"+o.x),r.error(s.stack||s.message),!1):(a[e]=t,r.debug("@opentelemetry/api: Registered a global for "+e+" v"+o.x+"."),!0)}function l(e){var t,r,n=null===(t=c[u])||void 0===t?void 0:t.version;if(n&&(0,i.$)(n))return null===(r=c[u])||void 0===r?void 0:r[e]}function E(e,t){t.debug("@opentelemetry/api: Unregistering a global for "+e+" v"+o.x+".");var r=c[u];r&&delete r[e]}},6733:(e,t,r)=>{var n;r.d(t,{u:()=>n}),function(e){e[e.NONE=0]="NONE",e[e.ERROR=30]="ERROR",e[e.WARN=50]="WARN",e[e.INFO=60]="INFO",e[e.DEBUG=70]="DEBUG",e[e.VERBOSE=80]="VERBOSE",e[e.ALL=9999]="ALL"}(n||(n={}))},7349:(e,t,r)=>{r.d(t,{D:()=>c});var n=r(932),o=r(2733),i=r(8758),a=function(e,t,r,n){return new(r||(r=Promise))(function(o,i){function a(e){try{c(n.next(e))}catch(e){i(e)}}function u(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(a,u)}c((n=n.apply(e,t||[])).next())})},u=function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]{r.d(t,{D:()=>c});var n=r(9896),o=r(8758),i=function(e,t,r,n){return new(r||(r=Promise))(function(o,i){function a(e){try{c(n.next(e))}catch(e){i(e)}}function u(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(a,u)}c((n=n.apply(e,t||[])).next())})},a=function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]=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 c(){return i(this,void 0,void 0,function(){var e,t,r,i,c,s,l,E;return a(this,function(a){switch(a.label){case 0:e=["/etc/machine-id","/var/lib/dbus/machine-id"],a.label=1;case 1:a.trys.push([1,8,9,10]),t=u(e),r=t.next(),a.label=2;case 2:if(r.done)return[3,7];i=r.value,a.label=3;case 3:return a.trys.push([3,5,,6]),[4,n.promises.readFile(i,{encoding:"utf8"})];case 4:return[2,a.sent().trim()];case 5:return c=a.sent(),o.s.debug("error reading machine id: "+c),[3,6];case 6:return r=t.next(),[3,2];case 7:return[3,10];case 8:return s=a.sent(),l={error:s},[3,10];case 9:try{r&&!r.done&&(E=t.return)&&E.call(t)}finally{if(l)throw l.error}return[7];case 10:return[2,""]}})})}},8336:(e,t,r)=>{r.d(t,{$:()=>i});var n=r(2910),o=/^(\d+)\.(\d+)\.(\d+)(-(.+))?$/,i=function(e){var t=new Set([e]),r=new Set,n=e.match(o);if(!n)return function(){return!1};var i=+n[1],a=+n[2],u=+n[3];if(null!=n[4])return function(t){return t===e};function c(e){return r.add(e),!1}function s(e){return t.add(e),!0}return function(e){if(t.has(e))return!0;if(r.has(e))return!1;var n=e.match(o);if(!n)return c(e);var l=+n[1],E=+n[2],f=+n[3];return null!=n[4]||i!==l?c(e):0===i?a===E&&u<=f?s(e):c(e):a<=E?s(e):c(e)}}(n.x)},8758:(e,t,r)=>{r.d(t,{s:()=>n});var n=r(5726).K.instance()},9896:e=>{e.exports=require("fs")}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var i=t[n]={exports:{}};return e[n](i,i.exports,r),i.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};r.r(n),r.d(n,{Resource:()=>p,browserDetector:()=>S,browserDetectorSync:()=>P,defaultServiceName:()=>T,detectResources:()=>oe,detectResourcesSync:()=>ie,envDetector:()=>j,envDetectorSync:()=>F,hostDetector:()=>L,hostDetectorSync:()=>R,osDetector:()=>q,osDetectorSync:()=>Y,processDetector:()=>Q,processDetectorSync:()=>$,serviceInstanceIdDetectorSync:()=>te});var o,i=r(8758),a="process.runtime.name",u="process.runtime.version",c="process.runtime.description",s="service.name",l="telemetry.sdk.name",E="telemetry.sdk.language",f="telemetry.sdk.version",_=((o={})[l]="opentelemetry",o[a]="node",o[E]="nodejs",o[f]="1.30.1",o);function T(){return"unknown_service:"+process.argv0}var O=function(){return O=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}(e,2),i=o[0],a=o[1];return O(O(O(O({},n._syncAttributes),i),null!==(r=t._syncAttributes)&&void 0!==r?r:t.attributes),a)});return new e(o,i)},e.EMPTY=new e({}),e}();const d=require("os");var v;switch(r(932).platform){case"darwin":v=r(1568).D;break;case"linux":v=r(7917).D;break;case"freebsd":v=r(454).D;break;case"win32":v=r(7349).D;break;default:v=r(2408).D}var y,h=function(){function e(){}return e.prototype.detect=function(e){var t,r=((t={})["host.name"]=(0,d.hostname)(),t["host.arch"]=function(e){switch(e){case"arm":return"arm32";case"ppc":return"ppc32";case"x64":return"amd64";default:return e}}((0,d.arch)()),t);return new p(r,this._getAsyncAttributes())},e.prototype._getAsyncAttributes=function(){return v().then(function(e){var t={};return e&&(t["host.id"]=e),t})},e}(),R=new h,L=new(function(){function e(){}return e.prototype.detect=function(e){return Promise.resolve(R.detect(e))},e}()),b=function(){return b=Object.assign||function(e){for(var t,r=1,n=arguments.length;r-1}var m=["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 N(e){return m.indexOf(e)>-1}var C=["OTEL_NO_PATCH_MODULES","OTEL_PROPAGATORS","OTEL_SEMCONV_STABILITY_OPT_IN"];function U(e){return C.indexOf(e)>-1}var M=1/0,x={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:g.u.INFO,OTEL_NO_PATCH_MODULES:[],OTEL_PROPAGATORS:["tracecontext","baggage"],OTEL_RESOURCE_ATTRIBUTES:"",OTEL_SERVICE_NAME:"",OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT:M,OTEL_ATTRIBUTE_COUNT_LIMIT:128,OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT:M,OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT:128,OTEL_LOGRECORD_ATTRIBUTE_VALUE_LENGTH_LIMIT:M,OTEL_LOGRECORD_ATTRIBUTE_COUNT_LIMIT:128,OTEL_SPAN_EVENT_COUNT_LIMIT:128,OTEL_SPAN_LINK_COUNT_LIMIT:128,OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT:128,OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT:128,OTEL_TRACES_EXPORTER:"",OTEL_TRACES_SAMPLER:y.ParentBasedAlwaysOn,OTEL_TRACES_SAMPLER_ARG:"",OTEL_LOGS_EXPORTER:"",OTEL_EXPORTER_OTLP_INSECURE:"",OTEL_EXPORTER_OTLP_TRACES_INSECURE:"",OTEL_EXPORTER_OTLP_METRICS_INSECURE:"",OTEL_EXPORTER_OTLP_LOGS_INSECURE:"",OTEL_EXPORTER_OTLP_CERTIFICATE:"",OTEL_EXPORTER_OTLP_TRACES_CERTIFICATE:"",OTEL_EXPORTER_OTLP_METRICS_CERTIFICATE:"",OTEL_EXPORTER_OTLP_LOGS_CERTIFICATE:"",OTEL_EXPORTER_OTLP_COMPRESSION:"",OTEL_EXPORTER_OTLP_TRACES_COMPRESSION:"",OTEL_EXPORTER_OTLP_METRICS_COMPRESSION:"",OTEL_EXPORTER_OTLP_LOGS_COMPRESSION:"",OTEL_EXPORTER_OTLP_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_TRACES_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_METRICS_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_LOGS_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_TRACES_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_METRICS_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_LOGS_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_TRACES_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_METRICS_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_LOGS_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE:"cumulative",OTEL_SEMCONV_STABILITY_OPT_IN:[]};function X(e,t,r){if(void 0!==r[e]){var n=String(r[e]);t[e]="true"===n.toLowerCase()}}function D(e,t,r,n,o){if(void 0===n&&(n=-1/0),void 0===o&&(o=1/0),void 0!==r[e]){var i=Number(r[e]);isNaN(i)||(t[e]=io?o:i)}}function B(e,t,r,n){void 0===n&&(n=",");var o=r[e];"string"==typeof o&&(t[e]=o.split(n).map(function(e){return e.trim()}))}var G={ALL:g.u.ALL,VERBOSE:g.u.VERBOSE,DEBUG:g.u.DEBUG,INFO:g.u.INFO,WARN:g.u.WARN,ERROR:g.u.ERROR,NONE:g.u.NONE};function k(e,t,r){var n=r[e];if("string"==typeof n){var o=G[n.toUpperCase()];null!=o&&(t[e]=o)}}var V=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},H=function(){function e(){this._MAX_LENGTH=255,this._COMMA_SEPARATOR=",",this._LABEL_KEY_VALUE_SPLITTER="=",this._ERROR_MESSAGE_INVALID_CHARS="should be a ASCII string with a length greater than 0 and not exceed "+this._MAX_LENGTH+" characters.",this._ERROR_MESSAGE_INVALID_VALUE="should be a ASCII string with a length not exceed "+this._MAX_LENGTH+" characters."}return e.prototype.detect=function(e){var t,r={},n=(t=function(e){var t={};for(var r in x){var n=r;if("OTEL_LOG_LEVEL"===n)k(n,t,e);else if(w(n))X(n,t,e);else if(N(n))D(n,t,e);else if(U(n))B(n,t,e);else{var o=e[n];null!=o&&(t[n]=String(o))}}return t}(process.env),Object.assign({},x,t)),o=n.OTEL_RESOURCE_ATTRIBUTES,a=n.OTEL_SERVICE_NAME;if(o)try{var u=this._parseResourceAttributes(o);Object.assign(r,u)}catch(e){i.s.debug("EnvDetector failed: "+e.message)}return a&&(r[s]=a),new p(r)},e.prototype._parseResourceAttributes=function(e){var t,r;if(!e)return{};var n={},o=e.split(this._COMMA_SEPARATOR,-1);try{for(var i=function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)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.")}(o),a=i.next();!a.done;a=i.next()){var u=a.value.split(this._LABEL_KEY_VALUE_SPLITTER,-1);if(2===u.length){var c=V(u,2),s=c[0],l=c[1];if(s=s.trim(),l=l.trim().split(/^"|"$/).join(""),!this._isValidAndNotEmpty(s))throw new Error("Attribute key "+this._ERROR_MESSAGE_INVALID_CHARS);if(!this._isValid(l))throw new Error("Attribute value "+this._ERROR_MESSAGE_INVALID_VALUE);n[s]=decodeURIComponent(l)}}}catch(e){t={error:e}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}return n},e.prototype._isValid=function(e){return e.length<=this._MAX_LENGTH&&this._isBaggageOctetString(e)},e.prototype._isBaggageOctetString=function(e){for(var t=0;t126)return!1}return!0},e.prototype._isValidAndNotEmpty=function(e){return e.length>0&&this._isValid(e)},e}(),F=new H,j=new(function(){function e(){}return e.prototype.detect=function(e){return Promise.resolve(F.detect(e))},e}()),K=function(){function e(){}return e.prototype.detect=function(e){var t,r=((t={})["os.type"]=function(e){switch(e){case"sunos":return"solaris";case"win32":return"windows";default:return e}}((0,d.platform)()),t["os.version"]=(0,d.release)(),t);return new p(r)},e}(),Y=new K,q=new(function(){function e(){}return e.prototype.detect=function(e){return Promise.resolve(Y.detect(e))},e}()),Z=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},W=function(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o1&&(r["process.command"]=process.argv[1]);try{var n=d.userInfo();r["process.owner"]=n.username}catch(e){i.s.debug("error obtaining process owner: "+e)}return new p(r)},e}(),$=new J,Q=new(function(){function e(){}return e.prototype.detect=function(e){return Promise.resolve($.detect(e))},e}());const z=require("crypto");var ee=function(){function e(){}return e.prototype.detect=function(e){var t,r=((t={})["service.instance.id"]=(0,z.randomUUID)(),t);return new p(r)},e}(),te=new ee,re=function(e,t,r,n){return new(r||(r=Promise))(function(o,i){function a(e){try{c(n.next(e))}catch(e){i(e)}}function u(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(a,u)}c((n=n.apply(e,t||[])).next())})},ne=function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]0){var t=JSON.stringify(e.attributes,null,4);i.s.verbose(t)}})};module.exports=n})(); \ No newline at end of file +(()=>{"use strict";var e={454:(e,t,r)=>{r.d(t,{D:()=>c});var n=r(9896),o=r(2733),i=r(8758),a=function(e,t,r,n){return new(r||(r=Promise))(function(o,i){function a(e){try{c(n.next(e))}catch(e){i(e)}}function u(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(a,u)}c((n=n.apply(e,t||[])).next())})},u=function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]{e.exports=require("process")},1275:(e,t,r)=>{r.d(t,{V:()=>o});var n=r(6051),o=function(){function e(e){this._namespace=e.namespace||"DiagComponentLogger"}return e.prototype.debug=function(){for(var e=[],t=0;t0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}(r),!1))}},1568:(e,t,r)=>{r.d(t,{D:()=>u});var n=r(2733),o=r(8758),i=function(e,t,r,n){return new(r||(r=Promise))(function(o,i){function a(e){try{c(n.next(e))}catch(e){i(e)}}function u(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(a,u)}c((n=n.apply(e,t||[])).next())})},a=function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]{r.d(t,{c:()=>o});var n=r(6733);function o(e,t){function r(r,n){var o=t[r];return"function"==typeof o&&e>=n?o.bind(t):function(){}}return en.u.ALL&&(e=n.u.ALL),t=t||{},{error:r("error",n.u.ERROR),warn:r("warn",n.u.WARN),info:r("info",n.u.INFO),debug:r("debug",n.u.DEBUG),verbose:r("verbose",n.u.VERBOSE)}}},2408:(e,t,r)=>{r.d(t,{D:()=>a});var n=r(8758),o=function(e,t,r,n){return new(r||(r=Promise))(function(o,i){function a(e){try{c(n.next(e))}catch(e){i(e)}}function u(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(a,u)}c((n=n.apply(e,t||[])).next())})},i=function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]{r.d(t,{q:()=>o});const n=require("child_process");var o=require("util").promisify(n.exec)},2910:(e,t,r)=>{r.d(t,{x:()=>n});var n="1.9.0"},5234:(e,t,r)=>{r.d(t,{X:()=>n});var n="object"==typeof globalThis?globalThis:global},5726:(e,t,r)=>{r.d(t,{K:()=>u});var n=r(1275),o=r(1994),i=r(6733),a=r(6051),u=function(){function e(){function e(e){return function(){for(var t=[],r=0;r0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}(t),!1))}}var t=this;t.setLogger=function(e,r){var n,u,c;if(void 0===r&&(r={logLevel:i.u.INFO}),e===t){var s=new Error("Cannot use diag as the logger for itself. Please use a DiagLogger implementation like ConsoleDiagLogger or a custom implementation");return t.error(null!==(n=s.stack)&&void 0!==n?n:s.message),!1}"number"==typeof r&&(r={logLevel:r});var l=(0,a.mS)("diag"),E=(0,o.c)(null!==(u=r.logLevel)&&void 0!==u?u:i.u.INFO,e);if(l&&!r.suppressOverrideMessage){var f=null!==(c=(new Error).stack)&&void 0!==c?c:"";l.warn("Current logger will be overwritten from "+f),E.warn("Current logger will overwrite one already registered from "+f)}return(0,a.$G)("diag",E,t,!0)},t.disable=function(){(0,a.kv)("diag",t)},t.createComponentLogger=function(e){return new n.V(e)},t.verbose=e("verbose"),t.debug=e("debug"),t.info=e("info"),t.warn=e("warn"),t.error=e("error")}return e.instance=function(){return this._instance||(this._instance=new e),this._instance},e}()},6051:(e,t,r)=>{r.d(t,{$G:()=>s,kv:()=>E,mS:()=>l});var n=r(5234),o=r(2910),i=r(8336),a=o.x.split(".")[0],u=Symbol.for("opentelemetry.js.api."+a),c=n.X;function s(e,t,r,n){var i;void 0===n&&(n=!1);var a=c[u]=null!==(i=c[u])&&void 0!==i?i:{version:o.x};if(!n&&a[e]){var s=new Error("@opentelemetry/api: Attempted duplicate registration of API: "+e);return r.error(s.stack||s.message),!1}return a.version!==o.x?(s=new Error("@opentelemetry/api: Registration of version v"+a.version+" for "+e+" does not match previously registered API v"+o.x),r.error(s.stack||s.message),!1):(a[e]=t,r.debug("@opentelemetry/api: Registered a global for "+e+" v"+o.x+"."),!0)}function l(e){var t,r,n=null===(t=c[u])||void 0===t?void 0:t.version;if(n&&(0,i.$)(n))return null===(r=c[u])||void 0===r?void 0:r[e]}function E(e,t){t.debug("@opentelemetry/api: Unregistering a global for "+e+" v"+o.x+".");var r=c[u];r&&delete r[e]}},6733:(e,t,r)=>{var n;r.d(t,{u:()=>n}),function(e){e[e.NONE=0]="NONE",e[e.ERROR=30]="ERROR",e[e.WARN=50]="WARN",e[e.INFO=60]="INFO",e[e.DEBUG=70]="DEBUG",e[e.VERBOSE=80]="VERBOSE",e[e.ALL=9999]="ALL"}(n||(n={}))},7349:(e,t,r)=>{r.d(t,{D:()=>c});var n=r(932),o=r(2733),i=r(8758),a=function(e,t,r,n){return new(r||(r=Promise))(function(o,i){function a(e){try{c(n.next(e))}catch(e){i(e)}}function u(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(a,u)}c((n=n.apply(e,t||[])).next())})},u=function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]{r.d(t,{D:()=>c});var n=r(9896),o=r(8758),i=function(e,t,r,n){return new(r||(r=Promise))(function(o,i){function a(e){try{c(n.next(e))}catch(e){i(e)}}function u(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(a,u)}c((n=n.apply(e,t||[])).next())})},a=function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]=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 c(){return i(this,void 0,void 0,function(){var e,t,r,i,c,s,l,E;return a(this,function(a){switch(a.label){case 0:e=["/etc/machine-id","/var/lib/dbus/machine-id"],a.label=1;case 1:a.trys.push([1,8,9,10]),t=u(e),r=t.next(),a.label=2;case 2:if(r.done)return[3,7];i=r.value,a.label=3;case 3:return a.trys.push([3,5,,6]),[4,n.promises.readFile(i,{encoding:"utf8"})];case 4:return[2,a.sent().trim()];case 5:return c=a.sent(),o.s.debug("error reading machine id: "+c),[3,6];case 6:return r=t.next(),[3,2];case 7:return[3,10];case 8:return s=a.sent(),l={error:s},[3,10];case 9:try{r&&!r.done&&(E=t.return)&&E.call(t)}finally{if(l)throw l.error}return[7];case 10:return[2,""]}})})}},8336:(e,t,r)=>{r.d(t,{$:()=>i});var n=r(2910),o=/^(\d+)\.(\d+)\.(\d+)(-(.+))?$/,i=function(e){var t=new Set([e]),r=new Set,n=e.match(o);if(!n)return function(){return!1};var i=+n[1],a=+n[2],u=+n[3];if(null!=n[4])return function(t){return t===e};function c(e){return r.add(e),!1}function s(e){return t.add(e),!0}return function(e){if(t.has(e))return!0;if(r.has(e))return!1;var n=e.match(o);if(!n)return c(e);var l=+n[1],E=+n[2],f=+n[3];return null!=n[4]||i!==l?c(e):0===i?a===E&&u<=f?s(e):c(e):a<=E?s(e):c(e)}}(n.x)},8758:(e,t,r)=>{r.d(t,{s:()=>n});var n=r(5726).K.instance()},9896:e=>{e.exports=require("fs")}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var i=t[n]={exports:{}};return e[n](i,i.exports,r),i.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};r.r(n),r.d(n,{Resource:()=>d,browserDetector:()=>R,browserDetectorSync:()=>h,defaultServiceName:()=>T,detectResources:()=>oe,detectResourcesSync:()=>ie,envDetector:()=>G,envDetectorSync:()=>B,hostDetector:()=>j,hostDetectorSync:()=>F,osDetector:()=>q,osDetectorSync:()=>Y,processDetector:()=>Q,processDetectorSync:()=>$,serviceInstanceIdDetectorSync:()=>te});var o,i=r(8758),a="process.runtime.name",u="process.runtime.version",c="process.runtime.description",s="service.name",l="telemetry.sdk.name",E="telemetry.sdk.language",f="telemetry.sdk.version",_=((o={})[l]="opentelemetry",o[a]="node",o[E]="nodejs",o[f]="1.30.1",o);function T(){return"unknown_service:"+process.argv0}var O,p=function(){return p=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}(e,2),i=o[0],a=o[1];return p(p(p(p({},n._syncAttributes),i),null!==(r=t._syncAttributes)&&void 0!==r?r:t.attributes),a)});return new e(o,i)},e.EMPTY=new e({}),e}(),v=function(){return v=Object.assign||function(e){for(var t,r=1,n=arguments.length;r-1}var P=["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 S(e){return P.indexOf(e)>-1}var g=["OTEL_NO_PATCH_MODULES","OTEL_PROPAGATORS","OTEL_SEMCONV_STABILITY_OPT_IN"];function I(e){return g.indexOf(e)>-1}var w=1/0,m={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:L.u.INFO,OTEL_NO_PATCH_MODULES:[],OTEL_PROPAGATORS:["tracecontext","baggage"],OTEL_RESOURCE_ATTRIBUTES:"",OTEL_SERVICE_NAME:"",OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT:w,OTEL_ATTRIBUTE_COUNT_LIMIT:128,OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT:w,OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT:128,OTEL_LOGRECORD_ATTRIBUTE_VALUE_LENGTH_LIMIT:w,OTEL_LOGRECORD_ATTRIBUTE_COUNT_LIMIT:128,OTEL_SPAN_EVENT_COUNT_LIMIT:128,OTEL_SPAN_LINK_COUNT_LIMIT:128,OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT:128,OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT:128,OTEL_TRACES_EXPORTER:"",OTEL_TRACES_SAMPLER:O.ParentBasedAlwaysOn,OTEL_TRACES_SAMPLER_ARG:"",OTEL_LOGS_EXPORTER:"",OTEL_EXPORTER_OTLP_INSECURE:"",OTEL_EXPORTER_OTLP_TRACES_INSECURE:"",OTEL_EXPORTER_OTLP_METRICS_INSECURE:"",OTEL_EXPORTER_OTLP_LOGS_INSECURE:"",OTEL_EXPORTER_OTLP_CERTIFICATE:"",OTEL_EXPORTER_OTLP_TRACES_CERTIFICATE:"",OTEL_EXPORTER_OTLP_METRICS_CERTIFICATE:"",OTEL_EXPORTER_OTLP_LOGS_CERTIFICATE:"",OTEL_EXPORTER_OTLP_COMPRESSION:"",OTEL_EXPORTER_OTLP_TRACES_COMPRESSION:"",OTEL_EXPORTER_OTLP_METRICS_COMPRESSION:"",OTEL_EXPORTER_OTLP_LOGS_COMPRESSION:"",OTEL_EXPORTER_OTLP_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_TRACES_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_METRICS_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_LOGS_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_TRACES_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_METRICS_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_LOGS_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_TRACES_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_METRICS_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_LOGS_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE:"cumulative",OTEL_SEMCONV_STABILITY_OPT_IN:[]};function N(e,t,r){if(void 0!==r[e]){var n=String(r[e]);t[e]="true"===n.toLowerCase()}}function C(e,t,r,n,o){if(void 0===n&&(n=-1/0),void 0===o&&(o=1/0),void 0!==r[e]){var i=Number(r[e]);isNaN(i)||(t[e]=io?o:i)}}function U(e,t,r,n){void 0===n&&(n=",");var o=r[e];"string"==typeof o&&(t[e]=o.split(n).map(function(e){return e.trim()}))}var M={ALL:L.u.ALL,VERBOSE:L.u.VERBOSE,DEBUG:L.u.DEBUG,INFO:L.u.INFO,WARN:L.u.WARN,ERROR:L.u.ERROR,NONE:L.u.NONE};function x(e,t,r){var n=r[e];if("string"==typeof n){var o=M[n.toUpperCase()];null!=o&&(t[e]=o)}}var X=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},D=function(){function e(){this._MAX_LENGTH=255,this._COMMA_SEPARATOR=",",this._LABEL_KEY_VALUE_SPLITTER="=",this._ERROR_MESSAGE_INVALID_CHARS="should be a ASCII string with a length greater than 0 and not exceed "+this._MAX_LENGTH+" characters.",this._ERROR_MESSAGE_INVALID_VALUE="should be a ASCII string with a length not exceed "+this._MAX_LENGTH+" characters."}return e.prototype.detect=function(e){var t,r={},n=(t=function(e){var t={};for(var r in m){var n=r;if("OTEL_LOG_LEVEL"===n)x(n,t,e);else if(A(n))N(n,t,e);else if(S(n))C(n,t,e);else if(I(n))U(n,t,e);else{var o=e[n];null!=o&&(t[n]=String(o))}}return t}(process.env),Object.assign({},m,t)),o=n.OTEL_RESOURCE_ATTRIBUTES,a=n.OTEL_SERVICE_NAME;if(o)try{var u=this._parseResourceAttributes(o);Object.assign(r,u)}catch(e){i.s.debug("EnvDetector failed: "+e.message)}return a&&(r[s]=a),new d(r)},e.prototype._parseResourceAttributes=function(e){var t,r;if(!e)return{};var n={},o=e.split(this._COMMA_SEPARATOR,-1);try{for(var i=function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)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.")}(o),a=i.next();!a.done;a=i.next()){var u=a.value.split(this._LABEL_KEY_VALUE_SPLITTER,-1);if(2===u.length){var c=X(u,2),s=c[0],l=c[1];if(s=s.trim(),l=l.trim().split(/^"|"$/).join(""),!this._isValidAndNotEmpty(s))throw new Error("Attribute key "+this._ERROR_MESSAGE_INVALID_CHARS);if(!this._isValid(l))throw new Error("Attribute value "+this._ERROR_MESSAGE_INVALID_VALUE);n[s]=decodeURIComponent(l)}}}catch(e){t={error:e}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}return n},e.prototype._isValid=function(e){return e.length<=this._MAX_LENGTH&&this._isBaggageOctetString(e)},e.prototype._isBaggageOctetString=function(e){for(var t=0;t126)return!1}return!0},e.prototype._isValidAndNotEmpty=function(e){return e.length>0&&this._isValid(e)},e}(),B=new D,G=new(function(){function e(){}return e.prototype.detect=function(e){return Promise.resolve(B.detect(e))},e}());const k=require("os");var V;switch(r(932).platform){case"darwin":V=r(1568).D;break;case"linux":V=r(7917).D;break;case"freebsd":V=r(454).D;break;case"win32":V=r(7349).D;break;default:V=r(2408).D}var H=function(){function e(){}return e.prototype.detect=function(e){var t,r=((t={})["host.name"]=(0,k.hostname)(),t["host.arch"]=function(e){switch(e){case"arm":return"arm32";case"ppc":return"ppc32";case"x64":return"amd64";default:return e}}((0,k.arch)()),t);return new d(r,this._getAsyncAttributes())},e.prototype._getAsyncAttributes=function(){return V().then(function(e){var t={};return e&&(t["host.id"]=e),t})},e}(),F=new H,j=new(function(){function e(){}return e.prototype.detect=function(e){return Promise.resolve(F.detect(e))},e}()),K=function(){function e(){}return e.prototype.detect=function(e){var t,r=((t={})["os.type"]=function(e){switch(e){case"sunos":return"solaris";case"win32":return"windows";default:return e}}((0,k.platform)()),t["os.version"]=(0,k.release)(),t);return new d(r)},e}(),Y=new K,q=new(function(){function e(){}return e.prototype.detect=function(e){return Promise.resolve(Y.detect(e))},e}()),Z=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},W=function(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o1&&(r["process.command"]=process.argv[1]);try{var n=k.userInfo();r["process.owner"]=n.username}catch(e){i.s.debug("error obtaining process owner: "+e)}return new d(r)},e}(),$=new J,Q=new(function(){function e(){}return e.prototype.detect=function(e){return Promise.resolve($.detect(e))},e}());const z=require("crypto");var ee=function(){function e(){}return e.prototype.detect=function(e){var t,r=((t={})["service.instance.id"]=(0,z.randomUUID)(),t);return new d(r)},e}(),te=new ee,re=function(e,t,r,n){return new(r||(r=Promise))(function(o,i){function a(e){try{c(n.next(e))}catch(e){i(e)}}function u(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(a,u)}c((n=n.apply(e,t||[])).next())})},ne=function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]0){var t=JSON.stringify(e.attributes,null,4);i.s.verbose(t)}})};module.exports=n})(); \ No newline at end of file diff --git a/packages/node_modules/dc-polyfill.js b/packages/node_modules/dc-polyfill.js deleted file mode 100644 index f2d245c1e8f..00000000000 --- a/packages/node_modules/dc-polyfill.js +++ /dev/null @@ -1 +0,0 @@ -(()=>{var t={730:(t,e,r)=>{const s=function(){},{ObjectDefineProperty:n,ObjectGetOwnPropertyDescriptor:o}=r(6884);t.exports=function(t){const e=t.channel,r=new WeakSet,c={...t};return c.channel=function(){const t=e.apply(this,arguments);return r.has(t)||(e(arguments[0]).subscribe(s),r.add(t),o(t,"hasSubscribers")||n(t,"hasSubscribers",{get:function(){const e=t._subscribers;return e.length>1||(t._stores.size>0||!(e.length<1)&&e[0]!==s)}})),t},c}},1247:(t,e,r)=>{const s=r(6427);r(6884);let n=s.hasDiagnosticsChannel()?r(1637):r(4285);s.hasGarbageCollectionBug()&&(n=r(730)(n)),s.hasTopSubscribeUnsubscribe()||(n=r(1353)(n)),s.hasChUnsubscribeReturn()||(n=r(8075)(n)),s.hasChannelStoreMethods()||(n=r(3671)(n)),s.hasTracingChannel()||(n=r(8879)(n)),s.hasSyncUnsubscribeBug()&&(n=r(5591)(n)),s.hasTracingChannelHasSubscribers()||(n=r(3308)(n)),t.exports=n},1353:t=>{t.exports=function(t){const e={...t};return e.subscribe=(t,r)=>e.channel(t).subscribe(r),e.unsubscribe=(t,r)=>e.channel(t).unsubscribe(r),e}},1637:t=>{"use strict";t.exports=require("diagnostics_channel")},1857:(t,e,r)=>{const s=r(9023),{ObjectDefineProperties:n}=r(6884);class o extends TypeError{constructor(t,e){if(super(),null==e)t+=`. Received ${e}`;else if("function"==typeof e&&e.name)t+=`. Received function ${e.name}`;else if("object"==typeof e)e.constructor&&e.constructor.name?t+=`. Received an instance of ${e.constructor.name}`:t+=`. Received ${s.inspect(e,{depth:-1})}`;else{let r=s.inspect(e,{colors:!1});r.length>25&&(r=`${r.slice(0,25)}...`),t+=`. Received type ${typeof e} (${r})`}this.code=this.constructor.name,n(this,{message:{value:t,enumerable:!1,writable:!0,configurable:!0},toString:{value(){return`${this.name} [${this.code}]: ${this.message}`},enumerable:!1,writable:!0,configurable:!0}})}}t.exports={ERR_INVALID_ARG_TYPE:o}},3308:(t,e,r)=>{const{ObjectDefineProperty:s,ObjectGetPrototypeOf:n}=r(6884);t.exports=function(t){const e={...t};{const t=e.tracingChannel("dc-polyfill-faux"),r=n(t);s(r,"hasSubscribers",{get:function(){return this.start.hasSubscribers||this.end.hasSubscribers||this.asyncStart.hasSubscribers||this.asyncEnd.hasSubscribers||this.error.hasSubscribers},configurable:!0})}return e}},3671:(t,e,r)=>{const{ReflectApply:s,ObjectDefineProperty:n,ObjectGetOwnPropertyDescriptor:o}=r(6884);function c(t,e,r,s=i){return()=>{let n;try{n=s(e)}catch(t){return process.nextTick(()=>{throw t}),r()}return t.run(n,r)}}function i(t){return t}t.exports=function(t){const e=new WeakSet,r=t.channel,i={...t};return i.channel=function(){const t=r.apply(this,arguments);return e.has(t)||(t._stores=new Map,t.bindStore=function(t,e){this._stores.set(t,e)},t.unbindStore=function(t){return!!this._stores.has(t)&&(this._stores.delete(t),!0)},t.runStores=function(t,e,r,...n){let o=()=>(this.publish(t),s(e,r,n));for(const e of this._stores.entries()){const r=e[0],s=e[1];o=c(r,t,o,s)}return o()},o(t,"hasSubscribers")||n(t,"hasSubscribers",{get:function(){return this.__proto__.hasSubscribers||t._stores.size>0}}),e.add(t)),t},i}},4028:(t,e,r)=>{const{ObjectDefineProperty:s,SymbolFor:n}=r(6884),o=n("dc-polyfill-v1");process[o]||s(process,o,{configurable:!1,enumerable:!1,writable:!1,value:{}}),t.exports=process[o]},4285:(t,e,r)=>{"use strict";const{ObjectSetPrototypeOf:s,ObjectGetPrototypeOf:n}=r(6884),{ERR_INVALID_ARG_TYPE:o}=r(1857),c=r(4028);class i{subscribe(t){if("function"!=typeof t)throw new o('The "subscription" argument must be of type function',t);this._subscribers.push(t)}unsubscribe(t){const e=this._subscribers.indexOf(t);return-1!==e&&(this._subscribers.splice(e,1),this._subscribers.length||s(this,u.prototype),!0)}get hasSubscribers(){return!0}publish(t){for(let e=0;e{throw t})}}}class u{constructor(t){this._subscribers=void 0,this.name=t}static[Symbol.hasInstance](t){const e=n(t);return e===u.prototype||e===i.prototype}subscribe(t){s(this,i.prototype),this._subscribers=[],this.subscribe(t)}unsubscribe(){return!1}get hasSubscribers(){return!1}publish(){}}t.exports={channel:function(t){const e=c[t];if(e)return e;if("string"!=typeof t&&"symbol"!=typeof t)throw new o('The "channel" argument must be one of type string or symbol',t);return c[t]=new u(t)},hasSubscribers:function(t){const e=c[t];return!!e&&e.hasSubscribers},Channel:u,deleteChannel:function(t){return!!c[t]&&(c[t]=null,!0)}}},5591:t=>{t.exports=function(t){const e=new WeakSet,r=t.channel,s={...t};return s.channel=function(){const t=r.apply(this,arguments);if(e.has(t))return t;const s=t.publish;return t.publish=function(){return t._subscribers||(t._subscribers=[]),s.apply(t,arguments)},t},s}},6427:t=>{const[e,r,s]=process.versions.node.split(".").map(Number);function n(){return e>20||e>=20&&r>=6}function o(){return e>=16||15===e&&r>=1||14===e&&r>=17}t.exports.MAJOR=e,t.exports.MINOR=r,t.exports.PATCH=s,t.exports.hasFullSupport=n,t.exports.hasTracingChannel=function(){return e>=20||18===e&&r>=19},t.exports.hasDiagnosticsChannel=o,t.exports.hasTopSubscribeUnsubscribe=function(){return e>=20||16===e&&r>=17||18===e&&r>=7},t.exports.hasGarbageCollectionBug=function(){return o()&&!n()},t.exports.hasChannelStoreMethods=function(){return e>=20||19===e&&r>=9},t.exports.hasChUnsubscribeReturn=function(){return e>=18||14===e&&r>=19||16===e&&r>=14||17===e&&r>=1},t.exports.hasSyncUnsubscribeBug=function(){return 20===e&&r<=5},t.exports.hasTracingChannelHasSubscribers=function(){return e>=22||20==e&&r>=13}},6884:t=>{const e=t=>(...e)=>t.call(...e),r=Reflect.apply,s=Promise.reject.bind(Promise),n=Promise.resolve,o=e(Promise.prototype.then),c=e(Array.prototype.splice),i=e(Array.prototype.at||function(t){if((t=Math.trunc(t)||0)<0&&(t+=this.length),!(t<0||t>=this.length))return this[t]}),u=Object.defineProperty,a=Object.defineProperties,b=Object.getOwnPropertyDescriptor,h=Object.getPrototypeOf,p=Object.setPrototypeOf,l=Symbol.for;t.exports={ReflectApply:r,PromiseReject:s,PromiseResolve:n,PromisePrototypeThen:o,ArrayPrototypeSplice:c,ArrayPrototypeAt:i,ObjectDefineProperty:u,ObjectDefineProperties:a,ObjectGetOwnPropertyDescriptor:b,ObjectGetPrototypeOf:h,ObjectSetPrototypeOf:p,SymbolFor:l}},8075:(t,e,r)=>{const{ObjectGetPrototypeOf:s}=r(6884);t.exports=function(t){const e=new WeakSet,r=t.channel,n={...t};return n.channel=function(){const t=r.apply(this,arguments);return e.has(t)||(t.unsubscribe=function(){delete t.unsubscribe;const e=this._subscribers.length;return s(t).unsubscribe.apply(this,arguments),this._subscribers.length{const{ReflectApply:s,PromiseReject:n,PromiseResolve:o,PromisePrototypeThen:c,ArrayPrototypeSplice:i,ArrayPrototypeAt:u}=r(6884),{ERR_INVALID_ARG_TYPE:a}=r(1857),b=["start","end","asyncStart","asyncEnd","error"];t.exports=function(t){const{channel:e}=t,r={...t};class h{constructor(t){if("string"==typeof t)this.start=e(`tracing:${t}:start`),this.end=e(`tracing:${t}:end`),this.asyncStart=e(`tracing:${t}:asyncStart`),this.asyncEnd=e(`tracing:${t}:asyncEnd`),this.error=e(`tracing:${t}:error`);else{if("object"!=typeof t)throw new a("nameOrChannels",["string","object","Channel"],t);{const{start:e,end:r,asyncStart:s,asyncEnd:n,error:o}=t;this.start=e,this.end=r,this.asyncStart=s,this.asyncEnd=n,this.error=o}}}subscribe(t){for(const e of b)t[e]&&this[e]&&this[e].subscribe(t[e])}unsubscribe(t){let e=!0;for(const r of b)t[r]&&(this[r]&&this[r].unsubscribe(t[r])||(e=!1));return e}traceSync(t,e={},r,...n){const{start:o,end:c,error:i}=this;return o.runStores(e,()=>{try{const o=s(t,r,n);return e.result=o,o}catch(t){throw e.error=t,i.publish(e),t}finally{c.publish(e)}})}tracePromise(t,e={},r,...i){const{start:u,end:a,asyncStart:b,asyncEnd:h,error:p}=this;function l(t){return e.error=t,p.publish(e),b.publish(e),h.publish(e),n(t)}function f(t){return e.result=t,b.publish(e),h.publish(e),t}return u.runStores(e,()=>{try{let e=s(t,r,i);return e instanceof Promise||(e=o(e)),c(e,f,l)}catch(t){throw e.error=t,p.publish(e),t}finally{a.publish(e)}})}traceCallback(t,e=-1,r={},n,...o){const{start:c,end:b,asyncStart:h,asyncEnd:p,error:l}=this,f=u(o,e);if("function"!=typeof f)throw new a("callback",["function"],f);return i(o,e,1,function(t,e){t?(r.error=t,l.publish(r)):r.result=e,h.runStores(r,()=>{try{if(f)return s(f,this,arguments)}finally{p.publish(r)}})}),c.runStores(r,()=>{try{return s(t,n,o)}catch(t){throw r.error=t,l.publish(r),t}finally{b.publish(r)}})}}return r.tracingChannel=function(t){return new h(t)},r}},9023:t=>{"use strict";t.exports=require("util")}},e={},r=function r(s){var n=e[s];if(void 0!==n)return n.exports;var o=e[s]={exports:{}};return t[s](o,o.exports,r),o.exports}(1247);module.exports=r})(); \ No newline at end of file diff --git a/vendor/bun.lock b/vendor/bun.lock index 06ed2a7a3b9..0688f3c485f 100644 --- a/vendor/bun.lock +++ b/vendor/bun.lock @@ -10,7 +10,6 @@ "@opentelemetry/core": ">=1.14.0 <1.31.0", "@opentelemetry/resources": ">=1.0.0 <1.31.0", "crypto-randomuuid": "^1.0.0", - "dc-polyfill": "^0.1.10", "ignore": "^7.0.5", "istanbul-lib-coverage": "^3.2.2", "jest-docblock": "^29.7.0", @@ -167,8 +166,6 @@ "crypto-randomuuid": ["crypto-randomuuid@1.0.0", "", {}, "sha512-/RC5F4l1SCqD/jazwUF6+t34Cd8zTSAGZ7rvvZu1whZUhD2a5MOGKjSGowoGcpj/cbVZk1ZODIooJEQQq3nNAA=="], - "dc-polyfill": ["dc-polyfill@0.1.10", "", {}, "sha512-9iSbB8XZ7aIrhUtWI5ulEOJ+IyUN+axquodHK+bZO4r7HfY/xwmo6I4fYYf+aiDom+WMcN/wnzCz+pKvHDDCug=="], - "detect-newline": ["detect-newline@3.1.0", "", {}, "sha512-TLz+x/vEXm/Y7P7wn1EJFNLxYpUD4TgMosxY6fAVJUnJMbupHBOncxyWUG9OpTaH9EBD7uFI5LfEgmMOc54DsA=="], "electron-to-chromium": ["electron-to-chromium@1.5.259", "", {}, "sha512-I+oLXgpEJzD6Cwuwt1gYjxsDmu/S/Kd41mmLA3O+/uH2pFRO/DvOjUyGozL8j3KeLV6WyZ7ssPwELMsXCcsJAQ=="], diff --git a/vendor/package.json b/vendor/package.json index 2536c547043..76d8e657337 100644 --- a/vendor/package.json +++ b/vendor/package.json @@ -9,7 +9,6 @@ "@opentelemetry/core": ">=1.14.0 <1.31.0", "@opentelemetry/resources": ">=1.0.0 <1.31.0", "crypto-randomuuid": "^1.0.0", - "dc-polyfill": "^0.1.10", "ignore": "^7.0.5", "istanbul-lib-coverage": "^3.2.2", "jest-docblock": "^29.7.0", diff --git a/yarn.lock b/yarn.lock index 233910bd290..1677e93aeb9 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1628,6 +1628,11 @@ data-view-byte-offset@^1.0.1: es-errors "^1.3.0" is-data-view "^1.0.1" +dc-polyfill@^0.1.10: + version "0.1.10" + resolved "https://registry.yarnpkg.com/dc-polyfill/-/dc-polyfill-0.1.10.tgz#6f2ada1a9e449587c363ca98cfb79b443cf74b70" + integrity sha512-9iSbB8XZ7aIrhUtWI5ulEOJ+IyUN+axquodHK+bZO4r7HfY/xwmo6I4fYYf+aiDom+WMcN/wnzCz+pKvHDDCug== + debug@^3.2.7: version "3.2.7" resolved "https://registry.yarnpkg.com/debug/-/debug-3.2.7.tgz#72580b7e9145fb39b6676f9c5e5fb100b934179a" From 4b0b479fcc9cadf86c86422d355e88f2aa3d5a56 Mon Sep 17 00:00:00 2001 From: rochdev Date: Thu, 20 Nov 2025 20:46:53 -0500 Subject: [PATCH 08/95] add missing dev dependency --- package.json | 1 + packages/node_modules/@opentelemetry/core.js | 2 +- packages/node_modules/@opentelemetry/resources.js | 2 +- yarn.lock | 5 +++++ 4 files changed, 8 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 7aa39b0c821..ea1b563fe5c 100644 --- a/package.json +++ b/package.json @@ -175,6 +175,7 @@ "nyc": "^15.1.0", "octokit": "^5.0.3", "proxyquire": "^2.1.3", + "retry": "^0.13.1", "semver": "^7.7.2", "sinon": "^21.0.0", "sinon-chai": "^3.7.0", diff --git a/packages/node_modules/@opentelemetry/core.js b/packages/node_modules/@opentelemetry/core.js index 314e3b23ef0..2fcf4fd71de 100644 --- a/packages/node_modules/@opentelemetry/core.js +++ b/packages/node_modules/@opentelemetry/core.js @@ -1 +1 @@ -(()=>{"use strict";var t={d:(e,r)=>{for(var n in r)t.o(r,n)&&!t.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:r[n]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r:t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}},e={};t.r(e),t.d(e,{AlwaysOffSampler:()=>Ke,AlwaysOnSampler:()=>We,AnchoredClock:()=>z,BindOnceFuture:()=>Lr,CompositePropagator:()=>re,DEFAULT_ATTRIBUTE_COUNT_LIMIT:()=>Vt,DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT:()=>Gt,DEFAULT_ENVIRONMENT:()=>Ht,DEFAULT_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT:()=>Ft,DEFAULT_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT:()=>kt,ExportResultCode:()=>at,ParentBasedSampler:()=>Ye,RPCType:()=>Be,RandomIdGenerator:()=>Pt,SDK_INFO:()=>Nt,TRACE_PARENT_HEADER:()=>we,TRACE_STATE_HEADER:()=>Me,TimeoutError:()=>yr,TraceIdRatioBasedSampler:()=>ze,TraceState:()=>Ne,TracesSamplerValues:()=>Ct,VERSION:()=>bt,W3CBaggagePropagator:()=>Y,W3CTraceContextPropagator:()=>Xe,_globalThis:()=>wt,addHrTimes:()=>Rt,baggageUtils:()=>mr,callWithTimeout:()=>dr,deleteRPCMetadata:()=>Ve,getEnv:()=>$t,getEnvWithoutDefaults:()=>Qt,getRPCMetadata:()=>Fe,getTimeOrigin:()=>_t,globalErrorHandler:()=>it,hexToBase64:()=>qt,hexToBinary:()=>Lt,hrTime:()=>pt,hrTimeDuration:()=>Tt,hrTimeToMicroseconds:()=>gt,hrTimeToMilliseconds:()=>dt,hrTimeToNanoseconds:()=>yt,hrTimeToTimeStamp:()=>Ot,internal:()=>Ar,isAttributeKey:()=>q,isAttributeValue:()=>tt,isTimeInput:()=>ht,isTimeInputHrTime:()=>vt,isTracingSuppressed:()=>V,isUrlIgnored:()=>hr,isWrapped:()=>Rr,loggingErrorHandler:()=>rt,merge:()=>ur,millisToHrTime:()=>st,otperformance:()=>ut,parseEnvironment:()=>Jt,parseTraceParent:()=>De,sanitizeAttributes:()=>Q,setGlobalErrorHandler:()=>ot,setRPCMetadata:()=>Ge,suppressTracing:()=>j,timeInputToHrTime:()=>Et,unrefTimer:()=>te,unsuppressTracing:()=>G,urlMatches:()=>vr});var r="object"==typeof globalThis?globalThis:global,n="1.9.0",o=/^(\d+)\.(\d+)\.(\d+)(-(.+))?$/,i=function(t){var e=new Set([t]),r=new Set,n=t.match(o);if(!n)return function(){return!1};var i=+n[1],a=+n[2],u=+n[3];if(null!=n[4])return function(e){return e===t};function c(t){return r.add(t),!1}function l(t){return e.add(t),!0}return function(t){if(e.has(t))return!0;if(r.has(t))return!1;var n=t.match(o);if(!n)return c(t);var f=+n[1],s=+n[2],_=+n[3];return null!=n[4]||i!==f?c(t):0===i?a===s&&u<=_?l(t):c(t):a<=s?l(t):c(t)}}(n),a=n.split(".")[0],u=Symbol.for("opentelemetry.js.api."+a),c=r;function l(t,e,r,o){var i;void 0===o&&(o=!1);var a=c[u]=null!==(i=c[u])&&void 0!==i?i:{version:n};if(!o&&a[t]){var l=new Error("@opentelemetry/api: Attempted duplicate registration of API: "+t);return r.error(l.stack||l.message),!1}return a.version!==n?(l=new Error("@opentelemetry/api: Registration of version v"+a.version+" for "+t+" does not match previously registered API v"+n),r.error(l.stack||l.message),!1):(a[t]=e,r.debug("@opentelemetry/api: Registered a global for "+t+" v"+n+"."),!0)}function f(t){var e,r,n=null===(e=c[u])||void 0===e?void 0:e.version;if(n&&i(n))return null===(r=c[u])||void 0===r?void 0:r[t]}function s(t,e){e.debug("@opentelemetry/api: Unregistering a global for "+t+" v"+n+".");var r=c[u];r&&delete r[t]}var _=function(){function t(){}return t.prototype.inject=function(t,e){},t.prototype.extract=function(t,e){return t},t.prototype.fields=function(){return[]},t}(),p={get:function(t,e){if(null!=t)return t[e]},keys:function(t){return null==t?[]:Object.keys(t)}},E={set:function(t,e,r){null!=t&&(t[e]=r)}};function T(t){return Symbol.for(t)}var O,y=new function t(e){var r=this;r._currentContext=e?new Map(e):new Map,r.getValue=function(t){return r._currentContext.get(t)},r.setValue=function(e,n){var o=new t(r._currentContext);return o._currentContext.set(e,n),o},r.deleteValue=function(e){var n=new t(r._currentContext);return n._currentContext.delete(e),n}},d=function(){function t(){}return t.prototype.active=function(){return y},t.prototype.with=function(t,e,r){for(var n=[],o=3;o0)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}(n),!1))},t.prototype.bind=function(t,e){return e},t.prototype.enable=function(){return this},t.prototype.disable=function(){return this},t}(),g=function(){function t(t){this._namespace=t.namespace||"DiagComponentLogger"}return t.prototype.debug=function(){for(var t=[],e=0;e0)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}(r),!1))}!function(t){t[t.NONE=0]="NONE",t[t.ERROR=30]="ERROR",t[t.WARN=50]="WARN",t[t.INFO=60]="INFO",t[t.DEBUG=70]="DEBUG",t[t.VERBOSE=80]="VERBOSE",t[t.ALL=9999]="ALL"}(O||(O={}));var h=function(){function t(){function t(t){return function(){for(var e=[],r=0;r0)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}(e),!1))}}var e=this;e.setLogger=function(t,r){var n,o,i;if(void 0===r&&(r={logLevel:O.INFO}),t===e){var a=new Error("Cannot use diag as the logger for itself. Please use a DiagLogger implementation like ConsoleDiagLogger or a custom implementation");return e.error(null!==(n=a.stack)&&void 0!==n?n:a.message),!1}"number"==typeof r&&(r={logLevel:r});var u=f("diag"),c=function(t,e){function r(r,n){var o=e[r];return"function"==typeof o&&t>=n?o.bind(e):function(){}}return tO.ALL&&(t=O.ALL),e=e||{},{error:r("error",O.ERROR),warn:r("warn",O.WARN),info:r("info",O.INFO),debug:r("debug",O.DEBUG),verbose:r("verbose",O.VERBOSE)}}(null!==(o=r.logLevel)&&void 0!==o?o:O.INFO,t);if(u&&!r.suppressOverrideMessage){var s=null!==(i=(new Error).stack)&&void 0!==i?i:"";u.warn("Current logger will be overwritten from "+s),c.warn("Current logger will overwrite one already registered from "+s)}return l("diag",c,e,!0)},e.disable=function(){s("diag",e)},e.createComponentLogger=function(t){return new g(t)},e.verbose=t("verbose"),e.debug=t("debug"),e.info=t("info"),e.warn=t("warn"),e.error=t("error")}return t.instance=function(){return this._instance||(this._instance=new t),this._instance},t}(),R="context",S=new d,L=function(){function t(){}return t.getInstance=function(){return this._instance||(this._instance=new t),this._instance},t.prototype.setGlobalContextManager=function(t){return l(R,t,h.instance())},t.prototype.active=function(){return this._getContextManager().active()},t.prototype.with=function(t,e,r){for(var n,o=[],i=3;i0)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}(o),!1))},t.prototype.bind=function(t,e){return this._getContextManager().bind(t,e)},t.prototype._getContextManager=function(){return f(R)||S},t.prototype.disable=function(){this._getContextManager().disable(),s(R,h.instance())},t}(),P=T("OpenTelemetry Baggage Key");function m(t){return t.getValue(P)||void 0}function A(){return m(L.getInstance().active())}function I(t,e){return t.setValue(P,e)}function C(t){return t.deleteValue(P)}var b=function(){function t(t){this._entries=t?new Map(t):new Map}return t.prototype.getEntry=function(t){var e=this._entries.get(t);if(e)return Object.assign({},e)},t.prototype.getAllEntries=function(){return Array.from(this._entries.entries()).map(function(t){var e=function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}(t,2);return[e[0],e[1]]})},t.prototype.setEntry=function(e,r){var n=new t(this._entries);return n._entries.set(e,r),n},t.prototype.removeEntry=function(e){var r=new t(this._entries);return r._entries.delete(e),r},t.prototype.removeEntries=function(){for(var e,r,n=[],o=0;o=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}(n),u=a.next();!u.done;u=a.next()){var c=u.value;i._entries.delete(c)}}catch(t){e={error:t}}finally{try{u&&!u.done&&(r=a.return)&&r.call(a)}finally{if(e)throw e.error}}return i},t.prototype.clear=function(){return new t},t}(),N=Symbol("BaggageEntryMetadata"),w=h.instance();function M(t){return void 0===t&&(t={}),new b(new Map(Object.entries(t)))}var U="propagation",D=new _,B=function(){function t(){this.createBaggage=M,this.getBaggage=m,this.getActiveBaggage=A,this.setBaggage=I,this.deleteBaggage=C}return t.getInstance=function(){return this._instance||(this._instance=new t),this._instance},t.prototype.setGlobalPropagator=function(t){return l(U,t,h.instance())},t.prototype.inject=function(t,e,r){return void 0===r&&(r=E),this._getGlobalPropagator().inject(t,e,r)},t.prototype.extract=function(t,e,r){return void 0===r&&(r=p),this._getGlobalPropagator().extract(t,e,r)},t.prototype.fields=function(){return this._getGlobalPropagator().fields()},t.prototype.disable=function(){s(U,h.instance())},t.prototype._getGlobalPropagator=function(){return f(U)||D},t}(),x=B.getInstance(),X=T("OpenTelemetry SDK Context Key SUPPRESS_TRACING");function j(t){return t.setValue(X,!0)}function G(t){return t.deleteValue(X)}function V(t){return!0===t.getValue(X)}var F=",",k="baggage";function H(t){return t.reduce(function(t,e){var r=""+t+(""!==t?F:"")+e;return r.length>8192?t:r},"")}function K(t){return t.getAllEntries().map(function(t){var e=function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}(t,2),r=e[0],n=e[1],o=encodeURIComponent(r)+"="+encodeURIComponent(n.value);return void 0!==n.metadata&&(o+=";"+n.metadata.toString()),o})}function W(t){var e=t.split(";");if(!(e.length<=0)){var r=e.shift();if(r){var n=r.indexOf("=");if(!(n<=0)){var o,i,a=decodeURIComponent(r.substring(0,n).trim()),u=decodeURIComponent(r.substring(n+1).trim());return e.length>0&&("string"!=typeof(i=e.join(";"))&&(w.error("Cannot create baggage metadata from unknown type: "+typeof i),i=""),o={__TYPE__:N,toString:function(){return i}}),{key:a,value:u,metadata:o}}}}}var Y=function(){function t(){}return t.prototype.inject=function(t,e,r){var n=x.getBaggage(t);if(n&&!V(t)){var o=H(K(n).filter(function(t){return t.length<=4096}).slice(0,180));o.length>0&&r.set(e,k,o)}},t.prototype.extract=function(t,e,r){var n=r.get(e,k),o=Array.isArray(n)?n.join(F):n;if(!o)return t;var i={};return 0===o.length?t:(o.split(F).forEach(function(t){var e=W(t);if(e){var r={value:e.value};e.metadata&&(r.metadata=e.metadata),i[e.key]=r}}),0===Object.entries(i).length?t:x.setBaggage(t,x.createBaggage(i)))},t.prototype.fields=function(){return[k]},t}(),z=function(){function t(t,e){this._monotonicClock=e,this._epochMillis=t.now(),this._performanceMillis=e.now()}return t.prototype.now=function(){var t=this._monotonicClock.now()-this._performanceMillis;return this._epochMillis+t},t}(),Z=h.instance(),J=function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},$=function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a};function Q(t){var e,r,n={};if("object"!=typeof t||null==t)return n;try{for(var o=J(Object.entries(t)),i=o.next();!i.done;i=o.next()){var a=$(i.value,2),u=a[0],c=a[1];q(u)?tt(c)?Array.isArray(c)?n[u]=c.slice():n[u]=c:Z.warn("Invalid attribute value set for key: "+u):Z.warn("Invalid attribute key: "+u)}}catch(t){e={error:t}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(e)throw e.error}}return n}function q(t){return"string"==typeof t&&t.length>0}function tt(t){return null==t||(Array.isArray(t)?function(t){var e,r,n;try{for(var o=J(t),i=o.next();!i.done;i=o.next()){var a=i.value;if(null!=a){if(!n){if(et(a)){n=typeof a;continue}return!1}if(typeof a!==n)return!1}}}catch(t){e={error:t}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(e)throw e.error}}return!0}(t):et(t))}function et(t){switch(typeof t){case"number":case"boolean":case"string":return!0}return!1}function rt(){return function(t){Z.error(function(t){return"string"==typeof t?t:JSON.stringify(function(t){for(var e={},r=t;null!==r;)Object.getOwnPropertyNames(r).forEach(function(t){if(!e[t]){var n=r[t];n&&(e[t]=String(n))}}),r=Object.getPrototypeOf(r);return e}(t))}(t))}}var nt=rt();function ot(t){nt=t}function it(t){try{nt(t)}catch(t){}}var at,ut=require("perf_hooks").performance,ct=9,lt=Math.pow(10,6),ft=Math.pow(10,ct);function st(t){var e=t/1e3;return[Math.trunc(e),Math.round(t%1e3*lt)]}function _t(){var t=ut.timeOrigin;if("number"!=typeof t){var e=ut;t=e.timing&&e.timing.fetchStart}return t}function pt(t){return Rt(st(_t()),st("number"==typeof t?t:ut.now()))}function Et(t){if(vt(t))return t;if("number"==typeof t)return t<_t()?pt(t):st(t);if(t instanceof Date)return st(t.getTime());throw TypeError("Invalid input type")}function Tt(t,e){var r=e[0]-t[0],n=e[1]-t[1];return n<0&&(r-=1,n+=ft),[r,n]}function Ot(t){var e=ct,r=""+"0".repeat(e)+t[1]+"Z",n=r.substring(r.length-e-1);return new Date(1e3*t[0]).toISOString().replace("000Z",n)}function yt(t){return t[0]*ft+t[1]}function dt(t){return 1e3*t[0]+t[1]/1e6}function gt(t){return 1e6*t[0]+t[1]/1e3}function vt(t){return Array.isArray(t)&&2===t.length&&"number"==typeof t[0]&&"number"==typeof t[1]}function ht(t){return vt(t)||"number"==typeof t||t instanceof Date}function Rt(t,e){var r=[t[0]+e[0],t[1]+e[1]];return r[1]>=ft&&(r[1]-=ft,r[0]+=1),r}function St(t){return t>=48&&t<=57?t-48:t>=97&&t<=102?t-87:t-55}function Lt(t){for(var e=new Uint8Array(t.length/2),r=0,n=0;n>>0,4*e);for(e=0;e0);e++)e===t-1&&(mt[t-1]=1);return mt.toString("hex",0,t)}}var It,Ct,bt="1.30.1",Nt=((It={})["telemetry.sdk.name"]="opentelemetry",It["process.runtime.name"]="node",It["telemetry.sdk.language"]="nodejs",It["telemetry.sdk.version"]=bt,It),wt="object"==typeof globalThis?globalThis:global;!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"}(Ct||(Ct={}));var Mt=",",Ut=["OTEL_SDK_DISABLED"];function Dt(t){return Ut.indexOf(t)>-1}var Bt=["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 xt(t){return Bt.indexOf(t)>-1}var Xt=["OTEL_NO_PATCH_MODULES","OTEL_PROPAGATORS","OTEL_SEMCONV_STABILITY_OPT_IN"];function jt(t){return Xt.indexOf(t)>-1}var Gt=1/0,Vt=128,Ft=128,kt=128,Ht={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:O.INFO,OTEL_NO_PATCH_MODULES:[],OTEL_PROPAGATORS:["tracecontext","baggage"],OTEL_RESOURCE_ATTRIBUTES:"",OTEL_SERVICE_NAME:"",OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT:Gt,OTEL_ATTRIBUTE_COUNT_LIMIT:Vt,OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT:Gt,OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT:Vt,OTEL_LOGRECORD_ATTRIBUTE_VALUE_LENGTH_LIMIT:Gt,OTEL_LOGRECORD_ATTRIBUTE_COUNT_LIMIT:Vt,OTEL_SPAN_EVENT_COUNT_LIMIT:128,OTEL_SPAN_LINK_COUNT_LIMIT:128,OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT:Ft,OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT:kt,OTEL_TRACES_EXPORTER:"",OTEL_TRACES_SAMPLER:Ct.ParentBasedAlwaysOn,OTEL_TRACES_SAMPLER_ARG:"",OTEL_LOGS_EXPORTER:"",OTEL_EXPORTER_OTLP_INSECURE:"",OTEL_EXPORTER_OTLP_TRACES_INSECURE:"",OTEL_EXPORTER_OTLP_METRICS_INSECURE:"",OTEL_EXPORTER_OTLP_LOGS_INSECURE:"",OTEL_EXPORTER_OTLP_CERTIFICATE:"",OTEL_EXPORTER_OTLP_TRACES_CERTIFICATE:"",OTEL_EXPORTER_OTLP_METRICS_CERTIFICATE:"",OTEL_EXPORTER_OTLP_LOGS_CERTIFICATE:"",OTEL_EXPORTER_OTLP_COMPRESSION:"",OTEL_EXPORTER_OTLP_TRACES_COMPRESSION:"",OTEL_EXPORTER_OTLP_METRICS_COMPRESSION:"",OTEL_EXPORTER_OTLP_LOGS_COMPRESSION:"",OTEL_EXPORTER_OTLP_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_TRACES_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_METRICS_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_LOGS_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_TRACES_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_METRICS_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_LOGS_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_TRACES_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_METRICS_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_LOGS_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE:"cumulative",OTEL_SEMCONV_STABILITY_OPT_IN:[]};function Kt(t,e,r){if(void 0!==r[t]){var n=String(r[t]);e[t]="true"===n.toLowerCase()}}function Wt(t,e,r,n,o){if(void 0===n&&(n=-1/0),void 0===o&&(o=1/0),void 0!==r[t]){var i=Number(r[t]);isNaN(i)||(e[t]=io?o:i)}}function Yt(t,e,r,n){void 0===n&&(n=Mt);var o=r[t];"string"==typeof o&&(e[t]=o.split(n).map(function(t){return t.trim()}))}var zt={ALL:O.ALL,VERBOSE:O.VERBOSE,DEBUG:O.DEBUG,INFO:O.INFO,WARN:O.WARN,ERROR:O.ERROR,NONE:O.NONE};function Zt(t,e,r){var n=r[t];if("string"==typeof n){var o=zt[n.toUpperCase()];null!=o&&(e[t]=o)}}function Jt(t){var e={};for(var r in Ht){var n=r;if("OTEL_LOG_LEVEL"===n)Zt(n,e,t);else if(Dt(n))Kt(n,e,t);else if(xt(n))Wt(n,e,t);else if(jt(n))Yt(n,e,t);else{var o=t[n];null!=o&&(e[n]=String(o))}}return e}function $t(){var t=Jt(process.env);return Object.assign({},Ht,t)}function Qt(){return Jt(process.env)}function qt(t){return Buffer.from(Lt(t)).toString("base64")}function te(t){t.unref()}var ee,re=function(){function t(t){var e;void 0===t&&(t={}),this._propagators=null!==(e=t.propagators)&&void 0!==e?e:[],this._fields=Array.from(new Set(this._propagators.map(function(t){return"function"==typeof t.fields?t.fields():[]}).reduce(function(t,e){return t.concat(e)},[])))}return t.prototype.inject=function(t,e,r){var n,o;try{for(var i=function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}(this._propagators),a=i.next();!a.done;a=i.next()){var u=a.value;try{u.inject(t,e,r)}catch(t){Z.warn("Failed to inject with "+u.constructor.name+". Err: "+t.message)}}}catch(t){n={error:t}}finally{try{a&&!a.done&&(o=i.return)&&o.call(i)}finally{if(n)throw n.error}}},t.prototype.extract=function(t,e,r){return this._propagators.reduce(function(t,n){try{return n.extract(t,e,r)}catch(t){Z.warn("Failed to extract with "+n.constructor.name+". Err: "+t.message)}return t},t)},t.prototype.fields=function(){return this._fields.slice()},t}();!function(t){t[t.NONE=0]="NONE",t[t.SAMPLED=1]="SAMPLED"}(ee||(ee={}));var ne="0000000000000000",oe="00000000000000000000000000000000",ie={traceId:oe,spanId:ne,traceFlags:ee.NONE},ae=function(){function t(t){void 0===t&&(t=ie),this._spanContext=t}return t.prototype.spanContext=function(){return this._spanContext},t.prototype.setAttribute=function(t,e){return this},t.prototype.setAttributes=function(t){return this},t.prototype.addEvent=function(t,e){return this},t.prototype.addLink=function(t){return this},t.prototype.addLinks=function(t){return this},t.prototype.setStatus=function(t){return this},t.prototype.updateName=function(t){return this},t.prototype.end=function(t){},t.prototype.isRecording=function(){return!1},t.prototype.recordException=function(t,e){},t}(),ue=T("OpenTelemetry Context Key SPAN");function ce(t){return t.getValue(ue)||void 0}function le(){return ce(L.getInstance().active())}function fe(t,e){return t.setValue(ue,e)}function se(t){return t.deleteValue(ue)}function _e(t,e){return fe(t,new ae(e))}function pe(t){var e;return null===(e=ce(t))||void 0===e?void 0:e.spanContext()}var Ee=/^([0-9a-f]{32})$/i,Te=/^[0-9a-f]{16}$/i;function Oe(t){return Ee.test(t)&&t!==oe}function ye(t){return Oe(t.traceId)&&(e=t.spanId,Te.test(e)&&e!==ne);var e}function de(t){return new ae(t)}var ge=L.getInstance(),ve=function(){function t(){}return t.prototype.startSpan=function(t,e,r){if(void 0===r&&(r=ge.active()),Boolean(null==e?void 0:e.root))return new ae;var n,o=r&&pe(r);return"object"==typeof(n=o)&&"string"==typeof n.spanId&&"string"==typeof n.traceId&&"number"==typeof n.traceFlags&&ye(o)?new ae(o):new ae},t.prototype.startActiveSpan=function(t,e,r,n){var o,i,a;if(!(arguments.length<2)){2===arguments.length?a=e:3===arguments.length?(o=e,a=r):(o=e,i=r,a=n);var u=null!=i?i:ge.active(),c=this.startSpan(t,o,u),l=fe(u,c);return ge.with(l,a,void 0,c)}},t}(),he=new ve,Re=function(){function t(t,e,r,n){this._provider=t,this.name=e,this.version=r,this.options=n}return t.prototype.startSpan=function(t,e,r){return this._getTracer().startSpan(t,e,r)},t.prototype.startActiveSpan=function(t,e,r,n){var o=this._getTracer();return Reflect.apply(o.startActiveSpan,o,arguments)},t.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):he},t}(),Se=new(function(){function t(){}return t.prototype.getTracer=function(t,e,r){return new ve},t}()),Le=function(){function t(){}return t.prototype.getTracer=function(t,e,r){var n;return null!==(n=this.getDelegateTracer(t,e,r))&&void 0!==n?n:new Re(this,t,e,r)},t.prototype.getDelegate=function(){var t;return null!==(t=this._delegate)&&void 0!==t?t:Se},t.prototype.setDelegate=function(t){this._delegate=t},t.prototype.getDelegateTracer=function(t,e,r){var n;return null===(n=this._delegate)||void 0===n?void 0:n.getTracer(t,e,r)},t}(),Pe="trace",me=function(){function t(){this._proxyTracerProvider=new Le,this.wrapSpanContext=de,this.isSpanContextValid=ye,this.deleteSpan=se,this.getSpan=ce,this.getActiveSpan=le,this.getSpanContext=pe,this.setSpan=fe,this.setSpanContext=_e}return t.getInstance=function(){return this._instance||(this._instance=new t),this._instance},t.prototype.setGlobalTracerProvider=function(t){var e=l(Pe,this._proxyTracerProvider,h.instance());return e&&this._proxyTracerProvider.setDelegate(t),e},t.prototype.getTracerProvider=function(){return f(Pe)||this._proxyTracerProvider},t.prototype.getTracer=function(t,e){return this.getTracerProvider().getTracer(t,e)},t.prototype.disable=function(){s(Pe,h.instance()),this._proxyTracerProvider=new Le},t}().getInstance(),Ae="[_0-9a-z-*/]",Ie=new RegExp("^(?:[a-z]"+Ae+"{0,255}|[a-z0-9]"+Ae+"{0,240}@[a-z]"+Ae+"{0,13})$"),Ce=/^[ -~]{0,255}[!-~]$/,be=/,|=/,Ne=function(){function t(t){this._internalState=new Map,t&&this._parse(t)}return t.prototype.set=function(t,e){var r=this._clone();return r._internalState.has(t)&&r._internalState.delete(t),r._internalState.set(t,e),r},t.prototype.unset=function(t){var e=this._clone();return e._internalState.delete(t),e},t.prototype.get=function(t){return this._internalState.get(t)},t.prototype.serialize=function(){var t=this;return this._keys().reduce(function(e,r){return e.push(r+"="+t.get(r)),e},[]).join(",")},t.prototype._parse=function(t){t.length>512||(this._internalState=t.split(",").reverse().reduce(function(t,e){var r=e.trim(),n=r.indexOf("=");if(-1!==n){var o=r.slice(0,n),i=r.slice(n+1,e.length);(function(t){return Ie.test(t)})(o)&&function(t){return Ce.test(t)&&!be.test(t)}(i)&&t.set(o,i)}return t},new Map),this._internalState.size>32&&(this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,32))))},t.prototype._keys=function(){return Array.from(this._internalState.keys()).reverse()},t.prototype._clone=function(){var e=new t;return e._internalState=new Map(this._internalState),e},t}(),we="traceparent",Me="tracestate",Ue=new RegExp("^\\s?((?!ff)[\\da-f]{2})-((?![0]{32})[\\da-f]{32})-((?![0]{16})[\\da-f]{16})-([\\da-f]{2})(-.*)?\\s?$");function De(t){var e=Ue.exec(t);return e?"00"===e[1]&&e[5]?null:{traceId:e[2],spanId:e[3],traceFlags:parseInt(e[4],16)}:null}var Be,xe,Xe=function(){function t(){}return t.prototype.inject=function(t,e,r){var n=me.getSpanContext(t);if(n&&!V(t)&&ye(n)){var o="00-"+n.traceId+"-"+n.spanId+"-0"+Number(n.traceFlags||ee.NONE).toString(16);r.set(e,we,o),n.traceState&&r.set(e,Me,n.traceState.serialize())}},t.prototype.extract=function(t,e,r){var n=r.get(e,we);if(!n)return t;var o=Array.isArray(n)?n[0]:n;if("string"!=typeof o)return t;var i=De(o);if(!i)return t;i.isRemote=!0;var a=r.get(e,Me);if(a){var u=Array.isArray(a)?a.join(","):a;i.traceState=new Ne("string"==typeof u?u:void 0)}return me.setSpanContext(t,i)},t.prototype.fields=function(){return[we,Me]},t}(),je=T("OpenTelemetry SDK Context Key RPC_METADATA");function Ge(t,e){return t.setValue(je,e)}function Ve(t){return t.deleteValue(je)}function Fe(t){return t.getValue(je)}!function(t){t.HTTP="http"}(Be||(Be={})),function(t){t[t.NOT_RECORD=0]="NOT_RECORD",t[t.RECORD=1]="RECORD",t[t.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"}(xe||(xe={}));var ke,He,Ke=function(){function t(){}return t.prototype.shouldSample=function(){return{decision:xe.NOT_RECORD}},t.prototype.toString=function(){return"AlwaysOffSampler"},t}(),We=function(){function t(){}return t.prototype.shouldSample=function(){return{decision:xe.RECORD_AND_SAMPLED}},t.prototype.toString=function(){return"AlwaysOnSampler"},t}(),Ye=function(){function t(t){var e,r,n,o;this._root=t.root,this._root||(it(new Error("ParentBasedSampler must have a root sampler configured")),this._root=new We),this._remoteParentSampled=null!==(e=t.remoteParentSampled)&&void 0!==e?e:new We,this._remoteParentNotSampled=null!==(r=t.remoteParentNotSampled)&&void 0!==r?r:new Ke,this._localParentSampled=null!==(n=t.localParentSampled)&&void 0!==n?n:new We,this._localParentNotSampled=null!==(o=t.localParentNotSampled)&&void 0!==o?o:new Ke}return t.prototype.shouldSample=function(t,e,r,n,o,i){var a=me.getSpanContext(t);return a&&ye(a)?a.isRemote?a.traceFlags&ee.SAMPLED?this._remoteParentSampled.shouldSample(t,e,r,n,o,i):this._remoteParentNotSampled.shouldSample(t,e,r,n,o,i):a.traceFlags&ee.SAMPLED?this._localParentSampled.shouldSample(t,e,r,n,o,i):this._localParentNotSampled.shouldSample(t,e,r,n,o,i):this._root.shouldSample(t,e,r,n,o,i)},t.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()+"}"},t}(),ze=function(){function t(t){void 0===t&&(t=0),this._ratio=t,this._ratio=this._normalize(t),this._upperBound=Math.floor(4294967295*this._ratio)}return t.prototype.shouldSample=function(t,e){return{decision:Oe(e)&&this._accumulate(e)=1?1:t<=0?0:t},t.prototype._accumulate=function(t){for(var e=0,r=0;r>>0}return e},t}(),Ze="[object Object]",Je="[object Null]",$e="[object Undefined]",Qe=Function.prototype.toString,qe=Qe.call(Object),tr=(ke=Object.getPrototypeOf,He=Object,function(t){return ke(He(t))}),er=Object.prototype,rr=er.hasOwnProperty,nr=Symbol?Symbol.toStringTag:void 0,or=er.toString;function ir(t){if(!function(t){return null!=t&&"object"==typeof t}(t)||function(t){return null==t?void 0===t?$e:Je:nr&&nr in Object(t)?function(t){var e=rr.call(t,nr),r=t[nr],n=!1;try{t[nr]=void 0,n=!0}catch(t){}var o=or.call(t);return n&&(e?t[nr]=r:delete t[nr]),o}(t):function(t){return or.call(t)}(t)}(t)!==Ze)return!1;var e=tr(t);if(null===e)return!0;var r=rr.call(e,"constructor")&&e.constructor;return"function"==typeof r&&r instanceof r&&Qe.call(r)===qe}var ar=20;function ur(){for(var t=[],e=0;e0;)r=lr(r,t.shift(),0,n);return r}function cr(t){return sr(t)?t.slice():t}function lr(t,e,r,n){var o;if(void 0===r&&(r=0),!(r>ar)){if(r++,Er(t)||Er(e)||_r(e))o=cr(e);else if(sr(t)){if(o=t.slice(),sr(e))for(var i=0,a=e.length;i=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};function vr(t,e){return"string"==typeof e?t===e:!!t.match(e)}function hr(t,e){var r,n;if(!e)return!1;try{for(var o=gr(e),i=o.next();!i.done;i=o.next())if(vr(t,i.value))return!0}catch(t){r={error:t}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return!1}function Rr(t){return"function"==typeof t&&"function"==typeof t.__original&&"function"==typeof t.__unwrap&&!0===t.__wrapped}var Sr=function(){function t(){var t=this;this._promise=new Promise(function(e,r){t._resolve=e,t._reject=r})}return Object.defineProperty(t.prototype,"promise",{get:function(){return this._promise},enumerable:!1,configurable:!0}),t.prototype.resolve=function(t){this._resolve(t)},t.prototype.reject=function(t){this._reject(t)},t}(),Lr=function(){function t(t,e){this._callback=t,this._that=e,this._isCalled=!1,this._deferred=new Sr}return Object.defineProperty(t.prototype,"isCalled",{get:function(){return this._isCalled},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"promise",{get:function(){return this._deferred.promise},enumerable:!1,configurable:!0}),t.prototype.call=function(){for(var t,e=this,r=[],n=0;n0)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}(r),!1))).then(function(t){return e._deferred.resolve(t)},function(t){return e._deferred.reject(t)})}catch(t){this._deferred.reject(t)}}return this._deferred.promise},t}(),Pr=L.getInstance(),mr={getKeyPairs:K,serializeKeyPairs:H,parseKeyPairsIntoRecord:function(t){return"string"!=typeof t||0===t.length?{}:t.split(F).map(function(t){return W(t)}).filter(function(t){return void 0!==t&&t.value.length>0}).reduce(function(t,e){return t[e.key]=e.value,t},{})},parsePairKeyValue:W},Ar={_export:function(t,e){return new Promise(function(r){Pr.with(j(Pr.active()),function(){t.export(e,function(t){r(t)})})})}};module.exports=e})(); \ No newline at end of file +(()=>{"use strict";var t={d:(e,r)=>{for(var n in r)t.o(r,n)&&!t.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:r[n]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r:t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}},e={};t.r(e),t.d(e,{AlwaysOffSampler:()=>Ke,AlwaysOnSampler:()=>We,AnchoredClock:()=>z,BindOnceFuture:()=>Lr,CompositePropagator:()=>re,DEFAULT_ATTRIBUTE_COUNT_LIMIT:()=>Ut,DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT:()=>Mt,DEFAULT_ENVIRONMENT:()=>xt,DEFAULT_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT:()=>Dt,DEFAULT_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT:()=>Bt,ExportResultCode:()=>at,ParentBasedSampler:()=>Ye,RPCType:()=>Be,RandomIdGenerator:()=>zt,SDK_INFO:()=>qt,TRACE_PARENT_HEADER:()=>we,TRACE_STATE_HEADER:()=>Me,TimeoutError:()=>yr,TraceIdRatioBasedSampler:()=>ze,TraceState:()=>Ne,TracesSamplerValues:()=>ut,VERSION:()=>Qt,W3CBaggagePropagator:()=>Y,W3CTraceContextPropagator:()=>Xe,_globalThis:()=>Wt,addHrTimes:()=>St,baggageUtils:()=>mr,callWithTimeout:()=>dr,deleteRPCMetadata:()=>Ve,getEnv:()=>Ht,getEnvWithoutDefaults:()=>Kt,getRPCMetadata:()=>Fe,getTimeOrigin:()=>pt,globalErrorHandler:()=>it,hexToBase64:()=>Yt,hexToBinary:()=>Pt,hrTime:()=>Et,hrTimeDuration:()=>Ot,hrTimeToMicroseconds:()=>vt,hrTimeToMilliseconds:()=>gt,hrTimeToNanoseconds:()=>dt,hrTimeToTimeStamp:()=>yt,internal:()=>Ar,isAttributeKey:()=>q,isAttributeValue:()=>tt,isTimeInput:()=>Rt,isTimeInputHrTime:()=>ht,isTracingSuppressed:()=>V,isUrlIgnored:()=>hr,isWrapped:()=>Rr,loggingErrorHandler:()=>rt,merge:()=>ur,millisToHrTime:()=>_t,otperformance:()=>ct,parseEnvironment:()=>kt,parseTraceParent:()=>De,sanitizeAttributes:()=>Q,setGlobalErrorHandler:()=>ot,setRPCMetadata:()=>Ge,suppressTracing:()=>j,timeInputToHrTime:()=>Tt,unrefTimer:()=>te,unsuppressTracing:()=>G,urlMatches:()=>vr});var r="object"==typeof globalThis?globalThis:global,n="1.9.0",o=/^(\d+)\.(\d+)\.(\d+)(-(.+))?$/,i=function(t){var e=new Set([t]),r=new Set,n=t.match(o);if(!n)return function(){return!1};var i=+n[1],a=+n[2],u=+n[3];if(null!=n[4])return function(e){return e===t};function c(t){return r.add(t),!1}function l(t){return e.add(t),!0}return function(t){if(e.has(t))return!0;if(r.has(t))return!1;var n=t.match(o);if(!n)return c(t);var f=+n[1],s=+n[2],_=+n[3];return null!=n[4]||i!==f?c(t):0===i?a===s&&u<=_?l(t):c(t):a<=s?l(t):c(t)}}(n),a=n.split(".")[0],u=Symbol.for("opentelemetry.js.api."+a),c=r;function l(t,e,r,o){var i;void 0===o&&(o=!1);var a=c[u]=null!==(i=c[u])&&void 0!==i?i:{version:n};if(!o&&a[t]){var l=new Error("@opentelemetry/api: Attempted duplicate registration of API: "+t);return r.error(l.stack||l.message),!1}return a.version!==n?(l=new Error("@opentelemetry/api: Registration of version v"+a.version+" for "+t+" does not match previously registered API v"+n),r.error(l.stack||l.message),!1):(a[t]=e,r.debug("@opentelemetry/api: Registered a global for "+t+" v"+n+"."),!0)}function f(t){var e,r,n=null===(e=c[u])||void 0===e?void 0:e.version;if(n&&i(n))return null===(r=c[u])||void 0===r?void 0:r[t]}function s(t,e){e.debug("@opentelemetry/api: Unregistering a global for "+t+" v"+n+".");var r=c[u];r&&delete r[t]}var _=function(){function t(){}return t.prototype.inject=function(t,e){},t.prototype.extract=function(t,e){return t},t.prototype.fields=function(){return[]},t}(),p={get:function(t,e){if(null!=t)return t[e]},keys:function(t){return null==t?[]:Object.keys(t)}},E={set:function(t,e,r){null!=t&&(t[e]=r)}};function T(t){return Symbol.for(t)}var O,y=new function t(e){var r=this;r._currentContext=e?new Map(e):new Map,r.getValue=function(t){return r._currentContext.get(t)},r.setValue=function(e,n){var o=new t(r._currentContext);return o._currentContext.set(e,n),o},r.deleteValue=function(e){var n=new t(r._currentContext);return n._currentContext.delete(e),n}},d=function(){function t(){}return t.prototype.active=function(){return y},t.prototype.with=function(t,e,r){for(var n=[],o=3;o0)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}(n),!1))},t.prototype.bind=function(t,e){return e},t.prototype.enable=function(){return this},t.prototype.disable=function(){return this},t}(),g=function(){function t(t){this._namespace=t.namespace||"DiagComponentLogger"}return t.prototype.debug=function(){for(var t=[],e=0;e0)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}(r),!1))}!function(t){t[t.NONE=0]="NONE",t[t.ERROR=30]="ERROR",t[t.WARN=50]="WARN",t[t.INFO=60]="INFO",t[t.DEBUG=70]="DEBUG",t[t.VERBOSE=80]="VERBOSE",t[t.ALL=9999]="ALL"}(O||(O={}));var h=function(){function t(){function t(t){return function(){for(var e=[],r=0;r0)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}(e),!1))}}var e=this;e.setLogger=function(t,r){var n,o,i;if(void 0===r&&(r={logLevel:O.INFO}),t===e){var a=new Error("Cannot use diag as the logger for itself. Please use a DiagLogger implementation like ConsoleDiagLogger or a custom implementation");return e.error(null!==(n=a.stack)&&void 0!==n?n:a.message),!1}"number"==typeof r&&(r={logLevel:r});var u=f("diag"),c=function(t,e){function r(r,n){var o=e[r];return"function"==typeof o&&t>=n?o.bind(e):function(){}}return tO.ALL&&(t=O.ALL),e=e||{},{error:r("error",O.ERROR),warn:r("warn",O.WARN),info:r("info",O.INFO),debug:r("debug",O.DEBUG),verbose:r("verbose",O.VERBOSE)}}(null!==(o=r.logLevel)&&void 0!==o?o:O.INFO,t);if(u&&!r.suppressOverrideMessage){var s=null!==(i=(new Error).stack)&&void 0!==i?i:"";u.warn("Current logger will be overwritten from "+s),c.warn("Current logger will overwrite one already registered from "+s)}return l("diag",c,e,!0)},e.disable=function(){s("diag",e)},e.createComponentLogger=function(t){return new g(t)},e.verbose=t("verbose"),e.debug=t("debug"),e.info=t("info"),e.warn=t("warn"),e.error=t("error")}return t.instance=function(){return this._instance||(this._instance=new t),this._instance},t}(),R="context",S=new d,L=function(){function t(){}return t.getInstance=function(){return this._instance||(this._instance=new t),this._instance},t.prototype.setGlobalContextManager=function(t){return l(R,t,h.instance())},t.prototype.active=function(){return this._getContextManager().active()},t.prototype.with=function(t,e,r){for(var n,o=[],i=3;i0)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}(o),!1))},t.prototype.bind=function(t,e){return this._getContextManager().bind(t,e)},t.prototype._getContextManager=function(){return f(R)||S},t.prototype.disable=function(){this._getContextManager().disable(),s(R,h.instance())},t}(),P=T("OpenTelemetry Baggage Key");function m(t){return t.getValue(P)||void 0}function A(){return m(L.getInstance().active())}function I(t,e){return t.setValue(P,e)}function C(t){return t.deleteValue(P)}var b=function(){function t(t){this._entries=t?new Map(t):new Map}return t.prototype.getEntry=function(t){var e=this._entries.get(t);if(e)return Object.assign({},e)},t.prototype.getAllEntries=function(){return Array.from(this._entries.entries()).map(function(t){var e=function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}(t,2);return[e[0],e[1]]})},t.prototype.setEntry=function(e,r){var n=new t(this._entries);return n._entries.set(e,r),n},t.prototype.removeEntry=function(e){var r=new t(this._entries);return r._entries.delete(e),r},t.prototype.removeEntries=function(){for(var e,r,n=[],o=0;o=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}(n),u=a.next();!u.done;u=a.next()){var c=u.value;i._entries.delete(c)}}catch(t){e={error:t}}finally{try{u&&!u.done&&(r=a.return)&&r.call(a)}finally{if(e)throw e.error}}return i},t.prototype.clear=function(){return new t},t}(),N=Symbol("BaggageEntryMetadata"),w=h.instance();function M(t){return void 0===t&&(t={}),new b(new Map(Object.entries(t)))}var U="propagation",D=new _,B=function(){function t(){this.createBaggage=M,this.getBaggage=m,this.getActiveBaggage=A,this.setBaggage=I,this.deleteBaggage=C}return t.getInstance=function(){return this._instance||(this._instance=new t),this._instance},t.prototype.setGlobalPropagator=function(t){return l(U,t,h.instance())},t.prototype.inject=function(t,e,r){return void 0===r&&(r=E),this._getGlobalPropagator().inject(t,e,r)},t.prototype.extract=function(t,e,r){return void 0===r&&(r=p),this._getGlobalPropagator().extract(t,e,r)},t.prototype.fields=function(){return this._getGlobalPropagator().fields()},t.prototype.disable=function(){s(U,h.instance())},t.prototype._getGlobalPropagator=function(){return f(U)||D},t}(),x=B.getInstance(),X=T("OpenTelemetry SDK Context Key SUPPRESS_TRACING");function j(t){return t.setValue(X,!0)}function G(t){return t.deleteValue(X)}function V(t){return!0===t.getValue(X)}var F=",",k="baggage";function H(t){return t.reduce(function(t,e){var r=""+t+(""!==t?F:"")+e;return r.length>8192?t:r},"")}function K(t){return t.getAllEntries().map(function(t){var e=function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}(t,2),r=e[0],n=e[1],o=encodeURIComponent(r)+"="+encodeURIComponent(n.value);return void 0!==n.metadata&&(o+=";"+n.metadata.toString()),o})}function W(t){var e=t.split(";");if(!(e.length<=0)){var r=e.shift();if(r){var n=r.indexOf("=");if(!(n<=0)){var o,i,a=decodeURIComponent(r.substring(0,n).trim()),u=decodeURIComponent(r.substring(n+1).trim());return e.length>0&&("string"!=typeof(i=e.join(";"))&&(w.error("Cannot create baggage metadata from unknown type: "+typeof i),i=""),o={__TYPE__:N,toString:function(){return i}}),{key:a,value:u,metadata:o}}}}}var Y=function(){function t(){}return t.prototype.inject=function(t,e,r){var n=x.getBaggage(t);if(n&&!V(t)){var o=H(K(n).filter(function(t){return t.length<=4096}).slice(0,180));o.length>0&&r.set(e,k,o)}},t.prototype.extract=function(t,e,r){var n=r.get(e,k),o=Array.isArray(n)?n.join(F):n;if(!o)return t;var i={};return 0===o.length?t:(o.split(F).forEach(function(t){var e=W(t);if(e){var r={value:e.value};e.metadata&&(r.metadata=e.metadata),i[e.key]=r}}),0===Object.entries(i).length?t:x.setBaggage(t,x.createBaggage(i)))},t.prototype.fields=function(){return[k]},t}(),z=function(){function t(t,e){this._monotonicClock=e,this._epochMillis=t.now(),this._performanceMillis=e.now()}return t.prototype.now=function(){var t=this._monotonicClock.now()-this._performanceMillis;return this._epochMillis+t},t}(),Z=h.instance(),J=function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},$=function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a};function Q(t){var e,r,n={};if("object"!=typeof t||null==t)return n;try{for(var o=J(Object.entries(t)),i=o.next();!i.done;i=o.next()){var a=$(i.value,2),u=a[0],c=a[1];q(u)?tt(c)?Array.isArray(c)?n[u]=c.slice():n[u]=c:Z.warn("Invalid attribute value set for key: "+u):Z.warn("Invalid attribute key: "+u)}}catch(t){e={error:t}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(e)throw e.error}}return n}function q(t){return"string"==typeof t&&t.length>0}function tt(t){return null==t||(Array.isArray(t)?function(t){var e,r,n;try{for(var o=J(t),i=o.next();!i.done;i=o.next()){var a=i.value;if(null!=a){if(!n){if(et(a)){n=typeof a;continue}return!1}if(typeof a!==n)return!1}}}catch(t){e={error:t}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(e)throw e.error}}return!0}(t):et(t))}function et(t){switch(typeof t){case"number":case"boolean":case"string":return!0}return!1}function rt(){return function(t){Z.error(function(t){return"string"==typeof t?t:JSON.stringify(function(t){for(var e={},r=t;null!==r;)Object.getOwnPropertyNames(r).forEach(function(t){if(!e[t]){var n=r[t];n&&(e[t]=String(n))}}),r=Object.getPrototypeOf(r);return e}(t))}(t))}}var nt=rt();function ot(t){nt=t}function it(t){try{nt(t)}catch(t){}}var at,ut,ct=require("perf_hooks").performance,lt=9,ft=Math.pow(10,6),st=Math.pow(10,lt);function _t(t){var e=t/1e3;return[Math.trunc(e),Math.round(t%1e3*ft)]}function pt(){var t=ct.timeOrigin;if("number"!=typeof t){var e=ct;t=e.timing&&e.timing.fetchStart}return t}function Et(t){return St(_t(pt()),_t("number"==typeof t?t:ct.now()))}function Tt(t){if(ht(t))return t;if("number"==typeof t)return t=st&&(r[1]-=st,r[0]+=1),r}function Lt(t){return t>=48&&t<=57?t-48:t>=97&&t<=102?t-87:t-55}function Pt(t){for(var e=new Uint8Array(t.length/2),r=0,n=0;n-1}var Ct=["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 bt(t){return Ct.indexOf(t)>-1}var Nt=["OTEL_NO_PATCH_MODULES","OTEL_PROPAGATORS","OTEL_SEMCONV_STABILITY_OPT_IN"];function wt(t){return Nt.indexOf(t)>-1}var Mt=1/0,Ut=128,Dt=128,Bt=128,xt={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:O.INFO,OTEL_NO_PATCH_MODULES:[],OTEL_PROPAGATORS:["tracecontext","baggage"],OTEL_RESOURCE_ATTRIBUTES:"",OTEL_SERVICE_NAME:"",OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT:Mt,OTEL_ATTRIBUTE_COUNT_LIMIT:Ut,OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT:Mt,OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT:Ut,OTEL_LOGRECORD_ATTRIBUTE_VALUE_LENGTH_LIMIT:Mt,OTEL_LOGRECORD_ATTRIBUTE_COUNT_LIMIT:Ut,OTEL_SPAN_EVENT_COUNT_LIMIT:128,OTEL_SPAN_LINK_COUNT_LIMIT:128,OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT:Dt,OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT:Bt,OTEL_TRACES_EXPORTER:"",OTEL_TRACES_SAMPLER:ut.ParentBasedAlwaysOn,OTEL_TRACES_SAMPLER_ARG:"",OTEL_LOGS_EXPORTER:"",OTEL_EXPORTER_OTLP_INSECURE:"",OTEL_EXPORTER_OTLP_TRACES_INSECURE:"",OTEL_EXPORTER_OTLP_METRICS_INSECURE:"",OTEL_EXPORTER_OTLP_LOGS_INSECURE:"",OTEL_EXPORTER_OTLP_CERTIFICATE:"",OTEL_EXPORTER_OTLP_TRACES_CERTIFICATE:"",OTEL_EXPORTER_OTLP_METRICS_CERTIFICATE:"",OTEL_EXPORTER_OTLP_LOGS_CERTIFICATE:"",OTEL_EXPORTER_OTLP_COMPRESSION:"",OTEL_EXPORTER_OTLP_TRACES_COMPRESSION:"",OTEL_EXPORTER_OTLP_METRICS_COMPRESSION:"",OTEL_EXPORTER_OTLP_LOGS_COMPRESSION:"",OTEL_EXPORTER_OTLP_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_TRACES_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_METRICS_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_LOGS_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_TRACES_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_METRICS_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_LOGS_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_TRACES_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_METRICS_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_LOGS_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE:"cumulative",OTEL_SEMCONV_STABILITY_OPT_IN:[]};function Xt(t,e,r){if(void 0!==r[t]){var n=String(r[t]);e[t]="true"===n.toLowerCase()}}function jt(t,e,r,n,o){if(void 0===n&&(n=-1/0),void 0===o&&(o=1/0),void 0!==r[t]){var i=Number(r[t]);isNaN(i)||(e[t]=io?o:i)}}function Gt(t,e,r,n){void 0===n&&(n=mt);var o=r[t];"string"==typeof o&&(e[t]=o.split(n).map(function(t){return t.trim()}))}var Vt={ALL:O.ALL,VERBOSE:O.VERBOSE,DEBUG:O.DEBUG,INFO:O.INFO,WARN:O.WARN,ERROR:O.ERROR,NONE:O.NONE};function Ft(t,e,r){var n=r[t];if("string"==typeof n){var o=Vt[n.toUpperCase()];null!=o&&(e[t]=o)}}function kt(t){var e={};for(var r in xt){var n=r;if("OTEL_LOG_LEVEL"===n)Ft(n,e,t);else if(It(n))Xt(n,e,t);else if(bt(n))jt(n,e,t);else if(wt(n))Gt(n,e,t);else{var o=t[n];null!=o&&(e[n]=String(o))}}return e}function Ht(){var t=kt(process.env);return Object.assign({},xt,t)}function Kt(){return kt(process.env)}var Wt="object"==typeof globalThis?globalThis:global;function Yt(t){return Buffer.from(Pt(t)).toString("base64")}var zt=function(){this.generateTraceId=Jt(16),this.generateSpanId=Jt(8)},Zt=Buffer.allocUnsafe(16);function Jt(t){return function(){for(var e=0;e>>0,4*e);for(e=0;e0);e++)e===t-1&&(Zt[t-1]=1);return Zt.toString("hex",0,t)}}var $t,Qt="1.30.1",qt=(($t={})["telemetry.sdk.name"]="opentelemetry",$t["process.runtime.name"]="node",$t["telemetry.sdk.language"]="nodejs",$t["telemetry.sdk.version"]=Qt,$t);function te(t){t.unref()}var ee,re=function(){function t(t){var e;void 0===t&&(t={}),this._propagators=null!==(e=t.propagators)&&void 0!==e?e:[],this._fields=Array.from(new Set(this._propagators.map(function(t){return"function"==typeof t.fields?t.fields():[]}).reduce(function(t,e){return t.concat(e)},[])))}return t.prototype.inject=function(t,e,r){var n,o;try{for(var i=function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}(this._propagators),a=i.next();!a.done;a=i.next()){var u=a.value;try{u.inject(t,e,r)}catch(t){Z.warn("Failed to inject with "+u.constructor.name+". Err: "+t.message)}}}catch(t){n={error:t}}finally{try{a&&!a.done&&(o=i.return)&&o.call(i)}finally{if(n)throw n.error}}},t.prototype.extract=function(t,e,r){return this._propagators.reduce(function(t,n){try{return n.extract(t,e,r)}catch(t){Z.warn("Failed to extract with "+n.constructor.name+". Err: "+t.message)}return t},t)},t.prototype.fields=function(){return this._fields.slice()},t}();!function(t){t[t.NONE=0]="NONE",t[t.SAMPLED=1]="SAMPLED"}(ee||(ee={}));var ne="0000000000000000",oe="00000000000000000000000000000000",ie={traceId:oe,spanId:ne,traceFlags:ee.NONE},ae=function(){function t(t){void 0===t&&(t=ie),this._spanContext=t}return t.prototype.spanContext=function(){return this._spanContext},t.prototype.setAttribute=function(t,e){return this},t.prototype.setAttributes=function(t){return this},t.prototype.addEvent=function(t,e){return this},t.prototype.addLink=function(t){return this},t.prototype.addLinks=function(t){return this},t.prototype.setStatus=function(t){return this},t.prototype.updateName=function(t){return this},t.prototype.end=function(t){},t.prototype.isRecording=function(){return!1},t.prototype.recordException=function(t,e){},t}(),ue=T("OpenTelemetry Context Key SPAN");function ce(t){return t.getValue(ue)||void 0}function le(){return ce(L.getInstance().active())}function fe(t,e){return t.setValue(ue,e)}function se(t){return t.deleteValue(ue)}function _e(t,e){return fe(t,new ae(e))}function pe(t){var e;return null===(e=ce(t))||void 0===e?void 0:e.spanContext()}var Ee=/^([0-9a-f]{32})$/i,Te=/^[0-9a-f]{16}$/i;function Oe(t){return Ee.test(t)&&t!==oe}function ye(t){return Oe(t.traceId)&&(e=t.spanId,Te.test(e)&&e!==ne);var e}function de(t){return new ae(t)}var ge=L.getInstance(),ve=function(){function t(){}return t.prototype.startSpan=function(t,e,r){if(void 0===r&&(r=ge.active()),Boolean(null==e?void 0:e.root))return new ae;var n,o=r&&pe(r);return"object"==typeof(n=o)&&"string"==typeof n.spanId&&"string"==typeof n.traceId&&"number"==typeof n.traceFlags&&ye(o)?new ae(o):new ae},t.prototype.startActiveSpan=function(t,e,r,n){var o,i,a;if(!(arguments.length<2)){2===arguments.length?a=e:3===arguments.length?(o=e,a=r):(o=e,i=r,a=n);var u=null!=i?i:ge.active(),c=this.startSpan(t,o,u),l=fe(u,c);return ge.with(l,a,void 0,c)}},t}(),he=new ve,Re=function(){function t(t,e,r,n){this._provider=t,this.name=e,this.version=r,this.options=n}return t.prototype.startSpan=function(t,e,r){return this._getTracer().startSpan(t,e,r)},t.prototype.startActiveSpan=function(t,e,r,n){var o=this._getTracer();return Reflect.apply(o.startActiveSpan,o,arguments)},t.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):he},t}(),Se=new(function(){function t(){}return t.prototype.getTracer=function(t,e,r){return new ve},t}()),Le=function(){function t(){}return t.prototype.getTracer=function(t,e,r){var n;return null!==(n=this.getDelegateTracer(t,e,r))&&void 0!==n?n:new Re(this,t,e,r)},t.prototype.getDelegate=function(){var t;return null!==(t=this._delegate)&&void 0!==t?t:Se},t.prototype.setDelegate=function(t){this._delegate=t},t.prototype.getDelegateTracer=function(t,e,r){var n;return null===(n=this._delegate)||void 0===n?void 0:n.getTracer(t,e,r)},t}(),Pe="trace",me=function(){function t(){this._proxyTracerProvider=new Le,this.wrapSpanContext=de,this.isSpanContextValid=ye,this.deleteSpan=se,this.getSpan=ce,this.getActiveSpan=le,this.getSpanContext=pe,this.setSpan=fe,this.setSpanContext=_e}return t.getInstance=function(){return this._instance||(this._instance=new t),this._instance},t.prototype.setGlobalTracerProvider=function(t){var e=l(Pe,this._proxyTracerProvider,h.instance());return e&&this._proxyTracerProvider.setDelegate(t),e},t.prototype.getTracerProvider=function(){return f(Pe)||this._proxyTracerProvider},t.prototype.getTracer=function(t,e){return this.getTracerProvider().getTracer(t,e)},t.prototype.disable=function(){s(Pe,h.instance()),this._proxyTracerProvider=new Le},t}().getInstance(),Ae="[_0-9a-z-*/]",Ie=new RegExp("^(?:[a-z]"+Ae+"{0,255}|[a-z0-9]"+Ae+"{0,240}@[a-z]"+Ae+"{0,13})$"),Ce=/^[ -~]{0,255}[!-~]$/,be=/,|=/,Ne=function(){function t(t){this._internalState=new Map,t&&this._parse(t)}return t.prototype.set=function(t,e){var r=this._clone();return r._internalState.has(t)&&r._internalState.delete(t),r._internalState.set(t,e),r},t.prototype.unset=function(t){var e=this._clone();return e._internalState.delete(t),e},t.prototype.get=function(t){return this._internalState.get(t)},t.prototype.serialize=function(){var t=this;return this._keys().reduce(function(e,r){return e.push(r+"="+t.get(r)),e},[]).join(",")},t.prototype._parse=function(t){t.length>512||(this._internalState=t.split(",").reverse().reduce(function(t,e){var r=e.trim(),n=r.indexOf("=");if(-1!==n){var o=r.slice(0,n),i=r.slice(n+1,e.length);(function(t){return Ie.test(t)})(o)&&function(t){return Ce.test(t)&&!be.test(t)}(i)&&t.set(o,i)}return t},new Map),this._internalState.size>32&&(this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,32))))},t.prototype._keys=function(){return Array.from(this._internalState.keys()).reverse()},t.prototype._clone=function(){var e=new t;return e._internalState=new Map(this._internalState),e},t}(),we="traceparent",Me="tracestate",Ue=new RegExp("^\\s?((?!ff)[\\da-f]{2})-((?![0]{32})[\\da-f]{32})-((?![0]{16})[\\da-f]{16})-([\\da-f]{2})(-.*)?\\s?$");function De(t){var e=Ue.exec(t);return e?"00"===e[1]&&e[5]?null:{traceId:e[2],spanId:e[3],traceFlags:parseInt(e[4],16)}:null}var Be,xe,Xe=function(){function t(){}return t.prototype.inject=function(t,e,r){var n=me.getSpanContext(t);if(n&&!V(t)&&ye(n)){var o="00-"+n.traceId+"-"+n.spanId+"-0"+Number(n.traceFlags||ee.NONE).toString(16);r.set(e,we,o),n.traceState&&r.set(e,Me,n.traceState.serialize())}},t.prototype.extract=function(t,e,r){var n=r.get(e,we);if(!n)return t;var o=Array.isArray(n)?n[0]:n;if("string"!=typeof o)return t;var i=De(o);if(!i)return t;i.isRemote=!0;var a=r.get(e,Me);if(a){var u=Array.isArray(a)?a.join(","):a;i.traceState=new Ne("string"==typeof u?u:void 0)}return me.setSpanContext(t,i)},t.prototype.fields=function(){return[we,Me]},t}(),je=T("OpenTelemetry SDK Context Key RPC_METADATA");function Ge(t,e){return t.setValue(je,e)}function Ve(t){return t.deleteValue(je)}function Fe(t){return t.getValue(je)}!function(t){t.HTTP="http"}(Be||(Be={})),function(t){t[t.NOT_RECORD=0]="NOT_RECORD",t[t.RECORD=1]="RECORD",t[t.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"}(xe||(xe={}));var ke,He,Ke=function(){function t(){}return t.prototype.shouldSample=function(){return{decision:xe.NOT_RECORD}},t.prototype.toString=function(){return"AlwaysOffSampler"},t}(),We=function(){function t(){}return t.prototype.shouldSample=function(){return{decision:xe.RECORD_AND_SAMPLED}},t.prototype.toString=function(){return"AlwaysOnSampler"},t}(),Ye=function(){function t(t){var e,r,n,o;this._root=t.root,this._root||(it(new Error("ParentBasedSampler must have a root sampler configured")),this._root=new We),this._remoteParentSampled=null!==(e=t.remoteParentSampled)&&void 0!==e?e:new We,this._remoteParentNotSampled=null!==(r=t.remoteParentNotSampled)&&void 0!==r?r:new Ke,this._localParentSampled=null!==(n=t.localParentSampled)&&void 0!==n?n:new We,this._localParentNotSampled=null!==(o=t.localParentNotSampled)&&void 0!==o?o:new Ke}return t.prototype.shouldSample=function(t,e,r,n,o,i){var a=me.getSpanContext(t);return a&&ye(a)?a.isRemote?a.traceFlags&ee.SAMPLED?this._remoteParentSampled.shouldSample(t,e,r,n,o,i):this._remoteParentNotSampled.shouldSample(t,e,r,n,o,i):a.traceFlags&ee.SAMPLED?this._localParentSampled.shouldSample(t,e,r,n,o,i):this._localParentNotSampled.shouldSample(t,e,r,n,o,i):this._root.shouldSample(t,e,r,n,o,i)},t.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()+"}"},t}(),ze=function(){function t(t){void 0===t&&(t=0),this._ratio=t,this._ratio=this._normalize(t),this._upperBound=Math.floor(4294967295*this._ratio)}return t.prototype.shouldSample=function(t,e){return{decision:Oe(e)&&this._accumulate(e)=1?1:t<=0?0:t},t.prototype._accumulate=function(t){for(var e=0,r=0;r>>0}return e},t}(),Ze="[object Object]",Je="[object Null]",$e="[object Undefined]",Qe=Function.prototype.toString,qe=Qe.call(Object),tr=(ke=Object.getPrototypeOf,He=Object,function(t){return ke(He(t))}),er=Object.prototype,rr=er.hasOwnProperty,nr=Symbol?Symbol.toStringTag:void 0,or=er.toString;function ir(t){if(!function(t){return null!=t&&"object"==typeof t}(t)||function(t){return null==t?void 0===t?$e:Je:nr&&nr in Object(t)?function(t){var e=rr.call(t,nr),r=t[nr],n=!1;try{t[nr]=void 0,n=!0}catch(t){}var o=or.call(t);return n&&(e?t[nr]=r:delete t[nr]),o}(t):function(t){return or.call(t)}(t)}(t)!==Ze)return!1;var e=tr(t);if(null===e)return!0;var r=rr.call(e,"constructor")&&e.constructor;return"function"==typeof r&&r instanceof r&&Qe.call(r)===qe}var ar=20;function ur(){for(var t=[],e=0;e0;)r=lr(r,t.shift(),0,n);return r}function cr(t){return sr(t)?t.slice():t}function lr(t,e,r,n){var o;if(void 0===r&&(r=0),!(r>ar)){if(r++,Er(t)||Er(e)||_r(e))o=cr(e);else if(sr(t)){if(o=t.slice(),sr(e))for(var i=0,a=e.length;i=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};function vr(t,e){return"string"==typeof e?t===e:!!t.match(e)}function hr(t,e){var r,n;if(!e)return!1;try{for(var o=gr(e),i=o.next();!i.done;i=o.next())if(vr(t,i.value))return!0}catch(t){r={error:t}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return!1}function Rr(t){return"function"==typeof t&&"function"==typeof t.__original&&"function"==typeof t.__unwrap&&!0===t.__wrapped}var Sr=function(){function t(){var t=this;this._promise=new Promise(function(e,r){t._resolve=e,t._reject=r})}return Object.defineProperty(t.prototype,"promise",{get:function(){return this._promise},enumerable:!1,configurable:!0}),t.prototype.resolve=function(t){this._resolve(t)},t.prototype.reject=function(t){this._reject(t)},t}(),Lr=function(){function t(t,e){this._callback=t,this._that=e,this._isCalled=!1,this._deferred=new Sr}return Object.defineProperty(t.prototype,"isCalled",{get:function(){return this._isCalled},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"promise",{get:function(){return this._deferred.promise},enumerable:!1,configurable:!0}),t.prototype.call=function(){for(var t,e=this,r=[],n=0;n0)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}(r),!1))).then(function(t){return e._deferred.resolve(t)},function(t){return e._deferred.reject(t)})}catch(t){this._deferred.reject(t)}}return this._deferred.promise},t}(),Pr=L.getInstance(),mr={getKeyPairs:K,serializeKeyPairs:H,parseKeyPairsIntoRecord:function(t){return"string"!=typeof t||0===t.length?{}:t.split(F).map(function(t){return W(t)}).filter(function(t){return void 0!==t&&t.value.length>0}).reduce(function(t,e){return t[e.key]=e.value,t},{})},parsePairKeyValue:W},Ar={_export:function(t,e){return new Promise(function(r){Pr.with(j(Pr.active()),function(){t.export(e,function(t){r(t)})})})}};module.exports=e})(); \ No newline at end of file diff --git a/packages/node_modules/@opentelemetry/resources.js b/packages/node_modules/@opentelemetry/resources.js index 9f5b9437d31..23f156a83a3 100644 --- a/packages/node_modules/@opentelemetry/resources.js +++ b/packages/node_modules/@opentelemetry/resources.js @@ -1 +1 @@ -(()=>{"use strict";var e={454:(e,t,r)=>{r.d(t,{D:()=>c});var n=r(9896),o=r(2733),i=r(8758),a=function(e,t,r,n){return new(r||(r=Promise))(function(o,i){function a(e){try{c(n.next(e))}catch(e){i(e)}}function u(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(a,u)}c((n=n.apply(e,t||[])).next())})},u=function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]{e.exports=require("process")},1275:(e,t,r)=>{r.d(t,{V:()=>o});var n=r(6051),o=function(){function e(e){this._namespace=e.namespace||"DiagComponentLogger"}return e.prototype.debug=function(){for(var e=[],t=0;t0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}(r),!1))}},1568:(e,t,r)=>{r.d(t,{D:()=>u});var n=r(2733),o=r(8758),i=function(e,t,r,n){return new(r||(r=Promise))(function(o,i){function a(e){try{c(n.next(e))}catch(e){i(e)}}function u(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(a,u)}c((n=n.apply(e,t||[])).next())})},a=function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]{r.d(t,{c:()=>o});var n=r(6733);function o(e,t){function r(r,n){var o=t[r];return"function"==typeof o&&e>=n?o.bind(t):function(){}}return en.u.ALL&&(e=n.u.ALL),t=t||{},{error:r("error",n.u.ERROR),warn:r("warn",n.u.WARN),info:r("info",n.u.INFO),debug:r("debug",n.u.DEBUG),verbose:r("verbose",n.u.VERBOSE)}}},2408:(e,t,r)=>{r.d(t,{D:()=>a});var n=r(8758),o=function(e,t,r,n){return new(r||(r=Promise))(function(o,i){function a(e){try{c(n.next(e))}catch(e){i(e)}}function u(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(a,u)}c((n=n.apply(e,t||[])).next())})},i=function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]{r.d(t,{q:()=>o});const n=require("child_process");var o=require("util").promisify(n.exec)},2910:(e,t,r)=>{r.d(t,{x:()=>n});var n="1.9.0"},5234:(e,t,r)=>{r.d(t,{X:()=>n});var n="object"==typeof globalThis?globalThis:global},5726:(e,t,r)=>{r.d(t,{K:()=>u});var n=r(1275),o=r(1994),i=r(6733),a=r(6051),u=function(){function e(){function e(e){return function(){for(var t=[],r=0;r0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}(t),!1))}}var t=this;t.setLogger=function(e,r){var n,u,c;if(void 0===r&&(r={logLevel:i.u.INFO}),e===t){var s=new Error("Cannot use diag as the logger for itself. Please use a DiagLogger implementation like ConsoleDiagLogger or a custom implementation");return t.error(null!==(n=s.stack)&&void 0!==n?n:s.message),!1}"number"==typeof r&&(r={logLevel:r});var l=(0,a.mS)("diag"),E=(0,o.c)(null!==(u=r.logLevel)&&void 0!==u?u:i.u.INFO,e);if(l&&!r.suppressOverrideMessage){var f=null!==(c=(new Error).stack)&&void 0!==c?c:"";l.warn("Current logger will be overwritten from "+f),E.warn("Current logger will overwrite one already registered from "+f)}return(0,a.$G)("diag",E,t,!0)},t.disable=function(){(0,a.kv)("diag",t)},t.createComponentLogger=function(e){return new n.V(e)},t.verbose=e("verbose"),t.debug=e("debug"),t.info=e("info"),t.warn=e("warn"),t.error=e("error")}return e.instance=function(){return this._instance||(this._instance=new e),this._instance},e}()},6051:(e,t,r)=>{r.d(t,{$G:()=>s,kv:()=>E,mS:()=>l});var n=r(5234),o=r(2910),i=r(8336),a=o.x.split(".")[0],u=Symbol.for("opentelemetry.js.api."+a),c=n.X;function s(e,t,r,n){var i;void 0===n&&(n=!1);var a=c[u]=null!==(i=c[u])&&void 0!==i?i:{version:o.x};if(!n&&a[e]){var s=new Error("@opentelemetry/api: Attempted duplicate registration of API: "+e);return r.error(s.stack||s.message),!1}return a.version!==o.x?(s=new Error("@opentelemetry/api: Registration of version v"+a.version+" for "+e+" does not match previously registered API v"+o.x),r.error(s.stack||s.message),!1):(a[e]=t,r.debug("@opentelemetry/api: Registered a global for "+e+" v"+o.x+"."),!0)}function l(e){var t,r,n=null===(t=c[u])||void 0===t?void 0:t.version;if(n&&(0,i.$)(n))return null===(r=c[u])||void 0===r?void 0:r[e]}function E(e,t){t.debug("@opentelemetry/api: Unregistering a global for "+e+" v"+o.x+".");var r=c[u];r&&delete r[e]}},6733:(e,t,r)=>{var n;r.d(t,{u:()=>n}),function(e){e[e.NONE=0]="NONE",e[e.ERROR=30]="ERROR",e[e.WARN=50]="WARN",e[e.INFO=60]="INFO",e[e.DEBUG=70]="DEBUG",e[e.VERBOSE=80]="VERBOSE",e[e.ALL=9999]="ALL"}(n||(n={}))},7349:(e,t,r)=>{r.d(t,{D:()=>c});var n=r(932),o=r(2733),i=r(8758),a=function(e,t,r,n){return new(r||(r=Promise))(function(o,i){function a(e){try{c(n.next(e))}catch(e){i(e)}}function u(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(a,u)}c((n=n.apply(e,t||[])).next())})},u=function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]{r.d(t,{D:()=>c});var n=r(9896),o=r(8758),i=function(e,t,r,n){return new(r||(r=Promise))(function(o,i){function a(e){try{c(n.next(e))}catch(e){i(e)}}function u(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(a,u)}c((n=n.apply(e,t||[])).next())})},a=function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]=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 c(){return i(this,void 0,void 0,function(){var e,t,r,i,c,s,l,E;return a(this,function(a){switch(a.label){case 0:e=["/etc/machine-id","/var/lib/dbus/machine-id"],a.label=1;case 1:a.trys.push([1,8,9,10]),t=u(e),r=t.next(),a.label=2;case 2:if(r.done)return[3,7];i=r.value,a.label=3;case 3:return a.trys.push([3,5,,6]),[4,n.promises.readFile(i,{encoding:"utf8"})];case 4:return[2,a.sent().trim()];case 5:return c=a.sent(),o.s.debug("error reading machine id: "+c),[3,6];case 6:return r=t.next(),[3,2];case 7:return[3,10];case 8:return s=a.sent(),l={error:s},[3,10];case 9:try{r&&!r.done&&(E=t.return)&&E.call(t)}finally{if(l)throw l.error}return[7];case 10:return[2,""]}})})}},8336:(e,t,r)=>{r.d(t,{$:()=>i});var n=r(2910),o=/^(\d+)\.(\d+)\.(\d+)(-(.+))?$/,i=function(e){var t=new Set([e]),r=new Set,n=e.match(o);if(!n)return function(){return!1};var i=+n[1],a=+n[2],u=+n[3];if(null!=n[4])return function(t){return t===e};function c(e){return r.add(e),!1}function s(e){return t.add(e),!0}return function(e){if(t.has(e))return!0;if(r.has(e))return!1;var n=e.match(o);if(!n)return c(e);var l=+n[1],E=+n[2],f=+n[3];return null!=n[4]||i!==l?c(e):0===i?a===E&&u<=f?s(e):c(e):a<=E?s(e):c(e)}}(n.x)},8758:(e,t,r)=>{r.d(t,{s:()=>n});var n=r(5726).K.instance()},9896:e=>{e.exports=require("fs")}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var i=t[n]={exports:{}};return e[n](i,i.exports,r),i.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};r.r(n),r.d(n,{Resource:()=>d,browserDetector:()=>R,browserDetectorSync:()=>h,defaultServiceName:()=>T,detectResources:()=>oe,detectResourcesSync:()=>ie,envDetector:()=>G,envDetectorSync:()=>B,hostDetector:()=>j,hostDetectorSync:()=>F,osDetector:()=>q,osDetectorSync:()=>Y,processDetector:()=>Q,processDetectorSync:()=>$,serviceInstanceIdDetectorSync:()=>te});var o,i=r(8758),a="process.runtime.name",u="process.runtime.version",c="process.runtime.description",s="service.name",l="telemetry.sdk.name",E="telemetry.sdk.language",f="telemetry.sdk.version",_=((o={})[l]="opentelemetry",o[a]="node",o[E]="nodejs",o[f]="1.30.1",o);function T(){return"unknown_service:"+process.argv0}var O,p=function(){return p=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}(e,2),i=o[0],a=o[1];return p(p(p(p({},n._syncAttributes),i),null!==(r=t._syncAttributes)&&void 0!==r?r:t.attributes),a)});return new e(o,i)},e.EMPTY=new e({}),e}(),v=function(){return v=Object.assign||function(e){for(var t,r=1,n=arguments.length;r-1}var P=["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 S(e){return P.indexOf(e)>-1}var g=["OTEL_NO_PATCH_MODULES","OTEL_PROPAGATORS","OTEL_SEMCONV_STABILITY_OPT_IN"];function I(e){return g.indexOf(e)>-1}var w=1/0,m={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:L.u.INFO,OTEL_NO_PATCH_MODULES:[],OTEL_PROPAGATORS:["tracecontext","baggage"],OTEL_RESOURCE_ATTRIBUTES:"",OTEL_SERVICE_NAME:"",OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT:w,OTEL_ATTRIBUTE_COUNT_LIMIT:128,OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT:w,OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT:128,OTEL_LOGRECORD_ATTRIBUTE_VALUE_LENGTH_LIMIT:w,OTEL_LOGRECORD_ATTRIBUTE_COUNT_LIMIT:128,OTEL_SPAN_EVENT_COUNT_LIMIT:128,OTEL_SPAN_LINK_COUNT_LIMIT:128,OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT:128,OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT:128,OTEL_TRACES_EXPORTER:"",OTEL_TRACES_SAMPLER:O.ParentBasedAlwaysOn,OTEL_TRACES_SAMPLER_ARG:"",OTEL_LOGS_EXPORTER:"",OTEL_EXPORTER_OTLP_INSECURE:"",OTEL_EXPORTER_OTLP_TRACES_INSECURE:"",OTEL_EXPORTER_OTLP_METRICS_INSECURE:"",OTEL_EXPORTER_OTLP_LOGS_INSECURE:"",OTEL_EXPORTER_OTLP_CERTIFICATE:"",OTEL_EXPORTER_OTLP_TRACES_CERTIFICATE:"",OTEL_EXPORTER_OTLP_METRICS_CERTIFICATE:"",OTEL_EXPORTER_OTLP_LOGS_CERTIFICATE:"",OTEL_EXPORTER_OTLP_COMPRESSION:"",OTEL_EXPORTER_OTLP_TRACES_COMPRESSION:"",OTEL_EXPORTER_OTLP_METRICS_COMPRESSION:"",OTEL_EXPORTER_OTLP_LOGS_COMPRESSION:"",OTEL_EXPORTER_OTLP_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_TRACES_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_METRICS_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_LOGS_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_TRACES_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_METRICS_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_LOGS_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_TRACES_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_METRICS_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_LOGS_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE:"cumulative",OTEL_SEMCONV_STABILITY_OPT_IN:[]};function N(e,t,r){if(void 0!==r[e]){var n=String(r[e]);t[e]="true"===n.toLowerCase()}}function C(e,t,r,n,o){if(void 0===n&&(n=-1/0),void 0===o&&(o=1/0),void 0!==r[e]){var i=Number(r[e]);isNaN(i)||(t[e]=io?o:i)}}function U(e,t,r,n){void 0===n&&(n=",");var o=r[e];"string"==typeof o&&(t[e]=o.split(n).map(function(e){return e.trim()}))}var M={ALL:L.u.ALL,VERBOSE:L.u.VERBOSE,DEBUG:L.u.DEBUG,INFO:L.u.INFO,WARN:L.u.WARN,ERROR:L.u.ERROR,NONE:L.u.NONE};function x(e,t,r){var n=r[e];if("string"==typeof n){var o=M[n.toUpperCase()];null!=o&&(t[e]=o)}}var X=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},D=function(){function e(){this._MAX_LENGTH=255,this._COMMA_SEPARATOR=",",this._LABEL_KEY_VALUE_SPLITTER="=",this._ERROR_MESSAGE_INVALID_CHARS="should be a ASCII string with a length greater than 0 and not exceed "+this._MAX_LENGTH+" characters.",this._ERROR_MESSAGE_INVALID_VALUE="should be a ASCII string with a length not exceed "+this._MAX_LENGTH+" characters."}return e.prototype.detect=function(e){var t,r={},n=(t=function(e){var t={};for(var r in m){var n=r;if("OTEL_LOG_LEVEL"===n)x(n,t,e);else if(A(n))N(n,t,e);else if(S(n))C(n,t,e);else if(I(n))U(n,t,e);else{var o=e[n];null!=o&&(t[n]=String(o))}}return t}(process.env),Object.assign({},m,t)),o=n.OTEL_RESOURCE_ATTRIBUTES,a=n.OTEL_SERVICE_NAME;if(o)try{var u=this._parseResourceAttributes(o);Object.assign(r,u)}catch(e){i.s.debug("EnvDetector failed: "+e.message)}return a&&(r[s]=a),new d(r)},e.prototype._parseResourceAttributes=function(e){var t,r;if(!e)return{};var n={},o=e.split(this._COMMA_SEPARATOR,-1);try{for(var i=function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)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.")}(o),a=i.next();!a.done;a=i.next()){var u=a.value.split(this._LABEL_KEY_VALUE_SPLITTER,-1);if(2===u.length){var c=X(u,2),s=c[0],l=c[1];if(s=s.trim(),l=l.trim().split(/^"|"$/).join(""),!this._isValidAndNotEmpty(s))throw new Error("Attribute key "+this._ERROR_MESSAGE_INVALID_CHARS);if(!this._isValid(l))throw new Error("Attribute value "+this._ERROR_MESSAGE_INVALID_VALUE);n[s]=decodeURIComponent(l)}}}catch(e){t={error:e}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}return n},e.prototype._isValid=function(e){return e.length<=this._MAX_LENGTH&&this._isBaggageOctetString(e)},e.prototype._isBaggageOctetString=function(e){for(var t=0;t126)return!1}return!0},e.prototype._isValidAndNotEmpty=function(e){return e.length>0&&this._isValid(e)},e}(),B=new D,G=new(function(){function e(){}return e.prototype.detect=function(e){return Promise.resolve(B.detect(e))},e}());const k=require("os");var V;switch(r(932).platform){case"darwin":V=r(1568).D;break;case"linux":V=r(7917).D;break;case"freebsd":V=r(454).D;break;case"win32":V=r(7349).D;break;default:V=r(2408).D}var H=function(){function e(){}return e.prototype.detect=function(e){var t,r=((t={})["host.name"]=(0,k.hostname)(),t["host.arch"]=function(e){switch(e){case"arm":return"arm32";case"ppc":return"ppc32";case"x64":return"amd64";default:return e}}((0,k.arch)()),t);return new d(r,this._getAsyncAttributes())},e.prototype._getAsyncAttributes=function(){return V().then(function(e){var t={};return e&&(t["host.id"]=e),t})},e}(),F=new H,j=new(function(){function e(){}return e.prototype.detect=function(e){return Promise.resolve(F.detect(e))},e}()),K=function(){function e(){}return e.prototype.detect=function(e){var t,r=((t={})["os.type"]=function(e){switch(e){case"sunos":return"solaris";case"win32":return"windows";default:return e}}((0,k.platform)()),t["os.version"]=(0,k.release)(),t);return new d(r)},e}(),Y=new K,q=new(function(){function e(){}return e.prototype.detect=function(e){return Promise.resolve(Y.detect(e))},e}()),Z=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},W=function(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o1&&(r["process.command"]=process.argv[1]);try{var n=k.userInfo();r["process.owner"]=n.username}catch(e){i.s.debug("error obtaining process owner: "+e)}return new d(r)},e}(),$=new J,Q=new(function(){function e(){}return e.prototype.detect=function(e){return Promise.resolve($.detect(e))},e}());const z=require("crypto");var ee=function(){function e(){}return e.prototype.detect=function(e){var t,r=((t={})["service.instance.id"]=(0,z.randomUUID)(),t);return new d(r)},e}(),te=new ee,re=function(e,t,r,n){return new(r||(r=Promise))(function(o,i){function a(e){try{c(n.next(e))}catch(e){i(e)}}function u(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(a,u)}c((n=n.apply(e,t||[])).next())})},ne=function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]0){var t=JSON.stringify(e.attributes,null,4);i.s.verbose(t)}})};module.exports=n})(); \ No newline at end of file +(()=>{"use strict";var e={454:(e,t,r)=>{r.d(t,{D:()=>c});var n=r(9896),o=r(2733),i=r(8758),a=function(e,t,r,n){return new(r||(r=Promise))(function(o,i){function a(e){try{c(n.next(e))}catch(e){i(e)}}function u(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(a,u)}c((n=n.apply(e,t||[])).next())})},u=function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]{e.exports=require("process")},1275:(e,t,r)=>{r.d(t,{V:()=>o});var n=r(6051),o=function(){function e(e){this._namespace=e.namespace||"DiagComponentLogger"}return e.prototype.debug=function(){for(var e=[],t=0;t0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}(r),!1))}},1568:(e,t,r)=>{r.d(t,{D:()=>u});var n=r(2733),o=r(8758),i=function(e,t,r,n){return new(r||(r=Promise))(function(o,i){function a(e){try{c(n.next(e))}catch(e){i(e)}}function u(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(a,u)}c((n=n.apply(e,t||[])).next())})},a=function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]{r.d(t,{c:()=>o});var n=r(6733);function o(e,t){function r(r,n){var o=t[r];return"function"==typeof o&&e>=n?o.bind(t):function(){}}return en.u.ALL&&(e=n.u.ALL),t=t||{},{error:r("error",n.u.ERROR),warn:r("warn",n.u.WARN),info:r("info",n.u.INFO),debug:r("debug",n.u.DEBUG),verbose:r("verbose",n.u.VERBOSE)}}},2408:(e,t,r)=>{r.d(t,{D:()=>a});var n=r(8758),o=function(e,t,r,n){return new(r||(r=Promise))(function(o,i){function a(e){try{c(n.next(e))}catch(e){i(e)}}function u(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(a,u)}c((n=n.apply(e,t||[])).next())})},i=function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]{r.d(t,{q:()=>o});const n=require("child_process");var o=require("util").promisify(n.exec)},2910:(e,t,r)=>{r.d(t,{x:()=>n});var n="1.9.0"},5234:(e,t,r)=>{r.d(t,{X:()=>n});var n="object"==typeof globalThis?globalThis:global},5726:(e,t,r)=>{r.d(t,{K:()=>u});var n=r(1275),o=r(1994),i=r(6733),a=r(6051),u=function(){function e(){function e(e){return function(){for(var t=[],r=0;r0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}(t),!1))}}var t=this;t.setLogger=function(e,r){var n,u,c;if(void 0===r&&(r={logLevel:i.u.INFO}),e===t){var s=new Error("Cannot use diag as the logger for itself. Please use a DiagLogger implementation like ConsoleDiagLogger or a custom implementation");return t.error(null!==(n=s.stack)&&void 0!==n?n:s.message),!1}"number"==typeof r&&(r={logLevel:r});var l=(0,a.mS)("diag"),E=(0,o.c)(null!==(u=r.logLevel)&&void 0!==u?u:i.u.INFO,e);if(l&&!r.suppressOverrideMessage){var f=null!==(c=(new Error).stack)&&void 0!==c?c:"";l.warn("Current logger will be overwritten from "+f),E.warn("Current logger will overwrite one already registered from "+f)}return(0,a.$G)("diag",E,t,!0)},t.disable=function(){(0,a.kv)("diag",t)},t.createComponentLogger=function(e){return new n.V(e)},t.verbose=e("verbose"),t.debug=e("debug"),t.info=e("info"),t.warn=e("warn"),t.error=e("error")}return e.instance=function(){return this._instance||(this._instance=new e),this._instance},e}()},6051:(e,t,r)=>{r.d(t,{$G:()=>s,kv:()=>E,mS:()=>l});var n=r(5234),o=r(2910),i=r(8336),a=o.x.split(".")[0],u=Symbol.for("opentelemetry.js.api."+a),c=n.X;function s(e,t,r,n){var i;void 0===n&&(n=!1);var a=c[u]=null!==(i=c[u])&&void 0!==i?i:{version:o.x};if(!n&&a[e]){var s=new Error("@opentelemetry/api: Attempted duplicate registration of API: "+e);return r.error(s.stack||s.message),!1}return a.version!==o.x?(s=new Error("@opentelemetry/api: Registration of version v"+a.version+" for "+e+" does not match previously registered API v"+o.x),r.error(s.stack||s.message),!1):(a[e]=t,r.debug("@opentelemetry/api: Registered a global for "+e+" v"+o.x+"."),!0)}function l(e){var t,r,n=null===(t=c[u])||void 0===t?void 0:t.version;if(n&&(0,i.$)(n))return null===(r=c[u])||void 0===r?void 0:r[e]}function E(e,t){t.debug("@opentelemetry/api: Unregistering a global for "+e+" v"+o.x+".");var r=c[u];r&&delete r[e]}},6733:(e,t,r)=>{var n;r.d(t,{u:()=>n}),function(e){e[e.NONE=0]="NONE",e[e.ERROR=30]="ERROR",e[e.WARN=50]="WARN",e[e.INFO=60]="INFO",e[e.DEBUG=70]="DEBUG",e[e.VERBOSE=80]="VERBOSE",e[e.ALL=9999]="ALL"}(n||(n={}))},7349:(e,t,r)=>{r.d(t,{D:()=>c});var n=r(932),o=r(2733),i=r(8758),a=function(e,t,r,n){return new(r||(r=Promise))(function(o,i){function a(e){try{c(n.next(e))}catch(e){i(e)}}function u(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(a,u)}c((n=n.apply(e,t||[])).next())})},u=function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]{r.d(t,{D:()=>c});var n=r(9896),o=r(8758),i=function(e,t,r,n){return new(r||(r=Promise))(function(o,i){function a(e){try{c(n.next(e))}catch(e){i(e)}}function u(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(a,u)}c((n=n.apply(e,t||[])).next())})},a=function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]=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 c(){return i(this,void 0,void 0,function(){var e,t,r,i,c,s,l,E;return a(this,function(a){switch(a.label){case 0:e=["/etc/machine-id","/var/lib/dbus/machine-id"],a.label=1;case 1:a.trys.push([1,8,9,10]),t=u(e),r=t.next(),a.label=2;case 2:if(r.done)return[3,7];i=r.value,a.label=3;case 3:return a.trys.push([3,5,,6]),[4,n.promises.readFile(i,{encoding:"utf8"})];case 4:return[2,a.sent().trim()];case 5:return c=a.sent(),o.s.debug("error reading machine id: "+c),[3,6];case 6:return r=t.next(),[3,2];case 7:return[3,10];case 8:return s=a.sent(),l={error:s},[3,10];case 9:try{r&&!r.done&&(E=t.return)&&E.call(t)}finally{if(l)throw l.error}return[7];case 10:return[2,""]}})})}},8336:(e,t,r)=>{r.d(t,{$:()=>i});var n=r(2910),o=/^(\d+)\.(\d+)\.(\d+)(-(.+))?$/,i=function(e){var t=new Set([e]),r=new Set,n=e.match(o);if(!n)return function(){return!1};var i=+n[1],a=+n[2],u=+n[3];if(null!=n[4])return function(t){return t===e};function c(e){return r.add(e),!1}function s(e){return t.add(e),!0}return function(e){if(t.has(e))return!0;if(r.has(e))return!1;var n=e.match(o);if(!n)return c(e);var l=+n[1],E=+n[2],f=+n[3];return null!=n[4]||i!==l?c(e):0===i?a===E&&u<=f?s(e):c(e):a<=E?s(e):c(e)}}(n.x)},8758:(e,t,r)=>{r.d(t,{s:()=>n});var n=r(5726).K.instance()},9896:e=>{e.exports=require("fs")}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var i=t[n]={exports:{}};return e[n](i,i.exports,r),i.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};r.r(n),r.d(n,{Resource:()=>p,browserDetector:()=>S,browserDetectorSync:()=>P,defaultServiceName:()=>T,detectResources:()=>oe,detectResourcesSync:()=>ie,envDetector:()=>j,envDetectorSync:()=>F,hostDetector:()=>L,hostDetectorSync:()=>R,osDetector:()=>q,osDetectorSync:()=>Y,processDetector:()=>Q,processDetectorSync:()=>$,serviceInstanceIdDetectorSync:()=>te});var o,i=r(8758),a="process.runtime.name",u="process.runtime.version",c="process.runtime.description",s="service.name",l="telemetry.sdk.name",E="telemetry.sdk.language",f="telemetry.sdk.version",_=((o={})[l]="opentelemetry",o[a]="node",o[E]="nodejs",o[f]="1.30.1",o);function T(){return"unknown_service:"+process.argv0}var O=function(){return O=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}(e,2),i=o[0],a=o[1];return O(O(O(O({},n._syncAttributes),i),null!==(r=t._syncAttributes)&&void 0!==r?r:t.attributes),a)});return new e(o,i)},e.EMPTY=new e({}),e}();const d=require("os");var v;switch(r(932).platform){case"darwin":v=r(1568).D;break;case"linux":v=r(7917).D;break;case"freebsd":v=r(454).D;break;case"win32":v=r(7349).D;break;default:v=r(2408).D}var y,h=function(){function e(){}return e.prototype.detect=function(e){var t,r=((t={})["host.name"]=(0,d.hostname)(),t["host.arch"]=function(e){switch(e){case"arm":return"arm32";case"ppc":return"ppc32";case"x64":return"amd64";default:return e}}((0,d.arch)()),t);return new p(r,this._getAsyncAttributes())},e.prototype._getAsyncAttributes=function(){return v().then(function(e){var t={};return e&&(t["host.id"]=e),t})},e}(),R=new h,L=new(function(){function e(){}return e.prototype.detect=function(e){return Promise.resolve(R.detect(e))},e}()),b=function(){return b=Object.assign||function(e){for(var t,r=1,n=arguments.length;r-1}var m=["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 N(e){return m.indexOf(e)>-1}var C=["OTEL_NO_PATCH_MODULES","OTEL_PROPAGATORS","OTEL_SEMCONV_STABILITY_OPT_IN"];function U(e){return C.indexOf(e)>-1}var M=1/0,x={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:g.u.INFO,OTEL_NO_PATCH_MODULES:[],OTEL_PROPAGATORS:["tracecontext","baggage"],OTEL_RESOURCE_ATTRIBUTES:"",OTEL_SERVICE_NAME:"",OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT:M,OTEL_ATTRIBUTE_COUNT_LIMIT:128,OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT:M,OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT:128,OTEL_LOGRECORD_ATTRIBUTE_VALUE_LENGTH_LIMIT:M,OTEL_LOGRECORD_ATTRIBUTE_COUNT_LIMIT:128,OTEL_SPAN_EVENT_COUNT_LIMIT:128,OTEL_SPAN_LINK_COUNT_LIMIT:128,OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT:128,OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT:128,OTEL_TRACES_EXPORTER:"",OTEL_TRACES_SAMPLER:y.ParentBasedAlwaysOn,OTEL_TRACES_SAMPLER_ARG:"",OTEL_LOGS_EXPORTER:"",OTEL_EXPORTER_OTLP_INSECURE:"",OTEL_EXPORTER_OTLP_TRACES_INSECURE:"",OTEL_EXPORTER_OTLP_METRICS_INSECURE:"",OTEL_EXPORTER_OTLP_LOGS_INSECURE:"",OTEL_EXPORTER_OTLP_CERTIFICATE:"",OTEL_EXPORTER_OTLP_TRACES_CERTIFICATE:"",OTEL_EXPORTER_OTLP_METRICS_CERTIFICATE:"",OTEL_EXPORTER_OTLP_LOGS_CERTIFICATE:"",OTEL_EXPORTER_OTLP_COMPRESSION:"",OTEL_EXPORTER_OTLP_TRACES_COMPRESSION:"",OTEL_EXPORTER_OTLP_METRICS_COMPRESSION:"",OTEL_EXPORTER_OTLP_LOGS_COMPRESSION:"",OTEL_EXPORTER_OTLP_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_TRACES_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_METRICS_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_LOGS_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_TRACES_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_METRICS_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_LOGS_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_TRACES_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_METRICS_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_LOGS_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE:"cumulative",OTEL_SEMCONV_STABILITY_OPT_IN:[]};function X(e,t,r){if(void 0!==r[e]){var n=String(r[e]);t[e]="true"===n.toLowerCase()}}function D(e,t,r,n,o){if(void 0===n&&(n=-1/0),void 0===o&&(o=1/0),void 0!==r[e]){var i=Number(r[e]);isNaN(i)||(t[e]=io?o:i)}}function B(e,t,r,n){void 0===n&&(n=",");var o=r[e];"string"==typeof o&&(t[e]=o.split(n).map(function(e){return e.trim()}))}var G={ALL:g.u.ALL,VERBOSE:g.u.VERBOSE,DEBUG:g.u.DEBUG,INFO:g.u.INFO,WARN:g.u.WARN,ERROR:g.u.ERROR,NONE:g.u.NONE};function k(e,t,r){var n=r[e];if("string"==typeof n){var o=G[n.toUpperCase()];null!=o&&(t[e]=o)}}var V=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},H=function(){function e(){this._MAX_LENGTH=255,this._COMMA_SEPARATOR=",",this._LABEL_KEY_VALUE_SPLITTER="=",this._ERROR_MESSAGE_INVALID_CHARS="should be a ASCII string with a length greater than 0 and not exceed "+this._MAX_LENGTH+" characters.",this._ERROR_MESSAGE_INVALID_VALUE="should be a ASCII string with a length not exceed "+this._MAX_LENGTH+" characters."}return e.prototype.detect=function(e){var t,r={},n=(t=function(e){var t={};for(var r in x){var n=r;if("OTEL_LOG_LEVEL"===n)k(n,t,e);else if(w(n))X(n,t,e);else if(N(n))D(n,t,e);else if(U(n))B(n,t,e);else{var o=e[n];null!=o&&(t[n]=String(o))}}return t}(process.env),Object.assign({},x,t)),o=n.OTEL_RESOURCE_ATTRIBUTES,a=n.OTEL_SERVICE_NAME;if(o)try{var u=this._parseResourceAttributes(o);Object.assign(r,u)}catch(e){i.s.debug("EnvDetector failed: "+e.message)}return a&&(r[s]=a),new p(r)},e.prototype._parseResourceAttributes=function(e){var t,r;if(!e)return{};var n={},o=e.split(this._COMMA_SEPARATOR,-1);try{for(var i=function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)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.")}(o),a=i.next();!a.done;a=i.next()){var u=a.value.split(this._LABEL_KEY_VALUE_SPLITTER,-1);if(2===u.length){var c=V(u,2),s=c[0],l=c[1];if(s=s.trim(),l=l.trim().split(/^"|"$/).join(""),!this._isValidAndNotEmpty(s))throw new Error("Attribute key "+this._ERROR_MESSAGE_INVALID_CHARS);if(!this._isValid(l))throw new Error("Attribute value "+this._ERROR_MESSAGE_INVALID_VALUE);n[s]=decodeURIComponent(l)}}}catch(e){t={error:e}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}return n},e.prototype._isValid=function(e){return e.length<=this._MAX_LENGTH&&this._isBaggageOctetString(e)},e.prototype._isBaggageOctetString=function(e){for(var t=0;t126)return!1}return!0},e.prototype._isValidAndNotEmpty=function(e){return e.length>0&&this._isValid(e)},e}(),F=new H,j=new(function(){function e(){}return e.prototype.detect=function(e){return Promise.resolve(F.detect(e))},e}()),K=function(){function e(){}return e.prototype.detect=function(e){var t,r=((t={})["os.type"]=function(e){switch(e){case"sunos":return"solaris";case"win32":return"windows";default:return e}}((0,d.platform)()),t["os.version"]=(0,d.release)(),t);return new p(r)},e}(),Y=new K,q=new(function(){function e(){}return e.prototype.detect=function(e){return Promise.resolve(Y.detect(e))},e}()),Z=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},W=function(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o1&&(r["process.command"]=process.argv[1]);try{var n=d.userInfo();r["process.owner"]=n.username}catch(e){i.s.debug("error obtaining process owner: "+e)}return new p(r)},e}(),$=new J,Q=new(function(){function e(){}return e.prototype.detect=function(e){return Promise.resolve($.detect(e))},e}());const z=require("crypto");var ee=function(){function e(){}return e.prototype.detect=function(e){var t,r=((t={})["service.instance.id"]=(0,z.randomUUID)(),t);return new p(r)},e}(),te=new ee,re=function(e,t,r,n){return new(r||(r=Promise))(function(o,i){function a(e){try{c(n.next(e))}catch(e){i(e)}}function u(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(a,u)}c((n=n.apply(e,t||[])).next())})},ne=function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]0){var t=JSON.stringify(e.attributes,null,4);i.s.verbose(t)}})};module.exports=n})(); \ No newline at end of file diff --git a/yarn.lock b/yarn.lock index 1677e93aeb9..055cd113ee0 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4077,6 +4077,11 @@ restore-cursor@^3.1.0: onetime "^5.1.0" signal-exit "^3.0.2" +retry@^0.13.1: + version "0.13.1" + resolved "https://registry.yarnpkg.com/retry/-/retry-0.13.1.tgz#185b1587acf67919d63b357349e03537b2484658" + integrity sha512-XQBQ3I8W1Cge0Seh+6gjj03LbmRFWuoszgK9ooCpwYIrhhoO80pfq4cUkU5DkknwfOfFteRwlZ56PYOGYyFWdg== + rimraf@^3.0.0: version "3.0.2" resolved "https://registry.yarnpkg.com/rimraf/-/rimraf-3.0.2.tgz#f1a5402ba6220ad52cc1282bac1ae3aa49fd061a" From 7f66343b6344174d5336a49ec6a1535d3d84c760 Mon Sep 17 00:00:00 2001 From: rochdev Date: Fri, 21 Nov 2025 08:49:23 -0500 Subject: [PATCH 09/95] add missing dependencies --- packages/node_modules/@opentelemetry/core.js | 2 +- packages/node_modules/@opentelemetry/resources.js | 2 +- packages/node_modules/retry/lib/retry_operation.js | 1 + packages/node_modules/source-map/lib/util.js | 1 + vendor/webpack.config.js | 7 +++++-- 5 files changed, 9 insertions(+), 4 deletions(-) create mode 100644 packages/node_modules/retry/lib/retry_operation.js create mode 100644 packages/node_modules/source-map/lib/util.js diff --git a/packages/node_modules/@opentelemetry/core.js b/packages/node_modules/@opentelemetry/core.js index 2fcf4fd71de..314e3b23ef0 100644 --- a/packages/node_modules/@opentelemetry/core.js +++ b/packages/node_modules/@opentelemetry/core.js @@ -1 +1 @@ -(()=>{"use strict";var t={d:(e,r)=>{for(var n in r)t.o(r,n)&&!t.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:r[n]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r:t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}},e={};t.r(e),t.d(e,{AlwaysOffSampler:()=>Ke,AlwaysOnSampler:()=>We,AnchoredClock:()=>z,BindOnceFuture:()=>Lr,CompositePropagator:()=>re,DEFAULT_ATTRIBUTE_COUNT_LIMIT:()=>Ut,DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT:()=>Mt,DEFAULT_ENVIRONMENT:()=>xt,DEFAULT_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT:()=>Dt,DEFAULT_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT:()=>Bt,ExportResultCode:()=>at,ParentBasedSampler:()=>Ye,RPCType:()=>Be,RandomIdGenerator:()=>zt,SDK_INFO:()=>qt,TRACE_PARENT_HEADER:()=>we,TRACE_STATE_HEADER:()=>Me,TimeoutError:()=>yr,TraceIdRatioBasedSampler:()=>ze,TraceState:()=>Ne,TracesSamplerValues:()=>ut,VERSION:()=>Qt,W3CBaggagePropagator:()=>Y,W3CTraceContextPropagator:()=>Xe,_globalThis:()=>Wt,addHrTimes:()=>St,baggageUtils:()=>mr,callWithTimeout:()=>dr,deleteRPCMetadata:()=>Ve,getEnv:()=>Ht,getEnvWithoutDefaults:()=>Kt,getRPCMetadata:()=>Fe,getTimeOrigin:()=>pt,globalErrorHandler:()=>it,hexToBase64:()=>Yt,hexToBinary:()=>Pt,hrTime:()=>Et,hrTimeDuration:()=>Ot,hrTimeToMicroseconds:()=>vt,hrTimeToMilliseconds:()=>gt,hrTimeToNanoseconds:()=>dt,hrTimeToTimeStamp:()=>yt,internal:()=>Ar,isAttributeKey:()=>q,isAttributeValue:()=>tt,isTimeInput:()=>Rt,isTimeInputHrTime:()=>ht,isTracingSuppressed:()=>V,isUrlIgnored:()=>hr,isWrapped:()=>Rr,loggingErrorHandler:()=>rt,merge:()=>ur,millisToHrTime:()=>_t,otperformance:()=>ct,parseEnvironment:()=>kt,parseTraceParent:()=>De,sanitizeAttributes:()=>Q,setGlobalErrorHandler:()=>ot,setRPCMetadata:()=>Ge,suppressTracing:()=>j,timeInputToHrTime:()=>Tt,unrefTimer:()=>te,unsuppressTracing:()=>G,urlMatches:()=>vr});var r="object"==typeof globalThis?globalThis:global,n="1.9.0",o=/^(\d+)\.(\d+)\.(\d+)(-(.+))?$/,i=function(t){var e=new Set([t]),r=new Set,n=t.match(o);if(!n)return function(){return!1};var i=+n[1],a=+n[2],u=+n[3];if(null!=n[4])return function(e){return e===t};function c(t){return r.add(t),!1}function l(t){return e.add(t),!0}return function(t){if(e.has(t))return!0;if(r.has(t))return!1;var n=t.match(o);if(!n)return c(t);var f=+n[1],s=+n[2],_=+n[3];return null!=n[4]||i!==f?c(t):0===i?a===s&&u<=_?l(t):c(t):a<=s?l(t):c(t)}}(n),a=n.split(".")[0],u=Symbol.for("opentelemetry.js.api."+a),c=r;function l(t,e,r,o){var i;void 0===o&&(o=!1);var a=c[u]=null!==(i=c[u])&&void 0!==i?i:{version:n};if(!o&&a[t]){var l=new Error("@opentelemetry/api: Attempted duplicate registration of API: "+t);return r.error(l.stack||l.message),!1}return a.version!==n?(l=new Error("@opentelemetry/api: Registration of version v"+a.version+" for "+t+" does not match previously registered API v"+n),r.error(l.stack||l.message),!1):(a[t]=e,r.debug("@opentelemetry/api: Registered a global for "+t+" v"+n+"."),!0)}function f(t){var e,r,n=null===(e=c[u])||void 0===e?void 0:e.version;if(n&&i(n))return null===(r=c[u])||void 0===r?void 0:r[t]}function s(t,e){e.debug("@opentelemetry/api: Unregistering a global for "+t+" v"+n+".");var r=c[u];r&&delete r[t]}var _=function(){function t(){}return t.prototype.inject=function(t,e){},t.prototype.extract=function(t,e){return t},t.prototype.fields=function(){return[]},t}(),p={get:function(t,e){if(null!=t)return t[e]},keys:function(t){return null==t?[]:Object.keys(t)}},E={set:function(t,e,r){null!=t&&(t[e]=r)}};function T(t){return Symbol.for(t)}var O,y=new function t(e){var r=this;r._currentContext=e?new Map(e):new Map,r.getValue=function(t){return r._currentContext.get(t)},r.setValue=function(e,n){var o=new t(r._currentContext);return o._currentContext.set(e,n),o},r.deleteValue=function(e){var n=new t(r._currentContext);return n._currentContext.delete(e),n}},d=function(){function t(){}return t.prototype.active=function(){return y},t.prototype.with=function(t,e,r){for(var n=[],o=3;o0)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}(n),!1))},t.prototype.bind=function(t,e){return e},t.prototype.enable=function(){return this},t.prototype.disable=function(){return this},t}(),g=function(){function t(t){this._namespace=t.namespace||"DiagComponentLogger"}return t.prototype.debug=function(){for(var t=[],e=0;e0)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}(r),!1))}!function(t){t[t.NONE=0]="NONE",t[t.ERROR=30]="ERROR",t[t.WARN=50]="WARN",t[t.INFO=60]="INFO",t[t.DEBUG=70]="DEBUG",t[t.VERBOSE=80]="VERBOSE",t[t.ALL=9999]="ALL"}(O||(O={}));var h=function(){function t(){function t(t){return function(){for(var e=[],r=0;r0)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}(e),!1))}}var e=this;e.setLogger=function(t,r){var n,o,i;if(void 0===r&&(r={logLevel:O.INFO}),t===e){var a=new Error("Cannot use diag as the logger for itself. Please use a DiagLogger implementation like ConsoleDiagLogger or a custom implementation");return e.error(null!==(n=a.stack)&&void 0!==n?n:a.message),!1}"number"==typeof r&&(r={logLevel:r});var u=f("diag"),c=function(t,e){function r(r,n){var o=e[r];return"function"==typeof o&&t>=n?o.bind(e):function(){}}return tO.ALL&&(t=O.ALL),e=e||{},{error:r("error",O.ERROR),warn:r("warn",O.WARN),info:r("info",O.INFO),debug:r("debug",O.DEBUG),verbose:r("verbose",O.VERBOSE)}}(null!==(o=r.logLevel)&&void 0!==o?o:O.INFO,t);if(u&&!r.suppressOverrideMessage){var s=null!==(i=(new Error).stack)&&void 0!==i?i:"";u.warn("Current logger will be overwritten from "+s),c.warn("Current logger will overwrite one already registered from "+s)}return l("diag",c,e,!0)},e.disable=function(){s("diag",e)},e.createComponentLogger=function(t){return new g(t)},e.verbose=t("verbose"),e.debug=t("debug"),e.info=t("info"),e.warn=t("warn"),e.error=t("error")}return t.instance=function(){return this._instance||(this._instance=new t),this._instance},t}(),R="context",S=new d,L=function(){function t(){}return t.getInstance=function(){return this._instance||(this._instance=new t),this._instance},t.prototype.setGlobalContextManager=function(t){return l(R,t,h.instance())},t.prototype.active=function(){return this._getContextManager().active()},t.prototype.with=function(t,e,r){for(var n,o=[],i=3;i0)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}(o),!1))},t.prototype.bind=function(t,e){return this._getContextManager().bind(t,e)},t.prototype._getContextManager=function(){return f(R)||S},t.prototype.disable=function(){this._getContextManager().disable(),s(R,h.instance())},t}(),P=T("OpenTelemetry Baggage Key");function m(t){return t.getValue(P)||void 0}function A(){return m(L.getInstance().active())}function I(t,e){return t.setValue(P,e)}function C(t){return t.deleteValue(P)}var b=function(){function t(t){this._entries=t?new Map(t):new Map}return t.prototype.getEntry=function(t){var e=this._entries.get(t);if(e)return Object.assign({},e)},t.prototype.getAllEntries=function(){return Array.from(this._entries.entries()).map(function(t){var e=function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}(t,2);return[e[0],e[1]]})},t.prototype.setEntry=function(e,r){var n=new t(this._entries);return n._entries.set(e,r),n},t.prototype.removeEntry=function(e){var r=new t(this._entries);return r._entries.delete(e),r},t.prototype.removeEntries=function(){for(var e,r,n=[],o=0;o=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}(n),u=a.next();!u.done;u=a.next()){var c=u.value;i._entries.delete(c)}}catch(t){e={error:t}}finally{try{u&&!u.done&&(r=a.return)&&r.call(a)}finally{if(e)throw e.error}}return i},t.prototype.clear=function(){return new t},t}(),N=Symbol("BaggageEntryMetadata"),w=h.instance();function M(t){return void 0===t&&(t={}),new b(new Map(Object.entries(t)))}var U="propagation",D=new _,B=function(){function t(){this.createBaggage=M,this.getBaggage=m,this.getActiveBaggage=A,this.setBaggage=I,this.deleteBaggage=C}return t.getInstance=function(){return this._instance||(this._instance=new t),this._instance},t.prototype.setGlobalPropagator=function(t){return l(U,t,h.instance())},t.prototype.inject=function(t,e,r){return void 0===r&&(r=E),this._getGlobalPropagator().inject(t,e,r)},t.prototype.extract=function(t,e,r){return void 0===r&&(r=p),this._getGlobalPropagator().extract(t,e,r)},t.prototype.fields=function(){return this._getGlobalPropagator().fields()},t.prototype.disable=function(){s(U,h.instance())},t.prototype._getGlobalPropagator=function(){return f(U)||D},t}(),x=B.getInstance(),X=T("OpenTelemetry SDK Context Key SUPPRESS_TRACING");function j(t){return t.setValue(X,!0)}function G(t){return t.deleteValue(X)}function V(t){return!0===t.getValue(X)}var F=",",k="baggage";function H(t){return t.reduce(function(t,e){var r=""+t+(""!==t?F:"")+e;return r.length>8192?t:r},"")}function K(t){return t.getAllEntries().map(function(t){var e=function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}(t,2),r=e[0],n=e[1],o=encodeURIComponent(r)+"="+encodeURIComponent(n.value);return void 0!==n.metadata&&(o+=";"+n.metadata.toString()),o})}function W(t){var e=t.split(";");if(!(e.length<=0)){var r=e.shift();if(r){var n=r.indexOf("=");if(!(n<=0)){var o,i,a=decodeURIComponent(r.substring(0,n).trim()),u=decodeURIComponent(r.substring(n+1).trim());return e.length>0&&("string"!=typeof(i=e.join(";"))&&(w.error("Cannot create baggage metadata from unknown type: "+typeof i),i=""),o={__TYPE__:N,toString:function(){return i}}),{key:a,value:u,metadata:o}}}}}var Y=function(){function t(){}return t.prototype.inject=function(t,e,r){var n=x.getBaggage(t);if(n&&!V(t)){var o=H(K(n).filter(function(t){return t.length<=4096}).slice(0,180));o.length>0&&r.set(e,k,o)}},t.prototype.extract=function(t,e,r){var n=r.get(e,k),o=Array.isArray(n)?n.join(F):n;if(!o)return t;var i={};return 0===o.length?t:(o.split(F).forEach(function(t){var e=W(t);if(e){var r={value:e.value};e.metadata&&(r.metadata=e.metadata),i[e.key]=r}}),0===Object.entries(i).length?t:x.setBaggage(t,x.createBaggage(i)))},t.prototype.fields=function(){return[k]},t}(),z=function(){function t(t,e){this._monotonicClock=e,this._epochMillis=t.now(),this._performanceMillis=e.now()}return t.prototype.now=function(){var t=this._monotonicClock.now()-this._performanceMillis;return this._epochMillis+t},t}(),Z=h.instance(),J=function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},$=function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a};function Q(t){var e,r,n={};if("object"!=typeof t||null==t)return n;try{for(var o=J(Object.entries(t)),i=o.next();!i.done;i=o.next()){var a=$(i.value,2),u=a[0],c=a[1];q(u)?tt(c)?Array.isArray(c)?n[u]=c.slice():n[u]=c:Z.warn("Invalid attribute value set for key: "+u):Z.warn("Invalid attribute key: "+u)}}catch(t){e={error:t}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(e)throw e.error}}return n}function q(t){return"string"==typeof t&&t.length>0}function tt(t){return null==t||(Array.isArray(t)?function(t){var e,r,n;try{for(var o=J(t),i=o.next();!i.done;i=o.next()){var a=i.value;if(null!=a){if(!n){if(et(a)){n=typeof a;continue}return!1}if(typeof a!==n)return!1}}}catch(t){e={error:t}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(e)throw e.error}}return!0}(t):et(t))}function et(t){switch(typeof t){case"number":case"boolean":case"string":return!0}return!1}function rt(){return function(t){Z.error(function(t){return"string"==typeof t?t:JSON.stringify(function(t){for(var e={},r=t;null!==r;)Object.getOwnPropertyNames(r).forEach(function(t){if(!e[t]){var n=r[t];n&&(e[t]=String(n))}}),r=Object.getPrototypeOf(r);return e}(t))}(t))}}var nt=rt();function ot(t){nt=t}function it(t){try{nt(t)}catch(t){}}var at,ut,ct=require("perf_hooks").performance,lt=9,ft=Math.pow(10,6),st=Math.pow(10,lt);function _t(t){var e=t/1e3;return[Math.trunc(e),Math.round(t%1e3*ft)]}function pt(){var t=ct.timeOrigin;if("number"!=typeof t){var e=ct;t=e.timing&&e.timing.fetchStart}return t}function Et(t){return St(_t(pt()),_t("number"==typeof t?t:ct.now()))}function Tt(t){if(ht(t))return t;if("number"==typeof t)return t=st&&(r[1]-=st,r[0]+=1),r}function Lt(t){return t>=48&&t<=57?t-48:t>=97&&t<=102?t-87:t-55}function Pt(t){for(var e=new Uint8Array(t.length/2),r=0,n=0;n-1}var Ct=["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 bt(t){return Ct.indexOf(t)>-1}var Nt=["OTEL_NO_PATCH_MODULES","OTEL_PROPAGATORS","OTEL_SEMCONV_STABILITY_OPT_IN"];function wt(t){return Nt.indexOf(t)>-1}var Mt=1/0,Ut=128,Dt=128,Bt=128,xt={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:O.INFO,OTEL_NO_PATCH_MODULES:[],OTEL_PROPAGATORS:["tracecontext","baggage"],OTEL_RESOURCE_ATTRIBUTES:"",OTEL_SERVICE_NAME:"",OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT:Mt,OTEL_ATTRIBUTE_COUNT_LIMIT:Ut,OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT:Mt,OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT:Ut,OTEL_LOGRECORD_ATTRIBUTE_VALUE_LENGTH_LIMIT:Mt,OTEL_LOGRECORD_ATTRIBUTE_COUNT_LIMIT:Ut,OTEL_SPAN_EVENT_COUNT_LIMIT:128,OTEL_SPAN_LINK_COUNT_LIMIT:128,OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT:Dt,OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT:Bt,OTEL_TRACES_EXPORTER:"",OTEL_TRACES_SAMPLER:ut.ParentBasedAlwaysOn,OTEL_TRACES_SAMPLER_ARG:"",OTEL_LOGS_EXPORTER:"",OTEL_EXPORTER_OTLP_INSECURE:"",OTEL_EXPORTER_OTLP_TRACES_INSECURE:"",OTEL_EXPORTER_OTLP_METRICS_INSECURE:"",OTEL_EXPORTER_OTLP_LOGS_INSECURE:"",OTEL_EXPORTER_OTLP_CERTIFICATE:"",OTEL_EXPORTER_OTLP_TRACES_CERTIFICATE:"",OTEL_EXPORTER_OTLP_METRICS_CERTIFICATE:"",OTEL_EXPORTER_OTLP_LOGS_CERTIFICATE:"",OTEL_EXPORTER_OTLP_COMPRESSION:"",OTEL_EXPORTER_OTLP_TRACES_COMPRESSION:"",OTEL_EXPORTER_OTLP_METRICS_COMPRESSION:"",OTEL_EXPORTER_OTLP_LOGS_COMPRESSION:"",OTEL_EXPORTER_OTLP_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_TRACES_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_METRICS_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_LOGS_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_TRACES_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_METRICS_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_LOGS_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_TRACES_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_METRICS_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_LOGS_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE:"cumulative",OTEL_SEMCONV_STABILITY_OPT_IN:[]};function Xt(t,e,r){if(void 0!==r[t]){var n=String(r[t]);e[t]="true"===n.toLowerCase()}}function jt(t,e,r,n,o){if(void 0===n&&(n=-1/0),void 0===o&&(o=1/0),void 0!==r[t]){var i=Number(r[t]);isNaN(i)||(e[t]=io?o:i)}}function Gt(t,e,r,n){void 0===n&&(n=mt);var o=r[t];"string"==typeof o&&(e[t]=o.split(n).map(function(t){return t.trim()}))}var Vt={ALL:O.ALL,VERBOSE:O.VERBOSE,DEBUG:O.DEBUG,INFO:O.INFO,WARN:O.WARN,ERROR:O.ERROR,NONE:O.NONE};function Ft(t,e,r){var n=r[t];if("string"==typeof n){var o=Vt[n.toUpperCase()];null!=o&&(e[t]=o)}}function kt(t){var e={};for(var r in xt){var n=r;if("OTEL_LOG_LEVEL"===n)Ft(n,e,t);else if(It(n))Xt(n,e,t);else if(bt(n))jt(n,e,t);else if(wt(n))Gt(n,e,t);else{var o=t[n];null!=o&&(e[n]=String(o))}}return e}function Ht(){var t=kt(process.env);return Object.assign({},xt,t)}function Kt(){return kt(process.env)}var Wt="object"==typeof globalThis?globalThis:global;function Yt(t){return Buffer.from(Pt(t)).toString("base64")}var zt=function(){this.generateTraceId=Jt(16),this.generateSpanId=Jt(8)},Zt=Buffer.allocUnsafe(16);function Jt(t){return function(){for(var e=0;e>>0,4*e);for(e=0;e0);e++)e===t-1&&(Zt[t-1]=1);return Zt.toString("hex",0,t)}}var $t,Qt="1.30.1",qt=(($t={})["telemetry.sdk.name"]="opentelemetry",$t["process.runtime.name"]="node",$t["telemetry.sdk.language"]="nodejs",$t["telemetry.sdk.version"]=Qt,$t);function te(t){t.unref()}var ee,re=function(){function t(t){var e;void 0===t&&(t={}),this._propagators=null!==(e=t.propagators)&&void 0!==e?e:[],this._fields=Array.from(new Set(this._propagators.map(function(t){return"function"==typeof t.fields?t.fields():[]}).reduce(function(t,e){return t.concat(e)},[])))}return t.prototype.inject=function(t,e,r){var n,o;try{for(var i=function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}(this._propagators),a=i.next();!a.done;a=i.next()){var u=a.value;try{u.inject(t,e,r)}catch(t){Z.warn("Failed to inject with "+u.constructor.name+". Err: "+t.message)}}}catch(t){n={error:t}}finally{try{a&&!a.done&&(o=i.return)&&o.call(i)}finally{if(n)throw n.error}}},t.prototype.extract=function(t,e,r){return this._propagators.reduce(function(t,n){try{return n.extract(t,e,r)}catch(t){Z.warn("Failed to extract with "+n.constructor.name+". Err: "+t.message)}return t},t)},t.prototype.fields=function(){return this._fields.slice()},t}();!function(t){t[t.NONE=0]="NONE",t[t.SAMPLED=1]="SAMPLED"}(ee||(ee={}));var ne="0000000000000000",oe="00000000000000000000000000000000",ie={traceId:oe,spanId:ne,traceFlags:ee.NONE},ae=function(){function t(t){void 0===t&&(t=ie),this._spanContext=t}return t.prototype.spanContext=function(){return this._spanContext},t.prototype.setAttribute=function(t,e){return this},t.prototype.setAttributes=function(t){return this},t.prototype.addEvent=function(t,e){return this},t.prototype.addLink=function(t){return this},t.prototype.addLinks=function(t){return this},t.prototype.setStatus=function(t){return this},t.prototype.updateName=function(t){return this},t.prototype.end=function(t){},t.prototype.isRecording=function(){return!1},t.prototype.recordException=function(t,e){},t}(),ue=T("OpenTelemetry Context Key SPAN");function ce(t){return t.getValue(ue)||void 0}function le(){return ce(L.getInstance().active())}function fe(t,e){return t.setValue(ue,e)}function se(t){return t.deleteValue(ue)}function _e(t,e){return fe(t,new ae(e))}function pe(t){var e;return null===(e=ce(t))||void 0===e?void 0:e.spanContext()}var Ee=/^([0-9a-f]{32})$/i,Te=/^[0-9a-f]{16}$/i;function Oe(t){return Ee.test(t)&&t!==oe}function ye(t){return Oe(t.traceId)&&(e=t.spanId,Te.test(e)&&e!==ne);var e}function de(t){return new ae(t)}var ge=L.getInstance(),ve=function(){function t(){}return t.prototype.startSpan=function(t,e,r){if(void 0===r&&(r=ge.active()),Boolean(null==e?void 0:e.root))return new ae;var n,o=r&&pe(r);return"object"==typeof(n=o)&&"string"==typeof n.spanId&&"string"==typeof n.traceId&&"number"==typeof n.traceFlags&&ye(o)?new ae(o):new ae},t.prototype.startActiveSpan=function(t,e,r,n){var o,i,a;if(!(arguments.length<2)){2===arguments.length?a=e:3===arguments.length?(o=e,a=r):(o=e,i=r,a=n);var u=null!=i?i:ge.active(),c=this.startSpan(t,o,u),l=fe(u,c);return ge.with(l,a,void 0,c)}},t}(),he=new ve,Re=function(){function t(t,e,r,n){this._provider=t,this.name=e,this.version=r,this.options=n}return t.prototype.startSpan=function(t,e,r){return this._getTracer().startSpan(t,e,r)},t.prototype.startActiveSpan=function(t,e,r,n){var o=this._getTracer();return Reflect.apply(o.startActiveSpan,o,arguments)},t.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):he},t}(),Se=new(function(){function t(){}return t.prototype.getTracer=function(t,e,r){return new ve},t}()),Le=function(){function t(){}return t.prototype.getTracer=function(t,e,r){var n;return null!==(n=this.getDelegateTracer(t,e,r))&&void 0!==n?n:new Re(this,t,e,r)},t.prototype.getDelegate=function(){var t;return null!==(t=this._delegate)&&void 0!==t?t:Se},t.prototype.setDelegate=function(t){this._delegate=t},t.prototype.getDelegateTracer=function(t,e,r){var n;return null===(n=this._delegate)||void 0===n?void 0:n.getTracer(t,e,r)},t}(),Pe="trace",me=function(){function t(){this._proxyTracerProvider=new Le,this.wrapSpanContext=de,this.isSpanContextValid=ye,this.deleteSpan=se,this.getSpan=ce,this.getActiveSpan=le,this.getSpanContext=pe,this.setSpan=fe,this.setSpanContext=_e}return t.getInstance=function(){return this._instance||(this._instance=new t),this._instance},t.prototype.setGlobalTracerProvider=function(t){var e=l(Pe,this._proxyTracerProvider,h.instance());return e&&this._proxyTracerProvider.setDelegate(t),e},t.prototype.getTracerProvider=function(){return f(Pe)||this._proxyTracerProvider},t.prototype.getTracer=function(t,e){return this.getTracerProvider().getTracer(t,e)},t.prototype.disable=function(){s(Pe,h.instance()),this._proxyTracerProvider=new Le},t}().getInstance(),Ae="[_0-9a-z-*/]",Ie=new RegExp("^(?:[a-z]"+Ae+"{0,255}|[a-z0-9]"+Ae+"{0,240}@[a-z]"+Ae+"{0,13})$"),Ce=/^[ -~]{0,255}[!-~]$/,be=/,|=/,Ne=function(){function t(t){this._internalState=new Map,t&&this._parse(t)}return t.prototype.set=function(t,e){var r=this._clone();return r._internalState.has(t)&&r._internalState.delete(t),r._internalState.set(t,e),r},t.prototype.unset=function(t){var e=this._clone();return e._internalState.delete(t),e},t.prototype.get=function(t){return this._internalState.get(t)},t.prototype.serialize=function(){var t=this;return this._keys().reduce(function(e,r){return e.push(r+"="+t.get(r)),e},[]).join(",")},t.prototype._parse=function(t){t.length>512||(this._internalState=t.split(",").reverse().reduce(function(t,e){var r=e.trim(),n=r.indexOf("=");if(-1!==n){var o=r.slice(0,n),i=r.slice(n+1,e.length);(function(t){return Ie.test(t)})(o)&&function(t){return Ce.test(t)&&!be.test(t)}(i)&&t.set(o,i)}return t},new Map),this._internalState.size>32&&(this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,32))))},t.prototype._keys=function(){return Array.from(this._internalState.keys()).reverse()},t.prototype._clone=function(){var e=new t;return e._internalState=new Map(this._internalState),e},t}(),we="traceparent",Me="tracestate",Ue=new RegExp("^\\s?((?!ff)[\\da-f]{2})-((?![0]{32})[\\da-f]{32})-((?![0]{16})[\\da-f]{16})-([\\da-f]{2})(-.*)?\\s?$");function De(t){var e=Ue.exec(t);return e?"00"===e[1]&&e[5]?null:{traceId:e[2],spanId:e[3],traceFlags:parseInt(e[4],16)}:null}var Be,xe,Xe=function(){function t(){}return t.prototype.inject=function(t,e,r){var n=me.getSpanContext(t);if(n&&!V(t)&&ye(n)){var o="00-"+n.traceId+"-"+n.spanId+"-0"+Number(n.traceFlags||ee.NONE).toString(16);r.set(e,we,o),n.traceState&&r.set(e,Me,n.traceState.serialize())}},t.prototype.extract=function(t,e,r){var n=r.get(e,we);if(!n)return t;var o=Array.isArray(n)?n[0]:n;if("string"!=typeof o)return t;var i=De(o);if(!i)return t;i.isRemote=!0;var a=r.get(e,Me);if(a){var u=Array.isArray(a)?a.join(","):a;i.traceState=new Ne("string"==typeof u?u:void 0)}return me.setSpanContext(t,i)},t.prototype.fields=function(){return[we,Me]},t}(),je=T("OpenTelemetry SDK Context Key RPC_METADATA");function Ge(t,e){return t.setValue(je,e)}function Ve(t){return t.deleteValue(je)}function Fe(t){return t.getValue(je)}!function(t){t.HTTP="http"}(Be||(Be={})),function(t){t[t.NOT_RECORD=0]="NOT_RECORD",t[t.RECORD=1]="RECORD",t[t.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"}(xe||(xe={}));var ke,He,Ke=function(){function t(){}return t.prototype.shouldSample=function(){return{decision:xe.NOT_RECORD}},t.prototype.toString=function(){return"AlwaysOffSampler"},t}(),We=function(){function t(){}return t.prototype.shouldSample=function(){return{decision:xe.RECORD_AND_SAMPLED}},t.prototype.toString=function(){return"AlwaysOnSampler"},t}(),Ye=function(){function t(t){var e,r,n,o;this._root=t.root,this._root||(it(new Error("ParentBasedSampler must have a root sampler configured")),this._root=new We),this._remoteParentSampled=null!==(e=t.remoteParentSampled)&&void 0!==e?e:new We,this._remoteParentNotSampled=null!==(r=t.remoteParentNotSampled)&&void 0!==r?r:new Ke,this._localParentSampled=null!==(n=t.localParentSampled)&&void 0!==n?n:new We,this._localParentNotSampled=null!==(o=t.localParentNotSampled)&&void 0!==o?o:new Ke}return t.prototype.shouldSample=function(t,e,r,n,o,i){var a=me.getSpanContext(t);return a&&ye(a)?a.isRemote?a.traceFlags&ee.SAMPLED?this._remoteParentSampled.shouldSample(t,e,r,n,o,i):this._remoteParentNotSampled.shouldSample(t,e,r,n,o,i):a.traceFlags&ee.SAMPLED?this._localParentSampled.shouldSample(t,e,r,n,o,i):this._localParentNotSampled.shouldSample(t,e,r,n,o,i):this._root.shouldSample(t,e,r,n,o,i)},t.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()+"}"},t}(),ze=function(){function t(t){void 0===t&&(t=0),this._ratio=t,this._ratio=this._normalize(t),this._upperBound=Math.floor(4294967295*this._ratio)}return t.prototype.shouldSample=function(t,e){return{decision:Oe(e)&&this._accumulate(e)=1?1:t<=0?0:t},t.prototype._accumulate=function(t){for(var e=0,r=0;r>>0}return e},t}(),Ze="[object Object]",Je="[object Null]",$e="[object Undefined]",Qe=Function.prototype.toString,qe=Qe.call(Object),tr=(ke=Object.getPrototypeOf,He=Object,function(t){return ke(He(t))}),er=Object.prototype,rr=er.hasOwnProperty,nr=Symbol?Symbol.toStringTag:void 0,or=er.toString;function ir(t){if(!function(t){return null!=t&&"object"==typeof t}(t)||function(t){return null==t?void 0===t?$e:Je:nr&&nr in Object(t)?function(t){var e=rr.call(t,nr),r=t[nr],n=!1;try{t[nr]=void 0,n=!0}catch(t){}var o=or.call(t);return n&&(e?t[nr]=r:delete t[nr]),o}(t):function(t){return or.call(t)}(t)}(t)!==Ze)return!1;var e=tr(t);if(null===e)return!0;var r=rr.call(e,"constructor")&&e.constructor;return"function"==typeof r&&r instanceof r&&Qe.call(r)===qe}var ar=20;function ur(){for(var t=[],e=0;e0;)r=lr(r,t.shift(),0,n);return r}function cr(t){return sr(t)?t.slice():t}function lr(t,e,r,n){var o;if(void 0===r&&(r=0),!(r>ar)){if(r++,Er(t)||Er(e)||_r(e))o=cr(e);else if(sr(t)){if(o=t.slice(),sr(e))for(var i=0,a=e.length;i=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};function vr(t,e){return"string"==typeof e?t===e:!!t.match(e)}function hr(t,e){var r,n;if(!e)return!1;try{for(var o=gr(e),i=o.next();!i.done;i=o.next())if(vr(t,i.value))return!0}catch(t){r={error:t}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return!1}function Rr(t){return"function"==typeof t&&"function"==typeof t.__original&&"function"==typeof t.__unwrap&&!0===t.__wrapped}var Sr=function(){function t(){var t=this;this._promise=new Promise(function(e,r){t._resolve=e,t._reject=r})}return Object.defineProperty(t.prototype,"promise",{get:function(){return this._promise},enumerable:!1,configurable:!0}),t.prototype.resolve=function(t){this._resolve(t)},t.prototype.reject=function(t){this._reject(t)},t}(),Lr=function(){function t(t,e){this._callback=t,this._that=e,this._isCalled=!1,this._deferred=new Sr}return Object.defineProperty(t.prototype,"isCalled",{get:function(){return this._isCalled},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"promise",{get:function(){return this._deferred.promise},enumerable:!1,configurable:!0}),t.prototype.call=function(){for(var t,e=this,r=[],n=0;n0)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}(r),!1))).then(function(t){return e._deferred.resolve(t)},function(t){return e._deferred.reject(t)})}catch(t){this._deferred.reject(t)}}return this._deferred.promise},t}(),Pr=L.getInstance(),mr={getKeyPairs:K,serializeKeyPairs:H,parseKeyPairsIntoRecord:function(t){return"string"!=typeof t||0===t.length?{}:t.split(F).map(function(t){return W(t)}).filter(function(t){return void 0!==t&&t.value.length>0}).reduce(function(t,e){return t[e.key]=e.value,t},{})},parsePairKeyValue:W},Ar={_export:function(t,e){return new Promise(function(r){Pr.with(j(Pr.active()),function(){t.export(e,function(t){r(t)})})})}};module.exports=e})(); \ No newline at end of file +(()=>{"use strict";var t={d:(e,r)=>{for(var n in r)t.o(r,n)&&!t.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:r[n]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r:t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}},e={};t.r(e),t.d(e,{AlwaysOffSampler:()=>Ke,AlwaysOnSampler:()=>We,AnchoredClock:()=>z,BindOnceFuture:()=>Lr,CompositePropagator:()=>re,DEFAULT_ATTRIBUTE_COUNT_LIMIT:()=>Vt,DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT:()=>Gt,DEFAULT_ENVIRONMENT:()=>Ht,DEFAULT_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT:()=>Ft,DEFAULT_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT:()=>kt,ExportResultCode:()=>at,ParentBasedSampler:()=>Ye,RPCType:()=>Be,RandomIdGenerator:()=>Pt,SDK_INFO:()=>Nt,TRACE_PARENT_HEADER:()=>we,TRACE_STATE_HEADER:()=>Me,TimeoutError:()=>yr,TraceIdRatioBasedSampler:()=>ze,TraceState:()=>Ne,TracesSamplerValues:()=>Ct,VERSION:()=>bt,W3CBaggagePropagator:()=>Y,W3CTraceContextPropagator:()=>Xe,_globalThis:()=>wt,addHrTimes:()=>Rt,baggageUtils:()=>mr,callWithTimeout:()=>dr,deleteRPCMetadata:()=>Ve,getEnv:()=>$t,getEnvWithoutDefaults:()=>Qt,getRPCMetadata:()=>Fe,getTimeOrigin:()=>_t,globalErrorHandler:()=>it,hexToBase64:()=>qt,hexToBinary:()=>Lt,hrTime:()=>pt,hrTimeDuration:()=>Tt,hrTimeToMicroseconds:()=>gt,hrTimeToMilliseconds:()=>dt,hrTimeToNanoseconds:()=>yt,hrTimeToTimeStamp:()=>Ot,internal:()=>Ar,isAttributeKey:()=>q,isAttributeValue:()=>tt,isTimeInput:()=>ht,isTimeInputHrTime:()=>vt,isTracingSuppressed:()=>V,isUrlIgnored:()=>hr,isWrapped:()=>Rr,loggingErrorHandler:()=>rt,merge:()=>ur,millisToHrTime:()=>st,otperformance:()=>ut,parseEnvironment:()=>Jt,parseTraceParent:()=>De,sanitizeAttributes:()=>Q,setGlobalErrorHandler:()=>ot,setRPCMetadata:()=>Ge,suppressTracing:()=>j,timeInputToHrTime:()=>Et,unrefTimer:()=>te,unsuppressTracing:()=>G,urlMatches:()=>vr});var r="object"==typeof globalThis?globalThis:global,n="1.9.0",o=/^(\d+)\.(\d+)\.(\d+)(-(.+))?$/,i=function(t){var e=new Set([t]),r=new Set,n=t.match(o);if(!n)return function(){return!1};var i=+n[1],a=+n[2],u=+n[3];if(null!=n[4])return function(e){return e===t};function c(t){return r.add(t),!1}function l(t){return e.add(t),!0}return function(t){if(e.has(t))return!0;if(r.has(t))return!1;var n=t.match(o);if(!n)return c(t);var f=+n[1],s=+n[2],_=+n[3];return null!=n[4]||i!==f?c(t):0===i?a===s&&u<=_?l(t):c(t):a<=s?l(t):c(t)}}(n),a=n.split(".")[0],u=Symbol.for("opentelemetry.js.api."+a),c=r;function l(t,e,r,o){var i;void 0===o&&(o=!1);var a=c[u]=null!==(i=c[u])&&void 0!==i?i:{version:n};if(!o&&a[t]){var l=new Error("@opentelemetry/api: Attempted duplicate registration of API: "+t);return r.error(l.stack||l.message),!1}return a.version!==n?(l=new Error("@opentelemetry/api: Registration of version v"+a.version+" for "+t+" does not match previously registered API v"+n),r.error(l.stack||l.message),!1):(a[t]=e,r.debug("@opentelemetry/api: Registered a global for "+t+" v"+n+"."),!0)}function f(t){var e,r,n=null===(e=c[u])||void 0===e?void 0:e.version;if(n&&i(n))return null===(r=c[u])||void 0===r?void 0:r[t]}function s(t,e){e.debug("@opentelemetry/api: Unregistering a global for "+t+" v"+n+".");var r=c[u];r&&delete r[t]}var _=function(){function t(){}return t.prototype.inject=function(t,e){},t.prototype.extract=function(t,e){return t},t.prototype.fields=function(){return[]},t}(),p={get:function(t,e){if(null!=t)return t[e]},keys:function(t){return null==t?[]:Object.keys(t)}},E={set:function(t,e,r){null!=t&&(t[e]=r)}};function T(t){return Symbol.for(t)}var O,y=new function t(e){var r=this;r._currentContext=e?new Map(e):new Map,r.getValue=function(t){return r._currentContext.get(t)},r.setValue=function(e,n){var o=new t(r._currentContext);return o._currentContext.set(e,n),o},r.deleteValue=function(e){var n=new t(r._currentContext);return n._currentContext.delete(e),n}},d=function(){function t(){}return t.prototype.active=function(){return y},t.prototype.with=function(t,e,r){for(var n=[],o=3;o0)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}(n),!1))},t.prototype.bind=function(t,e){return e},t.prototype.enable=function(){return this},t.prototype.disable=function(){return this},t}(),g=function(){function t(t){this._namespace=t.namespace||"DiagComponentLogger"}return t.prototype.debug=function(){for(var t=[],e=0;e0)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}(r),!1))}!function(t){t[t.NONE=0]="NONE",t[t.ERROR=30]="ERROR",t[t.WARN=50]="WARN",t[t.INFO=60]="INFO",t[t.DEBUG=70]="DEBUG",t[t.VERBOSE=80]="VERBOSE",t[t.ALL=9999]="ALL"}(O||(O={}));var h=function(){function t(){function t(t){return function(){for(var e=[],r=0;r0)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}(e),!1))}}var e=this;e.setLogger=function(t,r){var n,o,i;if(void 0===r&&(r={logLevel:O.INFO}),t===e){var a=new Error("Cannot use diag as the logger for itself. Please use a DiagLogger implementation like ConsoleDiagLogger or a custom implementation");return e.error(null!==(n=a.stack)&&void 0!==n?n:a.message),!1}"number"==typeof r&&(r={logLevel:r});var u=f("diag"),c=function(t,e){function r(r,n){var o=e[r];return"function"==typeof o&&t>=n?o.bind(e):function(){}}return tO.ALL&&(t=O.ALL),e=e||{},{error:r("error",O.ERROR),warn:r("warn",O.WARN),info:r("info",O.INFO),debug:r("debug",O.DEBUG),verbose:r("verbose",O.VERBOSE)}}(null!==(o=r.logLevel)&&void 0!==o?o:O.INFO,t);if(u&&!r.suppressOverrideMessage){var s=null!==(i=(new Error).stack)&&void 0!==i?i:"";u.warn("Current logger will be overwritten from "+s),c.warn("Current logger will overwrite one already registered from "+s)}return l("diag",c,e,!0)},e.disable=function(){s("diag",e)},e.createComponentLogger=function(t){return new g(t)},e.verbose=t("verbose"),e.debug=t("debug"),e.info=t("info"),e.warn=t("warn"),e.error=t("error")}return t.instance=function(){return this._instance||(this._instance=new t),this._instance},t}(),R="context",S=new d,L=function(){function t(){}return t.getInstance=function(){return this._instance||(this._instance=new t),this._instance},t.prototype.setGlobalContextManager=function(t){return l(R,t,h.instance())},t.prototype.active=function(){return this._getContextManager().active()},t.prototype.with=function(t,e,r){for(var n,o=[],i=3;i0)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}(o),!1))},t.prototype.bind=function(t,e){return this._getContextManager().bind(t,e)},t.prototype._getContextManager=function(){return f(R)||S},t.prototype.disable=function(){this._getContextManager().disable(),s(R,h.instance())},t}(),P=T("OpenTelemetry Baggage Key");function m(t){return t.getValue(P)||void 0}function A(){return m(L.getInstance().active())}function I(t,e){return t.setValue(P,e)}function C(t){return t.deleteValue(P)}var b=function(){function t(t){this._entries=t?new Map(t):new Map}return t.prototype.getEntry=function(t){var e=this._entries.get(t);if(e)return Object.assign({},e)},t.prototype.getAllEntries=function(){return Array.from(this._entries.entries()).map(function(t){var e=function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}(t,2);return[e[0],e[1]]})},t.prototype.setEntry=function(e,r){var n=new t(this._entries);return n._entries.set(e,r),n},t.prototype.removeEntry=function(e){var r=new t(this._entries);return r._entries.delete(e),r},t.prototype.removeEntries=function(){for(var e,r,n=[],o=0;o=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}(n),u=a.next();!u.done;u=a.next()){var c=u.value;i._entries.delete(c)}}catch(t){e={error:t}}finally{try{u&&!u.done&&(r=a.return)&&r.call(a)}finally{if(e)throw e.error}}return i},t.prototype.clear=function(){return new t},t}(),N=Symbol("BaggageEntryMetadata"),w=h.instance();function M(t){return void 0===t&&(t={}),new b(new Map(Object.entries(t)))}var U="propagation",D=new _,B=function(){function t(){this.createBaggage=M,this.getBaggage=m,this.getActiveBaggage=A,this.setBaggage=I,this.deleteBaggage=C}return t.getInstance=function(){return this._instance||(this._instance=new t),this._instance},t.prototype.setGlobalPropagator=function(t){return l(U,t,h.instance())},t.prototype.inject=function(t,e,r){return void 0===r&&(r=E),this._getGlobalPropagator().inject(t,e,r)},t.prototype.extract=function(t,e,r){return void 0===r&&(r=p),this._getGlobalPropagator().extract(t,e,r)},t.prototype.fields=function(){return this._getGlobalPropagator().fields()},t.prototype.disable=function(){s(U,h.instance())},t.prototype._getGlobalPropagator=function(){return f(U)||D},t}(),x=B.getInstance(),X=T("OpenTelemetry SDK Context Key SUPPRESS_TRACING");function j(t){return t.setValue(X,!0)}function G(t){return t.deleteValue(X)}function V(t){return!0===t.getValue(X)}var F=",",k="baggage";function H(t){return t.reduce(function(t,e){var r=""+t+(""!==t?F:"")+e;return r.length>8192?t:r},"")}function K(t){return t.getAllEntries().map(function(t){var e=function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}(t,2),r=e[0],n=e[1],o=encodeURIComponent(r)+"="+encodeURIComponent(n.value);return void 0!==n.metadata&&(o+=";"+n.metadata.toString()),o})}function W(t){var e=t.split(";");if(!(e.length<=0)){var r=e.shift();if(r){var n=r.indexOf("=");if(!(n<=0)){var o,i,a=decodeURIComponent(r.substring(0,n).trim()),u=decodeURIComponent(r.substring(n+1).trim());return e.length>0&&("string"!=typeof(i=e.join(";"))&&(w.error("Cannot create baggage metadata from unknown type: "+typeof i),i=""),o={__TYPE__:N,toString:function(){return i}}),{key:a,value:u,metadata:o}}}}}var Y=function(){function t(){}return t.prototype.inject=function(t,e,r){var n=x.getBaggage(t);if(n&&!V(t)){var o=H(K(n).filter(function(t){return t.length<=4096}).slice(0,180));o.length>0&&r.set(e,k,o)}},t.prototype.extract=function(t,e,r){var n=r.get(e,k),o=Array.isArray(n)?n.join(F):n;if(!o)return t;var i={};return 0===o.length?t:(o.split(F).forEach(function(t){var e=W(t);if(e){var r={value:e.value};e.metadata&&(r.metadata=e.metadata),i[e.key]=r}}),0===Object.entries(i).length?t:x.setBaggage(t,x.createBaggage(i)))},t.prototype.fields=function(){return[k]},t}(),z=function(){function t(t,e){this._monotonicClock=e,this._epochMillis=t.now(),this._performanceMillis=e.now()}return t.prototype.now=function(){var t=this._monotonicClock.now()-this._performanceMillis;return this._epochMillis+t},t}(),Z=h.instance(),J=function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},$=function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a};function Q(t){var e,r,n={};if("object"!=typeof t||null==t)return n;try{for(var o=J(Object.entries(t)),i=o.next();!i.done;i=o.next()){var a=$(i.value,2),u=a[0],c=a[1];q(u)?tt(c)?Array.isArray(c)?n[u]=c.slice():n[u]=c:Z.warn("Invalid attribute value set for key: "+u):Z.warn("Invalid attribute key: "+u)}}catch(t){e={error:t}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(e)throw e.error}}return n}function q(t){return"string"==typeof t&&t.length>0}function tt(t){return null==t||(Array.isArray(t)?function(t){var e,r,n;try{for(var o=J(t),i=o.next();!i.done;i=o.next()){var a=i.value;if(null!=a){if(!n){if(et(a)){n=typeof a;continue}return!1}if(typeof a!==n)return!1}}}catch(t){e={error:t}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(e)throw e.error}}return!0}(t):et(t))}function et(t){switch(typeof t){case"number":case"boolean":case"string":return!0}return!1}function rt(){return function(t){Z.error(function(t){return"string"==typeof t?t:JSON.stringify(function(t){for(var e={},r=t;null!==r;)Object.getOwnPropertyNames(r).forEach(function(t){if(!e[t]){var n=r[t];n&&(e[t]=String(n))}}),r=Object.getPrototypeOf(r);return e}(t))}(t))}}var nt=rt();function ot(t){nt=t}function it(t){try{nt(t)}catch(t){}}var at,ut=require("perf_hooks").performance,ct=9,lt=Math.pow(10,6),ft=Math.pow(10,ct);function st(t){var e=t/1e3;return[Math.trunc(e),Math.round(t%1e3*lt)]}function _t(){var t=ut.timeOrigin;if("number"!=typeof t){var e=ut;t=e.timing&&e.timing.fetchStart}return t}function pt(t){return Rt(st(_t()),st("number"==typeof t?t:ut.now()))}function Et(t){if(vt(t))return t;if("number"==typeof t)return t<_t()?pt(t):st(t);if(t instanceof Date)return st(t.getTime());throw TypeError("Invalid input type")}function Tt(t,e){var r=e[0]-t[0],n=e[1]-t[1];return n<0&&(r-=1,n+=ft),[r,n]}function Ot(t){var e=ct,r=""+"0".repeat(e)+t[1]+"Z",n=r.substring(r.length-e-1);return new Date(1e3*t[0]).toISOString().replace("000Z",n)}function yt(t){return t[0]*ft+t[1]}function dt(t){return 1e3*t[0]+t[1]/1e6}function gt(t){return 1e6*t[0]+t[1]/1e3}function vt(t){return Array.isArray(t)&&2===t.length&&"number"==typeof t[0]&&"number"==typeof t[1]}function ht(t){return vt(t)||"number"==typeof t||t instanceof Date}function Rt(t,e){var r=[t[0]+e[0],t[1]+e[1]];return r[1]>=ft&&(r[1]-=ft,r[0]+=1),r}function St(t){return t>=48&&t<=57?t-48:t>=97&&t<=102?t-87:t-55}function Lt(t){for(var e=new Uint8Array(t.length/2),r=0,n=0;n>>0,4*e);for(e=0;e0);e++)e===t-1&&(mt[t-1]=1);return mt.toString("hex",0,t)}}var It,Ct,bt="1.30.1",Nt=((It={})["telemetry.sdk.name"]="opentelemetry",It["process.runtime.name"]="node",It["telemetry.sdk.language"]="nodejs",It["telemetry.sdk.version"]=bt,It),wt="object"==typeof globalThis?globalThis:global;!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"}(Ct||(Ct={}));var Mt=",",Ut=["OTEL_SDK_DISABLED"];function Dt(t){return Ut.indexOf(t)>-1}var Bt=["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 xt(t){return Bt.indexOf(t)>-1}var Xt=["OTEL_NO_PATCH_MODULES","OTEL_PROPAGATORS","OTEL_SEMCONV_STABILITY_OPT_IN"];function jt(t){return Xt.indexOf(t)>-1}var Gt=1/0,Vt=128,Ft=128,kt=128,Ht={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:O.INFO,OTEL_NO_PATCH_MODULES:[],OTEL_PROPAGATORS:["tracecontext","baggage"],OTEL_RESOURCE_ATTRIBUTES:"",OTEL_SERVICE_NAME:"",OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT:Gt,OTEL_ATTRIBUTE_COUNT_LIMIT:Vt,OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT:Gt,OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT:Vt,OTEL_LOGRECORD_ATTRIBUTE_VALUE_LENGTH_LIMIT:Gt,OTEL_LOGRECORD_ATTRIBUTE_COUNT_LIMIT:Vt,OTEL_SPAN_EVENT_COUNT_LIMIT:128,OTEL_SPAN_LINK_COUNT_LIMIT:128,OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT:Ft,OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT:kt,OTEL_TRACES_EXPORTER:"",OTEL_TRACES_SAMPLER:Ct.ParentBasedAlwaysOn,OTEL_TRACES_SAMPLER_ARG:"",OTEL_LOGS_EXPORTER:"",OTEL_EXPORTER_OTLP_INSECURE:"",OTEL_EXPORTER_OTLP_TRACES_INSECURE:"",OTEL_EXPORTER_OTLP_METRICS_INSECURE:"",OTEL_EXPORTER_OTLP_LOGS_INSECURE:"",OTEL_EXPORTER_OTLP_CERTIFICATE:"",OTEL_EXPORTER_OTLP_TRACES_CERTIFICATE:"",OTEL_EXPORTER_OTLP_METRICS_CERTIFICATE:"",OTEL_EXPORTER_OTLP_LOGS_CERTIFICATE:"",OTEL_EXPORTER_OTLP_COMPRESSION:"",OTEL_EXPORTER_OTLP_TRACES_COMPRESSION:"",OTEL_EXPORTER_OTLP_METRICS_COMPRESSION:"",OTEL_EXPORTER_OTLP_LOGS_COMPRESSION:"",OTEL_EXPORTER_OTLP_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_TRACES_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_METRICS_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_LOGS_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_TRACES_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_METRICS_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_LOGS_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_TRACES_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_METRICS_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_LOGS_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE:"cumulative",OTEL_SEMCONV_STABILITY_OPT_IN:[]};function Kt(t,e,r){if(void 0!==r[t]){var n=String(r[t]);e[t]="true"===n.toLowerCase()}}function Wt(t,e,r,n,o){if(void 0===n&&(n=-1/0),void 0===o&&(o=1/0),void 0!==r[t]){var i=Number(r[t]);isNaN(i)||(e[t]=io?o:i)}}function Yt(t,e,r,n){void 0===n&&(n=Mt);var o=r[t];"string"==typeof o&&(e[t]=o.split(n).map(function(t){return t.trim()}))}var zt={ALL:O.ALL,VERBOSE:O.VERBOSE,DEBUG:O.DEBUG,INFO:O.INFO,WARN:O.WARN,ERROR:O.ERROR,NONE:O.NONE};function Zt(t,e,r){var n=r[t];if("string"==typeof n){var o=zt[n.toUpperCase()];null!=o&&(e[t]=o)}}function Jt(t){var e={};for(var r in Ht){var n=r;if("OTEL_LOG_LEVEL"===n)Zt(n,e,t);else if(Dt(n))Kt(n,e,t);else if(xt(n))Wt(n,e,t);else if(jt(n))Yt(n,e,t);else{var o=t[n];null!=o&&(e[n]=String(o))}}return e}function $t(){var t=Jt(process.env);return Object.assign({},Ht,t)}function Qt(){return Jt(process.env)}function qt(t){return Buffer.from(Lt(t)).toString("base64")}function te(t){t.unref()}var ee,re=function(){function t(t){var e;void 0===t&&(t={}),this._propagators=null!==(e=t.propagators)&&void 0!==e?e:[],this._fields=Array.from(new Set(this._propagators.map(function(t){return"function"==typeof t.fields?t.fields():[]}).reduce(function(t,e){return t.concat(e)},[])))}return t.prototype.inject=function(t,e,r){var n,o;try{for(var i=function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}(this._propagators),a=i.next();!a.done;a=i.next()){var u=a.value;try{u.inject(t,e,r)}catch(t){Z.warn("Failed to inject with "+u.constructor.name+". Err: "+t.message)}}}catch(t){n={error:t}}finally{try{a&&!a.done&&(o=i.return)&&o.call(i)}finally{if(n)throw n.error}}},t.prototype.extract=function(t,e,r){return this._propagators.reduce(function(t,n){try{return n.extract(t,e,r)}catch(t){Z.warn("Failed to extract with "+n.constructor.name+". Err: "+t.message)}return t},t)},t.prototype.fields=function(){return this._fields.slice()},t}();!function(t){t[t.NONE=0]="NONE",t[t.SAMPLED=1]="SAMPLED"}(ee||(ee={}));var ne="0000000000000000",oe="00000000000000000000000000000000",ie={traceId:oe,spanId:ne,traceFlags:ee.NONE},ae=function(){function t(t){void 0===t&&(t=ie),this._spanContext=t}return t.prototype.spanContext=function(){return this._spanContext},t.prototype.setAttribute=function(t,e){return this},t.prototype.setAttributes=function(t){return this},t.prototype.addEvent=function(t,e){return this},t.prototype.addLink=function(t){return this},t.prototype.addLinks=function(t){return this},t.prototype.setStatus=function(t){return this},t.prototype.updateName=function(t){return this},t.prototype.end=function(t){},t.prototype.isRecording=function(){return!1},t.prototype.recordException=function(t,e){},t}(),ue=T("OpenTelemetry Context Key SPAN");function ce(t){return t.getValue(ue)||void 0}function le(){return ce(L.getInstance().active())}function fe(t,e){return t.setValue(ue,e)}function se(t){return t.deleteValue(ue)}function _e(t,e){return fe(t,new ae(e))}function pe(t){var e;return null===(e=ce(t))||void 0===e?void 0:e.spanContext()}var Ee=/^([0-9a-f]{32})$/i,Te=/^[0-9a-f]{16}$/i;function Oe(t){return Ee.test(t)&&t!==oe}function ye(t){return Oe(t.traceId)&&(e=t.spanId,Te.test(e)&&e!==ne);var e}function de(t){return new ae(t)}var ge=L.getInstance(),ve=function(){function t(){}return t.prototype.startSpan=function(t,e,r){if(void 0===r&&(r=ge.active()),Boolean(null==e?void 0:e.root))return new ae;var n,o=r&&pe(r);return"object"==typeof(n=o)&&"string"==typeof n.spanId&&"string"==typeof n.traceId&&"number"==typeof n.traceFlags&&ye(o)?new ae(o):new ae},t.prototype.startActiveSpan=function(t,e,r,n){var o,i,a;if(!(arguments.length<2)){2===arguments.length?a=e:3===arguments.length?(o=e,a=r):(o=e,i=r,a=n);var u=null!=i?i:ge.active(),c=this.startSpan(t,o,u),l=fe(u,c);return ge.with(l,a,void 0,c)}},t}(),he=new ve,Re=function(){function t(t,e,r,n){this._provider=t,this.name=e,this.version=r,this.options=n}return t.prototype.startSpan=function(t,e,r){return this._getTracer().startSpan(t,e,r)},t.prototype.startActiveSpan=function(t,e,r,n){var o=this._getTracer();return Reflect.apply(o.startActiveSpan,o,arguments)},t.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):he},t}(),Se=new(function(){function t(){}return t.prototype.getTracer=function(t,e,r){return new ve},t}()),Le=function(){function t(){}return t.prototype.getTracer=function(t,e,r){var n;return null!==(n=this.getDelegateTracer(t,e,r))&&void 0!==n?n:new Re(this,t,e,r)},t.prototype.getDelegate=function(){var t;return null!==(t=this._delegate)&&void 0!==t?t:Se},t.prototype.setDelegate=function(t){this._delegate=t},t.prototype.getDelegateTracer=function(t,e,r){var n;return null===(n=this._delegate)||void 0===n?void 0:n.getTracer(t,e,r)},t}(),Pe="trace",me=function(){function t(){this._proxyTracerProvider=new Le,this.wrapSpanContext=de,this.isSpanContextValid=ye,this.deleteSpan=se,this.getSpan=ce,this.getActiveSpan=le,this.getSpanContext=pe,this.setSpan=fe,this.setSpanContext=_e}return t.getInstance=function(){return this._instance||(this._instance=new t),this._instance},t.prototype.setGlobalTracerProvider=function(t){var e=l(Pe,this._proxyTracerProvider,h.instance());return e&&this._proxyTracerProvider.setDelegate(t),e},t.prototype.getTracerProvider=function(){return f(Pe)||this._proxyTracerProvider},t.prototype.getTracer=function(t,e){return this.getTracerProvider().getTracer(t,e)},t.prototype.disable=function(){s(Pe,h.instance()),this._proxyTracerProvider=new Le},t}().getInstance(),Ae="[_0-9a-z-*/]",Ie=new RegExp("^(?:[a-z]"+Ae+"{0,255}|[a-z0-9]"+Ae+"{0,240}@[a-z]"+Ae+"{0,13})$"),Ce=/^[ -~]{0,255}[!-~]$/,be=/,|=/,Ne=function(){function t(t){this._internalState=new Map,t&&this._parse(t)}return t.prototype.set=function(t,e){var r=this._clone();return r._internalState.has(t)&&r._internalState.delete(t),r._internalState.set(t,e),r},t.prototype.unset=function(t){var e=this._clone();return e._internalState.delete(t),e},t.prototype.get=function(t){return this._internalState.get(t)},t.prototype.serialize=function(){var t=this;return this._keys().reduce(function(e,r){return e.push(r+"="+t.get(r)),e},[]).join(",")},t.prototype._parse=function(t){t.length>512||(this._internalState=t.split(",").reverse().reduce(function(t,e){var r=e.trim(),n=r.indexOf("=");if(-1!==n){var o=r.slice(0,n),i=r.slice(n+1,e.length);(function(t){return Ie.test(t)})(o)&&function(t){return Ce.test(t)&&!be.test(t)}(i)&&t.set(o,i)}return t},new Map),this._internalState.size>32&&(this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,32))))},t.prototype._keys=function(){return Array.from(this._internalState.keys()).reverse()},t.prototype._clone=function(){var e=new t;return e._internalState=new Map(this._internalState),e},t}(),we="traceparent",Me="tracestate",Ue=new RegExp("^\\s?((?!ff)[\\da-f]{2})-((?![0]{32})[\\da-f]{32})-((?![0]{16})[\\da-f]{16})-([\\da-f]{2})(-.*)?\\s?$");function De(t){var e=Ue.exec(t);return e?"00"===e[1]&&e[5]?null:{traceId:e[2],spanId:e[3],traceFlags:parseInt(e[4],16)}:null}var Be,xe,Xe=function(){function t(){}return t.prototype.inject=function(t,e,r){var n=me.getSpanContext(t);if(n&&!V(t)&&ye(n)){var o="00-"+n.traceId+"-"+n.spanId+"-0"+Number(n.traceFlags||ee.NONE).toString(16);r.set(e,we,o),n.traceState&&r.set(e,Me,n.traceState.serialize())}},t.prototype.extract=function(t,e,r){var n=r.get(e,we);if(!n)return t;var o=Array.isArray(n)?n[0]:n;if("string"!=typeof o)return t;var i=De(o);if(!i)return t;i.isRemote=!0;var a=r.get(e,Me);if(a){var u=Array.isArray(a)?a.join(","):a;i.traceState=new Ne("string"==typeof u?u:void 0)}return me.setSpanContext(t,i)},t.prototype.fields=function(){return[we,Me]},t}(),je=T("OpenTelemetry SDK Context Key RPC_METADATA");function Ge(t,e){return t.setValue(je,e)}function Ve(t){return t.deleteValue(je)}function Fe(t){return t.getValue(je)}!function(t){t.HTTP="http"}(Be||(Be={})),function(t){t[t.NOT_RECORD=0]="NOT_RECORD",t[t.RECORD=1]="RECORD",t[t.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"}(xe||(xe={}));var ke,He,Ke=function(){function t(){}return t.prototype.shouldSample=function(){return{decision:xe.NOT_RECORD}},t.prototype.toString=function(){return"AlwaysOffSampler"},t}(),We=function(){function t(){}return t.prototype.shouldSample=function(){return{decision:xe.RECORD_AND_SAMPLED}},t.prototype.toString=function(){return"AlwaysOnSampler"},t}(),Ye=function(){function t(t){var e,r,n,o;this._root=t.root,this._root||(it(new Error("ParentBasedSampler must have a root sampler configured")),this._root=new We),this._remoteParentSampled=null!==(e=t.remoteParentSampled)&&void 0!==e?e:new We,this._remoteParentNotSampled=null!==(r=t.remoteParentNotSampled)&&void 0!==r?r:new Ke,this._localParentSampled=null!==(n=t.localParentSampled)&&void 0!==n?n:new We,this._localParentNotSampled=null!==(o=t.localParentNotSampled)&&void 0!==o?o:new Ke}return t.prototype.shouldSample=function(t,e,r,n,o,i){var a=me.getSpanContext(t);return a&&ye(a)?a.isRemote?a.traceFlags&ee.SAMPLED?this._remoteParentSampled.shouldSample(t,e,r,n,o,i):this._remoteParentNotSampled.shouldSample(t,e,r,n,o,i):a.traceFlags&ee.SAMPLED?this._localParentSampled.shouldSample(t,e,r,n,o,i):this._localParentNotSampled.shouldSample(t,e,r,n,o,i):this._root.shouldSample(t,e,r,n,o,i)},t.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()+"}"},t}(),ze=function(){function t(t){void 0===t&&(t=0),this._ratio=t,this._ratio=this._normalize(t),this._upperBound=Math.floor(4294967295*this._ratio)}return t.prototype.shouldSample=function(t,e){return{decision:Oe(e)&&this._accumulate(e)=1?1:t<=0?0:t},t.prototype._accumulate=function(t){for(var e=0,r=0;r>>0}return e},t}(),Ze="[object Object]",Je="[object Null]",$e="[object Undefined]",Qe=Function.prototype.toString,qe=Qe.call(Object),tr=(ke=Object.getPrototypeOf,He=Object,function(t){return ke(He(t))}),er=Object.prototype,rr=er.hasOwnProperty,nr=Symbol?Symbol.toStringTag:void 0,or=er.toString;function ir(t){if(!function(t){return null!=t&&"object"==typeof t}(t)||function(t){return null==t?void 0===t?$e:Je:nr&&nr in Object(t)?function(t){var e=rr.call(t,nr),r=t[nr],n=!1;try{t[nr]=void 0,n=!0}catch(t){}var o=or.call(t);return n&&(e?t[nr]=r:delete t[nr]),o}(t):function(t){return or.call(t)}(t)}(t)!==Ze)return!1;var e=tr(t);if(null===e)return!0;var r=rr.call(e,"constructor")&&e.constructor;return"function"==typeof r&&r instanceof r&&Qe.call(r)===qe}var ar=20;function ur(){for(var t=[],e=0;e0;)r=lr(r,t.shift(),0,n);return r}function cr(t){return sr(t)?t.slice():t}function lr(t,e,r,n){var o;if(void 0===r&&(r=0),!(r>ar)){if(r++,Er(t)||Er(e)||_r(e))o=cr(e);else if(sr(t)){if(o=t.slice(),sr(e))for(var i=0,a=e.length;i=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};function vr(t,e){return"string"==typeof e?t===e:!!t.match(e)}function hr(t,e){var r,n;if(!e)return!1;try{for(var o=gr(e),i=o.next();!i.done;i=o.next())if(vr(t,i.value))return!0}catch(t){r={error:t}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return!1}function Rr(t){return"function"==typeof t&&"function"==typeof t.__original&&"function"==typeof t.__unwrap&&!0===t.__wrapped}var Sr=function(){function t(){var t=this;this._promise=new Promise(function(e,r){t._resolve=e,t._reject=r})}return Object.defineProperty(t.prototype,"promise",{get:function(){return this._promise},enumerable:!1,configurable:!0}),t.prototype.resolve=function(t){this._resolve(t)},t.prototype.reject=function(t){this._reject(t)},t}(),Lr=function(){function t(t,e){this._callback=t,this._that=e,this._isCalled=!1,this._deferred=new Sr}return Object.defineProperty(t.prototype,"isCalled",{get:function(){return this._isCalled},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"promise",{get:function(){return this._deferred.promise},enumerable:!1,configurable:!0}),t.prototype.call=function(){for(var t,e=this,r=[],n=0;n0)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}(r),!1))).then(function(t){return e._deferred.resolve(t)},function(t){return e._deferred.reject(t)})}catch(t){this._deferred.reject(t)}}return this._deferred.promise},t}(),Pr=L.getInstance(),mr={getKeyPairs:K,serializeKeyPairs:H,parseKeyPairsIntoRecord:function(t){return"string"!=typeof t||0===t.length?{}:t.split(F).map(function(t){return W(t)}).filter(function(t){return void 0!==t&&t.value.length>0}).reduce(function(t,e){return t[e.key]=e.value,t},{})},parsePairKeyValue:W},Ar={_export:function(t,e){return new Promise(function(r){Pr.with(j(Pr.active()),function(){t.export(e,function(t){r(t)})})})}};module.exports=e})(); \ No newline at end of file diff --git a/packages/node_modules/@opentelemetry/resources.js b/packages/node_modules/@opentelemetry/resources.js index 23f156a83a3..9f5b9437d31 100644 --- a/packages/node_modules/@opentelemetry/resources.js +++ b/packages/node_modules/@opentelemetry/resources.js @@ -1 +1 @@ -(()=>{"use strict";var e={454:(e,t,r)=>{r.d(t,{D:()=>c});var n=r(9896),o=r(2733),i=r(8758),a=function(e,t,r,n){return new(r||(r=Promise))(function(o,i){function a(e){try{c(n.next(e))}catch(e){i(e)}}function u(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(a,u)}c((n=n.apply(e,t||[])).next())})},u=function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]{e.exports=require("process")},1275:(e,t,r)=>{r.d(t,{V:()=>o});var n=r(6051),o=function(){function e(e){this._namespace=e.namespace||"DiagComponentLogger"}return e.prototype.debug=function(){for(var e=[],t=0;t0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}(r),!1))}},1568:(e,t,r)=>{r.d(t,{D:()=>u});var n=r(2733),o=r(8758),i=function(e,t,r,n){return new(r||(r=Promise))(function(o,i){function a(e){try{c(n.next(e))}catch(e){i(e)}}function u(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(a,u)}c((n=n.apply(e,t||[])).next())})},a=function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]{r.d(t,{c:()=>o});var n=r(6733);function o(e,t){function r(r,n){var o=t[r];return"function"==typeof o&&e>=n?o.bind(t):function(){}}return en.u.ALL&&(e=n.u.ALL),t=t||{},{error:r("error",n.u.ERROR),warn:r("warn",n.u.WARN),info:r("info",n.u.INFO),debug:r("debug",n.u.DEBUG),verbose:r("verbose",n.u.VERBOSE)}}},2408:(e,t,r)=>{r.d(t,{D:()=>a});var n=r(8758),o=function(e,t,r,n){return new(r||(r=Promise))(function(o,i){function a(e){try{c(n.next(e))}catch(e){i(e)}}function u(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(a,u)}c((n=n.apply(e,t||[])).next())})},i=function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]{r.d(t,{q:()=>o});const n=require("child_process");var o=require("util").promisify(n.exec)},2910:(e,t,r)=>{r.d(t,{x:()=>n});var n="1.9.0"},5234:(e,t,r)=>{r.d(t,{X:()=>n});var n="object"==typeof globalThis?globalThis:global},5726:(e,t,r)=>{r.d(t,{K:()=>u});var n=r(1275),o=r(1994),i=r(6733),a=r(6051),u=function(){function e(){function e(e){return function(){for(var t=[],r=0;r0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}(t),!1))}}var t=this;t.setLogger=function(e,r){var n,u,c;if(void 0===r&&(r={logLevel:i.u.INFO}),e===t){var s=new Error("Cannot use diag as the logger for itself. Please use a DiagLogger implementation like ConsoleDiagLogger or a custom implementation");return t.error(null!==(n=s.stack)&&void 0!==n?n:s.message),!1}"number"==typeof r&&(r={logLevel:r});var l=(0,a.mS)("diag"),E=(0,o.c)(null!==(u=r.logLevel)&&void 0!==u?u:i.u.INFO,e);if(l&&!r.suppressOverrideMessage){var f=null!==(c=(new Error).stack)&&void 0!==c?c:"";l.warn("Current logger will be overwritten from "+f),E.warn("Current logger will overwrite one already registered from "+f)}return(0,a.$G)("diag",E,t,!0)},t.disable=function(){(0,a.kv)("diag",t)},t.createComponentLogger=function(e){return new n.V(e)},t.verbose=e("verbose"),t.debug=e("debug"),t.info=e("info"),t.warn=e("warn"),t.error=e("error")}return e.instance=function(){return this._instance||(this._instance=new e),this._instance},e}()},6051:(e,t,r)=>{r.d(t,{$G:()=>s,kv:()=>E,mS:()=>l});var n=r(5234),o=r(2910),i=r(8336),a=o.x.split(".")[0],u=Symbol.for("opentelemetry.js.api."+a),c=n.X;function s(e,t,r,n){var i;void 0===n&&(n=!1);var a=c[u]=null!==(i=c[u])&&void 0!==i?i:{version:o.x};if(!n&&a[e]){var s=new Error("@opentelemetry/api: Attempted duplicate registration of API: "+e);return r.error(s.stack||s.message),!1}return a.version!==o.x?(s=new Error("@opentelemetry/api: Registration of version v"+a.version+" for "+e+" does not match previously registered API v"+o.x),r.error(s.stack||s.message),!1):(a[e]=t,r.debug("@opentelemetry/api: Registered a global for "+e+" v"+o.x+"."),!0)}function l(e){var t,r,n=null===(t=c[u])||void 0===t?void 0:t.version;if(n&&(0,i.$)(n))return null===(r=c[u])||void 0===r?void 0:r[e]}function E(e,t){t.debug("@opentelemetry/api: Unregistering a global for "+e+" v"+o.x+".");var r=c[u];r&&delete r[e]}},6733:(e,t,r)=>{var n;r.d(t,{u:()=>n}),function(e){e[e.NONE=0]="NONE",e[e.ERROR=30]="ERROR",e[e.WARN=50]="WARN",e[e.INFO=60]="INFO",e[e.DEBUG=70]="DEBUG",e[e.VERBOSE=80]="VERBOSE",e[e.ALL=9999]="ALL"}(n||(n={}))},7349:(e,t,r)=>{r.d(t,{D:()=>c});var n=r(932),o=r(2733),i=r(8758),a=function(e,t,r,n){return new(r||(r=Promise))(function(o,i){function a(e){try{c(n.next(e))}catch(e){i(e)}}function u(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(a,u)}c((n=n.apply(e,t||[])).next())})},u=function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]{r.d(t,{D:()=>c});var n=r(9896),o=r(8758),i=function(e,t,r,n){return new(r||(r=Promise))(function(o,i){function a(e){try{c(n.next(e))}catch(e){i(e)}}function u(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(a,u)}c((n=n.apply(e,t||[])).next())})},a=function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]=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 c(){return i(this,void 0,void 0,function(){var e,t,r,i,c,s,l,E;return a(this,function(a){switch(a.label){case 0:e=["/etc/machine-id","/var/lib/dbus/machine-id"],a.label=1;case 1:a.trys.push([1,8,9,10]),t=u(e),r=t.next(),a.label=2;case 2:if(r.done)return[3,7];i=r.value,a.label=3;case 3:return a.trys.push([3,5,,6]),[4,n.promises.readFile(i,{encoding:"utf8"})];case 4:return[2,a.sent().trim()];case 5:return c=a.sent(),o.s.debug("error reading machine id: "+c),[3,6];case 6:return r=t.next(),[3,2];case 7:return[3,10];case 8:return s=a.sent(),l={error:s},[3,10];case 9:try{r&&!r.done&&(E=t.return)&&E.call(t)}finally{if(l)throw l.error}return[7];case 10:return[2,""]}})})}},8336:(e,t,r)=>{r.d(t,{$:()=>i});var n=r(2910),o=/^(\d+)\.(\d+)\.(\d+)(-(.+))?$/,i=function(e){var t=new Set([e]),r=new Set,n=e.match(o);if(!n)return function(){return!1};var i=+n[1],a=+n[2],u=+n[3];if(null!=n[4])return function(t){return t===e};function c(e){return r.add(e),!1}function s(e){return t.add(e),!0}return function(e){if(t.has(e))return!0;if(r.has(e))return!1;var n=e.match(o);if(!n)return c(e);var l=+n[1],E=+n[2],f=+n[3];return null!=n[4]||i!==l?c(e):0===i?a===E&&u<=f?s(e):c(e):a<=E?s(e):c(e)}}(n.x)},8758:(e,t,r)=>{r.d(t,{s:()=>n});var n=r(5726).K.instance()},9896:e=>{e.exports=require("fs")}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var i=t[n]={exports:{}};return e[n](i,i.exports,r),i.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};r.r(n),r.d(n,{Resource:()=>p,browserDetector:()=>S,browserDetectorSync:()=>P,defaultServiceName:()=>T,detectResources:()=>oe,detectResourcesSync:()=>ie,envDetector:()=>j,envDetectorSync:()=>F,hostDetector:()=>L,hostDetectorSync:()=>R,osDetector:()=>q,osDetectorSync:()=>Y,processDetector:()=>Q,processDetectorSync:()=>$,serviceInstanceIdDetectorSync:()=>te});var o,i=r(8758),a="process.runtime.name",u="process.runtime.version",c="process.runtime.description",s="service.name",l="telemetry.sdk.name",E="telemetry.sdk.language",f="telemetry.sdk.version",_=((o={})[l]="opentelemetry",o[a]="node",o[E]="nodejs",o[f]="1.30.1",o);function T(){return"unknown_service:"+process.argv0}var O=function(){return O=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}(e,2),i=o[0],a=o[1];return O(O(O(O({},n._syncAttributes),i),null!==(r=t._syncAttributes)&&void 0!==r?r:t.attributes),a)});return new e(o,i)},e.EMPTY=new e({}),e}();const d=require("os");var v;switch(r(932).platform){case"darwin":v=r(1568).D;break;case"linux":v=r(7917).D;break;case"freebsd":v=r(454).D;break;case"win32":v=r(7349).D;break;default:v=r(2408).D}var y,h=function(){function e(){}return e.prototype.detect=function(e){var t,r=((t={})["host.name"]=(0,d.hostname)(),t["host.arch"]=function(e){switch(e){case"arm":return"arm32";case"ppc":return"ppc32";case"x64":return"amd64";default:return e}}((0,d.arch)()),t);return new p(r,this._getAsyncAttributes())},e.prototype._getAsyncAttributes=function(){return v().then(function(e){var t={};return e&&(t["host.id"]=e),t})},e}(),R=new h,L=new(function(){function e(){}return e.prototype.detect=function(e){return Promise.resolve(R.detect(e))},e}()),b=function(){return b=Object.assign||function(e){for(var t,r=1,n=arguments.length;r-1}var m=["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 N(e){return m.indexOf(e)>-1}var C=["OTEL_NO_PATCH_MODULES","OTEL_PROPAGATORS","OTEL_SEMCONV_STABILITY_OPT_IN"];function U(e){return C.indexOf(e)>-1}var M=1/0,x={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:g.u.INFO,OTEL_NO_PATCH_MODULES:[],OTEL_PROPAGATORS:["tracecontext","baggage"],OTEL_RESOURCE_ATTRIBUTES:"",OTEL_SERVICE_NAME:"",OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT:M,OTEL_ATTRIBUTE_COUNT_LIMIT:128,OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT:M,OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT:128,OTEL_LOGRECORD_ATTRIBUTE_VALUE_LENGTH_LIMIT:M,OTEL_LOGRECORD_ATTRIBUTE_COUNT_LIMIT:128,OTEL_SPAN_EVENT_COUNT_LIMIT:128,OTEL_SPAN_LINK_COUNT_LIMIT:128,OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT:128,OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT:128,OTEL_TRACES_EXPORTER:"",OTEL_TRACES_SAMPLER:y.ParentBasedAlwaysOn,OTEL_TRACES_SAMPLER_ARG:"",OTEL_LOGS_EXPORTER:"",OTEL_EXPORTER_OTLP_INSECURE:"",OTEL_EXPORTER_OTLP_TRACES_INSECURE:"",OTEL_EXPORTER_OTLP_METRICS_INSECURE:"",OTEL_EXPORTER_OTLP_LOGS_INSECURE:"",OTEL_EXPORTER_OTLP_CERTIFICATE:"",OTEL_EXPORTER_OTLP_TRACES_CERTIFICATE:"",OTEL_EXPORTER_OTLP_METRICS_CERTIFICATE:"",OTEL_EXPORTER_OTLP_LOGS_CERTIFICATE:"",OTEL_EXPORTER_OTLP_COMPRESSION:"",OTEL_EXPORTER_OTLP_TRACES_COMPRESSION:"",OTEL_EXPORTER_OTLP_METRICS_COMPRESSION:"",OTEL_EXPORTER_OTLP_LOGS_COMPRESSION:"",OTEL_EXPORTER_OTLP_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_TRACES_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_METRICS_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_LOGS_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_TRACES_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_METRICS_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_LOGS_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_TRACES_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_METRICS_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_LOGS_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE:"cumulative",OTEL_SEMCONV_STABILITY_OPT_IN:[]};function X(e,t,r){if(void 0!==r[e]){var n=String(r[e]);t[e]="true"===n.toLowerCase()}}function D(e,t,r,n,o){if(void 0===n&&(n=-1/0),void 0===o&&(o=1/0),void 0!==r[e]){var i=Number(r[e]);isNaN(i)||(t[e]=io?o:i)}}function B(e,t,r,n){void 0===n&&(n=",");var o=r[e];"string"==typeof o&&(t[e]=o.split(n).map(function(e){return e.trim()}))}var G={ALL:g.u.ALL,VERBOSE:g.u.VERBOSE,DEBUG:g.u.DEBUG,INFO:g.u.INFO,WARN:g.u.WARN,ERROR:g.u.ERROR,NONE:g.u.NONE};function k(e,t,r){var n=r[e];if("string"==typeof n){var o=G[n.toUpperCase()];null!=o&&(t[e]=o)}}var V=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},H=function(){function e(){this._MAX_LENGTH=255,this._COMMA_SEPARATOR=",",this._LABEL_KEY_VALUE_SPLITTER="=",this._ERROR_MESSAGE_INVALID_CHARS="should be a ASCII string with a length greater than 0 and not exceed "+this._MAX_LENGTH+" characters.",this._ERROR_MESSAGE_INVALID_VALUE="should be a ASCII string with a length not exceed "+this._MAX_LENGTH+" characters."}return e.prototype.detect=function(e){var t,r={},n=(t=function(e){var t={};for(var r in x){var n=r;if("OTEL_LOG_LEVEL"===n)k(n,t,e);else if(w(n))X(n,t,e);else if(N(n))D(n,t,e);else if(U(n))B(n,t,e);else{var o=e[n];null!=o&&(t[n]=String(o))}}return t}(process.env),Object.assign({},x,t)),o=n.OTEL_RESOURCE_ATTRIBUTES,a=n.OTEL_SERVICE_NAME;if(o)try{var u=this._parseResourceAttributes(o);Object.assign(r,u)}catch(e){i.s.debug("EnvDetector failed: "+e.message)}return a&&(r[s]=a),new p(r)},e.prototype._parseResourceAttributes=function(e){var t,r;if(!e)return{};var n={},o=e.split(this._COMMA_SEPARATOR,-1);try{for(var i=function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)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.")}(o),a=i.next();!a.done;a=i.next()){var u=a.value.split(this._LABEL_KEY_VALUE_SPLITTER,-1);if(2===u.length){var c=V(u,2),s=c[0],l=c[1];if(s=s.trim(),l=l.trim().split(/^"|"$/).join(""),!this._isValidAndNotEmpty(s))throw new Error("Attribute key "+this._ERROR_MESSAGE_INVALID_CHARS);if(!this._isValid(l))throw new Error("Attribute value "+this._ERROR_MESSAGE_INVALID_VALUE);n[s]=decodeURIComponent(l)}}}catch(e){t={error:e}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}return n},e.prototype._isValid=function(e){return e.length<=this._MAX_LENGTH&&this._isBaggageOctetString(e)},e.prototype._isBaggageOctetString=function(e){for(var t=0;t126)return!1}return!0},e.prototype._isValidAndNotEmpty=function(e){return e.length>0&&this._isValid(e)},e}(),F=new H,j=new(function(){function e(){}return e.prototype.detect=function(e){return Promise.resolve(F.detect(e))},e}()),K=function(){function e(){}return e.prototype.detect=function(e){var t,r=((t={})["os.type"]=function(e){switch(e){case"sunos":return"solaris";case"win32":return"windows";default:return e}}((0,d.platform)()),t["os.version"]=(0,d.release)(),t);return new p(r)},e}(),Y=new K,q=new(function(){function e(){}return e.prototype.detect=function(e){return Promise.resolve(Y.detect(e))},e}()),Z=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},W=function(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o1&&(r["process.command"]=process.argv[1]);try{var n=d.userInfo();r["process.owner"]=n.username}catch(e){i.s.debug("error obtaining process owner: "+e)}return new p(r)},e}(),$=new J,Q=new(function(){function e(){}return e.prototype.detect=function(e){return Promise.resolve($.detect(e))},e}());const z=require("crypto");var ee=function(){function e(){}return e.prototype.detect=function(e){var t,r=((t={})["service.instance.id"]=(0,z.randomUUID)(),t);return new p(r)},e}(),te=new ee,re=function(e,t,r,n){return new(r||(r=Promise))(function(o,i){function a(e){try{c(n.next(e))}catch(e){i(e)}}function u(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(a,u)}c((n=n.apply(e,t||[])).next())})},ne=function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]0){var t=JSON.stringify(e.attributes,null,4);i.s.verbose(t)}})};module.exports=n})(); \ No newline at end of file +(()=>{"use strict";var e={454:(e,t,r)=>{r.d(t,{D:()=>c});var n=r(9896),o=r(2733),i=r(8758),a=function(e,t,r,n){return new(r||(r=Promise))(function(o,i){function a(e){try{c(n.next(e))}catch(e){i(e)}}function u(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(a,u)}c((n=n.apply(e,t||[])).next())})},u=function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]{e.exports=require("process")},1275:(e,t,r)=>{r.d(t,{V:()=>o});var n=r(6051),o=function(){function e(e){this._namespace=e.namespace||"DiagComponentLogger"}return e.prototype.debug=function(){for(var e=[],t=0;t0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}(r),!1))}},1568:(e,t,r)=>{r.d(t,{D:()=>u});var n=r(2733),o=r(8758),i=function(e,t,r,n){return new(r||(r=Promise))(function(o,i){function a(e){try{c(n.next(e))}catch(e){i(e)}}function u(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(a,u)}c((n=n.apply(e,t||[])).next())})},a=function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]{r.d(t,{c:()=>o});var n=r(6733);function o(e,t){function r(r,n){var o=t[r];return"function"==typeof o&&e>=n?o.bind(t):function(){}}return en.u.ALL&&(e=n.u.ALL),t=t||{},{error:r("error",n.u.ERROR),warn:r("warn",n.u.WARN),info:r("info",n.u.INFO),debug:r("debug",n.u.DEBUG),verbose:r("verbose",n.u.VERBOSE)}}},2408:(e,t,r)=>{r.d(t,{D:()=>a});var n=r(8758),o=function(e,t,r,n){return new(r||(r=Promise))(function(o,i){function a(e){try{c(n.next(e))}catch(e){i(e)}}function u(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(a,u)}c((n=n.apply(e,t||[])).next())})},i=function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]{r.d(t,{q:()=>o});const n=require("child_process");var o=require("util").promisify(n.exec)},2910:(e,t,r)=>{r.d(t,{x:()=>n});var n="1.9.0"},5234:(e,t,r)=>{r.d(t,{X:()=>n});var n="object"==typeof globalThis?globalThis:global},5726:(e,t,r)=>{r.d(t,{K:()=>u});var n=r(1275),o=r(1994),i=r(6733),a=r(6051),u=function(){function e(){function e(e){return function(){for(var t=[],r=0;r0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}(t),!1))}}var t=this;t.setLogger=function(e,r){var n,u,c;if(void 0===r&&(r={logLevel:i.u.INFO}),e===t){var s=new Error("Cannot use diag as the logger for itself. Please use a DiagLogger implementation like ConsoleDiagLogger or a custom implementation");return t.error(null!==(n=s.stack)&&void 0!==n?n:s.message),!1}"number"==typeof r&&(r={logLevel:r});var l=(0,a.mS)("diag"),E=(0,o.c)(null!==(u=r.logLevel)&&void 0!==u?u:i.u.INFO,e);if(l&&!r.suppressOverrideMessage){var f=null!==(c=(new Error).stack)&&void 0!==c?c:"";l.warn("Current logger will be overwritten from "+f),E.warn("Current logger will overwrite one already registered from "+f)}return(0,a.$G)("diag",E,t,!0)},t.disable=function(){(0,a.kv)("diag",t)},t.createComponentLogger=function(e){return new n.V(e)},t.verbose=e("verbose"),t.debug=e("debug"),t.info=e("info"),t.warn=e("warn"),t.error=e("error")}return e.instance=function(){return this._instance||(this._instance=new e),this._instance},e}()},6051:(e,t,r)=>{r.d(t,{$G:()=>s,kv:()=>E,mS:()=>l});var n=r(5234),o=r(2910),i=r(8336),a=o.x.split(".")[0],u=Symbol.for("opentelemetry.js.api."+a),c=n.X;function s(e,t,r,n){var i;void 0===n&&(n=!1);var a=c[u]=null!==(i=c[u])&&void 0!==i?i:{version:o.x};if(!n&&a[e]){var s=new Error("@opentelemetry/api: Attempted duplicate registration of API: "+e);return r.error(s.stack||s.message),!1}return a.version!==o.x?(s=new Error("@opentelemetry/api: Registration of version v"+a.version+" for "+e+" does not match previously registered API v"+o.x),r.error(s.stack||s.message),!1):(a[e]=t,r.debug("@opentelemetry/api: Registered a global for "+e+" v"+o.x+"."),!0)}function l(e){var t,r,n=null===(t=c[u])||void 0===t?void 0:t.version;if(n&&(0,i.$)(n))return null===(r=c[u])||void 0===r?void 0:r[e]}function E(e,t){t.debug("@opentelemetry/api: Unregistering a global for "+e+" v"+o.x+".");var r=c[u];r&&delete r[e]}},6733:(e,t,r)=>{var n;r.d(t,{u:()=>n}),function(e){e[e.NONE=0]="NONE",e[e.ERROR=30]="ERROR",e[e.WARN=50]="WARN",e[e.INFO=60]="INFO",e[e.DEBUG=70]="DEBUG",e[e.VERBOSE=80]="VERBOSE",e[e.ALL=9999]="ALL"}(n||(n={}))},7349:(e,t,r)=>{r.d(t,{D:()=>c});var n=r(932),o=r(2733),i=r(8758),a=function(e,t,r,n){return new(r||(r=Promise))(function(o,i){function a(e){try{c(n.next(e))}catch(e){i(e)}}function u(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(a,u)}c((n=n.apply(e,t||[])).next())})},u=function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]{r.d(t,{D:()=>c});var n=r(9896),o=r(8758),i=function(e,t,r,n){return new(r||(r=Promise))(function(o,i){function a(e){try{c(n.next(e))}catch(e){i(e)}}function u(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(a,u)}c((n=n.apply(e,t||[])).next())})},a=function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]=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 c(){return i(this,void 0,void 0,function(){var e,t,r,i,c,s,l,E;return a(this,function(a){switch(a.label){case 0:e=["/etc/machine-id","/var/lib/dbus/machine-id"],a.label=1;case 1:a.trys.push([1,8,9,10]),t=u(e),r=t.next(),a.label=2;case 2:if(r.done)return[3,7];i=r.value,a.label=3;case 3:return a.trys.push([3,5,,6]),[4,n.promises.readFile(i,{encoding:"utf8"})];case 4:return[2,a.sent().trim()];case 5:return c=a.sent(),o.s.debug("error reading machine id: "+c),[3,6];case 6:return r=t.next(),[3,2];case 7:return[3,10];case 8:return s=a.sent(),l={error:s},[3,10];case 9:try{r&&!r.done&&(E=t.return)&&E.call(t)}finally{if(l)throw l.error}return[7];case 10:return[2,""]}})})}},8336:(e,t,r)=>{r.d(t,{$:()=>i});var n=r(2910),o=/^(\d+)\.(\d+)\.(\d+)(-(.+))?$/,i=function(e){var t=new Set([e]),r=new Set,n=e.match(o);if(!n)return function(){return!1};var i=+n[1],a=+n[2],u=+n[3];if(null!=n[4])return function(t){return t===e};function c(e){return r.add(e),!1}function s(e){return t.add(e),!0}return function(e){if(t.has(e))return!0;if(r.has(e))return!1;var n=e.match(o);if(!n)return c(e);var l=+n[1],E=+n[2],f=+n[3];return null!=n[4]||i!==l?c(e):0===i?a===E&&u<=f?s(e):c(e):a<=E?s(e):c(e)}}(n.x)},8758:(e,t,r)=>{r.d(t,{s:()=>n});var n=r(5726).K.instance()},9896:e=>{e.exports=require("fs")}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var i=t[n]={exports:{}};return e[n](i,i.exports,r),i.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};r.r(n),r.d(n,{Resource:()=>d,browserDetector:()=>R,browserDetectorSync:()=>h,defaultServiceName:()=>T,detectResources:()=>oe,detectResourcesSync:()=>ie,envDetector:()=>G,envDetectorSync:()=>B,hostDetector:()=>j,hostDetectorSync:()=>F,osDetector:()=>q,osDetectorSync:()=>Y,processDetector:()=>Q,processDetectorSync:()=>$,serviceInstanceIdDetectorSync:()=>te});var o,i=r(8758),a="process.runtime.name",u="process.runtime.version",c="process.runtime.description",s="service.name",l="telemetry.sdk.name",E="telemetry.sdk.language",f="telemetry.sdk.version",_=((o={})[l]="opentelemetry",o[a]="node",o[E]="nodejs",o[f]="1.30.1",o);function T(){return"unknown_service:"+process.argv0}var O,p=function(){return p=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}(e,2),i=o[0],a=o[1];return p(p(p(p({},n._syncAttributes),i),null!==(r=t._syncAttributes)&&void 0!==r?r:t.attributes),a)});return new e(o,i)},e.EMPTY=new e({}),e}(),v=function(){return v=Object.assign||function(e){for(var t,r=1,n=arguments.length;r-1}var P=["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 S(e){return P.indexOf(e)>-1}var g=["OTEL_NO_PATCH_MODULES","OTEL_PROPAGATORS","OTEL_SEMCONV_STABILITY_OPT_IN"];function I(e){return g.indexOf(e)>-1}var w=1/0,m={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:L.u.INFO,OTEL_NO_PATCH_MODULES:[],OTEL_PROPAGATORS:["tracecontext","baggage"],OTEL_RESOURCE_ATTRIBUTES:"",OTEL_SERVICE_NAME:"",OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT:w,OTEL_ATTRIBUTE_COUNT_LIMIT:128,OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT:w,OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT:128,OTEL_LOGRECORD_ATTRIBUTE_VALUE_LENGTH_LIMIT:w,OTEL_LOGRECORD_ATTRIBUTE_COUNT_LIMIT:128,OTEL_SPAN_EVENT_COUNT_LIMIT:128,OTEL_SPAN_LINK_COUNT_LIMIT:128,OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT:128,OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT:128,OTEL_TRACES_EXPORTER:"",OTEL_TRACES_SAMPLER:O.ParentBasedAlwaysOn,OTEL_TRACES_SAMPLER_ARG:"",OTEL_LOGS_EXPORTER:"",OTEL_EXPORTER_OTLP_INSECURE:"",OTEL_EXPORTER_OTLP_TRACES_INSECURE:"",OTEL_EXPORTER_OTLP_METRICS_INSECURE:"",OTEL_EXPORTER_OTLP_LOGS_INSECURE:"",OTEL_EXPORTER_OTLP_CERTIFICATE:"",OTEL_EXPORTER_OTLP_TRACES_CERTIFICATE:"",OTEL_EXPORTER_OTLP_METRICS_CERTIFICATE:"",OTEL_EXPORTER_OTLP_LOGS_CERTIFICATE:"",OTEL_EXPORTER_OTLP_COMPRESSION:"",OTEL_EXPORTER_OTLP_TRACES_COMPRESSION:"",OTEL_EXPORTER_OTLP_METRICS_COMPRESSION:"",OTEL_EXPORTER_OTLP_LOGS_COMPRESSION:"",OTEL_EXPORTER_OTLP_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_TRACES_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_METRICS_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_LOGS_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_TRACES_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_METRICS_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_LOGS_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_TRACES_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_METRICS_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_LOGS_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE:"cumulative",OTEL_SEMCONV_STABILITY_OPT_IN:[]};function N(e,t,r){if(void 0!==r[e]){var n=String(r[e]);t[e]="true"===n.toLowerCase()}}function C(e,t,r,n,o){if(void 0===n&&(n=-1/0),void 0===o&&(o=1/0),void 0!==r[e]){var i=Number(r[e]);isNaN(i)||(t[e]=io?o:i)}}function U(e,t,r,n){void 0===n&&(n=",");var o=r[e];"string"==typeof o&&(t[e]=o.split(n).map(function(e){return e.trim()}))}var M={ALL:L.u.ALL,VERBOSE:L.u.VERBOSE,DEBUG:L.u.DEBUG,INFO:L.u.INFO,WARN:L.u.WARN,ERROR:L.u.ERROR,NONE:L.u.NONE};function x(e,t,r){var n=r[e];if("string"==typeof n){var o=M[n.toUpperCase()];null!=o&&(t[e]=o)}}var X=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},D=function(){function e(){this._MAX_LENGTH=255,this._COMMA_SEPARATOR=",",this._LABEL_KEY_VALUE_SPLITTER="=",this._ERROR_MESSAGE_INVALID_CHARS="should be a ASCII string with a length greater than 0 and not exceed "+this._MAX_LENGTH+" characters.",this._ERROR_MESSAGE_INVALID_VALUE="should be a ASCII string with a length not exceed "+this._MAX_LENGTH+" characters."}return e.prototype.detect=function(e){var t,r={},n=(t=function(e){var t={};for(var r in m){var n=r;if("OTEL_LOG_LEVEL"===n)x(n,t,e);else if(A(n))N(n,t,e);else if(S(n))C(n,t,e);else if(I(n))U(n,t,e);else{var o=e[n];null!=o&&(t[n]=String(o))}}return t}(process.env),Object.assign({},m,t)),o=n.OTEL_RESOURCE_ATTRIBUTES,a=n.OTEL_SERVICE_NAME;if(o)try{var u=this._parseResourceAttributes(o);Object.assign(r,u)}catch(e){i.s.debug("EnvDetector failed: "+e.message)}return a&&(r[s]=a),new d(r)},e.prototype._parseResourceAttributes=function(e){var t,r;if(!e)return{};var n={},o=e.split(this._COMMA_SEPARATOR,-1);try{for(var i=function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)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.")}(o),a=i.next();!a.done;a=i.next()){var u=a.value.split(this._LABEL_KEY_VALUE_SPLITTER,-1);if(2===u.length){var c=X(u,2),s=c[0],l=c[1];if(s=s.trim(),l=l.trim().split(/^"|"$/).join(""),!this._isValidAndNotEmpty(s))throw new Error("Attribute key "+this._ERROR_MESSAGE_INVALID_CHARS);if(!this._isValid(l))throw new Error("Attribute value "+this._ERROR_MESSAGE_INVALID_VALUE);n[s]=decodeURIComponent(l)}}}catch(e){t={error:e}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}return n},e.prototype._isValid=function(e){return e.length<=this._MAX_LENGTH&&this._isBaggageOctetString(e)},e.prototype._isBaggageOctetString=function(e){for(var t=0;t126)return!1}return!0},e.prototype._isValidAndNotEmpty=function(e){return e.length>0&&this._isValid(e)},e}(),B=new D,G=new(function(){function e(){}return e.prototype.detect=function(e){return Promise.resolve(B.detect(e))},e}());const k=require("os");var V;switch(r(932).platform){case"darwin":V=r(1568).D;break;case"linux":V=r(7917).D;break;case"freebsd":V=r(454).D;break;case"win32":V=r(7349).D;break;default:V=r(2408).D}var H=function(){function e(){}return e.prototype.detect=function(e){var t,r=((t={})["host.name"]=(0,k.hostname)(),t["host.arch"]=function(e){switch(e){case"arm":return"arm32";case"ppc":return"ppc32";case"x64":return"amd64";default:return e}}((0,k.arch)()),t);return new d(r,this._getAsyncAttributes())},e.prototype._getAsyncAttributes=function(){return V().then(function(e){var t={};return e&&(t["host.id"]=e),t})},e}(),F=new H,j=new(function(){function e(){}return e.prototype.detect=function(e){return Promise.resolve(F.detect(e))},e}()),K=function(){function e(){}return e.prototype.detect=function(e){var t,r=((t={})["os.type"]=function(e){switch(e){case"sunos":return"solaris";case"win32":return"windows";default:return e}}((0,k.platform)()),t["os.version"]=(0,k.release)(),t);return new d(r)},e}(),Y=new K,q=new(function(){function e(){}return e.prototype.detect=function(e){return Promise.resolve(Y.detect(e))},e}()),Z=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},W=function(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o1&&(r["process.command"]=process.argv[1]);try{var n=k.userInfo();r["process.owner"]=n.username}catch(e){i.s.debug("error obtaining process owner: "+e)}return new d(r)},e}(),$=new J,Q=new(function(){function e(){}return e.prototype.detect=function(e){return Promise.resolve($.detect(e))},e}());const z=require("crypto");var ee=function(){function e(){}return e.prototype.detect=function(e){var t,r=((t={})["service.instance.id"]=(0,z.randomUUID)(),t);return new d(r)},e}(),te=new ee,re=function(e,t,r,n){return new(r||(r=Promise))(function(o,i){function a(e){try{c(n.next(e))}catch(e){i(e)}}function u(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(a,u)}c((n=n.apply(e,t||[])).next())})},ne=function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]0){var t=JSON.stringify(e.attributes,null,4);i.s.verbose(t)}})};module.exports=n})(); \ No newline at end of file diff --git a/packages/node_modules/retry/lib/retry_operation.js b/packages/node_modules/retry/lib/retry_operation.js new file mode 100644 index 00000000000..cd716f997a2 --- /dev/null +++ b/packages/node_modules/retry/lib/retry_operation.js @@ -0,0 +1 @@ +(()=>{var t={3961:t=>{function e(t,e){"boolean"==typeof e&&(e={forever:e}),this._originalTimeouts=JSON.parse(JSON.stringify(t)),this._timeouts=t,this._options=e||{},this._maxRetryTime=e&&e.maxRetryTime||1/0,this._fn=null,this._errors=[],this._attempts=1,this._operationTimeout=null,this._operationTimeoutCb=null,this._timeout=null,this._operationStart=null,this._timer=null,this._options.forever&&(this._cachedTimeouts=this._timeouts.slice(0))}t.exports=e,e.prototype.reset=function(){this._attempts=1,this._timeouts=this._originalTimeouts.slice(0)},e.prototype.stop=function(){this._timeout&&clearTimeout(this._timeout),this._timer&&clearTimeout(this._timer),this._timeouts=[],this._cachedTimeouts=null},e.prototype.retry=function(t){if(this._timeout&&clearTimeout(this._timeout),!t)return!1;var e=(new Date).getTime();if(t&&e-this._operationStart>=this._maxRetryTime)return this._errors.push(t),this._errors.unshift(new Error("RetryOperation timeout occurred")),!1;this._errors.push(t);var i=this._timeouts.shift();if(void 0===i){if(!this._cachedTimeouts)return!1;this._errors.splice(0,this._errors.length-1),i=this._cachedTimeouts.slice(-1)}var o=this;return this._timer=setTimeout(function(){o._attempts++,o._operationTimeoutCb&&(o._timeout=setTimeout(function(){o._operationTimeoutCb(o._attempts)},o._operationTimeout),o._options.unref&&o._timeout.unref()),o._fn(o._attempts)},i),this._options.unref&&this._timer.unref(),!0},e.prototype.attempt=function(t,e){this._fn=t,e&&(e.timeout&&(this._operationTimeout=e.timeout),e.cb&&(this._operationTimeoutCb=e.cb));var i=this;this._operationTimeoutCb&&(this._timeout=setTimeout(function(){i._operationTimeoutCb()},i._operationTimeout)),this._operationStart=(new Date).getTime(),this._fn(this._attempts)},e.prototype.try=function(t){console.log("Using RetryOperation.try() is deprecated"),this.attempt(t)},e.prototype.start=function(t){console.log("Using RetryOperation.start() is deprecated"),this.attempt(t)},e.prototype.start=e.prototype.try,e.prototype.errors=function(){return this._errors},e.prototype.attempts=function(){return this._attempts},e.prototype.mainError=function(){if(0===this._errors.length)return null;for(var t={},e=null,i=0,o=0;o=i&&(e=r,i=n)}return e}}},e={},i=function i(o){var r=e[o];if(void 0!==r)return r.exports;var s=e[o]={exports:{}};return t[o](s,s.exports,i),s.exports}(3961);module.exports=i})(); \ No newline at end of file diff --git a/packages/node_modules/source-map/lib/util.js b/packages/node_modules/source-map/lib/util.js new file mode 100644 index 00000000000..bcf9ea98dda --- /dev/null +++ b/packages/node_modules/source-map/lib/util.js @@ -0,0 +1 @@ +(()=>{var t={2626:(t,e,n)=>{"use strict";t.exports="function"==typeof URL?URL:n(7016).URL},7016:t=>{"use strict";t.exports=require("url")}},e={};function n(r){var o=e[r];if(void 0!==o)return o.exports;var i=e[r]={exports:{}};return t[r](i,i.exports,n),i.exports}var r={};(()=>{var t=r;const e=n(2626);t.getArg=function(t,e,n){if(e in t)return t[e];if(3===arguments.length)return n;throw new Error('"'+e+'" is a required argument.')};const o=!("__proto__"in Object.create(null));function i(t){return t}function u(t){if(!t)return!1;const e=t.length;if(e<9)return!1;if(95!==t.charCodeAt(e-1)||95!==t.charCodeAt(e-2)||111!==t.charCodeAt(e-3)||116!==t.charCodeAt(e-4)||111!==t.charCodeAt(e-5)||114!==t.charCodeAt(e-6)||112!==t.charCodeAt(e-7)||95!==t.charCodeAt(e-8)||95!==t.charCodeAt(e-9))return!1;for(let n=e-10;n>=0;n--)if(36!==t.charCodeAt(n))return!1;return!0}function a(t,e){return t===e?0:null===t?1:null===e?-1:t>e?1:-1}t.toSetString=o?i:function(t){return u(t)?"$"+t:t},t.fromSetString=o?i:function(t){return u(t)?t.slice(1):t},t.compareByGeneratedPositionsInflated=function(t,e){let n=t.generatedLine-e.generatedLine;return 0!==n?n:(n=t.generatedColumn-e.generatedColumn,0!==n?n:(n=a(t.source,e.source),0!==n?n:(n=t.originalLine-e.originalLine,0!==n?n:(n=t.originalColumn-e.originalColumn,0!==n?n:a(t.name,e.name)))))},t.parseSourceMapInput=function(t){return JSON.parse(t.replace(/^\)]}'[^\n]*\n/,""))};const c="http://host";function s(t){return n=>{const r=h(n),o=f(n),i=new e(n,o);t(i);const u=i.toString();return"absolute"===r?u:"scheme-relative"===r?u.slice(5):"path-absolute"===r?u.slice(11):g(o,u)}}function l(t,n){return new e(t,n).toString()}function f(t){const e=t.split("..").length-1,n=function(t,e){let n=0;for(;;){const t="p"+n++;if(-1===e.indexOf(t))return t}}(0,t);let r=`${c}/`;for(let t=0;t0&&!o[o.length-1]&&o.pop();r.length>0&&o.length>0&&r[0]===o[0];)r.shift(),o.shift();return o.map(()=>"..").concat(r).join("/")+n.search+n.hash}const d=s(t=>{t.pathname=t.pathname.replace(/\/?$/,"/")}),m=s(t=>{t.href=new e(".",t.toString()).toString()}),C=s(t=>{});function v(t,e){const n=h(e),r=h(t);if(t=d(t),"absolute"===n)return l(e,void 0);if("absolute"===r)return l(e,t);if("scheme-relative"===n)return C(e);if("scheme-relative"===r)return l(e,l(t,c)).slice(5);if("path-absolute"===n)return C(e);if("path-absolute"===r)return l(e,l(t,c)).slice(11);const o=f(e+t);return g(o,l(e,l(t,o)))}t.normalize=C,t.join=v,t.relative=function(t,n){const r=function(t,n){if(h(t)!==h(n))return null;const r=f(t+n),o=new e(t,r),i=new e(n,r);try{new e("",i.toString())}catch(t){return null}return i.protocol!==o.protocol||i.user!==o.user||i.password!==o.password||i.hostname!==o.hostname||i.port!==o.port?null:g(o,i)}(t,n);return"string"==typeof r?r:C(n)},t.computeSourceURL=function(t,e,n){t&&"path-absolute"===h(e)&&(e=e.replace(/^\//,""));let r=C(e||"");return t&&(r=v(t,r)),n&&(r=v(m(n),r)),r}})(),module.exports=r})(); \ No newline at end of file diff --git a/vendor/webpack.config.js b/vendor/webpack.config.js index c404800801f..595810af175 100644 --- a/vendor/webpack.config.js +++ b/vendor/webpack.config.js @@ -5,15 +5,18 @@ const { join } = require('path') const pkg = require('./package.json') const { readFileSync } = require('fs') -const dependOn = Object.keys(pkg.dependencies) const hash = createHash('sha256') hash.update(readFileSync(__filename)) const version = hash.digest('utf8') +const names = Object.keys(pkg.dependencies).concat([ + 'retry/lib/retry_operation', + 'source-map/lib/util' +]) module.exports = { - entry: Object.fromEntries(dependOn.map((next) => [next, `./node_modules/${next}`])), + entry: Object.fromEntries(names.map(name => [name, `./node_modules/${name}`])), target: 'node', mode: 'production', cache: { From 3039f8b14ae258b0550dba6efe01f6cfe3260a11 Mon Sep 17 00:00:00 2001 From: rochdev Date: Fri, 21 Nov 2025 08:50:29 -0500 Subject: [PATCH 10/95] remove filesystem cache --- vendor/webpack.config.js | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/vendor/webpack.config.js b/vendor/webpack.config.js index 595810af175..c6418003825 100644 --- a/vendor/webpack.config.js +++ b/vendor/webpack.config.js @@ -1,15 +1,8 @@ 'use strict' -const { createHash } = require('crypto') const { join } = require('path') const pkg = require('./package.json') -const { readFileSync } = require('fs') -const hash = createHash('sha256') - -hash.update(readFileSync(__filename)) - -const version = hash.digest('utf8') const names = Object.keys(pkg.dependencies).concat([ 'retry/lib/retry_operation', 'source-map/lib/util' @@ -19,10 +12,6 @@ module.exports = { entry: Object.fromEntries(names.map(name => [name, `./node_modules/${name}`])), target: 'node', mode: 'production', - cache: { - type: 'filesystem', - version, - }, output: { filename: '[name].js', libraryTarget: 'commonjs2', From 5b2612bf9b14b104345f41441c7747e972d2b7c5 Mon Sep 17 00:00:00 2001 From: rochdev Date: Fri, 21 Nov 2025 09:00:57 -0500 Subject: [PATCH 11/95] switch to rspack --- packages/node_modules/@isaacs/ttlcache.js | 2 +- .../node_modules/@opentelemetry/api-logs.js | 2 +- packages/node_modules/@opentelemetry/api.js | 2 +- packages/node_modules/@opentelemetry/core.js | 2 +- .../node_modules/@opentelemetry/resources.js | 2 +- packages/node_modules/crypto-randomuuid.js | 2 +- packages/node_modules/ignore.js | 2 +- .../node_modules/istanbul-lib-coverage.js | 2 +- packages/node_modules/jest-docblock.js | 2 +- packages/node_modules/jsonpath-plus.js | 2 +- packages/node_modules/limiter.js | 2 +- packages/node_modules/lodash.sortby.js | 2 +- packages/node_modules/lru-cache.js | 2 +- .../node_modules/module-details-from-path.js | 2 +- packages/node_modules/mutexify.js | 2 +- packages/node_modules/opentracing.js | 2 +- packages/node_modules/path-to-regexp.js | 2 +- packages/node_modules/pprof-format.js | 3 +- .../node_modules/pprof-format.js.LICENSE.txt | 3 - packages/node_modules/protobufjs.js | 2 +- packages/node_modules/retry.js | 2 +- .../node_modules/retry/lib/retry_operation.js | 2 +- packages/node_modules/rfdc.js | 2 +- packages/node_modules/semifies.js | 2 +- packages/node_modules/shell-quote.js | 2 +- packages/node_modules/source-map.js | 2 +- packages/node_modules/source-map/lib/util.js | 2 +- packages/node_modules/tlhunter-sorted-set.js | 2 +- packages/node_modules/ttl-set.js | 2 +- vendor/bun.lock | 476 +++++++++++++----- vendor/package.json | 6 +- .../{webpack.config.js => rspack.config.js} | 1 + 32 files changed, 396 insertions(+), 147 deletions(-) delete mode 100644 packages/node_modules/pprof-format.js.LICENSE.txt rename vendor/{webpack.config.js => rspack.config.js} (96%) diff --git a/packages/node_modules/@isaacs/ttlcache.js b/packages/node_modules/@isaacs/ttlcache.js index 16e91f7a330..dd8ae7a7c06 100644 --- a/packages/node_modules/@isaacs/ttlcache.js +++ b/packages/node_modules/@isaacs/ttlcache.js @@ -1 +1 @@ -(()=>{"use strict";var t={d:(e,i)=>{for(var s in i)t.o(i,s)&&!t.o(e,s)&&Object.defineProperty(e,s,{enumerable:!0,get:i[s]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r:t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}},e={};t.r(e),t.d(e,{TTLCache:()=>n});const i="object"==typeof performance&&performance&&"function"==typeof performance.now?performance:Date,s=()=>i.now(),o=t=>t===1/0||(t=>!!t&&t===Math.floor(t)&&t>0&&isFinite(t))(t);class n{expirations=Object.create(null);data=new Map;expirationMap=new Map;ttl;max;updateAgeOnGet;updateAgeOnHas;noUpdateTTL;noDisposeOnSet;checkAgeOnGet;checkAgeOnHas;dispose;timer;timerExpiration;immortalKeys=new Set;constructor({max:t=1/0,ttl:e,updateAgeOnGet:i=!1,checkAgeOnGet:s=!1,updateAgeOnHas:n=!1,checkAgeOnHas:a=!1,noUpdateTTL:r=!1,dispose:h,noDisposeOnSet:p=!1}={}){if(void 0!==e&&!o(e))throw new TypeError("ttl must be positive integer or Infinity if set");if(!o(t))throw new TypeError("max must be positive integer or Infinity");if(this.ttl=e,this.max=t,this.updateAgeOnGet=!!i,this.checkAgeOnGet=!!s,this.updateAgeOnHas=!!n,this.checkAgeOnHas=!!a,this.noUpdateTTL=!!r,this.noDisposeOnSet=!!p,void 0!==h){if("function"!=typeof h)throw new TypeError("dispose must be function if set");this.dispose=h}else this.dispose=(t,e,i)=>{};this.timer=void 0,this.timerExpiration=void 0}setTimer(t,e){if(this.timerExpiration&&this.timerExpiration{this.timer=void 0,this.timerExpiration=void 0,this.purgeStale();for(const t in this.expirations){const e=Number(t);this.setTimer(e,e-s());break}},Math.max(0,e));i.unref&&i.unref(),this.timerExpiration=t,this.timer=i}cancelTimer(){this.timer&&(clearTimeout(this.timer),this.timerExpiration=void 0,this.timer=void 0)}cancelTimers(){return process.emitWarning('TTLCache.cancelTimers has been renamed to TTLCache.cancelTimer (no "s"), and will be removed in the next major version update'),this.cancelTimer()}clear(){const t=this.dispose!==n.prototype.dispose?[...this]:[];this.data.clear(),this.expirationMap.clear(),this.cancelTimer(),this.expirations=Object.create(null);for(const[e,i]of t)this.dispose(i,e,"delete")}setTTL(t,e=this.ttl){const i=this.expirationMap.get(t);if(void 0!==i){const e=this.expirations[i];!e||e.length<=1?delete this.expirations[i]:this.expirations[i]=e.filter(e=>e!==t)}if(e&&e!==1/0){this.immortalKeys.delete(t);const i=Math.floor(s()+e);this.expirationMap.set(t,i),this.expirations[i]||(this.expirations[i]=[],this.setTimer(i,e)),this.expirations[i].push(t)}else this.immortalKeys.add(t),this.expirationMap.set(t,1/0)}set(t,e,{ttl:i=this.ttl,noUpdateTTL:s=this.noUpdateTTL,noDisposeOnSet:n=this.noDisposeOnSet}={}){if(!o(i))throw new TypeError("ttl must be positive integer or Infinity");if(this.expirationMap.has(t)){s||this.setTTL(t,i);const o=this.data.get(t),a=!n&&this.data.has(t);o!==e&&(this.data.set(t,e),a&&this.dispose(o,t,"set"))}else this.setTTL(t,i),this.data.set(t,e);for(;this.size>this.max;)this.purgeToCapacity();return this}has(t,{checkAgeOnHas:e=this.checkAgeOnHas,ttl:i=this.ttl,updateAgeOnHas:s=this.updateAgeOnHas}={}){return!!this.data.has(t)&&(e&&0===this.getRemainingTTL(t)?(this.delete(t),!1):(s&&this.setTTL(t,i),!0))}getRemainingTTL(t){const e=this.expirationMap.get(t);return e===1/0?e:void 0!==e?Math.max(0,Math.ceil(e-s())):0}get(t,{updateAgeOnGet:e=this.updateAgeOnGet,ttl:i=this.ttl,checkAgeOnGet:s=this.checkAgeOnGet}={}){const o=this.data.get(t);if(!s||0!==this.getRemainingTTL(t))return e&&this.setTTL(t,i),o;this.delete(t)}delete(t){const e=this.expirationMap.get(t);if(void 0!==e){const i=this.data.get(t);this.data.delete(t),this.expirationMap.delete(t),this.immortalKeys.delete(t);const s=this.expirations[e];return s&&(s.length<=1?delete this.expirations[e]:this.expirations[e]=s.filter(e=>e!==t)),this.dispose(i,t,"delete"),0===this.size&&this.cancelTimer(),!0}return!1}purgeToCapacity(){for(const t in this.expirations){const e=this.expirations[t];if(!(this.size-e.length>=this.max)){const t=this.size-this.max,i=[];for(const s of e.splice(0,t))i.push([s,this.data.get(s)]),this.data.delete(s),this.expirationMap.delete(s);for(const[t,e]of i)this.dispose(e,t,"evict");return}{delete this.expirations[t];const i=[];for(const t of e)i.push([t,this.data.get(t)]),this.data.delete(t),this.expirationMap.delete(t);for(const[t,e]of i)this.dispose(e,t,"evict")}}}get size(){return this.data.size}purgeStale(){const t=Math.ceil(s());for(const e in this.expirations){if("Infinity"===e||Number(e)>t)return;const i=[...this.expirations[e]||[]],s=[];delete this.expirations[e];for(const t of i)s.push([t,this.data.get(t)]),this.data.delete(t),this.expirationMap.delete(t);for(const[t,e]of s)this.dispose(e,t,"stale")}0===this.size&&this.cancelTimer()}*entries(){for(const t in this.expirations)for(const e of this.expirations[t])yield[e,this.data.get(e)];for(const t of this.immortalKeys)yield[t,this.data.get(t)]}*keys(){for(const t in this.expirations)for(const e of this.expirations[t])yield e;for(const t of this.immortalKeys)yield t}*values(){for(const t in this.expirations)for(const e of this.expirations[t])yield this.data.get(e);for(const t of this.immortalKeys)yield this.data.get(t)}[Symbol.iterator](){return this.entries()}}module.exports=e})(); \ No newline at end of file +(()=>{"use strict";var t={};t.d=(e,i)=>{for(var s in i)t.o(i,s)&&!t.o(e,s)&&Object.defineProperty(e,s,{enumerable:!0,get:i[s]})},t.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),t.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var e={};t.r(e),t.d(e,{TTLCache:()=>a});let i="object"==typeof performance&&performance&&"function"==typeof performance.now?performance:Date,s=()=>i.now(),r=t=>t===1/0||!!t&&t===Math.floor(t)&&t>0&&isFinite(t);class a{expirations=Object.create(null);data=new Map;expirationMap=new Map;ttl;max;updateAgeOnGet;updateAgeOnHas;noUpdateTTL;noDisposeOnSet;checkAgeOnGet;checkAgeOnHas;dispose;timer;timerExpiration;immortalKeys=new Set;constructor({max:t=1/0,ttl:e,updateAgeOnGet:i=!1,checkAgeOnGet:s=!1,updateAgeOnHas:a=!1,checkAgeOnHas:o=!1,noUpdateTTL:h=!1,dispose:n,noDisposeOnSet:l=!1}={}){if(void 0!==e&&!r(e))throw TypeError("ttl must be positive integer or Infinity if set");if(!r(t))throw TypeError("max must be positive integer or Infinity");if(this.ttl=e,this.max=t,this.updateAgeOnGet=!!i,this.checkAgeOnGet=!!s,this.updateAgeOnHas=!!a,this.checkAgeOnHas=!!o,this.noUpdateTTL=!!h,this.noDisposeOnSet=!!l,void 0!==n){if("function"!=typeof n)throw TypeError("dispose must be function if set");this.dispose=n}else this.dispose=(t,e,i)=>{};this.timer=void 0,this.timerExpiration=void 0}setTimer(t,e){if(this.timerExpiration&&this.timerExpiration{for(let t in this.timer=void 0,this.timerExpiration=void 0,this.purgeStale(),this.expirations){let e=Number(t);this.setTimer(e,e-s());break}},Math.max(0,e));i.unref&&i.unref(),this.timerExpiration=t,this.timer=i}cancelTimer(){this.timer&&(clearTimeout(this.timer),this.timerExpiration=void 0,this.timer=void 0)}cancelTimers(){return process.emitWarning('TTLCache.cancelTimers has been renamed to TTLCache.cancelTimer (no "s"), and will be removed in the next major version update'),this.cancelTimer()}clear(){let t=this.dispose!==a.prototype.dispose?[...this]:[];for(let[e,i]of(this.data.clear(),this.expirationMap.clear(),this.cancelTimer(),this.expirations=Object.create(null),t))this.dispose(i,e,"delete")}setTTL(t,e=this.ttl){let i=this.expirationMap.get(t);if(void 0!==i){let e=this.expirations[i];!e||e.length<=1?delete this.expirations[i]:this.expirations[i]=e.filter(e=>e!==t)}if(e&&e!==1/0){this.immortalKeys.delete(t);let i=Math.floor(s()+e);this.expirationMap.set(t,i),this.expirations[i]||(this.expirations[i]=[],this.setTimer(i,e)),this.expirations[i].push(t)}else this.immortalKeys.add(t),this.expirationMap.set(t,1/0)}set(t,e,{ttl:i=this.ttl,noUpdateTTL:s=this.noUpdateTTL,noDisposeOnSet:a=this.noDisposeOnSet}={}){if(!r(i))throw TypeError("ttl must be positive integer or Infinity");if(this.expirationMap.has(t)){s||this.setTTL(t,i);let r=this.data.get(t),o=!a&&this.data.has(t);r!==e&&(this.data.set(t,e),o&&this.dispose(r,t,"set"))}else this.setTTL(t,i),this.data.set(t,e);for(;this.size>this.max;)this.purgeToCapacity();return this}has(t,{checkAgeOnHas:e=this.checkAgeOnHas,ttl:i=this.ttl,updateAgeOnHas:s=this.updateAgeOnHas}={}){return!!this.data.has(t)&&(e&&0===this.getRemainingTTL(t)?(this.delete(t),!1):(s&&this.setTTL(t,i),!0))}getRemainingTTL(t){let e=this.expirationMap.get(t);return e===1/0?e:void 0!==e?Math.max(0,Math.ceil(e-s())):0}get(t,{updateAgeOnGet:e=this.updateAgeOnGet,ttl:i=this.ttl,checkAgeOnGet:s=this.checkAgeOnGet}={}){let r=this.data.get(t);return s&&0===this.getRemainingTTL(t)?void this.delete(t):(e&&this.setTTL(t,i),r)}delete(t){let e=this.expirationMap.get(t);if(void 0!==e){let i=this.data.get(t);this.data.delete(t),this.expirationMap.delete(t),this.immortalKeys.delete(t);let s=this.expirations[e];return s&&(s.length<=1?delete this.expirations[e]:this.expirations[e]=s.filter(e=>e!==t)),this.dispose(i,t,"delete"),0===this.size&&this.cancelTimer(),!0}return!1}purgeToCapacity(){for(let t in this.expirations){let e=this.expirations[t];if(this.size-e.length>=this.max){delete this.expirations[t];let i=[];for(let t of e)i.push([t,this.data.get(t)]),this.data.delete(t),this.expirationMap.delete(t);for(let[t,e]of i)this.dispose(e,t,"evict")}else{let t=this.size-this.max,i=[];for(let s of e.splice(0,t))i.push([s,this.data.get(s)]),this.data.delete(s),this.expirationMap.delete(s);for(let[t,e]of i)this.dispose(e,t,"evict");return}}}get size(){return this.data.size}purgeStale(){let t=Math.ceil(s());for(let e in this.expirations){if("Infinity"===e||Number(e)>t)return;let i=[...this.expirations[e]||[]],s=[];for(let t of(delete this.expirations[e],i))s.push([t,this.data.get(t)]),this.data.delete(t),this.expirationMap.delete(t);for(let[t,e]of s)this.dispose(e,t,"stale")}0===this.size&&this.cancelTimer()}*entries(){for(let t in this.expirations)for(let e of this.expirations[t])yield[e,this.data.get(e)];for(let t of this.immortalKeys)yield[t,this.data.get(t)]}*keys(){for(let t in this.expirations)for(let e of this.expirations[t])yield e;for(let t of this.immortalKeys)yield t}*values(){for(let t in this.expirations)for(let e of this.expirations[t])yield this.data.get(e);for(let t of this.immortalKeys)yield this.data.get(t)}[Symbol.iterator](){return this.entries()}}module.exports=e})(); \ No newline at end of file diff --git a/packages/node_modules/@opentelemetry/api-logs.js b/packages/node_modules/@opentelemetry/api-logs.js index 04f375ec8c6..d14a8ed4230 100644 --- a/packages/node_modules/@opentelemetry/api-logs.js +++ b/packages/node_modules/@opentelemetry/api-logs.js @@ -1 +1 @@ -(()=>{"use strict";var e,t={d:(e,r)=>{for(var o in r)t.o(r,o)&&!t.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:r[o]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},r={};t.r(r),t.d(r,{NOOP_LOGGER:()=>g,NoopLogger:()=>o,ProxyLoggerProvider:()=>n,SeverityNumber:()=>e,logs:()=>A}),function(e){e[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.TRACE=1]="TRACE",e[e.TRACE2=2]="TRACE2",e[e.TRACE3=3]="TRACE3",e[e.TRACE4=4]="TRACE4",e[e.DEBUG=5]="DEBUG",e[e.DEBUG2=6]="DEBUG2",e[e.DEBUG3=7]="DEBUG3",e[e.DEBUG4=8]="DEBUG4",e[e.INFO=9]="INFO",e[e.INFO2=10]="INFO2",e[e.INFO3=11]="INFO3",e[e.INFO4=12]="INFO4",e[e.WARN=13]="WARN",e[e.WARN2=14]="WARN2",e[e.WARN3=15]="WARN3",e[e.WARN4=16]="WARN4",e[e.ERROR=17]="ERROR",e[e.ERROR2=18]="ERROR2",e[e.ERROR3=19]="ERROR3",e[e.ERROR4=20]="ERROR4",e[e.FATAL=21]="FATAL",e[e.FATAL2=22]="FATAL2",e[e.FATAL3=23]="FATAL3",e[e.FATAL4=24]="FATAL4"}(e||(e={}));class o{emit(e){}}const g=new o,i=new class{getLogger(e,t,r){return new o}};class s{constructor(e,t,r,o){this._provider=e,this.name=t,this.version=r,this.options=o}emit(e){this._getLogger().emit(e)}_getLogger(){if(this._delegate)return this._delegate;const e=this._provider._getDelegateLogger(this.name,this.version,this.options);return e?(this._delegate=e,this._delegate):g}}class n{getLogger(e,t,r){var o;return null!==(o=this._getDelegateLogger(e,t,r))&&void 0!==o?o:new s(this,e,t,r)}_getDelegate(){var e;return null!==(e=this._delegate)&&void 0!==e?e:i}_setDelegate(e){this._delegate=e}_getDelegateLogger(e,t,r){var o;return null===(o=this._delegate)||void 0===o?void 0:o.getLogger(e,t,r)}}const l="object"==typeof globalThis?globalThis:global,a=Symbol.for("io.opentelemetry.js.api.logs"),R=l;class d{constructor(){this._proxyLoggerProvider=new n}static getInstance(){return this._instance||(this._instance=new d),this._instance}setGlobalLoggerProvider(e){return R[a]?this.getLoggerProvider():(R[a]=(t=e,r=i,e=>1===e?t:r),this._proxyLoggerProvider._setDelegate(e),e);var t,r}getLoggerProvider(){var e,t;return null!==(t=null===(e=R[a])||void 0===e?void 0:e.call(R,1))&&void 0!==t?t:this._proxyLoggerProvider}getLogger(e,t,r){return this.getLoggerProvider().getLogger(e,t,r)}disable(){delete R[a],this._proxyLoggerProvider=new n}}const A=d.getInstance();module.exports=r})(); \ No newline at end of file +(()=>{"use strict";var e,t,r={};r.d=(e,t)=>{for(var o in t)r.o(t,o)&&!r.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};r.r(o),r.d(o,{SeverityNumber:()=>t,NoopLogger:()=>g,NOOP_LOGGER:()=>i,logs:()=>A,ProxyLoggerProvider:()=>n}),(e=t||(t={}))[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.TRACE=1]="TRACE",e[e.TRACE2=2]="TRACE2",e[e.TRACE3=3]="TRACE3",e[e.TRACE4=4]="TRACE4",e[e.DEBUG=5]="DEBUG",e[e.DEBUG2=6]="DEBUG2",e[e.DEBUG3=7]="DEBUG3",e[e.DEBUG4=8]="DEBUG4",e[e.INFO=9]="INFO",e[e.INFO2=10]="INFO2",e[e.INFO3=11]="INFO3",e[e.INFO4=12]="INFO4",e[e.WARN=13]="WARN",e[e.WARN2=14]="WARN2",e[e.WARN3=15]="WARN3",e[e.WARN4=16]="WARN4",e[e.ERROR=17]="ERROR",e[e.ERROR2=18]="ERROR2",e[e.ERROR3=19]="ERROR3",e[e.ERROR4=20]="ERROR4",e[e.FATAL=21]="FATAL",e[e.FATAL2=22]="FATAL2",e[e.FATAL3=23]="FATAL3",e[e.FATAL4=24]="FATAL4";class g{emit(e){}}let i=new g,s=new class{getLogger(e,t,r){return new g}};class l{constructor(e,t,r,o){this._provider=e,this.name=t,this.version=r,this.options=o}emit(e){this._getLogger().emit(e)}_getLogger(){if(this._delegate)return this._delegate;let e=this._provider._getDelegateLogger(this.name,this.version,this.options);return e?(this._delegate=e,this._delegate):i}}class n{getLogger(e,t,r){var o;return null!=(o=this._getDelegateLogger(e,t,r))?o:new l(this,e,t,r)}_getDelegate(){var e;return null!=(e=this._delegate)?e:s}_setDelegate(e){this._delegate=e}_getDelegateLogger(e,t,r){var o;return null==(o=this._delegate)?void 0:o.getLogger(e,t,r)}}let a="object"==typeof globalThis?globalThis:global,R=Symbol.for("io.opentelemetry.js.api.logs");class d{constructor(){this._proxyLoggerProvider=new n}static getInstance(){return this._instance||(this._instance=new d),this._instance}setGlobalLoggerProvider(e){return a[R]?this.getLoggerProvider():(a[R]=t=>1===t?e:s,this._proxyLoggerProvider._setDelegate(e),e)}getLoggerProvider(){var e,t;return null!=(t=null==(e=a[R])?void 0:e.call(a,1))?t:this._proxyLoggerProvider}getLogger(e,t,r){return this.getLoggerProvider().getLogger(e,t,r)}disable(){delete a[R],this._proxyLoggerProvider=new n}}let A=d.getInstance();module.exports=o})(); \ No newline at end of file diff --git a/packages/node_modules/@opentelemetry/api.js b/packages/node_modules/@opentelemetry/api.js index 91f4fed1660..dbbdb158eec 100644 --- a/packages/node_modules/@opentelemetry/api.js +++ b/packages/node_modules/@opentelemetry/api.js @@ -1 +1 @@ -(()=>{"use strict";var t={d:(e,n)=>{for(var r in n)t.o(n,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:n[r]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r:t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}},e={};t.r(e),t.d(e,{DiagConsoleLogger:()=>R,DiagLogLevel:()=>p,INVALID_SPANID:()=>tt,INVALID_SPAN_CONTEXT:()=>nt,INVALID_TRACEID:()=>et,ProxyTracer:()=>Et,ProxyTracerProvider:()=>Ct,ROOT_CONTEXT:()=>O,SamplingDecision:()=>ht,SpanKind:()=>_t,SpanStatusCode:()=>bt,TraceFlags:()=>X,ValueType:()=>E,baggageEntryMetadataFromString:()=>w,context:()=>Dt,createContextKey:()=>S,createNoopMeter:()=>W,createTraceState:()=>It,default:()=>Yt,defaultTextMapGetter:()=>H,defaultTextMapSetter:()=>Y,diag:()=>Pt,isSpanContextValid:()=>vt,isValidSpanId:()=>gt,isValidTraceId:()=>yt,metrics:()=>Vt,propagation:()=>Wt,trace:()=>Ht});var n="object"==typeof globalThis?globalThis:global,r="1.9.0",o=/^(\d+)\.(\d+)\.(\d+)(-(.+))?$/,i=function(t){var e=new Set([t]),n=new Set,r=t.match(o);if(!r)return function(){return!1};var i=+r[1],a=+r[2],u=+r[3];if(null!=r[4])return function(e){return e===t};function c(t){return n.add(t),!1}function l(t){return e.add(t),!0}return function(t){if(e.has(t))return!0;if(n.has(t))return!1;var r=t.match(o);if(!r)return c(t);var s=+r[1],f=+r[2],p=+r[3];return null!=r[4]||i!==s?c(t):0===i?a===f&&u<=p?l(t):c(t):a<=f?l(t):c(t)}}(r),a=r.split(".")[0],u=Symbol.for("opentelemetry.js.api."+a),c=n;function l(t,e,n,o){var i;void 0===o&&(o=!1);var a=c[u]=null!==(i=c[u])&&void 0!==i?i:{version:r};if(!o&&a[t]){var l=new Error("@opentelemetry/api: Attempted duplicate registration of API: "+t);return n.error(l.stack||l.message),!1}return a.version!==r?(l=new Error("@opentelemetry/api: Registration of version v"+a.version+" for "+t+" does not match previously registered API v"+r),n.error(l.stack||l.message),!1):(a[t]=e,n.debug("@opentelemetry/api: Registered a global for "+t+" v"+r+"."),!0)}function s(t){var e,n,r=null===(e=c[u])||void 0===e?void 0:e.version;if(r&&i(r))return null===(n=c[u])||void 0===n?void 0:n[t]}function f(t,e){e.debug("@opentelemetry/api: Unregistering a global for "+t+" v"+r+".");var n=c[u];n&&delete n[t]}var p,y=function(){function t(t){this._namespace=t.namespace||"DiagComponentLogger"}return t.prototype.debug=function(){for(var t=[],e=0;e0)&&!(r=i.next()).done;)a.push(r.value)}catch(t){o={error:t}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}(n),!1))}!function(t){t[t.NONE=0]="NONE",t[t.ERROR=30]="ERROR",t[t.WARN=50]="WARN",t[t.INFO=60]="INFO",t[t.DEBUG=70]="DEBUG",t[t.VERBOSE=80]="VERBOSE",t[t.ALL=9999]="ALL"}(p||(p={}));var v=function(){function t(){function t(t){return function(){for(var e=[],n=0;n0)&&!(r=i.next()).done;)a.push(r.value)}catch(t){o={error:t}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}(e),!1))}}var e=this;e.setLogger=function(t,n){var r,o,i;if(void 0===n&&(n={logLevel:p.INFO}),t===e){var a=new Error("Cannot use diag as the logger for itself. Please use a DiagLogger implementation like ConsoleDiagLogger or a custom implementation");return e.error(null!==(r=a.stack)&&void 0!==r?r:a.message),!1}"number"==typeof n&&(n={logLevel:n});var u=s("diag"),c=function(t,e){function n(n,r){var o=e[n];return"function"==typeof o&&t>=r?o.bind(e):function(){}}return tp.ALL&&(t=p.ALL),e=e||{},{error:n("error",p.ERROR),warn:n("warn",p.WARN),info:n("info",p.INFO),debug:n("debug",p.DEBUG),verbose:n("verbose",p.VERBOSE)}}(null!==(o=n.logLevel)&&void 0!==o?o:p.INFO,t);if(u&&!n.suppressOverrideMessage){var f=null!==(i=(new Error).stack)&&void 0!==i?i:"";u.warn("Current logger will be overwritten from "+f),c.warn("Current logger will overwrite one already registered from "+f)}return l("diag",c,e,!0)},e.disable=function(){f("diag",e)},e.createComponentLogger=function(t){return new y(t)},e.verbose=t("verbose"),e.debug=t("debug"),e.info=t("info"),e.warn=t("warn"),e.error=t("error")}return t.instance=function(){return this._instance||(this._instance=new t),this._instance},t}(),d=function(){function t(t){this._entries=t?new Map(t):new Map}return t.prototype.getEntry=function(t){var e=this._entries.get(t);if(e)return Object.assign({},e)},t.prototype.getAllEntries=function(){return Array.from(this._entries.entries()).map(function(t){var e=function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,o,i=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(t){o={error:t}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}(t,2);return[e[0],e[1]]})},t.prototype.setEntry=function(e,n){var r=new t(this._entries);return r._entries.set(e,n),r},t.prototype.removeEntry=function(e){var n=new t(this._entries);return n._entries.delete(e),n},t.prototype.removeEntries=function(){for(var e,n,r=[],o=0;o=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}(r),u=a.next();!u.done;u=a.next()){var c=u.value;i._entries.delete(c)}}catch(t){e={error:t}}finally{try{u&&!u.done&&(n=a.return)&&n.call(a)}finally{if(e)throw e.error}}return i},t.prototype.clear=function(){return new t},t}(),h=Symbol("BaggageEntryMetadata"),_=v.instance();function b(t){return void 0===t&&(t={}),new d(new Map(Object.entries(t)))}function w(t){return"string"!=typeof t&&(_.error("Cannot create baggage metadata from unknown type: "+typeof t),t=""),{__TYPE__:h,toString:function(){return t}}}function S(t){return Symbol.for(t)}var m,E,O=new function t(e){var n=this;n._currentContext=e?new Map(e):new Map,n.getValue=function(t){return n._currentContext.get(t)},n.setValue=function(e,r){var o=new t(n._currentContext);return o._currentContext.set(e,r),o},n.deleteValue=function(e){var r=new t(n._currentContext);return r._currentContext.delete(e),r}},C=[{n:"error",c:"error"},{n:"warn",c:"warn"},{n:"info",c:"info"},{n:"debug",c:"debug"},{n:"verbose",c:"trace"}],R=function(){function t(t){return function(){for(var e=[],n=0;n0)&&!(r=i.next()).done;)a.push(r.value)}catch(t){o={error:t}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}(r),!1))},t.prototype.bind=function(t,e){return e},t.prototype.enable=function(){return this},t.prototype.disable=function(){return this},t}(),J="context",Q=new q,Z=function(){function t(){}return t.getInstance=function(){return this._instance||(this._instance=new t),this._instance},t.prototype.setGlobalContextManager=function(t){return l(J,t,v.instance())},t.prototype.active=function(){return this._getContextManager().active()},t.prototype.with=function(t,e,n){for(var r,o=[],i=3;i0)&&!(r=i.next()).done;)a.push(r.value)}catch(t){o={error:t}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}(o),!1))},t.prototype.bind=function(t,e){return this._getContextManager().bind(t,e)},t.prototype._getContextManager=function(){return s(J)||Q},t.prototype.disable=function(){this._getContextManager().disable(),f(J,v.instance())},t}();!function(t){t[t.NONE=0]="NONE",t[t.SAMPLED=1]="SAMPLED"}(X||(X={}));var tt="0000000000000000",et="00000000000000000000000000000000",nt={traceId:et,spanId:tt,traceFlags:X.NONE},rt=function(){function t(t){void 0===t&&(t=nt),this._spanContext=t}return t.prototype.spanContext=function(){return this._spanContext},t.prototype.setAttribute=function(t,e){return this},t.prototype.setAttributes=function(t){return this},t.prototype.addEvent=function(t,e){return this},t.prototype.addLink=function(t){return this},t.prototype.addLinks=function(t){return this},t.prototype.setStatus=function(t){return this},t.prototype.updateName=function(t){return this},t.prototype.end=function(t){},t.prototype.isRecording=function(){return!1},t.prototype.recordException=function(t,e){},t}(),ot=S("OpenTelemetry Context Key SPAN");function it(t){return t.getValue(ot)||void 0}function at(){return it(Z.getInstance().active())}function ut(t,e){return t.setValue(ot,e)}function ct(t){return t.deleteValue(ot)}function lt(t,e){return ut(t,new rt(e))}function st(t){var e;return null===(e=it(t))||void 0===e?void 0:e.spanContext()}var ft=/^([0-9a-f]{32})$/i,pt=/^[0-9a-f]{16}$/i;function yt(t){return ft.test(t)&&t!==et}function gt(t){return pt.test(t)&&t!==tt}function vt(t){return yt(t.traceId)&>(t.spanId)}function dt(t){return new rt(t)}var ht,_t,bt,wt=Z.getInstance(),St=function(){function t(){}return t.prototype.startSpan=function(t,e,n){if(void 0===n&&(n=wt.active()),Boolean(null==e?void 0:e.root))return new rt;var r,o=n&&st(n);return"object"==typeof(r=o)&&"string"==typeof r.spanId&&"string"==typeof r.traceId&&"number"==typeof r.traceFlags&&vt(o)?new rt(o):new rt},t.prototype.startActiveSpan=function(t,e,n,r){var o,i,a;if(!(arguments.length<2)){2===arguments.length?a=e:3===arguments.length?(o=e,a=n):(o=e,i=n,a=r);var u=null!=i?i:wt.active(),c=this.startSpan(t,o,u),l=ut(u,c);return wt.with(l,a,void 0,c)}},t}(),mt=new St,Et=function(){function t(t,e,n,r){this._provider=t,this.name=e,this.version=n,this.options=r}return t.prototype.startSpan=function(t,e,n){return this._getTracer().startSpan(t,e,n)},t.prototype.startActiveSpan=function(t,e,n,r){var o=this._getTracer();return Reflect.apply(o.startActiveSpan,o,arguments)},t.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):mt},t}(),Ot=new(function(){function t(){}return t.prototype.getTracer=function(t,e,n){return new St},t}()),Ct=function(){function t(){}return t.prototype.getTracer=function(t,e,n){var r;return null!==(r=this.getDelegateTracer(t,e,n))&&void 0!==r?r:new Et(this,t,e,n)},t.prototype.getDelegate=function(){var t;return null!==(t=this._delegate)&&void 0!==t?t:Ot},t.prototype.setDelegate=function(t){this._delegate=t},t.prototype.getDelegateTracer=function(t,e,n){var r;return null===(r=this._delegate)||void 0===r?void 0:r.getTracer(t,e,n)},t}();!function(t){t[t.NOT_RECORD=0]="NOT_RECORD",t[t.RECORD=1]="RECORD",t[t.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"}(ht||(ht={})),function(t){t[t.INTERNAL=0]="INTERNAL",t[t.SERVER=1]="SERVER",t[t.CLIENT=2]="CLIENT",t[t.PRODUCER=3]="PRODUCER",t[t.CONSUMER=4]="CONSUMER"}(_t||(_t={})),function(t){t[t.UNSET=0]="UNSET",t[t.OK=1]="OK",t[t.ERROR=2]="ERROR"}(bt||(bt={}));var Rt="[_0-9a-z-*/]",Tt=new RegExp("^(?:[a-z]"+Rt+"{0,255}|[a-z0-9]"+Rt+"{0,240}@[a-z]"+Rt+"{0,13})$"),xt=/^[ -~]{0,255}[!-~]$/,Nt=/,|=/,At=function(){function t(t){this._internalState=new Map,t&&this._parse(t)}return t.prototype.set=function(t,e){var n=this._clone();return n._internalState.has(t)&&n._internalState.delete(t),n._internalState.set(t,e),n},t.prototype.unset=function(t){var e=this._clone();return e._internalState.delete(t),e},t.prototype.get=function(t){return this._internalState.get(t)},t.prototype.serialize=function(){var t=this;return this._keys().reduce(function(e,n){return e.push(n+"="+t.get(n)),e},[]).join(",")},t.prototype._parse=function(t){t.length>512||(this._internalState=t.split(",").reverse().reduce(function(t,e){var n=e.trim(),r=n.indexOf("=");if(-1!==r){var o=n.slice(0,r),i=n.slice(r+1,e.length);(function(t){return Tt.test(t)})(o)&&function(t){return xt.test(t)&&!Nt.test(t)}(i)&&t.set(o,i)}return t},new Map),this._internalState.size>32&&(this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,32))))},t.prototype._keys=function(){return Array.from(this._internalState.keys()).reverse()},t.prototype._clone=function(){var e=new t;return e._internalState=new Map(this._internalState),e},t}();function It(t){return new At(t)}var Dt=Z.getInstance(),Pt=v.instance(),Mt=new(function(){function t(){}return t.prototype.getMeter=function(t,e,n){return k},t}()),Lt="metrics",Vt=function(){function t(){}return t.getInstance=function(){return this._instance||(this._instance=new t),this._instance},t.prototype.setGlobalMeterProvider=function(t){return l(Lt,t,v.instance())},t.prototype.getMeterProvider=function(){return s(Lt)||Mt},t.prototype.getMeter=function(t,e,n){return this.getMeterProvider().getMeter(t,e,n)},t.prototype.disable=function(){f(Lt,v.instance())},t}().getInstance(),jt=function(){function t(){}return t.prototype.inject=function(t,e){},t.prototype.extract=function(t,e){return t},t.prototype.fields=function(){return[]},t}(),kt=S("OpenTelemetry Baggage Key");function Bt(t){return t.getValue(kt)||void 0}function Gt(){return Bt(Z.getInstance().active())}function Ut(t,e){return t.setValue(kt,e)}function Ft(t){return t.deleteValue(kt)}var zt="propagation",Kt=new jt,$t=function(){function t(){this.createBaggage=b,this.getBaggage=Bt,this.getActiveBaggage=Gt,this.setBaggage=Ut,this.deleteBaggage=Ft}return t.getInstance=function(){return this._instance||(this._instance=new t),this._instance},t.prototype.setGlobalPropagator=function(t){return l(zt,t,v.instance())},t.prototype.inject=function(t,e,n){return void 0===n&&(n=Y),this._getGlobalPropagator().inject(t,e,n)},t.prototype.extract=function(t,e,n){return void 0===n&&(n=H),this._getGlobalPropagator().extract(t,e,n)},t.prototype.fields=function(){return this._getGlobalPropagator().fields()},t.prototype.disable=function(){f(zt,v.instance())},t.prototype._getGlobalPropagator=function(){return s(zt)||Kt},t}(),Wt=$t.getInstance(),Xt="trace",Ht=function(){function t(){this._proxyTracerProvider=new Ct,this.wrapSpanContext=dt,this.isSpanContextValid=vt,this.deleteSpan=ct,this.getSpan=it,this.getActiveSpan=at,this.getSpanContext=st,this.setSpan=ut,this.setSpanContext=lt}return t.getInstance=function(){return this._instance||(this._instance=new t),this._instance},t.prototype.setGlobalTracerProvider=function(t){var e=l(Xt,this._proxyTracerProvider,v.instance());return e&&this._proxyTracerProvider.setDelegate(t),e},t.prototype.getTracerProvider=function(){return s(Xt)||this._proxyTracerProvider},t.prototype.getTracer=function(t,e){return this.getTracerProvider().getTracer(t,e)},t.prototype.disable=function(){f(Xt,v.instance()),this._proxyTracerProvider=new Ct},t}().getInstance();const Yt={context:Dt,diag:Pt,metrics:Vt,propagation:Wt,trace:Ht};module.exports=e})(); \ No newline at end of file +(()=>{"use strict";var t,e,n,r,o,i,a,u,c,l,s,p,f,y={};y.d=(t,e)=>{for(var n in e)y.o(e,n)&&!y.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},y.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),y.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var g={};y.r(g),y.d(g,{TraceFlags:()=>l,createContextKey:()=>V,createNoopMeter:()=>ta,metrics:()=>tq,propagation:()=>t5,ValueType:()=>c,context:()=>tW,ProxyTracerProvider:()=>tB,createTraceState:()=>t$,defaultTextMapGetter:()=>tu,DiagLogLevel:()=>u,trace:()=>t6,SpanStatusCode:()=>f,isValidTraceId:()=>tA,ProxyTracer:()=>tV,INVALID_TRACEID:()=>t_,INVALID_SPAN_CONTEXT:()=>tb,ROOT_CONTEXT:()=>k,default:()=>t7,DiagConsoleLogger:()=>G,defaultTextMapSetter:()=>tc,isSpanContextValid:()=>tD,INVALID_SPANID:()=>td,SamplingDecision:()=>s,diag:()=>tX,SpanKind:()=>p,isValidSpanId:()=>tI,baggageEntryMetadataFromString:()=>j});var h="object"==typeof globalThis?globalThis:global,v="1.9.0",d=/^(\d+)\.(\d+)\.(\d+)(-(.+))?$/,_=function(t){var e=new Set([t]),n=new Set,r=t.match(d);if(!r)return function(){return!1};var o={major:+r[1],minor:+r[2],patch:+r[3],prerelease:r[4]};if(null!=o.prerelease)return function(e){return e===t};function i(t){return n.add(t),!1}return function(t){if(e.has(t))return!0;if(n.has(t))return!1;var r=t.match(d);if(!r)return i(t);var a={major:+r[1],minor:+r[2],patch:+r[3],prerelease:r[4]};if(null!=a.prerelease||o.major!==a.major)return i(t);if(0===o.major)return o.minor===a.minor&&o.patch<=a.patch?(e.add(t),!0):i(t);return o.minor<=a.minor?(e.add(t),!0):i(t)}}(v),b=Symbol.for("opentelemetry.js.api."+v.split(".")[0]);function m(t,e,n,r){void 0===r&&(r=!1);var o,i=h[b]=null!=(o=h[b])?o:{version:v};if(!r&&i[t]){var a=Error("@opentelemetry/api: Attempted duplicate registration of API: "+t);return n.error(a.stack||a.message),!1}if(i.version!==v){var a=Error("@opentelemetry/api: Registration of version v"+i.version+" for "+t+" does not match previously registered API v"+v);return n.error(a.stack||a.message),!1}return i[t]=e,n.debug("@opentelemetry/api: Registered a global for "+t+" v"+v+"."),!0}function w(t){var e,n,r=null==(e=h[b])?void 0:e.version;if(r&&_(r))return null==(n=h[b])?void 0:n[t]}function S(t,e){e.debug("@opentelemetry/api: Unregistering a global for "+t+" v"+v+".");var n=h[b];n&&delete n[t]}var E=function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,o,i=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(t){o={error:t}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},O=function(t,e,n){if(n||2==arguments.length)for(var r,o=0,i=e.length;o0)&&!(r=i.next()).done;)a.push(r.value)}catch(t){o={error:t}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},x=function(t,e,n){if(n||2==arguments.length)for(var r,o=0,i=e.length;o=r?o.bind(e):function(){}}return tu.ALL&&(t=u.ALL),e=e||{},{error:n("error",u.ERROR),warn:n("warn",u.WARN),info:n("info",u.INFO),debug:n("debug",u.DEBUG),verbose:n("verbose",u.VERBOSE)}}(null!=(o=n.logLevel)?o:u.INFO,t);if(c&&!n.suppressOverrideMessage){var s=null!=(i=Error().stack)?i:"";c.warn("Current logger will be overwritten from "+s),l.warn("Current logger will overwrite one already registered from "+s)}return m("diag",l,e,!0)},e.disable=function(){S("diag",e)},e.createComponentLogger=function(t){return new C(t)},e.verbose=t("verbose"),e.debug=t("debug"),e.info=t("info"),e.warn=t("warn"),e.error=t("error")}return t.instance=function(){return this._instance||(this._instance=new t),this._instance},t}(),A=function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,o,i=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(t){o={error:t}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},I=function(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},D=function(){function t(t){this._entries=t?new Map(t):new Map}return t.prototype.getEntry=function(t){var e=this._entries.get(t);if(e)return Object.assign({},e)},t.prototype.getAllEntries=function(){return Array.from(this._entries.entries()).map(function(t){var e=A(t,2);return[e[0],e[1]]})},t.prototype.setEntry=function(e,n){var r=new t(this._entries);return r._entries.set(e,n),r},t.prototype.removeEntry=function(e){var n=new t(this._entries);return n._entries.delete(e),n},t.prototype.removeEntries=function(){for(var e,n,r=[],o=0;o0)&&!(r=i.next()).done;)a.push(r.value)}catch(t){o={error:t}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},ts=function(t,e,n){if(n||2==arguments.length)for(var r,o=0,i=e.length;o0)&&!(r=i.next()).done;)a.push(r.value)}catch(t){o={error:t}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},ty=function(t,e,n){if(n||2==arguments.length)for(var r,o=0,i=e.length;o512)&&(this._internalState=t.split(",").reverse().reduce(function(t,e){var n=e.trim(),r=n.indexOf("=");if(-1!==r){var o=n.slice(0,r),i=n.slice(r+1,e.length);tU.test(o)&&tF.test(i)&&!tz.test(i)&&t.set(o,i)}return t},new Map),this._internalState.size>32&&(this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,32))))},t.prototype._keys=function(){return Array.from(this._internalState.keys()).reverse()},t.prototype._clone=function(){var e=new t;return e._internalState=new Map(this._internalState),e},t}();function t$(t){return new tK(t)}var tW=tv.getInstance(),tX=N.instance(),tH=new(function(){function t(){}return t.prototype.getMeter=function(t,e,n){return Q},t}()),tY="metrics",tq=(function(){function t(){}return t.getInstance=function(){return this._instance||(this._instance=new t),this._instance},t.prototype.setGlobalMeterProvider=function(t){return m(tY,t,N.instance())},t.prototype.getMeterProvider=function(){return w(tY)||tH},t.prototype.getMeter=function(t,e,n){return this.getMeterProvider().getMeter(t,e,n)},t.prototype.disable=function(){S(tY,N.instance())},t})().getInstance(),tJ=function(){function t(){}return t.prototype.inject=function(t,e){},t.prototype.extract=function(t,e){return t},t.prototype.fields=function(){return[]},t}(),tQ=V("OpenTelemetry Baggage Key");function tZ(t){return t.getValue(tQ)||void 0}function t0(){return tZ(tv.getInstance().active())}function t1(t,e){return t.setValue(tQ,e)}function t2(t){return t.deleteValue(tQ)}var t3="propagation",t9=new tJ,t5=(function(){function t(){this.createBaggage=L,this.getBaggage=tZ,this.getActiveBaggage=t0,this.setBaggage=t1,this.deleteBaggage=t2}return t.getInstance=function(){return this._instance||(this._instance=new t),this._instance},t.prototype.setGlobalPropagator=function(t){return m(t3,t,N.instance())},t.prototype.inject=function(t,e,n){return void 0===n&&(n=tc),this._getGlobalPropagator().inject(t,e,n)},t.prototype.extract=function(t,e,n){return void 0===n&&(n=tu),this._getGlobalPropagator().extract(t,e,n)},t.prototype.fields=function(){return this._getGlobalPropagator().fields()},t.prototype.disable=function(){S(t3,N.instance())},t.prototype._getGlobalPropagator=function(){return w(t3)||t9},t})().getInstance(),t4="trace",t6=(function(){function t(){this._proxyTracerProvider=new tB,this.wrapSpanContext=tP,this.isSpanContextValid=tD,this.deleteSpan=tC,this.getSpan=tS,this.getActiveSpan=tE,this.getSpanContext=tT,this.setSpan=tO,this.setSpanContext=tR}return t.getInstance=function(){return this._instance||(this._instance=new t),this._instance},t.prototype.setGlobalTracerProvider=function(t){var e=m(t4,this._proxyTracerProvider,N.instance());return e&&this._proxyTracerProvider.setDelegate(t),e},t.prototype.getTracerProvider=function(){return w(t4)||this._proxyTracerProvider},t.prototype.getTracer=function(t,e){return this.getTracerProvider().getTracer(t,e)},t.prototype.disable=function(){S(t4,N.instance()),this._proxyTracerProvider=new tB},t})().getInstance();let t7={context:tW,diag:tX,metrics:tq,propagation:t5,trace:t6};module.exports=g})(); \ No newline at end of file diff --git a/packages/node_modules/@opentelemetry/core.js b/packages/node_modules/@opentelemetry/core.js index 314e3b23ef0..6068d3b1e09 100644 --- a/packages/node_modules/@opentelemetry/core.js +++ b/packages/node_modules/@opentelemetry/core.js @@ -1 +1 @@ -(()=>{"use strict";var t={d:(e,r)=>{for(var n in r)t.o(r,n)&&!t.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:r[n]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r:t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}},e={};t.r(e),t.d(e,{AlwaysOffSampler:()=>Ke,AlwaysOnSampler:()=>We,AnchoredClock:()=>z,BindOnceFuture:()=>Lr,CompositePropagator:()=>re,DEFAULT_ATTRIBUTE_COUNT_LIMIT:()=>Vt,DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT:()=>Gt,DEFAULT_ENVIRONMENT:()=>Ht,DEFAULT_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT:()=>Ft,DEFAULT_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT:()=>kt,ExportResultCode:()=>at,ParentBasedSampler:()=>Ye,RPCType:()=>Be,RandomIdGenerator:()=>Pt,SDK_INFO:()=>Nt,TRACE_PARENT_HEADER:()=>we,TRACE_STATE_HEADER:()=>Me,TimeoutError:()=>yr,TraceIdRatioBasedSampler:()=>ze,TraceState:()=>Ne,TracesSamplerValues:()=>Ct,VERSION:()=>bt,W3CBaggagePropagator:()=>Y,W3CTraceContextPropagator:()=>Xe,_globalThis:()=>wt,addHrTimes:()=>Rt,baggageUtils:()=>mr,callWithTimeout:()=>dr,deleteRPCMetadata:()=>Ve,getEnv:()=>$t,getEnvWithoutDefaults:()=>Qt,getRPCMetadata:()=>Fe,getTimeOrigin:()=>_t,globalErrorHandler:()=>it,hexToBase64:()=>qt,hexToBinary:()=>Lt,hrTime:()=>pt,hrTimeDuration:()=>Tt,hrTimeToMicroseconds:()=>gt,hrTimeToMilliseconds:()=>dt,hrTimeToNanoseconds:()=>yt,hrTimeToTimeStamp:()=>Ot,internal:()=>Ar,isAttributeKey:()=>q,isAttributeValue:()=>tt,isTimeInput:()=>ht,isTimeInputHrTime:()=>vt,isTracingSuppressed:()=>V,isUrlIgnored:()=>hr,isWrapped:()=>Rr,loggingErrorHandler:()=>rt,merge:()=>ur,millisToHrTime:()=>st,otperformance:()=>ut,parseEnvironment:()=>Jt,parseTraceParent:()=>De,sanitizeAttributes:()=>Q,setGlobalErrorHandler:()=>ot,setRPCMetadata:()=>Ge,suppressTracing:()=>j,timeInputToHrTime:()=>Et,unrefTimer:()=>te,unsuppressTracing:()=>G,urlMatches:()=>vr});var r="object"==typeof globalThis?globalThis:global,n="1.9.0",o=/^(\d+)\.(\d+)\.(\d+)(-(.+))?$/,i=function(t){var e=new Set([t]),r=new Set,n=t.match(o);if(!n)return function(){return!1};var i=+n[1],a=+n[2],u=+n[3];if(null!=n[4])return function(e){return e===t};function c(t){return r.add(t),!1}function l(t){return e.add(t),!0}return function(t){if(e.has(t))return!0;if(r.has(t))return!1;var n=t.match(o);if(!n)return c(t);var f=+n[1],s=+n[2],_=+n[3];return null!=n[4]||i!==f?c(t):0===i?a===s&&u<=_?l(t):c(t):a<=s?l(t):c(t)}}(n),a=n.split(".")[0],u=Symbol.for("opentelemetry.js.api."+a),c=r;function l(t,e,r,o){var i;void 0===o&&(o=!1);var a=c[u]=null!==(i=c[u])&&void 0!==i?i:{version:n};if(!o&&a[t]){var l=new Error("@opentelemetry/api: Attempted duplicate registration of API: "+t);return r.error(l.stack||l.message),!1}return a.version!==n?(l=new Error("@opentelemetry/api: Registration of version v"+a.version+" for "+t+" does not match previously registered API v"+n),r.error(l.stack||l.message),!1):(a[t]=e,r.debug("@opentelemetry/api: Registered a global for "+t+" v"+n+"."),!0)}function f(t){var e,r,n=null===(e=c[u])||void 0===e?void 0:e.version;if(n&&i(n))return null===(r=c[u])||void 0===r?void 0:r[t]}function s(t,e){e.debug("@opentelemetry/api: Unregistering a global for "+t+" v"+n+".");var r=c[u];r&&delete r[t]}var _=function(){function t(){}return t.prototype.inject=function(t,e){},t.prototype.extract=function(t,e){return t},t.prototype.fields=function(){return[]},t}(),p={get:function(t,e){if(null!=t)return t[e]},keys:function(t){return null==t?[]:Object.keys(t)}},E={set:function(t,e,r){null!=t&&(t[e]=r)}};function T(t){return Symbol.for(t)}var O,y=new function t(e){var r=this;r._currentContext=e?new Map(e):new Map,r.getValue=function(t){return r._currentContext.get(t)},r.setValue=function(e,n){var o=new t(r._currentContext);return o._currentContext.set(e,n),o},r.deleteValue=function(e){var n=new t(r._currentContext);return n._currentContext.delete(e),n}},d=function(){function t(){}return t.prototype.active=function(){return y},t.prototype.with=function(t,e,r){for(var n=[],o=3;o0)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}(n),!1))},t.prototype.bind=function(t,e){return e},t.prototype.enable=function(){return this},t.prototype.disable=function(){return this},t}(),g=function(){function t(t){this._namespace=t.namespace||"DiagComponentLogger"}return t.prototype.debug=function(){for(var t=[],e=0;e0)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}(r),!1))}!function(t){t[t.NONE=0]="NONE",t[t.ERROR=30]="ERROR",t[t.WARN=50]="WARN",t[t.INFO=60]="INFO",t[t.DEBUG=70]="DEBUG",t[t.VERBOSE=80]="VERBOSE",t[t.ALL=9999]="ALL"}(O||(O={}));var h=function(){function t(){function t(t){return function(){for(var e=[],r=0;r0)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}(e),!1))}}var e=this;e.setLogger=function(t,r){var n,o,i;if(void 0===r&&(r={logLevel:O.INFO}),t===e){var a=new Error("Cannot use diag as the logger for itself. Please use a DiagLogger implementation like ConsoleDiagLogger or a custom implementation");return e.error(null!==(n=a.stack)&&void 0!==n?n:a.message),!1}"number"==typeof r&&(r={logLevel:r});var u=f("diag"),c=function(t,e){function r(r,n){var o=e[r];return"function"==typeof o&&t>=n?o.bind(e):function(){}}return tO.ALL&&(t=O.ALL),e=e||{},{error:r("error",O.ERROR),warn:r("warn",O.WARN),info:r("info",O.INFO),debug:r("debug",O.DEBUG),verbose:r("verbose",O.VERBOSE)}}(null!==(o=r.logLevel)&&void 0!==o?o:O.INFO,t);if(u&&!r.suppressOverrideMessage){var s=null!==(i=(new Error).stack)&&void 0!==i?i:"";u.warn("Current logger will be overwritten from "+s),c.warn("Current logger will overwrite one already registered from "+s)}return l("diag",c,e,!0)},e.disable=function(){s("diag",e)},e.createComponentLogger=function(t){return new g(t)},e.verbose=t("verbose"),e.debug=t("debug"),e.info=t("info"),e.warn=t("warn"),e.error=t("error")}return t.instance=function(){return this._instance||(this._instance=new t),this._instance},t}(),R="context",S=new d,L=function(){function t(){}return t.getInstance=function(){return this._instance||(this._instance=new t),this._instance},t.prototype.setGlobalContextManager=function(t){return l(R,t,h.instance())},t.prototype.active=function(){return this._getContextManager().active()},t.prototype.with=function(t,e,r){for(var n,o=[],i=3;i0)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}(o),!1))},t.prototype.bind=function(t,e){return this._getContextManager().bind(t,e)},t.prototype._getContextManager=function(){return f(R)||S},t.prototype.disable=function(){this._getContextManager().disable(),s(R,h.instance())},t}(),P=T("OpenTelemetry Baggage Key");function m(t){return t.getValue(P)||void 0}function A(){return m(L.getInstance().active())}function I(t,e){return t.setValue(P,e)}function C(t){return t.deleteValue(P)}var b=function(){function t(t){this._entries=t?new Map(t):new Map}return t.prototype.getEntry=function(t){var e=this._entries.get(t);if(e)return Object.assign({},e)},t.prototype.getAllEntries=function(){return Array.from(this._entries.entries()).map(function(t){var e=function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}(t,2);return[e[0],e[1]]})},t.prototype.setEntry=function(e,r){var n=new t(this._entries);return n._entries.set(e,r),n},t.prototype.removeEntry=function(e){var r=new t(this._entries);return r._entries.delete(e),r},t.prototype.removeEntries=function(){for(var e,r,n=[],o=0;o=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}(n),u=a.next();!u.done;u=a.next()){var c=u.value;i._entries.delete(c)}}catch(t){e={error:t}}finally{try{u&&!u.done&&(r=a.return)&&r.call(a)}finally{if(e)throw e.error}}return i},t.prototype.clear=function(){return new t},t}(),N=Symbol("BaggageEntryMetadata"),w=h.instance();function M(t){return void 0===t&&(t={}),new b(new Map(Object.entries(t)))}var U="propagation",D=new _,B=function(){function t(){this.createBaggage=M,this.getBaggage=m,this.getActiveBaggage=A,this.setBaggage=I,this.deleteBaggage=C}return t.getInstance=function(){return this._instance||(this._instance=new t),this._instance},t.prototype.setGlobalPropagator=function(t){return l(U,t,h.instance())},t.prototype.inject=function(t,e,r){return void 0===r&&(r=E),this._getGlobalPropagator().inject(t,e,r)},t.prototype.extract=function(t,e,r){return void 0===r&&(r=p),this._getGlobalPropagator().extract(t,e,r)},t.prototype.fields=function(){return this._getGlobalPropagator().fields()},t.prototype.disable=function(){s(U,h.instance())},t.prototype._getGlobalPropagator=function(){return f(U)||D},t}(),x=B.getInstance(),X=T("OpenTelemetry SDK Context Key SUPPRESS_TRACING");function j(t){return t.setValue(X,!0)}function G(t){return t.deleteValue(X)}function V(t){return!0===t.getValue(X)}var F=",",k="baggage";function H(t){return t.reduce(function(t,e){var r=""+t+(""!==t?F:"")+e;return r.length>8192?t:r},"")}function K(t){return t.getAllEntries().map(function(t){var e=function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}(t,2),r=e[0],n=e[1],o=encodeURIComponent(r)+"="+encodeURIComponent(n.value);return void 0!==n.metadata&&(o+=";"+n.metadata.toString()),o})}function W(t){var e=t.split(";");if(!(e.length<=0)){var r=e.shift();if(r){var n=r.indexOf("=");if(!(n<=0)){var o,i,a=decodeURIComponent(r.substring(0,n).trim()),u=decodeURIComponent(r.substring(n+1).trim());return e.length>0&&("string"!=typeof(i=e.join(";"))&&(w.error("Cannot create baggage metadata from unknown type: "+typeof i),i=""),o={__TYPE__:N,toString:function(){return i}}),{key:a,value:u,metadata:o}}}}}var Y=function(){function t(){}return t.prototype.inject=function(t,e,r){var n=x.getBaggage(t);if(n&&!V(t)){var o=H(K(n).filter(function(t){return t.length<=4096}).slice(0,180));o.length>0&&r.set(e,k,o)}},t.prototype.extract=function(t,e,r){var n=r.get(e,k),o=Array.isArray(n)?n.join(F):n;if(!o)return t;var i={};return 0===o.length?t:(o.split(F).forEach(function(t){var e=W(t);if(e){var r={value:e.value};e.metadata&&(r.metadata=e.metadata),i[e.key]=r}}),0===Object.entries(i).length?t:x.setBaggage(t,x.createBaggage(i)))},t.prototype.fields=function(){return[k]},t}(),z=function(){function t(t,e){this._monotonicClock=e,this._epochMillis=t.now(),this._performanceMillis=e.now()}return t.prototype.now=function(){var t=this._monotonicClock.now()-this._performanceMillis;return this._epochMillis+t},t}(),Z=h.instance(),J=function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},$=function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a};function Q(t){var e,r,n={};if("object"!=typeof t||null==t)return n;try{for(var o=J(Object.entries(t)),i=o.next();!i.done;i=o.next()){var a=$(i.value,2),u=a[0],c=a[1];q(u)?tt(c)?Array.isArray(c)?n[u]=c.slice():n[u]=c:Z.warn("Invalid attribute value set for key: "+u):Z.warn("Invalid attribute key: "+u)}}catch(t){e={error:t}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(e)throw e.error}}return n}function q(t){return"string"==typeof t&&t.length>0}function tt(t){return null==t||(Array.isArray(t)?function(t){var e,r,n;try{for(var o=J(t),i=o.next();!i.done;i=o.next()){var a=i.value;if(null!=a){if(!n){if(et(a)){n=typeof a;continue}return!1}if(typeof a!==n)return!1}}}catch(t){e={error:t}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(e)throw e.error}}return!0}(t):et(t))}function et(t){switch(typeof t){case"number":case"boolean":case"string":return!0}return!1}function rt(){return function(t){Z.error(function(t){return"string"==typeof t?t:JSON.stringify(function(t){for(var e={},r=t;null!==r;)Object.getOwnPropertyNames(r).forEach(function(t){if(!e[t]){var n=r[t];n&&(e[t]=String(n))}}),r=Object.getPrototypeOf(r);return e}(t))}(t))}}var nt=rt();function ot(t){nt=t}function it(t){try{nt(t)}catch(t){}}var at,ut=require("perf_hooks").performance,ct=9,lt=Math.pow(10,6),ft=Math.pow(10,ct);function st(t){var e=t/1e3;return[Math.trunc(e),Math.round(t%1e3*lt)]}function _t(){var t=ut.timeOrigin;if("number"!=typeof t){var e=ut;t=e.timing&&e.timing.fetchStart}return t}function pt(t){return Rt(st(_t()),st("number"==typeof t?t:ut.now()))}function Et(t){if(vt(t))return t;if("number"==typeof t)return t<_t()?pt(t):st(t);if(t instanceof Date)return st(t.getTime());throw TypeError("Invalid input type")}function Tt(t,e){var r=e[0]-t[0],n=e[1]-t[1];return n<0&&(r-=1,n+=ft),[r,n]}function Ot(t){var e=ct,r=""+"0".repeat(e)+t[1]+"Z",n=r.substring(r.length-e-1);return new Date(1e3*t[0]).toISOString().replace("000Z",n)}function yt(t){return t[0]*ft+t[1]}function dt(t){return 1e3*t[0]+t[1]/1e6}function gt(t){return 1e6*t[0]+t[1]/1e3}function vt(t){return Array.isArray(t)&&2===t.length&&"number"==typeof t[0]&&"number"==typeof t[1]}function ht(t){return vt(t)||"number"==typeof t||t instanceof Date}function Rt(t,e){var r=[t[0]+e[0],t[1]+e[1]];return r[1]>=ft&&(r[1]-=ft,r[0]+=1),r}function St(t){return t>=48&&t<=57?t-48:t>=97&&t<=102?t-87:t-55}function Lt(t){for(var e=new Uint8Array(t.length/2),r=0,n=0;n>>0,4*e);for(e=0;e0);e++)e===t-1&&(mt[t-1]=1);return mt.toString("hex",0,t)}}var It,Ct,bt="1.30.1",Nt=((It={})["telemetry.sdk.name"]="opentelemetry",It["process.runtime.name"]="node",It["telemetry.sdk.language"]="nodejs",It["telemetry.sdk.version"]=bt,It),wt="object"==typeof globalThis?globalThis:global;!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"}(Ct||(Ct={}));var Mt=",",Ut=["OTEL_SDK_DISABLED"];function Dt(t){return Ut.indexOf(t)>-1}var Bt=["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 xt(t){return Bt.indexOf(t)>-1}var Xt=["OTEL_NO_PATCH_MODULES","OTEL_PROPAGATORS","OTEL_SEMCONV_STABILITY_OPT_IN"];function jt(t){return Xt.indexOf(t)>-1}var Gt=1/0,Vt=128,Ft=128,kt=128,Ht={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:O.INFO,OTEL_NO_PATCH_MODULES:[],OTEL_PROPAGATORS:["tracecontext","baggage"],OTEL_RESOURCE_ATTRIBUTES:"",OTEL_SERVICE_NAME:"",OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT:Gt,OTEL_ATTRIBUTE_COUNT_LIMIT:Vt,OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT:Gt,OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT:Vt,OTEL_LOGRECORD_ATTRIBUTE_VALUE_LENGTH_LIMIT:Gt,OTEL_LOGRECORD_ATTRIBUTE_COUNT_LIMIT:Vt,OTEL_SPAN_EVENT_COUNT_LIMIT:128,OTEL_SPAN_LINK_COUNT_LIMIT:128,OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT:Ft,OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT:kt,OTEL_TRACES_EXPORTER:"",OTEL_TRACES_SAMPLER:Ct.ParentBasedAlwaysOn,OTEL_TRACES_SAMPLER_ARG:"",OTEL_LOGS_EXPORTER:"",OTEL_EXPORTER_OTLP_INSECURE:"",OTEL_EXPORTER_OTLP_TRACES_INSECURE:"",OTEL_EXPORTER_OTLP_METRICS_INSECURE:"",OTEL_EXPORTER_OTLP_LOGS_INSECURE:"",OTEL_EXPORTER_OTLP_CERTIFICATE:"",OTEL_EXPORTER_OTLP_TRACES_CERTIFICATE:"",OTEL_EXPORTER_OTLP_METRICS_CERTIFICATE:"",OTEL_EXPORTER_OTLP_LOGS_CERTIFICATE:"",OTEL_EXPORTER_OTLP_COMPRESSION:"",OTEL_EXPORTER_OTLP_TRACES_COMPRESSION:"",OTEL_EXPORTER_OTLP_METRICS_COMPRESSION:"",OTEL_EXPORTER_OTLP_LOGS_COMPRESSION:"",OTEL_EXPORTER_OTLP_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_TRACES_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_METRICS_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_LOGS_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_TRACES_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_METRICS_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_LOGS_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_TRACES_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_METRICS_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_LOGS_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE:"cumulative",OTEL_SEMCONV_STABILITY_OPT_IN:[]};function Kt(t,e,r){if(void 0!==r[t]){var n=String(r[t]);e[t]="true"===n.toLowerCase()}}function Wt(t,e,r,n,o){if(void 0===n&&(n=-1/0),void 0===o&&(o=1/0),void 0!==r[t]){var i=Number(r[t]);isNaN(i)||(e[t]=io?o:i)}}function Yt(t,e,r,n){void 0===n&&(n=Mt);var o=r[t];"string"==typeof o&&(e[t]=o.split(n).map(function(t){return t.trim()}))}var zt={ALL:O.ALL,VERBOSE:O.VERBOSE,DEBUG:O.DEBUG,INFO:O.INFO,WARN:O.WARN,ERROR:O.ERROR,NONE:O.NONE};function Zt(t,e,r){var n=r[t];if("string"==typeof n){var o=zt[n.toUpperCase()];null!=o&&(e[t]=o)}}function Jt(t){var e={};for(var r in Ht){var n=r;if("OTEL_LOG_LEVEL"===n)Zt(n,e,t);else if(Dt(n))Kt(n,e,t);else if(xt(n))Wt(n,e,t);else if(jt(n))Yt(n,e,t);else{var o=t[n];null!=o&&(e[n]=String(o))}}return e}function $t(){var t=Jt(process.env);return Object.assign({},Ht,t)}function Qt(){return Jt(process.env)}function qt(t){return Buffer.from(Lt(t)).toString("base64")}function te(t){t.unref()}var ee,re=function(){function t(t){var e;void 0===t&&(t={}),this._propagators=null!==(e=t.propagators)&&void 0!==e?e:[],this._fields=Array.from(new Set(this._propagators.map(function(t){return"function"==typeof t.fields?t.fields():[]}).reduce(function(t,e){return t.concat(e)},[])))}return t.prototype.inject=function(t,e,r){var n,o;try{for(var i=function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}(this._propagators),a=i.next();!a.done;a=i.next()){var u=a.value;try{u.inject(t,e,r)}catch(t){Z.warn("Failed to inject with "+u.constructor.name+". Err: "+t.message)}}}catch(t){n={error:t}}finally{try{a&&!a.done&&(o=i.return)&&o.call(i)}finally{if(n)throw n.error}}},t.prototype.extract=function(t,e,r){return this._propagators.reduce(function(t,n){try{return n.extract(t,e,r)}catch(t){Z.warn("Failed to extract with "+n.constructor.name+". Err: "+t.message)}return t},t)},t.prototype.fields=function(){return this._fields.slice()},t}();!function(t){t[t.NONE=0]="NONE",t[t.SAMPLED=1]="SAMPLED"}(ee||(ee={}));var ne="0000000000000000",oe="00000000000000000000000000000000",ie={traceId:oe,spanId:ne,traceFlags:ee.NONE},ae=function(){function t(t){void 0===t&&(t=ie),this._spanContext=t}return t.prototype.spanContext=function(){return this._spanContext},t.prototype.setAttribute=function(t,e){return this},t.prototype.setAttributes=function(t){return this},t.prototype.addEvent=function(t,e){return this},t.prototype.addLink=function(t){return this},t.prototype.addLinks=function(t){return this},t.prototype.setStatus=function(t){return this},t.prototype.updateName=function(t){return this},t.prototype.end=function(t){},t.prototype.isRecording=function(){return!1},t.prototype.recordException=function(t,e){},t}(),ue=T("OpenTelemetry Context Key SPAN");function ce(t){return t.getValue(ue)||void 0}function le(){return ce(L.getInstance().active())}function fe(t,e){return t.setValue(ue,e)}function se(t){return t.deleteValue(ue)}function _e(t,e){return fe(t,new ae(e))}function pe(t){var e;return null===(e=ce(t))||void 0===e?void 0:e.spanContext()}var Ee=/^([0-9a-f]{32})$/i,Te=/^[0-9a-f]{16}$/i;function Oe(t){return Ee.test(t)&&t!==oe}function ye(t){return Oe(t.traceId)&&(e=t.spanId,Te.test(e)&&e!==ne);var e}function de(t){return new ae(t)}var ge=L.getInstance(),ve=function(){function t(){}return t.prototype.startSpan=function(t,e,r){if(void 0===r&&(r=ge.active()),Boolean(null==e?void 0:e.root))return new ae;var n,o=r&&pe(r);return"object"==typeof(n=o)&&"string"==typeof n.spanId&&"string"==typeof n.traceId&&"number"==typeof n.traceFlags&&ye(o)?new ae(o):new ae},t.prototype.startActiveSpan=function(t,e,r,n){var o,i,a;if(!(arguments.length<2)){2===arguments.length?a=e:3===arguments.length?(o=e,a=r):(o=e,i=r,a=n);var u=null!=i?i:ge.active(),c=this.startSpan(t,o,u),l=fe(u,c);return ge.with(l,a,void 0,c)}},t}(),he=new ve,Re=function(){function t(t,e,r,n){this._provider=t,this.name=e,this.version=r,this.options=n}return t.prototype.startSpan=function(t,e,r){return this._getTracer().startSpan(t,e,r)},t.prototype.startActiveSpan=function(t,e,r,n){var o=this._getTracer();return Reflect.apply(o.startActiveSpan,o,arguments)},t.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):he},t}(),Se=new(function(){function t(){}return t.prototype.getTracer=function(t,e,r){return new ve},t}()),Le=function(){function t(){}return t.prototype.getTracer=function(t,e,r){var n;return null!==(n=this.getDelegateTracer(t,e,r))&&void 0!==n?n:new Re(this,t,e,r)},t.prototype.getDelegate=function(){var t;return null!==(t=this._delegate)&&void 0!==t?t:Se},t.prototype.setDelegate=function(t){this._delegate=t},t.prototype.getDelegateTracer=function(t,e,r){var n;return null===(n=this._delegate)||void 0===n?void 0:n.getTracer(t,e,r)},t}(),Pe="trace",me=function(){function t(){this._proxyTracerProvider=new Le,this.wrapSpanContext=de,this.isSpanContextValid=ye,this.deleteSpan=se,this.getSpan=ce,this.getActiveSpan=le,this.getSpanContext=pe,this.setSpan=fe,this.setSpanContext=_e}return t.getInstance=function(){return this._instance||(this._instance=new t),this._instance},t.prototype.setGlobalTracerProvider=function(t){var e=l(Pe,this._proxyTracerProvider,h.instance());return e&&this._proxyTracerProvider.setDelegate(t),e},t.prototype.getTracerProvider=function(){return f(Pe)||this._proxyTracerProvider},t.prototype.getTracer=function(t,e){return this.getTracerProvider().getTracer(t,e)},t.prototype.disable=function(){s(Pe,h.instance()),this._proxyTracerProvider=new Le},t}().getInstance(),Ae="[_0-9a-z-*/]",Ie=new RegExp("^(?:[a-z]"+Ae+"{0,255}|[a-z0-9]"+Ae+"{0,240}@[a-z]"+Ae+"{0,13})$"),Ce=/^[ -~]{0,255}[!-~]$/,be=/,|=/,Ne=function(){function t(t){this._internalState=new Map,t&&this._parse(t)}return t.prototype.set=function(t,e){var r=this._clone();return r._internalState.has(t)&&r._internalState.delete(t),r._internalState.set(t,e),r},t.prototype.unset=function(t){var e=this._clone();return e._internalState.delete(t),e},t.prototype.get=function(t){return this._internalState.get(t)},t.prototype.serialize=function(){var t=this;return this._keys().reduce(function(e,r){return e.push(r+"="+t.get(r)),e},[]).join(",")},t.prototype._parse=function(t){t.length>512||(this._internalState=t.split(",").reverse().reduce(function(t,e){var r=e.trim(),n=r.indexOf("=");if(-1!==n){var o=r.slice(0,n),i=r.slice(n+1,e.length);(function(t){return Ie.test(t)})(o)&&function(t){return Ce.test(t)&&!be.test(t)}(i)&&t.set(o,i)}return t},new Map),this._internalState.size>32&&(this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,32))))},t.prototype._keys=function(){return Array.from(this._internalState.keys()).reverse()},t.prototype._clone=function(){var e=new t;return e._internalState=new Map(this._internalState),e},t}(),we="traceparent",Me="tracestate",Ue=new RegExp("^\\s?((?!ff)[\\da-f]{2})-((?![0]{32})[\\da-f]{32})-((?![0]{16})[\\da-f]{16})-([\\da-f]{2})(-.*)?\\s?$");function De(t){var e=Ue.exec(t);return e?"00"===e[1]&&e[5]?null:{traceId:e[2],spanId:e[3],traceFlags:parseInt(e[4],16)}:null}var Be,xe,Xe=function(){function t(){}return t.prototype.inject=function(t,e,r){var n=me.getSpanContext(t);if(n&&!V(t)&&ye(n)){var o="00-"+n.traceId+"-"+n.spanId+"-0"+Number(n.traceFlags||ee.NONE).toString(16);r.set(e,we,o),n.traceState&&r.set(e,Me,n.traceState.serialize())}},t.prototype.extract=function(t,e,r){var n=r.get(e,we);if(!n)return t;var o=Array.isArray(n)?n[0]:n;if("string"!=typeof o)return t;var i=De(o);if(!i)return t;i.isRemote=!0;var a=r.get(e,Me);if(a){var u=Array.isArray(a)?a.join(","):a;i.traceState=new Ne("string"==typeof u?u:void 0)}return me.setSpanContext(t,i)},t.prototype.fields=function(){return[we,Me]},t}(),je=T("OpenTelemetry SDK Context Key RPC_METADATA");function Ge(t,e){return t.setValue(je,e)}function Ve(t){return t.deleteValue(je)}function Fe(t){return t.getValue(je)}!function(t){t.HTTP="http"}(Be||(Be={})),function(t){t[t.NOT_RECORD=0]="NOT_RECORD",t[t.RECORD=1]="RECORD",t[t.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"}(xe||(xe={}));var ke,He,Ke=function(){function t(){}return t.prototype.shouldSample=function(){return{decision:xe.NOT_RECORD}},t.prototype.toString=function(){return"AlwaysOffSampler"},t}(),We=function(){function t(){}return t.prototype.shouldSample=function(){return{decision:xe.RECORD_AND_SAMPLED}},t.prototype.toString=function(){return"AlwaysOnSampler"},t}(),Ye=function(){function t(t){var e,r,n,o;this._root=t.root,this._root||(it(new Error("ParentBasedSampler must have a root sampler configured")),this._root=new We),this._remoteParentSampled=null!==(e=t.remoteParentSampled)&&void 0!==e?e:new We,this._remoteParentNotSampled=null!==(r=t.remoteParentNotSampled)&&void 0!==r?r:new Ke,this._localParentSampled=null!==(n=t.localParentSampled)&&void 0!==n?n:new We,this._localParentNotSampled=null!==(o=t.localParentNotSampled)&&void 0!==o?o:new Ke}return t.prototype.shouldSample=function(t,e,r,n,o,i){var a=me.getSpanContext(t);return a&&ye(a)?a.isRemote?a.traceFlags&ee.SAMPLED?this._remoteParentSampled.shouldSample(t,e,r,n,o,i):this._remoteParentNotSampled.shouldSample(t,e,r,n,o,i):a.traceFlags&ee.SAMPLED?this._localParentSampled.shouldSample(t,e,r,n,o,i):this._localParentNotSampled.shouldSample(t,e,r,n,o,i):this._root.shouldSample(t,e,r,n,o,i)},t.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()+"}"},t}(),ze=function(){function t(t){void 0===t&&(t=0),this._ratio=t,this._ratio=this._normalize(t),this._upperBound=Math.floor(4294967295*this._ratio)}return t.prototype.shouldSample=function(t,e){return{decision:Oe(e)&&this._accumulate(e)=1?1:t<=0?0:t},t.prototype._accumulate=function(t){for(var e=0,r=0;r>>0}return e},t}(),Ze="[object Object]",Je="[object Null]",$e="[object Undefined]",Qe=Function.prototype.toString,qe=Qe.call(Object),tr=(ke=Object.getPrototypeOf,He=Object,function(t){return ke(He(t))}),er=Object.prototype,rr=er.hasOwnProperty,nr=Symbol?Symbol.toStringTag:void 0,or=er.toString;function ir(t){if(!function(t){return null!=t&&"object"==typeof t}(t)||function(t){return null==t?void 0===t?$e:Je:nr&&nr in Object(t)?function(t){var e=rr.call(t,nr),r=t[nr],n=!1;try{t[nr]=void 0,n=!0}catch(t){}var o=or.call(t);return n&&(e?t[nr]=r:delete t[nr]),o}(t):function(t){return or.call(t)}(t)}(t)!==Ze)return!1;var e=tr(t);if(null===e)return!0;var r=rr.call(e,"constructor")&&e.constructor;return"function"==typeof r&&r instanceof r&&Qe.call(r)===qe}var ar=20;function ur(){for(var t=[],e=0;e0;)r=lr(r,t.shift(),0,n);return r}function cr(t){return sr(t)?t.slice():t}function lr(t,e,r,n){var o;if(void 0===r&&(r=0),!(r>ar)){if(r++,Er(t)||Er(e)||_r(e))o=cr(e);else if(sr(t)){if(o=t.slice(),sr(e))for(var i=0,a=e.length;i=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};function vr(t,e){return"string"==typeof e?t===e:!!t.match(e)}function hr(t,e){var r,n;if(!e)return!1;try{for(var o=gr(e),i=o.next();!i.done;i=o.next())if(vr(t,i.value))return!0}catch(t){r={error:t}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return!1}function Rr(t){return"function"==typeof t&&"function"==typeof t.__original&&"function"==typeof t.__unwrap&&!0===t.__wrapped}var Sr=function(){function t(){var t=this;this._promise=new Promise(function(e,r){t._resolve=e,t._reject=r})}return Object.defineProperty(t.prototype,"promise",{get:function(){return this._promise},enumerable:!1,configurable:!0}),t.prototype.resolve=function(t){this._resolve(t)},t.prototype.reject=function(t){this._reject(t)},t}(),Lr=function(){function t(t,e){this._callback=t,this._that=e,this._isCalled=!1,this._deferred=new Sr}return Object.defineProperty(t.prototype,"isCalled",{get:function(){return this._isCalled},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"promise",{get:function(){return this._deferred.promise},enumerable:!1,configurable:!0}),t.prototype.call=function(){for(var t,e=this,r=[],n=0;n0)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}(r),!1))).then(function(t){return e._deferred.resolve(t)},function(t){return e._deferred.reject(t)})}catch(t){this._deferred.reject(t)}}return this._deferred.promise},t}(),Pr=L.getInstance(),mr={getKeyPairs:K,serializeKeyPairs:H,parseKeyPairsIntoRecord:function(t){return"string"!=typeof t||0===t.length?{}:t.split(F).map(function(t){return W(t)}).filter(function(t){return void 0!==t&&t.value.length>0}).reduce(function(t,e){return t[e.key]=e.value,t},{})},parsePairKeyValue:W},Ar={_export:function(t,e){return new Promise(function(r){Pr.with(j(Pr.active()),function(){t.export(e,function(t){r(t)})})})}};module.exports=e})(); \ No newline at end of file +(()=>{"use strict";var t,e,r,n,o,i,a,u,c,l,f,s,_,p,E,T={};T.d=(t,e)=>{for(var r in e)T.o(e,r)&&!T.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},T.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),T.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var O={};T.r(O),T.d(O,{baggageUtils:()=>ri,hrTime:()=>tb,timeInputToHrTime:()=>tN,W3CTraceContextPropagator:()=>eM,callWithTimeout:()=>e8,AlwaysOnSampler:()=>eX,isTracingSuppressed:()=>tc,AlwaysOffSampler:()=>ej,loggingErrorHandler:()=>tS,DEFAULT_ATTRIBUTE_COUNT_LIMIT:()=>tQ,deleteRPCMetadata:()=>ex,suppressTracing:()=>ta,RPCType:()=>p,RandomIdGenerator:()=>tk,setRPCMetadata:()=>eD,unrefTimer:()=>t6,hrTimeToMilliseconds:()=>tD,TRACE_PARENT_HEADER:()=>eC,unsuppressTracing:()=>tu,globalErrorHandler:()=>tm,_globalThis:()=>tY,getEnvWithoutDefaults:()=>t8,ParentBasedSampler:()=>eG,millisToHrTime:()=>tI,isTimeInputHrTime:()=>tB,otperformance:()=>tA,internal:()=>ra,urlMatches:()=>e6,BindOnceFuture:()=>rn,DEFAULT_ENVIRONMENT:()=>t1,SDK_INFO:()=>tW,isWrapped:()=>e7,isAttributeKey:()=>th,TraceState:()=>eI,hexToBase64:()=>t9,TRACE_STATE_HEADER:()=>eb,getEnv:()=>t4,getTimeOrigin:()=>tC,TraceIdRatioBasedSampler:()=>eV,hrTimeDuration:()=>tw,DEFAULT_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT:()=>tq,isTimeInput:()=>tj,hexToBinary:()=>tV,DEFAULT_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT:()=>t0,parseTraceParent:()=>ew,isUrlIgnored:()=>e5,parseEnvironment:()=>t3,setGlobalErrorHandler:()=>tP,DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT:()=>t$,isAttributeValue:()=>tv,CompositePropagator:()=>t7,hrTimeToMicroseconds:()=>tx,AnchoredClock:()=>tT,TracesSamplerValues:()=>s,ExportResultCode:()=>l,hrTimeToNanoseconds:()=>tU,merge:()=>eJ,TimeoutError:()=>e4,W3CBaggagePropagator:()=>tE,addHrTimes:()=>tX,getRPCMetadata:()=>eB,sanitizeAttributes:()=>td,hrTimeToTimeStamp:()=>tM,VERSION:()=>tK});var y="object"==typeof globalThis?globalThis:global,g="1.9.0",d=/^(\d+)\.(\d+)\.(\d+)(-(.+))?$/,h=function(t){var e=new Set([t]),r=new Set,n=t.match(d);if(!n)return function(){return!1};var o={major:+n[1],minor:+n[2],patch:+n[3],prerelease:n[4]};if(null!=o.prerelease)return function(e){return e===t};function i(t){return r.add(t),!1}return function(t){if(e.has(t))return!0;if(r.has(t))return!1;var n=t.match(d);if(!n)return i(t);var a={major:+n[1],minor:+n[2],patch:+n[3],prerelease:n[4]};if(null!=a.prerelease||o.major!==a.major)return i(t);if(0===o.major)return o.minor===a.minor&&o.patch<=a.patch?(e.add(t),!0):i(t);return o.minor<=a.minor?(e.add(t),!0):i(t)}}(g),v=Symbol.for("opentelemetry.js.api."+g.split(".")[0]);function R(t,e,r,n){void 0===n&&(n=!1);var o,i=y[v]=null!=(o=y[v])?o:{version:g};if(!n&&i[t]){var a=Error("@opentelemetry/api: Attempted duplicate registration of API: "+t);return r.error(a.stack||a.message),!1}if(i.version!==g){var a=Error("@opentelemetry/api: Registration of version v"+i.version+" for "+t+" does not match previously registered API v"+g);return r.error(a.stack||a.message),!1}return i[t]=e,r.debug("@opentelemetry/api: Registered a global for "+t+" v"+g+"."),!0}function S(t){var e,r,n=null==(e=y[v])?void 0:e.version;if(n&&h(n))return null==(r=y[v])?void 0:r[t]}function L(t,e){e.debug("@opentelemetry/api: Unregistering a global for "+t+" v"+g+".");var r=y[v];r&&delete r[t]}var P=function(){function t(){}return t.prototype.inject=function(t,e){},t.prototype.extract=function(t,e){return t},t.prototype.fields=function(){return[]},t}(),m={get:function(t,e){if(null!=t)return t[e]},keys:function(t){return null==t?[]:Object.keys(t)}},A={set:function(t,e,r){null!=t&&(t[e]=r)}};function I(t){return Symbol.for(t)}var C=new function t(e){var r=this;r._currentContext=e?new Map(e):new Map,r.getValue=function(t){return r._currentContext.get(t)},r.setValue=function(e,n){var o=new t(r._currentContext);return o._currentContext.set(e,n),o},r.deleteValue=function(e){var n=new t(r._currentContext);return n._currentContext.delete(e),n}},b=function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},N=function(t,e,r){if(r||2==arguments.length)for(var n,o=0,i=e.length;o0)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},U=function(t,e,r){if(r||2==arguments.length)for(var n,o=0,i=e.length;o0)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},j=function(t,e,r){if(r||2==arguments.length)for(var n,o=0,i=e.length;o=n?o.bind(e):function(){}}return tc.ALL&&(t=c.ALL),e=e||{},{error:r("error",c.ERROR),warn:r("warn",c.WARN),info:r("info",c.INFO),debug:r("debug",c.DEBUG),verbose:r("verbose",c.VERBOSE)}}(null!=(o=r.logLevel)?o:c.INFO,t);if(u&&!r.suppressOverrideMessage){var f=null!=(i=Error().stack)?i:"";u.warn("Current logger will be overwritten from "+f),l.warn("Current logger will overwrite one already registered from "+f)}return R("diag",l,e,!0)},e.disable=function(){L("diag",e)},e.createComponentLogger=function(t){return new D(t)},e.verbose=t("verbose"),e.debug=t("debug"),e.info=t("info"),e.warn=t("warn"),e.error=t("error")}return t.instance=function(){return this._instance||(this._instance=new t),this._instance},t}(),G=function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},V=function(t,e,r){if(r||2==arguments.length)for(var n,o=0,i=e.length;o0)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},$=function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},Q=function(){function t(t){this._entries=t?new Map(t):new Map}return t.prototype.getEntry=function(t){var e=this._entries.get(t);if(e)return Object.assign({},e)},t.prototype.getAllEntries=function(){return Array.from(this._entries.entries()).map(function(t){var e=J(t,2);return[e[0],e[1]]})},t.prototype.setEntry=function(e,r){var n=new t(this._entries);return n._entries.set(e,r),n},t.prototype.removeEntry=function(e){var r=new t(this._entries);return r._entries.delete(e),r},t.prototype.removeEntries=function(){for(var e,r,n=[],o=0;o0)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a};function ts(t){return t.reduce(function(t,e){var r=""+t+(""!==t?",":"")+e;return r.length>8192?t:r},"")}function t_(t){return t.getAllEntries().map(function(t){var e=tf(t,2),r=e[0],n=e[1],o=encodeURIComponent(r)+"="+encodeURIComponent(n.value);return void 0!==n.metadata&&(o+=";"+n.metadata.toString()),o})}function tp(t){var e,r=t.split(";");if(!(r.length<=0)){var n=r.shift();if(n){var o=n.indexOf("=");if(!(o<=0)){var i,a=decodeURIComponent(n.substring(0,o).trim()),u=decodeURIComponent(n.substring(o+1).trim());return r.length>0&&("string"!=typeof(i=r.join(";"))&&(tt.error("Cannot create baggage metadata from unknown type: "+typeof i),i=""),e={__TYPE__:q,toString:function(){return i}}),{key:a,value:u,metadata:e}}}}}var tE=function(){function t(){}return t.prototype.inject=function(t,e,r){var n=to.getBaggage(t);if(!(!n||tc(t))){var o=ts(t_(n).filter(function(t){return t.length<=4096}).slice(0,180));o.length>0&&r.set(e,tl,o)}},t.prototype.extract=function(t,e,r){var n=r.get(e,tl),o=Array.isArray(n)?n.join(","):n;if(!o)return t;var i={};return 0===o.length||(o.split(",").forEach(function(t){var e=tp(t);if(e){var r={value:e.value};e.metadata&&(r.metadata=e.metadata),i[e.key]=r}}),0===Object.entries(i).length)?t:to.setBaggage(t,to.createBaggage(i))},t.prototype.fields=function(){return[tl]},t}(),tT=function(){function t(t,e){this._monotonicClock=e,this._epochMillis=t.now(),this._performanceMillis=e.now()}return t.prototype.now=function(){var t=this._monotonicClock.now()-this._performanceMillis;return this._epochMillis+t},t}(),tO=X.instance(),ty=function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},tg=function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a};function td(t){var e,r,n={};if("object"!=typeof t||null==t)return n;try{for(var o=ty(Object.entries(t)),i=o.next();!i.done;i=o.next()){var a=tg(i.value,2),u=a[0],c=a[1];if(!th(u)){tO.warn("Invalid attribute key: "+u);continue}if(!tv(c)){tO.warn("Invalid attribute value set for key: "+u);continue}Array.isArray(c)?n[u]=c.slice():n[u]=c}}catch(t){e={error:t}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(e)throw e.error}}return n}function th(t){return"string"==typeof t&&t.length>0}function tv(t){return null==t||(Array.isArray(t)?function(t){try{for(var e,r,n,o=ty(t),i=o.next();!i.done;i=o.next()){var a=i.value;if(null!=a){if(!n){if(tR(a)){n=typeof a;continue}return!1}if(typeof a!==n)return!1}}}catch(t){e={error:t}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(e)throw e.error}}return!0}(t):tR(t))}function tR(t){switch(typeof t){case"number":case"boolean":case"string":return!0}return!1}function tS(){return function(t){var e;tO.error("string"==typeof(e=t)?e:JSON.stringify(function(t){for(var e={},r=t;null!==r;)Object.getOwnPropertyNames(r).forEach(function(t){if(!e[t]){var n=r[t];n&&(e[t]=String(n))}}),r=Object.getPrototypeOf(r);return e}(e)))}}var tL=tS();function tP(t){tL=t}function tm(t){try{tL(t)}catch(t){}}var tA=require("perf_hooks").performance;function tI(t){return[Math.trunc(t/1e3),Math.round(t%1e3*1e6)]}function tC(){var t=tA.timeOrigin;return"number"!=typeof t&&(t=tA.timing&&tA.timing.fetchStart),t}function tb(t){return tX(tI(tC()),tI("number"==typeof t?t:tA.now()))}function tN(t){if(tB(t))return t;if("number"==typeof t)if(t=1e9&&(r[1]-=1e9,r[0]+=1),r}function tG(t){return t>=48&&t<=57?t-48:t>=97&&t<=102?t-87:t-55}function tV(t){for(var e=new Uint8Array(t.length/2),r=0,n=0;n>>0,4*e);for(var e=0;e0)break;else e===t-1&&(tF[t-1]=1);return tF.toString("hex",0,t)}}var tK="1.30.1",tW=((f={})["telemetry.sdk.name"]="opentelemetry",f["process.runtime.name"]="node",f["telemetry.sdk.language"]="nodejs",f["telemetry.sdk.version"]=tK,f),tY="object"==typeof globalThis?globalThis:global;(o=s||(s={})).AlwaysOff="always_off",o.AlwaysOn="always_on",o.ParentBasedAlwaysOff="parentbased_always_off",o.ParentBasedAlwaysOn="parentbased_always_on",o.ParentBasedTraceIdRatio="parentbased_traceidratio",o.TraceIdRatio="traceidratio";var tz=["OTEL_SDK_DISABLED"],tZ=["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"],tJ=["OTEL_NO_PATCH_MODULES","OTEL_PROPAGATORS","OTEL_SEMCONV_STABILITY_OPT_IN"],t$=1/0,tQ=128,tq=128,t0=128,t1={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:c.INFO,OTEL_NO_PATCH_MODULES:[],OTEL_PROPAGATORS:["tracecontext","baggage"],OTEL_RESOURCE_ATTRIBUTES:"",OTEL_SERVICE_NAME:"",OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT:t$,OTEL_ATTRIBUTE_COUNT_LIMIT:tQ,OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT:t$,OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT:tQ,OTEL_LOGRECORD_ATTRIBUTE_VALUE_LENGTH_LIMIT:t$,OTEL_LOGRECORD_ATTRIBUTE_COUNT_LIMIT:tQ,OTEL_SPAN_EVENT_COUNT_LIMIT:128,OTEL_SPAN_LINK_COUNT_LIMIT:128,OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT:tq,OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT:t0,OTEL_TRACES_EXPORTER:"",OTEL_TRACES_SAMPLER:s.ParentBasedAlwaysOn,OTEL_TRACES_SAMPLER_ARG:"",OTEL_LOGS_EXPORTER:"",OTEL_EXPORTER_OTLP_INSECURE:"",OTEL_EXPORTER_OTLP_TRACES_INSECURE:"",OTEL_EXPORTER_OTLP_METRICS_INSECURE:"",OTEL_EXPORTER_OTLP_LOGS_INSECURE:"",OTEL_EXPORTER_OTLP_CERTIFICATE:"",OTEL_EXPORTER_OTLP_TRACES_CERTIFICATE:"",OTEL_EXPORTER_OTLP_METRICS_CERTIFICATE:"",OTEL_EXPORTER_OTLP_LOGS_CERTIFICATE:"",OTEL_EXPORTER_OTLP_COMPRESSION:"",OTEL_EXPORTER_OTLP_TRACES_COMPRESSION:"",OTEL_EXPORTER_OTLP_METRICS_COMPRESSION:"",OTEL_EXPORTER_OTLP_LOGS_COMPRESSION:"",OTEL_EXPORTER_OTLP_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_TRACES_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_METRICS_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_LOGS_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_TRACES_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_METRICS_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_LOGS_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_TRACES_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_METRICS_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_LOGS_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE:"cumulative",OTEL_SEMCONV_STABILITY_OPT_IN:[]},t2={ALL:c.ALL,VERBOSE:c.VERBOSE,DEBUG:c.DEBUG,INFO:c.INFO,WARN:c.WARN,ERROR:c.ERROR,NONE:c.NONE};function t3(t){var e={};for(var r in t1)if("OTEL_LOG_LEVEL"===r)!function(t,e,r){var n=r[t];if("string"==typeof n){var o=t2[n.toUpperCase()];null!=o&&(e[t]=o)}}(r,e,t);else if(tz.indexOf(r)>-1)!function(t,e,r){if(void 0!==r[t]){var n=String(r[t]);e[t]="true"===n.toLowerCase()}}(r,e,t);else if(tZ.indexOf(r)>-1)!function(t,e,r,n,o){if(void 0===n&&(n=-1/0),void 0===o&&(o=1/0),void 0!==r[t]){var i=Number(r[t]);isNaN(i)||(io?e[t]=o:e[t]=i)}}(r,e,t);else if(tJ.indexOf(r)>-1)!function(t,e,r,n){void 0===n&&(n=",");var o=r[t];"string"==typeof o&&(e[t]=o.split(n).map(function(t){return t.trim()}))}(r,e,t);else{var n=t[r];null!=n&&(e[r]=String(n))}return e}function t4(){return Object.assign({},t1,t3(process.env))}function t8(){return t3(process.env)}function t9(t){return Buffer.from(tV(t)).toString("base64")}function t6(t){t.unref()}var t5=function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},t7=function(){function t(t){var e;void 0===t&&(t={}),this._propagators=null!=(e=t.propagators)?e:[],this._fields=Array.from(new Set(this._propagators.map(function(t){return"function"==typeof t.fields?t.fields():[]}).reduce(function(t,e){return t.concat(e)},[])))}return t.prototype.inject=function(t,e,r){var n,o;try{for(var i=t5(this._propagators),a=i.next();!a.done;a=i.next()){var u=a.value;try{u.inject(t,e,r)}catch(t){tO.warn("Failed to inject with "+u.constructor.name+". Err: "+t.message)}}}catch(t){n={error:t}}finally{try{a&&!a.done&&(o=i.return)&&o.call(i)}finally{if(n)throw n.error}}},t.prototype.extract=function(t,e,r){return this._propagators.reduce(function(t,n){try{return n.extract(t,e,r)}catch(t){tO.warn("Failed to extract with "+n.constructor.name+". Err: "+t.message)}return t},t)},t.prototype.fields=function(){return this._fields.slice()},t}();(i=_||(_={}))[i.NONE=0]="NONE",i[i.SAMPLED=1]="SAMPLED";var et="0000000000000000",ee="00000000000000000000000000000000",er={traceId:ee,spanId:et,traceFlags:_.NONE},en=function(){function t(t){void 0===t&&(t=er),this._spanContext=t}return t.prototype.spanContext=function(){return this._spanContext},t.prototype.setAttribute=function(t,e){return this},t.prototype.setAttributes=function(t){return this},t.prototype.addEvent=function(t,e){return this},t.prototype.addLink=function(t){return this},t.prototype.addLinks=function(t){return this},t.prototype.setStatus=function(t){return this},t.prototype.updateName=function(t){return this},t.prototype.end=function(t){},t.prototype.isRecording=function(){return!1},t.prototype.recordException=function(t,e){},t}(),eo=I("OpenTelemetry Context Key SPAN");function ei(t){return t.getValue(eo)||void 0}function ea(){return ei(H.getInstance().active())}function eu(t,e){return t.setValue(eo,e)}function ec(t){return t.deleteValue(eo)}function el(t,e){return eu(t,new en(e))}function ef(t){var e;return null==(e=ei(t))?void 0:e.spanContext()}var es=/^([0-9a-f]{32})$/i,e_=/^[0-9a-f]{16}$/i;function ep(t){return es.test(t)&&t!==ee}function eE(t){var e;return ep(t.traceId)&&(e=t.spanId,e_.test(e)&&e!==et)}function eT(t){return new en(t)}var eO=H.getInstance(),ey=function(){function t(){}return t.prototype.startSpan=function(t,e,r){if(void 0===r&&(r=eO.active()),null==e?void 0:e.root)return new en;var n,o=r&&ef(r);return"object"==typeof(n=o)&&"string"==typeof n.spanId&&"string"==typeof n.traceId&&"number"==typeof n.traceFlags&&eE(o)?new en(o):new en},t.prototype.startActiveSpan=function(t,e,r,n){if(!(arguments.length<2)){2==arguments.length?a=e:3==arguments.length?(o=e,a=r):(o=e,i=r,a=n);var o,i,a,u=null!=i?i:eO.active(),c=this.startSpan(t,o,u),l=eu(u,c);return eO.with(l,a,void 0,c)}},t}(),eg=new ey,ed=function(){function t(t,e,r,n){this._provider=t,this.name=e,this.version=r,this.options=n}return t.prototype.startSpan=function(t,e,r){return this._getTracer().startSpan(t,e,r)},t.prototype.startActiveSpan=function(t,e,r,n){var o=this._getTracer();return Reflect.apply(o.startActiveSpan,o,arguments)},t.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):eg},t}(),eh=new(function(){function t(){}return t.prototype.getTracer=function(t,e,r){return new ey},t}()),ev=function(){function t(){}return t.prototype.getTracer=function(t,e,r){var n;return null!=(n=this.getDelegateTracer(t,e,r))?n:new ed(this,t,e,r)},t.prototype.getDelegate=function(){var t;return null!=(t=this._delegate)?t:eh},t.prototype.setDelegate=function(t){this._delegate=t},t.prototype.getDelegateTracer=function(t,e,r){var n;return null==(n=this._delegate)?void 0:n.getTracer(t,e,r)},t}(),eR="trace",eS=(function(){function t(){this._proxyTracerProvider=new ev,this.wrapSpanContext=eT,this.isSpanContextValid=eE,this.deleteSpan=ec,this.getSpan=ei,this.getActiveSpan=ea,this.getSpanContext=ef,this.setSpan=eu,this.setSpanContext=el}return t.getInstance=function(){return this._instance||(this._instance=new t),this._instance},t.prototype.setGlobalTracerProvider=function(t){var e=R(eR,this._proxyTracerProvider,X.instance());return e&&this._proxyTracerProvider.setDelegate(t),e},t.prototype.getTracerProvider=function(){return S(eR)||this._proxyTracerProvider},t.prototype.getTracer=function(t,e){return this.getTracerProvider().getTracer(t,e)},t.prototype.disable=function(){L(eR,X.instance()),this._proxyTracerProvider=new ev},t})().getInstance(),eL="[_0-9a-z-*/]",eP=RegExp("^(?:[a-z]"+eL+"{0,255}|"+("[a-z0-9]"+eL+"{0,240}@[a-z]")+eL+"{0,13})$"),em=/^[ -~]{0,255}[!-~]$/,eA=/,|=/,eI=function(){function t(t){this._internalState=new Map,t&&this._parse(t)}return t.prototype.set=function(t,e){var r=this._clone();return r._internalState.has(t)&&r._internalState.delete(t),r._internalState.set(t,e),r},t.prototype.unset=function(t){var e=this._clone();return e._internalState.delete(t),e},t.prototype.get=function(t){return this._internalState.get(t)},t.prototype.serialize=function(){var t=this;return this._keys().reduce(function(e,r){return e.push(r+"="+t.get(r)),e},[]).join(",")},t.prototype._parse=function(t){!(t.length>512)&&(this._internalState=t.split(",").reverse().reduce(function(t,e){var r=e.trim(),n=r.indexOf("=");if(-1!==n){var o=r.slice(0,n),i=r.slice(n+1,e.length);eP.test(o)&&em.test(i)&&!eA.test(i)&&t.set(o,i)}return t},new Map),this._internalState.size>32&&(this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,32))))},t.prototype._keys=function(){return Array.from(this._internalState.keys()).reverse()},t.prototype._clone=function(){var e=new t;return e._internalState=new Map(this._internalState),e},t}(),eC="traceparent",eb="tracestate",eN=RegExp("^\\s?((?!ff)[\\da-f]{2})-((?![0]{32})[\\da-f]{32})-((?![0]{16})[\\da-f]{16})-([\\da-f]{2})(-.*)?\\s?$");function ew(t){var e=eN.exec(t);return!e||"00"===e[1]&&e[5]?null:{traceId:e[2],spanId:e[3],traceFlags:parseInt(e[4],16)}}var eM=function(){function t(){}return t.prototype.inject=function(t,e,r){var n=eS.getSpanContext(t);if(!(!n||tc(t))&&eE(n)){var o="00-"+n.traceId+"-"+n.spanId+"-0"+Number(n.traceFlags||_.NONE).toString(16);r.set(e,eC,o),n.traceState&&r.set(e,eb,n.traceState.serialize())}},t.prototype.extract=function(t,e,r){var n=r.get(e,eC);if(!n)return t;var o=Array.isArray(n)?n[0]:n;if("string"!=typeof o)return t;var i=ew(o);if(!i)return t;i.isRemote=!0;var a=r.get(e,eb);if(a){var u=Array.isArray(a)?a.join(","):a;i.traceState=new eI("string"==typeof u?u:void 0)}return eS.setSpanContext(t,i)},t.prototype.fields=function(){return[eC,eb]},t}(),eU=I("OpenTelemetry SDK Context Key RPC_METADATA");function eD(t,e){return t.setValue(eU,e)}function ex(t){return t.deleteValue(eU)}function eB(t){return t.getValue(eU)}(p||(p={})).HTTP="http",(a=E||(E={}))[a.NOT_RECORD=0]="NOT_RECORD",a[a.RECORD=1]="RECORD",a[a.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED";var ej=function(){function t(){}return t.prototype.shouldSample=function(){return{decision:E.NOT_RECORD}},t.prototype.toString=function(){return"AlwaysOffSampler"},t}(),eX=function(){function t(){}return t.prototype.shouldSample=function(){return{decision:E.RECORD_AND_SAMPLED}},t.prototype.toString=function(){return"AlwaysOnSampler"},t}(),eG=function(){function t(t){var e,r,n,o;this._root=t.root,this._root||(tm(Error("ParentBasedSampler must have a root sampler configured")),this._root=new eX),this._remoteParentSampled=null!=(e=t.remoteParentSampled)?e:new eX,this._remoteParentNotSampled=null!=(r=t.remoteParentNotSampled)?r:new ej,this._localParentSampled=null!=(n=t.localParentSampled)?n:new eX,this._localParentNotSampled=null!=(o=t.localParentNotSampled)?o:new ej}return t.prototype.shouldSample=function(t,e,r,n,o,i){var a=eS.getSpanContext(t);return a&&eE(a)?a.isRemote?a.traceFlags&_.SAMPLED?this._remoteParentSampled.shouldSample(t,e,r,n,o,i):this._remoteParentNotSampled.shouldSample(t,e,r,n,o,i):a.traceFlags&_.SAMPLED?this._localParentSampled.shouldSample(t,e,r,n,o,i):this._localParentNotSampled.shouldSample(t,e,r,n,o,i):this._root.shouldSample(t,e,r,n,o,i)},t.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()+"}"},t}(),eV=function(){function t(t){void 0===t&&(t=0),this._ratio=t,this._ratio=this._normalize(t),this._upperBound=Math.floor(0xffffffff*this._ratio)}return t.prototype.shouldSample=function(t,e){return{decision:ep(e)&&this._accumulate(e)=1?1:t<=0?0:t},t.prototype._accumulate=function(t){for(var e=0,r=0;r>>0}return e},t}(),ek=Function.prototype.toString,eF=ek.call(Object),eH=(t=Object.getPrototypeOf,e=Object,function(r){return t(e(r))}),eK=Object.prototype,eW=eK.hasOwnProperty,eY=Symbol?Symbol.toStringTag:void 0,ez=eK.toString;function eZ(t){if(null==(e=t)||"object"!=typeof e||"[object Object]"!==(null==(r=t)?void 0===r?"[object Undefined]":"[object Null]":eY&&eY in Object(r)?function(t){var e=eW.call(t,eY),r=t[eY],n=!1;try{t[eY]=void 0,n=!0}catch(t){}var o=ez.call(t);return n&&(e?t[eY]=r:delete t[eY]),o}(r):(n=r,ez.call(n))))return!1;var e,r,n,o=eH(t);if(null===o)return!0;var i=eW.call(o,"constructor")&&o.constructor;return"function"==typeof i&&i instanceof i&&ek.call(i)===eF}function eJ(){for(var t=[],e=0;e0;)r=function t(e,r,n,o){if(void 0===n&&(n=0),!(n>20)){if(n++,e2(e)||e2(r)||e0(r))u=e$(r);else if(eq(e)){if(u=e.slice(),eq(r))for(var i,a,u,c=0,l=r.length;c=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};function e6(t,e){return"string"==typeof e?t===e:!!t.match(e)}function e5(t,e){var r,n;if(!e)return!1;try{for(var o=e9(e),i=o.next();!i.done;i=o.next()){var a=i.value;if(e6(t,a))return!0}}catch(t){r={error:t}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return!1}function e7(t){return"function"==typeof t&&"function"==typeof t.__original&&"function"==typeof t.__unwrap&&!0===t.__wrapped}var rt=function(){function t(){var t=this;this._promise=new Promise(function(e,r){t._resolve=e,t._reject=r})}return Object.defineProperty(t.prototype,"promise",{get:function(){return this._promise},enumerable:!1,configurable:!0}),t.prototype.resolve=function(t){this._resolve(t)},t.prototype.reject=function(t){this._reject(t)},t}(),re=function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},rr=function(t,e,r){if(r||2==arguments.length)for(var n,o=0,i=e.length;o0}).reduce(function(t,e){return t[e.key]=e.value,t},{})},parsePairKeyValue:tp},ra={_export:function(t,e){return new Promise(function(r){ro.with(ta(ro.active()),function(){t.export(e,function(t){r(t)})})})}};module.exports=O})(); \ No newline at end of file diff --git a/packages/node_modules/@opentelemetry/resources.js b/packages/node_modules/@opentelemetry/resources.js index 9f5b9437d31..8afb9eb3dd2 100644 --- a/packages/node_modules/@opentelemetry/resources.js +++ b/packages/node_modules/@opentelemetry/resources.js @@ -1 +1 @@ -(()=>{"use strict";var e={454:(e,t,r)=>{r.d(t,{D:()=>c});var n=r(9896),o=r(2733),i=r(8758),a=function(e,t,r,n){return new(r||(r=Promise))(function(o,i){function a(e){try{c(n.next(e))}catch(e){i(e)}}function u(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(a,u)}c((n=n.apply(e,t||[])).next())})},u=function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]{e.exports=require("process")},1275:(e,t,r)=>{r.d(t,{V:()=>o});var n=r(6051),o=function(){function e(e){this._namespace=e.namespace||"DiagComponentLogger"}return e.prototype.debug=function(){for(var e=[],t=0;t0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}(r),!1))}},1568:(e,t,r)=>{r.d(t,{D:()=>u});var n=r(2733),o=r(8758),i=function(e,t,r,n){return new(r||(r=Promise))(function(o,i){function a(e){try{c(n.next(e))}catch(e){i(e)}}function u(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(a,u)}c((n=n.apply(e,t||[])).next())})},a=function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]{r.d(t,{c:()=>o});var n=r(6733);function o(e,t){function r(r,n){var o=t[r];return"function"==typeof o&&e>=n?o.bind(t):function(){}}return en.u.ALL&&(e=n.u.ALL),t=t||{},{error:r("error",n.u.ERROR),warn:r("warn",n.u.WARN),info:r("info",n.u.INFO),debug:r("debug",n.u.DEBUG),verbose:r("verbose",n.u.VERBOSE)}}},2408:(e,t,r)=>{r.d(t,{D:()=>a});var n=r(8758),o=function(e,t,r,n){return new(r||(r=Promise))(function(o,i){function a(e){try{c(n.next(e))}catch(e){i(e)}}function u(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(a,u)}c((n=n.apply(e,t||[])).next())})},i=function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]{r.d(t,{q:()=>o});const n=require("child_process");var o=require("util").promisify(n.exec)},2910:(e,t,r)=>{r.d(t,{x:()=>n});var n="1.9.0"},5234:(e,t,r)=>{r.d(t,{X:()=>n});var n="object"==typeof globalThis?globalThis:global},5726:(e,t,r)=>{r.d(t,{K:()=>u});var n=r(1275),o=r(1994),i=r(6733),a=r(6051),u=function(){function e(){function e(e){return function(){for(var t=[],r=0;r0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}(t),!1))}}var t=this;t.setLogger=function(e,r){var n,u,c;if(void 0===r&&(r={logLevel:i.u.INFO}),e===t){var s=new Error("Cannot use diag as the logger for itself. Please use a DiagLogger implementation like ConsoleDiagLogger or a custom implementation");return t.error(null!==(n=s.stack)&&void 0!==n?n:s.message),!1}"number"==typeof r&&(r={logLevel:r});var l=(0,a.mS)("diag"),E=(0,o.c)(null!==(u=r.logLevel)&&void 0!==u?u:i.u.INFO,e);if(l&&!r.suppressOverrideMessage){var f=null!==(c=(new Error).stack)&&void 0!==c?c:"";l.warn("Current logger will be overwritten from "+f),E.warn("Current logger will overwrite one already registered from "+f)}return(0,a.$G)("diag",E,t,!0)},t.disable=function(){(0,a.kv)("diag",t)},t.createComponentLogger=function(e){return new n.V(e)},t.verbose=e("verbose"),t.debug=e("debug"),t.info=e("info"),t.warn=e("warn"),t.error=e("error")}return e.instance=function(){return this._instance||(this._instance=new e),this._instance},e}()},6051:(e,t,r)=>{r.d(t,{$G:()=>s,kv:()=>E,mS:()=>l});var n=r(5234),o=r(2910),i=r(8336),a=o.x.split(".")[0],u=Symbol.for("opentelemetry.js.api."+a),c=n.X;function s(e,t,r,n){var i;void 0===n&&(n=!1);var a=c[u]=null!==(i=c[u])&&void 0!==i?i:{version:o.x};if(!n&&a[e]){var s=new Error("@opentelemetry/api: Attempted duplicate registration of API: "+e);return r.error(s.stack||s.message),!1}return a.version!==o.x?(s=new Error("@opentelemetry/api: Registration of version v"+a.version+" for "+e+" does not match previously registered API v"+o.x),r.error(s.stack||s.message),!1):(a[e]=t,r.debug("@opentelemetry/api: Registered a global for "+e+" v"+o.x+"."),!0)}function l(e){var t,r,n=null===(t=c[u])||void 0===t?void 0:t.version;if(n&&(0,i.$)(n))return null===(r=c[u])||void 0===r?void 0:r[e]}function E(e,t){t.debug("@opentelemetry/api: Unregistering a global for "+e+" v"+o.x+".");var r=c[u];r&&delete r[e]}},6733:(e,t,r)=>{var n;r.d(t,{u:()=>n}),function(e){e[e.NONE=0]="NONE",e[e.ERROR=30]="ERROR",e[e.WARN=50]="WARN",e[e.INFO=60]="INFO",e[e.DEBUG=70]="DEBUG",e[e.VERBOSE=80]="VERBOSE",e[e.ALL=9999]="ALL"}(n||(n={}))},7349:(e,t,r)=>{r.d(t,{D:()=>c});var n=r(932),o=r(2733),i=r(8758),a=function(e,t,r,n){return new(r||(r=Promise))(function(o,i){function a(e){try{c(n.next(e))}catch(e){i(e)}}function u(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(a,u)}c((n=n.apply(e,t||[])).next())})},u=function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]{r.d(t,{D:()=>c});var n=r(9896),o=r(8758),i=function(e,t,r,n){return new(r||(r=Promise))(function(o,i){function a(e){try{c(n.next(e))}catch(e){i(e)}}function u(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(a,u)}c((n=n.apply(e,t||[])).next())})},a=function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]=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 c(){return i(this,void 0,void 0,function(){var e,t,r,i,c,s,l,E;return a(this,function(a){switch(a.label){case 0:e=["/etc/machine-id","/var/lib/dbus/machine-id"],a.label=1;case 1:a.trys.push([1,8,9,10]),t=u(e),r=t.next(),a.label=2;case 2:if(r.done)return[3,7];i=r.value,a.label=3;case 3:return a.trys.push([3,5,,6]),[4,n.promises.readFile(i,{encoding:"utf8"})];case 4:return[2,a.sent().trim()];case 5:return c=a.sent(),o.s.debug("error reading machine id: "+c),[3,6];case 6:return r=t.next(),[3,2];case 7:return[3,10];case 8:return s=a.sent(),l={error:s},[3,10];case 9:try{r&&!r.done&&(E=t.return)&&E.call(t)}finally{if(l)throw l.error}return[7];case 10:return[2,""]}})})}},8336:(e,t,r)=>{r.d(t,{$:()=>i});var n=r(2910),o=/^(\d+)\.(\d+)\.(\d+)(-(.+))?$/,i=function(e){var t=new Set([e]),r=new Set,n=e.match(o);if(!n)return function(){return!1};var i=+n[1],a=+n[2],u=+n[3];if(null!=n[4])return function(t){return t===e};function c(e){return r.add(e),!1}function s(e){return t.add(e),!0}return function(e){if(t.has(e))return!0;if(r.has(e))return!1;var n=e.match(o);if(!n)return c(e);var l=+n[1],E=+n[2],f=+n[3];return null!=n[4]||i!==l?c(e):0===i?a===E&&u<=f?s(e):c(e):a<=E?s(e):c(e)}}(n.x)},8758:(e,t,r)=>{r.d(t,{s:()=>n});var n=r(5726).K.instance()},9896:e=>{e.exports=require("fs")}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var i=t[n]={exports:{}};return e[n](i,i.exports,r),i.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};r.r(n),r.d(n,{Resource:()=>d,browserDetector:()=>R,browserDetectorSync:()=>h,defaultServiceName:()=>T,detectResources:()=>oe,detectResourcesSync:()=>ie,envDetector:()=>G,envDetectorSync:()=>B,hostDetector:()=>j,hostDetectorSync:()=>F,osDetector:()=>q,osDetectorSync:()=>Y,processDetector:()=>Q,processDetectorSync:()=>$,serviceInstanceIdDetectorSync:()=>te});var o,i=r(8758),a="process.runtime.name",u="process.runtime.version",c="process.runtime.description",s="service.name",l="telemetry.sdk.name",E="telemetry.sdk.language",f="telemetry.sdk.version",_=((o={})[l]="opentelemetry",o[a]="node",o[E]="nodejs",o[f]="1.30.1",o);function T(){return"unknown_service:"+process.argv0}var O,p=function(){return p=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}(e,2),i=o[0],a=o[1];return p(p(p(p({},n._syncAttributes),i),null!==(r=t._syncAttributes)&&void 0!==r?r:t.attributes),a)});return new e(o,i)},e.EMPTY=new e({}),e}(),v=function(){return v=Object.assign||function(e){for(var t,r=1,n=arguments.length;r-1}var P=["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 S(e){return P.indexOf(e)>-1}var g=["OTEL_NO_PATCH_MODULES","OTEL_PROPAGATORS","OTEL_SEMCONV_STABILITY_OPT_IN"];function I(e){return g.indexOf(e)>-1}var w=1/0,m={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:L.u.INFO,OTEL_NO_PATCH_MODULES:[],OTEL_PROPAGATORS:["tracecontext","baggage"],OTEL_RESOURCE_ATTRIBUTES:"",OTEL_SERVICE_NAME:"",OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT:w,OTEL_ATTRIBUTE_COUNT_LIMIT:128,OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT:w,OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT:128,OTEL_LOGRECORD_ATTRIBUTE_VALUE_LENGTH_LIMIT:w,OTEL_LOGRECORD_ATTRIBUTE_COUNT_LIMIT:128,OTEL_SPAN_EVENT_COUNT_LIMIT:128,OTEL_SPAN_LINK_COUNT_LIMIT:128,OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT:128,OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT:128,OTEL_TRACES_EXPORTER:"",OTEL_TRACES_SAMPLER:O.ParentBasedAlwaysOn,OTEL_TRACES_SAMPLER_ARG:"",OTEL_LOGS_EXPORTER:"",OTEL_EXPORTER_OTLP_INSECURE:"",OTEL_EXPORTER_OTLP_TRACES_INSECURE:"",OTEL_EXPORTER_OTLP_METRICS_INSECURE:"",OTEL_EXPORTER_OTLP_LOGS_INSECURE:"",OTEL_EXPORTER_OTLP_CERTIFICATE:"",OTEL_EXPORTER_OTLP_TRACES_CERTIFICATE:"",OTEL_EXPORTER_OTLP_METRICS_CERTIFICATE:"",OTEL_EXPORTER_OTLP_LOGS_CERTIFICATE:"",OTEL_EXPORTER_OTLP_COMPRESSION:"",OTEL_EXPORTER_OTLP_TRACES_COMPRESSION:"",OTEL_EXPORTER_OTLP_METRICS_COMPRESSION:"",OTEL_EXPORTER_OTLP_LOGS_COMPRESSION:"",OTEL_EXPORTER_OTLP_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_TRACES_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_METRICS_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_LOGS_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_TRACES_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_METRICS_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_LOGS_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_TRACES_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_METRICS_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_LOGS_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE:"cumulative",OTEL_SEMCONV_STABILITY_OPT_IN:[]};function N(e,t,r){if(void 0!==r[e]){var n=String(r[e]);t[e]="true"===n.toLowerCase()}}function C(e,t,r,n,o){if(void 0===n&&(n=-1/0),void 0===o&&(o=1/0),void 0!==r[e]){var i=Number(r[e]);isNaN(i)||(t[e]=io?o:i)}}function U(e,t,r,n){void 0===n&&(n=",");var o=r[e];"string"==typeof o&&(t[e]=o.split(n).map(function(e){return e.trim()}))}var M={ALL:L.u.ALL,VERBOSE:L.u.VERBOSE,DEBUG:L.u.DEBUG,INFO:L.u.INFO,WARN:L.u.WARN,ERROR:L.u.ERROR,NONE:L.u.NONE};function x(e,t,r){var n=r[e];if("string"==typeof n){var o=M[n.toUpperCase()];null!=o&&(t[e]=o)}}var X=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},D=function(){function e(){this._MAX_LENGTH=255,this._COMMA_SEPARATOR=",",this._LABEL_KEY_VALUE_SPLITTER="=",this._ERROR_MESSAGE_INVALID_CHARS="should be a ASCII string with a length greater than 0 and not exceed "+this._MAX_LENGTH+" characters.",this._ERROR_MESSAGE_INVALID_VALUE="should be a ASCII string with a length not exceed "+this._MAX_LENGTH+" characters."}return e.prototype.detect=function(e){var t,r={},n=(t=function(e){var t={};for(var r in m){var n=r;if("OTEL_LOG_LEVEL"===n)x(n,t,e);else if(A(n))N(n,t,e);else if(S(n))C(n,t,e);else if(I(n))U(n,t,e);else{var o=e[n];null!=o&&(t[n]=String(o))}}return t}(process.env),Object.assign({},m,t)),o=n.OTEL_RESOURCE_ATTRIBUTES,a=n.OTEL_SERVICE_NAME;if(o)try{var u=this._parseResourceAttributes(o);Object.assign(r,u)}catch(e){i.s.debug("EnvDetector failed: "+e.message)}return a&&(r[s]=a),new d(r)},e.prototype._parseResourceAttributes=function(e){var t,r;if(!e)return{};var n={},o=e.split(this._COMMA_SEPARATOR,-1);try{for(var i=function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)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.")}(o),a=i.next();!a.done;a=i.next()){var u=a.value.split(this._LABEL_KEY_VALUE_SPLITTER,-1);if(2===u.length){var c=X(u,2),s=c[0],l=c[1];if(s=s.trim(),l=l.trim().split(/^"|"$/).join(""),!this._isValidAndNotEmpty(s))throw new Error("Attribute key "+this._ERROR_MESSAGE_INVALID_CHARS);if(!this._isValid(l))throw new Error("Attribute value "+this._ERROR_MESSAGE_INVALID_VALUE);n[s]=decodeURIComponent(l)}}}catch(e){t={error:e}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}return n},e.prototype._isValid=function(e){return e.length<=this._MAX_LENGTH&&this._isBaggageOctetString(e)},e.prototype._isBaggageOctetString=function(e){for(var t=0;t126)return!1}return!0},e.prototype._isValidAndNotEmpty=function(e){return e.length>0&&this._isValid(e)},e}(),B=new D,G=new(function(){function e(){}return e.prototype.detect=function(e){return Promise.resolve(B.detect(e))},e}());const k=require("os");var V;switch(r(932).platform){case"darwin":V=r(1568).D;break;case"linux":V=r(7917).D;break;case"freebsd":V=r(454).D;break;case"win32":V=r(7349).D;break;default:V=r(2408).D}var H=function(){function e(){}return e.prototype.detect=function(e){var t,r=((t={})["host.name"]=(0,k.hostname)(),t["host.arch"]=function(e){switch(e){case"arm":return"arm32";case"ppc":return"ppc32";case"x64":return"amd64";default:return e}}((0,k.arch)()),t);return new d(r,this._getAsyncAttributes())},e.prototype._getAsyncAttributes=function(){return V().then(function(e){var t={};return e&&(t["host.id"]=e),t})},e}(),F=new H,j=new(function(){function e(){}return e.prototype.detect=function(e){return Promise.resolve(F.detect(e))},e}()),K=function(){function e(){}return e.prototype.detect=function(e){var t,r=((t={})["os.type"]=function(e){switch(e){case"sunos":return"solaris";case"win32":return"windows";default:return e}}((0,k.platform)()),t["os.version"]=(0,k.release)(),t);return new d(r)},e}(),Y=new K,q=new(function(){function e(){}return e.prototype.detect=function(e){return Promise.resolve(Y.detect(e))},e}()),Z=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},W=function(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o1&&(r["process.command"]=process.argv[1]);try{var n=k.userInfo();r["process.owner"]=n.username}catch(e){i.s.debug("error obtaining process owner: "+e)}return new d(r)},e}(),$=new J,Q=new(function(){function e(){}return e.prototype.detect=function(e){return Promise.resolve($.detect(e))},e}());const z=require("crypto");var ee=function(){function e(){}return e.prototype.detect=function(e){var t,r=((t={})["service.instance.id"]=(0,z.randomUUID)(),t);return new d(r)},e}(),te=new ee,re=function(e,t,r,n){return new(r||(r=Promise))(function(o,i){function a(e){try{c(n.next(e))}catch(e){i(e)}}function u(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(a,u)}c((n=n.apply(e,t||[])).next())})},ne=function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]0){var t=JSON.stringify(e.attributes,null,4);i.s.verbose(t)}})};module.exports=n})(); \ No newline at end of file +(()=>{"use strict";var e={5726:function(e,t,r){r.d(t,{K:()=>s});var n=r(1275),o=r(1994),i=r(6733),a=r(6051),u=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},c=function(e,t,r){if(r||2==arguments.length)for(var n,o=0,i=t.length;o";l.warn("Current logger will be overwritten from "+f),E.warn("Current logger will overwrite one already registered from "+f)}return(0,a.$G)("diag",E,t,!0)},t.disable=function(){(0,a.kv)("diag",t)},t.createComponentLogger=function(e){return new n.V(e)},t.verbose=e("verbose"),t.debug=e("debug"),t.info=e("info"),t.warn=e("warn"),t.error=e("error")}return e.instance=function(){return this._instance||(this._instance=new e),this._instance},e}()},8758:function(e,t,r){r.d(t,{s:()=>n});var n=r(5726).K.instance()},1275:function(e,t,r){r.d(t,{V:()=>a});var n=r(6051),o=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},i=function(e,t,r){if(r||2==arguments.length)for(var n,o=0,i=t.length;oo});var n=r(6733);function o(e,t){function r(r,n){var o=t[r];return"function"==typeof o&&e>=n?o.bind(t):function(){}}return en.u.ALL&&(e=n.u.ALL),t=t||{},{error:r("error",n.u.ERROR),warn:r("warn",n.u.WARN),info:r("info",n.u.INFO),debug:r("debug",n.u.DEBUG),verbose:r("verbose",n.u.VERBOSE)}}},6733:function(e,t,r){var n,o;r.d(t,{u:()=>n}),(o=n||(n={}))[o.NONE=0]="NONE",o[o.ERROR=30]="ERROR",o[o.WARN=50]="WARN",o[o.INFO=60]="INFO",o[o.DEBUG=70]="DEBUG",o[o.VERBOSE=80]="VERBOSE",o[o.ALL=9999]="ALL"},6051:function(e,t,r){r.d(t,{$G:()=>c,kv:()=>l,mS:()=>s});var n=r(5234),o=r(2910),i=r(8336),a=Symbol.for("opentelemetry.js.api."+o.x.split(".")[0]),u=n.X;function c(e,t,r,n){void 0===n&&(n=!1);var i,c=u[a]=null!=(i=u[a])?i:{version:o.x};if(!n&&c[e]){var s=Error("@opentelemetry/api: Attempted duplicate registration of API: "+e);return r.error(s.stack||s.message),!1}if(c.version!==o.x){var s=Error("@opentelemetry/api: Registration of version v"+c.version+" for "+e+" does not match previously registered API v"+o.x);return r.error(s.stack||s.message),!1}return c[e]=t,r.debug("@opentelemetry/api: Registered a global for "+e+" v"+o.x+"."),!0}function s(e){var t,r,n=null==(t=u[a])?void 0:t.version;if(n&&(0,i.$)(n))return null==(r=u[a])?void 0:r[e]}function l(e,t){t.debug("@opentelemetry/api: Unregistering a global for "+e+" v"+o.x+".");var r=u[a];r&&delete r[e]}},8336:function(e,t,r){r.d(t,{$:()=>i});var n=r(2910),o=/^(\d+)\.(\d+)\.(\d+)(-(.+))?$/,i=function(e){var t=new Set([e]),r=new Set,n=e.match(o);if(!n)return function(){return!1};var i={major:+n[1],minor:+n[2],patch:+n[3],prerelease:n[4]};if(null!=i.prerelease)return function(t){return t===e};function a(e){return r.add(e),!1}return function(e){if(t.has(e))return!0;if(r.has(e))return!1;var n=e.match(o);if(!n)return a(e);var u={major:+n[1],minor:+n[2],patch:+n[3],prerelease:n[4]};if(null!=u.prerelease||i.major!==u.major)return a(e);if(0===i.major)return i.minor===u.minor&&i.patch<=u.patch?(t.add(e),!0):a(e);return i.minor<=u.minor?(t.add(e),!0):a(e)}}(n.x)},5234:function(e,t,r){r.d(t,{X:()=>n});var n="object"==typeof globalThis?globalThis:global},2910:function(e,t,r){r.d(t,{x:()=>n});var n="1.9.0"},1973:function(e,t,r){r.d(t,{q:()=>o});let n=require("child_process");var o=require("util").promisify(n.exec)},454:function(e,t,r){r.d(t,{D:()=>u});var n=r(9896),o=r(1973),i=r(8758),a=function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){var c=[i,u];if(r)throw TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&c[0]?n.return:c[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,c[1])).done)return o;switch(n=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return a.label++,{value:c[1],done:!1};case 5:a.label++,n=c[1],c=[0];continue;case 7:c=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===c[0]||2===c[0])){a=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]a});var n=r(1973),o=r(8758),i=function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){var c=[i,u];if(r)throw TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&c[0]?n.return:c[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,c[1])).done)return o;switch(n=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return a.label++,{value:c[1],done:!1};case 5:a.label++,n=c[1],c=[0];continue;case 7:c=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===c[0]||2===c[0])){a=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]u});var n=r(9896),o=r(8758),i=function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){var c=[i,u];if(r)throw TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&c[0]?n.return:c[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,c[1])).done)return o;switch(n=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return a.label++,{value:c[1],done:!1};case 5:a.label++,n=c[1],c=[0];continue;case 7:c=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===c[0]||2===c[0])){a=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};function u(){var e,t,r,u;return e=this,t=void 0,r=void 0,u=function(){var e,t,r,u,c,s,l;return i(this,function(i){switch(i.label){case 0:e=["/etc/machine-id","/var/lib/dbus/machine-id"],i.label=1;case 1:i.trys.push([1,8,9,10]),r=(t=a(e)).next(),i.label=2;case 2:if(r.done)return[3,7];u=r.value,i.label=3;case 3:return i.trys.push([3,5,,6]),[4,n.promises.readFile(u,{encoding:"utf8"})];case 4:return[2,i.sent().trim()];case 5:return c=i.sent(),o.s.debug("error reading machine id: "+c),[3,6];case 6:return r=t.next(),[3,2];case 7:return[3,10];case 8:return s={error:i.sent()},[3,10];case 9:try{r&&!r.done&&(l=t.return)&&l.call(t)}finally{if(s)throw s.error}return[7];case 10:return[2,""]}})},new(r||(r=Promise))(function(n,o){function i(e){try{c(u.next(e))}catch(e){o(e)}}function a(e){try{c(u.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?n(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(i,a)}c((u=u.apply(e,t||[])).next())})}},2408:function(e,t,r){r.d(t,{D:()=>i});var n=r(8758),o=function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){var c=[i,u];if(r)throw TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&c[0]?n.return:c[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,c[1])).done)return o;switch(n=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return a.label++,{value:c[1],done:!1};case 5:a.label++,n=c[1],c=[0];continue;case 7:c=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===c[0]||2===c[0])){a=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]u});var n=r(932),o=r(1973),i=r(8758),a=function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){var c=[i,u];if(r)throw TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&c[0]?n.return:c[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,c[1])).done)return o;switch(n=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return a.label++,{value:c[1],done:!1};case 5:a.label++,n=c[1],c=[0];continue;case 7:c=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===c[0]||2===c[0])){a=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};(()=>{r.r(n),r.d(n,{envDetector:()=>U,envDetectorSync:()=>C,hostDetector:()=>B,Resource:()=>h,osDetector:()=>k,detectResources:()=>W,osDetectorSync:()=>G,browserDetectorSync:()=>R,processDetectorSync:()=>j,detectResourcesSync:()=>J,browserDetector:()=>L,processDetector:()=>F,defaultServiceName:()=>O,hostDetectorSync:()=>D,serviceInstanceIdDetectorSync:()=>Y});var e,t,o,i,a=r(8758),u="process.runtime.name",c="process.runtime.version",s="process.runtime.description",l="service.name",E="telemetry.sdk.name",f="telemetry.sdk.language",_="telemetry.sdk.version",T=((t={})[E]="opentelemetry",t[u]="node",t[f]="nodejs",t[_]="1.30.1",t);function O(){return"unknown_service:"+process.argv0}var p=function(){return(p=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])&&(6===c[0]||2===c[0])){a=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},h=function(){function e(e,t){var r,n=this;this._attributes=e,this.asyncAttributesPending=null!=t,this._syncAttributes=null!=(r=this._attributes)?r:{},this._asyncAttributesPromise=null==t?void 0:t.then(function(e){return n._attributes=Object.assign({},n._attributes,e),n.asyncAttributesPending=!1,e},function(e){return a.s.debug("a resource's async attributes promise rejected: %s",e),n.asyncAttributesPending=!1,{}})}return e.empty=function(){return e.EMPTY},e.default=function(){var t;return new e(((t={})[l]=O(),t[f]=T[f],t[E]=T[E],t[_]=T[_],t))},Object.defineProperty(e.prototype,"attributes",{get:function(){var e;return this.asyncAttributesPending&&a.s.error("Accessing resource attributes before async attributes settled"),null!=(e=this._attributes)?e:{}},enumerable:!1,configurable:!0}),e.prototype.waitForAsyncAttributes=function(){var e,t,r,n;return e=this,t=void 0,r=void 0,n=function(){return d(this,function(e){switch(e.label){case 0:if(!this.asyncAttributesPending)return[3,2];return[4,this._asyncAttributesPromise];case 1:e.sent(),e.label=2;case 2:return[2]}})},new(r||(r=Promise))(function(o,i){function a(e){try{c(n.next(e))}catch(e){i(e)}}function u(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(a,u)}c((n=n.apply(e,t||[])).next())})},e.prototype.merge=function(t){var r,n=this;if(!t)return this;var o=p(p({},this._syncAttributes),null!=(r=t._syncAttributes)?r:t.attributes);return this._asyncAttributesPromise||t._asyncAttributesPromise?new e(o,Promise.all([this._asyncAttributesPromise,t._asyncAttributesPromise]).then(function(e){var r,o=y(e,2),i=o[0],a=o[1];return p(p(p(p({},n._syncAttributes),i),null!=(r=t._syncAttributes)?r:t.attributes),a)})):new e(o)},e.EMPTY=new e({}),e}(),v=function(){return(v=Object.assign||function(e){for(var t,r=1,n=arguments.length;r=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},N=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},C=new(function(){function e(){this._MAX_LENGTH=255,this._COMMA_SEPARATOR=",",this._LABEL_KEY_VALUE_SPLITTER="=",this._ERROR_MESSAGE_INVALID_CHARS="should be a ASCII string with a length greater than 0 and not exceed "+this._MAX_LENGTH+" characters.",this._ERROR_MESSAGE_INVALID_VALUE="should be a ASCII string with a length not exceed "+this._MAX_LENGTH+" characters."}return e.prototype.detect=function(e){var t,r={},n=(t=function(e){var t={};for(var r in I)if("OTEL_LOG_LEVEL"===r)!function(e,t,r){var n=r[e];if("string"==typeof n){var o=m[n.toUpperCase()];null!=o&&(t[e]=o)}}(r,t,e);else if(A.indexOf(r)>-1)!function(e,t,r){if(void 0!==r[e]){var n=String(r[e]);t[e]="true"===n.toLowerCase()}}(r,t,e);else if(P.indexOf(r)>-1)!function(e,t,r,n,o){if(void 0===n&&(n=-1/0),void 0===o&&(o=1/0),void 0!==r[e]){var i=Number(r[e]);isNaN(i)||(io?t[e]=o:t[e]=i)}}(r,t,e);else if(S.indexOf(r)>-1)!function(e,t,r,n){void 0===n&&(n=",");var o=r[e];"string"==typeof o&&(t[e]=o.split(n).map(function(e){return e.trim()}))}(r,t,e);else{var n=e[r];null!=n&&(t[r]=String(n))}return t}(process.env),Object.assign({},I,t)),o=n.OTEL_RESOURCE_ATTRIBUTES,i=n.OTEL_SERVICE_NAME;if(o)try{var u=this._parseResourceAttributes(o);Object.assign(r,u)}catch(e){a.s.debug("EnvDetector failed: "+e.message)}return i&&(r[l]=i),new h(r)},e.prototype._parseResourceAttributes=function(e){if(!e)return{};var t,r,n={},o=e.split(this._COMMA_SEPARATOR,-1);try{for(var i=w(o),a=i.next();!a.done;a=i.next()){var u=a.value.split(this._LABEL_KEY_VALUE_SPLITTER,-1);if(2===u.length){var c=N(u,2),s=c[0],l=c[1];if(s=s.trim(),l=l.trim().split(/^"|"$/).join(""),!this._isValidAndNotEmpty(s))throw Error("Attribute key "+this._ERROR_MESSAGE_INVALID_CHARS);if(!this._isValid(l))throw Error("Attribute value "+this._ERROR_MESSAGE_INVALID_VALUE);n[s]=decodeURIComponent(l)}}}catch(e){t={error:e}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}return n},e.prototype._isValid=function(e){return e.length<=this._MAX_LENGTH&&this._isBaggageOctetString(e)},e.prototype._isBaggageOctetString=function(e){for(var t=0;t126)return!1}return!0},e.prototype._isValidAndNotEmpty=function(e){return e.length>0&&this._isValid(e)},e}()),U=new(function(){function e(){}return e.prototype.detect=function(e){return Promise.resolve(C.detect(e))},e}());let M=require("os");var x=function(e){switch(e){case"arm":return"arm32";case"ppc":return"ppc32";case"x64":return"amd64";default:return e}},X=function(e){switch(e){case"sunos":return"solaris";case"win32":return"windows";default:return e}};switch(r(932).platform){case"darwin":i=r(1568).D;break;case"linux":i=r(7917).D;break;case"freebsd":i=r(454).D;break;case"win32":i=r(7349).D;break;default:i=r(2408).D}var D=new(function(){function e(){}return e.prototype.detect=function(e){var t;return new h(((t={})["host.name"]=(0,M.hostname)(),t["host.arch"]=x((0,M.arch)()),t),this._getAsyncAttributes())},e.prototype._getAsyncAttributes=function(){return i().then(function(e){var t={};return e&&(t["host.id"]=e),t})},e}()),B=new(function(){function e(){}return e.prototype.detect=function(e){return Promise.resolve(D.detect(e))},e}()),G=new(function(){function e(){}return e.prototype.detect=function(e){var t;return new h(((t={})["os.type"]=X((0,M.platform)()),t["os.version"]=(0,M.release)(),t))},e}()),k=new(function(){function e(){}return e.prototype.detect=function(e){return Promise.resolve(G.detect(e))},e}()),V=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},H=function(e,t,r){if(r||2==arguments.length)for(var n,o=0,i=t.length;o1&&(r["process.command"]=process.argv[1]);try{var n=M.userInfo();r["process.owner"]=n.username}catch(e){a.s.debug("error obtaining process owner: "+e)}return new h(r)},e}()),F=new(function(){function e(){}return e.prototype.detect=function(e){return Promise.resolve(j.detect(e))},e}());let K=require("crypto");var Y=new(function(){function e(){}return e.prototype.detect=function(e){var t;return new h(((t={})["service.instance.id"]=(0,K.randomUUID)(),t))},e}()),q=function(e,t,r,n){return new(r||(r=Promise))(function(o,i){function a(e){try{c(n.next(e))}catch(e){i(e)}}function u(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(a,u)}c((n=n.apply(e,t||[])).next())})},Z=function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){var c=[i,u];if(r)throw TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&c[0]?n.return:c[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,c[1])).done)return o;switch(n=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return a.label++,{value:c[1],done:!1};case 5:a.label++,n=c[1],c=[0];continue;case 7:c=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===c[0]||2===c[0])){a=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]0){var t=JSON.stringify(e.attributes,null,4);a.s.verbose(t)}})}})(),module.exports=n})(); \ No newline at end of file diff --git a/packages/node_modules/crypto-randomuuid.js b/packages/node_modules/crypto-randomuuid.js index c9698e8423b..9a8b2d073cf 100644 --- a/packages/node_modules/crypto-randomuuid.js +++ b/packages/node_modules/crypto-randomuuid.js @@ -1 +1 @@ -(()=>{"use strict";var e={2613:e=>{e.exports=require("assert")},4487:(e,t,o)=>{const n=o(6982);e.exports="function"==typeof n.randomUUID?n.randomUUID:o(4908)},4908:(e,t,o)=>{const n=o(6982),{validateBoolean:r,validateObject:s,codes:{ERR_OPERATION_FAILED:i}}=o(7352),{randomFillSync:c}=n;function a(e){const t=Buffer.alloc(e);return c(t)}let l,u,f,p=0;function h(e,t=0){const o=function(){if(void 0===f){f=new Array(256);for(let e=0;e{e.exports=require("crypto")},7352:(e,t,o)=>{const n=o(2613),r=o(9023),s=["string","function","number","object","Function","Object","boolean","bigint","symbol"];class i extends TypeError{constructor(e){super(`Operation failed: ${e}`),this.code=this.constructor.name,Object.defineProperties(this,{toString:{value(){return`${this.name} [${this.code}]: ${this.message}`},enumerable:!1,writable:!0,configurable:!0}})}}class c extends TypeError{constructor(e,t,o){super(),n("string"==typeof e,"'name' must be a string"),Array.isArray(t)||(t=[t]);let i="The ";if(e.endsWith(" argument"))i+=`${e} `;else{const t=e.includes(".")?"property":"argument";i+=`"${e}" ${t} `}i+="must be ";const c=[],a=[],l=[];for(const e of t)n("string"==typeof e,"All expected entries have to be of type string"),s.includes(e)?c.push(e.toLowerCase()):classRegExp.test(e)?a.push(e):(n("object"!==e,'The value "object" should be written as "Object"'),l.push(e));if(a.length>0){const e=c.indexOf("object");-1!==e&&(c.splice(e,1),a.push("Object"))}if(c.length>0){if(c.length>2){const e=c.pop();i+=`one of type ${c.join(", ")}, or ${e}`}else 2===c.length?i+=`one of type ${c[0]} or ${c[1]}`:i+=`of type ${c[0]}`;(a.length>0||l.length>0)&&(i+=" or ")}if(a.length>0){if(a.length>2){const e=a.pop();i+=`an instance of ${a.join(", ")}, or ${e}`}else i+=`an instance of ${a[0]}`,2===a.length&&(i+=` or ${a[1]}`);l.length>0&&(i+=" or ")}if(l.length>0)if(l.length>2){const e=l.pop();i+=`one of ${l.join(", ")}, or ${e}`}else 2===l.length?i+=`one of ${l[0]} or ${l[1]}`:(l[0].toLowerCase()!==l[0]&&(i+="an "),i+=`${l[0]}`);if(null==o)i+=`. Received ${o}`;else if("function"==typeof o&&o.name)i+=`. Received function ${o.name}`;else if("object"==typeof o)o.constructor&&o.constructor.name?i+=`. Received an instance of ${o.constructor.name}`:i+=`. Received ${r.inspect(o,{depth:-1})}`;else{let e=r.inspect(o,{colors:!1});e.length>25&&(e=`${e.slice(0,25)}...`),i+=`. Received type ${typeof o} (${e})`}this.code=this.constructor.name,Object.defineProperties(this,{message:{value:i,enumerable:!1,writable:!0,configurable:!0},toString:{value(){return`${this.name} [${this.code}]: ${this.message}`},enumerable:!1,writable:!0,configurable:!0}})}}e.exports={validateBoolean:function(e,t){if("boolean"!=typeof e)throw new c(t,"boolean",e)},validateObject:function(e,t,{nullable:o=!1,allowArray:n=!1,allowFunction:r=!1}={}){if(!o&&null===e||!n&&Array.isArray(e)||"object"!=typeof e&&(!r||"function"!=typeof e))throw new c(t,"Object",e)},codes:{ERR_OPERATION_FAILED:i}}},9023:e=>{e.exports=require("util")}},t={},o=function o(n){var r=t[n];if(void 0!==r)return r.exports;var s=t[n]={exports:{}};return e[n](s,s.exports,o),s.exports}(4487);module.exports=o})(); \ No newline at end of file +(()=>{"use strict";var e={4487:function(e,t,o){let n=o(6982);e.exports="function"==typeof n.randomUUID?n.randomUUID:o(4908)},4908:function(e,t,o){let n,r,i,s=o(6982),{validateBoolean:c,validateObject:l,codes:{ERR_OPERATION_FAILED:u}}=o(7352),{randomFillSync:f}=s;function a(e){return f(Buffer.alloc(e))}let p=0;function h(e,t=0){let o=function(){if(void 0===i){i=Array(256);for(let e=0;e0){const e=c.indexOf("object");-1!==e&&(c.splice(e,1),l.push("Object"))}if(c.length>0){if(c.length>2){const e=c.pop();s+=`one of type ${c.join(", ")}, or ${e}`}else 2===c.length?s+=`one of type ${c[0]} or ${c[1]}`:s+=`of type ${c[0]}`;(l.length>0||u.length>0)&&(s+=" or ")}if(l.length>0){if(l.length>2){const e=l.pop();s+=`an instance of ${l.join(", ")}, or ${e}`}else s+=`an instance of ${l[0]}`,2===l.length&&(s+=` or ${l[1]}`);u.length>0&&(s+=" or ")}if(u.length>0)if(u.length>2){const e=u.pop();s+=`one of ${u.join(", ")}, or ${e}`}else 2===u.length?s+=`one of ${u[0]} or ${u[1]}`:(u[0].toLowerCase()!==u[0]&&(s+="an "),s+=`${u[0]}`);if(null==o)s+=`. Received ${o}`;else if("function"==typeof o&&o.name)s+=`. Received function ${o.name}`;else if("object"==typeof o)if(o.constructor&&o.constructor.name)s+=`. Received an instance of ${o.constructor.name}`;else{const e=r.inspect(o,{depth:-1});s+=`. Received ${e}`}else{let e=r.inspect(o,{colors:!1});e.length>25&&(e=`${e.slice(0,25)}...`),s+=`. Received type ${typeof o} (${e})`}this.code=this.constructor.name,Object.defineProperties(this,{message:{value:s,enumerable:!1,writable:!0,configurable:!0},toString:{value(){return`${this.name} [${this.code}]: ${this.message}`},enumerable:!1,writable:!0,configurable:!0}})}}e.exports={validateBoolean:function(e,t){if("boolean"!=typeof e)throw new c(t,"boolean",e)},validateObject:function(e,t,{nullable:o=!1,allowArray:n=!1,allowFunction:r=!1}={}){if(!o&&null===e||!n&&Array.isArray(e)||"object"!=typeof e&&(!r||"function"!=typeof e))throw new c(t,"Object",e)},codes:{ERR_OPERATION_FAILED:s}}},2613:function(e){e.exports=require("assert")},6982:function(e){e.exports=require("crypto")},9023:function(e){e.exports=require("util")}},t={},o=function o(n){var r=t[n];if(void 0!==r)return r.exports;var i=t[n]={exports:{}};return e[n](i,i.exports,o),i.exports}(4487);module.exports=o})(); \ No newline at end of file diff --git a/packages/node_modules/ignore.js b/packages/node_modules/ignore.js index be3cc1d2a1b..15cd72d2aab 100644 --- a/packages/node_modules/ignore.js +++ b/packages/node_modules/ignore.js @@ -1 +1 @@ -(()=>{var t={2535:t=>{function e(t){return Array.isArray(t)?t:[t]}const r=/^\s+$/,s=/(?:[^\\]|^)\\$/,i=/^\\!/,n=/^\\#/,o=/\r?\n/g,h=/^\.{0,2}\/|^\.{1,2}$/,a=/\/$/,c="/";let l="node-ignore";"undefined"!=typeof Symbol&&(l=Symbol.for("node-ignore"));const u=l,d=(t,e,r)=>(Object.defineProperty(t,e,{value:r}),r),g=/([0-z])-([0-z])/g,p=()=>!1,_=[[/^\uFEFF/,()=>""],[/((?:\\\\)*?)(\\?\s+)$/,(t,e,r)=>e+(0===r.indexOf("\\")?" ":"")],[/(\\+?)\s/g,(t,e)=>{const{length:r}=e;return e.slice(0,r-r%2)+" "}],[/[\\$.|*+(){^]/g,t=>`\\${t}`],[/(?!\\)\?/g,()=>"[^/]"],[/^\//,()=>"^"],[/\//g,()=>"\\/"],[/^\^*\\\*\\\*\\\//,()=>"^(?:.*\\/)?"],[/^(?=[^^])/,function(){return/\/(?!$)/.test(this)?"^":"(?:^|\\/)"}],[/\\\/\\\*\\\*(?=\\\/|$)/g,(t,e,r)=>e+6e+r.replace(/\\\*/g,"[^\\/]*")],[/\\\\\\(?=[$.|*+(){^])/g,()=>"\\"],[/\\\\/g,()=>"\\"],[/(\\)?\[([^\]/]*?)(\\*)($|\])/g,(t,e,r,s,i)=>"\\"===e?`\\[${r}${(t=>{const{length:e}=t;return t.slice(0,e-e%2)})(s)}${i}`:"]"===i&&s.length%2==0?`[${(t=>t.replace(g,(t,e,r)=>e.charCodeAt(0)<=r.charCodeAt(0)?t:""))(r)}${s}]`:"[]"],[/(?:[^*])$/,t=>/\/$/.test(t)?`${t}$`:`${t}(?=$|\\/$)`]],f=/(^|\\\/)?\\\*$/,$="regex",x="checkRegex",v={[$]:(t,e)=>(e?`${e}[^/]+`:"[^/]*")+"(?=$|\\/$)",[x]:(t,e)=>(e?`${e}[^/]*`:"[^/]*")+"(?=$|\\/$)"},C=t=>"string"==typeof t;class b{constructor(t,e,r,s,i,n){this.pattern=t,this.mark=e,this.negative=i,d(this,"body",r),d(this,"ignoreCase",s),d(this,"regexPrefix",n)}get regex(){const t="_"+$;return this[t]?this[t]:this._make($,t)}get checkRegex(){const t="_"+x;return this[t]?this[t]:this._make(x,t)}_make(t,e){const r=this.regexPrefix.replace(f,v[t]),s=this.ignoreCase?new RegExp(r,"i"):new RegExp(r);return d(this,e,s)}}class m{constructor(t){this._ignoreCase=t,this._rules=[]}_add(t){if(t&&t[u])return this._rules=this._rules.concat(t._rules._rules),void(this._added=!0);if(C(t)&&(t={pattern:t}),(t=>t&&C(t)&&!r.test(t)&&!s.test(t)&&0!==t.indexOf("#"))(t.pattern)){const e=(({pattern:t,mark:e},r)=>{let s=!1,o=t;0===o.indexOf("!")&&(s=!0,o=o.substr(1)),o=o.replace(i,"!").replace(n,"#");const h=(t=>_.reduce((e,[r,s])=>e.replace(r,s.bind(t)),t))(o);return new b(t,e,o,r,s,h)})(t,this._ignoreCase);this._added=!0,this._rules.push(e)}}add(t){return this._added=!1,e(C(t)?(t=>t.split(o).filter(Boolean))(t):t).forEach(this._add,this),this._added}test(t,e,r){let s,i=!1,n=!1;this._rules.forEach(o=>{const{negative:h}=o;n===h&&i!==n||h&&!i&&!n&&!e||o[r].test(t)&&(i=!h,n=h,s=h?void 0:o)});const o={ignored:i,unignored:n};return s&&(o.rule=s),o}}const y=(t,e)=>{throw new e(t)},k=(t,e,r)=>C(t)?t?!k.isNotRelative(t)||r(`path should be a \`path.relative()\`d string, but got "${e}"`,RangeError):r("path must not be empty",TypeError):r(`path must be a string, but got \`${e}\``,TypeError),w=t=>h.test(t);k.isNotRelative=w,k.convert=t=>t;class R{constructor({ignorecase:t=!0,ignoreCase:e=t,allowRelativePaths:r=!1}={}){d(this,u,!0),this._rules=new m(e),this._strictPathCheck=!r,this._initCache()}_initCache(){this._ignoreCache=Object.create(null),this._testCache=Object.create(null)}add(t){return this._rules.add(t)&&this._initCache(),this}addPattern(t){return this.add(t)}_test(t,e,r,s){const i=t&&k.convert(t);return k(i,t,this._strictPathCheck?y:p),this._t(i,e,r,s)}checkIgnore(t){if(!a.test(t))return this.test(t);const e=t.split(c).filter(Boolean);if(e.pop(),e.length){const t=this._t(e.join(c)+c,this._testCache,!0,e);if(t.ignored)return t}return this._rules.test(t,!1,x)}_t(t,e,r,s){if(t in e)return e[t];if(s||(s=t.split(c).filter(Boolean)),s.pop(),!s.length)return e[t]=this._rules.test(t,r,$);const i=this._t(s.join(c)+c,e,r,s);return e[t]=i.ignored?i:this._rules.test(t,r,$)}ignores(t){return this._test(t,this._ignoreCache,!1).ignored}createFilter(){return t=>!this.ignores(t)}filter(t){return e(t).filter(this.createFilter())}test(t){return this._test(t,this._testCache,!0)}}const E=t=>new R(t),P=()=>{k.convert=t=>/^\\\\\?\\/.test(t)||/["<>|\u0000-\u001F]+/u.test(t)?t:t.replace(/\\/g,"/");const t=/^[a-z]:\//i;k.isNotRelative=e=>t.test(e)||w(e)};"undefined"!=typeof process&&"win32"===process.platform&&P(),t.exports=E,E.default=E,t.exports.isPathValid=t=>k(t&&k.convert(t),t,p),d(t.exports,Symbol.for("setupWindows"),P)}},e={},r=function r(s){var i=e[s];if(void 0!==i)return i.exports;var n=e[s]={exports:{}};return t[s](n,n.exports,r),n.exports}(2535);module.exports=r})(); \ No newline at end of file +(()=>{var t={2535:function(t){function e(t){return Array.isArray(t)?t:[t]}let r,s=/^\s+$/,i=/(?:[^\\]|^)\\$/,n=/^\\!/,h=/^\\#/,o=/\r?\n/g,l=/^\.{0,2}\/|^\.{1,2}$/,a=/\/$/,u="node-ignore";"undefined"!=typeof Symbol&&(u=Symbol.for("node-ignore"));let c=u,d=(t,e,r)=>(Object.defineProperty(t,e,{value:r}),r),g=/([0-z])-([0-z])/g,p=()=>!1,_=[[/^\uFEFF/,()=>""],[/((?:\\\\)*?)(\\?\s+)$/,(t,e,r)=>e+(0===r.indexOf("\\")?" ":"")],[/(\\+?)\s/g,(t,e)=>{let{length:r}=e;return e.slice(0,r-r%2)+" "}],[/[\\$.|*+(){^]/g,t=>`\\${t}`],[/(?!\\)\?/g,()=>"[^/]"],[/^\//,()=>"^"],[/\//g,()=>"\\/"],[/^\^*\\\*\\\*\\\//,()=>"^(?:.*\\/)?"],[/^(?=[^^])/,function(){return/\/(?!$)/.test(this)?"^":"(?:^|\\/)"}],[/\\\/\\\*\\\*(?=\\\/|$)/g,(t,e,r)=>e+6e+r.replace(/\\\*/g,"[^\\/]*")],[/\\\\\\(?=[$.|*+(){^])/g,()=>"\\"],[/\\\\/g,()=>"\\"],[/(\\)?\[([^\]/]*?)(\\*)($|\])/g,(t,e,r,s,i)=>"\\"===e?`\\[${r}${(t=>{let{length:e}=t;return t.slice(0,e-e%2)})(s)}${i}`:"]"===i&&s.length%2==0?`[${r.replace(g,(t,e,r)=>e.charCodeAt(0)<=r.charCodeAt(0)?t:"")}${s}]`:"[]"],[/(?:[^*])$/,t=>/\/$/.test(t)?`${t}$`:`${t}(?=$|\\/$)`]],f=/(^|\\\/)?\\\*$/,$="regex",x="checkRegex",y={[$](t,e){let r=e?`${e}[^/]+`:"[^/]*";return`${r}(?=$|\\/$)`},[x](t,e){let r=e?`${e}[^/]*`:"[^/]*";return`${r}(?=$|\\/$)`}};class C{constructor(t,e,r,s,i,n){this.pattern=t,this.mark=e,this.negative=i,d(this,"body",r),d(this,"ignoreCase",s),d(this,"regexPrefix",n)}get regex(){let t="_"+$;return this[t]?this[t]:this._make($,t)}get checkRegex(){let t="_"+x;return this[t]?this[t]:this._make(x,t)}_make(t,e){let r=this.regexPrefix.replace(f,y[t]);return d(this,e,this.ignoreCase?RegExp(r,"i"):new RegExp(r))}}class b{constructor(t){this._ignoreCase=t,this._rules=[]}_add(t){let e;if(t&&t[c]){this._rules=this._rules.concat(t._rules._rules),this._added=!0;return}if("string"==typeof t&&(t={pattern:t}),(e=t.pattern)&&"string"==typeof e&&!s.test(e)&&!i.test(e)&&0!==e.indexOf("#")){let e=(({pattern:t,mark:e},r)=>{let s,i=!1,o=t;0===o.indexOf("!")&&(i=!0,o=o.substr(1));let l=(s=o=o.replace(n,"!").replace(h,"#"),_.reduce((t,[e,r])=>t.replace(e,r.bind(s)),s));return new C(t,e,o,r,i,l)})(t,this._ignoreCase);this._added=!0,this._rules.push(e)}}add(t){return this._added=!1,e("string"==typeof t?t.split(o).filter(Boolean):t).forEach(this._add,this),this._added}test(t,e,s){let i,n=!1,h=!1;this._rules.forEach(o=>{let{negative:l}=o;(h!==l||n===h)&&(!l||n||h||e)&&o[s].test(t)&&(n=!l,h=l,i=l?r:o)});let o={ignored:n,unignored:h};return i&&(o.rule=i),o}}let v=(t,e)=>{throw new e(t)},m=(t,e,r)=>"string"!=typeof t?r(`path must be a string, but got \`${e}\``,TypeError):t?!m.isNotRelative(t)||r(`path should be a \`path.relative()\`d string, but got "${e}"`,RangeError):r("path must not be empty",TypeError),k=t=>l.test(t);m.isNotRelative=k,m.convert=t=>t;class w{constructor({ignorecase:t=!0,ignoreCase:e=t,allowRelativePaths:r=!1}={}){d(this,c,!0),this._rules=new b(e),this._strictPathCheck=!r,this._initCache()}_initCache(){this._ignoreCache=Object.create(null),this._testCache=Object.create(null)}add(t){return this._rules.add(t)&&this._initCache(),this}addPattern(t){return this.add(t)}_test(t,e,r,s){let i=t&&m.convert(t);return m(i,t,this._strictPathCheck?v:p),this._t(i,e,r,s)}checkIgnore(t){if(!a.test(t))return this.test(t);let e=t.split("/").filter(Boolean);if(e.pop(),e.length){let t=this._t(e.join("/")+"/",this._testCache,!0,e);if(t.ignored)return t}return this._rules.test(t,!1,x)}_t(t,e,r,s){if(t in e)return e[t];if(s||(s=t.split("/").filter(Boolean)),s.pop(),!s.length)return e[t]=this._rules.test(t,r,$);let i=this._t(s.join("/")+"/",e,r,s);return e[t]=i.ignored?i:this._rules.test(t,r,$)}ignores(t){return this._test(t,this._ignoreCache,!1).ignored}createFilter(){return t=>!this.ignores(t)}filter(t){return e(t).filter(this.createFilter())}test(t){return this._test(t,this._testCache,!0)}}let E=t=>new w(t),R=()=>{m.convert=t=>/^\\\\\?\\/.test(t)||/["<>|\u0000-\u001F]+/u.test(t)?t:t.replace(/\\/g,"/");let t=/^[a-z]:\//i;m.isNotRelative=e=>t.test(e)||k(e)};"undefined"!=typeof process&&"win32"===process.platform&&R(),t.exports=E,E.default=E,t.exports.isPathValid=t=>m(t&&m.convert(t),t,p),d(t.exports,Symbol.for("setupWindows"),R)}},e={},r=function r(s){var i=e[s];if(void 0!==i)return i.exports;var n=e[s]={exports:{}};return t[s](n,n.exports,r),n.exports}(2535);module.exports=r})(); \ No newline at end of file diff --git a/packages/node_modules/istanbul-lib-coverage.js b/packages/node_modules/istanbul-lib-coverage.js index acf72a30e53..e466eccb9ed 100644 --- a/packages/node_modules/istanbul-lib-coverage.js +++ b/packages/node_modules/istanbul-lib-coverage.js @@ -1 +1 @@ -(()=>{"use strict";var t={20:t=>{t.exports=function(t,e){e.forEach(e=>{Object.defineProperty(t.prototype,e,{enumerable:!0,get(){return this.data[e]}})})}},1958:(t,e,n)=>{const{FileCoverage:a}=n(4709),{CoverageMap:r}=n(3561),{CoverageSummary:s}=n(9455);t.exports={createCoverageSummary:t=>t&&t instanceof s?t:new s(t),createCoverageMap:t=>t&&t instanceof r?t:new r(t),createFileCoverage:t=>t&&t instanceof a?t:new a(t)},t.exports.classes={FileCoverage:a}},2735:t=>{t.exports=function(t,e){let n;return e>0?(n=1e5*t/e,Math.floor(n/10)/100):100}},3561:(t,e,n)=>{const{FileCoverage:a}=n(4709),{CoverageSummary:r}=n(9455);function s(t,e){return t instanceof e?t:new e(t)}class o{constructor(t){this.data=t instanceof o?t.data:function(t){const e=Object.create(null);return t?(Object.entries(t).forEach(([t,n])=>{e[t]=s(n,a)}),e):e}(t)}merge(t){const e=s(t,o);Object.values(e.data).forEach(t=>{this.addFileCoverage(t)})}filter(t){Object.keys(this.data).forEach(e=>{t(e)||delete this.data[e]})}toJSON(){return this.data}files(){return Object.keys(this.data)}fileCoverageFor(t){const e=this.data[t];if(!e)throw new Error(`No file coverage available for: ${t}`);return e}addFileCoverage(t){const e=new a(t),{path:n}=e;this.data[n]?this.data[n].merge(e):this.data[n]=e}getCoverageSummary(){const t=new r;return Object.values(this.data).forEach(e=>{t.merge(e.toSummary())}),t}}t.exports={CoverageMap:o}},4709:(t,e,n)=>{const a=n(2735),r=n(20),{CoverageSummary:s}=n(9455),o=({start:t,end:e})=>`${t.line}|${t.column}|${e.line}|${e.column}`,c=t=>!!t&&"object"==typeof t,i=t=>c(t)&&"number"==typeof t.line&&"number"==typeof t.column,l=t=>c(t)&&i(t.start)&&i(t.end),h=t=>l(t)?t:l(t.loc)?t.loc:null,u=(t,e)=>{const n=h(t);if(!n)return null;let a=null,r=null,s=null;for(const[t,o]of Object.entries(e)){const e=h(o);if(!e)continue;const c=[n.start.line-e.start.line,n.start.column-e.start.column,e.end.line-n.end.line,e.end.column-n.end.column];if(c[0]<0||c[2]<0||0===c[0]&&c[1]<0||0===c[2]&&c[3]<0)continue;if(null===a){r=c,a=o,s=t;continue}const i=c[0]"number"==typeof t&&"number"==typeof e?t+e:Array.isArray(t)&&Array.isArray(e)?t.map((t,n)=>(t||0)+(e[n]||0)):null,p=(t,e,n,a)=>{const r=u(t,n);return r?f(e,a[r]):e},d=(t,e,n,a,r=o)=>{const s={};for(const[n,a]of Object.entries(t)){const t=e[n];s[r(t)]=[a,t]}const c={};for(const[t,e]of Object.entries(n)){const n=a[t];c[r(n)]=[e,n]}const i={};for(const[t,e]of Object.entries(s)){let r=e[0];const s=e[1],o=c[t];r=o?f(r,o[0]):p(s,r,a,n),i[t]=[r,s]}for(const[n,a]of Object.entries(c)){let r=a[0];const s=a[1];i[n]||(r=p(s,r,e,t),i[n]=[r,s])}const l={},h={};return Object.values(i).forEach(([t,e],n)=>{l[n]=t,h[n]=e}),[l,h]};class b{constructor(t,e=!1){if(!t)throw new Error("Coverage must be initialized with a path or an object");if("string"==typeof t)this.data=function(t,e){const n={path:t,statementMap:{},fnMap:{},branchMap:{},s:{},f:{},b:{}};return e&&(n.bT={}),n}(t,e);else if(t instanceof b)this.data=t.data;else{if("object"!=typeof t)throw new Error("Invalid argument to coverage constructor");this.data=t}!function(t){if(!(t&&t.path&&t.statementMap&&t.fnMap&&t.branchMap&&t.s&&t.f&&t.b))throw new Error("Invalid file coverage object, missing keys, found:"+Object.keys(t).join(","))}(this.data)}getLineCoverage(){const t=this.data.statementMap,e=this.data.s,n=Object.create(null);return Object.entries(e).forEach(([e,a])=>{if(!t[e])return;const{line:r}=t[e].start,s=n[r];(void 0===s||s{0===n&&e.push(t)}),e}getBranchCoverageByLine(){const t=this.branchMap,e=this.b,n={};return Object.entries(t).forEach(([t,a])=>{const r=a.line||a.loc.start.line,s=e[t];n[r]=n[r]||[],n[r].push(...s)}),Object.entries(n).forEach(([t,e])=>{const a=e.filter(t=>t>0),r=a.length/e.length*100;n[t]={covered:a.length,total:e.length,coverage:r}}),n}toJSON(){return this.data}merge(t){if(!0===t.all)return;if(!0===this.all)return void(this.data=t.data);let[e,n]=d(this.s,this.statementMap,t.s,t.statementMap);this.data.s=e,this.data.statementMap=n;const a=t=>o(t.locations[0]);[e,n]=d(this.f,this.fnMap,t.f,t.fnMap,t=>o(t.loc)),this.data.f=e,this.data.fnMap=n,[e,n]=d(this.b,this.branchMap,t.b,t.branchMap,a),this.data.b=e,this.data.branchMap=n,this.bT&&t.bT&&([e,n]=d(this.bT,this.branchMap,t.bT,t.branchMap,a),this.data.bT=e)}computeSimpleTotals(t){let e=this[t];"function"==typeof e&&(e=e.call(this));const n={total:Object.keys(e).length,covered:Object.values(e).filter(t=>!!t).length,skipped:0};return n.pct=a(n.covered,n.total),n}computeBranchTotals(t){const e=this[t],n={total:0,covered:0,skipped:0};return Object.values(e).forEach(t=>{n.covered+=t.filter(t=>t>0).length,n.total+=t.length}),n.pct=a(n.covered,n.total),n}resetHits(){const t=this.s,e=this.f,n=this.b,a=this.bT;Object.keys(t).forEach(e=>{t[e]=0}),Object.keys(e).forEach(t=>{e[t]=0}),Object.keys(n).forEach(t=>{n[t].fill(0)}),a&&Object.keys(a).forEach(t=>{a[t].fill(0)})}toSummary(){const t={};return t.lines=this.computeSimpleTotals("getLineCoverage"),t.functions=this.computeSimpleTotals("f","fnMap"),t.statements=this.computeSimpleTotals("s","statementMap"),t.branches=this.computeBranchTotals("b"),this.bT&&(t.branchesTrue=this.computeBranchTotals("bT")),new s(t)}}r(b,["path","statementMap","fnMap","branchMap","s","f","b","bT","all"]),t.exports={FileCoverage:b,findNearestContainer:u,addHits:f,addNearestContainerHits:p}},9455:(t,e,n)=>{const a=n(2735),r=n(20);class s{constructor(t){this.data=t?t instanceof s?t.data:t:{lines:{total:0,covered:0,skipped:0,pct:"Unknown"},statements:{total:0,covered:0,skipped:0,pct:"Unknown"},functions:{total:0,covered:0,skipped:0,pct:"Unknown"},branches:{total:0,covered:0,skipped:0,pct:"Unknown"},branchesTrue:{total:0,covered:0,skipped:0,pct:"Unknown"}},function(t){if(!(t&&t.lines&&t.statements&&t.functions&&t.branches))throw new Error("Invalid summary coverage object, missing keys, found:"+Object.keys(t).join(","))}(this.data)}merge(t){return["lines","statements","branches","functions","branchesTrue"].forEach(e=>{t[e]&&(this[e].total+=t[e].total,this[e].covered+=t[e].covered,this[e].skipped+=t[e].skipped,this[e].pct=a(this[e].covered,this[e].total))}),this}toJSON(){return this.data}isEmpty(){return 0===this.lines.total}}r(s,["lines","statements","functions","branches","branchesTrue"]),t.exports={CoverageSummary:s}}},e={},n=function n(a){var r=e[a];if(void 0!==r)return r.exports;var s=e[a]={exports:{}};return t[a](s,s.exports,n),s.exports}(1958);module.exports=n})(); \ No newline at end of file +(()=>{"use strict";var t={1958:function(t,e,a){let{FileCoverage:r}=a(4709),{CoverageMap:n}=a(3561),{CoverageSummary:s}=a(9455);t.exports={createCoverageSummary:t=>t&&t instanceof s?t:new s(t),createCoverageMap:t=>t&&t instanceof n?t:new n(t),createFileCoverage:t=>t&&t instanceof r?t:new r(t)},t.exports.classes={FileCoverage:r}},3561:function(t,e,a){let{FileCoverage:r}=a(4709),{CoverageSummary:n}=a(9455);function s(t,e){return t instanceof e?t:new e(t)}class i{constructor(t){t instanceof i?this.data=t.data:this.data=function(t){let e=Object.create(null);return t&&Object.entries(t).forEach(([t,a])=>{e[t]=s(a,r)}),e}(t)}merge(t){Object.values(s(t,i).data).forEach(t=>{this.addFileCoverage(t)})}filter(t){Object.keys(this.data).forEach(e=>{t(e)||delete this.data[e]})}toJSON(){return this.data}files(){return Object.keys(this.data)}fileCoverageFor(t){let e=this.data[t];if(!e)throw Error(`No file coverage available for: ${t}`);return e}addFileCoverage(t){let e=new r(t),{path:a}=e;this.data[a]?this.data[a].merge(e):this.data[a]=e}getCoverageSummary(){let t=new n;return Object.values(this.data).forEach(e=>{t.merge(e.toSummary())}),t}}t.exports={CoverageMap:i}},9455:function(t,e,a){let r=a(2735),n=a(20);class s{constructor(t){t?t instanceof s?this.data=t.data:this.data=t:this.data=function(){let t=()=>({total:0,covered:0,skipped:0,pct:"Unknown"});return{lines:t(),statements:t(),functions:t(),branches:t(),branchesTrue:t()}}(),function(t){if(!(t&&t.lines&&t.statements&&t.functions&&t.branches))throw Error("Invalid summary coverage object, missing keys, found:"+Object.keys(t).join(","))}(this.data)}merge(t){return["lines","statements","branches","functions","branchesTrue"].forEach(e=>{t[e]&&(this[e].total+=t[e].total,this[e].covered+=t[e].covered,this[e].skipped+=t[e].skipped,this[e].pct=r(this[e].covered,this[e].total))}),this}toJSON(){return this.data}isEmpty(){return 0===this.lines.total}}n(s,["lines","statements","functions","branches","branchesTrue"]),t.exports={CoverageSummary:s}},20:function(t){t.exports=function(t,e){e.forEach(e=>{Object.defineProperty(t.prototype,e,{enumerable:!0,get(){return this.data[e]}})})}},4709:function(t,e,a){let r=a(2735),n=a(20),{CoverageSummary:s}=a(9455),i=({start:t,end:e})=>`${t.line}|${t.column}|${e.line}|${e.column}`,o=t=>!!t&&"object"==typeof t,l=t=>o(t)&&"number"==typeof t.line&&"number"==typeof t.column,c=t=>o(t)&&l(t.start)&&l(t.end),h=t=>c(t)?t:c(t.loc)?t.loc:null,f=(t,e)=>{let a=h(t);if(!a)return null;let r=null,n=null,s=null;for(let[t,i]of Object.entries(e)){let e=h(i);if(!e)continue;let o=[a.start.line-e.start.line,a.start.column-e.start.column,e.end.line-a.end.line,e.end.column-a.end.column];if(o[0]<0||o[2]<0||0===o[0]&&o[1]<0||0===o[2]&&o[3]<0)continue;if(null===r){n=o,r=i,s=t;continue}let l=o[0]"number"==typeof t&&"number"==typeof e?t+e:Array.isArray(t)&&Array.isArray(e)?t.map((t,a)=>(t||0)+(e[a]||0)):null,p=(t,e,a,r)=>{let n=f(t,a);return n?u(e,r[n]):e},b=(t,e,a,r,n=i)=>{let s={};for(let[a,r]of Object.entries(t)){let t=e[a];s[n(t)]=[r,t]}let o={};for(let[t,e]of Object.entries(a)){let a=r[t];o[n(a)]=[e,a]}let l={};for(let[t,e]of Object.entries(s)){let n=e[0],s=e[1],i=o[t];n=i?u(n,i[0]):p(s,n,r,a),l[t]=[n,s]}for(let[a,r]of Object.entries(o)){let n=r[0],s=r[1];l[a]||(n=p(s,n,e,t),l[a]=[n,s])}let c={},h={};return Object.values(l).forEach(([t,e],a)=>{c[a]=t,h[a]=e}),[c,h]};class d{constructor(t,e=!1){if(!t)throw Error("Coverage must be initialized with a path or an object");if("string"==typeof t)this.data=function(t,e){let a={path:t,statementMap:{},fnMap:{},branchMap:{},s:{},f:{},b:{}};return e&&(a.bT={}),a}(t,e);else if(t instanceof d)this.data=t.data;else if("object"==typeof t)this.data=t;else throw Error("Invalid argument to coverage constructor");!function(t){if(!(t&&t.path&&t.statementMap&&t.fnMap&&t.branchMap&&t.s&&t.f&&t.b))throw Error("Invalid file coverage object, missing keys, found:"+Object.keys(t).join(","))}(this.data)}getLineCoverage(){let t=this.data.statementMap,e=this.data.s,a=Object.create(null);return Object.entries(e).forEach(([e,r])=>{if(!t[e])return;let{line:n}=t[e].start,s=a[n];(void 0===s||s{0===a&&e.push(t)}),e}getBranchCoverageByLine(){let t=this.branchMap,e=this.b,a={};return Object.entries(t).forEach(([t,r])=>{let n=r.line||r.loc.start.line,s=e[t];a[n]=a[n]||[],a[n].push(...s)}),Object.entries(a).forEach(([t,e])=>{let r=e.filter(t=>t>0),n=r.length/e.length*100;a[t]={covered:r.length,total:e.length,coverage:n}}),a}toJSON(){return this.data}merge(t){if(!0===t.all)return;if(!0===this.all){this.data=t.data;return}let[e,a]=b(this.s,this.statementMap,t.s,t.statementMap);this.data.s=e,this.data.statementMap=a;let r=t=>i(t.locations[0]);[e,a]=b(this.f,this.fnMap,t.f,t.fnMap,t=>i(t.loc)),this.data.f=e,this.data.fnMap=a,[e,a]=b(this.b,this.branchMap,t.b,t.branchMap,r),this.data.b=e,this.data.branchMap=a,this.bT&&t.bT&&([e,a]=b(this.bT,this.branchMap,t.bT,t.branchMap,r),this.data.bT=e)}computeSimpleTotals(t){let e=this[t];"function"==typeof e&&(e=e.call(this));let a={total:Object.keys(e).length,covered:Object.values(e).filter(t=>!!t).length,skipped:0};return a.pct=r(a.covered,a.total),a}computeBranchTotals(t){let e=this[t],a={total:0,covered:0,skipped:0};return Object.values(e).forEach(t=>{a.covered+=t.filter(t=>t>0).length,a.total+=t.length}),a.pct=r(a.covered,a.total),a}resetHits(){let t=this.s,e=this.f,a=this.b,r=this.bT;Object.keys(t).forEach(e=>{t[e]=0}),Object.keys(e).forEach(t=>{e[t]=0}),Object.keys(a).forEach(t=>{a[t].fill(0)}),r&&Object.keys(r).forEach(t=>{r[t].fill(0)})}toSummary(){let t={};return t.lines=this.computeSimpleTotals("getLineCoverage"),t.functions=this.computeSimpleTotals("f","fnMap"),t.statements=this.computeSimpleTotals("s","statementMap"),t.branches=this.computeBranchTotals("b"),this.bT&&(t.branchesTrue=this.computeBranchTotals("bT")),new s(t)}}n(d,["path","statementMap","fnMap","branchMap","s","f","b","bT","all"]),t.exports={FileCoverage:d,findNearestContainer:f,addHits:u,addNearestContainerHits:p}},2735:function(t){t.exports=function(t,e){return e>0?Math.floor(1e5*t/e/10)/100:100}}},e={},a=function a(r){var n=e[r];if(void 0!==n)return n.exports;var s=e[r]={exports:{}};return t[r](s,s.exports,a),s.exports}(1958);module.exports=a})(); \ No newline at end of file diff --git a/packages/node_modules/jest-docblock.js b/packages/node_modules/jest-docblock.js index 6d7fdcc791d..9372864c970 100644 --- a/packages/node_modules/jest-docblock.js +++ b/packages/node_modules/jest-docblock.js @@ -1 +1 @@ -(()=>{"use strict";var r={857:r=>{r.exports=require("os")},1671:r=>{const t=r=>{if("string"!=typeof r)throw new TypeError("Expected a string");const t=r.match(/(?:\r?\n)/g)||[];if(0===t.length)return;const n=t.filter(r=>"\r\n"===r).length;return n>t.length-n?"\r\n":"\n"};r.exports=t,r.exports.graceful=r=>"string"==typeof r&&t(r)||"\n"}},t={};function n(e){var o=t[e];if(void 0!==o)return o.exports;var c=t[e]={exports:{}};return r[e](c,c.exports,n),c.exports}var e={};(()=>{var r=e;function t(){const r=n(857);return t=function(){return r},r}function o(){const r=(t=n(1671))&&t.__esModule?t:{default:t};var t;return o=function(){return r},r}Object.defineProperty(r,"__esModule",{value:!0}),r.extract=function(r){const t=r.match(a);return t?t[0].trimLeft():""},r.parse=function(r){return m(r).pragmas},r.parseWithComments=m,r.print=function({comments:r="",pragmas:n={}}){const e=(0,o().default)(r)??t().EOL,c=" *",s=Object.keys(n),a=s.flatMap(r=>h(r,n[r])).map(r=>`${c} ${r}${e}`).join("");if(!r){if(0===s.length)return"";if(1===s.length&&!Array.isArray(n[s[0]])){const r=n[s[0]];return`/** ${h(s[0],r)[0]} */`}}const i=r.split(e).map(r=>`${c} ${r}`).join(e)+e;return"/**"+e+(r?i:"")+(r&&s.length?c+e:"")+a+" */"},r.strip=function(r){const t=r.match(a);return t&&t[0]?r.substring(t[0].length):r};const c=/\*\/$/,s=/^\/\*\*?/,a=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,i=/(^|\s+)\/\/([^\r\n]*)/g,u=/^(\r?\n)+/,p=/(?:^|\r?\n) *(@[^\r\n]*?) *\r?\n *(?![^@\r\n]*\/\/[^]*)([^@\r\n\s][^@\r\n]+?) *\r?\n/g,f=/(?:^|\r?\n) *@(\S+) *([^\r\n]*)/g,l=/(\r?\n|^) *\* ?/g,g=[];function m(r){const n=(0,o().default)(r)??t().EOL;r=r.replace(s,"").replace(c,"").replace(l,"$1");let e="";for(;e!==r;)e=r,r=r.replace(p,`${n}$1 $2${n}`);r=r.replace(u,"").trimRight();const a=Object.create(null),m=r.replace(f,"").replace(u,"").trimRight();let h;for(;h=f.exec(r);){const r=h[2].replace(i,"");"string"==typeof a[h[1]]||Array.isArray(a[h[1]])?a[h[1]]=g.concat(a[h[1]],r):a[h[1]]=r}return{comments:m,pragmas:a}}function h(r,t){return g.concat(t).map(t=>`@${r} ${t}`.trim())}})(),module.exports=e})(); \ No newline at end of file +(()=>{"use strict";var r={1671:function(r){let t=r=>{if("string"!=typeof r)throw TypeError("Expected a string");let t=r.match(/(?:\r?\n)/g)||[];if(0===t.length)return;let e=t.filter(r=>"\r\n"===r).length,n=t.length-e;return e>n?"\r\n":"\n"};r.exports=t,r.exports.graceful=r=>"string"==typeof r&&t(r)||"\n"},857:function(r){r.exports=require("os")}},t={};function e(n){var i=t[n];if(void 0!==i)return i.exports;var l=t[n]={exports:{}};return r[n](l,l.exports,e),l.exports}var n={};(()=>{function r(){let t=e(857);return r=function(){return t},t}function t(){var r;let n=(r=e(1671))&&r.__esModule?r:{default:r};return t=function(){return n},n}Object.defineProperty(n,"__esModule",{value:!0}),n.extract=function(r){let t=r.match(a);return t?t[0].trimLeft():""},n.parse=function(r){return g(r).pragmas},n.parseWithComments=g,n.print=function({comments:e="",pragmas:n={}}){let i=(0,t().default)(e)??r().EOL,l=Object.keys(n),a=l.flatMap(r=>m(r,n[r])).map(r=>` * ${r}${i}`).join("");if(!e){if(0===l.length)return"";if(1===l.length&&!Array.isArray(n[l[0]])){let r=n[l[0]];return`/** ${m(l[0],r)[0]} */`}}let u=e.split(i).map(r=>` * ${r}`).join(i)+i;return"/**"+i+(e?u:"")+(e&&l.length?" *"+i:"")+a+" */"},n.strip=function(r){let t=r.match(a);return t&&t[0]?r.substring(t[0].length):r};let i=/\*\/$/,l=/^\/\*\*?/,a=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,u=/(^|\s+)\/\/([^\r\n]*)/g,o=/^(\r?\n)+/,c=/(?:^|\r?\n) *(@[^\r\n]*?) *\r?\n *(?![^@\r\n]*\/\/[^]*)([^@\r\n\s][^@\r\n]+?) *\r?\n/g,p=/(?:^|\r?\n) *@(\S+) *([^\r\n]*)/g,f=/(\r?\n|^) *\* ?/g,s=[];function g(e){let n,a=(0,t().default)(e)??r().EOL;e=e.replace(l,"").replace(i,"").replace(f,"$1");let g="";for(;g!==e;)g=e,e=e.replace(c,`${a}$1 $2${a}`);e=e.replace(o,"").trimRight();let m=Object.create(null),h=e.replace(p,"").replace(o,"").trimRight();for(;n=p.exec(e);){let r=n[2].replace(u,"");"string"==typeof m[n[1]]||Array.isArray(m[n[1]])?m[n[1]]=s.concat(m[n[1]],r):m[n[1]]=r}return{comments:h,pragmas:m}}function m(r,t){return s.concat(t).map(t=>`@${r} ${t}`.trim())}})(),module.exports=n})(); \ No newline at end of file diff --git a/packages/node_modules/jsonpath-plus.js b/packages/node_modules/jsonpath-plus.js index d22367bd0f8..a502bdde930 100644 --- a/packages/node_modules/jsonpath-plus.js +++ b/packages/node_modules/jsonpath-plus.js @@ -1 +1 @@ -(()=>{"use strict";var e={d:(t,r)=>{for(var i in r)e.o(r,i)&&!e.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:r[i]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};e.r(t),e.d(t,{JSONPath:()=>b});const r=require("vm");class i{static get version(){return"1.4.0"}static toString(){return"JavaScript Expression Parser (JSEP) v"+i.version}static addUnaryOp(e){return i.max_unop_len=Math.max(e.length,i.max_unop_len),i.unary_ops[e]=1,i}static addBinaryOp(e,t,r){return i.max_binop_len=Math.max(e.length,i.max_binop_len),i.binary_ops[e]=t,r?i.right_associative.add(e):i.right_associative.delete(e),i}static addIdentifierChar(e){return i.additional_identifier_chars.add(e),i}static addLiteral(e,t){return i.literals[e]=t,i}static removeUnaryOp(e){return delete i.unary_ops[e],e.length===i.max_unop_len&&(i.max_unop_len=i.getMaxKeyLen(i.unary_ops)),i}static removeAllUnaryOps(){return i.unary_ops={},i.max_unop_len=0,i}static removeIdentifierChar(e){return i.additional_identifier_chars.delete(e),i}static removeBinaryOp(e){return delete i.binary_ops[e],e.length===i.max_binop_len&&(i.max_binop_len=i.getMaxKeyLen(i.binary_ops)),i.right_associative.delete(e),i}static removeAllBinaryOps(){return i.binary_ops={},i.max_binop_len=0,i}static removeLiteral(e){return delete i.literals[e],i}static removeAllLiterals(){return i.literals={},i}get char(){return this.expr.charAt(this.index)}get code(){return this.expr.charCodeAt(this.index)}constructor(e){this.expr=e,this.index=0}static parse(e){return new i(e).parse()}static getMaxKeyLen(e){return Math.max(0,...Object.keys(e).map(e=>e.length))}static isDecimalDigit(e){return e>=48&&e<=57}static binaryPrecedence(e){return i.binary_ops[e]||0}static isIdentifierStart(e){return e>=65&&e<=90||e>=97&&e<=122||e>=128&&!i.binary_ops[String.fromCharCode(e)]||i.additional_identifier_chars.has(String.fromCharCode(e))}static isIdentifierPart(e){return i.isIdentifierStart(e)||i.isDecimalDigit(e)}throwError(e){const t=new Error(e+" at character "+this.index);throw t.index=this.index,t.description=e,t}runHook(e,t){if(i.hooks[e]){const r={context:this,node:t};return i.hooks.run(e,r),r.node}return t}searchHook(e){if(i.hooks[e]){const t={context:this};return i.hooks[e].find(function(e){return e.call(t.context,t),t.node}),t.node}}gobbleSpaces(){let e=this.code;for(;e===i.SPACE_CODE||e===i.TAB_CODE||e===i.LF_CODE||e===i.CR_CODE;)e=this.expr.charCodeAt(++this.index);this.runHook("gobble-spaces")}parse(){this.runHook("before-all");const e=this.gobbleExpressions(),t=1===e.length?e[0]:{type:i.COMPOUND,body:e};return this.runHook("after-all",t)}gobbleExpressions(e){let t,r,s=[];for(;this.index0;){if(i.binary_ops.hasOwnProperty(e)&&(!i.isIdentifierStart(this.code)||this.index+e.lengthn.right_a&&e.right_a?r>e.prec:r<=e.prec;for(;s.length>2&&h(s[s.length-2]);)a=s.pop(),t=s.pop().value,o=s.pop(),e={type:i.BINARY_EXP,operator:t,left:o,right:a},s.push(e);e=this.gobbleToken(),e||this.throwError("Expected expression after "+l),s.push(n,e)}for(h=s.length-1,e=s[h];h>1;)e={type:i.BINARY_EXP,operator:s[h-1].value,left:s[h-2],right:e},h-=2;return e}gobbleToken(){let e,t,r,s;if(this.gobbleSpaces(),s=this.searchHook("gobble-token"),s)return this.runHook("after-token",s);if(e=this.code,i.isDecimalDigit(e)||e===i.PERIOD_CODE)return this.gobbleNumericLiteral();if(e===i.SQUOTE_CODE||e===i.DQUOTE_CODE)s=this.gobbleStringLiteral();else if(e===i.OBRACK_CODE)s=this.gobbleArray();else{for(t=this.expr.substr(this.index,i.max_unop_len),r=t.length;r>0;){if(i.unary_ops.hasOwnProperty(t)&&(!i.isIdentifierStart(this.code)||this.index+t.length=t.length&&this.throwError("Unexpected token "+String.fromCharCode(e));break}if(n===i.COMMA_CODE){if(this.index++,s++,s!==t.length)if(e===i.CPAREN_CODE)this.throwError("Unexpected token ,");else if(e===i.CBRACK_CODE)for(let e=t.length;e{if("object"!=typeof e||!e.name||!e.init)throw new Error("Invalid JSEP plugin format");this.registered[e.name]||(e.init(this.jsep),this.registered[e.name]=e)})}}(i),COMPOUND:"Compound",SEQUENCE_EXP:"SequenceExpression",IDENTIFIER:"Identifier",MEMBER_EXP:"MemberExpression",LITERAL:"Literal",THIS_EXP:"ThisExpression",CALL_EXP:"CallExpression",UNARY_EXP:"UnaryExpression",BINARY_EXP:"BinaryExpression",ARRAY_EXP:"ArrayExpression",TAB_CODE:9,LF_CODE:10,CR_CODE:13,SPACE_CODE:32,PERIOD_CODE:46,COMMA_CODE:44,SQUOTE_CODE:39,DQUOTE_CODE:34,OPAREN_CODE:40,CPAREN_CODE:41,OBRACK_CODE:91,CBRACK_CODE:93,QUMARK_CODE:63,SEMCOL_CODE:59,COLON_CODE:58,unary_ops:{"-":1,"!":1,"~":1,"+":1},binary_ops:{"||":1,"??":1,"&&":2,"|":3,"^":4,"&":5,"==":6,"!=":6,"===":6,"!==":6,"<":7,">":7,"<=":7,">=":7,"<<":8,">>":8,">>>":8,"+":9,"-":9,"*":10,"/":10,"%":10,"**":11},right_associative:new Set(["**"]),additional_identifier_chars:new Set(["$","_"]),literals:{true:!0,false:!1,null:null},this_str:"this"}),i.max_unop_len=i.getMaxKeyLen(i.unary_ops),i.max_binop_len=i.getMaxKeyLen(i.binary_ops);const n=e=>new i(e).parse(),o=Object.getOwnPropertyNames(class{});Object.getOwnPropertyNames(i).filter(e=>!o.includes(e)&&void 0===n[e]).forEach(e=>{n[e]=i[e]}),n.Jsep=i;var a={name:"ternary",init(e){e.hooks.add("after-expression",function(t){if(t.node&&this.code===e.QUMARK_CODE){this.index++;const r=t.node,i=this.gobbleExpression();if(i||this.throwError("Expected expression"),this.gobbleSpaces(),this.code===e.COLON_CODE){this.index++;const s=this.gobbleExpression();if(s||this.throwError("Expected expression"),t.node={type:"ConditionalExpression",test:r,consequent:i,alternate:s},r.operator&&e.binary_ops[r.operator]<=.9){let i=r;for(;i.right.operator&&e.binary_ops[i.right.operator]<=.9;)i=i.right;t.node.test=i.right,i.right=t.node,t.node=r}}else this.throwError("Expected :")}})}};n.plugins.register(a);var h={name:"regex",init(e){e.hooks.add("gobble-token",function(t){if(47===this.code){const r=++this.index;let i=!1;for(;this.index=97&&e<=122||e>=65&&e<=90||e>=48&&e<=57))break;n+=this.char}try{s=new RegExp(i,n)}catch(e){this.throwError(e.message)}return t.node={type:e.LITERAL,value:s,raw:this.expr.slice(r-1,this.index)},t.node=this.gobbleTokenProperty(t.node),t.node}this.code===e.OBRACK_CODE?i=!0:i&&this.code===e.CBRACK_CODE&&(i=!1),this.index+=92===this.code?2:1}this.throwError("Unclosed Regex")}})}};const l={name:"assignment",assignmentOperators:new Set(["=","*=","**=","/=","%=","+=","-=","<<=",">>=",">>>=","&=","^=","|=","||=","&&=","??="]),updateOperators:[43,45],assignmentPrecedence:.9,init(e){const t=[e.IDENTIFIER,e.MEMBER_EXP];function r(e){l.assignmentOperators.has(e.operator)?(e.type="AssignmentExpression",r(e.left),r(e.right)):e.operator||Object.values(e).forEach(e=>{e&&"object"==typeof e&&r(e)})}l.assignmentOperators.forEach(t=>e.addBinaryOp(t,l.assignmentPrecedence,!0)),e.hooks.add("gobble-token",function(e){const r=this.code;l.updateOperators.some(e=>e===r&&e===this.expr.charCodeAt(this.index+1))&&(this.index+=2,e.node={type:"UpdateExpression",operator:43===r?"++":"--",argument:this.gobbleTokenProperty(this.gobbleIdentifier()),prefix:!0},e.node.argument&&t.includes(e.node.argument.type)||this.throwError(`Unexpected ${e.node.operator}`))}),e.hooks.add("after-token",function(e){if(e.node){const r=this.code;l.updateOperators.some(e=>e===r&&e===this.expr.charCodeAt(this.index+1))&&(t.includes(e.node.type)||this.throwError(`Unexpected ${e.node.operator}`),this.index+=2,e.node={type:"UpdateExpression",operator:43===r?"++":"--",argument:e.node,prefix:!1})}}),e.hooks.add("after-expression",function(e){e.node&&r(e.node)})}};n.plugins.register(h,l),n.addUnaryOp("typeof"),n.addLiteral("null",null),n.addLiteral("undefined",void 0);const c=new Set(["constructor","__proto__","__defineGetter__","__defineSetter__"]),p={evalAst(e,t){switch(e.type){case"BinaryExpression":case"LogicalExpression":return p.evalBinaryExpression(e,t);case"Compound":return p.evalCompound(e,t);case"ConditionalExpression":return p.evalConditionalExpression(e,t);case"Identifier":return p.evalIdentifier(e,t);case"Literal":return p.evalLiteral(e,t);case"MemberExpression":return p.evalMemberExpression(e,t);case"UnaryExpression":return p.evalUnaryExpression(e,t);case"ArrayExpression":return p.evalArrayExpression(e,t);case"CallExpression":return p.evalCallExpression(e,t);case"AssignmentExpression":return p.evalAssignmentExpression(e,t);default:throw SyntaxError("Unexpected expression",e)}},evalBinaryExpression:(e,t)=>({"||":(e,t)=>e||t(),"&&":(e,t)=>e&&t(),"|":(e,t)=>e|t(),"^":(e,t)=>e^t(),"&":(e,t)=>e&t(),"==":(e,t)=>e==t(),"!=":(e,t)=>e!=t(),"===":(e,t)=>e===t(),"!==":(e,t)=>e!==t(),"<":(e,t)=>e":(e,t)=>e>t(),"<=":(e,t)=>e<=t(),">=":(e,t)=>e>=t(),"<<":(e,t)=>e<>":(e,t)=>e>>t(),">>>":(e,t)=>e>>>t(),"+":(e,t)=>e+t(),"-":(e,t)=>e-t(),"*":(e,t)=>e*t(),"/":(e,t)=>e/t(),"%":(e,t)=>e%t()}[e.operator](p.evalAst(e.left,t),()=>p.evalAst(e.right,t))),evalCompound(e,t){let r;for(let i=0;ip.evalAst(e.test,t)?p.evalAst(e.consequent,t):p.evalAst(e.alternate,t),evalIdentifier(e,t){if(Object.hasOwn(t,e.name))return t[e.name];throw ReferenceError(`${e.name} is not defined`)},evalLiteral:e=>e.value,evalMemberExpression(e,t){const r=String(e.computed?p.evalAst(e.property):e.property.name),i=p.evalAst(e.object,t);if(null==i)throw TypeError(`Cannot read properties of ${i} (reading '${r}')`);if(!Object.hasOwn(i,r)&&c.has(r))throw TypeError(`Cannot read properties of ${i} (reading '${r}')`);const s=i[r];return"function"==typeof s?s.bind(i):s},evalUnaryExpression:(e,t)=>({"-":e=>-p.evalAst(e,t),"!":e=>!p.evalAst(e,t),"~":e=>~p.evalAst(e,t),"+":e=>+p.evalAst(e,t),typeof:e=>typeof p.evalAst(e,t)}[e.operator](e.argument)),evalArrayExpression:(e,t)=>e.elements.map(e=>p.evalAst(e,t)),evalCallExpression(e,t){const r=e.arguments.map(e=>p.evalAst(e,t));return p.evalAst(e.callee,t)(...r)},evalAssignmentExpression(e,t){if("Identifier"!==e.left.type)throw SyntaxError("Invalid left-hand side in assignment");const r=e.left.name,i=p.evalAst(e.right,t);return t[r]=i,t[r]}};function u(e,t){return(e=e.slice()).push(t),e}function d(e,t){return(t=t.slice()).unshift(e),t}class f extends Error{constructor(e){super('JSONPath should not be called with "new" (it prevents return of (unwrapped) scalar values)'),this.avoidNew=!0,this.value=e,this.name="NewError"}}function b(e,t,r,i,s){if(!(this instanceof b))try{return new b(e,t,r,i,s)}catch(e){if(!e.avoidNew)throw e;return e.value}"string"==typeof e&&(s=i,i=r,r=t,t=e,e=null);const n=e&&"object"==typeof e;if(e=e||{},this.json=e.json||r,this.path=e.path||t,this.resultType=e.resultType||"value",this.flatten=e.flatten||!1,this.wrap=!Object.hasOwn(e,"wrap")||e.wrap,this.sandbox=e.sandbox||{},this.eval=void 0===e.eval?"safe":e.eval,this.ignoreEvalErrors=void 0!==e.ignoreEvalErrors&&e.ignoreEvalErrors,this.parent=e.parent||null,this.parentProperty=e.parentProperty||null,this.callback=e.callback||i||null,this.otherTypeCallback=e.otherTypeCallback||s||function(){throw new TypeError("You must supply an otherTypeCallback callback option with the @other() operator.")},!1!==e.autostart){const i={path:n?e.path:t};n?"json"in e&&(i.json=e.json):i.json=r;const s=this.evaluate(i);if(!s||"object"!=typeof s)throw new f(s);return s}}b.prototype.evaluate=function(e,t,r,i){let s=this.parent,n=this.parentProperty,{flatten:o,wrap:a}=this;if(this.currResultType=this.resultType,this.currEval=this.eval,this.currSandbox=this.sandbox,r=r||this.callback,this.currOtherTypeCallback=i||this.otherTypeCallback,t=t||this.json,(e=e||this.path)&&"object"==typeof e&&!Array.isArray(e)){if(!e.path&&""!==e.path)throw new TypeError('You must supply a "path" property when providing an object argument to JSONPath.evaluate().');if(!Object.hasOwn(e,"json"))throw new TypeError('You must supply a "json" property when providing an object argument to JSONPath.evaluate().');({json:t}=e),o=Object.hasOwn(e,"flatten")?e.flatten:o,this.currResultType=Object.hasOwn(e,"resultType")?e.resultType:this.currResultType,this.currSandbox=Object.hasOwn(e,"sandbox")?e.sandbox:this.currSandbox,a=Object.hasOwn(e,"wrap")?e.wrap:a,this.currEval=Object.hasOwn(e,"eval")?e.eval:this.currEval,r=Object.hasOwn(e,"callback")?e.callback:r,this.currOtherTypeCallback=Object.hasOwn(e,"otherTypeCallback")?e.otherTypeCallback:this.currOtherTypeCallback,s=Object.hasOwn(e,"parent")?e.parent:s,n=Object.hasOwn(e,"parentProperty")?e.parentProperty:n,e=e.path}if(s=s||null,n=n||null,Array.isArray(e)&&(e=b.toPathString(e)),!e&&""!==e||!t)return;const h=b.toPathArray(e);"$"===h[0]&&h.length>1&&h.shift(),this._hasParentSelector=null;const l=this._trace(h,t,["$"],s,n,r).filter(function(e){return e&&!e.isParentSelector});return l.length?a||1!==l.length||l[0].hasArrExpr?l.reduce((e,t)=>{const r=this._getPreferredOutput(t);return o&&Array.isArray(r)?e=e.concat(r):e.push(r),e},[]):this._getPreferredOutput(l[0]):a?[]:void 0},b.prototype._getPreferredOutput=function(e){const t=this.currResultType;switch(t){case"all":{const t=Array.isArray(e.path)?e.path:b.toPathArray(e.path);return e.pointer=b.toPointer(t),e.path="string"==typeof e.path?e.path:b.toPathString(e.path),e}case"value":case"parent":case"parentProperty":return e[t];case"path":return b.toPathString(e[t]);case"pointer":return b.toPointer(e.path);default:throw new TypeError("Unknown result type")}},b.prototype._handleCallback=function(e,t,r){if(t){const i=this._getPreferredOutput(e);e.path="string"==typeof e.path?e.path:b.toPathString(e.path),t(i,r,e)}},b.prototype._trace=function(e,t,r,i,s,n,o,a){let h;if(!e.length)return h={path:r,value:t,parent:i,parentProperty:s,hasArrExpr:o},this._handleCallback(h,n,"value"),h;const l=e[0],c=e.slice(1),p=[];function f(e){Array.isArray(e)?e.forEach(e=>{p.push(e)}):p.push(e)}if(("string"!=typeof l||a)&&t&&Object.hasOwn(t,l))f(this._trace(c,t[l],u(r,l),t,l,n,o));else if("*"===l)this._walk(t,e=>{f(this._trace(c,t[e],u(r,e),t,e,n,!0,!0))});else if(".."===l)f(this._trace(c,t,r,i,s,n,o)),this._walk(t,i=>{"object"==typeof t[i]&&f(this._trace(e.slice(),t[i],u(r,i),t,i,n,!0))});else{if("^"===l)return this._hasParentSelector=!0,{path:r.slice(0,-1),expr:c,isParentSelector:!0};if("~"===l)return h={path:u(r,l),value:s,parent:i,parentProperty:null},this._handleCallback(h,n,"property"),h;if("$"===l)f(this._trace(c,t,r,null,null,n,o));else if(/^(-?\d*):(-?\d*):?(\d*)$/u.test(l))f(this._slice(l,c,t,r,i,s,n));else if(0===l.indexOf("?(")){if(!1===this.currEval)throw new Error("Eval [?(expr)] prevented in JSONPath expression.");const e=l.replace(/^\?\((.*?)\)$/u,"$1"),o=/@.?([^?]*)[['](\??\(.*?\))(?!.\)\])[\]']/gu.exec(e);o?this._walk(t,e=>{const a=[o[2]],h=o[1]?t[e][o[1]]:t[e];this._trace(a,h,r,i,s,n,!0).length>0&&f(this._trace(c,t[e],u(r,e),t,e,n,!0))}):this._walk(t,o=>{this._eval(e,t[o],o,r,i,s)&&f(this._trace(c,t[o],u(r,o),t,o,n,!0))})}else if("("===l[0]){if(!1===this.currEval)throw new Error("Eval [(expr)] prevented in JSONPath expression.");f(this._trace(d(this._eval(l,t,r.at(-1),r.slice(0,-1),i,s),c),t,r,i,s,n,o))}else if("@"===l[0]){let e=!1;const o=l.slice(1,-2);switch(o){case"scalar":t&&["object","function"].includes(typeof t)||(e=!0);break;case"boolean":case"string":case"undefined":case"function":typeof t===o&&(e=!0);break;case"integer":!Number.isFinite(t)||t%1||(e=!0);break;case"number":Number.isFinite(t)&&(e=!0);break;case"nonFinite":"number"!=typeof t||Number.isFinite(t)||(e=!0);break;case"object":t&&typeof t===o&&(e=!0);break;case"array":Array.isArray(t)&&(e=!0);break;case"other":e=this.currOtherTypeCallback(t,r,i,s);break;case"null":null===t&&(e=!0);break;default:throw new TypeError("Unknown value type "+o)}if(e)return h={path:r,value:t,parent:i,parentProperty:s},this._handleCallback(h,n,"value"),h}else if("`"===l[0]&&t&&Object.hasOwn(t,l.slice(1))){const e=l.slice(1);f(this._trace(c,t[e],u(r,e),t,e,n,o,!0))}else if(l.includes(",")){const e=l.split(",");for(const o of e)f(this._trace(d(o,c),t,r,i,s,n,!0))}else!a&&t&&Object.hasOwn(t,l)&&f(this._trace(c,t[l],u(r,l),t,l,n,o,!0))}if(this._hasParentSelector)for(let e=0;e{t(e)})},b.prototype._slice=function(e,t,r,i,s,n,o){if(!Array.isArray(r))return;const a=r.length,h=e.split(":"),l=h[2]&&Number.parseInt(h[2])||1;let c=h[0]&&Number.parseInt(h[0])||0,p=h[1]&&Number.parseInt(h[1])||a;c=c<0?Math.max(0,c+a):Math.min(a,c),p=p<0?Math.max(0,p+a):Math.min(a,p);const u=[];for(let e=c;e{u.push(e)});return u},b.prototype._eval=function(e,t,r,i,s,n){this.currSandbox._$_parentProperty=n,this.currSandbox._$_parent=s,this.currSandbox._$_property=r,this.currSandbox._$_root=this.json,this.currSandbox._$_v=t;const o=e.includes("@path");o&&(this.currSandbox._$_path=b.toPathString(i.concat([r])));const a=this.currEval+"Script:"+e;if(!b.cache[a]){let t=e.replaceAll("@parentProperty","_$_parentProperty").replaceAll("@parent","_$_parent").replaceAll("@property","_$_property").replaceAll("@root","_$_root").replaceAll(/@([.\s)[])/gu,"_$_v$1");if(o&&(t=t.replaceAll("@path","_$_path")),"safe"===this.currEval||!0===this.currEval||void 0===this.currEval)b.cache[a]=new this.safeVm.Script(t);else if("native"===this.currEval)b.cache[a]=new this.vm.Script(t);else if("function"==typeof this.currEval&&this.currEval.prototype&&Object.hasOwn(this.currEval.prototype,"runInNewContext")){const e=this.currEval;b.cache[a]=new e(t)}else{if("function"!=typeof this.currEval)throw new TypeError(`Unknown "eval" property "${this.currEval}"`);b.cache[a]={runInNewContext:e=>this.currEval(t,e)}}}try{return b.cache[a].runInNewContext(this.currSandbox)}catch(t){if(this.ignoreEvalErrors)return!1;throw new Error("jsonPath: "+t.message+": "+e)}},b.cache={},b.toPathString=function(e){const t=e,r=t.length;let i="$";for(let e=1;e{"use strict";var e={};e.d=(t,r)=>{for(var i in r)e.o(r,i)&&!e.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:r[i]})},e.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),e.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var t={};e.r(t),e.d(t,{JSONPath:()=>u});let r=require("vm");class i{static get version(){return"1.4.0"}static toString(){return"JavaScript Expression Parser (JSEP) v"+i.version}static addUnaryOp(e){return i.max_unop_len=Math.max(e.length,i.max_unop_len),i.unary_ops[e]=1,i}static addBinaryOp(e,t,r){return i.max_binop_len=Math.max(e.length,i.max_binop_len),i.binary_ops[e]=t,r?i.right_associative.add(e):i.right_associative.delete(e),i}static addIdentifierChar(e){return i.additional_identifier_chars.add(e),i}static addLiteral(e,t){return i.literals[e]=t,i}static removeUnaryOp(e){return delete i.unary_ops[e],e.length===i.max_unop_len&&(i.max_unop_len=i.getMaxKeyLen(i.unary_ops)),i}static removeAllUnaryOps(){return i.unary_ops={},i.max_unop_len=0,i}static removeIdentifierChar(e){return i.additional_identifier_chars.delete(e),i}static removeBinaryOp(e){return delete i.binary_ops[e],e.length===i.max_binop_len&&(i.max_binop_len=i.getMaxKeyLen(i.binary_ops)),i.right_associative.delete(e),i}static removeAllBinaryOps(){return i.binary_ops={},i.max_binop_len=0,i}static removeLiteral(e){return delete i.literals[e],i}static removeAllLiterals(){return i.literals={},i}get char(){return this.expr.charAt(this.index)}get code(){return this.expr.charCodeAt(this.index)}constructor(e){this.expr=e,this.index=0}static parse(e){return new i(e).parse()}static getMaxKeyLen(e){return Math.max(0,...Object.keys(e).map(e=>e.length))}static isDecimalDigit(e){return e>=48&&e<=57}static binaryPrecedence(e){return i.binary_ops[e]||0}static isIdentifierStart(e){return e>=65&&e<=90||e>=97&&e<=122||e>=128&&!i.binary_ops[String.fromCharCode(e)]||i.additional_identifier_chars.has(String.fromCharCode(e))}static isIdentifierPart(e){return i.isIdentifierStart(e)||i.isDecimalDigit(e)}throwError(e){let t=Error(e+" at character "+this.index);throw t.index=this.index,t.description=e,t}runHook(e,t){if(i.hooks[e]){let r={context:this,node:t};return i.hooks.run(e,r),r.node}return t}searchHook(e){if(i.hooks[e]){let t={context:this};return i.hooks[e].find(function(e){return e.call(t.context,t),t.node}),t.node}}gobbleSpaces(){let e=this.code;for(;e===i.SPACE_CODE||e===i.TAB_CODE||e===i.LF_CODE||e===i.CR_CODE;)e=this.expr.charCodeAt(++this.index);this.runHook("gobble-spaces")}parse(){this.runHook("before-all");let e=this.gobbleExpressions(),t=1===e.length?e[0]:{type:i.COMPOUND,body:e};return this.runHook("after-all",t)}gobbleExpressions(e){let t=[],r,s;for(;this.index0;){if(i.binary_ops.hasOwnProperty(e)&&(!i.isIdentifierStart(this.code)||this.index+e.lengthn.right_a&&e.right_a?r>e.prec:r<=e.prec;for(;s.length>2&&l(s[s.length-2]);)o=s.pop(),t=s.pop().value,a=s.pop(),e={type:i.BINARY_EXP,operator:t,left:a,right:o},s.push(e);(e=this.gobbleToken())||this.throwError("Expected expression after "+h),s.push(n,e)}for(l=s.length-1,e=s[l];l>1;)e={type:i.BINARY_EXP,operator:s[l-1].value,left:s[l-2],right:e},l-=2;return e}gobbleToken(){let e,t,r,s;if(this.gobbleSpaces(),s=this.searchHook("gobble-token"))return this.runHook("after-token",s);if(e=this.code,i.isDecimalDigit(e)||e===i.PERIOD_CODE)return this.gobbleNumericLiteral();if(e===i.SQUOTE_CODE||e===i.DQUOTE_CODE)s=this.gobbleStringLiteral();else if(e===i.OBRACK_CODE)s=this.gobbleArray();else{for(r=(t=this.expr.substr(this.index,i.max_unop_len)).length;r>0;){if(i.unary_ops.hasOwnProperty(t)&&(!i.isIdentifierStart(this.code)||this.index+t.length=t.length&&this.throwError("Unexpected token "+String.fromCharCode(e));break}if(n===i.COMMA_CODE){if(this.index++,++s!==t.length){if(e===i.CPAREN_CODE)this.throwError("Unexpected token ,");else if(e===i.CBRACK_CODE)for(let e=t.length;e{if("object"!=typeof e||!e.name||!e.init)throw Error("Invalid JSEP plugin format");this.registered[e.name]||(e.init(this.jsep),this.registered[e.name]=e)})}}(i),COMPOUND:"Compound",SEQUENCE_EXP:"SequenceExpression",IDENTIFIER:"Identifier",MEMBER_EXP:"MemberExpression",LITERAL:"Literal",THIS_EXP:"ThisExpression",CALL_EXP:"CallExpression",UNARY_EXP:"UnaryExpression",BINARY_EXP:"BinaryExpression",ARRAY_EXP:"ArrayExpression",TAB_CODE:9,LF_CODE:10,CR_CODE:13,SPACE_CODE:32,PERIOD_CODE:46,COMMA_CODE:44,SQUOTE_CODE:39,DQUOTE_CODE:34,OPAREN_CODE:40,CPAREN_CODE:41,OBRACK_CODE:91,CBRACK_CODE:93,QUMARK_CODE:63,SEMCOL_CODE:59,COLON_CODE:58,unary_ops:{"-":1,"!":1,"~":1,"+":1},binary_ops:{"||":1,"??":1,"&&":2,"|":3,"^":4,"&":5,"==":6,"!=":6,"===":6,"!==":6,"<":7,">":7,"<=":7,">=":7,"<<":8,">>":8,">>>":8,"+":9,"-":9,"*":10,"/":10,"%":10,"**":11},right_associative:new Set(["**"]),additional_identifier_chars:new Set(["$","_"]),literals:{true:!0,false:!1,null:null},this_str:"this"}),i.max_unop_len=i.getMaxKeyLen(i.unary_ops),i.max_binop_len=i.getMaxKeyLen(i.binary_ops);let s=e=>new i(e).parse(),n=Object.getOwnPropertyNames(class{});Object.getOwnPropertyNames(i).filter(e=>!n.includes(e)&&void 0===s[e]).forEach(e=>{s[e]=i[e]}),s.Jsep=i,s.plugins.register({name:"ternary",init(e){e.hooks.add("after-expression",function(t){if(t.node&&this.code===e.QUMARK_CODE){this.index++;let r=t.node,i=this.gobbleExpression();if(i||this.throwError("Expected expression"),this.gobbleSpaces(),this.code===e.COLON_CODE){this.index++;let s=this.gobbleExpression();if(s||this.throwError("Expected expression"),t.node={type:"ConditionalExpression",test:r,consequent:i,alternate:s},r.operator&&e.binary_ops[r.operator]<=.9){let i=r;for(;i.right.operator&&e.binary_ops[i.right.operator]<=.9;)i=i.right;t.node.test=i.right,i.right=t.node,t.node=r}}else this.throwError("Expected :")}})}});let a={name:"assignment",assignmentOperators:new Set(["=","*=","**=","/=","%=","+=","-=","<<=",">>=",">>>=","&=","^=","|=","||=","&&=","??="]),updateOperators:[43,45],assignmentPrecedence:.9,init(e){let t=[e.IDENTIFIER,e.MEMBER_EXP];a.assignmentOperators.forEach(t=>e.addBinaryOp(t,a.assignmentPrecedence,!0)),e.hooks.add("gobble-token",function(e){let r=this.code;a.updateOperators.some(e=>e===r&&e===this.expr.charCodeAt(this.index+1))&&(this.index+=2,e.node={type:"UpdateExpression",operator:43===r?"++":"--",argument:this.gobbleTokenProperty(this.gobbleIdentifier()),prefix:!0},e.node.argument&&t.includes(e.node.argument.type)||this.throwError(`Unexpected ${e.node.operator}`))}),e.hooks.add("after-token",function(e){if(e.node){let r=this.code;a.updateOperators.some(e=>e===r&&e===this.expr.charCodeAt(this.index+1))&&(t.includes(e.node.type)||this.throwError(`Unexpected ${e.node.operator}`),this.index+=2,e.node={type:"UpdateExpression",operator:43===r?"++":"--",argument:e.node,prefix:!1})}}),e.hooks.add("after-expression",function(e){e.node&&function e(t){a.assignmentOperators.has(t.operator)?(t.type="AssignmentExpression",e(t.left),e(t.right)):t.operator||Object.values(t).forEach(t=>{t&&"object"==typeof t&&e(t)})}(e.node)})}};s.plugins.register({name:"regex",init(e){e.hooks.add("gobble-token",function(t){if(47===this.code){let r=++this.index,i=!1;for(;this.index=97&&e<=122||e>=65&&e<=90||e>=48&&e<=57)n+=this.char;else break}try{i=new RegExp(s,n)}catch(e){this.throwError(e.message)}return t.node={type:e.LITERAL,value:i,raw:this.expr.slice(r-1,this.index)},t.node=this.gobbleTokenProperty(t.node),t.node}this.code===e.OBRACK_CODE?i=!0:i&&this.code===e.CBRACK_CODE&&(i=!1),this.index+=92===this.code?2:1}this.throwError("Unclosed Regex")}})}},a),s.addUnaryOp("typeof"),s.addLiteral("null",null),s.addLiteral("undefined",void 0);let o=new Set(["constructor","__proto__","__defineGetter__","__defineSetter__"]),l={evalAst(e,t){switch(e.type){case"BinaryExpression":case"LogicalExpression":return l.evalBinaryExpression(e,t);case"Compound":return l.evalCompound(e,t);case"ConditionalExpression":return l.evalConditionalExpression(e,t);case"Identifier":return l.evalIdentifier(e,t);case"Literal":return l.evalLiteral(e,t);case"MemberExpression":return l.evalMemberExpression(e,t);case"UnaryExpression":return l.evalUnaryExpression(e,t);case"ArrayExpression":return l.evalArrayExpression(e,t);case"CallExpression":return l.evalCallExpression(e,t);case"AssignmentExpression":return l.evalAssignmentExpression(e,t);default:throw SyntaxError("Unexpected expression",e)}},evalBinaryExpression:(e,t)=>({"||":(e,t)=>e||t(),"&&":(e,t)=>e&&t(),"|":(e,t)=>e|t(),"^":(e,t)=>e^t(),"&":(e,t)=>e&t(),"==":(e,t)=>e==t(),"!=":(e,t)=>e!=t(),"===":(e,t)=>e===t(),"!==":(e,t)=>e!==t(),"<":(e,t)=>e":(e,t)=>e>t(),"<=":(e,t)=>e<=t(),">=":(e,t)=>e>=t(),"<<":(e,t)=>e<>":(e,t)=>e>>t(),">>>":(e,t)=>e>>>t(),"+":(e,t)=>e+t(),"-":(e,t)=>e-t(),"*":(e,t)=>e*t(),"/":(e,t)=>e/t(),"%":(e,t)=>e%t()})[e.operator](l.evalAst(e.left,t),()=>l.evalAst(e.right,t)),evalCompound(e,t){let r;for(let i=0;il.evalAst(e.test,t)?l.evalAst(e.consequent,t):l.evalAst(e.alternate,t),evalIdentifier(e,t){if(Object.hasOwn(t,e.name))return t[e.name];throw ReferenceError(`${e.name} is not defined`)},evalLiteral:e=>e.value,evalMemberExpression(e,t){let r=String(e.computed?l.evalAst(e.property):e.property.name),i=l.evalAst(e.object,t);if(null==i||!Object.hasOwn(i,r)&&o.has(r))throw TypeError(`Cannot read properties of ${i} (reading '${r}')`);let s=i[r];return"function"==typeof s?s.bind(i):s},evalUnaryExpression:(e,t)=>({"-":e=>-l.evalAst(e,t),"!":e=>!l.evalAst(e,t),"~":e=>~l.evalAst(e,t),"+":e=>+l.evalAst(e,t),typeof:e=>typeof l.evalAst(e,t)})[e.operator](e.argument),evalArrayExpression:(e,t)=>e.elements.map(e=>l.evalAst(e,t)),evalCallExpression(e,t){let r=e.arguments.map(e=>l.evalAst(e,t));return l.evalAst(e.callee,t)(...r)},evalAssignmentExpression(e,t){if("Identifier"!==e.left.type)throw SyntaxError("Invalid left-hand side in assignment");let r=e.left.name,i=l.evalAst(e.right,t);return t[r]=i,t[r]}};function h(e,t){return(e=e.slice()).push(t),e}function p(e,t){return(t=t.slice()).unshift(e),t}class c extends Error{constructor(e){super('JSONPath should not be called with "new" (it prevents return of (unwrapped) scalar values)'),this.avoidNew=!0,this.value=e,this.name="NewError"}}function u(e,t,r,i,s){if(!(this instanceof u))try{return new u(e,t,r,i,s)}catch(e){if(!e.avoidNew)throw e;return e.value}"string"==typeof e&&(s=i,i=r,r=t,t=e,e=null);let n=e&&"object"==typeof e;if(e=e||{},this.json=e.json||r,this.path=e.path||t,this.resultType=e.resultType||"value",this.flatten=e.flatten||!1,this.wrap=!Object.hasOwn(e,"wrap")||e.wrap,this.sandbox=e.sandbox||{},this.eval=void 0===e.eval?"safe":e.eval,this.ignoreEvalErrors=void 0!==e.ignoreEvalErrors&&e.ignoreEvalErrors,this.parent=e.parent||null,this.parentProperty=e.parentProperty||null,this.callback=e.callback||i||null,this.otherTypeCallback=e.otherTypeCallback||s||function(){throw TypeError("You must supply an otherTypeCallback callback option with the @other() operator.")},!1!==e.autostart){let i={path:n?e.path:t};n?"json"in e&&(i.json=e.json):i.json=r;let s=this.evaluate(i);if(!s||"object"!=typeof s)throw new c(s);return s}}u.prototype.evaluate=function(e,t,r,i){let s=this.parent,n=this.parentProperty,{flatten:a,wrap:o}=this;if(this.currResultType=this.resultType,this.currEval=this.eval,this.currSandbox=this.sandbox,r=r||this.callback,this.currOtherTypeCallback=i||this.otherTypeCallback,t=t||this.json,(e=e||this.path)&&"object"==typeof e&&!Array.isArray(e)){if(!e.path&&""!==e.path)throw TypeError('You must supply a "path" property when providing an object argument to JSONPath.evaluate().');if(!Object.hasOwn(e,"json"))throw TypeError('You must supply a "json" property when providing an object argument to JSONPath.evaluate().');({json:t}=e),a=Object.hasOwn(e,"flatten")?e.flatten:a,this.currResultType=Object.hasOwn(e,"resultType")?e.resultType:this.currResultType,this.currSandbox=Object.hasOwn(e,"sandbox")?e.sandbox:this.currSandbox,o=Object.hasOwn(e,"wrap")?e.wrap:o,this.currEval=Object.hasOwn(e,"eval")?e.eval:this.currEval,r=Object.hasOwn(e,"callback")?e.callback:r,this.currOtherTypeCallback=Object.hasOwn(e,"otherTypeCallback")?e.otherTypeCallback:this.currOtherTypeCallback,s=Object.hasOwn(e,"parent")?e.parent:s,n=Object.hasOwn(e,"parentProperty")?e.parentProperty:n,e=e.path}if(s=s||null,n=n||null,Array.isArray(e)&&(e=u.toPathString(e)),!e&&""!==e||!t)return;let l=u.toPathArray(e);"$"===l[0]&&l.length>1&&l.shift(),this._hasParentSelector=null;let h=this._trace(l,t,["$"],s,n,r).filter(function(e){return e&&!e.isParentSelector});return h.length?o||1!==h.length||h[0].hasArrExpr?h.reduce((e,t)=>{let r=this._getPreferredOutput(t);return a&&Array.isArray(r)?e=e.concat(r):e.push(r),e},[]):this._getPreferredOutput(h[0]):o?[]:void 0},u.prototype._getPreferredOutput=function(e){let t=this.currResultType;switch(t){case"all":{let t=Array.isArray(e.path)?e.path:u.toPathArray(e.path);return e.pointer=u.toPointer(t),e.path="string"==typeof e.path?e.path:u.toPathString(e.path),e}case"value":case"parent":case"parentProperty":return e[t];case"path":return u.toPathString(e[t]);case"pointer":return u.toPointer(e.path);default:throw TypeError("Unknown result type")}},u.prototype._handleCallback=function(e,t,r){if(t){let i=this._getPreferredOutput(e);e.path="string"==typeof e.path?e.path:u.toPathString(e.path),t(i,r,e)}},u.prototype._trace=function(e,t,r,i,s,n,a,o){let l;if(!e.length)return l={path:r,value:t,parent:i,parentProperty:s,hasArrExpr:a},this._handleCallback(l,n,"value"),l;let c=e[0],u=e.slice(1),d=[];function b(e){Array.isArray(e)?e.forEach(e=>{d.push(e)}):d.push(e)}if(("string"!=typeof c||o)&&t&&Object.hasOwn(t,c))b(this._trace(u,t[c],h(r,c),t,c,n,a));else if("*"===c)this._walk(t,e=>{b(this._trace(u,t[e],h(r,e),t,e,n,!0,!0))});else if(".."===c)b(this._trace(u,t,r,i,s,n,a)),this._walk(t,i=>{"object"==typeof t[i]&&b(this._trace(e.slice(),t[i],h(r,i),t,i,n,!0))});else if("^"===c)return this._hasParentSelector=!0,{path:r.slice(0,-1),expr:u,isParentSelector:!0};else if("~"===c)return l={path:h(r,c),value:s,parent:i,parentProperty:null},this._handleCallback(l,n,"property"),l;else if("$"===c)b(this._trace(u,t,r,null,null,n,a));else if(/^(-?\d*):(-?\d*):?(\d*)$/u.test(c))b(this._slice(c,u,t,r,i,s,n));else if(0===c.indexOf("?(")){if(!1===this.currEval)throw Error("Eval [?(expr)] prevented in JSONPath expression.");let e=c.replace(/^\?\((.*?)\)$/u,"$1"),a=/@.?([^?]*)[['](\??\(.*?\))(?!.\)\])[\]']/gu.exec(e);a?this._walk(t,e=>{let o=[a[2]],l=a[1]?t[e][a[1]]:t[e];this._trace(o,l,r,i,s,n,!0).length>0&&b(this._trace(u,t[e],h(r,e),t,e,n,!0))}):this._walk(t,a=>{this._eval(e,t[a],a,r,i,s)&&b(this._trace(u,t[a],h(r,a),t,a,n,!0))})}else if("("===c[0]){if(!1===this.currEval)throw Error("Eval [(expr)] prevented in JSONPath expression.");b(this._trace(p(this._eval(c,t,r.at(-1),r.slice(0,-1),i,s),u),t,r,i,s,n,a))}else if("@"===c[0]){let e=!1,a=c.slice(1,-2);switch(a){case"scalar":t&&["object","function"].includes(typeof t)||(e=!0);break;case"boolean":case"string":case"undefined":case"function":typeof t===a&&(e=!0);break;case"integer":Number.isFinite(t)&&!(t%1)&&(e=!0);break;case"number":Number.isFinite(t)&&(e=!0);break;case"nonFinite":"number"!=typeof t||Number.isFinite(t)||(e=!0);break;case"object":t&&typeof t===a&&(e=!0);break;case"array":Array.isArray(t)&&(e=!0);break;case"other":e=this.currOtherTypeCallback(t,r,i,s);break;case"null":null===t&&(e=!0);break;default:throw TypeError("Unknown value type "+a)}if(e)return l={path:r,value:t,parent:i,parentProperty:s},this._handleCallback(l,n,"value"),l}else if("`"===c[0]&&t&&Object.hasOwn(t,c.slice(1))){let e=c.slice(1);b(this._trace(u,t[e],h(r,e),t,e,n,a,!0))}else if(c.includes(","))for(let e of c.split(","))b(this._trace(p(e,u),t,r,i,s,n,!0));else!o&&t&&Object.hasOwn(t,c)&&b(this._trace(u,t[c],h(r,c),t,c,n,a,!0));if(this._hasParentSelector)for(let e=0;e{t(e)})},u.prototype._slice=function(e,t,r,i,s,n,a){if(!Array.isArray(r))return;let o=r.length,l=e.split(":"),h=l[2]&&Number.parseInt(l[2])||1,c=l[0]&&Number.parseInt(l[0])||0,u=l[1]&&Number.parseInt(l[1])||o;c=c<0?Math.max(0,c+o):Math.min(o,c),u=u<0?Math.max(0,u+o):Math.min(o,u);let d=[];for(let e=c;e{d.push(e)});return d},u.prototype._eval=function(e,t,r,i,s,n){this.currSandbox._$_parentProperty=n,this.currSandbox._$_parent=s,this.currSandbox._$_property=r,this.currSandbox._$_root=this.json,this.currSandbox._$_v=t;let a=e.includes("@path");a&&(this.currSandbox._$_path=u.toPathString(i.concat([r])));let o=this.currEval+"Script:"+e;if(!u.cache[o]){let t=e.replaceAll("@parentProperty","_$_parentProperty").replaceAll("@parent","_$_parent").replaceAll("@property","_$_property").replaceAll("@root","_$_root").replaceAll(/@([.\s)[])/gu,"_$_v$1");if(a&&(t=t.replaceAll("@path","_$_path")),"safe"===this.currEval||!0===this.currEval||void 0===this.currEval)u.cache[o]=new this.safeVm.Script(t);else if("native"===this.currEval)u.cache[o]=new this.vm.Script(t);else if("function"==typeof this.currEval&&this.currEval.prototype&&Object.hasOwn(this.currEval.prototype,"runInNewContext")){let e=this.currEval;u.cache[o]=new e(t)}else if("function"==typeof this.currEval)u.cache[o]={runInNewContext:e=>this.currEval(t,e)};else throw TypeError(`Unknown "eval" property "${this.currEval}"`)}try{return u.cache[o].runInNewContext(this.currSandbox)}catch(t){if(this.ignoreEvalErrors)return!1;throw Error("jsonPath: "+t.message+": "+e)}},u.cache={},u.toPathString=function(e){let t=e.length,r="$";for(let i=1;i{var t={3065:(t,e,n)=>{var i=n(5472),r=n(3085),s=function(t,e,n){this.tokenBucket=new i(t,t,e,null),this.tokenBucket.content=t,this.curIntervalStart=r(),this.tokensThisInterval=0,this.fireImmediately=n};s.prototype={tokenBucket:null,curIntervalStart:0,tokensThisInterval:0,fireImmediately:!1,removeTokens:function(t,e){if(t>this.tokenBucket.bucketSize)return process.nextTick(e.bind(null,"Requested tokens "+t+" exceeds maximum tokens per interval "+this.tokenBucket.bucketSize,null)),!1;var n=this,i=r();if((i=this.tokenBucket.interval)&&(this.curIntervalStart=i,this.tokensThisInterval=0),t>this.tokenBucket.tokensPerInterval-this.tokensThisInterval){if(this.fireImmediately)process.nextTick(e.bind(null,null,-1));else{var s=Math.ceil(this.curIntervalStart+this.tokenBucket.interval-i);setTimeout(function(){n.tokenBucket.removeTokens(t,o)},s)}return!1}return this.tokenBucket.removeTokens(t,o);function o(i,r){if(i)return e(i,null);n.tokensThisInterval+=t,e(null,r)}},tryRemoveTokens:function(t){if(t>this.tokenBucket.bucketSize)return!1;var e=r();if((e=this.tokenBucket.interval)&&(this.curIntervalStart=e,this.tokensThisInterval=0),t>this.tokenBucket.tokensPerInterval-this.tokensThisInterval)return!1;var n=this.tokenBucket.tryRemoveTokens(t);return n&&(this.tokensThisInterval+=t),n},getTokensRemaining:function(){return this.tokenBucket.drip(),this.tokenBucket.content}},t.exports=s},3085:t=>{t.exports=function(){if("undefined"!=typeof process&&process.hrtime){var t=process.hrtime(),e=t[0],n=t[1];return 1e3*e+Math.floor(n/1e6)}return(new Date).getTime()}},5472:t=>{var e=function(t,e,n,i){if(this.bucketSize=t,this.tokensPerInterval=e,"string"==typeof n)switch(n){case"sec":case"second":this.interval=1e3;break;case"min":case"minute":this.interval=6e4;break;case"hr":case"hour":this.interval=36e5;break;case"day":this.interval=864e5;break;default:throw new Error("Invaid interval "+n)}else this.interval=n;this.parentBucket=i,this.content=0,this.lastDrip=+new Date};e.prototype={bucketSize:1,tokensPerInterval:1,interval:1e3,parentBucket:null,content:0,lastDrip:0,removeTokens:function(t,e){var n=this;return this.bucketSize?t>this.bucketSize?(process.nextTick(e.bind(null,"Requested tokens "+t+" exceeds bucket size "+this.bucketSize,null)),!1):(this.drip(),t>this.content?i():this.parentBucket?this.parentBucket.removeTokens(t,function(r,s){return r?e(r,null):t>n.content?i():(n.content-=t,void e(null,Math.min(s,n.content)))}):(this.content-=t,process.nextTick(e.bind(null,null,this.content)),!0)):(process.nextTick(e.bind(null,null,t,Number.POSITIVE_INFINITY)),!0);function i(){var i=Math.ceil((t-n.content)*(n.interval/n.tokensPerInterval));return setTimeout(function(){n.removeTokens(t,e)},i),!1}},tryRemoveTokens:function(t){return!(this.bucketSize&&(t>this.bucketSize||(this.drip(),t>this.content||this.parentBucket&&!this.parentBucket.tryRemoveTokens(t)||(this.content-=t,0))))},drip:function(){if(this.tokensPerInterval){var t=+new Date,e=Math.max(t-this.lastDrip,0);this.lastDrip=t;var n=e*(this.tokensPerInterval/this.interval);this.content=Math.min(this.content+n,this.bucketSize)}else this.content=this.bucketSize}},t.exports=e}},e={};function n(i){var r=e[i];if(void 0!==r)return r.exports;var s=e[i]={exports:{}};return t[i](s,s.exports,n),s.exports}var i,r={};(i=r).RateLimiter=n(3065),i.TokenBucket=n(5472),module.exports=r})(); \ No newline at end of file +(()=>{var t={3085:function(t){t.exports=function(){if("undefined"!=typeof process&&process.hrtime){var t=process.hrtime();return 1e3*t[0]+Math.floor(t[1]/1e6)}return new Date().getTime()}},3065:function(t,e,n){var i=n(5472),r=n(3085),s=function(t,e,n){this.tokenBucket=new i(t,t,e,null),this.tokenBucket.content=t,this.curIntervalStart=r(),this.tokensThisInterval=0,this.fireImmediately=n};s.prototype={tokenBucket:null,curIntervalStart:0,tokensThisInterval:0,fireImmediately:!1,removeTokens:function(t,e){if(t>this.tokenBucket.bucketSize)return process.nextTick(e.bind(null,"Requested tokens "+t+" exceeds maximum tokens per interval "+this.tokenBucket.bucketSize,null)),!1;var n=this,i=r();if((i=this.tokenBucket.interval)&&(this.curIntervalStart=i,this.tokensThisInterval=0),t>this.tokenBucket.tokensPerInterval-this.tokensThisInterval)return this.fireImmediately?process.nextTick(e.bind(null,null,-1)):setTimeout(function(){n.tokenBucket.removeTokens(t,s)},Math.ceil(this.curIntervalStart+this.tokenBucket.interval-i)),!1;return this.tokenBucket.removeTokens(t,s);function s(i,r){if(i)return e(i,null);n.tokensThisInterval+=t,e(null,r)}},tryRemoveTokens:function(t){if(t>this.tokenBucket.bucketSize)return!1;var e=r();if((e=this.tokenBucket.interval)&&(this.curIntervalStart=e,this.tokensThisInterval=0),t>this.tokenBucket.tokensPerInterval-this.tokensThisInterval)return!1;var n=this.tokenBucket.tryRemoveTokens(t);return n&&(this.tokensThisInterval+=t),n},getTokensRemaining:function(){return this.tokenBucket.drip(),this.tokenBucket.content}},t.exports=s},5472:function(t){var e=function(t,e,n,i){if(this.bucketSize=t,this.tokensPerInterval=e,"string"==typeof n)switch(n){case"sec":case"second":this.interval=1e3;break;case"min":case"minute":this.interval=6e4;break;case"hr":case"hour":this.interval=36e5;break;case"day":this.interval=864e5;break;default:throw Error("Invaid interval "+n)}else this.interval=n;this.parentBucket=i,this.content=0,this.lastDrip=+new Date};e.prototype={bucketSize:1,tokensPerInterval:1,interval:1e3,parentBucket:null,content:0,lastDrip:0,removeTokens:function(t,e){var n=this;if(!this.bucketSize)return process.nextTick(e.bind(null,null,t,1/0)),!0;if(t>this.bucketSize)return process.nextTick(e.bind(null,"Requested tokens "+t+" exceeds bucket size "+this.bucketSize,null)),!1;if(this.drip(),t>this.content)return i();if(this.parentBucket)return this.parentBucket.removeTokens(t,function(r,s){return r?e(r,null):t>n.content?i():void(n.content-=t,e(null,Math.min(s,n.content)))});return this.content-=t,process.nextTick(e.bind(null,null,this.content)),!0;function i(){return setTimeout(function(){n.removeTokens(t,e)},Math.ceil((t-n.content)*(n.interval/n.tokensPerInterval))),!1}},tryRemoveTokens:function(t){return!this.bucketSize||!(t>this.bucketSize)&&(this.drip(),!(t>this.content)&&(!this.parentBucket||!!this.parentBucket.tryRemoveTokens(t))&&(this.content-=t,!0))},drip:function(){if(!this.tokensPerInterval){this.content=this.bucketSize;return}var t=+new Date,e=Math.max(t-this.lastDrip,0);this.lastDrip=t;var n=e*(this.tokensPerInterval/this.interval);this.content=Math.min(this.content+n,this.bucketSize)}},t.exports=e}},e={};function n(i){var r=e[i];if(void 0!==r)return r.exports;var s=e[i]={exports:{}};return t[i](s,s.exports,n),s.exports}var i={};i.RateLimiter=n(3065),i.TokenBucket=n(5472),module.exports=i})(); \ No newline at end of file diff --git a/packages/node_modules/lodash.sortby.js b/packages/node_modules/lodash.sortby.js index 37256f8debc..278f9d8cf50 100644 --- a/packages/node_modules/lodash.sortby.js +++ b/packages/node_modules/lodash.sortby.js @@ -1 +1 @@ -(()=>{var t={8479:(t,r,n)=>{t=n.nmd(t);var e="__lodash_hash_undefined__",o=9007199254740991,u="[object Arguments]",a="[object Array]",i="[object Boolean]",c="[object Date]",f="[object Error]",l="[object Function]",s="[object Map]",v="[object Number]",h="[object Object]",p="[object Promise]",_="[object RegExp]",y="[object Set]",d="[object String]",b="[object Symbol]",g="[object WeakMap]",j="[object ArrayBuffer]",w="[object DataView]",m=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,A=/^\w*$/,O=/^\./,x=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,S=/\\(\\)?/g,k=/^\[object .+?Constructor\]$/,$=/^(?:0|[1-9]\d*)$/,E={};E["[object Float32Array]"]=E["[object Float64Array]"]=E["[object Int8Array]"]=E["[object Int16Array]"]=E["[object Int32Array]"]=E["[object Uint8Array]"]=E["[object Uint8ClampedArray]"]=E["[object Uint16Array]"]=E["[object Uint32Array]"]=!0,E[u]=E[a]=E[j]=E[i]=E[w]=E[c]=E[f]=E[l]=E[s]=E[v]=E[h]=E[_]=E[y]=E[d]=E[g]=!1;var F="object"==typeof global&&global&&global.Object===Object&&global,C="object"==typeof self&&self&&self.Object===Object&&self,I=F||C||Function("return this")(),M=r&&!r.nodeType&&r,P=M&&t&&!t.nodeType&&t,T=P&&P.exports===M&&F.process,U=function(){try{return T&&T.binding("util")}catch(t){}}(),z=U&&U.isTypedArray;function L(t,r){for(var n=-1,e=t?t.length:0,o=Array(e);++n-1},xt.prototype.set=function(t,r){var n=this.__data__,e=Et(n,t);return e<0?n.push([t,r]):n[e][1]=r,this},St.prototype.clear=function(){this.__data__={hash:new Ot,map:new(st||xt),string:new Ot}},St.prototype.delete=function(t){return Vt(this,t).delete(t)},St.prototype.get=function(t){return Vt(this,t).get(t)},St.prototype.has=function(t){return Vt(this,t).has(t)},St.prototype.set=function(t,r){return Vt(this,t).set(t,r),this},kt.prototype.add=kt.prototype.push=function(t){return this.__data__.set(t,e),this},kt.prototype.has=function(t){return this.__data__.has(t)},$t.prototype.clear=function(){this.__data__=new xt},$t.prototype.delete=function(t){return this.__data__.delete(t)},$t.prototype.get=function(t){return this.__data__.get(t)},$t.prototype.has=function(t){return this.__data__.has(t)},$t.prototype.set=function(t,r){var n=this.__data__;if(n instanceof xt){var e=n.__data__;if(!st||e.length<199)return e.push([t,r]),this;n=this.__data__=new St(e)}return n.set(t,r),this};var Ft,Ct=(Ft=function(t,r){return t&&Mt(t,r,vr)},function(t,r){if(null==t)return t;if(!ur(t))return Ft(t,r);for(var n=t.length,e=-1,o=Object(t);++e0&&n(i)?r>1?It(i,r-1,n,e,o):B(o,i):e||(o[o.length]=i)}return o}var Mt=function(t,r,n){for(var e=-1,o=Object(t),u=n(t),a=u.length;a--;){var i=u[++e];if(!1===r(o[i],i,o))break}return t};function Pt(t,r){for(var n=0,e=(r=Jt(r,t)?[r]:Bt(r)).length;null!=t&&n=i?c:c*("desc"==n[e]?-1:1)}return t.index-r.index}(t,r,n)});r--;)t[r]=t[r].value;return t}(o)}function Bt(t){return or(t)?t:Xt(t)}function Dt(t,r){if(t!==r){var n=void 0!==t,e=null===t,o=t==t,u=lr(t),a=void 0!==r,i=null===r,c=r==r,f=lr(r);if(!i&&!f&&!u&&t>r||u&&a&&c&&!i&&!f||e&&a&&c||!n&&c||!o)return 1;if(!e&&!u&&!f&&ti))return!1;var f=u.get(t);if(f&&u.get(r))return f==r;var l=-1,s=!0,v=1&o?new kt:void 0;for(u.set(t,r),u.set(r,t);++l-1&&t%1==0&&t1&&Ht(t,r[0],r[1])?r=[]:n>2&&Ht(r[0],r[1],r[2])&&(r=[r[0]]),Lt(t,It(r,1),[])});function rr(t,r){if("function"!=typeof t||r&&"function"!=typeof r)throw new TypeError("Expected a function");var n=function(){var e=arguments,o=r?r.apply(this,e):e[0],u=n.cache;if(u.has(o))return u.get(o);var a=t.apply(this,e);return n.cache=u.set(o,a),a};return n.cache=new(rr.Cache||St),n}function nr(t,r){return t===r||t!=t&&r!=r}function er(t){return function(t){return fr(t)&&ur(t)}(t)&&tt.call(t,"callee")&&(!ut.call(t,"callee")||rt.call(t)==u)}rr.Cache=St;var or=Array.isArray;function ur(t){return null!=t&&ir(t.length)&&!ar(t)}function ar(t){var r=cr(t)?rt.call(t):"";return r==l||"[object GeneratorFunction]"==r}function ir(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=o}function cr(t){var r=typeof t;return!!t&&("object"==r||"function"==r)}function fr(t){return!!t&&"object"==typeof t}function lr(t){return"symbol"==typeof t||fr(t)&&rt.call(t)==b}var sr=z?R(z):function(t){return fr(t)&&ir(t.length)&&!!E[rt.call(t)]};function vr(t){return ur(t)?function(t,r){var n=or(t)||er(t)?function(t,r){for(var n=-1,e=Array(t);++n(t.paths=[],t.children||(t.children=[]),t);var e=n(8479);module.exports=e})(); \ No newline at end of file +(()=>{var t={8479:function(t,r,n){t=n.nmd(t);var e,o,a,u,i,c,f="__lodash_hash_undefined__",l=1/0,s="[object Arguments]",v="[object Array]",h="[object Boolean]",p="[object Date]",_="[object Error]",d="[object Function]",y="[object Map]",b="[object Number]",g="[object Object]",j="[object Promise]",w="[object RegExp]",m="[object Set]",A="[object String]",O="[object Symbol]",x="[object WeakMap]",k="[object ArrayBuffer]",S="[object DataView]",$=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,E=/^\w*$/,F=/^\./,C=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,I=/\\(\\)?/g,M=/^\[object .+?Constructor\]$/,P=/^(?:0|[1-9]\d*)$/,T={};T["[object Float32Array]"]=T["[object Float64Array]"]=T["[object Int8Array]"]=T["[object Int16Array]"]=T["[object Int32Array]"]=T["[object Uint8Array]"]=T["[object Uint8ClampedArray]"]=T["[object Uint16Array]"]=T["[object Uint32Array]"]=!0,T[s]=T[v]=T[k]=T[h]=T[S]=T[p]=T[_]=T[d]=T[y]=T[b]=T[g]=T[w]=T[m]=T[A]=T[x]=!1;var U="object"==typeof global&&global&&global.Object===Object&&global,z="object"==typeof self&&self&&self.Object===Object&&self,L=U||z||Function("return this")(),B=r&&!r.nodeType&&r,D=B&&t&&!t.nodeType&&t,R=D&&D.exports===B&&U.process,V=function(){try{return R&&R.binding("util")}catch(t){}}(),W=V&&V.isTypedArray;function G(t,r){for(var n=-1,e=t?t.length:0,o=Array(e);++n-1},tk.prototype.set=function(t,r){var n=this.__data__,e=tF(n,t);return e<0?n.push([t,r]):n[e][1]=r,this},tS.prototype.clear=function(){this.__data__={hash:new tx,map:new(tv||tk),string:new tx}},tS.prototype.delete=function(t){return tL(this,t).delete(t)},tS.prototype.get=function(t){return tL(this,t).get(t)},tS.prototype.has=function(t){return tL(this,t).has(t)},tS.prototype.set=function(t,r){return tL(this,t).set(t,r),this},t$.prototype.add=t$.prototype.push=function(t){return this.__data__.set(t,f),this},t$.prototype.has=function(t){return this.__data__.has(t)},tE.prototype.clear=function(){this.__data__=new tk},tE.prototype.delete=function(t){return this.__data__.delete(t)},tE.prototype.get=function(t){return this.__data__.get(t)},tE.prototype.has=function(t){return this.__data__.has(t)},tE.prototype.set=function(t,r){var n=this.__data__;if(n instanceof tk){var e=n.__data__;if(!tv||e.length<199)return e.push([t,r]),this;n=this.__data__=new tS(e)}return n.set(t,r),this};var tC=(e=function(t,r){return t&&tI(t,r,t6)},function(t,r){if(null==t)return t;if(!t1(t))return e(t,r);for(var n=t.length,o=-1,a=Object(t);++oi))return!1;var f=a.get(t);if(f&&a.get(r))return f==r;var l=-1,s=!0,v=1&o?new t$:void 0;for(a.set(t,r),a.set(r,t);++l-1&&t%1==0&&t1&&tW(t,r[0],r[1])?r=[]:n>2&&tW(r[0],r[1],r[2])&&(r=[r[0]]),function(t,r,n){var e,o,a,u=-1;r=G(r.length?r:[t7],N(tU));var i=(e=function(t,n,e){return{criteria:G(r,function(r){return r(t)}),index:++u,value:t}},o=-1,a=t1(t)?Array(t.length):[],tC(t,function(t,r,n){a[++o]=e(t,r,n)}),a),c=i.length;for(i.sort(function(t,r){return function(t,r,n){for(var e=-1,o=t.criteria,a=r.criteria,u=o.length,i=n.length;++er||a&&u&&c&&!i&&!f||e&&u&&c||!n&&c||!o)return 1;if(!e&&!a&&!f&&t=i)return c;return c*("desc"==n[e]?-1:1)}}return t.index-r.index}(t,r,n)});c--;)i[c]=i[c].value;return i}(t,function t(r,n,e,o,a){var u=-1,i=r.length;for(e||(e=tR),a||(a=[]);++u0&&e(c)?n>1?t(c,n-1,e,o,a):function(t,r){for(var n=-1,e=r.length,o=t.length;++n-1&&t%1==0&&t<=0x1fffffffffffff}function t3(t){var r=typeof t;return!!t&&("object"==r||"function"==r)}function t8(t){return!!t&&"object"==typeof t}function t9(t){return"symbol"==typeof t||t8(t)&&tn.call(t)==O}var t4=W?N(W):function(t){return t8(t)&&t2(t.length)&&!!T[tn.call(t)]};function t6(t){return t1(t)?function(t,r){var n=tZ(t)||tY(t)?function(t,r){for(var n=-1,e=Array(t);++n(t.paths=[],t.children||(t.children=[]),t);var e=n(8479);module.exports=e})(); \ No newline at end of file diff --git a/packages/node_modules/lru-cache.js b/packages/node_modules/lru-cache.js index 6145a89982d..44ef3bffcc8 100644 --- a/packages/node_modules/lru-cache.js +++ b/packages/node_modules/lru-cache.js @@ -1 +1 @@ -(()=>{"use strict";var t={d:(e,i)=>{for(var s in i)t.o(i,s)&&!t.o(e,s)&&Object.defineProperty(e,s,{enumerable:!0,get:i[s]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r:t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}},e={};t.r(e),t.d(e,{LRUCache:()=>u});const i="object"==typeof performance&&performance&&"function"==typeof performance.now?performance:Date,s=new Set,o="object"==typeof process&&process?process:{},h=(t,e,i,s)=>{"function"==typeof o.emitWarning?o.emitWarning(t,e,i,s):console.error(`[${i}] ${e}: ${t}`)};let n=globalThis.AbortController,a=globalThis.AbortSignal;if(void 0===n){a=class{onabort;_onabort=[];reason;aborted=!1;addEventListener(t,e){this._onabort.push(e)}},n=class{constructor(){e()}signal=new a;abort(t){if(!this.signal.aborted){this.signal.reason=t,this.signal.aborted=!0;for(const e of this.signal._onabort)e(t);this.signal.onabort?.(t)}}};let t="1"!==o.env?.LRU_CACHE_IGNORE_AC_WARNING;const e=()=>{t&&(t=!1,h("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.","NO_ABORT_CONTROLLER","ENOTSUP",e))}}Symbol("type");const r=t=>t&&t===Math.floor(t)&&t>0&&isFinite(t),l=t=>r(t)?t<=Math.pow(2,8)?Uint8Array:t<=Math.pow(2,16)?Uint16Array:t<=Math.pow(2,32)?Uint32Array:t<=Number.MAX_SAFE_INTEGER?c:null:null;class c extends Array{constructor(t){super(t),this.fill(0)}}class d{heap;length;static#t=!1;static create(t){const e=l(t);if(!e)return[];d.#t=!0;const i=new d(t,e);return d.#t=!1,i}constructor(t,e){if(!d.#t)throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new e(t),this.length=0}push(t){this.heap[this.length++]=t}pop(){return this.heap[--this.length]}}class u{#e;#i;#s;#o;#h;#n;ttl;ttlResolution;ttlAutopurge;updateAgeOnGet;updateAgeOnHas;allowStale;noDisposeOnSet;noUpdateTTL;maxEntrySize;sizeCalculation;noDeleteOnFetchRejection;noDeleteOnStaleGet;allowStaleOnFetchAbort;allowStaleOnFetchRejection;ignoreFetchAbort;#a;#r;#l;#c;#d;#u;#f;#p;#g;#v;#S;#m;#y;#z;#w;#L;#F;static unsafeExposeInternals(t){return{starts:t.#y,ttls:t.#z,sizes:t.#m,keyMap:t.#l,keyList:t.#c,valList:t.#d,next:t.#u,prev:t.#f,get head(){return t.#p},get tail(){return t.#g},free:t.#v,isBackgroundFetch:e=>t.#x(e),backgroundFetch:(e,i,s,o)=>t.#A(e,i,s,o),moveToTail:e=>t.#_(e),indexes:e=>t.#T(e),rindexes:e=>t.#b(e),isStale:e=>t.#k(e)}}get max(){return this.#e}get maxSize(){return this.#i}get calculatedSize(){return this.#r}get size(){return this.#a}get fetchMethod(){return this.#h}get memoMethod(){return this.#n}get dispose(){return this.#s}get disposeAfter(){return this.#o}constructor(t){const{max:e=0,ttl:i,ttlResolution:o=1,ttlAutopurge:n,updateAgeOnGet:a,updateAgeOnHas:c,allowStale:f,dispose:p,disposeAfter:g,noDisposeOnSet:v,noUpdateTTL:S,maxSize:m=0,maxEntrySize:y=0,sizeCalculation:z,fetchMethod:w,memoMethod:L,noDeleteOnFetchRejection:F,noDeleteOnStaleGet:x,allowStaleOnFetchRejection:A,allowStaleOnFetchAbort:_,ignoreFetchAbort:T}=t;if(0!==e&&!r(e))throw new TypeError("max option must be a nonnegative integer");const b=e?l(e):Array;if(!b)throw new Error("invalid max value: "+e);if(this.#e=e,this.#i=m,this.maxEntrySize=y||this.#i,this.sizeCalculation=z,this.sizeCalculation){if(!this.#i&&!this.maxEntrySize)throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if("function"!=typeof this.sizeCalculation)throw new TypeError("sizeCalculation set to non-function")}if(void 0!==L&&"function"!=typeof L)throw new TypeError("memoMethod must be a function if defined");if(this.#n=L,void 0!==w&&"function"!=typeof w)throw new TypeError("fetchMethod must be a function if specified");if(this.#h=w,this.#L=!!w,this.#l=new Map,this.#c=new Array(e).fill(void 0),this.#d=new Array(e).fill(void 0),this.#u=new b(e),this.#f=new b(e),this.#p=0,this.#g=0,this.#v=d.create(e),this.#a=0,this.#r=0,"function"==typeof p&&(this.#s=p),"function"==typeof g?(this.#o=g,this.#S=[]):(this.#o=void 0,this.#S=void 0),this.#w=!!this.#s,this.#F=!!this.#o,this.noDisposeOnSet=!!v,this.noUpdateTTL=!!S,this.noDeleteOnFetchRejection=!!F,this.allowStaleOnFetchRejection=!!A,this.allowStaleOnFetchAbort=!!_,this.ignoreFetchAbort=!!T,0!==this.maxEntrySize){if(0!==this.#i&&!r(this.#i))throw new TypeError("maxSize must be a positive integer if specified");if(!r(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");this.#O()}if(this.allowStale=!!f,this.noDeleteOnStaleGet=!!x,this.updateAgeOnGet=!!a,this.updateAgeOnHas=!!c,this.ttlResolution=r(o)||0===o?o:1,this.ttlAutopurge=!!n,this.ttl=i||0,this.ttl){if(!r(this.ttl))throw new TypeError("ttl must be a positive integer if specified");this.#E()}if(0===this.#e&&0===this.ttl&&0===this.#i)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!this.#e&&!this.#i){const t="LRU_CACHE_UNBOUNDED";(t=>!s.has(t))(t)&&(s.add(t),h("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",t,u))}}getRemainingTTL(t){return this.#l.has(t)?1/0:0}#E(){const t=new c(this.#e),e=new c(this.#e);this.#z=t,this.#y=e,this.#D=(s,o,h=i.now())=>{if(e[s]=0!==o?h:0,t[s]=o,0!==o&&this.ttlAutopurge){const t=setTimeout(()=>{this.#k(s)&&this.#M(this.#c[s],"expire")},o+1);t.unref&&t.unref()}},this.#C=s=>{e[s]=0!==t[s]?i.now():0},this.#R=(i,h)=>{if(t[h]){const n=t[h],a=e[h];if(!n||!a)return;i.ttl=n,i.start=a,i.now=s||o();const r=i.now-a;i.remainingTTL=n-r}};let s=0;const o=()=>{const t=i.now();if(this.ttlResolution>0){s=t;const e=setTimeout(()=>s=0,this.ttlResolution);e.unref&&e.unref()}return t};this.getRemainingTTL=i=>{const h=this.#l.get(i);if(void 0===h)return 0;const n=t[h],a=e[h];return n&&a?n-((s||o())-a):1/0},this.#k=i=>{const h=e[i],n=t[i];return!!n&&!!h&&(s||o())-h>n}}#C=()=>{};#R=()=>{};#D=()=>{};#k=()=>!1;#O(){const t=new c(this.#e);this.#r=0,this.#m=t,this.#W=e=>{this.#r-=t[e],t[e]=0},this.#I=(t,e,i,s)=>{if(this.#x(e))return 0;if(!r(i)){if(!s)throw new TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");if("function"!=typeof s)throw new TypeError("sizeCalculation must be a function");if(i=s(e,t),!r(i))throw new TypeError("sizeCalculation return invalid (expect positive integer)")}return i},this.#B=(e,i,s)=>{if(t[e]=i,this.#i){const i=this.#i-t[e];for(;this.#r>i;)this.#G(!0)}this.#r+=t[e],s&&(s.entrySize=i,s.totalCalculatedSize=this.#r)}}#W=t=>{};#B=(t,e,i)=>{};#I=(t,e,i,s)=>{if(i||s)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0};*#T({allowStale:t=this.allowStale}={}){if(this.#a)for(let e=this.#g;this.#j(e)&&(!t&&this.#k(e)||(yield e),e!==this.#p);)e=this.#f[e]}*#b({allowStale:t=this.allowStale}={}){if(this.#a)for(let e=this.#p;this.#j(e)&&(!t&&this.#k(e)||(yield e),e!==this.#g);)e=this.#u[e]}#j(t){return void 0!==t&&this.#l.get(this.#c[t])===t}*entries(){for(const t of this.#T())void 0===this.#d[t]||void 0===this.#c[t]||this.#x(this.#d[t])||(yield[this.#c[t],this.#d[t]])}*rentries(){for(const t of this.#b())void 0===this.#d[t]||void 0===this.#c[t]||this.#x(this.#d[t])||(yield[this.#c[t],this.#d[t]])}*keys(){for(const t of this.#T()){const e=this.#c[t];void 0===e||this.#x(this.#d[t])||(yield e)}}*rkeys(){for(const t of this.#b()){const e=this.#c[t];void 0===e||this.#x(this.#d[t])||(yield e)}}*values(){for(const t of this.#T())void 0===this.#d[t]||this.#x(this.#d[t])||(yield this.#d[t])}*rvalues(){for(const t of this.#b())void 0===this.#d[t]||this.#x(this.#d[t])||(yield this.#d[t])}[Symbol.iterator](){return this.entries()}[Symbol.toStringTag]="LRUCache";find(t,e={}){for(const i of this.#T()){const s=this.#d[i],o=this.#x(s)?s.__staleWhileFetching:s;if(void 0!==o&&t(o,this.#c[i],this))return this.get(this.#c[i],e)}}forEach(t,e=this){for(const i of this.#T()){const s=this.#d[i],o=this.#x(s)?s.__staleWhileFetching:s;void 0!==o&&t.call(e,o,this.#c[i],this)}}rforEach(t,e=this){for(const i of this.#b()){const s=this.#d[i],o=this.#x(s)?s.__staleWhileFetching:s;void 0!==o&&t.call(e,o,this.#c[i],this)}}purgeStale(){let t=!1;for(const e of this.#b({allowStale:!0}))this.#k(e)&&(this.#M(this.#c[e],"expire"),t=!0);return t}info(t){const e=this.#l.get(t);if(void 0===e)return;const s=this.#d[e],o=this.#x(s)?s.__staleWhileFetching:s;if(void 0===o)return;const h={value:o};if(this.#z&&this.#y){const t=this.#z[e],s=this.#y[e];if(t&&s){const e=t-(i.now()-s);h.ttl=e,h.start=Date.now()}}return this.#m&&(h.size=this.#m[e]),h}dump(){const t=[];for(const e of this.#T({allowStale:!0})){const s=this.#c[e],o=this.#d[e],h=this.#x(o)?o.__staleWhileFetching:o;if(void 0===h||void 0===s)continue;const n={value:h};if(this.#z&&this.#y){n.ttl=this.#z[e];const t=i.now()-this.#y[e];n.start=Math.floor(Date.now()-t)}this.#m&&(n.size=this.#m[e]),t.unshift([s,n])}return t}load(t){this.clear();for(const[e,s]of t){if(s.start){const t=Date.now()-s.start;s.start=i.now()-t}this.set(e,s.value,s)}}set(t,e,i={}){if(void 0===e)return this.delete(t),this;const{ttl:s=this.ttl,start:o,noDisposeOnSet:h=this.noDisposeOnSet,sizeCalculation:n=this.sizeCalculation,status:a}=i;let{noUpdateTTL:r=this.noUpdateTTL}=i;const l=this.#I(t,e,i.size||0,n);if(this.maxEntrySize&&l>this.maxEntrySize)return a&&(a.set="miss",a.maxEntrySizeExceeded=!0),this.#M(t,"set"),this;let c=0===this.#a?void 0:this.#l.get(t);if(void 0===c)c=0===this.#a?this.#g:0!==this.#v.length?this.#v.pop():this.#a===this.#e?this.#G(!1):this.#a,this.#c[c]=t,this.#d[c]=e,this.#l.set(t,c),this.#u[this.#g]=c,this.#f[c]=this.#g,this.#g=c,this.#a++,this.#B(c,l,a),a&&(a.set="add"),r=!1;else{this.#_(c);const i=this.#d[c];if(e!==i){if(this.#L&&this.#x(i)){i.__abortController.abort(new Error("replaced"));const{__staleWhileFetching:e}=i;void 0===e||h||(this.#w&&this.#s?.(e,t,"set"),this.#F&&this.#S?.push([e,t,"set"]))}else h||(this.#w&&this.#s?.(i,t,"set"),this.#F&&this.#S?.push([i,t,"set"]));if(this.#W(c),this.#B(c,l,a),this.#d[c]=e,a){a.set="replace";const t=i&&this.#x(i)?i.__staleWhileFetching:i;void 0!==t&&(a.oldValue=t)}}else a&&(a.set="update")}if(0===s||this.#z||this.#E(),this.#z&&(r||this.#D(c,s,o),a&&this.#R(a,c)),!h&&this.#F&&this.#S){const t=this.#S;let e;for(;e=t?.shift();)this.#o?.(...e)}return this}pop(){try{for(;this.#a;){const t=this.#d[this.#p];if(this.#G(!0),this.#x(t)){if(t.__staleWhileFetching)return t.__staleWhileFetching}else if(void 0!==t)return t}}finally{if(this.#F&&this.#S){const t=this.#S;let e;for(;e=t?.shift();)this.#o?.(...e)}}}#G(t){const e=this.#p,i=this.#c[e],s=this.#d[e];return this.#L&&this.#x(s)?s.__abortController.abort(new Error("evicted")):(this.#w||this.#F)&&(this.#w&&this.#s?.(s,i,"evict"),this.#F&&this.#S?.push([s,i,"evict"])),this.#W(e),t&&(this.#c[e]=void 0,this.#d[e]=void 0,this.#v.push(e)),1===this.#a?(this.#p=this.#g=0,this.#v.length=0):this.#p=this.#u[e],this.#l.delete(i),this.#a--,e}has(t,e={}){const{updateAgeOnHas:i=this.updateAgeOnHas,status:s}=e,o=this.#l.get(t);if(void 0!==o){const t=this.#d[o];if(this.#x(t)&&void 0===t.__staleWhileFetching)return!1;if(!this.#k(o))return i&&this.#C(o),s&&(s.has="hit",this.#R(s,o)),!0;s&&(s.has="stale",this.#R(s,o))}else s&&(s.has="miss");return!1}peek(t,e={}){const{allowStale:i=this.allowStale}=e,s=this.#l.get(t);if(void 0===s||!i&&this.#k(s))return;const o=this.#d[s];return this.#x(o)?o.__staleWhileFetching:o}#A(t,e,i,s){const o=void 0===e?void 0:this.#d[e];if(this.#x(o))return o;const h=new n,{signal:a}=i;a?.addEventListener("abort",()=>h.abort(a.reason),{signal:h.signal});const r={signal:h.signal,options:i,context:s},l=(s,o=!1)=>{const{aborted:n}=h.signal,a=i.ignoreFetchAbort&&void 0!==s;if(i.status&&(n&&!o?(i.status.fetchAborted=!0,i.status.fetchError=h.signal.reason,a&&(i.status.fetchAbortIgnored=!0)):i.status.fetchResolved=!0),n&&!a&&!o)return c(h.signal.reason);const l=d;return this.#d[e]===d&&(void 0===s?l.__staleWhileFetching?this.#d[e]=l.__staleWhileFetching:this.#M(t,"fetch"):(i.status&&(i.status.fetchUpdated=!0),this.set(t,s,r.options))),s},c=s=>{const{aborted:o}=h.signal,n=o&&i.allowStaleOnFetchAbort,a=n||i.allowStaleOnFetchRejection,r=a||i.noDeleteOnFetchRejection,l=d;if(this.#d[e]===d&&(r&&void 0!==l.__staleWhileFetching?n||(this.#d[e]=l.__staleWhileFetching):this.#M(t,"fetch")),a)return i.status&&void 0!==l.__staleWhileFetching&&(i.status.returnedStale=!0),l.__staleWhileFetching;if(l.__returned===l)throw s};i.status&&(i.status.fetchDispatched=!0);const d=new Promise((e,s)=>{const n=this.#h?.(t,o,r);n&&n instanceof Promise&&n.then(t=>e(void 0===t?void 0:t),s),h.signal.addEventListener("abort",()=>{i.ignoreFetchAbort&&!i.allowStaleOnFetchAbort||(e(void 0),i.allowStaleOnFetchAbort&&(e=t=>l(t,!0)))})}).then(l,t=>(i.status&&(i.status.fetchRejected=!0,i.status.fetchError=t),c(t))),u=Object.assign(d,{__abortController:h,__staleWhileFetching:o,__returned:void 0});return void 0===e?(this.set(t,u,{...r.options,status:void 0}),e=this.#l.get(t)):this.#d[e]=u,u}#x(t){if(!this.#L)return!1;const e=t;return!!e&&e instanceof Promise&&e.hasOwnProperty("__staleWhileFetching")&&e.__abortController instanceof n}async fetch(t,e={}){const{allowStale:i=this.allowStale,updateAgeOnGet:s=this.updateAgeOnGet,noDeleteOnStaleGet:o=this.noDeleteOnStaleGet,ttl:h=this.ttl,noDisposeOnSet:n=this.noDisposeOnSet,size:a=0,sizeCalculation:r=this.sizeCalculation,noUpdateTTL:l=this.noUpdateTTL,noDeleteOnFetchRejection:c=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:d=this.allowStaleOnFetchRejection,ignoreFetchAbort:u=this.ignoreFetchAbort,allowStaleOnFetchAbort:f=this.allowStaleOnFetchAbort,context:p,forceRefresh:g=!1,status:v,signal:S}=e;if(!this.#L)return v&&(v.fetch="get"),this.get(t,{allowStale:i,updateAgeOnGet:s,noDeleteOnStaleGet:o,status:v});const m={allowStale:i,updateAgeOnGet:s,noDeleteOnStaleGet:o,ttl:h,noDisposeOnSet:n,size:a,sizeCalculation:r,noUpdateTTL:l,noDeleteOnFetchRejection:c,allowStaleOnFetchRejection:d,allowStaleOnFetchAbort:f,ignoreFetchAbort:u,status:v,signal:S};let y=this.#l.get(t);if(void 0===y){v&&(v.fetch="miss");const e=this.#A(t,y,m,p);return e.__returned=e}{const e=this.#d[y];if(this.#x(e)){const t=i&&void 0!==e.__staleWhileFetching;return v&&(v.fetch="inflight",t&&(v.returnedStale=!0)),t?e.__staleWhileFetching:e.__returned=e}const o=this.#k(y);if(!g&&!o)return v&&(v.fetch="hit"),this.#_(y),s&&this.#C(y),v&&this.#R(v,y),e;const h=this.#A(t,y,m,p),n=void 0!==h.__staleWhileFetching&&i;return v&&(v.fetch=o?"stale":"refresh",n&&o&&(v.returnedStale=!0)),n?h.__staleWhileFetching:h.__returned=h}}async forceFetch(t,e={}){const i=await this.fetch(t,e);if(void 0===i)throw new Error("fetch() returned undefined");return i}memo(t,e={}){const i=this.#n;if(!i)throw new Error("no memoMethod provided to constructor");const{context:s,forceRefresh:o,...h}=e,n=this.get(t,h);if(!o&&void 0!==n)return n;const a=i(t,n,{options:h,context:s});return this.set(t,a,h),a}get(t,e={}){const{allowStale:i=this.allowStale,updateAgeOnGet:s=this.updateAgeOnGet,noDeleteOnStaleGet:o=this.noDeleteOnStaleGet,status:h}=e,n=this.#l.get(t);if(void 0!==n){const e=this.#d[n],a=this.#x(e);return h&&this.#R(h,n),this.#k(n)?(h&&(h.get="stale"),a?(h&&i&&void 0!==e.__staleWhileFetching&&(h.returnedStale=!0),i?e.__staleWhileFetching:void 0):(o||this.#M(t,"expire"),h&&i&&(h.returnedStale=!0),i?e:void 0)):(h&&(h.get="hit"),a?e.__staleWhileFetching:(this.#_(n),s&&this.#C(n),e))}h&&(h.get="miss")}#U(t,e){this.#f[e]=t,this.#u[t]=e}#_(t){t!==this.#g&&(t===this.#p?this.#p=this.#u[t]:this.#U(this.#f[t],this.#u[t]),this.#U(this.#g,t),this.#g=t)}delete(t){return this.#M(t,"delete")}#M(t,e){let i=!1;if(0!==this.#a){const s=this.#l.get(t);if(void 0!==s)if(i=!0,1===this.#a)this.#N(e);else{this.#W(s);const i=this.#d[s];if(this.#x(i)?i.__abortController.abort(new Error("deleted")):(this.#w||this.#F)&&(this.#w&&this.#s?.(i,t,e),this.#F&&this.#S?.push([i,t,e])),this.#l.delete(t),this.#c[s]=void 0,this.#d[s]=void 0,s===this.#g)this.#g=this.#f[s];else if(s===this.#p)this.#p=this.#u[s];else{const t=this.#f[s];this.#u[t]=this.#u[s];const e=this.#u[s];this.#f[e]=this.#f[s]}this.#a--,this.#v.push(s)}}if(this.#F&&this.#S?.length){const t=this.#S;let e;for(;e=t?.shift();)this.#o?.(...e)}return i}clear(){return this.#N("delete")}#N(t){for(const e of this.#b({allowStale:!0})){const i=this.#d[e];if(this.#x(i))i.__abortController.abort(new Error("deleted"));else{const s=this.#c[e];this.#w&&this.#s?.(i,s,t),this.#F&&this.#S?.push([i,s,t])}}if(this.#l.clear(),this.#d.fill(void 0),this.#c.fill(void 0),this.#z&&this.#y&&(this.#z.fill(0),this.#y.fill(0)),this.#m&&this.#m.fill(0),this.#p=0,this.#g=0,this.#v.length=0,this.#r=0,this.#a=0,this.#F&&this.#S){const t=this.#S;let e;for(;e=t?.shift();)this.#o?.(...e)}}}module.exports=e})(); \ No newline at end of file +(()=>{"use strict";var t={};t.d=(e,i)=>{for(var s in i)t.o(i,s)&&!t.o(e,s)&&Object.defineProperty(e,s,{enumerable:!0,get:i[s]})},t.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),t.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var e={};t.r(e),t.d(e,{LRUCache:()=>u});let i="object"==typeof performance&&performance&&"function"==typeof performance.now?performance:Date,s=new Set,h="object"==typeof process&&process?process:{},r=(t,e,i,s)=>{"function"==typeof h.emitWarning?h.emitWarning(t,e,i,s):console.error(`[${i}] ${e}: ${t}`)},o=globalThis.AbortController,a=globalThis.AbortSignal;if(void 0===o){a=class{onabort;_onabort=[];reason;aborted=!1;addEventListener(t,e){this._onabort.push(e)}},o=class{constructor(){e()}signal=new a;abort(t){if(!this.signal.aborted){for(let e of(this.signal.reason=t,this.signal.aborted=!0,this.signal._onabort))e(t);this.signal.onabort?.(t)}}};let t=h.env?.LRU_CACHE_IGNORE_AC_WARNING!=="1",e=()=>{t&&(t=!1,r("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.","NO_ABORT_CONTROLLER","ENOTSUP",e))}}Symbol("type");let l=t=>t&&t===Math.floor(t)&&t>0&&isFinite(t),n=t=>l(t)?t<=256?Uint8Array:t<=65536?Uint16Array:t<=0x100000000?Uint32Array:t<=Number.MAX_SAFE_INTEGER?d:null:null;class d extends Array{constructor(t){super(t),this.fill(0)}}class c{heap;length;static #t=!1;static create(t){let e=n(t);if(!e)return[];c.#t=!0;let i=new c(t,e);return c.#t=!1,i}constructor(t,e){if(!c.#t)throw TypeError("instantiate Stack using Stack.create(n)");this.heap=new e(t),this.length=0}push(t){this.heap[this.length++]=t}pop(){return this.heap[--this.length]}}class u{#e;#i;#s;#h;#r;#o;ttl;ttlResolution;ttlAutopurge;updateAgeOnGet;updateAgeOnHas;allowStale;noDisposeOnSet;noUpdateTTL;maxEntrySize;sizeCalculation;noDeleteOnFetchRejection;noDeleteOnStaleGet;allowStaleOnFetchAbort;allowStaleOnFetchRejection;ignoreFetchAbort;#a;#l;#n;#d;#c;#u;#f;#p;#g;#v;#m;#y;#S;#z;#L;#_;#x;static unsafeExposeInternals(t){return{starts:t.#S,ttls:t.#z,sizes:t.#y,keyMap:t.#n,keyList:t.#d,valList:t.#c,next:t.#u,prev:t.#f,get head(){return t.#p},get tail(){return t.#g},free:t.#v,isBackgroundFetch:e=>t.#k(e),backgroundFetch:(e,i,s,h)=>t.#F(e,i,s,h),moveToTail:e=>t.#T(e),indexes:e=>t.#b(e),rindexes:e=>t.#A(e),isStale:e=>t.#w(e)}}get max(){return this.#e}get maxSize(){return this.#i}get calculatedSize(){return this.#l}get size(){return this.#a}get fetchMethod(){return this.#r}get memoMethod(){return this.#o}get dispose(){return this.#s}get disposeAfter(){return this.#h}constructor(t){const{max:e=0,ttl:i,ttlResolution:h=1,ttlAutopurge:o,updateAgeOnGet:a,updateAgeOnHas:d,allowStale:f,dispose:p,disposeAfter:g,noDisposeOnSet:v,noUpdateTTL:m,maxSize:y=0,maxEntrySize:S=0,sizeCalculation:z,fetchMethod:L,memoMethod:_,noDeleteOnFetchRejection:x,noDeleteOnStaleGet:k,allowStaleOnFetchRejection:F,allowStaleOnFetchAbort:T,ignoreFetchAbort:b}=t;if(0!==e&&!l(e))throw TypeError("max option must be a nonnegative integer");const A=e?n(e):Array;if(!A)throw Error("invalid max value: "+e);if(this.#e=e,this.#i=y,this.maxEntrySize=S||this.#i,this.sizeCalculation=z,this.sizeCalculation){if(!this.#i&&!this.maxEntrySize)throw TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if("function"!=typeof this.sizeCalculation)throw TypeError("sizeCalculation set to non-function")}if(void 0!==_&&"function"!=typeof _)throw TypeError("memoMethod must be a function if defined");if(this.#o=_,void 0!==L&&"function"!=typeof L)throw TypeError("fetchMethod must be a function if specified");if(this.#r=L,this.#_=!!L,this.#n=new Map,this.#d=Array(e).fill(void 0),this.#c=Array(e).fill(void 0),this.#u=new A(e),this.#f=new A(e),this.#p=0,this.#g=0,this.#v=c.create(e),this.#a=0,this.#l=0,"function"==typeof p&&(this.#s=p),"function"==typeof g?(this.#h=g,this.#m=[]):(this.#h=void 0,this.#m=void 0),this.#L=!!this.#s,this.#x=!!this.#h,this.noDisposeOnSet=!!v,this.noUpdateTTL=!!m,this.noDeleteOnFetchRejection=!!x,this.allowStaleOnFetchRejection=!!F,this.allowStaleOnFetchAbort=!!T,this.ignoreFetchAbort=!!b,0!==this.maxEntrySize){if(0!==this.#i&&!l(this.#i))throw TypeError("maxSize must be a positive integer if specified");if(!l(this.maxEntrySize))throw TypeError("maxEntrySize must be a positive integer if specified");this.#E()}if(this.allowStale=!!f,this.noDeleteOnStaleGet=!!k,this.updateAgeOnGet=!!a,this.updateAgeOnHas=!!d,this.ttlResolution=l(h)||0===h?h:1,this.ttlAutopurge=!!o,this.ttl=i||0,this.ttl){if(!l(this.ttl))throw TypeError("ttl must be a positive integer if specified");this.#M()}if(0===this.#e&&0===this.ttl&&0===this.#i)throw TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!this.#e&&!this.#i){const t="LRU_CACHE_UNBOUNDED";s.has(t)||(s.add(t),r("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",t,u))}}getRemainingTTL(t){return this.#n.has(t)?1/0:0}#M(){let t=new d(this.#e),e=new d(this.#e);this.#z=t,this.#S=e,this.#O=(s,h,r=i.now())=>{if(e[s]=0!==h?r:0,t[s]=h,0!==h&&this.ttlAutopurge){let t=setTimeout(()=>{this.#w(s)&&this.#D(this.#d[s],"expire")},h+1);t.unref&&t.unref()}},this.#C=s=>{e[s]=0!==t[s]?i.now():0},this.#W=(i,r)=>{if(t[r]){let o=t[r],a=e[r];if(!o||!a)return;i.ttl=o,i.start=a,i.now=s||h();let l=i.now-a;i.remainingTTL=o-l}};let s=0,h=()=>{let t=i.now();if(this.ttlResolution>0){s=t;let e=setTimeout(()=>s=0,this.ttlResolution);e.unref&&e.unref()}return t};this.getRemainingTTL=i=>{let r=this.#n.get(i);if(void 0===r)return 0;let o=t[r],a=e[r];return o&&a?o-((s||h())-a):1/0},this.#w=i=>{let r=e[i],o=t[i];return!!o&&!!r&&(s||h())-r>o}}#C=()=>{};#W=()=>{};#O=()=>{};#w=()=>!1;#E(){let t=new d(this.#e);this.#l=0,this.#y=t,this.#R=e=>{this.#l-=t[e],t[e]=0},this.#I=(t,e,i,s)=>{if(this.#k(e))return 0;if(!l(i))if(s){if("function"!=typeof s)throw TypeError("sizeCalculation must be a function");if(!l(i=s(e,t)))throw TypeError("sizeCalculation return invalid (expect positive integer)")}else throw TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");return i},this.#B=(e,i,s)=>{if(t[e]=i,this.#i){let i=this.#i-t[e];for(;this.#l>i;)this.#U(!0)}this.#l+=t[e],s&&(s.entrySize=i,s.totalCalculatedSize=this.#l)}}#R=t=>{};#B=(t,e,i)=>{};#I=(t,e,i,s)=>{if(i||s)throw TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0};*#b({allowStale:t=this.allowStale}={}){if(this.#a)for(let e=this.#g;this.#j(e)&&((t||!this.#w(e))&&(yield e),e!==this.#p);)e=this.#f[e]}*#A({allowStale:t=this.allowStale}={}){if(this.#a)for(let e=this.#p;this.#j(e)&&((t||!this.#w(e))&&(yield e),e!==this.#g);)e=this.#u[e]}#j(t){return void 0!==t&&this.#n.get(this.#d[t])===t}*entries(){for(let t of this.#b())void 0===this.#c[t]||void 0===this.#d[t]||this.#k(this.#c[t])||(yield[this.#d[t],this.#c[t]])}*rentries(){for(let t of this.#A())void 0===this.#c[t]||void 0===this.#d[t]||this.#k(this.#c[t])||(yield[this.#d[t],this.#c[t]])}*keys(){for(let t of this.#b()){let e=this.#d[t];void 0===e||this.#k(this.#c[t])||(yield e)}}*rkeys(){for(let t of this.#A()){let e=this.#d[t];void 0===e||this.#k(this.#c[t])||(yield e)}}*values(){for(let t of this.#b())void 0===this.#c[t]||this.#k(this.#c[t])||(yield this.#c[t])}*rvalues(){for(let t of this.#A())void 0===this.#c[t]||this.#k(this.#c[t])||(yield this.#c[t])}[Symbol.iterator](){return this.entries()}[Symbol.toStringTag]="LRUCache";find(t,e={}){for(let i of this.#b()){let s=this.#c[i],h=this.#k(s)?s.__staleWhileFetching:s;if(void 0!==h&&t(h,this.#d[i],this))return this.get(this.#d[i],e)}}forEach(t,e=this){for(let i of this.#b()){let s=this.#c[i],h=this.#k(s)?s.__staleWhileFetching:s;void 0!==h&&t.call(e,h,this.#d[i],this)}}rforEach(t,e=this){for(let i of this.#A()){let s=this.#c[i],h=this.#k(s)?s.__staleWhileFetching:s;void 0!==h&&t.call(e,h,this.#d[i],this)}}purgeStale(){let t=!1;for(let e of this.#A({allowStale:!0}))this.#w(e)&&(this.#D(this.#d[e],"expire"),t=!0);return t}info(t){let e=this.#n.get(t);if(void 0===e)return;let s=this.#c[e],h=this.#k(s)?s.__staleWhileFetching:s;if(void 0===h)return;let r={value:h};if(this.#z&&this.#S){let t=this.#z[e],s=this.#S[e];t&&s&&(r.ttl=t-(i.now()-s),r.start=Date.now())}return this.#y&&(r.size=this.#y[e]),r}dump(){let t=[];for(let e of this.#b({allowStale:!0})){let s=this.#d[e],h=this.#c[e],r=this.#k(h)?h.__staleWhileFetching:h;if(void 0===r||void 0===s)continue;let o={value:r};if(this.#z&&this.#S){o.ttl=this.#z[e];let t=i.now()-this.#S[e];o.start=Math.floor(Date.now()-t)}this.#y&&(o.size=this.#y[e]),t.unshift([s,o])}return t}load(t){for(let[e,s]of(this.clear(),t)){if(s.start){let t=Date.now()-s.start;s.start=i.now()-t}this.set(e,s.value,s)}}set(t,e,i={}){if(void 0===e)return this.delete(t),this;let{ttl:s=this.ttl,start:h,noDisposeOnSet:r=this.noDisposeOnSet,sizeCalculation:o=this.sizeCalculation,status:a}=i,{noUpdateTTL:l=this.noUpdateTTL}=i,n=this.#I(t,e,i.size||0,o);if(this.maxEntrySize&&n>this.maxEntrySize)return a&&(a.set="miss",a.maxEntrySizeExceeded=!0),this.#D(t,"set"),this;let d=0===this.#a?void 0:this.#n.get(t);if(void 0===d)d=0===this.#a?this.#g:0!==this.#v.length?this.#v.pop():this.#a===this.#e?this.#U(!1):this.#a,this.#d[d]=t,this.#c[d]=e,this.#n.set(t,d),this.#u[this.#g]=d,this.#f[d]=this.#g,this.#g=d,this.#a++,this.#B(d,n,a),a&&(a.set="add"),l=!1;else{this.#T(d);let i=this.#c[d];if(e!==i){if(this.#_&&this.#k(i)){i.__abortController.abort(Error("replaced"));let{__staleWhileFetching:e}=i;void 0!==e&&!r&&(this.#L&&this.#s?.(e,t,"set"),this.#x&&this.#m?.push([e,t,"set"]))}else!r&&(this.#L&&this.#s?.(i,t,"set"),this.#x&&this.#m?.push([i,t,"set"]));if(this.#R(d),this.#B(d,n,a),this.#c[d]=e,a){a.set="replace";let t=i&&this.#k(i)?i.__staleWhileFetching:i;void 0!==t&&(a.oldValue=t)}}else a&&(a.set="update")}if(0===s||this.#z||this.#M(),this.#z&&(l||this.#O(d,s,h),a&&this.#W(a,d)),!r&&this.#x&&this.#m){let t,e=this.#m;for(;t=e?.shift();)this.#h?.(...t)}return this}pop(){try{for(;this.#a;){let t=this.#c[this.#p];if(this.#U(!0),this.#k(t)){if(t.__staleWhileFetching)return t.__staleWhileFetching}else if(void 0!==t)return t}}finally{if(this.#x&&this.#m){let t,e=this.#m;for(;t=e?.shift();)this.#h?.(...t)}}}#U(t){let e=this.#p,i=this.#d[e],s=this.#c[e];return this.#_&&this.#k(s)?s.__abortController.abort(Error("evicted")):(this.#L||this.#x)&&(this.#L&&this.#s?.(s,i,"evict"),this.#x&&this.#m?.push([s,i,"evict"])),this.#R(e),t&&(this.#d[e]=void 0,this.#c[e]=void 0,this.#v.push(e)),1===this.#a?(this.#p=this.#g=0,this.#v.length=0):this.#p=this.#u[e],this.#n.delete(i),this.#a--,e}has(t,e={}){let{updateAgeOnHas:i=this.updateAgeOnHas,status:s}=e,h=this.#n.get(t);if(void 0!==h){let t=this.#c[h];if(this.#k(t)&&void 0===t.__staleWhileFetching)return!1;if(!this.#w(h))return i&&this.#C(h),s&&(s.has="hit",this.#W(s,h)),!0;s&&(s.has="stale",this.#W(s,h))}else s&&(s.has="miss");return!1}peek(t,e={}){let{allowStale:i=this.allowStale}=e,s=this.#n.get(t);if(void 0===s||!i&&this.#w(s))return;let h=this.#c[s];return this.#k(h)?h.__staleWhileFetching:h}#F(t,e,i,s){let h=void 0===e?void 0:this.#c[e];if(this.#k(h))return h;let r=new o,{signal:a}=i;a?.addEventListener("abort",()=>r.abort(a.reason),{signal:r.signal});let l={signal:r.signal,options:i,context:s},n=(s,h=!1)=>{let{aborted:o}=r.signal,a=i.ignoreFetchAbort&&void 0!==s;return(i.status&&(o&&!h?(i.status.fetchAborted=!0,i.status.fetchError=r.signal.reason,a&&(i.status.fetchAbortIgnored=!0)):i.status.fetchResolved=!0),!o||a||h)?(this.#c[e]===u&&(void 0===s?u.__staleWhileFetching?this.#c[e]=u.__staleWhileFetching:this.#D(t,"fetch"):(i.status&&(i.status.fetchUpdated=!0),this.set(t,s,l.options))),s):d(r.signal.reason)},d=s=>{let{aborted:h}=r.signal,o=h&&i.allowStaleOnFetchAbort,a=o||i.allowStaleOnFetchRejection,l=a||i.noDeleteOnFetchRejection;if(this.#c[e]===u&&(l&&void 0!==u.__staleWhileFetching?o||(this.#c[e]=u.__staleWhileFetching):this.#D(t,"fetch")),a)return i.status&&void 0!==u.__staleWhileFetching&&(i.status.returnedStale=!0),u.__staleWhileFetching;if(u.__returned===u)throw s},c=(e,s)=>{let o=this.#r?.(t,h,l);o&&o instanceof Promise&&o.then(t=>e(void 0===t?void 0:t),s),r.signal.addEventListener("abort",()=>{(!i.ignoreFetchAbort||i.allowStaleOnFetchAbort)&&(e(void 0),i.allowStaleOnFetchAbort&&(e=t=>n(t,!0)))})};i.status&&(i.status.fetchDispatched=!0);let u=new Promise(c).then(n,t=>(i.status&&(i.status.fetchRejected=!0,i.status.fetchError=t),d(t))),f=Object.assign(u,{__abortController:r,__staleWhileFetching:h,__returned:void 0});return void 0===e?(this.set(t,f,{...l.options,status:void 0}),e=this.#n.get(t)):this.#c[e]=f,f}#k(t){return!!this.#_&&!!t&&t instanceof Promise&&t.hasOwnProperty("__staleWhileFetching")&&t.__abortController instanceof o}async fetch(t,e={}){let{allowStale:i=this.allowStale,updateAgeOnGet:s=this.updateAgeOnGet,noDeleteOnStaleGet:h=this.noDeleteOnStaleGet,ttl:r=this.ttl,noDisposeOnSet:o=this.noDisposeOnSet,size:a=0,sizeCalculation:l=this.sizeCalculation,noUpdateTTL:n=this.noUpdateTTL,noDeleteOnFetchRejection:d=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:c=this.allowStaleOnFetchRejection,ignoreFetchAbort:u=this.ignoreFetchAbort,allowStaleOnFetchAbort:f=this.allowStaleOnFetchAbort,context:p,forceRefresh:g=!1,status:v,signal:m}=e;if(!this.#_)return v&&(v.fetch="get"),this.get(t,{allowStale:i,updateAgeOnGet:s,noDeleteOnStaleGet:h,status:v});let y={allowStale:i,updateAgeOnGet:s,noDeleteOnStaleGet:h,ttl:r,noDisposeOnSet:o,size:a,sizeCalculation:l,noUpdateTTL:n,noDeleteOnFetchRejection:d,allowStaleOnFetchRejection:c,allowStaleOnFetchAbort:f,ignoreFetchAbort:u,status:v,signal:m},S=this.#n.get(t);if(void 0===S){v&&(v.fetch="miss");let e=this.#F(t,S,y,p);return e.__returned=e}{let e=this.#c[S];if(this.#k(e)){let t=i&&void 0!==e.__staleWhileFetching;return v&&(v.fetch="inflight",t&&(v.returnedStale=!0)),t?e.__staleWhileFetching:e.__returned=e}let h=this.#w(S);if(!g&&!h)return v&&(v.fetch="hit"),this.#T(S),s&&this.#C(S),v&&this.#W(v,S),e;let r=this.#F(t,S,y,p),o=void 0!==r.__staleWhileFetching&&i;return v&&(v.fetch=h?"stale":"refresh",o&&h&&(v.returnedStale=!0)),o?r.__staleWhileFetching:r.__returned=r}}async forceFetch(t,e={}){let i=await this.fetch(t,e);if(void 0===i)throw Error("fetch() returned undefined");return i}memo(t,e={}){let i=this.#o;if(!i)throw Error("no memoMethod provided to constructor");let{context:s,forceRefresh:h,...r}=e,o=this.get(t,r);if(!h&&void 0!==o)return o;let a=i(t,o,{options:r,context:s});return this.set(t,a,r),a}get(t,e={}){let{allowStale:i=this.allowStale,updateAgeOnGet:s=this.updateAgeOnGet,noDeleteOnStaleGet:h=this.noDeleteOnStaleGet,status:r}=e,o=this.#n.get(t);if(void 0!==o){let e=this.#c[o],a=this.#k(e);return(r&&this.#W(r,o),this.#w(o))?(r&&(r.get="stale"),a)?(r&&i&&void 0!==e.__staleWhileFetching&&(r.returnedStale=!0),i?e.__staleWhileFetching:void 0):(h||this.#D(t,"expire"),r&&i&&(r.returnedStale=!0),i?e:void 0):(r&&(r.get="hit"),a)?e.__staleWhileFetching:(this.#T(o),s&&this.#C(o),e)}r&&(r.get="miss")}#G(t,e){this.#f[e]=t,this.#u[t]=e}#T(t){t!==this.#g&&(t===this.#p?this.#p=this.#u[t]:this.#G(this.#f[t],this.#u[t]),this.#G(this.#g,t),this.#g=t)}delete(t){return this.#D(t,"delete")}#D(t,e){let i=!1;if(0!==this.#a){let s=this.#n.get(t);if(void 0!==s)if(i=!0,1===this.#a)this.#N(e);else{this.#R(s);let i=this.#c[s];if(this.#k(i)?i.__abortController.abort(Error("deleted")):(this.#L||this.#x)&&(this.#L&&this.#s?.(i,t,e),this.#x&&this.#m?.push([i,t,e])),this.#n.delete(t),this.#d[s]=void 0,this.#c[s]=void 0,s===this.#g)this.#g=this.#f[s];else if(s===this.#p)this.#p=this.#u[s];else{let t=this.#f[s];this.#u[t]=this.#u[s];let e=this.#u[s];this.#f[e]=this.#f[s]}this.#a--,this.#v.push(s)}}if(this.#x&&this.#m?.length){let t,e=this.#m;for(;t=e?.shift();)this.#h?.(...t)}return i}clear(){return this.#N("delete")}#N(t){for(let e of this.#A({allowStale:!0})){let i=this.#c[e];if(this.#k(i))i.__abortController.abort(Error("deleted"));else{let s=this.#d[e];this.#L&&this.#s?.(i,s,t),this.#x&&this.#m?.push([i,s,t])}}if(this.#n.clear(),this.#c.fill(void 0),this.#d.fill(void 0),this.#z&&this.#S&&(this.#z.fill(0),this.#S.fill(0)),this.#y&&this.#y.fill(0),this.#p=0,this.#g=0,this.#v.length=0,this.#l=0,this.#a=0,this.#x&&this.#m){let t,e=this.#m;for(;t=e?.shift();)this.#h?.(...t)}}}module.exports=e})(); \ No newline at end of file diff --git a/packages/node_modules/module-details-from-path.js b/packages/node_modules/module-details-from-path.js index 2b41364da5c..b7bc0deac7a 100644 --- a/packages/node_modules/module-details-from-path.js +++ b/packages/node_modules/module-details-from-path.js @@ -1 +1 @@ -(()=>{"use strict";var r={5335:(r,e,t)=>{var o=t(6928).sep;r.exports=function(r){var e=r.split(o),t=e.lastIndexOf("node_modules");if(-1!==t&&e[t+1]){for(var s="@"===e[t+1][0],a=s?e[t+1]+"/"+e[t+2]:e[t+1],n=s?3:2,p="",i=t+n-1,u=0;u<=i;u++)p+=u===i?e[u]:e[u]+o;for(var v="",x=e.length-1,f=t+n;f<=x;f++)v+=f===x?e[f]:e[f]+o;return{name:a,basedir:p,path:v}}}},6928:r=>{r.exports=require("path")}},e={},t=function t(o){var s=e[o];if(void 0!==s)return s.exports;var a=e[o]={exports:{}};return r[o](a,a.exports,t),a.exports}(5335);module.exports=t})(); \ No newline at end of file +(()=>{"use strict";var r={5335:function(r,e,t){var o=t(6928).sep;r.exports=function(r){var e=r.split(o),t=e.lastIndexOf("node_modules");if(-1!==t&&e[t+1]){for(var n="@"===e[t+1][0],s=n?e[t+1]+"/"+e[t+2]:e[t+1],a=n?3:2,i="",p=t+a-1,u=0;u<=p;u++)u===p?i+=e[u]:i+=e[u]+o;for(var f="",v=e.length-1,x=t+a;x<=v;x++)x===v?f+=e[x]:f+=e[x]+o;return{name:s,basedir:i,path:f}}}},6928:function(r){r.exports=require("path")}},e={},t=function t(o){var n=e[o];if(void 0!==n)return n.exports;var s=e[o]={exports:{}};return r[o](s,s.exports,t),s.exports}(5335);module.exports=t})(); \ No newline at end of file diff --git a/packages/node_modules/mutexify.js b/packages/node_modules/mutexify.js index abfc82e7c13..4a5e4ca5aa4 100644 --- a/packages/node_modules/mutexify.js +++ b/packages/node_modules/mutexify.js @@ -1 +1 @@ -(()=>{var e={2133:e=>{e.exports="function"==typeof queueMicrotask?queueMicrotask:e=>Promise.resolve().then(e)},4111:(e,o,r)=>{e.exports="undefined"!=typeof process&&"function"==typeof process.nextTick?process.nextTick.bind(process):r(2133)},7826:(e,o,r)=>{var t=r(4111);e.exports=function(){var e=[],o=null,r=function(){o(s)},n=function(s){return o?e.push(s):(o=s,n.locked=!0,t(r),0)};n.locked=!1;var s=function(r,t,s){o=null,n.locked=!1,e.length&&n(e.shift()),r&&r(t,s)};return n}}},o={},r=function r(t){var n=o[t];if(void 0!==n)return n.exports;var s=o[t]={exports:{}};return e[t](s,s.exports,r),s.exports}(7826);module.exports=r})(); \ No newline at end of file +(()=>{var e={7826:function(e,o,n){var t=n(4111);e.exports=function(){var e=[],o=null,n=function(){o(u)},r=function(u){return o?e.push(u):(o=u,r.locked=!0,t(n),0)};r.locked=!1;var u=function(n,t,u){o=null,r.locked=!1,e.length&&r(e.shift()),n&&n(t,u)};return r}},4111:function(e,o,n){e.exports="undefined"!=typeof process&&"function"==typeof process.nextTick?process.nextTick.bind(process):n(2133)},2133:function(e){e.exports="function"==typeof queueMicrotask?queueMicrotask:e=>Promise.resolve().then(e)}},o={},n=function n(t){var r=o[t];if(void 0!==r)return r.exports;var u=o[t]={exports:{}};return e[t](u,u.exports,n),u.exports}(7826);module.exports=n})(); \ No newline at end of file diff --git a/packages/node_modules/opentracing.js b/packages/node_modules/opentracing.js index 45a58c57aa3..9d4da4c9aff 100644 --- a/packages/node_modules/opentracing.js +++ b/packages/node_modules/opentracing.js @@ -1 +1 @@ -(()=>{"use strict";var t={388:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0});var r=n(7168);e.MockContext=r.default;var o=n(5071);e.MockSpan=o.default;var a=n(3554);e.MockTracer=a.default},1459:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0});e.default=function(t){this.buffer=t}},1572:function(t,e,n){var r,o=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},r(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var a=n(2472),i=new a.default,u=null,s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.startSpan=function(){var t=u||i;return t.startSpan.apply(t,arguments)},e.prototype.inject=function(){var t=u||i;return t.inject.apply(t,arguments)},e.prototype.extract=function(){var t=u||i;return t.extract.apply(t,arguments)},e}(a.default),p=new s;e.initGlobalTracer=function(t){u=t},e.globalTracer=function(){return p}},2472:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0});var r=n(8704),o=n(5645),a=n(5942),i=function(){function t(){}return t.prototype.startSpan=function(t,e){if(void 0===e&&(e={}),e.childOf){var n=r.childOf(e.childOf);e.references?e.references.push(n):e.references=[n],delete e.childOf}return this._startSpan(t,e)},t.prototype.inject=function(t,e,n){return t instanceof a.default&&(t=t.context()),this._inject(t,e,n)},t.prototype.extract=function(t,e){return this._extract(t,e)},t.prototype._startSpan=function(t,e){return o.span},t.prototype._inject=function(t,e,n){},t.prototype._extract=function(t,e){return o.spanContext},t}();e.Tracer=i,e.default=i},3554:function(t,e,n){var r,o=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},r(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var a=n(5365),i=n(9485),u=n(5071),s=function(t){function e(){var e=t.call(this)||this;return e._spans=[],e}return o(e,t),e.prototype._startSpan=function(t,e){var n=this._allocSpan();if(n.setOperationName(t),this._spans.push(n),e.references)for(var r=0,o=e.references;r{Object.defineProperty(e,"__esModule",{value:!0}),e.SPAN_KIND="span.kind",e.SPAN_KIND_RPC_CLIENT="client",e.SPAN_KIND_RPC_SERVER="server",e.SPAN_KIND_MESSAGING_PRODUCER="producer",e.SPAN_KIND_MESSAGING_CONSUMER="consumer",e.ERROR="error",e.COMPONENT="component",e.SAMPLING_PRIORITY="sampling.priority",e.PEER_SERVICE="peer.service",e.PEER_HOSTNAME="peer.hostname",e.PEER_ADDRESS="peer.address",e.PEER_HOST_IPV4="peer.ipv4",e.PEER_HOST_IPV6="peer.ipv6",e.PEER_PORT="peer.port",e.HTTP_URL="http.url",e.HTTP_METHOD="http.method",e.HTTP_STATUS_CODE="http.status_code",e.MESSAGE_BUS_DESTINATION="message_bus.destination",e.DB_INSTANCE="db.instance",e.DB_STATEMENT="db.statement",e.DB_TYPE="db.type",e.DB_USER="db.user"},5071:function(t,e,n){var r,o=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},r(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var a=n(5365),i=n(7168),u=function(t){function e(e){var n=t.call(this)||this;return n._mockTracer=e,n._uuid=n._generateUUID(),n._startMs=Date.now(),n._finishMs=0,n._operationName="",n._tags={},n._logs=[],n}return o(e,t),e.prototype._context=function(){return new i.default(this)},e.prototype._setOperationName=function(t){this._operationName=t},e.prototype._addTags=function(t){for(var e=0,n=Object.keys(t);e{function r(t){for(var n in t)e.hasOwnProperty(n)||(e[n]=t[n])}Object.defineProperty(e,"__esModule",{value:!0});var o=n(1459);e.BinaryCarrier=o.default;var a=n(4020);e.Tags=a;var i=n(5645),u=n(6296);e.Reference=u.default;var s=n(5942);e.Span=s.default;var p=n(8685);e.SpanContext=p.default;var c=n(2472);e.Tracer=c.Tracer;var f=n(388);e.MockTracer=f.MockTracer,r(n(1572)),r(n(6140)),r(n(8704)),i.initialize()},5645:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0});var r=n(5942),o=n(8685),a=n(2472);e.tracer=null,e.spanContext=null,e.span=null,e.initialize=function(){e.tracer=new a.default,e.span=new r.default,e.spanContext=new o.default}},5942:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0});var r=n(5645),o=function(){function t(){}return t.prototype.context=function(){return this._context()},t.prototype.tracer=function(){return this._tracer()},t.prototype.setOperationName=function(t){return this._setOperationName(t),this},t.prototype.setBaggageItem=function(t,e){return this._setBaggageItem(t,e),this},t.prototype.getBaggageItem=function(t){return this._getBaggageItem(t)},t.prototype.setTag=function(t,e){var n;return this._addTags(((n={})[t]=e,n)),this},t.prototype.addTags=function(t){return this._addTags(t),this},t.prototype.log=function(t,e){return this._log(t,e),this},t.prototype.logEvent=function(t,e){return this._log({event:t,payload:e})},t.prototype.finish=function(t){this._finish(t)},t.prototype._context=function(){return r.spanContext},t.prototype._tracer=function(){return r.tracer},t.prototype._setOperationName=function(t){},t.prototype._setBaggageItem=function(t,e){},t.prototype._getBaggageItem=function(t){},t.prototype._addTags=function(t){},t.prototype._log=function(t,e){},t.prototype._finish=function(t){},t}();e.Span=o,e.default=o},6140:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.FORMAT_BINARY="binary",e.FORMAT_TEXT_MAP="text_map",e.FORMAT_HTTP_HEADERS="http_headers",e.REFERENCE_CHILD_OF="child_of",e.REFERENCE_FOLLOWS_FROM="follows_from"},6296:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0});var r=n(5942),o=function(){function t(t,e){this._type=t,this._referencedContext=e instanceof r.default?e.context():e}return t.prototype.type=function(){return this._type},t.prototype.referencedContext=function(){return this._referencedContext},t}();e.default=o},7168:function(t,e,n){var r,o=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},r(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var a=function(t){function e(e){var n=t.call(this)||this;return n._span=e,n}return o(e,t),e.prototype.span=function(){return this._span},e}(n(8685).SpanContext);e.MockContext=a,e.default=a},8685:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(){}return t.prototype.toTraceId=function(){return""},t.prototype.toSpanId=function(){return""},t}();e.SpanContext=n,e.default=n},8704:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:!0});var r=n(6140),o=n(6296),a=n(5942);e.childOf=function(t){return t instanceof a.default&&(t=t.context()),new o.default(r.REFERENCE_CHILD_OF,t)},e.followsFrom=function(t){return t instanceof a.default&&(t=t.context()),new o.default(r.REFERENCE_FOLLOWS_FROM,t)}},9485:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t){var e=this;this.spans=t,this.spansByUUID={},this.spansByTag={},this.debugSpans=[],this.unfinishedSpans=[],t.forEach(function(t){0===t._finishMs&&e.unfinishedSpans.push(t),e.spansByUUID[t.uuid()]=t,e.debugSpans.push(t.debug());var n=t.tags();Object.keys(n).forEach(function(r){var o=n[r];e.spansByTag[r]=e.spansByTag[r]||{},e.spansByTag[r][o]=e.spansByTag[r][o]||[],e.spansByTag[r][o].push(t)})})}return t.prototype.firstSpanWithTagValue=function(t,e){var n=this.spansByTag[t];if(!n)return null;var r=n[e];return r?r[0]:null},t}();e.MockReport=n,e.default=n}},e={},n=function n(r){var o=e[r];if(void 0!==o)return o.exports;var a=e[r]={exports:{}};return t[r].call(a.exports,a,a.exports,n),a.exports}(5365);module.exports=n})(); \ No newline at end of file +(()=>{"use strict";var t={1459:function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){this.buffer=t}},6140:function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.FORMAT_BINARY="binary",e.FORMAT_TEXT_MAP="text_map",e.FORMAT_HTTP_HEADERS="http_headers",e.REFERENCE_CHILD_OF="child_of",e.REFERENCE_FOLLOWS_FROM="follows_from"},4020:function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.SPAN_KIND="span.kind",e.SPAN_KIND_RPC_CLIENT="client",e.SPAN_KIND_RPC_SERVER="server",e.SPAN_KIND_MESSAGING_PRODUCER="producer",e.SPAN_KIND_MESSAGING_CONSUMER="consumer",e.ERROR="error",e.COMPONENT="component",e.SAMPLING_PRIORITY="sampling.priority",e.PEER_SERVICE="peer.service",e.PEER_HOSTNAME="peer.hostname",e.PEER_ADDRESS="peer.address",e.PEER_HOST_IPV4="peer.ipv4",e.PEER_HOST_IPV6="peer.ipv6",e.PEER_PORT="peer.port",e.HTTP_URL="http.url",e.HTTP_METHOD="http.method",e.HTTP_STATUS_CODE="http.status_code",e.MESSAGE_BUS_DESTINATION="message_bus.destination",e.DB_INSTANCE="db.instance",e.DB_STATEMENT="db.statement",e.DB_TYPE="db.type",e.DB_USER="db.user"},8704:function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=n(6140),o=n(6296),i=n(5942);e.childOf=function(t){return t instanceof i.default&&(t=t.context()),new o.default(r.REFERENCE_CHILD_OF,t)},e.followsFrom=function(t){return t instanceof i.default&&(t=t.context()),new o.default(r.REFERENCE_FOLLOWS_FROM,t)}},1572:function(t,e,n){var r,o=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var i=n(2472),a=new i.default,u=null,s=new(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.startSpan=function(){var t=u||a;return t.startSpan.apply(t,arguments)},e.prototype.inject=function(){var t=u||a;return t.inject.apply(t,arguments)},e.prototype.extract=function(){var t=u||a;return t.extract.apply(t,arguments)},e}(i.default));e.initGlobalTracer=function(t){u=t},e.globalTracer=function(){return s}},5365:function(t,e,n){function r(t){for(var n in t)e.hasOwnProperty(n)||(e[n]=t[n])}Object.defineProperty(e,"__esModule",{value:!0}),e.BinaryCarrier=n(1459).default,e.Tags=n(4020);var o=n(5645);e.Reference=n(6296).default,e.Span=n(5942).default,e.SpanContext=n(8685).default,e.Tracer=n(2472).Tracer,e.MockTracer=n(388).MockTracer,r(n(1572)),r(n(6140)),r(n(8704)),o.initialize()},388:function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.MockContext=n(7168).default,e.MockSpan=n(5071).default,e.MockTracer=n(3554).default},7168:function(t,e,n){var r,o=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var i=function(t){function e(e){var n=t.call(this)||this;return n._span=e,n}return o(e,t),e.prototype.span=function(){return this._span},e}(n(8685).SpanContext);e.MockContext=i,e.default=i},9485:function(t,e){Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t){var e=this;this.spans=t,this.spansByUUID={},this.spansByTag={},this.debugSpans=[],this.unfinishedSpans=[],t.forEach(function(t){0===t._finishMs&&e.unfinishedSpans.push(t),e.spansByUUID[t.uuid()]=t,e.debugSpans.push(t.debug());var n=t.tags();Object.keys(n).forEach(function(r){var o=n[r];e.spansByTag[r]=e.spansByTag[r]||{},e.spansByTag[r][o]=e.spansByTag[r][o]||[],e.spansByTag[r][o].push(t)})})}return t.prototype.firstSpanWithTagValue=function(t,e){var n=this.spansByTag[t];if(!n)return null;var r=n[e];return r?r[0]:null},t}();e.MockReport=n,e.default=n},5071:function(t,e,n){var r,o=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var i=n(5365),a=n(7168),u=function(t){function e(e){var n=t.call(this)||this;return n._mockTracer=e,n._uuid=n._generateUUID(),n._startMs=Date.now(),n._finishMs=0,n._operationName="",n._tags={},n._logs=[],n}return o(e,t),e.prototype._context=function(){return new a.default(this)},e.prototype._setOperationName=function(t){this._operationName=t},e.prototype._addTags=function(t){for(var e=Object.keys(t),n=0;n{var e={5302:e=>{e.exports=function e(n,t,o){t=t||[];var i,s=(o=o||{}).strict,f=!1!==o.end,a=o.sensitive?"":"i",u=!1!==o.lookahead,p=0,l=t.length,g=0,c=0,x=0,h="";if(n instanceof RegExp){for(;i=r.exec(n.source);)"\\"!==i[0][0]&&t.push({name:i[1]||c++,optional:!1,offset:i.index});return n}if(Array.isArray(n))return n=n.map(function(r){return e(r,t,o).source}),new RegExp(n.join("|"),a);if("string"!=typeof n)throw new TypeError("path must be a string, array of strings, or regular expression");for(n=n.replace(/\\.|(\/)?(\.)?:(\w+)(\(.*?\))?(\*)?(\?)?|[.*]|\/\(/g,function(e,r,o,i,s,f,a,u){if("\\"===e[0])return h+=e,x+=2,e;if("."===e)return h+="\\.",p+=1,x+=1,"\\.";if(r||o?h="":h+=n.slice(x,u),x=u+e.length,"*"===e)return p+=3,"(.*)";if("/("===e)return h+="/",p+=2,"/(?:";r=r||"",o=o?"\\.":"",a=a||"",s=s?s.replace(/\\.|\*/,function(e){return"*"===e?"(.*)":e}):h?"((?:(?!/|"+h+").)+?)":"([^/"+o+"]+?)",t.push({name:i,optional:!!a,offset:u+p});var l="(?:"+o+r+s+(f?"((?:[/"+o+"].+?)?)":"")+")"+a;return p+=l.length-e.length,l});i=r.exec(n);)"\\"!==i[0][0]&&((l+g===t.length||t[l+g].offset>i.index)&&t.splice(l+g,0,{name:c++,optional:!1,offset:i.index}),g++);return n+=s?"":"/"===n[n.length-1]?"?":"/?",f?n+="$":"/"!==n[n.length-1]&&(n+=u?"(?=/|$)":"(?:/|$)"),new RegExp("^"+n,a)};var r=/\\.|\((?:\?<(.*?)>)?(?!\?)/g}},r={},n=function n(t){var o=r[t];if(void 0!==o)return o.exports;var i=r[t]={exports:{}};return e[t](i,i.exports,n),i.exports}(5302);module.exports=n})(); \ No newline at end of file +(()=>{var e={5302:function(e){e.exports=function e(n,t,o){t=t||[];var i,s=(o=o||{}).strict,f=!1!==o.end,a=o.sensitive?"":"i",u=!1!==o.lookahead,p=0,l=t.length,c=0,g=0,x=0,h="";if(n instanceof RegExp){for(;i=r.exec(n.source);)"\\"!==i[0][0]&&t.push({name:i[1]||g++,optional:!1,offset:i.index});return n}if(Array.isArray(n))return new RegExp((n=n.map(function(r){return e(r,t,o).source})).join("|"),a);if("string"!=typeof n)throw TypeError("path must be a string, array of strings, or regular expression");for(n=n.replace(/\\.|(\/)?(\.)?:(\w+)(\(.*?\))?(\*)?(\?)?|[.*]|\/\(/g,function(e,r,o,i,s,f,a,u){if("\\"===e[0])return h+=e,x+=2,e;if("."===e)return h+="\\.",p+=1,x+=1,"\\.";if(r||o?h="":h+=n.slice(x,u),x=u+e.length,"*"===e)return p+=3,"(.*)";if("/("===e)return h+="/",p+=2,"/(?:";r=r||"",o=o?"\\.":"",a=a||"",s=s?s.replace(/\\.|\*/,function(e){return"*"===e?"(.*)":e}):h?"((?:(?!/|"+h+").)+?)":"([^/"+o+"]+?)",t.push({name:i,optional:!!a,offset:u+p});var l="(?:"+o+r+s+(f?"((?:[/"+o+"].+?)?)":"")+")"+a;return p+=l.length-e.length,l});i=r.exec(n);)"\\"!==i[0][0]&&((l+c===t.length||t[l+c].offset>i.index)&&t.splice(l+c,0,{name:g++,optional:!1,offset:i.index}),c++);return n+=s?"":"/"===n[n.length-1]?"?":"/?",f?n+="$":"/"!==n[n.length-1]&&(n+=u?"(?=/|$)":"(?:/|$)"),RegExp("^"+n,a)};var r=/\\.|\((?:\?<(.*?)>)?(?!\?)/g}},r={},n=function n(t){var o=r[t];if(void 0!==o)return o.exports;var i=r[t]={exports:{}};return e[t](i,i.exports,n),i.exports}(5302);module.exports=n})(); \ No newline at end of file diff --git a/packages/node_modules/pprof-format.js b/packages/node_modules/pprof-format.js index a0689b78aff..6005921927b 100644 --- a/packages/node_modules/pprof-format.js +++ b/packages/node_modules/pprof-format.js @@ -1,2 +1 @@ -/*! For license information please see pprof-format.js.LICENSE.txt */ -(()=>{"use strict";var e={d:(t,n)=>{for(var s in n)e.o(n,s)&&!e.o(t,s)&&Object.defineProperty(t,s,{enumerable:!0,get:n[s]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};e.r(t),e.d(t,{Function:()=>M,Label:()=>U,Line:()=>P,Location:()=>O,Mapping:()=>A,Profile:()=>j,Sample:()=>V,StringTable:()=>L,ValueType:()=>v,emptyTableToken:()=>S});var n,s,i=function(e,t,n,s){if("a"===n&&!s)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!s:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?s:"a"===n?s.call(e):s?s.value:t.get(e)};const r=2n**32n-1n,o=2**32-1,a=o+1,c="undefined"==typeof Buffer?e=>(new TextEncoder).encode(e):e=>Buffer.from(e,"utf8");function h(e){if(!e.length)return 0;let t=0;for(;t=128;);return t}function u(e,t=0){return{value:e,offset:t}}function d(e,t){switch(e){case l:for(let e=0;e>>0)%a:Number(e&r)}(e),s=function(e){return"bigint"!=typeof e?e/a>>>0:Number(e>>32n&r)}(e);return t&&(s=~s>>>0,n=~n>>>0,++n>o&&(n=0,++s>o&&(s=0))),[s,n]}const l=0,m=2;function p(e){if(h(e)>4)return function(e){if(!e.length)return BigInt(0);let t=BigInt(127&e[0]),n=0;for(;e[n++]>=128;)t|=BigInt(127&e[n])<=128;)t|=(127&e[n])<<7*n;return t}function g(e){const t=[];let n=0;for(let s=0;s>>28|t<<4)>>>0,i=t>>>24;return 0!==i?i<128?9:10:0!==s?s<16384?s<128?5:6:s<2097152?7:8:n<16384?n<128?1:2:n<2097152?3:4}function b(e){return void 0===e?0:"number"==typeof e||"bigint"==typeof e?T(e)||1:e.length}function w(e){let t=0;for(const n of e)t+=b(n);return t}function B(e){const t=T(e);return t?1+t:0}function _(e){let t=0;for(const n of e)t+=T(n)||1;return t?1+T(t)+t:0}function k(e){const t=b(e);return t?1+T(t)+t:0}function I(e){let t=0;for(const n of e)t+=k(n);return t}function F(e,t,n){if(0===n||0n===n)return e[t++]=0,t;let[s,i]=f(n);for(;s;)e[t++]=127&i|128,i=(i>>>7|s<<25)>>>0,s>>>=7;for(;i>127;)e[t++]=127&i|128,i>>>=7;return e[t++]=i,t}const S=Symbol();class L{constructor(e){this.strings=new Array,n.set(this,new Array),s.set(this,new Map),e!==S&&this.dedup("")}get encodedLength(){let e=0;for(const t of i(this,n,"f"))e+=t.length;return e}_encodeToBuffer(e,t){for(const s of i(this,n,"f"))e.set(s,t),t+=s.length;return t}encode(e=new Uint8Array(this.encodedLength)){return this._encodeToBuffer(e,0),e}static _encodeStringFromUtf8(e){const t=new Uint8Array(1+e.length+(T(e.length)||1));let n=0;return t[n++]=50,n=F(t,n,e.length),e.length>0&&t.set(e,n++),t}static _encodeString(e){return L._encodeStringFromUtf8(c(e))}dedup(e){if("number"==typeof e)return e;if(!i(this,s,"f").has(e)){const t=this.strings.push(e)-1;i(this,s,"f").set(e,t),i(this,n,"f").push(L._encodeString(e))}return i(this,s,"f").get(e)}_decodeString(e){const t=(new TextDecoder).decode(e);i(this,s,"f").set(t,this.strings.push(t)-1),i(this,n,"f").push(L._encodeStringFromUtf8(e))}}function N(e,t){const n={};let s=0;for(;s>3,r=7&e[s];s++;const{offset:o,value:a}=d(r,e.slice(s));s+=a.length+o,t(n,i,a)}return n}n=new WeakMap,s=new WeakMap;class v{static create(e){return e instanceof v?e:new v(e)}constructor(e){this.type=e.type||0,this.unit=e.unit||0}get length(){let e=0;return e+=B(this.type),e+=B(this.unit),e}_encodeToBuffer(e,t=0){return this.type&&(e[t++]=8,t=F(e,t,this.type)),this.unit&&(e[t++]=16,t=F(e,t,this.unit)),t}encode(e=new Uint8Array(this.length)){return this._encodeToBuffer(e,0),e}static decodeValue(e,t,n){switch(t){case 1:e.type=p(n);break;case 2:e.unit=p(n)}}static decode(e){return new this(N(e,this.decodeValue))}}class U{static create(e){return e instanceof U?e:new U(e)}constructor(e){this.key=e.key||0,this.str=e.str||0,this.num=e.num||0,this.numUnit=e.numUnit||0}get length(){let e=0;return e+=B(this.key),e+=B(this.str),e+=B(this.num),e+=B(this.numUnit),e}_encodeToBuffer(e,t=0){return this.key&&(e[t++]=8,t=F(e,t,this.key)),this.str&&(e[t++]=16,t=F(e,t,this.str)),this.num&&(e[t++]=24,t=F(e,t,this.num)),this.numUnit&&(e[t++]=32,t=F(e,t,this.numUnit)),t}encode(e=new Uint8Array(this.length)){return this._encodeToBuffer(e,0),e}static decodeValue(e,t,n){switch(t){case 1:e.key=p(n);break;case 2:e.str=p(n);break;case 3:e.num=p(n);break;case 4:e.numUnit=p(n)}}static decode(e){return new this(N(e,this.decodeValue))}}class V{static create(e){return e instanceof V?e:new V(e)}constructor(e){this.locationId=e.locationId||[],this.value=e.value||[],this.label=(e.label||[]).map(U.create)}get length(){let e=0;return e+=_(this.locationId),e+=_(this.value),e+=I(this.label),e}_encodeToBuffer(e,t=0){if(this.locationId.length){e[t++]=10,t=F(e,t,w(this.locationId));for(const n of this.locationId)t=F(e,t,n)}if(this.value.length){e[t++]=18,t=F(e,t,w(this.value));for(const n of this.value)t=F(e,t,n)}for(const n of this.label)e[t++]=26,t=F(e,t,n.length),t=n._encodeToBuffer(e,t);return t}encode(e=new Uint8Array(this.length)){return this._encodeToBuffer(e,0),e}static decodeValue(e,t,n){switch(t){case 1:e.locationId=g(n);break;case 2:e.value=g(n);break;case 3:e.label=y(U.decode(n),e.label)}}static decode(e){return new this(N(e,this.decodeValue))}}class A{static create(e){return e instanceof A?e:new A(e)}constructor(e){this.id=e.id||0,this.memoryStart=e.memoryStart||0,this.memoryLimit=e.memoryLimit||0,this.fileOffset=e.fileOffset||0,this.filename=e.filename||0,this.buildId=e.buildId||0,this.hasFunctions=!!e.hasFunctions,this.hasFilenames=!!e.hasFilenames,this.hasLineNumbers=!!e.hasLineNumbers,this.hasInlineFrames=!!e.hasInlineFrames}get length(){let e=0;return e+=B(this.id),e+=B(this.memoryStart),e+=B(this.memoryLimit),e+=B(this.fileOffset),e+=B(this.filename),e+=B(this.buildId),e+=B(this.hasFunctions?1:0),e+=B(this.hasFilenames?1:0),e+=B(this.hasLineNumbers?1:0),e+=B(this.hasInlineFrames?1:0),e}_encodeToBuffer(e,t=0){return this.id&&(e[t++]=8,t=F(e,t,this.id)),this.memoryStart&&(e[t++]=16,t=F(e,t,this.memoryStart)),this.memoryLimit&&(e[t++]=24,t=F(e,t,this.memoryLimit)),this.fileOffset&&(e[t++]=32,t=F(e,t,this.fileOffset)),this.filename&&(e[t++]=40,t=F(e,t,this.filename)),this.buildId&&(e[t++]=48,t=F(e,t,this.buildId)),this.hasFunctions&&(e[t++]=56,t=F(e,t,1)),this.hasFilenames&&(e[t++]=64,t=F(e,t,1)),this.hasLineNumbers&&(e[t++]=72,t=F(e,t,1)),this.hasInlineFrames&&(e[t++]=80,t=F(e,t,1)),t}encode(e=new Uint8Array(this.length)){return this._encodeToBuffer(e,0),e}static decodeValue(e,t,n){switch(t){case 1:e.id=p(n);break;case 2:e.memoryStart=p(n);break;case 3:e.memoryLimit=p(n);break;case 4:e.fileOffset=p(n);break;case 5:e.filename=p(n);break;case 6:e.buildId=p(n);break;case 7:e.hasFunctions=!!p(n);break;case 8:e.hasFilenames=!!p(n);break;case 9:e.hasLineNumbers=!!p(n);break;case 10:e.hasInlineFrames=!!p(n)}}static decode(e){return new this(N(e,this.decodeValue))}}class P{static create(e){return e instanceof P?e:new P(e)}constructor(e){this.functionId=e.functionId||0,this.line=e.line||0}get length(){let e=0;return e+=B(this.functionId),e+=B(this.line),e}_encodeToBuffer(e,t=0){return this.functionId&&(e[t++]=8,t=F(e,t,this.functionId)),this.line&&(e[t++]=16,t=F(e,t,this.line)),t}encode(e=new Uint8Array(this.length)){return this._encodeToBuffer(e,0),e}static decodeValue(e,t,n){switch(t){case 1:e.functionId=p(n);break;case 2:e.line=p(n)}}static decode(e){return new this(N(e,this.decodeValue))}}class O{static create(e){return e instanceof O?e:new O(e)}constructor(e){this.id=e.id||0,this.mappingId=e.mappingId||0,this.address=e.address||0,this.line=(e.line||[]).map(P.create),this.isFolded=!!e.isFolded}get length(){let e=0;return e+=B(this.id),e+=B(this.mappingId),e+=B(this.address),e+=I(this.line),e+=B(this.isFolded?1:0),e}_encodeToBuffer(e,t=0){this.id&&(e[t++]=8,t=F(e,t,this.id)),this.mappingId&&(e[t++]=16,t=F(e,t,this.mappingId)),this.address&&(e[t++]=24,t=F(e,t,this.address));for(const n of this.line)e[t++]=34,t=F(e,t,n.length),t=n._encodeToBuffer(e,t);return this.isFolded&&(e[t++]=40,t=F(e,t,1)),t}encode(e=new Uint8Array(this.length)){return this._encodeToBuffer(e,0),e}static decodeValue(e,t,n){switch(t){case 1:e.id=p(n);break;case 2:e.mappingId=p(n);break;case 3:e.address=p(n);break;case 4:e.line=y(P.decode(n),e.line);break;case 5:e.isFolded=!!p(n)}}static decode(e){return new this(N(e,this.decodeValue))}}class M{static create(e){return e instanceof M?e:new M(e)}constructor(e){this.id=e.id||0,this.name=e.name||0,this.systemName=e.systemName||0,this.filename=e.filename||0,this.startLine=e.startLine||0}get length(){let e=0;return e+=B(this.id),e+=B(this.name),e+=B(this.systemName),e+=B(this.filename),e+=B(this.startLine),e}_encodeToBuffer(e,t=0){return this.id&&(e[t++]=8,t=F(e,t,this.id)),this.name&&(e[t++]=16,t=F(e,t,this.name)),this.systemName&&(e[t++]=24,t=F(e,t,this.systemName)),this.filename&&(e[t++]=32,t=F(e,t,this.filename)),this.startLine&&(e[t++]=40,t=F(e,t,this.startLine)),t}encode(e=new Uint8Array(this.length)){return this._encodeToBuffer(e,0),e}static decodeValue(e,t,n){switch(t){case 1:e.id=p(n);break;case 2:e.name=p(n);break;case 3:e.systemName=p(n);break;case 4:e.filename=p(n);break;case 5:e.startLine=p(n)}}static decode(e){return new this(N(e,this.decodeValue))}}class j{constructor(e={}){this.sampleType=(e.sampleType||[]).map(v.create),this.sample=(e.sample||[]).map(V.create),this.mapping=(e.mapping||[]).map(A.create),this.location=(e.location||[]).map(O.create),this.function=(e.function||[]).map(M.create),this.stringTable=e.stringTable||new L,this.dropFrames=e.dropFrames||0,this.keepFrames=e.keepFrames||0,this.timeNanos=e.timeNanos||0,this.durationNanos=e.durationNanos||0,this.periodType=e.periodType?v.create(e.periodType):void 0,this.period=e.period||0,this.comment=e.comment||[],this.defaultSampleType=e.defaultSampleType||0}get length(){let e=0;return e+=I(this.sampleType),e+=I(this.sample),e+=I(this.mapping),e+=I(this.location),e+=I(this.function),e+=this.stringTable.encodedLength,e+=B(this.dropFrames),e+=B(this.keepFrames),e+=B(this.timeNanos),e+=B(this.durationNanos),e+=k(this.periodType),e+=B(this.period),e+=_(this.comment),e+=B(this.defaultSampleType),e}_encodeSampleTypesToBuffer(e,t=0){for(const n of this.sampleType)e[t++]=10,t=F(e,t,n.length),t=n._encodeToBuffer(e,t);return t}_encodeSamplesToBuffer(e,t=0){for(const n of this.sample)e[t++]=18,t=F(e,t,n.length),t=n._encodeToBuffer(e,t);return t}_encodeMappingsToBuffer(e,t=0){for(const n of this.mapping)e[t++]=26,t=F(e,t,n.length),t=n._encodeToBuffer(e,t);return t}_encodeLocationsToBuffer(e,t=0){for(const n of this.location)e[t++]=34,t=F(e,t,n.length),t=n._encodeToBuffer(e,t);return t}_encodeFunctionsToBuffer(e,t=0){for(const n of this.function)e[t++]=42,t=F(e,t,n.length),t=n._encodeToBuffer(e,t);return t}_encodeBasicValuesToBuffer(e,t=0){if(this.dropFrames&&(e[t++]=56,t=F(e,t,this.dropFrames)),this.keepFrames&&(e[t++]=64,t=F(e,t,this.keepFrames)),this.timeNanos&&(e[t++]=72,t=F(e,t,this.timeNanos)),this.durationNanos&&(e[t++]=80,t=F(e,t,this.durationNanos)),void 0!==this.periodType&&(e[t++]=90,t=F(e,t,this.periodType.length),t=this.periodType._encodeToBuffer(e,t)),this.period&&(e[t++]=96,t=F(e,t,this.period)),this.comment.length){e[t++]=106,t=F(e,t,w(this.comment));for(const n of this.comment)t=F(e,t,n)}return this.defaultSampleType&&(e[t++]=112,t=F(e,t,this.defaultSampleType)),t}_encodeToBuffer(e,t=0){return t=this._encodeSampleTypesToBuffer(e,t),t=this._encodeSamplesToBuffer(e,t),t=this._encodeMappingsToBuffer(e,t),t=this._encodeLocationsToBuffer(e,t),t=this._encodeFunctionsToBuffer(e,t),t=this.stringTable._encodeToBuffer(e,t),this._encodeBasicValuesToBuffer(e,t)}async _encodeToBufferAsync(e,t=0){return t=this._encodeSampleTypesToBuffer(e,t),await new Promise(setImmediate),t=this._encodeSamplesToBuffer(e,t),await new Promise(setImmediate),t=this._encodeMappingsToBuffer(e,t),await new Promise(setImmediate),t=this._encodeLocationsToBuffer(e,t),await new Promise(setImmediate),t=this._encodeFunctionsToBuffer(e,t),await new Promise(setImmediate),t=this.stringTable._encodeToBuffer(e,t),await new Promise(setImmediate),this._encodeBasicValuesToBuffer(e,t)}encode(e=new Uint8Array(this.length)){return this._encodeToBuffer(e,0),e}async encodeAsync(e=new Uint8Array(this.length)){return await this._encodeToBufferAsync(e,0),e}static decodeValue(e,t,n){switch(t){case 1:e.sampleType=y(v.decode(n),e.sampleType);break;case 2:e.sample=y(V.decode(n),e.sample);break;case 3:e.mapping=y(A.decode(n),e.mapping);break;case 4:e.location=y(O.decode(n),e.location);break;case 5:e.function=y(M.decode(n),e.function);break;case 6:void 0===e.stringTable&&(e.stringTable=new L(S)),e.stringTable._decodeString(n);break;case 7:e.dropFrames=p(n);break;case 8:e.keepFrames=p(n);break;case 9:e.timeNanos=p(n);break;case 10:e.durationNanos=p(n);break;case 11:e.periodType=v.decode(n);break;case 12:e.period=p(n);break;case 13:e.comment=g(n);break;case 14:e.defaultSampleType=p(n)}}static decode(e){return new this(N(e,this.decodeValue))}}module.exports=t})(); \ No newline at end of file +(()=>{"use strict";var e,t,i={};i.d=(e,t)=>{for(var s in t)i.o(t,s)&&!i.o(e,s)&&Object.defineProperty(e,s,{enumerable:!0,get:t[s]})},i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var s={};i.r(s),i.d(s,{Function:()=>A,Label:()=>L,Line:()=>U,Location:()=>V,Mapping:()=>v,Profile:()=>P,Sample:()=>N,StringTable:()=>I,ValueType:()=>S,emptyTableToken:()=>k});var n=function(e,t,i,s){if("a"===i&&!s)throw TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!s:!t.has(e))throw TypeError("Cannot read private member from an object whose class did not declare it");return"m"===i?s:"a"===i?s.call(e):s?s.value:t.get(e)};let r=2n**32n-1n,a=0x100000000-1,o=0x100000000-1+1,h="undefined"==typeof Buffer?e=>new TextEncoder().encode(e):e=>Buffer.from(e,"utf8");function c(e){if(!e.length)return 0;let t=0;for(;t=128;);return t}function d(e,t=0){return{value:e,offset:t}}function u(e){var t,i;let s=e<0;s&&(e=-e);let n="bigint"!=typeof(t=e)?(t>>>0)%o:Number(t&r),h="bigint"!=typeof(i=e)?i/o>>>0:Number(i>>32n&r);return s&&(h=~h>>>0,n=~n>>>0,++n>a&&(n=0,++h>a&&(h=0))),[h,n]}function l(e){if(c(e)>4){if(!e.length)return BigInt(0);let t=BigInt(127&e[0]),i=0;for(;e[i++]>=128;)t|=BigInt(127&e[i])<=128;)t|=(127&e[i])<<7*i;return t}function f(e){let t=[],i=0;for(let s=0;s>>28|t<<4)>>>0,n=t>>>24;return 0!==n?n<128?9:10:0!==s?s<16384?s<128?5:6:s<2097152?7:8:i<16384?i<128?1:2:i<2097152?3:4}function g(e){return void 0===e?0:"number"==typeof e||"bigint"==typeof e?p(e)||1:e.length}function y(e){let t=0;for(let i of e)t+=g(i);return t}function T(e){let t=p(e);return t?1+t:0}function b(e){let t=0;for(let i of e)t+=p(i)||1;return t?1+p(t)+t:0}function w(e){let t=g(e);return t?1+p(t)+t:0}function B(e){let t=0;for(let i of e)t+=w(i);return t}function _(e,t,i){if(0===i||0n===i)return e[t++]=0,t;let[s,n]=u(i);for(;s;)e[t++]=127&n|128,n=(n>>>7|s<<25)>>>0,s>>>=7;for(;n>127;)e[t++]=127&n|128,n>>>=7;return e[t++]=n,t}let k=Symbol();class I{constructor(i){this.strings=[],e.set(this,[]),t.set(this,new Map),i!==k&&this.dedup("")}get encodedLength(){let t=0;for(let i of n(this,e,"f"))t+=i.length;return t}_encodeToBuffer(t,i){for(let s of n(this,e,"f"))t.set(s,i),i+=s.length;return i}encode(e=new Uint8Array(this.encodedLength)){return this._encodeToBuffer(e,0),e}static _encodeStringFromUtf8(e){let t=new Uint8Array(1+e.length+(p(e.length)||1)),i=0;return t[i++]=50,i=_(t,i,e.length),e.length>0&&t.set(e,i++),t}static _encodeString(e){return I._encodeStringFromUtf8(h(e))}dedup(i){if("number"==typeof i)return i;if(!n(this,t,"f").has(i)){let s=this.strings.push(i)-1;n(this,t,"f").set(i,s),n(this,e,"f").push(I._encodeString(i))}return n(this,t,"f").get(i)}_decodeString(i){let s=new TextDecoder().decode(i);n(this,t,"f").set(s,this.strings.push(s)-1),n(this,e,"f").push(I._encodeStringFromUtf8(i))}}function F(e,t){let i={},s=0;for(;s>3,r=7&e[s];s++;let{offset:a,value:o}=function(e,t){switch(e){case 0:for(let e=0;e{"use strict";var __webpack_modules__={361:(e,t,r)=>{var i=t,n=r(3262),o=["double","float","int32","uint32","sint32","fixed32","sfixed32","int64","uint64","sint64","fixed64","sfixed64","bool","string","bytes"];function s(e,t){var r=0,i={};for(t|=0;r{e.exports=function(e){var t=n.codegen(["m"],e.name+"$verify")('if(typeof m!=="object"||m===null)')("return%j","object expected"),r={};e.oneofsArray.length&&t("var p={}");for(var i=0;i{e.exports=p;var t=/[\s{}=;:[\],'"()<>]/g,r=/(?:"([^"\\]*(?:\\.[^"\\]*)*)")/g,i=/(?:'([^'\\]*(?:\\.[^'\\]*)*)')/g,n=/^ *[*/]+ */,o=/^\s*\*?\/*/,s=/\n/g,a=/\s/,u=/\\(.?)/g,f={0:"\0",r:"\r",n:"\n",t:"\t"};function l(e){return e.replace(u,function(e,t){switch(t){case"\\":case"":return t;default:return f[t]||""}})}function p(e,u){e=e.toString();var f=0,p=e.length,h=1,c=0,d={},y=[],v=null;function m(e){return Error("illegal "+e+" (line "+h+")")}function g(t){return e.charAt(t)}function b(t,r,i){var a,f={type:e.charAt(t++),lineEmpty:!1,leading:i},l=t-(u?2:3);do{if(--l<0||"\n"===(a=e.charAt(l))){f.lineEmpty=!0;break}}while(" "===a||"\t"===a);for(var p=e.substring(t,r).split(s),y=0;y0)return y.shift();if(v)return function(){var t="'"===v?i:r;t.lastIndex=f-1;var n=t.exec(e);if(!n)throw m("string");return f=t.lastIndex,k(v),v=null,l(n[1])}();var n,o,s,c,d,O=0===f;do{if(f===p)return null;for(n=!1;a.test(s=g(f));)if("\n"===s&&(O=!0,++h),++f===p)return null;if("/"===g(f)){if(++f===p)throw m("comment");if("/"===g(f))if(u){if(c=f,d=!1,_(f-1)){d=!0;do{if((f=w(f))===p)break;if(f++,!O)break}while(_(f))}else f=Math.min(p,w(f)+1);d&&(b(c,f,O),O=!0),h++,n=!0}else{for(d="/"===g(c=f+1);"\n"!==g(++f);)if(f===p)return null;++f,d&&(b(c,f-1,O),O=!0),++h,n=!0}else{if("*"!==(s=g(f)))return"/";c=f+1,d=u||"*"===g(c);do{if("\n"===s&&++h,++f===p)throw m("comment");o=s,s=g(f)}while("*"!==o||"/"!==s);++f,d&&(b(c,f-2,O),O=!0),n=!0}}}while(n);var j=f;if(t.lastIndex=0,!t.test(g(j++)))for(;j{var i=t,n=r(5643),o=r(3262);function s(e,t,r,i){var o=!1;if(t.resolvedType)if(t.resolvedType instanceof n){e("switch(d%s){",i);for(var s=t.resolvedType.values,a=Object.keys(s),u=0;u>>0",i,i);break;case"int32":case"sint32":case"sfixed32":e("m%s=d%s|0",i,i);break;case"uint64":f=!0;case"int64":case"sint64":case"fixed64":case"sfixed64":e("if(util.Long)")("(m%s=util.Long.fromValue(d%s)).unsigned=%j",i,i,f)('else if(typeof d%s==="string")',i)("m%s=parseInt(d%s,10)",i,i)('else if(typeof d%s==="number")',i)("m%s=d%s",i,i)('else if(typeof d%s==="object")',i)("m%s=new util.LongBits(d%s.low>>>0,d%s.high>>>0).toNumber(%s)",i,i,i,f?"true":"");break;case"bytes":e('if(typeof d%s==="string")',i)("util.base64.decode(d%s,m%s=util.newBuffer(util.base64.length(d%s)),0)",i,i,i)("else if(d%s.length >= 0)",i)("m%s=d%s",i,i);break;case"string":e("m%s=String(d%s)",i,i);break;case"bool":e("m%s=Boolean(d%s)",i,i)}}return e}function a(e,t,r,i){if(t.resolvedType)t.resolvedType instanceof n?e("d%s=o.enums===String?(types[%i].values[m%s]===undefined?m%s:types[%i].values[m%s]):m%s",i,r,i,i,r,i,i):e("d%s=types[%i].toObject(m%s,o)",i,r,i);else{var o=!1;switch(t.type){case"double":case"float":e("d%s=o.json&&!isFinite(m%s)?String(m%s):m%s",i,i,i,i);break;case"uint64":o=!0;case"int64":case"sint64":case"fixed64":case"sfixed64":e('if(typeof m%s==="number")',i)("d%s=o.longs===String?String(m%s):m%s",i,i,i)("else")("d%s=o.longs===String?util.Long.prototype.toString.call(m%s):o.longs===Number?new util.LongBits(m%s.low>>>0,m%s.high>>>0).toNumber(%s):m%s",i,i,i,i,o?"true":"",i);break;case"bytes":e("d%s=o.bytes===String?util.base64.encode(m%s,0,m%s.length):o.bytes===Array?Array.prototype.slice.call(m%s):m%s",i,i,i,i,i);break;default:e("d%s=m%s",i,i)}}return e}i.fromObject=function(e){var t=e.fieldsArray,r=o.codegen(["d"],e.name+"$fromObject")("if(d instanceof this.ctor)")("return d");if(!t.length)return r("return new this.ctor");r("var m=new this.ctor");for(var i=0;i{e.exports=o;var i=r(3449);(o.prototype=Object.create(i.prototype)).constructor=o;var n=r(3610);function o(){i.call(this)}function s(e,t,r){e.length<40?n.utf8.write(e,t,r):t.utf8Write?t.utf8Write(e,r):t.write(e,r)}o._configure=function(){o.alloc=n._Buffer_allocUnsafe,o.writeBytesBuffer=n.Buffer&&n.Buffer.prototype instanceof Uint8Array&&"set"===n.Buffer.prototype.set.name?function(e,t,r){t.set(e,r)}:function(e,t,r){if(e.copy)e.copy(t,r,0,e.length);else for(var i=0;i>>0;return this.uint32(t),t&&this._push(o.writeBytesBuffer,t,e),this},o.prototype.string=function(e){var t=n.Buffer.byteLength(e);return this.uint32(t),t&&this._push(s,t,e),this},o._configure()},1080:(e,t,r)=>{e.exports=function(e){for(var t,r=o.codegen(["m","w"],e.name+"$encode")("if(!w)")("w=Writer.create()"),a=e.fieldsArray.slice().sort(o.compareFieldsById),u=0;u>>0,8|n.mapKey[f.keyType],f.keyType),void 0===h?r("types[%i].encode(%s[ks[i]],w.uint32(18).fork()).ldelim().ldelim()",l,t):r(".uint32(%i).%s(%s[ks[i]]).ldelim()",16|h,p,t),r("}")("}")):f.repeated?(r("if(%s!=null&&%s.length){",t,t),f.packed&&void 0!==n.packed[p]?r("w.uint32(%i).fork()",(f.id<<3|2)>>>0)("for(var i=0;i<%s.length;++i)",t)("w.%s(%s[i])",p,t)("w.ldelim()"):(r("for(var i=0;i<%s.length;++i)",t),void 0===h?s(r,f,l,t+"[i]"):r("w.uint32(%i).%s(%s[i])",(f.id<<3|h)>>>0,p,t)),r("}")):(f.optional&&r("if(%s!=null&&Object.hasOwnProperty.call(m,%j))",t,f.name),void 0===h?s(r,f,l,t):r("w.uint32(%i).%s(%s)",(f.id<<3|h)>>>0,p,t))}return r("return w")};var i=r(5643),n=r(361),o=r(3262);function s(e,t,r,i){return t.delimited?e("types[%i].encode(%s,w.uint32(%i)).uint32(%i)",r,i,(t.id<<3|3)>>>0,(t.id<<3|4)>>>0):e("types[%i].encode(%s,w.uint32(%i).fork()).ldelim()",r,i,(t.id<<3|2)>>>0)}},1344:(e,t,r)=>{e.exports=f;var i=r(7209);((f.prototype=Object.create(i.prototype)).constructor=f).className="Field";var n,o=r(5643),s=r(361),a=r(3262),u=/^required|optional|repeated$/;function f(e,t,r,n,o,f,l){if(a.isObject(n)?(l=o,f=n,n=o=void 0):a.isObject(o)&&(l=f,f=o,o=void 0),i.call(this,e,f),!a.isInteger(t)||t<0)throw TypeError("id must be a non-negative integer");if(!a.isString(r))throw TypeError("type must be a string");if(void 0!==n&&!u.test(n=n.toString().toLowerCase()))throw TypeError("rule must be a string rule");if(void 0!==o&&!a.isString(o))throw TypeError("extend must be a string");"proto3_optional"===n&&(n="optional"),this.rule=n&&"optional"!==n?n:void 0,this.type=r,this.id=t,this.extend=o||void 0,this.repeated="repeated"===n,this.map=!1,this.message=null,this.partOf=null,this.typeDefault=null,this.defaultValue=null,this.long=!!a.Long&&void 0!==s.long[r],this.bytes="bytes"===r,this.resolvedType=null,this.extensionField=null,this.declaringField=null,this.comment=l}f.fromJSON=function(e,t){var r=new f(e,t.id,t.type,t.rule,t.extend,t.options,t.comment);return t.edition&&(r._edition=t.edition),r._defaultEdition="proto3",r},Object.defineProperty(f.prototype,"required",{get:function(){return"LEGACY_REQUIRED"===this._features.field_presence}}),Object.defineProperty(f.prototype,"optional",{get:function(){return!this.required}}),Object.defineProperty(f.prototype,"delimited",{get:function(){return this.resolvedType instanceof n&&"DELIMITED"===this._features.message_encoding}}),Object.defineProperty(f.prototype,"packed",{get:function(){return"PACKED"===this._features.repeated_field_encoding}}),Object.defineProperty(f.prototype,"hasPresence",{get:function(){return!this.repeated&&!this.map&&(this.partOf||this.declaringField||this.extensionField||"IMPLICIT"!==this._features.field_presence)}}),f.prototype.setOption=function(e,t,r){return i.prototype.setOption.call(this,e,t,r)},f.prototype.toJSON=function(e){var t=!!e&&Boolean(e.keepComments);return a.toObject(["edition",this._editionToJSON(),"rule","optional"!==this.rule&&this.rule||void 0,"type",this.type,"id",this.id,"extend",this.extend,"options",this.options,"comment",t?this.comment:void 0])},f.prototype.resolve=function(){if(this.resolved)return this;if(void 0===(this.typeDefault=s.defaults[this.type])?(this.resolvedType=(this.declaringField?this.declaringField.parent:this.parent).lookupTypeOrEnum(this.type),this.resolvedType instanceof n?this.typeDefault=null:this.typeDefault=this.resolvedType.values[Object.keys(this.resolvedType.values)[0]]):this.options&&this.options.proto3_optional&&(this.typeDefault=null),this.options&&null!=this.options.default&&(this.typeDefault=this.options.default,this.resolvedType instanceof o&&"string"==typeof this.typeDefault&&(this.typeDefault=this.resolvedType.values[this.typeDefault])),this.options&&(void 0===this.options.packed||!this.resolvedType||this.resolvedType instanceof o||delete this.options.packed,Object.keys(this.options).length||(this.options=void 0)),this.long)this.typeDefault=a.Long.fromNumber(this.typeDefault,"u"===this.type.charAt(0)),Object.freeze&&Object.freeze(this.typeDefault);else if(this.bytes&&"string"==typeof this.typeDefault){var e;a.base64.test(this.typeDefault)?a.base64.decode(this.typeDefault,e=a.newBuffer(a.base64.length(this.typeDefault)),0):a.utf8.write(this.typeDefault,e=a.newBuffer(a.utf8.length(this.typeDefault)),0),this.typeDefault=e}return this.map?this.defaultValue=a.emptyObject:this.repeated?this.defaultValue=a.emptyArray:this.defaultValue=this.typeDefault,this.parent instanceof n&&(this.parent.ctor.prototype[this.name]=this.defaultValue),i.prototype.resolve.call(this)},f.prototype._inferLegacyProtoFeatures=function(e){if("proto2"!==e&&"proto3"!==e)return{};var t={};if("required"===this.rule&&(t.field_presence="LEGACY_REQUIRED"),this.parent&&void 0===s.defaults[this.type]){var r=this.parent.get(this.type.split(".").pop());r&&r instanceof n&&r.group&&(t.message_encoding="DELIMITED")}return!0===this.getOption("packed")?t.repeated_field_encoding="PACKED":!1===this.getOption("packed")&&(t.repeated_field_encoding="EXPANDED"),t},f.prototype._resolveFeatures=function(e){return i.prototype._resolveFeatures.call(this,this._edition||e)},f.d=function(e,t,r,i){return"function"==typeof t?t=a.decorateType(t).name:t&&"object"==typeof t&&(t=a.decorateEnum(t).name),function(n,o){a.decorateType(n.constructor).add(new f(o,e,t,r,{default:i}))}},f._configure=function(e){n=e}},1447:(e,t)=>{var r=t;r.length=function(e){for(var t=0,r=0,i=0;i191&&i<224?o[s++]=(31&i)<<6|63&e[t++]:i>239&&i<365?(i=((7&i)<<18|(63&e[t++])<<12|(63&e[t++])<<6|63&e[t++])-65536,o[s++]=55296+(i>>10),o[s++]=56320+(1023&i)):o[s++]=(15&i)<<12|(63&e[t++])<<6|63&e[t++],s>8191&&((n||(n=[])).push(String.fromCharCode.apply(String,o)),s=0);return n?(s&&n.push(String.fromCharCode.apply(String,o.slice(0,s))),n.join("")):String.fromCharCode.apply(String,o.slice(0,s))},r.write=function(e,t,r){for(var i,n,o=r,s=0;s>6|192,t[r++]=63&i|128):55296==(64512&i)&&56320==(64512&(n=e.charCodeAt(s+1)))?(i=65536+((1023&i)<<10)+(1023&n),++s,t[r++]=i>>18|240,t[r++]=i>>12&63|128,t[r++]=i>>6&63|128,t[r++]=63&i|128):(t[r++]=i>>12|224,t[r++]=i>>6&63|128,t[r++]=63&i|128);return r-o}},1457:(e,t,r)=>{e.exports=s;var i=r(7209);((s.prototype=Object.create(i.prototype)).constructor=s).className="OneOf";var n=r(1344),o=r(3262);function s(e,t,r,n){if(Array.isArray(t)||(r=t,t=void 0),i.call(this,e,r),void 0!==t&&!Array.isArray(t))throw TypeError("fieldNames must be an Array");this.oneof=t||[],this.fieldsArray=[],this.comment=n}function a(e){if(e.parent)for(var t=0;t-1&&this.oneof.splice(t,1),e.partOf=null,this},s.prototype.onAdd=function(e){i.prototype.onAdd.call(this,e);for(var t=0;t{e.exports=n;var i=r(3610);function n(e,t){this.lo=e>>>0,this.hi=t>>>0}var o=n.zero=new n(0,0);o.toNumber=function(){return 0},o.zzEncode=o.zzDecode=function(){return this},o.length=function(){return 1};var s=n.zeroHash="\0\0\0\0\0\0\0\0";n.fromNumber=function(e){if(0===e)return o;var t=e<0;t&&(e=-e);var r=e>>>0,i=(e-r)/4294967296>>>0;return t&&(i=~i>>>0,r=~r>>>0,++r>4294967295&&(r=0,++i>4294967295&&(i=0))),new n(r,i)},n.from=function(e){if("number"==typeof e)return n.fromNumber(e);if(i.isString(e)){if(!i.Long)return n.fromNumber(parseInt(e,10));e=i.Long.fromString(e)}return e.low||e.high?new n(e.low>>>0,e.high>>>0):o},n.prototype.toNumber=function(e){if(!e&&this.hi>>>31){var t=1+~this.lo>>>0,r=~this.hi>>>0;return t||(r=r+1>>>0),-(t+4294967296*r)}return this.lo+4294967296*this.hi},n.prototype.toLong=function(e){return i.Long?new i.Long(0|this.lo,0|this.hi,Boolean(e)):{low:0|this.lo,high:0|this.hi,unsigned:Boolean(e)}};var a=String.prototype.charCodeAt;n.fromHash=function(e){return e===s?o:new n((a.call(e,0)|a.call(e,1)<<8|a.call(e,2)<<16|a.call(e,3)<<24)>>>0,(a.call(e,4)|a.call(e,5)<<8|a.call(e,6)<<16|a.call(e,7)<<24)>>>0)},n.prototype.toHash=function(){return String.fromCharCode(255&this.lo,this.lo>>>8&255,this.lo>>>16&255,this.lo>>>24,255&this.hi,this.hi>>>8&255,this.hi>>>16&255,this.hi>>>24)},n.prototype.zzEncode=function(){var e=this.hi>>31;return this.hi=((this.hi<<1|this.lo>>>31)^e)>>>0,this.lo=(this.lo<<1^e)>>>0,this},n.prototype.zzDecode=function(){var e=-(1&this.lo);return this.lo=((this.lo>>>1|this.hi<<31)^e)>>>0,this.hi=(this.hi>>>1^e)>>>0,this},n.prototype.length=function(){var e=this.lo,t=(this.lo>>>28|this.hi<<4)>>>0,r=this.hi>>>24;return 0===r?0===t?e<16384?e<128?1:2:e<2097152?3:4:t<16384?t<128?5:6:t<2097152?7:8:r<128?9:10}},2549:(e,t,r)=>{e.exports=r(9100)},2551:(e,t,r)=>{e.exports=n;var i=r(3610);function n(e){if(e)for(var t=Object.keys(e),r=0;r{e.exports=o;var i=r(6237);(o.prototype=Object.create(i.prototype)).constructor=o;var n=r(3610);function o(e){i.call(this,e)}o._configure=function(){n.Buffer&&(o.prototype._slice=n.Buffer.prototype.slice)},o.prototype.string=function(){var e=this.uint32();return this.buf.utf8Slice?this.buf.utf8Slice(this.pos,this.pos=Math.min(this.pos+e,this.len)):this.buf.toString("utf-8",this.pos,this.pos=Math.min(this.pos+e,this.len))},o._configure()},3262:(e,t,r)=>{var i,n,o=e.exports=r(3610),s=r(4529);o.codegen=r(8561),o.fetch=r(5212),o.path=r(9207),o.fs=o.inquire("fs"),o.toArray=function(e){if(e){for(var t=Object.keys(e),r=new Array(t.length),i=0;i0)t[o]=e(t[o]||{},r,n);else{var s=t[o];if(s&&i)return t;s&&(n=[].concat(s).concat(n)),t[o]=n}return t}(e,t=t.split("."),r)},Object.defineProperty(o,"decorateRoot",{get:function(){return s.decorated||(s.decorated=new(r(5330)))}})},3449:(e,t,r)=>{e.exports=p;var i,n=r(3610),o=n.LongBits,s=n.base64,a=n.utf8;function u(e,t,r){this.fn=e,this.len=t,this.next=void 0,this.val=r}function f(){}function l(e){this.head=e.head,this.tail=e.tail,this.len=e.len,this.next=e.states}function p(){this.len=0,this.head=new u(f,0,0),this.tail=this.head,this.states=null}var h=function(){return n.Buffer?function(){return(p.create=function(){return new i})()}:function(){return new p}};function c(e,t,r){t[r]=255&e}function d(e,t){this.len=e,this.next=void 0,this.val=t}function y(e,t,r){for(;e.hi;)t[r++]=127&e.lo|128,e.lo=(e.lo>>>7|e.hi<<25)>>>0,e.hi>>>=7;for(;e.lo>127;)t[r++]=127&e.lo|128,e.lo=e.lo>>>7;t[r++]=e.lo}function v(e,t,r){t[r]=255&e,t[r+1]=e>>>8&255,t[r+2]=e>>>16&255,t[r+3]=e>>>24}p.create=h(),p.alloc=function(e){return new n.Array(e)},n.Array!==Array&&(p.alloc=n.pool(p.alloc,n.Array.prototype.subarray)),p.prototype._push=function(e,t,r){return this.tail=this.tail.next=new u(e,t,r),this.len+=t,this},d.prototype=Object.create(u.prototype),d.prototype.fn=function(e,t,r){for(;e>127;)t[r++]=127&e|128,e>>>=7;t[r]=e},p.prototype.uint32=function(e){return this.len+=(this.tail=this.tail.next=new d((e>>>=0)<128?1:e<16384?2:e<2097152?3:e<268435456?4:5,e)).len,this},p.prototype.int32=function(e){return e<0?this._push(y,10,o.fromNumber(e)):this.uint32(e)},p.prototype.sint32=function(e){return this.uint32((e<<1^e>>31)>>>0)},p.prototype.uint64=function(e){var t=o.from(e);return this._push(y,t.length(),t)},p.prototype.int64=p.prototype.uint64,p.prototype.sint64=function(e){var t=o.from(e).zzEncode();return this._push(y,t.length(),t)},p.prototype.bool=function(e){return this._push(c,1,e?1:0)},p.prototype.fixed32=function(e){return this._push(v,4,e>>>0)},p.prototype.sfixed32=p.prototype.fixed32,p.prototype.fixed64=function(e){var t=o.from(e);return this._push(v,4,t.lo)._push(v,4,t.hi)},p.prototype.sfixed64=p.prototype.fixed64,p.prototype.float=function(e){return this._push(n.float.writeFloatLE,4,e)},p.prototype.double=function(e){return this._push(n.float.writeDoubleLE,8,e)};var m=n.Array.prototype.set?function(e,t,r){t.set(e,r)}:function(e,t,r){for(var i=0;i>>0;if(!t)return this._push(c,1,0);if(n.isString(e)){var r=p.alloc(t=s.length(e));s.decode(e,r,0),e=r}return this.uint32(t)._push(m,t,e)},p.prototype.string=function(e){var t=a.length(e);return t?this.uint32(t)._push(a.write,t,e):this._push(c,1,0)},p.prototype.fork=function(){return this.states=new l(this),this.head=this.tail=new u(f,0,0),this.len=0,this},p.prototype.reset=function(){return this.states?(this.head=this.states.head,this.tail=this.states.tail,this.len=this.states.len,this.states=this.states.next):(this.head=this.tail=new u(f,0,0),this.len=0),this},p.prototype.ldelim=function(){var e=this.head,t=this.tail,r=this.len;return this.reset().uint32(r),r&&(this.tail.next=e.next,this.tail=t,this.len+=r),this},p.prototype.finish=function(){for(var e=this.head.next,t=this.constructor.alloc(this.len),r=0;e;)e.fn(e.val,t,r),r+=e.len,e=e.next;return t},p._configure=function(e){i=e,p.create=h(),i._configure()}},3610:function(e,t,r){var i=t;function n(e,t,r){for(var i=Object.keys(t),n=0;n0)},i.Buffer=function(){try{var e=i.inquire("buffer").Buffer;return e.prototype.utf8Write?e:null}catch(e){return null}}(),i._Buffer_from=null,i._Buffer_allocUnsafe=null,i.newBuffer=function(e){return"number"==typeof e?i.Buffer?i._Buffer_allocUnsafe(e):new i.Array(e):i.Buffer?i._Buffer_from(e):"undefined"==typeof Uint8Array?e:new Uint8Array(e)},i.Array="undefined"!=typeof Uint8Array?Uint8Array:Array,i.Long=i.global.dcodeIO&&i.global.dcodeIO.Long||i.global.Long||i.inquire("long"),i.key2Re=/^true|false|0|1$/,i.key32Re=/^-?(?:0|[1-9][0-9]*)$/,i.key64Re=/^(?:[\\x00-\\xff]{8}|-?(?:0|[1-9][0-9]*))$/,i.longToHash=function(e){return e?i.LongBits.from(e).toHash():i.LongBits.zeroHash},i.longFromHash=function(e,t){var r=i.LongBits.fromHash(e);return i.Long?i.Long.fromBits(r.lo,r.hi,t):r.toNumber(Boolean(t))},i.merge=n,i.lcFirst=function(e){return e.charAt(0).toLowerCase()+e.substring(1)},i.newError=o,i.ProtocolError=o("ProtocolError"),i.oneOfGetter=function(e){for(var t={},r=0;r-1;--r)if(1===t[e[r]]&&void 0!==this[e[r]]&&null!==this[e[r]])return e[r]}},i.oneOfSetter=function(e){return function(t){for(var r=0;r{function inquire(moduleName){try{var mod=eval("quire".replace(/^/,"re"))(moduleName);if(mod&&(mod.length||Object.keys(mod).length))return mod}catch(e){}return null}module.exports=inquire},4358:e=>{function t(){this._listeners={}}e.exports=t,t.prototype.on=function(e,t,r){return(this._listeners[e]||(this._listeners[e]=[])).push({fn:t,ctx:r||this}),this},t.prototype.off=function(e,t){if(void 0===e)this._listeners={};else if(void 0===t)this._listeners[e]=[];else for(var r=this._listeners[e],i=0;i{var i=t;function n(){i.util._configure(),i.Writer._configure(i.BufferWriter),i.Reader._configure(i.BufferReader)}i.build="minimal",i.Writer=r(3449),i.BufferWriter=r(818),i.Reader=r(6237),i.BufferReader=r(3158),i.util=r(3610),i.rpc=r(5047),i.roots=r(4529),i.configure=n,n()},4529:e=>{e.exports={}},4863:(e,t,r)=>{e.exports=j,j.filename=null,j.defaults={keepCase:!1};var i=r(527),n=r(5330),o=r(7882),s=r(1344),a=r(8252),u=r(1457),f=r(5643),l=r(9687),p=r(8811),h=r(7209),c=r(361),d=r(3262),y=/^[1-9][0-9]*$/,v=/^-?[1-9][0-9]*$/,m=/^0[x][0-9a-fA-F]+$/,g=/^-?0[x][0-9a-fA-F]+$/,b=/^0[0-7]+$/,_=/^-?0[0-7]+$/,w=/^(?![eE])[0-9]*(?:\.[0-9]*)?(?:[eE][+-]?[0-9]+)?$/,O=/^[a-zA-Z_][a-zA-Z_0-9]*$/,k=/^(?:\.?[a-zA-Z_][a-zA-Z_0-9]*)(?:\.[a-zA-Z_][a-zA-Z_0-9]*)*$/;function j(e,t,r){t instanceof n||(r=t,t=new n),r||(r=j.defaults);var A,E,x,S,T=r.preferTrailingComment||!1,N=i(e,r.alternateCommentMode||!1),R=N.next,F=N.push,I=N.peek,B=N.skip,P=N.cmnt,D=!0,L="proto2",C=t,J=[],$={},q=r.keepCase?function(e){return e}:d.camelCase;function V(e,t,r){var i=j.filename;return r||(j.filename=null),Error("illegal "+(t||"token")+" '"+e+"' ("+(i?i+", ":"")+"line "+N.line+")")}function M(){var e,t=[];do{if('"'!==(e=R())&&"'"!==e)throw V(e);t.push(R()),B(e),e=I()}while('"'===e||"'"===e);return t.join("")}function z(e){var t=R();switch(t){case"'":case'"':return F(t),M();case"true":case"TRUE":return!0;case"false":case"FALSE":return!1}try{return function(e){var t=1;switch("-"===e.charAt(0)&&(t=-1,e=e.substring(1)),e){case"inf":case"INF":case"Inf":return t*(1/0);case"nan":case"NAN":case"Nan":case"NaN":return NaN;case"0":return 0}if(y.test(e))return t*parseInt(e,10);if(m.test(e))return t*parseInt(e,16);if(b.test(e))return t*parseInt(e,8);if(w.test(e))return t*parseFloat(e);throw V(e,"number",!0)}(t)}catch(r){if(e&&k.test(t))return t;throw V(t,"value")}}function U(e,t){var r,i;do{if(!t||'"'!==(r=I())&&"'"!==r)try{e.push([i=H(R()),B("to",!0)?H(R()):i])}catch(i){if(!(t&&k.test(r)&&L>=2023))throw i;e.push(r)}else{var n=M();if(e.push(n),L>=2023)throw V(n,"id")}}while(B(",",!0));var o={options:void 0,setOption:function(e,t){void 0===this.options&&(this.options={}),this.options[e]=t}};Q(o,function(e){if("option"!==e)throw V(e);re(o,e),B(";")},function(){oe(o)})}function H(e,t){switch(e){case"max":case"MAX":case"Max":return 536870911;case"0":return 0}if(!t&&"-"===e.charAt(0))throw V(e,"id");if(v.test(e))return parseInt(e,10);if(g.test(e))return parseInt(e,16);if(_.test(e))return parseInt(e,8);throw V(e,"id")}function W(){if(void 0!==A)throw V("package");if(A=R(),!k.test(A))throw V(A,"name");C=C.define(A),B(";")}function G(){var e,t=I();switch(t){case"weak":e=x||(x=[]),R();break;case"public":R();default:e=E||(E=[])}t=M(),B(";"),e.push(t)}function X(){if(B("="),(L=M())<2023)throw V(L,"syntax");B(";")}function Z(){if(B("="),L=M(),!["2023"].includes(L))throw V(L,"edition");B(";")}function K(e,t){switch(t){case"option":return re(e,t),B(";"),!0;case"message":return Y(e,t),!0;case"enum":return te(e,t),!0;case"service":return function(e,t){if(!O.test(t=R()))throw V(t,"service name");var r=new l(t);Q(r,function(e){if(!K(r,e)){if("rpc"!==e)throw V(e);!function(e,t){var r=P(),i=t;if(!O.test(t=R()))throw V(t,"name");var n,o,s,a,u=t;if(B("("),B("stream",!0)&&(o=!0),!k.test(t=R()))throw V(t);if(n=t,B(")"),B("returns"),B("("),B("stream",!0)&&(a=!0),!k.test(t=R()))throw V(t);s=t,B(")");var f=new p(u,i,n,s,o,a);f.comment=r,Q(f,function(e){if("option"!==e)throw V(e);re(f,e),B(";")}),e.add(f)}(r,e)}}),e.add(r),e===C&&J.push(r)}(e,t),!0;case"extend":return function(e,t){if(!k.test(t=R()))throw V(t,"reference");var r=t;Q(null,function(t){switch(t){case"required":case"repeated":ee(e,t,r);break;case"optional":ee(e,"proto3"===L?"proto3_optional":"optional",r);break;default:if("proto2"===L||!k.test(t))throw V(t);F(t),ee(e,"optional",r)}})}(e,t),!0}return!1}function Q(e,t,r){var i=N.line;if(e&&("string"!=typeof e.comment&&(e.comment=P()),e.filename=j.filename),B("{",!0)){for(var n;"}"!==(n=R());)t(n);B(";",!0)}else r&&r(),B(";"),e&&("string"!=typeof e.comment||T)&&(e.comment=P(i)||e.comment)}function Y(e,t){if(!O.test(t=R()))throw V(t,"type name");var r=new o(t);Q(r,function(e){if(!K(r,e))switch(e){case"map":!function(e){B("<");var t=R();if(void 0===c.mapKey[t])throw V(t,"type");B(",");var r=R();if(!k.test(r))throw V(r,"type");B(">");var i=R();if(!O.test(i))throw V(i,"name");B("=");var n=new a(q(i),H(R()),t,r);Q(n,function(e){if("option"!==e)throw V(e);re(n,e),B(";")},function(){oe(n)}),e.add(n)}(r);break;case"required":if("proto2"!==L)throw V(e);case"repeated":ee(r,e);break;case"optional":if("proto3"===L)ee(r,"proto3_optional");else{if("proto2"!==L)throw V(e);ee(r,"optional")}break;case"oneof":!function(e,t){if(!O.test(t=R()))throw V(t,"name");var r=new u(q(t));Q(r,function(e){"option"===e?(re(r,e),B(";")):(F(e),ee(r,"optional"))}),e.add(r)}(r,e);break;case"extensions":U(r.extensions||(r.extensions=[]));break;case"reserved":U(r.reserved||(r.reserved=[]),!0);break;default:if("proto2"===L||!k.test(e))throw V(e);F(e),ee(r,"optional")}}),e.add(r),e===C&&J.push(r)}function ee(e,t,r){var i=R();if("group"!==i){for(;i.endsWith(".")||I().startsWith(".");)i+=R();if(!k.test(i))throw V(i,"type");var n=R();if(!O.test(n))throw V(n,"name");n=q(n),B("=");var a=new s(n,H(R()),i,t,r);if(Q(a,function(e){if("option"!==e)throw V(e);re(a,e),B(";")},function(){oe(a)}),"proto3_optional"===t){var f=new u("_"+n);a.setOption("proto3_optional",!0),f.add(a),e.add(f)}else e.add(a);e===C&&J.push(a)}else!function(e,t){if(L>=2023)throw V("group");var r=R();if(!O.test(r))throw V(r,"name");var i=d.lcFirst(r);r===i&&(r=d.ucFirst(r)),B("=");var n=H(R()),a=new o(r);a.group=!0;var u=new s(i,n,r,t);u.filename=j.filename,Q(a,function(e){switch(e){case"option":re(a,e),B(";");break;case"required":case"repeated":ee(a,e);break;case"optional":ee(a,"proto3"===L?"proto3_optional":"optional");break;case"message":Y(a,e);break;case"enum":te(a,e);break;case"reserved":U(a.reserved||(a.reserved=[]),!0);break;default:throw V(e)}}),e.add(a).add(u)}(e,t)}function te(e,t){if(!O.test(t=R()))throw V(t,"name");var r=new f(t);Q(r,function(e){switch(e){case"option":re(r,e),B(";");break;case"reserved":U(r.reserved||(r.reserved=[]),!0),void 0===r.reserved&&(r.reserved=[]);break;default:!function(e,t){if(!O.test(t))throw V(t,"name");B("=");var r=H(R(),!0),i={options:void 0,getOption:function(e){return this.options[e]},setOption:function(e,t){h.prototype.setOption.call(i,e,t)},setParsedOption:function(){}};Q(i,function(e){if("option"!==e)throw V(e);re(i,e),B(";")},function(){oe(i)}),e.add(t,r,i.comment,i.parsedOptions||i.options)}(r,e)}}),e.add(r),e===C&&J.push(r)}function re(e,t){var r,i,n=!0;for("option"===t&&(t=R());"="!==t;){if("("===t){var o=R();B(")"),t="("+o+")"}if(n){if(n=!1,t.includes(".")&&!t.includes("(")){var s=t.split(".");r=s[0]+".",t=s[1];continue}r=t}else i=i?i+=t:t;t=R()}var a=ie(e,i?r.concat(i):r);i=i&&"."===i[0]?i.slice(1):i,function(e,t,r,i){e.setParsedOption&&e.setParsedOption(t,r,i)}(e,r=r&&"."===r[r.length-1]?r.slice(0,-1):r,a,i)}function ie(e,t){if(B("{",!0)){for(var r={};!B("}",!0);){if(!O.test(S=R()))throw V(S,"name");if(null===S)throw V(S,"end of input");var i,n=S;if(B(":",!0),"{"===I())i=ie(e,t+"."+S);else if("["===I()){var o;if(i=[],B("[",!0)){do{o=z(!0),i.push(o)}while(B(",",!0));B("]"),void 0!==o&&ne(e,t+"."+S,o)}}else i=z(!0),ne(e,t+"."+S,i);var s=r[n];s&&(i=[].concat(s).concat(i)),r[n]=i,B(",",!0),B(";",!0)}return r}var a=z(!0);return ne(e,t,a),a}function ne(e,t,r){C===e&&/^features\./.test(t)?$[t]=r:e.setOption&&e.setOption(t,r)}function oe(e){if(B("[",!0)){do{re(e,"option")}while(B(",",!0));B("]")}return e}for(;null!==(S=R());)switch(S){case"package":if(!D)throw V(S);W();break;case"import":if(!D)throw V(S);G();break;case"syntax":if(!D)throw V(S);X();break;case"edition":if(!D)throw V(S);Z();break;case"option":re(C,S),B(";",!0);break;default:if(K(C,S)){D=!1;continue}throw V(S)}return J.forEach(e=>{e._edition=L,Object.keys($).forEach(t=>{void 0===e.getOption(t)&&e.setOption(t,$[t],!0)})}),j.filename=null,{package:A,imports:E,weakImports:x,root:t}}},5047:(e,t,r)=>{t.Service=r(7595)},5095:e=>{e.exports=i;var t,r=/\/|\./;function i(e,t){r.test(e)||(e="google/protobuf/"+e+".proto",t={nested:{google:{nested:{protobuf:{nested:t}}}}}),i[e]=t}i("any",{Any:{fields:{type_url:{type:"string",id:1},value:{type:"bytes",id:2}}}}),i("duration",{Duration:t={fields:{seconds:{type:"int64",id:1},nanos:{type:"int32",id:2}}}}),i("timestamp",{Timestamp:t}),i("empty",{Empty:{fields:{}}}),i("struct",{Struct:{fields:{fields:{keyType:"string",type:"Value",id:1}}},Value:{oneofs:{kind:{oneof:["nullValue","numberValue","stringValue","boolValue","structValue","listValue"]}},fields:{nullValue:{type:"NullValue",id:1},numberValue:{type:"double",id:2},stringValue:{type:"string",id:3},boolValue:{type:"bool",id:4},structValue:{type:"Struct",id:5},listValue:{type:"ListValue",id:6}}},NullValue:{values:{NULL_VALUE:0}},ListValue:{fields:{values:{rule:"repeated",type:"Value",id:1}}}}),i("wrappers",{DoubleValue:{fields:{value:{type:"double",id:1}}},FloatValue:{fields:{value:{type:"float",id:1}}},Int64Value:{fields:{value:{type:"int64",id:1}}},UInt64Value:{fields:{value:{type:"uint64",id:1}}},Int32Value:{fields:{value:{type:"int32",id:1}}},UInt32Value:{fields:{value:{type:"uint32",id:1}}},BoolValue:{fields:{value:{type:"bool",id:1}}},StringValue:{fields:{value:{type:"string",id:1}}},BytesValue:{fields:{value:{type:"bytes",id:1}}}}),i("field_mask",{FieldMask:{fields:{paths:{rule:"repeated",type:"string",id:1}}}}),i.get=function(e){return i[e]||null}},5212:(e,t,r)=>{e.exports=o;var i=r(8045),n=r(4153)("fs");function o(e,t,r){return"function"==typeof t?(r=t,t={}):t||(t={}),r?!t.xhr&&n&&n.readFile?n.readFile(e,function(i,n){return i&&"undefined"!=typeof XMLHttpRequest?o.xhr(e,t,r):i?r(i):r(null,t.binary?n:n.toString("utf8"))}):o.xhr(e,t,r):i(o,this,e,t)}o.xhr=function(e,t,r){var i=new XMLHttpRequest;i.onreadystatechange=function(){if(4===i.readyState){if(0!==i.status&&200!==i.status)return r(Error("status "+i.status));if(t.binary){var e=i.response;if(!e){e=[];for(var n=0;n{var i=e.exports=r(4394);i.build="light",i.load=function(e,t,r){return"function"==typeof t?(r=t,t=new i.Root):t||(t=new i.Root),t.load(e,r)},i.loadSync=function(e,t){return t||(t=new i.Root),t.loadSync(e)},i.encoder=r(1080),i.decoder=r(7728),i.verifier=r(420),i.converter=r(744),i.ReflectionObject=r(7209),i.Namespace=r(8923),i.Root=r(5330),i.Enum=r(5643),i.Type=r(7882),i.Field=r(1344),i.OneOf=r(1457),i.MapField=r(8252),i.Service=r(9687),i.Method=r(8811),i.Message=r(2551),i.wrappers=r(6434),i.types=r(361),i.util=r(3262),i.ReflectionObject._configure(i.Root),i.Namespace._configure(i.Type,i.Service,i.Enum),i.Root._configure(i.Type),i.Field._configure(i.Type)},5330:(e,t,r)=>{e.exports=p;var i=r(8923);((p.prototype=Object.create(i.prototype)).constructor=p).className="Root";var n,o,s,a=r(1344),u=r(5643),f=r(1457),l=r(3262);function p(e){i.call(this,"",e),this.deferred=[],this.files=[],this._edition="proto2",this._fullyQualifiedObjects={}}function h(){}p.fromJSON=function(e,t){return t||(t=new p),e.options&&t.setOptions(e.options),t.addJSON(e.nested).resolveAll()},p.prototype.resolvePath=l.path.resolve,p.prototype.fetch=l.fetch,p.prototype.load=function e(t,r,i){"function"==typeof r&&(i=r,r=void 0);var n=this;if(!i)return l.asPromise(e,n,t,r);var a=i===h;function u(e,t){if(i){if(a)throw e;t&&t.resolveAll();var r=i;i=null,r(e,t)}}function f(e){var t=e.lastIndexOf("google/protobuf/");if(t>-1){var r=e.substring(t);if(r in s)return r}return null}function p(e,t){try{if(l.isString(t)&&"{"===t.charAt(0)&&(t=JSON.parse(t)),l.isString(t)){o.filename=e;var i,s=o(t,n,r),p=0;if(s.imports)for(;p-1))if(n.files.push(e),e in s)a?p(e,s[e]):(++d,setTimeout(function(){--d,p(e,s[e])}));else if(a){var r;try{r=l.fs.readFileSync(e).toString("utf8")}catch(e){return void(t||u(e))}p(e,r)}else++d,n.fetch(e,function(r,o){--d,i&&(r?t?d||u(null,n):u(r):p(e,o))})}var d=0;l.isString(t)&&(t=[t]);for(var y,v=0;v-1&&this.deferred.splice(t,1)}}else if(e instanceof u)c.test(e.name)&&delete e.parent[e.name];else if(e instanceof i){for(var r=0;r{e.exports=s;var i=r(7209);((s.prototype=Object.create(i.prototype)).constructor=s).className="Enum";var n=r(8923),o=r(3262);function s(e,t,r,n,o,s){if(i.call(this,e,r),t&&"object"!=typeof t)throw TypeError("values must be an object");if(this.valuesById={},this.values=Object.create(this.valuesById),this.comment=n,this.comments=o||{},this.valuesOptions=s,this._valuesFeatures={},this.reserved=void 0,t)for(var a=Object.keys(t),u=0;u{var t=Object.assign({},this._features);this._valuesFeatures[e]=Object.assign(t,this.valuesOptions&&this.valuesOptions[e]&&this.valuesOptions[e].features)}),this},s.fromJSON=function(e,t){var r=new s(e,t.values,t.options,t.comment,t.comments);return r.reserved=t.reserved,t.edition&&(r._edition=t.edition),r._defaultEdition="proto3",r},s.prototype.toJSON=function(e){var t=!!e&&Boolean(e.keepComments);return o.toObject(["edition",this._editionToJSON(),"options",this.options,"valuesOptions",this.valuesOptions,"values",this.values,"reserved",this.reserved&&this.reserved.length?this.reserved:void 0,"comment",t?this.comment:void 0,"comments",t?this.comments:void 0])},s.prototype.add=function(e,t,r,i){if(!o.isString(e))throw TypeError("name must be a string");if(!o.isInteger(t))throw TypeError("id must be an integer");if(void 0!==this.values[e])throw Error("duplicate name '"+e+"' in "+this);if(this.isReservedId(t))throw Error("id "+t+" is reserved in "+this);if(this.isReservedName(e))throw Error("name '"+e+"' is reserved in "+this);if(void 0!==this.valuesById[t]){if(!this.options||!this.options.allow_alias)throw Error("duplicate id "+t+" in "+this);this.values[e]=t}else this.valuesById[this.values[e]=t]=e;return i&&(void 0===this.valuesOptions&&(this.valuesOptions={}),this.valuesOptions[e]=i||null),this.comments[e]=r||null,this},s.prototype.remove=function(e){if(!o.isString(e))throw TypeError("name must be a string");var t=this.values[e];if(null==t)throw Error("name '"+e+"' does not exist in "+this);return delete this.valuesById[t],delete this.values[e],delete this.comments[e],this.valuesOptions&&delete this.valuesOptions[e],this},s.prototype.isReservedId=function(e){return n.isReservedId(this.reserved,e)},s.prototype.isReservedName=function(e){return n.isReservedName(this.reserved,e)}},6237:(e,t,r)=>{e.exports=u;var i,n=r(3610),o=n.LongBits,s=n.utf8;function a(e,t){return RangeError("index out of range: "+e.pos+" + "+(t||1)+" > "+e.len)}function u(e){this.buf=e,this.pos=0,this.len=e.length}var f,l="undefined"!=typeof Uint8Array?function(e){if(e instanceof Uint8Array||Array.isArray(e))return new u(e);throw Error("illegal buffer")}:function(e){if(Array.isArray(e))return new u(e);throw Error("illegal buffer")},p=function(){return n.Buffer?function(e){return(u.create=function(e){return n.Buffer.isBuffer(e)?new i(e):l(e)})(e)}:l};function h(){var e=new o(0,0),t=0;if(!(this.len-this.pos>4)){for(;t<3;++t){if(this.pos>=this.len)throw a(this);if(e.lo=(e.lo|(127&this.buf[this.pos])<<7*t)>>>0,this.buf[this.pos++]<128)return e}return e.lo=(e.lo|(127&this.buf[this.pos++])<<7*t)>>>0,e}for(;t<4;++t)if(e.lo=(e.lo|(127&this.buf[this.pos])<<7*t)>>>0,this.buf[this.pos++]<128)return e;if(e.lo=(e.lo|(127&this.buf[this.pos])<<28)>>>0,e.hi=(e.hi|(127&this.buf[this.pos])>>4)>>>0,this.buf[this.pos++]<128)return e;if(t=0,this.len-this.pos>4){for(;t<5;++t)if(e.hi=(e.hi|(127&this.buf[this.pos])<<7*t+3)>>>0,this.buf[this.pos++]<128)return e}else for(;t<5;++t){if(this.pos>=this.len)throw a(this);if(e.hi=(e.hi|(127&this.buf[this.pos])<<7*t+3)>>>0,this.buf[this.pos++]<128)return e}throw Error("invalid varint encoding")}function c(e,t){return(e[t-4]|e[t-3]<<8|e[t-2]<<16|e[t-1]<<24)>>>0}function d(){if(this.pos+8>this.len)throw a(this,8);return new o(c(this.buf,this.pos+=4),c(this.buf,this.pos+=4))}u.create=p(),u.prototype._slice=n.Array.prototype.subarray||n.Array.prototype.slice,u.prototype.uint32=(f=4294967295,function(){if(f=(127&this.buf[this.pos])>>>0,this.buf[this.pos++]<128)return f;if(f=(f|(127&this.buf[this.pos])<<7)>>>0,this.buf[this.pos++]<128)return f;if(f=(f|(127&this.buf[this.pos])<<14)>>>0,this.buf[this.pos++]<128)return f;if(f=(f|(127&this.buf[this.pos])<<21)>>>0,this.buf[this.pos++]<128)return f;if(f=(f|(15&this.buf[this.pos])<<28)>>>0,this.buf[this.pos++]<128)return f;if((this.pos+=5)>this.len)throw this.pos=this.len,a(this,10);return f}),u.prototype.int32=function(){return 0|this.uint32()},u.prototype.sint32=function(){var e=this.uint32();return e>>>1^-(1&e)},u.prototype.bool=function(){return 0!==this.uint32()},u.prototype.fixed32=function(){if(this.pos+4>this.len)throw a(this,4);return c(this.buf,this.pos+=4)},u.prototype.sfixed32=function(){if(this.pos+4>this.len)throw a(this,4);return 0|c(this.buf,this.pos+=4)},u.prototype.float=function(){if(this.pos+4>this.len)throw a(this,4);var e=n.float.readFloatLE(this.buf,this.pos);return this.pos+=4,e},u.prototype.double=function(){if(this.pos+8>this.len)throw a(this,4);var e=n.float.readDoubleLE(this.buf,this.pos);return this.pos+=8,e},u.prototype.bytes=function(){var e=this.uint32(),t=this.pos,r=this.pos+e;if(r>this.len)throw a(this,e);if(this.pos+=e,Array.isArray(this.buf))return this.buf.slice(t,r);if(t===r){var i=n.Buffer;return i?i.alloc(0):new this.buf.constructor(0)}return this._slice.call(this.buf,t,r)},u.prototype.string=function(){var e=this.bytes();return s.read(e,0,e.length)},u.prototype.skip=function(e){if("number"==typeof e){if(this.pos+e>this.len)throw a(this,e);this.pos+=e}else do{if(this.pos>=this.len)throw a(this)}while(128&this.buf[this.pos++]);return this},u.prototype.skipType=function(e){switch(e){case 0:this.skip();break;case 1:this.skip(8);break;case 2:this.skip(this.uint32());break;case 3:for(;4!=(e=7&this.uint32());)this.skipType(e);break;case 5:this.skip(4);break;default:throw Error("invalid wire type "+e+" at offset "+this.pos)}return this},u._configure=function(e){i=e,u.create=p(),i._configure();var t=n.Long?"toLong":"toNumber";n.merge(u.prototype,{int64:function(){return h.call(this)[t](!1)},uint64:function(){return h.call(this)[t](!0)},sint64:function(){return h.call(this).zzDecode()[t](!1)},fixed64:function(){return d.call(this)[t](!0)},sfixed64:function(){return d.call(this)[t](!1)}})}},6434:(e,t,r)=>{var i=t,n=r(2551);i[".google.protobuf.Any"]={fromObject:function(e){if(e&&e["@type"]){var t=e["@type"].substring(e["@type"].lastIndexOf("/")+1),r=this.lookup(t);if(r){var i="."===e["@type"].charAt(0)?e["@type"].slice(1):e["@type"];return-1===i.indexOf("/")&&(i="/"+i),this.create({type_url:i,value:r.encode(r.fromObject(e)).finish()})}}return this.fromObject(e)},toObject:function(e,t){var r="",i="";if(t&&t.json&&e.type_url&&e.value){i=e.type_url.substring(e.type_url.lastIndexOf("/")+1),r=e.type_url.substring(0,e.type_url.lastIndexOf("/")+1);var o=this.lookup(i);o&&(e=o.decode(e.value))}if(!(e instanceof this.ctor)&&e instanceof n){var s=e.$type.toObject(e,t);return""===r&&(r="type.googleapis.com/"),i=r+("."===e.$type.fullName[0]?e.$type.fullName.slice(1):e.$type.fullName),s["@type"]=i,s}return this.toObject(e,t)}}},7209:(e,t,r)=>{e.exports=f,f.className="ReflectionObject";const i=r(1457);var n,o=r(3262),s={enum_type:"OPEN",field_presence:"EXPLICIT",json_format:"ALLOW",message_encoding:"LENGTH_PREFIXED",repeated_field_encoding:"PACKED",utf8_validation:"VERIFY"},a={enum_type:"CLOSED",field_presence:"EXPLICIT",json_format:"LEGACY_BEST_EFFORT",message_encoding:"LENGTH_PREFIXED",repeated_field_encoding:"EXPANDED",utf8_validation:"NONE"},u={enum_type:"OPEN",field_presence:"IMPLICIT",json_format:"ALLOW",message_encoding:"LENGTH_PREFIXED",repeated_field_encoding:"PACKED",utf8_validation:"VERIFY"};function f(e,t){if(!o.isString(e))throw TypeError("name must be a string");if(t&&!o.isObject(t))throw TypeError("options must be an object");this.options=t,this.parsedOptions=null,this.name=e,this._edition=null,this._defaultEdition="proto2",this._features={},this._featuresResolved=!1,this.parent=null,this.resolved=!1,this.comment=null,this.filename=null}Object.defineProperties(f.prototype,{root:{get:function(){for(var e=this;null!==e.parent;)e=e.parent;return e}},fullName:{get:function(){for(var e=[this.name],t=this.parent;t;)e.unshift(t.name),t=t.parent;return e.join(".")}}}),f.prototype.toJSON=function(){throw Error()},f.prototype.onAdd=function(e){this.parent&&this.parent!==e&&this.parent.remove(this),this.parent=e,this.resolved=!1;var t=e.root;t instanceof n&&t._handleAdd(this)},f.prototype.onRemove=function(e){var t=e.root;t instanceof n&&t._handleRemove(this),this.parent=null,this.resolved=!1},f.prototype.resolve=function(){return this.resolved||this.root instanceof n&&(this.resolved=!0),this},f.prototype._resolveFeaturesRecursive=function(e){return this._resolveFeatures(this._edition||e)},f.prototype._resolveFeatures=function(e){if(!this._featuresResolved){var t={};if(!e)throw new Error("Unknown edition for "+this.fullName);var r=Object.assign(this.options?Object.assign({},this.options.features):{},this._inferLegacyProtoFeatures(e));if(this._edition){if("proto2"===e)t=Object.assign({},a);else if("proto3"===e)t=Object.assign({},u);else{if("2023"!==e)throw new Error("Unknown edition: "+e);t=Object.assign({},s)}return this._features=Object.assign(t,r||{}),void(this._featuresResolved=!0)}if(this.partOf instanceof i){var n=Object.assign({},this.partOf._features);this._features=Object.assign(n,r||{})}else if(this.declaringField);else{if(!this.parent)throw new Error("Unable to find a parent for "+this.fullName);var o=Object.assign({},this.parent._features);this._features=Object.assign(o,r||{})}this.extensionField&&(this.extensionField._features=this._features),this._featuresResolved=!0}},f.prototype._inferLegacyProtoFeatures=function(){return{}},f.prototype.getOption=function(e){if(this.options)return this.options[e]},f.prototype.setOption=function(e,t,r){return this.options||(this.options={}),/^features\./.test(e)?o.setProperty(this.options,e,t,r):r&&void 0!==this.options[e]||(this.getOption(e)!==t&&(this.resolved=!1),this.options[e]=t),this},f.prototype.setParsedOption=function(e,t,r){this.parsedOptions||(this.parsedOptions=[]);var i=this.parsedOptions;if(r){var n=i.find(function(t){return Object.prototype.hasOwnProperty.call(t,e)});if(n){var s=n[e];o.setProperty(s,r,t)}else(n={})[e]=o.setProperty({},r,t),i.push(n)}else{var a={};a[e]=t,i.push(a)}return this},f.prototype.setOptions=function(e,t){if(e)for(var r=Object.keys(e),i=0;i{e.exports=n;var i=r(3610);function n(e,t,r){if("function"!=typeof e)throw TypeError("rpcImpl must be a function");i.EventEmitter.call(this),this.rpcImpl=e,this.requestDelimited=Boolean(t),this.responseDelimited=Boolean(r)}(n.prototype=Object.create(i.EventEmitter.prototype)).constructor=n,n.prototype.rpcCall=function e(t,r,n,o,s){if(!o)throw TypeError("request must be specified");var a=this;if(!s)return i.asPromise(e,a,t,r,n,o);if(a.rpcImpl)try{return a.rpcImpl(t,r[a.requestDelimited?"encodeDelimited":"encode"](o).finish(),function(e,r){if(e)return a.emit("error",e,t),s(e);if(null!==r){if(!(r instanceof n))try{r=n[a.responseDelimited?"decodeDelimited":"decode"](r)}catch(e){return a.emit("error",e,t),s(e)}return a.emit("data",r,t),s(null,r)}a.end(!0)})}catch(e){return a.emit("error",e,t),void setTimeout(function(){s(e)},0)}else setTimeout(function(){s(Error("already ended"))},0)},n.prototype.end=function(e){return this.rpcImpl&&(e||this.rpcImpl(null,null,null),this.rpcImpl=null,this.emit("end").off()),this}},7728:(e,t,r)=>{e.exports=function(e){for(var t=o.codegen(["r","l","e"],e.name+"$decode")("if(!(r instanceof Reader))")("r=Reader.create(r)")("var c=l===undefined?r.len:r.pos+l,m=new this.ctor"+(e.fieldsArray.filter(function(e){return e.map}).length?",k,value":""))("while(r.pos>>3){"),r=0;r>>3){")("case 1: k=r.%s(); break",a.keyType)("case 2:"),void 0===n.basic[u]?t("value=types[%i].decode(r,r.uint32())",r):t("value=r.%s()",u),t("break")("default:")("r.skipType(tag2&7)")("break")("}")("}"),void 0!==n.long[a.keyType]?t('%s[typeof k==="object"?util.longToHash(k):k]=value',f):t("%s[k]=value",f)):a.repeated?(t("if(!(%s&&%s.length))",f,f)("%s=[]",f),void 0!==n.packed[u]&&t("if((t&7)===2){")("var c2=r.uint32()+r.pos")("while(r.pos{e.exports=g;var i=r(8923);((g.prototype=Object.create(i.prototype)).constructor=g).className="Type";var n=r(5643),o=r(1457),s=r(1344),a=r(8252),u=r(9687),f=r(2551),l=r(6237),p=r(3449),h=r(3262),c=r(1080),d=r(7728),y=r(420),v=r(744),m=r(6434);function g(e,t){i.call(this,e,t),this.fields={},this.oneofs=void 0,this.extensions=void 0,this.reserved=void 0,this.group=void 0,this._fieldsById=null,this._fieldsArray=null,this._oneofsArray=null,this._ctor=null}function b(e){return e._fieldsById=e._fieldsArray=e._oneofsArray=null,delete e.encode,delete e.decode,delete e.verify,e}Object.defineProperties(g.prototype,{fieldsById:{get:function(){if(this._fieldsById)return this._fieldsById;this._fieldsById={};for(var e=Object.keys(this.fields),t=0;t{t._resolveFeatures(e)}),this.fieldsArray.forEach(t=>{t._resolveFeatures(e)}),this):this},g.prototype.get=function(e){return this.fields[e]||this.oneofs&&this.oneofs[e]||this.nested&&this.nested[e]||null},g.prototype.add=function(e){if(this.get(e.name))throw Error("duplicate name '"+e.name+"' in "+this);if(e instanceof s&&void 0===e.extend){if(this._fieldsById?this._fieldsById[e.id]:this.fieldsById[e.id])throw Error("duplicate id "+e.id+" in "+this);if(this.isReservedId(e.id))throw Error("id "+e.id+" is reserved in "+this);if(this.isReservedName(e.name))throw Error("name '"+e.name+"' is reserved in "+this);return e.parent&&e.parent.remove(e),this.fields[e.name]=e,e.message=this,e.onAdd(this),b(this)}return e instanceof o?(this.oneofs||(this.oneofs={}),this.oneofs[e.name]=e,e.onAdd(this),b(this)):i.prototype.add.call(this,e)},g.prototype.remove=function(e){if(e instanceof s&&void 0===e.extend){if(!this.fields||this.fields[e.name]!==e)throw Error(e+" is not a member of "+this);return delete this.fields[e.name],e.parent=null,e.onRemove(this),b(this)}if(e instanceof o){if(!this.oneofs||this.oneofs[e.name]!==e)throw Error(e+" is not a member of "+this);return delete this.oneofs[e.name],e.parent=null,e.onRemove(this),b(this)}return i.prototype.remove.call(this,e)},g.prototype.isReservedId=function(e){return i.isReservedId(this.reserved,e)},g.prototype.isReservedName=function(e){return i.isReservedName(this.reserved,e)},g.prototype.create=function(e){return new this.ctor(e)},g.prototype.setup=function(){for(var e=this.fullName,t=[],r=0;r{e.exports=function(e,t){for(var r=new Array(arguments.length-1),i=0,n=2,o=!0;n{e.exports=s;var i=r(1344);((s.prototype=Object.create(i.prototype)).constructor=s).className="MapField";var n=r(361),o=r(3262);function s(e,t,r,n,s,a){if(i.call(this,e,t,n,void 0,void 0,s,a),!o.isString(r))throw TypeError("keyType must be a string");this.keyType=r,this.resolvedKeyType=null,this.map=!0}s.fromJSON=function(e,t){return new s(e,t.id,t.keyType,t.type,t.options,t.comment)},s.prototype.toJSON=function(e){var t=!!e&&Boolean(e.keepComments);return o.toObject(["keyType",this.keyType,"type",this.type,"id",this.id,"extend",this.extend,"options",this.options,"comment",t?this.comment:void 0])},s.prototype.resolve=function(){if(this.resolved)return this;if(void 0===n.mapKey[this.keyType])throw Error("invalid key type: "+this.keyType);return i.prototype.resolve.call(this)},s.d=function(e,t,r){return"function"==typeof r?r=o.decorateType(r).name:r&&"object"==typeof r&&(r=o.decorateEnum(r).name),function(i,n){o.decorateType(i.constructor).add(new s(n,e,t,r))}}},8561:e=>{function t(e,r){"string"==typeof e&&(r=e,e=void 0);var i=[];function n(e){if("string"!=typeof e){var r=o();if(t.verbose&&console.log("codegen: "+r),r="return "+r,e){for(var s=Object.keys(e),a=new Array(s.length+1),u=new Array(s.length),f=0;f{e.exports=o;var i=r(7209);((o.prototype=Object.create(i.prototype)).constructor=o).className="Method";var n=r(3262);function o(e,t,r,o,s,a,u,f,l){if(n.isObject(s)?(u=s,s=a=void 0):n.isObject(a)&&(u=a,a=void 0),void 0!==t&&!n.isString(t))throw TypeError("type must be a string");if(!n.isString(r))throw TypeError("requestType must be a string");if(!n.isString(o))throw TypeError("responseType must be a string");i.call(this,e,u),this.type=t||"rpc",this.requestType=r,this.requestStream=!!s||void 0,this.responseType=o,this.responseStream=!!a||void 0,this.resolvedRequestType=null,this.resolvedResponseType=null,this.comment=f,this.parsedOptions=l}o.fromJSON=function(e,t){return new o(e,t.type,t.requestType,t.responseType,t.requestStream,t.responseStream,t.options,t.comment,t.parsedOptions)},o.prototype.toJSON=function(e){var t=!!e&&Boolean(e.keepComments);return n.toObject(["type","rpc"!==this.type&&this.type||void 0,"requestType",this.requestType,"requestStream",this.requestStream,"responseType",this.responseType,"responseStream",this.responseStream,"options",this.options,"comment",t?this.comment:void 0,"parsedOptions",this.parsedOptions])},o.prototype.resolve=function(){return this.resolved?this:(this.resolvedRequestType=this.parent.lookupType(this.requestType),this.resolvedResponseType=this.parent.lookupType(this.responseType),i.prototype.resolve.call(this))}},8839:(e,t)=>{var r=t;r.length=function(e){var t=e.length;if(!t)return 0;for(var r=0;--t%4>1&&"="===e.charAt(t);)++r;return Math.ceil(3*e.length)/4-r};for(var i=new Array(64),n=new Array(123),o=0;o<64;)n[i[o]=o<26?o+65:o<52?o+71:o<62?o-4:o-59|43]=o++;r.encode=function(e,t,r){for(var n,o=null,s=[],a=0,u=0;t>2],n=(3&f)<<4,u=1;break;case 1:s[a++]=i[n|f>>4],n=(15&f)<<2,u=2;break;case 2:s[a++]=i[n|f>>6],s[a++]=i[63&f],u=0}a>8191&&((o||(o=[])).push(String.fromCharCode.apply(String,s)),a=0)}return u&&(s[a++]=i[n],s[a++]=61,1===u&&(s[a++]=61)),o?(a&&o.push(String.fromCharCode.apply(String,s.slice(0,a))),o.join("")):String.fromCharCode.apply(String,s.slice(0,a))};var s="invalid encoding";r.decode=function(e,t,r){for(var i,o=r,a=0,u=0;u1)break;if(void 0===(f=n[f]))throw Error(s);switch(a){case 0:i=f,a=1;break;case 1:t[r++]=i<<2|(48&f)>>4,i=f,a=2;break;case 2:t[r++]=(15&i)<<4|(60&f)>>2,i=f,a=3;break;case 3:t[r++]=(3&i)<<6|f,a=0}}if(1===a)throw Error(s);return r-o},r.test=function(e){return/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(e)}},8923:(e,t,r)=>{e.exports=p;var i=r(7209);((p.prototype=Object.create(i.prototype)).constructor=p).className="Namespace";var n,o,s,a=r(1344),u=r(3262),f=r(1457);function l(e,t){if(e&&e.length){for(var r={},i=0;it)return!0;return!1},p.isReservedName=function(e,t){if(e)for(var r=0;r0;){var i=e.shift();if(r.nested&&r.nested[i]){if(!((r=r.nested[i])instanceof p))throw Error("path conflicts with non-namespace objects")}else r.add(r=new p(i))}return t&&r.addJSON(t),r},p.prototype.resolveAll=function(){if(!this._needsRecursiveResolve)return this;this._resolveFeaturesRecursive(this._edition);var e=this.nestedArray,t=0;for(this.resolve();t{t._resolveFeaturesRecursive(e)}),this):this},p.prototype.lookup=function(e,t,r){if("boolean"==typeof t?(r=t,t=void 0):t&&!Array.isArray(t)&&(t=[t]),u.isString(e)&&e.length){if("."===e)return this.root;e=e.split(".")}else if(!e.length)return this;var i=e.join(".");if(""===e[0])return this.root.lookup(e.slice(1),t);var n=this.root._fullyQualifiedObjects&&this.root._fullyQualifiedObjects["."+i];if(n&&(!t||t.indexOf(n.constructor)>-1))return n;if((n=this._lookupImpl(e,i))&&(!t||t.indexOf(n.constructor)>-1))return n;if(r)return null;for(var o=this;o.parent;){if((n=o.parent._lookupImpl(e,i))&&(!t||t.indexOf(n.constructor)>-1))return n;o=o.parent}return null},p.prototype._lookupImpl=function(e,t){if(Object.prototype.hasOwnProperty.call(this._lookupCache,t))return this._lookupCache[t];var r=this.get(e[0]),i=null;if(r)1===e.length?i=r:r instanceof p&&(e=e.slice(1),i=r._lookupImpl(e,e.join(".")));else for(var n=0;n{var i=e.exports=r(5325);i.build="full",i.tokenize=r(527),i.parse=r(4863),i.common=r(5095),i.Root._configure(i.Type,i.parse,i.common)},9207:(e,t)=>{var r=t,i=r.isAbsolute=function(e){return/^(?:\/|\w+:)/.test(e)},n=r.normalize=function(e){var t=(e=e.replace(/\\/g,"/").replace(/\/{2,}/g,"/")).split("/"),r=i(e),n="";r&&(n=t.shift()+"/");for(var o=0;o0&&".."!==t[o-1]?t.splice(--o,2):r?t.splice(o,1):++o:"."===t[o]?t.splice(o,1):++o;return n+t.join("/")};r.resolve=function(e,t,r){return r||(t=n(t)),i(t)?t:(r||(e=n(e)),(e=e.replace(/(?:\/|^)[^/]+$/,"")).length?n(e+"/"+t):t)}},9390:e=>{e.exports=function(e,t,r){var i=r||8192,n=i>>>1,o=null,s=i;return function(r){if(r<1||r>n)return e(r);s+r>i&&(o=e(i),s=0);var a=t.call(o,s,s+=r);return 7&s&&(s=1+(7|s)),a}}},9410:e=>{function t(e){return"undefined"!=typeof Float32Array?function(){var t=new Float32Array([-0]),r=new Uint8Array(t.buffer),i=128===r[3];function n(e,i,n){t[0]=e,i[n]=r[0],i[n+1]=r[1],i[n+2]=r[2],i[n+3]=r[3]}function o(e,i,n){t[0]=e,i[n]=r[3],i[n+1]=r[2],i[n+2]=r[1],i[n+3]=r[0]}function s(e,i){return r[0]=e[i],r[1]=e[i+1],r[2]=e[i+2],r[3]=e[i+3],t[0]}function a(e,i){return r[3]=e[i],r[2]=e[i+1],r[1]=e[i+2],r[0]=e[i+3],t[0]}e.writeFloatLE=i?n:o,e.writeFloatBE=i?o:n,e.readFloatLE=i?s:a,e.readFloatBE=i?a:s}():function(){function t(e,t,r,i){var n=t<0?1:0;if(n&&(t=-t),0===t)e(1/t>0?0:2147483648,r,i);else if(isNaN(t))e(2143289344,r,i);else if(t>34028234663852886e22)e((n<<31|2139095040)>>>0,r,i);else if(t<11754943508222875e-54)e((n<<31|Math.round(t/1401298464324817e-60))>>>0,r,i);else{var o=Math.floor(Math.log(t)/Math.LN2);e((n<<31|o+127<<23|8388607&Math.round(t*Math.pow(2,-o)*8388608))>>>0,r,i)}}function s(e,t,r){var i=e(t,r),n=2*(i>>31)+1,o=i>>>23&255,s=8388607&i;return 255===o?s?NaN:n*(1/0):0===o?1401298464324817e-60*n*s:n*Math.pow(2,o-150)*(s+8388608)}e.writeFloatLE=t.bind(null,r),e.writeFloatBE=t.bind(null,i),e.readFloatLE=s.bind(null,n),e.readFloatBE=s.bind(null,o)}(),"undefined"!=typeof Float64Array?function(){var t=new Float64Array([-0]),r=new Uint8Array(t.buffer),i=128===r[7];function n(e,i,n){t[0]=e,i[n]=r[0],i[n+1]=r[1],i[n+2]=r[2],i[n+3]=r[3],i[n+4]=r[4],i[n+5]=r[5],i[n+6]=r[6],i[n+7]=r[7]}function o(e,i,n){t[0]=e,i[n]=r[7],i[n+1]=r[6],i[n+2]=r[5],i[n+3]=r[4],i[n+4]=r[3],i[n+5]=r[2],i[n+6]=r[1],i[n+7]=r[0]}function s(e,i){return r[0]=e[i],r[1]=e[i+1],r[2]=e[i+2],r[3]=e[i+3],r[4]=e[i+4],r[5]=e[i+5],r[6]=e[i+6],r[7]=e[i+7],t[0]}function a(e,i){return r[7]=e[i],r[6]=e[i+1],r[5]=e[i+2],r[4]=e[i+3],r[3]=e[i+4],r[2]=e[i+5],r[1]=e[i+6],r[0]=e[i+7],t[0]}e.writeDoubleLE=i?n:o,e.writeDoubleBE=i?o:n,e.readDoubleLE=i?s:a,e.readDoubleBE=i?a:s}():function(){function t(e,t,r,i,n,o){var s=i<0?1:0;if(s&&(i=-i),0===i)e(0,n,o+t),e(1/i>0?0:2147483648,n,o+r);else if(isNaN(i))e(0,n,o+t),e(2146959360,n,o+r);else if(i>17976931348623157e292)e(0,n,o+t),e((s<<31|2146435072)>>>0,n,o+r);else{var a;if(i<22250738585072014e-324)e((a=i/5e-324)>>>0,n,o+t),e((s<<31|a/4294967296)>>>0,n,o+r);else{var u=Math.floor(Math.log(i)/Math.LN2);1024===u&&(u=1023),e(4503599627370496*(a=i*Math.pow(2,-u))>>>0,n,o+t),e((s<<31|u+1023<<20|1048576*a&1048575)>>>0,n,o+r)}}}function s(e,t,r,i,n){var o=e(i,n+t),s=e(i,n+r),a=2*(s>>31)+1,u=s>>>20&2047,f=4294967296*(1048575&s)+o;return 2047===u?f?NaN:a*(1/0):0===u?5e-324*a*f:a*Math.pow(2,u-1075)*(f+4503599627370496)}e.writeDoubleLE=t.bind(null,r,0,4),e.writeDoubleBE=t.bind(null,i,4,0),e.readDoubleLE=s.bind(null,n,0,4),e.readDoubleBE=s.bind(null,o,4,0)}(),e}function r(e,t,r){t[r]=255&e,t[r+1]=e>>>8&255,t[r+2]=e>>>16&255,t[r+3]=e>>>24}function i(e,t,r){t[r]=e>>>24,t[r+1]=e>>>16&255,t[r+2]=e>>>8&255,t[r+3]=255&e}function n(e,t){return(e[t]|e[t+1]<<8|e[t+2]<<16|e[t+3]<<24)>>>0}function o(e,t){return(e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3])>>>0}e.exports=t(t)},9687:(e,t,r)=>{e.exports=a;var i=r(8923);((a.prototype=Object.create(i.prototype)).constructor=a).className="Service";var n=r(8811),o=r(3262),s=r(5047);function a(e,t){i.call(this,e,t),this.methods={},this._methodsArray=null}function u(e){return e._methodsArray=null,e}a.fromJSON=function(e,t){var r=new a(e,t.options);if(t.methods)for(var i=Object.keys(t.methods),o=0;o{t._resolveFeaturesRecursive(e)}),this):this},a.prototype.add=function(e){if(this.get(e.name))throw Error("duplicate name '"+e.name+"' in "+this);return e instanceof n?(this.methods[e.name]=e,e.parent=this,u(this)):i.prototype.add.call(this,e)},a.prototype.remove=function(e){if(e instanceof n){if(this.methods[e.name]!==e)throw Error(e+" is not a member of "+this);return delete this.methods[e.name],e.parent=null,u(this)}return i.prototype.remove.call(this,e)},a.prototype.create=function(e,t,r){for(var i,n=new s.Service(e,t,r),a=0;a{"use strict";var __webpack_modules__={8045:function(e){e.exports=t;function t(e,t){for(var r=Array(arguments.length-1),i=0,n=2,o=!0;n1&&"="===e.charAt(t);)++r;return Math.ceil(3*e.length)/4-r};for(var i=Array(64),n=Array(123),o=0;o<64;)n[i[o]=o<26?o+65:o<52?o+71:o<62?o-4:o-59|43]=o++;r.encode=function(e,t,r){for(var n,o=null,s=[],a=0,u=0;t>2],n=(3&f)<<4,u=1;break;case 1:s[a++]=i[n|f>>4],n=(15&f)<<2,u=2;break;case 2:s[a++]=i[n|f>>6],s[a++]=i[63&f],u=0}a>8191&&((o||(o=[])).push(String.fromCharCode.apply(String,s)),a=0)}return(u&&(s[a++]=i[n],s[a++]=61,1===u&&(s[a++]=61)),o)?(a&&o.push(String.fromCharCode.apply(String,s.slice(0,a))),o.join("")):String.fromCharCode.apply(String,s.slice(0,a))};var s="invalid encoding";r.decode=function(e,t,r){for(var i,o=r,a=0,u=0;u1)break;if(void 0===(f=n[f]))throw Error(s);switch(a){case 0:i=f,a=1;break;case 1:t[r++]=i<<2|(48&f)>>4,i=f,a=2;break;case 2:t[r++]=(15&i)<<4|(60&f)>>2,i=f,a=3;break;case 3:t[r++]=(3&i)<<6|f,a=0}}if(1===a)throw Error(s);return r-o},r.test=function(e){return/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(e)}},8561:function(e){function t(e,r){"string"==typeof e&&(r=e,e=void 0);var i=[];function n(e){if("string"!=typeof e){var r=o();if(t.verbose&&console.log("codegen: "+r),r="return "+r,e){for(var s=Object.keys(e),a=Array(s.length+1),u=Array(s.length),f=0;f0?0:0x80000000,r,i);else if(isNaN(t))e(0x7fc00000,r,i);else if(t>34028234663852886e22)e((n<<31|0x7f800000)>>>0,r,i);else if(t<11754943508222875e-54)e((n<<31|Math.round(t/1401298464324817e-60))>>>0,r,i);else{var o=Math.floor(Math.log(t)/Math.LN2),s=8388607&Math.round(t*Math.pow(2,-o)*8388608);e((n<<31|o+127<<23|s)>>>0,r,i)}}function s(e,t,r){var i=e(t,r),n=(i>>31)*2+1,o=i>>>23&255,s=8388607&i;return 255===o?s?NaN:1/0*n:0===o?1401298464324817e-60*n*s:n*Math.pow(2,o-150)*(s+8388608)}e.writeFloatLE=t.bind(null,r),e.writeFloatBE=t.bind(null,i),e.readFloatLE=s.bind(null,n),e.readFloatBE=s.bind(null,o)}(),"undefined"!=typeof Float64Array?!function(){var t=new Float64Array([-0]),r=new Uint8Array(t.buffer),i=128===r[7];function n(e,i,n){t[0]=e,i[n]=r[0],i[n+1]=r[1],i[n+2]=r[2],i[n+3]=r[3],i[n+4]=r[4],i[n+5]=r[5],i[n+6]=r[6],i[n+7]=r[7]}function o(e,i,n){t[0]=e,i[n]=r[7],i[n+1]=r[6],i[n+2]=r[5],i[n+3]=r[4],i[n+4]=r[3],i[n+5]=r[2],i[n+6]=r[1],i[n+7]=r[0]}function s(e,i){return r[0]=e[i],r[1]=e[i+1],r[2]=e[i+2],r[3]=e[i+3],r[4]=e[i+4],r[5]=e[i+5],r[6]=e[i+6],r[7]=e[i+7],t[0]}function a(e,i){return r[7]=e[i],r[6]=e[i+1],r[5]=e[i+2],r[4]=e[i+3],r[3]=e[i+4],r[2]=e[i+5],r[1]=e[i+6],r[0]=e[i+7],t[0]}e.writeDoubleLE=i?n:o,e.writeDoubleBE=i?o:n,e.readDoubleLE=i?s:a,e.readDoubleBE=i?a:s}():!function(){function t(e,t,r,i,n,o){var s,a=+(i<0);if(a&&(i=-i),0===i)e(0,n,o+t),e(1/i>0?0:0x80000000,n,o+r);else if(isNaN(i))e(0,n,o+t),e(0x7ff80000,n,o+r);else if(i>17976931348623157e292)e(0,n,o+t),e((a<<31|0x7ff00000)>>>0,n,o+r);else if(i<22250738585072014e-324)e((s=i/5e-324)>>>0,n,o+t),e((a<<31|s/0x100000000)>>>0,n,o+r);else{var u=Math.floor(Math.log(i)/Math.LN2);1024===u&&(u=1023),e(0x10000000000000*(s=i*Math.pow(2,-u))>>>0,n,o+t),e((a<<31|u+1023<<20|1048576*s&1048575)>>>0,n,o+r)}}function s(e,t,r,i,n){var o=e(i,n+t),s=e(i,n+r),a=(s>>31)*2+1,u=s>>>20&2047,f=0x100000000*(1048575&s)+o;return 2047===u?f?NaN:1/0*a:0===u?5e-324*a*f:a*Math.pow(2,u-1075)*(f+0x10000000000000)}e.writeDoubleLE=t.bind(null,r,0,4),e.writeDoubleBE=t.bind(null,i,4,0),e.readDoubleLE=s.bind(null,n,0,4),e.readDoubleBE=s.bind(null,o,4,0)}(),e}function r(e,t,r){t[r]=255&e,t[r+1]=e>>>8&255,t[r+2]=e>>>16&255,t[r+3]=e>>>24}function i(e,t,r){t[r]=e>>>24,t[r+1]=e>>>16&255,t[r+2]=e>>>8&255,t[r+3]=255&e}function n(e,t){return(e[t]|e[t+1]<<8|e[t+2]<<16|e[t+3]<<24)>>>0}function o(e,t){return(e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3])>>>0}e.exports=t(t)},4153:function(module){module.exports=inquire;function inquire(moduleName){try{var mod=eval("quire".replace(/^/,"re"))(moduleName);if(mod&&(mod.length||Object.keys(mod).length))return mod}catch(e){}return null}},9207:function(e,t){var r=t,i=r.isAbsolute=function(e){return/^(?:\/|\w+:)/.test(e)},n=r.normalize=function(e){var t=(e=e.replace(/\\/g,"/").replace(/\/{2,}/g,"/")).split("/"),r=i(e),n="";r&&(n=t.shift()+"/");for(var o=0;o0&&".."!==t[o-1]?t.splice(--o,2):r?t.splice(o,1):++o:"."===t[o]?t.splice(o,1):++o;return n+t.join("/")};r.resolve=function(e,t,r){return(r||(t=n(t)),i(t))?t:(r||(e=n(e)),(e=e.replace(/(?:\/|^)[^/]+$/,"")).length?n(e+"/"+t):t)}},9390:function(e){e.exports=t;function t(e,t,r){var i=r||8192,n=i>>>1,o=null,s=i;return function(r){if(r<1||r>n)return e(r);s+r>i&&(o=e(i),s=0);var a=t.call(o,s,s+=r);return 7&s&&(s=(7|s)+1),a}}},1447:function(e,t){var r=t;r.length=function(e){for(var t=0,r=0,i=0;i191&&i<224?o[s++]=(31&i)<<6|63&e[t++]:i>239&&i<365?(i=((7&i)<<18|(63&e[t++])<<12|(63&e[t++])<<6|63&e[t++])-65536,o[s++]=55296+(i>>10),o[s++]=56320+(1023&i)):o[s++]=(15&i)<<12|(63&e[t++])<<6|63&e[t++],s>8191&&((n||(n=[])).push(String.fromCharCode.apply(String,o)),s=0);return n?(s&&n.push(String.fromCharCode.apply(String,o.slice(0,s))),n.join("")):String.fromCharCode.apply(String,o.slice(0,s))},r.write=function(e,t,r){for(var i,n,o=r,s=0;s>6|192:((64512&i)==55296&&(64512&(n=e.charCodeAt(s+1)))==56320?(i=65536+((1023&i)<<10)+(1023&n),++s,t[r++]=i>>18|240,t[r++]=i>>12&63|128):t[r++]=i>>12|224,t[r++]=i>>6&63|128),t[r++]=63&i|128);return r-o}},2549:function(e,t,r){e.exports=r(9100)},5095:function(e){e.exports=i;var t,r=/\/|\./;function i(e,t){r.test(e)||(e="google/protobuf/"+e+".proto",t={nested:{google:{nested:{protobuf:{nested:t}}}}}),i[e]=t}i("any",{Any:{fields:{type_url:{type:"string",id:1},value:{type:"bytes",id:2}}}}),i("duration",{Duration:t={fields:{seconds:{type:"int64",id:1},nanos:{type:"int32",id:2}}}}),i("timestamp",{Timestamp:t}),i("empty",{Empty:{fields:{}}}),i("struct",{Struct:{fields:{fields:{keyType:"string",type:"Value",id:1}}},Value:{oneofs:{kind:{oneof:["nullValue","numberValue","stringValue","boolValue","structValue","listValue"]}},fields:{nullValue:{type:"NullValue",id:1},numberValue:{type:"double",id:2},stringValue:{type:"string",id:3},boolValue:{type:"bool",id:4},structValue:{type:"Struct",id:5},listValue:{type:"ListValue",id:6}}},NullValue:{values:{NULL_VALUE:0}},ListValue:{fields:{values:{rule:"repeated",type:"Value",id:1}}}}),i("wrappers",{DoubleValue:{fields:{value:{type:"double",id:1}}},FloatValue:{fields:{value:{type:"float",id:1}}},Int64Value:{fields:{value:{type:"int64",id:1}}},UInt64Value:{fields:{value:{type:"uint64",id:1}}},Int32Value:{fields:{value:{type:"int32",id:1}}},UInt32Value:{fields:{value:{type:"uint32",id:1}}},BoolValue:{fields:{value:{type:"bool",id:1}}},StringValue:{fields:{value:{type:"string",id:1}}},BytesValue:{fields:{value:{type:"bytes",id:1}}}}),i("field_mask",{FieldMask:{fields:{paths:{rule:"repeated",type:"string",id:1}}}}),i.get=function(e){return i[e]||null}},744:function(e,t,r){var i=t,n=r(5643),o=r(3262);function s(e,t,r,i){var o=!1;if(t.resolvedType)if(t.resolvedType instanceof n){e("switch(d%s){",i);for(var s=t.resolvedType.values,a=Object.keys(s),u=0;u>>0",i,i);break;case"int32":case"sint32":case"sfixed32":e("m%s=d%s|0",i,i);break;case"uint64":f=!0;case"int64":case"sint64":case"fixed64":case"sfixed64":e("if(util.Long)")("(m%s=util.Long.fromValue(d%s)).unsigned=%j",i,i,f)('else if(typeof d%s==="string")',i)("m%s=parseInt(d%s,10)",i,i)('else if(typeof d%s==="number")',i)("m%s=d%s",i,i)('else if(typeof d%s==="object")',i)("m%s=new util.LongBits(d%s.low>>>0,d%s.high>>>0).toNumber(%s)",i,i,i,f?"true":"");break;case"bytes":e('if(typeof d%s==="string")',i)("util.base64.decode(d%s,m%s=util.newBuffer(util.base64.length(d%s)),0)",i,i,i)("else if(d%s.length >= 0)",i)("m%s=d%s",i,i);break;case"string":e("m%s=String(d%s)",i,i);break;case"bool":e("m%s=Boolean(d%s)",i,i)}}return e}function a(e,t,r,i){if(t.resolvedType)t.resolvedType instanceof n?e("d%s=o.enums===String?(types[%i].values[m%s]===undefined?m%s:types[%i].values[m%s]):m%s",i,r,i,i,r,i,i):e("d%s=types[%i].toObject(m%s,o)",i,r,i);else{var o=!1;switch(t.type){case"double":case"float":e("d%s=o.json&&!isFinite(m%s)?String(m%s):m%s",i,i,i,i);break;case"uint64":o=!0;case"int64":case"sint64":case"fixed64":case"sfixed64":e('if(typeof m%s==="number")',i)("d%s=o.longs===String?String(m%s):m%s",i,i,i)("else")("d%s=o.longs===String?util.Long.prototype.toString.call(m%s):o.longs===Number?new util.LongBits(m%s.low>>>0,m%s.high>>>0).toNumber(%s):m%s",i,i,i,i,o?"true":"",i);break;case"bytes":e("d%s=o.bytes===String?util.base64.encode(m%s,0,m%s.length):o.bytes===Array?Array.prototype.slice.call(m%s):m%s",i,i,i,i,i);break;default:e("d%s=m%s",i,i)}}return e}i.fromObject=function(e){var t=e.fieldsArray,r=o.codegen(["d"],e.name+"$fromObject")("if(d instanceof this.ctor)")("return d");if(!t.length)return r("return new this.ctor");r("var m=new this.ctor");for(var i=0;i>>3){"),r=0;r>>3){")("case 1: k=r.%s(); break",a.keyType)("case 2:"),void 0===n.basic[u]?t("value=types[%i].decode(r,r.uint32())",r):t("value=r.%s()",u),t("break")("default:")("r.skipType(tag2&7)")("break")("}")("}"),void 0!==n.long[a.keyType]?t('%s[typeof k==="object"?util.longToHash(k):k]=value',f):t("%s[k]=value",f)):a.repeated?(t("if(!(%s&&%s.length))",f,f)("%s=[]",f),void 0!==n.packed[u]&&t("if((t&7)===2){")("var c2=r.uint32()+r.pos")("while(r.pos>>0,(t.id<<3|4)>>>0):e("types[%i].encode(%s,w.uint32(%i).fork()).ldelim()",r,i,(t.id<<3|2)>>>0)}function a(e){for(var t,r,a=o.codegen(["m","w"],e.name+"$encode")("if(!w)")("w=Writer.create()"),u=e.fieldsArray.slice().sort(o.compareFieldsById),t=0;t>>0,8|n.mapKey[f.keyType],f.keyType),void 0===c?a("types[%i].encode(%s[ks[i]],w.uint32(18).fork()).ldelim().ldelim()",l,r):a(".uint32(%i).%s(%s[ks[i]]).ldelim()",16|c,p,r),a("}")("}")):f.repeated?(a("if(%s!=null&&%s.length){",r,r),f.packed&&void 0!==n.packed[p]?a("w.uint32(%i).fork()",(f.id<<3|2)>>>0)("for(var i=0;i<%s.length;++i)",r)("w.%s(%s[i])",p,r)("w.ldelim()"):(a("for(var i=0;i<%s.length;++i)",r),void 0===c?s(a,f,l,r+"[i]"):a("w.uint32(%i).%s(%s[i])",(f.id<<3|c)>>>0,p,r)),a("}")):(f.optional&&a("if(%s!=null&&Object.hasOwnProperty.call(m,%j))",r,f.name),void 0===c?s(a,f,l,r):a("w.uint32(%i).%s(%s)",(f.id<<3|c)>>>0,p,r))}return a("return w")}},5643:function(e,t,r){e.exports=s;var i=r(7209);((s.prototype=Object.create(i.prototype)).constructor=s).className="Enum";var n=r(8923),o=r(3262);function s(e,t,r,n,o,s){if(i.call(this,e,r),t&&"object"!=typeof t)throw TypeError("values must be an object");if(this.valuesById={},this.values=Object.create(this.valuesById),this.comment=n,this.comments=o||{},this.valuesOptions=s,this._valuesFeatures={},this.reserved=void 0,t)for(var a=Object.keys(t),u=0;u{var t=Object.assign({},this._features);this._valuesFeatures[e]=Object.assign(t,this.valuesOptions&&this.valuesOptions[e]&&this.valuesOptions[e].features)}),this},s.fromJSON=function(e,t){var r=new s(e,t.values,t.options,t.comment,t.comments);return r.reserved=t.reserved,t.edition&&(r._edition=t.edition),r._defaultEdition="proto3",r},s.prototype.toJSON=function(e){var t=!!e&&!!e.keepComments;return o.toObject(["edition",this._editionToJSON(),"options",this.options,"valuesOptions",this.valuesOptions,"values",this.values,"reserved",this.reserved&&this.reserved.length?this.reserved:void 0,"comment",t?this.comment:void 0,"comments",t?this.comments:void 0])},s.prototype.add=function(e,t,r,i){if(!o.isString(e))throw TypeError("name must be a string");if(!o.isInteger(t))throw TypeError("id must be an integer");if(void 0!==this.values[e])throw Error("duplicate name '"+e+"' in "+this);if(this.isReservedId(t))throw Error("id "+t+" is reserved in "+this);if(this.isReservedName(e))throw Error("name '"+e+"' is reserved in "+this);if(void 0!==this.valuesById[t]){if(!(this.options&&this.options.allow_alias))throw Error("duplicate id "+t+" in "+this);this.values[e]=t}else this.valuesById[this.values[e]=t]=e;return i&&(void 0===this.valuesOptions&&(this.valuesOptions={}),this.valuesOptions[e]=i||null),this.comments[e]=r||null,this},s.prototype.remove=function(e){if(!o.isString(e))throw TypeError("name must be a string");var t=this.values[e];if(null==t)throw Error("name '"+e+"' does not exist in "+this);return delete this.valuesById[t],delete this.values[e],delete this.comments[e],this.valuesOptions&&delete this.valuesOptions[e],this},s.prototype.isReservedId=function(e){return n.isReservedId(this.reserved,e)},s.prototype.isReservedName=function(e){return n.isReservedName(this.reserved,e)}},1344:function(e,t,r){e.exports=f;var i,n=r(7209);((f.prototype=Object.create(n.prototype)).constructor=f).className="Field";var o=r(5643),s=r(361),a=r(3262),u=/^required|optional|repeated$/;function f(e,t,r,i,o,f,l){if(a.isObject(i)?(l=o,f=i,i=o=void 0):a.isObject(o)&&(l=f,f=o,o=void 0),n.call(this,e,f),!a.isInteger(t)||t<0)throw TypeError("id must be a non-negative integer");if(!a.isString(r))throw TypeError("type must be a string");if(void 0!==i&&!u.test(i=i.toString().toLowerCase()))throw TypeError("rule must be a string rule");if(void 0!==o&&!a.isString(o))throw TypeError("extend must be a string");"proto3_optional"===i&&(i="optional"),this.rule=i&&"optional"!==i?i:void 0,this.type=r,this.id=t,this.extend=o||void 0,this.repeated="repeated"===i,this.map=!1,this.message=null,this.partOf=null,this.typeDefault=null,this.defaultValue=null,this.long=!!a.Long&&void 0!==s.long[r],this.bytes="bytes"===r,this.resolvedType=null,this.extensionField=null,this.declaringField=null,this.comment=l}f.fromJSON=function(e,t){var r=new f(e,t.id,t.type,t.rule,t.extend,t.options,t.comment);return t.edition&&(r._edition=t.edition),r._defaultEdition="proto3",r},Object.defineProperty(f.prototype,"required",{get:function(){return"LEGACY_REQUIRED"===this._features.field_presence}}),Object.defineProperty(f.prototype,"optional",{get:function(){return!this.required}}),Object.defineProperty(f.prototype,"delimited",{get:function(){return this.resolvedType instanceof i&&"DELIMITED"===this._features.message_encoding}}),Object.defineProperty(f.prototype,"packed",{get:function(){return"PACKED"===this._features.repeated_field_encoding}}),Object.defineProperty(f.prototype,"hasPresence",{get:function(){return!this.repeated&&!this.map&&(this.partOf||this.declaringField||this.extensionField||"IMPLICIT"!==this._features.field_presence)}}),f.prototype.setOption=function(e,t,r){return n.prototype.setOption.call(this,e,t,r)},f.prototype.toJSON=function(e){var t=!!e&&!!e.keepComments;return a.toObject(["edition",this._editionToJSON(),"rule","optional"!==this.rule&&this.rule||void 0,"type",this.type,"id",this.id,"extend",this.extend,"options",this.options,"comment",t?this.comment:void 0])},f.prototype.resolve=function(){if(this.resolved)return this;if(void 0===(this.typeDefault=s.defaults[this.type])?(this.resolvedType=(this.declaringField?this.declaringField.parent:this.parent).lookupTypeOrEnum(this.type),this.resolvedType instanceof i?this.typeDefault=null:this.typeDefault=this.resolvedType.values[Object.keys(this.resolvedType.values)[0]]):this.options&&this.options.proto3_optional&&(this.typeDefault=null),this.options&&null!=this.options.default&&(this.typeDefault=this.options.default,this.resolvedType instanceof o&&"string"==typeof this.typeDefault&&(this.typeDefault=this.resolvedType.values[this.typeDefault])),this.options&&(void 0===this.options.packed||!this.resolvedType||this.resolvedType instanceof o||delete this.options.packed,Object.keys(this.options).length||(this.options=void 0)),this.long)this.typeDefault=a.Long.fromNumber(this.typeDefault,"u"===this.type.charAt(0)),Object.freeze&&Object.freeze(this.typeDefault);else if(this.bytes&&"string"==typeof this.typeDefault){var e;a.base64.test(this.typeDefault)?a.base64.decode(this.typeDefault,e=a.newBuffer(a.base64.length(this.typeDefault)),0):a.utf8.write(this.typeDefault,e=a.newBuffer(a.utf8.length(this.typeDefault)),0),this.typeDefault=e}return this.map?this.defaultValue=a.emptyObject:this.repeated?this.defaultValue=a.emptyArray:this.defaultValue=this.typeDefault,this.parent instanceof i&&(this.parent.ctor.prototype[this.name]=this.defaultValue),n.prototype.resolve.call(this)},f.prototype._inferLegacyProtoFeatures=function(e){if("proto2"!==e&&"proto3"!==e)return{};var t={};if("required"===this.rule&&(t.field_presence="LEGACY_REQUIRED"),this.parent&&void 0===s.defaults[this.type]){var r=this.parent.get(this.type.split(".").pop());r&&r instanceof i&&r.group&&(t.message_encoding="DELIMITED")}return!0===this.getOption("packed")?t.repeated_field_encoding="PACKED":!1===this.getOption("packed")&&(t.repeated_field_encoding="EXPANDED"),t},f.prototype._resolveFeatures=function(e){return n.prototype._resolveFeatures.call(this,this._edition||e)},f.d=function(e,t,r,i){return"function"==typeof t?t=a.decorateType(t).name:t&&"object"==typeof t&&(t=a.decorateEnum(t).name),function(n,o){a.decorateType(n.constructor).add(new f(o,e,t,r,{default:i}))}},f._configure=function(e){i=e}},5325:function(e,t,r){var i=e.exports=r(4394);function n(e,t,r){return"function"==typeof t?(r=t,t=new i.Root):t||(t=new i.Root),t.load(e,r)}function o(e,t){return t||(t=new i.Root),t.loadSync(e)}i.build="light",i.load=n,i.loadSync=o,i.encoder=r(1080),i.decoder=r(7728),i.verifier=r(420),i.converter=r(744),i.ReflectionObject=r(7209),i.Namespace=r(8923),i.Root=r(5330),i.Enum=r(5643),i.Type=r(7882),i.Field=r(1344),i.OneOf=r(1457),i.MapField=r(8252),i.Service=r(9687),i.Method=r(8811),i.Message=r(2551),i.wrappers=r(6434),i.types=r(361),i.util=r(3262),i.ReflectionObject._configure(i.Root),i.Namespace._configure(i.Type,i.Service,i.Enum),i.Root._configure(i.Type),i.Field._configure(i.Type)},4394:function(e,t,r){var i=t;function n(){i.util._configure(),i.Writer._configure(i.BufferWriter),i.Reader._configure(i.BufferReader)}i.build="minimal",i.Writer=r(3449),i.BufferWriter=r(818),i.Reader=r(6237),i.BufferReader=r(3158),i.util=r(3610),i.rpc=r(5047),i.roots=r(4529),i.configure=n,n()},9100:function(e,t,r){var i=e.exports=r(5325);i.build="full",i.tokenize=r(527),i.parse=r(4863),i.common=r(5095),i.Root._configure(i.Type,i.parse,i.common)},8252:function(e,t,r){e.exports=s;var i=r(1344);((s.prototype=Object.create(i.prototype)).constructor=s).className="MapField";var n=r(361),o=r(3262);function s(e,t,r,n,s,a){if(i.call(this,e,t,n,void 0,void 0,s,a),!o.isString(r))throw TypeError("keyType must be a string");this.keyType=r,this.resolvedKeyType=null,this.map=!0}s.fromJSON=function(e,t){return new s(e,t.id,t.keyType,t.type,t.options,t.comment)},s.prototype.toJSON=function(e){var t=!!e&&!!e.keepComments;return o.toObject(["keyType",this.keyType,"type",this.type,"id",this.id,"extend",this.extend,"options",this.options,"comment",t?this.comment:void 0])},s.prototype.resolve=function(){if(this.resolved)return this;if(void 0===n.mapKey[this.keyType])throw Error("invalid key type: "+this.keyType);return i.prototype.resolve.call(this)},s.d=function(e,t,r){return"function"==typeof r?r=o.decorateType(r).name:r&&"object"==typeof r&&(r=o.decorateEnum(r).name),function(i,n){o.decorateType(i.constructor).add(new s(n,e,t,r))}}},2551:function(e,t,r){e.exports=n;var i=r(3610);function n(e){if(e)for(var t=Object.keys(e),r=0;rt)return!0}return!1},p.isReservedName=function(e,t){if(e){for(var r=0;r0;){var i=e.shift();if(r.nested&&r.nested[i]){if(!((r=r.nested[i])instanceof p))throw Error("path conflicts with non-namespace objects")}else r.add(r=new p(i))}return t&&r.addJSON(t),r},p.prototype.resolveAll=function(){if(!this._needsRecursiveResolve)return this;this._resolveFeaturesRecursive(this._edition);var e=this.nestedArray,t=0;for(this.resolve();t{t._resolveFeaturesRecursive(e)})),this},p.prototype.lookup=function(e,t,r){if("boolean"==typeof t?(r=t,t=void 0):t&&!Array.isArray(t)&&(t=[t]),u.isString(e)&&e.length){if("."===e)return this.root;e=e.split(".")}else if(!e.length)return this;var i=e.join(".");if(""===e[0])return this.root.lookup(e.slice(1),t);var n=this.root._fullyQualifiedObjects&&this.root._fullyQualifiedObjects["."+i];if(n&&(!t||t.indexOf(n.constructor)>-1)||(n=this._lookupImpl(e,i))&&(!t||t.indexOf(n.constructor)>-1))return n;if(r)return null;for(var o=this;o.parent;){if((n=o.parent._lookupImpl(e,i))&&(!t||t.indexOf(n.constructor)>-1))return n;o=o.parent}return null},p.prototype._lookupImpl=function(e,t){if(Object.prototype.hasOwnProperty.call(this._lookupCache,t))return this._lookupCache[t];var r=this.get(e[0]),i=null;if(r)1===e.length?i=r:r instanceof p&&(e=e.slice(1),i=r._lookupImpl(e,e.join(".")));else for(var n=0;n-1&&this.oneof.splice(t,1),e.partOf=null,this},s.prototype.onAdd=function(e){i.prototype.onAdd.call(this,e);for(var t=this,r=0;r{e._edition=L,Object.keys($).forEach(t=>{void 0===e.getOption(t)&&e.setOption(t,$[t],!0)})})}function q(e,t,r){var i=k.filename;return r||(k.filename=null),Error("illegal "+(t||"token")+" '"+e+"' ("+(i?i+", ":"")+"line "+N.line+")")}function z(){var e,t=[];do{if('"'!==(e=R())&&"'"!==e)throw q(e);t.push(R()),B(e),e=I()}while('"'===e||"'"===e);return t.join("")}function U(e){var t=R();switch(t){case"'":case'"':return F(t),z();case"true":case"TRUE":return!0;case"false":case"FALSE":return!1}try{return W(t,!0)}catch(r){if(e&&j.test(t))return t;throw q(t,"value")}}function H(e,t){do if(t&&('"'===(r=I())||"'"===r)){var r,i,n=z();if(e.push(n),L>=2023)throw q(n,"id")}else try{e.push([i=G(R()),B("to",!0)?G(R()):i])}catch(i){if(t&&j.test(r)&&L>=2023)e.push(r);else throw i}while(B(",",!0));var o={options:void 0};o.setOption=function(e,t){void 0===this.options&&(this.options={}),this.options[e]=t},ee(o,function(e){if("option"===e)eu(o,e),B(";");else throw q(e)},function(){ec(o)})}function W(e,t){var r=1;switch("-"===e.charAt(0)&&(r=-1,e=e.substring(1)),e){case"inf":case"INF":case"Inf":return 1/0*r;case"nan":case"NAN":case"Nan":case"NaN":return NaN;case"0":return 0}if(y.test(e))return r*parseInt(e,10);if(m.test(e))return r*parseInt(e,16);if(b.test(e))return r*parseInt(e,8);if(O.test(e))return r*parseFloat(e);throw q(e,"number",t)}function G(e,t){switch(e){case"max":case"MAX":case"Max":return 0x1fffffff;case"0":return 0}if(!t&&"-"===e.charAt(0))throw q(e,"id");if(v.test(e))return parseInt(e,10);if(g.test(e))return parseInt(e,16);if(w.test(e))return parseInt(e,8);throw q(e,"id")}function X(){if(void 0!==x)throw q("package");if(x=R(),!j.test(x))throw q(x,"name");C=C.define(x),B(";")}function Z(){var e,t=I();switch(t){case"weak":e=S||(S=[]),R();break;case"public":R();default:e=E||(E=[])}t=z(),B(";"),e.push(t)}function K(){if(B("="),(L=z())<2023)throw q(L,"syntax");B(";")}function Q(){if(B("="),!["2023"].includes(L=z()))throw q(L,"edition");B(";")}function Y(e,t){switch(t){case"option":return eu(e,t),B(";"),!0;case"message":return et(e,t),!0;case"enum":return es(e,t),!0;case"service":return eh(e,t),!0;case"extend":return ey(e,t),!0}return!1}function ee(e,t,r){var i,n=N.line;if(e&&("string"!=typeof e.comment&&(e.comment=P()),e.filename=k.filename),B("{",!0)){for(;"}"!==(i=R());)t(i);B(";",!0)}else r&&r(),B(";"),e&&("string"!=typeof e.comment||T)&&(e.comment=P(n)||e.comment)}function et(e,t){if(!_.test(t=R()))throw q(t,"type name");var r=new o(t);ee(r,function(e){if(!Y(r,e))switch(e){case"map":en(r,e);break;case"required":if("proto2"!==L)throw q(e);case"repeated":er(r,e);break;case"optional":if("proto3"===L)er(r,"proto3_optional");else if("proto2"!==L)throw q(e);else er(r,"optional");break;case"oneof":eo(r,e);break;case"extensions":H(r.extensions||(r.extensions=[]));break;case"reserved":H(r.reserved||(r.reserved=[]),!0);break;default:if("proto2"===L||!j.test(e))throw q(e);F(e),er(r,"optional")}}),e.add(r),e===C&&J.push(r)}function er(e,t,r){var i=R();if("group"===i)return void ei(e,t);for(;i.endsWith(".")||I().startsWith(".");)i+=R();if(!j.test(i))throw q(i,"type");var n=R();if(!_.test(n))throw q(n,"name");n=V(n),B("=");var o=new s(n,G(R()),i,t,r);if(ee(o,function(e){if("option"===e)eu(o,e),B(";");else throw q(e)},function(){ec(o)}),"proto3_optional"===t){var a=new u("_"+n);o.setOption("proto3_optional",!0),a.add(o),e.add(a)}else e.add(o);e===C&&J.push(o)}function ei(e,t){if(L>=2023)throw q("group");var r=R();if(!_.test(r))throw q(r,"name");var i=d.lcFirst(r);r===i&&(r=d.ucFirst(r)),B("=");var n=G(R()),a=new o(r);a.group=!0;var u=new s(i,n,r,t);u.filename=k.filename,ee(a,function(e){switch(e){case"option":eu(a,e),B(";");break;case"required":case"repeated":er(a,e);break;case"optional":"proto3"===L?er(a,"proto3_optional"):er(a,"optional");break;case"message":et(a,e);break;case"enum":es(a,e);break;case"reserved":H(a.reserved||(a.reserved=[]),!0);break;default:throw q(e)}}),e.add(a).add(u)}function en(e){B("<");var t=R();if(void 0===h.mapKey[t])throw q(t,"type");B(",");var r=R();if(!j.test(r))throw q(r,"type");B(">");var i=R();if(!_.test(i))throw q(i,"name");B("=");var n=new a(V(i),G(R()),t,r);ee(n,function(e){if("option"===e)eu(n,e),B(";");else throw q(e)},function(){ec(n)}),e.add(n)}function eo(e,t){if(!_.test(t=R()))throw q(t,"name");var r=new u(V(t));ee(r,function(e){"option"===e?(eu(r,e),B(";")):(F(e),er(r,"optional"))}),e.add(r)}function es(e,t){if(!_.test(t=R()))throw q(t,"name");var r=new f(t);ee(r,function(e){switch(e){case"option":eu(r,e),B(";");break;case"reserved":H(r.reserved||(r.reserved=[]),!0),void 0===r.reserved&&(r.reserved=[]);break;default:ea(r,e)}}),e.add(r),e===C&&J.push(r)}function ea(e,t){if(!_.test(t))throw q(t,"name");B("=");var r=G(R(),!0),i={options:void 0};i.getOption=function(e){return this.options[e]},i.setOption=function(e,t){c.prototype.setOption.call(i,e,t)},i.setParsedOption=function(){},ee(i,function(e){if("option"===e)eu(i,e),B(";");else throw q(e)},function(){ec(i)}),e.add(t,r,i.comment,i.parsedOptions||i.options)}function eu(e,t){var r,i,n=!0;for("option"===t&&(t=R());"="!==t;){if("("===t){var o=R();B(")"),t="("+o+")"}if(n){if(n=!1,t.includes(".")&&!t.includes("(")){var s=t.split(".");r=s[0]+".",t=s[1];continue}r=t}else i=i?i+=t:t;t=R()}var a=ef(e,i?r.concat(i):r);i=i&&"."===i[0]?i.slice(1):i,ep(e,r=r&&"."===r[r.length-1]?r.slice(0,-1):r,a,i)}function ef(e,t){if(B("{",!0)){for(var r={};!B("}",!0);){if(!_.test(A=R()))throw q(A,"name");if(null===A)throw q(A,"end of input");var i,n,o=A;if(B(":",!0),"{"===I())i=ef(e,t+"."+A);else if("["===I()){if(i=[],B("[",!0)){do n=U(!0),i.push(n);while(B(",",!0));B("]"),void 0!==n&&el(e,t+"."+A,n)}}else i=U(!0),el(e,t+"."+A,i);var s=r[o];s&&(i=[].concat(s).concat(i)),r[o]=i,B(",",!0),B(";",!0)}return r}var a=U(!0);return el(e,t,a),a}function el(e,t,r){if(C===e&&/^features\./.test(t)){$[t]=r;return}e.setOption&&e.setOption(t,r)}function ep(e,t,r,i){e.setParsedOption&&e.setParsedOption(t,r,i)}function ec(e){if(B("[",!0)){do eu(e,"option");while(B(",",!0));B("]")}return e}function eh(e,t){if(!_.test(t=R()))throw q(t,"service name");var r=new l(t);ee(r,function(e){if(!Y(r,e))if("rpc"===e)ed(r,e);else throw q(e)}),e.add(r),e===C&&J.push(r)}function ed(e,t){var r=P(),i=t;if(!_.test(t=R()))throw q(t,"name");var n,o,s,a,u=t;if(B("("),B("stream",!0)&&(o=!0),!j.test(t=R())||(n=t,B(")"),B("returns"),B("("),B("stream",!0)&&(a=!0),!j.test(t=R())))throw q(t);s=t,B(")");var f=new p(u,i,n,s,o,a);f.comment=r,ee(f,function(e){if("option"===e)eu(f,e),B(";");else throw q(e)}),e.add(f)}function ey(e,t){if(!j.test(t=R()))throw q(t,"reference");var r=t;ee(null,function(t){switch(t){case"required":case"repeated":er(e,t,r);break;case"optional":"proto3"===L?er(e,"proto3_optional",r):er(e,"optional",r);break;default:if("proto2"===L||!j.test(t))throw q(t);F(t),er(e,"optional",r)}})}for(;null!==(A=R());)switch(A){case"package":if(!D)throw q(A);X();break;case"import":if(!D)throw q(A);Z();break;case"syntax":if(!D)throw q(A);K();break;case"edition":if(!D)throw q(A);Q();break;case"option":eu(C,A),B(";",!0);break;default:if(Y(C,A)){D=!1;continue}throw q(A)}return M(),k.filename=null,{package:x,imports:E,weakImports:S,root:t}}},6237:function(e,t,r){e.exports=u;var i,n=r(3610),o=n.LongBits,s=n.utf8;function a(e,t){return RangeError("index out of range: "+e.pos+" + "+(t||1)+" > "+e.len)}function u(e){this.buf=e,this.pos=0,this.len=e.length}var f="undefined"!=typeof Uint8Array?function(e){if(e instanceof Uint8Array||Array.isArray(e))return new u(e);throw Error("illegal buffer")}:function(e){if(Array.isArray(e))return new u(e);throw Error("illegal buffer")},l=function(){return n.Buffer?function(e){return(u.create=function(e){return n.Buffer.isBuffer(e)?new i(e):f(e)})(e)}:f};function p(){var e=new o(0,0),t=0;if(this.len-this.pos>4){for(;t<4;++t)if(e.lo=(e.lo|(127&this.buf[this.pos])<<7*t)>>>0,this.buf[this.pos++]<128)return e;if(e.lo=(e.lo|(127&this.buf[this.pos])<<28)>>>0,e.hi=(e.hi|(127&this.buf[this.pos])>>4)>>>0,this.buf[this.pos++]<128)return e;t=0}else{for(;t<3;++t){if(this.pos>=this.len)throw a(this);if(e.lo=(e.lo|(127&this.buf[this.pos])<<7*t)>>>0,this.buf[this.pos++]<128)return e}return e.lo=(e.lo|(127&this.buf[this.pos++])<<7*t)>>>0,e}if(this.len-this.pos>4){for(;t<5;++t)if(e.hi=(e.hi|(127&this.buf[this.pos])<<7*t+3)>>>0,this.buf[this.pos++]<128)return e}else for(;t<5;++t){if(this.pos>=this.len)throw a(this);if(e.hi=(e.hi|(127&this.buf[this.pos])<<7*t+3)>>>0,this.buf[this.pos++]<128)return e}throw Error("invalid varint encoding")}function c(e,t){return(e[t-4]|e[t-3]<<8|e[t-2]<<16|e[t-1]<<24)>>>0}function h(){if(this.pos+8>this.len)throw a(this,8);return new o(c(this.buf,this.pos+=4),c(this.buf,this.pos+=4))}u.create=l(),u.prototype._slice=n.Array.prototype.subarray||n.Array.prototype.slice,u.prototype.uint32=function(){var e=0xffffffff;return function(){if(e=(127&this.buf[this.pos])>>>0,this.buf[this.pos++]<128||(e=(e|(127&this.buf[this.pos])<<7)>>>0,this.buf[this.pos++]<128)||(e=(e|(127&this.buf[this.pos])<<14)>>>0,this.buf[this.pos++]<128)||(e=(e|(127&this.buf[this.pos])<<21)>>>0,this.buf[this.pos++]<128)||(e=(e|(15&this.buf[this.pos])<<28)>>>0,this.buf[this.pos++]<128))return e;if((this.pos+=5)>this.len)throw this.pos=this.len,a(this,10);return e}}(),u.prototype.int32=function(){return 0|this.uint32()},u.prototype.sint32=function(){var e=this.uint32();return e>>>1^-(1&e)},u.prototype.bool=function(){return 0!==this.uint32()},u.prototype.fixed32=function(){if(this.pos+4>this.len)throw a(this,4);return c(this.buf,this.pos+=4)},u.prototype.sfixed32=function(){if(this.pos+4>this.len)throw a(this,4);return 0|c(this.buf,this.pos+=4)},u.prototype.float=function(){if(this.pos+4>this.len)throw a(this,4);var e=n.float.readFloatLE(this.buf,this.pos);return this.pos+=4,e},u.prototype.double=function(){if(this.pos+8>this.len)throw a(this,4);var e=n.float.readDoubleLE(this.buf,this.pos);return this.pos+=8,e},u.prototype.bytes=function(){var e=this.uint32(),t=this.pos,r=this.pos+e;if(r>this.len)throw a(this,e);if(this.pos+=e,Array.isArray(this.buf))return this.buf.slice(t,r);if(t===r){var i=n.Buffer;return i?i.alloc(0):new this.buf.constructor(0)}return this._slice.call(this.buf,t,r)},u.prototype.string=function(){var e=this.bytes();return s.read(e,0,e.length)},u.prototype.skip=function(e){if("number"==typeof e){if(this.pos+e>this.len)throw a(this,e);this.pos+=e}else do if(this.pos>=this.len)throw a(this);while(128&this.buf[this.pos++]);return this},u.prototype.skipType=function(e){switch(e){case 0:this.skip();break;case 1:this.skip(8);break;case 2:this.skip(this.uint32());break;case 3:for(;4!=(e=7&this.uint32());)this.skipType(e);break;case 5:this.skip(4);break;default:throw Error("invalid wire type "+e+" at offset "+this.pos)}return this},u._configure=function(e){i=e,u.create=l(),i._configure();var t=n.Long?"toLong":"toNumber";n.merge(u.prototype,{int64:function(){return p.call(this)[t](!1)},uint64:function(){return p.call(this)[t](!0)},sint64:function(){return p.call(this).zzDecode()[t](!1)},fixed64:function(){return h.call(this)[t](!0)},sfixed64:function(){return h.call(this)[t](!1)}})}},3158:function(e,t,r){e.exports=o;var i=r(6237);(o.prototype=Object.create(i.prototype)).constructor=o;var n=r(3610);function o(e){i.call(this,e)}o._configure=function(){n.Buffer&&(o.prototype._slice=n.Buffer.prototype.slice)},o.prototype.string=function(){var e=this.uint32();return this.buf.utf8Slice?this.buf.utf8Slice(this.pos,this.pos=Math.min(this.pos+e,this.len)):this.buf.toString("utf-8",this.pos,this.pos=Math.min(this.pos+e,this.len))},o._configure()},5330:function(e,t,r){e.exports=p;var i,n,o,s=r(8923);((p.prototype=Object.create(s.prototype)).constructor=p).className="Root";var a=r(1344),u=r(5643),f=r(1457),l=r(3262);function p(e){s.call(this,"",e),this.deferred=[],this.files=[],this._edition="proto2",this._fullyQualifiedObjects={}}function c(){}p.fromJSON=function(e,t){return t||(t=new p),e.options&&t.setOptions(e.options),t.addJSON(e.nested).resolveAll()},p.prototype.resolvePath=l.path.resolve,p.prototype.fetch=l.fetch,p.prototype.load=function e(t,r,i){"function"==typeof r&&(i=r,r=void 0);var s=this;if(!i)return l.asPromise(e,s,t,r);var a=i===c;function u(e,t){if(i){if(a)throw e;t&&t.resolveAll();var r=i;i=null,r(e,t)}}function f(e){var t=e.lastIndexOf("google/protobuf/");if(t>-1){var r=e.substring(t);if(r in o)return r}return null}function p(e,t){try{if(l.isString(t)&&"{"===t.charAt(0)&&(t=JSON.parse(t)),l.isString(t)){n.filename=e;var i,o=n(t,s,r),p=0;if(o.imports)for(;p-1)){if(s.files.push(e),e in o)return void(a?p(e,o[e]):(++d,setTimeout(function(){--d,p(e,o[e])})));if(a){var r;try{r=l.fs.readFileSync(e).toString("utf8")}catch(e){t||u(e);return}p(e,r)}else++d,s.fetch(e,function(r,n){if(--d,i){if(r)return void(t?d||u(null,s):u(r));p(e,n)}})}}var d=0;l.isString(t)&&(t=[t]);for(var y,v=0;v-1&&this.deferred.splice(t,1)}}else if(e instanceof u)h.test(e.name)&&delete e.parent[e.name];else if(e instanceof s){for(var r=0;r{t._resolveFeaturesRecursive(e)})),this},a.prototype.add=function(e){if(this.get(e.name))throw Error("duplicate name '"+e.name+"' in "+this);return e instanceof n?(this.methods[e.name]=e,e.parent=this,u(this)):i.prototype.add.call(this,e)},a.prototype.remove=function(e){if(e instanceof n){if(this.methods[e.name]!==e)throw Error(e+" is not a member of "+this);return delete this.methods[e.name],e.parent=null,u(this)}return i.prototype.remove.call(this,e)},a.prototype.create=function(e,t,r){for(var i,n=new s.Service(e,t,r),a=0;a]/g,r=/(?:"([^"\\]*(?:\\.[^"\\]*)*)")/g,i=/(?:'([^'\\]*(?:\\.[^'\\]*)*)')/g,n=/^ *[*/]+ */,o=/^\s*\*?\/*/,s=/\n/g,a=/\s/,u=/\\(.?)/g,f={0:"\0",r:"\r",n:"\n",t:" "};function l(e){return e.replace(u,function(e,t){switch(t){case"\\":case"":return t;default:return f[t]||""}})}function p(e,u){e=e.toString();var f=0,p=e.length,c=1,h=0,d={},y=[],v=null;function m(e){return Error("illegal "+e+" (line "+c+")")}function g(){var t="'"===v?i:r;t.lastIndex=f-1;var n=t.exec(e);if(!n)throw m("string");return f=t.lastIndex,k(v),v=null,l(n[1])}function b(t){return e.charAt(t)}function w(t,r,i){var a,f={type:e.charAt(t++),lineEmpty:!1,leading:i},l=t-(u?2:3);do if(--l<0||"\n"===(a=e.charAt(l))){f.lineEmpty=!0;break}while(" "===a||" "===a);for(var p=e.substring(t,r).split(s),y=0;y0)return y.shift();if(v)return g();var r,i,n,o,s,l=0===f;do{if(f===p)return null;for(r=!1;a.test(n=b(f));)if("\n"===n&&(l=!0,++c),++f===p)return null;if("/"===b(f)){if(++f===p)throw m("comment");if("/"===b(f))if(u){if(o=f,s=!1,O(f-1)){s=!0;do if((f=_(f))===p||(f++,!l))break;while(O(f))}else f=Math.min(p,_(f)+1);s&&(w(o,f,l),l=!0),c++,r=!0}else{for(s="/"===b(o=f+1);"\n"!==b(++f);)if(f===p)return null;++f,s&&(w(o,f-1,l),l=!0),++c,r=!0}else{if("*"!==(n=b(f)))return"/";o=f+1,s=u||"*"===b(o);do{if("\n"===n&&++c,++f===p)throw m("comment");i=n,n=b(f)}while("*"!==i||"/"!==n);++f,s&&(w(o,f-2,l),l=!0),r=!0}}}while(r);var h=f;if(t.lastIndex=0,!t.test(b(h++)))for(;h{t._resolveFeatures(e)}),this.fieldsArray.forEach(t=>{t._resolveFeatures(e)})),this},g.prototype.get=function(e){return this.fields[e]||this.oneofs&&this.oneofs[e]||this.nested&&this.nested[e]||null},g.prototype.add=function(e){if(this.get(e.name))throw Error("duplicate name '"+e.name+"' in "+this);if(e instanceof s&&void 0===e.extend){if(this._fieldsById?this._fieldsById[e.id]:this.fieldsById[e.id])throw Error("duplicate id "+e.id+" in "+this);if(this.isReservedId(e.id))throw Error("id "+e.id+" is reserved in "+this);if(this.isReservedName(e.name))throw Error("name '"+e.name+"' is reserved in "+this);return e.parent&&e.parent.remove(e),this.fields[e.name]=e,e.message=this,e.onAdd(this),b(this)}return e instanceof o?(this.oneofs||(this.oneofs={}),this.oneofs[e.name]=e,e.onAdd(this),b(this)):i.prototype.add.call(this,e)},g.prototype.remove=function(e){if(e instanceof s&&void 0===e.extend){if(!this.fields||this.fields[e.name]!==e)throw Error(e+" is not a member of "+this);return delete this.fields[e.name],e.parent=null,e.onRemove(this),b(this)}if(e instanceof o){if(!this.oneofs||this.oneofs[e.name]!==e)throw Error(e+" is not a member of "+this);return delete this.oneofs[e.name],e.parent=null,e.onRemove(this),b(this)}return i.prototype.remove.call(this,e)},g.prototype.isReservedId=function(e){return i.isReservedId(this.reserved,e)},g.prototype.isReservedName=function(e){return i.isReservedName(this.reserved,e)},g.prototype.create=function(e){return new this.ctor(e)},g.prototype.setup=function(){for(var e=this.fullName,t=[],r=0;r0)e[o]=n(e[o]||{},t,r);else{var s=e[o];if(s&&i)return e;s&&(r=[].concat(s).concat(r)),e[o]=r}return e}if("object"!=typeof e)throw TypeError("dst must be an object");if(!t)throw TypeError("path must be specified");return n(e,t=t.split("."),r)},Object.defineProperty(o,"decorateRoot",{get:function(){return s.decorated||(s.decorated=new(r(5330)))}})},2239:function(e,t,r){e.exports=n;var i=r(3610);function n(e,t){this.lo=e>>>0,this.hi=t>>>0}var o=n.zero=new n(0,0);o.toNumber=function(){return 0},o.zzEncode=o.zzDecode=function(){return this},o.length=function(){return 1};var s=n.zeroHash="\0\0\0\0\0\0\0\0";n.fromNumber=function(e){if(0===e)return o;var t=e<0;t&&(e=-e);var r=e>>>0,i=(e-r)/0x100000000>>>0;return t&&(i=~i>>>0,r=~r>>>0,++r>0xffffffff&&(r=0,++i>0xffffffff&&(i=0))),new n(r,i)},n.from=function(e){if("number"==typeof e)return n.fromNumber(e);if(i.isString(e))if(!i.Long)return n.fromNumber(parseInt(e,10));else e=i.Long.fromString(e);return e.low||e.high?new n(e.low>>>0,e.high>>>0):o},n.prototype.toNumber=function(e){if(!e&&this.hi>>>31){var t=~this.lo+1>>>0,r=~this.hi>>>0;return t||(r=r+1>>>0),-(t+0x100000000*r)}return this.lo+0x100000000*this.hi},n.prototype.toLong=function(e){return i.Long?new i.Long(0|this.lo,0|this.hi,!!e):{low:0|this.lo,high:0|this.hi,unsigned:!!e}};var a=String.prototype.charCodeAt;n.fromHash=function(e){return e===s?o:new n((a.call(e,0)|a.call(e,1)<<8|a.call(e,2)<<16|a.call(e,3)<<24)>>>0,(a.call(e,4)|a.call(e,5)<<8|a.call(e,6)<<16|a.call(e,7)<<24)>>>0)},n.prototype.toHash=function(){return String.fromCharCode(255&this.lo,this.lo>>>8&255,this.lo>>>16&255,this.lo>>>24,255&this.hi,this.hi>>>8&255,this.hi>>>16&255,this.hi>>>24)},n.prototype.zzEncode=function(){var e=this.hi>>31;return this.hi=((this.hi<<1|this.lo>>>31)^e)>>>0,this.lo=(this.lo<<1^e)>>>0,this},n.prototype.zzDecode=function(){var e=-(1&this.lo);return this.lo=((this.lo>>>1|this.hi<<31)^e)>>>0,this.hi=(this.hi>>>1^e)>>>0,this},n.prototype.length=function(){var e=this.lo,t=(this.lo>>>28|this.hi<<4)>>>0,r=this.hi>>>24;return 0===r?0===t?e<16384?e<128?1:2:e<2097152?3:4:t<16384?t<128?5:6:t<2097152?7:8:r<128?9:10}},3610:function(e,t,r){var i=t;function n(e,t,r){for(var i=Object.keys(t),n=0;n0)},i.Buffer=function(){try{var e=i.inquire("buffer").Buffer;return e.prototype.utf8Write?e:null}catch(e){return null}}(),i._Buffer_from=null,i._Buffer_allocUnsafe=null,i.newBuffer=function(e){return"number"==typeof e?i.Buffer?i._Buffer_allocUnsafe(e):new i.Array(e):i.Buffer?i._Buffer_from(e):"undefined"==typeof Uint8Array?e:new Uint8Array(e)},i.Array="undefined"!=typeof Uint8Array?Uint8Array:Array,i.Long=i.global.dcodeIO&&i.global.dcodeIO.Long||i.global.Long||i.inquire("long"),i.key2Re=/^true|false|0|1$/,i.key32Re=/^-?(?:0|[1-9][0-9]*)$/,i.key64Re=/^(?:[\\x00-\\xff]{8}|-?(?:0|[1-9][0-9]*))$/,i.longToHash=function(e){return e?i.LongBits.from(e).toHash():i.LongBits.zeroHash},i.longFromHash=function(e,t){var r=i.LongBits.fromHash(e);return i.Long?i.Long.fromBits(r.lo,r.hi,t):r.toNumber(!!t)},i.merge=n,i.lcFirst=function(e){return e.charAt(0).toLowerCase()+e.substring(1)},i.newError=o,i.ProtocolError=o("ProtocolError"),i.oneOfGetter=function(e){for(var t={},r=0;r-1;--r)if(1===t[e[r]]&&void 0!==this[e[r]]&&null!==this[e[r]])return e[r]}},i.oneOfSetter=function(e){return function(t){for(var r=0;r127;)t[r++]=127&e|128,e>>>=7;t[r]=e}function y(e,t){this.len=e,this.next=void 0,this.val=t}function v(e,t,r){for(;e.hi;)t[r++]=127&e.lo|128,e.lo=(e.lo>>>7|e.hi<<25)>>>0,e.hi>>>=7;for(;e.lo>127;)t[r++]=127&e.lo|128,e.lo=e.lo>>>7;t[r++]=e.lo}function m(e,t,r){t[r]=255&e,t[r+1]=e>>>8&255,t[r+2]=e>>>16&255,t[r+3]=e>>>24}p.create=c(),p.alloc=function(e){return new n.Array(e)},n.Array!==Array&&(p.alloc=n.pool(p.alloc,n.Array.prototype.subarray)),p.prototype._push=function(e,t,r){return this.tail=this.tail.next=new u(e,t,r),this.len+=t,this},y.prototype=Object.create(u.prototype),y.prototype.fn=d,p.prototype.uint32=function(e){return this.len+=(this.tail=this.tail.next=new y((e>>>=0)<128?1:e<16384?2:e<2097152?3:e<0x10000000?4:5,e)).len,this},p.prototype.int32=function(e){return e<0?this._push(v,10,o.fromNumber(e)):this.uint32(e)},p.prototype.sint32=function(e){return this.uint32((e<<1^e>>31)>>>0)},p.prototype.uint64=function(e){var t=o.from(e);return this._push(v,t.length(),t)},p.prototype.int64=p.prototype.uint64,p.prototype.sint64=function(e){var t=o.from(e).zzEncode();return this._push(v,t.length(),t)},p.prototype.bool=function(e){return this._push(h,1,+!!e)},p.prototype.fixed32=function(e){return this._push(m,4,e>>>0)},p.prototype.sfixed32=p.prototype.fixed32,p.prototype.fixed64=function(e){var t=o.from(e);return this._push(m,4,t.lo)._push(m,4,t.hi)},p.prototype.sfixed64=p.prototype.fixed64,p.prototype.float=function(e){return this._push(n.float.writeFloatLE,4,e)},p.prototype.double=function(e){return this._push(n.float.writeDoubleLE,8,e)};var g=n.Array.prototype.set?function(e,t,r){t.set(e,r)}:function(e,t,r){for(var i=0;i>>0;if(!t)return this._push(h,1,0);if(n.isString(e)){var r=p.alloc(t=s.length(e));s.decode(e,r,0),e=r}return this.uint32(t)._push(g,t,e)},p.prototype.string=function(e){var t=a.length(e);return t?this.uint32(t)._push(a.write,t,e):this._push(h,1,0)},p.prototype.fork=function(){return this.states=new l(this),this.head=this.tail=new u(f,0,0),this.len=0,this},p.prototype.reset=function(){return this.states?(this.head=this.states.head,this.tail=this.states.tail,this.len=this.states.len,this.states=this.states.next):(this.head=this.tail=new u(f,0,0),this.len=0),this},p.prototype.ldelim=function(){var e=this.head,t=this.tail,r=this.len;return this.reset().uint32(r),r&&(this.tail.next=e.next,this.tail=t,this.len+=r),this},p.prototype.finish=function(){for(var e=this.head.next,t=this.constructor.alloc(this.len),r=0;e;)e.fn(e.val,t,r),r+=e.len,e=e.next;return t},p._configure=function(e){i=e,p.create=c(),i._configure()}},818:function(e,t,r){e.exports=o;var i=r(3449);(o.prototype=Object.create(i.prototype)).constructor=o;var n=r(3610);function o(){i.call(this)}function s(e,t,r){e.length<40?n.utf8.write(e,t,r):t.utf8Write?t.utf8Write(e,r):t.write(e,r)}o._configure=function(){o.alloc=n._Buffer_allocUnsafe,o.writeBytesBuffer=n.Buffer&&n.Buffer.prototype instanceof Uint8Array&&"set"===n.Buffer.prototype.set.name?function(e,t,r){t.set(e,r)}:function(e,t,r){if(e.copy)e.copy(t,r,0,e.length);else for(var i=0;i>>0;return this.uint32(t),t&&this._push(o.writeBytesBuffer,t,e),this},o.prototype.string=function(e){var t=n.Buffer.byteLength(e);return this.uint32(t),t&&this._push(s,t,e),this},o._configure()}},__webpack_module_cache__={};function __webpack_require__(e){var t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;var r=__webpack_module_cache__[e]={exports:{}};return __webpack_modules__[e].call(r.exports,r,r.exports,__webpack_require__),r.exports}var __webpack_exports__=__webpack_require__(2549);module.exports=__webpack_exports__})(); \ No newline at end of file diff --git a/packages/node_modules/retry.js b/packages/node_modules/retry.js index f722ec7bb4d..7f569d85637 100644 --- a/packages/node_modules/retry.js +++ b/packages/node_modules/retry.js @@ -1 +1 @@ -(()=>{var t={3961:t=>{function e(t,e){"boolean"==typeof e&&(e={forever:e}),this._originalTimeouts=JSON.parse(JSON.stringify(t)),this._timeouts=t,this._options=e||{},this._maxRetryTime=e&&e.maxRetryTime||1/0,this._fn=null,this._errors=[],this._attempts=1,this._operationTimeout=null,this._operationTimeoutCb=null,this._timeout=null,this._operationStart=null,this._timer=null,this._options.forever&&(this._cachedTimeouts=this._timeouts.slice(0))}t.exports=e,e.prototype.reset=function(){this._attempts=1,this._timeouts=this._originalTimeouts.slice(0)},e.prototype.stop=function(){this._timeout&&clearTimeout(this._timeout),this._timer&&clearTimeout(this._timer),this._timeouts=[],this._cachedTimeouts=null},e.prototype.retry=function(t){if(this._timeout&&clearTimeout(this._timeout),!t)return!1;var e=(new Date).getTime();if(t&&e-this._operationStart>=this._maxRetryTime)return this._errors.push(t),this._errors.unshift(new Error("RetryOperation timeout occurred")),!1;this._errors.push(t);var r=this._timeouts.shift();if(void 0===r){if(!this._cachedTimeouts)return!1;this._errors.splice(0,this._errors.length-1),r=this._cachedTimeouts.slice(-1)}var i=this;return this._timer=setTimeout(function(){i._attempts++,i._operationTimeoutCb&&(i._timeout=setTimeout(function(){i._operationTimeoutCb(i._attempts)},i._operationTimeout),i._options.unref&&i._timeout.unref()),i._fn(i._attempts)},r),this._options.unref&&this._timer.unref(),!0},e.prototype.attempt=function(t,e){this._fn=t,e&&(e.timeout&&(this._operationTimeout=e.timeout),e.cb&&(this._operationTimeoutCb=e.cb));var r=this;this._operationTimeoutCb&&(this._timeout=setTimeout(function(){r._operationTimeoutCb()},r._operationTimeout)),this._operationStart=(new Date).getTime(),this._fn(this._attempts)},e.prototype.try=function(t){console.log("Using RetryOperation.try() is deprecated"),this.attempt(t)},e.prototype.start=function(t){console.log("Using RetryOperation.start() is deprecated"),this.attempt(t)},e.prototype.start=e.prototype.try,e.prototype.errors=function(){return this._errors},e.prototype.attempts=function(){return this._attempts},e.prototype.mainError=function(){if(0===this._errors.length)return null;for(var t={},e=null,r=0,i=0;i=r&&(e=o,r=s)}return e}},5617:(t,e,r)=>{t.exports=r(8303)},8303:(t,e,r)=>{var i=r(3961);e.operation=function(t){var r=e.timeouts(t);return new i(r,{forever:t&&(t.forever||t.retries===1/0),unref:t&&t.unref,maxRetryTime:t&&t.maxRetryTime})},e.timeouts=function(t){if(t instanceof Array)return[].concat(t);var e={retries:10,factor:2,minTimeout:1e3,maxTimeout:1/0,randomize:!1};for(var r in t)e[r]=t[r];if(e.minTimeout>e.maxTimeout)throw new Error("minTimeout is greater than maxTimeout");for(var i=[],o=0;o{var t={5617:function(t,e,i){t.exports=i(8303)},8303:function(t,e,i){var r=i(3961);e.operation=function(t){return new r(e.timeouts(t),{forever:t&&(t.forever||t.retries===1/0),unref:t&&t.unref,maxRetryTime:t&&t.maxRetryTime})},e.timeouts=function(t){if(t instanceof Array)return[].concat(t);var e={retries:10,factor:2,minTimeout:1e3,maxTimeout:1/0,randomize:!1};for(var i in t)e[i]=t[i];if(e.minTimeout>e.maxTimeout)throw Error("minTimeout is greater than maxTimeout");for(var r=[],o=0;o=this._maxRetryTime)return this._errors.push(t),this._errors.unshift(Error("RetryOperation timeout occurred")),!1;this._errors.push(t);var i=this._timeouts.shift();if(void 0===i)if(!this._cachedTimeouts)return!1;else this._errors.splice(0,this._errors.length-1),i=this._cachedTimeouts.slice(-1);var r=this;return this._timer=setTimeout(function(){r._attempts++,r._operationTimeoutCb&&(r._timeout=setTimeout(function(){r._operationTimeoutCb(r._attempts)},r._operationTimeout),r._options.unref&&r._timeout.unref()),r._fn(r._attempts)},i),this._options.unref&&this._timer.unref(),!0},e.prototype.attempt=function(t,e){this._fn=t,e&&(e.timeout&&(this._operationTimeout=e.timeout),e.cb&&(this._operationTimeoutCb=e.cb));var i=this;this._operationTimeoutCb&&(this._timeout=setTimeout(function(){i._operationTimeoutCb()},i._operationTimeout)),this._operationStart=new Date().getTime(),this._fn(this._attempts)},e.prototype.try=function(t){console.log("Using RetryOperation.try() is deprecated"),this.attempt(t)},e.prototype.start=function(t){console.log("Using RetryOperation.start() is deprecated"),this.attempt(t)},e.prototype.start=e.prototype.try,e.prototype.errors=function(){return this._errors},e.prototype.attempts=function(){return this._attempts},e.prototype.mainError=function(){if(0===this._errors.length)return null;for(var t={},e=null,i=0,r=0;r=i&&(e=o,i=s)}return e}}},e={},i=function i(r){var o=e[r];if(void 0!==o)return o.exports;var n=e[r]={exports:{}};return t[r](n,n.exports,i),n.exports}(5617);module.exports=i})(); \ No newline at end of file diff --git a/packages/node_modules/retry/lib/retry_operation.js b/packages/node_modules/retry/lib/retry_operation.js index cd716f997a2..a4968bb2745 100644 --- a/packages/node_modules/retry/lib/retry_operation.js +++ b/packages/node_modules/retry/lib/retry_operation.js @@ -1 +1 @@ -(()=>{var t={3961:t=>{function e(t,e){"boolean"==typeof e&&(e={forever:e}),this._originalTimeouts=JSON.parse(JSON.stringify(t)),this._timeouts=t,this._options=e||{},this._maxRetryTime=e&&e.maxRetryTime||1/0,this._fn=null,this._errors=[],this._attempts=1,this._operationTimeout=null,this._operationTimeoutCb=null,this._timeout=null,this._operationStart=null,this._timer=null,this._options.forever&&(this._cachedTimeouts=this._timeouts.slice(0))}t.exports=e,e.prototype.reset=function(){this._attempts=1,this._timeouts=this._originalTimeouts.slice(0)},e.prototype.stop=function(){this._timeout&&clearTimeout(this._timeout),this._timer&&clearTimeout(this._timer),this._timeouts=[],this._cachedTimeouts=null},e.prototype.retry=function(t){if(this._timeout&&clearTimeout(this._timeout),!t)return!1;var e=(new Date).getTime();if(t&&e-this._operationStart>=this._maxRetryTime)return this._errors.push(t),this._errors.unshift(new Error("RetryOperation timeout occurred")),!1;this._errors.push(t);var i=this._timeouts.shift();if(void 0===i){if(!this._cachedTimeouts)return!1;this._errors.splice(0,this._errors.length-1),i=this._cachedTimeouts.slice(-1)}var o=this;return this._timer=setTimeout(function(){o._attempts++,o._operationTimeoutCb&&(o._timeout=setTimeout(function(){o._operationTimeoutCb(o._attempts)},o._operationTimeout),o._options.unref&&o._timeout.unref()),o._fn(o._attempts)},i),this._options.unref&&this._timer.unref(),!0},e.prototype.attempt=function(t,e){this._fn=t,e&&(e.timeout&&(this._operationTimeout=e.timeout),e.cb&&(this._operationTimeoutCb=e.cb));var i=this;this._operationTimeoutCb&&(this._timeout=setTimeout(function(){i._operationTimeoutCb()},i._operationTimeout)),this._operationStart=(new Date).getTime(),this._fn(this._attempts)},e.prototype.try=function(t){console.log("Using RetryOperation.try() is deprecated"),this.attempt(t)},e.prototype.start=function(t){console.log("Using RetryOperation.start() is deprecated"),this.attempt(t)},e.prototype.start=e.prototype.try,e.prototype.errors=function(){return this._errors},e.prototype.attempts=function(){return this._attempts},e.prototype.mainError=function(){if(0===this._errors.length)return null;for(var t={},e=null,i=0,o=0;o=i&&(e=r,i=n)}return e}}},e={},i=function i(o){var r=e[o];if(void 0!==r)return r.exports;var s=e[o]={exports:{}};return t[o](s,s.exports,i),s.exports}(3961);module.exports=i})(); \ No newline at end of file +(()=>{var t={3961:function(t){function e(t,e){"boolean"==typeof e&&(e={forever:e}),this._originalTimeouts=JSON.parse(JSON.stringify(t)),this._timeouts=t,this._options=e||{},this._maxRetryTime=e&&e.maxRetryTime||1/0,this._fn=null,this._errors=[],this._attempts=1,this._operationTimeout=null,this._operationTimeoutCb=null,this._timeout=null,this._operationStart=null,this._timer=null,this._options.forever&&(this._cachedTimeouts=this._timeouts.slice(0))}t.exports=e,e.prototype.reset=function(){this._attempts=1,this._timeouts=this._originalTimeouts.slice(0)},e.prototype.stop=function(){this._timeout&&clearTimeout(this._timeout),this._timer&&clearTimeout(this._timer),this._timeouts=[],this._cachedTimeouts=null},e.prototype.retry=function(t){if(this._timeout&&clearTimeout(this._timeout),!t)return!1;var e=new Date().getTime();if(t&&e-this._operationStart>=this._maxRetryTime)return this._errors.push(t),this._errors.unshift(Error("RetryOperation timeout occurred")),!1;this._errors.push(t);var i=this._timeouts.shift();if(void 0===i)if(!this._cachedTimeouts)return!1;else this._errors.splice(0,this._errors.length-1),i=this._cachedTimeouts.slice(-1);var o=this;return this._timer=setTimeout(function(){o._attempts++,o._operationTimeoutCb&&(o._timeout=setTimeout(function(){o._operationTimeoutCb(o._attempts)},o._operationTimeout),o._options.unref&&o._timeout.unref()),o._fn(o._attempts)},i),this._options.unref&&this._timer.unref(),!0},e.prototype.attempt=function(t,e){this._fn=t,e&&(e.timeout&&(this._operationTimeout=e.timeout),e.cb&&(this._operationTimeoutCb=e.cb));var i=this;this._operationTimeoutCb&&(this._timeout=setTimeout(function(){i._operationTimeoutCb()},i._operationTimeout)),this._operationStart=new Date().getTime(),this._fn(this._attempts)},e.prototype.try=function(t){console.log("Using RetryOperation.try() is deprecated"),this.attempt(t)},e.prototype.start=function(t){console.log("Using RetryOperation.start() is deprecated"),this.attempt(t)},e.prototype.start=e.prototype.try,e.prototype.errors=function(){return this._errors},e.prototype.attempts=function(){return this._attempts},e.prototype.mainError=function(){if(0===this._errors.length)return null;for(var t={},e=null,i=0,o=0;o=i&&(e=r,i=n)}return e}}},e={},i=function i(o){var r=e[o];if(void 0!==r)return r.exports;var s=e[o]={exports:{}};return t[o](s,s.exports,i),s.exports}(3961);module.exports=i})(); \ No newline at end of file diff --git a/packages/node_modules/rfdc.js b/packages/node_modules/rfdc.js index 30acb506923..8d0578c3b6e 100644 --- a/packages/node_modules/rfdc.js +++ b/packages/node_modules/rfdc.js @@ -1 +1 @@ -(()=>{"use strict";var t={9844:t=>{function r(t){return t instanceof Buffer?Buffer.from(t):new t.constructor(t.buffer.slice(),t.byteOffset,t.length)}t.exports=function(t){if((t=t||{}).circles)return function(t){const e=[],n=[],o=new Map;if(o.set(Date,t=>new Date(t)),o.set(Map,(t,r)=>new Map(s(Array.from(t),r))),o.set(Set,(t,r)=>new Set(s(Array.from(t),r))),t.constructorHandlers)for(const r of t.constructorHandlers)o.set(r[0],r[1]);let c=null;return t.proto?function t(u){if("object"!=typeof u||null===u)return u;if(Array.isArray(u))return s(u,t);if(u.constructor!==Object&&(c=o.get(u.constructor)))return c(u,t);const f={};e.push(u),n.push(f);for(const s in u){const i=u[s];if("object"!=typeof i||null===i)f[s]=i;else if(i.constructor!==Object&&(c=o.get(i.constructor)))f[s]=c(i,t);else if(ArrayBuffer.isView(i))f[s]=r(i);else{const r=e.indexOf(i);f[s]=-1!==r?n[r]:t(i)}}return e.pop(),n.pop(),f}:function t(u){if("object"!=typeof u||null===u)return u;if(Array.isArray(u))return s(u,t);if(u.constructor!==Object&&(c=o.get(u.constructor)))return c(u,t);const f={};e.push(u),n.push(f);for(const s in u){if(!1===Object.hasOwnProperty.call(u,s))continue;const i=u[s];if("object"!=typeof i||null===i)f[s]=i;else if(i.constructor!==Object&&(c=o.get(i.constructor)))f[s]=c(i,t);else if(ArrayBuffer.isView(i))f[s]=r(i);else{const r=e.indexOf(i);f[s]=-1!==r?n[r]:t(i)}}return e.pop(),n.pop(),f};function s(t,s){const u=Object.keys(t),f=new Array(u.length);for(let i=0;inew Date(t)),e.set(Map,(t,r)=>new Map(o(Array.from(t),r))),e.set(Set,(t,r)=>new Set(o(Array.from(t),r))),t.constructorHandlers)for(const r of t.constructorHandlers)e.set(r[0],r[1]);let n=null;return t.proto?function t(c){if("object"!=typeof c||null===c)return c;if(Array.isArray(c))return o(c,t);if(c.constructor!==Object&&(n=e.get(c.constructor)))return n(c,t);const s={};for(const o in c){const u=c[o];"object"!=typeof u||null===u?s[o]=u:u.constructor!==Object&&(n=e.get(u.constructor))?s[o]=n(u,t):ArrayBuffer.isView(u)?s[o]=r(u):s[o]=t(u)}return s}:function t(c){if("object"!=typeof c||null===c)return c;if(Array.isArray(c))return o(c,t);if(c.constructor!==Object&&(n=e.get(c.constructor)))return n(c,t);const s={};for(const o in c){if(!1===Object.hasOwnProperty.call(c,o))continue;const u=c[o];"object"!=typeof u||null===u?s[o]=u:u.constructor!==Object&&(n=e.get(u.constructor))?s[o]=n(u,t):ArrayBuffer.isView(u)?s[o]=r(u):s[o]=t(u)}return s};function o(t,o){const c=Object.keys(t),s=new Array(c.length);for(let u=0;u{"use strict";var t={9844:function(t){function e(t){return t instanceof Buffer?Buffer.from(t):new t.constructor(t.buffer.slice(),t.byteOffset,t.length)}t.exports=function(t){if((t=t||{}).circles)return function(t){let r=[],o=[],n=new Map;if(n.set(Date,t=>new Date(t)),n.set(Map,(t,e)=>new Map(u(Array.from(t),e))),n.set(Set,(t,e)=>new Set(u(Array.from(t),e))),t.constructorHandlers)for(let e of t.constructorHandlers)n.set(e[0],e[1]);let c=null;return t.proto?function t(f){if("object"!=typeof f||null===f)return f;if(Array.isArray(f))return u(f,t);if(f.constructor!==Object&&(c=n.get(f.constructor)))return c(f,t);let l={};for(let u in r.push(f),o.push(l),f){let s=f[u];if("object"!=typeof s||null===s)l[u]=s;else if(s.constructor!==Object&&(c=n.get(s.constructor)))l[u]=c(s,t);else if(ArrayBuffer.isView(s))l[u]=e(s);else{let e=r.indexOf(s);-1!==e?l[u]=o[e]:l[u]=t(s)}}return r.pop(),o.pop(),l}:function t(f){if("object"!=typeof f||null===f)return f;if(Array.isArray(f))return u(f,t);if(f.constructor!==Object&&(c=n.get(f.constructor)))return c(f,t);let l={};for(let u in r.push(f),o.push(l),f){if(!1===Object.hasOwnProperty.call(f,u))continue;let s=f[u];if("object"!=typeof s||null===s)l[u]=s;else if(s.constructor!==Object&&(c=n.get(s.constructor)))l[u]=c(s,t);else if(ArrayBuffer.isView(s))l[u]=e(s);else{let e=r.indexOf(s);-1!==e?l[u]=o[e]:l[u]=t(s)}}return r.pop(),o.pop(),l};function u(t,u){let f=Object.keys(t),l=Array(f.length);for(let s=0;snew Date(t)),r.set(Map,(t,e)=>new Map(n(Array.from(t),e))),r.set(Set,(t,e)=>new Set(n(Array.from(t),e))),t.constructorHandlers)for(let e of t.constructorHandlers)r.set(e[0],e[1]);let o=null;return t.proto?function t(c){if("object"!=typeof c||null===c)return c;if(Array.isArray(c))return n(c,t);if(c.constructor!==Object&&(o=r.get(c.constructor)))return o(c,t);let u={};for(let n in c){let f=c[n];"object"!=typeof f||null===f?u[n]=f:f.constructor!==Object&&(o=r.get(f.constructor))?u[n]=o(f,t):ArrayBuffer.isView(f)?u[n]=e(f):u[n]=t(f)}return u}:function t(c){if("object"!=typeof c||null===c)return c;if(Array.isArray(c))return n(c,t);if(c.constructor!==Object&&(o=r.get(c.constructor)))return o(c,t);let u={};for(let n in c){if(!1===Object.hasOwnProperty.call(c,n))continue;let f=c[n];"object"!=typeof f||null===f?u[n]=f:f.constructor!==Object&&(o=r.get(f.constructor))?u[n]=o(f,t):ArrayBuffer.isView(f)?u[n]=e(f):u[n]=t(f)}return u};function n(t,n){let c=Object.keys(t),u=Array(c.length);for(let f=0;f{var t={3734:t=>{function n(t,n){for(const[e,r]of t)if(!l(n,r,e))return!1;return!0}function e(t){return"latest"===t&&(t=">=0"),t.match(/^([^\d+]*)(\d.*)$/)||[null,"","*.*.*"]}function r(t,n){const e=t.slice(0);if(-1===t[n])return e;for(e[n++]++;n<3;n++)e[n]=0;return e}function u(t){return"x"===t||"X"===t||"*"===t||"latest"===t?-1:Number(t)}function i(t){return/^\d+$/.test(t)?Number(t):t}function s(t,n,e){return-1===e?"<"!==t:"="===t?n===e:">"===t?n>e:">="===t?n>=e:"<"===t?n"===n?(n=">=",s.push(0,0,0),s[o]++):""===n?s.push(0,0,0):s.push(-1,-1,-1),r?[s.slice(0,3).concat(r.split(".").map(i)),n]:[s.slice(0,3),n]}function l(t,n,e){if(!s("=",t[0],n[0]))return s(e,t[0],n[0]);if(!s("=",t[1],n[1]))return s(e,t[1],n[1]);if(!s("=",t[2],n[2]))return s(e,t[2],n[2]);if(3===t.length&&3===n.length)return s(e,t[2],n[2]);if("<"===e[0]&&(3===n.length||3===t.length))return!1;if(">"===e[0]){if(3===t.length)return!0;if(3===n.length)return!1}for(let r=3;r=~v^]+$/.test(s)&&t+1="}if("~"===h[0]){const t=l[2].split("-")[0].split(".").length;u.push([">=",c]),u.push(["<",r(c,1===t?0:1)])}else if("^"===h[0]){const t=0!==c[0]?0:0!==c[1]?1:2;u.push([">=",c]),u.push(["<",r(c,0===t?0:1===t?1:2)])}else u.push([h.replace("~","").replace("^",""),c])}return u.length&&n.push(u),n}(u))if(n(t,i))return!0;return!1}}},n={},e=function e(r){var u=n[r];if(void 0!==u)return u.exports;var i=n[r]={exports:{}};return t[r](i,i.exports,e),i.exports}(3734);module.exports=e})(); \ No newline at end of file +(()=>{var t={3734:function(t){function e(t){return"latest"===t&&(t=">=0"),t.match(/^([^\d+]*)(\d.*)$/)||[null,"","*.*.*"]}function n(t,e){let n=t.slice(0);if(-1===t[e])return n;for(n[e++]++;e<3;e++)n[e]=0;return n}function r(t){return"x"===t||"X"===t||"*"===t||"latest"===t?-1:Number(t)}function u(t){return/^\d+$/.test(t)?Number(t):t}function i(t,e,n){return -1===n?"<"!==t:"="===t?e===n:">"===t?e>n:">="===t?e>=n:"<"===t?e"===e?(e=">=",l.push(0,0,0),l[f]++):""===e?l.push(0,0,0):l.push(-1,-1,-1),i)?[l.slice(0,3).concat(i.split(".").map(u)),e]:[l.slice(0,3),e]}t.exports=function(t,r){let[u]=l(t,"");for(let t of function(t){let r=[],u=[],i=t.trim().split(/\s+/);for(let t=0;t=~v^]+$/.test(f)&&t+1="}if("~"===p[0]){let t=s[2].split("-")[0].split(".").length;u.push([">=",h]),u.push(["<",1===t?n(h,0):n(h,1)])}else if("^"===p[0]){let t=0!==h[0]?0:0!==h[1]?1:2;u.push([">=",h]),u.push(["<",0===t?n(h,0):1===t?n(h,1):n(h,2)])}else u.push([p.replace("~","").replace("^",""),h])}return u.length&&r.push(u),r}(r))if(function(t,e){for(let[n,r]of t)if(!function(t,e,n){if(!i("=",t[0],e[0]))return i(n,t[0],e[0]);if(!i("=",t[1],e[1]))return i(n,t[1],e[1]);if(!i("=",t[2],e[2])||3===t.length&&3===e.length)return i(n,t[2],e[2]);if("<"===n[0]&&(3===e.length||3===t.length))return!1;if(">"===n[0]){if(3===t.length)return!0;if(3===e.length)return!1}for(let r=3;r{"use strict";var e={3940:e=>{e.exports=function(e){return e.map(function(e){return""===e?"''":e&&"object"==typeof e?e.op.replace(/(.)/g,"\\$1"):/["\s\\]/.test(e)&&!/'/.test(e)?"'"+e.replace(/(['])/g,"\\$1")+"'":/["'\s]/.test(e)?'"'+e.replace(/(["\\$`!])/g,"\\$1")+'"':String(e).replace(/([A-Za-z]:)?([#!"$&'()*,:;<=>?@[\\\]^`{|}])/g,"$1\\$2")}).join(" ")}},9563:e=>{for(var t="(?:"+["\\|\\|","\\&\\&",";;","\\|\\&","\\<\\(","\\<\\<\\<",">>",">\\&","<\\&","[&;()|<>]"].join("|")+")",r=new RegExp("^"+t+"$"),n="|&;()<> \\t",o=/^#$/,i="",a=0;a<4;a++)i+=(4294967296*Math.random()).toString(16);var c=new RegExp("^"+i);e.exports=function(e,a,s){var u=function(e,a,c){c||(c={});var s=c.escape||"\\",u=new RegExp(["("+t+")","((\\"+s+"['\""+n+"]|[^\\s'\""+n+"])+|\"((\\\\\"|[^\"])*?)\"|'((\\\\'|[^'])*?)')+"].join("|"),"g"),f=function(e,t){for(var r,n=t.lastIndex,o=[];r=t.exec(e);)o.push(r),t.lastIndex===r.index&&(t.lastIndex+=1);return t.lastIndex=n,o}(e,u);if(0===f.length)return[];a||(a={});var p=!1;return f.map(function(t){var n=t[0];if(n&&!p){if(r.test(n))return{op:n};var c,u=!1,f=!1,l="",v=!1;for(c=0;c{"use strict";var t={9563:function(t){for(var e="(?:\\|\\||\\&\\&|;;|\\|\\&|\\<\\(|\\<\\<\\<|>>|>\\&|<\\&|[&;()|<>])",r=RegExp("^"+e+"$"),n="|&;()<> \\t",o=/^#$/,i="",s=0;s<4;s++)i+=(0x100000000*Math.random()).toString(16);var a=RegExp("^"+i);t.exports=function(t,s,c){var u=function(t,s,a){a||(a={});var c=a.escape||"\\",u=function(t,e){for(var r,n=e.lastIndex,o=[];r=e.exec(t);)o.push(r),e.lastIndex===r.index&&(e.lastIndex+=1);return e.lastIndex=n,o}(t,RegExp(["("+e+")","("+("(\\"+c+"['\""+n+"]|[^\\s'\""+n)+"])+|\"((\\\\\"|[^\"])*?)\"|'((\\\\'|[^'])*?)')+"].join("|"),"g"));if(0===u.length)return[];s||(s={});var f=!1;return u.map(function(e){var n,a=e[0];if(a&&!f){if(r.test(a))return{op:a};var u=!1,p=!1,l="",x=!1;for(n=0;n?@[\\\]^`{|}])/g,"$1\\$2")}).join(" ")}}},e={};function r(n){var o=e[n];if(void 0!==o)return o.exports;var i=e[n]={exports:{}};return t[n](i,i.exports,r),i.exports}var n={};n.quote=r(3940),n.parse=r(9563),module.exports=n})(); \ No newline at end of file diff --git a/packages/node_modules/source-map.js b/packages/node_modules/source-map.js index 57e07ed7375..21d8384edee 100644 --- a/packages/node_modules/source-map.js +++ b/packages/node_modules/source-map.js @@ -1 +1 @@ -(()=>{var e={251:(e,n,t)=>{const r=t(2626);n.getArg=function(e,n,t){if(n in e)return e[n];if(3===arguments.length)return t;throw new Error('"'+n+'" is a required argument.')};const o=!("__proto__"in Object.create(null));function s(e){return e}function i(e){if(!e)return!1;const n=e.length;if(n<9)return!1;if(95!==e.charCodeAt(n-1)||95!==e.charCodeAt(n-2)||111!==e.charCodeAt(n-3)||116!==e.charCodeAt(n-4)||111!==e.charCodeAt(n-5)||114!==e.charCodeAt(n-6)||112!==e.charCodeAt(n-7)||95!==e.charCodeAt(n-8)||95!==e.charCodeAt(n-9))return!1;for(let t=n-10;t>=0;t--)if(36!==e.charCodeAt(t))return!1;return!0}function l(e,n){return e===n?0:null===e?1:null===n?-1:e>n?1:-1}n.toSetString=o?s:function(e){return i(e)?"$"+e:e},n.fromSetString=o?s:function(e){return i(e)?e.slice(1):e},n.compareByGeneratedPositionsInflated=function(e,n){let t=e.generatedLine-n.generatedLine;return 0!==t?t:(t=e.generatedColumn-n.generatedColumn,0!==t?t:(t=l(e.source,n.source),0!==t?t:(t=e.originalLine-n.originalLine,0!==t?t:(t=e.originalColumn-n.originalColumn,0!==t?t:l(e.name,n.name)))))},n.parseSourceMapInput=function(e){return JSON.parse(e.replace(/^\)]}'[^\n]*\n/,""))};const a="http://host";function u(e){return n=>{const t=m(n),o=g(n),s=new r(n,o);e(s);const i=s.toString();return"absolute"===t?i:"scheme-relative"===t?i.slice(5):"path-absolute"===t?i.slice(11):p(o,i)}}function c(e,n){return new r(e,n).toString()}function g(e){const n=e.split("..").length-1,t=function(e,n){let t=0;for(;;){const e="p"+t++;if(-1===n.indexOf(e))return e}}(0,e);let r=`${a}/`;for(let e=0;e0&&!o[o.length-1]&&o.pop();t.length>0&&o.length>0&&t[0]===o[0];)t.shift(),o.shift();return o.map(()=>"..").concat(t).join("/")+n.search+n.hash}const d=u(e=>{e.pathname=e.pathname.replace(/\/?$/,"/")}),_=u(e=>{e.href=new r(".",e.toString()).toString()}),f=u(e=>{});function C(e,n){const t=m(n),r=m(e);if(e=d(e),"absolute"===t)return c(n,void 0);if("absolute"===r)return c(n,e);if("scheme-relative"===t)return f(n);if("scheme-relative"===r)return c(n,c(e,a)).slice(5);if("path-absolute"===t)return f(n);if("path-absolute"===r)return c(n,c(e,a)).slice(11);const o=g(n+e);return p(o,c(n,c(e,o)))}n.normalize=f,n.join=C,n.relative=function(e,n){const t=function(e,n){if(m(e)!==m(n))return null;const t=g(e+n),o=new r(e,t),s=new r(n,t);try{new r("",s.toString())}catch(e){return null}return s.protocol!==o.protocol||s.user!==o.user||s.password!==o.password||s.hostname!==o.hostname||s.port!==o.port?null:p(o,s)}(e,n);return"string"==typeof t?t:f(n)},n.computeSourceURL=function(e,n,t){e&&"path-absolute"===m(n)&&(n=n.replace(/^\//,""));let r=f(n||"");return e&&(r=C(e,r)),t&&(r=C(_(t),r)),r}},735:(e,n)=>{class t{constructor(){this._array=[],this._set=new Map}static fromArray(e,n){const r=new t;for(let t=0,o=e.length;t=0)return n;throw new Error('"'+e+'" is not in the set.')}at(e){if(e>=0&&e{function t(e,r,o,s,i,l){const a=Math.floor((r-e)/2)+e,u=i(o,s[a],!0);return 0===u?a:u>0?r-a>1?t(a,r,o,s,i,l):l===n.LEAST_UPPER_BOUND?r1?t(e,a,o,s,i,l):l==n.LEAST_UPPER_BOUND?a:e<0?-1:e}n.GREATEST_LOWER_BOUND=1,n.LEAST_UPPER_BOUND=2,n.search=function(e,r,o,s){if(0===r.length)return-1;let i=t(-1,r.length,e,r,o,s||n.GREATEST_LOWER_BOUND);if(i<0)return-1;for(;i-1>=0&&0===o(r[i],r[i-1],!0);)--i;return i}},1683:(e,n,t)=>{const r=t(4041).SourceMapGenerator,o=t(251),s=/(\r?\n)/,i="$$$isSourceNode$$$";class l{constructor(e,n,t,r,o){this.children=[],this.sourceContents={},this.line=null==e?null:e,this.column=null==n?null:n,this.source=null==t?null:t,this.name=null==o?null:o,this[i]=!0,null!=r&&this.add(r)}static fromStringWithSourceMap(e,n,t){const r=new l,i=e.split(s);let a=0;const u=function(){return e()+(e()||"");function e(){return a=0;n--)this.prepend(e[n]);else{if(!e[i]&&"string"!=typeof e)throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e);this.children.unshift(e)}return this}walk(e){let n;for(let t=0,r=this.children.length;t0){for(n=[],t=0;t{const t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");n.encode=function(e){if(0<=e&&e{"use strict";e.exports="function"==typeof URL?URL:t(7016).URL},3302:(e,n,t)=>{const r=t(251);n.P=class{constructor(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}unsortedForEach(e,n){this._array.forEach(e,n)}add(e){!function(e,n){const t=e.generatedLine,o=n.generatedLine,s=e.generatedColumn,i=n.generatedColumn;return o>t||o==t&&i>=s||r.compareByGeneratedPositionsInflated(e,n)<=0}(this._last,e)?(this._sorted=!1,this._array.push(e)):(this._last=e,this._array.push(e))}toArray(){return this._sorted||(this._array.sort(r.compareByGeneratedPositionsInflated),this._sorted=!0),this._array}}},4041:(e,n,t)=>{const r=t(7092),o=t(251),s=t(735).C,i=t(3302).P;class l{constructor(e){e||(e={}),this._file=o.getArg(e,"file",null),this._sourceRoot=o.getArg(e,"sourceRoot",null),this._skipValidation=o.getArg(e,"skipValidation",!1),this._sources=new s,this._names=new s,this._mappings=new i,this._sourcesContents=null}static fromSourceMap(e){const n=e.sourceRoot,t=new l({file:e.file,sourceRoot:n});return e.eachMapping(function(e){const r={generated:{line:e.generatedLine,column:e.generatedColumn}};null!=e.source&&(r.source=e.source,null!=n&&(r.source=o.relative(n,r.source)),r.original={line:e.originalLine,column:e.originalColumn},null!=e.name&&(r.name=e.name)),t.addMapping(r)}),e.sources.forEach(function(r){let s=r;null!=n&&(s=o.relative(n,r)),t._sources.has(s)||t._sources.add(s);const i=e.sourceContentFor(r);null!=i&&t.setSourceContent(r,i)}),t}addMapping(e){const n=o.getArg(e,"generated"),t=o.getArg(e,"original",null);let r=o.getArg(e,"source",null),s=o.getArg(e,"name",null);this._skipValidation||this._validateMapping(n,t,r,s),null!=r&&(r=String(r),this._sources.has(r)||this._sources.add(r)),null!=s&&(s=String(s),this._names.has(s)||this._names.add(s)),this._mappings.add({generatedLine:n.line,generatedColumn:n.column,originalLine:t&&t.line,originalColumn:t&&t.column,source:r,name:s})}setSourceContent(e,n){let t=e;null!=this._sourceRoot&&(t=o.relative(this._sourceRoot,t)),null!=n?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[o.toSetString(t)]=n):this._sourcesContents&&(delete this._sourcesContents[o.toSetString(t)],0===Object.keys(this._sourcesContents).length&&(this._sourcesContents=null))}applySourceMap(e,n,t){let r=n;if(null==n){if(null==e.file)throw new Error('SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map\'s "file" property. Both were omitted.');r=e.file}const i=this._sourceRoot;null!=i&&(r=o.relative(i,r));const l=this._mappings.toArray().length>0?new s:this._sources,a=new s;this._mappings.unsortedForEach(function(n){if(n.source===r&&null!=n.originalLine){const r=e.originalPositionFor({line:n.originalLine,column:n.originalColumn});null!=r.source&&(n.source=r.source,null!=t&&(n.source=o.join(t,n.source)),null!=i&&(n.source=o.relative(i,n.source)),n.originalLine=r.line,n.originalColumn=r.column,null!=r.name&&(n.name=r.name))}const s=n.source;null==s||l.has(s)||l.add(s);const u=n.name;null==u||a.has(u)||a.add(u)},this),this._sources=l,this._names=a,e.sources.forEach(function(n){const r=e.sourceContentFor(n);null!=r&&(null!=t&&(n=o.join(t,n)),null!=i&&(n=o.relative(i,n)),this.setSourceContent(n,r))},this)}_validateMapping(e,n,t,r){if(n&&"number"!=typeof n.line&&"number"!=typeof n.column)throw new Error("original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.");if(e&&"line"in e&&"column"in e&&e.line>0&&e.column>=0&&!n&&!t&&!r);else if(!(e&&"line"in e&&"column"in e&&n&&"line"in n&&"column"in n&&e.line>0&&e.column>=0&&n.line>0&&n.column>=0&&t))throw new Error("Invalid mapping: "+JSON.stringify({generated:e,source:t,original:n,name:r}))}_serializeMappings(){let e,n,t,s,i=0,l=1,a=0,u=0,c=0,g=0,h="";const m=this._mappings.toArray();for(let p=0,d=m.length;p0){if(!o.compareByGeneratedPositionsInflated(n,m[p-1]))continue;e+=","}e+=r.encode(n.generatedColumn-i),i=n.generatedColumn,null!=n.source&&(s=this._sources.indexOf(n.source),e+=r.encode(s-g),g=s,e+=r.encode(n.originalLine-1-u),u=n.originalLine-1,e+=r.encode(n.originalColumn-a),a=n.originalColumn,null!=n.name&&(t=this._names.indexOf(n.name),e+=r.encode(t-c),c=t)),h+=e}return h}_generateSourcesContent(e,n){return e.map(function(e){if(!this._sourcesContents)return null;null!=n&&(e=o.relative(n,e));const t=o.toSetString(e);return Object.prototype.hasOwnProperty.call(this._sourcesContents,t)?this._sourcesContents[t]:null},this)}toJSON(){const e={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return null!=this._file&&(e.file=this._file),null!=this._sourceRoot&&(e.sourceRoot=this._sourceRoot),this._sourcesContents&&(e.sourcesContent=this._generateSourcesContent(e.sources,e.sourceRoot)),e}toString(){return JSON.stringify(this.toJSON())}}l.prototype._version=3,n.SourceMapGenerator=l},6576:(e,n,t)=>{"use strict";const r=t(9896),o=t(6928);e.exports=function(){return new Promise((e,n)=>{const t=o.join(__dirname,"mappings.wasm");r.readFile(t,null,(t,r)=>{t?n(t):e(r.buffer)})})},e.exports.initialize=e=>{console.debug("SourceMapConsumer.initialize is a no-op when running in node.js")}},6928:e=>{"use strict";e.exports=require("path")},7016:e=>{"use strict";e.exports=require("url")},7092:(e,n,t)=>{const r=t(2364);n.encode=function(e){let n,t="",o=function(e){return e<0?1+(-e<<1):0+(e<<1)}(e);do{n=31&o,o>>>=5,o>0&&(n|=32),t+=r.encode(n)}while(o>0);return t}},7446:(e,n,t)=>{const r=t(251),o=t(1163),s=t(735).C,i=(t(7092),t(6576)),l=t(8991),a=Symbol("smcInternal");class u{constructor(e,n){return e==a?Promise.resolve(this):function(e,n){let t=e;"string"==typeof e&&(t=r.parseSourceMapInput(e));const o=null!=t.sections?new g(t,n):new c(t,n);return Promise.resolve(o)}(e,n)}static initialize(e){i.initialize(e["lib/mappings.wasm"])}static fromSourceMap(e,n){return function(e,n){return c.fromSourceMap(e,n)}(e,n)}static async with(e,n,t){const r=await new u(e,n);try{return await t(r)}finally{r.destroy()}}eachMapping(e,n,t){throw new Error("Subclasses must implement eachMapping")}allGeneratedPositionsFor(e){throw new Error("Subclasses must implement allGeneratedPositionsFor")}destroy(){throw new Error("Subclasses must implement destroy")}}u.prototype._version=3,u.GENERATED_ORDER=1,u.ORIGINAL_ORDER=2,u.GREATEST_LOWER_BOUND=1,u.LEAST_UPPER_BOUND=2,n.SourceMapConsumer=u;class c extends u{constructor(e,n){return super(a).then(t=>{let o=e;"string"==typeof e&&(o=r.parseSourceMapInput(e));const i=r.getArg(o,"version"),a=r.getArg(o,"sources").map(String),u=r.getArg(o,"names",[]),c=r.getArg(o,"sourceRoot",null),g=r.getArg(o,"sourcesContent",null),h=r.getArg(o,"mappings"),m=r.getArg(o,"file",null),p=r.getArg(o,"x_google_ignoreList",null);if(i!=t._version)throw new Error("Unsupported version: "+i);return t._sourceLookupCache=new Map,t._names=s.fromArray(u.map(String),!0),t._sources=s.fromArray(a,!0),t._absoluteSources=s.fromArray(t._sources.toArray().map(function(e){return r.computeSourceURL(c,e,n)}),!0),t.sourceRoot=c,t.sourcesContent=g,t._mappings=h,t._sourceMapURL=n,t.file=m,t.x_google_ignoreList=p,t._computedColumnSpans=!1,t._mappingsPtr=0,t._wasm=null,l().then(e=>(t._wasm=e,t))})}_findSourceIndex(e){const n=this._sourceLookupCache.get(e);if("number"==typeof n)return n;const t=r.computeSourceURL(null,e,this._sourceMapURL);if(this._absoluteSources.has(t)){const n=this._absoluteSources.indexOf(t);return this._sourceLookupCache.set(e,n),n}const o=r.computeSourceURL(this.sourceRoot,e,this._sourceMapURL);if(this._absoluteSources.has(o)){const n=this._absoluteSources.indexOf(o);return this._sourceLookupCache.set(e,n),n}return-1}static fromSourceMap(e,n){return new c(e.toString())}get sources(){return this._absoluteSources.toArray()}_getMappingsPtr(){return 0===this._mappingsPtr&&this._parseMappings(),this._mappingsPtr}_parseMappings(){const e=this._mappings,n=e.length,t=this._wasm.exports.allocate_mappings(n)>>>0,r=new Uint8Array(this._wasm.exports.memory.buffer,t,n);for(let t=0;t{null!==n.source&&(n.source=this._absoluteSources.at(n.source),null!==n.name&&(n.name=this._names.at(n.name))),this._computedColumnSpans&&null===n.lastGeneratedColumn&&(n.lastGeneratedColumn=1/0),e.call(r,n)},()=>{switch(o){case u.GENERATED_ORDER:this._wasm.exports.by_generated_location(this._getMappingsPtr());break;case u.ORIGINAL_ORDER:this._wasm.exports.by_original_location(this._getMappingsPtr());break;default:throw new Error("Unknown order of iteration.")}})}allGeneratedPositionsFor(e){let n=r.getArg(e,"source");const t=r.getArg(e,"line"),o=e.column||0;if(n=this._findSourceIndex(n),n<0)return[];if(t<1)throw new Error("Line numbers must be >= 1");if(o<0)throw new Error("Column numbers must be >= 0");const s=[];return this._wasm.withMappingCallback(e=>{let n=e.lastGeneratedColumn;this._computedColumnSpans&&null===n&&(n=1/0),s.push({line:e.generatedLine,column:e.generatedColumn,lastColumn:n})},()=>{this._wasm.exports.all_generated_locations_for(this._getMappingsPtr(),n,t-1,"column"in e,o)}),s}destroy(){0!==this._mappingsPtr&&(this._wasm.exports.free_mappings(this._mappingsPtr),this._mappingsPtr=0)}computeColumnSpans(){this._computedColumnSpans||(this._wasm.exports.compute_column_spans(this._getMappingsPtr()),this._computedColumnSpans=!0)}originalPositionFor(e){const n={generatedLine:r.getArg(e,"line"),generatedColumn:r.getArg(e,"column")};if(n.generatedLine<1)throw new Error("Line numbers must be >= 1");if(n.generatedColumn<0)throw new Error("Column numbers must be >= 0");let t,o=r.getArg(e,"bias",u.GREATEST_LOWER_BOUND);if(null==o&&(o=u.GREATEST_LOWER_BOUND),this._wasm.withMappingCallback(e=>t=e,()=>{this._wasm.exports.original_location_for(this._getMappingsPtr(),n.generatedLine-1,n.generatedColumn,o)}),t&&t.generatedLine===n.generatedLine){let e=r.getArg(t,"source",null);null!==e&&(e=this._absoluteSources.at(e));let n=r.getArg(t,"name",null);return null!==n&&(n=this._names.at(n)),{source:e,line:r.getArg(t,"originalLine",null),column:r.getArg(t,"originalColumn",null),name:n}}return{source:null,line:null,column:null,name:null}}hasContentsOfAllSources(){return!!this.sourcesContent&&this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(e){return null==e})}sourceContentFor(e,n){if(!this.sourcesContent)return null;const t=this._findSourceIndex(e);if(t>=0)return this.sourcesContent[t];if(n)return null;throw new Error('"'+e+'" is not in the SourceMap.')}generatedPositionFor(e){let n=r.getArg(e,"source");if(n=this._findSourceIndex(n),n<0)return{line:null,column:null,lastColumn:null};const t={source:n,originalLine:r.getArg(e,"line"),originalColumn:r.getArg(e,"column")};if(t.originalLine<1)throw new Error("Line numbers must be >= 1");if(t.originalColumn<0)throw new Error("Column numbers must be >= 0");let o,s=r.getArg(e,"bias",u.GREATEST_LOWER_BOUND);if(null==s&&(s=u.GREATEST_LOWER_BOUND),this._wasm.withMappingCallback(e=>o=e,()=>{this._wasm.exports.generated_location_for(this._getMappingsPtr(),t.source,t.originalLine-1,t.originalColumn,s)}),o&&o.source===t.source){let e=o.lastGeneratedColumn;return this._computedColumnSpans&&null===e&&(e=1/0),{line:r.getArg(o,"generatedLine",null),column:r.getArg(o,"generatedColumn",null),lastColumn:e}}return{line:null,column:null,lastColumn:null}}}c.prototype.consumer=u;class g extends u{constructor(e,n){return super(a).then(t=>{let o=e;"string"==typeof e&&(o=r.parseSourceMapInput(e));const s=r.getArg(o,"version"),i=r.getArg(o,"sections");if(s!=t._version)throw new Error("Unsupported version: "+s);let l={line:-1,column:0};return Promise.all(i.map(e=>{if(e.url)throw new Error("Support for url field in sections not implemented.");const t=r.getArg(e,"offset"),o=r.getArg(t,"line"),s=r.getArg(t,"column");if(o({generatedOffset:{generatedLine:o+1,generatedColumn:s+1},consumer:e}))})).then(e=>(t._sections=e,t))})}get sources(){const e=[];for(let n=0;n=0?this._sections[n]:null,o=n>=0&&n+1=0?this._sections[n]:null,o=n>=0&&n+1{const n=t.generatedOffset.generatedLine-1,r=t.generatedOffset.generatedColumn-1;return 1===e.line&&(e.column+=r,"number"==typeof e.lastColumn&&(e.lastColumn+=r)),e.lastColumn===1/0&&o&&e.line===o.generatedOffset.generatedLine&&(e.lastColumn=o.generatedOffset.generatedColumn-2),e.line+=n,e}):[]}eachMapping(e,n,t){this._sections.forEach((r,o)=>{const s=o+1{const r=t(6576);function o(){this.generatedLine=0,this.generatedColumn=0,this.lastGeneratedColumn=null,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}let s=null;e.exports=function(){if(s)return s;const e=[];return s=r().then(n=>WebAssembly.instantiate(n,{env:{mapping_callback(n,t,r,s,i,l,a,u,c,g){const h=new o;h.generatedLine=n+1,h.generatedColumn=t,r&&(h.lastGeneratedColumn=s-1),i&&(h.source=l,h.originalLine=a+1,h.originalColumn=u,c&&(h.name=g)),e[e.length-1](h)},start_all_generated_locations_for(){console.time("all_generated_locations_for")},end_all_generated_locations_for(){console.timeEnd("all_generated_locations_for")},start_compute_column_spans(){console.time("compute_column_spans")},end_compute_column_spans(){console.timeEnd("compute_column_spans")},start_generated_location_for(){console.time("generated_location_for")},end_generated_location_for(){console.timeEnd("generated_location_for")},start_original_location_for(){console.time("original_location_for")},end_original_location_for(){console.timeEnd("original_location_for")},start_parse_mappings(){console.time("parse_mappings")},end_parse_mappings(){console.timeEnd("parse_mappings")},start_sort_by_generated_location(){console.time("sort_by_generated_location")},end_sort_by_generated_location(){console.timeEnd("sort_by_generated_location")},start_sort_by_original_location(){console.time("sort_by_original_location")},end_sort_by_original_location(){console.timeEnd("sort_by_original_location")}}})).then(n=>({exports:n.instance.exports,withMappingCallback:(n,t)=>{e.push(n);try{t()}finally{e.pop()}}})).then(null,e=>{throw s=null,e}),s}},9896:e=>{"use strict";e.exports=require("fs")}},n={};function t(r){var o=n[r];if(void 0!==o)return o.exports;var s=n[r]={exports:{}};return e[r](s,s.exports,t),s.exports}var r,o={};(r=o).SourceMapGenerator=t(4041).SourceMapGenerator,r.SourceMapConsumer=t(7446).SourceMapConsumer,r.SourceNode=t(1683).SourceNode,module.exports=o})(); \ No newline at end of file +(()=>{var e={735:function(e,n){class t{constructor(){this._array=[],this._set=new Map}static fromArray(e,n){let r=new t;for(let t=0,o=e.length;t=0)return n;throw Error('"'+e+'" is not in the set.')}at(e){if(e>=0&&e>>=5)>0&&(n|=32),t+=r.encode(n);while(o>0);return t}},2364:function(e,n){let t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");n.encode=function(e){if(0<=e&&e0?r-a>1?e(a,r,o,i,s,l):l===n.LEAST_UPPER_BOUND?r1?e(t,a,o,i,s,l):l==n.LEAST_UPPER_BOUND?a:t<0?-1:t}(-1,t.length,e,t,r,o||n.GREATEST_LOWER_BOUND);if(i<0)return -1;for(;i-1>=0&&0===r(t[i],t[i-1],!0);)--i;return i}},3302:function(e,n,t){let r=t(251);n.MappingList=class{constructor(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}unsortedForEach(e,n){this._array.forEach(e,n)}add(e){var n;let t,o,i,s;(n=this._last,t=n.generatedLine,o=e.generatedLine,i=n.generatedColumn,s=e.generatedColumn,o>t||o==t&&s>=i||0>=r.compareByGeneratedPositionsInflated(n,e))?this._last=e:this._sorted=!1,this._array.push(e)}toArray(){return this._sorted||(this._array.sort(r.compareByGeneratedPositionsInflated),this._sorted=!0),this._array}}},6576:function(e,n,t){"use strict";let r=t(9896),o=t(6928);e.exports=function(){return new Promise((e,n)=>{let t=o.join(__dirname,"mappings.wasm");r.readFile(t,null,(t,r)=>{t?n(t):e(r.buffer)})})},e.exports.initialize=e=>{console.debug("SourceMapConsumer.initialize is a no-op when running in node.js")}},7446:function(e,n,t){let r=t(251),o=t(1163),i=t(735).ArraySet;t(7092);let s=t(6576),l=t(8991),a=Symbol("smcInternal");class u{constructor(e,n){if(e==a)return Promise.resolve(this);return function(e,n){let t=e;return"string"==typeof e&&(t=r.parseSourceMapInput(e)),Promise.resolve(null!=t.sections?new g(t,n):new c(t,n))}(e,n)}static initialize(e){s.initialize(e["lib/mappings.wasm"])}static fromSourceMap(e,n){var t,r;return t=e,r=n,c.fromSourceMap(t,r)}static async with(e,n,t){let r=await new u(e,n);try{return await t(r)}finally{r.destroy()}}eachMapping(e,n,t){throw Error("Subclasses must implement eachMapping")}allGeneratedPositionsFor(e){throw Error("Subclasses must implement allGeneratedPositionsFor")}destroy(){throw Error("Subclasses must implement destroy")}}u.prototype._version=3,u.GENERATED_ORDER=1,u.ORIGINAL_ORDER=2,u.GREATEST_LOWER_BOUND=1,u.LEAST_UPPER_BOUND=2,n.SourceMapConsumer=u;class c extends u{constructor(e,n){return super(a).then(t=>{let o=e;"string"==typeof e&&(o=r.parseSourceMapInput(e));let s=r.getArg(o,"version"),a=r.getArg(o,"sources").map(String),u=r.getArg(o,"names",[]),c=r.getArg(o,"sourceRoot",null),g=r.getArg(o,"sourcesContent",null),h=r.getArg(o,"mappings"),m=r.getArg(o,"file",null),p=r.getArg(o,"x_google_ignoreList",null);if(s!=t._version)throw Error("Unsupported version: "+s);return t._sourceLookupCache=new Map,t._names=i.fromArray(u.map(String),!0),t._sources=i.fromArray(a,!0),t._absoluteSources=i.fromArray(t._sources.toArray().map(function(e){return r.computeSourceURL(c,e,n)}),!0),t.sourceRoot=c,t.sourcesContent=g,t._mappings=h,t._sourceMapURL=n,t.file=m,t.x_google_ignoreList=p,t._computedColumnSpans=!1,t._mappingsPtr=0,t._wasm=null,l().then(e=>(t._wasm=e,t))})}_findSourceIndex(e){let n=this._sourceLookupCache.get(e);if("number"==typeof n)return n;let t=r.computeSourceURL(null,e,this._sourceMapURL);if(this._absoluteSources.has(t)){let n=this._absoluteSources.indexOf(t);return this._sourceLookupCache.set(e,n),n}let o=r.computeSourceURL(this.sourceRoot,e,this._sourceMapURL);if(this._absoluteSources.has(o)){let n=this._absoluteSources.indexOf(o);return this._sourceLookupCache.set(e,n),n}return -1}static fromSourceMap(e,n){return new c(e.toString())}get sources(){return this._absoluteSources.toArray()}_getMappingsPtr(){return 0===this._mappingsPtr&&this._parseMappings(),this._mappingsPtr}_parseMappings(){let e=this._mappings,n=e.length,t=this._wasm.exports.allocate_mappings(n)>>>0,r=new Uint8Array(this._wasm.exports.memory.buffer,t,n);for(let t=0;t{null!==n.source&&(n.source=this._absoluteSources.at(n.source),null!==n.name&&(n.name=this._names.at(n.name))),this._computedColumnSpans&&null===n.lastGeneratedColumn&&(n.lastGeneratedColumn=1/0),e.call(r,n)},()=>{switch(o){case u.GENERATED_ORDER:this._wasm.exports.by_generated_location(this._getMappingsPtr());break;case u.ORIGINAL_ORDER:this._wasm.exports.by_original_location(this._getMappingsPtr());break;default:throw Error("Unknown order of iteration.")}})}allGeneratedPositionsFor(e){let n=r.getArg(e,"source"),t=r.getArg(e,"line"),o=e.column||0;if((n=this._findSourceIndex(n))<0)return[];if(t<1)throw Error("Line numbers must be >= 1");if(o<0)throw Error("Column numbers must be >= 0");let i=[];return this._wasm.withMappingCallback(e=>{let n=e.lastGeneratedColumn;this._computedColumnSpans&&null===n&&(n=1/0),i.push({line:e.generatedLine,column:e.generatedColumn,lastColumn:n})},()=>{this._wasm.exports.all_generated_locations_for(this._getMappingsPtr(),n,t-1,"column"in e,o)}),i}destroy(){0!==this._mappingsPtr&&(this._wasm.exports.free_mappings(this._mappingsPtr),this._mappingsPtr=0)}computeColumnSpans(){this._computedColumnSpans||(this._wasm.exports.compute_column_spans(this._getMappingsPtr()),this._computedColumnSpans=!0)}originalPositionFor(e){let n,t={generatedLine:r.getArg(e,"line"),generatedColumn:r.getArg(e,"column")};if(t.generatedLine<1)throw Error("Line numbers must be >= 1");if(t.generatedColumn<0)throw Error("Column numbers must be >= 0");let o=r.getArg(e,"bias",u.GREATEST_LOWER_BOUND);if(null==o&&(o=u.GREATEST_LOWER_BOUND),this._wasm.withMappingCallback(e=>n=e,()=>{this._wasm.exports.original_location_for(this._getMappingsPtr(),t.generatedLine-1,t.generatedColumn,o)}),n&&n.generatedLine===t.generatedLine){let e=r.getArg(n,"source",null);null!==e&&(e=this._absoluteSources.at(e));let t=r.getArg(n,"name",null);return null!==t&&(t=this._names.at(t)),{source:e,line:r.getArg(n,"originalLine",null),column:r.getArg(n,"originalColumn",null),name:t}}return{source:null,line:null,column:null,name:null}}hasContentsOfAllSources(){return!!this.sourcesContent&&this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(e){return null==e})}sourceContentFor(e,n){if(!this.sourcesContent)return null;let t=this._findSourceIndex(e);if(t>=0)return this.sourcesContent[t];if(n)return null;throw Error('"'+e+'" is not in the SourceMap.')}generatedPositionFor(e){let n,t=r.getArg(e,"source");if((t=this._findSourceIndex(t))<0)return{line:null,column:null,lastColumn:null};let o={source:t,originalLine:r.getArg(e,"line"),originalColumn:r.getArg(e,"column")};if(o.originalLine<1)throw Error("Line numbers must be >= 1");if(o.originalColumn<0)throw Error("Column numbers must be >= 0");let i=r.getArg(e,"bias",u.GREATEST_LOWER_BOUND);if(null==i&&(i=u.GREATEST_LOWER_BOUND),this._wasm.withMappingCallback(e=>n=e,()=>{this._wasm.exports.generated_location_for(this._getMappingsPtr(),o.source,o.originalLine-1,o.originalColumn,i)}),n&&n.source===o.source){let e=n.lastGeneratedColumn;return this._computedColumnSpans&&null===e&&(e=1/0),{line:r.getArg(n,"generatedLine",null),column:r.getArg(n,"generatedColumn",null),lastColumn:e}}return{line:null,column:null,lastColumn:null}}}c.prototype.consumer=u;class g extends u{constructor(e,n){return super(a).then(t=>{let o=e;"string"==typeof e&&(o=r.parseSourceMapInput(e));let i=r.getArg(o,"version"),s=r.getArg(o,"sections");if(i!=t._version)throw Error("Unsupported version: "+i);let l={line:-1,column:0};return Promise.all(s.map(e=>{if(e.url)throw Error("Support for url field in sections not implemented.");let t=r.getArg(e,"offset"),o=r.getArg(t,"line"),i=r.getArg(t,"column");if(o({generatedOffset:{generatedLine:o+1,generatedColumn:i+1},consumer:e}))})).then(e=>(t._sections=e,t))})}get sources(){let e=[];for(let n=0;n=0?this._sections[n]:null,o=n>=0&&n+1=0?this._sections[n]:null,o=n>=0&&n+1{let n=t.generatedOffset.generatedLine-1,r=t.generatedOffset.generatedColumn-1;return 1===e.line&&(e.column+=r,"number"==typeof e.lastColumn&&(e.lastColumn+=r)),e.lastColumn===1/0&&o&&e.line===o.generatedOffset.generatedLine&&(e.lastColumn=o.generatedOffset.generatedColumn-2),e.line+=n,e}):[]}eachMapping(e,n,t){this._sections.forEach((r,o)=>{let i=o+10?new i:this._sources,a=new i;this._mappings.unsortedForEach(function(n){if(n.source===r&&null!=n.originalLine){let r=e.originalPositionFor({line:n.originalLine,column:n.originalColumn});null!=r.source&&(n.source=r.source,null!=t&&(n.source=o.join(t,n.source)),null!=s&&(n.source=o.relative(s,n.source)),n.originalLine=r.line,n.originalColumn=r.column,null!=r.name&&(n.name=r.name))}let i=n.source;null==i||l.has(i)||l.add(i);let u=n.name;null==u||a.has(u)||a.add(u)},this),this._sources=l,this._names=a,e.sources.forEach(function(n){let r=e.sourceContentFor(n);null!=r&&(null!=t&&(n=o.join(t,n)),null!=s&&(n=o.relative(s,n)),this.setSourceContent(n,r))},this)}_validateMapping(e,n,t,r){if(n&&"number"!=typeof n.line&&"number"!=typeof n.column)throw Error("original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.");if(e&&"line"in e&&"column"in e&&e.line>0&&e.column>=0&&!n&&!t&&!r);else if(e&&"line"in e&&"column"in e&&n&&"line"in n&&"column"in n&&e.line>0&&e.column>=0&&n.line>0&&n.column>=0&&t);else throw Error("Invalid mapping: "+JSON.stringify({generated:e,source:t,original:n,name:r}))}_serializeMappings(){let e,n,t,i,s=0,l=1,a=0,u=0,c=0,g=0,h="",m=this._mappings.toArray();for(let p=0,d=m.length;p0){if(!o.compareByGeneratedPositionsInflated(n,m[p-1]))continue;e+=","}e+=r.encode(n.generatedColumn-s),s=n.generatedColumn,null!=n.source&&(i=this._sources.indexOf(n.source),e+=r.encode(i-g),g=i,e+=r.encode(n.originalLine-1-u),u=n.originalLine-1,e+=r.encode(n.originalColumn-a),a=n.originalColumn,null!=n.name&&(t=this._names.indexOf(n.name),e+=r.encode(t-c),c=t)),h+=e}return h}_generateSourcesContent(e,n){return e.map(function(e){if(!this._sourcesContents)return null;null!=n&&(e=o.relative(n,e));let t=o.toSetString(e);return Object.prototype.hasOwnProperty.call(this._sourcesContents,t)?this._sourcesContents[t]:null},this)}toJSON(){let e={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return null!=this._file&&(e.file=this._file),null!=this._sourceRoot&&(e.sourceRoot=this._sourceRoot),this._sourcesContents&&(e.sourcesContent=this._generateSourcesContent(e.sources,e.sourceRoot)),e}toString(){return JSON.stringify(this.toJSON())}}l.prototype._version=3,n.SourceMapGenerator=l},1683:function(e,n,t){let r=t(4041).SourceMapGenerator,o=t(251),i=/(\r?\n)/,s="$$$isSourceNode$$$";class l{constructor(e,n,t,r,o){this.children=[],this.sourceContents={},this.line=null==e?null:e,this.column=null==n?null:n,this.source=null==t?null:t,this.name=null==o?null:o,this[s]=!0,null!=r&&this.add(r)}static fromStringWithSourceMap(e,n,t){let r,s=new l,a=e.split(i),u=0,c=function(){return e()+(e()||"");function e(){return u=0;n--)this.prepend(e[n]);else if(e[s]||"string"==typeof e)this.children.unshift(e);else throw TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e);return this}walk(e){let n;for(let t=0,r=this.children.length;t0){for(t=0,n=[];t=0;t--)if(36!==e.charCodeAt(t))return!1;return!0}function l(e,n){return e===n?0:null===e?1:null===n?-1:e>n?1:-1}n.toSetString=o?i:function(e){return s(e)?"$"+e:e},n.fromSetString=o?i:function(e){return s(e)?e.slice(1):e},n.compareByGeneratedPositionsInflated=function(e,n){let t=e.generatedLine-n.generatedLine;return 0!==t||0!=(t=e.generatedColumn-n.generatedColumn)||0!==(t=l(e.source,n.source))||0!=(t=e.originalLine-n.originalLine)||0!=(t=e.originalColumn-n.originalColumn)?t:l(e.name,n.name)},n.parseSourceMapInput=function(e){return JSON.parse(e.replace(/^\)]}'[^\n]*\n/,""))};let a="http:",u=`${a}//host`;function c(e){return n=>{let t=p(n),o=h(n),i=new r(n,o);e(i);let s=i.toString();return"absolute"===t?s:"scheme-relative"===t?s.slice(a.length):"path-absolute"===t?s.slice(u.length):d(o,s)}}function g(e,n){return new r(e,n).toString()}function h(e){let n=e.split("..").length-1,t=function(e,n){let t=0;for(;;){let e="p"+t++;if(-1===n.indexOf(e))return e}}(0,e),r=`${u}/`;for(let e=0;e0&&!o[o.length-1]&&o.pop();t.length>0&&o.length>0&&t[0]===o[0];)t.shift(),o.shift();return o.map(()=>"..").concat(t).join("/")+n.search+n.hash}let _=c(e=>{e.pathname=e.pathname.replace(/\/?$/,"/")}),f=c(e=>{e.href=new r(".",e.toString()).toString()}),C=c(e=>{});function S(e,n){let t=p(n),r=p(e);if(e=_(e),"absolute"===t)return g(n,void 0);if("absolute"===r)return g(n,e);if("scheme-relative"===t)return C(n);if("scheme-relative"===r)return g(n,g(e,u)).slice(a.length);if("path-absolute"===t)return C(n);if("path-absolute"===r)return g(n,g(e,u)).slice(u.length);let o=h(n+e),i=g(n,g(e,o));return d(o,i)}n.normalize=C,n.join=S,n.relative=function(e,n){let t=function(e,n){if(p(e)!==p(n))return null;let t=h(e+n),o=new r(e,t),i=new r(n,t);try{new r("",i.toString())}catch(e){return null}return i.protocol!==o.protocol||i.user!==o.user||i.password!==o.password||i.hostname!==o.hostname||i.port!==o.port?null:d(o,i)}(e,n);return"string"==typeof t?t:C(n)},n.computeSourceURL=function(e,n,t){e&&"path-absolute"===p(n)&&(n=n.replace(/^\//,""));let r=C(n||"");return e&&(r=S(e,r)),t&&(r=S(f(t),r)),r}},8991:function(e,n,t){let r=t(6576);function o(){this.generatedLine=0,this.generatedColumn=0,this.lastGeneratedColumn=null,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}let i=null;e.exports=function(){if(i)return i;let e=[];return i=r().then(n=>WebAssembly.instantiate(n,{env:{mapping_callback(n,t,r,i,s,l,a,u,c,g){let h=new o;h.generatedLine=n+1,h.generatedColumn=t,r&&(h.lastGeneratedColumn=i-1),s&&(h.source=l,h.originalLine=a+1,h.originalColumn=u,c&&(h.name=g)),e[e.length-1](h)},start_all_generated_locations_for(){console.time("all_generated_locations_for")},end_all_generated_locations_for(){console.timeEnd("all_generated_locations_for")},start_compute_column_spans(){console.time("compute_column_spans")},end_compute_column_spans(){console.timeEnd("compute_column_spans")},start_generated_location_for(){console.time("generated_location_for")},end_generated_location_for(){console.timeEnd("generated_location_for")},start_original_location_for(){console.time("original_location_for")},end_original_location_for(){console.timeEnd("original_location_for")},start_parse_mappings(){console.time("parse_mappings")},end_parse_mappings(){console.timeEnd("parse_mappings")},start_sort_by_generated_location(){console.time("sort_by_generated_location")},end_sort_by_generated_location(){console.timeEnd("sort_by_generated_location")},start_sort_by_original_location(){console.time("sort_by_original_location")},end_sort_by_original_location(){console.timeEnd("sort_by_original_location")}}})).then(n=>({exports:n.instance.exports,withMappingCallback:(n,t)=>{e.push(n);try{t()}finally{e.pop()}}})).then(null,e=>{throw i=null,e})}},9896:function(e){"use strict";e.exports=require("fs")},6928:function(e){"use strict";e.exports=require("path")},7016:function(e){"use strict";e.exports=require("url")}},n={};function t(r){var o=n[r];if(void 0!==o)return o.exports;var i=n[r]={exports:{}};return e[r](i,i.exports,t),i.exports}var r={};r.SourceMapGenerator=t(4041).SourceMapGenerator,r.SourceMapConsumer=t(7446).SourceMapConsumer,r.SourceNode=t(1683).SourceNode,module.exports=r})(); \ No newline at end of file diff --git a/packages/node_modules/source-map/lib/util.js b/packages/node_modules/source-map/lib/util.js index bcf9ea98dda..523d4a7203f 100644 --- a/packages/node_modules/source-map/lib/util.js +++ b/packages/node_modules/source-map/lib/util.js @@ -1 +1 @@ -(()=>{var t={2626:(t,e,n)=>{"use strict";t.exports="function"==typeof URL?URL:n(7016).URL},7016:t=>{"use strict";t.exports=require("url")}},e={};function n(r){var o=e[r];if(void 0!==o)return o.exports;var i=e[r]={exports:{}};return t[r](i,i.exports,n),i.exports}var r={};(()=>{var t=r;const e=n(2626);t.getArg=function(t,e,n){if(e in t)return t[e];if(3===arguments.length)return n;throw new Error('"'+e+'" is a required argument.')};const o=!("__proto__"in Object.create(null));function i(t){return t}function u(t){if(!t)return!1;const e=t.length;if(e<9)return!1;if(95!==t.charCodeAt(e-1)||95!==t.charCodeAt(e-2)||111!==t.charCodeAt(e-3)||116!==t.charCodeAt(e-4)||111!==t.charCodeAt(e-5)||114!==t.charCodeAt(e-6)||112!==t.charCodeAt(e-7)||95!==t.charCodeAt(e-8)||95!==t.charCodeAt(e-9))return!1;for(let n=e-10;n>=0;n--)if(36!==t.charCodeAt(n))return!1;return!0}function a(t,e){return t===e?0:null===t?1:null===e?-1:t>e?1:-1}t.toSetString=o?i:function(t){return u(t)?"$"+t:t},t.fromSetString=o?i:function(t){return u(t)?t.slice(1):t},t.compareByGeneratedPositionsInflated=function(t,e){let n=t.generatedLine-e.generatedLine;return 0!==n?n:(n=t.generatedColumn-e.generatedColumn,0!==n?n:(n=a(t.source,e.source),0!==n?n:(n=t.originalLine-e.originalLine,0!==n?n:(n=t.originalColumn-e.originalColumn,0!==n?n:a(t.name,e.name)))))},t.parseSourceMapInput=function(t){return JSON.parse(t.replace(/^\)]}'[^\n]*\n/,""))};const c="http://host";function s(t){return n=>{const r=h(n),o=f(n),i=new e(n,o);t(i);const u=i.toString();return"absolute"===r?u:"scheme-relative"===r?u.slice(5):"path-absolute"===r?u.slice(11):g(o,u)}}function l(t,n){return new e(t,n).toString()}function f(t){const e=t.split("..").length-1,n=function(t,e){let n=0;for(;;){const t="p"+n++;if(-1===e.indexOf(t))return t}}(0,t);let r=`${c}/`;for(let t=0;t0&&!o[o.length-1]&&o.pop();r.length>0&&o.length>0&&r[0]===o[0];)r.shift(),o.shift();return o.map(()=>"..").concat(r).join("/")+n.search+n.hash}const d=s(t=>{t.pathname=t.pathname.replace(/\/?$/,"/")}),m=s(t=>{t.href=new e(".",t.toString()).toString()}),C=s(t=>{});function v(t,e){const n=h(e),r=h(t);if(t=d(t),"absolute"===n)return l(e,void 0);if("absolute"===r)return l(e,t);if("scheme-relative"===n)return C(e);if("scheme-relative"===r)return l(e,l(t,c)).slice(5);if("path-absolute"===n)return C(e);if("path-absolute"===r)return l(e,l(t,c)).slice(11);const o=f(e+t);return g(o,l(e,l(t,o)))}t.normalize=C,t.join=v,t.relative=function(t,n){const r=function(t,n){if(h(t)!==h(n))return null;const r=f(t+n),o=new e(t,r),i=new e(n,r);try{new e("",i.toString())}catch(t){return null}return i.protocol!==o.protocol||i.user!==o.user||i.password!==o.password||i.hostname!==o.hostname||i.port!==o.port?null:g(o,i)}(t,n);return"string"==typeof r?r:C(n)},t.computeSourceURL=function(t,e,n){t&&"path-absolute"===h(e)&&(e=e.replace(/^\//,""));let r=C(e||"");return t&&(r=v(t,r)),n&&(r=v(m(n),r)),r}})(),module.exports=r})(); \ No newline at end of file +(()=>{var e={2626:function(e,t,r){"use strict";e.exports="function"==typeof URL?URL:r(7016).URL},7016:function(e){"use strict";e.exports=require("url")}},t={},r={};(()=>{let n=function r(n){var o=t[n];if(void 0!==o)return o.exports;var i=t[n]={exports:{}};return e[n](i,i.exports,r),i.exports}(2626);r.getArg=function(e,t,r){if(t in e)return e[t];if(3==arguments.length)return r;throw Error('"'+t+'" is a required argument.')};let o=!("__proto__"in Object.create(null));function i(e){return e}function u(e){if(!e)return!1;let t=e.length;if(t<9||95!==e.charCodeAt(t-1)||95!==e.charCodeAt(t-2)||111!==e.charCodeAt(t-3)||116!==e.charCodeAt(t-4)||111!==e.charCodeAt(t-5)||114!==e.charCodeAt(t-6)||112!==e.charCodeAt(t-7)||95!==e.charCodeAt(t-8)||95!==e.charCodeAt(t-9))return!1;for(let r=t-10;r>=0;r--)if(36!==e.charCodeAt(r))return!1;return!0}function l(e,t){return e===t?0:null===e?1:null===t?-1:e>t?1:-1}r.toSetString=o?i:function(e){return u(e)?"$"+e:e},r.fromSetString=o?i:function(e){return u(e)?e.slice(1):e},r.compareByGeneratedPositionsInflated=function(e,t){let r=e.generatedLine-t.generatedLine;return 0!==r||0!=(r=e.generatedColumn-t.generatedColumn)||0!==(r=l(e.source,t.source))||0!=(r=e.originalLine-t.originalLine)||0!=(r=e.originalColumn-t.originalColumn)?r:l(e.name,t.name)},r.parseSourceMapInput=function(e){return JSON.parse(e.replace(/^\)]}'[^\n]*\n/,""))};let a="http:",c=`${a}//host`;function s(e){return t=>{let r=g(t),o=h(t),i=new n(t,o);e(i);let u=i.toString();return"absolute"===r?u:"scheme-relative"===r?u.slice(a.length):"path-absolute"===r?u.slice(c.length):d(o,u)}}function f(e,t){return new n(e,t).toString()}function h(e){let t=e.split("..").length-1,r=function(e,t){let r=0;for(;;){let e="p"+r++;if(-1===t.indexOf(e))return e}}(0,e),n=`${c}/`;for(let e=0;e0&&!o[o.length-1]&&o.pop();r.length>0&&o.length>0&&r[0]===o[0];)r.shift(),o.shift();return o.map(()=>"..").concat(r).join("/")+t.search+t.hash}let m=s(e=>{e.pathname=e.pathname.replace(/\/?$/,"/")}),C=s(e=>{e.href=new n(".",e.toString()).toString()}),A=s(e=>{});function S(e,t){let r=g(t),n=g(e);if(e=m(e),"absolute"===r)return f(t,void 0);if("absolute"===n)return f(t,e);if("scheme-relative"===r)return A(t);if("scheme-relative"===n)return f(t,f(e,c)).slice(a.length);if("path-absolute"===r)return A(t);if("path-absolute"===n)return f(t,f(e,c)).slice(c.length);let o=h(t+e),i=f(t,f(e,o));return d(o,i)}r.normalize=A,r.join=S,r.relative=function(e,t){let r=function(e,t){if(g(e)!==g(t))return null;let r=h(e+t),o=new n(e,r),i=new n(t,r);try{new n("",i.toString())}catch(e){return null}return i.protocol!==o.protocol||i.user!==o.user||i.password!==o.password||i.hostname!==o.hostname||i.port!==o.port?null:d(o,i)}(e,t);return"string"==typeof r?r:A(t)},r.computeSourceURL=function(e,t,r){e&&"path-absolute"===g(t)&&(t=t.replace(/^\//,""));let n=A(t||"");return e&&(n=S(e,n)),r&&(n=S(C(r),n)),n}})(),module.exports=r})(); \ No newline at end of file diff --git a/packages/node_modules/tlhunter-sorted-set.js b/packages/node_modules/tlhunter-sorted-set.js index ff2831b728c..7ba6c3ad07b 100644 --- a/packages/node_modules/tlhunter-sorted-set.js +++ b/packages/node_modules/tlhunter-sorted-set.js @@ -1 +1 @@ -(()=>{var e={234:(e,t,n)=>{"use strict";const r=n(7647),l=Array.prototype.slice,i=1/Math.E;class h{constructor(e={}){this._unique=!!e.unique,this.empty()}static intersect(){return r.call(h,l.call(arguments))}add(e,t){let n;if(null==t)return this.rem(e);if(n=this._map.get(e),void 0!==n){if(t===n)return n;this._remove(e,n)}if(!this._insert(e,t))throw void 0===n||this._insert(e,n),new Error("unique constraint violated");return this._map.set(e,t),void 0===n?null:n}card(){return this.length?this.length:0}count(e,t){if(!this.length)return 0;if(null==e&&(e=-1/0),null==t&&(t=1/0),e<=this._head.next[0].next.value&&t>=this._tail.value)return this.length;if(tthis._tail.value||t=0;n-=1)for(;r.next[n].next&&r.next[n].next.value<=t;)l+=r.next[n].span,r=r.next[n].next;return l&&l+1}del(e){return this.rem(e)}empty(){this.length=0,this._level=1,this._map=new Map,this._head=new u(32,null,0),this._tail=null;for(let e=0;e<32;e+=1)this._head.next[e]=new s(null,0)}get(e){return this.score(e)}has(e){return this._map.has(e)}incrBy(e,t){let n=this.score(t);return n?(this.add(t,n+e),n+e):(this.add(t,e),e)}intersect(){let e=l.call(arguments);return e.unshift(this),r.call(this,e)}intersectKeys(){let e=l.call(arguments);return e.unshift(this),intersectKeys.call(this,e)}keys(){if(!this.length)return[];let e,t=new Array(this.length),n=this._head.next[0].next;for(e=0;n;n=n.next[0].next)t[e]=n.key,e+=1;return t}range(e,t,n){if(0===this.length)return[];if(null==e?e=0:e<0&&(e=Math.max(this.length+e,0)),null==t?t=this.length-1:t<0&&(t=this.length+t),e>t||e>=this.length)return[];t>=this.length&&(t=this.length-1),"object"!=typeof n&&(n={withScores:!1});let r,l=0,i=t-e+1;try{r=new Array(i)}catch(n){throw console.log("start",e),console.log("stop",t),console.log("Invalid length",i),n}let h=e>0?this._get(e):this._head.next[0].next;if(n.withScores)for(;i--;h=h.next[0].next)r[l]=[h.key,h.value],l+=1;else for(;i--;h=h.next[0].next)r[l]=h.key,l+=1;return r}rangeByScore(e,t,n){if(!this.length)return[];if("object"!=typeof n&&(n={withScores:!1}),null==e&&(e=-1/0),null==t&&(t=1/0),e<=this._head.next[0].next.value&&t>=this._tail.value)return this.toArray({withScores:n.withScores});if(tthis._tail.value||t=0;t-=1){for(;(l=r.next[t].next)&&(l.valuet||e>=n)return 0;if(t>n&&(t=n),0===e&&t===n)return this.empty(),n;let r,l,i=this._head,h=new Array(32),s=-1;for(r=this._level-1;r>=0;r-=1){for(;(l=i.next[r].next)&&s+i.next[r].span=this._tail.value)return l=this.length,this.empty(),l;let i=this._head,h=new Array(32);for(r=this._level-1;r>=0;r-=1){for(;(n=i.next[r].next)&&n.value=0;r-=1)for(;(n=t.next[r].next)&&n.value=0;t-=1){for(;n.next[t].next&&r+n.next[t].span<=e;)r+=n.next[t].span,n=n.next[t].next;if(r===e)return n}return null}_insert(e,t){let n,r=new Array(32),l=new Array(32),h=this._head,a=null;for(n=this._level-1;n>=0;n-=1){for(l[n]=n===this._level-1?0:l[n+1];(a=h.next[n].next)&&a.value<=t;){if(a.value===t){if(this._unique)return null;if(a.key>=e)break}l[n]+=h.next[n].span,h=a}if(this._unique&&h.value===t)return null;r[n]=h}if(this._unique&&h.value===t)return null;let x=function(){let e=1;for(;Math.random()this._level){for(n=this._level;n=0;r-=1){for(;(n=t.next[r].next)&&n.value=0;n-=1){for(;(r=i.next[n].next)&&(r.value1&&!this._head.next[this._level-1].next;)this._level-=1}}function s(e,t){this.next=e,this.span=t}function u(e,t,n){this.key=t,this.value=n,this.next=new Array(e),this.prev=null}e.exports=h},7647:e=>{e.exports=function(e){let t,n,r,l,i,h,s;if(!e.length)return[];for(i=e.length-1;i>=0;i--){if(!e[i].length)return[];e[i]=e[i]._head.next[0].next}if(1===e.length)return e[0].toArray({field:"key"});if(2===e.length)return function(e,t){let n=Object.create(null),r=[];for(;e;e=e.next[0].next)n[e.key]=!0;for(;t;t=t.next[0].next)n[t.key]&&r.push(t.key);return r}(e[0],e[1]);if(3===e.length)return function(e,t,n){let r=Object.create(null),l=[];for(;e;e=e.next[0].next)r[e.key]=0;for(;t;t=t.next[0].next)0===r[t.key]&&(r[t.key]=1);for(;n;n=n.next[0].next)1===r[n.key]&&l.push(n.key);return l}(e[0],e[1],e[2]);for(r=Object.create(null),n=e.shift();n;n=n.next[0].next)r[n.key]=0;for(i=0,s=e.length-1;i{var e={7647:function(e){e.exports=function(e){let t,n,r,l,i,h,s;if(!e.length)return[];for(i=e.length-1;i>=0;i--){if(!e[i].length)return[];e[i]=e[i]._head.next[0].next}if(1===e.length)return e[0].toArray({field:"key"});if(2===e.length)return function(e,t){let n=Object.create(null),r=[];for(;e;e=e.next[0].next)n[e.key]=!0;for(;t;t=t.next[0].next)n[t.key]&&r.push(t.key);return r}(e[0],e[1]);if(3===e.length)return function(e,t,n){let r=Object.create(null),l=[];for(;e;e=e.next[0].next)r[e.key]=0;for(;t;t=t.next[0].next)0===r[t.key]&&(r[t.key]=1);for(;n;n=n.next[0].next)1===r[n.key]&&l.push(n.key);return l}(e[0],e[1],e[2]);for(r=Object.create(null),n=e.shift();n;n=n.next[0].next)r[n.key]=0;for(i=0,s=e.length-1;i=this._tail.value)return this.length;if(tthis._tail.value||t=0;n-=1)for(;r.next[n].next&&r.next[n].next.value<=t;)l+=r.next[n].span,r=r.next[n].next;return l&&l+1}del(e){return this.rem(e)}empty(){this.length=0,this._level=1,this._map=new Map,this._head=new u(32,null,0),this._tail=null;for(let e=0;e<32;e+=1)this._head.next[e]=new s(null,0)}get(e){return this.score(e)}has(e){return this._map.has(e)}incrBy(e,t){let n=this.score(t);return n?(this.add(t,n+e),n+e):(this.add(t,e),e)}intersect(){let e=l.call(arguments);return e.unshift(this),r.call(this,e)}intersectKeys(){let e=l.call(arguments);return e.unshift(this),intersectKeys.call(this,e)}keys(){let e;if(!this.length)return[];let t=Array(this.length),n=this._head.next[0].next;for(e=0;n;n=n.next[0].next)t[e]=n.key,e+=1;return t}range(e,t,n){let r;if(0===this.length||(null==e?e=0:e<0&&(e=Math.max(this.length+e,0)),null==t?t=this.length-1:t<0&&(t=this.length+t),e>t||e>=this.length))return[];t>=this.length&&(t=this.length-1),"object"!=typeof n&&(n={withScores:!1});let l=0,i=t-e+1;try{r=Array(i)}catch(n){throw console.log("start",e),console.log("stop",t),console.log("Invalid length",i),n}let h=e>0?this._get(e):this._head.next[0].next;if(n.withScores)for(;i--;h=h.next[0].next)r[l]=[h.key,h.value],l+=1;else for(;i--;h=h.next[0].next)r[l]=h.key,l+=1;return r}rangeByScore(e,t,n){if(!this.length)return[];if("object"!=typeof n&&(n={withScores:!1}),null==e&&(e=-1/0),null==t&&(t=1/0),e<=this._head.next[0].next.value&&t>=this._tail.value)return this.toArray({withScores:n.withScores});if(tthis._tail.value||t=0;t-=1){for(;(l=r.next[t].next)&&(l.valuet||e>=l))return 0;if(t>l&&(t=l),0===e&&t===l)return this.empty(),l;let i=this._head,h=Array(32),s=-1;for(n=this._level-1;n>=0;n-=1){for(;(r=i.next[n].next)&&s+i.next[n].span=this._tail.value)return l=this.length,this.empty(),l;let i=this._head,h=Array(32);for(r=this._level-1;r>=0;r-=1){for(;(n=i.next[r].next)&&n.value=0;r-=1)for(;(n=t.next[r].next)&&n.value=0;t-=1){for(;n.next[t].next&&r+n.next[t].span<=e;)r+=n.next[t].span,n=n.next[t].next;if(r===e)return n}return null}_insert(e,t){let n,r=Array(32),l=Array(32),h=this._head,a=null;for(n=this._level-1;n>=0;n-=1){for(l[n]=n===this._level-1?0:l[n+1];(a=h.next[n].next)&&a.value<=t;){if(a.value===t){if(this._unique)return null;if(a.key>=e)break}l[n]+=h.next[n].span,h=a}if(this._unique&&h.value===t)return null;r[n]=h}if(this._unique&&h.value===t)return null;let x=function(){let e=1;for(;Math.random()this._level){for(n=this._level;n=0;r-=1){for(;(n=t.next[r].next)&&n.value=0;n-=1){for(;(r=i.next[n].next)&&(r.value1&&!this._head.next[this._level-1].next;)this._level-=1}}function s(e,t){this.next=e,this.span=t}function u(e,t,n){this.key=t,this.value=n,this.next=Array(e),this.prev=null}e.exports=h}},t={},n=function n(r){var l=t[r];if(void 0!==l)return l.exports;var i=t[r]={exports:{}};return e[r](i,i.exports,n),i.exports}(234);module.exports=n})(); \ No newline at end of file diff --git a/packages/node_modules/ttl-set.js b/packages/node_modules/ttl-set.js index abd6cf6f551..107e7fa03d2 100644 --- a/packages/node_modules/ttl-set.js +++ b/packages/node_modules/ttl-set.js @@ -1 +1 @@ -(()=>{var t={2782:(t,i,s)=>{"use strict";const e=s(6080);t.exports=class{constructor(t){this._ttl=t,this._list=new e,this._index=new Set,this._timer=null}add(t){this._index.add(t),this._list.push([Date.now(),t]),null===this._timer&&(this._timer=setTimeout(this._prune.bind(this),this._ttl).unref())}clear(){this._list.clear(),this._index.clear(),clearTimeout(this._timer),this._timer=null}has(t){return this._index.has(t)}get size(){return this._index.size}_prune(){for(;;){const t=this._list.peek();if(void 0===t)return void(this._timer=null);if(t[0]>Date.now()-this._ttl)break;const i=this._list.shift();this._index.delete(i[1])}this._timer=setTimeout(this._prune.bind(this),Date.now()-this._list.peek()[0]).unref()}}},6080:(t,i,s)=>{const e=s(8190);t.exports=class{constructor(t){this.hwm=t||16,this.head=new e(this.hwm),this.tail=this.head,this.length=0}clear(){this.head=this.tail,this.head.clear(),this.length=0}push(t){if(this.length++,!this.head.push(t)){const i=this.head;this.head=i.next=new e(2*this.head.buffer.length),this.head.push(t)}}shift(){0!==this.length&&this.length--;const t=this.tail.shift();if(void 0===t&&this.tail.next){const t=this.tail.next;return this.tail.next=null,this.tail=t,this.tail.shift()}return t}peek(){const t=this.tail.peek();return void 0===t&&this.tail.next?this.tail.next.peek():t}isEmpty(){return 0===this.length}}},8190:t=>{t.exports=class{constructor(t){if(!(t>0)||t-1&t)throw new Error("Max size for a FixedFIFO should be a power of two");this.buffer=new Array(t),this.mask=t-1,this.top=0,this.btm=0,this.next=null}clear(){this.top=this.btm=0,this.next=null,this.buffer.fill(void 0)}push(t){return void 0===this.buffer[this.top]&&(this.buffer[this.top]=t,this.top=this.top+1&this.mask,!0)}shift(){const t=this.buffer[this.btm];if(void 0!==t)return this.buffer[this.btm]=void 0,this.btm=this.btm+1&this.mask,t}peek(){return this.buffer[this.btm]}isEmpty(){return void 0===this.buffer[this.btm]}}}},i={},s=function s(e){var h=i[e];if(void 0!==h)return h.exports;var r=i[e]={exports:{}};return t[e](r,r.exports,s),r.exports}(2782);module.exports=s})(); \ No newline at end of file +(()=>{var t={8190:function(t){t.exports=class{constructor(t){if(!(t>0)||(t-1&t)!=0)throw Error("Max size for a FixedFIFO should be a power of two");this.buffer=Array(t),this.mask=t-1,this.top=0,this.btm=0,this.next=null}clear(){this.top=this.btm=0,this.next=null,this.buffer.fill(void 0)}push(t){return void 0===this.buffer[this.top]&&(this.buffer[this.top]=t,this.top=this.top+1&this.mask,!0)}shift(){let t=this.buffer[this.btm];if(void 0!==t)return this.buffer[this.btm]=void 0,this.btm=this.btm+1&this.mask,t}peek(){return this.buffer[this.btm]}isEmpty(){return void 0===this.buffer[this.btm]}}},6080:function(t,i,s){let e=s(8190);t.exports=class{constructor(t){this.hwm=t||16,this.head=new e(this.hwm),this.tail=this.head,this.length=0}clear(){this.head=this.tail,this.head.clear(),this.length=0}push(t){if(this.length++,!this.head.push(t)){let i=this.head;this.head=i.next=new e(2*this.head.buffer.length),this.head.push(t)}}shift(){0!==this.length&&this.length--;let t=this.tail.shift();if(void 0===t&&this.tail.next){let t=this.tail.next;return this.tail.next=null,this.tail=t,this.tail.shift()}return t}peek(){let t=this.tail.peek();return void 0===t&&this.tail.next?this.tail.next.peek():t}isEmpty(){return 0===this.length}}},2782:function(t,i,s){"use strict";let e=s(6080);t.exports=class{constructor(t){this._ttl=t,this._list=new e,this._index=new Set,this._timer=null}add(t){this._index.add(t),this._list.push([Date.now(),t]),null===this._timer&&(this._timer=setTimeout(this._prune.bind(this),this._ttl).unref())}clear(){this._list.clear(),this._index.clear(),clearTimeout(this._timer),this._timer=null}has(t){return this._index.has(t)}get size(){return this._index.size}_prune(){for(;;){let t=this._list.peek();if(void 0===t){this._timer=null;return}if(t[0]>Date.now()-this._ttl)break;let i=this._list.shift();this._index.delete(i[1])}this._timer=setTimeout(this._prune.bind(this),Date.now()-this._list.peek()[0]).unref()}}}},i={},s=function s(e){var h=i[e];if(void 0!==h)return h.exports;var r=i[e]={exports:{}};return t[e](r,r.exports,s),r.exports}(2782);module.exports=s})(); \ No newline at end of file diff --git a/vendor/bun.lock b/vendor/bun.lock index 0688f3c485f..fa7d7c45913 100644 --- a/vendor/bun.lock +++ b/vendor/bun.lock @@ -32,29 +32,53 @@ "ttl-set": "^1.0.0", }, "devDependencies": { - "webpack": "^5.103.0", - "webpack-cli": "^6.0.1", + "@rspack/cli": "^1.6.4", + "@rspack/core": "^1.6.4", }, }, }, "packages": { - "@discoveryjs/json-ext": ["@discoveryjs/json-ext@0.6.3", "", {}, "sha512-4B4OijXeVNOPZlYA2oEwWOTkzyltLao+xbotHQeqN++Rv27Y6s818+n2Qkp8q+Fxhn0t/5lA5X1Mxktud8eayQ=="], + "@discoveryjs/json-ext": ["@discoveryjs/json-ext@0.5.7", "", {}, "sha512-dBVuXR082gk3jsFp7Rd/JI4kytwGHecnCoTtXFb7DB6CNHp4rg5k1bhg0nWdLGLnOV71lmDzGQaLMy8iPLY0pw=="], + + "@emnapi/core": ["@emnapi/core@1.7.1", "", { "dependencies": { "@emnapi/wasi-threads": "1.1.0", "tslib": "^2.4.0" } }, "sha512-o1uhUASyo921r2XtHYOHy7gdkGLge8ghBEQHMWmyJFoXlpU58kIrhhN3w26lpQb6dspetweapMn2CSNwQ8I4wg=="], + + "@emnapi/runtime": ["@emnapi/runtime@1.7.1", "", { "dependencies": { "tslib": "^2.4.0" } }, "sha512-PVtJr5CmLwYAU9PZDMITZoR5iAOShYREoR45EyyLrbntV50mdePTgUn4AmOw90Ifcj+x2kRjdzr1HP3RrNiHGA=="], + + "@emnapi/wasi-threads": ["@emnapi/wasi-threads@1.1.0", "", { "dependencies": { "tslib": "^2.4.0" } }, "sha512-WI0DdZ8xFSbgMjR1sFsKABJ/C5OnRrjT06JXbZKexJGrDuPTzZdDYfFlsgcCXCyf+suG5QU2e/y1Wo2V/OapLQ=="], "@isaacs/ttlcache": ["@isaacs/ttlcache@2.1.2", "", {}, "sha512-lmG2ZHXBo7tgF1I3vGvBMnUJYhaNE25fmx+tUfotvE3vsARzxiiDXmCBI6Ch8qEHeHmfunr+eVPgIaIc8xIkbg=="], - "@jridgewell/gen-mapping": ["@jridgewell/gen-mapping@0.3.13", "", { "dependencies": { "@jridgewell/sourcemap-codec": "^1.5.0", "@jridgewell/trace-mapping": "^0.3.24" } }, "sha512-2kkt/7niJ6MgEPxF0bYdQ6etZaA+fQvDcLKckhy1yIQOzaoKjBBjSj63/aLVjYE3qhRt5dvM+uUyfCg6UKCBbA=="], + "@jsep-plugin/assignment": ["@jsep-plugin/assignment@1.3.0", "", { "peerDependencies": { "jsep": "^0.4.0||^1.0.0" } }, "sha512-VVgV+CXrhbMI3aSusQyclHkenWSAm95WaiKrMxRFam3JSUiIaQjoMIw2sEs/OX4XifnqeQUN4DYbJjlA8EfktQ=="], + + "@jsep-plugin/regex": ["@jsep-plugin/regex@1.0.4", "", { "peerDependencies": { "jsep": "^0.4.0||^1.0.0" } }, "sha512-q7qL4Mgjs1vByCaTnDFcBnV9HS7GVPJX5vyVoCgZHNSC9rjwIlmbXG5sUuorR5ndfHAIlJ8pVStxvjXHbNvtUg=="], - "@jridgewell/resolve-uri": ["@jridgewell/resolve-uri@3.1.2", "", {}, "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw=="], + "@jsonjoy.com/base64": ["@jsonjoy.com/base64@1.1.2", "", { "peerDependencies": { "tslib": "2" } }, "sha512-q6XAnWQDIMA3+FTiOYajoYqySkO+JSat0ytXGSuRdq9uXE7o92gzuQwQM14xaCRlBLGq3v5miDGC4vkVTn54xA=="], - "@jridgewell/source-map": ["@jridgewell/source-map@0.3.11", "", { "dependencies": { "@jridgewell/gen-mapping": "^0.3.5", "@jridgewell/trace-mapping": "^0.3.25" } }, "sha512-ZMp1V8ZFcPG5dIWnQLr3NSI1MiCU7UETdS/A0G8V/XWHvJv3ZsFqutJn1Y5RPmAPX6F3BiE397OqveU/9NCuIA=="], + "@jsonjoy.com/buffers": ["@jsonjoy.com/buffers@1.2.1", "", { "peerDependencies": { "tslib": "2" } }, "sha512-12cdlDwX4RUM3QxmUbVJWqZ/mrK6dFQH4Zxq6+r1YXKXYBNgZXndx2qbCJwh3+WWkCSn67IjnlG3XYTvmvYtgA=="], - "@jridgewell/sourcemap-codec": ["@jridgewell/sourcemap-codec@1.5.5", "", {}, "sha512-cYQ9310grqxueWbl+WuIUIaiUaDcj7WOq5fVhEljNVgRfOUhY9fy2zTvfoqWsnebh8Sl70VScFbICvJnLKB0Og=="], + "@jsonjoy.com/codegen": ["@jsonjoy.com/codegen@1.0.0", "", { "peerDependencies": { "tslib": "2" } }, "sha512-E8Oy+08cmCf0EK/NMxpaJZmOxPqM+6iSe2S4nlSBrPZOORoDJILxtbSUEDKQyTamm/BVAhIGllOBNU79/dwf0g=="], - "@jridgewell/trace-mapping": ["@jridgewell/trace-mapping@0.3.31", "", { "dependencies": { "@jridgewell/resolve-uri": "^3.1.0", "@jridgewell/sourcemap-codec": "^1.4.14" } }, "sha512-zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw=="], + "@jsonjoy.com/json-pack": ["@jsonjoy.com/json-pack@1.21.0", "", { "dependencies": { "@jsonjoy.com/base64": "^1.1.2", "@jsonjoy.com/buffers": "^1.2.0", "@jsonjoy.com/codegen": "^1.0.0", "@jsonjoy.com/json-pointer": "^1.0.2", "@jsonjoy.com/util": "^1.9.0", "hyperdyperid": "^1.2.0", "thingies": "^2.5.0", "tree-dump": "^1.1.0" }, "peerDependencies": { "tslib": "2" } }, "sha512-+AKG+R2cfZMShzrF2uQw34v3zbeDYUqnQ+jg7ORic3BGtfw9p/+N6RJbq/kkV8JmYZaINknaEQ2m0/f693ZPpg=="], - "@jsep-plugin/assignment": ["@jsep-plugin/assignment@1.3.0", "", { "peerDependencies": { "jsep": "^0.4.0||^1.0.0" } }, "sha512-VVgV+CXrhbMI3aSusQyclHkenWSAm95WaiKrMxRFam3JSUiIaQjoMIw2sEs/OX4XifnqeQUN4DYbJjlA8EfktQ=="], + "@jsonjoy.com/json-pointer": ["@jsonjoy.com/json-pointer@1.0.2", "", { "dependencies": { "@jsonjoy.com/codegen": "^1.0.0", "@jsonjoy.com/util": "^1.9.0" }, "peerDependencies": { "tslib": "2" } }, "sha512-Fsn6wM2zlDzY1U+v4Nc8bo3bVqgfNTGcn6dMgs6FjrEnt4ZCe60o6ByKRjOGlI2gow0aE/Q41QOigdTqkyK5fg=="], - "@jsep-plugin/regex": ["@jsep-plugin/regex@1.0.4", "", { "peerDependencies": { "jsep": "^0.4.0||^1.0.0" } }, "sha512-q7qL4Mgjs1vByCaTnDFcBnV9HS7GVPJX5vyVoCgZHNSC9rjwIlmbXG5sUuorR5ndfHAIlJ8pVStxvjXHbNvtUg=="], + "@jsonjoy.com/util": ["@jsonjoy.com/util@1.9.0", "", { "dependencies": { "@jsonjoy.com/buffers": "^1.0.0", "@jsonjoy.com/codegen": "^1.0.0" }, "peerDependencies": { "tslib": "2" } }, "sha512-pLuQo+VPRnN8hfPqUTLTHk126wuYdXVxE6aDmjSeV4NCAgyxWbiOIeNJVtID3h1Vzpoi9m4jXezf73I6LgabgQ=="], + + "@leichtgewicht/ip-codec": ["@leichtgewicht/ip-codec@2.0.5", "", {}, "sha512-Vo+PSpZG2/fmgmiNzYK9qWRh8h/CHrwD0mo1h1DzL4yzHNSfWYujGTYsWGreD000gcgmZ7K4Ys6Tx9TxtsKdDw=="], + + "@module-federation/error-codes": ["@module-federation/error-codes@0.21.4", "", {}, "sha512-ClpL5MereWNXh+EgDjz7w4RrC1JlisQTvXDa1gLxpviHafzNDfdViVmuhi9xXVuj+EYo8KU70Y999KHhk9424Q=="], + + "@module-federation/runtime": ["@module-federation/runtime@0.21.4", "", { "dependencies": { "@module-federation/error-codes": "0.21.4", "@module-federation/runtime-core": "0.21.4", "@module-federation/sdk": "0.21.4" } }, "sha512-wgvGqryurVEvkicufJmTG0ZehynCeNLklv8kIk5BLIsWYSddZAE+xe4xov1kgH5fIJQAoQNkRauFFjVNlHoAkA=="], + + "@module-federation/runtime-core": ["@module-federation/runtime-core@0.21.4", "", { "dependencies": { "@module-federation/error-codes": "0.21.4", "@module-federation/sdk": "0.21.4" } }, "sha512-SGpmoOLGNxZofpTOk6Lxb2ewaoz5wMi93AFYuuJB04HTVcngEK+baNeUZ2D/xewrqNIJoMY6f5maUjVfIIBPUA=="], + + "@module-federation/runtime-tools": ["@module-federation/runtime-tools@0.21.4", "", { "dependencies": { "@module-federation/runtime": "0.21.4", "@module-federation/webpack-bundler-runtime": "0.21.4" } }, "sha512-RzFKaL0DIjSmkn76KZRfzfB6dD07cvID84950jlNQgdyoQFUGkqD80L6rIpVCJTY/R7LzR3aQjHnoqmq4JPo3w=="], + + "@module-federation/sdk": ["@module-federation/sdk@0.21.4", "", {}, "sha512-tzvhOh/oAfX++6zCDDxuvioHY4Jurf8vcfoCbKFxusjmyKr32GPbwFDazUP+OPhYCc3dvaa9oWU6X/qpUBLfJw=="], + + "@module-federation/webpack-bundler-runtime": ["@module-federation/webpack-bundler-runtime@0.21.4", "", { "dependencies": { "@module-federation/runtime": "0.21.4", "@module-federation/sdk": "0.21.4" } }, "sha512-dusmR3uPnQh9u9ChQo3M+GLOuGFthfvnh7WitF/a1eoeTfRmXqnMFsXtZCUK+f/uXf+64874Zj/bhAgbBcVHZA=="], + + "@napi-rs/wasm-runtime": ["@napi-rs/wasm-runtime@1.0.7", "", { "dependencies": { "@emnapi/core": "^1.5.0", "@emnapi/runtime": "^1.5.0", "@tybys/wasm-util": "^0.10.1" } }, "sha512-SeDnOO0Tk7Okiq6DbXmmBODgOAb9dp9gjlphokTUxmt8U3liIP1ZsozBahH69j/RJv+Rfs6IwUKHTgQYJ/HBAw=="], "@opentelemetry/api": ["@opentelemetry/api@1.9.0", "", {}, "sha512-3giAOQvZiH5F9bMlMiv8+GSPMeqg0dbaeo58/0SlA9sxSqZhnUtxzX9/2FzyhS9sWQf5S0GJE0AKBrFqjpeYcg=="], @@ -66,6 +90,8 @@ "@opentelemetry/semantic-conventions": ["@opentelemetry/semantic-conventions@1.28.0", "", {}, "sha512-lp4qAiMTD4sNWW4DbKLBkfiMZ4jbAboJIGOQr5DvciMRI494OapieI9qiODpOt0XBr1LjIDy1xAGAnVs5supTA=="], + "@polka/url": ["@polka/url@1.0.0-next.29", "", {}, "sha512-wwQAWhWSuHaag8c4q/KN/vCoeOJYshAIvMQwD4GpSb3OiZklFfvAgmj0VCBBImRpuF/aFgIRzllXlVX93Jevww=="], + "@protobufjs/aspromise": ["@protobufjs/aspromise@1.1.2", "", {}, "sha512-j+gKExEuLmKwvz3OgROXtrJ2UG2x8Ch2YZUxahh+s1F2HZ+wAceUNLkvy6zKCPVRkU++ZWQrdxsUeQXmcg4uoQ=="], "@protobufjs/base64": ["@protobufjs/base64@1.1.2", "", {}, "sha512-AZkcAA5vnN/v4PDqKyMR5lx7hZttPDgClv83E//FMNhR2TMcLUhfRUBHCmSl0oi9zMgDDqRUJkSxO3wm85+XLg=="], @@ -86,59 +112,83 @@ "@protobufjs/utf8": ["@protobufjs/utf8@1.1.0", "", {}, "sha512-Vvn3zZrhQZkkBE8LSuW3em98c0FwgO4nxzv6OdSxPKJIEKY2bGbHn+mhGIPerzI4twdxaP8/0+06HBpwf345Lw=="], - "@types/eslint": ["@types/eslint@9.6.1", "", { "dependencies": { "@types/estree": "*", "@types/json-schema": "*" } }, "sha512-FXx2pKgId/WyYo2jXw63kk7/+TY7u7AziEJxJAnSFzHlqTAS3Ync6SvgYAN/k4/PQpnnVuzoMuVnByKK2qp0ag=="], + "@rspack/binding": ["@rspack/binding@1.6.4", "", { "optionalDependencies": { "@rspack/binding-darwin-arm64": "1.6.4", "@rspack/binding-darwin-x64": "1.6.4", "@rspack/binding-linux-arm64-gnu": "1.6.4", "@rspack/binding-linux-arm64-musl": "1.6.4", "@rspack/binding-linux-x64-gnu": "1.6.4", "@rspack/binding-linux-x64-musl": "1.6.4", "@rspack/binding-wasm32-wasi": "1.6.4", "@rspack/binding-win32-arm64-msvc": "1.6.4", "@rspack/binding-win32-ia32-msvc": "1.6.4", "@rspack/binding-win32-x64-msvc": "1.6.4" } }, "sha512-vUxc/zUdsCuyysOvP4CTdIYxsZPb2jIXST5vrLABiTPIaHpXZ0hVdgKif2XPJwJeuCVS6w25xvyPN0mBCU0MvQ=="], - "@types/eslint-scope": ["@types/eslint-scope@3.7.7", "", { "dependencies": { "@types/eslint": "*", "@types/estree": "*" } }, "sha512-MzMFlSLBqNF2gcHWO0G1vP/YQyfvrxZ0bF+u7mzUdZ1/xK4A4sru+nraZz5i3iEIk1l1uyicaDVTB4QbbEkAYg=="], + "@rspack/binding-darwin-arm64": ["@rspack/binding-darwin-arm64@1.6.4", "", { "os": "darwin", "cpu": "arm64" }, "sha512-qD2C5xwdY2qKEXTZiPJQx1L1kELapOc0AaZDqcAyzXs30d1qTKpx6PdyW3HN+gueKovyWZwMMYfz6RxcMCnaDQ=="], - "@types/estree": ["@types/estree@1.0.8", "", {}, "sha512-dWHzHa2WqEXI/O1E9OjrocMTKJl2mSrEolh1Iomrv6U+JuNwaHXsXx9bLu5gG7BUWFIN0skIQJQ/L1rIex4X6w=="], + "@rspack/binding-darwin-x64": ["@rspack/binding-darwin-x64@1.6.4", "", { "os": "darwin", "cpu": "x64" }, "sha512-IHceyLDxeubqIrGz4gUqJavnygTij4vtDDE2Fkgobz7hkTJwGtD5mxBKbVNRqGvhrasVw0h9rEjR7tdbDSiUhQ=="], - "@types/json-schema": ["@types/json-schema@7.0.15", "", {}, "sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA=="], + "@rspack/binding-linux-arm64-gnu": ["@rspack/binding-linux-arm64-gnu@1.6.4", "", { "os": "linux", "cpu": "arm64" }, "sha512-Ldpoz2wWnBaL2+XKLIOyCZMkAkd4pk/L24EVgma3SpRtwgenLEr10bQupvwGAK5OLkjayslOTZmRiAv0FH5o/w=="], - "@types/node": ["@types/node@24.10.1", "", { "dependencies": { "undici-types": "~7.16.0" } }, "sha512-GNWcUTRBgIRJD5zj+Tq0fKOJ5XZajIiBroOF0yvj2bSU1WvNdYS/dn9UxwsujGW4JX06dnHyjV2y9rRaybH0iQ=="], + "@rspack/binding-linux-arm64-musl": ["@rspack/binding-linux-arm64-musl@1.6.4", "", { "os": "linux", "cpu": "arm64" }, "sha512-3fLMSDK5yMjKmx7iFbYG3P3A0xNdtmNu09v5P6hzq65tkJ3dflIt3p8DvtOTURtuSgQZV2A1LDd9hpIXdnigqA=="], - "@webassemblyjs/ast": ["@webassemblyjs/ast@1.14.1", "", { "dependencies": { "@webassemblyjs/helper-numbers": "1.13.2", "@webassemblyjs/helper-wasm-bytecode": "1.13.2" } }, "sha512-nuBEDgQfm1ccRp/8bCQrx1frohyufl4JlbMMZ4P1wpeOfDhF6FQkxZJ1b/e+PLwr6X1Nhw6OLme5usuBWYBvuQ=="], + "@rspack/binding-linux-x64-gnu": ["@rspack/binding-linux-x64-gnu@1.6.4", "", { "os": "linux", "cpu": "x64" }, "sha512-5YzXUKLnaiqND05CDgkKE0WNRtC1ulkVncYs78xPikonzZmgVXa8eRaTPOZC6ZjpLR0eTsg+MSesLUsPUu27hA=="], - "@webassemblyjs/floating-point-hex-parser": ["@webassemblyjs/floating-point-hex-parser@1.13.2", "", {}, "sha512-6oXyTOzbKxGH4steLbLNOu71Oj+C8Lg34n6CqRvqfS2O71BxY6ByfMDRhBytzknj9yGUPVJ1qIKhRlAwO1AovA=="], + "@rspack/binding-linux-x64-musl": ["@rspack/binding-linux-x64-musl@1.6.4", "", { "os": "linux", "cpu": "x64" }, "sha512-KcSFla8a9bXG1mmV5oQ1R5h/dSXfd41/qHOsNuLqho2UCX8CVh4dezUA153dj7p1S4yOhTy6VZZi6C1szweE9A=="], - "@webassemblyjs/helper-api-error": ["@webassemblyjs/helper-api-error@1.13.2", "", {}, "sha512-U56GMYxy4ZQCbDZd6JuvvNV/WFildOjsaWD3Tzzvmw/mas3cXzRJPMjP83JqEsgSbyrmaGjBfDtV7KDXV9UzFQ=="], + "@rspack/binding-wasm32-wasi": ["@rspack/binding-wasm32-wasi@1.6.4", "", { "dependencies": { "@napi-rs/wasm-runtime": "1.0.7" }, "cpu": "none" }, "sha512-mfFJbDJkRy5I1iW3m0JlWbc0X8pjVd+GRUz5nhbccwEhSQOc27ao3evf7XPU4aaDxud1B3UEqYiRcRmtm1BrjA=="], - "@webassemblyjs/helper-buffer": ["@webassemblyjs/helper-buffer@1.14.1", "", {}, "sha512-jyH7wtcHiKssDtFPRB+iQdxlDf96m0E39yb0k5uJVhFGleZFoNw1c4aeIcVUPPbXUVJ94wwnMOAqUHyzoEPVMA=="], + "@rspack/binding-win32-arm64-msvc": ["@rspack/binding-win32-arm64-msvc@1.6.4", "", { "os": "win32", "cpu": "arm64" }, "sha512-QtIqxsfeTSS1lwfaPGrPFfJ9ir/3aWZv5t3iAgYj/CNUA8MTKWt4vQKcco7NRIGK4ZLMI+dgJBFtvd/lUDMQsw=="], - "@webassemblyjs/helper-numbers": ["@webassemblyjs/helper-numbers@1.13.2", "", { "dependencies": { "@webassemblyjs/floating-point-hex-parser": "1.13.2", "@webassemblyjs/helper-api-error": "1.13.2", "@xtuc/long": "4.2.2" } }, "sha512-FE8aCmS5Q6eQYcV3gI35O4J789wlQA+7JrqTTpJqn5emA4U2hvwJmvFRC0HODS+3Ye6WioDklgd6scJ3+PLnEA=="], + "@rspack/binding-win32-ia32-msvc": ["@rspack/binding-win32-ia32-msvc@1.6.4", "", { "os": "win32", "cpu": "ia32" }, "sha512-HXEWGDllgh0jFwjGhkGcLqb0dzXbc/rA8vQr2JcSdC41p1DTzLgO215jWdKSIvzCzhyPh3VeQkXk76hjFB2cLQ=="], - "@webassemblyjs/helper-wasm-bytecode": ["@webassemblyjs/helper-wasm-bytecode@1.13.2", "", {}, "sha512-3QbLKy93F0EAIXLh0ogEVR6rOubA9AoZ+WRYhNbFyuB70j3dRdwH9g+qXhLAO0kiYGlg3TxDV+I4rQTr/YNXkA=="], + "@rspack/binding-win32-x64-msvc": ["@rspack/binding-win32-x64-msvc@1.6.4", "", { "os": "win32", "cpu": "x64" }, "sha512-MAO5rOnGYoeuT2LPn/P7JVJCi3d78XoXgOq3tkGh6qXhvhkjsBRtYluWCzACXQpXfFHEWYd7uT5yHoZgxiVuoA=="], - "@webassemblyjs/helper-wasm-section": ["@webassemblyjs/helper-wasm-section@1.14.1", "", { "dependencies": { "@webassemblyjs/ast": "1.14.1", "@webassemblyjs/helper-buffer": "1.14.1", "@webassemblyjs/helper-wasm-bytecode": "1.13.2", "@webassemblyjs/wasm-gen": "1.14.1" } }, "sha512-ds5mXEqTJ6oxRoqjhWDU83OgzAYjwsCV8Lo/N+oRsNDmx/ZDpqalmrtgOMkHwxsG0iI//3BwWAErYRHtgn0dZw=="], + "@rspack/cli": ["@rspack/cli@1.6.4", "", { "dependencies": { "@discoveryjs/json-ext": "^0.5.7", "@rspack/dev-server": "~1.1.4", "exit-hook": "^4.0.0", "webpack-bundle-analyzer": "4.10.2" }, "peerDependencies": { "@rspack/core": "^1.0.0-alpha || ^1.x" }, "bin": { "rspack": "bin/rspack.js" } }, "sha512-hhqebrFKp5yNPmLhxVGCNoCsJeiUryXdreNn8b2AXOgh3JN1J0Ftb9QBzmFp7H59afzvuER2HmFIR1Fmb6D2CQ=="], - "@webassemblyjs/ieee754": ["@webassemblyjs/ieee754@1.13.2", "", { "dependencies": { "@xtuc/ieee754": "^1.2.0" } }, "sha512-4LtOzh58S/5lX4ITKxnAK2USuNEvpdVV9AlgGQb8rJDHaLeHciwG4zlGr0j/SNWlr7x3vO1lDEsuePvtcDNCkw=="], + "@rspack/core": ["@rspack/core@1.6.4", "", { "dependencies": { "@module-federation/runtime-tools": "0.21.4", "@rspack/binding": "1.6.4", "@rspack/lite-tapable": "1.1.0" }, "peerDependencies": { "@swc/helpers": ">=0.5.1" }, "optionalPeers": ["@swc/helpers"] }, "sha512-5F1+MQD8rfbFbUHnaiZe4jqOu9pnSb+PliqQvi0lj+uvpMpcS3sJDIs/mz6P1u87lfkfBXChIT4zSLAzeOgMWw=="], - "@webassemblyjs/leb128": ["@webassemblyjs/leb128@1.13.2", "", { "dependencies": { "@xtuc/long": "4.2.2" } }, "sha512-Lde1oNoIdzVzdkNEAWZ1dZ5orIbff80YPdHx20mrHwHrVNNTjNr8E3xz9BdpcGqRQbAEa+fkrCb+fRFTl/6sQw=="], + "@rspack/dev-server": ["@rspack/dev-server@1.1.4", "", { "dependencies": { "chokidar": "^3.6.0", "http-proxy-middleware": "^2.0.9", "p-retry": "^6.2.0", "webpack-dev-server": "5.2.2", "ws": "^8.18.0" }, "peerDependencies": { "@rspack/core": "*" } }, "sha512-kGHYX2jYf3ZiHwVl0aUEPBOBEIG1aWleCDCAi+Jg32KUu3qr/zDUpCEd0wPuHfLEgk0X0xAEYCS6JMO7nBStNQ=="], - "@webassemblyjs/utf8": ["@webassemblyjs/utf8@1.13.2", "", {}, "sha512-3NQWGjKTASY1xV5m7Hr0iPeXD9+RDobLll3T9d2AO+g3my8xy5peVyjSag4I50mR1bBSN/Ct12lo+R9tJk0NZQ=="], + "@rspack/lite-tapable": ["@rspack/lite-tapable@1.1.0", "", {}, "sha512-E2B0JhYFmVAwdDiG14+DW0Di4Ze4Jg10Pc4/lILUrd5DRCaklduz2OvJ5HYQ6G+hd+WTzqQb3QnDNfK4yvAFYw=="], - "@webassemblyjs/wasm-edit": ["@webassemblyjs/wasm-edit@1.14.1", "", { "dependencies": { "@webassemblyjs/ast": "1.14.1", "@webassemblyjs/helper-buffer": "1.14.1", "@webassemblyjs/helper-wasm-bytecode": "1.13.2", "@webassemblyjs/helper-wasm-section": "1.14.1", "@webassemblyjs/wasm-gen": "1.14.1", "@webassemblyjs/wasm-opt": "1.14.1", "@webassemblyjs/wasm-parser": "1.14.1", "@webassemblyjs/wast-printer": "1.14.1" } }, "sha512-RNJUIQH/J8iA/1NzlE4N7KtyZNHi3w7at7hDjvRNm5rcUXa00z1vRz3glZoULfJ5mpvYhLybmVcwcjGrC1pRrQ=="], + "@tybys/wasm-util": ["@tybys/wasm-util@0.10.1", "", { "dependencies": { "tslib": "^2.4.0" } }, "sha512-9tTaPJLSiejZKx+Bmog4uSubteqTvFrVrURwkmHixBo0G4seD0zUxp98E1DzUBJxLQ3NPwXrGKDiVjwx/DpPsg=="], - "@webassemblyjs/wasm-gen": ["@webassemblyjs/wasm-gen@1.14.1", "", { "dependencies": { "@webassemblyjs/ast": "1.14.1", "@webassemblyjs/helper-wasm-bytecode": "1.13.2", "@webassemblyjs/ieee754": "1.13.2", "@webassemblyjs/leb128": "1.13.2", "@webassemblyjs/utf8": "1.13.2" } }, "sha512-AmomSIjP8ZbfGQhumkNvgC33AY7qtMCXnN6bL2u2Js4gVCg8fp735aEiMSBbDR7UQIj90n4wKAFUSEd0QN2Ukg=="], + "@types/body-parser": ["@types/body-parser@1.19.6", "", { "dependencies": { "@types/connect": "*", "@types/node": "*" } }, "sha512-HLFeCYgz89uk22N5Qg3dvGvsv46B8GLvKKo1zKG4NybA8U2DiEO3w9lqGg29t/tfLRJpJ6iQxnVw4OnB7MoM9g=="], - "@webassemblyjs/wasm-opt": ["@webassemblyjs/wasm-opt@1.14.1", "", { "dependencies": { "@webassemblyjs/ast": "1.14.1", "@webassemblyjs/helper-buffer": "1.14.1", "@webassemblyjs/wasm-gen": "1.14.1", "@webassemblyjs/wasm-parser": "1.14.1" } }, "sha512-PTcKLUNvBqnY2U6E5bdOQcSM+oVP/PmrDY9NzowJjislEjwP/C4an2303MCVS2Mg9d3AJpIGdUFIQQWbPds0Sw=="], + "@types/bonjour": ["@types/bonjour@3.5.13", "", { "dependencies": { "@types/node": "*" } }, "sha512-z9fJ5Im06zvUL548KvYNecEVlA7cVDkGUi6kZusb04mpyEFKCIZJvloCcmpmLaIahDpOQGHaHmG6imtPMmPXGQ=="], - "@webassemblyjs/wasm-parser": ["@webassemblyjs/wasm-parser@1.14.1", "", { "dependencies": { "@webassemblyjs/ast": "1.14.1", "@webassemblyjs/helper-api-error": "1.13.2", "@webassemblyjs/helper-wasm-bytecode": "1.13.2", "@webassemblyjs/ieee754": "1.13.2", "@webassemblyjs/leb128": "1.13.2", "@webassemblyjs/utf8": "1.13.2" } }, "sha512-JLBl+KZ0R5qB7mCnud/yyX08jWFw5MsoalJ1pQ4EdFlgj9VdXKGuENGsiCIjegI1W7p91rUlcB/LB5yRJKNTcQ=="], + "@types/connect": ["@types/connect@3.4.38", "", { "dependencies": { "@types/node": "*" } }, "sha512-K6uROf1LD88uDQqJCktA4yzL1YYAK6NgfsI0v/mTgyPKWsX1CnJ0XPSDhViejru1GcRkLWb8RlzFYJRqGUbaug=="], - "@webassemblyjs/wast-printer": ["@webassemblyjs/wast-printer@1.14.1", "", { "dependencies": { "@webassemblyjs/ast": "1.14.1", "@xtuc/long": "4.2.2" } }, "sha512-kPSSXE6De1XOR820C90RIo2ogvZG+c3KiHzqUoO/F34Y2shGzesfqv7o57xrxovZJH/MetF5UjroJ/R/3isoiw=="], + "@types/connect-history-api-fallback": ["@types/connect-history-api-fallback@1.5.4", "", { "dependencies": { "@types/express-serve-static-core": "*", "@types/node": "*" } }, "sha512-n6Cr2xS1h4uAulPRdlw6Jl6s1oG8KrVilPN2yUITEs+K48EzMJJ3W1xy8K5eWuFvjp3R74AOIGSmp2UfBJ8HFw=="], - "@webpack-cli/configtest": ["@webpack-cli/configtest@3.0.1", "", { "peerDependencies": { "webpack": "^5.82.0", "webpack-cli": "6.x.x" } }, "sha512-u8d0pJ5YFgneF/GuvEiDA61Tf1VDomHHYMjv/wc9XzYj7nopltpG96nXN5dJRstxZhcNpV1g+nT6CydO7pHbjA=="], + "@types/express": ["@types/express@4.17.25", "", { "dependencies": { "@types/body-parser": "*", "@types/express-serve-static-core": "^4.17.33", "@types/qs": "*", "@types/serve-static": "^1" } }, "sha512-dVd04UKsfpINUnK0yBoYHDF3xu7xVH4BuDotC/xGuycx4CgbP48X/KF/586bcObxT0HENHXEU8Nqtu6NR+eKhw=="], - "@webpack-cli/info": ["@webpack-cli/info@3.0.1", "", { "peerDependencies": { "webpack": "^5.82.0", "webpack-cli": "6.x.x" } }, "sha512-coEmDzc2u/ffMvuW9aCjoRzNSPDl/XLuhPdlFRpT9tZHmJ/039az33CE7uH+8s0uL1j5ZNtfdv0HkfaKRBGJsQ=="], + "@types/express-serve-static-core": ["@types/express-serve-static-core@4.19.7", "", { "dependencies": { "@types/node": "*", "@types/qs": "*", "@types/range-parser": "*", "@types/send": "*" } }, "sha512-FvPtiIf1LfhzsaIXhv/PHan/2FeQBbtBDtfX2QfvPxdUelMDEckK08SM6nqo1MIZY3RUlfA+HV8+hFUSio78qg=="], - "@webpack-cli/serve": ["@webpack-cli/serve@3.0.1", "", { "peerDependencies": { "webpack": "^5.82.0", "webpack-cli": "6.x.x" } }, "sha512-sbgw03xQaCLiT6gcY/6u3qBDn01CWw/nbaXl3gTdTFuJJ75Gffv3E3DBpgvY2fkkrdS1fpjaXNOmJlnbtKauKg=="], + "@types/http-errors": ["@types/http-errors@2.0.5", "", {}, "sha512-r8Tayk8HJnX0FztbZN7oVqGccWgw98T/0neJphO91KkmOzug1KkofZURD4UaD5uH8AqcFLfdPErnBod0u71/qg=="], - "@xtuc/ieee754": ["@xtuc/ieee754@1.2.0", "", {}, "sha512-DX8nKgqcGwsc0eJSqYt5lwP4DH5FlHnmuWWBRy7X0NcaGR0ZtuyeESgMwTYVEtxmsNGY+qit4QYT/MIYTOTPeA=="], + "@types/http-proxy": ["@types/http-proxy@1.17.17", "", { "dependencies": { "@types/node": "*" } }, "sha512-ED6LB+Z1AVylNTu7hdzuBqOgMnvG/ld6wGCG8wFnAzKX5uyW2K3WD52v0gnLCTK/VLpXtKckgWuyScYK6cSPaw=="], - "@xtuc/long": ["@xtuc/long@4.2.2", "", {}, "sha512-NuHqBY1PB/D8xU6s/thBgOAiAP7HOYDQ32+BFZILJ8ivkUkAHQnWfn6WhL79Owj1qmUnoN/YPhktdIoucipkAQ=="], + "@types/json-schema": ["@types/json-schema@7.0.15", "", {}, "sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA=="], + + "@types/mime": ["@types/mime@1.3.5", "", {}, "sha512-/pyBZWSLD2n0dcHE3hq8s8ZvcETHtEuF+3E7XVt0Ig2nvsVQXdghHVcEkIWjy9A0wKfTn97a/PSDYohKIlnP/w=="], + + "@types/node": ["@types/node@24.10.1", "", { "dependencies": { "undici-types": "~7.16.0" } }, "sha512-GNWcUTRBgIRJD5zj+Tq0fKOJ5XZajIiBroOF0yvj2bSU1WvNdYS/dn9UxwsujGW4JX06dnHyjV2y9rRaybH0iQ=="], + + "@types/node-forge": ["@types/node-forge@1.3.14", "", { "dependencies": { "@types/node": "*" } }, "sha512-mhVF2BnD4BO+jtOp7z1CdzaK4mbuK0LLQYAvdOLqHTavxFNq4zA1EmYkpnFjP8HOUzedfQkRnp0E2ulSAYSzAw=="], + + "@types/qs": ["@types/qs@6.14.0", "", {}, "sha512-eOunJqu0K1923aExK6y8p6fsihYEn/BYuQ4g0CxAAgFc4b/ZLN4CrsRZ55srTdqoiLzU2B2evC+apEIxprEzkQ=="], + + "@types/range-parser": ["@types/range-parser@1.2.7", "", {}, "sha512-hKormJbkJqzQGhziax5PItDUTMAM9uE2XXQmM37dyd4hVM+5aVl7oVxMVUiVQn2oCQFN/LKCZdvSM0pFRqbSmQ=="], + + "@types/retry": ["@types/retry@0.12.2", "", {}, "sha512-XISRgDJ2Tc5q4TRqvgJtzsRkFYNJzZrhTdtMoGVBttwzzQJkPnS3WWTFc7kuDRoPtPakl+T+OfdEUjYJj7Jbow=="], + + "@types/send": ["@types/send@0.17.6", "", { "dependencies": { "@types/mime": "^1", "@types/node": "*" } }, "sha512-Uqt8rPBE8SY0RK8JB1EzVOIZ32uqy8HwdxCnoCOsYrvnswqmFZ/k+9Ikidlk/ImhsdvBsloHbAlewb2IEBV/Og=="], + + "@types/serve-index": ["@types/serve-index@1.9.4", "", { "dependencies": { "@types/express": "*" } }, "sha512-qLpGZ/c2fhSs5gnYsQxtDEq3Oy8SXPClIXkW5ghvAvsNuVSA8k+gCONcUCS/UjLEYvYps+e8uBtfgXgvhwfNug=="], + + "@types/serve-static": ["@types/serve-static@1.15.10", "", { "dependencies": { "@types/http-errors": "*", "@types/node": "*", "@types/send": "<1" } }, "sha512-tRs1dB+g8Itk72rlSI2ZrW6vZg0YrLI81iQSTkMmOqnqCaNr/8Ek4VwWcN5vZgCYWbg/JJSGBlUaYGAOP73qBw=="], + + "@types/sockjs": ["@types/sockjs@0.3.36", "", { "dependencies": { "@types/node": "*" } }, "sha512-MK9V6NzAS1+Ud7JV9lJLFqW85VbC9dq3LmwZCuBe4wBDgKC0Kj/jd8Xl+nSviU+Qc3+m7umHHyHg//2KSa0a0Q=="], + + "@types/ws": ["@types/ws@8.18.1", "", { "dependencies": { "@types/node": "*" } }, "sha512-ThVF6DCVhA8kUGy+aazFQ4kXQ7E1Ty7A3ypFOe0IcJV8O/M511G99AW24irKrW56Wt44yG9+ij8FaqoBGkuBXg=="], + + "accepts": ["accepts@1.3.8", "", { "dependencies": { "mime-types": "~2.1.34", "negotiator": "0.6.3" } }, "sha512-PYAthTa2m2VKxuvSD3DPC/Gy+U+sOA1LAuT8mkmRuvw+NACSaeXEQ+NHcVF7rONl6qcaxV3Uuemwawk+7+SJLw=="], "acorn": ["acorn@8.15.0", "", { "bin": { "acorn": "bin/acorn" } }, "sha512-NZyJarBfL7nWwIq+FDL6Zp/yHEhePMNnnJ0y3qfieCrmNvYct8uvtiV41UvlSe6apAfk0fY1FbWx+NwfmpvtTg=="], - "acorn-import-phases": ["acorn-import-phases@1.0.4", "", { "peerDependencies": { "acorn": "^8.14.0" } }, "sha512-wKmbr/DDiIXzEOiWrTTUcDm24kQ2vGfZQvM2fwg2vXqR5uW6aapr7ObPtj1th32b9u90/Pf4AItvdTh42fBmVQ=="], + "acorn-walk": ["acorn-walk@8.3.4", "", { "dependencies": { "acorn": "^8.11.0" } }, "sha512-ueEepnujpqee2o5aIYnvHU6C0A42MNdsIDeqy5BydrkuC5R1ZuUFnm27EeFJGoEHJQgn3uleRvmTXaJgfXbt4g=="], "ajv": ["ajv@8.17.1", "", { "dependencies": { "fast-deep-equal": "^3.1.3", "fast-uri": "^3.0.1", "json-schema-traverse": "^1.0.0", "require-from-string": "^2.0.2" } }, "sha512-B/gBuNg5SiMTrPkC+A2+cW0RszwxYmn6VYxB/inlBStS5nx6xHIt/ehKRhIMhqusl7a8LjQoZnjCs5vhwxOQ1g=="], @@ -146,45 +196,99 @@ "ajv-keywords": ["ajv-keywords@5.1.0", "", { "dependencies": { "fast-deep-equal": "^3.1.3" }, "peerDependencies": { "ajv": "^8.8.2" } }, "sha512-YCS/JNFAUyr5vAuhk1DWm1CBxRHW9LbJ2ozWeemrIqpbsqKjHVxYPyi5GC0rjZIT5JxJ3virVTS8wk4i/Z+krw=="], - "baseline-browser-mapping": ["baseline-browser-mapping@2.8.30", "", { "bin": { "baseline-browser-mapping": "dist/cli.js" } }, "sha512-aTUKW4ptQhS64+v2d6IkPzymEzzhw+G0bA1g3uBRV3+ntkH+svttKseW5IOR4Ed6NUVKqnY7qT3dKvzQ7io4AA=="], + "ansi-html-community": ["ansi-html-community@0.0.8", "", { "bin": { "ansi-html": "bin/ansi-html" } }, "sha512-1APHAyr3+PCamwNw3bXCPp4HFLONZt/yIH0sZp0/469KWNTEy+qN5jQ3GVX6DMZ1UXAi34yVwtTeaG/HpBuuzw=="], + + "anymatch": ["anymatch@3.1.3", "", { "dependencies": { "normalize-path": "^3.0.0", "picomatch": "^2.0.4" } }, "sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw=="], + + "array-flatten": ["array-flatten@1.1.1", "", {}, "sha512-PCVAQswWemu6UdxsDFFX/+gVeYqKAod3D3UVm91jHwynguOwAvYPhx8nNlM++NqRcK6CxxpUafjmhIdKiHibqg=="], + + "batch": ["batch@0.6.1", "", {}, "sha512-x+VAiMRL6UPkx+kudNvxTl6hB2XNNCG2r+7wixVfIYwu/2HKRXimwQyaumLjMveWvT2Hkd/cAJw+QBMfJ/EKVw=="], + + "binary-extensions": ["binary-extensions@2.3.0", "", {}, "sha512-Ceh+7ox5qe7LJuLHoY0feh3pHuUDHAcRUeyL2VYghZwfpkNIy/+8Ocg0a3UuSoYzavmylwuLWQOf3hl0jjMMIw=="], - "browserslist": ["browserslist@4.28.0", "", { "dependencies": { "baseline-browser-mapping": "^2.8.25", "caniuse-lite": "^1.0.30001754", "electron-to-chromium": "^1.5.249", "node-releases": "^2.0.27", "update-browserslist-db": "^1.1.4" }, "bin": { "browserslist": "cli.js" } }, "sha512-tbydkR/CxfMwelN0vwdP/pLkDwyAASZ+VfWm4EOwlB6SWhx1sYnWLqo8N5j0rAzPfzfRaxt0mM/4wPU/Su84RQ=="], + "body-parser": ["body-parser@1.20.3", "", { "dependencies": { "bytes": "3.1.2", "content-type": "~1.0.5", "debug": "2.6.9", "depd": "2.0.0", "destroy": "1.2.0", "http-errors": "2.0.0", "iconv-lite": "0.4.24", "on-finished": "2.4.1", "qs": "6.13.0", "raw-body": "2.5.2", "type-is": "~1.6.18", "unpipe": "1.0.0" } }, "sha512-7rAxByjUMqQ3/bHJy7D6OGXvx/MMc4IqBn/X0fcM1QUcAItpZrBEYhWGem+tzXH90c+G01ypMcYJBO9Y30203g=="], - "buffer-from": ["buffer-from@1.1.2", "", {}, "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ=="], + "bonjour-service": ["bonjour-service@1.3.0", "", { "dependencies": { "fast-deep-equal": "^3.1.3", "multicast-dns": "^7.2.5" } }, "sha512-3YuAUiSkWykd+2Azjgyxei8OWf8thdn8AITIog2M4UICzoqfjlqr64WIjEXZllf/W6vK1goqleSR6brGomxQqA=="], - "caniuse-lite": ["caniuse-lite@1.0.30001756", "", {}, "sha512-4HnCNKbMLkLdhJz3TToeVWHSnfJvPaq6vu/eRP0Ahub/07n484XHhBF5AJoSGHdVrS8tKFauUQz8Bp9P7LVx7A=="], + "braces": ["braces@3.0.3", "", { "dependencies": { "fill-range": "^7.1.1" } }, "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA=="], - "chrome-trace-event": ["chrome-trace-event@1.0.4", "", {}, "sha512-rNjApaLzuwaOTjCiT8lSDdGN1APCiqkChLMJxJPWLunPAt5fy8xgU9/jNOchV84wfIxrA0lRQB7oCT8jrn/wrQ=="], + "bundle-name": ["bundle-name@4.1.0", "", { "dependencies": { "run-applescript": "^7.0.0" } }, "sha512-tjwM5exMg6BGRI+kNmTntNsvdZS1X8BFYS6tnJ2hdH0kVxM6/eVZ2xy+FqStSWvYmtfFMDLIxurorHwDKfDz5Q=="], - "clone-deep": ["clone-deep@4.0.1", "", { "dependencies": { "is-plain-object": "^2.0.4", "kind-of": "^6.0.2", "shallow-clone": "^3.0.0" } }, "sha512-neHB9xuzh/wk0dIHweyAXv2aPGZIVk3pLMe+/RNzINf17fe0OG96QroktYAUm7SM1PBnzTabaLboqqxDyMU+SQ=="], + "bytes": ["bytes@3.1.2", "", {}, "sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg=="], + + "call-bind-apply-helpers": ["call-bind-apply-helpers@1.0.2", "", { "dependencies": { "es-errors": "^1.3.0", "function-bind": "^1.1.2" } }, "sha512-Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ=="], + + "call-bound": ["call-bound@1.0.4", "", { "dependencies": { "call-bind-apply-helpers": "^1.0.2", "get-intrinsic": "^1.3.0" } }, "sha512-+ys997U96po4Kx/ABpBCqhA9EuxJaQWDQg7295H4hBphv3IZg0boBKuwYpt4YXp6MZ5AmZQnU/tyMTlRpaSejg=="], + + "chokidar": ["chokidar@3.6.0", "", { "dependencies": { "anymatch": "~3.1.2", "braces": "~3.0.2", "glob-parent": "~5.1.2", "is-binary-path": "~2.1.0", "is-glob": "~4.0.1", "normalize-path": "~3.0.0", "readdirp": "~3.6.0" }, "optionalDependencies": { "fsevents": "~2.3.2" } }, "sha512-7VT13fmjotKpGipCW9JEQAusEPE+Ei8nl6/g4FBAmIm0GOOLMua9NDDo/DWp0ZAxCr3cPq5ZpBqmPAQgDda2Pw=="], "colorette": ["colorette@2.0.20", "", {}, "sha512-IfEDxwoWIjkeXL1eXcDiow4UbKjhLdq6/EuSVR9GMN7KVH3r9gQ83e73hsz1Nd1T3ijd5xv1wcWRYO+D6kCI2w=="], - "commander": ["commander@12.1.0", "", {}, "sha512-Vw8qHK3bZM9y/P10u3Vib8o/DdkvA2OtPtZvD871QKjy74Wj1WSKFILMPRPSdUSx5RFK1arlJzEtA4PkFgnbuA=="], + "commander": ["commander@7.2.0", "", {}, "sha512-QrWXB+ZQSVPmIWIhtEO9H+gwHaMGYiF5ChvoJ+K9ZGHG/sVsa6yiesAD1GC/x46sET00Xlwo1u49RVVVzvcSkw=="], + + "compressible": ["compressible@2.0.18", "", { "dependencies": { "mime-db": ">= 1.43.0 < 2" } }, "sha512-AF3r7P5dWxL8MxyITRMlORQNaOA2IkAFaTr4k7BUumjPtRpGDTZpl0Pb1XCO6JeDCBdp126Cgs9sMxqSjgYyRg=="], + + "compression": ["compression@1.8.1", "", { "dependencies": { "bytes": "3.1.2", "compressible": "~2.0.18", "debug": "2.6.9", "negotiator": "~0.6.4", "on-headers": "~1.1.0", "safe-buffer": "5.2.1", "vary": "~1.1.2" } }, "sha512-9mAqGPHLakhCLeNyxPkK4xVo746zQ/czLH1Ky+vkitMnWfWZps8r0qXuwhwizagCRttsL4lfG4pIOvaWLpAP0w=="], + + "connect-history-api-fallback": ["connect-history-api-fallback@2.0.0", "", {}, "sha512-U73+6lQFmfiNPrYbXqr6kZ1i1wiRqXnp2nhMsINseWXO8lDau0LGEffJ8kQi4EjLZympVgRdvqjAgiZ1tgzDDA=="], + + "content-disposition": ["content-disposition@0.5.4", "", { "dependencies": { "safe-buffer": "5.2.1" } }, "sha512-FveZTNuGw04cxlAiWbzi6zTAL/lhehaWbTtgluJh4/E95DqMwTmha3KZN1aAWA8cFIhHzMZUvLevkw5Rqk+tSQ=="], + + "content-type": ["content-type@1.0.5", "", {}, "sha512-nTjqfcBFEipKdXCv4YDQWCfmcLZKm81ldF0pAopTvyrFGVbcR6P/VAAd5G7N+0tTr8QqiU0tFadD6FK4NtJwOA=="], + + "cookie": ["cookie@0.7.1", "", {}, "sha512-6DnInpx7SJ2AK3+CTUE/ZM0vWTUboZCegxhC2xiIydHR9jNuTAASBrfEpHhiGOZw/nX51bHt6YQl8jsGo4y/0w=="], - "cross-spawn": ["cross-spawn@7.0.6", "", { "dependencies": { "path-key": "^3.1.0", "shebang-command": "^2.0.0", "which": "^2.0.1" } }, "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA=="], + "cookie-signature": ["cookie-signature@1.0.6", "", {}, "sha512-QADzlaHc8icV8I7vbaJXJwod9HWYp8uCqf1xa4OfNu1T7JVxQIrUgOWtHdNDtPiywmFbiS12VjotIXLrKM3orQ=="], + + "core-util-is": ["core-util-is@1.0.3", "", {}, "sha512-ZQBvi1DcpJ4GDqanjucZ2Hj3wEO5pZDS89BWbkcrvdxksJorwUDDZamX9ldFkp9aw2lmBDLgkObEA4DWNJ9FYQ=="], "crypto-randomuuid": ["crypto-randomuuid@1.0.0", "", {}, "sha512-/RC5F4l1SCqD/jazwUF6+t34Cd8zTSAGZ7rvvZu1whZUhD2a5MOGKjSGowoGcpj/cbVZk1ZODIooJEQQq3nNAA=="], + "debounce": ["debounce@1.2.1", "", {}, "sha512-XRRe6Glud4rd/ZGQfiV1ruXSfbvfJedlV9Y6zOlP+2K04vBYiJEte6stfFkCP03aMnY5tsipamumUjL14fofug=="], + + "debug": ["debug@2.6.9", "", { "dependencies": { "ms": "2.0.0" } }, "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA=="], + + "default-browser": ["default-browser@5.4.0", "", { "dependencies": { "bundle-name": "^4.1.0", "default-browser-id": "^5.0.0" } }, "sha512-XDuvSq38Hr1MdN47EDvYtx3U0MTqpCEn+F6ft8z2vYDzMrvQhVp0ui9oQdqW3MvK3vqUETglt1tVGgjLuJ5izg=="], + + "default-browser-id": ["default-browser-id@5.0.1", "", {}, "sha512-x1VCxdX4t+8wVfd1so/9w+vQ4vx7lKd2Qp5tDRutErwmR85OgmfX7RlLRMWafRMY7hbEiXIbudNrjOAPa/hL8Q=="], + + "define-lazy-prop": ["define-lazy-prop@3.0.0", "", {}, "sha512-N+MeXYoqr3pOgn8xfyRPREN7gHakLYjhsHhWGT3fWAiL4IkAt0iDw14QiiEm2bE30c5XX5q0FtAA3CK5f9/BUg=="], + + "depd": ["depd@2.0.0", "", {}, "sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw=="], + + "destroy": ["destroy@1.2.0", "", {}, "sha512-2sJGJTaXIIaR1w4iJSNoN0hnMY7Gpc/n8D4qSCJw8QqFWXf7cuAgnEHxBpweaVcPevC2l3KpjYCx3NypQQgaJg=="], + "detect-newline": ["detect-newline@3.1.0", "", {}, "sha512-TLz+x/vEXm/Y7P7wn1EJFNLxYpUD4TgMosxY6fAVJUnJMbupHBOncxyWUG9OpTaH9EBD7uFI5LfEgmMOc54DsA=="], - "electron-to-chromium": ["electron-to-chromium@1.5.259", "", {}, "sha512-I+oLXgpEJzD6Cwuwt1gYjxsDmu/S/Kd41mmLA3O+/uH2pFRO/DvOjUyGozL8j3KeLV6WyZ7ssPwELMsXCcsJAQ=="], + "detect-node": ["detect-node@2.1.0", "", {}, "sha512-T0NIuQpnTvFDATNuHN5roPwSBG83rFsuO+MXXH9/3N1eFbn4wcPjttvjMLEPWJ0RGUYgQE7cGgS3tNxbqCGM7g=="], + + "dns-packet": ["dns-packet@5.6.1", "", { "dependencies": { "@leichtgewicht/ip-codec": "^2.0.1" } }, "sha512-l4gcSouhcgIKRvyy99RNVOgxXiicE+2jZoNmaNmZ6JXiGajBOJAesk1OBlJuM5k2c+eudGdLxDqXuPCKIj6kpw=="], - "enhanced-resolve": ["enhanced-resolve@5.18.3", "", { "dependencies": { "graceful-fs": "^4.2.4", "tapable": "^2.2.0" } }, "sha512-d4lC8xfavMeBjzGr2vECC3fsGXziXZQyJxD868h2M/mBI3PwAuODxAkLkq5HYuvrPYcUtiLzsTo8U3PgX3Ocww=="], + "dunder-proto": ["dunder-proto@1.0.1", "", { "dependencies": { "call-bind-apply-helpers": "^1.0.1", "es-errors": "^1.3.0", "gopd": "^1.2.0" } }, "sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A=="], - "envinfo": ["envinfo@7.20.0", "", { "bin": { "envinfo": "dist/cli.js" } }, "sha512-+zUomDcLXsVkQ37vUqWBvQwLaLlj8eZPSi61llaEFAVBY5mhcXdaSw1pSJVl4yTYD5g/gEfpNl28YYk4IPvrrg=="], + "duplexer": ["duplexer@0.1.2", "", {}, "sha512-jtD6YG370ZCIi/9GTaJKQxWTZD045+4R4hTk/x1UyoqadyJ9x9CgSi1RlVDQF8U2sxLLSnFkCaMihqljHIWgMg=="], - "es-module-lexer": ["es-module-lexer@1.7.0", "", {}, "sha512-jEQoCwk8hyb2AZziIOLhDqpm5+2ww5uIE6lkO/6jcOCusfk6LhMHpXXfBLXTZ7Ydyt0j4VoUQv6uGNYbdW+kBA=="], + "ee-first": ["ee-first@1.1.1", "", {}, "sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow=="], - "escalade": ["escalade@3.2.0", "", {}, "sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA=="], + "encodeurl": ["encodeurl@2.0.0", "", {}, "sha512-Q0n9HRi4m6JuGIV1eFlmvJB7ZEVxu93IrMyiMsGC0lrMJMWzRgx6WGquyfQgZVb31vhGgXnfmPNNXmxnOkRBrg=="], - "eslint-scope": ["eslint-scope@5.1.1", "", { "dependencies": { "esrecurse": "^4.3.0", "estraverse": "^4.1.1" } }, "sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw=="], + "es-define-property": ["es-define-property@1.0.1", "", {}, "sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g=="], - "esrecurse": ["esrecurse@4.3.0", "", { "dependencies": { "estraverse": "^5.2.0" } }, "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag=="], + "es-errors": ["es-errors@1.3.0", "", {}, "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw=="], - "estraverse": ["estraverse@4.3.0", "", {}, "sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw=="], + "es-object-atoms": ["es-object-atoms@1.1.1", "", { "dependencies": { "es-errors": "^1.3.0" } }, "sha512-FGgH2h8zKNim9ljj7dankFPcICIK9Cp5bm+c2gQSYePhpaG5+esrLODihIorn+Pe6FGJzWhXQotPv73jTaldXA=="], - "events": ["events@3.3.0", "", {}, "sha512-mQw+2fkQbALzQ7V0MY0IqdnXNOeTtP4r0lN9z7AAawCXgqea7bDii20AYrIBrFd/Hx0M2Ocz6S111CaFkUcb0Q=="], + "escape-html": ["escape-html@1.0.3", "", {}, "sha512-NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow=="], + + "escape-string-regexp": ["escape-string-regexp@4.0.0", "", {}, "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA=="], + + "etag": ["etag@1.8.1", "", {}, "sha512-aIL5Fx7mawVa300al2BnEE4iNvo1qETxLrPI/o05L7z6go7fCw1J6EQmbK4FmJ2AS7kgVF/KEZWufBfdClMcPg=="], + + "eventemitter3": ["eventemitter3@4.0.7", "", {}, "sha512-8guHBZCwKnFhYdHr2ysuRWErTwhoN2X8XELRlrRwpmfeY2jjuUN4taQMsULKUVo1K4DvZl+0pgfyoysHxvmvEw=="], + + "exit-hook": ["exit-hook@4.0.0", "", {}, "sha512-Fqs7ChZm72y40wKjOFXBKg7nJZvQJmewP5/7LtePDdnah/+FH9Hp5sgMujSCMPXlxOAW2//1jrW9pnsY7o20vQ=="], + + "express": ["express@4.21.2", "", { "dependencies": { "accepts": "~1.3.8", "array-flatten": "1.1.1", "body-parser": "1.20.3", "content-disposition": "0.5.4", "content-type": "~1.0.4", "cookie": "0.7.1", "cookie-signature": "1.0.6", "debug": "2.6.9", "depd": "2.0.0", "encodeurl": "~2.0.0", "escape-html": "~1.0.3", "etag": "~1.8.1", "finalhandler": "1.3.1", "fresh": "0.5.2", "http-errors": "2.0.0", "merge-descriptors": "1.0.3", "methods": "~1.1.2", "on-finished": "2.4.1", "parseurl": "~1.3.3", "path-to-regexp": "0.1.12", "proxy-addr": "~2.0.7", "qs": "6.13.0", "range-parser": "~1.2.1", "safe-buffer": "5.2.1", "send": "0.19.0", "serve-static": "1.16.2", "setprototypeof": "1.2.0", "statuses": "2.0.1", "type-is": "~1.6.18", "utils-merge": "1.0.1", "vary": "~1.1.2" } }, "sha512-28HqgMZAmih1Czt9ny7qr6ek2qddF4FclbMzwhCREB6OFfH+rXAnuNCwo1/wFvrtbgsQDb4kSbX9de9lFbrXnA=="], "fast-deep-equal": ["fast-deep-equal@3.1.3", "", {}, "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q=="], @@ -192,176 +296,324 @@ "fast-uri": ["fast-uri@3.1.0", "", {}, "sha512-iPeeDKJSWf4IEOasVVrknXpaBV0IApz/gp7S2bb7Z4Lljbl2MGJRqInZiUrQwV16cpzw/D3S5j5Julj/gT52AA=="], - "fastest-levenshtein": ["fastest-levenshtein@1.0.16", "", {}, "sha512-eRnCtTTtGZFpQCwhJiUOuxPQWRXVKYDn0b2PeHfXL6/Zi53SLAzAHfVhVWK2AryC/WH05kGfxhFIPvTF0SXQzg=="], + "faye-websocket": ["faye-websocket@0.11.4", "", { "dependencies": { "websocket-driver": ">=0.5.1" } }, "sha512-CzbClwlXAuiRQAlUyfqPgvPoNKTckTPGfwZV4ZdAhVcP2lh9KUxJg2b5GkE7XbjKQ3YJnQ9z6D9ntLAlB+tP8g=="], + + "fill-range": ["fill-range@7.1.1", "", { "dependencies": { "to-regex-range": "^5.0.1" } }, "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg=="], + + "finalhandler": ["finalhandler@1.3.1", "", { "dependencies": { "debug": "2.6.9", "encodeurl": "~2.0.0", "escape-html": "~1.0.3", "on-finished": "2.4.1", "parseurl": "~1.3.3", "statuses": "2.0.1", "unpipe": "~1.0.0" } }, "sha512-6BN9trH7bp3qvnrRyzsBz+g3lZxTNZTbVO2EV1CS0WIcDbawYVdYvGflME/9QP0h0pYlCDBCTjYa9nZzMDpyxQ=="], + + "follow-redirects": ["follow-redirects@1.15.11", "", {}, "sha512-deG2P0JfjrTxl50XGCDyfI97ZGVCxIpfKYmfyrQ54n5FO/0gfIES8C/Psl6kWVDolizcaaxZJnTS0QSMxvnsBQ=="], + + "forwarded": ["forwarded@0.2.0", "", {}, "sha512-buRG0fpBtRHSTCOASe6hD258tEubFoRLb4ZNA6NxMVHNw2gOcwHo9wyablzMzOA5z9xA9L1KNjk/Nt6MT9aYow=="], - "find-up": ["find-up@4.1.0", "", { "dependencies": { "locate-path": "^5.0.0", "path-exists": "^4.0.0" } }, "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw=="], + "fresh": ["fresh@0.5.2", "", {}, "sha512-zJ2mQYM18rEFOudeV4GShTGIQ7RbzA7ozbU9I/XBpm7kqgMywgmylMwXHxZJmkVoYkna9d2pVXVXPdYTP9ej8Q=="], - "flat": ["flat@5.0.2", "", { "bin": { "flat": "cli.js" } }, "sha512-b6suED+5/3rTpUBdG1gupIl8MPFCAMA0QXwmljLhvCUKcUvdE4gWky9zpuGCcXHOsz4J9wPGNWq6OKpmIzz3hQ=="], + "fsevents": ["fsevents@2.3.3", "", { "os": "darwin" }, "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw=="], "function-bind": ["function-bind@1.1.2", "", {}, "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA=="], - "glob-to-regexp": ["glob-to-regexp@0.4.1", "", {}, "sha512-lkX1HJXwyMcprw/5YUZc2s7DrpAiHB21/V+E1rHUrVNokkvB6bqMzT0VfV6/86ZNabt1k14YOIaT7nDvOX3Iiw=="], + "get-intrinsic": ["get-intrinsic@1.3.0", "", { "dependencies": { "call-bind-apply-helpers": "^1.0.2", "es-define-property": "^1.0.1", "es-errors": "^1.3.0", "es-object-atoms": "^1.1.1", "function-bind": "^1.1.2", "get-proto": "^1.0.1", "gopd": "^1.2.0", "has-symbols": "^1.1.0", "hasown": "^2.0.2", "math-intrinsics": "^1.1.0" } }, "sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ=="], + + "get-proto": ["get-proto@1.0.1", "", { "dependencies": { "dunder-proto": "^1.0.1", "es-object-atoms": "^1.0.0" } }, "sha512-sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g=="], + + "glob-parent": ["glob-parent@5.1.2", "", { "dependencies": { "is-glob": "^4.0.1" } }, "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow=="], + + "glob-to-regex.js": ["glob-to-regex.js@1.2.0", "", { "peerDependencies": { "tslib": "2" } }, "sha512-QMwlOQKU/IzqMUOAZWubUOT8Qft+Y0KQWnX9nK3ch0CJg0tTp4TvGZsTfudYKv2NzoQSyPcnA6TYeIQ3jGichQ=="], + + "gopd": ["gopd@1.2.0", "", {}, "sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg=="], "graceful-fs": ["graceful-fs@4.2.11", "", {}, "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ=="], - "has-flag": ["has-flag@4.0.0", "", {}, "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ=="], + "gzip-size": ["gzip-size@6.0.0", "", { "dependencies": { "duplexer": "^0.1.2" } }, "sha512-ax7ZYomf6jqPTQ4+XCpUGyXKHk5WweS+e05MBO4/y3WJ5RkmPXNKvX+bx1behVILVwr6JSQvZAku021CHPXG3Q=="], + + "handle-thing": ["handle-thing@2.0.1", "", {}, "sha512-9Qn4yBxelxoh2Ow62nP+Ka/kMnOXRi8BXnRaUwezLNhqelnN49xKz4F/dPP8OYLxLxq6JDtZb2i9XznUQbNPTg=="], + + "has-symbols": ["has-symbols@1.1.0", "", {}, "sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ=="], "hasown": ["hasown@2.0.2", "", { "dependencies": { "function-bind": "^1.1.2" } }, "sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ=="], + "hpack.js": ["hpack.js@2.1.6", "", { "dependencies": { "inherits": "^2.0.1", "obuf": "^1.0.0", "readable-stream": "^2.0.1", "wbuf": "^1.1.0" } }, "sha512-zJxVehUdMGIKsRaNt7apO2Gqp0BdqW5yaiGHXXmbpvxgBYVZnAql+BJb4RO5ad2MgpbZKn5G6nMnegrH1FcNYQ=="], + + "html-escaper": ["html-escaper@2.0.2", "", {}, "sha512-H2iMtd0I4Mt5eYiapRdIDjp+XzelXQ0tFE4JS7YFwFevXXMmOp9myNrUvCg0D6ws8iqkRPBfKHgbwig1SmlLfg=="], + + "http-deceiver": ["http-deceiver@1.2.7", "", {}, "sha512-LmpOGxTfbpgtGVxJrj5k7asXHCgNZp5nLfp+hWc8QQRqtb7fUy6kRY3BO1h9ddF6yIPYUARgxGOwB42DnxIaNw=="], + + "http-errors": ["http-errors@2.0.0", "", { "dependencies": { "depd": "2.0.0", "inherits": "2.0.4", "setprototypeof": "1.2.0", "statuses": "2.0.1", "toidentifier": "1.0.1" } }, "sha512-FtwrG/euBzaEjYeRqOgly7G0qviiXoJWnvEH2Z1plBdXgbyjv34pHTSb9zoeHMyDy33+DWy5Wt9Wo+TURtOYSQ=="], + + "http-parser-js": ["http-parser-js@0.5.10", "", {}, "sha512-Pysuw9XpUq5dVc/2SMHpuTY01RFl8fttgcyunjL7eEMhGM3cI4eOmiCycJDVCo/7O7ClfQD3SaI6ftDzqOXYMA=="], + + "http-proxy": ["http-proxy@1.18.1", "", { "dependencies": { "eventemitter3": "^4.0.0", "follow-redirects": "^1.0.0", "requires-port": "^1.0.0" } }, "sha512-7mz/721AbnJwIVbnaSv1Cz3Am0ZLT/UBwkC92VlxhXv/k/BBQfM2fXElQNC27BVGr0uwUpplYPQM9LnaBMR5NQ=="], + + "http-proxy-middleware": ["http-proxy-middleware@2.0.9", "", { "dependencies": { "@types/http-proxy": "^1.17.8", "http-proxy": "^1.18.1", "is-glob": "^4.0.1", "is-plain-obj": "^3.0.0", "micromatch": "^4.0.2" }, "peerDependencies": { "@types/express": "^4.17.13" }, "optionalPeers": ["@types/express"] }, "sha512-c1IyJYLYppU574+YI7R4QyX2ystMtVXZwIdzazUIPIJsHuWNd+mho2j+bKoHftndicGj9yh+xjd+l0yj7VeT1Q=="], + + "hyperdyperid": ["hyperdyperid@1.2.0", "", {}, "sha512-Y93lCzHYgGWdrJ66yIktxiaGULYc6oGiABxhcO5AufBeOyoIdZF7bIfLaOrbM0iGIOXQQgxxRrFEnb+Y6w1n4A=="], + + "iconv-lite": ["iconv-lite@0.4.24", "", { "dependencies": { "safer-buffer": ">= 2.1.2 < 3" } }, "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA=="], + "ignore": ["ignore@7.0.5", "", {}, "sha512-Hs59xBNfUIunMFgWAbGX5cq6893IbWg4KnrjbYwX3tx0ztorVgTDA6B2sxf8ejHJ4wz8BqGUMYlnzNBer5NvGg=="], - "import-local": ["import-local@3.2.0", "", { "dependencies": { "pkg-dir": "^4.2.0", "resolve-cwd": "^3.0.0" }, "bin": { "import-local-fixture": "fixtures/cli.js" } }, "sha512-2SPlun1JUPWoM6t3F0dw0FkCF/jWY8kttcY4f599GLTSjh2OCuuhdTkJQsEcZzBqbXZGKMK2OqW1oZsjtf/gQA=="], + "inherits": ["inherits@2.0.4", "", {}, "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ=="], + + "ipaddr.js": ["ipaddr.js@2.2.0", "", {}, "sha512-Ag3wB2o37wslZS19hZqorUnrnzSkpOVy+IiiDEiTqNubEYpYuHWIf6K4psgN2ZWKExS4xhVCrRVfb/wfW8fWJA=="], + + "is-binary-path": ["is-binary-path@2.1.0", "", { "dependencies": { "binary-extensions": "^2.0.0" } }, "sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw=="], + + "is-docker": ["is-docker@3.0.0", "", { "bin": { "is-docker": "cli.js" } }, "sha512-eljcgEDlEns/7AXFosB5K/2nCM4P7FQPkGc/DWLy5rmFEWvZayGrik1d9/QIY5nJ4f9YsVvBkA6kJpHn9rISdQ=="], + + "is-extglob": ["is-extglob@2.1.1", "", {}, "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ=="], - "interpret": ["interpret@3.1.1", "", {}, "sha512-6xwYfHbajpoF0xLW+iwLkhwgvLoZDfjYfoFNu8ftMoXINzwuymNLd9u/KmwtdT2GbR+/Cz66otEGEVVUHX9QLQ=="], + "is-glob": ["is-glob@4.0.3", "", { "dependencies": { "is-extglob": "^2.1.1" } }, "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg=="], - "is-core-module": ["is-core-module@2.16.1", "", { "dependencies": { "hasown": "^2.0.2" } }, "sha512-UfoeMA6fIJ8wTYFEUjelnaGI67v6+N7qXJEvQuIGa99l4xsCruSYOVSQ0uPANn4dAzm8lkYPaKLrrijLq7x23w=="], + "is-inside-container": ["is-inside-container@1.0.0", "", { "dependencies": { "is-docker": "^3.0.0" }, "bin": { "is-inside-container": "cli.js" } }, "sha512-KIYLCCJghfHZxqjYBE7rEy0OBuTd5xCHS7tHVgvCLkx7StIoaxwNW3hCALgEUjFfeRk+MG/Qxmp/vtETEF3tRA=="], - "is-plain-object": ["is-plain-object@2.0.4", "", { "dependencies": { "isobject": "^3.0.1" } }, "sha512-h5PpgXkWitc38BBMYawTYMWJHFZJVnBquFE57xFpjB8pJFiF6gZ+bU+WyI/yqXiFR5mdLsgYNaPe8uao6Uv9Og=="], + "is-network-error": ["is-network-error@1.3.0", "", {}, "sha512-6oIwpsgRfnDiyEDLMay/GqCl3HoAtH5+RUKW29gYkL0QA+ipzpDLA16yQs7/RHCSu+BwgbJaOUqa4A99qNVQVw=="], - "isexe": ["isexe@2.0.0", "", {}, "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw=="], + "is-number": ["is-number@7.0.0", "", {}, "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng=="], - "isobject": ["isobject@3.0.1", "", {}, "sha512-WhB9zCku7EGTj/HQQRz5aUQEUeoQZH2bWcltRErOpymJ4boYE6wL9Tbr23krRPSZ+C5zqNSrSw+Cc7sZZ4b7vg=="], + "is-plain-obj": ["is-plain-obj@3.0.0", "", {}, "sha512-gwsOE28k+23GP1B6vFl1oVh/WOzmawBrKwo5Ev6wMKzPkaXaCDIQKzLnvsA42DRlbVTWorkgTKIviAKCWkfUwA=="], + + "is-wsl": ["is-wsl@3.1.0", "", { "dependencies": { "is-inside-container": "^1.0.0" } }, "sha512-UcVfVfaK4Sc4m7X3dUSoHoozQGBEFeDC+zVo06t98xe8CzHSZZBekNXH+tu0NalHolcJ/QAGqS46Hef7QXBIMw=="], + + "isarray": ["isarray@1.0.0", "", {}, "sha512-VLghIWNM6ELQzo7zwmcg0NmTVyWKYjvIeM83yjp0wRDTmUnrM678fQbcKBo6n2CJEF0szoG//ytg+TKla89ALQ=="], "istanbul-lib-coverage": ["istanbul-lib-coverage@3.2.2", "", {}, "sha512-O8dpsF+r0WV/8MNRKfnmrtCWhuKjxrq2w+jpzBL5UZKTi2LeVWnWOmWRxFlesJONmc+wLAGvKQZEOanko0LFTg=="], "jest-docblock": ["jest-docblock@29.7.0", "", { "dependencies": { "detect-newline": "^3.0.0" } }, "sha512-q617Auw3A612guyaFgsbFeYpNP5t2aoUNLwBUbc/0kD1R4t9ixDbyFTHd1nok4epoVFpr7PmeWHrhvuV3XaJ4g=="], - "jest-worker": ["jest-worker@27.5.1", "", { "dependencies": { "@types/node": "*", "merge-stream": "^2.0.0", "supports-color": "^8.0.0" } }, "sha512-7vuh85V5cdDofPyxn58nrPjBktZo0u9x1g8WtjQol+jZDaE+fhN+cIvTj11GndBnMnyfrUOG1sZQxCdjKh+DKg=="], - "jsep": ["jsep@1.4.0", "", {}, "sha512-B7qPcEVE3NVkmSJbaYxvv4cHkVW7DQsZz13pUMrfS8z8Q/BuShN+gcTXrUlPiGqM2/t/EEaI030bpxMqY8gMlw=="], - "json-parse-even-better-errors": ["json-parse-even-better-errors@2.3.1", "", {}, "sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w=="], - "json-schema-traverse": ["json-schema-traverse@1.0.0", "", {}, "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug=="], "jsonpath-plus": ["jsonpath-plus@10.3.0", "", { "dependencies": { "@jsep-plugin/assignment": "^1.3.0", "@jsep-plugin/regex": "^1.0.4", "jsep": "^1.4.0" }, "bin": { "jsonpath": "bin/jsonpath-cli.js", "jsonpath-plus": "bin/jsonpath-cli.js" } }, "sha512-8TNmfeTCk2Le33A3vRRwtuworG/L5RrgMvdjhKZxvyShO+mBu2fP50OWUjRLNtvw344DdDarFh9buFAZs5ujeA=="], - "kind-of": ["kind-of@6.0.3", "", {}, "sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw=="], + "launch-editor": ["launch-editor@2.12.0", "", { "dependencies": { "picocolors": "^1.1.1", "shell-quote": "^1.8.3" } }, "sha512-giOHXoOtifjdHqUamwKq6c49GzBdLjvxrd2D+Q4V6uOHopJv7p9VJxikDsQ/CBXZbEITgUqSVHXLTG3VhPP1Dg=="], "limiter": ["limiter@1.1.5", "", {}, "sha512-FWWMIEOxz3GwUI4Ts/IvgVy6LPvoMPgjMdQ185nN6psJyBJ4yOpzqm695/h5umdLJg2vW3GR5iG11MAkR2AzJA=="], - "loader-runner": ["loader-runner@4.3.1", "", {}, "sha512-IWqP2SCPhyVFTBtRcgMHdzlf9ul25NwaFx4wCEH/KjAXuuHY4yNjvPXsBokp8jCB936PyWRaPKUNh8NvylLp2Q=="], - - "locate-path": ["locate-path@5.0.0", "", { "dependencies": { "p-locate": "^4.1.0" } }, "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g=="], - "lodash.sortby": ["lodash.sortby@4.7.0", "", {}, "sha512-HDWXG8isMntAyRF5vZ7xKuEvOhT4AhlRt/3czTSjvGUxjYCBVRQY48ViDHyfYz9VIoBkW4TMGQNapx+l3RUwdA=="], "long": ["long@5.3.2", "", {}, "sha512-mNAgZ1GmyNhD7AuqnTG3/VQ26o760+ZYBPKjPvugO8+nLbYfX6TVpJPseBvopbdY+qpZ/lKUnmEc1LeZYS3QAA=="], "lru-cache": ["lru-cache@10.4.3", "", {}, "sha512-JNAzZcXrCt42VGLuYz0zfAzDfAvJWW6AfYlDBQyDV5DClI2m5sAmK+OIO7s59XfsRsWHp02jAJrRadPRGTt6SQ=="], - "merge-stream": ["merge-stream@2.0.0", "", {}, "sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w=="], + "math-intrinsics": ["math-intrinsics@1.1.0", "", {}, "sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g=="], + + "media-typer": ["media-typer@0.3.0", "", {}, "sha512-dq+qelQ9akHpcOl/gUVRTxVIOkAJ1wR3QAvb4RsVjS8oVoFjDGTc679wJYmUmknUF5HwMLOgb5O+a3KxfWapPQ=="], + + "memfs": ["memfs@4.51.0", "", { "dependencies": { "@jsonjoy.com/json-pack": "^1.11.0", "@jsonjoy.com/util": "^1.9.0", "glob-to-regex.js": "^1.0.1", "thingies": "^2.5.0", "tree-dump": "^1.0.3", "tslib": "^2.0.0" } }, "sha512-4zngfkVM/GpIhC8YazOsM6E8hoB33NP0BCESPOA6z7qaL6umPJNqkO8CNYaLV2FB2MV6H1O3x2luHHOSqppv+A=="], + + "merge-descriptors": ["merge-descriptors@1.0.3", "", {}, "sha512-gaNvAS7TZ897/rVaZ0nMtAyxNyi/pdbjbAwUpFQpN70GqnVfOiXpeUUMKRBmzXaSQ8DdTX4/0ms62r2K+hE6mQ=="], - "mime-db": ["mime-db@1.52.0", "", {}, "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg=="], + "methods": ["methods@1.1.2", "", {}, "sha512-iclAHeNqNm68zFtnZ0e+1L2yUIdvzNoauKU4WBA3VvH/vPFieF7qfRlwUZU+DA9P9bPXIS90ulxoUoCH23sV2w=="], + + "micromatch": ["micromatch@4.0.8", "", { "dependencies": { "braces": "^3.0.3", "picomatch": "^2.3.1" } }, "sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA=="], + + "mime": ["mime@1.6.0", "", { "bin": { "mime": "cli.js" } }, "sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg=="], + + "mime-db": ["mime-db@1.54.0", "", {}, "sha512-aU5EJuIN2WDemCcAp2vFBfp/m4EAhWJnUNSSw0ixs7/kXbd6Pg64EmwJkNdFhB8aWt1sH2CTXrLxo/iAGV3oPQ=="], "mime-types": ["mime-types@2.1.35", "", { "dependencies": { "mime-db": "1.52.0" } }, "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw=="], + "minimalistic-assert": ["minimalistic-assert@1.0.1", "", {}, "sha512-UtJcAD4yEaGtjPezWuO9wC4nwUnVH/8/Im3yEHQP4b67cXlD/Qr9hdITCU1xDbSEXg2XKNaP8jsReV7vQd00/A=="], + "module-details-from-path": ["module-details-from-path@1.0.4", "", {}, "sha512-EGWKgxALGMgzvxYF1UyGTy0HXX/2vHLkw6+NvDKW2jypWbHpjQuj4UMcqQWXHERJhVGKikolT06G3bcKe4fi7w=="], + "mrmime": ["mrmime@2.0.1", "", {}, "sha512-Y3wQdFg2Va6etvQ5I82yUhGdsKrcYox6p7FfL1LbK2J4V01F9TGlepTIhnK24t7koZibmg82KGglhA1XK5IsLQ=="], + + "ms": ["ms@2.0.0", "", {}, "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A=="], + + "multicast-dns": ["multicast-dns@7.2.5", "", { "dependencies": { "dns-packet": "^5.2.2", "thunky": "^1.0.2" }, "bin": { "multicast-dns": "cli.js" } }, "sha512-2eznPJP8z2BFLX50tf0LuODrpINqP1RVIm/CObbTcBRITQgmC/TjcREF1NeTBzIcR5XO/ukWo+YHOjBbFwIupg=="], + "mutexify": ["mutexify@1.4.0", "", { "dependencies": { "queue-tick": "^1.0.0" } }, "sha512-pbYSsOrSB/AKN5h/WzzLRMFgZhClWccf2XIB4RSMC8JbquiB0e0/SH5AIfdQMdyHmYtv4seU7yV/TvAwPLJ1Yg=="], - "neo-async": ["neo-async@2.6.2", "", {}, "sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw=="], + "negotiator": ["negotiator@0.6.4", "", {}, "sha512-myRT3DiWPHqho5PrJaIRyaMv2kgYf0mUVgBNOYMuCH5Ki1yEiQaf/ZJuQ62nvpc44wL5WDbTX7yGJi1Neevw8w=="], - "node-releases": ["node-releases@2.0.27", "", {}, "sha512-nmh3lCkYZ3grZvqcCH+fjmQ7X+H0OeZgP40OierEaAptX4XofMh5kwNbWh7lBduUzCcV/8kZ+NDLCwm2iorIlA=="], + "node-forge": ["node-forge@1.3.1", "", {}, "sha512-dPEtOeMvF9VMcYV/1Wb8CPoVAXtp6MKMlcbAt4ddqmGqUJ6fQZFXkNZNkNlfevtNkGtaSoXf/vNNNSvgrdXwtA=="], - "opentracing": ["opentracing@0.14.7", "", {}, "sha512-vz9iS7MJ5+Bp1URw8Khvdyw1H/hGvzHWlKQ7eRrQojSCDL1/SrWfrY9QebLw97n2deyRtzHRC3MkQfVNUCo91Q=="], + "normalize-path": ["normalize-path@3.0.0", "", {}, "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA=="], + + "object-inspect": ["object-inspect@1.13.4", "", {}, "sha512-W67iLl4J2EXEGTbfeHCffrjDfitvLANg0UlX3wFUUSTx92KXRFegMHUVgSqE+wvhAbi4WqjGg9czysTV2Epbew=="], - "p-limit": ["p-limit@2.3.0", "", { "dependencies": { "p-try": "^2.0.0" } }, "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w=="], + "obuf": ["obuf@1.1.2", "", {}, "sha512-PX1wu0AmAdPqOL1mWhqmlOd8kOIZQwGZw6rh7uby9fTc5lhaOWFLX3I6R1hrF9k3zUY40e6igsLGkDXK92LJNg=="], - "p-locate": ["p-locate@4.1.0", "", { "dependencies": { "p-limit": "^2.2.0" } }, "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A=="], + "on-finished": ["on-finished@2.4.1", "", { "dependencies": { "ee-first": "1.1.1" } }, "sha512-oVlzkg3ENAhCk2zdv7IJwd/QUD4z2RxRwpkcGY8psCVcCYZNq4wYnVWALHM+brtuJjePWiYF/ClmuDr8Ch5+kg=="], - "p-try": ["p-try@2.2.0", "", {}, "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ=="], + "on-headers": ["on-headers@1.1.0", "", {}, "sha512-737ZY3yNnXy37FHkQxPzt4UZ2UWPWiCZWLvFZ4fu5cueciegX0zGPnrlY6bwRg4FdQOe9YU8MkmJwGhoMybl8A=="], - "path-exists": ["path-exists@4.0.0", "", {}, "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w=="], + "open": ["open@10.2.0", "", { "dependencies": { "default-browser": "^5.2.1", "define-lazy-prop": "^3.0.0", "is-inside-container": "^1.0.0", "wsl-utils": "^0.1.0" } }, "sha512-YgBpdJHPyQ2UE5x+hlSXcnejzAvD0b22U2OuAP+8OnlJT+PjWPxtgmGqKKc+RgTM63U9gN0YzrYc71R2WT/hTA=="], - "path-key": ["path-key@3.1.1", "", {}, "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q=="], + "opener": ["opener@1.5.2", "", { "bin": { "opener": "bin/opener-bin.js" } }, "sha512-ur5UIdyw5Y7yEj9wLzhqXiy6GZ3Mwx0yGI+5sMn2r0N0v3cKJvUmFH5yPP+WXh9e0xfyzyJX95D8l088DNFj7A=="], - "path-parse": ["path-parse@1.0.7", "", {}, "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw=="], + "opentracing": ["opentracing@0.14.7", "", {}, "sha512-vz9iS7MJ5+Bp1URw8Khvdyw1H/hGvzHWlKQ7eRrQojSCDL1/SrWfrY9QebLw97n2deyRtzHRC3MkQfVNUCo91Q=="], + + "p-retry": ["p-retry@6.2.1", "", { "dependencies": { "@types/retry": "0.12.2", "is-network-error": "^1.0.0", "retry": "^0.13.1" } }, "sha512-hEt02O4hUct5wtwg4H4KcWgDdm+l1bOaEy/hWzd8xtXB9BqxTWBBhb+2ImAtH4Cv4rPjV76xN3Zumqk3k3AhhQ=="], + + "parseurl": ["parseurl@1.3.3", "", {}, "sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ=="], "path-to-regexp": ["path-to-regexp@0.1.12", "", {}, "sha512-RA1GjUVMnvYFxuqovrEqZoxxW5NUZqbwKtYz/Tt7nXerk0LbLblQmrsgdeOxV5SFHf0UDggjS/bSeOZwt1pmEQ=="], "picocolors": ["picocolors@1.1.1", "", {}, "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA=="], - "pkg-dir": ["pkg-dir@4.2.0", "", { "dependencies": { "find-up": "^4.0.0" } }, "sha512-HRDzbaKjC+AOWVXxAU/x54COGeIv9eb+6CkDSQoNTt4XyWoIJvuPsXizxu/Fr23EiekbtZwmh1IcIG/l/a10GQ=="], + "picomatch": ["picomatch@2.3.1", "", {}, "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA=="], "pprof-format": ["pprof-format@2.2.1", "", {}, "sha512-p4tVN7iK19ccDqQv8heyobzUmbHyds4N2FI6aBMcXz6y99MglTWDxIyhFkNaLeEXs6IFUEzT0zya0icbSLLY0g=="], + "process-nextick-args": ["process-nextick-args@2.0.1", "", {}, "sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag=="], + "protobufjs": ["protobufjs@7.5.4", "", { "dependencies": { "@protobufjs/aspromise": "^1.1.2", "@protobufjs/base64": "^1.1.2", "@protobufjs/codegen": "^2.0.4", "@protobufjs/eventemitter": "^1.1.0", "@protobufjs/fetch": "^1.1.0", "@protobufjs/float": "^1.0.2", "@protobufjs/inquire": "^1.1.0", "@protobufjs/path": "^1.1.2", "@protobufjs/pool": "^1.1.0", "@protobufjs/utf8": "^1.1.0", "@types/node": ">=13.7.0", "long": "^5.0.0" } }, "sha512-CvexbZtbov6jW2eXAvLukXjXUW1TzFaivC46BpWc/3BpcCysb5Vffu+B3XHMm8lVEuy2Mm4XGex8hBSg1yapPg=="], + "proxy-addr": ["proxy-addr@2.0.7", "", { "dependencies": { "forwarded": "0.2.0", "ipaddr.js": "1.9.1" } }, "sha512-llQsMLSUDUPT44jdrU/O37qlnifitDP+ZwrmmZcoSKyLKvtZxpyV0n2/bD/N4tBAAZ/gJEdZU7KMraoK1+XYAg=="], + + "qs": ["qs@6.13.0", "", { "dependencies": { "side-channel": "^1.0.6" } }, "sha512-+38qI9SOr8tfZ4QmJNplMUxqjbe7LKvvZgWdExBOmd+egZTtjLB67Gu0HRX3u/XOq7UU2Nx6nsjvS16Z9uwfpg=="], + "queue-tick": ["queue-tick@1.0.1", "", {}, "sha512-kJt5qhMxoszgU/62PLP1CJytzd2NKetjSRnyuj31fDd3Rlcz3fzlFdFLD1SItunPwyqEOkca6GbV612BWfaBag=="], - "randombytes": ["randombytes@2.1.0", "", { "dependencies": { "safe-buffer": "^5.1.0" } }, "sha512-vYl3iOX+4CKUWuxGi9Ukhie6fsqXqS9FE2Zaic4tNFD2N2QQaXOMFbuKK4QmDHC0JO6B1Zp41J0LpT0oR68amQ=="], + "range-parser": ["range-parser@1.2.1", "", {}, "sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg=="], - "rechoir": ["rechoir@0.8.0", "", { "dependencies": { "resolve": "^1.20.0" } }, "sha512-/vxpCXddiX8NGfGO/mTafwjq4aFa/71pvamip0++IQk3zG8cbCj0fifNPrjjF1XMXUne91jL9OoxmdykoEtifQ=="], + "raw-body": ["raw-body@2.5.2", "", { "dependencies": { "bytes": "3.1.2", "http-errors": "2.0.0", "iconv-lite": "0.4.24", "unpipe": "1.0.0" } }, "sha512-8zGqypfENjCIqGhgXToC8aB2r7YrBX+AQAfIPs/Mlk+BtPTztOvTS01NRW/3Eh60J+a48lt8qsCzirQ6loCVfA=="], - "require-from-string": ["require-from-string@2.0.2", "", {}, "sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw=="], + "readable-stream": ["readable-stream@3.6.2", "", { "dependencies": { "inherits": "^2.0.3", "string_decoder": "^1.1.1", "util-deprecate": "^1.0.1" } }, "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA=="], - "resolve": ["resolve@1.22.11", "", { "dependencies": { "is-core-module": "^2.16.1", "path-parse": "^1.0.7", "supports-preserve-symlinks-flag": "^1.0.0" }, "bin": { "resolve": "bin/resolve" } }, "sha512-RfqAvLnMl313r7c9oclB1HhUEAezcpLjz95wFH4LVuhk9JF/r22qmVP9AMmOU4vMX7Q8pN8jwNg/CSpdFnMjTQ=="], + "readdirp": ["readdirp@3.6.0", "", { "dependencies": { "picomatch": "^2.2.1" } }, "sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA=="], - "resolve-cwd": ["resolve-cwd@3.0.0", "", { "dependencies": { "resolve-from": "^5.0.0" } }, "sha512-OrZaX2Mb+rJCpH/6CpSqt9xFVpN++x01XnN2ie9g6P5/3xelLAkXWVADpdz1IHD/KFfEXyE6V0U01OQ3UO2rEg=="], + "require-from-string": ["require-from-string@2.0.2", "", {}, "sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw=="], - "resolve-from": ["resolve-from@5.0.0", "", {}, "sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw=="], + "requires-port": ["requires-port@1.0.0", "", {}, "sha512-KigOCHcocU3XODJxsu8i/j8T9tzT4adHiecwORRQ0ZZFcp7ahwXuRU1m+yuO90C5ZUyGeGfocHDI14M3L3yDAQ=="], "retry": ["retry@0.13.1", "", {}, "sha512-XQBQ3I8W1Cge0Seh+6gjj03LbmRFWuoszgK9ooCpwYIrhhoO80pfq4cUkU5DkknwfOfFteRwlZ56PYOGYyFWdg=="], "rfdc": ["rfdc@1.4.1", "", {}, "sha512-q1b3N5QkRUWUl7iyylaaj3kOpIT0N2i9MqIEQXP73GVsN9cw3fdx8X63cEmWhJGi2PPCF23Ijp7ktmd39rawIA=="], + "run-applescript": ["run-applescript@7.1.0", "", {}, "sha512-DPe5pVFaAsinSaV6QjQ6gdiedWDcRCbUuiQfQa2wmWV7+xC9bGulGI8+TdRmoFkAPaBXk8CrAbnlY2ISniJ47Q=="], + "safe-buffer": ["safe-buffer@5.2.1", "", {}, "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ=="], + "safer-buffer": ["safer-buffer@2.1.2", "", {}, "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg=="], + "schema-utils": ["schema-utils@4.3.3", "", { "dependencies": { "@types/json-schema": "^7.0.9", "ajv": "^8.9.0", "ajv-formats": "^2.1.1", "ajv-keywords": "^5.1.0" } }, "sha512-eflK8wEtyOE6+hsaRVPxvUKYCpRgzLqDTb8krvAsRIwOGlHoSgYLgBXoubGgLd2fT41/OUYdb48v4k4WWHQurA=="], + "select-hose": ["select-hose@2.0.0", "", {}, "sha512-mEugaLK+YfkijB4fx0e6kImuJdCIt2LxCRcbEYPqRGCs4F2ogyfZU5IAZRdjCP8JPq2AtdNoC/Dux63d9Kiryg=="], + + "selfsigned": ["selfsigned@2.4.1", "", { "dependencies": { "@types/node-forge": "^1.3.0", "node-forge": "^1" } }, "sha512-th5B4L2U+eGLq1TVh7zNRGBapioSORUeymIydxgFpwww9d2qyKvtuPU2jJuHvYAwwqi2Y596QBL3eEqcPEYL8Q=="], + "semifies": ["semifies@1.0.0", "", {}, "sha512-xXR3KGeoxTNWPD4aBvL5NUpMTT7WMANr3EWnaS190QVkY52lqqcVRD7Q05UVbBhiWDGWMlJEUam9m7uFFGVScw=="], - "serialize-javascript": ["serialize-javascript@6.0.2", "", { "dependencies": { "randombytes": "^2.1.0" } }, "sha512-Saa1xPByTTq2gdeFZYLLo+RFE35NHZkAbqZeWNd3BpzppeVisAqpDjcp8dyf6uIvEqJRd46jemmyA4iFIeVk8g=="], + "send": ["send@0.19.0", "", { "dependencies": { "debug": "2.6.9", "depd": "2.0.0", "destroy": "1.2.0", "encodeurl": "~1.0.2", "escape-html": "~1.0.3", "etag": "~1.8.1", "fresh": "0.5.2", "http-errors": "2.0.0", "mime": "1.6.0", "ms": "2.1.3", "on-finished": "2.4.1", "range-parser": "~1.2.1", "statuses": "2.0.1" } }, "sha512-dW41u5VfLXu8SJh5bwRmyYUbAoSB3c9uQh6L8h/KtsFREPWpbX1lrljJo186Jc4nmci/sGUZ9a0a0J2zgfq2hw=="], - "shallow-clone": ["shallow-clone@3.0.1", "", { "dependencies": { "kind-of": "^6.0.2" } }, "sha512-/6KqX+GVUdqPuPPd2LxDDxzX6CAbjJehAAOKlNpqqUpAqPM6HeL8f+o3a+JsyGjn2lv0WY8UsTgUJjU9Ok55NA=="], + "serve-index": ["serve-index@1.9.1", "", { "dependencies": { "accepts": "~1.3.4", "batch": "0.6.1", "debug": "2.6.9", "escape-html": "~1.0.3", "http-errors": "~1.6.2", "mime-types": "~2.1.17", "parseurl": "~1.3.2" } }, "sha512-pXHfKNP4qujrtteMrSBb0rc8HJ9Ms/GrXwcUtUtD5s4ewDJI8bT3Cz2zTVRMKtri49pLx2e0Ya8ziP5Ya2pZZw=="], - "shebang-command": ["shebang-command@2.0.0", "", { "dependencies": { "shebang-regex": "^3.0.0" } }, "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA=="], + "serve-static": ["serve-static@1.16.2", "", { "dependencies": { "encodeurl": "~2.0.0", "escape-html": "~1.0.3", "parseurl": "~1.3.3", "send": "0.19.0" } }, "sha512-VqpjJZKadQB/PEbEwvFdO43Ax5dFBZ2UECszz8bQ7pi7wt//PWe1P6MN7eCnjsatYtBT6EuiClbjSWP2WrIoTw=="], - "shebang-regex": ["shebang-regex@3.0.0", "", {}, "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A=="], + "setprototypeof": ["setprototypeof@1.2.0", "", {}, "sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw=="], "shell-quote": ["shell-quote@1.8.3", "", {}, "sha512-ObmnIF4hXNg1BqhnHmgbDETF8dLPCggZWBjkQfhZpbszZnYur5DUljTcCHii5LC3J5E0yeO/1LIMyH+UvHQgyw=="], + "side-channel": ["side-channel@1.1.0", "", { "dependencies": { "es-errors": "^1.3.0", "object-inspect": "^1.13.3", "side-channel-list": "^1.0.0", "side-channel-map": "^1.0.1", "side-channel-weakmap": "^1.0.2" } }, "sha512-ZX99e6tRweoUXqR+VBrslhda51Nh5MTQwou5tnUDgbtyM0dBgmhEDtWGP/xbKn6hqfPRHujUNwz5fy/wbbhnpw=="], + + "side-channel-list": ["side-channel-list@1.0.0", "", { "dependencies": { "es-errors": "^1.3.0", "object-inspect": "^1.13.3" } }, "sha512-FCLHtRD/gnpCiCHEiJLOwdmFP+wzCmDEkc9y7NsYxeF4u7Btsn1ZuwgwJGxImImHicJArLP4R0yX4c2KCrMrTA=="], + + "side-channel-map": ["side-channel-map@1.0.1", "", { "dependencies": { "call-bound": "^1.0.2", "es-errors": "^1.3.0", "get-intrinsic": "^1.2.5", "object-inspect": "^1.13.3" } }, "sha512-VCjCNfgMsby3tTdo02nbjtM/ewra6jPHmpThenkTYh8pG9ucZ/1P8So4u4FGBek/BjpOVsDCMoLA/iuBKIFXRA=="], + + "side-channel-weakmap": ["side-channel-weakmap@1.0.2", "", { "dependencies": { "call-bound": "^1.0.2", "es-errors": "^1.3.0", "get-intrinsic": "^1.2.5", "object-inspect": "^1.13.3", "side-channel-map": "^1.0.1" } }, "sha512-WPS/HvHQTYnHisLo9McqBHOJk2FkHO/tlpvldyrnem4aeQp4hai3gythswg6p01oSoTl58rcpiFAjF2br2Ak2A=="], + + "sirv": ["sirv@2.0.4", "", { "dependencies": { "@polka/url": "^1.0.0-next.24", "mrmime": "^2.0.0", "totalist": "^3.0.0" } }, "sha512-94Bdh3cC2PKrbgSOUqTiGPWVZeSiXfKOVZNJniWoqrWrRkB1CJzBU3NEbiTsPcYy1lDsANA/THzS+9WBiy5nfQ=="], + + "sockjs": ["sockjs@0.3.24", "", { "dependencies": { "faye-websocket": "^0.11.3", "uuid": "^8.3.2", "websocket-driver": "^0.7.4" } }, "sha512-GJgLTZ7vYb/JtPSSZ10hsOYIvEYsjbNU+zPdIHcUaWVNUEPivzxku31865sSSud0Da0W4lEeOPlmw93zLQchuQ=="], + "source-map": ["source-map@0.7.6", "", {}, "sha512-i5uvt8C3ikiWeNZSVZNWcfZPItFQOsYTUAOkcUPGd8DqDy1uOUikjt5dG+uRlwyvR108Fb9DOd4GvXfT0N2/uQ=="], - "source-map-support": ["source-map-support@0.5.21", "", { "dependencies": { "buffer-from": "^1.0.0", "source-map": "^0.6.0" } }, "sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w=="], + "spdy": ["spdy@4.0.2", "", { "dependencies": { "debug": "^4.1.0", "handle-thing": "^2.0.0", "http-deceiver": "^1.2.7", "select-hose": "^2.0.0", "spdy-transport": "^3.0.0" } }, "sha512-r46gZQZQV+Kl9oItvl1JZZqJKGr+oEkB08A6BzkiR7593/7IbtuncXHd2YoYeTsG4157ZssMu9KYvUHLcjcDoA=="], - "supports-color": ["supports-color@8.1.1", "", { "dependencies": { "has-flag": "^4.0.0" } }, "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q=="], + "spdy-transport": ["spdy-transport@3.0.0", "", { "dependencies": { "debug": "^4.1.0", "detect-node": "^2.0.4", "hpack.js": "^2.1.6", "obuf": "^1.1.2", "readable-stream": "^3.0.6", "wbuf": "^1.7.3" } }, "sha512-hsLVFE5SjA6TCisWeJXFKniGGOpBgMLmerfO2aCyCU5s7nJ/rpAepqmFifv/GCbSbueEeAJJnmSQ2rKC/g8Fcw=="], - "supports-preserve-symlinks-flag": ["supports-preserve-symlinks-flag@1.0.0", "", {}, "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w=="], + "statuses": ["statuses@2.0.1", "", {}, "sha512-RwNA9Z/7PrK06rYLIzFMlaF+l73iwpzsqRIFgbMLbTcLD6cOao82TaWefPXQvB2fOC4AjuYSEndS7N/mTCbkdQ=="], - "tapable": ["tapable@2.3.0", "", {}, "sha512-g9ljZiwki/LfxmQADO3dEY1CbpmXT5Hm2fJ+QaGKwSXUylMybePR7/67YW7jOrrvjEgL1Fmz5kzyAjWVWLlucg=="], + "string_decoder": ["string_decoder@1.3.0", "", { "dependencies": { "safe-buffer": "~5.2.0" } }, "sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA=="], - "terser": ["terser@5.44.1", "", { "dependencies": { "@jridgewell/source-map": "^0.3.3", "acorn": "^8.15.0", "commander": "^2.20.0", "source-map-support": "~0.5.20" }, "bin": { "terser": "bin/terser" } }, "sha512-t/R3R/n0MSwnnazuPpPNVO60LX0SKL45pyl9YlvxIdkH0Of7D5qM2EVe+yASRIlY5pZ73nclYJfNANGWPwFDZw=="], + "thingies": ["thingies@2.5.0", "", { "peerDependencies": { "tslib": "^2" } }, "sha512-s+2Bwztg6PhWUD7XMfeYm5qliDdSiZm7M7n8KjTkIsm3l/2lgVRc2/Gx/v+ZX8lT4FMA+i8aQvhcWylldc+ZNw=="], - "terser-webpack-plugin": ["terser-webpack-plugin@5.3.14", "", { "dependencies": { "@jridgewell/trace-mapping": "^0.3.25", "jest-worker": "^27.4.5", "schema-utils": "^4.3.0", "serialize-javascript": "^6.0.2", "terser": "^5.31.1" }, "peerDependencies": { "webpack": "^5.1.0" } }, "sha512-vkZjpUjb6OMS7dhV+tILUW6BhpDR7P2L/aQSAv+Uwk+m8KATX9EccViHTJR2qDtACKPIYndLGCyl3FMo+r2LMw=="], + "thunky": ["thunky@1.1.0", "", {}, "sha512-eHY7nBftgThBqOyHGVN+l8gF0BucP09fMo0oO/Lb0w1OF80dJv+lDVpXG60WMQvkcxAkNybKsrEIE3ZtKGmPrA=="], "tlhunter-sorted-set": ["tlhunter-sorted-set@0.1.0", "", {}, "sha512-eGYW4bjf1DtrHzUYxYfAcSytpOkA44zsr7G2n3PV7yOUR23vmkGe3LL4R+1jL9OsXtbsFOwe8XtbCrabeaEFnw=="], + "to-regex-range": ["to-regex-range@5.0.1", "", { "dependencies": { "is-number": "^7.0.0" } }, "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ=="], + + "toidentifier": ["toidentifier@1.0.1", "", {}, "sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA=="], + + "totalist": ["totalist@3.0.1", "", {}, "sha512-sf4i37nQ2LBx4m3wB74y+ubopq6W/dIzXg0FDGjsYnZHVa1Da8FH853wlL2gtUhg+xJXjfk3kUZS3BRoQeoQBQ=="], + + "tree-dump": ["tree-dump@1.1.0", "", { "peerDependencies": { "tslib": "2" } }, "sha512-rMuvhU4MCDbcbnleZTFezWsaZXRFemSqAM+7jPnzUl1fo9w3YEKOxAeui0fz3OI4EU4hf23iyA7uQRVko+UaBA=="], + + "tslib": ["tslib@2.8.1", "", {}, "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w=="], + "ttl-set": ["ttl-set@1.0.0", "", { "dependencies": { "fast-fifo": "^1.3.2" } }, "sha512-2fuHn/UR+8Z9HK49r97+p2Ru1b5Eewg2QqPrU14BVCQ9QoyU3+vLLZk2WEiyZ9sgJh6W8G1cZr9I2NBLywAHrA=="], + "type-is": ["type-is@1.6.18", "", { "dependencies": { "media-typer": "0.3.0", "mime-types": "~2.1.24" } }, "sha512-TkRKr9sUTxEH8MdfuCSP7VizJyzRNMjj2J2do2Jr3Kym598JVdEksuzPQCnlFPW4ky9Q+iA+ma9BGm06XQBy8g=="], + "undici-types": ["undici-types@7.16.0", "", {}, "sha512-Zz+aZWSj8LE6zoxD+xrjh4VfkIG8Ya6LvYkZqtUQGJPZjYl53ypCaUwWqo7eI0x66KBGeRo+mlBEkMSeSZ38Nw=="], - "update-browserslist-db": ["update-browserslist-db@1.1.4", "", { "dependencies": { "escalade": "^3.2.0", "picocolors": "^1.1.1" }, "peerDependencies": { "browserslist": ">= 4.21.0" }, "bin": { "update-browserslist-db": "cli.js" } }, "sha512-q0SPT4xyU84saUX+tomz1WLkxUbuaJnR1xWt17M7fJtEJigJeWUNGUqrauFXsHnqev9y9JTRGwk13tFBuKby4A=="], + "unpipe": ["unpipe@1.0.0", "", {}, "sha512-pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ=="], + + "util-deprecate": ["util-deprecate@1.0.2", "", {}, "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw=="], + + "utils-merge": ["utils-merge@1.0.1", "", {}, "sha512-pMZTvIkT1d+TFGvDOqodOclx0QWkkgi6Tdoa8gC8ffGAAqz9pzPTZWAybbsHHoED/ztMtkv/VoYTYyShUn81hA=="], + + "uuid": ["uuid@8.3.2", "", { "bin": { "uuid": "dist/bin/uuid" } }, "sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg=="], + + "vary": ["vary@1.1.2", "", {}, "sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg=="], + + "wbuf": ["wbuf@1.7.3", "", { "dependencies": { "minimalistic-assert": "^1.0.0" } }, "sha512-O84QOnr0icsbFGLS0O3bI5FswxzRr8/gHwWkDlQFskhSPryQXvrTMxjxGP4+iWYoauLoBvfDpkrOauZ+0iZpDA=="], + + "webpack-bundle-analyzer": ["webpack-bundle-analyzer@4.10.2", "", { "dependencies": { "@discoveryjs/json-ext": "0.5.7", "acorn": "^8.0.4", "acorn-walk": "^8.0.0", "commander": "^7.2.0", "debounce": "^1.2.1", "escape-string-regexp": "^4.0.0", "gzip-size": "^6.0.0", "html-escaper": "^2.0.2", "opener": "^1.5.2", "picocolors": "^1.0.0", "sirv": "^2.0.3", "ws": "^7.3.1" }, "bin": { "webpack-bundle-analyzer": "lib/bin/analyzer.js" } }, "sha512-vJptkMm9pk5si4Bv922ZbKLV8UTT4zib4FPgXMhgzUny0bfDDkLXAVQs3ly3fS4/TN9ROFtb0NFrm04UXFE/Vw=="], + + "webpack-dev-middleware": ["webpack-dev-middleware@7.4.5", "", { "dependencies": { "colorette": "^2.0.10", "memfs": "^4.43.1", "mime-types": "^3.0.1", "on-finished": "^2.4.1", "range-parser": "^1.2.1", "schema-utils": "^4.0.0" }, "peerDependencies": { "webpack": "^5.0.0" }, "optionalPeers": ["webpack"] }, "sha512-uxQ6YqGdE4hgDKNf7hUiPXOdtkXvBJXrfEGYSx7P7LC8hnUYGK70X6xQXUvXeNyBDDcsiQXpG2m3G9vxowaEuA=="], + + "webpack-dev-server": ["webpack-dev-server@5.2.2", "", { "dependencies": { "@types/bonjour": "^3.5.13", "@types/connect-history-api-fallback": "^1.5.4", "@types/express": "^4.17.21", "@types/express-serve-static-core": "^4.17.21", "@types/serve-index": "^1.9.4", "@types/serve-static": "^1.15.5", "@types/sockjs": "^0.3.36", "@types/ws": "^8.5.10", "ansi-html-community": "^0.0.8", "bonjour-service": "^1.2.1", "chokidar": "^3.6.0", "colorette": "^2.0.10", "compression": "^1.7.4", "connect-history-api-fallback": "^2.0.0", "express": "^4.21.2", "graceful-fs": "^4.2.6", "http-proxy-middleware": "^2.0.9", "ipaddr.js": "^2.1.0", "launch-editor": "^2.6.1", "open": "^10.0.3", "p-retry": "^6.2.0", "schema-utils": "^4.2.0", "selfsigned": "^2.4.1", "serve-index": "^1.9.1", "sockjs": "^0.3.24", "spdy": "^4.0.2", "webpack-dev-middleware": "^7.4.2", "ws": "^8.18.0" }, "peerDependencies": { "webpack": "^5.0.0" }, "optionalPeers": ["webpack"], "bin": { "webpack-dev-server": "bin/webpack-dev-server.js" } }, "sha512-QcQ72gh8a+7JO63TAx/6XZf/CWhgMzu5m0QirvPfGvptOusAxG12w2+aua1Jkjr7hzaWDnJ2n6JFeexMHI+Zjg=="], + + "websocket-driver": ["websocket-driver@0.7.4", "", { "dependencies": { "http-parser-js": ">=0.5.1", "safe-buffer": ">=5.1.0", "websocket-extensions": ">=0.1.1" } }, "sha512-b17KeDIQVjvb0ssuSDF2cYXSg2iztliJ4B9WdsuB6J952qCPKmnVq4DyW5motImXHDC1cBT/1UezrJVsKw5zjg=="], + + "websocket-extensions": ["websocket-extensions@0.1.4", "", {}, "sha512-OqedPIGOfsDlo31UNwYbCFMSaO9m9G/0faIHj5/dZFDMFqPTcx6UwqyOy3COEaEOg/9VsGIpdqn62W5KhoKSpg=="], + + "ws": ["ws@8.18.3", "", { "peerDependencies": { "bufferutil": "^4.0.1", "utf-8-validate": ">=5.0.2" }, "optionalPeers": ["bufferutil", "utf-8-validate"] }, "sha512-PEIGCY5tSlUt50cqyMXfCzX+oOPqN0vuGqWzbcJ2xvnkzkq46oOpz7dQaTDBdfICb4N14+GARUDw2XV2N4tvzg=="], + + "wsl-utils": ["wsl-utils@0.1.0", "", { "dependencies": { "is-wsl": "^3.1.0" } }, "sha512-h3Fbisa2nKGPxCpm89Hk33lBLsnaGBvctQopaBSOW/uIs6FTe1ATyAnKFJrzVs9vpGdsTe73WF3V4lIsk4Gacw=="], + + "accepts/negotiator": ["negotiator@0.6.3", "", {}, "sha512-+EUsqGPLsM+j/zdChZjsnX51g4XrHFOIXwfnCVPGlQk/k5giakcKsuxCObBRu6DSm9opw/O6slWbJdghQM4bBg=="], + + "hpack.js/readable-stream": ["readable-stream@2.3.8", "", { "dependencies": { "core-util-is": "~1.0.0", "inherits": "~2.0.3", "isarray": "~1.0.0", "process-nextick-args": "~2.0.0", "safe-buffer": "~5.1.1", "string_decoder": "~1.1.1", "util-deprecate": "~1.0.1" } }, "sha512-8p0AUk4XODgIewSi0l8Epjs+EVnWiK7NoDIEGU0HhE7+ZyY8D1IMY7odu5lRrFXGg71L15KG8QrPmum45RTtdA=="], + + "mime-types/mime-db": ["mime-db@1.52.0", "", {}, "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg=="], + + "proxy-addr/ipaddr.js": ["ipaddr.js@1.9.1", "", {}, "sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g=="], + + "send/encodeurl": ["encodeurl@1.0.2", "", {}, "sha512-TPJXq8JqFaVYm2CWmPvnP2Iyo4ZSM7/QKcSmuMLDObfpH5fi7RUGmd/rTDf+rut/saiDiQEeVTNgAmJEdAOx0w=="], + + "send/ms": ["ms@2.1.3", "", {}, "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA=="], + + "serve-index/http-errors": ["http-errors@1.6.3", "", { "dependencies": { "depd": "~1.1.2", "inherits": "2.0.3", "setprototypeof": "1.1.0", "statuses": ">= 1.4.0 < 2" } }, "sha512-lks+lVC8dgGyh97jxvxeYTWQFvh4uw4yC12gVl63Cg30sjPX4wuGcdkICVXDAESr6OJGjqGA8Iz5mkeN6zlD7A=="], + + "spdy/debug": ["debug@4.4.3", "", { "dependencies": { "ms": "^2.1.3" } }, "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA=="], + + "spdy-transport/debug": ["debug@4.4.3", "", { "dependencies": { "ms": "^2.1.3" } }, "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA=="], - "watchpack": ["watchpack@2.4.4", "", { "dependencies": { "glob-to-regexp": "^0.4.1", "graceful-fs": "^4.1.2" } }, "sha512-c5EGNOiyxxV5qmTtAB7rbiXxi1ooX1pQKMLX/MIabJjRA0SJBQOjKF+KSVfHkr9U1cADPon0mRiVe/riyaiDUA=="], + "webpack-bundle-analyzer/ws": ["ws@7.5.10", "", { "peerDependencies": { "bufferutil": "^4.0.1", "utf-8-validate": "^5.0.2" }, "optionalPeers": ["bufferutil", "utf-8-validate"] }, "sha512-+dbF1tHwZpXcbOJdVOkzLDxZP1ailvSxM6ZweXTegylPny803bFhA+vqBYw4s31NSAk4S2Qz+AKXK9a4wkdjcQ=="], - "webpack": ["webpack@5.103.0", "", { "dependencies": { "@types/eslint-scope": "^3.7.7", "@types/estree": "^1.0.8", "@types/json-schema": "^7.0.15", "@webassemblyjs/ast": "^1.14.1", "@webassemblyjs/wasm-edit": "^1.14.1", "@webassemblyjs/wasm-parser": "^1.14.1", "acorn": "^8.15.0", "acorn-import-phases": "^1.0.3", "browserslist": "^4.26.3", "chrome-trace-event": "^1.0.2", "enhanced-resolve": "^5.17.3", "es-module-lexer": "^1.2.1", "eslint-scope": "5.1.1", "events": "^3.2.0", "glob-to-regexp": "^0.4.1", "graceful-fs": "^4.2.11", "json-parse-even-better-errors": "^2.3.1", "loader-runner": "^4.3.1", "mime-types": "^2.1.27", "neo-async": "^2.6.2", "schema-utils": "^4.3.3", "tapable": "^2.3.0", "terser-webpack-plugin": "^5.3.11", "watchpack": "^2.4.4", "webpack-sources": "^3.3.3" }, "bin": { "webpack": "bin/webpack.js" } }, "sha512-HU1JOuV1OavsZ+mfigY0j8d1TgQgbZ6M+J75zDkpEAwYeXjWSqrGJtgnPblJjd/mAyTNQ7ygw0MiKOn6etz8yw=="], + "webpack-dev-middleware/mime-types": ["mime-types@3.0.2", "", { "dependencies": { "mime-db": "^1.54.0" } }, "sha512-Lbgzdk0h4juoQ9fCKXW4by0UJqj+nOOrI9MJ1sSj4nI8aI2eo1qmvQEie4VD1glsS250n15LsWsYtCugiStS5A=="], - "webpack-cli": ["webpack-cli@6.0.1", "", { "dependencies": { "@discoveryjs/json-ext": "^0.6.1", "@webpack-cli/configtest": "^3.0.1", "@webpack-cli/info": "^3.0.1", "@webpack-cli/serve": "^3.0.1", "colorette": "^2.0.14", "commander": "^12.1.0", "cross-spawn": "^7.0.3", "envinfo": "^7.14.0", "fastest-levenshtein": "^1.0.12", "import-local": "^3.0.2", "interpret": "^3.1.1", "rechoir": "^0.8.0", "webpack-merge": "^6.0.1" }, "peerDependencies": { "webpack": "^5.82.0" }, "bin": { "webpack-cli": "./bin/cli.js" } }, "sha512-MfwFQ6SfwinsUVi0rNJm7rHZ31GyTcpVE5pgVA3hwFRb7COD4TzjUUwhGWKfO50+xdc2MQPuEBBJoqIMGt3JDw=="], + "hpack.js/readable-stream/safe-buffer": ["safe-buffer@5.1.2", "", {}, "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g=="], - "webpack-merge": ["webpack-merge@6.0.1", "", { "dependencies": { "clone-deep": "^4.0.1", "flat": "^5.0.2", "wildcard": "^2.0.1" } }, "sha512-hXXvrjtx2PLYx4qruKl+kyRSLc52V+cCvMxRjmKwoA+CBbbF5GfIBtR6kCvl0fYGqTUPKB+1ktVmTHqMOzgCBg=="], + "hpack.js/readable-stream/string_decoder": ["string_decoder@1.1.1", "", { "dependencies": { "safe-buffer": "~5.1.0" } }, "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg=="], - "webpack-sources": ["webpack-sources@3.3.3", "", {}, "sha512-yd1RBzSGanHkitROoPFd6qsrxt+oFhg/129YzheDGqeustzX0vTZJZsSsQjVQC4yzBQ56K55XU8gaNCtIzOnTg=="], + "serve-index/http-errors/depd": ["depd@1.1.2", "", {}, "sha512-7emPTl6Dpo6JRXOXjLRxck+FlLRX5847cLKEn00PLAgc3g2hTZZgr+e4c2v6QpSmLeFP3n5yUo7ft6avBK/5jQ=="], - "which": ["which@2.0.2", "", { "dependencies": { "isexe": "^2.0.0" }, "bin": { "node-which": "./bin/node-which" } }, "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA=="], + "serve-index/http-errors/inherits": ["inherits@2.0.3", "", {}, "sha512-x00IRNXNy63jwGkJmzPigoySHbaqpNuzKbBOmzK+g2OdZpQ9w+sxCN+VSB3ja7IAge2OP2qpfxTjeNcyjmW1uw=="], - "wildcard": ["wildcard@2.0.1", "", {}, "sha512-CC1bOL87PIWSBhDcTrdeLo6eGT7mCFtrg0uIJtqJUFyK+eJnzl8A1niH56uu7KMa5XFrtiV+AQuHO3n7DsHnLQ=="], + "serve-index/http-errors/setprototypeof": ["setprototypeof@1.1.0", "", {}, "sha512-BvE/TwpZX4FXExxOxZyRGQQv651MSwmWKZGqvmPcRIjDqWub67kTKuIMx43cZZrS/cBBzwBcNDWoFxt2XEFIpQ=="], - "esrecurse/estraverse": ["estraverse@5.3.0", "", {}, "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA=="], + "serve-index/http-errors/statuses": ["statuses@1.5.0", "", {}, "sha512-OpZ3zP+jT1PI7I8nemJX4AKmAX070ZkYPVWV/AaKTJl+tXCTGyVdC1a4SL8RUQYEwk/f34ZX8UTykN68FwrqAA=="], - "source-map-support/source-map": ["source-map@0.6.1", "", {}, "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g=="], + "spdy-transport/debug/ms": ["ms@2.1.3", "", {}, "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA=="], - "terser/commander": ["commander@2.20.3", "", {}, "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ=="], + "spdy/debug/ms": ["ms@2.1.3", "", {}, "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA=="], } } diff --git a/vendor/package.json b/vendor/package.json index 76d8e657337..eec8007c112 100644 --- a/vendor/package.json +++ b/vendor/package.json @@ -1,6 +1,6 @@ { "scripts": { - "postinstall": "webpack" + "postinstall": "rspack" }, "dependencies": { "@isaacs/ttlcache": "^2.0.1", @@ -31,7 +31,7 @@ "ttl-set": "^1.0.0" }, "devDependencies": { - "webpack": "^5.103.0", - "webpack-cli": "^6.0.1" + "@rspack/cli": "^1.6.4", + "@rspack/core": "^1.6.4" } } diff --git a/vendor/webpack.config.js b/vendor/rspack.config.js similarity index 96% rename from vendor/webpack.config.js rename to vendor/rspack.config.js index c6418003825..84ddadac3c3 100644 --- a/vendor/webpack.config.js +++ b/vendor/rspack.config.js @@ -12,6 +12,7 @@ module.exports = { entry: Object.fromEntries(names.map(name => [name, `./node_modules/${name}`])), target: 'node', mode: 'production', + devtool: false, output: { filename: '[name].js', libraryTarget: 'commonjs2', From 82e9c60565ca8c212d55004993199d0d23067bc9 Mon Sep 17 00:00:00 2001 From: rochdev Date: Fri, 21 Nov 2025 09:02:41 -0500 Subject: [PATCH 12/95] fix missing optional dependency --- packages/node_modules/protobufjs/minimal.js | 1 + vendor/rspack.config.js | 1 + 2 files changed, 2 insertions(+) create mode 100644 packages/node_modules/protobufjs/minimal.js diff --git a/packages/node_modules/protobufjs/minimal.js b/packages/node_modules/protobufjs/minimal.js new file mode 100644 index 00000000000..52f879a379a --- /dev/null +++ b/packages/node_modules/protobufjs/minimal.js @@ -0,0 +1 @@ +(()=>{"use strict";var __webpack_modules__={8045:function(t){t.exports=r;function r(t,r){for(var e=Array(arguments.length-1),n=0,i=2,o=!0;i1&&"="===t.charAt(r);)++e;return Math.ceil(3*t.length)/4-e};for(var n=Array(64),i=Array(123),o=0;o<64;)i[n[o]=o<26?o+65:o<52?o+71:o<62?o-4:o-59|43]=o++;e.encode=function(t,r,e){for(var i,o=null,s=[],u=0,f=0;r>2],i=(3&h)<<4,f=1;break;case 1:s[u++]=n[i|h>>4],i=(15&h)<<2,f=2;break;case 2:s[u++]=n[i|h>>6],s[u++]=n[63&h],f=0}u>8191&&((o||(o=[])).push(String.fromCharCode.apply(String,s)),u=0)}return(f&&(s[u++]=n[i],s[u++]=61,1===f&&(s[u++]=61)),o)?(u&&o.push(String.fromCharCode.apply(String,s.slice(0,u))),o.join("")):String.fromCharCode.apply(String,s.slice(0,u))};var s="invalid encoding";e.decode=function(t,r,e){for(var n,o=e,u=0,f=0;f1)break;if(void 0===(h=i[h]))throw Error(s);switch(u){case 0:n=h,u=1;break;case 1:r[e++]=n<<2|(48&h)>>4,n=h,u=2;break;case 2:r[e++]=(15&n)<<4|(60&h)>>2,n=h,u=3;break;case 3:r[e++]=(3&n)<<6|h,u=0}}if(1===u)throw Error(s);return e-o},e.test=function(t){return/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(t)}},4358:function(t){function r(){this._listeners={}}t.exports=r,r.prototype.on=function(t,r,e){return(this._listeners[t]||(this._listeners[t]=[])).push({fn:r,ctx:e||this}),this},r.prototype.off=function(t,r){if(void 0===t)this._listeners={};else if(void 0===r)this._listeners[t]=[];else for(var e=this._listeners[t],n=0;n0?0:0x80000000,e,n);else if(isNaN(r))t(0x7fc00000,e,n);else if(r>34028234663852886e22)t((i<<31|0x7f800000)>>>0,e,n);else if(r<11754943508222875e-54)t((i<<31|Math.round(r/1401298464324817e-60))>>>0,e,n);else{var o=Math.floor(Math.log(r)/Math.LN2),s=8388607&Math.round(r*Math.pow(2,-o)*8388608);t((i<<31|o+127<<23|s)>>>0,e,n)}}function s(t,r,e){var n=t(r,e),i=(n>>31)*2+1,o=n>>>23&255,s=8388607&n;return 255===o?s?NaN:1/0*i:0===o?1401298464324817e-60*i*s:i*Math.pow(2,o-150)*(s+8388608)}t.writeFloatLE=r.bind(null,e),t.writeFloatBE=r.bind(null,n),t.readFloatLE=s.bind(null,i),t.readFloatBE=s.bind(null,o)}(),"undefined"!=typeof Float64Array?!function(){var r=new Float64Array([-0]),e=new Uint8Array(r.buffer),n=128===e[7];function i(t,n,i){r[0]=t,n[i]=e[0],n[i+1]=e[1],n[i+2]=e[2],n[i+3]=e[3],n[i+4]=e[4],n[i+5]=e[5],n[i+6]=e[6],n[i+7]=e[7]}function o(t,n,i){r[0]=t,n[i]=e[7],n[i+1]=e[6],n[i+2]=e[5],n[i+3]=e[4],n[i+4]=e[3],n[i+5]=e[2],n[i+6]=e[1],n[i+7]=e[0]}function s(t,n){return e[0]=t[n],e[1]=t[n+1],e[2]=t[n+2],e[3]=t[n+3],e[4]=t[n+4],e[5]=t[n+5],e[6]=t[n+6],e[7]=t[n+7],r[0]}function u(t,n){return e[7]=t[n],e[6]=t[n+1],e[5]=t[n+2],e[4]=t[n+3],e[3]=t[n+4],e[2]=t[n+5],e[1]=t[n+6],e[0]=t[n+7],r[0]}t.writeDoubleLE=n?i:o,t.writeDoubleBE=n?o:i,t.readDoubleLE=n?s:u,t.readDoubleBE=n?u:s}():!function(){function r(t,r,e,n,i,o){var s,u=+(n<0);if(u&&(n=-n),0===n)t(0,i,o+r),t(1/n>0?0:0x80000000,i,o+e);else if(isNaN(n))t(0,i,o+r),t(0x7ff80000,i,o+e);else if(n>17976931348623157e292)t(0,i,o+r),t((u<<31|0x7ff00000)>>>0,i,o+e);else if(n<22250738585072014e-324)t((s=n/5e-324)>>>0,i,o+r),t((u<<31|s/0x100000000)>>>0,i,o+e);else{var f=Math.floor(Math.log(n)/Math.LN2);1024===f&&(f=1023),t(0x10000000000000*(s=n*Math.pow(2,-f))>>>0,i,o+r),t((u<<31|f+1023<<20|1048576*s&1048575)>>>0,i,o+e)}}function s(t,r,e,n,i){var o=t(n,i+r),s=t(n,i+e),u=(s>>31)*2+1,f=s>>>20&2047,h=0x100000000*(1048575&s)+o;return 2047===f?h?NaN:1/0*u:0===f?5e-324*u*h:u*Math.pow(2,f-1075)*(h+0x10000000000000)}t.writeDoubleLE=r.bind(null,e,0,4),t.writeDoubleBE=r.bind(null,n,4,0),t.readDoubleLE=s.bind(null,i,0,4),t.readDoubleBE=s.bind(null,o,4,0)}(),t}function e(t,r,e){r[e]=255&t,r[e+1]=t>>>8&255,r[e+2]=t>>>16&255,r[e+3]=t>>>24}function n(t,r,e){r[e]=t>>>24,r[e+1]=t>>>16&255,r[e+2]=t>>>8&255,r[e+3]=255&t}function i(t,r){return(t[r]|t[r+1]<<8|t[r+2]<<16|t[r+3]<<24)>>>0}function o(t,r){return(t[r]<<24|t[r+1]<<16|t[r+2]<<8|t[r+3])>>>0}t.exports=r(r)},4153:function(module){module.exports=inquire;function inquire(moduleName){try{var mod=eval("quire".replace(/^/,"re"))(moduleName);if(mod&&(mod.length||Object.keys(mod).length))return mod}catch(e){}return null}},9390:function(t){t.exports=r;function r(t,r,e){var n=e||8192,i=n>>>1,o=null,s=n;return function(e){if(e<1||e>i)return t(e);s+e>n&&(o=t(n),s=0);var u=r.call(o,s,s+=e);return 7&s&&(s=(7|s)+1),u}}},1447:function(t,r){var e=r;e.length=function(t){for(var r=0,e=0,n=0;n191&&n<224?o[s++]=(31&n)<<6|63&t[r++]:n>239&&n<365?(n=((7&n)<<18|(63&t[r++])<<12|(63&t[r++])<<6|63&t[r++])-65536,o[s++]=55296+(n>>10),o[s++]=56320+(1023&n)):o[s++]=(15&n)<<12|(63&t[r++])<<6|63&t[r++],s>8191&&((i||(i=[])).push(String.fromCharCode.apply(String,o)),s=0);return i?(s&&i.push(String.fromCharCode.apply(String,o.slice(0,s))),i.join("")):String.fromCharCode.apply(String,o.slice(0,s))},e.write=function(t,r,e){for(var n,i,o=e,s=0;s>6|192:((64512&n)==55296&&(64512&(i=t.charCodeAt(s+1)))==56320?(n=65536+((1023&n)<<10)+(1023&i),++s,r[e++]=n>>18|240,r[e++]=n>>12&63|128):r[e++]=n>>12|224,r[e++]=n>>6&63|128),r[e++]=63&n|128);return e-o}},6946:function(t,r,e){t.exports=e(4394)},4394:function(t,r,e){var n=r;function i(){n.util._configure(),n.Writer._configure(n.BufferWriter),n.Reader._configure(n.BufferReader)}n.build="minimal",n.Writer=e(3449),n.BufferWriter=e(818),n.Reader=e(6237),n.BufferReader=e(3158),n.util=e(3610),n.rpc=e(5047),n.roots=e(4529),n.configure=i,i()},6237:function(t,r,e){t.exports=f;var n,i=e(3610),o=i.LongBits,s=i.utf8;function u(t,r){return RangeError("index out of range: "+t.pos+" + "+(r||1)+" > "+t.len)}function f(t){this.buf=t,this.pos=0,this.len=t.length}var h="undefined"!=typeof Uint8Array?function(t){if(t instanceof Uint8Array||Array.isArray(t))return new f(t);throw Error("illegal buffer")}:function(t){if(Array.isArray(t))return new f(t);throw Error("illegal buffer")},l=function(){return i.Buffer?function(t){return(f.create=function(t){return i.Buffer.isBuffer(t)?new n(t):h(t)})(t)}:h};function a(){var t=new o(0,0),r=0;if(this.len-this.pos>4){for(;r<4;++r)if(t.lo=(t.lo|(127&this.buf[this.pos])<<7*r)>>>0,this.buf[this.pos++]<128)return t;if(t.lo=(t.lo|(127&this.buf[this.pos])<<28)>>>0,t.hi=(t.hi|(127&this.buf[this.pos])>>4)>>>0,this.buf[this.pos++]<128)return t;r=0}else{for(;r<3;++r){if(this.pos>=this.len)throw u(this);if(t.lo=(t.lo|(127&this.buf[this.pos])<<7*r)>>>0,this.buf[this.pos++]<128)return t}return t.lo=(t.lo|(127&this.buf[this.pos++])<<7*r)>>>0,t}if(this.len-this.pos>4){for(;r<5;++r)if(t.hi=(t.hi|(127&this.buf[this.pos])<<7*r+3)>>>0,this.buf[this.pos++]<128)return t}else for(;r<5;++r){if(this.pos>=this.len)throw u(this);if(t.hi=(t.hi|(127&this.buf[this.pos])<<7*r+3)>>>0,this.buf[this.pos++]<128)return t}throw Error("invalid varint encoding")}function c(t,r){return(t[r-4]|t[r-3]<<8|t[r-2]<<16|t[r-1]<<24)>>>0}function p(){if(this.pos+8>this.len)throw u(this,8);return new o(c(this.buf,this.pos+=4),c(this.buf,this.pos+=4))}f.create=l(),f.prototype._slice=i.Array.prototype.subarray||i.Array.prototype.slice,f.prototype.uint32=function(){var t=0xffffffff;return function(){if(t=(127&this.buf[this.pos])>>>0,this.buf[this.pos++]<128||(t=(t|(127&this.buf[this.pos])<<7)>>>0,this.buf[this.pos++]<128)||(t=(t|(127&this.buf[this.pos])<<14)>>>0,this.buf[this.pos++]<128)||(t=(t|(127&this.buf[this.pos])<<21)>>>0,this.buf[this.pos++]<128)||(t=(t|(15&this.buf[this.pos])<<28)>>>0,this.buf[this.pos++]<128))return t;if((this.pos+=5)>this.len)throw this.pos=this.len,u(this,10);return t}}(),f.prototype.int32=function(){return 0|this.uint32()},f.prototype.sint32=function(){var t=this.uint32();return t>>>1^-(1&t)},f.prototype.bool=function(){return 0!==this.uint32()},f.prototype.fixed32=function(){if(this.pos+4>this.len)throw u(this,4);return c(this.buf,this.pos+=4)},f.prototype.sfixed32=function(){if(this.pos+4>this.len)throw u(this,4);return 0|c(this.buf,this.pos+=4)},f.prototype.float=function(){if(this.pos+4>this.len)throw u(this,4);var t=i.float.readFloatLE(this.buf,this.pos);return this.pos+=4,t},f.prototype.double=function(){if(this.pos+8>this.len)throw u(this,4);var t=i.float.readDoubleLE(this.buf,this.pos);return this.pos+=8,t},f.prototype.bytes=function(){var t=this.uint32(),r=this.pos,e=this.pos+t;if(e>this.len)throw u(this,t);if(this.pos+=t,Array.isArray(this.buf))return this.buf.slice(r,e);if(r===e){var n=i.Buffer;return n?n.alloc(0):new this.buf.constructor(0)}return this._slice.call(this.buf,r,e)},f.prototype.string=function(){var t=this.bytes();return s.read(t,0,t.length)},f.prototype.skip=function(t){if("number"==typeof t){if(this.pos+t>this.len)throw u(this,t);this.pos+=t}else do if(this.pos>=this.len)throw u(this);while(128&this.buf[this.pos++]);return this},f.prototype.skipType=function(t){switch(t){case 0:this.skip();break;case 1:this.skip(8);break;case 2:this.skip(this.uint32());break;case 3:for(;4!=(t=7&this.uint32());)this.skipType(t);break;case 5:this.skip(4);break;default:throw Error("invalid wire type "+t+" at offset "+this.pos)}return this},f._configure=function(t){n=t,f.create=l(),n._configure();var r=i.Long?"toLong":"toNumber";i.merge(f.prototype,{int64:function(){return a.call(this)[r](!1)},uint64:function(){return a.call(this)[r](!0)},sint64:function(){return a.call(this).zzDecode()[r](!1)},fixed64:function(){return p.call(this)[r](!0)},sfixed64:function(){return p.call(this)[r](!1)}})}},3158:function(t,r,e){t.exports=o;var n=e(6237);(o.prototype=Object.create(n.prototype)).constructor=o;var i=e(3610);function o(t){n.call(this,t)}o._configure=function(){i.Buffer&&(o.prototype._slice=i.Buffer.prototype.slice)},o.prototype.string=function(){var t=this.uint32();return this.buf.utf8Slice?this.buf.utf8Slice(this.pos,this.pos=Math.min(this.pos+t,this.len)):this.buf.toString("utf-8",this.pos,this.pos=Math.min(this.pos+t,this.len))},o._configure()},4529:function(t){t.exports={}},5047:function(t,r,e){r.Service=e(7595)},7595:function(t,r,e){t.exports=i;var n=e(3610);function i(t,r,e){if("function"!=typeof t)throw TypeError("rpcImpl must be a function");n.EventEmitter.call(this),this.rpcImpl=t,this.requestDelimited=!!r,this.responseDelimited=!!e}(i.prototype=Object.create(n.EventEmitter.prototype)).constructor=i,i.prototype.rpcCall=function t(r,e,i,o,s){if(!o)throw TypeError("request must be specified");var u=this;if(!s)return n.asPromise(t,u,r,e,i,o);if(!u.rpcImpl)return void setTimeout(function(){s(Error("already ended"))},0);try{return u.rpcImpl(r,e[u.requestDelimited?"encodeDelimited":"encode"](o).finish(),function(t,e){if(t)return u.emit("error",t,r),s(t);if(null===e)return void u.end(!0);if(!(e instanceof i))try{e=i[u.responseDelimited?"decodeDelimited":"decode"](e)}catch(t){return u.emit("error",t,r),s(t)}return u.emit("data",e,r),s(null,e)})}catch(t){u.emit("error",t,r),setTimeout(function(){s(t)},0);return}},i.prototype.end=function(t){return this.rpcImpl&&(t||this.rpcImpl(null,null,null),this.rpcImpl=null,this.emit("end").off()),this}},2239:function(t,r,e){t.exports=i;var n=e(3610);function i(t,r){this.lo=t>>>0,this.hi=r>>>0}var o=i.zero=new i(0,0);o.toNumber=function(){return 0},o.zzEncode=o.zzDecode=function(){return this},o.length=function(){return 1};var s=i.zeroHash="\0\0\0\0\0\0\0\0";i.fromNumber=function(t){if(0===t)return o;var r=t<0;r&&(t=-t);var e=t>>>0,n=(t-e)/0x100000000>>>0;return r&&(n=~n>>>0,e=~e>>>0,++e>0xffffffff&&(e=0,++n>0xffffffff&&(n=0))),new i(e,n)},i.from=function(t){if("number"==typeof t)return i.fromNumber(t);if(n.isString(t))if(!n.Long)return i.fromNumber(parseInt(t,10));else t=n.Long.fromString(t);return t.low||t.high?new i(t.low>>>0,t.high>>>0):o},i.prototype.toNumber=function(t){if(!t&&this.hi>>>31){var r=~this.lo+1>>>0,e=~this.hi>>>0;return r||(e=e+1>>>0),-(r+0x100000000*e)}return this.lo+0x100000000*this.hi},i.prototype.toLong=function(t){return n.Long?new n.Long(0|this.lo,0|this.hi,!!t):{low:0|this.lo,high:0|this.hi,unsigned:!!t}};var u=String.prototype.charCodeAt;i.fromHash=function(t){return t===s?o:new i((u.call(t,0)|u.call(t,1)<<8|u.call(t,2)<<16|u.call(t,3)<<24)>>>0,(u.call(t,4)|u.call(t,5)<<8|u.call(t,6)<<16|u.call(t,7)<<24)>>>0)},i.prototype.toHash=function(){return String.fromCharCode(255&this.lo,this.lo>>>8&255,this.lo>>>16&255,this.lo>>>24,255&this.hi,this.hi>>>8&255,this.hi>>>16&255,this.hi>>>24)},i.prototype.zzEncode=function(){var t=this.hi>>31;return this.hi=((this.hi<<1|this.lo>>>31)^t)>>>0,this.lo=(this.lo<<1^t)>>>0,this},i.prototype.zzDecode=function(){var t=-(1&this.lo);return this.lo=((this.lo>>>1|this.hi<<31)^t)>>>0,this.hi=(this.hi>>>1^t)>>>0,this},i.prototype.length=function(){var t=this.lo,r=(this.lo>>>28|this.hi<<4)>>>0,e=this.hi>>>24;return 0===e?0===r?t<16384?t<128?1:2:t<2097152?3:4:r<16384?r<128?5:6:r<2097152?7:8:e<128?9:10}},3610:function(t,r,e){var n=r;function i(t,r,e){for(var n=Object.keys(r),i=0;i0)},n.Buffer=function(){try{var t=n.inquire("buffer").Buffer;return t.prototype.utf8Write?t:null}catch(t){return null}}(),n._Buffer_from=null,n._Buffer_allocUnsafe=null,n.newBuffer=function(t){return"number"==typeof t?n.Buffer?n._Buffer_allocUnsafe(t):new n.Array(t):n.Buffer?n._Buffer_from(t):"undefined"==typeof Uint8Array?t:new Uint8Array(t)},n.Array="undefined"!=typeof Uint8Array?Uint8Array:Array,n.Long=n.global.dcodeIO&&n.global.dcodeIO.Long||n.global.Long||n.inquire("long"),n.key2Re=/^true|false|0|1$/,n.key32Re=/^-?(?:0|[1-9][0-9]*)$/,n.key64Re=/^(?:[\\x00-\\xff]{8}|-?(?:0|[1-9][0-9]*))$/,n.longToHash=function(t){return t?n.LongBits.from(t).toHash():n.LongBits.zeroHash},n.longFromHash=function(t,r){var e=n.LongBits.fromHash(t);return n.Long?n.Long.fromBits(e.lo,e.hi,r):e.toNumber(!!r)},n.merge=i,n.lcFirst=function(t){return t.charAt(0).toLowerCase()+t.substring(1)},n.newError=o,n.ProtocolError=o("ProtocolError"),n.oneOfGetter=function(t){for(var r={},e=0;e-1;--e)if(1===r[t[e]]&&void 0!==this[t[e]]&&null!==this[t[e]])return t[e]}},n.oneOfSetter=function(t){return function(r){for(var e=0;e127;)r[e++]=127&t|128,t>>>=7;r[e]=t}function d(t,r){this.len=t,this.next=void 0,this.val=r}function b(t,r,e){for(;t.hi;)r[e++]=127&t.lo|128,t.lo=(t.lo>>>7|t.hi<<25)>>>0,t.hi>>>=7;for(;t.lo>127;)r[e++]=127&t.lo|128,t.lo=t.lo>>>7;r[e++]=t.lo}function g(t,r,e){r[e]=255&t,r[e+1]=t>>>8&255,r[e+2]=t>>>16&255,r[e+3]=t>>>24}a.create=c(),a.alloc=function(t){return new i.Array(t)},i.Array!==Array&&(a.alloc=i.pool(a.alloc,i.Array.prototype.subarray)),a.prototype._push=function(t,r,e){return this.tail=this.tail.next=new f(t,r,e),this.len+=r,this},d.prototype=Object.create(f.prototype),d.prototype.fn=y,a.prototype.uint32=function(t){return this.len+=(this.tail=this.tail.next=new d((t>>>=0)<128?1:t<16384?2:t<2097152?3:t<0x10000000?4:5,t)).len,this},a.prototype.int32=function(t){return t<0?this._push(b,10,o.fromNumber(t)):this.uint32(t)},a.prototype.sint32=function(t){return this.uint32((t<<1^t>>31)>>>0)},a.prototype.uint64=function(t){var r=o.from(t);return this._push(b,r.length(),r)},a.prototype.int64=a.prototype.uint64,a.prototype.sint64=function(t){var r=o.from(t).zzEncode();return this._push(b,r.length(),r)},a.prototype.bool=function(t){return this._push(p,1,+!!t)},a.prototype.fixed32=function(t){return this._push(g,4,t>>>0)},a.prototype.sfixed32=a.prototype.fixed32,a.prototype.fixed64=function(t){var r=o.from(t);return this._push(g,4,r.lo)._push(g,4,r.hi)},a.prototype.sfixed64=a.prototype.fixed64,a.prototype.float=function(t){return this._push(i.float.writeFloatLE,4,t)},a.prototype.double=function(t){return this._push(i.float.writeDoubleLE,8,t)};var v=i.Array.prototype.set?function(t,r,e){r.set(t,e)}:function(t,r,e){for(var n=0;n>>0;if(!r)return this._push(p,1,0);if(i.isString(t)){var e=a.alloc(r=s.length(t));s.decode(t,e,0),t=e}return this.uint32(r)._push(v,r,t)},a.prototype.string=function(t){var r=u.length(t);return r?this.uint32(r)._push(u.write,r,t):this._push(p,1,0)},a.prototype.fork=function(){return this.states=new l(this),this.head=this.tail=new f(h,0,0),this.len=0,this},a.prototype.reset=function(){return this.states?(this.head=this.states.head,this.tail=this.states.tail,this.len=this.states.len,this.states=this.states.next):(this.head=this.tail=new f(h,0,0),this.len=0),this},a.prototype.ldelim=function(){var t=this.head,r=this.tail,e=this.len;return this.reset().uint32(e),e&&(this.tail.next=t.next,this.tail=r,this.len+=e),this},a.prototype.finish=function(){for(var t=this.head.next,r=this.constructor.alloc(this.len),e=0;t;)t.fn(t.val,r,e),e+=t.len,t=t.next;return r},a._configure=function(t){n=t,a.create=c(),n._configure()}},818:function(t,r,e){t.exports=o;var n=e(3449);(o.prototype=Object.create(n.prototype)).constructor=o;var i=e(3610);function o(){n.call(this)}function s(t,r,e){t.length<40?i.utf8.write(t,r,e):r.utf8Write?r.utf8Write(t,e):r.write(t,e)}o._configure=function(){o.alloc=i._Buffer_allocUnsafe,o.writeBytesBuffer=i.Buffer&&i.Buffer.prototype instanceof Uint8Array&&"set"===i.Buffer.prototype.set.name?function(t,r,e){r.set(t,e)}:function(t,r,e){if(t.copy)t.copy(r,e,0,t.length);else for(var n=0;n>>0;return this.uint32(r),r&&this._push(o.writeBytesBuffer,r,t),this},o.prototype.string=function(t){var r=i.Buffer.byteLength(t);return this.uint32(r),r&&this._push(s,r,t),this},o._configure()}},__webpack_module_cache__={};function __webpack_require__(t){var r=__webpack_module_cache__[t];if(void 0!==r)return r.exports;var e=__webpack_module_cache__[t]={exports:{}};return __webpack_modules__[t].call(e.exports,e,e.exports,__webpack_require__),e.exports}var __webpack_exports__=__webpack_require__(6946);module.exports=__webpack_exports__})(); \ No newline at end of file diff --git a/vendor/rspack.config.js b/vendor/rspack.config.js index 84ddadac3c3..4221b3afc9c 100644 --- a/vendor/rspack.config.js +++ b/vendor/rspack.config.js @@ -4,6 +4,7 @@ const { join } = require('path') const pkg = require('./package.json') const names = Object.keys(pkg.dependencies).concat([ + 'protobufjs/minimal', 'retry/lib/retry_operation', 'source-map/lib/util' ]) From 45384ccf6e587c12791f9ce89d69b076275f096b Mon Sep 17 00:00:00 2001 From: rochdev Date: Fri, 21 Nov 2025 09:09:24 -0500 Subject: [PATCH 13/95] fix ddsketch --- package.json | 1 - packages/node_modules/@datadog/sketches-js.js | 1 + packages/node_modules/protobufjs.js | 2 +- packages/node_modules/protobufjs/minimal.js | 2 +- vendor/bun.lock | 3 +++ vendor/package.json | 1 + yarn.lock | 5 ----- 7 files changed, 7 insertions(+), 8 deletions(-) create mode 100644 packages/node_modules/@datadog/sketches-js.js diff --git a/package.json b/package.json index ea1b563fe5c..42971b456b6 100644 --- a/package.json +++ b/package.json @@ -130,7 +130,6 @@ "@datadog/native-metrics": "3.1.1", "@datadog/openfeature-node-server": "^0.2.0", "@datadog/pprof": "5.12.0", - "@datadog/sketches-js": "2.1.1", "@datadog/wasm-js-rewriter": "5.0.1", "dc-polyfill": "^0.1.10", "escape-string-regexp": "^5.0.0", diff --git a/packages/node_modules/@datadog/sketches-js.js b/packages/node_modules/@datadog/sketches-js.js new file mode 100644 index 00000000000..1cbdcee5cd3 --- /dev/null +++ b/packages/node_modules/@datadog/sketches-js.js @@ -0,0 +1 @@ +(()=>{"use strict";var __webpack_modules__={2136:function(t,e,n){var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0}),e.LogCollapsingHighestDenseDDSketch=e.LogCollapsingLowestDenseDDSketch=e.DDSketch=void 0;var o=n(1412),r=n(9667),s=.01,u=2048,a=function(){function t(t){var e=t.mapping,n=t.store,i=t.negativeStore,o=t.zeroCount;this.mapping=e,this.store=n,this.negativeStore=i,this.zeroCount=o,this.count=this.negativeStore.count+this.zeroCount+this.store.count,this.min=1/0,this.max=-1/0,this.sum=0}return t.prototype.accept=function(t,e){if(void 0===e&&(e=1),e<=0)throw Error("Weight must be a positive number");if(t>this.mapping.minPossible){var n=this.mapping.key(t);this.store.add(n,e)}else if(t<-this.mapping.minPossible){var n=this.mapping.key(-t);this.negativeStore.add(n,e)}else this.zeroCount+=e;this.count+=e,this.sum+=t*e,tthis.max&&(this.max=t)},t.prototype.getValueAtQuantile=function(t){if(t<0||t>1||0===this.count)return NaN;var e=t*(this.count-1),n=0;if(ethis.max&&(this.max=t.max)}},t.prototype.mergeable=function(t){return this.mapping.gamma===t.mapping.gamma},t.prototype._copy=function(t){this.store.copy(t.store),this.negativeStore.copy(t.negativeStore),this.zeroCount=t.zeroCount,this.min=t.min,this.max=t.max,this.count=t.count,this.sum=t.sum},t.prototype.toProto=function(){var t=n(4072).DDSketch,e=t.create({mapping:this.mapping.toProto(),positiveValues:this.store.toProto(),negativeValues:this.negativeStore.toProto(),zeroCount:this.zeroCount});return t.encode(e).finish()},t.fromProto=function(e){var i=n(4072).DDSketch.decode(e);return new t({mapping:r.KeyMapping.fromProto(i.mapping),store:o.DenseStore.fromProto(i.positiveValues),negativeStore:o.DenseStore.fromProto(i.negativeValues),zeroCount:i.zeroCount})},t}(),f={relativeAccuracy:s};e.DDSketch=function(t){function e(e){var n=(void 0===e?f:e).relativeAccuracy,i=void 0===n?s:n,u=new r.LogarithmicMapping(i),a=new o.DenseStore,l=new o.DenseStore;return t.call(this,{mapping:u,store:a,negativeStore:l,zeroCount:0})||this}return i(e,t),e}(a),e.LogCollapsingLowestDenseDDSketch=function(t){function e(e){var n=void 0===e?f:e,i=n.relativeAccuracy,a=void 0===i?s:i,l=n.binLimit,c=void 0===l?u:l,p=new r.LogarithmicMapping(a),h=new o.CollapsingLowestDenseStore(c),y=new o.CollapsingLowestDenseStore(c);return t.call(this,{mapping:p,store:h,negativeStore:y,zeroCount:0})||this}return i(e,t),e}(a),e.LogCollapsingHighestDenseDDSketch=function(t){function e(e){var n=void 0===e?f:e,i=n.relativeAccuracy,a=void 0===i?s:i,l=n.binLimit,c=void 0===l?u:l,p=new r.LogarithmicMapping(a),h=new o.CollapsingHighestDenseStore(c),y=new o.CollapsingHighestDenseStore(c);return t.call(this,{mapping:p,store:h,negativeStore:y,zeroCount:0})||this}return i(e,t),e}(a)},8426:function(t,e,n){var i=this&&this.__createBinding||(Object.create?function(t,e,n,i){void 0===i&&(i=n);var o=Object.getOwnPropertyDescriptor(e,n);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,i,o)}:function(t,e,n,i){void 0===i&&(i=n),t[i]=e[n]}),o=this&&this.__exportStar||function(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||i(e,t,n)};Object.defineProperty(e,"__esModule",{value:!0}),o(n(2136),e)},5718:function(t,e,n){var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0}),e.CubicallyInterpolatedMapping=void 0;var o=n(8952),r=n(1374);e.CubicallyInterpolatedMapping=function(t){function e(e,n){void 0===n&&(n=0);var i=t.call(this,e,n)||this;return i.A=6/35,i.B=-.6,i.C=10/7,i._multiplier/=i.C,i}return i(e,t),e.prototype._cubicLog2Approx=function(t){var e=(0,r.frexp)(t),n=e[0],i=e[1],o=2*n-1;return((this.A*o+this.B)*o+this.C)*o+(i-1)},e.prototype._cubicExp2Approx=function(t){var e=Math.floor(t),n=this.B*this.B-3*this.A*this.C,i=2*this.B*this.B*this.B-9*this.A*this.B*this.C-27*this.A*this.A*(t-e),o=Math.cbrt((i-Math.sqrt(i*i-4*n*n*n))/2),s=(-(this.B+o+n/o)/(3*this.A)+1)/2;return(0,r.ldexp)(s,e+1)},e.prototype._logGamma=function(t){return this._cubicLog2Approx(t)*this._multiplier},e.prototype._powGamma=function(t){return this._cubicExp2Approx(t/this._multiplier)},e.prototype._protoInterpolation=function(){return n(4072).IndexMapping.Interpolation.CUBIC},e}(o.KeyMapping)},8952:function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.KeyMapping=void 0;var i=n(9667),o=11125369292536007e-324,r=Number.MAX_VALUE;e.KeyMapping=function(){function t(t,e){if(void 0===e&&(e=0),t<=0||t>=1)throw Error("Relative accuracy must be between 0 and 1 when initializing a KeyMapping");this.relativeAccuracy=t,this._offset=e;var n=2*t/(1-t);this.gamma=1+n,this._multiplier=1/Math.log1p(n),this.minPossible=o*this.gamma,this.maxPossible=r/this.gamma}return t.fromGammaOffset=function(t,e){return new this((t-1)/(t+1),e)},t.prototype.key=function(t){return Math.ceil(this._logGamma(t))+this._offset},t.prototype.value=function(t){return this._powGamma(t-this._offset)*(2/(1+this.gamma))},t.prototype.toProto=function(){return n(4072).IndexMapping.create({gamma:this.gamma,indexOffset:this._offset,interpolation:this._protoInterpolation()})},t.fromProto=function(t){if(!t||null==t.gamma||null==t.indexOffset)throw Error("Failed to decode mapping from protobuf");var e=n(4072).IndexMapping.Interpolation,o=t.interpolation,r=t.gamma,s=t.indexOffset;switch(o){case e.NONE:return i.LogarithmicMapping.fromGammaOffset(r,s);case e.LINEAR:return i.LinearlyInterpolatedMapping.fromGammaOffset(r,s);case e.CUBIC:return i.CubicallyInterpolatedMapping.fromGammaOffset(r,s);default:throw Error("Unrecognized mapping when decoding from protobuf")}},t.prototype._logGamma=function(t){return Math.log2(t)*this._multiplier},t.prototype._powGamma=function(t){return Math.pow(2,t/this._multiplier)},t.prototype._protoInterpolation=function(){return n(4072).IndexMapping.Interpolation.NONE},t}()},2040:function(t,e,n){var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0}),e.LinearlyInterpolatedMapping=void 0;var o=n(8952),r=n(1374);e.LinearlyInterpolatedMapping=function(t){function e(e,n){return void 0===n&&(n=0),t.call(this,e,n)||this}return i(e,t),e.prototype._log2Approx=function(t){var e=(0,r.frexp)(t);return 2*e[0]-1+(e[1]-1)},e.prototype._exp2Approx=function(t){var e=Math.floor(t)+1,n=(t-e+2)/2;return(0,r.ldexp)(n,e)},e.prototype._logGamma=function(t){return Math.log2(t)*this._multiplier},e.prototype._powGamma=function(t){return Math.pow(2,t/this._multiplier)},e.prototype._protoInterpolation=function(){return n(4072).IndexMapping.Interpolation.LINEAR},e}(o.KeyMapping)},9784:function(t,e,n){var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0}),e.LogarithmicMapping=void 0,e.LogarithmicMapping=function(t){function e(e,n){void 0===n&&(n=0);var i=t.call(this,e,n)||this;return i._multiplier*=Math.log(2),i}return i(e,t),e.prototype._logGamma=function(t){return Math.log2(t)*this._multiplier},e.prototype._powGamma=function(t){return Math.pow(2,t/this._multiplier)},e.prototype._protoInterpolation=function(){return n(4072).IndexMapping.Interpolation.NONE},e}(n(8952).KeyMapping)},9667:function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.CubicallyInterpolatedMapping=e.LinearlyInterpolatedMapping=e.LogarithmicMapping=e.KeyMapping=void 0;var i=n(8952);Object.defineProperty(e,"KeyMapping",{enumerable:!0,get:function(){return i.KeyMapping}});var o=n(9784);Object.defineProperty(e,"LogarithmicMapping",{enumerable:!0,get:function(){return o.LogarithmicMapping}});var r=n(2040);Object.defineProperty(e,"LinearlyInterpolatedMapping",{enumerable:!0,get:function(){return r.LinearlyInterpolatedMapping}});var s=n(5718);Object.defineProperty(e,"CubicallyInterpolatedMapping",{enumerable:!0,get:function(){return s.CubicallyInterpolatedMapping}})},1374:function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.ldexp=e.frexp=void 0,e.frexp=function(t){if(0===t||!Number.isFinite(t))return[t,0];for(var e=Math.abs(t),n=Math.max(-1023,Math.floor(Math.log2(e))+1),i=e*Math.pow(2,-n);i<.5;)i*=2,n--;for(;i>=1;)i*=.5,n++;return t<0&&(i=-i),[i,n]},e.ldexp=function(t,e){for(var n=Math.min(3,Math.ceil(Math.abs(e)/1023)),i=t,o=0;o>>3){case 1:i.mapping=u.IndexMapping.decode(t,t.uint32());break;case 2:i.positiveValues=u.Store.decode(t,t.uint32());break;case 3:i.negativeValues=u.Store.decode(t,t.uint32());break;case 4:i.zeroCount=t.double();break;default:t.skipType(7&r)}}return i},t.decodeDelimited=function(t){return t instanceof o||(t=new o(t)),this.decode(t,t.uint32())},t.verify=function(t){if("object"!=typeof t||null===t)return"object expected";if(null!=t.mapping&&t.hasOwnProperty("mapping")){var e=u.IndexMapping.verify(t.mapping);if(e)return"mapping."+e}if(null!=t.positiveValues&&t.hasOwnProperty("positiveValues")){var e=u.Store.verify(t.positiveValues);if(e)return"positiveValues."+e}if(null!=t.negativeValues&&t.hasOwnProperty("negativeValues")){var e=u.Store.verify(t.negativeValues);if(e)return"negativeValues."+e}return null!=t.zeroCount&&t.hasOwnProperty("zeroCount")&&"number"!=typeof t.zeroCount?"zeroCount: number expected":null},t.fromObject=function(t){if(t instanceof u.DDSketch)return t;var e=new u.DDSketch;if(null!=t.mapping){if("object"!=typeof t.mapping)throw TypeError(".DDSketch.mapping: object expected");e.mapping=u.IndexMapping.fromObject(t.mapping)}if(null!=t.positiveValues){if("object"!=typeof t.positiveValues)throw TypeError(".DDSketch.positiveValues: object expected");e.positiveValues=u.Store.fromObject(t.positiveValues)}if(null!=t.negativeValues){if("object"!=typeof t.negativeValues)throw TypeError(".DDSketch.negativeValues: object expected");e.negativeValues=u.Store.fromObject(t.negativeValues)}return null!=t.zeroCount&&(e.zeroCount=Number(t.zeroCount)),e},t.toObject=function(t,e){e||(e={});var n={};return e.defaults&&(n.mapping=null,n.positiveValues=null,n.negativeValues=null,n.zeroCount=0),null!=t.mapping&&t.hasOwnProperty("mapping")&&(n.mapping=u.IndexMapping.toObject(t.mapping,e)),null!=t.positiveValues&&t.hasOwnProperty("positiveValues")&&(n.positiveValues=u.Store.toObject(t.positiveValues,e)),null!=t.negativeValues&&t.hasOwnProperty("negativeValues")&&(n.negativeValues=u.Store.toObject(t.negativeValues,e)),null!=t.zeroCount&&t.hasOwnProperty("zeroCount")&&(n.zeroCount=e.json&&!isFinite(t.zeroCount)?String(t.zeroCount):t.zeroCount),n},t.prototype.toJSON=function(){return this.constructor.toObject(this,i.util.toJSONOptions)},t}(),u.IndexMapping=function(){function t(t){if(t)for(var e=Object.keys(t),n=0;n>>3){case 1:i.gamma=t.double();break;case 2:i.indexOffset=t.double();break;case 3:i.interpolation=t.int32();break;default:t.skipType(7&r)}}return i},t.decodeDelimited=function(t){return t instanceof o||(t=new o(t)),this.decode(t,t.uint32())},t.verify=function(t){if("object"!=typeof t||null===t)return"object expected";if(null!=t.gamma&&t.hasOwnProperty("gamma")&&"number"!=typeof t.gamma)return"gamma: number expected";if(null!=t.indexOffset&&t.hasOwnProperty("indexOffset")&&"number"!=typeof t.indexOffset)return"indexOffset: number expected";if(null!=t.interpolation&&t.hasOwnProperty("interpolation"))switch(t.interpolation){default:return"interpolation: enum value expected";case 0:case 1:case 2:case 3:}return null},t.fromObject=function(t){if(t instanceof u.IndexMapping)return t;var e=new u.IndexMapping;switch(null!=t.gamma&&(e.gamma=Number(t.gamma)),null!=t.indexOffset&&(e.indexOffset=Number(t.indexOffset)),t.interpolation){case"NONE":case 0:e.interpolation=0;break;case"LINEAR":case 1:e.interpolation=1;break;case"QUADRATIC":case 2:e.interpolation=2;break;case"CUBIC":case 3:e.interpolation=3}return e},t.toObject=function(t,e){e||(e={});var n={};return e.defaults&&(n.gamma=0,n.indexOffset=0,n.interpolation=e.enums===String?"NONE":0),null!=t.gamma&&t.hasOwnProperty("gamma")&&(n.gamma=e.json&&!isFinite(t.gamma)?String(t.gamma):t.gamma),null!=t.indexOffset&&t.hasOwnProperty("indexOffset")&&(n.indexOffset=e.json&&!isFinite(t.indexOffset)?String(t.indexOffset):t.indexOffset),null!=t.interpolation&&t.hasOwnProperty("interpolation")&&(n.interpolation=e.enums===String?u.IndexMapping.Interpolation[t.interpolation]:t.interpolation),n},t.prototype.toJSON=function(){return this.constructor.toObject(this,i.util.toJSONOptions)},t.Interpolation=function(){var t={},e=Object.create(t);return e[t[0]="NONE"]=0,e[t[1]="LINEAR"]=1,e[t[2]="QUADRATIC"]=2,e[t[3]="CUBIC"]=3,e}(),t}(),u.Store=function(){function t(t){if(this.binCounts={},this.contiguousBinCounts=[],t)for(var e=Object.keys(t),n=0;n>>3){case 1:a.binCounts===s.emptyObject&&(a.binCounts={});var l=t.uint32()+t.pos;for(n=0,i=0;t.pos>>3){case 1:n=t.sint32();break;case 2:i=t.double();break;default:t.skipType(7&c)}}a.binCounts[n]=i;break;case 2:if(a.contiguousBinCounts&&a.contiguousBinCounts.length||(a.contiguousBinCounts=[]),(7&f)==2)for(var l=t.uint32()+t.pos;t.posthis.maxKey)&&this._extendRange(t.minKey,t.maxKey);var e=t.maxKey-t.offset+1,n=Math.max(this.maxKey+1,t.minKey)-t.offset;if(e>n){var i=(0,r.sumOfRange)(t.bins,n,e);this.bins[this.length()-1]+=i}else n=e;for(var o=t.minKey;othis.length())if((e=t+this.length()+1)<=this.minKey)this.offset=t,this.maxKey=e,this.bins.fill(0),this.bins[this.length()-1]=this.count;else{var n=this.offset-t;if(n>0){var i=e-this.offset+1,o=this.maxKey-this.offset+1,s=(0,r.sumOfRange)(this.bins,i,o);this.bins.fill(0,i,o),this.bins[i-1]+=s,this.maxKey=e,this._shiftBins(n)}else this.maxKey=e,this._shiftBins(n);this.minKey=t,this.isCollapsed=!0}else this._centerBins(t,e),this.minKey=t,this.maxKey=e},e.prototype._getIndex=function(t){if(tthis.maxKey&&this._extendRange(t);return t-this.offset},e}(o.DenseStore)},552:function(t,e,n){var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0}),e.CollapsingLowestDenseStore=void 0;var o=n(1598),r=n(4358);e.CollapsingLowestDenseStore=function(t){function e(e,n){var i=t.call(this,n)||this;return i.binLimit=e,i.isCollapsed=!1,i}return i(e,t),e.prototype.merge=function(t){if(0!==t.count){if(0===this.count)return void this.copy(t);(t.minKeythis.maxKey)&&this._extendRange(t.minKey,t.maxKey);var e=t.minKey-t.offset,n=Math.min(this.minKey,t.maxKey+1)-t.offset;if(n>e){var i=(0,r.sumOfRange)(t.bins,e,n);this.bins[0]+=i}else n=e;for(var o=n+t.offset;othis.length()){if((t=e-this.length()+1)>=this.maxKey)this.offset=t,this.minKey=t,this.bins.fill(0),this.bins[0]=this.count;else{var n=this.offset-t;if(n<0){var i=this.minKey-this.offset,o=t-this.offset,s=(0,r.sumOfRange)(this.bins,i,o);this.bins.fill(0,i,o),this.bins[o]+=s,this.minKey=t,this._shiftBins(n)}else this.minKey=t,this._shiftBins(n)}this.maxKey=e,this.isCollapsed=!0}else this._centerBins(t,e),this.minKey=t,this.maxKey=e},e.prototype._getIndex=function(t){if(tthis.maxKey&&this._extendRange(t);return t-this.offset},e}(o.DenseStore)},1598:function(t,e,n){var i=this&&this.__spreadArray||function(t,e,n){if(n||2==arguments.length)for(var i,o=0,r=e.length;ot||!e&&n>=t+1)return i+this.offset;return this.maxKey},t.prototype.merge=function(t){if(0!==t.count){if(0===this.count)return void this.copy(t);(t.minKeythis.maxKey)&&this._extendRange(t.minKey,t.maxKey);var e=t.minKey-t.offset,n=Math.min(this.minKey,t.maxKey+1)-t.offset;if(n>e){var i=(0,o.sumOfRange)(t.bins,e,n);this.bins[0]+=i}else n=e;for(var r=n+t.offset;r0?(this.bins=this.bins.slice(0,-t),(e=this.bins).unshift.apply(e,Array(t).fill(0))):(this.bins=this.bins.slice(Math.abs(t)),(n=this.bins).push.apply(n,Array(Math.abs(t)).fill(0))),this.offset-=t},t.prototype._centerBins=function(t,e){var n=t+Math.floor((e-t+1)/2);this._shiftBins(Math.floor(this.offset+this.length()/2)-n)},t.prototype._extendRange=function(t,e){e=e||t;var n,i=Math.min(t,e,this.minKey),o=Math.max(t,e,this.maxKey);if(0===this.length())this.bins=Array(this._getNewLength(i,o)).fill(0),this.offset=i,this._adjust(i,o);else if(i>=this.minKey&&othis.length()&&(n=this.bins).push.apply(n,Array(r-this.length()).fill(0)),this._adjust(i,o)}},t.prototype._getIndex=function(t){return tthis.maxKey&&this._extendRange(t),t-this.offset},t.prototype.toProto=function(){return n(4072).Store.create({contiguousBinCounts:this.bins,contiguousBinIndexOffset:this.offset})},t.fromProto=function(t){if(!t||null==t.contiguousBinCounts||null==t.contiguousBinIndexOffset)throw Error("Failed to decode store from protobuf");var e=new this,n=t.contiguousBinIndexOffset;e.offset=n;for(var i=0,o=t.contiguousBinCounts;i1&&"="===t.charAt(e);)++n;return Math.ceil(3*t.length)/4-n};for(var i=Array(64),o=Array(123),r=0;r<64;)o[i[r]=r<26?r+65:r<52?r+71:r<62?r-4:r-59|43]=r++;n.encode=function(t,e,n){for(var o,r=null,s=[],u=0,a=0;e>2],o=(3&f)<<4,a=1;break;case 1:s[u++]=i[o|f>>4],o=(15&f)<<2,a=2;break;case 2:s[u++]=i[o|f>>6],s[u++]=i[63&f],a=0}u>8191&&((r||(r=[])).push(String.fromCharCode.apply(String,s)),u=0)}return(a&&(s[u++]=i[o],s[u++]=61,1===a&&(s[u++]=61)),r)?(u&&r.push(String.fromCharCode.apply(String,s.slice(0,u))),r.join("")):String.fromCharCode.apply(String,s.slice(0,u))};var s="invalid encoding";n.decode=function(t,e,n){for(var i,r=n,u=0,a=0;a1)break;if(void 0===(f=o[f]))throw Error(s);switch(u){case 0:i=f,u=1;break;case 1:e[n++]=i<<2|(48&f)>>4,i=f,u=2;break;case 2:e[n++]=(15&i)<<4|(60&f)>>2,i=f,u=3;break;case 3:e[n++]=(3&i)<<6|f,u=0}}if(1===u)throw Error(s);return n-r},n.test=function(t){return/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(t)}},1977:function(t){function e(){this._listeners={}}t.exports=e,e.prototype.on=function(t,e,n){return(this._listeners[t]||(this._listeners[t]=[])).push({fn:e,ctx:n||this}),this},e.prototype.off=function(t,e){if(void 0===t)this._listeners={};else if(void 0===e)this._listeners[t]=[];else for(var n=this._listeners[t],i=0;i0?0:0x80000000,n,i);else if(isNaN(e))t(0x7fc00000,n,i);else if(e>34028234663852886e22)t((o<<31|0x7f800000)>>>0,n,i);else if(e<11754943508222875e-54)t((o<<31|Math.round(e/1401298464324817e-60))>>>0,n,i);else{var r=Math.floor(Math.log(e)/Math.LN2),s=8388607&Math.round(e*Math.pow(2,-r)*8388608);t((o<<31|r+127<<23|s)>>>0,n,i)}}function s(t,e,n){var i=t(e,n),o=(i>>31)*2+1,r=i>>>23&255,s=8388607&i;return 255===r?s?NaN:1/0*o:0===r?1401298464324817e-60*o*s:o*Math.pow(2,r-150)*(s+8388608)}t.writeFloatLE=e.bind(null,n),t.writeFloatBE=e.bind(null,i),t.readFloatLE=s.bind(null,o),t.readFloatBE=s.bind(null,r)}(),"undefined"!=typeof Float64Array?!function(){var e=new Float64Array([-0]),n=new Uint8Array(e.buffer),i=128===n[7];function o(t,i,o){e[0]=t,i[o]=n[0],i[o+1]=n[1],i[o+2]=n[2],i[o+3]=n[3],i[o+4]=n[4],i[o+5]=n[5],i[o+6]=n[6],i[o+7]=n[7]}function r(t,i,o){e[0]=t,i[o]=n[7],i[o+1]=n[6],i[o+2]=n[5],i[o+3]=n[4],i[o+4]=n[3],i[o+5]=n[2],i[o+6]=n[1],i[o+7]=n[0]}function s(t,i){return n[0]=t[i],n[1]=t[i+1],n[2]=t[i+2],n[3]=t[i+3],n[4]=t[i+4],n[5]=t[i+5],n[6]=t[i+6],n[7]=t[i+7],e[0]}function u(t,i){return n[7]=t[i],n[6]=t[i+1],n[5]=t[i+2],n[4]=t[i+3],n[3]=t[i+4],n[2]=t[i+5],n[1]=t[i+6],n[0]=t[i+7],e[0]}t.writeDoubleLE=i?o:r,t.writeDoubleBE=i?r:o,t.readDoubleLE=i?s:u,t.readDoubleBE=i?u:s}():!function(){function e(t,e,n,i,o,r){var s,u=+(i<0);if(u&&(i=-i),0===i)t(0,o,r+e),t(1/i>0?0:0x80000000,o,r+n);else if(isNaN(i))t(0,o,r+e),t(0x7ff80000,o,r+n);else if(i>17976931348623157e292)t(0,o,r+e),t((u<<31|0x7ff00000)>>>0,o,r+n);else if(i<22250738585072014e-324)t((s=i/5e-324)>>>0,o,r+e),t((u<<31|s/0x100000000)>>>0,o,r+n);else{var a=Math.floor(Math.log(i)/Math.LN2);1024===a&&(a=1023),t(0x10000000000000*(s=i*Math.pow(2,-a))>>>0,o,r+e),t((u<<31|a+1023<<20|1048576*s&1048575)>>>0,o,r+n)}}function s(t,e,n,i,o){var r=t(i,o+e),s=t(i,o+n),u=(s>>31)*2+1,a=s>>>20&2047,f=0x100000000*(1048575&s)+r;return 2047===a?f?NaN:1/0*u:0===a?5e-324*u*f:u*Math.pow(2,a-1075)*(f+0x10000000000000)}t.writeDoubleLE=e.bind(null,n,0,4),t.writeDoubleBE=e.bind(null,i,4,0),t.readDoubleLE=s.bind(null,o,0,4),t.readDoubleBE=s.bind(null,r,4,0)}(),t}function n(t,e,n){e[n]=255&t,e[n+1]=t>>>8&255,e[n+2]=t>>>16&255,e[n+3]=t>>>24}function i(t,e,n){e[n]=t>>>24,e[n+1]=t>>>16&255,e[n+2]=t>>>8&255,e[n+3]=255&t}function o(t,e){return(t[e]|t[e+1]<<8|t[e+2]<<16|t[e+3]<<24)>>>0}function r(t,e){return(t[e]<<24|t[e+1]<<16|t[e+2]<<8|t[e+3])>>>0}t.exports=e(e)},4153:function(module){module.exports=inquire;function inquire(moduleName){try{var mod=eval("quire".replace(/^/,"re"))(moduleName);if(mod&&(mod.length||Object.keys(mod).length))return mod}catch(e){}return null}},9390:function(t){t.exports=e;function e(t,e,n){var i=n||8192,o=i>>>1,r=null,s=i;return function(n){if(n<1||n>o)return t(n);s+n>i&&(r=t(i),s=0);var u=e.call(r,s,s+=n);return 7&s&&(s=(7|s)+1),u}}},1447:function(t,e){var n=e;n.length=function(t){for(var e=0,n=0,i=0;i191&&i<224?r[s++]=(31&i)<<6|63&t[e++]:i>239&&i<365?(i=((7&i)<<18|(63&t[e++])<<12|(63&t[e++])<<6|63&t[e++])-65536,r[s++]=55296+(i>>10),r[s++]=56320+(1023&i)):r[s++]=(15&i)<<12|(63&t[e++])<<6|63&t[e++],s>8191&&((o||(o=[])).push(String.fromCharCode.apply(String,r)),s=0);return o?(s&&o.push(String.fromCharCode.apply(String,r.slice(0,s))),o.join("")):String.fromCharCode.apply(String,r.slice(0,s))},n.write=function(t,e,n){for(var i,o,r=n,s=0;s>6|192:((64512&i)==55296&&(64512&(o=t.charCodeAt(s+1)))==56320?(i=65536+((1023&i)<<10)+(1023&o),++s,e[n++]=i>>18|240,e[n++]=i>>12&63|128):e[n++]=i>>12|224,e[n++]=i>>6&63|128),e[n++]=63&i|128);return n-r}},6946:function(t,e,n){t.exports=n(4394)},4394:function(t,e,n){var i=e;function o(){i.util._configure(),i.Writer._configure(i.BufferWriter),i.Reader._configure(i.BufferReader)}i.build="minimal",i.Writer=n(3449),i.BufferWriter=n(818),i.Reader=n(6237),i.BufferReader=n(3158),i.util=n(3610),i.rpc=n(5047),i.roots=n(4529),i.configure=o,o()},6237:function(t,e,n){t.exports=a;var i,o=n(3610),r=o.LongBits,s=o.utf8;function u(t,e){return RangeError("index out of range: "+t.pos+" + "+(e||1)+" > "+t.len)}function a(t){this.buf=t,this.pos=0,this.len=t.length}var f="undefined"!=typeof Uint8Array?function(t){if(t instanceof Uint8Array||Array.isArray(t))return new a(t);throw Error("illegal buffer")}:function(t){if(Array.isArray(t))return new a(t);throw Error("illegal buffer")},l=function(){return o.Buffer?function(t){return(a.create=function(t){return o.Buffer.isBuffer(t)?new i(t):f(t)})(t)}:f};function c(){var t=new r(0,0),e=0;if(this.len-this.pos>4){for(;e<4;++e)if(t.lo=(t.lo|(127&this.buf[this.pos])<<7*e)>>>0,this.buf[this.pos++]<128)return t;if(t.lo=(t.lo|(127&this.buf[this.pos])<<28)>>>0,t.hi=(t.hi|(127&this.buf[this.pos])>>4)>>>0,this.buf[this.pos++]<128)return t;e=0}else{for(;e<3;++e){if(this.pos>=this.len)throw u(this);if(t.lo=(t.lo|(127&this.buf[this.pos])<<7*e)>>>0,this.buf[this.pos++]<128)return t}return t.lo=(t.lo|(127&this.buf[this.pos++])<<7*e)>>>0,t}if(this.len-this.pos>4){for(;e<5;++e)if(t.hi=(t.hi|(127&this.buf[this.pos])<<7*e+3)>>>0,this.buf[this.pos++]<128)return t}else for(;e<5;++e){if(this.pos>=this.len)throw u(this);if(t.hi=(t.hi|(127&this.buf[this.pos])<<7*e+3)>>>0,this.buf[this.pos++]<128)return t}throw Error("invalid varint encoding")}function p(t,e){return(t[e-4]|t[e-3]<<8|t[e-2]<<16|t[e-1]<<24)>>>0}function h(){if(this.pos+8>this.len)throw u(this,8);return new r(p(this.buf,this.pos+=4),p(this.buf,this.pos+=4))}a.create=l(),a.prototype._slice=o.Array.prototype.subarray||o.Array.prototype.slice,a.prototype.uint32=function(){var t=0xffffffff;return function(){if(t=(127&this.buf[this.pos])>>>0,this.buf[this.pos++]<128||(t=(t|(127&this.buf[this.pos])<<7)>>>0,this.buf[this.pos++]<128)||(t=(t|(127&this.buf[this.pos])<<14)>>>0,this.buf[this.pos++]<128)||(t=(t|(127&this.buf[this.pos])<<21)>>>0,this.buf[this.pos++]<128)||(t=(t|(15&this.buf[this.pos])<<28)>>>0,this.buf[this.pos++]<128))return t;if((this.pos+=5)>this.len)throw this.pos=this.len,u(this,10);return t}}(),a.prototype.int32=function(){return 0|this.uint32()},a.prototype.sint32=function(){var t=this.uint32();return t>>>1^-(1&t)},a.prototype.bool=function(){return 0!==this.uint32()},a.prototype.fixed32=function(){if(this.pos+4>this.len)throw u(this,4);return p(this.buf,this.pos+=4)},a.prototype.sfixed32=function(){if(this.pos+4>this.len)throw u(this,4);return 0|p(this.buf,this.pos+=4)},a.prototype.float=function(){if(this.pos+4>this.len)throw u(this,4);var t=o.float.readFloatLE(this.buf,this.pos);return this.pos+=4,t},a.prototype.double=function(){if(this.pos+8>this.len)throw u(this,4);var t=o.float.readDoubleLE(this.buf,this.pos);return this.pos+=8,t},a.prototype.bytes=function(){var t=this.uint32(),e=this.pos,n=this.pos+t;if(n>this.len)throw u(this,t);if(this.pos+=t,Array.isArray(this.buf))return this.buf.slice(e,n);if(e===n){var i=o.Buffer;return i?i.alloc(0):new this.buf.constructor(0)}return this._slice.call(this.buf,e,n)},a.prototype.string=function(){var t=this.bytes();return s.read(t,0,t.length)},a.prototype.skip=function(t){if("number"==typeof t){if(this.pos+t>this.len)throw u(this,t);this.pos+=t}else do if(this.pos>=this.len)throw u(this);while(128&this.buf[this.pos++]);return this},a.prototype.skipType=function(t){switch(t){case 0:this.skip();break;case 1:this.skip(8);break;case 2:this.skip(this.uint32());break;case 3:for(;4!=(t=7&this.uint32());)this.skipType(t);break;case 5:this.skip(4);break;default:throw Error("invalid wire type "+t+" at offset "+this.pos)}return this},a._configure=function(t){i=t,a.create=l(),i._configure();var e=o.Long?"toLong":"toNumber";o.merge(a.prototype,{int64:function(){return c.call(this)[e](!1)},uint64:function(){return c.call(this)[e](!0)},sint64:function(){return c.call(this).zzDecode()[e](!1)},fixed64:function(){return h.call(this)[e](!0)},sfixed64:function(){return h.call(this)[e](!1)}})}},3158:function(t,e,n){t.exports=r;var i=n(6237);(r.prototype=Object.create(i.prototype)).constructor=r;var o=n(3610);function r(t){i.call(this,t)}r._configure=function(){o.Buffer&&(r.prototype._slice=o.Buffer.prototype.slice)},r.prototype.string=function(){var t=this.uint32();return this.buf.utf8Slice?this.buf.utf8Slice(this.pos,this.pos=Math.min(this.pos+t,this.len)):this.buf.toString("utf-8",this.pos,this.pos=Math.min(this.pos+t,this.len))},r._configure()},4529:function(t){t.exports={}},5047:function(t,e,n){e.Service=n(7595)},7595:function(t,e,n){t.exports=o;var i=n(3610);function o(t,e,n){if("function"!=typeof t)throw TypeError("rpcImpl must be a function");i.EventEmitter.call(this),this.rpcImpl=t,this.requestDelimited=!!e,this.responseDelimited=!!n}(o.prototype=Object.create(i.EventEmitter.prototype)).constructor=o,o.prototype.rpcCall=function t(e,n,o,r,s){if(!r)throw TypeError("request must be specified");var u=this;if(!s)return i.asPromise(t,u,e,n,o,r);if(!u.rpcImpl)return void setTimeout(function(){s(Error("already ended"))},0);try{return u.rpcImpl(e,n[u.requestDelimited?"encodeDelimited":"encode"](r).finish(),function(t,n){if(t)return u.emit("error",t,e),s(t);if(null===n)return void u.end(!0);if(!(n instanceof o))try{n=o[u.responseDelimited?"decodeDelimited":"decode"](n)}catch(t){return u.emit("error",t,e),s(t)}return u.emit("data",n,e),s(null,n)})}catch(t){u.emit("error",t,e),setTimeout(function(){s(t)},0);return}},o.prototype.end=function(t){return this.rpcImpl&&(t||this.rpcImpl(null,null,null),this.rpcImpl=null,this.emit("end").off()),this}},2239:function(t,e,n){t.exports=o;var i=n(3610);function o(t,e){this.lo=t>>>0,this.hi=e>>>0}var r=o.zero=new o(0,0);r.toNumber=function(){return 0},r.zzEncode=r.zzDecode=function(){return this},r.length=function(){return 1};var s=o.zeroHash="\0\0\0\0\0\0\0\0";o.fromNumber=function(t){if(0===t)return r;var e=t<0;e&&(t=-t);var n=t>>>0,i=(t-n)/0x100000000>>>0;return e&&(i=~i>>>0,n=~n>>>0,++n>0xffffffff&&(n=0,++i>0xffffffff&&(i=0))),new o(n,i)},o.from=function(t){if("number"==typeof t)return o.fromNumber(t);if(i.isString(t))if(!i.Long)return o.fromNumber(parseInt(t,10));else t=i.Long.fromString(t);return t.low||t.high?new o(t.low>>>0,t.high>>>0):r},o.prototype.toNumber=function(t){if(!t&&this.hi>>>31){var e=~this.lo+1>>>0,n=~this.hi>>>0;return e||(n=n+1>>>0),-(e+0x100000000*n)}return this.lo+0x100000000*this.hi},o.prototype.toLong=function(t){return i.Long?new i.Long(0|this.lo,0|this.hi,!!t):{low:0|this.lo,high:0|this.hi,unsigned:!!t}};var u=String.prototype.charCodeAt;o.fromHash=function(t){return t===s?r:new o((u.call(t,0)|u.call(t,1)<<8|u.call(t,2)<<16|u.call(t,3)<<24)>>>0,(u.call(t,4)|u.call(t,5)<<8|u.call(t,6)<<16|u.call(t,7)<<24)>>>0)},o.prototype.toHash=function(){return String.fromCharCode(255&this.lo,this.lo>>>8&255,this.lo>>>16&255,this.lo>>>24,255&this.hi,this.hi>>>8&255,this.hi>>>16&255,this.hi>>>24)},o.prototype.zzEncode=function(){var t=this.hi>>31;return this.hi=((this.hi<<1|this.lo>>>31)^t)>>>0,this.lo=(this.lo<<1^t)>>>0,this},o.prototype.zzDecode=function(){var t=-(1&this.lo);return this.lo=((this.lo>>>1|this.hi<<31)^t)>>>0,this.hi=(this.hi>>>1^t)>>>0,this},o.prototype.length=function(){var t=this.lo,e=(this.lo>>>28|this.hi<<4)>>>0,n=this.hi>>>24;return 0===n?0===e?t<16384?t<128?1:2:t<2097152?3:4:e<16384?e<128?5:6:e<2097152?7:8:n<128?9:10}},3610:function(t,e,n){var i=e;function o(t,e,n){for(var i=Object.keys(e),o=0;o0)},i.Buffer=function(){try{var t=i.inquire("buffer").Buffer;return t.prototype.utf8Write?t:null}catch(t){return null}}(),i._Buffer_from=null,i._Buffer_allocUnsafe=null,i.newBuffer=function(t){return"number"==typeof t?i.Buffer?i._Buffer_allocUnsafe(t):new i.Array(t):i.Buffer?i._Buffer_from(t):"undefined"==typeof Uint8Array?t:new Uint8Array(t)},i.Array="undefined"!=typeof Uint8Array?Uint8Array:Array,i.Long=i.global.dcodeIO&&i.global.dcodeIO.Long||i.global.Long||i.inquire("long"),i.key2Re=/^true|false|0|1$/,i.key32Re=/^-?(?:0|[1-9][0-9]*)$/,i.key64Re=/^(?:[\\x00-\\xff]{8}|-?(?:0|[1-9][0-9]*))$/,i.longToHash=function(t){return t?i.LongBits.from(t).toHash():i.LongBits.zeroHash},i.longFromHash=function(t,e){var n=i.LongBits.fromHash(t);return i.Long?i.Long.fromBits(n.lo,n.hi,e):n.toNumber(!!e)},i.merge=o,i.lcFirst=function(t){return t.charAt(0).toLowerCase()+t.substring(1)},i.newError=r,i.ProtocolError=r("ProtocolError"),i.oneOfGetter=function(t){for(var e={},n=0;n-1;--n)if(1===e[t[n]]&&void 0!==this[t[n]]&&null!==this[t[n]])return t[n]}},i.oneOfSetter=function(t){return function(e){for(var n=0;n127;)e[n++]=127&t|128,t>>>=7;e[n]=t}function g(t,e){this.len=t,this.next=void 0,this.val=e}function d(t,e,n){for(;t.hi;)e[n++]=127&t.lo|128,t.lo=(t.lo>>>7|t.hi<<25)>>>0,t.hi>>>=7;for(;t.lo>127;)e[n++]=127&t.lo|128,t.lo=t.lo>>>7;e[n++]=t.lo}function m(t,e,n){e[n]=255&t,e[n+1]=t>>>8&255,e[n+2]=t>>>16&255,e[n+3]=t>>>24}c.create=p(),c.alloc=function(t){return new o.Array(t)},o.Array!==Array&&(c.alloc=o.pool(c.alloc,o.Array.prototype.subarray)),c.prototype._push=function(t,e,n){return this.tail=this.tail.next=new a(t,e,n),this.len+=e,this},g.prototype=Object.create(a.prototype),g.prototype.fn=y,c.prototype.uint32=function(t){return this.len+=(this.tail=this.tail.next=new g((t>>>=0)<128?1:t<16384?2:t<2097152?3:t<0x10000000?4:5,t)).len,this},c.prototype.int32=function(t){return t<0?this._push(d,10,r.fromNumber(t)):this.uint32(t)},c.prototype.sint32=function(t){return this.uint32((t<<1^t>>31)>>>0)},c.prototype.uint64=function(t){var e=r.from(t);return this._push(d,e.length(),e)},c.prototype.int64=c.prototype.uint64,c.prototype.sint64=function(t){var e=r.from(t).zzEncode();return this._push(d,e.length(),e)},c.prototype.bool=function(t){return this._push(h,1,+!!t)},c.prototype.fixed32=function(t){return this._push(m,4,t>>>0)},c.prototype.sfixed32=c.prototype.fixed32,c.prototype.fixed64=function(t){var e=r.from(t);return this._push(m,4,e.lo)._push(m,4,e.hi)},c.prototype.sfixed64=c.prototype.fixed64,c.prototype.float=function(t){return this._push(o.float.writeFloatLE,4,t)},c.prototype.double=function(t){return this._push(o.float.writeDoubleLE,8,t)};var b=o.Array.prototype.set?function(t,e,n){e.set(t,n)}:function(t,e,n){for(var i=0;i>>0;if(!e)return this._push(h,1,0);if(o.isString(t)){var n=c.alloc(e=s.length(t));s.decode(t,n,0),t=n}return this.uint32(e)._push(b,e,t)},c.prototype.string=function(t){var e=u.length(t);return e?this.uint32(e)._push(u.write,e,t):this._push(h,1,0)},c.prototype.fork=function(){return this.states=new l(this),this.head=this.tail=new a(f,0,0),this.len=0,this},c.prototype.reset=function(){return this.states?(this.head=this.states.head,this.tail=this.states.tail,this.len=this.states.len,this.states=this.states.next):(this.head=this.tail=new a(f,0,0),this.len=0),this},c.prototype.ldelim=function(){var t=this.head,e=this.tail,n=this.len;return this.reset().uint32(n),n&&(this.tail.next=t.next,this.tail=e,this.len+=n),this},c.prototype.finish=function(){for(var t=this.head.next,e=this.constructor.alloc(this.len),n=0;t;)t.fn(t.val,e,n),n+=t.len,t=t.next;return e},c._configure=function(t){i=t,c.create=p(),i._configure()}},818:function(t,e,n){t.exports=r;var i=n(3449);(r.prototype=Object.create(i.prototype)).constructor=r;var o=n(3610);function r(){i.call(this)}function s(t,e,n){t.length<40?o.utf8.write(t,e,n):e.utf8Write?e.utf8Write(t,n):e.write(t,n)}r._configure=function(){r.alloc=o._Buffer_allocUnsafe,r.writeBytesBuffer=o.Buffer&&o.Buffer.prototype instanceof Uint8Array&&"set"===o.Buffer.prototype.set.name?function(t,e,n){e.set(t,n)}:function(t,e,n){if(t.copy)t.copy(e,n,0,t.length);else for(var i=0;i>>0;return this.uint32(e),e&&this._push(r.writeBytesBuffer,e,t),this},r.prototype.string=function(t){var e=o.Buffer.byteLength(t);return this.uint32(e),e&&this._push(s,e,t),this},r._configure()}},__webpack_module_cache__={};function __webpack_require__(t){var e=__webpack_module_cache__[t];if(void 0!==e)return e.exports;var n=__webpack_module_cache__[t]={exports:{}};return __webpack_modules__[t].call(n.exports,n,n.exports,__webpack_require__),n.exports}var __webpack_exports__=__webpack_require__(4685);module.exports=__webpack_exports__})(); \ No newline at end of file diff --git a/packages/node_modules/protobufjs.js b/packages/node_modules/protobufjs.js index 1b4dadc8a23..8be069d201d 100644 --- a/packages/node_modules/protobufjs.js +++ b/packages/node_modules/protobufjs.js @@ -1 +1 @@ -(()=>{"use strict";var __webpack_modules__={8045:function(e){e.exports=t;function t(e,t){for(var r=Array(arguments.length-1),i=0,n=2,o=!0;n1&&"="===e.charAt(t);)++r;return Math.ceil(3*e.length)/4-r};for(var i=Array(64),n=Array(123),o=0;o<64;)n[i[o]=o<26?o+65:o<52?o+71:o<62?o-4:o-59|43]=o++;r.encode=function(e,t,r){for(var n,o=null,s=[],a=0,u=0;t>2],n=(3&f)<<4,u=1;break;case 1:s[a++]=i[n|f>>4],n=(15&f)<<2,u=2;break;case 2:s[a++]=i[n|f>>6],s[a++]=i[63&f],u=0}a>8191&&((o||(o=[])).push(String.fromCharCode.apply(String,s)),a=0)}return(u&&(s[a++]=i[n],s[a++]=61,1===u&&(s[a++]=61)),o)?(a&&o.push(String.fromCharCode.apply(String,s.slice(0,a))),o.join("")):String.fromCharCode.apply(String,s.slice(0,a))};var s="invalid encoding";r.decode=function(e,t,r){for(var i,o=r,a=0,u=0;u1)break;if(void 0===(f=n[f]))throw Error(s);switch(a){case 0:i=f,a=1;break;case 1:t[r++]=i<<2|(48&f)>>4,i=f,a=2;break;case 2:t[r++]=(15&i)<<4|(60&f)>>2,i=f,a=3;break;case 3:t[r++]=(3&i)<<6|f,a=0}}if(1===a)throw Error(s);return r-o},r.test=function(e){return/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(e)}},8561:function(e){function t(e,r){"string"==typeof e&&(r=e,e=void 0);var i=[];function n(e){if("string"!=typeof e){var r=o();if(t.verbose&&console.log("codegen: "+r),r="return "+r,e){for(var s=Object.keys(e),a=Array(s.length+1),u=Array(s.length),f=0;f0?0:0x80000000,r,i);else if(isNaN(t))e(0x7fc00000,r,i);else if(t>34028234663852886e22)e((n<<31|0x7f800000)>>>0,r,i);else if(t<11754943508222875e-54)e((n<<31|Math.round(t/1401298464324817e-60))>>>0,r,i);else{var o=Math.floor(Math.log(t)/Math.LN2),s=8388607&Math.round(t*Math.pow(2,-o)*8388608);e((n<<31|o+127<<23|s)>>>0,r,i)}}function s(e,t,r){var i=e(t,r),n=(i>>31)*2+1,o=i>>>23&255,s=8388607&i;return 255===o?s?NaN:1/0*n:0===o?1401298464324817e-60*n*s:n*Math.pow(2,o-150)*(s+8388608)}e.writeFloatLE=t.bind(null,r),e.writeFloatBE=t.bind(null,i),e.readFloatLE=s.bind(null,n),e.readFloatBE=s.bind(null,o)}(),"undefined"!=typeof Float64Array?!function(){var t=new Float64Array([-0]),r=new Uint8Array(t.buffer),i=128===r[7];function n(e,i,n){t[0]=e,i[n]=r[0],i[n+1]=r[1],i[n+2]=r[2],i[n+3]=r[3],i[n+4]=r[4],i[n+5]=r[5],i[n+6]=r[6],i[n+7]=r[7]}function o(e,i,n){t[0]=e,i[n]=r[7],i[n+1]=r[6],i[n+2]=r[5],i[n+3]=r[4],i[n+4]=r[3],i[n+5]=r[2],i[n+6]=r[1],i[n+7]=r[0]}function s(e,i){return r[0]=e[i],r[1]=e[i+1],r[2]=e[i+2],r[3]=e[i+3],r[4]=e[i+4],r[5]=e[i+5],r[6]=e[i+6],r[7]=e[i+7],t[0]}function a(e,i){return r[7]=e[i],r[6]=e[i+1],r[5]=e[i+2],r[4]=e[i+3],r[3]=e[i+4],r[2]=e[i+5],r[1]=e[i+6],r[0]=e[i+7],t[0]}e.writeDoubleLE=i?n:o,e.writeDoubleBE=i?o:n,e.readDoubleLE=i?s:a,e.readDoubleBE=i?a:s}():!function(){function t(e,t,r,i,n,o){var s,a=+(i<0);if(a&&(i=-i),0===i)e(0,n,o+t),e(1/i>0?0:0x80000000,n,o+r);else if(isNaN(i))e(0,n,o+t),e(0x7ff80000,n,o+r);else if(i>17976931348623157e292)e(0,n,o+t),e((a<<31|0x7ff00000)>>>0,n,o+r);else if(i<22250738585072014e-324)e((s=i/5e-324)>>>0,n,o+t),e((a<<31|s/0x100000000)>>>0,n,o+r);else{var u=Math.floor(Math.log(i)/Math.LN2);1024===u&&(u=1023),e(0x10000000000000*(s=i*Math.pow(2,-u))>>>0,n,o+t),e((a<<31|u+1023<<20|1048576*s&1048575)>>>0,n,o+r)}}function s(e,t,r,i,n){var o=e(i,n+t),s=e(i,n+r),a=(s>>31)*2+1,u=s>>>20&2047,f=0x100000000*(1048575&s)+o;return 2047===u?f?NaN:1/0*a:0===u?5e-324*a*f:a*Math.pow(2,u-1075)*(f+0x10000000000000)}e.writeDoubleLE=t.bind(null,r,0,4),e.writeDoubleBE=t.bind(null,i,4,0),e.readDoubleLE=s.bind(null,n,0,4),e.readDoubleBE=s.bind(null,o,4,0)}(),e}function r(e,t,r){t[r]=255&e,t[r+1]=e>>>8&255,t[r+2]=e>>>16&255,t[r+3]=e>>>24}function i(e,t,r){t[r]=e>>>24,t[r+1]=e>>>16&255,t[r+2]=e>>>8&255,t[r+3]=255&e}function n(e,t){return(e[t]|e[t+1]<<8|e[t+2]<<16|e[t+3]<<24)>>>0}function o(e,t){return(e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3])>>>0}e.exports=t(t)},4153:function(module){module.exports=inquire;function inquire(moduleName){try{var mod=eval("quire".replace(/^/,"re"))(moduleName);if(mod&&(mod.length||Object.keys(mod).length))return mod}catch(e){}return null}},9207:function(e,t){var r=t,i=r.isAbsolute=function(e){return/^(?:\/|\w+:)/.test(e)},n=r.normalize=function(e){var t=(e=e.replace(/\\/g,"/").replace(/\/{2,}/g,"/")).split("/"),r=i(e),n="";r&&(n=t.shift()+"/");for(var o=0;o0&&".."!==t[o-1]?t.splice(--o,2):r?t.splice(o,1):++o:"."===t[o]?t.splice(o,1):++o;return n+t.join("/")};r.resolve=function(e,t,r){return(r||(t=n(t)),i(t))?t:(r||(e=n(e)),(e=e.replace(/(?:\/|^)[^/]+$/,"")).length?n(e+"/"+t):t)}},9390:function(e){e.exports=t;function t(e,t,r){var i=r||8192,n=i>>>1,o=null,s=i;return function(r){if(r<1||r>n)return e(r);s+r>i&&(o=e(i),s=0);var a=t.call(o,s,s+=r);return 7&s&&(s=(7|s)+1),a}}},1447:function(e,t){var r=t;r.length=function(e){for(var t=0,r=0,i=0;i191&&i<224?o[s++]=(31&i)<<6|63&e[t++]:i>239&&i<365?(i=((7&i)<<18|(63&e[t++])<<12|(63&e[t++])<<6|63&e[t++])-65536,o[s++]=55296+(i>>10),o[s++]=56320+(1023&i)):o[s++]=(15&i)<<12|(63&e[t++])<<6|63&e[t++],s>8191&&((n||(n=[])).push(String.fromCharCode.apply(String,o)),s=0);return n?(s&&n.push(String.fromCharCode.apply(String,o.slice(0,s))),n.join("")):String.fromCharCode.apply(String,o.slice(0,s))},r.write=function(e,t,r){for(var i,n,o=r,s=0;s>6|192:((64512&i)==55296&&(64512&(n=e.charCodeAt(s+1)))==56320?(i=65536+((1023&i)<<10)+(1023&n),++s,t[r++]=i>>18|240,t[r++]=i>>12&63|128):t[r++]=i>>12|224,t[r++]=i>>6&63|128),t[r++]=63&i|128);return r-o}},2549:function(e,t,r){e.exports=r(9100)},5095:function(e){e.exports=i;var t,r=/\/|\./;function i(e,t){r.test(e)||(e="google/protobuf/"+e+".proto",t={nested:{google:{nested:{protobuf:{nested:t}}}}}),i[e]=t}i("any",{Any:{fields:{type_url:{type:"string",id:1},value:{type:"bytes",id:2}}}}),i("duration",{Duration:t={fields:{seconds:{type:"int64",id:1},nanos:{type:"int32",id:2}}}}),i("timestamp",{Timestamp:t}),i("empty",{Empty:{fields:{}}}),i("struct",{Struct:{fields:{fields:{keyType:"string",type:"Value",id:1}}},Value:{oneofs:{kind:{oneof:["nullValue","numberValue","stringValue","boolValue","structValue","listValue"]}},fields:{nullValue:{type:"NullValue",id:1},numberValue:{type:"double",id:2},stringValue:{type:"string",id:3},boolValue:{type:"bool",id:4},structValue:{type:"Struct",id:5},listValue:{type:"ListValue",id:6}}},NullValue:{values:{NULL_VALUE:0}},ListValue:{fields:{values:{rule:"repeated",type:"Value",id:1}}}}),i("wrappers",{DoubleValue:{fields:{value:{type:"double",id:1}}},FloatValue:{fields:{value:{type:"float",id:1}}},Int64Value:{fields:{value:{type:"int64",id:1}}},UInt64Value:{fields:{value:{type:"uint64",id:1}}},Int32Value:{fields:{value:{type:"int32",id:1}}},UInt32Value:{fields:{value:{type:"uint32",id:1}}},BoolValue:{fields:{value:{type:"bool",id:1}}},StringValue:{fields:{value:{type:"string",id:1}}},BytesValue:{fields:{value:{type:"bytes",id:1}}}}),i("field_mask",{FieldMask:{fields:{paths:{rule:"repeated",type:"string",id:1}}}}),i.get=function(e){return i[e]||null}},744:function(e,t,r){var i=t,n=r(5643),o=r(3262);function s(e,t,r,i){var o=!1;if(t.resolvedType)if(t.resolvedType instanceof n){e("switch(d%s){",i);for(var s=t.resolvedType.values,a=Object.keys(s),u=0;u>>0",i,i);break;case"int32":case"sint32":case"sfixed32":e("m%s=d%s|0",i,i);break;case"uint64":f=!0;case"int64":case"sint64":case"fixed64":case"sfixed64":e("if(util.Long)")("(m%s=util.Long.fromValue(d%s)).unsigned=%j",i,i,f)('else if(typeof d%s==="string")',i)("m%s=parseInt(d%s,10)",i,i)('else if(typeof d%s==="number")',i)("m%s=d%s",i,i)('else if(typeof d%s==="object")',i)("m%s=new util.LongBits(d%s.low>>>0,d%s.high>>>0).toNumber(%s)",i,i,i,f?"true":"");break;case"bytes":e('if(typeof d%s==="string")',i)("util.base64.decode(d%s,m%s=util.newBuffer(util.base64.length(d%s)),0)",i,i,i)("else if(d%s.length >= 0)",i)("m%s=d%s",i,i);break;case"string":e("m%s=String(d%s)",i,i);break;case"bool":e("m%s=Boolean(d%s)",i,i)}}return e}function a(e,t,r,i){if(t.resolvedType)t.resolvedType instanceof n?e("d%s=o.enums===String?(types[%i].values[m%s]===undefined?m%s:types[%i].values[m%s]):m%s",i,r,i,i,r,i,i):e("d%s=types[%i].toObject(m%s,o)",i,r,i);else{var o=!1;switch(t.type){case"double":case"float":e("d%s=o.json&&!isFinite(m%s)?String(m%s):m%s",i,i,i,i);break;case"uint64":o=!0;case"int64":case"sint64":case"fixed64":case"sfixed64":e('if(typeof m%s==="number")',i)("d%s=o.longs===String?String(m%s):m%s",i,i,i)("else")("d%s=o.longs===String?util.Long.prototype.toString.call(m%s):o.longs===Number?new util.LongBits(m%s.low>>>0,m%s.high>>>0).toNumber(%s):m%s",i,i,i,i,o?"true":"",i);break;case"bytes":e("d%s=o.bytes===String?util.base64.encode(m%s,0,m%s.length):o.bytes===Array?Array.prototype.slice.call(m%s):m%s",i,i,i,i,i);break;default:e("d%s=m%s",i,i)}}return e}i.fromObject=function(e){var t=e.fieldsArray,r=o.codegen(["d"],e.name+"$fromObject")("if(d instanceof this.ctor)")("return d");if(!t.length)return r("return new this.ctor");r("var m=new this.ctor");for(var i=0;i>>3){"),r=0;r>>3){")("case 1: k=r.%s(); break",a.keyType)("case 2:"),void 0===n.basic[u]?t("value=types[%i].decode(r,r.uint32())",r):t("value=r.%s()",u),t("break")("default:")("r.skipType(tag2&7)")("break")("}")("}"),void 0!==n.long[a.keyType]?t('%s[typeof k==="object"?util.longToHash(k):k]=value',f):t("%s[k]=value",f)):a.repeated?(t("if(!(%s&&%s.length))",f,f)("%s=[]",f),void 0!==n.packed[u]&&t("if((t&7)===2){")("var c2=r.uint32()+r.pos")("while(r.pos>>0,(t.id<<3|4)>>>0):e("types[%i].encode(%s,w.uint32(%i).fork()).ldelim()",r,i,(t.id<<3|2)>>>0)}function a(e){for(var t,r,a=o.codegen(["m","w"],e.name+"$encode")("if(!w)")("w=Writer.create()"),u=e.fieldsArray.slice().sort(o.compareFieldsById),t=0;t>>0,8|n.mapKey[f.keyType],f.keyType),void 0===c?a("types[%i].encode(%s[ks[i]],w.uint32(18).fork()).ldelim().ldelim()",l,r):a(".uint32(%i).%s(%s[ks[i]]).ldelim()",16|c,p,r),a("}")("}")):f.repeated?(a("if(%s!=null&&%s.length){",r,r),f.packed&&void 0!==n.packed[p]?a("w.uint32(%i).fork()",(f.id<<3|2)>>>0)("for(var i=0;i<%s.length;++i)",r)("w.%s(%s[i])",p,r)("w.ldelim()"):(a("for(var i=0;i<%s.length;++i)",r),void 0===c?s(a,f,l,r+"[i]"):a("w.uint32(%i).%s(%s[i])",(f.id<<3|c)>>>0,p,r)),a("}")):(f.optional&&a("if(%s!=null&&Object.hasOwnProperty.call(m,%j))",r,f.name),void 0===c?s(a,f,l,r):a("w.uint32(%i).%s(%s)",(f.id<<3|c)>>>0,p,r))}return a("return w")}},5643:function(e,t,r){e.exports=s;var i=r(7209);((s.prototype=Object.create(i.prototype)).constructor=s).className="Enum";var n=r(8923),o=r(3262);function s(e,t,r,n,o,s){if(i.call(this,e,r),t&&"object"!=typeof t)throw TypeError("values must be an object");if(this.valuesById={},this.values=Object.create(this.valuesById),this.comment=n,this.comments=o||{},this.valuesOptions=s,this._valuesFeatures={},this.reserved=void 0,t)for(var a=Object.keys(t),u=0;u{var t=Object.assign({},this._features);this._valuesFeatures[e]=Object.assign(t,this.valuesOptions&&this.valuesOptions[e]&&this.valuesOptions[e].features)}),this},s.fromJSON=function(e,t){var r=new s(e,t.values,t.options,t.comment,t.comments);return r.reserved=t.reserved,t.edition&&(r._edition=t.edition),r._defaultEdition="proto3",r},s.prototype.toJSON=function(e){var t=!!e&&!!e.keepComments;return o.toObject(["edition",this._editionToJSON(),"options",this.options,"valuesOptions",this.valuesOptions,"values",this.values,"reserved",this.reserved&&this.reserved.length?this.reserved:void 0,"comment",t?this.comment:void 0,"comments",t?this.comments:void 0])},s.prototype.add=function(e,t,r,i){if(!o.isString(e))throw TypeError("name must be a string");if(!o.isInteger(t))throw TypeError("id must be an integer");if(void 0!==this.values[e])throw Error("duplicate name '"+e+"' in "+this);if(this.isReservedId(t))throw Error("id "+t+" is reserved in "+this);if(this.isReservedName(e))throw Error("name '"+e+"' is reserved in "+this);if(void 0!==this.valuesById[t]){if(!(this.options&&this.options.allow_alias))throw Error("duplicate id "+t+" in "+this);this.values[e]=t}else this.valuesById[this.values[e]=t]=e;return i&&(void 0===this.valuesOptions&&(this.valuesOptions={}),this.valuesOptions[e]=i||null),this.comments[e]=r||null,this},s.prototype.remove=function(e){if(!o.isString(e))throw TypeError("name must be a string");var t=this.values[e];if(null==t)throw Error("name '"+e+"' does not exist in "+this);return delete this.valuesById[t],delete this.values[e],delete this.comments[e],this.valuesOptions&&delete this.valuesOptions[e],this},s.prototype.isReservedId=function(e){return n.isReservedId(this.reserved,e)},s.prototype.isReservedName=function(e){return n.isReservedName(this.reserved,e)}},1344:function(e,t,r){e.exports=f;var i,n=r(7209);((f.prototype=Object.create(n.prototype)).constructor=f).className="Field";var o=r(5643),s=r(361),a=r(3262),u=/^required|optional|repeated$/;function f(e,t,r,i,o,f,l){if(a.isObject(i)?(l=o,f=i,i=o=void 0):a.isObject(o)&&(l=f,f=o,o=void 0),n.call(this,e,f),!a.isInteger(t)||t<0)throw TypeError("id must be a non-negative integer");if(!a.isString(r))throw TypeError("type must be a string");if(void 0!==i&&!u.test(i=i.toString().toLowerCase()))throw TypeError("rule must be a string rule");if(void 0!==o&&!a.isString(o))throw TypeError("extend must be a string");"proto3_optional"===i&&(i="optional"),this.rule=i&&"optional"!==i?i:void 0,this.type=r,this.id=t,this.extend=o||void 0,this.repeated="repeated"===i,this.map=!1,this.message=null,this.partOf=null,this.typeDefault=null,this.defaultValue=null,this.long=!!a.Long&&void 0!==s.long[r],this.bytes="bytes"===r,this.resolvedType=null,this.extensionField=null,this.declaringField=null,this.comment=l}f.fromJSON=function(e,t){var r=new f(e,t.id,t.type,t.rule,t.extend,t.options,t.comment);return t.edition&&(r._edition=t.edition),r._defaultEdition="proto3",r},Object.defineProperty(f.prototype,"required",{get:function(){return"LEGACY_REQUIRED"===this._features.field_presence}}),Object.defineProperty(f.prototype,"optional",{get:function(){return!this.required}}),Object.defineProperty(f.prototype,"delimited",{get:function(){return this.resolvedType instanceof i&&"DELIMITED"===this._features.message_encoding}}),Object.defineProperty(f.prototype,"packed",{get:function(){return"PACKED"===this._features.repeated_field_encoding}}),Object.defineProperty(f.prototype,"hasPresence",{get:function(){return!this.repeated&&!this.map&&(this.partOf||this.declaringField||this.extensionField||"IMPLICIT"!==this._features.field_presence)}}),f.prototype.setOption=function(e,t,r){return n.prototype.setOption.call(this,e,t,r)},f.prototype.toJSON=function(e){var t=!!e&&!!e.keepComments;return a.toObject(["edition",this._editionToJSON(),"rule","optional"!==this.rule&&this.rule||void 0,"type",this.type,"id",this.id,"extend",this.extend,"options",this.options,"comment",t?this.comment:void 0])},f.prototype.resolve=function(){if(this.resolved)return this;if(void 0===(this.typeDefault=s.defaults[this.type])?(this.resolvedType=(this.declaringField?this.declaringField.parent:this.parent).lookupTypeOrEnum(this.type),this.resolvedType instanceof i?this.typeDefault=null:this.typeDefault=this.resolvedType.values[Object.keys(this.resolvedType.values)[0]]):this.options&&this.options.proto3_optional&&(this.typeDefault=null),this.options&&null!=this.options.default&&(this.typeDefault=this.options.default,this.resolvedType instanceof o&&"string"==typeof this.typeDefault&&(this.typeDefault=this.resolvedType.values[this.typeDefault])),this.options&&(void 0===this.options.packed||!this.resolvedType||this.resolvedType instanceof o||delete this.options.packed,Object.keys(this.options).length||(this.options=void 0)),this.long)this.typeDefault=a.Long.fromNumber(this.typeDefault,"u"===this.type.charAt(0)),Object.freeze&&Object.freeze(this.typeDefault);else if(this.bytes&&"string"==typeof this.typeDefault){var e;a.base64.test(this.typeDefault)?a.base64.decode(this.typeDefault,e=a.newBuffer(a.base64.length(this.typeDefault)),0):a.utf8.write(this.typeDefault,e=a.newBuffer(a.utf8.length(this.typeDefault)),0),this.typeDefault=e}return this.map?this.defaultValue=a.emptyObject:this.repeated?this.defaultValue=a.emptyArray:this.defaultValue=this.typeDefault,this.parent instanceof i&&(this.parent.ctor.prototype[this.name]=this.defaultValue),n.prototype.resolve.call(this)},f.prototype._inferLegacyProtoFeatures=function(e){if("proto2"!==e&&"proto3"!==e)return{};var t={};if("required"===this.rule&&(t.field_presence="LEGACY_REQUIRED"),this.parent&&void 0===s.defaults[this.type]){var r=this.parent.get(this.type.split(".").pop());r&&r instanceof i&&r.group&&(t.message_encoding="DELIMITED")}return!0===this.getOption("packed")?t.repeated_field_encoding="PACKED":!1===this.getOption("packed")&&(t.repeated_field_encoding="EXPANDED"),t},f.prototype._resolveFeatures=function(e){return n.prototype._resolveFeatures.call(this,this._edition||e)},f.d=function(e,t,r,i){return"function"==typeof t?t=a.decorateType(t).name:t&&"object"==typeof t&&(t=a.decorateEnum(t).name),function(n,o){a.decorateType(n.constructor).add(new f(o,e,t,r,{default:i}))}},f._configure=function(e){i=e}},5325:function(e,t,r){var i=e.exports=r(4394);function n(e,t,r){return"function"==typeof t?(r=t,t=new i.Root):t||(t=new i.Root),t.load(e,r)}function o(e,t){return t||(t=new i.Root),t.loadSync(e)}i.build="light",i.load=n,i.loadSync=o,i.encoder=r(1080),i.decoder=r(7728),i.verifier=r(420),i.converter=r(744),i.ReflectionObject=r(7209),i.Namespace=r(8923),i.Root=r(5330),i.Enum=r(5643),i.Type=r(7882),i.Field=r(1344),i.OneOf=r(1457),i.MapField=r(8252),i.Service=r(9687),i.Method=r(8811),i.Message=r(2551),i.wrappers=r(6434),i.types=r(361),i.util=r(3262),i.ReflectionObject._configure(i.Root),i.Namespace._configure(i.Type,i.Service,i.Enum),i.Root._configure(i.Type),i.Field._configure(i.Type)},4394:function(e,t,r){var i=t;function n(){i.util._configure(),i.Writer._configure(i.BufferWriter),i.Reader._configure(i.BufferReader)}i.build="minimal",i.Writer=r(3449),i.BufferWriter=r(818),i.Reader=r(6237),i.BufferReader=r(3158),i.util=r(3610),i.rpc=r(5047),i.roots=r(4529),i.configure=n,n()},9100:function(e,t,r){var i=e.exports=r(5325);i.build="full",i.tokenize=r(527),i.parse=r(4863),i.common=r(5095),i.Root._configure(i.Type,i.parse,i.common)},8252:function(e,t,r){e.exports=s;var i=r(1344);((s.prototype=Object.create(i.prototype)).constructor=s).className="MapField";var n=r(361),o=r(3262);function s(e,t,r,n,s,a){if(i.call(this,e,t,n,void 0,void 0,s,a),!o.isString(r))throw TypeError("keyType must be a string");this.keyType=r,this.resolvedKeyType=null,this.map=!0}s.fromJSON=function(e,t){return new s(e,t.id,t.keyType,t.type,t.options,t.comment)},s.prototype.toJSON=function(e){var t=!!e&&!!e.keepComments;return o.toObject(["keyType",this.keyType,"type",this.type,"id",this.id,"extend",this.extend,"options",this.options,"comment",t?this.comment:void 0])},s.prototype.resolve=function(){if(this.resolved)return this;if(void 0===n.mapKey[this.keyType])throw Error("invalid key type: "+this.keyType);return i.prototype.resolve.call(this)},s.d=function(e,t,r){return"function"==typeof r?r=o.decorateType(r).name:r&&"object"==typeof r&&(r=o.decorateEnum(r).name),function(i,n){o.decorateType(i.constructor).add(new s(n,e,t,r))}}},2551:function(e,t,r){e.exports=n;var i=r(3610);function n(e){if(e)for(var t=Object.keys(e),r=0;rt)return!0}return!1},p.isReservedName=function(e,t){if(e){for(var r=0;r0;){var i=e.shift();if(r.nested&&r.nested[i]){if(!((r=r.nested[i])instanceof p))throw Error("path conflicts with non-namespace objects")}else r.add(r=new p(i))}return t&&r.addJSON(t),r},p.prototype.resolveAll=function(){if(!this._needsRecursiveResolve)return this;this._resolveFeaturesRecursive(this._edition);var e=this.nestedArray,t=0;for(this.resolve();t{t._resolveFeaturesRecursive(e)})),this},p.prototype.lookup=function(e,t,r){if("boolean"==typeof t?(r=t,t=void 0):t&&!Array.isArray(t)&&(t=[t]),u.isString(e)&&e.length){if("."===e)return this.root;e=e.split(".")}else if(!e.length)return this;var i=e.join(".");if(""===e[0])return this.root.lookup(e.slice(1),t);var n=this.root._fullyQualifiedObjects&&this.root._fullyQualifiedObjects["."+i];if(n&&(!t||t.indexOf(n.constructor)>-1)||(n=this._lookupImpl(e,i))&&(!t||t.indexOf(n.constructor)>-1))return n;if(r)return null;for(var o=this;o.parent;){if((n=o.parent._lookupImpl(e,i))&&(!t||t.indexOf(n.constructor)>-1))return n;o=o.parent}return null},p.prototype._lookupImpl=function(e,t){if(Object.prototype.hasOwnProperty.call(this._lookupCache,t))return this._lookupCache[t];var r=this.get(e[0]),i=null;if(r)1===e.length?i=r:r instanceof p&&(e=e.slice(1),i=r._lookupImpl(e,e.join(".")));else for(var n=0;n-1&&this.oneof.splice(t,1),e.partOf=null,this},s.prototype.onAdd=function(e){i.prototype.onAdd.call(this,e);for(var t=this,r=0;r{e._edition=L,Object.keys($).forEach(t=>{void 0===e.getOption(t)&&e.setOption(t,$[t],!0)})})}function q(e,t,r){var i=k.filename;return r||(k.filename=null),Error("illegal "+(t||"token")+" '"+e+"' ("+(i?i+", ":"")+"line "+N.line+")")}function z(){var e,t=[];do{if('"'!==(e=R())&&"'"!==e)throw q(e);t.push(R()),B(e),e=I()}while('"'===e||"'"===e);return t.join("")}function U(e){var t=R();switch(t){case"'":case'"':return F(t),z();case"true":case"TRUE":return!0;case"false":case"FALSE":return!1}try{return W(t,!0)}catch(r){if(e&&j.test(t))return t;throw q(t,"value")}}function H(e,t){do if(t&&('"'===(r=I())||"'"===r)){var r,i,n=z();if(e.push(n),L>=2023)throw q(n,"id")}else try{e.push([i=G(R()),B("to",!0)?G(R()):i])}catch(i){if(t&&j.test(r)&&L>=2023)e.push(r);else throw i}while(B(",",!0));var o={options:void 0};o.setOption=function(e,t){void 0===this.options&&(this.options={}),this.options[e]=t},ee(o,function(e){if("option"===e)eu(o,e),B(";");else throw q(e)},function(){ec(o)})}function W(e,t){var r=1;switch("-"===e.charAt(0)&&(r=-1,e=e.substring(1)),e){case"inf":case"INF":case"Inf":return 1/0*r;case"nan":case"NAN":case"Nan":case"NaN":return NaN;case"0":return 0}if(y.test(e))return r*parseInt(e,10);if(m.test(e))return r*parseInt(e,16);if(b.test(e))return r*parseInt(e,8);if(O.test(e))return r*parseFloat(e);throw q(e,"number",t)}function G(e,t){switch(e){case"max":case"MAX":case"Max":return 0x1fffffff;case"0":return 0}if(!t&&"-"===e.charAt(0))throw q(e,"id");if(v.test(e))return parseInt(e,10);if(g.test(e))return parseInt(e,16);if(w.test(e))return parseInt(e,8);throw q(e,"id")}function X(){if(void 0!==x)throw q("package");if(x=R(),!j.test(x))throw q(x,"name");C=C.define(x),B(";")}function Z(){var e,t=I();switch(t){case"weak":e=S||(S=[]),R();break;case"public":R();default:e=E||(E=[])}t=z(),B(";"),e.push(t)}function K(){if(B("="),(L=z())<2023)throw q(L,"syntax");B(";")}function Q(){if(B("="),!["2023"].includes(L=z()))throw q(L,"edition");B(";")}function Y(e,t){switch(t){case"option":return eu(e,t),B(";"),!0;case"message":return et(e,t),!0;case"enum":return es(e,t),!0;case"service":return eh(e,t),!0;case"extend":return ey(e,t),!0}return!1}function ee(e,t,r){var i,n=N.line;if(e&&("string"!=typeof e.comment&&(e.comment=P()),e.filename=k.filename),B("{",!0)){for(;"}"!==(i=R());)t(i);B(";",!0)}else r&&r(),B(";"),e&&("string"!=typeof e.comment||T)&&(e.comment=P(n)||e.comment)}function et(e,t){if(!_.test(t=R()))throw q(t,"type name");var r=new o(t);ee(r,function(e){if(!Y(r,e))switch(e){case"map":en(r,e);break;case"required":if("proto2"!==L)throw q(e);case"repeated":er(r,e);break;case"optional":if("proto3"===L)er(r,"proto3_optional");else if("proto2"!==L)throw q(e);else er(r,"optional");break;case"oneof":eo(r,e);break;case"extensions":H(r.extensions||(r.extensions=[]));break;case"reserved":H(r.reserved||(r.reserved=[]),!0);break;default:if("proto2"===L||!j.test(e))throw q(e);F(e),er(r,"optional")}}),e.add(r),e===C&&J.push(r)}function er(e,t,r){var i=R();if("group"===i)return void ei(e,t);for(;i.endsWith(".")||I().startsWith(".");)i+=R();if(!j.test(i))throw q(i,"type");var n=R();if(!_.test(n))throw q(n,"name");n=V(n),B("=");var o=new s(n,G(R()),i,t,r);if(ee(o,function(e){if("option"===e)eu(o,e),B(";");else throw q(e)},function(){ec(o)}),"proto3_optional"===t){var a=new u("_"+n);o.setOption("proto3_optional",!0),a.add(o),e.add(a)}else e.add(o);e===C&&J.push(o)}function ei(e,t){if(L>=2023)throw q("group");var r=R();if(!_.test(r))throw q(r,"name");var i=d.lcFirst(r);r===i&&(r=d.ucFirst(r)),B("=");var n=G(R()),a=new o(r);a.group=!0;var u=new s(i,n,r,t);u.filename=k.filename,ee(a,function(e){switch(e){case"option":eu(a,e),B(";");break;case"required":case"repeated":er(a,e);break;case"optional":"proto3"===L?er(a,"proto3_optional"):er(a,"optional");break;case"message":et(a,e);break;case"enum":es(a,e);break;case"reserved":H(a.reserved||(a.reserved=[]),!0);break;default:throw q(e)}}),e.add(a).add(u)}function en(e){B("<");var t=R();if(void 0===h.mapKey[t])throw q(t,"type");B(",");var r=R();if(!j.test(r))throw q(r,"type");B(">");var i=R();if(!_.test(i))throw q(i,"name");B("=");var n=new a(V(i),G(R()),t,r);ee(n,function(e){if("option"===e)eu(n,e),B(";");else throw q(e)},function(){ec(n)}),e.add(n)}function eo(e,t){if(!_.test(t=R()))throw q(t,"name");var r=new u(V(t));ee(r,function(e){"option"===e?(eu(r,e),B(";")):(F(e),er(r,"optional"))}),e.add(r)}function es(e,t){if(!_.test(t=R()))throw q(t,"name");var r=new f(t);ee(r,function(e){switch(e){case"option":eu(r,e),B(";");break;case"reserved":H(r.reserved||(r.reserved=[]),!0),void 0===r.reserved&&(r.reserved=[]);break;default:ea(r,e)}}),e.add(r),e===C&&J.push(r)}function ea(e,t){if(!_.test(t))throw q(t,"name");B("=");var r=G(R(),!0),i={options:void 0};i.getOption=function(e){return this.options[e]},i.setOption=function(e,t){c.prototype.setOption.call(i,e,t)},i.setParsedOption=function(){},ee(i,function(e){if("option"===e)eu(i,e),B(";");else throw q(e)},function(){ec(i)}),e.add(t,r,i.comment,i.parsedOptions||i.options)}function eu(e,t){var r,i,n=!0;for("option"===t&&(t=R());"="!==t;){if("("===t){var o=R();B(")"),t="("+o+")"}if(n){if(n=!1,t.includes(".")&&!t.includes("(")){var s=t.split(".");r=s[0]+".",t=s[1];continue}r=t}else i=i?i+=t:t;t=R()}var a=ef(e,i?r.concat(i):r);i=i&&"."===i[0]?i.slice(1):i,ep(e,r=r&&"."===r[r.length-1]?r.slice(0,-1):r,a,i)}function ef(e,t){if(B("{",!0)){for(var r={};!B("}",!0);){if(!_.test(A=R()))throw q(A,"name");if(null===A)throw q(A,"end of input");var i,n,o=A;if(B(":",!0),"{"===I())i=ef(e,t+"."+A);else if("["===I()){if(i=[],B("[",!0)){do n=U(!0),i.push(n);while(B(",",!0));B("]"),void 0!==n&&el(e,t+"."+A,n)}}else i=U(!0),el(e,t+"."+A,i);var s=r[o];s&&(i=[].concat(s).concat(i)),r[o]=i,B(",",!0),B(";",!0)}return r}var a=U(!0);return el(e,t,a),a}function el(e,t,r){if(C===e&&/^features\./.test(t)){$[t]=r;return}e.setOption&&e.setOption(t,r)}function ep(e,t,r,i){e.setParsedOption&&e.setParsedOption(t,r,i)}function ec(e){if(B("[",!0)){do eu(e,"option");while(B(",",!0));B("]")}return e}function eh(e,t){if(!_.test(t=R()))throw q(t,"service name");var r=new l(t);ee(r,function(e){if(!Y(r,e))if("rpc"===e)ed(r,e);else throw q(e)}),e.add(r),e===C&&J.push(r)}function ed(e,t){var r=P(),i=t;if(!_.test(t=R()))throw q(t,"name");var n,o,s,a,u=t;if(B("("),B("stream",!0)&&(o=!0),!j.test(t=R())||(n=t,B(")"),B("returns"),B("("),B("stream",!0)&&(a=!0),!j.test(t=R())))throw q(t);s=t,B(")");var f=new p(u,i,n,s,o,a);f.comment=r,ee(f,function(e){if("option"===e)eu(f,e),B(";");else throw q(e)}),e.add(f)}function ey(e,t){if(!j.test(t=R()))throw q(t,"reference");var r=t;ee(null,function(t){switch(t){case"required":case"repeated":er(e,t,r);break;case"optional":"proto3"===L?er(e,"proto3_optional",r):er(e,"optional",r);break;default:if("proto2"===L||!j.test(t))throw q(t);F(t),er(e,"optional",r)}})}for(;null!==(A=R());)switch(A){case"package":if(!D)throw q(A);X();break;case"import":if(!D)throw q(A);Z();break;case"syntax":if(!D)throw q(A);K();break;case"edition":if(!D)throw q(A);Q();break;case"option":eu(C,A),B(";",!0);break;default:if(Y(C,A)){D=!1;continue}throw q(A)}return M(),k.filename=null,{package:x,imports:E,weakImports:S,root:t}}},6237:function(e,t,r){e.exports=u;var i,n=r(3610),o=n.LongBits,s=n.utf8;function a(e,t){return RangeError("index out of range: "+e.pos+" + "+(t||1)+" > "+e.len)}function u(e){this.buf=e,this.pos=0,this.len=e.length}var f="undefined"!=typeof Uint8Array?function(e){if(e instanceof Uint8Array||Array.isArray(e))return new u(e);throw Error("illegal buffer")}:function(e){if(Array.isArray(e))return new u(e);throw Error("illegal buffer")},l=function(){return n.Buffer?function(e){return(u.create=function(e){return n.Buffer.isBuffer(e)?new i(e):f(e)})(e)}:f};function p(){var e=new o(0,0),t=0;if(this.len-this.pos>4){for(;t<4;++t)if(e.lo=(e.lo|(127&this.buf[this.pos])<<7*t)>>>0,this.buf[this.pos++]<128)return e;if(e.lo=(e.lo|(127&this.buf[this.pos])<<28)>>>0,e.hi=(e.hi|(127&this.buf[this.pos])>>4)>>>0,this.buf[this.pos++]<128)return e;t=0}else{for(;t<3;++t){if(this.pos>=this.len)throw a(this);if(e.lo=(e.lo|(127&this.buf[this.pos])<<7*t)>>>0,this.buf[this.pos++]<128)return e}return e.lo=(e.lo|(127&this.buf[this.pos++])<<7*t)>>>0,e}if(this.len-this.pos>4){for(;t<5;++t)if(e.hi=(e.hi|(127&this.buf[this.pos])<<7*t+3)>>>0,this.buf[this.pos++]<128)return e}else for(;t<5;++t){if(this.pos>=this.len)throw a(this);if(e.hi=(e.hi|(127&this.buf[this.pos])<<7*t+3)>>>0,this.buf[this.pos++]<128)return e}throw Error("invalid varint encoding")}function c(e,t){return(e[t-4]|e[t-3]<<8|e[t-2]<<16|e[t-1]<<24)>>>0}function h(){if(this.pos+8>this.len)throw a(this,8);return new o(c(this.buf,this.pos+=4),c(this.buf,this.pos+=4))}u.create=l(),u.prototype._slice=n.Array.prototype.subarray||n.Array.prototype.slice,u.prototype.uint32=function(){var e=0xffffffff;return function(){if(e=(127&this.buf[this.pos])>>>0,this.buf[this.pos++]<128||(e=(e|(127&this.buf[this.pos])<<7)>>>0,this.buf[this.pos++]<128)||(e=(e|(127&this.buf[this.pos])<<14)>>>0,this.buf[this.pos++]<128)||(e=(e|(127&this.buf[this.pos])<<21)>>>0,this.buf[this.pos++]<128)||(e=(e|(15&this.buf[this.pos])<<28)>>>0,this.buf[this.pos++]<128))return e;if((this.pos+=5)>this.len)throw this.pos=this.len,a(this,10);return e}}(),u.prototype.int32=function(){return 0|this.uint32()},u.prototype.sint32=function(){var e=this.uint32();return e>>>1^-(1&e)},u.prototype.bool=function(){return 0!==this.uint32()},u.prototype.fixed32=function(){if(this.pos+4>this.len)throw a(this,4);return c(this.buf,this.pos+=4)},u.prototype.sfixed32=function(){if(this.pos+4>this.len)throw a(this,4);return 0|c(this.buf,this.pos+=4)},u.prototype.float=function(){if(this.pos+4>this.len)throw a(this,4);var e=n.float.readFloatLE(this.buf,this.pos);return this.pos+=4,e},u.prototype.double=function(){if(this.pos+8>this.len)throw a(this,4);var e=n.float.readDoubleLE(this.buf,this.pos);return this.pos+=8,e},u.prototype.bytes=function(){var e=this.uint32(),t=this.pos,r=this.pos+e;if(r>this.len)throw a(this,e);if(this.pos+=e,Array.isArray(this.buf))return this.buf.slice(t,r);if(t===r){var i=n.Buffer;return i?i.alloc(0):new this.buf.constructor(0)}return this._slice.call(this.buf,t,r)},u.prototype.string=function(){var e=this.bytes();return s.read(e,0,e.length)},u.prototype.skip=function(e){if("number"==typeof e){if(this.pos+e>this.len)throw a(this,e);this.pos+=e}else do if(this.pos>=this.len)throw a(this);while(128&this.buf[this.pos++]);return this},u.prototype.skipType=function(e){switch(e){case 0:this.skip();break;case 1:this.skip(8);break;case 2:this.skip(this.uint32());break;case 3:for(;4!=(e=7&this.uint32());)this.skipType(e);break;case 5:this.skip(4);break;default:throw Error("invalid wire type "+e+" at offset "+this.pos)}return this},u._configure=function(e){i=e,u.create=l(),i._configure();var t=n.Long?"toLong":"toNumber";n.merge(u.prototype,{int64:function(){return p.call(this)[t](!1)},uint64:function(){return p.call(this)[t](!0)},sint64:function(){return p.call(this).zzDecode()[t](!1)},fixed64:function(){return h.call(this)[t](!0)},sfixed64:function(){return h.call(this)[t](!1)}})}},3158:function(e,t,r){e.exports=o;var i=r(6237);(o.prototype=Object.create(i.prototype)).constructor=o;var n=r(3610);function o(e){i.call(this,e)}o._configure=function(){n.Buffer&&(o.prototype._slice=n.Buffer.prototype.slice)},o.prototype.string=function(){var e=this.uint32();return this.buf.utf8Slice?this.buf.utf8Slice(this.pos,this.pos=Math.min(this.pos+e,this.len)):this.buf.toString("utf-8",this.pos,this.pos=Math.min(this.pos+e,this.len))},o._configure()},5330:function(e,t,r){e.exports=p;var i,n,o,s=r(8923);((p.prototype=Object.create(s.prototype)).constructor=p).className="Root";var a=r(1344),u=r(5643),f=r(1457),l=r(3262);function p(e){s.call(this,"",e),this.deferred=[],this.files=[],this._edition="proto2",this._fullyQualifiedObjects={}}function c(){}p.fromJSON=function(e,t){return t||(t=new p),e.options&&t.setOptions(e.options),t.addJSON(e.nested).resolveAll()},p.prototype.resolvePath=l.path.resolve,p.prototype.fetch=l.fetch,p.prototype.load=function e(t,r,i){"function"==typeof r&&(i=r,r=void 0);var s=this;if(!i)return l.asPromise(e,s,t,r);var a=i===c;function u(e,t){if(i){if(a)throw e;t&&t.resolveAll();var r=i;i=null,r(e,t)}}function f(e){var t=e.lastIndexOf("google/protobuf/");if(t>-1){var r=e.substring(t);if(r in o)return r}return null}function p(e,t){try{if(l.isString(t)&&"{"===t.charAt(0)&&(t=JSON.parse(t)),l.isString(t)){n.filename=e;var i,o=n(t,s,r),p=0;if(o.imports)for(;p-1)){if(s.files.push(e),e in o)return void(a?p(e,o[e]):(++d,setTimeout(function(){--d,p(e,o[e])})));if(a){var r;try{r=l.fs.readFileSync(e).toString("utf8")}catch(e){t||u(e);return}p(e,r)}else++d,s.fetch(e,function(r,n){if(--d,i){if(r)return void(t?d||u(null,s):u(r));p(e,n)}})}}var d=0;l.isString(t)&&(t=[t]);for(var y,v=0;v-1&&this.deferred.splice(t,1)}}else if(e instanceof u)h.test(e.name)&&delete e.parent[e.name];else if(e instanceof s){for(var r=0;r{t._resolveFeaturesRecursive(e)})),this},a.prototype.add=function(e){if(this.get(e.name))throw Error("duplicate name '"+e.name+"' in "+this);return e instanceof n?(this.methods[e.name]=e,e.parent=this,u(this)):i.prototype.add.call(this,e)},a.prototype.remove=function(e){if(e instanceof n){if(this.methods[e.name]!==e)throw Error(e+" is not a member of "+this);return delete this.methods[e.name],e.parent=null,u(this)}return i.prototype.remove.call(this,e)},a.prototype.create=function(e,t,r){for(var i,n=new s.Service(e,t,r),a=0;a]/g,r=/(?:"([^"\\]*(?:\\.[^"\\]*)*)")/g,i=/(?:'([^'\\]*(?:\\.[^'\\]*)*)')/g,n=/^ *[*/]+ */,o=/^\s*\*?\/*/,s=/\n/g,a=/\s/,u=/\\(.?)/g,f={0:"\0",r:"\r",n:"\n",t:" "};function l(e){return e.replace(u,function(e,t){switch(t){case"\\":case"":return t;default:return f[t]||""}})}function p(e,u){e=e.toString();var f=0,p=e.length,c=1,h=0,d={},y=[],v=null;function m(e){return Error("illegal "+e+" (line "+c+")")}function g(){var t="'"===v?i:r;t.lastIndex=f-1;var n=t.exec(e);if(!n)throw m("string");return f=t.lastIndex,k(v),v=null,l(n[1])}function b(t){return e.charAt(t)}function w(t,r,i){var a,f={type:e.charAt(t++),lineEmpty:!1,leading:i},l=t-(u?2:3);do if(--l<0||"\n"===(a=e.charAt(l))){f.lineEmpty=!0;break}while(" "===a||" "===a);for(var p=e.substring(t,r).split(s),y=0;y0)return y.shift();if(v)return g();var r,i,n,o,s,l=0===f;do{if(f===p)return null;for(r=!1;a.test(n=b(f));)if("\n"===n&&(l=!0,++c),++f===p)return null;if("/"===b(f)){if(++f===p)throw m("comment");if("/"===b(f))if(u){if(o=f,s=!1,O(f-1)){s=!0;do if((f=_(f))===p||(f++,!l))break;while(O(f))}else f=Math.min(p,_(f)+1);s&&(w(o,f,l),l=!0),c++,r=!0}else{for(s="/"===b(o=f+1);"\n"!==b(++f);)if(f===p)return null;++f,s&&(w(o,f-1,l),l=!0),++c,r=!0}else{if("*"!==(n=b(f)))return"/";o=f+1,s=u||"*"===b(o);do{if("\n"===n&&++c,++f===p)throw m("comment");i=n,n=b(f)}while("*"!==i||"/"!==n);++f,s&&(w(o,f-2,l),l=!0),r=!0}}}while(r);var h=f;if(t.lastIndex=0,!t.test(b(h++)))for(;h{t._resolveFeatures(e)}),this.fieldsArray.forEach(t=>{t._resolveFeatures(e)})),this},g.prototype.get=function(e){return this.fields[e]||this.oneofs&&this.oneofs[e]||this.nested&&this.nested[e]||null},g.prototype.add=function(e){if(this.get(e.name))throw Error("duplicate name '"+e.name+"' in "+this);if(e instanceof s&&void 0===e.extend){if(this._fieldsById?this._fieldsById[e.id]:this.fieldsById[e.id])throw Error("duplicate id "+e.id+" in "+this);if(this.isReservedId(e.id))throw Error("id "+e.id+" is reserved in "+this);if(this.isReservedName(e.name))throw Error("name '"+e.name+"' is reserved in "+this);return e.parent&&e.parent.remove(e),this.fields[e.name]=e,e.message=this,e.onAdd(this),b(this)}return e instanceof o?(this.oneofs||(this.oneofs={}),this.oneofs[e.name]=e,e.onAdd(this),b(this)):i.prototype.add.call(this,e)},g.prototype.remove=function(e){if(e instanceof s&&void 0===e.extend){if(!this.fields||this.fields[e.name]!==e)throw Error(e+" is not a member of "+this);return delete this.fields[e.name],e.parent=null,e.onRemove(this),b(this)}if(e instanceof o){if(!this.oneofs||this.oneofs[e.name]!==e)throw Error(e+" is not a member of "+this);return delete this.oneofs[e.name],e.parent=null,e.onRemove(this),b(this)}return i.prototype.remove.call(this,e)},g.prototype.isReservedId=function(e){return i.isReservedId(this.reserved,e)},g.prototype.isReservedName=function(e){return i.isReservedName(this.reserved,e)},g.prototype.create=function(e){return new this.ctor(e)},g.prototype.setup=function(){for(var e=this.fullName,t=[],r=0;r0)e[o]=n(e[o]||{},t,r);else{var s=e[o];if(s&&i)return e;s&&(r=[].concat(s).concat(r)),e[o]=r}return e}if("object"!=typeof e)throw TypeError("dst must be an object");if(!t)throw TypeError("path must be specified");return n(e,t=t.split("."),r)},Object.defineProperty(o,"decorateRoot",{get:function(){return s.decorated||(s.decorated=new(r(5330)))}})},2239:function(e,t,r){e.exports=n;var i=r(3610);function n(e,t){this.lo=e>>>0,this.hi=t>>>0}var o=n.zero=new n(0,0);o.toNumber=function(){return 0},o.zzEncode=o.zzDecode=function(){return this},o.length=function(){return 1};var s=n.zeroHash="\0\0\0\0\0\0\0\0";n.fromNumber=function(e){if(0===e)return o;var t=e<0;t&&(e=-e);var r=e>>>0,i=(e-r)/0x100000000>>>0;return t&&(i=~i>>>0,r=~r>>>0,++r>0xffffffff&&(r=0,++i>0xffffffff&&(i=0))),new n(r,i)},n.from=function(e){if("number"==typeof e)return n.fromNumber(e);if(i.isString(e))if(!i.Long)return n.fromNumber(parseInt(e,10));else e=i.Long.fromString(e);return e.low||e.high?new n(e.low>>>0,e.high>>>0):o},n.prototype.toNumber=function(e){if(!e&&this.hi>>>31){var t=~this.lo+1>>>0,r=~this.hi>>>0;return t||(r=r+1>>>0),-(t+0x100000000*r)}return this.lo+0x100000000*this.hi},n.prototype.toLong=function(e){return i.Long?new i.Long(0|this.lo,0|this.hi,!!e):{low:0|this.lo,high:0|this.hi,unsigned:!!e}};var a=String.prototype.charCodeAt;n.fromHash=function(e){return e===s?o:new n((a.call(e,0)|a.call(e,1)<<8|a.call(e,2)<<16|a.call(e,3)<<24)>>>0,(a.call(e,4)|a.call(e,5)<<8|a.call(e,6)<<16|a.call(e,7)<<24)>>>0)},n.prototype.toHash=function(){return String.fromCharCode(255&this.lo,this.lo>>>8&255,this.lo>>>16&255,this.lo>>>24,255&this.hi,this.hi>>>8&255,this.hi>>>16&255,this.hi>>>24)},n.prototype.zzEncode=function(){var e=this.hi>>31;return this.hi=((this.hi<<1|this.lo>>>31)^e)>>>0,this.lo=(this.lo<<1^e)>>>0,this},n.prototype.zzDecode=function(){var e=-(1&this.lo);return this.lo=((this.lo>>>1|this.hi<<31)^e)>>>0,this.hi=(this.hi>>>1^e)>>>0,this},n.prototype.length=function(){var e=this.lo,t=(this.lo>>>28|this.hi<<4)>>>0,r=this.hi>>>24;return 0===r?0===t?e<16384?e<128?1:2:e<2097152?3:4:t<16384?t<128?5:6:t<2097152?7:8:r<128?9:10}},3610:function(e,t,r){var i=t;function n(e,t,r){for(var i=Object.keys(t),n=0;n0)},i.Buffer=function(){try{var e=i.inquire("buffer").Buffer;return e.prototype.utf8Write?e:null}catch(e){return null}}(),i._Buffer_from=null,i._Buffer_allocUnsafe=null,i.newBuffer=function(e){return"number"==typeof e?i.Buffer?i._Buffer_allocUnsafe(e):new i.Array(e):i.Buffer?i._Buffer_from(e):"undefined"==typeof Uint8Array?e:new Uint8Array(e)},i.Array="undefined"!=typeof Uint8Array?Uint8Array:Array,i.Long=i.global.dcodeIO&&i.global.dcodeIO.Long||i.global.Long||i.inquire("long"),i.key2Re=/^true|false|0|1$/,i.key32Re=/^-?(?:0|[1-9][0-9]*)$/,i.key64Re=/^(?:[\\x00-\\xff]{8}|-?(?:0|[1-9][0-9]*))$/,i.longToHash=function(e){return e?i.LongBits.from(e).toHash():i.LongBits.zeroHash},i.longFromHash=function(e,t){var r=i.LongBits.fromHash(e);return i.Long?i.Long.fromBits(r.lo,r.hi,t):r.toNumber(!!t)},i.merge=n,i.lcFirst=function(e){return e.charAt(0).toLowerCase()+e.substring(1)},i.newError=o,i.ProtocolError=o("ProtocolError"),i.oneOfGetter=function(e){for(var t={},r=0;r-1;--r)if(1===t[e[r]]&&void 0!==this[e[r]]&&null!==this[e[r]])return e[r]}},i.oneOfSetter=function(e){return function(t){for(var r=0;r127;)t[r++]=127&e|128,e>>>=7;t[r]=e}function y(e,t){this.len=e,this.next=void 0,this.val=t}function v(e,t,r){for(;e.hi;)t[r++]=127&e.lo|128,e.lo=(e.lo>>>7|e.hi<<25)>>>0,e.hi>>>=7;for(;e.lo>127;)t[r++]=127&e.lo|128,e.lo=e.lo>>>7;t[r++]=e.lo}function m(e,t,r){t[r]=255&e,t[r+1]=e>>>8&255,t[r+2]=e>>>16&255,t[r+3]=e>>>24}p.create=c(),p.alloc=function(e){return new n.Array(e)},n.Array!==Array&&(p.alloc=n.pool(p.alloc,n.Array.prototype.subarray)),p.prototype._push=function(e,t,r){return this.tail=this.tail.next=new u(e,t,r),this.len+=t,this},y.prototype=Object.create(u.prototype),y.prototype.fn=d,p.prototype.uint32=function(e){return this.len+=(this.tail=this.tail.next=new y((e>>>=0)<128?1:e<16384?2:e<2097152?3:e<0x10000000?4:5,e)).len,this},p.prototype.int32=function(e){return e<0?this._push(v,10,o.fromNumber(e)):this.uint32(e)},p.prototype.sint32=function(e){return this.uint32((e<<1^e>>31)>>>0)},p.prototype.uint64=function(e){var t=o.from(e);return this._push(v,t.length(),t)},p.prototype.int64=p.prototype.uint64,p.prototype.sint64=function(e){var t=o.from(e).zzEncode();return this._push(v,t.length(),t)},p.prototype.bool=function(e){return this._push(h,1,+!!e)},p.prototype.fixed32=function(e){return this._push(m,4,e>>>0)},p.prototype.sfixed32=p.prototype.fixed32,p.prototype.fixed64=function(e){var t=o.from(e);return this._push(m,4,t.lo)._push(m,4,t.hi)},p.prototype.sfixed64=p.prototype.fixed64,p.prototype.float=function(e){return this._push(n.float.writeFloatLE,4,e)},p.prototype.double=function(e){return this._push(n.float.writeDoubleLE,8,e)};var g=n.Array.prototype.set?function(e,t,r){t.set(e,r)}:function(e,t,r){for(var i=0;i>>0;if(!t)return this._push(h,1,0);if(n.isString(e)){var r=p.alloc(t=s.length(e));s.decode(e,r,0),e=r}return this.uint32(t)._push(g,t,e)},p.prototype.string=function(e){var t=a.length(e);return t?this.uint32(t)._push(a.write,t,e):this._push(h,1,0)},p.prototype.fork=function(){return this.states=new l(this),this.head=this.tail=new u(f,0,0),this.len=0,this},p.prototype.reset=function(){return this.states?(this.head=this.states.head,this.tail=this.states.tail,this.len=this.states.len,this.states=this.states.next):(this.head=this.tail=new u(f,0,0),this.len=0),this},p.prototype.ldelim=function(){var e=this.head,t=this.tail,r=this.len;return this.reset().uint32(r),r&&(this.tail.next=e.next,this.tail=t,this.len+=r),this},p.prototype.finish=function(){for(var e=this.head.next,t=this.constructor.alloc(this.len),r=0;e;)e.fn(e.val,t,r),r+=e.len,e=e.next;return t},p._configure=function(e){i=e,p.create=c(),i._configure()}},818:function(e,t,r){e.exports=o;var i=r(3449);(o.prototype=Object.create(i.prototype)).constructor=o;var n=r(3610);function o(){i.call(this)}function s(e,t,r){e.length<40?n.utf8.write(e,t,r):t.utf8Write?t.utf8Write(e,r):t.write(e,r)}o._configure=function(){o.alloc=n._Buffer_allocUnsafe,o.writeBytesBuffer=n.Buffer&&n.Buffer.prototype instanceof Uint8Array&&"set"===n.Buffer.prototype.set.name?function(e,t,r){t.set(e,r)}:function(e,t,r){if(e.copy)e.copy(t,r,0,e.length);else for(var i=0;i>>0;return this.uint32(t),t&&this._push(o.writeBytesBuffer,t,e),this},o.prototype.string=function(e){var t=n.Buffer.byteLength(e);return this.uint32(t),t&&this._push(s,t,e),this},o._configure()}},__webpack_module_cache__={};function __webpack_require__(e){var t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;var r=__webpack_module_cache__[e]={exports:{}};return __webpack_modules__[e].call(r.exports,r,r.exports,__webpack_require__),r.exports}var __webpack_exports__=__webpack_require__(2549);module.exports=__webpack_exports__})(); \ No newline at end of file +(()=>{"use strict";var __webpack_modules__={8045:function(e){e.exports=t;function t(e,t){for(var r=Array(arguments.length-1),i=0,n=2,o=!0;n1&&"="===e.charAt(t);)++r;return Math.ceil(3*e.length)/4-r};for(var i=Array(64),n=Array(123),o=0;o<64;)n[i[o]=o<26?o+65:o<52?o+71:o<62?o-4:o-59|43]=o++;r.encode=function(e,t,r){for(var n,o=null,s=[],a=0,u=0;t>2],n=(3&f)<<4,u=1;break;case 1:s[a++]=i[n|f>>4],n=(15&f)<<2,u=2;break;case 2:s[a++]=i[n|f>>6],s[a++]=i[63&f],u=0}a>8191&&((o||(o=[])).push(String.fromCharCode.apply(String,s)),a=0)}return(u&&(s[a++]=i[n],s[a++]=61,1===u&&(s[a++]=61)),o)?(a&&o.push(String.fromCharCode.apply(String,s.slice(0,a))),o.join("")):String.fromCharCode.apply(String,s.slice(0,a))};var s="invalid encoding";r.decode=function(e,t,r){for(var i,o=r,a=0,u=0;u1)break;if(void 0===(f=n[f]))throw Error(s);switch(a){case 0:i=f,a=1;break;case 1:t[r++]=i<<2|(48&f)>>4,i=f,a=2;break;case 2:t[r++]=(15&i)<<4|(60&f)>>2,i=f,a=3;break;case 3:t[r++]=(3&i)<<6|f,a=0}}if(1===a)throw Error(s);return r-o},r.test=function(e){return/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(e)}},8561:function(e){function t(e,r){"string"==typeof e&&(r=e,e=void 0);var i=[];function n(e){if("string"!=typeof e){var r=o();if(t.verbose&&console.log("codegen: "+r),r="return "+r,e){for(var s=Object.keys(e),a=Array(s.length+1),u=Array(s.length),f=0;f0?0:0x80000000,r,i);else if(isNaN(t))e(0x7fc00000,r,i);else if(t>34028234663852886e22)e((n<<31|0x7f800000)>>>0,r,i);else if(t<11754943508222875e-54)e((n<<31|Math.round(t/1401298464324817e-60))>>>0,r,i);else{var o=Math.floor(Math.log(t)/Math.LN2),s=8388607&Math.round(t*Math.pow(2,-o)*8388608);e((n<<31|o+127<<23|s)>>>0,r,i)}}function s(e,t,r){var i=e(t,r),n=(i>>31)*2+1,o=i>>>23&255,s=8388607&i;return 255===o?s?NaN:1/0*n:0===o?1401298464324817e-60*n*s:n*Math.pow(2,o-150)*(s+8388608)}e.writeFloatLE=t.bind(null,r),e.writeFloatBE=t.bind(null,i),e.readFloatLE=s.bind(null,n),e.readFloatBE=s.bind(null,o)}(),"undefined"!=typeof Float64Array?!function(){var t=new Float64Array([-0]),r=new Uint8Array(t.buffer),i=128===r[7];function n(e,i,n){t[0]=e,i[n]=r[0],i[n+1]=r[1],i[n+2]=r[2],i[n+3]=r[3],i[n+4]=r[4],i[n+5]=r[5],i[n+6]=r[6],i[n+7]=r[7]}function o(e,i,n){t[0]=e,i[n]=r[7],i[n+1]=r[6],i[n+2]=r[5],i[n+3]=r[4],i[n+4]=r[3],i[n+5]=r[2],i[n+6]=r[1],i[n+7]=r[0]}function s(e,i){return r[0]=e[i],r[1]=e[i+1],r[2]=e[i+2],r[3]=e[i+3],r[4]=e[i+4],r[5]=e[i+5],r[6]=e[i+6],r[7]=e[i+7],t[0]}function a(e,i){return r[7]=e[i],r[6]=e[i+1],r[5]=e[i+2],r[4]=e[i+3],r[3]=e[i+4],r[2]=e[i+5],r[1]=e[i+6],r[0]=e[i+7],t[0]}e.writeDoubleLE=i?n:o,e.writeDoubleBE=i?o:n,e.readDoubleLE=i?s:a,e.readDoubleBE=i?a:s}():!function(){function t(e,t,r,i,n,o){var s,a=+(i<0);if(a&&(i=-i),0===i)e(0,n,o+t),e(1/i>0?0:0x80000000,n,o+r);else if(isNaN(i))e(0,n,o+t),e(0x7ff80000,n,o+r);else if(i>17976931348623157e292)e(0,n,o+t),e((a<<31|0x7ff00000)>>>0,n,o+r);else if(i<22250738585072014e-324)e((s=i/5e-324)>>>0,n,o+t),e((a<<31|s/0x100000000)>>>0,n,o+r);else{var u=Math.floor(Math.log(i)/Math.LN2);1024===u&&(u=1023),e(0x10000000000000*(s=i*Math.pow(2,-u))>>>0,n,o+t),e((a<<31|u+1023<<20|1048576*s&1048575)>>>0,n,o+r)}}function s(e,t,r,i,n){var o=e(i,n+t),s=e(i,n+r),a=(s>>31)*2+1,u=s>>>20&2047,f=0x100000000*(1048575&s)+o;return 2047===u?f?NaN:1/0*a:0===u?5e-324*a*f:a*Math.pow(2,u-1075)*(f+0x10000000000000)}e.writeDoubleLE=t.bind(null,r,0,4),e.writeDoubleBE=t.bind(null,i,4,0),e.readDoubleLE=s.bind(null,n,0,4),e.readDoubleBE=s.bind(null,o,4,0)}(),e}function r(e,t,r){t[r]=255&e,t[r+1]=e>>>8&255,t[r+2]=e>>>16&255,t[r+3]=e>>>24}function i(e,t,r){t[r]=e>>>24,t[r+1]=e>>>16&255,t[r+2]=e>>>8&255,t[r+3]=255&e}function n(e,t){return(e[t]|e[t+1]<<8|e[t+2]<<16|e[t+3]<<24)>>>0}function o(e,t){return(e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3])>>>0}e.exports=t(t)},4153:function(module){module.exports=inquire;function inquire(moduleName){try{var mod=eval("quire".replace(/^/,"re"))(moduleName);if(mod&&(mod.length||Object.keys(mod).length))return mod}catch(e){}return null}},9207:function(e,t){var r=t,i=r.isAbsolute=function(e){return/^(?:\/|\w+:)/.test(e)},n=r.normalize=function(e){var t=(e=e.replace(/\\/g,"/").replace(/\/{2,}/g,"/")).split("/"),r=i(e),n="";r&&(n=t.shift()+"/");for(var o=0;o0&&".."!==t[o-1]?t.splice(--o,2):r?t.splice(o,1):++o:"."===t[o]?t.splice(o,1):++o;return n+t.join("/")};r.resolve=function(e,t,r){return(r||(t=n(t)),i(t))?t:(r||(e=n(e)),(e=e.replace(/(?:\/|^)[^/]+$/,"")).length?n(e+"/"+t):t)}},9390:function(e){e.exports=t;function t(e,t,r){var i=r||8192,n=i>>>1,o=null,s=i;return function(r){if(r<1||r>n)return e(r);s+r>i&&(o=e(i),s=0);var a=t.call(o,s,s+=r);return 7&s&&(s=(7|s)+1),a}}},1447:function(e,t){var r=t;r.length=function(e){for(var t=0,r=0,i=0;i191&&i<224?o[s++]=(31&i)<<6|63&e[t++]:i>239&&i<365?(i=((7&i)<<18|(63&e[t++])<<12|(63&e[t++])<<6|63&e[t++])-65536,o[s++]=55296+(i>>10),o[s++]=56320+(1023&i)):o[s++]=(15&i)<<12|(63&e[t++])<<6|63&e[t++],s>8191&&((n||(n=[])).push(String.fromCharCode.apply(String,o)),s=0);return n?(s&&n.push(String.fromCharCode.apply(String,o.slice(0,s))),n.join("")):String.fromCharCode.apply(String,o.slice(0,s))},r.write=function(e,t,r){for(var i,n,o=r,s=0;s>6|192:((64512&i)==55296&&(64512&(n=e.charCodeAt(s+1)))==56320?(i=65536+((1023&i)<<10)+(1023&n),++s,t[r++]=i>>18|240,t[r++]=i>>12&63|128):t[r++]=i>>12|224,t[r++]=i>>6&63|128),t[r++]=63&i|128);return r-o}},2549:function(e,t,r){e.exports=r(9100)},5095:function(e){e.exports=i;var t,r=/\/|\./;function i(e,t){r.test(e)||(e="google/protobuf/"+e+".proto",t={nested:{google:{nested:{protobuf:{nested:t}}}}}),i[e]=t}i("any",{Any:{fields:{type_url:{type:"string",id:1},value:{type:"bytes",id:2}}}}),i("duration",{Duration:t={fields:{seconds:{type:"int64",id:1},nanos:{type:"int32",id:2}}}}),i("timestamp",{Timestamp:t}),i("empty",{Empty:{fields:{}}}),i("struct",{Struct:{fields:{fields:{keyType:"string",type:"Value",id:1}}},Value:{oneofs:{kind:{oneof:["nullValue","numberValue","stringValue","boolValue","structValue","listValue"]}},fields:{nullValue:{type:"NullValue",id:1},numberValue:{type:"double",id:2},stringValue:{type:"string",id:3},boolValue:{type:"bool",id:4},structValue:{type:"Struct",id:5},listValue:{type:"ListValue",id:6}}},NullValue:{values:{NULL_VALUE:0}},ListValue:{fields:{values:{rule:"repeated",type:"Value",id:1}}}}),i("wrappers",{DoubleValue:{fields:{value:{type:"double",id:1}}},FloatValue:{fields:{value:{type:"float",id:1}}},Int64Value:{fields:{value:{type:"int64",id:1}}},UInt64Value:{fields:{value:{type:"uint64",id:1}}},Int32Value:{fields:{value:{type:"int32",id:1}}},UInt32Value:{fields:{value:{type:"uint32",id:1}}},BoolValue:{fields:{value:{type:"bool",id:1}}},StringValue:{fields:{value:{type:"string",id:1}}},BytesValue:{fields:{value:{type:"bytes",id:1}}}}),i("field_mask",{FieldMask:{fields:{paths:{rule:"repeated",type:"string",id:1}}}}),i.get=function(e){return i[e]||null}},744:function(e,t,r){var i=t,n=r(5643),o=r(3262);function s(e,t,r,i){var o=!1;if(t.resolvedType)if(t.resolvedType instanceof n){e("switch(d%s){",i);for(var s=t.resolvedType.values,a=Object.keys(s),u=0;u>>0",i,i);break;case"int32":case"sint32":case"sfixed32":e("m%s=d%s|0",i,i);break;case"uint64":f=!0;case"int64":case"sint64":case"fixed64":case"sfixed64":e("if(util.Long)")("(m%s=util.Long.fromValue(d%s)).unsigned=%j",i,i,f)('else if(typeof d%s==="string")',i)("m%s=parseInt(d%s,10)",i,i)('else if(typeof d%s==="number")',i)("m%s=d%s",i,i)('else if(typeof d%s==="object")',i)("m%s=new util.LongBits(d%s.low>>>0,d%s.high>>>0).toNumber(%s)",i,i,i,f?"true":"");break;case"bytes":e('if(typeof d%s==="string")',i)("util.base64.decode(d%s,m%s=util.newBuffer(util.base64.length(d%s)),0)",i,i,i)("else if(d%s.length >= 0)",i)("m%s=d%s",i,i);break;case"string":e("m%s=String(d%s)",i,i);break;case"bool":e("m%s=Boolean(d%s)",i,i)}}return e}function a(e,t,r,i){if(t.resolvedType)t.resolvedType instanceof n?e("d%s=o.enums===String?(types[%i].values[m%s]===undefined?m%s:types[%i].values[m%s]):m%s",i,r,i,i,r,i,i):e("d%s=types[%i].toObject(m%s,o)",i,r,i);else{var o=!1;switch(t.type){case"double":case"float":e("d%s=o.json&&!isFinite(m%s)?String(m%s):m%s",i,i,i,i);break;case"uint64":o=!0;case"int64":case"sint64":case"fixed64":case"sfixed64":e('if(typeof m%s==="number")',i)("d%s=o.longs===String?String(m%s):m%s",i,i,i)("else")("d%s=o.longs===String?util.Long.prototype.toString.call(m%s):o.longs===Number?new util.LongBits(m%s.low>>>0,m%s.high>>>0).toNumber(%s):m%s",i,i,i,i,o?"true":"",i);break;case"bytes":e("d%s=o.bytes===String?util.base64.encode(m%s,0,m%s.length):o.bytes===Array?Array.prototype.slice.call(m%s):m%s",i,i,i,i,i);break;default:e("d%s=m%s",i,i)}}return e}i.fromObject=function(e){var t=e.fieldsArray,r=o.codegen(["d"],e.name+"$fromObject")("if(d instanceof this.ctor)")("return d");if(!t.length)return r("return new this.ctor");r("var m=new this.ctor");for(var i=0;i>>3){"),r=0;r>>3){")("case 1: k=r.%s(); break",a.keyType)("case 2:"),void 0===n.basic[u]?t("value=types[%i].decode(r,r.uint32())",r):t("value=r.%s()",u),t("break")("default:")("r.skipType(tag2&7)")("break")("}")("}"),void 0!==n.long[a.keyType]?t('%s[typeof k==="object"?util.longToHash(k):k]=value',f):t("%s[k]=value",f)):a.repeated?(t("if(!(%s&&%s.length))",f,f)("%s=[]",f),void 0!==n.packed[u]&&t("if((t&7)===2){")("var c2=r.uint32()+r.pos")("while(r.pos>>0,(t.id<<3|4)>>>0):e("types[%i].encode(%s,w.uint32(%i).fork()).ldelim()",r,i,(t.id<<3|2)>>>0)}function a(e){for(var t,r,a=o.codegen(["m","w"],e.name+"$encode")("if(!w)")("w=Writer.create()"),u=e.fieldsArray.slice().sort(o.compareFieldsById),t=0;t>>0,8|n.mapKey[f.keyType],f.keyType),void 0===c?a("types[%i].encode(%s[ks[i]],w.uint32(18).fork()).ldelim().ldelim()",l,r):a(".uint32(%i).%s(%s[ks[i]]).ldelim()",16|c,p,r),a("}")("}")):f.repeated?(a("if(%s!=null&&%s.length){",r,r),f.packed&&void 0!==n.packed[p]?a("w.uint32(%i).fork()",(f.id<<3|2)>>>0)("for(var i=0;i<%s.length;++i)",r)("w.%s(%s[i])",p,r)("w.ldelim()"):(a("for(var i=0;i<%s.length;++i)",r),void 0===c?s(a,f,l,r+"[i]"):a("w.uint32(%i).%s(%s[i])",(f.id<<3|c)>>>0,p,r)),a("}")):(f.optional&&a("if(%s!=null&&Object.hasOwnProperty.call(m,%j))",r,f.name),void 0===c?s(a,f,l,r):a("w.uint32(%i).%s(%s)",(f.id<<3|c)>>>0,p,r))}return a("return w")}},5643:function(e,t,r){e.exports=s;var i=r(7209);((s.prototype=Object.create(i.prototype)).constructor=s).className="Enum";var n=r(8923),o=r(3262);function s(e,t,r,n,o,s){if(i.call(this,e,r),t&&"object"!=typeof t)throw TypeError("values must be an object");if(this.valuesById={},this.values=Object.create(this.valuesById),this.comment=n,this.comments=o||{},this.valuesOptions=s,this._valuesFeatures={},this.reserved=void 0,t)for(var a=Object.keys(t),u=0;u{var t=Object.assign({},this._features);this._valuesFeatures[e]=Object.assign(t,this.valuesOptions&&this.valuesOptions[e]&&this.valuesOptions[e].features)}),this},s.fromJSON=function(e,t){var r=new s(e,t.values,t.options,t.comment,t.comments);return r.reserved=t.reserved,t.edition&&(r._edition=t.edition),r._defaultEdition="proto3",r},s.prototype.toJSON=function(e){var t=!!e&&!!e.keepComments;return o.toObject(["edition",this._editionToJSON(),"options",this.options,"valuesOptions",this.valuesOptions,"values",this.values,"reserved",this.reserved&&this.reserved.length?this.reserved:void 0,"comment",t?this.comment:void 0,"comments",t?this.comments:void 0])},s.prototype.add=function(e,t,r,i){if(!o.isString(e))throw TypeError("name must be a string");if(!o.isInteger(t))throw TypeError("id must be an integer");if(void 0!==this.values[e])throw Error("duplicate name '"+e+"' in "+this);if(this.isReservedId(t))throw Error("id "+t+" is reserved in "+this);if(this.isReservedName(e))throw Error("name '"+e+"' is reserved in "+this);if(void 0!==this.valuesById[t]){if(!(this.options&&this.options.allow_alias))throw Error("duplicate id "+t+" in "+this);this.values[e]=t}else this.valuesById[this.values[e]=t]=e;return i&&(void 0===this.valuesOptions&&(this.valuesOptions={}),this.valuesOptions[e]=i||null),this.comments[e]=r||null,this},s.prototype.remove=function(e){if(!o.isString(e))throw TypeError("name must be a string");var t=this.values[e];if(null==t)throw Error("name '"+e+"' does not exist in "+this);return delete this.valuesById[t],delete this.values[e],delete this.comments[e],this.valuesOptions&&delete this.valuesOptions[e],this},s.prototype.isReservedId=function(e){return n.isReservedId(this.reserved,e)},s.prototype.isReservedName=function(e){return n.isReservedName(this.reserved,e)}},1344:function(e,t,r){e.exports=f;var i,n=r(7209);((f.prototype=Object.create(n.prototype)).constructor=f).className="Field";var o=r(5643),s=r(361),a=r(3262),u=/^required|optional|repeated$/;function f(e,t,r,i,o,f,l){if(a.isObject(i)?(l=o,f=i,i=o=void 0):a.isObject(o)&&(l=f,f=o,o=void 0),n.call(this,e,f),!a.isInteger(t)||t<0)throw TypeError("id must be a non-negative integer");if(!a.isString(r))throw TypeError("type must be a string");if(void 0!==i&&!u.test(i=i.toString().toLowerCase()))throw TypeError("rule must be a string rule");if(void 0!==o&&!a.isString(o))throw TypeError("extend must be a string");"proto3_optional"===i&&(i="optional"),this.rule=i&&"optional"!==i?i:void 0,this.type=r,this.id=t,this.extend=o||void 0,this.repeated="repeated"===i,this.map=!1,this.message=null,this.partOf=null,this.typeDefault=null,this.defaultValue=null,this.long=!!a.Long&&void 0!==s.long[r],this.bytes="bytes"===r,this.resolvedType=null,this.extensionField=null,this.declaringField=null,this.comment=l}f.fromJSON=function(e,t){var r=new f(e,t.id,t.type,t.rule,t.extend,t.options,t.comment);return t.edition&&(r._edition=t.edition),r._defaultEdition="proto3",r},Object.defineProperty(f.prototype,"required",{get:function(){return"LEGACY_REQUIRED"===this._features.field_presence}}),Object.defineProperty(f.prototype,"optional",{get:function(){return!this.required}}),Object.defineProperty(f.prototype,"delimited",{get:function(){return this.resolvedType instanceof i&&"DELIMITED"===this._features.message_encoding}}),Object.defineProperty(f.prototype,"packed",{get:function(){return"PACKED"===this._features.repeated_field_encoding}}),Object.defineProperty(f.prototype,"hasPresence",{get:function(){return!this.repeated&&!this.map&&(this.partOf||this.declaringField||this.extensionField||"IMPLICIT"!==this._features.field_presence)}}),f.prototype.setOption=function(e,t,r){return n.prototype.setOption.call(this,e,t,r)},f.prototype.toJSON=function(e){var t=!!e&&!!e.keepComments;return a.toObject(["edition",this._editionToJSON(),"rule","optional"!==this.rule&&this.rule||void 0,"type",this.type,"id",this.id,"extend",this.extend,"options",this.options,"comment",t?this.comment:void 0])},f.prototype.resolve=function(){if(this.resolved)return this;if(void 0===(this.typeDefault=s.defaults[this.type])?(this.resolvedType=(this.declaringField?this.declaringField.parent:this.parent).lookupTypeOrEnum(this.type),this.resolvedType instanceof i?this.typeDefault=null:this.typeDefault=this.resolvedType.values[Object.keys(this.resolvedType.values)[0]]):this.options&&this.options.proto3_optional&&(this.typeDefault=null),this.options&&null!=this.options.default&&(this.typeDefault=this.options.default,this.resolvedType instanceof o&&"string"==typeof this.typeDefault&&(this.typeDefault=this.resolvedType.values[this.typeDefault])),this.options&&(void 0===this.options.packed||!this.resolvedType||this.resolvedType instanceof o||delete this.options.packed,Object.keys(this.options).length||(this.options=void 0)),this.long)this.typeDefault=a.Long.fromNumber(this.typeDefault,"u"===this.type.charAt(0)),Object.freeze&&Object.freeze(this.typeDefault);else if(this.bytes&&"string"==typeof this.typeDefault){var e;a.base64.test(this.typeDefault)?a.base64.decode(this.typeDefault,e=a.newBuffer(a.base64.length(this.typeDefault)),0):a.utf8.write(this.typeDefault,e=a.newBuffer(a.utf8.length(this.typeDefault)),0),this.typeDefault=e}return this.map?this.defaultValue=a.emptyObject:this.repeated?this.defaultValue=a.emptyArray:this.defaultValue=this.typeDefault,this.parent instanceof i&&(this.parent.ctor.prototype[this.name]=this.defaultValue),n.prototype.resolve.call(this)},f.prototype._inferLegacyProtoFeatures=function(e){if("proto2"!==e&&"proto3"!==e)return{};var t={};if("required"===this.rule&&(t.field_presence="LEGACY_REQUIRED"),this.parent&&void 0===s.defaults[this.type]){var r=this.parent.get(this.type.split(".").pop());r&&r instanceof i&&r.group&&(t.message_encoding="DELIMITED")}return!0===this.getOption("packed")?t.repeated_field_encoding="PACKED":!1===this.getOption("packed")&&(t.repeated_field_encoding="EXPANDED"),t},f.prototype._resolveFeatures=function(e){return n.prototype._resolveFeatures.call(this,this._edition||e)},f.d=function(e,t,r,i){return"function"==typeof t?t=a.decorateType(t).name:t&&"object"==typeof t&&(t=a.decorateEnum(t).name),function(n,o){a.decorateType(n.constructor).add(new f(o,e,t,r,{default:i}))}},f._configure=function(e){i=e}},5325:function(e,t,r){var i=e.exports=r(4394);function n(e,t,r){return"function"==typeof t?(r=t,t=new i.Root):t||(t=new i.Root),t.load(e,r)}function o(e,t){return t||(t=new i.Root),t.loadSync(e)}i.build="light",i.load=n,i.loadSync=o,i.encoder=r(1080),i.decoder=r(7728),i.verifier=r(420),i.converter=r(744),i.ReflectionObject=r(7209),i.Namespace=r(8923),i.Root=r(5330),i.Enum=r(5643),i.Type=r(7882),i.Field=r(1344),i.OneOf=r(1457),i.MapField=r(8252),i.Service=r(9687),i.Method=r(8811),i.Message=r(2551),i.wrappers=r(6434),i.types=r(361),i.util=r(3262),i.ReflectionObject._configure(i.Root),i.Namespace._configure(i.Type,i.Service,i.Enum),i.Root._configure(i.Type),i.Field._configure(i.Type)},4394:function(e,t,r){var i=t;function n(){i.util._configure(),i.Writer._configure(i.BufferWriter),i.Reader._configure(i.BufferReader)}i.build="minimal",i.Writer=r(3449),i.BufferWriter=r(818),i.Reader=r(6237),i.BufferReader=r(3158),i.util=r(3610),i.rpc=r(5047),i.roots=r(4529),i.configure=n,n()},9100:function(e,t,r){var i=e.exports=r(5325);i.build="full",i.tokenize=r(527),i.parse=r(4863),i.common=r(5095),i.Root._configure(i.Type,i.parse,i.common)},8252:function(e,t,r){e.exports=s;var i=r(1344);((s.prototype=Object.create(i.prototype)).constructor=s).className="MapField";var n=r(361),o=r(3262);function s(e,t,r,n,s,a){if(i.call(this,e,t,n,void 0,void 0,s,a),!o.isString(r))throw TypeError("keyType must be a string");this.keyType=r,this.resolvedKeyType=null,this.map=!0}s.fromJSON=function(e,t){return new s(e,t.id,t.keyType,t.type,t.options,t.comment)},s.prototype.toJSON=function(e){var t=!!e&&!!e.keepComments;return o.toObject(["keyType",this.keyType,"type",this.type,"id",this.id,"extend",this.extend,"options",this.options,"comment",t?this.comment:void 0])},s.prototype.resolve=function(){if(this.resolved)return this;if(void 0===n.mapKey[this.keyType])throw Error("invalid key type: "+this.keyType);return i.prototype.resolve.call(this)},s.d=function(e,t,r){return"function"==typeof r?r=o.decorateType(r).name:r&&"object"==typeof r&&(r=o.decorateEnum(r).name),function(i,n){o.decorateType(i.constructor).add(new s(n,e,t,r))}}},2551:function(e,t,r){e.exports=n;var i=r(3610);function n(e){if(e)for(var t=Object.keys(e),r=0;rt)return!0}return!1},p.isReservedName=function(e,t){if(e){for(var r=0;r0;){var i=e.shift();if(r.nested&&r.nested[i]){if(!((r=r.nested[i])instanceof p))throw Error("path conflicts with non-namespace objects")}else r.add(r=new p(i))}return t&&r.addJSON(t),r},p.prototype.resolveAll=function(){if(!this._needsRecursiveResolve)return this;this._resolveFeaturesRecursive(this._edition);var e=this.nestedArray,t=0;for(this.resolve();t{t._resolveFeaturesRecursive(e)})),this},p.prototype.lookup=function(e,t,r){if("boolean"==typeof t?(r=t,t=void 0):t&&!Array.isArray(t)&&(t=[t]),u.isString(e)&&e.length){if("."===e)return this.root;e=e.split(".")}else if(!e.length)return this;var i=e.join(".");if(""===e[0])return this.root.lookup(e.slice(1),t);var n=this.root._fullyQualifiedObjects&&this.root._fullyQualifiedObjects["."+i];if(n&&(!t||t.indexOf(n.constructor)>-1)||(n=this._lookupImpl(e,i))&&(!t||t.indexOf(n.constructor)>-1))return n;if(r)return null;for(var o=this;o.parent;){if((n=o.parent._lookupImpl(e,i))&&(!t||t.indexOf(n.constructor)>-1))return n;o=o.parent}return null},p.prototype._lookupImpl=function(e,t){if(Object.prototype.hasOwnProperty.call(this._lookupCache,t))return this._lookupCache[t];var r=this.get(e[0]),i=null;if(r)1===e.length?i=r:r instanceof p&&(e=e.slice(1),i=r._lookupImpl(e,e.join(".")));else for(var n=0;n-1&&this.oneof.splice(t,1),e.partOf=null,this},s.prototype.onAdd=function(e){i.prototype.onAdd.call(this,e);for(var t=this,r=0;r{e._edition=L,Object.keys($).forEach(t=>{void 0===e.getOption(t)&&e.setOption(t,$[t],!0)})})}function q(e,t,r){var i=k.filename;return r||(k.filename=null),Error("illegal "+(t||"token")+" '"+e+"' ("+(i?i+", ":"")+"line "+N.line+")")}function z(){var e,t=[];do{if('"'!==(e=R())&&"'"!==e)throw q(e);t.push(R()),B(e),e=I()}while('"'===e||"'"===e);return t.join("")}function U(e){var t=R();switch(t){case"'":case'"':return F(t),z();case"true":case"TRUE":return!0;case"false":case"FALSE":return!1}try{return W(t,!0)}catch(r){if(e&&j.test(t))return t;throw q(t,"value")}}function H(e,t){do if(t&&('"'===(r=I())||"'"===r)){var r,i,n=z();if(e.push(n),L>=2023)throw q(n,"id")}else try{e.push([i=G(R()),B("to",!0)?G(R()):i])}catch(i){if(t&&j.test(r)&&L>=2023)e.push(r);else throw i}while(B(",",!0));var o={options:void 0};o.setOption=function(e,t){void 0===this.options&&(this.options={}),this.options[e]=t},ee(o,function(e){if("option"===e)eu(o,e),B(";");else throw q(e)},function(){ec(o)})}function W(e,t){var r=1;switch("-"===e.charAt(0)&&(r=-1,e=e.substring(1)),e){case"inf":case"INF":case"Inf":return 1/0*r;case"nan":case"NAN":case"Nan":case"NaN":return NaN;case"0":return 0}if(y.test(e))return r*parseInt(e,10);if(m.test(e))return r*parseInt(e,16);if(b.test(e))return r*parseInt(e,8);if(O.test(e))return r*parseFloat(e);throw q(e,"number",t)}function G(e,t){switch(e){case"max":case"MAX":case"Max":return 0x1fffffff;case"0":return 0}if(!t&&"-"===e.charAt(0))throw q(e,"id");if(v.test(e))return parseInt(e,10);if(g.test(e))return parseInt(e,16);if(w.test(e))return parseInt(e,8);throw q(e,"id")}function X(){if(void 0!==x)throw q("package");if(x=R(),!j.test(x))throw q(x,"name");C=C.define(x),B(";")}function Z(){var e,t=I();switch(t){case"weak":e=S||(S=[]),R();break;case"public":R();default:e=E||(E=[])}t=z(),B(";"),e.push(t)}function K(){if(B("="),(L=z())<2023)throw q(L,"syntax");B(";")}function Q(){if(B("="),!["2023"].includes(L=z()))throw q(L,"edition");B(";")}function Y(e,t){switch(t){case"option":return eu(e,t),B(";"),!0;case"message":return et(e,t),!0;case"enum":return es(e,t),!0;case"service":return eh(e,t),!0;case"extend":return ey(e,t),!0}return!1}function ee(e,t,r){var i,n=N.line;if(e&&("string"!=typeof e.comment&&(e.comment=P()),e.filename=k.filename),B("{",!0)){for(;"}"!==(i=R());)t(i);B(";",!0)}else r&&r(),B(";"),e&&("string"!=typeof e.comment||T)&&(e.comment=P(n)||e.comment)}function et(e,t){if(!_.test(t=R()))throw q(t,"type name");var r=new o(t);ee(r,function(e){if(!Y(r,e))switch(e){case"map":en(r,e);break;case"required":if("proto2"!==L)throw q(e);case"repeated":er(r,e);break;case"optional":if("proto3"===L)er(r,"proto3_optional");else if("proto2"!==L)throw q(e);else er(r,"optional");break;case"oneof":eo(r,e);break;case"extensions":H(r.extensions||(r.extensions=[]));break;case"reserved":H(r.reserved||(r.reserved=[]),!0);break;default:if("proto2"===L||!j.test(e))throw q(e);F(e),er(r,"optional")}}),e.add(r),e===C&&J.push(r)}function er(e,t,r){var i=R();if("group"===i)return void ei(e,t);for(;i.endsWith(".")||I().startsWith(".");)i+=R();if(!j.test(i))throw q(i,"type");var n=R();if(!_.test(n))throw q(n,"name");n=V(n),B("=");var o=new s(n,G(R()),i,t,r);if(ee(o,function(e){if("option"===e)eu(o,e),B(";");else throw q(e)},function(){ec(o)}),"proto3_optional"===t){var a=new u("_"+n);o.setOption("proto3_optional",!0),a.add(o),e.add(a)}else e.add(o);e===C&&J.push(o)}function ei(e,t){if(L>=2023)throw q("group");var r=R();if(!_.test(r))throw q(r,"name");var i=d.lcFirst(r);r===i&&(r=d.ucFirst(r)),B("=");var n=G(R()),a=new o(r);a.group=!0;var u=new s(i,n,r,t);u.filename=k.filename,ee(a,function(e){switch(e){case"option":eu(a,e),B(";");break;case"required":case"repeated":er(a,e);break;case"optional":"proto3"===L?er(a,"proto3_optional"):er(a,"optional");break;case"message":et(a,e);break;case"enum":es(a,e);break;case"reserved":H(a.reserved||(a.reserved=[]),!0);break;default:throw q(e)}}),e.add(a).add(u)}function en(e){B("<");var t=R();if(void 0===h.mapKey[t])throw q(t,"type");B(",");var r=R();if(!j.test(r))throw q(r,"type");B(">");var i=R();if(!_.test(i))throw q(i,"name");B("=");var n=new a(V(i),G(R()),t,r);ee(n,function(e){if("option"===e)eu(n,e),B(";");else throw q(e)},function(){ec(n)}),e.add(n)}function eo(e,t){if(!_.test(t=R()))throw q(t,"name");var r=new u(V(t));ee(r,function(e){"option"===e?(eu(r,e),B(";")):(F(e),er(r,"optional"))}),e.add(r)}function es(e,t){if(!_.test(t=R()))throw q(t,"name");var r=new f(t);ee(r,function(e){switch(e){case"option":eu(r,e),B(";");break;case"reserved":H(r.reserved||(r.reserved=[]),!0),void 0===r.reserved&&(r.reserved=[]);break;default:ea(r,e)}}),e.add(r),e===C&&J.push(r)}function ea(e,t){if(!_.test(t))throw q(t,"name");B("=");var r=G(R(),!0),i={options:void 0};i.getOption=function(e){return this.options[e]},i.setOption=function(e,t){c.prototype.setOption.call(i,e,t)},i.setParsedOption=function(){},ee(i,function(e){if("option"===e)eu(i,e),B(";");else throw q(e)},function(){ec(i)}),e.add(t,r,i.comment,i.parsedOptions||i.options)}function eu(e,t){var r,i,n=!0;for("option"===t&&(t=R());"="!==t;){if("("===t){var o=R();B(")"),t="("+o+")"}if(n){if(n=!1,t.includes(".")&&!t.includes("(")){var s=t.split(".");r=s[0]+".",t=s[1];continue}r=t}else i=i?i+=t:t;t=R()}var a=ef(e,i?r.concat(i):r);i=i&&"."===i[0]?i.slice(1):i,ep(e,r=r&&"."===r[r.length-1]?r.slice(0,-1):r,a,i)}function ef(e,t){if(B("{",!0)){for(var r={};!B("}",!0);){if(!_.test(A=R()))throw q(A,"name");if(null===A)throw q(A,"end of input");var i,n,o=A;if(B(":",!0),"{"===I())i=ef(e,t+"."+A);else if("["===I()){if(i=[],B("[",!0)){do n=U(!0),i.push(n);while(B(",",!0));B("]"),void 0!==n&&el(e,t+"."+A,n)}}else i=U(!0),el(e,t+"."+A,i);var s=r[o];s&&(i=[].concat(s).concat(i)),r[o]=i,B(",",!0),B(";",!0)}return r}var a=U(!0);return el(e,t,a),a}function el(e,t,r){if(C===e&&/^features\./.test(t)){$[t]=r;return}e.setOption&&e.setOption(t,r)}function ep(e,t,r,i){e.setParsedOption&&e.setParsedOption(t,r,i)}function ec(e){if(B("[",!0)){do eu(e,"option");while(B(",",!0));B("]")}return e}function eh(e,t){if(!_.test(t=R()))throw q(t,"service name");var r=new l(t);ee(r,function(e){if(!Y(r,e))if("rpc"===e)ed(r,e);else throw q(e)}),e.add(r),e===C&&J.push(r)}function ed(e,t){var r=P(),i=t;if(!_.test(t=R()))throw q(t,"name");var n,o,s,a,u=t;if(B("("),B("stream",!0)&&(o=!0),!j.test(t=R())||(n=t,B(")"),B("returns"),B("("),B("stream",!0)&&(a=!0),!j.test(t=R())))throw q(t);s=t,B(")");var f=new p(u,i,n,s,o,a);f.comment=r,ee(f,function(e){if("option"===e)eu(f,e),B(";");else throw q(e)}),e.add(f)}function ey(e,t){if(!j.test(t=R()))throw q(t,"reference");var r=t;ee(null,function(t){switch(t){case"required":case"repeated":er(e,t,r);break;case"optional":"proto3"===L?er(e,"proto3_optional",r):er(e,"optional",r);break;default:if("proto2"===L||!j.test(t))throw q(t);F(t),er(e,"optional",r)}})}for(;null!==(A=R());)switch(A){case"package":if(!D)throw q(A);X();break;case"import":if(!D)throw q(A);Z();break;case"syntax":if(!D)throw q(A);K();break;case"edition":if(!D)throw q(A);Q();break;case"option":eu(C,A),B(";",!0);break;default:if(Y(C,A)){D=!1;continue}throw q(A)}return M(),k.filename=null,{package:x,imports:E,weakImports:S,root:t}}},6237:function(e,t,r){e.exports=u;var i,n=r(3610),o=n.LongBits,s=n.utf8;function a(e,t){return RangeError("index out of range: "+e.pos+" + "+(t||1)+" > "+e.len)}function u(e){this.buf=e,this.pos=0,this.len=e.length}var f="undefined"!=typeof Uint8Array?function(e){if(e instanceof Uint8Array||Array.isArray(e))return new u(e);throw Error("illegal buffer")}:function(e){if(Array.isArray(e))return new u(e);throw Error("illegal buffer")},l=function(){return n.Buffer?function(e){return(u.create=function(e){return n.Buffer.isBuffer(e)?new i(e):f(e)})(e)}:f};function p(){var e=new o(0,0),t=0;if(this.len-this.pos>4){for(;t<4;++t)if(e.lo=(e.lo|(127&this.buf[this.pos])<<7*t)>>>0,this.buf[this.pos++]<128)return e;if(e.lo=(e.lo|(127&this.buf[this.pos])<<28)>>>0,e.hi=(e.hi|(127&this.buf[this.pos])>>4)>>>0,this.buf[this.pos++]<128)return e;t=0}else{for(;t<3;++t){if(this.pos>=this.len)throw a(this);if(e.lo=(e.lo|(127&this.buf[this.pos])<<7*t)>>>0,this.buf[this.pos++]<128)return e}return e.lo=(e.lo|(127&this.buf[this.pos++])<<7*t)>>>0,e}if(this.len-this.pos>4){for(;t<5;++t)if(e.hi=(e.hi|(127&this.buf[this.pos])<<7*t+3)>>>0,this.buf[this.pos++]<128)return e}else for(;t<5;++t){if(this.pos>=this.len)throw a(this);if(e.hi=(e.hi|(127&this.buf[this.pos])<<7*t+3)>>>0,this.buf[this.pos++]<128)return e}throw Error("invalid varint encoding")}function c(e,t){return(e[t-4]|e[t-3]<<8|e[t-2]<<16|e[t-1]<<24)>>>0}function h(){if(this.pos+8>this.len)throw a(this,8);return new o(c(this.buf,this.pos+=4),c(this.buf,this.pos+=4))}u.create=l(),u.prototype._slice=n.Array.prototype.subarray||n.Array.prototype.slice,u.prototype.uint32=function(){var e=0xffffffff;return function(){if(e=(127&this.buf[this.pos])>>>0,this.buf[this.pos++]<128||(e=(e|(127&this.buf[this.pos])<<7)>>>0,this.buf[this.pos++]<128)||(e=(e|(127&this.buf[this.pos])<<14)>>>0,this.buf[this.pos++]<128)||(e=(e|(127&this.buf[this.pos])<<21)>>>0,this.buf[this.pos++]<128)||(e=(e|(15&this.buf[this.pos])<<28)>>>0,this.buf[this.pos++]<128))return e;if((this.pos+=5)>this.len)throw this.pos=this.len,a(this,10);return e}}(),u.prototype.int32=function(){return 0|this.uint32()},u.prototype.sint32=function(){var e=this.uint32();return e>>>1^-(1&e)},u.prototype.bool=function(){return 0!==this.uint32()},u.prototype.fixed32=function(){if(this.pos+4>this.len)throw a(this,4);return c(this.buf,this.pos+=4)},u.prototype.sfixed32=function(){if(this.pos+4>this.len)throw a(this,4);return 0|c(this.buf,this.pos+=4)},u.prototype.float=function(){if(this.pos+4>this.len)throw a(this,4);var e=n.float.readFloatLE(this.buf,this.pos);return this.pos+=4,e},u.prototype.double=function(){if(this.pos+8>this.len)throw a(this,4);var e=n.float.readDoubleLE(this.buf,this.pos);return this.pos+=8,e},u.prototype.bytes=function(){var e=this.uint32(),t=this.pos,r=this.pos+e;if(r>this.len)throw a(this,e);if(this.pos+=e,Array.isArray(this.buf))return this.buf.slice(t,r);if(t===r){var i=n.Buffer;return i?i.alloc(0):new this.buf.constructor(0)}return this._slice.call(this.buf,t,r)},u.prototype.string=function(){var e=this.bytes();return s.read(e,0,e.length)},u.prototype.skip=function(e){if("number"==typeof e){if(this.pos+e>this.len)throw a(this,e);this.pos+=e}else do if(this.pos>=this.len)throw a(this);while(128&this.buf[this.pos++]);return this},u.prototype.skipType=function(e){switch(e){case 0:this.skip();break;case 1:this.skip(8);break;case 2:this.skip(this.uint32());break;case 3:for(;4!=(e=7&this.uint32());)this.skipType(e);break;case 5:this.skip(4);break;default:throw Error("invalid wire type "+e+" at offset "+this.pos)}return this},u._configure=function(e){i=e,u.create=l(),i._configure();var t=n.Long?"toLong":"toNumber";n.merge(u.prototype,{int64:function(){return p.call(this)[t](!1)},uint64:function(){return p.call(this)[t](!0)},sint64:function(){return p.call(this).zzDecode()[t](!1)},fixed64:function(){return h.call(this)[t](!0)},sfixed64:function(){return h.call(this)[t](!1)}})}},3158:function(e,t,r){e.exports=o;var i=r(6237);(o.prototype=Object.create(i.prototype)).constructor=o;var n=r(3610);function o(e){i.call(this,e)}o._configure=function(){n.Buffer&&(o.prototype._slice=n.Buffer.prototype.slice)},o.prototype.string=function(){var e=this.uint32();return this.buf.utf8Slice?this.buf.utf8Slice(this.pos,this.pos=Math.min(this.pos+e,this.len)):this.buf.toString("utf-8",this.pos,this.pos=Math.min(this.pos+e,this.len))},o._configure()},5330:function(e,t,r){e.exports=p;var i,n,o,s=r(8923);((p.prototype=Object.create(s.prototype)).constructor=p).className="Root";var a=r(1344),u=r(5643),f=r(1457),l=r(3262);function p(e){s.call(this,"",e),this.deferred=[],this.files=[],this._edition="proto2",this._fullyQualifiedObjects={}}function c(){}p.fromJSON=function(e,t){return t||(t=new p),e.options&&t.setOptions(e.options),t.addJSON(e.nested).resolveAll()},p.prototype.resolvePath=l.path.resolve,p.prototype.fetch=l.fetch,p.prototype.load=function e(t,r,i){"function"==typeof r&&(i=r,r=void 0);var s=this;if(!i)return l.asPromise(e,s,t,r);var a=i===c;function u(e,t){if(i){if(a)throw e;t&&t.resolveAll();var r=i;i=null,r(e,t)}}function f(e){var t=e.lastIndexOf("google/protobuf/");if(t>-1){var r=e.substring(t);if(r in o)return r}return null}function p(e,t){try{if(l.isString(t)&&"{"===t.charAt(0)&&(t=JSON.parse(t)),l.isString(t)){n.filename=e;var i,o=n(t,s,r),p=0;if(o.imports)for(;p-1)){if(s.files.push(e),e in o)return void(a?p(e,o[e]):(++d,setTimeout(function(){--d,p(e,o[e])})));if(a){var r;try{r=l.fs.readFileSync(e).toString("utf8")}catch(e){t||u(e);return}p(e,r)}else++d,s.fetch(e,function(r,n){if(--d,i){if(r)return void(t?d||u(null,s):u(r));p(e,n)}})}}var d=0;l.isString(t)&&(t=[t]);for(var y,v=0;v-1&&this.deferred.splice(t,1)}}else if(e instanceof u)h.test(e.name)&&delete e.parent[e.name];else if(e instanceof s){for(var r=0;r{t._resolveFeaturesRecursive(e)})),this},a.prototype.add=function(e){if(this.get(e.name))throw Error("duplicate name '"+e.name+"' in "+this);return e instanceof n?(this.methods[e.name]=e,e.parent=this,u(this)):i.prototype.add.call(this,e)},a.prototype.remove=function(e){if(e instanceof n){if(this.methods[e.name]!==e)throw Error(e+" is not a member of "+this);return delete this.methods[e.name],e.parent=null,u(this)}return i.prototype.remove.call(this,e)},a.prototype.create=function(e,t,r){for(var i,n=new s.Service(e,t,r),a=0;a]/g,r=/(?:"([^"\\]*(?:\\.[^"\\]*)*)")/g,i=/(?:'([^'\\]*(?:\\.[^'\\]*)*)')/g,n=/^ *[*/]+ */,o=/^\s*\*?\/*/,s=/\n/g,a=/\s/,u=/\\(.?)/g,f={0:"\0",r:"\r",n:"\n",t:" "};function l(e){return e.replace(u,function(e,t){switch(t){case"\\":case"":return t;default:return f[t]||""}})}function p(e,u){e=e.toString();var f=0,p=e.length,c=1,h=0,d={},y=[],v=null;function m(e){return Error("illegal "+e+" (line "+c+")")}function g(){var t="'"===v?i:r;t.lastIndex=f-1;var n=t.exec(e);if(!n)throw m("string");return f=t.lastIndex,k(v),v=null,l(n[1])}function b(t){return e.charAt(t)}function w(t,r,i){var a,f={type:e.charAt(t++),lineEmpty:!1,leading:i},l=t-(u?2:3);do if(--l<0||"\n"===(a=e.charAt(l))){f.lineEmpty=!0;break}while(" "===a||" "===a);for(var p=e.substring(t,r).split(s),y=0;y0)return y.shift();if(v)return g();var r,i,n,o,s,l=0===f;do{if(f===p)return null;for(r=!1;a.test(n=b(f));)if("\n"===n&&(l=!0,++c),++f===p)return null;if("/"===b(f)){if(++f===p)throw m("comment");if("/"===b(f))if(u){if(o=f,s=!1,O(f-1)){s=!0;do if((f=_(f))===p||(f++,!l))break;while(O(f))}else f=Math.min(p,_(f)+1);s&&(w(o,f,l),l=!0),c++,r=!0}else{for(s="/"===b(o=f+1);"\n"!==b(++f);)if(f===p)return null;++f,s&&(w(o,f-1,l),l=!0),++c,r=!0}else{if("*"!==(n=b(f)))return"/";o=f+1,s=u||"*"===b(o);do{if("\n"===n&&++c,++f===p)throw m("comment");i=n,n=b(f)}while("*"!==i||"/"!==n);++f,s&&(w(o,f-2,l),l=!0),r=!0}}}while(r);var h=f;if(t.lastIndex=0,!t.test(b(h++)))for(;h{t._resolveFeatures(e)}),this.fieldsArray.forEach(t=>{t._resolveFeatures(e)})),this},g.prototype.get=function(e){return this.fields[e]||this.oneofs&&this.oneofs[e]||this.nested&&this.nested[e]||null},g.prototype.add=function(e){if(this.get(e.name))throw Error("duplicate name '"+e.name+"' in "+this);if(e instanceof s&&void 0===e.extend){if(this._fieldsById?this._fieldsById[e.id]:this.fieldsById[e.id])throw Error("duplicate id "+e.id+" in "+this);if(this.isReservedId(e.id))throw Error("id "+e.id+" is reserved in "+this);if(this.isReservedName(e.name))throw Error("name '"+e.name+"' is reserved in "+this);return e.parent&&e.parent.remove(e),this.fields[e.name]=e,e.message=this,e.onAdd(this),b(this)}return e instanceof o?(this.oneofs||(this.oneofs={}),this.oneofs[e.name]=e,e.onAdd(this),b(this)):i.prototype.add.call(this,e)},g.prototype.remove=function(e){if(e instanceof s&&void 0===e.extend){if(!this.fields||this.fields[e.name]!==e)throw Error(e+" is not a member of "+this);return delete this.fields[e.name],e.parent=null,e.onRemove(this),b(this)}if(e instanceof o){if(!this.oneofs||this.oneofs[e.name]!==e)throw Error(e+" is not a member of "+this);return delete this.oneofs[e.name],e.parent=null,e.onRemove(this),b(this)}return i.prototype.remove.call(this,e)},g.prototype.isReservedId=function(e){return i.isReservedId(this.reserved,e)},g.prototype.isReservedName=function(e){return i.isReservedName(this.reserved,e)},g.prototype.create=function(e){return new this.ctor(e)},g.prototype.setup=function(){for(var e=this.fullName,t=[],r=0;r0)e[o]=n(e[o]||{},t,r);else{var s=e[o];if(s&&i)return e;s&&(r=[].concat(s).concat(r)),e[o]=r}return e}if("object"!=typeof e)throw TypeError("dst must be an object");if(!t)throw TypeError("path must be specified");return n(e,t=t.split("."),r)},Object.defineProperty(o,"decorateRoot",{get:function(){return s.decorated||(s.decorated=new(r(5330)))}})},2239:function(e,t,r){e.exports=n;var i=r(3610);function n(e,t){this.lo=e>>>0,this.hi=t>>>0}var o=n.zero=new n(0,0);o.toNumber=function(){return 0},o.zzEncode=o.zzDecode=function(){return this},o.length=function(){return 1};var s=n.zeroHash="\0\0\0\0\0\0\0\0";n.fromNumber=function(e){if(0===e)return o;var t=e<0;t&&(e=-e);var r=e>>>0,i=(e-r)/0x100000000>>>0;return t&&(i=~i>>>0,r=~r>>>0,++r>0xffffffff&&(r=0,++i>0xffffffff&&(i=0))),new n(r,i)},n.from=function(e){if("number"==typeof e)return n.fromNumber(e);if(i.isString(e))if(!i.Long)return n.fromNumber(parseInt(e,10));else e=i.Long.fromString(e);return e.low||e.high?new n(e.low>>>0,e.high>>>0):o},n.prototype.toNumber=function(e){if(!e&&this.hi>>>31){var t=~this.lo+1>>>0,r=~this.hi>>>0;return t||(r=r+1>>>0),-(t+0x100000000*r)}return this.lo+0x100000000*this.hi},n.prototype.toLong=function(e){return i.Long?new i.Long(0|this.lo,0|this.hi,!!e):{low:0|this.lo,high:0|this.hi,unsigned:!!e}};var a=String.prototype.charCodeAt;n.fromHash=function(e){return e===s?o:new n((a.call(e,0)|a.call(e,1)<<8|a.call(e,2)<<16|a.call(e,3)<<24)>>>0,(a.call(e,4)|a.call(e,5)<<8|a.call(e,6)<<16|a.call(e,7)<<24)>>>0)},n.prototype.toHash=function(){return String.fromCharCode(255&this.lo,this.lo>>>8&255,this.lo>>>16&255,this.lo>>>24,255&this.hi,this.hi>>>8&255,this.hi>>>16&255,this.hi>>>24)},n.prototype.zzEncode=function(){var e=this.hi>>31;return this.hi=((this.hi<<1|this.lo>>>31)^e)>>>0,this.lo=(this.lo<<1^e)>>>0,this},n.prototype.zzDecode=function(){var e=-(1&this.lo);return this.lo=((this.lo>>>1|this.hi<<31)^e)>>>0,this.hi=(this.hi>>>1^e)>>>0,this},n.prototype.length=function(){var e=this.lo,t=(this.lo>>>28|this.hi<<4)>>>0,r=this.hi>>>24;return 0===r?0===t?e<16384?e<128?1:2:e<2097152?3:4:t<16384?t<128?5:6:t<2097152?7:8:r<128?9:10}},3610:function(e,t,r){var i=t;function n(e,t,r){for(var i=Object.keys(t),n=0;n0)},i.Buffer=function(){try{var e=i.inquire("buffer").Buffer;return e.prototype.utf8Write?e:null}catch(e){return null}}(),i._Buffer_from=null,i._Buffer_allocUnsafe=null,i.newBuffer=function(e){return"number"==typeof e?i.Buffer?i._Buffer_allocUnsafe(e):new i.Array(e):i.Buffer?i._Buffer_from(e):"undefined"==typeof Uint8Array?e:new Uint8Array(e)},i.Array="undefined"!=typeof Uint8Array?Uint8Array:Array,i.Long=i.global.dcodeIO&&i.global.dcodeIO.Long||i.global.Long||i.inquire("long"),i.key2Re=/^true|false|0|1$/,i.key32Re=/^-?(?:0|[1-9][0-9]*)$/,i.key64Re=/^(?:[\\x00-\\xff]{8}|-?(?:0|[1-9][0-9]*))$/,i.longToHash=function(e){return e?i.LongBits.from(e).toHash():i.LongBits.zeroHash},i.longFromHash=function(e,t){var r=i.LongBits.fromHash(e);return i.Long?i.Long.fromBits(r.lo,r.hi,t):r.toNumber(!!t)},i.merge=n,i.lcFirst=function(e){return e.charAt(0).toLowerCase()+e.substring(1)},i.newError=o,i.ProtocolError=o("ProtocolError"),i.oneOfGetter=function(e){for(var t={},r=0;r-1;--r)if(1===t[e[r]]&&void 0!==this[e[r]]&&null!==this[e[r]])return e[r]}},i.oneOfSetter=function(e){return function(t){for(var r=0;r127;)t[r++]=127&e|128,e>>>=7;t[r]=e}function y(e,t){this.len=e,this.next=void 0,this.val=t}function v(e,t,r){for(;e.hi;)t[r++]=127&e.lo|128,e.lo=(e.lo>>>7|e.hi<<25)>>>0,e.hi>>>=7;for(;e.lo>127;)t[r++]=127&e.lo|128,e.lo=e.lo>>>7;t[r++]=e.lo}function m(e,t,r){t[r]=255&e,t[r+1]=e>>>8&255,t[r+2]=e>>>16&255,t[r+3]=e>>>24}p.create=c(),p.alloc=function(e){return new n.Array(e)},n.Array!==Array&&(p.alloc=n.pool(p.alloc,n.Array.prototype.subarray)),p.prototype._push=function(e,t,r){return this.tail=this.tail.next=new u(e,t,r),this.len+=t,this},y.prototype=Object.create(u.prototype),y.prototype.fn=d,p.prototype.uint32=function(e){return this.len+=(this.tail=this.tail.next=new y((e>>>=0)<128?1:e<16384?2:e<2097152?3:e<0x10000000?4:5,e)).len,this},p.prototype.int32=function(e){return e<0?this._push(v,10,o.fromNumber(e)):this.uint32(e)},p.prototype.sint32=function(e){return this.uint32((e<<1^e>>31)>>>0)},p.prototype.uint64=function(e){var t=o.from(e);return this._push(v,t.length(),t)},p.prototype.int64=p.prototype.uint64,p.prototype.sint64=function(e){var t=o.from(e).zzEncode();return this._push(v,t.length(),t)},p.prototype.bool=function(e){return this._push(h,1,+!!e)},p.prototype.fixed32=function(e){return this._push(m,4,e>>>0)},p.prototype.sfixed32=p.prototype.fixed32,p.prototype.fixed64=function(e){var t=o.from(e);return this._push(m,4,t.lo)._push(m,4,t.hi)},p.prototype.sfixed64=p.prototype.fixed64,p.prototype.float=function(e){return this._push(n.float.writeFloatLE,4,e)},p.prototype.double=function(e){return this._push(n.float.writeDoubleLE,8,e)};var g=n.Array.prototype.set?function(e,t,r){t.set(e,r)}:function(e,t,r){for(var i=0;i>>0;if(!t)return this._push(h,1,0);if(n.isString(e)){var r=p.alloc(t=s.length(e));s.decode(e,r,0),e=r}return this.uint32(t)._push(g,t,e)},p.prototype.string=function(e){var t=a.length(e);return t?this.uint32(t)._push(a.write,t,e):this._push(h,1,0)},p.prototype.fork=function(){return this.states=new l(this),this.head=this.tail=new u(f,0,0),this.len=0,this},p.prototype.reset=function(){return this.states?(this.head=this.states.head,this.tail=this.states.tail,this.len=this.states.len,this.states=this.states.next):(this.head=this.tail=new u(f,0,0),this.len=0),this},p.prototype.ldelim=function(){var e=this.head,t=this.tail,r=this.len;return this.reset().uint32(r),r&&(this.tail.next=e.next,this.tail=t,this.len+=r),this},p.prototype.finish=function(){for(var e=this.head.next,t=this.constructor.alloc(this.len),r=0;e;)e.fn(e.val,t,r),r+=e.len,e=e.next;return t},p._configure=function(e){i=e,p.create=c(),i._configure()}},818:function(e,t,r){e.exports=o;var i=r(3449);(o.prototype=Object.create(i.prototype)).constructor=o;var n=r(3610);function o(){i.call(this)}function s(e,t,r){e.length<40?n.utf8.write(e,t,r):t.utf8Write?t.utf8Write(e,r):t.write(e,r)}o._configure=function(){o.alloc=n._Buffer_allocUnsafe,o.writeBytesBuffer=n.Buffer&&n.Buffer.prototype instanceof Uint8Array&&"set"===n.Buffer.prototype.set.name?function(e,t,r){t.set(e,r)}:function(e,t,r){if(e.copy)e.copy(t,r,0,e.length);else for(var i=0;i>>0;return this.uint32(t),t&&this._push(o.writeBytesBuffer,t,e),this},o.prototype.string=function(e){var t=n.Buffer.byteLength(e);return this.uint32(t),t&&this._push(s,t,e),this},o._configure()}},__webpack_module_cache__={};function __webpack_require__(e){var t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;var r=__webpack_module_cache__[e]={exports:{}};return __webpack_modules__[e].call(r.exports,r,r.exports,__webpack_require__),r.exports}var __webpack_exports__=__webpack_require__(2549);module.exports=__webpack_exports__})(); \ No newline at end of file diff --git a/packages/node_modules/protobufjs/minimal.js b/packages/node_modules/protobufjs/minimal.js index 52f879a379a..4cac663f519 100644 --- a/packages/node_modules/protobufjs/minimal.js +++ b/packages/node_modules/protobufjs/minimal.js @@ -1 +1 @@ -(()=>{"use strict";var __webpack_modules__={8045:function(t){t.exports=r;function r(t,r){for(var e=Array(arguments.length-1),n=0,i=2,o=!0;i1&&"="===t.charAt(r);)++e;return Math.ceil(3*t.length)/4-e};for(var n=Array(64),i=Array(123),o=0;o<64;)i[n[o]=o<26?o+65:o<52?o+71:o<62?o-4:o-59|43]=o++;e.encode=function(t,r,e){for(var i,o=null,s=[],u=0,f=0;r>2],i=(3&h)<<4,f=1;break;case 1:s[u++]=n[i|h>>4],i=(15&h)<<2,f=2;break;case 2:s[u++]=n[i|h>>6],s[u++]=n[63&h],f=0}u>8191&&((o||(o=[])).push(String.fromCharCode.apply(String,s)),u=0)}return(f&&(s[u++]=n[i],s[u++]=61,1===f&&(s[u++]=61)),o)?(u&&o.push(String.fromCharCode.apply(String,s.slice(0,u))),o.join("")):String.fromCharCode.apply(String,s.slice(0,u))};var s="invalid encoding";e.decode=function(t,r,e){for(var n,o=e,u=0,f=0;f1)break;if(void 0===(h=i[h]))throw Error(s);switch(u){case 0:n=h,u=1;break;case 1:r[e++]=n<<2|(48&h)>>4,n=h,u=2;break;case 2:r[e++]=(15&n)<<4|(60&h)>>2,n=h,u=3;break;case 3:r[e++]=(3&n)<<6|h,u=0}}if(1===u)throw Error(s);return e-o},e.test=function(t){return/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(t)}},4358:function(t){function r(){this._listeners={}}t.exports=r,r.prototype.on=function(t,r,e){return(this._listeners[t]||(this._listeners[t]=[])).push({fn:r,ctx:e||this}),this},r.prototype.off=function(t,r){if(void 0===t)this._listeners={};else if(void 0===r)this._listeners[t]=[];else for(var e=this._listeners[t],n=0;n0?0:0x80000000,e,n);else if(isNaN(r))t(0x7fc00000,e,n);else if(r>34028234663852886e22)t((i<<31|0x7f800000)>>>0,e,n);else if(r<11754943508222875e-54)t((i<<31|Math.round(r/1401298464324817e-60))>>>0,e,n);else{var o=Math.floor(Math.log(r)/Math.LN2),s=8388607&Math.round(r*Math.pow(2,-o)*8388608);t((i<<31|o+127<<23|s)>>>0,e,n)}}function s(t,r,e){var n=t(r,e),i=(n>>31)*2+1,o=n>>>23&255,s=8388607&n;return 255===o?s?NaN:1/0*i:0===o?1401298464324817e-60*i*s:i*Math.pow(2,o-150)*(s+8388608)}t.writeFloatLE=r.bind(null,e),t.writeFloatBE=r.bind(null,n),t.readFloatLE=s.bind(null,i),t.readFloatBE=s.bind(null,o)}(),"undefined"!=typeof Float64Array?!function(){var r=new Float64Array([-0]),e=new Uint8Array(r.buffer),n=128===e[7];function i(t,n,i){r[0]=t,n[i]=e[0],n[i+1]=e[1],n[i+2]=e[2],n[i+3]=e[3],n[i+4]=e[4],n[i+5]=e[5],n[i+6]=e[6],n[i+7]=e[7]}function o(t,n,i){r[0]=t,n[i]=e[7],n[i+1]=e[6],n[i+2]=e[5],n[i+3]=e[4],n[i+4]=e[3],n[i+5]=e[2],n[i+6]=e[1],n[i+7]=e[0]}function s(t,n){return e[0]=t[n],e[1]=t[n+1],e[2]=t[n+2],e[3]=t[n+3],e[4]=t[n+4],e[5]=t[n+5],e[6]=t[n+6],e[7]=t[n+7],r[0]}function u(t,n){return e[7]=t[n],e[6]=t[n+1],e[5]=t[n+2],e[4]=t[n+3],e[3]=t[n+4],e[2]=t[n+5],e[1]=t[n+6],e[0]=t[n+7],r[0]}t.writeDoubleLE=n?i:o,t.writeDoubleBE=n?o:i,t.readDoubleLE=n?s:u,t.readDoubleBE=n?u:s}():!function(){function r(t,r,e,n,i,o){var s,u=+(n<0);if(u&&(n=-n),0===n)t(0,i,o+r),t(1/n>0?0:0x80000000,i,o+e);else if(isNaN(n))t(0,i,o+r),t(0x7ff80000,i,o+e);else if(n>17976931348623157e292)t(0,i,o+r),t((u<<31|0x7ff00000)>>>0,i,o+e);else if(n<22250738585072014e-324)t((s=n/5e-324)>>>0,i,o+r),t((u<<31|s/0x100000000)>>>0,i,o+e);else{var f=Math.floor(Math.log(n)/Math.LN2);1024===f&&(f=1023),t(0x10000000000000*(s=n*Math.pow(2,-f))>>>0,i,o+r),t((u<<31|f+1023<<20|1048576*s&1048575)>>>0,i,o+e)}}function s(t,r,e,n,i){var o=t(n,i+r),s=t(n,i+e),u=(s>>31)*2+1,f=s>>>20&2047,h=0x100000000*(1048575&s)+o;return 2047===f?h?NaN:1/0*u:0===f?5e-324*u*h:u*Math.pow(2,f-1075)*(h+0x10000000000000)}t.writeDoubleLE=r.bind(null,e,0,4),t.writeDoubleBE=r.bind(null,n,4,0),t.readDoubleLE=s.bind(null,i,0,4),t.readDoubleBE=s.bind(null,o,4,0)}(),t}function e(t,r,e){r[e]=255&t,r[e+1]=t>>>8&255,r[e+2]=t>>>16&255,r[e+3]=t>>>24}function n(t,r,e){r[e]=t>>>24,r[e+1]=t>>>16&255,r[e+2]=t>>>8&255,r[e+3]=255&t}function i(t,r){return(t[r]|t[r+1]<<8|t[r+2]<<16|t[r+3]<<24)>>>0}function o(t,r){return(t[r]<<24|t[r+1]<<16|t[r+2]<<8|t[r+3])>>>0}t.exports=r(r)},4153:function(module){module.exports=inquire;function inquire(moduleName){try{var mod=eval("quire".replace(/^/,"re"))(moduleName);if(mod&&(mod.length||Object.keys(mod).length))return mod}catch(e){}return null}},9390:function(t){t.exports=r;function r(t,r,e){var n=e||8192,i=n>>>1,o=null,s=n;return function(e){if(e<1||e>i)return t(e);s+e>n&&(o=t(n),s=0);var u=r.call(o,s,s+=e);return 7&s&&(s=(7|s)+1),u}}},1447:function(t,r){var e=r;e.length=function(t){for(var r=0,e=0,n=0;n191&&n<224?o[s++]=(31&n)<<6|63&t[r++]:n>239&&n<365?(n=((7&n)<<18|(63&t[r++])<<12|(63&t[r++])<<6|63&t[r++])-65536,o[s++]=55296+(n>>10),o[s++]=56320+(1023&n)):o[s++]=(15&n)<<12|(63&t[r++])<<6|63&t[r++],s>8191&&((i||(i=[])).push(String.fromCharCode.apply(String,o)),s=0);return i?(s&&i.push(String.fromCharCode.apply(String,o.slice(0,s))),i.join("")):String.fromCharCode.apply(String,o.slice(0,s))},e.write=function(t,r,e){for(var n,i,o=e,s=0;s>6|192:((64512&n)==55296&&(64512&(i=t.charCodeAt(s+1)))==56320?(n=65536+((1023&n)<<10)+(1023&i),++s,r[e++]=n>>18|240,r[e++]=n>>12&63|128):r[e++]=n>>12|224,r[e++]=n>>6&63|128),r[e++]=63&n|128);return e-o}},6946:function(t,r,e){t.exports=e(4394)},4394:function(t,r,e){var n=r;function i(){n.util._configure(),n.Writer._configure(n.BufferWriter),n.Reader._configure(n.BufferReader)}n.build="minimal",n.Writer=e(3449),n.BufferWriter=e(818),n.Reader=e(6237),n.BufferReader=e(3158),n.util=e(3610),n.rpc=e(5047),n.roots=e(4529),n.configure=i,i()},6237:function(t,r,e){t.exports=f;var n,i=e(3610),o=i.LongBits,s=i.utf8;function u(t,r){return RangeError("index out of range: "+t.pos+" + "+(r||1)+" > "+t.len)}function f(t){this.buf=t,this.pos=0,this.len=t.length}var h="undefined"!=typeof Uint8Array?function(t){if(t instanceof Uint8Array||Array.isArray(t))return new f(t);throw Error("illegal buffer")}:function(t){if(Array.isArray(t))return new f(t);throw Error("illegal buffer")},l=function(){return i.Buffer?function(t){return(f.create=function(t){return i.Buffer.isBuffer(t)?new n(t):h(t)})(t)}:h};function a(){var t=new o(0,0),r=0;if(this.len-this.pos>4){for(;r<4;++r)if(t.lo=(t.lo|(127&this.buf[this.pos])<<7*r)>>>0,this.buf[this.pos++]<128)return t;if(t.lo=(t.lo|(127&this.buf[this.pos])<<28)>>>0,t.hi=(t.hi|(127&this.buf[this.pos])>>4)>>>0,this.buf[this.pos++]<128)return t;r=0}else{for(;r<3;++r){if(this.pos>=this.len)throw u(this);if(t.lo=(t.lo|(127&this.buf[this.pos])<<7*r)>>>0,this.buf[this.pos++]<128)return t}return t.lo=(t.lo|(127&this.buf[this.pos++])<<7*r)>>>0,t}if(this.len-this.pos>4){for(;r<5;++r)if(t.hi=(t.hi|(127&this.buf[this.pos])<<7*r+3)>>>0,this.buf[this.pos++]<128)return t}else for(;r<5;++r){if(this.pos>=this.len)throw u(this);if(t.hi=(t.hi|(127&this.buf[this.pos])<<7*r+3)>>>0,this.buf[this.pos++]<128)return t}throw Error("invalid varint encoding")}function c(t,r){return(t[r-4]|t[r-3]<<8|t[r-2]<<16|t[r-1]<<24)>>>0}function p(){if(this.pos+8>this.len)throw u(this,8);return new o(c(this.buf,this.pos+=4),c(this.buf,this.pos+=4))}f.create=l(),f.prototype._slice=i.Array.prototype.subarray||i.Array.prototype.slice,f.prototype.uint32=function(){var t=0xffffffff;return function(){if(t=(127&this.buf[this.pos])>>>0,this.buf[this.pos++]<128||(t=(t|(127&this.buf[this.pos])<<7)>>>0,this.buf[this.pos++]<128)||(t=(t|(127&this.buf[this.pos])<<14)>>>0,this.buf[this.pos++]<128)||(t=(t|(127&this.buf[this.pos])<<21)>>>0,this.buf[this.pos++]<128)||(t=(t|(15&this.buf[this.pos])<<28)>>>0,this.buf[this.pos++]<128))return t;if((this.pos+=5)>this.len)throw this.pos=this.len,u(this,10);return t}}(),f.prototype.int32=function(){return 0|this.uint32()},f.prototype.sint32=function(){var t=this.uint32();return t>>>1^-(1&t)},f.prototype.bool=function(){return 0!==this.uint32()},f.prototype.fixed32=function(){if(this.pos+4>this.len)throw u(this,4);return c(this.buf,this.pos+=4)},f.prototype.sfixed32=function(){if(this.pos+4>this.len)throw u(this,4);return 0|c(this.buf,this.pos+=4)},f.prototype.float=function(){if(this.pos+4>this.len)throw u(this,4);var t=i.float.readFloatLE(this.buf,this.pos);return this.pos+=4,t},f.prototype.double=function(){if(this.pos+8>this.len)throw u(this,4);var t=i.float.readDoubleLE(this.buf,this.pos);return this.pos+=8,t},f.prototype.bytes=function(){var t=this.uint32(),r=this.pos,e=this.pos+t;if(e>this.len)throw u(this,t);if(this.pos+=t,Array.isArray(this.buf))return this.buf.slice(r,e);if(r===e){var n=i.Buffer;return n?n.alloc(0):new this.buf.constructor(0)}return this._slice.call(this.buf,r,e)},f.prototype.string=function(){var t=this.bytes();return s.read(t,0,t.length)},f.prototype.skip=function(t){if("number"==typeof t){if(this.pos+t>this.len)throw u(this,t);this.pos+=t}else do if(this.pos>=this.len)throw u(this);while(128&this.buf[this.pos++]);return this},f.prototype.skipType=function(t){switch(t){case 0:this.skip();break;case 1:this.skip(8);break;case 2:this.skip(this.uint32());break;case 3:for(;4!=(t=7&this.uint32());)this.skipType(t);break;case 5:this.skip(4);break;default:throw Error("invalid wire type "+t+" at offset "+this.pos)}return this},f._configure=function(t){n=t,f.create=l(),n._configure();var r=i.Long?"toLong":"toNumber";i.merge(f.prototype,{int64:function(){return a.call(this)[r](!1)},uint64:function(){return a.call(this)[r](!0)},sint64:function(){return a.call(this).zzDecode()[r](!1)},fixed64:function(){return p.call(this)[r](!0)},sfixed64:function(){return p.call(this)[r](!1)}})}},3158:function(t,r,e){t.exports=o;var n=e(6237);(o.prototype=Object.create(n.prototype)).constructor=o;var i=e(3610);function o(t){n.call(this,t)}o._configure=function(){i.Buffer&&(o.prototype._slice=i.Buffer.prototype.slice)},o.prototype.string=function(){var t=this.uint32();return this.buf.utf8Slice?this.buf.utf8Slice(this.pos,this.pos=Math.min(this.pos+t,this.len)):this.buf.toString("utf-8",this.pos,this.pos=Math.min(this.pos+t,this.len))},o._configure()},4529:function(t){t.exports={}},5047:function(t,r,e){r.Service=e(7595)},7595:function(t,r,e){t.exports=i;var n=e(3610);function i(t,r,e){if("function"!=typeof t)throw TypeError("rpcImpl must be a function");n.EventEmitter.call(this),this.rpcImpl=t,this.requestDelimited=!!r,this.responseDelimited=!!e}(i.prototype=Object.create(n.EventEmitter.prototype)).constructor=i,i.prototype.rpcCall=function t(r,e,i,o,s){if(!o)throw TypeError("request must be specified");var u=this;if(!s)return n.asPromise(t,u,r,e,i,o);if(!u.rpcImpl)return void setTimeout(function(){s(Error("already ended"))},0);try{return u.rpcImpl(r,e[u.requestDelimited?"encodeDelimited":"encode"](o).finish(),function(t,e){if(t)return u.emit("error",t,r),s(t);if(null===e)return void u.end(!0);if(!(e instanceof i))try{e=i[u.responseDelimited?"decodeDelimited":"decode"](e)}catch(t){return u.emit("error",t,r),s(t)}return u.emit("data",e,r),s(null,e)})}catch(t){u.emit("error",t,r),setTimeout(function(){s(t)},0);return}},i.prototype.end=function(t){return this.rpcImpl&&(t||this.rpcImpl(null,null,null),this.rpcImpl=null,this.emit("end").off()),this}},2239:function(t,r,e){t.exports=i;var n=e(3610);function i(t,r){this.lo=t>>>0,this.hi=r>>>0}var o=i.zero=new i(0,0);o.toNumber=function(){return 0},o.zzEncode=o.zzDecode=function(){return this},o.length=function(){return 1};var s=i.zeroHash="\0\0\0\0\0\0\0\0";i.fromNumber=function(t){if(0===t)return o;var r=t<0;r&&(t=-t);var e=t>>>0,n=(t-e)/0x100000000>>>0;return r&&(n=~n>>>0,e=~e>>>0,++e>0xffffffff&&(e=0,++n>0xffffffff&&(n=0))),new i(e,n)},i.from=function(t){if("number"==typeof t)return i.fromNumber(t);if(n.isString(t))if(!n.Long)return i.fromNumber(parseInt(t,10));else t=n.Long.fromString(t);return t.low||t.high?new i(t.low>>>0,t.high>>>0):o},i.prototype.toNumber=function(t){if(!t&&this.hi>>>31){var r=~this.lo+1>>>0,e=~this.hi>>>0;return r||(e=e+1>>>0),-(r+0x100000000*e)}return this.lo+0x100000000*this.hi},i.prototype.toLong=function(t){return n.Long?new n.Long(0|this.lo,0|this.hi,!!t):{low:0|this.lo,high:0|this.hi,unsigned:!!t}};var u=String.prototype.charCodeAt;i.fromHash=function(t){return t===s?o:new i((u.call(t,0)|u.call(t,1)<<8|u.call(t,2)<<16|u.call(t,3)<<24)>>>0,(u.call(t,4)|u.call(t,5)<<8|u.call(t,6)<<16|u.call(t,7)<<24)>>>0)},i.prototype.toHash=function(){return String.fromCharCode(255&this.lo,this.lo>>>8&255,this.lo>>>16&255,this.lo>>>24,255&this.hi,this.hi>>>8&255,this.hi>>>16&255,this.hi>>>24)},i.prototype.zzEncode=function(){var t=this.hi>>31;return this.hi=((this.hi<<1|this.lo>>>31)^t)>>>0,this.lo=(this.lo<<1^t)>>>0,this},i.prototype.zzDecode=function(){var t=-(1&this.lo);return this.lo=((this.lo>>>1|this.hi<<31)^t)>>>0,this.hi=(this.hi>>>1^t)>>>0,this},i.prototype.length=function(){var t=this.lo,r=(this.lo>>>28|this.hi<<4)>>>0,e=this.hi>>>24;return 0===e?0===r?t<16384?t<128?1:2:t<2097152?3:4:r<16384?r<128?5:6:r<2097152?7:8:e<128?9:10}},3610:function(t,r,e){var n=r;function i(t,r,e){for(var n=Object.keys(r),i=0;i0)},n.Buffer=function(){try{var t=n.inquire("buffer").Buffer;return t.prototype.utf8Write?t:null}catch(t){return null}}(),n._Buffer_from=null,n._Buffer_allocUnsafe=null,n.newBuffer=function(t){return"number"==typeof t?n.Buffer?n._Buffer_allocUnsafe(t):new n.Array(t):n.Buffer?n._Buffer_from(t):"undefined"==typeof Uint8Array?t:new Uint8Array(t)},n.Array="undefined"!=typeof Uint8Array?Uint8Array:Array,n.Long=n.global.dcodeIO&&n.global.dcodeIO.Long||n.global.Long||n.inquire("long"),n.key2Re=/^true|false|0|1$/,n.key32Re=/^-?(?:0|[1-9][0-9]*)$/,n.key64Re=/^(?:[\\x00-\\xff]{8}|-?(?:0|[1-9][0-9]*))$/,n.longToHash=function(t){return t?n.LongBits.from(t).toHash():n.LongBits.zeroHash},n.longFromHash=function(t,r){var e=n.LongBits.fromHash(t);return n.Long?n.Long.fromBits(e.lo,e.hi,r):e.toNumber(!!r)},n.merge=i,n.lcFirst=function(t){return t.charAt(0).toLowerCase()+t.substring(1)},n.newError=o,n.ProtocolError=o("ProtocolError"),n.oneOfGetter=function(t){for(var r={},e=0;e-1;--e)if(1===r[t[e]]&&void 0!==this[t[e]]&&null!==this[t[e]])return t[e]}},n.oneOfSetter=function(t){return function(r){for(var e=0;e127;)r[e++]=127&t|128,t>>>=7;r[e]=t}function d(t,r){this.len=t,this.next=void 0,this.val=r}function b(t,r,e){for(;t.hi;)r[e++]=127&t.lo|128,t.lo=(t.lo>>>7|t.hi<<25)>>>0,t.hi>>>=7;for(;t.lo>127;)r[e++]=127&t.lo|128,t.lo=t.lo>>>7;r[e++]=t.lo}function g(t,r,e){r[e]=255&t,r[e+1]=t>>>8&255,r[e+2]=t>>>16&255,r[e+3]=t>>>24}a.create=c(),a.alloc=function(t){return new i.Array(t)},i.Array!==Array&&(a.alloc=i.pool(a.alloc,i.Array.prototype.subarray)),a.prototype._push=function(t,r,e){return this.tail=this.tail.next=new f(t,r,e),this.len+=r,this},d.prototype=Object.create(f.prototype),d.prototype.fn=y,a.prototype.uint32=function(t){return this.len+=(this.tail=this.tail.next=new d((t>>>=0)<128?1:t<16384?2:t<2097152?3:t<0x10000000?4:5,t)).len,this},a.prototype.int32=function(t){return t<0?this._push(b,10,o.fromNumber(t)):this.uint32(t)},a.prototype.sint32=function(t){return this.uint32((t<<1^t>>31)>>>0)},a.prototype.uint64=function(t){var r=o.from(t);return this._push(b,r.length(),r)},a.prototype.int64=a.prototype.uint64,a.prototype.sint64=function(t){var r=o.from(t).zzEncode();return this._push(b,r.length(),r)},a.prototype.bool=function(t){return this._push(p,1,+!!t)},a.prototype.fixed32=function(t){return this._push(g,4,t>>>0)},a.prototype.sfixed32=a.prototype.fixed32,a.prototype.fixed64=function(t){var r=o.from(t);return this._push(g,4,r.lo)._push(g,4,r.hi)},a.prototype.sfixed64=a.prototype.fixed64,a.prototype.float=function(t){return this._push(i.float.writeFloatLE,4,t)},a.prototype.double=function(t){return this._push(i.float.writeDoubleLE,8,t)};var v=i.Array.prototype.set?function(t,r,e){r.set(t,e)}:function(t,r,e){for(var n=0;n>>0;if(!r)return this._push(p,1,0);if(i.isString(t)){var e=a.alloc(r=s.length(t));s.decode(t,e,0),t=e}return this.uint32(r)._push(v,r,t)},a.prototype.string=function(t){var r=u.length(t);return r?this.uint32(r)._push(u.write,r,t):this._push(p,1,0)},a.prototype.fork=function(){return this.states=new l(this),this.head=this.tail=new f(h,0,0),this.len=0,this},a.prototype.reset=function(){return this.states?(this.head=this.states.head,this.tail=this.states.tail,this.len=this.states.len,this.states=this.states.next):(this.head=this.tail=new f(h,0,0),this.len=0),this},a.prototype.ldelim=function(){var t=this.head,r=this.tail,e=this.len;return this.reset().uint32(e),e&&(this.tail.next=t.next,this.tail=r,this.len+=e),this},a.prototype.finish=function(){for(var t=this.head.next,r=this.constructor.alloc(this.len),e=0;t;)t.fn(t.val,r,e),e+=t.len,t=t.next;return r},a._configure=function(t){n=t,a.create=c(),n._configure()}},818:function(t,r,e){t.exports=o;var n=e(3449);(o.prototype=Object.create(n.prototype)).constructor=o;var i=e(3610);function o(){n.call(this)}function s(t,r,e){t.length<40?i.utf8.write(t,r,e):r.utf8Write?r.utf8Write(t,e):r.write(t,e)}o._configure=function(){o.alloc=i._Buffer_allocUnsafe,o.writeBytesBuffer=i.Buffer&&i.Buffer.prototype instanceof Uint8Array&&"set"===i.Buffer.prototype.set.name?function(t,r,e){r.set(t,e)}:function(t,r,e){if(t.copy)t.copy(r,e,0,t.length);else for(var n=0;n>>0;return this.uint32(r),r&&this._push(o.writeBytesBuffer,r,t),this},o.prototype.string=function(t){var r=i.Buffer.byteLength(t);return this.uint32(r),r&&this._push(s,r,t),this},o._configure()}},__webpack_module_cache__={};function __webpack_require__(t){var r=__webpack_module_cache__[t];if(void 0!==r)return r.exports;var e=__webpack_module_cache__[t]={exports:{}};return __webpack_modules__[t].call(e.exports,e,e.exports,__webpack_require__),e.exports}var __webpack_exports__=__webpack_require__(6946);module.exports=__webpack_exports__})(); \ No newline at end of file +(()=>{"use strict";var __webpack_modules__={8045:function(t){t.exports=r;function r(t,r){for(var e=Array(arguments.length-1),n=0,i=2,o=!0;i1&&"="===t.charAt(r);)++e;return Math.ceil(3*t.length)/4-e};for(var n=Array(64),i=Array(123),o=0;o<64;)i[n[o]=o<26?o+65:o<52?o+71:o<62?o-4:o-59|43]=o++;e.encode=function(t,r,e){for(var i,o=null,s=[],u=0,f=0;r>2],i=(3&h)<<4,f=1;break;case 1:s[u++]=n[i|h>>4],i=(15&h)<<2,f=2;break;case 2:s[u++]=n[i|h>>6],s[u++]=n[63&h],f=0}u>8191&&((o||(o=[])).push(String.fromCharCode.apply(String,s)),u=0)}return(f&&(s[u++]=n[i],s[u++]=61,1===f&&(s[u++]=61)),o)?(u&&o.push(String.fromCharCode.apply(String,s.slice(0,u))),o.join("")):String.fromCharCode.apply(String,s.slice(0,u))};var s="invalid encoding";e.decode=function(t,r,e){for(var n,o=e,u=0,f=0;f1)break;if(void 0===(h=i[h]))throw Error(s);switch(u){case 0:n=h,u=1;break;case 1:r[e++]=n<<2|(48&h)>>4,n=h,u=2;break;case 2:r[e++]=(15&n)<<4|(60&h)>>2,n=h,u=3;break;case 3:r[e++]=(3&n)<<6|h,u=0}}if(1===u)throw Error(s);return e-o},e.test=function(t){return/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(t)}},1977:function(t){function r(){this._listeners={}}t.exports=r,r.prototype.on=function(t,r,e){return(this._listeners[t]||(this._listeners[t]=[])).push({fn:r,ctx:e||this}),this},r.prototype.off=function(t,r){if(void 0===t)this._listeners={};else if(void 0===r)this._listeners[t]=[];else for(var e=this._listeners[t],n=0;n0?0:0x80000000,e,n);else if(isNaN(r))t(0x7fc00000,e,n);else if(r>34028234663852886e22)t((i<<31|0x7f800000)>>>0,e,n);else if(r<11754943508222875e-54)t((i<<31|Math.round(r/1401298464324817e-60))>>>0,e,n);else{var o=Math.floor(Math.log(r)/Math.LN2),s=8388607&Math.round(r*Math.pow(2,-o)*8388608);t((i<<31|o+127<<23|s)>>>0,e,n)}}function s(t,r,e){var n=t(r,e),i=(n>>31)*2+1,o=n>>>23&255,s=8388607&n;return 255===o?s?NaN:1/0*i:0===o?1401298464324817e-60*i*s:i*Math.pow(2,o-150)*(s+8388608)}t.writeFloatLE=r.bind(null,e),t.writeFloatBE=r.bind(null,n),t.readFloatLE=s.bind(null,i),t.readFloatBE=s.bind(null,o)}(),"undefined"!=typeof Float64Array?!function(){var r=new Float64Array([-0]),e=new Uint8Array(r.buffer),n=128===e[7];function i(t,n,i){r[0]=t,n[i]=e[0],n[i+1]=e[1],n[i+2]=e[2],n[i+3]=e[3],n[i+4]=e[4],n[i+5]=e[5],n[i+6]=e[6],n[i+7]=e[7]}function o(t,n,i){r[0]=t,n[i]=e[7],n[i+1]=e[6],n[i+2]=e[5],n[i+3]=e[4],n[i+4]=e[3],n[i+5]=e[2],n[i+6]=e[1],n[i+7]=e[0]}function s(t,n){return e[0]=t[n],e[1]=t[n+1],e[2]=t[n+2],e[3]=t[n+3],e[4]=t[n+4],e[5]=t[n+5],e[6]=t[n+6],e[7]=t[n+7],r[0]}function u(t,n){return e[7]=t[n],e[6]=t[n+1],e[5]=t[n+2],e[4]=t[n+3],e[3]=t[n+4],e[2]=t[n+5],e[1]=t[n+6],e[0]=t[n+7],r[0]}t.writeDoubleLE=n?i:o,t.writeDoubleBE=n?o:i,t.readDoubleLE=n?s:u,t.readDoubleBE=n?u:s}():!function(){function r(t,r,e,n,i,o){var s,u=+(n<0);if(u&&(n=-n),0===n)t(0,i,o+r),t(1/n>0?0:0x80000000,i,o+e);else if(isNaN(n))t(0,i,o+r),t(0x7ff80000,i,o+e);else if(n>17976931348623157e292)t(0,i,o+r),t((u<<31|0x7ff00000)>>>0,i,o+e);else if(n<22250738585072014e-324)t((s=n/5e-324)>>>0,i,o+r),t((u<<31|s/0x100000000)>>>0,i,o+e);else{var f=Math.floor(Math.log(n)/Math.LN2);1024===f&&(f=1023),t(0x10000000000000*(s=n*Math.pow(2,-f))>>>0,i,o+r),t((u<<31|f+1023<<20|1048576*s&1048575)>>>0,i,o+e)}}function s(t,r,e,n,i){var o=t(n,i+r),s=t(n,i+e),u=(s>>31)*2+1,f=s>>>20&2047,h=0x100000000*(1048575&s)+o;return 2047===f?h?NaN:1/0*u:0===f?5e-324*u*h:u*Math.pow(2,f-1075)*(h+0x10000000000000)}t.writeDoubleLE=r.bind(null,e,0,4),t.writeDoubleBE=r.bind(null,n,4,0),t.readDoubleLE=s.bind(null,i,0,4),t.readDoubleBE=s.bind(null,o,4,0)}(),t}function e(t,r,e){r[e]=255&t,r[e+1]=t>>>8&255,r[e+2]=t>>>16&255,r[e+3]=t>>>24}function n(t,r,e){r[e]=t>>>24,r[e+1]=t>>>16&255,r[e+2]=t>>>8&255,r[e+3]=255&t}function i(t,r){return(t[r]|t[r+1]<<8|t[r+2]<<16|t[r+3]<<24)>>>0}function o(t,r){return(t[r]<<24|t[r+1]<<16|t[r+2]<<8|t[r+3])>>>0}t.exports=r(r)},4153:function(module){module.exports=inquire;function inquire(moduleName){try{var mod=eval("quire".replace(/^/,"re"))(moduleName);if(mod&&(mod.length||Object.keys(mod).length))return mod}catch(e){}return null}},9390:function(t){t.exports=r;function r(t,r,e){var n=e||8192,i=n>>>1,o=null,s=n;return function(e){if(e<1||e>i)return t(e);s+e>n&&(o=t(n),s=0);var u=r.call(o,s,s+=e);return 7&s&&(s=(7|s)+1),u}}},1447:function(t,r){var e=r;e.length=function(t){for(var r=0,e=0,n=0;n191&&n<224?o[s++]=(31&n)<<6|63&t[r++]:n>239&&n<365?(n=((7&n)<<18|(63&t[r++])<<12|(63&t[r++])<<6|63&t[r++])-65536,o[s++]=55296+(n>>10),o[s++]=56320+(1023&n)):o[s++]=(15&n)<<12|(63&t[r++])<<6|63&t[r++],s>8191&&((i||(i=[])).push(String.fromCharCode.apply(String,o)),s=0);return i?(s&&i.push(String.fromCharCode.apply(String,o.slice(0,s))),i.join("")):String.fromCharCode.apply(String,o.slice(0,s))},e.write=function(t,r,e){for(var n,i,o=e,s=0;s>6|192:((64512&n)==55296&&(64512&(i=t.charCodeAt(s+1)))==56320?(n=65536+((1023&n)<<10)+(1023&i),++s,r[e++]=n>>18|240,r[e++]=n>>12&63|128):r[e++]=n>>12|224,r[e++]=n>>6&63|128),r[e++]=63&n|128);return e-o}},6946:function(t,r,e){t.exports=e(4394)},4394:function(t,r,e){var n=r;function i(){n.util._configure(),n.Writer._configure(n.BufferWriter),n.Reader._configure(n.BufferReader)}n.build="minimal",n.Writer=e(3449),n.BufferWriter=e(818),n.Reader=e(6237),n.BufferReader=e(3158),n.util=e(3610),n.rpc=e(5047),n.roots=e(4529),n.configure=i,i()},6237:function(t,r,e){t.exports=f;var n,i=e(3610),o=i.LongBits,s=i.utf8;function u(t,r){return RangeError("index out of range: "+t.pos+" + "+(r||1)+" > "+t.len)}function f(t){this.buf=t,this.pos=0,this.len=t.length}var h="undefined"!=typeof Uint8Array?function(t){if(t instanceof Uint8Array||Array.isArray(t))return new f(t);throw Error("illegal buffer")}:function(t){if(Array.isArray(t))return new f(t);throw Error("illegal buffer")},l=function(){return i.Buffer?function(t){return(f.create=function(t){return i.Buffer.isBuffer(t)?new n(t):h(t)})(t)}:h};function a(){var t=new o(0,0),r=0;if(this.len-this.pos>4){for(;r<4;++r)if(t.lo=(t.lo|(127&this.buf[this.pos])<<7*r)>>>0,this.buf[this.pos++]<128)return t;if(t.lo=(t.lo|(127&this.buf[this.pos])<<28)>>>0,t.hi=(t.hi|(127&this.buf[this.pos])>>4)>>>0,this.buf[this.pos++]<128)return t;r=0}else{for(;r<3;++r){if(this.pos>=this.len)throw u(this);if(t.lo=(t.lo|(127&this.buf[this.pos])<<7*r)>>>0,this.buf[this.pos++]<128)return t}return t.lo=(t.lo|(127&this.buf[this.pos++])<<7*r)>>>0,t}if(this.len-this.pos>4){for(;r<5;++r)if(t.hi=(t.hi|(127&this.buf[this.pos])<<7*r+3)>>>0,this.buf[this.pos++]<128)return t}else for(;r<5;++r){if(this.pos>=this.len)throw u(this);if(t.hi=(t.hi|(127&this.buf[this.pos])<<7*r+3)>>>0,this.buf[this.pos++]<128)return t}throw Error("invalid varint encoding")}function c(t,r){return(t[r-4]|t[r-3]<<8|t[r-2]<<16|t[r-1]<<24)>>>0}function p(){if(this.pos+8>this.len)throw u(this,8);return new o(c(this.buf,this.pos+=4),c(this.buf,this.pos+=4))}f.create=l(),f.prototype._slice=i.Array.prototype.subarray||i.Array.prototype.slice,f.prototype.uint32=function(){var t=0xffffffff;return function(){if(t=(127&this.buf[this.pos])>>>0,this.buf[this.pos++]<128||(t=(t|(127&this.buf[this.pos])<<7)>>>0,this.buf[this.pos++]<128)||(t=(t|(127&this.buf[this.pos])<<14)>>>0,this.buf[this.pos++]<128)||(t=(t|(127&this.buf[this.pos])<<21)>>>0,this.buf[this.pos++]<128)||(t=(t|(15&this.buf[this.pos])<<28)>>>0,this.buf[this.pos++]<128))return t;if((this.pos+=5)>this.len)throw this.pos=this.len,u(this,10);return t}}(),f.prototype.int32=function(){return 0|this.uint32()},f.prototype.sint32=function(){var t=this.uint32();return t>>>1^-(1&t)},f.prototype.bool=function(){return 0!==this.uint32()},f.prototype.fixed32=function(){if(this.pos+4>this.len)throw u(this,4);return c(this.buf,this.pos+=4)},f.prototype.sfixed32=function(){if(this.pos+4>this.len)throw u(this,4);return 0|c(this.buf,this.pos+=4)},f.prototype.float=function(){if(this.pos+4>this.len)throw u(this,4);var t=i.float.readFloatLE(this.buf,this.pos);return this.pos+=4,t},f.prototype.double=function(){if(this.pos+8>this.len)throw u(this,4);var t=i.float.readDoubleLE(this.buf,this.pos);return this.pos+=8,t},f.prototype.bytes=function(){var t=this.uint32(),r=this.pos,e=this.pos+t;if(e>this.len)throw u(this,t);if(this.pos+=t,Array.isArray(this.buf))return this.buf.slice(r,e);if(r===e){var n=i.Buffer;return n?n.alloc(0):new this.buf.constructor(0)}return this._slice.call(this.buf,r,e)},f.prototype.string=function(){var t=this.bytes();return s.read(t,0,t.length)},f.prototype.skip=function(t){if("number"==typeof t){if(this.pos+t>this.len)throw u(this,t);this.pos+=t}else do if(this.pos>=this.len)throw u(this);while(128&this.buf[this.pos++]);return this},f.prototype.skipType=function(t){switch(t){case 0:this.skip();break;case 1:this.skip(8);break;case 2:this.skip(this.uint32());break;case 3:for(;4!=(t=7&this.uint32());)this.skipType(t);break;case 5:this.skip(4);break;default:throw Error("invalid wire type "+t+" at offset "+this.pos)}return this},f._configure=function(t){n=t,f.create=l(),n._configure();var r=i.Long?"toLong":"toNumber";i.merge(f.prototype,{int64:function(){return a.call(this)[r](!1)},uint64:function(){return a.call(this)[r](!0)},sint64:function(){return a.call(this).zzDecode()[r](!1)},fixed64:function(){return p.call(this)[r](!0)},sfixed64:function(){return p.call(this)[r](!1)}})}},3158:function(t,r,e){t.exports=o;var n=e(6237);(o.prototype=Object.create(n.prototype)).constructor=o;var i=e(3610);function o(t){n.call(this,t)}o._configure=function(){i.Buffer&&(o.prototype._slice=i.Buffer.prototype.slice)},o.prototype.string=function(){var t=this.uint32();return this.buf.utf8Slice?this.buf.utf8Slice(this.pos,this.pos=Math.min(this.pos+t,this.len)):this.buf.toString("utf-8",this.pos,this.pos=Math.min(this.pos+t,this.len))},o._configure()},4529:function(t){t.exports={}},5047:function(t,r,e){r.Service=e(7595)},7595:function(t,r,e){t.exports=i;var n=e(3610);function i(t,r,e){if("function"!=typeof t)throw TypeError("rpcImpl must be a function");n.EventEmitter.call(this),this.rpcImpl=t,this.requestDelimited=!!r,this.responseDelimited=!!e}(i.prototype=Object.create(n.EventEmitter.prototype)).constructor=i,i.prototype.rpcCall=function t(r,e,i,o,s){if(!o)throw TypeError("request must be specified");var u=this;if(!s)return n.asPromise(t,u,r,e,i,o);if(!u.rpcImpl)return void setTimeout(function(){s(Error("already ended"))},0);try{return u.rpcImpl(r,e[u.requestDelimited?"encodeDelimited":"encode"](o).finish(),function(t,e){if(t)return u.emit("error",t,r),s(t);if(null===e)return void u.end(!0);if(!(e instanceof i))try{e=i[u.responseDelimited?"decodeDelimited":"decode"](e)}catch(t){return u.emit("error",t,r),s(t)}return u.emit("data",e,r),s(null,e)})}catch(t){u.emit("error",t,r),setTimeout(function(){s(t)},0);return}},i.prototype.end=function(t){return this.rpcImpl&&(t||this.rpcImpl(null,null,null),this.rpcImpl=null,this.emit("end").off()),this}},2239:function(t,r,e){t.exports=i;var n=e(3610);function i(t,r){this.lo=t>>>0,this.hi=r>>>0}var o=i.zero=new i(0,0);o.toNumber=function(){return 0},o.zzEncode=o.zzDecode=function(){return this},o.length=function(){return 1};var s=i.zeroHash="\0\0\0\0\0\0\0\0";i.fromNumber=function(t){if(0===t)return o;var r=t<0;r&&(t=-t);var e=t>>>0,n=(t-e)/0x100000000>>>0;return r&&(n=~n>>>0,e=~e>>>0,++e>0xffffffff&&(e=0,++n>0xffffffff&&(n=0))),new i(e,n)},i.from=function(t){if("number"==typeof t)return i.fromNumber(t);if(n.isString(t))if(!n.Long)return i.fromNumber(parseInt(t,10));else t=n.Long.fromString(t);return t.low||t.high?new i(t.low>>>0,t.high>>>0):o},i.prototype.toNumber=function(t){if(!t&&this.hi>>>31){var r=~this.lo+1>>>0,e=~this.hi>>>0;return r||(e=e+1>>>0),-(r+0x100000000*e)}return this.lo+0x100000000*this.hi},i.prototype.toLong=function(t){return n.Long?new n.Long(0|this.lo,0|this.hi,!!t):{low:0|this.lo,high:0|this.hi,unsigned:!!t}};var u=String.prototype.charCodeAt;i.fromHash=function(t){return t===s?o:new i((u.call(t,0)|u.call(t,1)<<8|u.call(t,2)<<16|u.call(t,3)<<24)>>>0,(u.call(t,4)|u.call(t,5)<<8|u.call(t,6)<<16|u.call(t,7)<<24)>>>0)},i.prototype.toHash=function(){return String.fromCharCode(255&this.lo,this.lo>>>8&255,this.lo>>>16&255,this.lo>>>24,255&this.hi,this.hi>>>8&255,this.hi>>>16&255,this.hi>>>24)},i.prototype.zzEncode=function(){var t=this.hi>>31;return this.hi=((this.hi<<1|this.lo>>>31)^t)>>>0,this.lo=(this.lo<<1^t)>>>0,this},i.prototype.zzDecode=function(){var t=-(1&this.lo);return this.lo=((this.lo>>>1|this.hi<<31)^t)>>>0,this.hi=(this.hi>>>1^t)>>>0,this},i.prototype.length=function(){var t=this.lo,r=(this.lo>>>28|this.hi<<4)>>>0,e=this.hi>>>24;return 0===e?0===r?t<16384?t<128?1:2:t<2097152?3:4:r<16384?r<128?5:6:r<2097152?7:8:e<128?9:10}},3610:function(t,r,e){var n=r;function i(t,r,e){for(var n=Object.keys(r),i=0;i0)},n.Buffer=function(){try{var t=n.inquire("buffer").Buffer;return t.prototype.utf8Write?t:null}catch(t){return null}}(),n._Buffer_from=null,n._Buffer_allocUnsafe=null,n.newBuffer=function(t){return"number"==typeof t?n.Buffer?n._Buffer_allocUnsafe(t):new n.Array(t):n.Buffer?n._Buffer_from(t):"undefined"==typeof Uint8Array?t:new Uint8Array(t)},n.Array="undefined"!=typeof Uint8Array?Uint8Array:Array,n.Long=n.global.dcodeIO&&n.global.dcodeIO.Long||n.global.Long||n.inquire("long"),n.key2Re=/^true|false|0|1$/,n.key32Re=/^-?(?:0|[1-9][0-9]*)$/,n.key64Re=/^(?:[\\x00-\\xff]{8}|-?(?:0|[1-9][0-9]*))$/,n.longToHash=function(t){return t?n.LongBits.from(t).toHash():n.LongBits.zeroHash},n.longFromHash=function(t,r){var e=n.LongBits.fromHash(t);return n.Long?n.Long.fromBits(e.lo,e.hi,r):e.toNumber(!!r)},n.merge=i,n.lcFirst=function(t){return t.charAt(0).toLowerCase()+t.substring(1)},n.newError=o,n.ProtocolError=o("ProtocolError"),n.oneOfGetter=function(t){for(var r={},e=0;e-1;--e)if(1===r[t[e]]&&void 0!==this[t[e]]&&null!==this[t[e]])return t[e]}},n.oneOfSetter=function(t){return function(r){for(var e=0;e127;)r[e++]=127&t|128,t>>>=7;r[e]=t}function d(t,r){this.len=t,this.next=void 0,this.val=r}function b(t,r,e){for(;t.hi;)r[e++]=127&t.lo|128,t.lo=(t.lo>>>7|t.hi<<25)>>>0,t.hi>>>=7;for(;t.lo>127;)r[e++]=127&t.lo|128,t.lo=t.lo>>>7;r[e++]=t.lo}function g(t,r,e){r[e]=255&t,r[e+1]=t>>>8&255,r[e+2]=t>>>16&255,r[e+3]=t>>>24}a.create=c(),a.alloc=function(t){return new i.Array(t)},i.Array!==Array&&(a.alloc=i.pool(a.alloc,i.Array.prototype.subarray)),a.prototype._push=function(t,r,e){return this.tail=this.tail.next=new f(t,r,e),this.len+=r,this},d.prototype=Object.create(f.prototype),d.prototype.fn=y,a.prototype.uint32=function(t){return this.len+=(this.tail=this.tail.next=new d((t>>>=0)<128?1:t<16384?2:t<2097152?3:t<0x10000000?4:5,t)).len,this},a.prototype.int32=function(t){return t<0?this._push(b,10,o.fromNumber(t)):this.uint32(t)},a.prototype.sint32=function(t){return this.uint32((t<<1^t>>31)>>>0)},a.prototype.uint64=function(t){var r=o.from(t);return this._push(b,r.length(),r)},a.prototype.int64=a.prototype.uint64,a.prototype.sint64=function(t){var r=o.from(t).zzEncode();return this._push(b,r.length(),r)},a.prototype.bool=function(t){return this._push(p,1,+!!t)},a.prototype.fixed32=function(t){return this._push(g,4,t>>>0)},a.prototype.sfixed32=a.prototype.fixed32,a.prototype.fixed64=function(t){var r=o.from(t);return this._push(g,4,r.lo)._push(g,4,r.hi)},a.prototype.sfixed64=a.prototype.fixed64,a.prototype.float=function(t){return this._push(i.float.writeFloatLE,4,t)},a.prototype.double=function(t){return this._push(i.float.writeDoubleLE,8,t)};var v=i.Array.prototype.set?function(t,r,e){r.set(t,e)}:function(t,r,e){for(var n=0;n>>0;if(!r)return this._push(p,1,0);if(i.isString(t)){var e=a.alloc(r=s.length(t));s.decode(t,e,0),t=e}return this.uint32(r)._push(v,r,t)},a.prototype.string=function(t){var r=u.length(t);return r?this.uint32(r)._push(u.write,r,t):this._push(p,1,0)},a.prototype.fork=function(){return this.states=new l(this),this.head=this.tail=new f(h,0,0),this.len=0,this},a.prototype.reset=function(){return this.states?(this.head=this.states.head,this.tail=this.states.tail,this.len=this.states.len,this.states=this.states.next):(this.head=this.tail=new f(h,0,0),this.len=0),this},a.prototype.ldelim=function(){var t=this.head,r=this.tail,e=this.len;return this.reset().uint32(e),e&&(this.tail.next=t.next,this.tail=r,this.len+=e),this},a.prototype.finish=function(){for(var t=this.head.next,r=this.constructor.alloc(this.len),e=0;t;)t.fn(t.val,r,e),e+=t.len,t=t.next;return r},a._configure=function(t){n=t,a.create=c(),n._configure()}},818:function(t,r,e){t.exports=o;var n=e(3449);(o.prototype=Object.create(n.prototype)).constructor=o;var i=e(3610);function o(){n.call(this)}function s(t,r,e){t.length<40?i.utf8.write(t,r,e):r.utf8Write?r.utf8Write(t,e):r.write(t,e)}o._configure=function(){o.alloc=i._Buffer_allocUnsafe,o.writeBytesBuffer=i.Buffer&&i.Buffer.prototype instanceof Uint8Array&&"set"===i.Buffer.prototype.set.name?function(t,r,e){r.set(t,e)}:function(t,r,e){if(t.copy)t.copy(r,e,0,t.length);else for(var n=0;n>>0;return this.uint32(r),r&&this._push(o.writeBytesBuffer,r,t),this},o.prototype.string=function(t){var r=i.Buffer.byteLength(t);return this.uint32(r),r&&this._push(s,r,t),this},o._configure()}},__webpack_module_cache__={};function __webpack_require__(t){var r=__webpack_module_cache__[t];if(void 0!==r)return r.exports;var e=__webpack_module_cache__[t]={exports:{}};return __webpack_modules__[t].call(e.exports,e,e.exports,__webpack_require__),e.exports}var __webpack_exports__=__webpack_require__(6946);module.exports=__webpack_exports__})(); \ No newline at end of file diff --git a/vendor/bun.lock b/vendor/bun.lock index fa7d7c45913..18da9082634 100644 --- a/vendor/bun.lock +++ b/vendor/bun.lock @@ -4,6 +4,7 @@ "workspaces": { "": { "dependencies": { + "@datadog/sketches-js": "2.1.1", "@isaacs/ttlcache": "^2.0.1", "@opentelemetry/api": ">=1.0.0 <1.10.0", "@opentelemetry/api-logs": "<1.0.0", @@ -38,6 +39,8 @@ }, }, "packages": { + "@datadog/sketches-js": ["@datadog/sketches-js@2.1.1", "", {}, "sha512-d5RjycE+MObE/hU+8OM5Zp4VjTwiPLRa8299fj7muOmR16fb942z8byoMbCErnGh0lBevvgkGrLclQDvINbIyg=="], + "@discoveryjs/json-ext": ["@discoveryjs/json-ext@0.5.7", "", {}, "sha512-dBVuXR082gk3jsFp7Rd/JI4kytwGHecnCoTtXFb7DB6CNHp4rg5k1bhg0nWdLGLnOV71lmDzGQaLMy8iPLY0pw=="], "@emnapi/core": ["@emnapi/core@1.7.1", "", { "dependencies": { "@emnapi/wasi-threads": "1.1.0", "tslib": "^2.4.0" } }, "sha512-o1uhUASyo921r2XtHYOHy7gdkGLge8ghBEQHMWmyJFoXlpU58kIrhhN3w26lpQb6dspetweapMn2CSNwQ8I4wg=="], diff --git a/vendor/package.json b/vendor/package.json index eec8007c112..cc691924152 100644 --- a/vendor/package.json +++ b/vendor/package.json @@ -3,6 +3,7 @@ "postinstall": "rspack" }, "dependencies": { + "@datadog/sketches-js": "2.1.1", "@isaacs/ttlcache": "^2.0.1", "@opentelemetry/api": ">=1.0.0 <1.10.0", "@opentelemetry/api-logs": "<1.0.0", diff --git a/yarn.lock b/yarn.lock index 055cd113ee0..1f119effd66 100644 --- a/yarn.lock +++ b/yarn.lock @@ -257,11 +257,6 @@ pprof-format "^2.2.1" source-map "^0.7.4" -"@datadog/sketches-js@2.1.1": - version "2.1.1" - resolved "https://registry.yarnpkg.com/@datadog/sketches-js/-/sketches-js-2.1.1.tgz#9ec2251b3c932b4f43e1d164461fa6cb6f28b7d0" - integrity sha512-d5RjycE+MObE/hU+8OM5Zp4VjTwiPLRa8299fj7muOmR16fb942z8byoMbCErnGh0lBevvgkGrLclQDvINbIyg== - "@datadog/wasm-js-rewriter@5.0.1": version "5.0.1" resolved "https://registry.yarnpkg.com/@datadog/wasm-js-rewriter/-/wasm-js-rewriter-5.0.1.tgz#f227d2e3eb0f83b8a37f190a9ff8fdbde5955782" From 8207cf989e8c85689c10ebf03d2f31f32c04269b Mon Sep 17 00:00:00 2001 From: rochdev Date: Fri, 21 Nov 2025 09:28:20 -0500 Subject: [PATCH 14/95] fix pack test --- .github/workflows/platform.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/platform.yml b/.github/workflows/platform.yml index 388028e38d2..b593217c843 100644 --- a/.github/workflows/platform.yml +++ b/.github/workflows/platform.yml @@ -56,7 +56,7 @@ jobs: - uses: ./.github/actions/node/active-lts - uses: ./.github/actions/install - run: mkdir npm bun - - run: FILENAME=$(npm pack) && tar -zxf $FILENAME -C npm + - run: npm pack && tar -zxf *.tgz -C npm - run: ./node_modules/.bin/bun pm pack --gzip-level 0 --filename bun.tgz && tar -zxf bun.tgz -C bun - run: diff -r npm bun From f531f6cd55a84bc19e24f0317f3ff8a39c7f0e51 Mon Sep 17 00:00:00 2001 From: rochdev Date: Fri, 21 Nov 2025 09:44:53 -0500 Subject: [PATCH 15/95] fix missing dev dependency --- package.json | 1 + 1 file changed, 1 insertion(+) diff --git a/package.json b/package.json index 42971b456b6..5ac79303a5c 100644 --- a/package.json +++ b/package.json @@ -173,6 +173,7 @@ "nock": "^13.5.6", "nyc": "^15.1.0", "octokit": "^5.0.3", + "opentracing": ">=0.14.7", "proxyquire": "^2.1.3", "retry": "^0.13.1", "semver": "^7.7.2", From e43c6583d7c78af0d2eb0b0710488c2ba6449222 Mon Sep 17 00:00:00 2001 From: rochdev Date: Fri, 21 Nov 2025 09:44:59 -0500 Subject: [PATCH 16/95] fix license check --- LICENSE-3rdparty.csv | 148 +++++++++++++++++++++---------------------- yarn.lock | 5 ++ 2 files changed, 79 insertions(+), 74 deletions(-) diff --git a/LICENSE-3rdparty.csv b/LICENSE-3rdparty.csv index 0b03e88513b..f93cfaff60d 100644 --- a/LICENSE-3rdparty.csv +++ b/LICENSE-3rdparty.csv @@ -1,74 +1,74 @@ -"component","origin","license","copyright" -"@datadog/flagging-core","https://github.com/DataDog/openfeature-js-client","['Apache-2.0']","['DataDog']" -"@datadog/libdatadog","https://github.com/DataDog/libdatadog-nodejs","['Apache-2.0']","['Datadog Inc.']" -"@datadog/native-appsec","https://github.com/DataDog/dd-native-appsec-js","['Apache-2.0']","['Datadog Inc.']" -"@datadog/native-iast-taint-tracking","https://github.com/DataDog/dd-native-iast-taint-tracking-js","['Apache-2.0']","['Datadog Inc.']" -"@datadog/native-metrics","https://github.com/DataDog/dd-native-metrics-js","['Apache-2.0']","['Datadog Inc.']" -"@datadog/openfeature-node-server","https://github.com/DataDog/openfeature-js-client","['Apache-2.0']","['DataDog']" -"@datadog/pprof","https://github.com/DataDog/pprof-nodejs","['Apache-2.0']","['Google Inc.']" -"@datadog/sketches-js","https://github.com/DataDog/sketches-js","['Apache-2.0']","['DataDog']" -"@datadog/wasm-js-rewriter","https://github.com/DataDog/dd-wasm-js-rewriter","['Apache-2.0']","['Datadog Inc.']" -"@isaacs/ttlcache","https://github.com/isaacs/ttlcache","['BlueOak-1.0.0']","['Isaac Z. Schlueter']" -"@jsep-plugin/assignment","https://github.com/EricSmekens/jsep","['MIT']","['Shelly']" -"@jsep-plugin/regex","https://github.com/EricSmekens/jsep","['MIT']","['Shelly']" -"@openfeature/server-sdk","https://github.com/open-feature/js-sdk","['Apache-2.0']","['open-feature']" -"@opentelemetry/api","https://github.com/open-telemetry/opentelemetry-js","['Apache-2.0']","['OpenTelemetry Authors']" -"@opentelemetry/api-logs","https://github.com/open-telemetry/opentelemetry-js","['Apache-2.0']","['OpenTelemetry Authors']" -"@opentelemetry/core","https://github.com/open-telemetry/opentelemetry-js","['Apache-2.0']","['OpenTelemetry Authors']" -"@opentelemetry/resources","https://github.com/open-telemetry/opentelemetry-js","['Apache-2.0']","['OpenTelemetry Authors']" -"@opentelemetry/semantic-conventions","https://github.com/open-telemetry/opentelemetry-js","['Apache-2.0']","['OpenTelemetry Authors']" -"@protobufjs/aspromise","https://github.com/protobufjs/protobuf.js","['BSD-3-Clause']","['Daniel Wirtz']" -"@protobufjs/base64","https://github.com/protobufjs/protobuf.js","['BSD-3-Clause']","['Daniel Wirtz']" -"@protobufjs/codegen","https://github.com/protobufjs/protobuf.js","['BSD-3-Clause']","['Daniel Wirtz']" -"@protobufjs/eventemitter","https://github.com/protobufjs/protobuf.js","['BSD-3-Clause']","['Daniel Wirtz']" -"@protobufjs/fetch","https://github.com/protobufjs/protobuf.js","['BSD-3-Clause']","['Daniel Wirtz']" -"@protobufjs/float","https://github.com/protobufjs/protobuf.js","['BSD-3-Clause']","['Daniel Wirtz']" -"@protobufjs/inquire","https://github.com/protobufjs/protobuf.js","['BSD-3-Clause']","['Daniel Wirtz']" -"@protobufjs/path","https://github.com/protobufjs/protobuf.js","['BSD-3-Clause']","['Daniel Wirtz']" -"@protobufjs/pool","https://github.com/protobufjs/protobuf.js","['BSD-3-Clause']","['Daniel Wirtz']" -"@protobufjs/utf8","https://github.com/protobufjs/protobuf.js","['BSD-3-Clause']","['Daniel Wirtz']" -"@types/node","https://github.com/DefinitelyTyped/DefinitelyTyped","['MIT']","['DefinitelyTyped']" -"acorn","https://github.com/acornjs/acorn","['MIT']","['acornjs']" -"acorn-import-attributes","https://github.com/xtuc/acorn-import-attributes","['MIT']","['Sven Sauleau']" -"argparse","https://github.com/nodeca/argparse","['Python-2.0']","['nodeca']" -"cjs-module-lexer","https://github.com/nodejs/cjs-module-lexer","['MIT']","['Guy Bedford']" -"crypto-randomuuid","npm:crypto-randomuuid","['MIT']","['Stephen Belanger']" -"dc-polyfill","https://github.com/DataDog/dc-polyfill","['MIT']","['Thomas Hunter II']" -"dd-trace","https://github.com/DataDog/dd-trace-js","['(Apache-2.0 OR BSD-3-Clause)']","['Datadog Inc. ']" -"delay","https://github.com/sindresorhus/delay","['MIT']","['Sindre Sorhus']" -"detect-newline","https://github.com/sindresorhus/detect-newline","['MIT']","['Sindre Sorhus']" -"escape-string-regexp","https://github.com/sindresorhus/escape-string-regexp","['MIT']","['Sindre Sorhus']" -"fast-fifo","https://github.com/mafintosh/fast-fifo","['MIT']","['Mathias Buus']" -"ignore","https://github.com/kaelzhang/node-ignore","['MIT']","['kael']" -"import-in-the-middle","https://github.com/nodejs/import-in-the-middle","['Apache-2.0']","['Bryan English']" -"istanbul-lib-coverage","https://github.com/istanbuljs/istanbuljs","['BSD-3-Clause']","['Krishnan Anantheswaran']" -"jest-docblock","https://github.com/jestjs/jest","['MIT']","['jestjs']" -"js-yaml","https://github.com/nodeca/js-yaml","['MIT']","['Vladimir Zapparov']" -"jsep","https://github.com/EricSmekens/jsep","['MIT']","['Stephen Oney']" -"jsonpath-plus","https://github.com/JSONPath-Plus/JSONPath","['MIT']","['Stefan Goessner']" -"limiter","https://github.com/jhurliman/node-rate-limiter","['MIT']","['John Hurliman']" -"lodash.sortby","https://github.com/lodash/lodash","['MIT']","['John-David Dalton']" -"long","https://github.com/dcodeIO/long.js","['Apache-2.0']","['Daniel Wirtz']" -"lru-cache","https://github.com/isaacs/node-lru-cache","['ISC']","['Isaac Z. Schlueter']" -"module-details-from-path","https://github.com/watson/module-details-from-path","['MIT']","['Thomas Watson']" -"mutexify","https://github.com/mafintosh/mutexify","['MIT']","['Mathias Buus']" -"node-addon-api","https://github.com/nodejs/node-addon-api","['MIT']","['nodejs']" -"node-gyp-build","https://github.com/prebuild/node-gyp-build","['MIT']","['Mathias Buus']" -"opentracing","https://github.com/opentracing/opentracing-javascript","['Apache-2.0']","['opentracing']" -"p-limit","https://github.com/sindresorhus/p-limit","['MIT']","['Sindre Sorhus']" -"path-to-regexp","https://github.com/pillarjs/path-to-regexp","['MIT']","['pillarjs']" -"pprof-format","https://github.com/DataDog/pprof-format","['MIT']","['Datadog Inc.']" -"protobufjs","https://github.com/protobufjs/protobuf.js","['BSD-3-Clause']","['Daniel Wirtz']" -"queue-tick","https://github.com/mafintosh/queue-tick","['MIT']","['Mathias Buus']" -"retry","https://github.com/tim-kos/node-retry","['MIT']","['Tim Koschützki']" -"rfdc","https://github.com/davidmarkclements/rfdc","['MIT']","['David Mark Clements']" -"semifies","https://github.com/holepunchto/semifies","['Apache-2.0']","['Holepunch Inc']" -"shell-quote","https://github.com/ljharb/shell-quote","['MIT']","['James Halliday']" -"source-map","https://github.com/mozilla/source-map","['BSD-3-Clause']","['Nick Fitzgerald']" -"spark-md5","https://github.com/satazor/js-spark-md5","['(WTFPL OR MIT)']","['André Cruz']" -"tlhunter-sorted-set","https://github.com/tlhunter/node-sorted-set","['MIT']","['Thomas Hunter II']" -"ttl-set","https://github.com/watson/ttl-set","['MIT']","['Thomas Watson']" -"undici-types","https://github.com/nodejs/undici","['MIT']","['nodejs']" -"yocto-queue","https://github.com/sindresorhus/yocto-queue","['MIT']","['Sindre Sorhus']" -"aws-lambda-nodejs-runtime-interface-client","https://github.com/aws/aws-lambda-nodejs-runtime-interface-client/blob/v2.1.0/src/utils/UserFunction.ts","['Apache-2.0']","['Amazon.com Inc. or its affiliates']" -"is-git-url","https://github.com/jonschlinkert/is-git-url/blob/396965ffabf2f46656c8af4c47bef1d69f09292e/index.js#L9C15-L9C87","['MIT']","['Jon Schlinkert']" +"component","origin","license","copyright" +"@datadog/flagging-core","https://github.com/DataDog/openfeature-js-client","['Apache-2.0']","['DataDog']" +"@datadog/libdatadog","https://github.com/DataDog/libdatadog-nodejs","['Apache-2.0']","['Datadog Inc.']" +"@datadog/native-appsec","https://github.com/DataDog/dd-native-appsec-js","['Apache-2.0']","['Datadog Inc.']" +"@datadog/native-iast-taint-tracking","https://github.com/DataDog/dd-native-iast-taint-tracking-js","['Apache-2.0']","['Datadog Inc.']" +"@datadog/native-metrics","https://github.com/DataDog/dd-native-metrics-js","['Apache-2.0']","['Datadog Inc.']" +"@datadog/openfeature-node-server","https://github.com/DataDog/openfeature-js-client","['Apache-2.0']","['DataDog']" +"@datadog/pprof","https://github.com/DataDog/pprof-nodejs","['Apache-2.0']","['Google Inc.']" +"@datadog/sketches-js","https://github.com/DataDog/sketches-js","['Apache-2.0']","['DataDog']" +"@datadog/wasm-js-rewriter","https://github.com/DataDog/dd-wasm-js-rewriter","['Apache-2.0']","['Datadog Inc.']" +"@isaacs/ttlcache","https://github.com/isaacs/ttlcache","['BlueOak-1.0.0']","['Isaac Z. Schlueter']" +"@jsep-plugin/assignment","https://github.com/EricSmekens/jsep","['MIT']","['Shelly']" +"@jsep-plugin/regex","https://github.com/EricSmekens/jsep","['MIT']","['Shelly']" +"@openfeature/server-sdk","https://github.com/open-feature/js-sdk","['Apache-2.0']","['open-feature']" +"@opentelemetry/api","https://github.com/open-telemetry/opentelemetry-js","['Apache-2.0']","['OpenTelemetry Authors']" +"@opentelemetry/api-logs","https://github.com/open-telemetry/opentelemetry-js","['Apache-2.0']","['OpenTelemetry Authors']" +"@opentelemetry/core","https://github.com/open-telemetry/opentelemetry-js","['Apache-2.0']","['OpenTelemetry Authors']" +"@opentelemetry/resources","https://github.com/open-telemetry/opentelemetry-js","['Apache-2.0']","['OpenTelemetry Authors']" +"@opentelemetry/semantic-conventions","https://github.com/open-telemetry/opentelemetry-js","['Apache-2.0']","['OpenTelemetry Authors']" +"@protobufjs/aspromise","https://github.com/protobufjs/protobuf.js","['BSD-3-Clause']","['Daniel Wirtz']" +"@protobufjs/base64","https://github.com/protobufjs/protobuf.js","['BSD-3-Clause']","['Daniel Wirtz']" +"@protobufjs/codegen","https://github.com/protobufjs/protobuf.js","['BSD-3-Clause']","['Daniel Wirtz']" +"@protobufjs/eventemitter","https://github.com/protobufjs/protobuf.js","['BSD-3-Clause']","['Daniel Wirtz']" +"@protobufjs/fetch","https://github.com/protobufjs/protobuf.js","['BSD-3-Clause']","['Daniel Wirtz']" +"@protobufjs/float","https://github.com/protobufjs/protobuf.js","['BSD-3-Clause']","['Daniel Wirtz']" +"@protobufjs/inquire","https://github.com/protobufjs/protobuf.js","['BSD-3-Clause']","['Daniel Wirtz']" +"@protobufjs/path","https://github.com/protobufjs/protobuf.js","['BSD-3-Clause']","['Daniel Wirtz']" +"@protobufjs/pool","https://github.com/protobufjs/protobuf.js","['BSD-3-Clause']","['Daniel Wirtz']" +"@protobufjs/utf8","https://github.com/protobufjs/protobuf.js","['BSD-3-Clause']","['Daniel Wirtz']" +"@types/node","https://github.com/DefinitelyTyped/DefinitelyTyped","['MIT']","['DefinitelyTyped']" +"acorn","https://github.com/acornjs/acorn","['MIT']","['acornjs']" +"acorn-import-attributes","https://github.com/xtuc/acorn-import-attributes","['MIT']","['Sven Sauleau']" +"argparse","https://github.com/nodeca/argparse","['Python-2.0']","['nodeca']" +"cjs-module-lexer","https://github.com/nodejs/cjs-module-lexer","['MIT']","['Guy Bedford']" +"crypto-randomuuid","npm:crypto-randomuuid","['MIT']","['Stephen Belanger']" +"dc-polyfill","https://github.com/DataDog/dc-polyfill","['MIT']","['Thomas Hunter II']" +"dd-trace","https://github.com/DataDog/dd-trace-js","['(Apache-2.0 OR BSD-3-Clause)']","['Datadog Inc. ']" +"delay","https://github.com/sindresorhus/delay","['MIT']","['Sindre Sorhus']" +"detect-newline","https://github.com/sindresorhus/detect-newline","['MIT']","['Sindre Sorhus']" +"escape-string-regexp","https://github.com/sindresorhus/escape-string-regexp","['MIT']","['Sindre Sorhus']" +"fast-fifo","https://github.com/mafintosh/fast-fifo","['MIT']","['Mathias Buus']" +"ignore","https://github.com/kaelzhang/node-ignore","['MIT']","['kael']" +"import-in-the-middle","https://github.com/nodejs/import-in-the-middle","['Apache-2.0']","['Bryan English']" +"istanbul-lib-coverage","https://github.com/istanbuljs/istanbuljs","['BSD-3-Clause']","['Krishnan Anantheswaran']" +"jest-docblock","https://github.com/jestjs/jest","['MIT']","['jestjs']" +"js-yaml","https://github.com/nodeca/js-yaml","['MIT']","['Vladimir Zapparov']" +"jsep","https://github.com/EricSmekens/jsep","['MIT']","['Stephen Oney']" +"jsonpath-plus","https://github.com/JSONPath-Plus/JSONPath","['MIT']","['Stefan Goessner']" +"limiter","https://github.com/jhurliman/node-rate-limiter","['MIT']","['John Hurliman']" +"lodash.sortby","https://github.com/lodash/lodash","['MIT']","['John-David Dalton']" +"long","https://github.com/dcodeIO/long.js","['Apache-2.0']","['Daniel Wirtz']" +"lru-cache","https://github.com/isaacs/node-lru-cache","['ISC']","['Isaac Z. Schlueter']" +"module-details-from-path","https://github.com/watson/module-details-from-path","['MIT']","['Thomas Watson']" +"mutexify","https://github.com/mafintosh/mutexify","['MIT']","['Mathias Buus']" +"node-addon-api","https://github.com/nodejs/node-addon-api","['MIT']","['nodejs']" +"node-gyp-build","https://github.com/prebuild/node-gyp-build","['MIT']","['Mathias Buus']" +"opentracing","https://github.com/opentracing/opentracing-javascript","['Apache-2.0']","['opentracing']" +"p-limit","https://github.com/sindresorhus/p-limit","['MIT']","['Sindre Sorhus']" +"path-to-regexp","https://github.com/pillarjs/path-to-regexp","['MIT']","['pillarjs']" +"pprof-format","https://github.com/DataDog/pprof-format","['MIT']","['Datadog Inc.']" +"protobufjs","https://github.com/protobufjs/protobuf.js","['BSD-3-Clause']","['Daniel Wirtz']" +"queue-tick","https://github.com/mafintosh/queue-tick","['MIT']","['Mathias Buus']" +"retry","https://github.com/tim-kos/node-retry","['MIT']","['Tim Koschützki']" +"rfdc","https://github.com/davidmarkclements/rfdc","['MIT']","['David Mark Clements']" +"semifies","https://github.com/holepunchto/semifies","['Apache-2.0']","['Holepunch Inc']" +"shell-quote","https://github.com/ljharb/shell-quote","['MIT']","['James Halliday']" +"source-map","https://github.com/mozilla/source-map","['BSD-3-Clause']","['Nick Fitzgerald']" +"spark-md5","https://github.com/satazor/js-spark-md5","['(WTFPL OR MIT)']","['André Cruz']" +"tlhunter-sorted-set","https://github.com/tlhunter/node-sorted-set","['MIT']","['Thomas Hunter II']" +"ttl-set","https://github.com/watson/ttl-set","['MIT']","['Thomas Watson']" +"undici-types","https://github.com/nodejs/undici","['MIT']","['nodejs']" +"yocto-queue","https://github.com/sindresorhus/yocto-queue","['MIT']","['Sindre Sorhus']" +"aws-lambda-nodejs-runtime-interface-client","https://github.com/aws/aws-lambda-nodejs-runtime-interface-client/blob/v2.1.0/src/utils/UserFunction.ts","['Apache-2.0']","['Amazon.com Inc. or its affiliates']" +"is-git-url","https://github.com/jonschlinkert/is-git-url/blob/396965ffabf2f46656c8af4c47bef1d69f09292e/index.js#L9C15-L9C87","['MIT']","['Jon Schlinkert']" diff --git a/yarn.lock b/yarn.lock index 1f119effd66..30efd82fdf7 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3629,6 +3629,11 @@ opener@^1.5.1: resolved "https://registry.yarnpkg.com/opener/-/opener-1.5.2.tgz#5d37e1f35077b9dcac4301372271afdeb2a13598" integrity sha512-ur5UIdyw5Y7yEj9wLzhqXiy6GZ3Mwx0yGI+5sMn2r0N0v3cKJvUmFH5yPP+WXh9e0xfyzyJX95D8l088DNFj7A== +opentracing@>=0.14.7: + version "0.14.7" + resolved "https://registry.yarnpkg.com/opentracing/-/opentracing-0.14.7.tgz#25d472bd0296dc0b64d7b94cbc995219031428f5" + integrity sha512-vz9iS7MJ5+Bp1URw8Khvdyw1H/hGvzHWlKQ7eRrQojSCDL1/SrWfrY9QebLw97n2deyRtzHRC3MkQfVNUCo91Q== + optionator@^0.9.3: version "0.9.4" resolved "https://registry.yarnpkg.com/optionator/-/optionator-0.9.4.tgz#7ea1c1a5d91d764fb282139c88fe11e182a3a734" From 6d5545e9ee9243b4fe02d107e82629a36257bd3a Mon Sep 17 00:00:00 2001 From: rochdev Date: Fri, 21 Nov 2025 09:47:44 -0500 Subject: [PATCH 17/95] fix missing dev dependency --- package.json | 1 + yarn.lock | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/package.json b/package.json index 5ac79303a5c..795f975ea0e 100644 --- a/package.json +++ b/package.json @@ -176,6 +176,7 @@ "opentracing": ">=0.14.7", "proxyquire": "^2.1.3", "retry": "^0.13.1", + "semifies": "^1.0.0", "semver": "^7.7.2", "sinon": "^21.0.0", "sinon-chai": "^3.7.0", diff --git a/yarn.lock b/yarn.lock index 30efd82fdf7..2741d467206 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4151,6 +4151,11 @@ scheduler@^0.20.2: loose-envify "^1.1.0" object-assign "^4.1.1" +semifies@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/semifies/-/semifies-1.0.0.tgz#b69569f32c2ba2ac04f705ea82831364289b2ae2" + integrity sha512-xXR3KGeoxTNWPD4aBvL5NUpMTT7WMANr3EWnaS190QVkY52lqqcVRD7Q05UVbBhiWDGWMlJEUam9m7uFFGVScw== + semver@^6.0.0, semver@^6.3.0, semver@^6.3.1: version "6.3.1" resolved "https://registry.yarnpkg.com/semver/-/semver-6.3.1.tgz#556d2ef8689146e46dcea4bfdd095f3434dffcb4" From 064a163917b21195b505b140adb6bb71beb02df8 Mon Sep 17 00:00:00 2001 From: rochdev Date: Fri, 21 Nov 2025 10:10:09 -0500 Subject: [PATCH 18/95] fix install on unsupported node versions --- .github/workflows/platform.yml | 3 +++ package.json | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/platform.yml b/.github/workflows/platform.yml index b593217c843..912b6fc8127 100644 --- a/.github/workflows/platform.yml +++ b/.github/workflows/platform.yml @@ -432,6 +432,8 @@ jobs: matrix: version: [14.0.0, 14, 16.0.0, 18.0.0, 20.0.0, 22.0.0, 24.0.0] runs-on: ubuntu-latest + env: + NOVENDOR: 'true' steps: - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 - uses: ./.github/actions/node @@ -454,6 +456,7 @@ jobs: runs-on: ubuntu-latest env: DD_TRACE_DEBUG: 'true' # This exercises more of the guardrails code + NOVENDOR: 'true' steps: - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 - uses: ./.github/actions/node diff --git a/package.json b/package.json index 795f975ea0e..8ac1403ffde 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,7 @@ "scripts": { "env": "bash ./plugin-env", "preinstall": "node scripts/preinstall.js", - "prepare": "cd vendor && bun install", + "prepublish": "[[ -z $NOVENDOR ]] && cd vendor && bun install", "bench": "node benchmark/index.js", "bench:e2e:test-optimization": "node benchmark/e2e-test-optimization/benchmark-run.js", "dependencies:dedupe": "yarn-deduplicate yarn.lock", From c13e9f5bd11b4d32771c78eee705dfe06c03fb80 Mon Sep 17 00:00:00 2001 From: rochdev Date: Fri, 21 Nov 2025 10:16:21 -0500 Subject: [PATCH 19/95] streamline installing vendors --- .gitignore | 1 - package.json | 1 - vendor/bun.lock | 622 --------------- vendor/yarn.lock | 1982 ++++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 1982 insertions(+), 624 deletions(-) delete mode 100644 vendor/bun.lock create mode 100644 vendor/yarn.lock diff --git a/.gitignore b/.gitignore index 49c3be00169..4c5509476b4 100644 --- a/.gitignore +++ b/.gitignore @@ -132,7 +132,6 @@ packages/dd-trace/test/plugins/versions/yarn.lock !packages/dd-trace/**/telemetry/logs packages/datadog-plugin-azure-functions/test/integration-test/fixtures/node_modules !packages/node_modules -!vendor/bun.lock __azurite_db_queue__.json __azurite_db_queue_extent__.json __queuestorage__/AzuriteConfig diff --git a/package.json b/package.json index 8ac1403ffde..c88453af7f3 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,6 @@ "scripts": { "env": "bash ./plugin-env", "preinstall": "node scripts/preinstall.js", - "prepublish": "[[ -z $NOVENDOR ]] && cd vendor && bun install", "bench": "node benchmark/index.js", "bench:e2e:test-optimization": "node benchmark/e2e-test-optimization/benchmark-run.js", "dependencies:dedupe": "yarn-deduplicate yarn.lock", diff --git a/vendor/bun.lock b/vendor/bun.lock deleted file mode 100644 index 18da9082634..00000000000 --- a/vendor/bun.lock +++ /dev/null @@ -1,622 +0,0 @@ -{ - "lockfileVersion": 1, - "configVersion": 1, - "workspaces": { - "": { - "dependencies": { - "@datadog/sketches-js": "2.1.1", - "@isaacs/ttlcache": "^2.0.1", - "@opentelemetry/api": ">=1.0.0 <1.10.0", - "@opentelemetry/api-logs": "<1.0.0", - "@opentelemetry/core": ">=1.14.0 <1.31.0", - "@opentelemetry/resources": ">=1.0.0 <1.31.0", - "crypto-randomuuid": "^1.0.0", - "ignore": "^7.0.5", - "istanbul-lib-coverage": "^3.2.2", - "jest-docblock": "^29.7.0", - "jsonpath-plus": "^10.3.0", - "limiter": "^1.1.5", - "lodash.sortby": "^4.7.0", - "lru-cache": "^10.4.3", - "module-details-from-path": "^1.0.4", - "mutexify": "^1.4.0", - "opentracing": ">=0.14.7", - "path-to-regexp": "^0.1.12", - "pprof-format": "^2.1.1", - "protobufjs": "^7.5.3", - "retry": "^0.13.1", - "rfdc": "^1.4.1", - "semifies": "^1.0.0", - "shell-quote": "^1.8.2", - "source-map": "^0.7.4", - "tlhunter-sorted-set": "^0.1.0", - "ttl-set": "^1.0.0", - }, - "devDependencies": { - "@rspack/cli": "^1.6.4", - "@rspack/core": "^1.6.4", - }, - }, - }, - "packages": { - "@datadog/sketches-js": ["@datadog/sketches-js@2.1.1", "", {}, "sha512-d5RjycE+MObE/hU+8OM5Zp4VjTwiPLRa8299fj7muOmR16fb942z8byoMbCErnGh0lBevvgkGrLclQDvINbIyg=="], - - "@discoveryjs/json-ext": ["@discoveryjs/json-ext@0.5.7", "", {}, "sha512-dBVuXR082gk3jsFp7Rd/JI4kytwGHecnCoTtXFb7DB6CNHp4rg5k1bhg0nWdLGLnOV71lmDzGQaLMy8iPLY0pw=="], - - "@emnapi/core": ["@emnapi/core@1.7.1", "", { "dependencies": { "@emnapi/wasi-threads": "1.1.0", "tslib": "^2.4.0" } }, "sha512-o1uhUASyo921r2XtHYOHy7gdkGLge8ghBEQHMWmyJFoXlpU58kIrhhN3w26lpQb6dspetweapMn2CSNwQ8I4wg=="], - - "@emnapi/runtime": ["@emnapi/runtime@1.7.1", "", { "dependencies": { "tslib": "^2.4.0" } }, "sha512-PVtJr5CmLwYAU9PZDMITZoR5iAOShYREoR45EyyLrbntV50mdePTgUn4AmOw90Ifcj+x2kRjdzr1HP3RrNiHGA=="], - - "@emnapi/wasi-threads": ["@emnapi/wasi-threads@1.1.0", "", { "dependencies": { "tslib": "^2.4.0" } }, "sha512-WI0DdZ8xFSbgMjR1sFsKABJ/C5OnRrjT06JXbZKexJGrDuPTzZdDYfFlsgcCXCyf+suG5QU2e/y1Wo2V/OapLQ=="], - - "@isaacs/ttlcache": ["@isaacs/ttlcache@2.1.2", "", {}, "sha512-lmG2ZHXBo7tgF1I3vGvBMnUJYhaNE25fmx+tUfotvE3vsARzxiiDXmCBI6Ch8qEHeHmfunr+eVPgIaIc8xIkbg=="], - - "@jsep-plugin/assignment": ["@jsep-plugin/assignment@1.3.0", "", { "peerDependencies": { "jsep": "^0.4.0||^1.0.0" } }, "sha512-VVgV+CXrhbMI3aSusQyclHkenWSAm95WaiKrMxRFam3JSUiIaQjoMIw2sEs/OX4XifnqeQUN4DYbJjlA8EfktQ=="], - - "@jsep-plugin/regex": ["@jsep-plugin/regex@1.0.4", "", { "peerDependencies": { "jsep": "^0.4.0||^1.0.0" } }, "sha512-q7qL4Mgjs1vByCaTnDFcBnV9HS7GVPJX5vyVoCgZHNSC9rjwIlmbXG5sUuorR5ndfHAIlJ8pVStxvjXHbNvtUg=="], - - "@jsonjoy.com/base64": ["@jsonjoy.com/base64@1.1.2", "", { "peerDependencies": { "tslib": "2" } }, "sha512-q6XAnWQDIMA3+FTiOYajoYqySkO+JSat0ytXGSuRdq9uXE7o92gzuQwQM14xaCRlBLGq3v5miDGC4vkVTn54xA=="], - - "@jsonjoy.com/buffers": ["@jsonjoy.com/buffers@1.2.1", "", { "peerDependencies": { "tslib": "2" } }, "sha512-12cdlDwX4RUM3QxmUbVJWqZ/mrK6dFQH4Zxq6+r1YXKXYBNgZXndx2qbCJwh3+WWkCSn67IjnlG3XYTvmvYtgA=="], - - "@jsonjoy.com/codegen": ["@jsonjoy.com/codegen@1.0.0", "", { "peerDependencies": { "tslib": "2" } }, "sha512-E8Oy+08cmCf0EK/NMxpaJZmOxPqM+6iSe2S4nlSBrPZOORoDJILxtbSUEDKQyTamm/BVAhIGllOBNU79/dwf0g=="], - - "@jsonjoy.com/json-pack": ["@jsonjoy.com/json-pack@1.21.0", "", { "dependencies": { "@jsonjoy.com/base64": "^1.1.2", "@jsonjoy.com/buffers": "^1.2.0", "@jsonjoy.com/codegen": "^1.0.0", "@jsonjoy.com/json-pointer": "^1.0.2", "@jsonjoy.com/util": "^1.9.0", "hyperdyperid": "^1.2.0", "thingies": "^2.5.0", "tree-dump": "^1.1.0" }, "peerDependencies": { "tslib": "2" } }, "sha512-+AKG+R2cfZMShzrF2uQw34v3zbeDYUqnQ+jg7ORic3BGtfw9p/+N6RJbq/kkV8JmYZaINknaEQ2m0/f693ZPpg=="], - - "@jsonjoy.com/json-pointer": ["@jsonjoy.com/json-pointer@1.0.2", "", { "dependencies": { "@jsonjoy.com/codegen": "^1.0.0", "@jsonjoy.com/util": "^1.9.0" }, "peerDependencies": { "tslib": "2" } }, "sha512-Fsn6wM2zlDzY1U+v4Nc8bo3bVqgfNTGcn6dMgs6FjrEnt4ZCe60o6ByKRjOGlI2gow0aE/Q41QOigdTqkyK5fg=="], - - "@jsonjoy.com/util": ["@jsonjoy.com/util@1.9.0", "", { "dependencies": { "@jsonjoy.com/buffers": "^1.0.0", "@jsonjoy.com/codegen": "^1.0.0" }, "peerDependencies": { "tslib": "2" } }, "sha512-pLuQo+VPRnN8hfPqUTLTHk126wuYdXVxE6aDmjSeV4NCAgyxWbiOIeNJVtID3h1Vzpoi9m4jXezf73I6LgabgQ=="], - - "@leichtgewicht/ip-codec": ["@leichtgewicht/ip-codec@2.0.5", "", {}, "sha512-Vo+PSpZG2/fmgmiNzYK9qWRh8h/CHrwD0mo1h1DzL4yzHNSfWYujGTYsWGreD000gcgmZ7K4Ys6Tx9TxtsKdDw=="], - - "@module-federation/error-codes": ["@module-federation/error-codes@0.21.4", "", {}, "sha512-ClpL5MereWNXh+EgDjz7w4RrC1JlisQTvXDa1gLxpviHafzNDfdViVmuhi9xXVuj+EYo8KU70Y999KHhk9424Q=="], - - "@module-federation/runtime": ["@module-federation/runtime@0.21.4", "", { "dependencies": { "@module-federation/error-codes": "0.21.4", "@module-federation/runtime-core": "0.21.4", "@module-federation/sdk": "0.21.4" } }, "sha512-wgvGqryurVEvkicufJmTG0ZehynCeNLklv8kIk5BLIsWYSddZAE+xe4xov1kgH5fIJQAoQNkRauFFjVNlHoAkA=="], - - "@module-federation/runtime-core": ["@module-federation/runtime-core@0.21.4", "", { "dependencies": { "@module-federation/error-codes": "0.21.4", "@module-federation/sdk": "0.21.4" } }, "sha512-SGpmoOLGNxZofpTOk6Lxb2ewaoz5wMi93AFYuuJB04HTVcngEK+baNeUZ2D/xewrqNIJoMY6f5maUjVfIIBPUA=="], - - "@module-federation/runtime-tools": ["@module-federation/runtime-tools@0.21.4", "", { "dependencies": { "@module-federation/runtime": "0.21.4", "@module-federation/webpack-bundler-runtime": "0.21.4" } }, "sha512-RzFKaL0DIjSmkn76KZRfzfB6dD07cvID84950jlNQgdyoQFUGkqD80L6rIpVCJTY/R7LzR3aQjHnoqmq4JPo3w=="], - - "@module-federation/sdk": ["@module-federation/sdk@0.21.4", "", {}, "sha512-tzvhOh/oAfX++6zCDDxuvioHY4Jurf8vcfoCbKFxusjmyKr32GPbwFDazUP+OPhYCc3dvaa9oWU6X/qpUBLfJw=="], - - "@module-federation/webpack-bundler-runtime": ["@module-federation/webpack-bundler-runtime@0.21.4", "", { "dependencies": { "@module-federation/runtime": "0.21.4", "@module-federation/sdk": "0.21.4" } }, "sha512-dusmR3uPnQh9u9ChQo3M+GLOuGFthfvnh7WitF/a1eoeTfRmXqnMFsXtZCUK+f/uXf+64874Zj/bhAgbBcVHZA=="], - - "@napi-rs/wasm-runtime": ["@napi-rs/wasm-runtime@1.0.7", "", { "dependencies": { "@emnapi/core": "^1.5.0", "@emnapi/runtime": "^1.5.0", "@tybys/wasm-util": "^0.10.1" } }, "sha512-SeDnOO0Tk7Okiq6DbXmmBODgOAb9dp9gjlphokTUxmt8U3liIP1ZsozBahH69j/RJv+Rfs6IwUKHTgQYJ/HBAw=="], - - "@opentelemetry/api": ["@opentelemetry/api@1.9.0", "", {}, "sha512-3giAOQvZiH5F9bMlMiv8+GSPMeqg0dbaeo58/0SlA9sxSqZhnUtxzX9/2FzyhS9sWQf5S0GJE0AKBrFqjpeYcg=="], - - "@opentelemetry/api-logs": ["@opentelemetry/api-logs@0.208.0", "", { "dependencies": { "@opentelemetry/api": "^1.3.0" } }, "sha512-CjruKY9V6NMssL/T1kAFgzosF1v9o6oeN+aX5JB/C/xPNtmgIJqcXHG7fA82Ou1zCpWGl4lROQUKwUNE1pMCyg=="], - - "@opentelemetry/core": ["@opentelemetry/core@1.30.1", "", { "dependencies": { "@opentelemetry/semantic-conventions": "1.28.0" }, "peerDependencies": { "@opentelemetry/api": ">=1.0.0 <1.10.0" } }, "sha512-OOCM2C/QIURhJMuKaekP3TRBxBKxG/TWWA0TL2J6nXUtDnuCtccy49LUJF8xPFXMX+0LMcxFpCo8M9cGY1W6rQ=="], - - "@opentelemetry/resources": ["@opentelemetry/resources@1.30.1", "", { "dependencies": { "@opentelemetry/core": "1.30.1", "@opentelemetry/semantic-conventions": "1.28.0" }, "peerDependencies": { "@opentelemetry/api": ">=1.0.0 <1.10.0" } }, "sha512-5UxZqiAgLYGFjS4s9qm5mBVo433u+dSPUFWVWXmLAD4wB65oMCoXaJP1KJa9DIYYMeHu3z4BZcStG3LC593cWA=="], - - "@opentelemetry/semantic-conventions": ["@opentelemetry/semantic-conventions@1.28.0", "", {}, "sha512-lp4qAiMTD4sNWW4DbKLBkfiMZ4jbAboJIGOQr5DvciMRI494OapieI9qiODpOt0XBr1LjIDy1xAGAnVs5supTA=="], - - "@polka/url": ["@polka/url@1.0.0-next.29", "", {}, "sha512-wwQAWhWSuHaag8c4q/KN/vCoeOJYshAIvMQwD4GpSb3OiZklFfvAgmj0VCBBImRpuF/aFgIRzllXlVX93Jevww=="], - - "@protobufjs/aspromise": ["@protobufjs/aspromise@1.1.2", "", {}, "sha512-j+gKExEuLmKwvz3OgROXtrJ2UG2x8Ch2YZUxahh+s1F2HZ+wAceUNLkvy6zKCPVRkU++ZWQrdxsUeQXmcg4uoQ=="], - - "@protobufjs/base64": ["@protobufjs/base64@1.1.2", "", {}, "sha512-AZkcAA5vnN/v4PDqKyMR5lx7hZttPDgClv83E//FMNhR2TMcLUhfRUBHCmSl0oi9zMgDDqRUJkSxO3wm85+XLg=="], - - "@protobufjs/codegen": ["@protobufjs/codegen@2.0.4", "", {}, "sha512-YyFaikqM5sH0ziFZCN3xDC7zeGaB/d0IUb9CATugHWbd1FRFwWwt4ld4OYMPWu5a3Xe01mGAULCdqhMlPl29Jg=="], - - "@protobufjs/eventemitter": ["@protobufjs/eventemitter@1.1.0", "", {}, "sha512-j9ednRT81vYJ9OfVuXG6ERSTdEL1xVsNgqpkxMsbIabzSo3goCjDIveeGv5d03om39ML71RdmrGNjG5SReBP/Q=="], - - "@protobufjs/fetch": ["@protobufjs/fetch@1.1.0", "", { "dependencies": { "@protobufjs/aspromise": "^1.1.1", "@protobufjs/inquire": "^1.1.0" } }, "sha512-lljVXpqXebpsijW71PZaCYeIcE5on1w5DlQy5WH6GLbFryLUrBD4932W/E2BSpfRJWseIL4v/KPgBFxDOIdKpQ=="], - - "@protobufjs/float": ["@protobufjs/float@1.0.2", "", {}, "sha512-Ddb+kVXlXst9d+R9PfTIxh1EdNkgoRe5tOX6t01f1lYWOvJnSPDBlG241QLzcyPdoNTsblLUdujGSE4RzrTZGQ=="], - - "@protobufjs/inquire": ["@protobufjs/inquire@1.1.0", "", {}, "sha512-kdSefcPdruJiFMVSbn801t4vFK7KB/5gd2fYvrxhuJYg8ILrmn9SKSX2tZdV6V+ksulWqS7aXjBcRXl3wHoD9Q=="], - - "@protobufjs/path": ["@protobufjs/path@1.1.2", "", {}, "sha512-6JOcJ5Tm08dOHAbdR3GrvP+yUUfkjG5ePsHYczMFLq3ZmMkAD98cDgcT2iA1lJ9NVwFd4tH/iSSoe44YWkltEA=="], - - "@protobufjs/pool": ["@protobufjs/pool@1.1.0", "", {}, "sha512-0kELaGSIDBKvcgS4zkjz1PeddatrjYcmMWOlAuAPwAeccUrPHdUqo/J6LiymHHEiJT5NrF1UVwxY14f+fy4WQw=="], - - "@protobufjs/utf8": ["@protobufjs/utf8@1.1.0", "", {}, "sha512-Vvn3zZrhQZkkBE8LSuW3em98c0FwgO4nxzv6OdSxPKJIEKY2bGbHn+mhGIPerzI4twdxaP8/0+06HBpwf345Lw=="], - - "@rspack/binding": ["@rspack/binding@1.6.4", "", { "optionalDependencies": { "@rspack/binding-darwin-arm64": "1.6.4", "@rspack/binding-darwin-x64": "1.6.4", "@rspack/binding-linux-arm64-gnu": "1.6.4", "@rspack/binding-linux-arm64-musl": "1.6.4", "@rspack/binding-linux-x64-gnu": "1.6.4", "@rspack/binding-linux-x64-musl": "1.6.4", "@rspack/binding-wasm32-wasi": "1.6.4", "@rspack/binding-win32-arm64-msvc": "1.6.4", "@rspack/binding-win32-ia32-msvc": "1.6.4", "@rspack/binding-win32-x64-msvc": "1.6.4" } }, "sha512-vUxc/zUdsCuyysOvP4CTdIYxsZPb2jIXST5vrLABiTPIaHpXZ0hVdgKif2XPJwJeuCVS6w25xvyPN0mBCU0MvQ=="], - - "@rspack/binding-darwin-arm64": ["@rspack/binding-darwin-arm64@1.6.4", "", { "os": "darwin", "cpu": "arm64" }, "sha512-qD2C5xwdY2qKEXTZiPJQx1L1kELapOc0AaZDqcAyzXs30d1qTKpx6PdyW3HN+gueKovyWZwMMYfz6RxcMCnaDQ=="], - - "@rspack/binding-darwin-x64": ["@rspack/binding-darwin-x64@1.6.4", "", { "os": "darwin", "cpu": "x64" }, "sha512-IHceyLDxeubqIrGz4gUqJavnygTij4vtDDE2Fkgobz7hkTJwGtD5mxBKbVNRqGvhrasVw0h9rEjR7tdbDSiUhQ=="], - - "@rspack/binding-linux-arm64-gnu": ["@rspack/binding-linux-arm64-gnu@1.6.4", "", { "os": "linux", "cpu": "arm64" }, "sha512-Ldpoz2wWnBaL2+XKLIOyCZMkAkd4pk/L24EVgma3SpRtwgenLEr10bQupvwGAK5OLkjayslOTZmRiAv0FH5o/w=="], - - "@rspack/binding-linux-arm64-musl": ["@rspack/binding-linux-arm64-musl@1.6.4", "", { "os": "linux", "cpu": "arm64" }, "sha512-3fLMSDK5yMjKmx7iFbYG3P3A0xNdtmNu09v5P6hzq65tkJ3dflIt3p8DvtOTURtuSgQZV2A1LDd9hpIXdnigqA=="], - - "@rspack/binding-linux-x64-gnu": ["@rspack/binding-linux-x64-gnu@1.6.4", "", { "os": "linux", "cpu": "x64" }, "sha512-5YzXUKLnaiqND05CDgkKE0WNRtC1ulkVncYs78xPikonzZmgVXa8eRaTPOZC6ZjpLR0eTsg+MSesLUsPUu27hA=="], - - "@rspack/binding-linux-x64-musl": ["@rspack/binding-linux-x64-musl@1.6.4", "", { "os": "linux", "cpu": "x64" }, "sha512-KcSFla8a9bXG1mmV5oQ1R5h/dSXfd41/qHOsNuLqho2UCX8CVh4dezUA153dj7p1S4yOhTy6VZZi6C1szweE9A=="], - - "@rspack/binding-wasm32-wasi": ["@rspack/binding-wasm32-wasi@1.6.4", "", { "dependencies": { "@napi-rs/wasm-runtime": "1.0.7" }, "cpu": "none" }, "sha512-mfFJbDJkRy5I1iW3m0JlWbc0X8pjVd+GRUz5nhbccwEhSQOc27ao3evf7XPU4aaDxud1B3UEqYiRcRmtm1BrjA=="], - - "@rspack/binding-win32-arm64-msvc": ["@rspack/binding-win32-arm64-msvc@1.6.4", "", { "os": "win32", "cpu": "arm64" }, "sha512-QtIqxsfeTSS1lwfaPGrPFfJ9ir/3aWZv5t3iAgYj/CNUA8MTKWt4vQKcco7NRIGK4ZLMI+dgJBFtvd/lUDMQsw=="], - - "@rspack/binding-win32-ia32-msvc": ["@rspack/binding-win32-ia32-msvc@1.6.4", "", { "os": "win32", "cpu": "ia32" }, "sha512-HXEWGDllgh0jFwjGhkGcLqb0dzXbc/rA8vQr2JcSdC41p1DTzLgO215jWdKSIvzCzhyPh3VeQkXk76hjFB2cLQ=="], - - "@rspack/binding-win32-x64-msvc": ["@rspack/binding-win32-x64-msvc@1.6.4", "", { "os": "win32", "cpu": "x64" }, "sha512-MAO5rOnGYoeuT2LPn/P7JVJCi3d78XoXgOq3tkGh6qXhvhkjsBRtYluWCzACXQpXfFHEWYd7uT5yHoZgxiVuoA=="], - - "@rspack/cli": ["@rspack/cli@1.6.4", "", { "dependencies": { "@discoveryjs/json-ext": "^0.5.7", "@rspack/dev-server": "~1.1.4", "exit-hook": "^4.0.0", "webpack-bundle-analyzer": "4.10.2" }, "peerDependencies": { "@rspack/core": "^1.0.0-alpha || ^1.x" }, "bin": { "rspack": "bin/rspack.js" } }, "sha512-hhqebrFKp5yNPmLhxVGCNoCsJeiUryXdreNn8b2AXOgh3JN1J0Ftb9QBzmFp7H59afzvuER2HmFIR1Fmb6D2CQ=="], - - "@rspack/core": ["@rspack/core@1.6.4", "", { "dependencies": { "@module-federation/runtime-tools": "0.21.4", "@rspack/binding": "1.6.4", "@rspack/lite-tapable": "1.1.0" }, "peerDependencies": { "@swc/helpers": ">=0.5.1" }, "optionalPeers": ["@swc/helpers"] }, "sha512-5F1+MQD8rfbFbUHnaiZe4jqOu9pnSb+PliqQvi0lj+uvpMpcS3sJDIs/mz6P1u87lfkfBXChIT4zSLAzeOgMWw=="], - - "@rspack/dev-server": ["@rspack/dev-server@1.1.4", "", { "dependencies": { "chokidar": "^3.6.0", "http-proxy-middleware": "^2.0.9", "p-retry": "^6.2.0", "webpack-dev-server": "5.2.2", "ws": "^8.18.0" }, "peerDependencies": { "@rspack/core": "*" } }, "sha512-kGHYX2jYf3ZiHwVl0aUEPBOBEIG1aWleCDCAi+Jg32KUu3qr/zDUpCEd0wPuHfLEgk0X0xAEYCS6JMO7nBStNQ=="], - - "@rspack/lite-tapable": ["@rspack/lite-tapable@1.1.0", "", {}, "sha512-E2B0JhYFmVAwdDiG14+DW0Di4Ze4Jg10Pc4/lILUrd5DRCaklduz2OvJ5HYQ6G+hd+WTzqQb3QnDNfK4yvAFYw=="], - - "@tybys/wasm-util": ["@tybys/wasm-util@0.10.1", "", { "dependencies": { "tslib": "^2.4.0" } }, "sha512-9tTaPJLSiejZKx+Bmog4uSubteqTvFrVrURwkmHixBo0G4seD0zUxp98E1DzUBJxLQ3NPwXrGKDiVjwx/DpPsg=="], - - "@types/body-parser": ["@types/body-parser@1.19.6", "", { "dependencies": { "@types/connect": "*", "@types/node": "*" } }, "sha512-HLFeCYgz89uk22N5Qg3dvGvsv46B8GLvKKo1zKG4NybA8U2DiEO3w9lqGg29t/tfLRJpJ6iQxnVw4OnB7MoM9g=="], - - "@types/bonjour": ["@types/bonjour@3.5.13", "", { "dependencies": { "@types/node": "*" } }, "sha512-z9fJ5Im06zvUL548KvYNecEVlA7cVDkGUi6kZusb04mpyEFKCIZJvloCcmpmLaIahDpOQGHaHmG6imtPMmPXGQ=="], - - "@types/connect": ["@types/connect@3.4.38", "", { "dependencies": { "@types/node": "*" } }, "sha512-K6uROf1LD88uDQqJCktA4yzL1YYAK6NgfsI0v/mTgyPKWsX1CnJ0XPSDhViejru1GcRkLWb8RlzFYJRqGUbaug=="], - - "@types/connect-history-api-fallback": ["@types/connect-history-api-fallback@1.5.4", "", { "dependencies": { "@types/express-serve-static-core": "*", "@types/node": "*" } }, "sha512-n6Cr2xS1h4uAulPRdlw6Jl6s1oG8KrVilPN2yUITEs+K48EzMJJ3W1xy8K5eWuFvjp3R74AOIGSmp2UfBJ8HFw=="], - - "@types/express": ["@types/express@4.17.25", "", { "dependencies": { "@types/body-parser": "*", "@types/express-serve-static-core": "^4.17.33", "@types/qs": "*", "@types/serve-static": "^1" } }, "sha512-dVd04UKsfpINUnK0yBoYHDF3xu7xVH4BuDotC/xGuycx4CgbP48X/KF/586bcObxT0HENHXEU8Nqtu6NR+eKhw=="], - - "@types/express-serve-static-core": ["@types/express-serve-static-core@4.19.7", "", { "dependencies": { "@types/node": "*", "@types/qs": "*", "@types/range-parser": "*", "@types/send": "*" } }, "sha512-FvPtiIf1LfhzsaIXhv/PHan/2FeQBbtBDtfX2QfvPxdUelMDEckK08SM6nqo1MIZY3RUlfA+HV8+hFUSio78qg=="], - - "@types/http-errors": ["@types/http-errors@2.0.5", "", {}, "sha512-r8Tayk8HJnX0FztbZN7oVqGccWgw98T/0neJphO91KkmOzug1KkofZURD4UaD5uH8AqcFLfdPErnBod0u71/qg=="], - - "@types/http-proxy": ["@types/http-proxy@1.17.17", "", { "dependencies": { "@types/node": "*" } }, "sha512-ED6LB+Z1AVylNTu7hdzuBqOgMnvG/ld6wGCG8wFnAzKX5uyW2K3WD52v0gnLCTK/VLpXtKckgWuyScYK6cSPaw=="], - - "@types/json-schema": ["@types/json-schema@7.0.15", "", {}, "sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA=="], - - "@types/mime": ["@types/mime@1.3.5", "", {}, "sha512-/pyBZWSLD2n0dcHE3hq8s8ZvcETHtEuF+3E7XVt0Ig2nvsVQXdghHVcEkIWjy9A0wKfTn97a/PSDYohKIlnP/w=="], - - "@types/node": ["@types/node@24.10.1", "", { "dependencies": { "undici-types": "~7.16.0" } }, "sha512-GNWcUTRBgIRJD5zj+Tq0fKOJ5XZajIiBroOF0yvj2bSU1WvNdYS/dn9UxwsujGW4JX06dnHyjV2y9rRaybH0iQ=="], - - "@types/node-forge": ["@types/node-forge@1.3.14", "", { "dependencies": { "@types/node": "*" } }, "sha512-mhVF2BnD4BO+jtOp7z1CdzaK4mbuK0LLQYAvdOLqHTavxFNq4zA1EmYkpnFjP8HOUzedfQkRnp0E2ulSAYSzAw=="], - - "@types/qs": ["@types/qs@6.14.0", "", {}, "sha512-eOunJqu0K1923aExK6y8p6fsihYEn/BYuQ4g0CxAAgFc4b/ZLN4CrsRZ55srTdqoiLzU2B2evC+apEIxprEzkQ=="], - - "@types/range-parser": ["@types/range-parser@1.2.7", "", {}, "sha512-hKormJbkJqzQGhziax5PItDUTMAM9uE2XXQmM37dyd4hVM+5aVl7oVxMVUiVQn2oCQFN/LKCZdvSM0pFRqbSmQ=="], - - "@types/retry": ["@types/retry@0.12.2", "", {}, "sha512-XISRgDJ2Tc5q4TRqvgJtzsRkFYNJzZrhTdtMoGVBttwzzQJkPnS3WWTFc7kuDRoPtPakl+T+OfdEUjYJj7Jbow=="], - - "@types/send": ["@types/send@0.17.6", "", { "dependencies": { "@types/mime": "^1", "@types/node": "*" } }, "sha512-Uqt8rPBE8SY0RK8JB1EzVOIZ32uqy8HwdxCnoCOsYrvnswqmFZ/k+9Ikidlk/ImhsdvBsloHbAlewb2IEBV/Og=="], - - "@types/serve-index": ["@types/serve-index@1.9.4", "", { "dependencies": { "@types/express": "*" } }, "sha512-qLpGZ/c2fhSs5gnYsQxtDEq3Oy8SXPClIXkW5ghvAvsNuVSA8k+gCONcUCS/UjLEYvYps+e8uBtfgXgvhwfNug=="], - - "@types/serve-static": ["@types/serve-static@1.15.10", "", { "dependencies": { "@types/http-errors": "*", "@types/node": "*", "@types/send": "<1" } }, "sha512-tRs1dB+g8Itk72rlSI2ZrW6vZg0YrLI81iQSTkMmOqnqCaNr/8Ek4VwWcN5vZgCYWbg/JJSGBlUaYGAOP73qBw=="], - - "@types/sockjs": ["@types/sockjs@0.3.36", "", { "dependencies": { "@types/node": "*" } }, "sha512-MK9V6NzAS1+Ud7JV9lJLFqW85VbC9dq3LmwZCuBe4wBDgKC0Kj/jd8Xl+nSviU+Qc3+m7umHHyHg//2KSa0a0Q=="], - - "@types/ws": ["@types/ws@8.18.1", "", { "dependencies": { "@types/node": "*" } }, "sha512-ThVF6DCVhA8kUGy+aazFQ4kXQ7E1Ty7A3ypFOe0IcJV8O/M511G99AW24irKrW56Wt44yG9+ij8FaqoBGkuBXg=="], - - "accepts": ["accepts@1.3.8", "", { "dependencies": { "mime-types": "~2.1.34", "negotiator": "0.6.3" } }, "sha512-PYAthTa2m2VKxuvSD3DPC/Gy+U+sOA1LAuT8mkmRuvw+NACSaeXEQ+NHcVF7rONl6qcaxV3Uuemwawk+7+SJLw=="], - - "acorn": ["acorn@8.15.0", "", { "bin": { "acorn": "bin/acorn" } }, "sha512-NZyJarBfL7nWwIq+FDL6Zp/yHEhePMNnnJ0y3qfieCrmNvYct8uvtiV41UvlSe6apAfk0fY1FbWx+NwfmpvtTg=="], - - "acorn-walk": ["acorn-walk@8.3.4", "", { "dependencies": { "acorn": "^8.11.0" } }, "sha512-ueEepnujpqee2o5aIYnvHU6C0A42MNdsIDeqy5BydrkuC5R1ZuUFnm27EeFJGoEHJQgn3uleRvmTXaJgfXbt4g=="], - - "ajv": ["ajv@8.17.1", "", { "dependencies": { "fast-deep-equal": "^3.1.3", "fast-uri": "^3.0.1", "json-schema-traverse": "^1.0.0", "require-from-string": "^2.0.2" } }, "sha512-B/gBuNg5SiMTrPkC+A2+cW0RszwxYmn6VYxB/inlBStS5nx6xHIt/ehKRhIMhqusl7a8LjQoZnjCs5vhwxOQ1g=="], - - "ajv-formats": ["ajv-formats@2.1.1", "", { "dependencies": { "ajv": "^8.0.0" } }, "sha512-Wx0Kx52hxE7C18hkMEggYlEifqWZtYaRgouJor+WMdPnQyEK13vgEWyVNup7SoeeoLMsr4kf5h6dOW11I15MUA=="], - - "ajv-keywords": ["ajv-keywords@5.1.0", "", { "dependencies": { "fast-deep-equal": "^3.1.3" }, "peerDependencies": { "ajv": "^8.8.2" } }, "sha512-YCS/JNFAUyr5vAuhk1DWm1CBxRHW9LbJ2ozWeemrIqpbsqKjHVxYPyi5GC0rjZIT5JxJ3virVTS8wk4i/Z+krw=="], - - "ansi-html-community": ["ansi-html-community@0.0.8", "", { "bin": { "ansi-html": "bin/ansi-html" } }, "sha512-1APHAyr3+PCamwNw3bXCPp4HFLONZt/yIH0sZp0/469KWNTEy+qN5jQ3GVX6DMZ1UXAi34yVwtTeaG/HpBuuzw=="], - - "anymatch": ["anymatch@3.1.3", "", { "dependencies": { "normalize-path": "^3.0.0", "picomatch": "^2.0.4" } }, "sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw=="], - - "array-flatten": ["array-flatten@1.1.1", "", {}, "sha512-PCVAQswWemu6UdxsDFFX/+gVeYqKAod3D3UVm91jHwynguOwAvYPhx8nNlM++NqRcK6CxxpUafjmhIdKiHibqg=="], - - "batch": ["batch@0.6.1", "", {}, "sha512-x+VAiMRL6UPkx+kudNvxTl6hB2XNNCG2r+7wixVfIYwu/2HKRXimwQyaumLjMveWvT2Hkd/cAJw+QBMfJ/EKVw=="], - - "binary-extensions": ["binary-extensions@2.3.0", "", {}, "sha512-Ceh+7ox5qe7LJuLHoY0feh3pHuUDHAcRUeyL2VYghZwfpkNIy/+8Ocg0a3UuSoYzavmylwuLWQOf3hl0jjMMIw=="], - - "body-parser": ["body-parser@1.20.3", "", { "dependencies": { "bytes": "3.1.2", "content-type": "~1.0.5", "debug": "2.6.9", "depd": "2.0.0", "destroy": "1.2.0", "http-errors": "2.0.0", "iconv-lite": "0.4.24", "on-finished": "2.4.1", "qs": "6.13.0", "raw-body": "2.5.2", "type-is": "~1.6.18", "unpipe": "1.0.0" } }, "sha512-7rAxByjUMqQ3/bHJy7D6OGXvx/MMc4IqBn/X0fcM1QUcAItpZrBEYhWGem+tzXH90c+G01ypMcYJBO9Y30203g=="], - - "bonjour-service": ["bonjour-service@1.3.0", "", { "dependencies": { "fast-deep-equal": "^3.1.3", "multicast-dns": "^7.2.5" } }, "sha512-3YuAUiSkWykd+2Azjgyxei8OWf8thdn8AITIog2M4UICzoqfjlqr64WIjEXZllf/W6vK1goqleSR6brGomxQqA=="], - - "braces": ["braces@3.0.3", "", { "dependencies": { "fill-range": "^7.1.1" } }, "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA=="], - - "bundle-name": ["bundle-name@4.1.0", "", { "dependencies": { "run-applescript": "^7.0.0" } }, "sha512-tjwM5exMg6BGRI+kNmTntNsvdZS1X8BFYS6tnJ2hdH0kVxM6/eVZ2xy+FqStSWvYmtfFMDLIxurorHwDKfDz5Q=="], - - "bytes": ["bytes@3.1.2", "", {}, "sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg=="], - - "call-bind-apply-helpers": ["call-bind-apply-helpers@1.0.2", "", { "dependencies": { "es-errors": "^1.3.0", "function-bind": "^1.1.2" } }, "sha512-Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ=="], - - "call-bound": ["call-bound@1.0.4", "", { "dependencies": { "call-bind-apply-helpers": "^1.0.2", "get-intrinsic": "^1.3.0" } }, "sha512-+ys997U96po4Kx/ABpBCqhA9EuxJaQWDQg7295H4hBphv3IZg0boBKuwYpt4YXp6MZ5AmZQnU/tyMTlRpaSejg=="], - - "chokidar": ["chokidar@3.6.0", "", { "dependencies": { "anymatch": "~3.1.2", "braces": "~3.0.2", "glob-parent": "~5.1.2", "is-binary-path": "~2.1.0", "is-glob": "~4.0.1", "normalize-path": "~3.0.0", "readdirp": "~3.6.0" }, "optionalDependencies": { "fsevents": "~2.3.2" } }, "sha512-7VT13fmjotKpGipCW9JEQAusEPE+Ei8nl6/g4FBAmIm0GOOLMua9NDDo/DWp0ZAxCr3cPq5ZpBqmPAQgDda2Pw=="], - - "colorette": ["colorette@2.0.20", "", {}, "sha512-IfEDxwoWIjkeXL1eXcDiow4UbKjhLdq6/EuSVR9GMN7KVH3r9gQ83e73hsz1Nd1T3ijd5xv1wcWRYO+D6kCI2w=="], - - "commander": ["commander@7.2.0", "", {}, "sha512-QrWXB+ZQSVPmIWIhtEO9H+gwHaMGYiF5ChvoJ+K9ZGHG/sVsa6yiesAD1GC/x46sET00Xlwo1u49RVVVzvcSkw=="], - - "compressible": ["compressible@2.0.18", "", { "dependencies": { "mime-db": ">= 1.43.0 < 2" } }, "sha512-AF3r7P5dWxL8MxyITRMlORQNaOA2IkAFaTr4k7BUumjPtRpGDTZpl0Pb1XCO6JeDCBdp126Cgs9sMxqSjgYyRg=="], - - "compression": ["compression@1.8.1", "", { "dependencies": { "bytes": "3.1.2", "compressible": "~2.0.18", "debug": "2.6.9", "negotiator": "~0.6.4", "on-headers": "~1.1.0", "safe-buffer": "5.2.1", "vary": "~1.1.2" } }, "sha512-9mAqGPHLakhCLeNyxPkK4xVo746zQ/czLH1Ky+vkitMnWfWZps8r0qXuwhwizagCRttsL4lfG4pIOvaWLpAP0w=="], - - "connect-history-api-fallback": ["connect-history-api-fallback@2.0.0", "", {}, "sha512-U73+6lQFmfiNPrYbXqr6kZ1i1wiRqXnp2nhMsINseWXO8lDau0LGEffJ8kQi4EjLZympVgRdvqjAgiZ1tgzDDA=="], - - "content-disposition": ["content-disposition@0.5.4", "", { "dependencies": { "safe-buffer": "5.2.1" } }, "sha512-FveZTNuGw04cxlAiWbzi6zTAL/lhehaWbTtgluJh4/E95DqMwTmha3KZN1aAWA8cFIhHzMZUvLevkw5Rqk+tSQ=="], - - "content-type": ["content-type@1.0.5", "", {}, "sha512-nTjqfcBFEipKdXCv4YDQWCfmcLZKm81ldF0pAopTvyrFGVbcR6P/VAAd5G7N+0tTr8QqiU0tFadD6FK4NtJwOA=="], - - "cookie": ["cookie@0.7.1", "", {}, "sha512-6DnInpx7SJ2AK3+CTUE/ZM0vWTUboZCegxhC2xiIydHR9jNuTAASBrfEpHhiGOZw/nX51bHt6YQl8jsGo4y/0w=="], - - "cookie-signature": ["cookie-signature@1.0.6", "", {}, "sha512-QADzlaHc8icV8I7vbaJXJwod9HWYp8uCqf1xa4OfNu1T7JVxQIrUgOWtHdNDtPiywmFbiS12VjotIXLrKM3orQ=="], - - "core-util-is": ["core-util-is@1.0.3", "", {}, "sha512-ZQBvi1DcpJ4GDqanjucZ2Hj3wEO5pZDS89BWbkcrvdxksJorwUDDZamX9ldFkp9aw2lmBDLgkObEA4DWNJ9FYQ=="], - - "crypto-randomuuid": ["crypto-randomuuid@1.0.0", "", {}, "sha512-/RC5F4l1SCqD/jazwUF6+t34Cd8zTSAGZ7rvvZu1whZUhD2a5MOGKjSGowoGcpj/cbVZk1ZODIooJEQQq3nNAA=="], - - "debounce": ["debounce@1.2.1", "", {}, "sha512-XRRe6Glud4rd/ZGQfiV1ruXSfbvfJedlV9Y6zOlP+2K04vBYiJEte6stfFkCP03aMnY5tsipamumUjL14fofug=="], - - "debug": ["debug@2.6.9", "", { "dependencies": { "ms": "2.0.0" } }, "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA=="], - - "default-browser": ["default-browser@5.4.0", "", { "dependencies": { "bundle-name": "^4.1.0", "default-browser-id": "^5.0.0" } }, "sha512-XDuvSq38Hr1MdN47EDvYtx3U0MTqpCEn+F6ft8z2vYDzMrvQhVp0ui9oQdqW3MvK3vqUETglt1tVGgjLuJ5izg=="], - - "default-browser-id": ["default-browser-id@5.0.1", "", {}, "sha512-x1VCxdX4t+8wVfd1so/9w+vQ4vx7lKd2Qp5tDRutErwmR85OgmfX7RlLRMWafRMY7hbEiXIbudNrjOAPa/hL8Q=="], - - "define-lazy-prop": ["define-lazy-prop@3.0.0", "", {}, "sha512-N+MeXYoqr3pOgn8xfyRPREN7gHakLYjhsHhWGT3fWAiL4IkAt0iDw14QiiEm2bE30c5XX5q0FtAA3CK5f9/BUg=="], - - "depd": ["depd@2.0.0", "", {}, "sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw=="], - - "destroy": ["destroy@1.2.0", "", {}, "sha512-2sJGJTaXIIaR1w4iJSNoN0hnMY7Gpc/n8D4qSCJw8QqFWXf7cuAgnEHxBpweaVcPevC2l3KpjYCx3NypQQgaJg=="], - - "detect-newline": ["detect-newline@3.1.0", "", {}, "sha512-TLz+x/vEXm/Y7P7wn1EJFNLxYpUD4TgMosxY6fAVJUnJMbupHBOncxyWUG9OpTaH9EBD7uFI5LfEgmMOc54DsA=="], - - "detect-node": ["detect-node@2.1.0", "", {}, "sha512-T0NIuQpnTvFDATNuHN5roPwSBG83rFsuO+MXXH9/3N1eFbn4wcPjttvjMLEPWJ0RGUYgQE7cGgS3tNxbqCGM7g=="], - - "dns-packet": ["dns-packet@5.6.1", "", { "dependencies": { "@leichtgewicht/ip-codec": "^2.0.1" } }, "sha512-l4gcSouhcgIKRvyy99RNVOgxXiicE+2jZoNmaNmZ6JXiGajBOJAesk1OBlJuM5k2c+eudGdLxDqXuPCKIj6kpw=="], - - "dunder-proto": ["dunder-proto@1.0.1", "", { "dependencies": { "call-bind-apply-helpers": "^1.0.1", "es-errors": "^1.3.0", "gopd": "^1.2.0" } }, "sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A=="], - - "duplexer": ["duplexer@0.1.2", "", {}, "sha512-jtD6YG370ZCIi/9GTaJKQxWTZD045+4R4hTk/x1UyoqadyJ9x9CgSi1RlVDQF8U2sxLLSnFkCaMihqljHIWgMg=="], - - "ee-first": ["ee-first@1.1.1", "", {}, "sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow=="], - - "encodeurl": ["encodeurl@2.0.0", "", {}, "sha512-Q0n9HRi4m6JuGIV1eFlmvJB7ZEVxu93IrMyiMsGC0lrMJMWzRgx6WGquyfQgZVb31vhGgXnfmPNNXmxnOkRBrg=="], - - "es-define-property": ["es-define-property@1.0.1", "", {}, "sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g=="], - - "es-errors": ["es-errors@1.3.0", "", {}, "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw=="], - - "es-object-atoms": ["es-object-atoms@1.1.1", "", { "dependencies": { "es-errors": "^1.3.0" } }, "sha512-FGgH2h8zKNim9ljj7dankFPcICIK9Cp5bm+c2gQSYePhpaG5+esrLODihIorn+Pe6FGJzWhXQotPv73jTaldXA=="], - - "escape-html": ["escape-html@1.0.3", "", {}, "sha512-NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow=="], - - "escape-string-regexp": ["escape-string-regexp@4.0.0", "", {}, "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA=="], - - "etag": ["etag@1.8.1", "", {}, "sha512-aIL5Fx7mawVa300al2BnEE4iNvo1qETxLrPI/o05L7z6go7fCw1J6EQmbK4FmJ2AS7kgVF/KEZWufBfdClMcPg=="], - - "eventemitter3": ["eventemitter3@4.0.7", "", {}, "sha512-8guHBZCwKnFhYdHr2ysuRWErTwhoN2X8XELRlrRwpmfeY2jjuUN4taQMsULKUVo1K4DvZl+0pgfyoysHxvmvEw=="], - - "exit-hook": ["exit-hook@4.0.0", "", {}, "sha512-Fqs7ChZm72y40wKjOFXBKg7nJZvQJmewP5/7LtePDdnah/+FH9Hp5sgMujSCMPXlxOAW2//1jrW9pnsY7o20vQ=="], - - "express": ["express@4.21.2", "", { "dependencies": { "accepts": "~1.3.8", "array-flatten": "1.1.1", "body-parser": "1.20.3", "content-disposition": "0.5.4", "content-type": "~1.0.4", "cookie": "0.7.1", "cookie-signature": "1.0.6", "debug": "2.6.9", "depd": "2.0.0", "encodeurl": "~2.0.0", "escape-html": "~1.0.3", "etag": "~1.8.1", "finalhandler": "1.3.1", "fresh": "0.5.2", "http-errors": "2.0.0", "merge-descriptors": "1.0.3", "methods": "~1.1.2", "on-finished": "2.4.1", "parseurl": "~1.3.3", "path-to-regexp": "0.1.12", "proxy-addr": "~2.0.7", "qs": "6.13.0", "range-parser": "~1.2.1", "safe-buffer": "5.2.1", "send": "0.19.0", "serve-static": "1.16.2", "setprototypeof": "1.2.0", "statuses": "2.0.1", "type-is": "~1.6.18", "utils-merge": "1.0.1", "vary": "~1.1.2" } }, "sha512-28HqgMZAmih1Czt9ny7qr6ek2qddF4FclbMzwhCREB6OFfH+rXAnuNCwo1/wFvrtbgsQDb4kSbX9de9lFbrXnA=="], - - "fast-deep-equal": ["fast-deep-equal@3.1.3", "", {}, "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q=="], - - "fast-fifo": ["fast-fifo@1.3.2", "", {}, "sha512-/d9sfos4yxzpwkDkuN7k2SqFKtYNmCTzgfEpz82x34IM9/zc8KGxQoXg1liNC/izpRM/MBdt44Nmx41ZWqk+FQ=="], - - "fast-uri": ["fast-uri@3.1.0", "", {}, "sha512-iPeeDKJSWf4IEOasVVrknXpaBV0IApz/gp7S2bb7Z4Lljbl2MGJRqInZiUrQwV16cpzw/D3S5j5Julj/gT52AA=="], - - "faye-websocket": ["faye-websocket@0.11.4", "", { "dependencies": { "websocket-driver": ">=0.5.1" } }, "sha512-CzbClwlXAuiRQAlUyfqPgvPoNKTckTPGfwZV4ZdAhVcP2lh9KUxJg2b5GkE7XbjKQ3YJnQ9z6D9ntLAlB+tP8g=="], - - "fill-range": ["fill-range@7.1.1", "", { "dependencies": { "to-regex-range": "^5.0.1" } }, "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg=="], - - "finalhandler": ["finalhandler@1.3.1", "", { "dependencies": { "debug": "2.6.9", "encodeurl": "~2.0.0", "escape-html": "~1.0.3", "on-finished": "2.4.1", "parseurl": "~1.3.3", "statuses": "2.0.1", "unpipe": "~1.0.0" } }, "sha512-6BN9trH7bp3qvnrRyzsBz+g3lZxTNZTbVO2EV1CS0WIcDbawYVdYvGflME/9QP0h0pYlCDBCTjYa9nZzMDpyxQ=="], - - "follow-redirects": ["follow-redirects@1.15.11", "", {}, "sha512-deG2P0JfjrTxl50XGCDyfI97ZGVCxIpfKYmfyrQ54n5FO/0gfIES8C/Psl6kWVDolizcaaxZJnTS0QSMxvnsBQ=="], - - "forwarded": ["forwarded@0.2.0", "", {}, "sha512-buRG0fpBtRHSTCOASe6hD258tEubFoRLb4ZNA6NxMVHNw2gOcwHo9wyablzMzOA5z9xA9L1KNjk/Nt6MT9aYow=="], - - "fresh": ["fresh@0.5.2", "", {}, "sha512-zJ2mQYM18rEFOudeV4GShTGIQ7RbzA7ozbU9I/XBpm7kqgMywgmylMwXHxZJmkVoYkna9d2pVXVXPdYTP9ej8Q=="], - - "fsevents": ["fsevents@2.3.3", "", { "os": "darwin" }, "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw=="], - - "function-bind": ["function-bind@1.1.2", "", {}, "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA=="], - - "get-intrinsic": ["get-intrinsic@1.3.0", "", { "dependencies": { "call-bind-apply-helpers": "^1.0.2", "es-define-property": "^1.0.1", "es-errors": "^1.3.0", "es-object-atoms": "^1.1.1", "function-bind": "^1.1.2", "get-proto": "^1.0.1", "gopd": "^1.2.0", "has-symbols": "^1.1.0", "hasown": "^2.0.2", "math-intrinsics": "^1.1.0" } }, "sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ=="], - - "get-proto": ["get-proto@1.0.1", "", { "dependencies": { "dunder-proto": "^1.0.1", "es-object-atoms": "^1.0.0" } }, "sha512-sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g=="], - - "glob-parent": ["glob-parent@5.1.2", "", { "dependencies": { "is-glob": "^4.0.1" } }, "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow=="], - - "glob-to-regex.js": ["glob-to-regex.js@1.2.0", "", { "peerDependencies": { "tslib": "2" } }, "sha512-QMwlOQKU/IzqMUOAZWubUOT8Qft+Y0KQWnX9nK3ch0CJg0tTp4TvGZsTfudYKv2NzoQSyPcnA6TYeIQ3jGichQ=="], - - "gopd": ["gopd@1.2.0", "", {}, "sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg=="], - - "graceful-fs": ["graceful-fs@4.2.11", "", {}, "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ=="], - - "gzip-size": ["gzip-size@6.0.0", "", { "dependencies": { "duplexer": "^0.1.2" } }, "sha512-ax7ZYomf6jqPTQ4+XCpUGyXKHk5WweS+e05MBO4/y3WJ5RkmPXNKvX+bx1behVILVwr6JSQvZAku021CHPXG3Q=="], - - "handle-thing": ["handle-thing@2.0.1", "", {}, "sha512-9Qn4yBxelxoh2Ow62nP+Ka/kMnOXRi8BXnRaUwezLNhqelnN49xKz4F/dPP8OYLxLxq6JDtZb2i9XznUQbNPTg=="], - - "has-symbols": ["has-symbols@1.1.0", "", {}, "sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ=="], - - "hasown": ["hasown@2.0.2", "", { "dependencies": { "function-bind": "^1.1.2" } }, "sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ=="], - - "hpack.js": ["hpack.js@2.1.6", "", { "dependencies": { "inherits": "^2.0.1", "obuf": "^1.0.0", "readable-stream": "^2.0.1", "wbuf": "^1.1.0" } }, "sha512-zJxVehUdMGIKsRaNt7apO2Gqp0BdqW5yaiGHXXmbpvxgBYVZnAql+BJb4RO5ad2MgpbZKn5G6nMnegrH1FcNYQ=="], - - "html-escaper": ["html-escaper@2.0.2", "", {}, "sha512-H2iMtd0I4Mt5eYiapRdIDjp+XzelXQ0tFE4JS7YFwFevXXMmOp9myNrUvCg0D6ws8iqkRPBfKHgbwig1SmlLfg=="], - - "http-deceiver": ["http-deceiver@1.2.7", "", {}, "sha512-LmpOGxTfbpgtGVxJrj5k7asXHCgNZp5nLfp+hWc8QQRqtb7fUy6kRY3BO1h9ddF6yIPYUARgxGOwB42DnxIaNw=="], - - "http-errors": ["http-errors@2.0.0", "", { "dependencies": { "depd": "2.0.0", "inherits": "2.0.4", "setprototypeof": "1.2.0", "statuses": "2.0.1", "toidentifier": "1.0.1" } }, "sha512-FtwrG/euBzaEjYeRqOgly7G0qviiXoJWnvEH2Z1plBdXgbyjv34pHTSb9zoeHMyDy33+DWy5Wt9Wo+TURtOYSQ=="], - - "http-parser-js": ["http-parser-js@0.5.10", "", {}, "sha512-Pysuw9XpUq5dVc/2SMHpuTY01RFl8fttgcyunjL7eEMhGM3cI4eOmiCycJDVCo/7O7ClfQD3SaI6ftDzqOXYMA=="], - - "http-proxy": ["http-proxy@1.18.1", "", { "dependencies": { "eventemitter3": "^4.0.0", "follow-redirects": "^1.0.0", "requires-port": "^1.0.0" } }, "sha512-7mz/721AbnJwIVbnaSv1Cz3Am0ZLT/UBwkC92VlxhXv/k/BBQfM2fXElQNC27BVGr0uwUpplYPQM9LnaBMR5NQ=="], - - "http-proxy-middleware": ["http-proxy-middleware@2.0.9", "", { "dependencies": { "@types/http-proxy": "^1.17.8", "http-proxy": "^1.18.1", "is-glob": "^4.0.1", "is-plain-obj": "^3.0.0", "micromatch": "^4.0.2" }, "peerDependencies": { "@types/express": "^4.17.13" }, "optionalPeers": ["@types/express"] }, "sha512-c1IyJYLYppU574+YI7R4QyX2ystMtVXZwIdzazUIPIJsHuWNd+mho2j+bKoHftndicGj9yh+xjd+l0yj7VeT1Q=="], - - "hyperdyperid": ["hyperdyperid@1.2.0", "", {}, "sha512-Y93lCzHYgGWdrJ66yIktxiaGULYc6oGiABxhcO5AufBeOyoIdZF7bIfLaOrbM0iGIOXQQgxxRrFEnb+Y6w1n4A=="], - - "iconv-lite": ["iconv-lite@0.4.24", "", { "dependencies": { "safer-buffer": ">= 2.1.2 < 3" } }, "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA=="], - - "ignore": ["ignore@7.0.5", "", {}, "sha512-Hs59xBNfUIunMFgWAbGX5cq6893IbWg4KnrjbYwX3tx0ztorVgTDA6B2sxf8ejHJ4wz8BqGUMYlnzNBer5NvGg=="], - - "inherits": ["inherits@2.0.4", "", {}, "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ=="], - - "ipaddr.js": ["ipaddr.js@2.2.0", "", {}, "sha512-Ag3wB2o37wslZS19hZqorUnrnzSkpOVy+IiiDEiTqNubEYpYuHWIf6K4psgN2ZWKExS4xhVCrRVfb/wfW8fWJA=="], - - "is-binary-path": ["is-binary-path@2.1.0", "", { "dependencies": { "binary-extensions": "^2.0.0" } }, "sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw=="], - - "is-docker": ["is-docker@3.0.0", "", { "bin": { "is-docker": "cli.js" } }, "sha512-eljcgEDlEns/7AXFosB5K/2nCM4P7FQPkGc/DWLy5rmFEWvZayGrik1d9/QIY5nJ4f9YsVvBkA6kJpHn9rISdQ=="], - - "is-extglob": ["is-extglob@2.1.1", "", {}, "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ=="], - - "is-glob": ["is-glob@4.0.3", "", { "dependencies": { "is-extglob": "^2.1.1" } }, "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg=="], - - "is-inside-container": ["is-inside-container@1.0.0", "", { "dependencies": { "is-docker": "^3.0.0" }, "bin": { "is-inside-container": "cli.js" } }, "sha512-KIYLCCJghfHZxqjYBE7rEy0OBuTd5xCHS7tHVgvCLkx7StIoaxwNW3hCALgEUjFfeRk+MG/Qxmp/vtETEF3tRA=="], - - "is-network-error": ["is-network-error@1.3.0", "", {}, "sha512-6oIwpsgRfnDiyEDLMay/GqCl3HoAtH5+RUKW29gYkL0QA+ipzpDLA16yQs7/RHCSu+BwgbJaOUqa4A99qNVQVw=="], - - "is-number": ["is-number@7.0.0", "", {}, "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng=="], - - "is-plain-obj": ["is-plain-obj@3.0.0", "", {}, "sha512-gwsOE28k+23GP1B6vFl1oVh/WOzmawBrKwo5Ev6wMKzPkaXaCDIQKzLnvsA42DRlbVTWorkgTKIviAKCWkfUwA=="], - - "is-wsl": ["is-wsl@3.1.0", "", { "dependencies": { "is-inside-container": "^1.0.0" } }, "sha512-UcVfVfaK4Sc4m7X3dUSoHoozQGBEFeDC+zVo06t98xe8CzHSZZBekNXH+tu0NalHolcJ/QAGqS46Hef7QXBIMw=="], - - "isarray": ["isarray@1.0.0", "", {}, "sha512-VLghIWNM6ELQzo7zwmcg0NmTVyWKYjvIeM83yjp0wRDTmUnrM678fQbcKBo6n2CJEF0szoG//ytg+TKla89ALQ=="], - - "istanbul-lib-coverage": ["istanbul-lib-coverage@3.2.2", "", {}, "sha512-O8dpsF+r0WV/8MNRKfnmrtCWhuKjxrq2w+jpzBL5UZKTi2LeVWnWOmWRxFlesJONmc+wLAGvKQZEOanko0LFTg=="], - - "jest-docblock": ["jest-docblock@29.7.0", "", { "dependencies": { "detect-newline": "^3.0.0" } }, "sha512-q617Auw3A612guyaFgsbFeYpNP5t2aoUNLwBUbc/0kD1R4t9ixDbyFTHd1nok4epoVFpr7PmeWHrhvuV3XaJ4g=="], - - "jsep": ["jsep@1.4.0", "", {}, "sha512-B7qPcEVE3NVkmSJbaYxvv4cHkVW7DQsZz13pUMrfS8z8Q/BuShN+gcTXrUlPiGqM2/t/EEaI030bpxMqY8gMlw=="], - - "json-schema-traverse": ["json-schema-traverse@1.0.0", "", {}, "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug=="], - - "jsonpath-plus": ["jsonpath-plus@10.3.0", "", { "dependencies": { "@jsep-plugin/assignment": "^1.3.0", "@jsep-plugin/regex": "^1.0.4", "jsep": "^1.4.0" }, "bin": { "jsonpath": "bin/jsonpath-cli.js", "jsonpath-plus": "bin/jsonpath-cli.js" } }, "sha512-8TNmfeTCk2Le33A3vRRwtuworG/L5RrgMvdjhKZxvyShO+mBu2fP50OWUjRLNtvw344DdDarFh9buFAZs5ujeA=="], - - "launch-editor": ["launch-editor@2.12.0", "", { "dependencies": { "picocolors": "^1.1.1", "shell-quote": "^1.8.3" } }, "sha512-giOHXoOtifjdHqUamwKq6c49GzBdLjvxrd2D+Q4V6uOHopJv7p9VJxikDsQ/CBXZbEITgUqSVHXLTG3VhPP1Dg=="], - - "limiter": ["limiter@1.1.5", "", {}, "sha512-FWWMIEOxz3GwUI4Ts/IvgVy6LPvoMPgjMdQ185nN6psJyBJ4yOpzqm695/h5umdLJg2vW3GR5iG11MAkR2AzJA=="], - - "lodash.sortby": ["lodash.sortby@4.7.0", "", {}, "sha512-HDWXG8isMntAyRF5vZ7xKuEvOhT4AhlRt/3czTSjvGUxjYCBVRQY48ViDHyfYz9VIoBkW4TMGQNapx+l3RUwdA=="], - - "long": ["long@5.3.2", "", {}, "sha512-mNAgZ1GmyNhD7AuqnTG3/VQ26o760+ZYBPKjPvugO8+nLbYfX6TVpJPseBvopbdY+qpZ/lKUnmEc1LeZYS3QAA=="], - - "lru-cache": ["lru-cache@10.4.3", "", {}, "sha512-JNAzZcXrCt42VGLuYz0zfAzDfAvJWW6AfYlDBQyDV5DClI2m5sAmK+OIO7s59XfsRsWHp02jAJrRadPRGTt6SQ=="], - - "math-intrinsics": ["math-intrinsics@1.1.0", "", {}, "sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g=="], - - "media-typer": ["media-typer@0.3.0", "", {}, "sha512-dq+qelQ9akHpcOl/gUVRTxVIOkAJ1wR3QAvb4RsVjS8oVoFjDGTc679wJYmUmknUF5HwMLOgb5O+a3KxfWapPQ=="], - - "memfs": ["memfs@4.51.0", "", { "dependencies": { "@jsonjoy.com/json-pack": "^1.11.0", "@jsonjoy.com/util": "^1.9.0", "glob-to-regex.js": "^1.0.1", "thingies": "^2.5.0", "tree-dump": "^1.0.3", "tslib": "^2.0.0" } }, "sha512-4zngfkVM/GpIhC8YazOsM6E8hoB33NP0BCESPOA6z7qaL6umPJNqkO8CNYaLV2FB2MV6H1O3x2luHHOSqppv+A=="], - - "merge-descriptors": ["merge-descriptors@1.0.3", "", {}, "sha512-gaNvAS7TZ897/rVaZ0nMtAyxNyi/pdbjbAwUpFQpN70GqnVfOiXpeUUMKRBmzXaSQ8DdTX4/0ms62r2K+hE6mQ=="], - - "methods": ["methods@1.1.2", "", {}, "sha512-iclAHeNqNm68zFtnZ0e+1L2yUIdvzNoauKU4WBA3VvH/vPFieF7qfRlwUZU+DA9P9bPXIS90ulxoUoCH23sV2w=="], - - "micromatch": ["micromatch@4.0.8", "", { "dependencies": { "braces": "^3.0.3", "picomatch": "^2.3.1" } }, "sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA=="], - - "mime": ["mime@1.6.0", "", { "bin": { "mime": "cli.js" } }, "sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg=="], - - "mime-db": ["mime-db@1.54.0", "", {}, "sha512-aU5EJuIN2WDemCcAp2vFBfp/m4EAhWJnUNSSw0ixs7/kXbd6Pg64EmwJkNdFhB8aWt1sH2CTXrLxo/iAGV3oPQ=="], - - "mime-types": ["mime-types@2.1.35", "", { "dependencies": { "mime-db": "1.52.0" } }, "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw=="], - - "minimalistic-assert": ["minimalistic-assert@1.0.1", "", {}, "sha512-UtJcAD4yEaGtjPezWuO9wC4nwUnVH/8/Im3yEHQP4b67cXlD/Qr9hdITCU1xDbSEXg2XKNaP8jsReV7vQd00/A=="], - - "module-details-from-path": ["module-details-from-path@1.0.4", "", {}, "sha512-EGWKgxALGMgzvxYF1UyGTy0HXX/2vHLkw6+NvDKW2jypWbHpjQuj4UMcqQWXHERJhVGKikolT06G3bcKe4fi7w=="], - - "mrmime": ["mrmime@2.0.1", "", {}, "sha512-Y3wQdFg2Va6etvQ5I82yUhGdsKrcYox6p7FfL1LbK2J4V01F9TGlepTIhnK24t7koZibmg82KGglhA1XK5IsLQ=="], - - "ms": ["ms@2.0.0", "", {}, "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A=="], - - "multicast-dns": ["multicast-dns@7.2.5", "", { "dependencies": { "dns-packet": "^5.2.2", "thunky": "^1.0.2" }, "bin": { "multicast-dns": "cli.js" } }, "sha512-2eznPJP8z2BFLX50tf0LuODrpINqP1RVIm/CObbTcBRITQgmC/TjcREF1NeTBzIcR5XO/ukWo+YHOjBbFwIupg=="], - - "mutexify": ["mutexify@1.4.0", "", { "dependencies": { "queue-tick": "^1.0.0" } }, "sha512-pbYSsOrSB/AKN5h/WzzLRMFgZhClWccf2XIB4RSMC8JbquiB0e0/SH5AIfdQMdyHmYtv4seU7yV/TvAwPLJ1Yg=="], - - "negotiator": ["negotiator@0.6.4", "", {}, "sha512-myRT3DiWPHqho5PrJaIRyaMv2kgYf0mUVgBNOYMuCH5Ki1yEiQaf/ZJuQ62nvpc44wL5WDbTX7yGJi1Neevw8w=="], - - "node-forge": ["node-forge@1.3.1", "", {}, "sha512-dPEtOeMvF9VMcYV/1Wb8CPoVAXtp6MKMlcbAt4ddqmGqUJ6fQZFXkNZNkNlfevtNkGtaSoXf/vNNNSvgrdXwtA=="], - - "normalize-path": ["normalize-path@3.0.0", "", {}, "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA=="], - - "object-inspect": ["object-inspect@1.13.4", "", {}, "sha512-W67iLl4J2EXEGTbfeHCffrjDfitvLANg0UlX3wFUUSTx92KXRFegMHUVgSqE+wvhAbi4WqjGg9czysTV2Epbew=="], - - "obuf": ["obuf@1.1.2", "", {}, "sha512-PX1wu0AmAdPqOL1mWhqmlOd8kOIZQwGZw6rh7uby9fTc5lhaOWFLX3I6R1hrF9k3zUY40e6igsLGkDXK92LJNg=="], - - "on-finished": ["on-finished@2.4.1", "", { "dependencies": { "ee-first": "1.1.1" } }, "sha512-oVlzkg3ENAhCk2zdv7IJwd/QUD4z2RxRwpkcGY8psCVcCYZNq4wYnVWALHM+brtuJjePWiYF/ClmuDr8Ch5+kg=="], - - "on-headers": ["on-headers@1.1.0", "", {}, "sha512-737ZY3yNnXy37FHkQxPzt4UZ2UWPWiCZWLvFZ4fu5cueciegX0zGPnrlY6bwRg4FdQOe9YU8MkmJwGhoMybl8A=="], - - "open": ["open@10.2.0", "", { "dependencies": { "default-browser": "^5.2.1", "define-lazy-prop": "^3.0.0", "is-inside-container": "^1.0.0", "wsl-utils": "^0.1.0" } }, "sha512-YgBpdJHPyQ2UE5x+hlSXcnejzAvD0b22U2OuAP+8OnlJT+PjWPxtgmGqKKc+RgTM63U9gN0YzrYc71R2WT/hTA=="], - - "opener": ["opener@1.5.2", "", { "bin": { "opener": "bin/opener-bin.js" } }, "sha512-ur5UIdyw5Y7yEj9wLzhqXiy6GZ3Mwx0yGI+5sMn2r0N0v3cKJvUmFH5yPP+WXh9e0xfyzyJX95D8l088DNFj7A=="], - - "opentracing": ["opentracing@0.14.7", "", {}, "sha512-vz9iS7MJ5+Bp1URw8Khvdyw1H/hGvzHWlKQ7eRrQojSCDL1/SrWfrY9QebLw97n2deyRtzHRC3MkQfVNUCo91Q=="], - - "p-retry": ["p-retry@6.2.1", "", { "dependencies": { "@types/retry": "0.12.2", "is-network-error": "^1.0.0", "retry": "^0.13.1" } }, "sha512-hEt02O4hUct5wtwg4H4KcWgDdm+l1bOaEy/hWzd8xtXB9BqxTWBBhb+2ImAtH4Cv4rPjV76xN3Zumqk3k3AhhQ=="], - - "parseurl": ["parseurl@1.3.3", "", {}, "sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ=="], - - "path-to-regexp": ["path-to-regexp@0.1.12", "", {}, "sha512-RA1GjUVMnvYFxuqovrEqZoxxW5NUZqbwKtYz/Tt7nXerk0LbLblQmrsgdeOxV5SFHf0UDggjS/bSeOZwt1pmEQ=="], - - "picocolors": ["picocolors@1.1.1", "", {}, "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA=="], - - "picomatch": ["picomatch@2.3.1", "", {}, "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA=="], - - "pprof-format": ["pprof-format@2.2.1", "", {}, "sha512-p4tVN7iK19ccDqQv8heyobzUmbHyds4N2FI6aBMcXz6y99MglTWDxIyhFkNaLeEXs6IFUEzT0zya0icbSLLY0g=="], - - "process-nextick-args": ["process-nextick-args@2.0.1", "", {}, "sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag=="], - - "protobufjs": ["protobufjs@7.5.4", "", { "dependencies": { "@protobufjs/aspromise": "^1.1.2", "@protobufjs/base64": "^1.1.2", "@protobufjs/codegen": "^2.0.4", "@protobufjs/eventemitter": "^1.1.0", "@protobufjs/fetch": "^1.1.0", "@protobufjs/float": "^1.0.2", "@protobufjs/inquire": "^1.1.0", "@protobufjs/path": "^1.1.2", "@protobufjs/pool": "^1.1.0", "@protobufjs/utf8": "^1.1.0", "@types/node": ">=13.7.0", "long": "^5.0.0" } }, "sha512-CvexbZtbov6jW2eXAvLukXjXUW1TzFaivC46BpWc/3BpcCysb5Vffu+B3XHMm8lVEuy2Mm4XGex8hBSg1yapPg=="], - - "proxy-addr": ["proxy-addr@2.0.7", "", { "dependencies": { "forwarded": "0.2.0", "ipaddr.js": "1.9.1" } }, "sha512-llQsMLSUDUPT44jdrU/O37qlnifitDP+ZwrmmZcoSKyLKvtZxpyV0n2/bD/N4tBAAZ/gJEdZU7KMraoK1+XYAg=="], - - "qs": ["qs@6.13.0", "", { "dependencies": { "side-channel": "^1.0.6" } }, "sha512-+38qI9SOr8tfZ4QmJNplMUxqjbe7LKvvZgWdExBOmd+egZTtjLB67Gu0HRX3u/XOq7UU2Nx6nsjvS16Z9uwfpg=="], - - "queue-tick": ["queue-tick@1.0.1", "", {}, "sha512-kJt5qhMxoszgU/62PLP1CJytzd2NKetjSRnyuj31fDd3Rlcz3fzlFdFLD1SItunPwyqEOkca6GbV612BWfaBag=="], - - "range-parser": ["range-parser@1.2.1", "", {}, "sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg=="], - - "raw-body": ["raw-body@2.5.2", "", { "dependencies": { "bytes": "3.1.2", "http-errors": "2.0.0", "iconv-lite": "0.4.24", "unpipe": "1.0.0" } }, "sha512-8zGqypfENjCIqGhgXToC8aB2r7YrBX+AQAfIPs/Mlk+BtPTztOvTS01NRW/3Eh60J+a48lt8qsCzirQ6loCVfA=="], - - "readable-stream": ["readable-stream@3.6.2", "", { "dependencies": { "inherits": "^2.0.3", "string_decoder": "^1.1.1", "util-deprecate": "^1.0.1" } }, "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA=="], - - "readdirp": ["readdirp@3.6.0", "", { "dependencies": { "picomatch": "^2.2.1" } }, "sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA=="], - - "require-from-string": ["require-from-string@2.0.2", "", {}, "sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw=="], - - "requires-port": ["requires-port@1.0.0", "", {}, "sha512-KigOCHcocU3XODJxsu8i/j8T9tzT4adHiecwORRQ0ZZFcp7ahwXuRU1m+yuO90C5ZUyGeGfocHDI14M3L3yDAQ=="], - - "retry": ["retry@0.13.1", "", {}, "sha512-XQBQ3I8W1Cge0Seh+6gjj03LbmRFWuoszgK9ooCpwYIrhhoO80pfq4cUkU5DkknwfOfFteRwlZ56PYOGYyFWdg=="], - - "rfdc": ["rfdc@1.4.1", "", {}, "sha512-q1b3N5QkRUWUl7iyylaaj3kOpIT0N2i9MqIEQXP73GVsN9cw3fdx8X63cEmWhJGi2PPCF23Ijp7ktmd39rawIA=="], - - "run-applescript": ["run-applescript@7.1.0", "", {}, "sha512-DPe5pVFaAsinSaV6QjQ6gdiedWDcRCbUuiQfQa2wmWV7+xC9bGulGI8+TdRmoFkAPaBXk8CrAbnlY2ISniJ47Q=="], - - "safe-buffer": ["safe-buffer@5.2.1", "", {}, "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ=="], - - "safer-buffer": ["safer-buffer@2.1.2", "", {}, "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg=="], - - "schema-utils": ["schema-utils@4.3.3", "", { "dependencies": { "@types/json-schema": "^7.0.9", "ajv": "^8.9.0", "ajv-formats": "^2.1.1", "ajv-keywords": "^5.1.0" } }, "sha512-eflK8wEtyOE6+hsaRVPxvUKYCpRgzLqDTb8krvAsRIwOGlHoSgYLgBXoubGgLd2fT41/OUYdb48v4k4WWHQurA=="], - - "select-hose": ["select-hose@2.0.0", "", {}, "sha512-mEugaLK+YfkijB4fx0e6kImuJdCIt2LxCRcbEYPqRGCs4F2ogyfZU5IAZRdjCP8JPq2AtdNoC/Dux63d9Kiryg=="], - - "selfsigned": ["selfsigned@2.4.1", "", { "dependencies": { "@types/node-forge": "^1.3.0", "node-forge": "^1" } }, "sha512-th5B4L2U+eGLq1TVh7zNRGBapioSORUeymIydxgFpwww9d2qyKvtuPU2jJuHvYAwwqi2Y596QBL3eEqcPEYL8Q=="], - - "semifies": ["semifies@1.0.0", "", {}, "sha512-xXR3KGeoxTNWPD4aBvL5NUpMTT7WMANr3EWnaS190QVkY52lqqcVRD7Q05UVbBhiWDGWMlJEUam9m7uFFGVScw=="], - - "send": ["send@0.19.0", "", { "dependencies": { "debug": "2.6.9", "depd": "2.0.0", "destroy": "1.2.0", "encodeurl": "~1.0.2", "escape-html": "~1.0.3", "etag": "~1.8.1", "fresh": "0.5.2", "http-errors": "2.0.0", "mime": "1.6.0", "ms": "2.1.3", "on-finished": "2.4.1", "range-parser": "~1.2.1", "statuses": "2.0.1" } }, "sha512-dW41u5VfLXu8SJh5bwRmyYUbAoSB3c9uQh6L8h/KtsFREPWpbX1lrljJo186Jc4nmci/sGUZ9a0a0J2zgfq2hw=="], - - "serve-index": ["serve-index@1.9.1", "", { "dependencies": { "accepts": "~1.3.4", "batch": "0.6.1", "debug": "2.6.9", "escape-html": "~1.0.3", "http-errors": "~1.6.2", "mime-types": "~2.1.17", "parseurl": "~1.3.2" } }, "sha512-pXHfKNP4qujrtteMrSBb0rc8HJ9Ms/GrXwcUtUtD5s4ewDJI8bT3Cz2zTVRMKtri49pLx2e0Ya8ziP5Ya2pZZw=="], - - "serve-static": ["serve-static@1.16.2", "", { "dependencies": { "encodeurl": "~2.0.0", "escape-html": "~1.0.3", "parseurl": "~1.3.3", "send": "0.19.0" } }, "sha512-VqpjJZKadQB/PEbEwvFdO43Ax5dFBZ2UECszz8bQ7pi7wt//PWe1P6MN7eCnjsatYtBT6EuiClbjSWP2WrIoTw=="], - - "setprototypeof": ["setprototypeof@1.2.0", "", {}, "sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw=="], - - "shell-quote": ["shell-quote@1.8.3", "", {}, "sha512-ObmnIF4hXNg1BqhnHmgbDETF8dLPCggZWBjkQfhZpbszZnYur5DUljTcCHii5LC3J5E0yeO/1LIMyH+UvHQgyw=="], - - "side-channel": ["side-channel@1.1.0", "", { "dependencies": { "es-errors": "^1.3.0", "object-inspect": "^1.13.3", "side-channel-list": "^1.0.0", "side-channel-map": "^1.0.1", "side-channel-weakmap": "^1.0.2" } }, "sha512-ZX99e6tRweoUXqR+VBrslhda51Nh5MTQwou5tnUDgbtyM0dBgmhEDtWGP/xbKn6hqfPRHujUNwz5fy/wbbhnpw=="], - - "side-channel-list": ["side-channel-list@1.0.0", "", { "dependencies": { "es-errors": "^1.3.0", "object-inspect": "^1.13.3" } }, "sha512-FCLHtRD/gnpCiCHEiJLOwdmFP+wzCmDEkc9y7NsYxeF4u7Btsn1ZuwgwJGxImImHicJArLP4R0yX4c2KCrMrTA=="], - - "side-channel-map": ["side-channel-map@1.0.1", "", { "dependencies": { "call-bound": "^1.0.2", "es-errors": "^1.3.0", "get-intrinsic": "^1.2.5", "object-inspect": "^1.13.3" } }, "sha512-VCjCNfgMsby3tTdo02nbjtM/ewra6jPHmpThenkTYh8pG9ucZ/1P8So4u4FGBek/BjpOVsDCMoLA/iuBKIFXRA=="], - - "side-channel-weakmap": ["side-channel-weakmap@1.0.2", "", { "dependencies": { "call-bound": "^1.0.2", "es-errors": "^1.3.0", "get-intrinsic": "^1.2.5", "object-inspect": "^1.13.3", "side-channel-map": "^1.0.1" } }, "sha512-WPS/HvHQTYnHisLo9McqBHOJk2FkHO/tlpvldyrnem4aeQp4hai3gythswg6p01oSoTl58rcpiFAjF2br2Ak2A=="], - - "sirv": ["sirv@2.0.4", "", { "dependencies": { "@polka/url": "^1.0.0-next.24", "mrmime": "^2.0.0", "totalist": "^3.0.0" } }, "sha512-94Bdh3cC2PKrbgSOUqTiGPWVZeSiXfKOVZNJniWoqrWrRkB1CJzBU3NEbiTsPcYy1lDsANA/THzS+9WBiy5nfQ=="], - - "sockjs": ["sockjs@0.3.24", "", { "dependencies": { "faye-websocket": "^0.11.3", "uuid": "^8.3.2", "websocket-driver": "^0.7.4" } }, "sha512-GJgLTZ7vYb/JtPSSZ10hsOYIvEYsjbNU+zPdIHcUaWVNUEPivzxku31865sSSud0Da0W4lEeOPlmw93zLQchuQ=="], - - "source-map": ["source-map@0.7.6", "", {}, "sha512-i5uvt8C3ikiWeNZSVZNWcfZPItFQOsYTUAOkcUPGd8DqDy1uOUikjt5dG+uRlwyvR108Fb9DOd4GvXfT0N2/uQ=="], - - "spdy": ["spdy@4.0.2", "", { "dependencies": { "debug": "^4.1.0", "handle-thing": "^2.0.0", "http-deceiver": "^1.2.7", "select-hose": "^2.0.0", "spdy-transport": "^3.0.0" } }, "sha512-r46gZQZQV+Kl9oItvl1JZZqJKGr+oEkB08A6BzkiR7593/7IbtuncXHd2YoYeTsG4157ZssMu9KYvUHLcjcDoA=="], - - "spdy-transport": ["spdy-transport@3.0.0", "", { "dependencies": { "debug": "^4.1.0", "detect-node": "^2.0.4", "hpack.js": "^2.1.6", "obuf": "^1.1.2", "readable-stream": "^3.0.6", "wbuf": "^1.7.3" } }, "sha512-hsLVFE5SjA6TCisWeJXFKniGGOpBgMLmerfO2aCyCU5s7nJ/rpAepqmFifv/GCbSbueEeAJJnmSQ2rKC/g8Fcw=="], - - "statuses": ["statuses@2.0.1", "", {}, "sha512-RwNA9Z/7PrK06rYLIzFMlaF+l73iwpzsqRIFgbMLbTcLD6cOao82TaWefPXQvB2fOC4AjuYSEndS7N/mTCbkdQ=="], - - "string_decoder": ["string_decoder@1.3.0", "", { "dependencies": { "safe-buffer": "~5.2.0" } }, "sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA=="], - - "thingies": ["thingies@2.5.0", "", { "peerDependencies": { "tslib": "^2" } }, "sha512-s+2Bwztg6PhWUD7XMfeYm5qliDdSiZm7M7n8KjTkIsm3l/2lgVRc2/Gx/v+ZX8lT4FMA+i8aQvhcWylldc+ZNw=="], - - "thunky": ["thunky@1.1.0", "", {}, "sha512-eHY7nBftgThBqOyHGVN+l8gF0BucP09fMo0oO/Lb0w1OF80dJv+lDVpXG60WMQvkcxAkNybKsrEIE3ZtKGmPrA=="], - - "tlhunter-sorted-set": ["tlhunter-sorted-set@0.1.0", "", {}, "sha512-eGYW4bjf1DtrHzUYxYfAcSytpOkA44zsr7G2n3PV7yOUR23vmkGe3LL4R+1jL9OsXtbsFOwe8XtbCrabeaEFnw=="], - - "to-regex-range": ["to-regex-range@5.0.1", "", { "dependencies": { "is-number": "^7.0.0" } }, "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ=="], - - "toidentifier": ["toidentifier@1.0.1", "", {}, "sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA=="], - - "totalist": ["totalist@3.0.1", "", {}, "sha512-sf4i37nQ2LBx4m3wB74y+ubopq6W/dIzXg0FDGjsYnZHVa1Da8FH853wlL2gtUhg+xJXjfk3kUZS3BRoQeoQBQ=="], - - "tree-dump": ["tree-dump@1.1.0", "", { "peerDependencies": { "tslib": "2" } }, "sha512-rMuvhU4MCDbcbnleZTFezWsaZXRFemSqAM+7jPnzUl1fo9w3YEKOxAeui0fz3OI4EU4hf23iyA7uQRVko+UaBA=="], - - "tslib": ["tslib@2.8.1", "", {}, "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w=="], - - "ttl-set": ["ttl-set@1.0.0", "", { "dependencies": { "fast-fifo": "^1.3.2" } }, "sha512-2fuHn/UR+8Z9HK49r97+p2Ru1b5Eewg2QqPrU14BVCQ9QoyU3+vLLZk2WEiyZ9sgJh6W8G1cZr9I2NBLywAHrA=="], - - "type-is": ["type-is@1.6.18", "", { "dependencies": { "media-typer": "0.3.0", "mime-types": "~2.1.24" } }, "sha512-TkRKr9sUTxEH8MdfuCSP7VizJyzRNMjj2J2do2Jr3Kym598JVdEksuzPQCnlFPW4ky9Q+iA+ma9BGm06XQBy8g=="], - - "undici-types": ["undici-types@7.16.0", "", {}, "sha512-Zz+aZWSj8LE6zoxD+xrjh4VfkIG8Ya6LvYkZqtUQGJPZjYl53ypCaUwWqo7eI0x66KBGeRo+mlBEkMSeSZ38Nw=="], - - "unpipe": ["unpipe@1.0.0", "", {}, "sha512-pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ=="], - - "util-deprecate": ["util-deprecate@1.0.2", "", {}, "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw=="], - - "utils-merge": ["utils-merge@1.0.1", "", {}, "sha512-pMZTvIkT1d+TFGvDOqodOclx0QWkkgi6Tdoa8gC8ffGAAqz9pzPTZWAybbsHHoED/ztMtkv/VoYTYyShUn81hA=="], - - "uuid": ["uuid@8.3.2", "", { "bin": { "uuid": "dist/bin/uuid" } }, "sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg=="], - - "vary": ["vary@1.1.2", "", {}, "sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg=="], - - "wbuf": ["wbuf@1.7.3", "", { "dependencies": { "minimalistic-assert": "^1.0.0" } }, "sha512-O84QOnr0icsbFGLS0O3bI5FswxzRr8/gHwWkDlQFskhSPryQXvrTMxjxGP4+iWYoauLoBvfDpkrOauZ+0iZpDA=="], - - "webpack-bundle-analyzer": ["webpack-bundle-analyzer@4.10.2", "", { "dependencies": { "@discoveryjs/json-ext": "0.5.7", "acorn": "^8.0.4", "acorn-walk": "^8.0.0", "commander": "^7.2.0", "debounce": "^1.2.1", "escape-string-regexp": "^4.0.0", "gzip-size": "^6.0.0", "html-escaper": "^2.0.2", "opener": "^1.5.2", "picocolors": "^1.0.0", "sirv": "^2.0.3", "ws": "^7.3.1" }, "bin": { "webpack-bundle-analyzer": "lib/bin/analyzer.js" } }, "sha512-vJptkMm9pk5si4Bv922ZbKLV8UTT4zib4FPgXMhgzUny0bfDDkLXAVQs3ly3fS4/TN9ROFtb0NFrm04UXFE/Vw=="], - - "webpack-dev-middleware": ["webpack-dev-middleware@7.4.5", "", { "dependencies": { "colorette": "^2.0.10", "memfs": "^4.43.1", "mime-types": "^3.0.1", "on-finished": "^2.4.1", "range-parser": "^1.2.1", "schema-utils": "^4.0.0" }, "peerDependencies": { "webpack": "^5.0.0" }, "optionalPeers": ["webpack"] }, "sha512-uxQ6YqGdE4hgDKNf7hUiPXOdtkXvBJXrfEGYSx7P7LC8hnUYGK70X6xQXUvXeNyBDDcsiQXpG2m3G9vxowaEuA=="], - - "webpack-dev-server": ["webpack-dev-server@5.2.2", "", { "dependencies": { "@types/bonjour": "^3.5.13", "@types/connect-history-api-fallback": "^1.5.4", "@types/express": "^4.17.21", "@types/express-serve-static-core": "^4.17.21", "@types/serve-index": "^1.9.4", "@types/serve-static": "^1.15.5", "@types/sockjs": "^0.3.36", "@types/ws": "^8.5.10", "ansi-html-community": "^0.0.8", "bonjour-service": "^1.2.1", "chokidar": "^3.6.0", "colorette": "^2.0.10", "compression": "^1.7.4", "connect-history-api-fallback": "^2.0.0", "express": "^4.21.2", "graceful-fs": "^4.2.6", "http-proxy-middleware": "^2.0.9", "ipaddr.js": "^2.1.0", "launch-editor": "^2.6.1", "open": "^10.0.3", "p-retry": "^6.2.0", "schema-utils": "^4.2.0", "selfsigned": "^2.4.1", "serve-index": "^1.9.1", "sockjs": "^0.3.24", "spdy": "^4.0.2", "webpack-dev-middleware": "^7.4.2", "ws": "^8.18.0" }, "peerDependencies": { "webpack": "^5.0.0" }, "optionalPeers": ["webpack"], "bin": { "webpack-dev-server": "bin/webpack-dev-server.js" } }, "sha512-QcQ72gh8a+7JO63TAx/6XZf/CWhgMzu5m0QirvPfGvptOusAxG12w2+aua1Jkjr7hzaWDnJ2n6JFeexMHI+Zjg=="], - - "websocket-driver": ["websocket-driver@0.7.4", "", { "dependencies": { "http-parser-js": ">=0.5.1", "safe-buffer": ">=5.1.0", "websocket-extensions": ">=0.1.1" } }, "sha512-b17KeDIQVjvb0ssuSDF2cYXSg2iztliJ4B9WdsuB6J952qCPKmnVq4DyW5motImXHDC1cBT/1UezrJVsKw5zjg=="], - - "websocket-extensions": ["websocket-extensions@0.1.4", "", {}, "sha512-OqedPIGOfsDlo31UNwYbCFMSaO9m9G/0faIHj5/dZFDMFqPTcx6UwqyOy3COEaEOg/9VsGIpdqn62W5KhoKSpg=="], - - "ws": ["ws@8.18.3", "", { "peerDependencies": { "bufferutil": "^4.0.1", "utf-8-validate": ">=5.0.2" }, "optionalPeers": ["bufferutil", "utf-8-validate"] }, "sha512-PEIGCY5tSlUt50cqyMXfCzX+oOPqN0vuGqWzbcJ2xvnkzkq46oOpz7dQaTDBdfICb4N14+GARUDw2XV2N4tvzg=="], - - "wsl-utils": ["wsl-utils@0.1.0", "", { "dependencies": { "is-wsl": "^3.1.0" } }, "sha512-h3Fbisa2nKGPxCpm89Hk33lBLsnaGBvctQopaBSOW/uIs6FTe1ATyAnKFJrzVs9vpGdsTe73WF3V4lIsk4Gacw=="], - - "accepts/negotiator": ["negotiator@0.6.3", "", {}, "sha512-+EUsqGPLsM+j/zdChZjsnX51g4XrHFOIXwfnCVPGlQk/k5giakcKsuxCObBRu6DSm9opw/O6slWbJdghQM4bBg=="], - - "hpack.js/readable-stream": ["readable-stream@2.3.8", "", { "dependencies": { "core-util-is": "~1.0.0", "inherits": "~2.0.3", "isarray": "~1.0.0", "process-nextick-args": "~2.0.0", "safe-buffer": "~5.1.1", "string_decoder": "~1.1.1", "util-deprecate": "~1.0.1" } }, "sha512-8p0AUk4XODgIewSi0l8Epjs+EVnWiK7NoDIEGU0HhE7+ZyY8D1IMY7odu5lRrFXGg71L15KG8QrPmum45RTtdA=="], - - "mime-types/mime-db": ["mime-db@1.52.0", "", {}, "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg=="], - - "proxy-addr/ipaddr.js": ["ipaddr.js@1.9.1", "", {}, "sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g=="], - - "send/encodeurl": ["encodeurl@1.0.2", "", {}, "sha512-TPJXq8JqFaVYm2CWmPvnP2Iyo4ZSM7/QKcSmuMLDObfpH5fi7RUGmd/rTDf+rut/saiDiQEeVTNgAmJEdAOx0w=="], - - "send/ms": ["ms@2.1.3", "", {}, "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA=="], - - "serve-index/http-errors": ["http-errors@1.6.3", "", { "dependencies": { "depd": "~1.1.2", "inherits": "2.0.3", "setprototypeof": "1.1.0", "statuses": ">= 1.4.0 < 2" } }, "sha512-lks+lVC8dgGyh97jxvxeYTWQFvh4uw4yC12gVl63Cg30sjPX4wuGcdkICVXDAESr6OJGjqGA8Iz5mkeN6zlD7A=="], - - "spdy/debug": ["debug@4.4.3", "", { "dependencies": { "ms": "^2.1.3" } }, "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA=="], - - "spdy-transport/debug": ["debug@4.4.3", "", { "dependencies": { "ms": "^2.1.3" } }, "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA=="], - - "webpack-bundle-analyzer/ws": ["ws@7.5.10", "", { "peerDependencies": { "bufferutil": "^4.0.1", "utf-8-validate": "^5.0.2" }, "optionalPeers": ["bufferutil", "utf-8-validate"] }, "sha512-+dbF1tHwZpXcbOJdVOkzLDxZP1ailvSxM6ZweXTegylPny803bFhA+vqBYw4s31NSAk4S2Qz+AKXK9a4wkdjcQ=="], - - "webpack-dev-middleware/mime-types": ["mime-types@3.0.2", "", { "dependencies": { "mime-db": "^1.54.0" } }, "sha512-Lbgzdk0h4juoQ9fCKXW4by0UJqj+nOOrI9MJ1sSj4nI8aI2eo1qmvQEie4VD1glsS250n15LsWsYtCugiStS5A=="], - - "hpack.js/readable-stream/safe-buffer": ["safe-buffer@5.1.2", "", {}, "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g=="], - - "hpack.js/readable-stream/string_decoder": ["string_decoder@1.1.1", "", { "dependencies": { "safe-buffer": "~5.1.0" } }, "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg=="], - - "serve-index/http-errors/depd": ["depd@1.1.2", "", {}, "sha512-7emPTl6Dpo6JRXOXjLRxck+FlLRX5847cLKEn00PLAgc3g2hTZZgr+e4c2v6QpSmLeFP3n5yUo7ft6avBK/5jQ=="], - - "serve-index/http-errors/inherits": ["inherits@2.0.3", "", {}, "sha512-x00IRNXNy63jwGkJmzPigoySHbaqpNuzKbBOmzK+g2OdZpQ9w+sxCN+VSB3ja7IAge2OP2qpfxTjeNcyjmW1uw=="], - - "serve-index/http-errors/setprototypeof": ["setprototypeof@1.1.0", "", {}, "sha512-BvE/TwpZX4FXExxOxZyRGQQv651MSwmWKZGqvmPcRIjDqWub67kTKuIMx43cZZrS/cBBzwBcNDWoFxt2XEFIpQ=="], - - "serve-index/http-errors/statuses": ["statuses@1.5.0", "", {}, "sha512-OpZ3zP+jT1PI7I8nemJX4AKmAX070ZkYPVWV/AaKTJl+tXCTGyVdC1a4SL8RUQYEwk/f34ZX8UTykN68FwrqAA=="], - - "spdy-transport/debug/ms": ["ms@2.1.3", "", {}, "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA=="], - - "spdy/debug/ms": ["ms@2.1.3", "", {}, "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA=="], - } -} diff --git a/vendor/yarn.lock b/vendor/yarn.lock new file mode 100644 index 00000000000..c9525b37456 --- /dev/null +++ b/vendor/yarn.lock @@ -0,0 +1,1982 @@ +# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. +# yarn lockfile v1 + + +"@datadog/sketches-js@2.1.1": + version "2.1.1" + resolved "https://registry.yarnpkg.com/@datadog/sketches-js/-/sketches-js-2.1.1.tgz#9ec2251b3c932b4f43e1d164461fa6cb6f28b7d0" + integrity sha512-d5RjycE+MObE/hU+8OM5Zp4VjTwiPLRa8299fj7muOmR16fb942z8byoMbCErnGh0lBevvgkGrLclQDvINbIyg== + +"@discoveryjs/json-ext@0.5.7", "@discoveryjs/json-ext@^0.5.7": + version "0.5.7" + resolved "https://registry.yarnpkg.com/@discoveryjs/json-ext/-/json-ext-0.5.7.tgz#1d572bfbbe14b7704e0ba0f39b74815b84870d70" + integrity sha512-dBVuXR082gk3jsFp7Rd/JI4kytwGHecnCoTtXFb7DB6CNHp4rg5k1bhg0nWdLGLnOV71lmDzGQaLMy8iPLY0pw== + +"@emnapi/core@^1.5.0": + version "1.7.1" + resolved "https://registry.yarnpkg.com/@emnapi/core/-/core-1.7.1.tgz#3a79a02dbc84f45884a1806ebb98e5746bdfaac4" + integrity sha512-o1uhUASyo921r2XtHYOHy7gdkGLge8ghBEQHMWmyJFoXlpU58kIrhhN3w26lpQb6dspetweapMn2CSNwQ8I4wg== + dependencies: + "@emnapi/wasi-threads" "1.1.0" + tslib "^2.4.0" + +"@emnapi/runtime@^1.5.0": + version "1.7.1" + resolved "https://registry.yarnpkg.com/@emnapi/runtime/-/runtime-1.7.1.tgz#a73784e23f5d57287369c808197288b52276b791" + integrity sha512-PVtJr5CmLwYAU9PZDMITZoR5iAOShYREoR45EyyLrbntV50mdePTgUn4AmOw90Ifcj+x2kRjdzr1HP3RrNiHGA== + dependencies: + tslib "^2.4.0" + +"@emnapi/wasi-threads@1.1.0": + version "1.1.0" + resolved "https://registry.yarnpkg.com/@emnapi/wasi-threads/-/wasi-threads-1.1.0.tgz#60b2102fddc9ccb78607e4a3cf8403ea69be41bf" + integrity sha512-WI0DdZ8xFSbgMjR1sFsKABJ/C5OnRrjT06JXbZKexJGrDuPTzZdDYfFlsgcCXCyf+suG5QU2e/y1Wo2V/OapLQ== + dependencies: + tslib "^2.4.0" + +"@isaacs/ttlcache@^2.0.1": + version "2.1.2" + resolved "https://registry.yarnpkg.com/@isaacs/ttlcache/-/ttlcache-2.1.2.tgz#63f0b897382df54412ab9c9a178107b67ed73c2b" + integrity sha512-lmG2ZHXBo7tgF1I3vGvBMnUJYhaNE25fmx+tUfotvE3vsARzxiiDXmCBI6Ch8qEHeHmfunr+eVPgIaIc8xIkbg== + +"@jsep-plugin/assignment@^1.3.0": + version "1.3.0" + resolved "https://registry.yarnpkg.com/@jsep-plugin/assignment/-/assignment-1.3.0.tgz#fcfc5417a04933f7ceee786e8ab498aa3ce2b242" + integrity sha512-VVgV+CXrhbMI3aSusQyclHkenWSAm95WaiKrMxRFam3JSUiIaQjoMIw2sEs/OX4XifnqeQUN4DYbJjlA8EfktQ== + +"@jsep-plugin/regex@^1.0.4": + version "1.0.4" + resolved "https://registry.yarnpkg.com/@jsep-plugin/regex/-/regex-1.0.4.tgz#cb2fc423220fa71c609323b9ba7f7d344a755fcc" + integrity sha512-q7qL4Mgjs1vByCaTnDFcBnV9HS7GVPJX5vyVoCgZHNSC9rjwIlmbXG5sUuorR5ndfHAIlJ8pVStxvjXHbNvtUg== + +"@jsonjoy.com/base64@^1.1.2": + version "1.1.2" + resolved "https://registry.yarnpkg.com/@jsonjoy.com/base64/-/base64-1.1.2.tgz#cf8ea9dcb849b81c95f14fc0aaa151c6b54d2578" + integrity sha512-q6XAnWQDIMA3+FTiOYajoYqySkO+JSat0ytXGSuRdq9uXE7o92gzuQwQM14xaCRlBLGq3v5miDGC4vkVTn54xA== + +"@jsonjoy.com/buffers@^1.0.0", "@jsonjoy.com/buffers@^1.2.0": + version "1.2.1" + resolved "https://registry.yarnpkg.com/@jsonjoy.com/buffers/-/buffers-1.2.1.tgz#8d99c7f67eaf724d3428dfd9826c6455266a5c83" + integrity sha512-12cdlDwX4RUM3QxmUbVJWqZ/mrK6dFQH4Zxq6+r1YXKXYBNgZXndx2qbCJwh3+WWkCSn67IjnlG3XYTvmvYtgA== + +"@jsonjoy.com/codegen@^1.0.0": + version "1.0.0" + resolved "https://registry.yarnpkg.com/@jsonjoy.com/codegen/-/codegen-1.0.0.tgz#5c23f796c47675f166d23b948cdb889184b93207" + integrity sha512-E8Oy+08cmCf0EK/NMxpaJZmOxPqM+6iSe2S4nlSBrPZOORoDJILxtbSUEDKQyTamm/BVAhIGllOBNU79/dwf0g== + +"@jsonjoy.com/json-pack@^1.11.0": + version "1.21.0" + resolved "https://registry.yarnpkg.com/@jsonjoy.com/json-pack/-/json-pack-1.21.0.tgz#93f8dd57fe3a3a92132b33d1eb182dcd9e7629fa" + integrity sha512-+AKG+R2cfZMShzrF2uQw34v3zbeDYUqnQ+jg7ORic3BGtfw9p/+N6RJbq/kkV8JmYZaINknaEQ2m0/f693ZPpg== + dependencies: + "@jsonjoy.com/base64" "^1.1.2" + "@jsonjoy.com/buffers" "^1.2.0" + "@jsonjoy.com/codegen" "^1.0.0" + "@jsonjoy.com/json-pointer" "^1.0.2" + "@jsonjoy.com/util" "^1.9.0" + hyperdyperid "^1.2.0" + thingies "^2.5.0" + tree-dump "^1.1.0" + +"@jsonjoy.com/json-pointer@^1.0.2": + version "1.0.2" + resolved "https://registry.yarnpkg.com/@jsonjoy.com/json-pointer/-/json-pointer-1.0.2.tgz#049cb530ac24e84cba08590c5e36b431c4843408" + integrity sha512-Fsn6wM2zlDzY1U+v4Nc8bo3bVqgfNTGcn6dMgs6FjrEnt4ZCe60o6ByKRjOGlI2gow0aE/Q41QOigdTqkyK5fg== + dependencies: + "@jsonjoy.com/codegen" "^1.0.0" + "@jsonjoy.com/util" "^1.9.0" + +"@jsonjoy.com/util@^1.9.0": + version "1.9.0" + resolved "https://registry.yarnpkg.com/@jsonjoy.com/util/-/util-1.9.0.tgz#7ee95586aed0a766b746cd8d8363e336c3c47c46" + integrity sha512-pLuQo+VPRnN8hfPqUTLTHk126wuYdXVxE6aDmjSeV4NCAgyxWbiOIeNJVtID3h1Vzpoi9m4jXezf73I6LgabgQ== + dependencies: + "@jsonjoy.com/buffers" "^1.0.0" + "@jsonjoy.com/codegen" "^1.0.0" + +"@leichtgewicht/ip-codec@^2.0.1": + version "2.0.5" + resolved "https://registry.yarnpkg.com/@leichtgewicht/ip-codec/-/ip-codec-2.0.5.tgz#4fc56c15c580b9adb7dc3c333a134e540b44bfb1" + integrity sha512-Vo+PSpZG2/fmgmiNzYK9qWRh8h/CHrwD0mo1h1DzL4yzHNSfWYujGTYsWGreD000gcgmZ7K4Ys6Tx9TxtsKdDw== + +"@module-federation/error-codes@0.21.4": + version "0.21.4" + resolved "https://registry.yarnpkg.com/@module-federation/error-codes/-/error-codes-0.21.4.tgz#037c15c641e67c2c5465d2d3f442724395691f55" + integrity sha512-ClpL5MereWNXh+EgDjz7w4RrC1JlisQTvXDa1gLxpviHafzNDfdViVmuhi9xXVuj+EYo8KU70Y999KHhk9424Q== + +"@module-federation/runtime-core@0.21.4": + version "0.21.4" + resolved "https://registry.yarnpkg.com/@module-federation/runtime-core/-/runtime-core-0.21.4.tgz#3254ee1be28255f9b115fe02d462672ae0f66584" + integrity sha512-SGpmoOLGNxZofpTOk6Lxb2ewaoz5wMi93AFYuuJB04HTVcngEK+baNeUZ2D/xewrqNIJoMY6f5maUjVfIIBPUA== + dependencies: + "@module-federation/error-codes" "0.21.4" + "@module-federation/sdk" "0.21.4" + +"@module-federation/runtime-tools@0.21.4": + version "0.21.4" + resolved "https://registry.yarnpkg.com/@module-federation/runtime-tools/-/runtime-tools-0.21.4.tgz#dbaf6d0a21ee72fc343f0d9dc50eeabb5fd9f5ba" + integrity sha512-RzFKaL0DIjSmkn76KZRfzfB6dD07cvID84950jlNQgdyoQFUGkqD80L6rIpVCJTY/R7LzR3aQjHnoqmq4JPo3w== + dependencies: + "@module-federation/runtime" "0.21.4" + "@module-federation/webpack-bundler-runtime" "0.21.4" + +"@module-federation/runtime@0.21.4": + version "0.21.4" + resolved "https://registry.yarnpkg.com/@module-federation/runtime/-/runtime-0.21.4.tgz#f07cc2dd9786b26d3af5440793693b953a818b97" + integrity sha512-wgvGqryurVEvkicufJmTG0ZehynCeNLklv8kIk5BLIsWYSddZAE+xe4xov1kgH5fIJQAoQNkRauFFjVNlHoAkA== + dependencies: + "@module-federation/error-codes" "0.21.4" + "@module-federation/runtime-core" "0.21.4" + "@module-federation/sdk" "0.21.4" + +"@module-federation/sdk@0.21.4": + version "0.21.4" + resolved "https://registry.yarnpkg.com/@module-federation/sdk/-/sdk-0.21.4.tgz#4b4757b527d9a2758d01c5aadec7963348f43385" + integrity sha512-tzvhOh/oAfX++6zCDDxuvioHY4Jurf8vcfoCbKFxusjmyKr32GPbwFDazUP+OPhYCc3dvaa9oWU6X/qpUBLfJw== + +"@module-federation/webpack-bundler-runtime@0.21.4": + version "0.21.4" + resolved "https://registry.yarnpkg.com/@module-federation/webpack-bundler-runtime/-/webpack-bundler-runtime-0.21.4.tgz#d8651c5bb8e7bc999300f32f0e11358a6acd0501" + integrity sha512-dusmR3uPnQh9u9ChQo3M+GLOuGFthfvnh7WitF/a1eoeTfRmXqnMFsXtZCUK+f/uXf+64874Zj/bhAgbBcVHZA== + dependencies: + "@module-federation/runtime" "0.21.4" + "@module-federation/sdk" "0.21.4" + +"@napi-rs/wasm-runtime@1.0.7": + version "1.0.7" + resolved "https://registry.yarnpkg.com/@napi-rs/wasm-runtime/-/wasm-runtime-1.0.7.tgz#dcfea99a75f06209a235f3d941e3460a51e9b14c" + integrity sha512-SeDnOO0Tk7Okiq6DbXmmBODgOAb9dp9gjlphokTUxmt8U3liIP1ZsozBahH69j/RJv+Rfs6IwUKHTgQYJ/HBAw== + dependencies: + "@emnapi/core" "^1.5.0" + "@emnapi/runtime" "^1.5.0" + "@tybys/wasm-util" "^0.10.1" + +"@opentelemetry/api-logs@<1.0.0": + version "0.208.0" + resolved "https://registry.yarnpkg.com/@opentelemetry/api-logs/-/api-logs-0.208.0.tgz#56d3891010a1fa1cf600ba8899ed61b43ace511c" + integrity sha512-CjruKY9V6NMssL/T1kAFgzosF1v9o6oeN+aX5JB/C/xPNtmgIJqcXHG7fA82Ou1zCpWGl4lROQUKwUNE1pMCyg== + dependencies: + "@opentelemetry/api" "^1.3.0" + +"@opentelemetry/api@>=1.0.0 <1.10.0", "@opentelemetry/api@^1.3.0": + version "1.9.0" + resolved "https://registry.yarnpkg.com/@opentelemetry/api/-/api-1.9.0.tgz#d03eba68273dc0f7509e2a3d5cba21eae10379fe" + integrity sha512-3giAOQvZiH5F9bMlMiv8+GSPMeqg0dbaeo58/0SlA9sxSqZhnUtxzX9/2FzyhS9sWQf5S0GJE0AKBrFqjpeYcg== + +"@opentelemetry/core@1.30.1", "@opentelemetry/core@>=1.14.0 <1.31.0": + version "1.30.1" + resolved "https://registry.yarnpkg.com/@opentelemetry/core/-/core-1.30.1.tgz#a0b468bb396358df801881709ea38299fc30ab27" + integrity sha512-OOCM2C/QIURhJMuKaekP3TRBxBKxG/TWWA0TL2J6nXUtDnuCtccy49LUJF8xPFXMX+0LMcxFpCo8M9cGY1W6rQ== + dependencies: + "@opentelemetry/semantic-conventions" "1.28.0" + +"@opentelemetry/resources@>=1.0.0 <1.31.0": + version "1.30.1" + resolved "https://registry.yarnpkg.com/@opentelemetry/resources/-/resources-1.30.1.tgz#a4eae17ebd96947fdc7a64f931ca4b71e18ce964" + integrity sha512-5UxZqiAgLYGFjS4s9qm5mBVo433u+dSPUFWVWXmLAD4wB65oMCoXaJP1KJa9DIYYMeHu3z4BZcStG3LC593cWA== + dependencies: + "@opentelemetry/core" "1.30.1" + "@opentelemetry/semantic-conventions" "1.28.0" + +"@opentelemetry/semantic-conventions@1.28.0": + version "1.28.0" + resolved "https://registry.yarnpkg.com/@opentelemetry/semantic-conventions/-/semantic-conventions-1.28.0.tgz#337fb2bca0453d0726696e745f50064411f646d6" + integrity sha512-lp4qAiMTD4sNWW4DbKLBkfiMZ4jbAboJIGOQr5DvciMRI494OapieI9qiODpOt0XBr1LjIDy1xAGAnVs5supTA== + +"@polka/url@^1.0.0-next.24": + version "1.0.0-next.29" + resolved "https://registry.yarnpkg.com/@polka/url/-/url-1.0.0-next.29.tgz#5a40109a1ab5f84d6fd8fc928b19f367cbe7e7b1" + integrity sha512-wwQAWhWSuHaag8c4q/KN/vCoeOJYshAIvMQwD4GpSb3OiZklFfvAgmj0VCBBImRpuF/aFgIRzllXlVX93Jevww== + +"@protobufjs/aspromise@^1.1.1", "@protobufjs/aspromise@^1.1.2": + version "1.1.2" + resolved "https://registry.yarnpkg.com/@protobufjs/aspromise/-/aspromise-1.1.2.tgz#9b8b0cc663d669a7d8f6f5d0893a14d348f30fbf" + integrity sha512-j+gKExEuLmKwvz3OgROXtrJ2UG2x8Ch2YZUxahh+s1F2HZ+wAceUNLkvy6zKCPVRkU++ZWQrdxsUeQXmcg4uoQ== + +"@protobufjs/base64@^1.1.2": + version "1.1.2" + resolved "https://registry.yarnpkg.com/@protobufjs/base64/-/base64-1.1.2.tgz#4c85730e59b9a1f1f349047dbf24296034bb2735" + integrity sha512-AZkcAA5vnN/v4PDqKyMR5lx7hZttPDgClv83E//FMNhR2TMcLUhfRUBHCmSl0oi9zMgDDqRUJkSxO3wm85+XLg== + +"@protobufjs/codegen@^2.0.4": + version "2.0.4" + resolved "https://registry.yarnpkg.com/@protobufjs/codegen/-/codegen-2.0.4.tgz#7ef37f0d010fb028ad1ad59722e506d9262815cb" + integrity sha512-YyFaikqM5sH0ziFZCN3xDC7zeGaB/d0IUb9CATugHWbd1FRFwWwt4ld4OYMPWu5a3Xe01mGAULCdqhMlPl29Jg== + +"@protobufjs/eventemitter@^1.1.0": + version "1.1.0" + resolved "https://registry.yarnpkg.com/@protobufjs/eventemitter/-/eventemitter-1.1.0.tgz#355cbc98bafad5978f9ed095f397621f1d066b70" + integrity sha512-j9ednRT81vYJ9OfVuXG6ERSTdEL1xVsNgqpkxMsbIabzSo3goCjDIveeGv5d03om39ML71RdmrGNjG5SReBP/Q== + +"@protobufjs/fetch@^1.1.0": + version "1.1.0" + resolved "https://registry.yarnpkg.com/@protobufjs/fetch/-/fetch-1.1.0.tgz#ba99fb598614af65700c1619ff06d454b0d84c45" + integrity sha512-lljVXpqXebpsijW71PZaCYeIcE5on1w5DlQy5WH6GLbFryLUrBD4932W/E2BSpfRJWseIL4v/KPgBFxDOIdKpQ== + dependencies: + "@protobufjs/aspromise" "^1.1.1" + "@protobufjs/inquire" "^1.1.0" + +"@protobufjs/float@^1.0.2": + version "1.0.2" + resolved "https://registry.yarnpkg.com/@protobufjs/float/-/float-1.0.2.tgz#5e9e1abdcb73fc0a7cb8b291df78c8cbd97b87d1" + integrity sha512-Ddb+kVXlXst9d+R9PfTIxh1EdNkgoRe5tOX6t01f1lYWOvJnSPDBlG241QLzcyPdoNTsblLUdujGSE4RzrTZGQ== + +"@protobufjs/inquire@^1.1.0": + version "1.1.0" + resolved "https://registry.yarnpkg.com/@protobufjs/inquire/-/inquire-1.1.0.tgz#ff200e3e7cf2429e2dcafc1140828e8cc638f089" + integrity sha512-kdSefcPdruJiFMVSbn801t4vFK7KB/5gd2fYvrxhuJYg8ILrmn9SKSX2tZdV6V+ksulWqS7aXjBcRXl3wHoD9Q== + +"@protobufjs/path@^1.1.2": + version "1.1.2" + resolved "https://registry.yarnpkg.com/@protobufjs/path/-/path-1.1.2.tgz#6cc2b20c5c9ad6ad0dccfd21ca7673d8d7fbf68d" + integrity sha512-6JOcJ5Tm08dOHAbdR3GrvP+yUUfkjG5ePsHYczMFLq3ZmMkAD98cDgcT2iA1lJ9NVwFd4tH/iSSoe44YWkltEA== + +"@protobufjs/pool@^1.1.0": + version "1.1.0" + resolved "https://registry.yarnpkg.com/@protobufjs/pool/-/pool-1.1.0.tgz#09fd15f2d6d3abfa9b65bc366506d6ad7846ff54" + integrity sha512-0kELaGSIDBKvcgS4zkjz1PeddatrjYcmMWOlAuAPwAeccUrPHdUqo/J6LiymHHEiJT5NrF1UVwxY14f+fy4WQw== + +"@protobufjs/utf8@^1.1.0": + version "1.1.0" + resolved "https://registry.yarnpkg.com/@protobufjs/utf8/-/utf8-1.1.0.tgz#a777360b5b39a1a2e5106f8e858f2fd2d060c570" + integrity sha512-Vvn3zZrhQZkkBE8LSuW3em98c0FwgO4nxzv6OdSxPKJIEKY2bGbHn+mhGIPerzI4twdxaP8/0+06HBpwf345Lw== + +"@rspack/binding-darwin-arm64@1.6.4": + version "1.6.4" + resolved "https://registry.yarnpkg.com/@rspack/binding-darwin-arm64/-/binding-darwin-arm64-1.6.4.tgz#107882828aa9e7e958da90fd118803925525461a" + integrity sha512-qD2C5xwdY2qKEXTZiPJQx1L1kELapOc0AaZDqcAyzXs30d1qTKpx6PdyW3HN+gueKovyWZwMMYfz6RxcMCnaDQ== + +"@rspack/binding-darwin-x64@1.6.4": + version "1.6.4" + resolved "https://registry.yarnpkg.com/@rspack/binding-darwin-x64/-/binding-darwin-x64-1.6.4.tgz#343aecc01b6f07cd8078b878ee5510efc992ecc0" + integrity sha512-IHceyLDxeubqIrGz4gUqJavnygTij4vtDDE2Fkgobz7hkTJwGtD5mxBKbVNRqGvhrasVw0h9rEjR7tdbDSiUhQ== + +"@rspack/binding-linux-arm64-gnu@1.6.4": + version "1.6.4" + resolved "https://registry.yarnpkg.com/@rspack/binding-linux-arm64-gnu/-/binding-linux-arm64-gnu-1.6.4.tgz#1485cff0c2e7e082d1631385710677096daa0b8d" + integrity sha512-Ldpoz2wWnBaL2+XKLIOyCZMkAkd4pk/L24EVgma3SpRtwgenLEr10bQupvwGAK5OLkjayslOTZmRiAv0FH5o/w== + +"@rspack/binding-linux-arm64-musl@1.6.4": + version "1.6.4" + resolved "https://registry.yarnpkg.com/@rspack/binding-linux-arm64-musl/-/binding-linux-arm64-musl-1.6.4.tgz#2a030321d14d9ce0a5d49b3c3e12de9074f56db8" + integrity sha512-3fLMSDK5yMjKmx7iFbYG3P3A0xNdtmNu09v5P6hzq65tkJ3dflIt3p8DvtOTURtuSgQZV2A1LDd9hpIXdnigqA== + +"@rspack/binding-linux-x64-gnu@1.6.4": + version "1.6.4" + resolved "https://registry.yarnpkg.com/@rspack/binding-linux-x64-gnu/-/binding-linux-x64-gnu-1.6.4.tgz#960afc420c5de14b895ff54075d4f9bd8172d770" + integrity sha512-5YzXUKLnaiqND05CDgkKE0WNRtC1ulkVncYs78xPikonzZmgVXa8eRaTPOZC6ZjpLR0eTsg+MSesLUsPUu27hA== + +"@rspack/binding-linux-x64-musl@1.6.4": + version "1.6.4" + resolved "https://registry.yarnpkg.com/@rspack/binding-linux-x64-musl/-/binding-linux-x64-musl-1.6.4.tgz#cc47227efcae86ed254d737fc98c22f9df3e0a56" + integrity sha512-KcSFla8a9bXG1mmV5oQ1R5h/dSXfd41/qHOsNuLqho2UCX8CVh4dezUA153dj7p1S4yOhTy6VZZi6C1szweE9A== + +"@rspack/binding-wasm32-wasi@1.6.4": + version "1.6.4" + resolved "https://registry.yarnpkg.com/@rspack/binding-wasm32-wasi/-/binding-wasm32-wasi-1.6.4.tgz#7a003e14399eb2c73360d028e859678f4f8b73ca" + integrity sha512-mfFJbDJkRy5I1iW3m0JlWbc0X8pjVd+GRUz5nhbccwEhSQOc27ao3evf7XPU4aaDxud1B3UEqYiRcRmtm1BrjA== + dependencies: + "@napi-rs/wasm-runtime" "1.0.7" + +"@rspack/binding-win32-arm64-msvc@1.6.4": + version "1.6.4" + resolved "https://registry.yarnpkg.com/@rspack/binding-win32-arm64-msvc/-/binding-win32-arm64-msvc-1.6.4.tgz#a3ef80f958538950ead3bd30b39ea4b46fb982bf" + integrity sha512-QtIqxsfeTSS1lwfaPGrPFfJ9ir/3aWZv5t3iAgYj/CNUA8MTKWt4vQKcco7NRIGK4ZLMI+dgJBFtvd/lUDMQsw== + +"@rspack/binding-win32-ia32-msvc@1.6.4": + version "1.6.4" + resolved "https://registry.yarnpkg.com/@rspack/binding-win32-ia32-msvc/-/binding-win32-ia32-msvc-1.6.4.tgz#6e9f4b36d546764308b2c65551cfd68cebf79f8d" + integrity sha512-HXEWGDllgh0jFwjGhkGcLqb0dzXbc/rA8vQr2JcSdC41p1DTzLgO215jWdKSIvzCzhyPh3VeQkXk76hjFB2cLQ== + +"@rspack/binding-win32-x64-msvc@1.6.4": + version "1.6.4" + resolved "https://registry.yarnpkg.com/@rspack/binding-win32-x64-msvc/-/binding-win32-x64-msvc-1.6.4.tgz#ad0e9fb5896d118274dbcf36bf3e27db40828f2c" + integrity sha512-MAO5rOnGYoeuT2LPn/P7JVJCi3d78XoXgOq3tkGh6qXhvhkjsBRtYluWCzACXQpXfFHEWYd7uT5yHoZgxiVuoA== + +"@rspack/binding@1.6.4": + version "1.6.4" + resolved "https://registry.yarnpkg.com/@rspack/binding/-/binding-1.6.4.tgz#0937f234f81f5af3c2297dcd8ee93da34b5f535f" + integrity sha512-vUxc/zUdsCuyysOvP4CTdIYxsZPb2jIXST5vrLABiTPIaHpXZ0hVdgKif2XPJwJeuCVS6w25xvyPN0mBCU0MvQ== + optionalDependencies: + "@rspack/binding-darwin-arm64" "1.6.4" + "@rspack/binding-darwin-x64" "1.6.4" + "@rspack/binding-linux-arm64-gnu" "1.6.4" + "@rspack/binding-linux-arm64-musl" "1.6.4" + "@rspack/binding-linux-x64-gnu" "1.6.4" + "@rspack/binding-linux-x64-musl" "1.6.4" + "@rspack/binding-wasm32-wasi" "1.6.4" + "@rspack/binding-win32-arm64-msvc" "1.6.4" + "@rspack/binding-win32-ia32-msvc" "1.6.4" + "@rspack/binding-win32-x64-msvc" "1.6.4" + +"@rspack/cli@^1.6.4": + version "1.6.4" + resolved "https://registry.yarnpkg.com/@rspack/cli/-/cli-1.6.4.tgz#d6f16641b6ced9ea6e452107aa1e0a52e4946851" + integrity sha512-hhqebrFKp5yNPmLhxVGCNoCsJeiUryXdreNn8b2AXOgh3JN1J0Ftb9QBzmFp7H59afzvuER2HmFIR1Fmb6D2CQ== + dependencies: + "@discoveryjs/json-ext" "^0.5.7" + "@rspack/dev-server" "~1.1.4" + exit-hook "^4.0.0" + webpack-bundle-analyzer "4.10.2" + +"@rspack/core@^1.6.4": + version "1.6.4" + resolved "https://registry.yarnpkg.com/@rspack/core/-/core-1.6.4.tgz#a2b9624f2f5f1d63237b062ee76de932463eb23e" + integrity sha512-5F1+MQD8rfbFbUHnaiZe4jqOu9pnSb+PliqQvi0lj+uvpMpcS3sJDIs/mz6P1u87lfkfBXChIT4zSLAzeOgMWw== + dependencies: + "@module-federation/runtime-tools" "0.21.4" + "@rspack/binding" "1.6.4" + "@rspack/lite-tapable" "1.1.0" + +"@rspack/dev-server@~1.1.4": + version "1.1.4" + resolved "https://registry.yarnpkg.com/@rspack/dev-server/-/dev-server-1.1.4.tgz#f31096a9ff65cb29444e5cc86c03754aa6361b8f" + integrity sha512-kGHYX2jYf3ZiHwVl0aUEPBOBEIG1aWleCDCAi+Jg32KUu3qr/zDUpCEd0wPuHfLEgk0X0xAEYCS6JMO7nBStNQ== + dependencies: + chokidar "^3.6.0" + http-proxy-middleware "^2.0.9" + p-retry "^6.2.0" + webpack-dev-server "5.2.2" + ws "^8.18.0" + +"@rspack/lite-tapable@1.1.0": + version "1.1.0" + resolved "https://registry.yarnpkg.com/@rspack/lite-tapable/-/lite-tapable-1.1.0.tgz#3cfdafeed01078e116bd4f191b684c8b484de425" + integrity sha512-E2B0JhYFmVAwdDiG14+DW0Di4Ze4Jg10Pc4/lILUrd5DRCaklduz2OvJ5HYQ6G+hd+WTzqQb3QnDNfK4yvAFYw== + +"@tybys/wasm-util@^0.10.1": + version "0.10.1" + resolved "https://registry.yarnpkg.com/@tybys/wasm-util/-/wasm-util-0.10.1.tgz#ecddd3205cf1e2d5274649ff0eedd2991ed7f414" + integrity sha512-9tTaPJLSiejZKx+Bmog4uSubteqTvFrVrURwkmHixBo0G4seD0zUxp98E1DzUBJxLQ3NPwXrGKDiVjwx/DpPsg== + dependencies: + tslib "^2.4.0" + +"@types/body-parser@*": + version "1.19.6" + resolved "https://registry.yarnpkg.com/@types/body-parser/-/body-parser-1.19.6.tgz#1859bebb8fd7dac9918a45d54c1971ab8b5af474" + integrity sha512-HLFeCYgz89uk22N5Qg3dvGvsv46B8GLvKKo1zKG4NybA8U2DiEO3w9lqGg29t/tfLRJpJ6iQxnVw4OnB7MoM9g== + dependencies: + "@types/connect" "*" + "@types/node" "*" + +"@types/bonjour@^3.5.13": + version "3.5.13" + resolved "https://registry.yarnpkg.com/@types/bonjour/-/bonjour-3.5.13.tgz#adf90ce1a105e81dd1f9c61fdc5afda1bfb92956" + integrity sha512-z9fJ5Im06zvUL548KvYNecEVlA7cVDkGUi6kZusb04mpyEFKCIZJvloCcmpmLaIahDpOQGHaHmG6imtPMmPXGQ== + dependencies: + "@types/node" "*" + +"@types/connect-history-api-fallback@^1.5.4": + version "1.5.4" + resolved "https://registry.yarnpkg.com/@types/connect-history-api-fallback/-/connect-history-api-fallback-1.5.4.tgz#7de71645a103056b48ac3ce07b3520b819c1d5b3" + integrity sha512-n6Cr2xS1h4uAulPRdlw6Jl6s1oG8KrVilPN2yUITEs+K48EzMJJ3W1xy8K5eWuFvjp3R74AOIGSmp2UfBJ8HFw== + dependencies: + "@types/express-serve-static-core" "*" + "@types/node" "*" + +"@types/connect@*": + version "3.4.38" + resolved "https://registry.yarnpkg.com/@types/connect/-/connect-3.4.38.tgz#5ba7f3bc4fbbdeaff8dded952e5ff2cc53f8d858" + integrity sha512-K6uROf1LD88uDQqJCktA4yzL1YYAK6NgfsI0v/mTgyPKWsX1CnJ0XPSDhViejru1GcRkLWb8RlzFYJRqGUbaug== + dependencies: + "@types/node" "*" + +"@types/express-serve-static-core@*", "@types/express-serve-static-core@^5.0.0": + version "5.1.0" + resolved "https://registry.yarnpkg.com/@types/express-serve-static-core/-/express-serve-static-core-5.1.0.tgz#74f47555b3d804b54cb7030e6f9aa0c7485cfc5b" + integrity sha512-jnHMsrd0Mwa9Cf4IdOzbz543y4XJepXrbia2T4b6+spXC2We3t1y6K44D3mR8XMFSXMCf3/l7rCgddfx7UNVBA== + dependencies: + "@types/node" "*" + "@types/qs" "*" + "@types/range-parser" "*" + "@types/send" "*" + +"@types/express-serve-static-core@^4.17.21", "@types/express-serve-static-core@^4.17.33": + version "4.19.7" + resolved "https://registry.yarnpkg.com/@types/express-serve-static-core/-/express-serve-static-core-4.19.7.tgz#f1d306dcc03b1aafbfb6b4fe684cce8a31cffc10" + integrity sha512-FvPtiIf1LfhzsaIXhv/PHan/2FeQBbtBDtfX2QfvPxdUelMDEckK08SM6nqo1MIZY3RUlfA+HV8+hFUSio78qg== + dependencies: + "@types/node" "*" + "@types/qs" "*" + "@types/range-parser" "*" + "@types/send" "*" + +"@types/express@*": + version "5.0.5" + resolved "https://registry.yarnpkg.com/@types/express/-/express-5.0.5.tgz#3ba069177caa34ab96585ca23b3984d752300cdc" + integrity sha512-LuIQOcb6UmnF7C1PCFmEU1u2hmiHL43fgFQX67sN3H4Z+0Yk0Neo++mFsBjhOAuLzvlQeqAAkeDOZrJs9rzumQ== + dependencies: + "@types/body-parser" "*" + "@types/express-serve-static-core" "^5.0.0" + "@types/serve-static" "^1" + +"@types/express@^4.17.21": + version "4.17.25" + resolved "https://registry.yarnpkg.com/@types/express/-/express-4.17.25.tgz#070c8c73a6fee6936d65c195dbbfb7da5026649b" + integrity sha512-dVd04UKsfpINUnK0yBoYHDF3xu7xVH4BuDotC/xGuycx4CgbP48X/KF/586bcObxT0HENHXEU8Nqtu6NR+eKhw== + dependencies: + "@types/body-parser" "*" + "@types/express-serve-static-core" "^4.17.33" + "@types/qs" "*" + "@types/serve-static" "^1" + +"@types/http-errors@*": + version "2.0.5" + resolved "https://registry.yarnpkg.com/@types/http-errors/-/http-errors-2.0.5.tgz#5b749ab2b16ba113423feb1a64a95dcd30398472" + integrity sha512-r8Tayk8HJnX0FztbZN7oVqGccWgw98T/0neJphO91KkmOzug1KkofZURD4UaD5uH8AqcFLfdPErnBod0u71/qg== + +"@types/http-proxy@^1.17.8": + version "1.17.17" + resolved "https://registry.yarnpkg.com/@types/http-proxy/-/http-proxy-1.17.17.tgz#d9e2c4571fe3507343cb210cd41790375e59a533" + integrity sha512-ED6LB+Z1AVylNTu7hdzuBqOgMnvG/ld6wGCG8wFnAzKX5uyW2K3WD52v0gnLCTK/VLpXtKckgWuyScYK6cSPaw== + dependencies: + "@types/node" "*" + +"@types/json-schema@^7.0.9": + version "7.0.15" + resolved "https://registry.yarnpkg.com/@types/json-schema/-/json-schema-7.0.15.tgz#596a1747233694d50f6ad8a7869fcb6f56cf5841" + integrity sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA== + +"@types/mime@^1": + version "1.3.5" + resolved "https://registry.yarnpkg.com/@types/mime/-/mime-1.3.5.tgz#1ef302e01cf7d2b5a0fa526790c9123bf1d06690" + integrity sha512-/pyBZWSLD2n0dcHE3hq8s8ZvcETHtEuF+3E7XVt0Ig2nvsVQXdghHVcEkIWjy9A0wKfTn97a/PSDYohKIlnP/w== + +"@types/node-forge@^1.3.0": + version "1.3.14" + resolved "https://registry.yarnpkg.com/@types/node-forge/-/node-forge-1.3.14.tgz#006c2616ccd65550560c2757d8472eb6d3ecea0b" + integrity sha512-mhVF2BnD4BO+jtOp7z1CdzaK4mbuK0LLQYAvdOLqHTavxFNq4zA1EmYkpnFjP8HOUzedfQkRnp0E2ulSAYSzAw== + dependencies: + "@types/node" "*" + +"@types/node@*", "@types/node@>=13.7.0": + version "24.10.1" + resolved "https://registry.yarnpkg.com/@types/node/-/node-24.10.1.tgz#91e92182c93db8bd6224fca031e2370cef9a8f01" + integrity sha512-GNWcUTRBgIRJD5zj+Tq0fKOJ5XZajIiBroOF0yvj2bSU1WvNdYS/dn9UxwsujGW4JX06dnHyjV2y9rRaybH0iQ== + dependencies: + undici-types "~7.16.0" + +"@types/qs@*": + version "6.14.0" + resolved "https://registry.yarnpkg.com/@types/qs/-/qs-6.14.0.tgz#d8b60cecf62f2db0fb68e5e006077b9178b85de5" + integrity sha512-eOunJqu0K1923aExK6y8p6fsihYEn/BYuQ4g0CxAAgFc4b/ZLN4CrsRZ55srTdqoiLzU2B2evC+apEIxprEzkQ== + +"@types/range-parser@*": + version "1.2.7" + resolved "https://registry.yarnpkg.com/@types/range-parser/-/range-parser-1.2.7.tgz#50ae4353eaaddc04044279812f52c8c65857dbcb" + integrity sha512-hKormJbkJqzQGhziax5PItDUTMAM9uE2XXQmM37dyd4hVM+5aVl7oVxMVUiVQn2oCQFN/LKCZdvSM0pFRqbSmQ== + +"@types/retry@0.12.2": + version "0.12.2" + resolved "https://registry.yarnpkg.com/@types/retry/-/retry-0.12.2.tgz#ed279a64fa438bb69f2480eda44937912bb7480a" + integrity sha512-XISRgDJ2Tc5q4TRqvgJtzsRkFYNJzZrhTdtMoGVBttwzzQJkPnS3WWTFc7kuDRoPtPakl+T+OfdEUjYJj7Jbow== + +"@types/send@*": + version "1.2.1" + resolved "https://registry.yarnpkg.com/@types/send/-/send-1.2.1.tgz#6a784e45543c18c774c049bff6d3dbaf045c9c74" + integrity sha512-arsCikDvlU99zl1g69TcAB3mzZPpxgw0UQnaHeC1Nwb015xp8bknZv5rIfri9xTOcMuaVgvabfIRA7PSZVuZIQ== + dependencies: + "@types/node" "*" + +"@types/send@<1": + version "0.17.6" + resolved "https://registry.yarnpkg.com/@types/send/-/send-0.17.6.tgz#aeb5385be62ff58a52cd5459daa509ae91651d25" + integrity sha512-Uqt8rPBE8SY0RK8JB1EzVOIZ32uqy8HwdxCnoCOsYrvnswqmFZ/k+9Ikidlk/ImhsdvBsloHbAlewb2IEBV/Og== + dependencies: + "@types/mime" "^1" + "@types/node" "*" + +"@types/serve-index@^1.9.4": + version "1.9.4" + resolved "https://registry.yarnpkg.com/@types/serve-index/-/serve-index-1.9.4.tgz#e6ae13d5053cb06ed36392110b4f9a49ac4ec898" + integrity sha512-qLpGZ/c2fhSs5gnYsQxtDEq3Oy8SXPClIXkW5ghvAvsNuVSA8k+gCONcUCS/UjLEYvYps+e8uBtfgXgvhwfNug== + dependencies: + "@types/express" "*" + +"@types/serve-static@^1", "@types/serve-static@^1.15.5": + version "1.15.10" + resolved "https://registry.yarnpkg.com/@types/serve-static/-/serve-static-1.15.10.tgz#768169145a778f8f5dfcb6360aead414a3994fee" + integrity sha512-tRs1dB+g8Itk72rlSI2ZrW6vZg0YrLI81iQSTkMmOqnqCaNr/8Ek4VwWcN5vZgCYWbg/JJSGBlUaYGAOP73qBw== + dependencies: + "@types/http-errors" "*" + "@types/node" "*" + "@types/send" "<1" + +"@types/sockjs@^0.3.36": + version "0.3.36" + resolved "https://registry.yarnpkg.com/@types/sockjs/-/sockjs-0.3.36.tgz#ce322cf07bcc119d4cbf7f88954f3a3bd0f67535" + integrity sha512-MK9V6NzAS1+Ud7JV9lJLFqW85VbC9dq3LmwZCuBe4wBDgKC0Kj/jd8Xl+nSviU+Qc3+m7umHHyHg//2KSa0a0Q== + dependencies: + "@types/node" "*" + +"@types/ws@^8.5.10": + version "8.18.1" + resolved "https://registry.yarnpkg.com/@types/ws/-/ws-8.18.1.tgz#48464e4bf2ddfd17db13d845467f6070ffea4aa9" + integrity sha512-ThVF6DCVhA8kUGy+aazFQ4kXQ7E1Ty7A3ypFOe0IcJV8O/M511G99AW24irKrW56Wt44yG9+ij8FaqoBGkuBXg== + dependencies: + "@types/node" "*" + +accepts@~1.3.4, accepts@~1.3.8: + version "1.3.8" + resolved "https://registry.yarnpkg.com/accepts/-/accepts-1.3.8.tgz#0bf0be125b67014adcb0b0921e62db7bffe16b2e" + integrity sha512-PYAthTa2m2VKxuvSD3DPC/Gy+U+sOA1LAuT8mkmRuvw+NACSaeXEQ+NHcVF7rONl6qcaxV3Uuemwawk+7+SJLw== + dependencies: + mime-types "~2.1.34" + negotiator "0.6.3" + +acorn-walk@^8.0.0: + version "8.3.4" + resolved "https://registry.yarnpkg.com/acorn-walk/-/acorn-walk-8.3.4.tgz#794dd169c3977edf4ba4ea47583587c5866236b7" + integrity sha512-ueEepnujpqee2o5aIYnvHU6C0A42MNdsIDeqy5BydrkuC5R1ZuUFnm27EeFJGoEHJQgn3uleRvmTXaJgfXbt4g== + dependencies: + acorn "^8.11.0" + +acorn@^8.0.4, acorn@^8.11.0: + version "8.15.0" + resolved "https://registry.yarnpkg.com/acorn/-/acorn-8.15.0.tgz#a360898bc415edaac46c8241f6383975b930b816" + integrity sha512-NZyJarBfL7nWwIq+FDL6Zp/yHEhePMNnnJ0y3qfieCrmNvYct8uvtiV41UvlSe6apAfk0fY1FbWx+NwfmpvtTg== + +ajv-formats@^2.1.1: + version "2.1.1" + resolved "https://registry.yarnpkg.com/ajv-formats/-/ajv-formats-2.1.1.tgz#6e669400659eb74973bbf2e33327180a0996b520" + integrity sha512-Wx0Kx52hxE7C18hkMEggYlEifqWZtYaRgouJor+WMdPnQyEK13vgEWyVNup7SoeeoLMsr4kf5h6dOW11I15MUA== + dependencies: + ajv "^8.0.0" + +ajv-keywords@^5.1.0: + version "5.1.0" + resolved "https://registry.yarnpkg.com/ajv-keywords/-/ajv-keywords-5.1.0.tgz#69d4d385a4733cdbeab44964a1170a88f87f0e16" + integrity sha512-YCS/JNFAUyr5vAuhk1DWm1CBxRHW9LbJ2ozWeemrIqpbsqKjHVxYPyi5GC0rjZIT5JxJ3virVTS8wk4i/Z+krw== + dependencies: + fast-deep-equal "^3.1.3" + +ajv@^8.0.0, ajv@^8.9.0: + version "8.17.1" + resolved "https://registry.yarnpkg.com/ajv/-/ajv-8.17.1.tgz#37d9a5c776af6bc92d7f4f9510eba4c0a60d11a6" + integrity sha512-B/gBuNg5SiMTrPkC+A2+cW0RszwxYmn6VYxB/inlBStS5nx6xHIt/ehKRhIMhqusl7a8LjQoZnjCs5vhwxOQ1g== + dependencies: + fast-deep-equal "^3.1.3" + fast-uri "^3.0.1" + json-schema-traverse "^1.0.0" + require-from-string "^2.0.2" + +ansi-html-community@^0.0.8: + version "0.0.8" + resolved "https://registry.yarnpkg.com/ansi-html-community/-/ansi-html-community-0.0.8.tgz#69fbc4d6ccbe383f9736934ae34c3f8290f1bf41" + integrity sha512-1APHAyr3+PCamwNw3bXCPp4HFLONZt/yIH0sZp0/469KWNTEy+qN5jQ3GVX6DMZ1UXAi34yVwtTeaG/HpBuuzw== + +anymatch@~3.1.2: + version "3.1.3" + resolved "https://registry.yarnpkg.com/anymatch/-/anymatch-3.1.3.tgz#790c58b19ba1720a84205b57c618d5ad8524973e" + integrity sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw== + dependencies: + normalize-path "^3.0.0" + picomatch "^2.0.4" + +array-flatten@1.1.1: + version "1.1.1" + resolved "https://registry.yarnpkg.com/array-flatten/-/array-flatten-1.1.1.tgz#9a5f699051b1e7073328f2a008968b64ea2955d2" + integrity sha512-PCVAQswWemu6UdxsDFFX/+gVeYqKAod3D3UVm91jHwynguOwAvYPhx8nNlM++NqRcK6CxxpUafjmhIdKiHibqg== + +batch@0.6.1: + version "0.6.1" + resolved "https://registry.yarnpkg.com/batch/-/batch-0.6.1.tgz#dc34314f4e679318093fc760272525f94bf25c16" + integrity sha512-x+VAiMRL6UPkx+kudNvxTl6hB2XNNCG2r+7wixVfIYwu/2HKRXimwQyaumLjMveWvT2Hkd/cAJw+QBMfJ/EKVw== + +binary-extensions@^2.0.0: + version "2.3.0" + resolved "https://registry.yarnpkg.com/binary-extensions/-/binary-extensions-2.3.0.tgz#f6e14a97858d327252200242d4ccfe522c445522" + integrity sha512-Ceh+7ox5qe7LJuLHoY0feh3pHuUDHAcRUeyL2VYghZwfpkNIy/+8Ocg0a3UuSoYzavmylwuLWQOf3hl0jjMMIw== + +body-parser@1.20.3: + version "1.20.3" + resolved "https://registry.yarnpkg.com/body-parser/-/body-parser-1.20.3.tgz#1953431221c6fb5cd63c4b36d53fab0928e548c6" + integrity sha512-7rAxByjUMqQ3/bHJy7D6OGXvx/MMc4IqBn/X0fcM1QUcAItpZrBEYhWGem+tzXH90c+G01ypMcYJBO9Y30203g== + dependencies: + bytes "3.1.2" + content-type "~1.0.5" + debug "2.6.9" + depd "2.0.0" + destroy "1.2.0" + http-errors "2.0.0" + iconv-lite "0.4.24" + on-finished "2.4.1" + qs "6.13.0" + raw-body "2.5.2" + type-is "~1.6.18" + unpipe "1.0.0" + +bonjour-service@^1.2.1: + version "1.3.0" + resolved "https://registry.yarnpkg.com/bonjour-service/-/bonjour-service-1.3.0.tgz#80d867430b5a0da64e82a8047fc1e355bdb71722" + integrity sha512-3YuAUiSkWykd+2Azjgyxei8OWf8thdn8AITIog2M4UICzoqfjlqr64WIjEXZllf/W6vK1goqleSR6brGomxQqA== + dependencies: + fast-deep-equal "^3.1.3" + multicast-dns "^7.2.5" + +braces@^3.0.3, braces@~3.0.2: + version "3.0.3" + resolved "https://registry.yarnpkg.com/braces/-/braces-3.0.3.tgz#490332f40919452272d55a8480adc0c441358789" + integrity sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA== + dependencies: + fill-range "^7.1.1" + +bundle-name@^4.1.0: + version "4.1.0" + resolved "https://registry.yarnpkg.com/bundle-name/-/bundle-name-4.1.0.tgz#f3b96b34160d6431a19d7688135af7cfb8797889" + integrity sha512-tjwM5exMg6BGRI+kNmTntNsvdZS1X8BFYS6tnJ2hdH0kVxM6/eVZ2xy+FqStSWvYmtfFMDLIxurorHwDKfDz5Q== + dependencies: + run-applescript "^7.0.0" + +bytes@3.1.2: + version "3.1.2" + resolved "https://registry.yarnpkg.com/bytes/-/bytes-3.1.2.tgz#8b0beeb98605adf1b128fa4386403c009e0221a5" + integrity sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg== + +call-bind-apply-helpers@^1.0.1, call-bind-apply-helpers@^1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/call-bind-apply-helpers/-/call-bind-apply-helpers-1.0.2.tgz#4b5428c222be985d79c3d82657479dbe0b59b2d6" + integrity sha512-Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ== + dependencies: + es-errors "^1.3.0" + function-bind "^1.1.2" + +call-bound@^1.0.2: + version "1.0.4" + resolved "https://registry.yarnpkg.com/call-bound/-/call-bound-1.0.4.tgz#238de935d2a2a692928c538c7ccfa91067fd062a" + integrity sha512-+ys997U96po4Kx/ABpBCqhA9EuxJaQWDQg7295H4hBphv3IZg0boBKuwYpt4YXp6MZ5AmZQnU/tyMTlRpaSejg== + dependencies: + call-bind-apply-helpers "^1.0.2" + get-intrinsic "^1.3.0" + +chokidar@^3.6.0: + version "3.6.0" + resolved "https://registry.yarnpkg.com/chokidar/-/chokidar-3.6.0.tgz#197c6cc669ef2a8dc5e7b4d97ee4e092c3eb0d5b" + integrity sha512-7VT13fmjotKpGipCW9JEQAusEPE+Ei8nl6/g4FBAmIm0GOOLMua9NDDo/DWp0ZAxCr3cPq5ZpBqmPAQgDda2Pw== + dependencies: + anymatch "~3.1.2" + braces "~3.0.2" + glob-parent "~5.1.2" + is-binary-path "~2.1.0" + is-glob "~4.0.1" + normalize-path "~3.0.0" + readdirp "~3.6.0" + optionalDependencies: + fsevents "~2.3.2" + +colorette@^2.0.10: + version "2.0.20" + resolved "https://registry.yarnpkg.com/colorette/-/colorette-2.0.20.tgz#9eb793e6833067f7235902fcd3b09917a000a95a" + integrity sha512-IfEDxwoWIjkeXL1eXcDiow4UbKjhLdq6/EuSVR9GMN7KVH3r9gQ83e73hsz1Nd1T3ijd5xv1wcWRYO+D6kCI2w== + +commander@^7.2.0: + version "7.2.0" + resolved "https://registry.yarnpkg.com/commander/-/commander-7.2.0.tgz#a36cb57d0b501ce108e4d20559a150a391d97ab7" + integrity sha512-QrWXB+ZQSVPmIWIhtEO9H+gwHaMGYiF5ChvoJ+K9ZGHG/sVsa6yiesAD1GC/x46sET00Xlwo1u49RVVVzvcSkw== + +compressible@~2.0.18: + version "2.0.18" + resolved "https://registry.yarnpkg.com/compressible/-/compressible-2.0.18.tgz#af53cca6b070d4c3c0750fbd77286a6d7cc46fba" + integrity sha512-AF3r7P5dWxL8MxyITRMlORQNaOA2IkAFaTr4k7BUumjPtRpGDTZpl0Pb1XCO6JeDCBdp126Cgs9sMxqSjgYyRg== + dependencies: + mime-db ">= 1.43.0 < 2" + +compression@^1.7.4: + version "1.8.1" + resolved "https://registry.yarnpkg.com/compression/-/compression-1.8.1.tgz#4a45d909ac16509195a9a28bd91094889c180d79" + integrity sha512-9mAqGPHLakhCLeNyxPkK4xVo746zQ/czLH1Ky+vkitMnWfWZps8r0qXuwhwizagCRttsL4lfG4pIOvaWLpAP0w== + dependencies: + bytes "3.1.2" + compressible "~2.0.18" + debug "2.6.9" + negotiator "~0.6.4" + on-headers "~1.1.0" + safe-buffer "5.2.1" + vary "~1.1.2" + +connect-history-api-fallback@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/connect-history-api-fallback/-/connect-history-api-fallback-2.0.0.tgz#647264845251a0daf25b97ce87834cace0f5f1c8" + integrity sha512-U73+6lQFmfiNPrYbXqr6kZ1i1wiRqXnp2nhMsINseWXO8lDau0LGEffJ8kQi4EjLZympVgRdvqjAgiZ1tgzDDA== + +content-disposition@0.5.4: + version "0.5.4" + resolved "https://registry.yarnpkg.com/content-disposition/-/content-disposition-0.5.4.tgz#8b82b4efac82512a02bb0b1dcec9d2c5e8eb5bfe" + integrity sha512-FveZTNuGw04cxlAiWbzi6zTAL/lhehaWbTtgluJh4/E95DqMwTmha3KZN1aAWA8cFIhHzMZUvLevkw5Rqk+tSQ== + dependencies: + safe-buffer "5.2.1" + +content-type@~1.0.4, content-type@~1.0.5: + version "1.0.5" + resolved "https://registry.yarnpkg.com/content-type/-/content-type-1.0.5.tgz#8b773162656d1d1086784c8f23a54ce6d73d7918" + integrity sha512-nTjqfcBFEipKdXCv4YDQWCfmcLZKm81ldF0pAopTvyrFGVbcR6P/VAAd5G7N+0tTr8QqiU0tFadD6FK4NtJwOA== + +cookie-signature@1.0.6: + version "1.0.6" + resolved "https://registry.yarnpkg.com/cookie-signature/-/cookie-signature-1.0.6.tgz#e303a882b342cc3ee8ca513a79999734dab3ae2c" + integrity sha512-QADzlaHc8icV8I7vbaJXJwod9HWYp8uCqf1xa4OfNu1T7JVxQIrUgOWtHdNDtPiywmFbiS12VjotIXLrKM3orQ== + +cookie@0.7.1: + version "0.7.1" + resolved "https://registry.yarnpkg.com/cookie/-/cookie-0.7.1.tgz#2f73c42142d5d5cf71310a74fc4ae61670e5dbc9" + integrity sha512-6DnInpx7SJ2AK3+CTUE/ZM0vWTUboZCegxhC2xiIydHR9jNuTAASBrfEpHhiGOZw/nX51bHt6YQl8jsGo4y/0w== + +core-util-is@~1.0.0: + version "1.0.3" + resolved "https://registry.yarnpkg.com/core-util-is/-/core-util-is-1.0.3.tgz#a6042d3634c2b27e9328f837b965fac83808db85" + integrity sha512-ZQBvi1DcpJ4GDqanjucZ2Hj3wEO5pZDS89BWbkcrvdxksJorwUDDZamX9ldFkp9aw2lmBDLgkObEA4DWNJ9FYQ== + +crypto-randomuuid@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/crypto-randomuuid/-/crypto-randomuuid-1.0.0.tgz#acf583e5e085e867ae23e107ff70279024f9e9e7" + integrity sha512-/RC5F4l1SCqD/jazwUF6+t34Cd8zTSAGZ7rvvZu1whZUhD2a5MOGKjSGowoGcpj/cbVZk1ZODIooJEQQq3nNAA== + +debounce@^1.2.1: + version "1.2.1" + resolved "https://registry.yarnpkg.com/debounce/-/debounce-1.2.1.tgz#38881d8f4166a5c5848020c11827b834bcb3e0a5" + integrity sha512-XRRe6Glud4rd/ZGQfiV1ruXSfbvfJedlV9Y6zOlP+2K04vBYiJEte6stfFkCP03aMnY5tsipamumUjL14fofug== + +debug@2.6.9: + version "2.6.9" + resolved "https://registry.yarnpkg.com/debug/-/debug-2.6.9.tgz#5d128515df134ff327e90a4c93f4e077a536341f" + integrity sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA== + dependencies: + ms "2.0.0" + +debug@^4.1.0: + version "4.4.3" + resolved "https://registry.yarnpkg.com/debug/-/debug-4.4.3.tgz#c6ae432d9bd9662582fce08709b038c58e9e3d6a" + integrity sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA== + dependencies: + ms "^2.1.3" + +default-browser-id@^5.0.0: + version "5.0.1" + resolved "https://registry.yarnpkg.com/default-browser-id/-/default-browser-id-5.0.1.tgz#f7a7ccb8f5104bf8e0f71ba3b1ccfa5eafdb21e8" + integrity sha512-x1VCxdX4t+8wVfd1so/9w+vQ4vx7lKd2Qp5tDRutErwmR85OgmfX7RlLRMWafRMY7hbEiXIbudNrjOAPa/hL8Q== + +default-browser@^5.2.1: + version "5.4.0" + resolved "https://registry.yarnpkg.com/default-browser/-/default-browser-5.4.0.tgz#b55cf335bb0b465dd7c961a02cd24246aa434287" + integrity sha512-XDuvSq38Hr1MdN47EDvYtx3U0MTqpCEn+F6ft8z2vYDzMrvQhVp0ui9oQdqW3MvK3vqUETglt1tVGgjLuJ5izg== + dependencies: + bundle-name "^4.1.0" + default-browser-id "^5.0.0" + +define-lazy-prop@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/define-lazy-prop/-/define-lazy-prop-3.0.0.tgz#dbb19adfb746d7fc6d734a06b72f4a00d021255f" + integrity sha512-N+MeXYoqr3pOgn8xfyRPREN7gHakLYjhsHhWGT3fWAiL4IkAt0iDw14QiiEm2bE30c5XX5q0FtAA3CK5f9/BUg== + +depd@2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/depd/-/depd-2.0.0.tgz#b696163cc757560d09cf22cc8fad1571b79e76df" + integrity sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw== + +depd@~1.1.2: + version "1.1.2" + resolved "https://registry.yarnpkg.com/depd/-/depd-1.1.2.tgz#9bcd52e14c097763e749b274c4346ed2e560b5a9" + integrity sha512-7emPTl6Dpo6JRXOXjLRxck+FlLRX5847cLKEn00PLAgc3g2hTZZgr+e4c2v6QpSmLeFP3n5yUo7ft6avBK/5jQ== + +destroy@1.2.0: + version "1.2.0" + resolved "https://registry.yarnpkg.com/destroy/-/destroy-1.2.0.tgz#4803735509ad8be552934c67df614f94e66fa015" + integrity sha512-2sJGJTaXIIaR1w4iJSNoN0hnMY7Gpc/n8D4qSCJw8QqFWXf7cuAgnEHxBpweaVcPevC2l3KpjYCx3NypQQgaJg== + +detect-newline@^3.0.0: + version "3.1.0" + resolved "https://registry.yarnpkg.com/detect-newline/-/detect-newline-3.1.0.tgz#576f5dfc63ae1a192ff192d8ad3af6308991b651" + integrity sha512-TLz+x/vEXm/Y7P7wn1EJFNLxYpUD4TgMosxY6fAVJUnJMbupHBOncxyWUG9OpTaH9EBD7uFI5LfEgmMOc54DsA== + +detect-node@^2.0.4: + version "2.1.0" + resolved "https://registry.yarnpkg.com/detect-node/-/detect-node-2.1.0.tgz#c9c70775a49c3d03bc2c06d9a73be550f978f8b1" + integrity sha512-T0NIuQpnTvFDATNuHN5roPwSBG83rFsuO+MXXH9/3N1eFbn4wcPjttvjMLEPWJ0RGUYgQE7cGgS3tNxbqCGM7g== + +dns-packet@^5.2.2: + version "5.6.1" + resolved "https://registry.yarnpkg.com/dns-packet/-/dns-packet-5.6.1.tgz#ae888ad425a9d1478a0674256ab866de1012cf2f" + integrity sha512-l4gcSouhcgIKRvyy99RNVOgxXiicE+2jZoNmaNmZ6JXiGajBOJAesk1OBlJuM5k2c+eudGdLxDqXuPCKIj6kpw== + dependencies: + "@leichtgewicht/ip-codec" "^2.0.1" + +dunder-proto@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/dunder-proto/-/dunder-proto-1.0.1.tgz#d7ae667e1dc83482f8b70fd0f6eefc50da30f58a" + integrity sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A== + dependencies: + call-bind-apply-helpers "^1.0.1" + es-errors "^1.3.0" + gopd "^1.2.0" + +duplexer@^0.1.2: + version "0.1.2" + resolved "https://registry.yarnpkg.com/duplexer/-/duplexer-0.1.2.tgz#3abe43aef3835f8ae077d136ddce0f276b0400e6" + integrity sha512-jtD6YG370ZCIi/9GTaJKQxWTZD045+4R4hTk/x1UyoqadyJ9x9CgSi1RlVDQF8U2sxLLSnFkCaMihqljHIWgMg== + +ee-first@1.1.1: + version "1.1.1" + resolved "https://registry.yarnpkg.com/ee-first/-/ee-first-1.1.1.tgz#590c61156b0ae2f4f0255732a158b266bc56b21d" + integrity sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow== + +encodeurl@~1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/encodeurl/-/encodeurl-1.0.2.tgz#ad3ff4c86ec2d029322f5a02c3a9a606c95b3f59" + integrity sha512-TPJXq8JqFaVYm2CWmPvnP2Iyo4ZSM7/QKcSmuMLDObfpH5fi7RUGmd/rTDf+rut/saiDiQEeVTNgAmJEdAOx0w== + +encodeurl@~2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/encodeurl/-/encodeurl-2.0.0.tgz#7b8ea898077d7e409d3ac45474ea38eaf0857a58" + integrity sha512-Q0n9HRi4m6JuGIV1eFlmvJB7ZEVxu93IrMyiMsGC0lrMJMWzRgx6WGquyfQgZVb31vhGgXnfmPNNXmxnOkRBrg== + +es-define-property@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/es-define-property/-/es-define-property-1.0.1.tgz#983eb2f9a6724e9303f61addf011c72e09e0b0fa" + integrity sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g== + +es-errors@^1.3.0: + version "1.3.0" + resolved "https://registry.yarnpkg.com/es-errors/-/es-errors-1.3.0.tgz#05f75a25dab98e4fb1dcd5e1472c0546d5057c8f" + integrity sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw== + +es-object-atoms@^1.0.0, es-object-atoms@^1.1.1: + version "1.1.1" + resolved "https://registry.yarnpkg.com/es-object-atoms/-/es-object-atoms-1.1.1.tgz#1c4f2c4837327597ce69d2ca190a7fdd172338c1" + integrity sha512-FGgH2h8zKNim9ljj7dankFPcICIK9Cp5bm+c2gQSYePhpaG5+esrLODihIorn+Pe6FGJzWhXQotPv73jTaldXA== + dependencies: + es-errors "^1.3.0" + +escape-html@~1.0.3: + version "1.0.3" + resolved "https://registry.yarnpkg.com/escape-html/-/escape-html-1.0.3.tgz#0258eae4d3d0c0974de1c169188ef0051d1d1988" + integrity sha512-NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow== + +escape-string-regexp@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz#14ba83a5d373e3d311e5afca29cf5bfad965bf34" + integrity sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA== + +etag@~1.8.1: + version "1.8.1" + resolved "https://registry.yarnpkg.com/etag/-/etag-1.8.1.tgz#41ae2eeb65efa62268aebfea83ac7d79299b0887" + integrity sha512-aIL5Fx7mawVa300al2BnEE4iNvo1qETxLrPI/o05L7z6go7fCw1J6EQmbK4FmJ2AS7kgVF/KEZWufBfdClMcPg== + +eventemitter3@^4.0.0: + version "4.0.7" + resolved "https://registry.yarnpkg.com/eventemitter3/-/eventemitter3-4.0.7.tgz#2de9b68f6528d5644ef5c59526a1b4a07306169f" + integrity sha512-8guHBZCwKnFhYdHr2ysuRWErTwhoN2X8XELRlrRwpmfeY2jjuUN4taQMsULKUVo1K4DvZl+0pgfyoysHxvmvEw== + +exit-hook@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/exit-hook/-/exit-hook-4.0.0.tgz#c1e16ebd03d3166f837b1502dac755bb5c460d58" + integrity sha512-Fqs7ChZm72y40wKjOFXBKg7nJZvQJmewP5/7LtePDdnah/+FH9Hp5sgMujSCMPXlxOAW2//1jrW9pnsY7o20vQ== + +express@^4.21.2: + version "4.21.2" + resolved "https://registry.yarnpkg.com/express/-/express-4.21.2.tgz#cf250e48362174ead6cea4a566abef0162c1ec32" + integrity sha512-28HqgMZAmih1Czt9ny7qr6ek2qddF4FclbMzwhCREB6OFfH+rXAnuNCwo1/wFvrtbgsQDb4kSbX9de9lFbrXnA== + dependencies: + accepts "~1.3.8" + array-flatten "1.1.1" + body-parser "1.20.3" + content-disposition "0.5.4" + content-type "~1.0.4" + cookie "0.7.1" + cookie-signature "1.0.6" + debug "2.6.9" + depd "2.0.0" + encodeurl "~2.0.0" + escape-html "~1.0.3" + etag "~1.8.1" + finalhandler "1.3.1" + fresh "0.5.2" + http-errors "2.0.0" + merge-descriptors "1.0.3" + methods "~1.1.2" + on-finished "2.4.1" + parseurl "~1.3.3" + path-to-regexp "0.1.12" + proxy-addr "~2.0.7" + qs "6.13.0" + range-parser "~1.2.1" + safe-buffer "5.2.1" + send "0.19.0" + serve-static "1.16.2" + setprototypeof "1.2.0" + statuses "2.0.1" + type-is "~1.6.18" + utils-merge "1.0.1" + vary "~1.1.2" + +fast-deep-equal@^3.1.3: + version "3.1.3" + resolved "https://registry.yarnpkg.com/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz#3a7d56b559d6cbc3eb512325244e619a65c6c525" + integrity sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q== + +fast-fifo@^1.3.2: + version "1.3.2" + resolved "https://registry.yarnpkg.com/fast-fifo/-/fast-fifo-1.3.2.tgz#286e31de96eb96d38a97899815740ba2a4f3640c" + integrity sha512-/d9sfos4yxzpwkDkuN7k2SqFKtYNmCTzgfEpz82x34IM9/zc8KGxQoXg1liNC/izpRM/MBdt44Nmx41ZWqk+FQ== + +fast-uri@^3.0.1: + version "3.1.0" + resolved "https://registry.yarnpkg.com/fast-uri/-/fast-uri-3.1.0.tgz#66eecff6c764c0df9b762e62ca7edcfb53b4edfa" + integrity sha512-iPeeDKJSWf4IEOasVVrknXpaBV0IApz/gp7S2bb7Z4Lljbl2MGJRqInZiUrQwV16cpzw/D3S5j5Julj/gT52AA== + +faye-websocket@^0.11.3: + version "0.11.4" + resolved "https://registry.yarnpkg.com/faye-websocket/-/faye-websocket-0.11.4.tgz#7f0d9275cfdd86a1c963dc8b65fcc451edcbb1da" + integrity sha512-CzbClwlXAuiRQAlUyfqPgvPoNKTckTPGfwZV4ZdAhVcP2lh9KUxJg2b5GkE7XbjKQ3YJnQ9z6D9ntLAlB+tP8g== + dependencies: + websocket-driver ">=0.5.1" + +fill-range@^7.1.1: + version "7.1.1" + resolved "https://registry.yarnpkg.com/fill-range/-/fill-range-7.1.1.tgz#44265d3cac07e3ea7dc247516380643754a05292" + integrity sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg== + dependencies: + to-regex-range "^5.0.1" + +finalhandler@1.3.1: + version "1.3.1" + resolved "https://registry.yarnpkg.com/finalhandler/-/finalhandler-1.3.1.tgz#0c575f1d1d324ddd1da35ad7ece3df7d19088019" + integrity sha512-6BN9trH7bp3qvnrRyzsBz+g3lZxTNZTbVO2EV1CS0WIcDbawYVdYvGflME/9QP0h0pYlCDBCTjYa9nZzMDpyxQ== + dependencies: + debug "2.6.9" + encodeurl "~2.0.0" + escape-html "~1.0.3" + on-finished "2.4.1" + parseurl "~1.3.3" + statuses "2.0.1" + unpipe "~1.0.0" + +follow-redirects@^1.0.0: + version "1.15.11" + resolved "https://registry.yarnpkg.com/follow-redirects/-/follow-redirects-1.15.11.tgz#777d73d72a92f8ec4d2e410eb47352a56b8e8340" + integrity sha512-deG2P0JfjrTxl50XGCDyfI97ZGVCxIpfKYmfyrQ54n5FO/0gfIES8C/Psl6kWVDolizcaaxZJnTS0QSMxvnsBQ== + +forwarded@0.2.0: + version "0.2.0" + resolved "https://registry.yarnpkg.com/forwarded/-/forwarded-0.2.0.tgz#2269936428aad4c15c7ebe9779a84bf0b2a81811" + integrity sha512-buRG0fpBtRHSTCOASe6hD258tEubFoRLb4ZNA6NxMVHNw2gOcwHo9wyablzMzOA5z9xA9L1KNjk/Nt6MT9aYow== + +fresh@0.5.2: + version "0.5.2" + resolved "https://registry.yarnpkg.com/fresh/-/fresh-0.5.2.tgz#3d8cadd90d976569fa835ab1f8e4b23a105605a7" + integrity sha512-zJ2mQYM18rEFOudeV4GShTGIQ7RbzA7ozbU9I/XBpm7kqgMywgmylMwXHxZJmkVoYkna9d2pVXVXPdYTP9ej8Q== + +fsevents@~2.3.2: + version "2.3.3" + resolved "https://registry.yarnpkg.com/fsevents/-/fsevents-2.3.3.tgz#cac6407785d03675a2a5e1a5305c697b347d90d6" + integrity sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw== + +function-bind@^1.1.2: + version "1.1.2" + resolved "https://registry.yarnpkg.com/function-bind/-/function-bind-1.1.2.tgz#2c02d864d97f3ea6c8830c464cbd11ab6eab7a1c" + integrity sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA== + +get-intrinsic@^1.2.5, get-intrinsic@^1.3.0: + version "1.3.0" + resolved "https://registry.yarnpkg.com/get-intrinsic/-/get-intrinsic-1.3.0.tgz#743f0e3b6964a93a5491ed1bffaae054d7f98d01" + integrity sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ== + dependencies: + call-bind-apply-helpers "^1.0.2" + es-define-property "^1.0.1" + es-errors "^1.3.0" + es-object-atoms "^1.1.1" + function-bind "^1.1.2" + get-proto "^1.0.1" + gopd "^1.2.0" + has-symbols "^1.1.0" + hasown "^2.0.2" + math-intrinsics "^1.1.0" + +get-proto@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/get-proto/-/get-proto-1.0.1.tgz#150b3f2743869ef3e851ec0c49d15b1d14d00ee1" + integrity sha512-sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g== + dependencies: + dunder-proto "^1.0.1" + es-object-atoms "^1.0.0" + +glob-parent@~5.1.2: + version "5.1.2" + resolved "https://registry.yarnpkg.com/glob-parent/-/glob-parent-5.1.2.tgz#869832c58034fe68a4093c17dc15e8340d8401c4" + integrity sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow== + dependencies: + is-glob "^4.0.1" + +glob-to-regex.js@^1.0.1: + version "1.2.0" + resolved "https://registry.yarnpkg.com/glob-to-regex.js/-/glob-to-regex.js-1.2.0.tgz#2b323728271d133830850e32311f40766c5f6413" + integrity sha512-QMwlOQKU/IzqMUOAZWubUOT8Qft+Y0KQWnX9nK3ch0CJg0tTp4TvGZsTfudYKv2NzoQSyPcnA6TYeIQ3jGichQ== + +gopd@^1.2.0: + version "1.2.0" + resolved "https://registry.yarnpkg.com/gopd/-/gopd-1.2.0.tgz#89f56b8217bdbc8802bd299df6d7f1081d7e51a1" + integrity sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg== + +graceful-fs@^4.2.6: + version "4.2.11" + resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.2.11.tgz#4183e4e8bf08bb6e05bbb2f7d2e0c8f712ca40e3" + integrity sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ== + +gzip-size@^6.0.0: + version "6.0.0" + resolved "https://registry.yarnpkg.com/gzip-size/-/gzip-size-6.0.0.tgz#065367fd50c239c0671cbcbad5be3e2eeb10e462" + integrity sha512-ax7ZYomf6jqPTQ4+XCpUGyXKHk5WweS+e05MBO4/y3WJ5RkmPXNKvX+bx1behVILVwr6JSQvZAku021CHPXG3Q== + dependencies: + duplexer "^0.1.2" + +handle-thing@^2.0.0: + version "2.0.1" + resolved "https://registry.yarnpkg.com/handle-thing/-/handle-thing-2.0.1.tgz#857f79ce359580c340d43081cc648970d0bb234e" + integrity sha512-9Qn4yBxelxoh2Ow62nP+Ka/kMnOXRi8BXnRaUwezLNhqelnN49xKz4F/dPP8OYLxLxq6JDtZb2i9XznUQbNPTg== + +has-symbols@^1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/has-symbols/-/has-symbols-1.1.0.tgz#fc9c6a783a084951d0b971fe1018de813707a338" + integrity sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ== + +hasown@^2.0.2: + version "2.0.2" + resolved "https://registry.yarnpkg.com/hasown/-/hasown-2.0.2.tgz#003eaf91be7adc372e84ec59dc37252cedb80003" + integrity sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ== + dependencies: + function-bind "^1.1.2" + +hpack.js@^2.1.6: + version "2.1.6" + resolved "https://registry.yarnpkg.com/hpack.js/-/hpack.js-2.1.6.tgz#87774c0949e513f42e84575b3c45681fade2a0b2" + integrity sha512-zJxVehUdMGIKsRaNt7apO2Gqp0BdqW5yaiGHXXmbpvxgBYVZnAql+BJb4RO5ad2MgpbZKn5G6nMnegrH1FcNYQ== + dependencies: + inherits "^2.0.1" + obuf "^1.0.0" + readable-stream "^2.0.1" + wbuf "^1.1.0" + +html-escaper@^2.0.2: + version "2.0.2" + resolved "https://registry.yarnpkg.com/html-escaper/-/html-escaper-2.0.2.tgz#dfd60027da36a36dfcbe236262c00a5822681453" + integrity sha512-H2iMtd0I4Mt5eYiapRdIDjp+XzelXQ0tFE4JS7YFwFevXXMmOp9myNrUvCg0D6ws8iqkRPBfKHgbwig1SmlLfg== + +http-deceiver@^1.2.7: + version "1.2.7" + resolved "https://registry.yarnpkg.com/http-deceiver/-/http-deceiver-1.2.7.tgz#fa7168944ab9a519d337cb0bec7284dc3e723d87" + integrity sha512-LmpOGxTfbpgtGVxJrj5k7asXHCgNZp5nLfp+hWc8QQRqtb7fUy6kRY3BO1h9ddF6yIPYUARgxGOwB42DnxIaNw== + +http-errors@2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/http-errors/-/http-errors-2.0.0.tgz#b7774a1486ef73cf7667ac9ae0858c012c57b9d3" + integrity sha512-FtwrG/euBzaEjYeRqOgly7G0qviiXoJWnvEH2Z1plBdXgbyjv34pHTSb9zoeHMyDy33+DWy5Wt9Wo+TURtOYSQ== + dependencies: + depd "2.0.0" + inherits "2.0.4" + setprototypeof "1.2.0" + statuses "2.0.1" + toidentifier "1.0.1" + +http-errors@~1.6.2: + version "1.6.3" + resolved "https://registry.yarnpkg.com/http-errors/-/http-errors-1.6.3.tgz#8b55680bb4be283a0b5bf4ea2e38580be1d9320d" + integrity sha512-lks+lVC8dgGyh97jxvxeYTWQFvh4uw4yC12gVl63Cg30sjPX4wuGcdkICVXDAESr6OJGjqGA8Iz5mkeN6zlD7A== + dependencies: + depd "~1.1.2" + inherits "2.0.3" + setprototypeof "1.1.0" + statuses ">= 1.4.0 < 2" + +http-parser-js@>=0.5.1: + version "0.5.10" + resolved "https://registry.yarnpkg.com/http-parser-js/-/http-parser-js-0.5.10.tgz#b3277bd6d7ed5588e20ea73bf724fcbe44609075" + integrity sha512-Pysuw9XpUq5dVc/2SMHpuTY01RFl8fttgcyunjL7eEMhGM3cI4eOmiCycJDVCo/7O7ClfQD3SaI6ftDzqOXYMA== + +http-proxy-middleware@^2.0.9: + version "2.0.9" + resolved "https://registry.yarnpkg.com/http-proxy-middleware/-/http-proxy-middleware-2.0.9.tgz#e9e63d68afaa4eee3d147f39149ab84c0c2815ef" + integrity sha512-c1IyJYLYppU574+YI7R4QyX2ystMtVXZwIdzazUIPIJsHuWNd+mho2j+bKoHftndicGj9yh+xjd+l0yj7VeT1Q== + dependencies: + "@types/http-proxy" "^1.17.8" + http-proxy "^1.18.1" + is-glob "^4.0.1" + is-plain-obj "^3.0.0" + micromatch "^4.0.2" + +http-proxy@^1.18.1: + version "1.18.1" + resolved "https://registry.yarnpkg.com/http-proxy/-/http-proxy-1.18.1.tgz#401541f0534884bbf95260334e72f88ee3976549" + integrity sha512-7mz/721AbnJwIVbnaSv1Cz3Am0ZLT/UBwkC92VlxhXv/k/BBQfM2fXElQNC27BVGr0uwUpplYPQM9LnaBMR5NQ== + dependencies: + eventemitter3 "^4.0.0" + follow-redirects "^1.0.0" + requires-port "^1.0.0" + +hyperdyperid@^1.2.0: + version "1.2.0" + resolved "https://registry.yarnpkg.com/hyperdyperid/-/hyperdyperid-1.2.0.tgz#59668d323ada92228d2a869d3e474d5a33b69e6b" + integrity sha512-Y93lCzHYgGWdrJ66yIktxiaGULYc6oGiABxhcO5AufBeOyoIdZF7bIfLaOrbM0iGIOXQQgxxRrFEnb+Y6w1n4A== + +iconv-lite@0.4.24: + version "0.4.24" + resolved "https://registry.yarnpkg.com/iconv-lite/-/iconv-lite-0.4.24.tgz#2022b4b25fbddc21d2f524974a474aafe733908b" + integrity sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA== + dependencies: + safer-buffer ">= 2.1.2 < 3" + +ignore@^7.0.5: + version "7.0.5" + resolved "https://registry.yarnpkg.com/ignore/-/ignore-7.0.5.tgz#4cb5f6cd7d4c7ab0365738c7aea888baa6d7efd9" + integrity sha512-Hs59xBNfUIunMFgWAbGX5cq6893IbWg4KnrjbYwX3tx0ztorVgTDA6B2sxf8ejHJ4wz8BqGUMYlnzNBer5NvGg== + +inherits@2.0.3: + version "2.0.3" + resolved "https://registry.yarnpkg.com/inherits/-/inherits-2.0.3.tgz#633c2c83e3da42a502f52466022480f4208261de" + integrity sha512-x00IRNXNy63jwGkJmzPigoySHbaqpNuzKbBOmzK+g2OdZpQ9w+sxCN+VSB3ja7IAge2OP2qpfxTjeNcyjmW1uw== + +inherits@2.0.4, inherits@^2.0.1, inherits@^2.0.3, inherits@~2.0.3: + version "2.0.4" + resolved "https://registry.yarnpkg.com/inherits/-/inherits-2.0.4.tgz#0fa2c64f932917c3433a0ded55363aae37416b7c" + integrity sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ== + +ipaddr.js@1.9.1: + version "1.9.1" + resolved "https://registry.yarnpkg.com/ipaddr.js/-/ipaddr.js-1.9.1.tgz#bff38543eeb8984825079ff3a2a8e6cbd46781b3" + integrity sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g== + +ipaddr.js@^2.1.0: + version "2.2.0" + resolved "https://registry.yarnpkg.com/ipaddr.js/-/ipaddr.js-2.2.0.tgz#d33fa7bac284f4de7af949638c9d68157c6b92e8" + integrity sha512-Ag3wB2o37wslZS19hZqorUnrnzSkpOVy+IiiDEiTqNubEYpYuHWIf6K4psgN2ZWKExS4xhVCrRVfb/wfW8fWJA== + +is-binary-path@~2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/is-binary-path/-/is-binary-path-2.1.0.tgz#ea1f7f3b80f064236e83470f86c09c254fb45b09" + integrity sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw== + dependencies: + binary-extensions "^2.0.0" + +is-docker@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/is-docker/-/is-docker-3.0.0.tgz#90093aa3106277d8a77a5910dbae71747e15a200" + integrity sha512-eljcgEDlEns/7AXFosB5K/2nCM4P7FQPkGc/DWLy5rmFEWvZayGrik1d9/QIY5nJ4f9YsVvBkA6kJpHn9rISdQ== + +is-extglob@^2.1.1: + version "2.1.1" + resolved "https://registry.yarnpkg.com/is-extglob/-/is-extglob-2.1.1.tgz#a88c02535791f02ed37c76a1b9ea9773c833f8c2" + integrity sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ== + +is-glob@^4.0.1, is-glob@~4.0.1: + version "4.0.3" + resolved "https://registry.yarnpkg.com/is-glob/-/is-glob-4.0.3.tgz#64f61e42cbbb2eec2071a9dac0b28ba1e65d5084" + integrity sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg== + dependencies: + is-extglob "^2.1.1" + +is-inside-container@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/is-inside-container/-/is-inside-container-1.0.0.tgz#e81fba699662eb31dbdaf26766a61d4814717ea4" + integrity sha512-KIYLCCJghfHZxqjYBE7rEy0OBuTd5xCHS7tHVgvCLkx7StIoaxwNW3hCALgEUjFfeRk+MG/Qxmp/vtETEF3tRA== + dependencies: + is-docker "^3.0.0" + +is-network-error@^1.0.0: + version "1.3.0" + resolved "https://registry.yarnpkg.com/is-network-error/-/is-network-error-1.3.0.tgz#2ce62cbca444abd506f8a900f39d20b898d37512" + integrity sha512-6oIwpsgRfnDiyEDLMay/GqCl3HoAtH5+RUKW29gYkL0QA+ipzpDLA16yQs7/RHCSu+BwgbJaOUqa4A99qNVQVw== + +is-number@^7.0.0: + version "7.0.0" + resolved "https://registry.yarnpkg.com/is-number/-/is-number-7.0.0.tgz#7535345b896734d5f80c4d06c50955527a14f12b" + integrity sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng== + +is-plain-obj@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/is-plain-obj/-/is-plain-obj-3.0.0.tgz#af6f2ea14ac5a646183a5bbdb5baabbc156ad9d7" + integrity sha512-gwsOE28k+23GP1B6vFl1oVh/WOzmawBrKwo5Ev6wMKzPkaXaCDIQKzLnvsA42DRlbVTWorkgTKIviAKCWkfUwA== + +is-wsl@^3.1.0: + version "3.1.0" + resolved "https://registry.yarnpkg.com/is-wsl/-/is-wsl-3.1.0.tgz#e1c657e39c10090afcbedec61720f6b924c3cbd2" + integrity sha512-UcVfVfaK4Sc4m7X3dUSoHoozQGBEFeDC+zVo06t98xe8CzHSZZBekNXH+tu0NalHolcJ/QAGqS46Hef7QXBIMw== + dependencies: + is-inside-container "^1.0.0" + +isarray@~1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/isarray/-/isarray-1.0.0.tgz#bb935d48582cba168c06834957a54a3e07124f11" + integrity sha512-VLghIWNM6ELQzo7zwmcg0NmTVyWKYjvIeM83yjp0wRDTmUnrM678fQbcKBo6n2CJEF0szoG//ytg+TKla89ALQ== + +istanbul-lib-coverage@^3.2.2: + version "3.2.2" + resolved "https://registry.yarnpkg.com/istanbul-lib-coverage/-/istanbul-lib-coverage-3.2.2.tgz#2d166c4b0644d43a39f04bf6c2edd1e585f31756" + integrity sha512-O8dpsF+r0WV/8MNRKfnmrtCWhuKjxrq2w+jpzBL5UZKTi2LeVWnWOmWRxFlesJONmc+wLAGvKQZEOanko0LFTg== + +jest-docblock@^29.7.0: + version "29.7.0" + resolved "https://registry.yarnpkg.com/jest-docblock/-/jest-docblock-29.7.0.tgz#8fddb6adc3cdc955c93e2a87f61cfd350d5d119a" + integrity sha512-q617Auw3A612guyaFgsbFeYpNP5t2aoUNLwBUbc/0kD1R4t9ixDbyFTHd1nok4epoVFpr7PmeWHrhvuV3XaJ4g== + dependencies: + detect-newline "^3.0.0" + +jsep@^1.4.0: + version "1.4.0" + resolved "https://registry.yarnpkg.com/jsep/-/jsep-1.4.0.tgz#19feccbfa51d8a79f72480b4b8e40ce2e17152f0" + integrity sha512-B7qPcEVE3NVkmSJbaYxvv4cHkVW7DQsZz13pUMrfS8z8Q/BuShN+gcTXrUlPiGqM2/t/EEaI030bpxMqY8gMlw== + +json-schema-traverse@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz#ae7bcb3656ab77a73ba5c49bf654f38e6b6860e2" + integrity sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug== + +jsonpath-plus@^10.3.0: + version "10.3.0" + resolved "https://registry.yarnpkg.com/jsonpath-plus/-/jsonpath-plus-10.3.0.tgz#59e22e4fa2298c68dfcd70659bb47f0cad525238" + integrity sha512-8TNmfeTCk2Le33A3vRRwtuworG/L5RrgMvdjhKZxvyShO+mBu2fP50OWUjRLNtvw344DdDarFh9buFAZs5ujeA== + dependencies: + "@jsep-plugin/assignment" "^1.3.0" + "@jsep-plugin/regex" "^1.0.4" + jsep "^1.4.0" + +launch-editor@^2.6.1: + version "2.12.0" + resolved "https://registry.yarnpkg.com/launch-editor/-/launch-editor-2.12.0.tgz#cc740f4e0263a6b62ead2485f9896e545321f817" + integrity sha512-giOHXoOtifjdHqUamwKq6c49GzBdLjvxrd2D+Q4V6uOHopJv7p9VJxikDsQ/CBXZbEITgUqSVHXLTG3VhPP1Dg== + dependencies: + picocolors "^1.1.1" + shell-quote "^1.8.3" + +limiter@^1.1.5: + version "1.1.5" + resolved "https://registry.yarnpkg.com/limiter/-/limiter-1.1.5.tgz#8f92a25b3b16c6131293a0cc834b4a838a2aa7c2" + integrity sha512-FWWMIEOxz3GwUI4Ts/IvgVy6LPvoMPgjMdQ185nN6psJyBJ4yOpzqm695/h5umdLJg2vW3GR5iG11MAkR2AzJA== + +lodash.sortby@^4.7.0: + version "4.7.0" + resolved "https://registry.yarnpkg.com/lodash.sortby/-/lodash.sortby-4.7.0.tgz#edd14c824e2cc9c1e0b0a1b42bb5210516a42438" + integrity sha512-HDWXG8isMntAyRF5vZ7xKuEvOhT4AhlRt/3czTSjvGUxjYCBVRQY48ViDHyfYz9VIoBkW4TMGQNapx+l3RUwdA== + +long@^5.0.0: + version "5.3.2" + resolved "https://registry.yarnpkg.com/long/-/long-5.3.2.tgz#1d84463095999262d7d7b7f8bfd4a8cc55167f83" + integrity sha512-mNAgZ1GmyNhD7AuqnTG3/VQ26o760+ZYBPKjPvugO8+nLbYfX6TVpJPseBvopbdY+qpZ/lKUnmEc1LeZYS3QAA== + +lru-cache@^10.4.3: + version "10.4.3" + resolved "https://registry.yarnpkg.com/lru-cache/-/lru-cache-10.4.3.tgz#410fc8a17b70e598013df257c2446b7f3383f119" + integrity sha512-JNAzZcXrCt42VGLuYz0zfAzDfAvJWW6AfYlDBQyDV5DClI2m5sAmK+OIO7s59XfsRsWHp02jAJrRadPRGTt6SQ== + +math-intrinsics@^1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/math-intrinsics/-/math-intrinsics-1.1.0.tgz#a0dd74be81e2aa5c2f27e65ce283605ee4e2b7f9" + integrity sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g== + +media-typer@0.3.0: + version "0.3.0" + resolved "https://registry.yarnpkg.com/media-typer/-/media-typer-0.3.0.tgz#8710d7af0aa626f8fffa1ce00168545263255748" + integrity sha512-dq+qelQ9akHpcOl/gUVRTxVIOkAJ1wR3QAvb4RsVjS8oVoFjDGTc679wJYmUmknUF5HwMLOgb5O+a3KxfWapPQ== + +memfs@^4.43.1: + version "4.51.0" + resolved "https://registry.yarnpkg.com/memfs/-/memfs-4.51.0.tgz#f33b5eff5e2faa01bfacc02aacf23ec7d8c84c94" + integrity sha512-4zngfkVM/GpIhC8YazOsM6E8hoB33NP0BCESPOA6z7qaL6umPJNqkO8CNYaLV2FB2MV6H1O3x2luHHOSqppv+A== + dependencies: + "@jsonjoy.com/json-pack" "^1.11.0" + "@jsonjoy.com/util" "^1.9.0" + glob-to-regex.js "^1.0.1" + thingies "^2.5.0" + tree-dump "^1.0.3" + tslib "^2.0.0" + +merge-descriptors@1.0.3: + version "1.0.3" + resolved "https://registry.yarnpkg.com/merge-descriptors/-/merge-descriptors-1.0.3.tgz#d80319a65f3c7935351e5cfdac8f9318504dbed5" + integrity sha512-gaNvAS7TZ897/rVaZ0nMtAyxNyi/pdbjbAwUpFQpN70GqnVfOiXpeUUMKRBmzXaSQ8DdTX4/0ms62r2K+hE6mQ== + +methods@~1.1.2: + version "1.1.2" + resolved "https://registry.yarnpkg.com/methods/-/methods-1.1.2.tgz#5529a4d67654134edcc5266656835b0f851afcee" + integrity sha512-iclAHeNqNm68zFtnZ0e+1L2yUIdvzNoauKU4WBA3VvH/vPFieF7qfRlwUZU+DA9P9bPXIS90ulxoUoCH23sV2w== + +micromatch@^4.0.2: + version "4.0.8" + resolved "https://registry.yarnpkg.com/micromatch/-/micromatch-4.0.8.tgz#d66fa18f3a47076789320b9b1af32bd86d9fa202" + integrity sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA== + dependencies: + braces "^3.0.3" + picomatch "^2.3.1" + +mime-db@1.52.0: + version "1.52.0" + resolved "https://registry.yarnpkg.com/mime-db/-/mime-db-1.52.0.tgz#bbabcdc02859f4987301c856e3387ce5ec43bf70" + integrity sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg== + +"mime-db@>= 1.43.0 < 2", mime-db@^1.54.0: + version "1.54.0" + resolved "https://registry.yarnpkg.com/mime-db/-/mime-db-1.54.0.tgz#cddb3ee4f9c64530dff640236661d42cb6a314f5" + integrity sha512-aU5EJuIN2WDemCcAp2vFBfp/m4EAhWJnUNSSw0ixs7/kXbd6Pg64EmwJkNdFhB8aWt1sH2CTXrLxo/iAGV3oPQ== + +mime-types@^3.0.1: + version "3.0.2" + resolved "https://registry.yarnpkg.com/mime-types/-/mime-types-3.0.2.tgz#39002d4182575d5af036ffa118100f2524b2e2ab" + integrity sha512-Lbgzdk0h4juoQ9fCKXW4by0UJqj+nOOrI9MJ1sSj4nI8aI2eo1qmvQEie4VD1glsS250n15LsWsYtCugiStS5A== + dependencies: + mime-db "^1.54.0" + +mime-types@~2.1.17, mime-types@~2.1.24, mime-types@~2.1.34: + version "2.1.35" + resolved "https://registry.yarnpkg.com/mime-types/-/mime-types-2.1.35.tgz#381a871b62a734450660ae3deee44813f70d959a" + integrity sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw== + dependencies: + mime-db "1.52.0" + +mime@1.6.0: + version "1.6.0" + resolved "https://registry.yarnpkg.com/mime/-/mime-1.6.0.tgz#32cd9e5c64553bd58d19a568af452acff04981b1" + integrity sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg== + +minimalistic-assert@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/minimalistic-assert/-/minimalistic-assert-1.0.1.tgz#2e194de044626d4a10e7f7fbc00ce73e83e4d5c7" + integrity sha512-UtJcAD4yEaGtjPezWuO9wC4nwUnVH/8/Im3yEHQP4b67cXlD/Qr9hdITCU1xDbSEXg2XKNaP8jsReV7vQd00/A== + +module-details-from-path@^1.0.4: + version "1.0.4" + resolved "https://registry.yarnpkg.com/module-details-from-path/-/module-details-from-path-1.0.4.tgz#b662fdcd93f6c83d3f25289da0ce81c8d9685b94" + integrity sha512-EGWKgxALGMgzvxYF1UyGTy0HXX/2vHLkw6+NvDKW2jypWbHpjQuj4UMcqQWXHERJhVGKikolT06G3bcKe4fi7w== + +mrmime@^2.0.0: + version "2.0.1" + resolved "https://registry.yarnpkg.com/mrmime/-/mrmime-2.0.1.tgz#bc3e87f7987853a54c9850eeb1f1078cd44adddc" + integrity sha512-Y3wQdFg2Va6etvQ5I82yUhGdsKrcYox6p7FfL1LbK2J4V01F9TGlepTIhnK24t7koZibmg82KGglhA1XK5IsLQ== + +ms@2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/ms/-/ms-2.0.0.tgz#5608aeadfc00be6c2901df5f9861788de0d597c8" + integrity sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A== + +ms@2.1.3, ms@^2.1.3: + version "2.1.3" + resolved "https://registry.yarnpkg.com/ms/-/ms-2.1.3.tgz#574c8138ce1d2b5861f0b44579dbadd60c6615b2" + integrity sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA== + +multicast-dns@^7.2.5: + version "7.2.5" + resolved "https://registry.yarnpkg.com/multicast-dns/-/multicast-dns-7.2.5.tgz#77eb46057f4d7adbd16d9290fa7299f6fa64cced" + integrity sha512-2eznPJP8z2BFLX50tf0LuODrpINqP1RVIm/CObbTcBRITQgmC/TjcREF1NeTBzIcR5XO/ukWo+YHOjBbFwIupg== + dependencies: + dns-packet "^5.2.2" + thunky "^1.0.2" + +mutexify@^1.4.0: + version "1.4.0" + resolved "https://registry.yarnpkg.com/mutexify/-/mutexify-1.4.0.tgz#b7f4ac0273c81824b840887c6a6e0bfab14bbe94" + integrity sha512-pbYSsOrSB/AKN5h/WzzLRMFgZhClWccf2XIB4RSMC8JbquiB0e0/SH5AIfdQMdyHmYtv4seU7yV/TvAwPLJ1Yg== + dependencies: + queue-tick "^1.0.0" + +negotiator@0.6.3: + version "0.6.3" + resolved "https://registry.yarnpkg.com/negotiator/-/negotiator-0.6.3.tgz#58e323a72fedc0d6f9cd4d31fe49f51479590ccd" + integrity sha512-+EUsqGPLsM+j/zdChZjsnX51g4XrHFOIXwfnCVPGlQk/k5giakcKsuxCObBRu6DSm9opw/O6slWbJdghQM4bBg== + +negotiator@~0.6.4: + version "0.6.4" + resolved "https://registry.yarnpkg.com/negotiator/-/negotiator-0.6.4.tgz#777948e2452651c570b712dd01c23e262713fff7" + integrity sha512-myRT3DiWPHqho5PrJaIRyaMv2kgYf0mUVgBNOYMuCH5Ki1yEiQaf/ZJuQ62nvpc44wL5WDbTX7yGJi1Neevw8w== + +node-forge@^1: + version "1.3.1" + resolved "https://registry.yarnpkg.com/node-forge/-/node-forge-1.3.1.tgz#be8da2af243b2417d5f646a770663a92b7e9ded3" + integrity sha512-dPEtOeMvF9VMcYV/1Wb8CPoVAXtp6MKMlcbAt4ddqmGqUJ6fQZFXkNZNkNlfevtNkGtaSoXf/vNNNSvgrdXwtA== + +normalize-path@^3.0.0, normalize-path@~3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/normalize-path/-/normalize-path-3.0.0.tgz#0dcd69ff23a1c9b11fd0978316644a0388216a65" + integrity sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA== + +object-inspect@^1.13.3: + version "1.13.4" + resolved "https://registry.yarnpkg.com/object-inspect/-/object-inspect-1.13.4.tgz#8375265e21bc20d0fa582c22e1b13485d6e00213" + integrity sha512-W67iLl4J2EXEGTbfeHCffrjDfitvLANg0UlX3wFUUSTx92KXRFegMHUVgSqE+wvhAbi4WqjGg9czysTV2Epbew== + +obuf@^1.0.0, obuf@^1.1.2: + version "1.1.2" + resolved "https://registry.yarnpkg.com/obuf/-/obuf-1.1.2.tgz#09bea3343d41859ebd446292d11c9d4db619084e" + integrity sha512-PX1wu0AmAdPqOL1mWhqmlOd8kOIZQwGZw6rh7uby9fTc5lhaOWFLX3I6R1hrF9k3zUY40e6igsLGkDXK92LJNg== + +on-finished@2.4.1, on-finished@^2.4.1: + version "2.4.1" + resolved "https://registry.yarnpkg.com/on-finished/-/on-finished-2.4.1.tgz#58c8c44116e54845ad57f14ab10b03533184ac3f" + integrity sha512-oVlzkg3ENAhCk2zdv7IJwd/QUD4z2RxRwpkcGY8psCVcCYZNq4wYnVWALHM+brtuJjePWiYF/ClmuDr8Ch5+kg== + dependencies: + ee-first "1.1.1" + +on-headers@~1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/on-headers/-/on-headers-1.1.0.tgz#59da4f91c45f5f989c6e4bcedc5a3b0aed70ff65" + integrity sha512-737ZY3yNnXy37FHkQxPzt4UZ2UWPWiCZWLvFZ4fu5cueciegX0zGPnrlY6bwRg4FdQOe9YU8MkmJwGhoMybl8A== + +open@^10.0.3: + version "10.2.0" + resolved "https://registry.yarnpkg.com/open/-/open-10.2.0.tgz#b9d855be007620e80b6fb05fac98141fe62db73c" + integrity sha512-YgBpdJHPyQ2UE5x+hlSXcnejzAvD0b22U2OuAP+8OnlJT+PjWPxtgmGqKKc+RgTM63U9gN0YzrYc71R2WT/hTA== + dependencies: + default-browser "^5.2.1" + define-lazy-prop "^3.0.0" + is-inside-container "^1.0.0" + wsl-utils "^0.1.0" + +opener@^1.5.2: + version "1.5.2" + resolved "https://registry.yarnpkg.com/opener/-/opener-1.5.2.tgz#5d37e1f35077b9dcac4301372271afdeb2a13598" + integrity sha512-ur5UIdyw5Y7yEj9wLzhqXiy6GZ3Mwx0yGI+5sMn2r0N0v3cKJvUmFH5yPP+WXh9e0xfyzyJX95D8l088DNFj7A== + +opentracing@>=0.14.7: + version "0.14.7" + resolved "https://registry.yarnpkg.com/opentracing/-/opentracing-0.14.7.tgz#25d472bd0296dc0b64d7b94cbc995219031428f5" + integrity sha512-vz9iS7MJ5+Bp1URw8Khvdyw1H/hGvzHWlKQ7eRrQojSCDL1/SrWfrY9QebLw97n2deyRtzHRC3MkQfVNUCo91Q== + +p-retry@^6.2.0: + version "6.2.1" + resolved "https://registry.yarnpkg.com/p-retry/-/p-retry-6.2.1.tgz#81828f8dc61c6ef5a800585491572cc9892703af" + integrity sha512-hEt02O4hUct5wtwg4H4KcWgDdm+l1bOaEy/hWzd8xtXB9BqxTWBBhb+2ImAtH4Cv4rPjV76xN3Zumqk3k3AhhQ== + dependencies: + "@types/retry" "0.12.2" + is-network-error "^1.0.0" + retry "^0.13.1" + +parseurl@~1.3.2, parseurl@~1.3.3: + version "1.3.3" + resolved "https://registry.yarnpkg.com/parseurl/-/parseurl-1.3.3.tgz#9da19e7bee8d12dff0513ed5b76957793bc2e8d4" + integrity sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ== + +path-to-regexp@0.1.12, path-to-regexp@^0.1.12: + version "0.1.12" + resolved "https://registry.yarnpkg.com/path-to-regexp/-/path-to-regexp-0.1.12.tgz#d5e1a12e478a976d432ef3c58d534b9923164bb7" + integrity sha512-RA1GjUVMnvYFxuqovrEqZoxxW5NUZqbwKtYz/Tt7nXerk0LbLblQmrsgdeOxV5SFHf0UDggjS/bSeOZwt1pmEQ== + +picocolors@^1.0.0, picocolors@^1.1.1: + version "1.1.1" + resolved "https://registry.yarnpkg.com/picocolors/-/picocolors-1.1.1.tgz#3d321af3eab939b083c8f929a1d12cda81c26b6b" + integrity sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA== + +picomatch@^2.0.4, picomatch@^2.2.1, picomatch@^2.3.1: + version "2.3.1" + resolved "https://registry.yarnpkg.com/picomatch/-/picomatch-2.3.1.tgz#3ba3833733646d9d3e4995946c1365a67fb07a42" + integrity sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA== + +pprof-format@^2.1.1: + version "2.2.1" + resolved "https://registry.yarnpkg.com/pprof-format/-/pprof-format-2.2.1.tgz#64d32207fb46990349eb52825defb449d6ccc9b4" + integrity sha512-p4tVN7iK19ccDqQv8heyobzUmbHyds4N2FI6aBMcXz6y99MglTWDxIyhFkNaLeEXs6IFUEzT0zya0icbSLLY0g== + +process-nextick-args@~2.0.0: + version "2.0.1" + resolved "https://registry.yarnpkg.com/process-nextick-args/-/process-nextick-args-2.0.1.tgz#7820d9b16120cc55ca9ae7792680ae7dba6d7fe2" + integrity sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag== + +protobufjs@^7.5.3: + version "7.5.4" + resolved "https://registry.yarnpkg.com/protobufjs/-/protobufjs-7.5.4.tgz#885d31fe9c4b37f25d1bb600da30b1c5b37d286a" + integrity sha512-CvexbZtbov6jW2eXAvLukXjXUW1TzFaivC46BpWc/3BpcCysb5Vffu+B3XHMm8lVEuy2Mm4XGex8hBSg1yapPg== + dependencies: + "@protobufjs/aspromise" "^1.1.2" + "@protobufjs/base64" "^1.1.2" + "@protobufjs/codegen" "^2.0.4" + "@protobufjs/eventemitter" "^1.1.0" + "@protobufjs/fetch" "^1.1.0" + "@protobufjs/float" "^1.0.2" + "@protobufjs/inquire" "^1.1.0" + "@protobufjs/path" "^1.1.2" + "@protobufjs/pool" "^1.1.0" + "@protobufjs/utf8" "^1.1.0" + "@types/node" ">=13.7.0" + long "^5.0.0" + +proxy-addr@~2.0.7: + version "2.0.7" + resolved "https://registry.yarnpkg.com/proxy-addr/-/proxy-addr-2.0.7.tgz#f19fe69ceab311eeb94b42e70e8c2070f9ba1025" + integrity sha512-llQsMLSUDUPT44jdrU/O37qlnifitDP+ZwrmmZcoSKyLKvtZxpyV0n2/bD/N4tBAAZ/gJEdZU7KMraoK1+XYAg== + dependencies: + forwarded "0.2.0" + ipaddr.js "1.9.1" + +qs@6.13.0: + version "6.13.0" + resolved "https://registry.yarnpkg.com/qs/-/qs-6.13.0.tgz#6ca3bd58439f7e245655798997787b0d88a51906" + integrity sha512-+38qI9SOr8tfZ4QmJNplMUxqjbe7LKvvZgWdExBOmd+egZTtjLB67Gu0HRX3u/XOq7UU2Nx6nsjvS16Z9uwfpg== + dependencies: + side-channel "^1.0.6" + +queue-tick@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/queue-tick/-/queue-tick-1.0.1.tgz#f6f07ac82c1fd60f82e098b417a80e52f1f4c142" + integrity sha512-kJt5qhMxoszgU/62PLP1CJytzd2NKetjSRnyuj31fDd3Rlcz3fzlFdFLD1SItunPwyqEOkca6GbV612BWfaBag== + +range-parser@^1.2.1, range-parser@~1.2.1: + version "1.2.1" + resolved "https://registry.yarnpkg.com/range-parser/-/range-parser-1.2.1.tgz#3cf37023d199e1c24d1a55b84800c2f3e6468031" + integrity sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg== + +raw-body@2.5.2: + version "2.5.2" + resolved "https://registry.yarnpkg.com/raw-body/-/raw-body-2.5.2.tgz#99febd83b90e08975087e8f1f9419a149366b68a" + integrity sha512-8zGqypfENjCIqGhgXToC8aB2r7YrBX+AQAfIPs/Mlk+BtPTztOvTS01NRW/3Eh60J+a48lt8qsCzirQ6loCVfA== + dependencies: + bytes "3.1.2" + http-errors "2.0.0" + iconv-lite "0.4.24" + unpipe "1.0.0" + +readable-stream@^2.0.1: + version "2.3.8" + resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-2.3.8.tgz#91125e8042bba1b9887f49345f6277027ce8be9b" + integrity sha512-8p0AUk4XODgIewSi0l8Epjs+EVnWiK7NoDIEGU0HhE7+ZyY8D1IMY7odu5lRrFXGg71L15KG8QrPmum45RTtdA== + dependencies: + core-util-is "~1.0.0" + inherits "~2.0.3" + isarray "~1.0.0" + process-nextick-args "~2.0.0" + safe-buffer "~5.1.1" + string_decoder "~1.1.1" + util-deprecate "~1.0.1" + +readable-stream@^3.0.6: + version "3.6.2" + resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-3.6.2.tgz#56a9b36ea965c00c5a93ef31eb111a0f11056967" + integrity sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA== + dependencies: + inherits "^2.0.3" + string_decoder "^1.1.1" + util-deprecate "^1.0.1" + +readdirp@~3.6.0: + version "3.6.0" + resolved "https://registry.yarnpkg.com/readdirp/-/readdirp-3.6.0.tgz#74a370bd857116e245b29cc97340cd431a02a6c7" + integrity sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA== + dependencies: + picomatch "^2.2.1" + +require-from-string@^2.0.2: + version "2.0.2" + resolved "https://registry.yarnpkg.com/require-from-string/-/require-from-string-2.0.2.tgz#89a7fdd938261267318eafe14f9c32e598c36909" + integrity sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw== + +requires-port@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/requires-port/-/requires-port-1.0.0.tgz#925d2601d39ac485e091cf0da5c6e694dc3dcaff" + integrity sha512-KigOCHcocU3XODJxsu8i/j8T9tzT4adHiecwORRQ0ZZFcp7ahwXuRU1m+yuO90C5ZUyGeGfocHDI14M3L3yDAQ== + +retry@^0.13.1: + version "0.13.1" + resolved "https://registry.yarnpkg.com/retry/-/retry-0.13.1.tgz#185b1587acf67919d63b357349e03537b2484658" + integrity sha512-XQBQ3I8W1Cge0Seh+6gjj03LbmRFWuoszgK9ooCpwYIrhhoO80pfq4cUkU5DkknwfOfFteRwlZ56PYOGYyFWdg== + +rfdc@^1.4.1: + version "1.4.1" + resolved "https://registry.yarnpkg.com/rfdc/-/rfdc-1.4.1.tgz#778f76c4fb731d93414e8f925fbecf64cce7f6ca" + integrity sha512-q1b3N5QkRUWUl7iyylaaj3kOpIT0N2i9MqIEQXP73GVsN9cw3fdx8X63cEmWhJGi2PPCF23Ijp7ktmd39rawIA== + +run-applescript@^7.0.0: + version "7.1.0" + resolved "https://registry.yarnpkg.com/run-applescript/-/run-applescript-7.1.0.tgz#2e9e54c4664ec3106c5b5630e249d3d6595c4911" + integrity sha512-DPe5pVFaAsinSaV6QjQ6gdiedWDcRCbUuiQfQa2wmWV7+xC9bGulGI8+TdRmoFkAPaBXk8CrAbnlY2ISniJ47Q== + +safe-buffer@5.2.1, safe-buffer@>=5.1.0, safe-buffer@~5.2.0: + version "5.2.1" + resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.2.1.tgz#1eaf9fa9bdb1fdd4ec75f58f9cdb4e6b7827eec6" + integrity sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ== + +safe-buffer@~5.1.0, safe-buffer@~5.1.1: + version "5.1.2" + resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.1.2.tgz#991ec69d296e0313747d59bdfd2b745c35f8828d" + integrity sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g== + +"safer-buffer@>= 2.1.2 < 3": + version "2.1.2" + resolved "https://registry.yarnpkg.com/safer-buffer/-/safer-buffer-2.1.2.tgz#44fa161b0187b9549dd84bb91802f9bd8385cd6a" + integrity sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg== + +schema-utils@^4.0.0, schema-utils@^4.2.0: + version "4.3.3" + resolved "https://registry.yarnpkg.com/schema-utils/-/schema-utils-4.3.3.tgz#5b1850912fa31df90716963d45d9121fdfc09f46" + integrity sha512-eflK8wEtyOE6+hsaRVPxvUKYCpRgzLqDTb8krvAsRIwOGlHoSgYLgBXoubGgLd2fT41/OUYdb48v4k4WWHQurA== + dependencies: + "@types/json-schema" "^7.0.9" + ajv "^8.9.0" + ajv-formats "^2.1.1" + ajv-keywords "^5.1.0" + +select-hose@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/select-hose/-/select-hose-2.0.0.tgz#625d8658f865af43ec962bfc376a37359a4994ca" + integrity sha512-mEugaLK+YfkijB4fx0e6kImuJdCIt2LxCRcbEYPqRGCs4F2ogyfZU5IAZRdjCP8JPq2AtdNoC/Dux63d9Kiryg== + +selfsigned@^2.4.1: + version "2.4.1" + resolved "https://registry.yarnpkg.com/selfsigned/-/selfsigned-2.4.1.tgz#560d90565442a3ed35b674034cec4e95dceb4ae0" + integrity sha512-th5B4L2U+eGLq1TVh7zNRGBapioSORUeymIydxgFpwww9d2qyKvtuPU2jJuHvYAwwqi2Y596QBL3eEqcPEYL8Q== + dependencies: + "@types/node-forge" "^1.3.0" + node-forge "^1" + +semifies@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/semifies/-/semifies-1.0.0.tgz#b69569f32c2ba2ac04f705ea82831364289b2ae2" + integrity sha512-xXR3KGeoxTNWPD4aBvL5NUpMTT7WMANr3EWnaS190QVkY52lqqcVRD7Q05UVbBhiWDGWMlJEUam9m7uFFGVScw== + +send@0.19.0: + version "0.19.0" + resolved "https://registry.yarnpkg.com/send/-/send-0.19.0.tgz#bbc5a388c8ea6c048967049dbeac0e4a3f09d7f8" + integrity sha512-dW41u5VfLXu8SJh5bwRmyYUbAoSB3c9uQh6L8h/KtsFREPWpbX1lrljJo186Jc4nmci/sGUZ9a0a0J2zgfq2hw== + dependencies: + debug "2.6.9" + depd "2.0.0" + destroy "1.2.0" + encodeurl "~1.0.2" + escape-html "~1.0.3" + etag "~1.8.1" + fresh "0.5.2" + http-errors "2.0.0" + mime "1.6.0" + ms "2.1.3" + on-finished "2.4.1" + range-parser "~1.2.1" + statuses "2.0.1" + +serve-index@^1.9.1: + version "1.9.1" + resolved "https://registry.yarnpkg.com/serve-index/-/serve-index-1.9.1.tgz#d3768d69b1e7d82e5ce050fff5b453bea12a9239" + integrity sha512-pXHfKNP4qujrtteMrSBb0rc8HJ9Ms/GrXwcUtUtD5s4ewDJI8bT3Cz2zTVRMKtri49pLx2e0Ya8ziP5Ya2pZZw== + dependencies: + accepts "~1.3.4" + batch "0.6.1" + debug "2.6.9" + escape-html "~1.0.3" + http-errors "~1.6.2" + mime-types "~2.1.17" + parseurl "~1.3.2" + +serve-static@1.16.2: + version "1.16.2" + resolved "https://registry.yarnpkg.com/serve-static/-/serve-static-1.16.2.tgz#b6a5343da47f6bdd2673848bf45754941e803296" + integrity sha512-VqpjJZKadQB/PEbEwvFdO43Ax5dFBZ2UECszz8bQ7pi7wt//PWe1P6MN7eCnjsatYtBT6EuiClbjSWP2WrIoTw== + dependencies: + encodeurl "~2.0.0" + escape-html "~1.0.3" + parseurl "~1.3.3" + send "0.19.0" + +setprototypeof@1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/setprototypeof/-/setprototypeof-1.1.0.tgz#d0bd85536887b6fe7c0d818cb962d9d91c54e656" + integrity sha512-BvE/TwpZX4FXExxOxZyRGQQv651MSwmWKZGqvmPcRIjDqWub67kTKuIMx43cZZrS/cBBzwBcNDWoFxt2XEFIpQ== + +setprototypeof@1.2.0: + version "1.2.0" + resolved "https://registry.yarnpkg.com/setprototypeof/-/setprototypeof-1.2.0.tgz#66c9a24a73f9fc28cbe66b09fed3d33dcaf1b424" + integrity sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw== + +shell-quote@^1.8.2, shell-quote@^1.8.3: + version "1.8.3" + resolved "https://registry.yarnpkg.com/shell-quote/-/shell-quote-1.8.3.tgz#55e40ef33cf5c689902353a3d8cd1a6725f08b4b" + integrity sha512-ObmnIF4hXNg1BqhnHmgbDETF8dLPCggZWBjkQfhZpbszZnYur5DUljTcCHii5LC3J5E0yeO/1LIMyH+UvHQgyw== + +side-channel-list@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/side-channel-list/-/side-channel-list-1.0.0.tgz#10cb5984263115d3b7a0e336591e290a830af8ad" + integrity sha512-FCLHtRD/gnpCiCHEiJLOwdmFP+wzCmDEkc9y7NsYxeF4u7Btsn1ZuwgwJGxImImHicJArLP4R0yX4c2KCrMrTA== + dependencies: + es-errors "^1.3.0" + object-inspect "^1.13.3" + +side-channel-map@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/side-channel-map/-/side-channel-map-1.0.1.tgz#d6bb6b37902c6fef5174e5f533fab4c732a26f42" + integrity sha512-VCjCNfgMsby3tTdo02nbjtM/ewra6jPHmpThenkTYh8pG9ucZ/1P8So4u4FGBek/BjpOVsDCMoLA/iuBKIFXRA== + dependencies: + call-bound "^1.0.2" + es-errors "^1.3.0" + get-intrinsic "^1.2.5" + object-inspect "^1.13.3" + +side-channel-weakmap@^1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/side-channel-weakmap/-/side-channel-weakmap-1.0.2.tgz#11dda19d5368e40ce9ec2bdc1fb0ecbc0790ecea" + integrity sha512-WPS/HvHQTYnHisLo9McqBHOJk2FkHO/tlpvldyrnem4aeQp4hai3gythswg6p01oSoTl58rcpiFAjF2br2Ak2A== + dependencies: + call-bound "^1.0.2" + es-errors "^1.3.0" + get-intrinsic "^1.2.5" + object-inspect "^1.13.3" + side-channel-map "^1.0.1" + +side-channel@^1.0.6: + version "1.1.0" + resolved "https://registry.yarnpkg.com/side-channel/-/side-channel-1.1.0.tgz#c3fcff9c4da932784873335ec9765fa94ff66bc9" + integrity sha512-ZX99e6tRweoUXqR+VBrslhda51Nh5MTQwou5tnUDgbtyM0dBgmhEDtWGP/xbKn6hqfPRHujUNwz5fy/wbbhnpw== + dependencies: + es-errors "^1.3.0" + object-inspect "^1.13.3" + side-channel-list "^1.0.0" + side-channel-map "^1.0.1" + side-channel-weakmap "^1.0.2" + +sirv@^2.0.3: + version "2.0.4" + resolved "https://registry.yarnpkg.com/sirv/-/sirv-2.0.4.tgz#5dd9a725c578e34e449f332703eb2a74e46a29b0" + integrity sha512-94Bdh3cC2PKrbgSOUqTiGPWVZeSiXfKOVZNJniWoqrWrRkB1CJzBU3NEbiTsPcYy1lDsANA/THzS+9WBiy5nfQ== + dependencies: + "@polka/url" "^1.0.0-next.24" + mrmime "^2.0.0" + totalist "^3.0.0" + +sockjs@^0.3.24: + version "0.3.24" + resolved "https://registry.yarnpkg.com/sockjs/-/sockjs-0.3.24.tgz#c9bc8995f33a111bea0395ec30aa3206bdb5ccce" + integrity sha512-GJgLTZ7vYb/JtPSSZ10hsOYIvEYsjbNU+zPdIHcUaWVNUEPivzxku31865sSSud0Da0W4lEeOPlmw93zLQchuQ== + dependencies: + faye-websocket "^0.11.3" + uuid "^8.3.2" + websocket-driver "^0.7.4" + +source-map@^0.7.4: + version "0.7.6" + resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.7.6.tgz#a3658ab87e5b6429c8a1f3ba0083d4c61ca3ef02" + integrity sha512-i5uvt8C3ikiWeNZSVZNWcfZPItFQOsYTUAOkcUPGd8DqDy1uOUikjt5dG+uRlwyvR108Fb9DOd4GvXfT0N2/uQ== + +spdy-transport@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/spdy-transport/-/spdy-transport-3.0.0.tgz#00d4863a6400ad75df93361a1608605e5dcdcf31" + integrity sha512-hsLVFE5SjA6TCisWeJXFKniGGOpBgMLmerfO2aCyCU5s7nJ/rpAepqmFifv/GCbSbueEeAJJnmSQ2rKC/g8Fcw== + dependencies: + debug "^4.1.0" + detect-node "^2.0.4" + hpack.js "^2.1.6" + obuf "^1.1.2" + readable-stream "^3.0.6" + wbuf "^1.7.3" + +spdy@^4.0.2: + version "4.0.2" + resolved "https://registry.yarnpkg.com/spdy/-/spdy-4.0.2.tgz#b74f466203a3eda452c02492b91fb9e84a27677b" + integrity sha512-r46gZQZQV+Kl9oItvl1JZZqJKGr+oEkB08A6BzkiR7593/7IbtuncXHd2YoYeTsG4157ZssMu9KYvUHLcjcDoA== + dependencies: + debug "^4.1.0" + handle-thing "^2.0.0" + http-deceiver "^1.2.7" + select-hose "^2.0.0" + spdy-transport "^3.0.0" + +statuses@2.0.1: + version "2.0.1" + resolved "https://registry.yarnpkg.com/statuses/-/statuses-2.0.1.tgz#55cb000ccf1d48728bd23c685a063998cf1a1b63" + integrity sha512-RwNA9Z/7PrK06rYLIzFMlaF+l73iwpzsqRIFgbMLbTcLD6cOao82TaWefPXQvB2fOC4AjuYSEndS7N/mTCbkdQ== + +"statuses@>= 1.4.0 < 2": + version "1.5.0" + resolved "https://registry.yarnpkg.com/statuses/-/statuses-1.5.0.tgz#161c7dac177659fd9811f43771fa99381478628c" + integrity sha512-OpZ3zP+jT1PI7I8nemJX4AKmAX070ZkYPVWV/AaKTJl+tXCTGyVdC1a4SL8RUQYEwk/f34ZX8UTykN68FwrqAA== + +string_decoder@^1.1.1: + version "1.3.0" + resolved "https://registry.yarnpkg.com/string_decoder/-/string_decoder-1.3.0.tgz#42f114594a46cf1a8e30b0a84f56c78c3edac21e" + integrity sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA== + dependencies: + safe-buffer "~5.2.0" + +string_decoder@~1.1.1: + version "1.1.1" + resolved "https://registry.yarnpkg.com/string_decoder/-/string_decoder-1.1.1.tgz#9cf1611ba62685d7030ae9e4ba34149c3af03fc8" + integrity sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg== + dependencies: + safe-buffer "~5.1.0" + +thingies@^2.5.0: + version "2.5.0" + resolved "https://registry.yarnpkg.com/thingies/-/thingies-2.5.0.tgz#5f7b882c933b85989f8466b528a6247a6881e04f" + integrity sha512-s+2Bwztg6PhWUD7XMfeYm5qliDdSiZm7M7n8KjTkIsm3l/2lgVRc2/Gx/v+ZX8lT4FMA+i8aQvhcWylldc+ZNw== + +thunky@^1.0.2: + version "1.1.0" + resolved "https://registry.yarnpkg.com/thunky/-/thunky-1.1.0.tgz#5abaf714a9405db0504732bbccd2cedd9ef9537d" + integrity sha512-eHY7nBftgThBqOyHGVN+l8gF0BucP09fMo0oO/Lb0w1OF80dJv+lDVpXG60WMQvkcxAkNybKsrEIE3ZtKGmPrA== + +tlhunter-sorted-set@^0.1.0: + version "0.1.0" + resolved "https://registry.yarnpkg.com/tlhunter-sorted-set/-/tlhunter-sorted-set-0.1.0.tgz#1c3eae28c0fa4dff97e9501d2e3c204b86406f4b" + integrity sha512-eGYW4bjf1DtrHzUYxYfAcSytpOkA44zsr7G2n3PV7yOUR23vmkGe3LL4R+1jL9OsXtbsFOwe8XtbCrabeaEFnw== + +to-regex-range@^5.0.1: + version "5.0.1" + resolved "https://registry.yarnpkg.com/to-regex-range/-/to-regex-range-5.0.1.tgz#1648c44aae7c8d988a326018ed72f5b4dd0392e4" + integrity sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ== + dependencies: + is-number "^7.0.0" + +toidentifier@1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/toidentifier/-/toidentifier-1.0.1.tgz#3be34321a88a820ed1bd80dfaa33e479fbb8dd35" + integrity sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA== + +totalist@^3.0.0: + version "3.0.1" + resolved "https://registry.yarnpkg.com/totalist/-/totalist-3.0.1.tgz#ba3a3d600c915b1a97872348f79c127475f6acf8" + integrity sha512-sf4i37nQ2LBx4m3wB74y+ubopq6W/dIzXg0FDGjsYnZHVa1Da8FH853wlL2gtUhg+xJXjfk3kUZS3BRoQeoQBQ== + +tree-dump@^1.0.3, tree-dump@^1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/tree-dump/-/tree-dump-1.1.0.tgz#ab29129169dc46004414f5a9d4a3c6e89f13e8a4" + integrity sha512-rMuvhU4MCDbcbnleZTFezWsaZXRFemSqAM+7jPnzUl1fo9w3YEKOxAeui0fz3OI4EU4hf23iyA7uQRVko+UaBA== + +tslib@^2.0.0, tslib@^2.4.0: + version "2.8.1" + resolved "https://registry.yarnpkg.com/tslib/-/tslib-2.8.1.tgz#612efe4ed235d567e8aba5f2a5fab70280ade83f" + integrity sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w== + +ttl-set@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/ttl-set/-/ttl-set-1.0.0.tgz#e7895d946ad9cedfadcf6e3384ea97322a86dd3b" + integrity sha512-2fuHn/UR+8Z9HK49r97+p2Ru1b5Eewg2QqPrU14BVCQ9QoyU3+vLLZk2WEiyZ9sgJh6W8G1cZr9I2NBLywAHrA== + dependencies: + fast-fifo "^1.3.2" + +type-is@~1.6.18: + version "1.6.18" + resolved "https://registry.yarnpkg.com/type-is/-/type-is-1.6.18.tgz#4e552cd05df09467dcbc4ef739de89f2cf37c131" + integrity sha512-TkRKr9sUTxEH8MdfuCSP7VizJyzRNMjj2J2do2Jr3Kym598JVdEksuzPQCnlFPW4ky9Q+iA+ma9BGm06XQBy8g== + dependencies: + media-typer "0.3.0" + mime-types "~2.1.24" + +undici-types@~7.16.0: + version "7.16.0" + resolved "https://registry.yarnpkg.com/undici-types/-/undici-types-7.16.0.tgz#ffccdff36aea4884cbfce9a750a0580224f58a46" + integrity sha512-Zz+aZWSj8LE6zoxD+xrjh4VfkIG8Ya6LvYkZqtUQGJPZjYl53ypCaUwWqo7eI0x66KBGeRo+mlBEkMSeSZ38Nw== + +unpipe@1.0.0, unpipe@~1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/unpipe/-/unpipe-1.0.0.tgz#b2bf4ee8514aae6165b4817829d21b2ef49904ec" + integrity sha512-pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ== + +util-deprecate@^1.0.1, util-deprecate@~1.0.1: + version "1.0.2" + resolved "https://registry.yarnpkg.com/util-deprecate/-/util-deprecate-1.0.2.tgz#450d4dc9fa70de732762fbd2d4a28981419a0ccf" + integrity sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw== + +utils-merge@1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/utils-merge/-/utils-merge-1.0.1.tgz#9f95710f50a267947b2ccc124741c1028427e713" + integrity sha512-pMZTvIkT1d+TFGvDOqodOclx0QWkkgi6Tdoa8gC8ffGAAqz9pzPTZWAybbsHHoED/ztMtkv/VoYTYyShUn81hA== + +uuid@^8.3.2: + version "8.3.2" + resolved "https://registry.yarnpkg.com/uuid/-/uuid-8.3.2.tgz#80d5b5ced271bb9af6c445f21a1a04c606cefbe2" + integrity sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg== + +vary@~1.1.2: + version "1.1.2" + resolved "https://registry.yarnpkg.com/vary/-/vary-1.1.2.tgz#2299f02c6ded30d4a5961b0b9f74524a18f634fc" + integrity sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg== + +wbuf@^1.1.0, wbuf@^1.7.3: + version "1.7.3" + resolved "https://registry.yarnpkg.com/wbuf/-/wbuf-1.7.3.tgz#c1d8d149316d3ea852848895cb6a0bfe887b87df" + integrity sha512-O84QOnr0icsbFGLS0O3bI5FswxzRr8/gHwWkDlQFskhSPryQXvrTMxjxGP4+iWYoauLoBvfDpkrOauZ+0iZpDA== + dependencies: + minimalistic-assert "^1.0.0" + +webpack-bundle-analyzer@4.10.2: + version "4.10.2" + resolved "https://registry.yarnpkg.com/webpack-bundle-analyzer/-/webpack-bundle-analyzer-4.10.2.tgz#633af2862c213730be3dbdf40456db171b60d5bd" + integrity sha512-vJptkMm9pk5si4Bv922ZbKLV8UTT4zib4FPgXMhgzUny0bfDDkLXAVQs3ly3fS4/TN9ROFtb0NFrm04UXFE/Vw== + dependencies: + "@discoveryjs/json-ext" "0.5.7" + acorn "^8.0.4" + acorn-walk "^8.0.0" + commander "^7.2.0" + debounce "^1.2.1" + escape-string-regexp "^4.0.0" + gzip-size "^6.0.0" + html-escaper "^2.0.2" + opener "^1.5.2" + picocolors "^1.0.0" + sirv "^2.0.3" + ws "^7.3.1" + +webpack-dev-middleware@^7.4.2: + version "7.4.5" + resolved "https://registry.yarnpkg.com/webpack-dev-middleware/-/webpack-dev-middleware-7.4.5.tgz#d4e8720aa29cb03bc158084a94edb4594e3b7ac0" + integrity sha512-uxQ6YqGdE4hgDKNf7hUiPXOdtkXvBJXrfEGYSx7P7LC8hnUYGK70X6xQXUvXeNyBDDcsiQXpG2m3G9vxowaEuA== + dependencies: + colorette "^2.0.10" + memfs "^4.43.1" + mime-types "^3.0.1" + on-finished "^2.4.1" + range-parser "^1.2.1" + schema-utils "^4.0.0" + +webpack-dev-server@5.2.2: + version "5.2.2" + resolved "https://registry.yarnpkg.com/webpack-dev-server/-/webpack-dev-server-5.2.2.tgz#96a143d50c58fef0c79107e61df911728d7ceb39" + integrity sha512-QcQ72gh8a+7JO63TAx/6XZf/CWhgMzu5m0QirvPfGvptOusAxG12w2+aua1Jkjr7hzaWDnJ2n6JFeexMHI+Zjg== + dependencies: + "@types/bonjour" "^3.5.13" + "@types/connect-history-api-fallback" "^1.5.4" + "@types/express" "^4.17.21" + "@types/express-serve-static-core" "^4.17.21" + "@types/serve-index" "^1.9.4" + "@types/serve-static" "^1.15.5" + "@types/sockjs" "^0.3.36" + "@types/ws" "^8.5.10" + ansi-html-community "^0.0.8" + bonjour-service "^1.2.1" + chokidar "^3.6.0" + colorette "^2.0.10" + compression "^1.7.4" + connect-history-api-fallback "^2.0.0" + express "^4.21.2" + graceful-fs "^4.2.6" + http-proxy-middleware "^2.0.9" + ipaddr.js "^2.1.0" + launch-editor "^2.6.1" + open "^10.0.3" + p-retry "^6.2.0" + schema-utils "^4.2.0" + selfsigned "^2.4.1" + serve-index "^1.9.1" + sockjs "^0.3.24" + spdy "^4.0.2" + webpack-dev-middleware "^7.4.2" + ws "^8.18.0" + +websocket-driver@>=0.5.1, websocket-driver@^0.7.4: + version "0.7.4" + resolved "https://registry.yarnpkg.com/websocket-driver/-/websocket-driver-0.7.4.tgz#89ad5295bbf64b480abcba31e4953aca706f5760" + integrity sha512-b17KeDIQVjvb0ssuSDF2cYXSg2iztliJ4B9WdsuB6J952qCPKmnVq4DyW5motImXHDC1cBT/1UezrJVsKw5zjg== + dependencies: + http-parser-js ">=0.5.1" + safe-buffer ">=5.1.0" + websocket-extensions ">=0.1.1" + +websocket-extensions@>=0.1.1: + version "0.1.4" + resolved "https://registry.yarnpkg.com/websocket-extensions/-/websocket-extensions-0.1.4.tgz#7f8473bc839dfd87608adb95d7eb075211578a42" + integrity sha512-OqedPIGOfsDlo31UNwYbCFMSaO9m9G/0faIHj5/dZFDMFqPTcx6UwqyOy3COEaEOg/9VsGIpdqn62W5KhoKSpg== + +ws@^7.3.1: + version "7.5.10" + resolved "https://registry.yarnpkg.com/ws/-/ws-7.5.10.tgz#58b5c20dc281633f6c19113f39b349bd8bd558d9" + integrity sha512-+dbF1tHwZpXcbOJdVOkzLDxZP1ailvSxM6ZweXTegylPny803bFhA+vqBYw4s31NSAk4S2Qz+AKXK9a4wkdjcQ== + +ws@^8.18.0: + version "8.18.3" + resolved "https://registry.yarnpkg.com/ws/-/ws-8.18.3.tgz#b56b88abffde62791c639170400c93dcb0c95472" + integrity sha512-PEIGCY5tSlUt50cqyMXfCzX+oOPqN0vuGqWzbcJ2xvnkzkq46oOpz7dQaTDBdfICb4N14+GARUDw2XV2N4tvzg== + +wsl-utils@^0.1.0: + version "0.1.0" + resolved "https://registry.yarnpkg.com/wsl-utils/-/wsl-utils-0.1.0.tgz#8783d4df671d4d50365be2ee4c71917a0557baab" + integrity sha512-h3Fbisa2nKGPxCpm89Hk33lBLsnaGBvctQopaBSOW/uIs6FTe1ATyAnKFJrzVs9vpGdsTe73WF3V4lIsk4Gacw== + dependencies: + is-wsl "^3.1.0" From 9b8a63e13d233d62e82f731479e07bb7e61118f1 Mon Sep 17 00:00:00 2001 From: rochdev Date: Fri, 21 Nov 2025 10:19:07 -0500 Subject: [PATCH 20/95] code cleanup --- .github/workflows/platform.yml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/.github/workflows/platform.yml b/.github/workflows/platform.yml index 912b6fc8127..388028e38d2 100644 --- a/.github/workflows/platform.yml +++ b/.github/workflows/platform.yml @@ -56,7 +56,7 @@ jobs: - uses: ./.github/actions/node/active-lts - uses: ./.github/actions/install - run: mkdir npm bun - - run: npm pack && tar -zxf *.tgz -C npm + - run: FILENAME=$(npm pack) && tar -zxf $FILENAME -C npm - run: ./node_modules/.bin/bun pm pack --gzip-level 0 --filename bun.tgz && tar -zxf bun.tgz -C bun - run: diff -r npm bun @@ -432,8 +432,6 @@ jobs: matrix: version: [14.0.0, 14, 16.0.0, 18.0.0, 20.0.0, 22.0.0, 24.0.0] runs-on: ubuntu-latest - env: - NOVENDOR: 'true' steps: - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 - uses: ./.github/actions/node @@ -456,7 +454,6 @@ jobs: runs-on: ubuntu-latest env: DD_TRACE_DEBUG: 'true' # This exercises more of the guardrails code - NOVENDOR: 'true' steps: - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 - uses: ./.github/actions/node From 00bbe7e87c4b468da896e7609a12b9b3fb32ceb1 Mon Sep 17 00:00:00 2001 From: rochdev Date: Fri, 21 Nov 2025 10:23:28 -0500 Subject: [PATCH 21/95] code cleanup --- packages/dd-trace/src/loader-hook.mjs | 52 --------------------------- 1 file changed, 52 deletions(-) delete mode 100644 packages/dd-trace/src/loader-hook.mjs diff --git a/packages/dd-trace/src/loader-hook.mjs b/packages/dd-trace/src/loader-hook.mjs deleted file mode 100644 index 1ad3206c752..00000000000 --- a/packages/dd-trace/src/loader-hook.mjs +++ /dev/null @@ -1,52 +0,0 @@ -import regexpEscape from 'escape-string-regexp' -import * as iitm from 'import-in-the-middle/hook.mjs' -import hooks from './packages/datadog-instrumentations/src/helpers/hooks.js' -import configHelper from './packages/dd-trace/src/config-helper.js' - -// For some reason `getEnvironmentVariable` is not otherwise available to ESM. -const env = configHelper.getEnvironmentVariable - -function initialize (data = {}) { - data.include ??= [] - data.exclude ??= [] - - addInstrumentations(data) - addSecurityControls(data) - addExclusions(data) - - return iitm.initialize(data) -} - -function addInstrumentations (data) { - const instrumentations = Object.keys(hooks) - - for (const moduleName of instrumentations) { - data.include.push(new RegExp(`node_modules/${moduleName}/(?!node_modules).+`), moduleName) - } -} - -function addSecurityControls (data) { - const securityControls = (env('DD_IAST_SECURITY_CONTROLS_CONFIGURATION') || '') - .split(';') - .map(sc => sc.trim().split(':')[2]) - .filter(Boolean) - .map(sc => sc.trim()) - - for (const subpath of securityControls) { - data.include.push(new RegExp(regexpEscape(subpath))) - } -} - -function addExclusions (data) { - data.exclude.push( - /middle/, - /langsmith/, - /openai\/_shims/, - /openai\/resources\/chat\/completions\/messages/, - /openai\/agents-core\/dist\/shims/, - /@anthropic-ai\/sdk\/_shims/ - ) -} - -export { initialize } -export { load, getFormat, resolve, getSource } from 'import-in-the-middle/hook.mjs' From e82fcd34942ba9c9f3d474d6526f20dc56f98520 Mon Sep 17 00:00:00 2001 From: rochdev Date: Fri, 21 Nov 2025 10:35:36 -0500 Subject: [PATCH 22/95] move datadog openfeature to vendor --- package.json | 1 - .../@datadog/openfeature-node-server.js | 1 + vendor/package.json | 1 + vendor/yarn.lock | 25 +++++++++++++++++++ 4 files changed, 27 insertions(+), 1 deletion(-) create mode 100644 packages/node_modules/@datadog/openfeature-node-server.js diff --git a/package.json b/package.json index c88453af7f3..48f02579ca1 100644 --- a/package.json +++ b/package.json @@ -127,7 +127,6 @@ "@datadog/native-appsec": "10.3.0", "@datadog/native-iast-taint-tracking": "4.1.0", "@datadog/native-metrics": "3.1.1", - "@datadog/openfeature-node-server": "^0.2.0", "@datadog/pprof": "5.12.0", "@datadog/wasm-js-rewriter": "5.0.1", "dc-polyfill": "^0.1.10", diff --git a/packages/node_modules/@datadog/openfeature-node-server.js b/packages/node_modules/@datadog/openfeature-node-server.js new file mode 100644 index 00000000000..fe5cac688f3 --- /dev/null +++ b/packages/node_modules/@datadog/openfeature-node-server.js @@ -0,0 +1 @@ +(()=>{var e={5735:function(e){e.exports=function(e){"use strict";var t=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"];function r(e,t){var r=e[0],n=e[1],i=e[2],o=e[3];r+=(n&i|~n&o)+t[0]-0x28955b88|0,o+=((r=(r<<7|r>>>25)+n|0)&n|~r&i)+t[1]-0x173848aa|0,i+=((o=(o<<12|o>>>20)+r|0)&r|~o&n)+t[2]+0x242070db|0,n+=((i=(i<<17|i>>>15)+o|0)&o|~i&r)+t[3]-0x3e423112|0,r+=((n=(n<<22|n>>>10)+i|0)&i|~n&o)+t[4]-0xa83f051|0,o+=((r=(r<<7|r>>>25)+n|0)&n|~r&i)+t[5]+0x4787c62a|0,i+=((o=(o<<12|o>>>20)+r|0)&r|~o&n)+t[6]-0x57cfb9ed|0,n+=((i=(i<<17|i>>>15)+o|0)&o|~i&r)+t[7]-0x2b96aff|0,r+=((n=(n<<22|n>>>10)+i|0)&i|~n&o)+t[8]+0x698098d8|0,o+=((r=(r<<7|r>>>25)+n|0)&n|~r&i)+t[9]-0x74bb0851|0,i+=((o=(o<<12|o>>>20)+r|0)&r|~o&n)+t[10]-42063|0,n+=((i=(i<<17|i>>>15)+o|0)&o|~i&r)+t[11]-0x76a32842|0,r+=((n=(n<<22|n>>>10)+i|0)&i|~n&o)+t[12]+0x6b901122|0,o+=((r=(r<<7|r>>>25)+n|0)&n|~r&i)+t[13]-0x2678e6d|0,i+=((o=(o<<12|o>>>20)+r|0)&r|~o&n)+t[14]-0x5986bc72|0,n+=((i=(i<<17|i>>>15)+o|0)&o|~i&r)+t[15]+0x49b40821|0,r+=((n=(n<<22|n>>>10)+i|0)&o|i&~o)+t[1]-0x9e1da9e|0,o+=((r=(r<<5|r>>>27)+n|0)&i|n&~i)+t[6]-0x3fbf4cc0|0,i+=((o=(o<<9|o>>>23)+r|0)&n|r&~n)+t[11]+0x265e5a51|0,n+=((i=(i<<14|i>>>18)+o|0)&r|o&~r)+t[0]-0x16493856|0,r+=((n=(n<<20|n>>>12)+i|0)&o|i&~o)+t[5]-0x29d0efa3|0,o+=((r=(r<<5|r>>>27)+n|0)&i|n&~i)+t[10]+0x2441453|0,i+=((o=(o<<9|o>>>23)+r|0)&n|r&~n)+t[15]-0x275e197f|0,n+=((i=(i<<14|i>>>18)+o|0)&r|o&~r)+t[4]-0x182c0438|0,r+=((n=(n<<20|n>>>12)+i|0)&o|i&~o)+t[9]+0x21e1cde6|0,o+=((r=(r<<5|r>>>27)+n|0)&i|n&~i)+t[14]-0x3cc8f82a|0,i+=((o=(o<<9|o>>>23)+r|0)&n|r&~n)+t[3]-0xb2af279|0,n+=((i=(i<<14|i>>>18)+o|0)&r|o&~r)+t[8]+0x455a14ed|0,r+=((n=(n<<20|n>>>12)+i|0)&o|i&~o)+t[13]-0x561c16fb|0,o+=((r=(r<<5|r>>>27)+n|0)&i|n&~i)+t[2]-0x3105c08|0,i+=((o=(o<<9|o>>>23)+r|0)&n|r&~n)+t[7]+0x676f02d9|0,n+=((i=(i<<14|i>>>18)+o|0)&r|o&~r)+t[12]-0x72d5b376|0,r+=((n=(n<<20|n>>>12)+i|0)^i^o)+t[5]-378558|0,o+=((r=(r<<4|r>>>28)+n|0)^n^i)+t[8]-0x788e097f|0,i+=((o=(o<<11|o>>>21)+r|0)^r^n)+t[11]+0x6d9d6122|0,n+=((i=(i<<16|i>>>16)+o|0)^o^r)+t[14]-0x21ac7f4|0,r+=((n=(n<<23|n>>>9)+i|0)^i^o)+t[1]-0x5b4115bc|0,o+=((r=(r<<4|r>>>28)+n|0)^n^i)+t[4]+0x4bdecfa9|0,i+=((o=(o<<11|o>>>21)+r|0)^r^n)+t[7]-0x944b4a0|0,n+=((i=(i<<16|i>>>16)+o|0)^o^r)+t[10]-0x41404390|0,r+=((n=(n<<23|n>>>9)+i|0)^i^o)+t[13]+0x289b7ec6|0,o+=((r=(r<<4|r>>>28)+n|0)^n^i)+t[0]-0x155ed806|0,i+=((o=(o<<11|o>>>21)+r|0)^r^n)+t[3]-0x2b10cf7b|0,n+=((i=(i<<16|i>>>16)+o|0)^o^r)+t[6]+0x4881d05|0,r+=((n=(n<<23|n>>>9)+i|0)^i^o)+t[9]-0x262b2fc7|0,o+=((r=(r<<4|r>>>28)+n|0)^n^i)+t[12]-0x1924661b|0,i+=((o=(o<<11|o>>>21)+r|0)^r^n)+t[15]+0x1fa27cf8|0,n+=((i=(i<<16|i>>>16)+o|0)^o^r)+t[2]-0x3b53a99b|0,n=(n<<23|n>>>9)+i|0,r+=(i^(n|~o))+t[0]-0xbd6ddbc|0,r=(r<<6|r>>>26)+n|0,o+=(n^(r|~i))+t[7]+0x432aff97|0,o=(o<<10|o>>>22)+r|0,i+=(r^(o|~n))+t[14]-0x546bdc59|0,i=(i<<15|i>>>17)+o|0,n+=(o^(i|~r))+t[5]-0x36c5fc7|0,n=(n<<21|n>>>11)+i|0,r+=(i^(n|~o))+t[12]+0x655b59c3|0,r=(r<<6|r>>>26)+n|0,o+=(n^(r|~i))+t[3]-0x70f3336e|0,o=(o<<10|o>>>22)+r|0,i+=(r^(o|~n))+t[10]-1051523|0,i=(i<<15|i>>>17)+o|0,n+=(o^(i|~r))+t[1]-0x7a7ba22f|0,n=(n<<21|n>>>11)+i|0,r+=(i^(n|~o))+t[8]+0x6fa87e4f|0,r=(r<<6|r>>>26)+n|0,o+=(n^(r|~i))+t[15]-0x1d31920|0,o=(o<<10|o>>>22)+r|0,i+=(r^(o|~n))+t[6]-0x5cfebcec|0,i=(i<<15|i>>>17)+o|0,n+=(o^(i|~r))+t[13]+0x4e0811a1|0,n=(n<<21|n>>>11)+i|0,r+=(i^(n|~o))+t[4]-0x8ac817e|0,r=(r<<6|r>>>26)+n|0,o+=(n^(r|~i))+t[11]-0x42c50dcb|0,o=(o<<10|o>>>22)+r|0,i+=(r^(o|~n))+t[2]+0x2ad7d2bb|0,i=(i<<15|i>>>17)+o|0,n+=(o^(i|~r))+t[9]-0x14792c6f|0,n=(n<<21|n>>>11)+i|0,e[0]=r+e[0]|0,e[1]=n+e[1]|0,e[2]=i+e[2]|0,e[3]=o+e[3]|0}function n(e){var t,r=[];for(t=0;t<64;t+=4)r[t>>2]=e.charCodeAt(t)+(e.charCodeAt(t+1)<<8)+(e.charCodeAt(t+2)<<16)+(e.charCodeAt(t+3)<<24);return r}function i(e){var t,r=[];for(t=0;t<64;t+=4)r[t>>2]=e[t]+(e[t+1]<<8)+(e[t+2]<<16)+(e[t+3]<<24);return r}function o(e){var t,i,o,s,a,l,u=e.length,h=[0x67452301,-0x10325477,-0x67452302,0x10325476];for(t=64;t<=u;t+=64)r(h,n(e.substring(t-64,t)));for(i=(e=e.substring(t-64)).length,o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],t=0;t>2]|=e.charCodeAt(t)<<(t%4<<3);if(o[t>>2]|=128<<(t%4<<3),t>55)for(r(h,o),t=0;t<16;t+=1)o[t]=0;return a=parseInt((s=(s=8*u).toString(16).match(/(.*?)(.{0,8})$/))[2],16),l=parseInt(s[1],16)||0,o[14]=a,o[15]=l,r(h,o),h}function s(e){var r;for(r=0;r>8*r+4&15]+t[e>>8*r&15];return n}(e[r]);return e.join("")}function a(e){return/[\u0080-\uFFFF]/.test(e)&&(e=unescape(encodeURIComponent(e))),e}function l(e){var t,r=[],n=e.length;for(t=0;tu)?new ArrayBuffer(0):(o=new Uint8Array(i=new ArrayBuffer(n=u-l)),s=new Uint8Array(this,l,n),o.set(s),i)}}(),u.prototype.append=function(e){return this.appendBinary(a(e)),this},u.prototype.appendBinary=function(e){this._buff+=e,this._length+=e.length;var t,i=this._buff.length;for(t=64;t<=i;t+=64)r(this._hash,n(this._buff.substring(t-64,t)));return this._buff=this._buff.substring(t-64),this},u.prototype.end=function(e){var t,r,n=this._buff,i=n.length,o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(t=0;t>2]|=n.charCodeAt(t)<<(t%4<<3);return this._finish(o,i),r=s(this._hash),e&&(r=l(r)),this.reset(),r},u.prototype.reset=function(){return this._buff="",this._length=0,this._hash=[0x67452301,-0x10325477,-0x67452302,0x10325476],this},u.prototype.getState=function(){return{buff:this._buff,length:this._length,hash:this._hash.slice()}},u.prototype.setState=function(e){return this._buff=e.buff,this._length=e.length,this._hash=e.hash,this},u.prototype.destroy=function(){delete this._hash,delete this._buff,delete this._length},u.prototype._finish=function(e,t){var n,i,o,s=t;if(e[s>>2]|=128<<(s%4<<3),s>55)for(r(this._hash,e),s=0;s<16;s+=1)e[s]=0;i=parseInt((n=(n=8*this._length).toString(16).match(/(.*?)(.{0,8})$/))[2],16),o=parseInt(n[1],16)||0,e[14]=i,e[15]=o,r(this._hash,e)},u.hash=function(e,t){return u.hashBinary(a(e),t)},u.hashBinary=function(e,t){var r=s(o(e));return t?l(r):r},u.ArrayBuffer=function(){this.reset()},u.ArrayBuffer.prototype.append=function(e){var t,n,o,s=(t=this._buff.buffer,(n=new Uint8Array(t.byteLength+e.byteLength)).set(new Uint8Array(t)),n.set(new Uint8Array(e),t.byteLength),n),a=s.length;for(this._length+=e.byteLength,o=64;o<=a;o+=64)r(this._hash,i(s.subarray(o-64,o)));return this._buff=new Uint8Array(o-64>2]|=n[t]<<(t%4<<3);return this._finish(o,i),r=s(this._hash),e&&(r=l(r)),this.reset(),r},u.ArrayBuffer.prototype.reset=function(){return this._buff=new Uint8Array(0),this._length=0,this._hash=[0x67452301,-0x10325477,-0x67452302,0x10325476],this},u.ArrayBuffer.prototype.getState=function(){var e,t=u.prototype.getState.call(this);return e=t.buff,t.buff=String.fromCharCode.apply(null,new Uint8Array(e)),t},u.ArrayBuffer.prototype.setState=function(e){return e.buff=function(e,t){var r,n=e.length,i=new ArrayBuffer(n),o=new Uint8Array(i);for(r=0;r>2]|=e[t]<<(t%4<<3);if(o[t>>2]|=128<<(t%4<<3),t>55)for(r(h,o),t=0;t<16;t+=1)o[t]=0;return a=parseInt((s=(s=8*u).toString(16).match(/(.*?)(.{0,8})$/))[2],16),l=parseInt(s[1],16)||0,o[14]=a,o[15]=l,r(h,o),h}(new Uint8Array(e)));return t?l(n):n},u}()}},t={};function r(n){var i=t[n];if(void 0!==i)return i.exports;var o=t[n]={exports:{}};return e[n](o,o.exports,r),o.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};(()=>{"use strict";r.r(n),r.d(n,{DatadogNodeServerProvider:()=>ep});var e,t,i,o,s,a,l=r(5735),u=r.n(l);function h(e,t=""){return new(u())().append(t).append(e).end()}function c(e){return h(JSON.stringify({flag:{key:e.flag.key},subject:{id:e.subject.id,attributes:e.subject.attributes}}))}function d(e){return h(JSON.stringify(e))}class f{constructor(e){this.delegate=e}init(){return Promise.resolve()}has(e){return this.get(e)===d(e)}get(e){return this.delegate.get(c(e))}set(e){this.delegate.set(c(e),d(e))}entries(){return this.delegate.entries()}clear(){this.delegate.clear()}}class g{constructor(e){this.capacity=e,this.cache=new Map,this.size=this.cache.size}[(Symbol.toStringTag,Symbol.iterator)](){return this.cache[Symbol.iterator]()}forEach(e){this.cache.forEach(e)}entries(){return this.cache.entries()}clear(){this.cache.clear()}delete(e){return this.cache.delete(e)}keys(){return this.cache.keys()}values(){return this.cache.values()}has(e){return this.cache.has(e)}get(e){if(!this.has(e))return;let t=this.cache.get(e);return void 0!==t&&(this.delete(e),this.cache.set(e,t)),t}set(e,t){if(0===this.capacity)return this;if(this.cache.has(e))this.cache.delete(e);else if(this.cache.size>=this.capacity){let e=this.cache.keys().next().value;e&&this.delete(e)}return this.cache.set(e,t),this}}class v extends f{constructor(e){super(new g(e))}}var p=Object.defineProperty,E=Object.defineProperties,_=Object.getOwnPropertyDescriptors,y=Object.getOwnPropertySymbols,m=Object.prototype.hasOwnProperty,R=Object.prototype.propertyIsEnumerable,b=(e,t,r)=>t in e?p(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,O=(e,t)=>{for(var r in t||(t={}))m.call(t,r)&&b(e,r,t[r]);if(y)for(var r of y(t))R.call(t,r)&&b(e,r,t[r]);return e},A=(e,t,r)=>new Promise((n,i)=>{var o=e=>{try{a(r.next(e))}catch(e){i(e)}},s=e=>{try{a(r.throw(e))}catch(e){i(e)}},a=e=>e.done?n(e.value):Promise.resolve(e.value).then(o,s);a((r=r.apply(e,t)).next())}),x="ERROR",T=((e=T||{}).PROVIDER_NOT_READY="PROVIDER_NOT_READY",e.PROVIDER_FATAL="PROVIDER_FATAL",e.FLAG_NOT_FOUND="FLAG_NOT_FOUND",e.PARSE_ERROR="PARSE_ERROR",e.TYPE_MISMATCH="TYPE_MISMATCH",e.TARGETING_KEY_MISSING="TARGETING_KEY_MISSING",e.INVALID_CONTEXT="INVALID_CONTEXT",e.GENERAL="GENERAL",e),C=class e extends Error{constructor(t,r){super(t),Object.setPrototypeOf(this,e.prototype),this.name="OpenFeatureError",this.cause=null==r?void 0:r.cause}},P=class e extends C{constructor(t,r){super(t,r),Object.setPrototypeOf(this,e.prototype),this.name="FlagNotFoundError",this.code="FLAG_NOT_FOUND"}},N=class e extends C{constructor(t,r){super(t,r),Object.setPrototypeOf(this,e.prototype),this.name="GeneralError",this.code="GENERAL"}},I=class e extends C{constructor(t,r){super(t,r),Object.setPrototypeOf(this,e.prototype),this.name="InvalidContextError",this.code="INVALID_CONTEXT"}},S=class e extends C{constructor(t,r){super(t,r),Object.setPrototypeOf(this,e.prototype),this.name="ParseError",this.code="PARSE_ERROR"}},w=class e extends C{constructor(t,r){super(t,r),Object.setPrototypeOf(this,e.prototype),this.name="ProviderFatalError",this.code="PROVIDER_FATAL"}},D=class e extends C{constructor(t,r){super(t,r),Object.setPrototypeOf(this,e.prototype),this.name="ProviderNotReadyError",this.code="PROVIDER_NOT_READY"}},L=class e extends C{constructor(t,r){super(t,r),Object.setPrototypeOf(this,e.prototype),this.name="TargetingKeyMissingError",this.code="TARGETING_KEY_MISSING"}},k=class e extends C{constructor(t,r){super(t,r),Object.setPrototypeOf(this,e.prototype),this.name="TypeMismatchError",this.code="TYPE_MISMATCH"}},H=((t=H||{}).NOT_READY="NOT_READY",t.READY="READY",t.ERROR="ERROR",t.STALE="STALE",t.FATAL="FATAL",t),M=((i=M||{}).Ready="PROVIDER_READY",i.Error="PROVIDER_ERROR",i.ConfigurationChanged="PROVIDER_CONFIGURATION_CHANGED",i.Stale="PROVIDER_STALE",i),j=((o=j||{}).Ready="PROVIDER_READY",o.Error="PROVIDER_ERROR",o.ConfigurationChanged="PROVIDER_CONFIGURATION_CHANGED",o.ContextChanged="PROVIDER_CONTEXT_CHANGED",o.Reconciling="PROVIDER_RECONCILING",o.Stale="PROVIDER_STALE",o),G={READY:"PROVIDER_READY",ERROR:"PROVIDER_ERROR",FATAL:"PROVIDER_ERROR",STALE:"PROVIDER_STALE",RECONCILING:"PROVIDER_RECONCILING",NOT_READY:void 0},V=(e,t)=>!t&&"PROVIDER_READY"===e||G[t]===e,F=class{error(...e){console.error(...e)}warn(...e){console.warn(...e)}info(){}debug(){}},Y=["error","warn","info","debug"],U=class{constructor(e){this.fallbackLogger=new F;try{for(const t of Y)if(!e[t]||"function"!=typeof e[t])throw Error(`The provided logger is missing the ${t} method.`);this.logger=e}catch(e){console.error(e),console.error("Falling back to the default logger."),this.logger=this.fallbackLogger}}error(...e){this.log("error",...e)}warn(...e){this.log("warn",...e)}info(...e){this.log("info",...e)}debug(...e){this.log("debug",...e)}log(e,...t){try{this.logger[e](...t)}catch(r){this.fallbackLogger[e](...t)}}},K=class{constructor(e){this.globalLogger=e,this._handlers={PROVIDER_CONFIGURATION_CHANGED:new WeakMap,PROVIDER_CONTEXT_CHANGED:new WeakMap,PROVIDER_READY:new WeakMap,PROVIDER_ERROR:new WeakMap,PROVIDER_STALE:new WeakMap,PROVIDER_RECONCILING:new WeakMap}}emit(e,t){this.eventEmitter.emit(e,t)}addHandler(e,t){let r=e=>A(this,null,function*(){var r;try{yield t(e)}catch(e){null==(r=this._logger)||r.error("Error running event handler:",e)}}),n=this._handlers[e].get(t);this._handlers[e].set(t,[...n||[],r]),this.eventEmitter.on(e,r)}removeHandler(e,t){let r=this._handlers[e].get(t);if(r){let t=r.pop();t&&this.eventEmitter.removeListener(e,t)}}removeAllHandlers(e){e?this.eventEmitter.removeAllListeners(e):this.eventEmitter.removeAllListeners()}getHandlers(e){return this.eventEmitter.listeners(e)}setLogger(e){return this._eventLogger=new U(e),this}get _logger(){var e,t;return null!=(t=this._eventLogger)?t:null==(e=this.globalLogger)?void 0:e.call(this)}};function B(e){return"string"==typeof e?e:void 0}function $(e){return"object"==typeof e?e:void 0}function z(e){return null!=e}var W=class{constructor(e,t,r){var n,i,o;this._provider=e,this._status=t,this._pendingContextChanges=0,null==(n=e.events)||n.addHandler("PROVIDER_READY",()=>{this._status=r.READY}),null==(i=e.events)||i.addHandler("PROVIDER_STALE",()=>{this._status=r.STALE}),null==(o=e.events)||o.addHandler("PROVIDER_ERROR",e=>{(null==e?void 0:e.errorCode)==="PROVIDER_FATAL"?this._status=r.FATAL:this._status=r.ERROR})}get provider(){return this._provider}set provider(e){this._provider=e}get status(){return this._status}set status(e){this._status=e}get allContextChangesSettled(){return 0===this._pendingContextChanges}incrementPendingContextChanges(){this._pendingContextChanges++}decrementPendingContextChanges(){this._pendingContextChanges--}},X=class{constructor(e){this._hooks=[],this._context={},this._logger=new F,this._clientEventHandlers=new Map,this._domainScopedContext=new Map,this._clientEvents=new Map,this._runsOn=e}addHooks(...e){return this._hooks=[...this._hooks,...e],this}getHooks(){return this._hooks}clearHooks(){return this._hooks=[],this}setLogger(e){return this._logger=new U(e),this}get providerMetadata(){return this.getProviderMetadata()}getProviderMetadata(e){return this.getProviderForClient(e).metadata}addHandler(e,t,r){[...new Map([[void 0,this._defaultProvider]]),...this._domainScopedProviders].forEach(r=>{var n;let i=r[0],o=r[1].provider;if(V(e,r[1].status))try{t({domain:i,providerName:o.metadata.name})}catch(e){null==(n=this._logger)||n.error("Error running event handler:",e)}}),this._apiEmitter.addHandler(e,t),(null==r?void 0:r.signal)&&"function"==typeof r.signal.addEventListener&&r.signal.addEventListener("abort",()=>{this.removeHandler(e,t)})}removeHandler(e,t){this._apiEmitter.removeHandler(e,t)}clearHandlers(){this._apiEmitter.removeAllHandlers()}getHandlers(e){return this._apiEmitter.getHandlers(e)}setAwaitableProvider(e,t){var r,n,i,o,s,a,l,u;let h,c=B(e),d=null!=(r=$(e))?r:$(t);if(!d)return void this._logger.debug("No provider defined, ignoring setProvider call");let f=this.getProviderForClient(c),g=d.metadata.name;if(f===d)return void this._logger.debug("Provider is already set, ignoring setProvider call");if(d.runsOn){if(d.runsOn!==this._runsOn)throw new N(`Provider '${d.metadata.name}' is intended for use on the ${d.runsOn}.`)}else this._logger.debug(`Provider '${d.metadata.name}' has not defined its intended use.`);let v=this.getAssociatedEventEmitters(c),p=new W(d,this._statusEnumType.NOT_READY,this._statusEnumType);return"function"!=typeof d.initialize||this.allProviders.includes(d)?(p.status=this._statusEnumType.READY,v.forEach(e=>{null==e||e.emit("PROVIDER_READY",{clientName:c,domain:c,providerName:g})}),null==(a=this._apiEmitter)||a.emit("PROVIDER_READY",{clientName:c,domain:c,providerName:g})):h=null==(s=null==(o=null==(i=d.initialize)?void 0:i.call(d,c&&null!=(n=this._domainScopedContext.get(c))?n:this._context))?void 0:o.then(()=>{var e;p.status=this._statusEnumType.READY,this.getAssociatedEventEmitters(c).forEach(e=>{null==e||e.emit("PROVIDER_READY",{clientName:c,domain:c,providerName:g})}),null==(e=this._apiEmitter)||e.emit("PROVIDER_READY",{clientName:c,domain:c,providerName:g})}))?void 0:s.catch(e=>{var t;throw(null==e?void 0:e.code)==="PROVIDER_FATAL"?p.status=this._statusEnumType.FATAL:p.status=this._statusEnumType.ERROR,this.getAssociatedEventEmitters(c).forEach(t=>{null==t||t.emit("PROVIDER_ERROR",{clientName:c,domain:c,providerName:g,message:null==e?void 0:e.message})}),null==(t=this._apiEmitter)||t.emit("PROVIDER_ERROR",{clientName:c,domain:c,providerName:g,message:null==e?void 0:e.message}),e}),c?this._domainScopedProviders.set(c,p):this._defaultProvider=p,this.transferListeners(f,d,c,v),this.allProviders.includes(f)||null==(u=null==(l=null==f?void 0:f.onClose)?void 0:l.call(f))||u.catch(e=>{this._logger.error(`error closing provider: ${null==e?void 0:e.message}, ${null==e?void 0:e.stack}`)}),h}getProviderForClient(e){var t,r;return e&&null!=(r=null==(t=this._domainScopedProviders.get(e))?void 0:t.provider)?r:this._defaultProvider.provider}buildAndCacheEventEmitterForClient(e){let t=this._clientEvents.get(e);if(t)return t;let r=this._createEventEmitter();this._clientEvents.set(e,r);let n=this.getProviderForClient(e);return Object.values(j).forEach(t=>{var i;return null==(i=n.events)?void 0:i.addHandler(t,i=>A(this,null,function*(){r.emit(t,E(O({},i),_({clientName:e,domain:e,providerName:n.metadata.name})))}))}),r}getUnboundEmitters(){let e=[...this._domainScopedProviders.keys()];return[...[...this._clientEvents.keys()].filter(z).filter(t=>!e.includes(t)).map(e=>this._clientEvents.get(e)),this._clientEvents.get(void 0)].filter(z)}getAssociatedEventEmitters(e){return e?[this.buildAndCacheEventEmitterForClient(e)]:this.getUnboundEmitters()}transferListeners(e,t,r,n){var i;null==(i=this._clientEventHandlers.get(r))||i.forEach(t=>{var r;return null==(r=e.events)?void 0:r.removeHandler(...t)});let o=Object.values(j).map(e=>{let i=i=>A(this,null,function*(){n.forEach(n=>{null==n||n.emit(e,E(O({},i),_({clientName:r,domain:r,providerName:t.metadata.name})))}),this._apiEmitter.emit(e,E(O({},i),_({clientName:r,domain:r,providerName:t.metadata.name})))});return[e,i]});this._clientEventHandlers.set(r,o),o.forEach(e=>{var r;return null==(r=t.events)?void 0:r.addHandler(...e)})}close(){return A(this,null,function*(){var e,t;try{yield null==(t=null==(e=this==null?void 0:this._defaultProvider.provider)?void 0:e.onClose)?void 0:t.call(e)}catch(e){this.handleShutdownError(this._defaultProvider.provider,e)}let r=Array.from(this._domainScopedProviders);yield Promise.all(r.map(e=>A(this,[e],function*([,e]){var t,r;try{yield null==(r=null==e?void 0:(t=e.provider).onClose)?void 0:r.call(t)}catch(t){this.handleShutdownError(null==e?void 0:e.provider,t)}})))})}clearProvidersAndSetDefault(e){return A(this,null,function*(){try{yield this.close()}catch(e){this._logger.error("Unable to cleanly close providers. Resetting to the default configuration.")}finally{this._domainScopedProviders.clear(),this._defaultProvider=new W(e,this._statusEnumType.NOT_READY,this._statusEnumType)}})}get allProviders(){return[...[...this._domainScopedProviders.values()].map(e=>e.provider),this._defaultProvider.provider]}handleShutdownError(e,t){this._logger.error(`Error during shutdown of provider ${e.metadata.name}: ${t}`),this._logger.error(null==t?void 0:t.stack)}};let J=require("node:events");require("async_hooks");var q=Object.defineProperty,Q=Object.defineProperties,Z=Object.getOwnPropertyDescriptors,ee=Object.getOwnPropertySymbols,et=Object.prototype.hasOwnProperty,er=Object.prototype.propertyIsEnumerable,en=(e,t,r)=>t in e?q(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,ei=(e,t)=>{for(var r in t||(t={}))et.call(t,r)&&en(e,r,t[r]);if(ee)for(var r of ee(t))er.call(t,r)&&en(e,r,t[r]);return e},eo=(e,t,r)=>new Promise((n,i)=>{var o=e=>{try{a(r.next(e))}catch(e){i(e)}},s=e=>{try{a(r.throw(e))}catch(e){i(e)}},a=e=>e.done?n(e.value):Promise.resolve(e.value).then(o,s);a((r=r.apply(e,t)).next())}),es=new class{constructor(){this.metadata={name:"No-op Provider"}}resolveBooleanEvaluation(e,t){return this.noOp(t)}resolveStringEvaluation(e,t){return this.noOp(t)}resolveNumberEvaluation(e,t){return this.noOp(t)}resolveObjectEvaluation(e,t){return this.noOp(t)}noOp(e){return Promise.resolve({value:e,reason:"No-op"})}},ea=class{constructor(e,t,r,n,i,o,s,a,l={}){this.providerAccessor=e,this.providerStatusAccessor=t,this.emitterAccessor=r,this.apiContextAccessor=n,this.apiHooksAccessor=i,this.transactionContextAccessor=o,this.globalLogger=s,this.options=a,this._hooks=[],this._context=l}get metadata(){var e,t;return{name:null!=(e=this.options.domain)?e:this.options.name,domain:null!=(t=this.options.domain)?t:this.options.name,version:this.options.version,providerMetadata:this.providerAccessor().metadata}}get providerStatus(){return this.providerStatusAccessor()}addHandler(e,t,r){var n;if(this.emitterAccessor().addHandler(e,t),V(e,this._providerStatus))try{t({clientName:this.metadata.name,domain:this.metadata.domain,providerName:this._provider.metadata.name})}catch(e){null==(n=this._logger)||n.error("Error running event handler:",e)}(null==r?void 0:r.signal)&&"function"==typeof r.signal.addEventListener&&r.signal.addEventListener("abort",()=>{this.removeHandler(e,t)})}removeHandler(e,t){this.emitterAccessor().removeHandler(e,t)}getHandlers(e){return this.emitterAccessor().getHandlers(e)}setLogger(e){return this._clientLogger=new U(e),this}setContext(e){return this._context=e,this}getContext(){return this._context}addHooks(...e){return this._hooks=[...this._hooks,...e],this}getHooks(){return this._hooks}clearHooks(){return this._hooks=[],this}getBooleanValue(e,t,r,n){return eo(this,null,function*(){return(yield this.getBooleanDetails(e,t,r,n)).value})}getBooleanDetails(e,t,r,n){return this.evaluate(e,this._provider.resolveBooleanEvaluation,t,"boolean",r,n)}getStringValue(e,t,r,n){return eo(this,null,function*(){return(yield this.getStringDetails(e,t,r,n)).value})}getStringDetails(e,t,r,n){return this.evaluate(e,this._provider.resolveStringEvaluation,t,"string",r,n)}getNumberValue(e,t,r,n){return eo(this,null,function*(){return(yield this.getNumberDetails(e,t,r,n)).value})}getNumberDetails(e,t,r,n){return this.evaluate(e,this._provider.resolveNumberEvaluation,t,"number",r,n)}getObjectValue(e,t,r,n){return eo(this,null,function*(){return(yield this.getObjectDetails(e,t,r,n)).value})}getObjectDetails(e,t,r,n){return this.evaluate(e,this._provider.resolveObjectEvaluation,t,"object",r,n)}track(e,t={},r={}){var n,i;try{if(this.shortCircuitIfNotReady(),"function"==typeof this._provider.track){let o=Object.freeze(this.mergeContexts(t));return null==(i=(n=this._provider).track)?void 0:i.call(n,e,o,r)}this._logger.debug("Provider does not support the track function; will no-op.")}catch(e){this._logger.debug("Error recording tracking event.",e)}}evaluate(e,t,r,n){return eo(this,arguments,function*(e,t,r,n,i={},o={}){var s;let a,l=[...this.apiHooksAccessor(),...this.getHooks(),...o.hooks||[],...this._provider.hooks||[]],u=[...l].reverse(),h=this.mergeContexts(i),c={flagKey:e,defaultValue:r,flagValueType:n,clientMetadata:this.metadata,providerMetadata:this._provider.metadata,context:h,logger:this._logger};try{let n,i,h=yield this.beforeHooks(l,c,o);this.shortCircuitIfNotReady();let d=yield t.call(this._provider,e,r,h,this._logger),f=(n=ei({},d),i={flagMetadata:Object.freeze(null!=(s=d.flagMetadata)?s:{}),flagKey:e},Q(n,Z(i)));if(f.errorCode){let t=((e,t)=>{switch(e){case"FLAG_NOT_FOUND":return new P(t);case"PARSE_ERROR":return new S(t);case"TYPE_MISMATCH":return new k(t);case"TARGETING_KEY_MISSING":return new L(t);case"INVALID_CONTEXT":return new I(t);case"PROVIDER_NOT_READY":return new D(t);case"PROVIDER_FATAL":return new w(t);default:return new N(t)}})(f.errorCode,f.errorMessage);yield this.errorHooks(u,c,t,o),a=this.getErrorEvaluationDetails(e,r,t,f.flagMetadata)}else yield this.afterHooks(u,c,f,o),a=f}catch(t){yield this.errorHooks(u,c,t,o),a=this.getErrorEvaluationDetails(e,r,t)}return yield this.finallyHooks(u,c,a,o),a})}beforeHooks(e,t,r){return eo(this,null,function*(){var n;for(let i of e)Object.freeze(t),Object.assign(t.context,ei(ei({},t.context),(yield null==(n=null==i?void 0:i.before)?void 0:n.call(i,t,Object.freeze(r.hookHints)))));return Object.freeze(t.context)})}afterHooks(e,t,r,n){return eo(this,null,function*(){var i;for(let o of e)yield null==(i=null==o?void 0:o.after)?void 0:i.call(o,t,r,n.hookHints)})}errorHooks(e,t,r,n){return eo(this,null,function*(){var i;for(let o of e)try{yield null==(i=null==o?void 0:o.error)?void 0:i.call(o,t,r,n.hookHints)}catch(e){this._logger.error(`Unhandled error during 'error' hook: ${e}`),e instanceof Error&&this._logger.error(e.stack),this._logger.error(null==e?void 0:e.stack)}})}finallyHooks(e,t,r,n){return eo(this,null,function*(){var i;for(let o of e)try{yield null==(i=null==o?void 0:o.finally)?void 0:i.call(o,t,r,n.hookHints)}catch(e){this._logger.error(`Unhandled error during 'finally' hook: ${e}`),e instanceof Error&&this._logger.error(e.stack),this._logger.error(null==e?void 0:e.stack)}})}get _provider(){return this.providerAccessor()}get _providerStatus(){return this.providerStatusAccessor()}get _logger(){return this._clientLogger||this.globalLogger()}mergeContexts(e){return ei(ei(ei(ei({},this.apiContextAccessor()),this.transactionContextAccessor()),this._context),e)}shortCircuitIfNotReady(){if(this.providerStatus===H.NOT_READY)throw new D("provider has not yet initialized");if(this.providerStatus===H.FATAL)throw new w("provider is in an irrecoverable error state")}getErrorEvaluationDetails(e,t,r,n={}){let i=null==r?void 0:r.message;return{errorCode:(null==r?void 0:r.code)||T.GENERAL,errorMessage:i,value:t,reason:x,flagMetadata:Object.freeze(n),flagKey:e}}},el=class extends K{constructor(){super(),this.eventEmitter=new J.EventEmitter({captureRejections:!0}),this.eventEmitter.on("error",e=>{var t;null==(t=this._logger)||t.error("Error running event handler:",e)})}},eu=new class{getTransactionContext(){return{}}setTransactionContext(e,t,...r){t(...r)}},eh=Symbol.for("@openfeature/js-sdk/api"),ec=globalThis;(class e extends X{constructor(){super("server"),this._statusEnumType=H,this._apiEmitter=new el,this._defaultProvider=new W(es,H.NOT_READY,this._statusEnumType),this._domainScopedProviders=new Map,this._createEventEmitter=()=>new el,this._transactionContextPropagator=eu}static getInstance(){let t=ec[eh];if(t)return t;let r=new e;return ec[eh]=r,r}getProviderStatus(e){var t,r;return e&&null!=(r=null==(t=this._domainScopedProviders.get(e))?void 0:t.status)?r:this._defaultProvider.status}setProviderAndWait(e,t){return eo(this,null,function*(){let r=B(e),n=r?$(t):$(e);yield this.setAwaitableProvider(r,n)})}setProvider(e,t){let r=B(e),n=r?$(t):$(e);return Promise.resolve(this.setAwaitableProvider(r,n)).catch(e=>{this._logger.error("Error during provider initialization:",e)}),this}getProvider(e){return this.getProviderForClient(e)}setContext(e){return this._context=e,this}getContext(){return this._context}getClient(e,t,r){var n,i;let o=B(e);return new ea(()=>this.getProviderForClient(o),()=>this.getProviderStatus(o),()=>this.buildAndCacheEventEmitterForClient(o),()=>this.getContext(),()=>this.getHooks(),()=>this.getTransactionContext(),()=>this._logger,{domain:o,version:B(t)},null!=(i=null!=(n=$(e))?n:$(t))?i:$(r))}clearProviders(){return super.clearProvidersAndSetDefault(es)}setTransactionContextPropagator(e){let t="Invalid TransactionContextPropagator, will not be set: ";return"function"!=typeof(null==e?void 0:e.getTransactionContext)?this._logger.error(`${t}: getTransactionContext is not a function.`):"function"!=typeof(null==e?void 0:e.setTransactionContext)?this._logger.error(`${t}: setTransactionContext is not a function.`):this._transactionContextPropagator=e,this}setTransactionContext(e,t,...r){this._transactionContextPropagator.setTransactionContext(e,t,...r)}getTransactionContext(){try{return this._transactionContextPropagator.getTransactionContext()}catch(e){return this._logger.error(`Error getting transaction context: ${null==e?void 0:e.message}, returning empty context.`),this._logger.error(null==e?void 0:e.stack),{}}}}).getInstance(),(s=a||(a={})).MATCHES="MATCHES",s.NOT_MATCHES="NOT_MATCHES",s.GTE="GTE",s.GT="GT",s.LTE="LTE",s.LT="LT",s.ONE_OF="ONE_OF",s.NOT_ONE_OF="NOT_ONE_OF",s.IS_NULL="IS_NULL";class ed{}class ef extends ed{getShard(e,t){return parseInt(h(e).slice(0,8),16)%t}}function eg(e,t,r,n,i,o){if(!e)return{value:n,reason:"ERROR",errorCode:T.PROVIDER_NOT_READY};let{targetingKey:s,...l}=i;if(!s)return{value:n,reason:"ERROR",errorCode:T.TARGETING_KEY_MISSING};let u={id:s,...l};try{return function(e,t,r,n,i,o){if(!(null==e?void 0:e.enabled))return o.debug("returning default assignment because flag is disabled",{flagKey:e?e.key:"undefined",subjectKey:r}),{value:i,reason:"DISABLED"};if(!function(e,t){if("boolean"===e)return"BOOLEAN"===t;if("string"===e)return"STRING"===t;if("number"===e)return"INTEGER"===t||"NUMERIC"===t;if("object"===e)return"JSON"===t;throw Error(`Invalid expected type: ${e}`)}(t,e.variationType))return o.debug("variant value type mismatch, returning default value",{flagKey:e.key,subjectKey:r,expectedType:t,variantType:e.variationType}),{value:i,reason:x,errorCode:T.TYPE_MISMATCH};let s=new Date;for(let t of e.allocations){if(t.startAt&&s=new Date(t.endAt)){o.debug("allocation after end date",{flagKey:e.key,subjectKey:r,allocationKey:t.key,endAt:t.endAt});continue}if(!function(e,t,r){return null==e||!e.length||(r.debug("evaluating rules",{rules:JSON.stringify(e),subjectAttributes:t}),e.some(e=>!(function(e,t){return t.map(t=>(function(e,t){var r,n,i;let o=e[t.attribute];if(t.operator===a.IS_NULL)return t.value?null==o:null!=o;if(null!=o)switch(t.operator){case a.GTE:case a.GT:case a.LTE:case a.LT:return r=o,n=t.value,((e,r)=>t.operator===a.GTE?e>=r:t.operator===a.GT?e>r:t.operator===a.LTE?e<=r:e{let o=function(e,t,r){var n,i;let o=new ef().getShard((n=e.salt,i=t,`${n}-${i}`),e.totalShards);return e.ranges.some(e=>{var t,r;return t=o,(r=e).start<=t&&t{this.resolve=()=>{this.cleanup(),e()},this.reject=e=>{this.cleanup(),t(e)}}),new Promise(()=>{this.timeoutId=setTimeout(()=>{t()},e)})])}async wait(){try{await this.promise}finally{this.cleanup()}}complete(){this.resolve&&this.resolve()}fail(e){this.reject&&this.reject(e)}isInitializing(){return void 0!==this.resolve}cleanup(){this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=void 0),this.resolve=void 0,this.reject=void 0}}class ep{constructor(e){this.options=e,this.metadata={name:"datadog-node-server"},this.runsOn="server",this.hooks=[],this.events=new el,this.exposureCache=new v(5e4)}getConfiguration(){return this.configuration}setConfiguration(e){var t,r,n;let i=null==(t=this.configuration)?void 0:t.createdAt,o=!!this.configuration;if(o&&this.configuration!==e){this.events.emit(M.ConfigurationChanged),i!==(null==e?void 0:e.createdAt)&&(null==(r=this.exposureCache)||r.clear()),this.configuration=e;return}this.configuration=e,(null==(n=this.initController)?void 0:n.isInitializing())?this.initController.complete():o||this.events.emit(M.Ready)}setError(e){var t;(null==(t=this.initController)?void 0:t.isInitializing())?this.initController.fail(e):this.events.emit(M.Error,{error:e})}async initialize(){var e,t;if(this.configuration)return;let r=null!=(e=this.options.initializationTimeoutMs)?e:3e4;this.initController=new ev(r,()=>this.setError(Error(`Initialization timeout after ${r}ms`))),await this.initController.wait(),await (null==(t=this.exposureCache)?void 0:t.init())}async resolveBooleanEvaluation(e,t,r,n){let i=eg(this.configuration,"boolean",e,t,r,n);return this.handleExposure(e,r,i),i}async resolveStringEvaluation(e,t,r,n){let i=eg(this.configuration,"string",e,t,r,n);return this.handleExposure(e,r,i),i}async resolveNumberEvaluation(e,t,r,n){let i=eg(this.configuration,"number",e,t,r,n);return this.handleExposure(e,r,i),i}async resolveObjectEvaluation(e,t,r,n){let i=eg(this.configuration,"object",e,t,r,n);return this.handleExposure(e,r,i),i}handleExposure(e,t,r){var n,i,o;let s=Date.now(),a=function(e,t){var r,n;if(!(null==(r=t.flagMetadata)?void 0:r.doLog))return;let i=null==(n=t.flagMetadata)?void 0:n.allocationKey,o=t.variant;if(!i||!o)return;let{targetingKey:s="",...a}=e;return{allocation:{key:i},flag:{key:t.flagKey},variant:{key:o},subject:{id:s,attributes:a}}}(t,{...r,flagKey:e,flagMetadata:null!=(n=r.flagMetadata)?n:{}});!a||(null==(i=this.exposureCache)?void 0:i.has(a))||this.options.exposureChannel.hasSubscribers&&(this.options.exposureChannel.publish({...a,timestamp:s}),null==(o=this.exposureCache)||o.set(a))}}})(),module.exports=n})(); \ No newline at end of file diff --git a/vendor/package.json b/vendor/package.json index cc691924152..fa459510f92 100644 --- a/vendor/package.json +++ b/vendor/package.json @@ -3,6 +3,7 @@ "postinstall": "rspack" }, "dependencies": { + "@datadog/openfeature-node-server": "^0.2.0", "@datadog/sketches-js": "2.1.1", "@isaacs/ttlcache": "^2.0.1", "@opentelemetry/api": ">=1.0.0 <1.10.0", diff --git a/vendor/yarn.lock b/vendor/yarn.lock index c9525b37456..27135977a1b 100644 --- a/vendor/yarn.lock +++ b/vendor/yarn.lock @@ -2,6 +2,21 @@ # yarn lockfile v1 +"@datadog/flagging-core@0.2.0": + version "0.2.0" + resolved "https://registry.yarnpkg.com/@datadog/flagging-core/-/flagging-core-0.2.0.tgz#d29d81486068b870c41cebb2524721a71184eb16" + integrity sha512-DocYjr8NFJZfsnqzu3MuBUNqgbJquq1doimkKEXI5UImLmz/tR0LO09dd651pBhoz1Pa4SKcnPaxWFLTqxWtsA== + dependencies: + spark-md5 "^3.0.2" + +"@datadog/openfeature-node-server@^0.2.0": + version "0.2.0" + resolved "https://registry.yarnpkg.com/@datadog/openfeature-node-server/-/openfeature-node-server-0.2.0.tgz#905032cc6d7d1eb1d6620aabe323ed552366d65a" + integrity sha512-Jn8lShFyqNji0tiKntLcCRwu3xrhg93fTTJS3gHSPKMfBDBKxjB9uF8Hu5Ayn2k0QuwJexx5atN9GSiWX0h5qg== + dependencies: + "@datadog/flagging-core" "0.2.0" + "@openfeature/server-sdk" "~1.18.0" + "@datadog/sketches-js@2.1.1": version "2.1.1" resolved "https://registry.yarnpkg.com/@datadog/sketches-js/-/sketches-js-2.1.1.tgz#9ec2251b3c932b4f43e1d164461fa6cb6f28b7d0" @@ -151,6 +166,11 @@ "@emnapi/runtime" "^1.5.0" "@tybys/wasm-util" "^0.10.1" +"@openfeature/server-sdk@~1.18.0": + version "1.18.0" + resolved "https://registry.yarnpkg.com/@openfeature/server-sdk/-/server-sdk-1.18.0.tgz#5fed5f1d0900b2535878db18a78295bbaebb997b" + integrity sha512-uP8nqEGBS58s3iWXx6d8vnJ6ZVt3DACJL4PWADOAuwIS4xXpID91783e9f6zQ0i1ijQpj3yx+3ZuCB2LfQMUMA== + "@opentelemetry/api-logs@<1.0.0": version "0.208.0" resolved "https://registry.yarnpkg.com/@opentelemetry/api-logs/-/api-logs-0.208.0.tgz#56d3891010a1fa1cf600ba8899ed61b43ace511c" @@ -1745,6 +1765,11 @@ source-map@^0.7.4: resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.7.6.tgz#a3658ab87e5b6429c8a1f3ba0083d4c61ca3ef02" integrity sha512-i5uvt8C3ikiWeNZSVZNWcfZPItFQOsYTUAOkcUPGd8DqDy1uOUikjt5dG+uRlwyvR108Fb9DOd4GvXfT0N2/uQ== +spark-md5@^3.0.2: + version "3.0.2" + resolved "https://registry.yarnpkg.com/spark-md5/-/spark-md5-3.0.2.tgz#7952c4a30784347abcee73268e473b9c0167e3fc" + integrity sha512-wcFzz9cDfbuqe0FZzfi2or1sgyIrsDwmPwfZC4hiNidPdPINjeUwNfv5kldczoEAcjl9Y1L3SM7Uz2PUEQzxQw== + spdy-transport@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/spdy-transport/-/spdy-transport-3.0.0.tgz#00d4863a6400ad75df93361a1608605e5dcdcf31" From d5750232bcce59be5c327109f8b9002537d6c214 Mon Sep 17 00:00:00 2001 From: rochdev Date: Fri, 21 Nov 2025 11:19:15 -0500 Subject: [PATCH 23/95] fix lockfiles --- yarn.lock | 25 ------------------------- 1 file changed, 25 deletions(-) diff --git a/yarn.lock b/yarn.lock index 2741d467206..77264285a92 100644 --- a/yarn.lock +++ b/yarn.lock @@ -204,13 +204,6 @@ "@babel/helper-string-parser" "^7.27.1" "@babel/helper-validator-identifier" "^7.28.5" -"@datadog/flagging-core@0.2.0": - version "0.2.0" - resolved "https://registry.yarnpkg.com/@datadog/flagging-core/-/flagging-core-0.2.0.tgz#d29d81486068b870c41cebb2524721a71184eb16" - integrity sha512-DocYjr8NFJZfsnqzu3MuBUNqgbJquq1doimkKEXI5UImLmz/tR0LO09dd651pBhoz1Pa4SKcnPaxWFLTqxWtsA== - dependencies: - spark-md5 "^3.0.2" - "@datadog/libdatadog@0.7.0": version "0.7.0" resolved "https://registry.yarnpkg.com/@datadog/libdatadog/-/libdatadog-0.7.0.tgz#81e07d3040c628892db697ccd01ae3c4d2a76315" @@ -238,14 +231,6 @@ node-addon-api "^6.1.0" node-gyp-build "^3.9.0" -"@datadog/openfeature-node-server@^0.2.0": - version "0.2.0" - resolved "https://registry.yarnpkg.com/@datadog/openfeature-node-server/-/openfeature-node-server-0.2.0.tgz#905032cc6d7d1eb1d6620aabe323ed552366d65a" - integrity sha512-Jn8lShFyqNji0tiKntLcCRwu3xrhg93fTTJS3gHSPKMfBDBKxjB9uF8Hu5Ayn2k0QuwJexx5atN9GSiWX0h5qg== - dependencies: - "@datadog/flagging-core" "0.2.0" - "@openfeature/server-sdk" "~1.18.0" - "@datadog/pprof@5.12.0": version "5.12.0" resolved "https://registry.yarnpkg.com/@datadog/pprof/-/pprof-5.12.0.tgz#1f0a592aec5ea3a48ad795d069e8a925d21667db" @@ -677,11 +662,6 @@ resolved "https://registry.yarnpkg.com/@openfeature/core/-/core-1.9.1.tgz#9925a04ed0745e92dd7b3793b35cff1ed89d54c1" integrity sha512-YySPtH4s/rKKnHRU0xyFGrqMU8XA+OIPNWDrlEFxE6DCVWCIrxE5YpiB94YD2jMFn6SSdA0cwQ8vLkCkl8lm8A== -"@openfeature/server-sdk@~1.18.0": - version "1.18.0" - resolved "https://registry.yarnpkg.com/@openfeature/server-sdk/-/server-sdk-1.18.0.tgz#5fed5f1d0900b2535878db18a78295bbaebb997b" - integrity sha512-uP8nqEGBS58s3iWXx6d8vnJ6ZVt3DACJL4PWADOAuwIS4xXpID91783e9f6zQ0i1ijQpj3yx+3ZuCB2LfQMUMA== - "@openfeature/server-sdk@~1.20.0": version "1.20.0" resolved "https://registry.yarnpkg.com/@openfeature/server-sdk/-/server-sdk-1.20.0.tgz#43a5d3cffd915742ff64eeef53b7132279df4823" @@ -4356,11 +4336,6 @@ source-map@^0.7.4: resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.7.6.tgz#a3658ab87e5b6429c8a1f3ba0083d4c61ca3ef02" integrity sha512-i5uvt8C3ikiWeNZSVZNWcfZPItFQOsYTUAOkcUPGd8DqDy1uOUikjt5dG+uRlwyvR108Fb9DOd4GvXfT0N2/uQ== -spark-md5@^3.0.2: - version "3.0.2" - resolved "https://registry.yarnpkg.com/spark-md5/-/spark-md5-3.0.2.tgz#7952c4a30784347abcee73268e473b9c0167e3fc" - integrity sha512-wcFzz9cDfbuqe0FZzfi2or1sgyIrsDwmPwfZC4hiNidPdPINjeUwNfv5kldczoEAcjl9Y1L3SM7Uz2PUEQzxQw== - spawn-wrap@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/spawn-wrap/-/spawn-wrap-2.0.0.tgz#103685b8b8f9b79771318827aa78650a610d457e" From 81cc7675a304a2146e3d8c7a9c1758ee56a89c70 Mon Sep 17 00:00:00 2001 From: rochdev Date: Fri, 21 Nov 2025 12:09:23 -0500 Subject: [PATCH 24/95] move native addons to optional dependencies --- package.json | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index 48f02579ca1..e93d778d591 100644 --- a/package.json +++ b/package.json @@ -123,15 +123,17 @@ "version.js" ], "dependencies": { + "dc-polyfill": "^0.1.10", + "escape-string-regexp": "^5.0.0", + "import-in-the-middle": "^1.14.2" + }, + "optionalDependencies": { "@datadog/libdatadog": "0.7.0", "@datadog/native-appsec": "10.3.0", "@datadog/native-iast-taint-tracking": "4.1.0", "@datadog/native-metrics": "3.1.1", "@datadog/pprof": "5.12.0", - "@datadog/wasm-js-rewriter": "5.0.1", - "dc-polyfill": "^0.1.10", - "escape-string-regexp": "^5.0.0", - "import-in-the-middle": "^1.14.2" + "@datadog/wasm-js-rewriter": "5.0.1" }, "devDependencies": { "@babel/helpers": "^7.28.4", From fa02b6e1a81e58bc693a0c7eb4a41ee3f139f205 Mon Sep 17 00:00:00 2001 From: rochdev Date: Fri, 21 Nov 2025 12:09:35 -0500 Subject: [PATCH 25/95] fix esm support --- .../index.js} | 0 .../@datadog/{sketches-js.js => sketches-js/index.js} | 0 .../node_modules/@isaacs/{ttlcache.js => ttlcache/index.js} | 0 .../@opentelemetry/{api-logs.js => api-logs/index.js} | 0 packages/node_modules/@opentelemetry/{api.js => api/index.js} | 0 packages/node_modules/@opentelemetry/{core.js => core/index.js} | 0 .../@opentelemetry/{resources.js => resources/index.js} | 0 .../{crypto-randomuuid.js => crypto-randomuuid/index.js} | 0 packages/node_modules/{ignore.js => ignore/index.js} | 0 .../index.js} | 0 .../node_modules/{jest-docblock.js => jest-docblock/index.js} | 0 .../node_modules/{jsonpath-plus.js => jsonpath-plus/index.js} | 0 packages/node_modules/{limiter.js => limiter/index.js} | 0 .../node_modules/{lodash.sortby.js => lodash.sortby/index.js} | 0 packages/node_modules/{lru-cache.js => lru-cache/index.js} | 0 .../index.js} | 0 packages/node_modules/{mutexify.js => mutexify/index.js} | 0 packages/node_modules/{opentracing.js => opentracing/index.js} | 0 .../node_modules/{path-to-regexp.js => path-to-regexp/index.js} | 0 .../node_modules/{pprof-format.js => pprof-format/index.js} | 0 packages/node_modules/{protobufjs.js => protobufjs/index.js} | 0 .../node_modules/protobufjs/{minimal.js => minimal/index.js} | 0 packages/node_modules/{retry.js => retry/index.js} | 0 .../retry/lib/{retry_operation.js => retry_operation/index.js} | 0 packages/node_modules/{rfdc.js => rfdc/index.js} | 0 packages/node_modules/{semifies.js => semifies/index.js} | 0 packages/node_modules/{shell-quote.js => shell-quote/index.js} | 0 packages/node_modules/{source-map.js => source-map/index.js} | 0 packages/node_modules/source-map/lib/{util.js => util/index.js} | 0 .../{tlhunter-sorted-set.js => tlhunter-sorted-set/index.js} | 0 packages/node_modules/{ttl-set.js => ttl-set/index.js} | 0 vendor/rspack.config.js | 2 +- 32 files changed, 1 insertion(+), 1 deletion(-) rename packages/node_modules/@datadog/{openfeature-node-server.js => openfeature-node-server/index.js} (100%) rename packages/node_modules/@datadog/{sketches-js.js => sketches-js/index.js} (100%) rename packages/node_modules/@isaacs/{ttlcache.js => ttlcache/index.js} (100%) rename packages/node_modules/@opentelemetry/{api-logs.js => api-logs/index.js} (100%) rename packages/node_modules/@opentelemetry/{api.js => api/index.js} (100%) rename packages/node_modules/@opentelemetry/{core.js => core/index.js} (100%) rename packages/node_modules/@opentelemetry/{resources.js => resources/index.js} (100%) rename packages/node_modules/{crypto-randomuuid.js => crypto-randomuuid/index.js} (100%) rename packages/node_modules/{ignore.js => ignore/index.js} (100%) rename packages/node_modules/{istanbul-lib-coverage.js => istanbul-lib-coverage/index.js} (100%) rename packages/node_modules/{jest-docblock.js => jest-docblock/index.js} (100%) rename packages/node_modules/{jsonpath-plus.js => jsonpath-plus/index.js} (100%) rename packages/node_modules/{limiter.js => limiter/index.js} (100%) rename packages/node_modules/{lodash.sortby.js => lodash.sortby/index.js} (100%) rename packages/node_modules/{lru-cache.js => lru-cache/index.js} (100%) rename packages/node_modules/{module-details-from-path.js => module-details-from-path/index.js} (100%) rename packages/node_modules/{mutexify.js => mutexify/index.js} (100%) rename packages/node_modules/{opentracing.js => opentracing/index.js} (100%) rename packages/node_modules/{path-to-regexp.js => path-to-regexp/index.js} (100%) rename packages/node_modules/{pprof-format.js => pprof-format/index.js} (100%) rename packages/node_modules/{protobufjs.js => protobufjs/index.js} (100%) rename packages/node_modules/protobufjs/{minimal.js => minimal/index.js} (100%) rename packages/node_modules/{retry.js => retry/index.js} (100%) rename packages/node_modules/retry/lib/{retry_operation.js => retry_operation/index.js} (100%) rename packages/node_modules/{rfdc.js => rfdc/index.js} (100%) rename packages/node_modules/{semifies.js => semifies/index.js} (100%) rename packages/node_modules/{shell-quote.js => shell-quote/index.js} (100%) rename packages/node_modules/{source-map.js => source-map/index.js} (100%) rename packages/node_modules/source-map/lib/{util.js => util/index.js} (100%) rename packages/node_modules/{tlhunter-sorted-set.js => tlhunter-sorted-set/index.js} (100%) rename packages/node_modules/{ttl-set.js => ttl-set/index.js} (100%) diff --git a/packages/node_modules/@datadog/openfeature-node-server.js b/packages/node_modules/@datadog/openfeature-node-server/index.js similarity index 100% rename from packages/node_modules/@datadog/openfeature-node-server.js rename to packages/node_modules/@datadog/openfeature-node-server/index.js diff --git a/packages/node_modules/@datadog/sketches-js.js b/packages/node_modules/@datadog/sketches-js/index.js similarity index 100% rename from packages/node_modules/@datadog/sketches-js.js rename to packages/node_modules/@datadog/sketches-js/index.js diff --git a/packages/node_modules/@isaacs/ttlcache.js b/packages/node_modules/@isaacs/ttlcache/index.js similarity index 100% rename from packages/node_modules/@isaacs/ttlcache.js rename to packages/node_modules/@isaacs/ttlcache/index.js diff --git a/packages/node_modules/@opentelemetry/api-logs.js b/packages/node_modules/@opentelemetry/api-logs/index.js similarity index 100% rename from packages/node_modules/@opentelemetry/api-logs.js rename to packages/node_modules/@opentelemetry/api-logs/index.js diff --git a/packages/node_modules/@opentelemetry/api.js b/packages/node_modules/@opentelemetry/api/index.js similarity index 100% rename from packages/node_modules/@opentelemetry/api.js rename to packages/node_modules/@opentelemetry/api/index.js diff --git a/packages/node_modules/@opentelemetry/core.js b/packages/node_modules/@opentelemetry/core/index.js similarity index 100% rename from packages/node_modules/@opentelemetry/core.js rename to packages/node_modules/@opentelemetry/core/index.js diff --git a/packages/node_modules/@opentelemetry/resources.js b/packages/node_modules/@opentelemetry/resources/index.js similarity index 100% rename from packages/node_modules/@opentelemetry/resources.js rename to packages/node_modules/@opentelemetry/resources/index.js diff --git a/packages/node_modules/crypto-randomuuid.js b/packages/node_modules/crypto-randomuuid/index.js similarity index 100% rename from packages/node_modules/crypto-randomuuid.js rename to packages/node_modules/crypto-randomuuid/index.js diff --git a/packages/node_modules/ignore.js b/packages/node_modules/ignore/index.js similarity index 100% rename from packages/node_modules/ignore.js rename to packages/node_modules/ignore/index.js diff --git a/packages/node_modules/istanbul-lib-coverage.js b/packages/node_modules/istanbul-lib-coverage/index.js similarity index 100% rename from packages/node_modules/istanbul-lib-coverage.js rename to packages/node_modules/istanbul-lib-coverage/index.js diff --git a/packages/node_modules/jest-docblock.js b/packages/node_modules/jest-docblock/index.js similarity index 100% rename from packages/node_modules/jest-docblock.js rename to packages/node_modules/jest-docblock/index.js diff --git a/packages/node_modules/jsonpath-plus.js b/packages/node_modules/jsonpath-plus/index.js similarity index 100% rename from packages/node_modules/jsonpath-plus.js rename to packages/node_modules/jsonpath-plus/index.js diff --git a/packages/node_modules/limiter.js b/packages/node_modules/limiter/index.js similarity index 100% rename from packages/node_modules/limiter.js rename to packages/node_modules/limiter/index.js diff --git a/packages/node_modules/lodash.sortby.js b/packages/node_modules/lodash.sortby/index.js similarity index 100% rename from packages/node_modules/lodash.sortby.js rename to packages/node_modules/lodash.sortby/index.js diff --git a/packages/node_modules/lru-cache.js b/packages/node_modules/lru-cache/index.js similarity index 100% rename from packages/node_modules/lru-cache.js rename to packages/node_modules/lru-cache/index.js diff --git a/packages/node_modules/module-details-from-path.js b/packages/node_modules/module-details-from-path/index.js similarity index 100% rename from packages/node_modules/module-details-from-path.js rename to packages/node_modules/module-details-from-path/index.js diff --git a/packages/node_modules/mutexify.js b/packages/node_modules/mutexify/index.js similarity index 100% rename from packages/node_modules/mutexify.js rename to packages/node_modules/mutexify/index.js diff --git a/packages/node_modules/opentracing.js b/packages/node_modules/opentracing/index.js similarity index 100% rename from packages/node_modules/opentracing.js rename to packages/node_modules/opentracing/index.js diff --git a/packages/node_modules/path-to-regexp.js b/packages/node_modules/path-to-regexp/index.js similarity index 100% rename from packages/node_modules/path-to-regexp.js rename to packages/node_modules/path-to-regexp/index.js diff --git a/packages/node_modules/pprof-format.js b/packages/node_modules/pprof-format/index.js similarity index 100% rename from packages/node_modules/pprof-format.js rename to packages/node_modules/pprof-format/index.js diff --git a/packages/node_modules/protobufjs.js b/packages/node_modules/protobufjs/index.js similarity index 100% rename from packages/node_modules/protobufjs.js rename to packages/node_modules/protobufjs/index.js diff --git a/packages/node_modules/protobufjs/minimal.js b/packages/node_modules/protobufjs/minimal/index.js similarity index 100% rename from packages/node_modules/protobufjs/minimal.js rename to packages/node_modules/protobufjs/minimal/index.js diff --git a/packages/node_modules/retry.js b/packages/node_modules/retry/index.js similarity index 100% rename from packages/node_modules/retry.js rename to packages/node_modules/retry/index.js diff --git a/packages/node_modules/retry/lib/retry_operation.js b/packages/node_modules/retry/lib/retry_operation/index.js similarity index 100% rename from packages/node_modules/retry/lib/retry_operation.js rename to packages/node_modules/retry/lib/retry_operation/index.js diff --git a/packages/node_modules/rfdc.js b/packages/node_modules/rfdc/index.js similarity index 100% rename from packages/node_modules/rfdc.js rename to packages/node_modules/rfdc/index.js diff --git a/packages/node_modules/semifies.js b/packages/node_modules/semifies/index.js similarity index 100% rename from packages/node_modules/semifies.js rename to packages/node_modules/semifies/index.js diff --git a/packages/node_modules/shell-quote.js b/packages/node_modules/shell-quote/index.js similarity index 100% rename from packages/node_modules/shell-quote.js rename to packages/node_modules/shell-quote/index.js diff --git a/packages/node_modules/source-map.js b/packages/node_modules/source-map/index.js similarity index 100% rename from packages/node_modules/source-map.js rename to packages/node_modules/source-map/index.js diff --git a/packages/node_modules/source-map/lib/util.js b/packages/node_modules/source-map/lib/util/index.js similarity index 100% rename from packages/node_modules/source-map/lib/util.js rename to packages/node_modules/source-map/lib/util/index.js diff --git a/packages/node_modules/tlhunter-sorted-set.js b/packages/node_modules/tlhunter-sorted-set/index.js similarity index 100% rename from packages/node_modules/tlhunter-sorted-set.js rename to packages/node_modules/tlhunter-sorted-set/index.js diff --git a/packages/node_modules/ttl-set.js b/packages/node_modules/ttl-set/index.js similarity index 100% rename from packages/node_modules/ttl-set.js rename to packages/node_modules/ttl-set/index.js diff --git a/vendor/rspack.config.js b/vendor/rspack.config.js index 4221b3afc9c..34ceca02116 100644 --- a/vendor/rspack.config.js +++ b/vendor/rspack.config.js @@ -15,7 +15,7 @@ module.exports = { mode: 'production', devtool: false, output: { - filename: '[name].js', + filename: '[name]/index.js', libraryTarget: 'commonjs2', path: join(__dirname, '..', 'packages', 'node_modules'), clean: true From 0bf587965a61cc07048e19dc2f3f7dd8c49d6ac6 Mon Sep 17 00:00:00 2001 From: rochdev Date: Fri, 21 Nov 2025 12:45:32 -0500 Subject: [PATCH 26/95] fix source-map --- .../@datadog/openfeature-node-server/index.js | 2 +- .../node_modules/@datadog/sketches-js/index.js | 2 +- .../@opentelemetry/resources/index.js | 2 +- .../node_modules/crypto-randomuuid/index.js | 2 +- packages/node_modules/ignore/index.js | 2 +- .../node_modules/istanbul-lib-coverage/index.js | 2 +- packages/node_modules/jest-docblock/index.js | 2 +- packages/node_modules/limiter/index.js | 2 +- packages/node_modules/lodash.sortby/index.js | 2 +- .../module-details-from-path/index.js | 2 +- packages/node_modules/mutexify/index.js | 2 +- packages/node_modules/mutexify/promise/index.js | 1 + packages/node_modules/opentracing/index.js | 2 +- packages/node_modules/path-to-regexp/index.js | 2 +- packages/node_modules/protobufjs/index.js | 2 +- .../node_modules/protobufjs/minimal/index.js | 2 +- packages/node_modules/retry/index.js | 2 +- .../retry/lib/retry_operation/index.js | 2 +- packages/node_modules/rfdc/index.js | 2 +- packages/node_modules/semifies/index.js | 2 +- packages/node_modules/shell-quote/index.js | 2 +- packages/node_modules/source-map/index.js | 2 +- .../node_modules/source-map/lib/util/index.js | 2 +- packages/node_modules/source-map/mappings.wasm | Bin 0 -> 48526 bytes .../node_modules/tlhunter-sorted-set/index.js | 2 +- packages/node_modules/ttl-set/index.js | 2 +- vendor/rspack.config.js | 12 +++++++++++- 27 files changed, 36 insertions(+), 25 deletions(-) create mode 100644 packages/node_modules/mutexify/promise/index.js create mode 100644 packages/node_modules/source-map/mappings.wasm diff --git a/packages/node_modules/@datadog/openfeature-node-server/index.js b/packages/node_modules/@datadog/openfeature-node-server/index.js index fe5cac688f3..58ec21b3798 100644 --- a/packages/node_modules/@datadog/openfeature-node-server/index.js +++ b/packages/node_modules/@datadog/openfeature-node-server/index.js @@ -1 +1 @@ -(()=>{var e={5735:function(e){e.exports=function(e){"use strict";var t=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"];function r(e,t){var r=e[0],n=e[1],i=e[2],o=e[3];r+=(n&i|~n&o)+t[0]-0x28955b88|0,o+=((r=(r<<7|r>>>25)+n|0)&n|~r&i)+t[1]-0x173848aa|0,i+=((o=(o<<12|o>>>20)+r|0)&r|~o&n)+t[2]+0x242070db|0,n+=((i=(i<<17|i>>>15)+o|0)&o|~i&r)+t[3]-0x3e423112|0,r+=((n=(n<<22|n>>>10)+i|0)&i|~n&o)+t[4]-0xa83f051|0,o+=((r=(r<<7|r>>>25)+n|0)&n|~r&i)+t[5]+0x4787c62a|0,i+=((o=(o<<12|o>>>20)+r|0)&r|~o&n)+t[6]-0x57cfb9ed|0,n+=((i=(i<<17|i>>>15)+o|0)&o|~i&r)+t[7]-0x2b96aff|0,r+=((n=(n<<22|n>>>10)+i|0)&i|~n&o)+t[8]+0x698098d8|0,o+=((r=(r<<7|r>>>25)+n|0)&n|~r&i)+t[9]-0x74bb0851|0,i+=((o=(o<<12|o>>>20)+r|0)&r|~o&n)+t[10]-42063|0,n+=((i=(i<<17|i>>>15)+o|0)&o|~i&r)+t[11]-0x76a32842|0,r+=((n=(n<<22|n>>>10)+i|0)&i|~n&o)+t[12]+0x6b901122|0,o+=((r=(r<<7|r>>>25)+n|0)&n|~r&i)+t[13]-0x2678e6d|0,i+=((o=(o<<12|o>>>20)+r|0)&r|~o&n)+t[14]-0x5986bc72|0,n+=((i=(i<<17|i>>>15)+o|0)&o|~i&r)+t[15]+0x49b40821|0,r+=((n=(n<<22|n>>>10)+i|0)&o|i&~o)+t[1]-0x9e1da9e|0,o+=((r=(r<<5|r>>>27)+n|0)&i|n&~i)+t[6]-0x3fbf4cc0|0,i+=((o=(o<<9|o>>>23)+r|0)&n|r&~n)+t[11]+0x265e5a51|0,n+=((i=(i<<14|i>>>18)+o|0)&r|o&~r)+t[0]-0x16493856|0,r+=((n=(n<<20|n>>>12)+i|0)&o|i&~o)+t[5]-0x29d0efa3|0,o+=((r=(r<<5|r>>>27)+n|0)&i|n&~i)+t[10]+0x2441453|0,i+=((o=(o<<9|o>>>23)+r|0)&n|r&~n)+t[15]-0x275e197f|0,n+=((i=(i<<14|i>>>18)+o|0)&r|o&~r)+t[4]-0x182c0438|0,r+=((n=(n<<20|n>>>12)+i|0)&o|i&~o)+t[9]+0x21e1cde6|0,o+=((r=(r<<5|r>>>27)+n|0)&i|n&~i)+t[14]-0x3cc8f82a|0,i+=((o=(o<<9|o>>>23)+r|0)&n|r&~n)+t[3]-0xb2af279|0,n+=((i=(i<<14|i>>>18)+o|0)&r|o&~r)+t[8]+0x455a14ed|0,r+=((n=(n<<20|n>>>12)+i|0)&o|i&~o)+t[13]-0x561c16fb|0,o+=((r=(r<<5|r>>>27)+n|0)&i|n&~i)+t[2]-0x3105c08|0,i+=((o=(o<<9|o>>>23)+r|0)&n|r&~n)+t[7]+0x676f02d9|0,n+=((i=(i<<14|i>>>18)+o|0)&r|o&~r)+t[12]-0x72d5b376|0,r+=((n=(n<<20|n>>>12)+i|0)^i^o)+t[5]-378558|0,o+=((r=(r<<4|r>>>28)+n|0)^n^i)+t[8]-0x788e097f|0,i+=((o=(o<<11|o>>>21)+r|0)^r^n)+t[11]+0x6d9d6122|0,n+=((i=(i<<16|i>>>16)+o|0)^o^r)+t[14]-0x21ac7f4|0,r+=((n=(n<<23|n>>>9)+i|0)^i^o)+t[1]-0x5b4115bc|0,o+=((r=(r<<4|r>>>28)+n|0)^n^i)+t[4]+0x4bdecfa9|0,i+=((o=(o<<11|o>>>21)+r|0)^r^n)+t[7]-0x944b4a0|0,n+=((i=(i<<16|i>>>16)+o|0)^o^r)+t[10]-0x41404390|0,r+=((n=(n<<23|n>>>9)+i|0)^i^o)+t[13]+0x289b7ec6|0,o+=((r=(r<<4|r>>>28)+n|0)^n^i)+t[0]-0x155ed806|0,i+=((o=(o<<11|o>>>21)+r|0)^r^n)+t[3]-0x2b10cf7b|0,n+=((i=(i<<16|i>>>16)+o|0)^o^r)+t[6]+0x4881d05|0,r+=((n=(n<<23|n>>>9)+i|0)^i^o)+t[9]-0x262b2fc7|0,o+=((r=(r<<4|r>>>28)+n|0)^n^i)+t[12]-0x1924661b|0,i+=((o=(o<<11|o>>>21)+r|0)^r^n)+t[15]+0x1fa27cf8|0,n+=((i=(i<<16|i>>>16)+o|0)^o^r)+t[2]-0x3b53a99b|0,n=(n<<23|n>>>9)+i|0,r+=(i^(n|~o))+t[0]-0xbd6ddbc|0,r=(r<<6|r>>>26)+n|0,o+=(n^(r|~i))+t[7]+0x432aff97|0,o=(o<<10|o>>>22)+r|0,i+=(r^(o|~n))+t[14]-0x546bdc59|0,i=(i<<15|i>>>17)+o|0,n+=(o^(i|~r))+t[5]-0x36c5fc7|0,n=(n<<21|n>>>11)+i|0,r+=(i^(n|~o))+t[12]+0x655b59c3|0,r=(r<<6|r>>>26)+n|0,o+=(n^(r|~i))+t[3]-0x70f3336e|0,o=(o<<10|o>>>22)+r|0,i+=(r^(o|~n))+t[10]-1051523|0,i=(i<<15|i>>>17)+o|0,n+=(o^(i|~r))+t[1]-0x7a7ba22f|0,n=(n<<21|n>>>11)+i|0,r+=(i^(n|~o))+t[8]+0x6fa87e4f|0,r=(r<<6|r>>>26)+n|0,o+=(n^(r|~i))+t[15]-0x1d31920|0,o=(o<<10|o>>>22)+r|0,i+=(r^(o|~n))+t[6]-0x5cfebcec|0,i=(i<<15|i>>>17)+o|0,n+=(o^(i|~r))+t[13]+0x4e0811a1|0,n=(n<<21|n>>>11)+i|0,r+=(i^(n|~o))+t[4]-0x8ac817e|0,r=(r<<6|r>>>26)+n|0,o+=(n^(r|~i))+t[11]-0x42c50dcb|0,o=(o<<10|o>>>22)+r|0,i+=(r^(o|~n))+t[2]+0x2ad7d2bb|0,i=(i<<15|i>>>17)+o|0,n+=(o^(i|~r))+t[9]-0x14792c6f|0,n=(n<<21|n>>>11)+i|0,e[0]=r+e[0]|0,e[1]=n+e[1]|0,e[2]=i+e[2]|0,e[3]=o+e[3]|0}function n(e){var t,r=[];for(t=0;t<64;t+=4)r[t>>2]=e.charCodeAt(t)+(e.charCodeAt(t+1)<<8)+(e.charCodeAt(t+2)<<16)+(e.charCodeAt(t+3)<<24);return r}function i(e){var t,r=[];for(t=0;t<64;t+=4)r[t>>2]=e[t]+(e[t+1]<<8)+(e[t+2]<<16)+(e[t+3]<<24);return r}function o(e){var t,i,o,s,a,l,u=e.length,h=[0x67452301,-0x10325477,-0x67452302,0x10325476];for(t=64;t<=u;t+=64)r(h,n(e.substring(t-64,t)));for(i=(e=e.substring(t-64)).length,o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],t=0;t>2]|=e.charCodeAt(t)<<(t%4<<3);if(o[t>>2]|=128<<(t%4<<3),t>55)for(r(h,o),t=0;t<16;t+=1)o[t]=0;return a=parseInt((s=(s=8*u).toString(16).match(/(.*?)(.{0,8})$/))[2],16),l=parseInt(s[1],16)||0,o[14]=a,o[15]=l,r(h,o),h}function s(e){var r;for(r=0;r>8*r+4&15]+t[e>>8*r&15];return n}(e[r]);return e.join("")}function a(e){return/[\u0080-\uFFFF]/.test(e)&&(e=unescape(encodeURIComponent(e))),e}function l(e){var t,r=[],n=e.length;for(t=0;tu)?new ArrayBuffer(0):(o=new Uint8Array(i=new ArrayBuffer(n=u-l)),s=new Uint8Array(this,l,n),o.set(s),i)}}(),u.prototype.append=function(e){return this.appendBinary(a(e)),this},u.prototype.appendBinary=function(e){this._buff+=e,this._length+=e.length;var t,i=this._buff.length;for(t=64;t<=i;t+=64)r(this._hash,n(this._buff.substring(t-64,t)));return this._buff=this._buff.substring(t-64),this},u.prototype.end=function(e){var t,r,n=this._buff,i=n.length,o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(t=0;t>2]|=n.charCodeAt(t)<<(t%4<<3);return this._finish(o,i),r=s(this._hash),e&&(r=l(r)),this.reset(),r},u.prototype.reset=function(){return this._buff="",this._length=0,this._hash=[0x67452301,-0x10325477,-0x67452302,0x10325476],this},u.prototype.getState=function(){return{buff:this._buff,length:this._length,hash:this._hash.slice()}},u.prototype.setState=function(e){return this._buff=e.buff,this._length=e.length,this._hash=e.hash,this},u.prototype.destroy=function(){delete this._hash,delete this._buff,delete this._length},u.prototype._finish=function(e,t){var n,i,o,s=t;if(e[s>>2]|=128<<(s%4<<3),s>55)for(r(this._hash,e),s=0;s<16;s+=1)e[s]=0;i=parseInt((n=(n=8*this._length).toString(16).match(/(.*?)(.{0,8})$/))[2],16),o=parseInt(n[1],16)||0,e[14]=i,e[15]=o,r(this._hash,e)},u.hash=function(e,t){return u.hashBinary(a(e),t)},u.hashBinary=function(e,t){var r=s(o(e));return t?l(r):r},u.ArrayBuffer=function(){this.reset()},u.ArrayBuffer.prototype.append=function(e){var t,n,o,s=(t=this._buff.buffer,(n=new Uint8Array(t.byteLength+e.byteLength)).set(new Uint8Array(t)),n.set(new Uint8Array(e),t.byteLength),n),a=s.length;for(this._length+=e.byteLength,o=64;o<=a;o+=64)r(this._hash,i(s.subarray(o-64,o)));return this._buff=new Uint8Array(o-64>2]|=n[t]<<(t%4<<3);return this._finish(o,i),r=s(this._hash),e&&(r=l(r)),this.reset(),r},u.ArrayBuffer.prototype.reset=function(){return this._buff=new Uint8Array(0),this._length=0,this._hash=[0x67452301,-0x10325477,-0x67452302,0x10325476],this},u.ArrayBuffer.prototype.getState=function(){var e,t=u.prototype.getState.call(this);return e=t.buff,t.buff=String.fromCharCode.apply(null,new Uint8Array(e)),t},u.ArrayBuffer.prototype.setState=function(e){return e.buff=function(e,t){var r,n=e.length,i=new ArrayBuffer(n),o=new Uint8Array(i);for(r=0;r>2]|=e[t]<<(t%4<<3);if(o[t>>2]|=128<<(t%4<<3),t>55)for(r(h,o),t=0;t<16;t+=1)o[t]=0;return a=parseInt((s=(s=8*u).toString(16).match(/(.*?)(.{0,8})$/))[2],16),l=parseInt(s[1],16)||0,o[14]=a,o[15]=l,r(h,o),h}(new Uint8Array(e)));return t?l(n):n},u}()}},t={};function r(n){var i=t[n];if(void 0!==i)return i.exports;var o=t[n]={exports:{}};return e[n](o,o.exports,r),o.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};(()=>{"use strict";r.r(n),r.d(n,{DatadogNodeServerProvider:()=>ep});var e,t,i,o,s,a,l=r(5735),u=r.n(l);function h(e,t=""){return new(u())().append(t).append(e).end()}function c(e){return h(JSON.stringify({flag:{key:e.flag.key},subject:{id:e.subject.id,attributes:e.subject.attributes}}))}function d(e){return h(JSON.stringify(e))}class f{constructor(e){this.delegate=e}init(){return Promise.resolve()}has(e){return this.get(e)===d(e)}get(e){return this.delegate.get(c(e))}set(e){this.delegate.set(c(e),d(e))}entries(){return this.delegate.entries()}clear(){this.delegate.clear()}}class g{constructor(e){this.capacity=e,this.cache=new Map,this.size=this.cache.size}[(Symbol.toStringTag,Symbol.iterator)](){return this.cache[Symbol.iterator]()}forEach(e){this.cache.forEach(e)}entries(){return this.cache.entries()}clear(){this.cache.clear()}delete(e){return this.cache.delete(e)}keys(){return this.cache.keys()}values(){return this.cache.values()}has(e){return this.cache.has(e)}get(e){if(!this.has(e))return;let t=this.cache.get(e);return void 0!==t&&(this.delete(e),this.cache.set(e,t)),t}set(e,t){if(0===this.capacity)return this;if(this.cache.has(e))this.cache.delete(e);else if(this.cache.size>=this.capacity){let e=this.cache.keys().next().value;e&&this.delete(e)}return this.cache.set(e,t),this}}class v extends f{constructor(e){super(new g(e))}}var p=Object.defineProperty,E=Object.defineProperties,_=Object.getOwnPropertyDescriptors,y=Object.getOwnPropertySymbols,m=Object.prototype.hasOwnProperty,R=Object.prototype.propertyIsEnumerable,b=(e,t,r)=>t in e?p(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,O=(e,t)=>{for(var r in t||(t={}))m.call(t,r)&&b(e,r,t[r]);if(y)for(var r of y(t))R.call(t,r)&&b(e,r,t[r]);return e},A=(e,t,r)=>new Promise((n,i)=>{var o=e=>{try{a(r.next(e))}catch(e){i(e)}},s=e=>{try{a(r.throw(e))}catch(e){i(e)}},a=e=>e.done?n(e.value):Promise.resolve(e.value).then(o,s);a((r=r.apply(e,t)).next())}),x="ERROR",T=((e=T||{}).PROVIDER_NOT_READY="PROVIDER_NOT_READY",e.PROVIDER_FATAL="PROVIDER_FATAL",e.FLAG_NOT_FOUND="FLAG_NOT_FOUND",e.PARSE_ERROR="PARSE_ERROR",e.TYPE_MISMATCH="TYPE_MISMATCH",e.TARGETING_KEY_MISSING="TARGETING_KEY_MISSING",e.INVALID_CONTEXT="INVALID_CONTEXT",e.GENERAL="GENERAL",e),C=class e extends Error{constructor(t,r){super(t),Object.setPrototypeOf(this,e.prototype),this.name="OpenFeatureError",this.cause=null==r?void 0:r.cause}},P=class e extends C{constructor(t,r){super(t,r),Object.setPrototypeOf(this,e.prototype),this.name="FlagNotFoundError",this.code="FLAG_NOT_FOUND"}},N=class e extends C{constructor(t,r){super(t,r),Object.setPrototypeOf(this,e.prototype),this.name="GeneralError",this.code="GENERAL"}},I=class e extends C{constructor(t,r){super(t,r),Object.setPrototypeOf(this,e.prototype),this.name="InvalidContextError",this.code="INVALID_CONTEXT"}},S=class e extends C{constructor(t,r){super(t,r),Object.setPrototypeOf(this,e.prototype),this.name="ParseError",this.code="PARSE_ERROR"}},w=class e extends C{constructor(t,r){super(t,r),Object.setPrototypeOf(this,e.prototype),this.name="ProviderFatalError",this.code="PROVIDER_FATAL"}},D=class e extends C{constructor(t,r){super(t,r),Object.setPrototypeOf(this,e.prototype),this.name="ProviderNotReadyError",this.code="PROVIDER_NOT_READY"}},L=class e extends C{constructor(t,r){super(t,r),Object.setPrototypeOf(this,e.prototype),this.name="TargetingKeyMissingError",this.code="TARGETING_KEY_MISSING"}},k=class e extends C{constructor(t,r){super(t,r),Object.setPrototypeOf(this,e.prototype),this.name="TypeMismatchError",this.code="TYPE_MISMATCH"}},H=((t=H||{}).NOT_READY="NOT_READY",t.READY="READY",t.ERROR="ERROR",t.STALE="STALE",t.FATAL="FATAL",t),M=((i=M||{}).Ready="PROVIDER_READY",i.Error="PROVIDER_ERROR",i.ConfigurationChanged="PROVIDER_CONFIGURATION_CHANGED",i.Stale="PROVIDER_STALE",i),j=((o=j||{}).Ready="PROVIDER_READY",o.Error="PROVIDER_ERROR",o.ConfigurationChanged="PROVIDER_CONFIGURATION_CHANGED",o.ContextChanged="PROVIDER_CONTEXT_CHANGED",o.Reconciling="PROVIDER_RECONCILING",o.Stale="PROVIDER_STALE",o),G={READY:"PROVIDER_READY",ERROR:"PROVIDER_ERROR",FATAL:"PROVIDER_ERROR",STALE:"PROVIDER_STALE",RECONCILING:"PROVIDER_RECONCILING",NOT_READY:void 0},V=(e,t)=>!t&&"PROVIDER_READY"===e||G[t]===e,F=class{error(...e){console.error(...e)}warn(...e){console.warn(...e)}info(){}debug(){}},Y=["error","warn","info","debug"],U=class{constructor(e){this.fallbackLogger=new F;try{for(const t of Y)if(!e[t]||"function"!=typeof e[t])throw Error(`The provided logger is missing the ${t} method.`);this.logger=e}catch(e){console.error(e),console.error("Falling back to the default logger."),this.logger=this.fallbackLogger}}error(...e){this.log("error",...e)}warn(...e){this.log("warn",...e)}info(...e){this.log("info",...e)}debug(...e){this.log("debug",...e)}log(e,...t){try{this.logger[e](...t)}catch(r){this.fallbackLogger[e](...t)}}},K=class{constructor(e){this.globalLogger=e,this._handlers={PROVIDER_CONFIGURATION_CHANGED:new WeakMap,PROVIDER_CONTEXT_CHANGED:new WeakMap,PROVIDER_READY:new WeakMap,PROVIDER_ERROR:new WeakMap,PROVIDER_STALE:new WeakMap,PROVIDER_RECONCILING:new WeakMap}}emit(e,t){this.eventEmitter.emit(e,t)}addHandler(e,t){let r=e=>A(this,null,function*(){var r;try{yield t(e)}catch(e){null==(r=this._logger)||r.error("Error running event handler:",e)}}),n=this._handlers[e].get(t);this._handlers[e].set(t,[...n||[],r]),this.eventEmitter.on(e,r)}removeHandler(e,t){let r=this._handlers[e].get(t);if(r){let t=r.pop();t&&this.eventEmitter.removeListener(e,t)}}removeAllHandlers(e){e?this.eventEmitter.removeAllListeners(e):this.eventEmitter.removeAllListeners()}getHandlers(e){return this.eventEmitter.listeners(e)}setLogger(e){return this._eventLogger=new U(e),this}get _logger(){var e,t;return null!=(t=this._eventLogger)?t:null==(e=this.globalLogger)?void 0:e.call(this)}};function B(e){return"string"==typeof e?e:void 0}function $(e){return"object"==typeof e?e:void 0}function z(e){return null!=e}var W=class{constructor(e,t,r){var n,i,o;this._provider=e,this._status=t,this._pendingContextChanges=0,null==(n=e.events)||n.addHandler("PROVIDER_READY",()=>{this._status=r.READY}),null==(i=e.events)||i.addHandler("PROVIDER_STALE",()=>{this._status=r.STALE}),null==(o=e.events)||o.addHandler("PROVIDER_ERROR",e=>{(null==e?void 0:e.errorCode)==="PROVIDER_FATAL"?this._status=r.FATAL:this._status=r.ERROR})}get provider(){return this._provider}set provider(e){this._provider=e}get status(){return this._status}set status(e){this._status=e}get allContextChangesSettled(){return 0===this._pendingContextChanges}incrementPendingContextChanges(){this._pendingContextChanges++}decrementPendingContextChanges(){this._pendingContextChanges--}},X=class{constructor(e){this._hooks=[],this._context={},this._logger=new F,this._clientEventHandlers=new Map,this._domainScopedContext=new Map,this._clientEvents=new Map,this._runsOn=e}addHooks(...e){return this._hooks=[...this._hooks,...e],this}getHooks(){return this._hooks}clearHooks(){return this._hooks=[],this}setLogger(e){return this._logger=new U(e),this}get providerMetadata(){return this.getProviderMetadata()}getProviderMetadata(e){return this.getProviderForClient(e).metadata}addHandler(e,t,r){[...new Map([[void 0,this._defaultProvider]]),...this._domainScopedProviders].forEach(r=>{var n;let i=r[0],o=r[1].provider;if(V(e,r[1].status))try{t({domain:i,providerName:o.metadata.name})}catch(e){null==(n=this._logger)||n.error("Error running event handler:",e)}}),this._apiEmitter.addHandler(e,t),(null==r?void 0:r.signal)&&"function"==typeof r.signal.addEventListener&&r.signal.addEventListener("abort",()=>{this.removeHandler(e,t)})}removeHandler(e,t){this._apiEmitter.removeHandler(e,t)}clearHandlers(){this._apiEmitter.removeAllHandlers()}getHandlers(e){return this._apiEmitter.getHandlers(e)}setAwaitableProvider(e,t){var r,n,i,o,s,a,l,u;let h,c=B(e),d=null!=(r=$(e))?r:$(t);if(!d)return void this._logger.debug("No provider defined, ignoring setProvider call");let f=this.getProviderForClient(c),g=d.metadata.name;if(f===d)return void this._logger.debug("Provider is already set, ignoring setProvider call");if(d.runsOn){if(d.runsOn!==this._runsOn)throw new N(`Provider '${d.metadata.name}' is intended for use on the ${d.runsOn}.`)}else this._logger.debug(`Provider '${d.metadata.name}' has not defined its intended use.`);let v=this.getAssociatedEventEmitters(c),p=new W(d,this._statusEnumType.NOT_READY,this._statusEnumType);return"function"!=typeof d.initialize||this.allProviders.includes(d)?(p.status=this._statusEnumType.READY,v.forEach(e=>{null==e||e.emit("PROVIDER_READY",{clientName:c,domain:c,providerName:g})}),null==(a=this._apiEmitter)||a.emit("PROVIDER_READY",{clientName:c,domain:c,providerName:g})):h=null==(s=null==(o=null==(i=d.initialize)?void 0:i.call(d,c&&null!=(n=this._domainScopedContext.get(c))?n:this._context))?void 0:o.then(()=>{var e;p.status=this._statusEnumType.READY,this.getAssociatedEventEmitters(c).forEach(e=>{null==e||e.emit("PROVIDER_READY",{clientName:c,domain:c,providerName:g})}),null==(e=this._apiEmitter)||e.emit("PROVIDER_READY",{clientName:c,domain:c,providerName:g})}))?void 0:s.catch(e=>{var t;throw(null==e?void 0:e.code)==="PROVIDER_FATAL"?p.status=this._statusEnumType.FATAL:p.status=this._statusEnumType.ERROR,this.getAssociatedEventEmitters(c).forEach(t=>{null==t||t.emit("PROVIDER_ERROR",{clientName:c,domain:c,providerName:g,message:null==e?void 0:e.message})}),null==(t=this._apiEmitter)||t.emit("PROVIDER_ERROR",{clientName:c,domain:c,providerName:g,message:null==e?void 0:e.message}),e}),c?this._domainScopedProviders.set(c,p):this._defaultProvider=p,this.transferListeners(f,d,c,v),this.allProviders.includes(f)||null==(u=null==(l=null==f?void 0:f.onClose)?void 0:l.call(f))||u.catch(e=>{this._logger.error(`error closing provider: ${null==e?void 0:e.message}, ${null==e?void 0:e.stack}`)}),h}getProviderForClient(e){var t,r;return e&&null!=(r=null==(t=this._domainScopedProviders.get(e))?void 0:t.provider)?r:this._defaultProvider.provider}buildAndCacheEventEmitterForClient(e){let t=this._clientEvents.get(e);if(t)return t;let r=this._createEventEmitter();this._clientEvents.set(e,r);let n=this.getProviderForClient(e);return Object.values(j).forEach(t=>{var i;return null==(i=n.events)?void 0:i.addHandler(t,i=>A(this,null,function*(){r.emit(t,E(O({},i),_({clientName:e,domain:e,providerName:n.metadata.name})))}))}),r}getUnboundEmitters(){let e=[...this._domainScopedProviders.keys()];return[...[...this._clientEvents.keys()].filter(z).filter(t=>!e.includes(t)).map(e=>this._clientEvents.get(e)),this._clientEvents.get(void 0)].filter(z)}getAssociatedEventEmitters(e){return e?[this.buildAndCacheEventEmitterForClient(e)]:this.getUnboundEmitters()}transferListeners(e,t,r,n){var i;null==(i=this._clientEventHandlers.get(r))||i.forEach(t=>{var r;return null==(r=e.events)?void 0:r.removeHandler(...t)});let o=Object.values(j).map(e=>{let i=i=>A(this,null,function*(){n.forEach(n=>{null==n||n.emit(e,E(O({},i),_({clientName:r,domain:r,providerName:t.metadata.name})))}),this._apiEmitter.emit(e,E(O({},i),_({clientName:r,domain:r,providerName:t.metadata.name})))});return[e,i]});this._clientEventHandlers.set(r,o),o.forEach(e=>{var r;return null==(r=t.events)?void 0:r.addHandler(...e)})}close(){return A(this,null,function*(){var e,t;try{yield null==(t=null==(e=this==null?void 0:this._defaultProvider.provider)?void 0:e.onClose)?void 0:t.call(e)}catch(e){this.handleShutdownError(this._defaultProvider.provider,e)}let r=Array.from(this._domainScopedProviders);yield Promise.all(r.map(e=>A(this,[e],function*([,e]){var t,r;try{yield null==(r=null==e?void 0:(t=e.provider).onClose)?void 0:r.call(t)}catch(t){this.handleShutdownError(null==e?void 0:e.provider,t)}})))})}clearProvidersAndSetDefault(e){return A(this,null,function*(){try{yield this.close()}catch(e){this._logger.error("Unable to cleanly close providers. Resetting to the default configuration.")}finally{this._domainScopedProviders.clear(),this._defaultProvider=new W(e,this._statusEnumType.NOT_READY,this._statusEnumType)}})}get allProviders(){return[...[...this._domainScopedProviders.values()].map(e=>e.provider),this._defaultProvider.provider]}handleShutdownError(e,t){this._logger.error(`Error during shutdown of provider ${e.metadata.name}: ${t}`),this._logger.error(null==t?void 0:t.stack)}};let J=require("node:events");require("async_hooks");var q=Object.defineProperty,Q=Object.defineProperties,Z=Object.getOwnPropertyDescriptors,ee=Object.getOwnPropertySymbols,et=Object.prototype.hasOwnProperty,er=Object.prototype.propertyIsEnumerable,en=(e,t,r)=>t in e?q(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,ei=(e,t)=>{for(var r in t||(t={}))et.call(t,r)&&en(e,r,t[r]);if(ee)for(var r of ee(t))er.call(t,r)&&en(e,r,t[r]);return e},eo=(e,t,r)=>new Promise((n,i)=>{var o=e=>{try{a(r.next(e))}catch(e){i(e)}},s=e=>{try{a(r.throw(e))}catch(e){i(e)}},a=e=>e.done?n(e.value):Promise.resolve(e.value).then(o,s);a((r=r.apply(e,t)).next())}),es=new class{constructor(){this.metadata={name:"No-op Provider"}}resolveBooleanEvaluation(e,t){return this.noOp(t)}resolveStringEvaluation(e,t){return this.noOp(t)}resolveNumberEvaluation(e,t){return this.noOp(t)}resolveObjectEvaluation(e,t){return this.noOp(t)}noOp(e){return Promise.resolve({value:e,reason:"No-op"})}},ea=class{constructor(e,t,r,n,i,o,s,a,l={}){this.providerAccessor=e,this.providerStatusAccessor=t,this.emitterAccessor=r,this.apiContextAccessor=n,this.apiHooksAccessor=i,this.transactionContextAccessor=o,this.globalLogger=s,this.options=a,this._hooks=[],this._context=l}get metadata(){var e,t;return{name:null!=(e=this.options.domain)?e:this.options.name,domain:null!=(t=this.options.domain)?t:this.options.name,version:this.options.version,providerMetadata:this.providerAccessor().metadata}}get providerStatus(){return this.providerStatusAccessor()}addHandler(e,t,r){var n;if(this.emitterAccessor().addHandler(e,t),V(e,this._providerStatus))try{t({clientName:this.metadata.name,domain:this.metadata.domain,providerName:this._provider.metadata.name})}catch(e){null==(n=this._logger)||n.error("Error running event handler:",e)}(null==r?void 0:r.signal)&&"function"==typeof r.signal.addEventListener&&r.signal.addEventListener("abort",()=>{this.removeHandler(e,t)})}removeHandler(e,t){this.emitterAccessor().removeHandler(e,t)}getHandlers(e){return this.emitterAccessor().getHandlers(e)}setLogger(e){return this._clientLogger=new U(e),this}setContext(e){return this._context=e,this}getContext(){return this._context}addHooks(...e){return this._hooks=[...this._hooks,...e],this}getHooks(){return this._hooks}clearHooks(){return this._hooks=[],this}getBooleanValue(e,t,r,n){return eo(this,null,function*(){return(yield this.getBooleanDetails(e,t,r,n)).value})}getBooleanDetails(e,t,r,n){return this.evaluate(e,this._provider.resolveBooleanEvaluation,t,"boolean",r,n)}getStringValue(e,t,r,n){return eo(this,null,function*(){return(yield this.getStringDetails(e,t,r,n)).value})}getStringDetails(e,t,r,n){return this.evaluate(e,this._provider.resolveStringEvaluation,t,"string",r,n)}getNumberValue(e,t,r,n){return eo(this,null,function*(){return(yield this.getNumberDetails(e,t,r,n)).value})}getNumberDetails(e,t,r,n){return this.evaluate(e,this._provider.resolveNumberEvaluation,t,"number",r,n)}getObjectValue(e,t,r,n){return eo(this,null,function*(){return(yield this.getObjectDetails(e,t,r,n)).value})}getObjectDetails(e,t,r,n){return this.evaluate(e,this._provider.resolveObjectEvaluation,t,"object",r,n)}track(e,t={},r={}){var n,i;try{if(this.shortCircuitIfNotReady(),"function"==typeof this._provider.track){let o=Object.freeze(this.mergeContexts(t));return null==(i=(n=this._provider).track)?void 0:i.call(n,e,o,r)}this._logger.debug("Provider does not support the track function; will no-op.")}catch(e){this._logger.debug("Error recording tracking event.",e)}}evaluate(e,t,r,n){return eo(this,arguments,function*(e,t,r,n,i={},o={}){var s;let a,l=[...this.apiHooksAccessor(),...this.getHooks(),...o.hooks||[],...this._provider.hooks||[]],u=[...l].reverse(),h=this.mergeContexts(i),c={flagKey:e,defaultValue:r,flagValueType:n,clientMetadata:this.metadata,providerMetadata:this._provider.metadata,context:h,logger:this._logger};try{let n,i,h=yield this.beforeHooks(l,c,o);this.shortCircuitIfNotReady();let d=yield t.call(this._provider,e,r,h,this._logger),f=(n=ei({},d),i={flagMetadata:Object.freeze(null!=(s=d.flagMetadata)?s:{}),flagKey:e},Q(n,Z(i)));if(f.errorCode){let t=((e,t)=>{switch(e){case"FLAG_NOT_FOUND":return new P(t);case"PARSE_ERROR":return new S(t);case"TYPE_MISMATCH":return new k(t);case"TARGETING_KEY_MISSING":return new L(t);case"INVALID_CONTEXT":return new I(t);case"PROVIDER_NOT_READY":return new D(t);case"PROVIDER_FATAL":return new w(t);default:return new N(t)}})(f.errorCode,f.errorMessage);yield this.errorHooks(u,c,t,o),a=this.getErrorEvaluationDetails(e,r,t,f.flagMetadata)}else yield this.afterHooks(u,c,f,o),a=f}catch(t){yield this.errorHooks(u,c,t,o),a=this.getErrorEvaluationDetails(e,r,t)}return yield this.finallyHooks(u,c,a,o),a})}beforeHooks(e,t,r){return eo(this,null,function*(){var n;for(let i of e)Object.freeze(t),Object.assign(t.context,ei(ei({},t.context),(yield null==(n=null==i?void 0:i.before)?void 0:n.call(i,t,Object.freeze(r.hookHints)))));return Object.freeze(t.context)})}afterHooks(e,t,r,n){return eo(this,null,function*(){var i;for(let o of e)yield null==(i=null==o?void 0:o.after)?void 0:i.call(o,t,r,n.hookHints)})}errorHooks(e,t,r,n){return eo(this,null,function*(){var i;for(let o of e)try{yield null==(i=null==o?void 0:o.error)?void 0:i.call(o,t,r,n.hookHints)}catch(e){this._logger.error(`Unhandled error during 'error' hook: ${e}`),e instanceof Error&&this._logger.error(e.stack),this._logger.error(null==e?void 0:e.stack)}})}finallyHooks(e,t,r,n){return eo(this,null,function*(){var i;for(let o of e)try{yield null==(i=null==o?void 0:o.finally)?void 0:i.call(o,t,r,n.hookHints)}catch(e){this._logger.error(`Unhandled error during 'finally' hook: ${e}`),e instanceof Error&&this._logger.error(e.stack),this._logger.error(null==e?void 0:e.stack)}})}get _provider(){return this.providerAccessor()}get _providerStatus(){return this.providerStatusAccessor()}get _logger(){return this._clientLogger||this.globalLogger()}mergeContexts(e){return ei(ei(ei(ei({},this.apiContextAccessor()),this.transactionContextAccessor()),this._context),e)}shortCircuitIfNotReady(){if(this.providerStatus===H.NOT_READY)throw new D("provider has not yet initialized");if(this.providerStatus===H.FATAL)throw new w("provider is in an irrecoverable error state")}getErrorEvaluationDetails(e,t,r,n={}){let i=null==r?void 0:r.message;return{errorCode:(null==r?void 0:r.code)||T.GENERAL,errorMessage:i,value:t,reason:x,flagMetadata:Object.freeze(n),flagKey:e}}},el=class extends K{constructor(){super(),this.eventEmitter=new J.EventEmitter({captureRejections:!0}),this.eventEmitter.on("error",e=>{var t;null==(t=this._logger)||t.error("Error running event handler:",e)})}},eu=new class{getTransactionContext(){return{}}setTransactionContext(e,t,...r){t(...r)}},eh=Symbol.for("@openfeature/js-sdk/api"),ec=globalThis;(class e extends X{constructor(){super("server"),this._statusEnumType=H,this._apiEmitter=new el,this._defaultProvider=new W(es,H.NOT_READY,this._statusEnumType),this._domainScopedProviders=new Map,this._createEventEmitter=()=>new el,this._transactionContextPropagator=eu}static getInstance(){let t=ec[eh];if(t)return t;let r=new e;return ec[eh]=r,r}getProviderStatus(e){var t,r;return e&&null!=(r=null==(t=this._domainScopedProviders.get(e))?void 0:t.status)?r:this._defaultProvider.status}setProviderAndWait(e,t){return eo(this,null,function*(){let r=B(e),n=r?$(t):$(e);yield this.setAwaitableProvider(r,n)})}setProvider(e,t){let r=B(e),n=r?$(t):$(e);return Promise.resolve(this.setAwaitableProvider(r,n)).catch(e=>{this._logger.error("Error during provider initialization:",e)}),this}getProvider(e){return this.getProviderForClient(e)}setContext(e){return this._context=e,this}getContext(){return this._context}getClient(e,t,r){var n,i;let o=B(e);return new ea(()=>this.getProviderForClient(o),()=>this.getProviderStatus(o),()=>this.buildAndCacheEventEmitterForClient(o),()=>this.getContext(),()=>this.getHooks(),()=>this.getTransactionContext(),()=>this._logger,{domain:o,version:B(t)},null!=(i=null!=(n=$(e))?n:$(t))?i:$(r))}clearProviders(){return super.clearProvidersAndSetDefault(es)}setTransactionContextPropagator(e){let t="Invalid TransactionContextPropagator, will not be set: ";return"function"!=typeof(null==e?void 0:e.getTransactionContext)?this._logger.error(`${t}: getTransactionContext is not a function.`):"function"!=typeof(null==e?void 0:e.setTransactionContext)?this._logger.error(`${t}: setTransactionContext is not a function.`):this._transactionContextPropagator=e,this}setTransactionContext(e,t,...r){this._transactionContextPropagator.setTransactionContext(e,t,...r)}getTransactionContext(){try{return this._transactionContextPropagator.getTransactionContext()}catch(e){return this._logger.error(`Error getting transaction context: ${null==e?void 0:e.message}, returning empty context.`),this._logger.error(null==e?void 0:e.stack),{}}}}).getInstance(),(s=a||(a={})).MATCHES="MATCHES",s.NOT_MATCHES="NOT_MATCHES",s.GTE="GTE",s.GT="GT",s.LTE="LTE",s.LT="LT",s.ONE_OF="ONE_OF",s.NOT_ONE_OF="NOT_ONE_OF",s.IS_NULL="IS_NULL";class ed{}class ef extends ed{getShard(e,t){return parseInt(h(e).slice(0,8),16)%t}}function eg(e,t,r,n,i,o){if(!e)return{value:n,reason:"ERROR",errorCode:T.PROVIDER_NOT_READY};let{targetingKey:s,...l}=i;if(!s)return{value:n,reason:"ERROR",errorCode:T.TARGETING_KEY_MISSING};let u={id:s,...l};try{return function(e,t,r,n,i,o){if(!(null==e?void 0:e.enabled))return o.debug("returning default assignment because flag is disabled",{flagKey:e?e.key:"undefined",subjectKey:r}),{value:i,reason:"DISABLED"};if(!function(e,t){if("boolean"===e)return"BOOLEAN"===t;if("string"===e)return"STRING"===t;if("number"===e)return"INTEGER"===t||"NUMERIC"===t;if("object"===e)return"JSON"===t;throw Error(`Invalid expected type: ${e}`)}(t,e.variationType))return o.debug("variant value type mismatch, returning default value",{flagKey:e.key,subjectKey:r,expectedType:t,variantType:e.variationType}),{value:i,reason:x,errorCode:T.TYPE_MISMATCH};let s=new Date;for(let t of e.allocations){if(t.startAt&&s=new Date(t.endAt)){o.debug("allocation after end date",{flagKey:e.key,subjectKey:r,allocationKey:t.key,endAt:t.endAt});continue}if(!function(e,t,r){return null==e||!e.length||(r.debug("evaluating rules",{rules:JSON.stringify(e),subjectAttributes:t}),e.some(e=>!(function(e,t){return t.map(t=>(function(e,t){var r,n,i;let o=e[t.attribute];if(t.operator===a.IS_NULL)return t.value?null==o:null!=o;if(null!=o)switch(t.operator){case a.GTE:case a.GT:case a.LTE:case a.LT:return r=o,n=t.value,((e,r)=>t.operator===a.GTE?e>=r:t.operator===a.GT?e>r:t.operator===a.LTE?e<=r:e{let o=function(e,t,r){var n,i;let o=new ef().getShard((n=e.salt,i=t,`${n}-${i}`),e.totalShards);return e.ranges.some(e=>{var t,r;return t=o,(r=e).start<=t&&t{this.resolve=()=>{this.cleanup(),e()},this.reject=e=>{this.cleanup(),t(e)}}),new Promise(()=>{this.timeoutId=setTimeout(()=>{t()},e)})])}async wait(){try{await this.promise}finally{this.cleanup()}}complete(){this.resolve&&this.resolve()}fail(e){this.reject&&this.reject(e)}isInitializing(){return void 0!==this.resolve}cleanup(){this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=void 0),this.resolve=void 0,this.reject=void 0}}class ep{constructor(e){this.options=e,this.metadata={name:"datadog-node-server"},this.runsOn="server",this.hooks=[],this.events=new el,this.exposureCache=new v(5e4)}getConfiguration(){return this.configuration}setConfiguration(e){var t,r,n;let i=null==(t=this.configuration)?void 0:t.createdAt,o=!!this.configuration;if(o&&this.configuration!==e){this.events.emit(M.ConfigurationChanged),i!==(null==e?void 0:e.createdAt)&&(null==(r=this.exposureCache)||r.clear()),this.configuration=e;return}this.configuration=e,(null==(n=this.initController)?void 0:n.isInitializing())?this.initController.complete():o||this.events.emit(M.Ready)}setError(e){var t;(null==(t=this.initController)?void 0:t.isInitializing())?this.initController.fail(e):this.events.emit(M.Error,{error:e})}async initialize(){var e,t;if(this.configuration)return;let r=null!=(e=this.options.initializationTimeoutMs)?e:3e4;this.initController=new ev(r,()=>this.setError(Error(`Initialization timeout after ${r}ms`))),await this.initController.wait(),await (null==(t=this.exposureCache)?void 0:t.init())}async resolveBooleanEvaluation(e,t,r,n){let i=eg(this.configuration,"boolean",e,t,r,n);return this.handleExposure(e,r,i),i}async resolveStringEvaluation(e,t,r,n){let i=eg(this.configuration,"string",e,t,r,n);return this.handleExposure(e,r,i),i}async resolveNumberEvaluation(e,t,r,n){let i=eg(this.configuration,"number",e,t,r,n);return this.handleExposure(e,r,i),i}async resolveObjectEvaluation(e,t,r,n){let i=eg(this.configuration,"object",e,t,r,n);return this.handleExposure(e,r,i),i}handleExposure(e,t,r){var n,i,o;let s=Date.now(),a=function(e,t){var r,n;if(!(null==(r=t.flagMetadata)?void 0:r.doLog))return;let i=null==(n=t.flagMetadata)?void 0:n.allocationKey,o=t.variant;if(!i||!o)return;let{targetingKey:s="",...a}=e;return{allocation:{key:i},flag:{key:t.flagKey},variant:{key:o},subject:{id:s,attributes:a}}}(t,{...r,flagKey:e,flagMetadata:null!=(n=r.flagMetadata)?n:{}});!a||(null==(i=this.exposureCache)?void 0:i.has(a))||this.options.exposureChannel.hasSubscribers&&(this.options.exposureChannel.publish({...a,timestamp:s}),null==(o=this.exposureCache)||o.set(a))}}})(),module.exports=n})(); \ No newline at end of file +(()=>{var e={694:function(e){e.exports=function(e){"use strict";var t=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"];function r(e,t){var r=e[0],n=e[1],i=e[2],o=e[3];r+=(n&i|~n&o)+t[0]-0x28955b88|0,o+=((r=(r<<7|r>>>25)+n|0)&n|~r&i)+t[1]-0x173848aa|0,i+=((o=(o<<12|o>>>20)+r|0)&r|~o&n)+t[2]+0x242070db|0,n+=((i=(i<<17|i>>>15)+o|0)&o|~i&r)+t[3]-0x3e423112|0,r+=((n=(n<<22|n>>>10)+i|0)&i|~n&o)+t[4]-0xa83f051|0,o+=((r=(r<<7|r>>>25)+n|0)&n|~r&i)+t[5]+0x4787c62a|0,i+=((o=(o<<12|o>>>20)+r|0)&r|~o&n)+t[6]-0x57cfb9ed|0,n+=((i=(i<<17|i>>>15)+o|0)&o|~i&r)+t[7]-0x2b96aff|0,r+=((n=(n<<22|n>>>10)+i|0)&i|~n&o)+t[8]+0x698098d8|0,o+=((r=(r<<7|r>>>25)+n|0)&n|~r&i)+t[9]-0x74bb0851|0,i+=((o=(o<<12|o>>>20)+r|0)&r|~o&n)+t[10]-42063|0,n+=((i=(i<<17|i>>>15)+o|0)&o|~i&r)+t[11]-0x76a32842|0,r+=((n=(n<<22|n>>>10)+i|0)&i|~n&o)+t[12]+0x6b901122|0,o+=((r=(r<<7|r>>>25)+n|0)&n|~r&i)+t[13]-0x2678e6d|0,i+=((o=(o<<12|o>>>20)+r|0)&r|~o&n)+t[14]-0x5986bc72|0,n+=((i=(i<<17|i>>>15)+o|0)&o|~i&r)+t[15]+0x49b40821|0,r+=((n=(n<<22|n>>>10)+i|0)&o|i&~o)+t[1]-0x9e1da9e|0,o+=((r=(r<<5|r>>>27)+n|0)&i|n&~i)+t[6]-0x3fbf4cc0|0,i+=((o=(o<<9|o>>>23)+r|0)&n|r&~n)+t[11]+0x265e5a51|0,n+=((i=(i<<14|i>>>18)+o|0)&r|o&~r)+t[0]-0x16493856|0,r+=((n=(n<<20|n>>>12)+i|0)&o|i&~o)+t[5]-0x29d0efa3|0,o+=((r=(r<<5|r>>>27)+n|0)&i|n&~i)+t[10]+0x2441453|0,i+=((o=(o<<9|o>>>23)+r|0)&n|r&~n)+t[15]-0x275e197f|0,n+=((i=(i<<14|i>>>18)+o|0)&r|o&~r)+t[4]-0x182c0438|0,r+=((n=(n<<20|n>>>12)+i|0)&o|i&~o)+t[9]+0x21e1cde6|0,o+=((r=(r<<5|r>>>27)+n|0)&i|n&~i)+t[14]-0x3cc8f82a|0,i+=((o=(o<<9|o>>>23)+r|0)&n|r&~n)+t[3]-0xb2af279|0,n+=((i=(i<<14|i>>>18)+o|0)&r|o&~r)+t[8]+0x455a14ed|0,r+=((n=(n<<20|n>>>12)+i|0)&o|i&~o)+t[13]-0x561c16fb|0,o+=((r=(r<<5|r>>>27)+n|0)&i|n&~i)+t[2]-0x3105c08|0,i+=((o=(o<<9|o>>>23)+r|0)&n|r&~n)+t[7]+0x676f02d9|0,n+=((i=(i<<14|i>>>18)+o|0)&r|o&~r)+t[12]-0x72d5b376|0,r+=((n=(n<<20|n>>>12)+i|0)^i^o)+t[5]-378558|0,o+=((r=(r<<4|r>>>28)+n|0)^n^i)+t[8]-0x788e097f|0,i+=((o=(o<<11|o>>>21)+r|0)^r^n)+t[11]+0x6d9d6122|0,n+=((i=(i<<16|i>>>16)+o|0)^o^r)+t[14]-0x21ac7f4|0,r+=((n=(n<<23|n>>>9)+i|0)^i^o)+t[1]-0x5b4115bc|0,o+=((r=(r<<4|r>>>28)+n|0)^n^i)+t[4]+0x4bdecfa9|0,i+=((o=(o<<11|o>>>21)+r|0)^r^n)+t[7]-0x944b4a0|0,n+=((i=(i<<16|i>>>16)+o|0)^o^r)+t[10]-0x41404390|0,r+=((n=(n<<23|n>>>9)+i|0)^i^o)+t[13]+0x289b7ec6|0,o+=((r=(r<<4|r>>>28)+n|0)^n^i)+t[0]-0x155ed806|0,i+=((o=(o<<11|o>>>21)+r|0)^r^n)+t[3]-0x2b10cf7b|0,n+=((i=(i<<16|i>>>16)+o|0)^o^r)+t[6]+0x4881d05|0,r+=((n=(n<<23|n>>>9)+i|0)^i^o)+t[9]-0x262b2fc7|0,o+=((r=(r<<4|r>>>28)+n|0)^n^i)+t[12]-0x1924661b|0,i+=((o=(o<<11|o>>>21)+r|0)^r^n)+t[15]+0x1fa27cf8|0,n+=((i=(i<<16|i>>>16)+o|0)^o^r)+t[2]-0x3b53a99b|0,n=(n<<23|n>>>9)+i|0,r+=(i^(n|~o))+t[0]-0xbd6ddbc|0,r=(r<<6|r>>>26)+n|0,o+=(n^(r|~i))+t[7]+0x432aff97|0,o=(o<<10|o>>>22)+r|0,i+=(r^(o|~n))+t[14]-0x546bdc59|0,i=(i<<15|i>>>17)+o|0,n+=(o^(i|~r))+t[5]-0x36c5fc7|0,n=(n<<21|n>>>11)+i|0,r+=(i^(n|~o))+t[12]+0x655b59c3|0,r=(r<<6|r>>>26)+n|0,o+=(n^(r|~i))+t[3]-0x70f3336e|0,o=(o<<10|o>>>22)+r|0,i+=(r^(o|~n))+t[10]-1051523|0,i=(i<<15|i>>>17)+o|0,n+=(o^(i|~r))+t[1]-0x7a7ba22f|0,n=(n<<21|n>>>11)+i|0,r+=(i^(n|~o))+t[8]+0x6fa87e4f|0,r=(r<<6|r>>>26)+n|0,o+=(n^(r|~i))+t[15]-0x1d31920|0,o=(o<<10|o>>>22)+r|0,i+=(r^(o|~n))+t[6]-0x5cfebcec|0,i=(i<<15|i>>>17)+o|0,n+=(o^(i|~r))+t[13]+0x4e0811a1|0,n=(n<<21|n>>>11)+i|0,r+=(i^(n|~o))+t[4]-0x8ac817e|0,r=(r<<6|r>>>26)+n|0,o+=(n^(r|~i))+t[11]-0x42c50dcb|0,o=(o<<10|o>>>22)+r|0,i+=(r^(o|~n))+t[2]+0x2ad7d2bb|0,i=(i<<15|i>>>17)+o|0,n+=(o^(i|~r))+t[9]-0x14792c6f|0,n=(n<<21|n>>>11)+i|0,e[0]=r+e[0]|0,e[1]=n+e[1]|0,e[2]=i+e[2]|0,e[3]=o+e[3]|0}function n(e){var t,r=[];for(t=0;t<64;t+=4)r[t>>2]=e.charCodeAt(t)+(e.charCodeAt(t+1)<<8)+(e.charCodeAt(t+2)<<16)+(e.charCodeAt(t+3)<<24);return r}function i(e){var t,r=[];for(t=0;t<64;t+=4)r[t>>2]=e[t]+(e[t+1]<<8)+(e[t+2]<<16)+(e[t+3]<<24);return r}function o(e){var t,i,o,s,a,l,u=e.length,h=[0x67452301,-0x10325477,-0x67452302,0x10325476];for(t=64;t<=u;t+=64)r(h,n(e.substring(t-64,t)));for(i=(e=e.substring(t-64)).length,o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],t=0;t>2]|=e.charCodeAt(t)<<(t%4<<3);if(o[t>>2]|=128<<(t%4<<3),t>55)for(r(h,o),t=0;t<16;t+=1)o[t]=0;return a=parseInt((s=(s=8*u).toString(16).match(/(.*?)(.{0,8})$/))[2],16),l=parseInt(s[1],16)||0,o[14]=a,o[15]=l,r(h,o),h}function s(e){var r;for(r=0;r>8*r+4&15]+t[e>>8*r&15];return n}(e[r]);return e.join("")}function a(e){return/[\u0080-\uFFFF]/.test(e)&&(e=unescape(encodeURIComponent(e))),e}function l(e){var t,r=[],n=e.length;for(t=0;tu)?new ArrayBuffer(0):(o=new Uint8Array(i=new ArrayBuffer(n=u-l)),s=new Uint8Array(this,l,n),o.set(s),i)}}(),u.prototype.append=function(e){return this.appendBinary(a(e)),this},u.prototype.appendBinary=function(e){this._buff+=e,this._length+=e.length;var t,i=this._buff.length;for(t=64;t<=i;t+=64)r(this._hash,n(this._buff.substring(t-64,t)));return this._buff=this._buff.substring(t-64),this},u.prototype.end=function(e){var t,r,n=this._buff,i=n.length,o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(t=0;t>2]|=n.charCodeAt(t)<<(t%4<<3);return this._finish(o,i),r=s(this._hash),e&&(r=l(r)),this.reset(),r},u.prototype.reset=function(){return this._buff="",this._length=0,this._hash=[0x67452301,-0x10325477,-0x67452302,0x10325476],this},u.prototype.getState=function(){return{buff:this._buff,length:this._length,hash:this._hash.slice()}},u.prototype.setState=function(e){return this._buff=e.buff,this._length=e.length,this._hash=e.hash,this},u.prototype.destroy=function(){delete this._hash,delete this._buff,delete this._length},u.prototype._finish=function(e,t){var n,i,o,s=t;if(e[s>>2]|=128<<(s%4<<3),s>55)for(r(this._hash,e),s=0;s<16;s+=1)e[s]=0;i=parseInt((n=(n=8*this._length).toString(16).match(/(.*?)(.{0,8})$/))[2],16),o=parseInt(n[1],16)||0,e[14]=i,e[15]=o,r(this._hash,e)},u.hash=function(e,t){return u.hashBinary(a(e),t)},u.hashBinary=function(e,t){var r=s(o(e));return t?l(r):r},u.ArrayBuffer=function(){this.reset()},u.ArrayBuffer.prototype.append=function(e){var t,n,o,s=(t=this._buff.buffer,(n=new Uint8Array(t.byteLength+e.byteLength)).set(new Uint8Array(t)),n.set(new Uint8Array(e),t.byteLength),n),a=s.length;for(this._length+=e.byteLength,o=64;o<=a;o+=64)r(this._hash,i(s.subarray(o-64,o)));return this._buff=new Uint8Array(o-64>2]|=n[t]<<(t%4<<3);return this._finish(o,i),r=s(this._hash),e&&(r=l(r)),this.reset(),r},u.ArrayBuffer.prototype.reset=function(){return this._buff=new Uint8Array(0),this._length=0,this._hash=[0x67452301,-0x10325477,-0x67452302,0x10325476],this},u.ArrayBuffer.prototype.getState=function(){var e,t=u.prototype.getState.call(this);return e=t.buff,t.buff=String.fromCharCode.apply(null,new Uint8Array(e)),t},u.ArrayBuffer.prototype.setState=function(e){return e.buff=function(e,t){var r,n=e.length,i=new ArrayBuffer(n),o=new Uint8Array(i);for(r=0;r>2]|=e[t]<<(t%4<<3);if(o[t>>2]|=128<<(t%4<<3),t>55)for(r(h,o),t=0;t<16;t+=1)o[t]=0;return a=parseInt((s=(s=8*u).toString(16).match(/(.*?)(.{0,8})$/))[2],16),l=parseInt(s[1],16)||0,o[14]=a,o[15]=l,r(h,o),h}(new Uint8Array(e)));return t?l(n):n},u}()}},t={};function r(n){var i=t[n];if(void 0!==i)return i.exports;var o=t[n]={exports:{}};return e[n](o,o.exports,r),o.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};(()=>{"use strict";r.r(n),r.d(n,{DatadogNodeServerProvider:()=>ep});var e,t,i,o,s,a,l=r(694),u=r.n(l);function h(e,t=""){return new(u())().append(t).append(e).end()}function c(e){return h(JSON.stringify({flag:{key:e.flag.key},subject:{id:e.subject.id,attributes:e.subject.attributes}}))}function d(e){return h(JSON.stringify(e))}class f{constructor(e){this.delegate=e}init(){return Promise.resolve()}has(e){return this.get(e)===d(e)}get(e){return this.delegate.get(c(e))}set(e){this.delegate.set(c(e),d(e))}entries(){return this.delegate.entries()}clear(){this.delegate.clear()}}class g{constructor(e){this.capacity=e,this.cache=new Map,this.size=this.cache.size}[(Symbol.toStringTag,Symbol.iterator)](){return this.cache[Symbol.iterator]()}forEach(e){this.cache.forEach(e)}entries(){return this.cache.entries()}clear(){this.cache.clear()}delete(e){return this.cache.delete(e)}keys(){return this.cache.keys()}values(){return this.cache.values()}has(e){return this.cache.has(e)}get(e){if(!this.has(e))return;let t=this.cache.get(e);return void 0!==t&&(this.delete(e),this.cache.set(e,t)),t}set(e,t){if(0===this.capacity)return this;if(this.cache.has(e))this.cache.delete(e);else if(this.cache.size>=this.capacity){let e=this.cache.keys().next().value;e&&this.delete(e)}return this.cache.set(e,t),this}}class v extends f{constructor(e){super(new g(e))}}var p=Object.defineProperty,E=Object.defineProperties,_=Object.getOwnPropertyDescriptors,y=Object.getOwnPropertySymbols,m=Object.prototype.hasOwnProperty,R=Object.prototype.propertyIsEnumerable,b=(e,t,r)=>t in e?p(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,O=(e,t)=>{for(var r in t||(t={}))m.call(t,r)&&b(e,r,t[r]);if(y)for(var r of y(t))R.call(t,r)&&b(e,r,t[r]);return e},A=(e,t,r)=>new Promise((n,i)=>{var o=e=>{try{a(r.next(e))}catch(e){i(e)}},s=e=>{try{a(r.throw(e))}catch(e){i(e)}},a=e=>e.done?n(e.value):Promise.resolve(e.value).then(o,s);a((r=r.apply(e,t)).next())}),x="ERROR",T=((e=T||{}).PROVIDER_NOT_READY="PROVIDER_NOT_READY",e.PROVIDER_FATAL="PROVIDER_FATAL",e.FLAG_NOT_FOUND="FLAG_NOT_FOUND",e.PARSE_ERROR="PARSE_ERROR",e.TYPE_MISMATCH="TYPE_MISMATCH",e.TARGETING_KEY_MISSING="TARGETING_KEY_MISSING",e.INVALID_CONTEXT="INVALID_CONTEXT",e.GENERAL="GENERAL",e),C=class e extends Error{constructor(t,r){super(t),Object.setPrototypeOf(this,e.prototype),this.name="OpenFeatureError",this.cause=null==r?void 0:r.cause}},P=class e extends C{constructor(t,r){super(t,r),Object.setPrototypeOf(this,e.prototype),this.name="FlagNotFoundError",this.code="FLAG_NOT_FOUND"}},N=class e extends C{constructor(t,r){super(t,r),Object.setPrototypeOf(this,e.prototype),this.name="GeneralError",this.code="GENERAL"}},I=class e extends C{constructor(t,r){super(t,r),Object.setPrototypeOf(this,e.prototype),this.name="InvalidContextError",this.code="INVALID_CONTEXT"}},S=class e extends C{constructor(t,r){super(t,r),Object.setPrototypeOf(this,e.prototype),this.name="ParseError",this.code="PARSE_ERROR"}},w=class e extends C{constructor(t,r){super(t,r),Object.setPrototypeOf(this,e.prototype),this.name="ProviderFatalError",this.code="PROVIDER_FATAL"}},D=class e extends C{constructor(t,r){super(t,r),Object.setPrototypeOf(this,e.prototype),this.name="ProviderNotReadyError",this.code="PROVIDER_NOT_READY"}},L=class e extends C{constructor(t,r){super(t,r),Object.setPrototypeOf(this,e.prototype),this.name="TargetingKeyMissingError",this.code="TARGETING_KEY_MISSING"}},k=class e extends C{constructor(t,r){super(t,r),Object.setPrototypeOf(this,e.prototype),this.name="TypeMismatchError",this.code="TYPE_MISMATCH"}},H=((t=H||{}).NOT_READY="NOT_READY",t.READY="READY",t.ERROR="ERROR",t.STALE="STALE",t.FATAL="FATAL",t),M=((i=M||{}).Ready="PROVIDER_READY",i.Error="PROVIDER_ERROR",i.ConfigurationChanged="PROVIDER_CONFIGURATION_CHANGED",i.Stale="PROVIDER_STALE",i),j=((o=j||{}).Ready="PROVIDER_READY",o.Error="PROVIDER_ERROR",o.ConfigurationChanged="PROVIDER_CONFIGURATION_CHANGED",o.ContextChanged="PROVIDER_CONTEXT_CHANGED",o.Reconciling="PROVIDER_RECONCILING",o.Stale="PROVIDER_STALE",o),G={READY:"PROVIDER_READY",ERROR:"PROVIDER_ERROR",FATAL:"PROVIDER_ERROR",STALE:"PROVIDER_STALE",RECONCILING:"PROVIDER_RECONCILING",NOT_READY:void 0},V=(e,t)=>!t&&"PROVIDER_READY"===e||G[t]===e,F=class{error(...e){console.error(...e)}warn(...e){console.warn(...e)}info(){}debug(){}},Y=["error","warn","info","debug"],U=class{constructor(e){this.fallbackLogger=new F;try{for(const t of Y)if(!e[t]||"function"!=typeof e[t])throw Error(`The provided logger is missing the ${t} method.`);this.logger=e}catch(e){console.error(e),console.error("Falling back to the default logger."),this.logger=this.fallbackLogger}}error(...e){this.log("error",...e)}warn(...e){this.log("warn",...e)}info(...e){this.log("info",...e)}debug(...e){this.log("debug",...e)}log(e,...t){try{this.logger[e](...t)}catch(r){this.fallbackLogger[e](...t)}}},K=class{constructor(e){this.globalLogger=e,this._handlers={PROVIDER_CONFIGURATION_CHANGED:new WeakMap,PROVIDER_CONTEXT_CHANGED:new WeakMap,PROVIDER_READY:new WeakMap,PROVIDER_ERROR:new WeakMap,PROVIDER_STALE:new WeakMap,PROVIDER_RECONCILING:new WeakMap}}emit(e,t){this.eventEmitter.emit(e,t)}addHandler(e,t){let r=e=>A(this,null,function*(){var r;try{yield t(e)}catch(e){null==(r=this._logger)||r.error("Error running event handler:",e)}}),n=this._handlers[e].get(t);this._handlers[e].set(t,[...n||[],r]),this.eventEmitter.on(e,r)}removeHandler(e,t){let r=this._handlers[e].get(t);if(r){let t=r.pop();t&&this.eventEmitter.removeListener(e,t)}}removeAllHandlers(e){e?this.eventEmitter.removeAllListeners(e):this.eventEmitter.removeAllListeners()}getHandlers(e){return this.eventEmitter.listeners(e)}setLogger(e){return this._eventLogger=new U(e),this}get _logger(){var e,t;return null!=(t=this._eventLogger)?t:null==(e=this.globalLogger)?void 0:e.call(this)}};function B(e){return"string"==typeof e?e:void 0}function $(e){return"object"==typeof e?e:void 0}function z(e){return null!=e}var W=class{constructor(e,t,r){var n,i,o;this._provider=e,this._status=t,this._pendingContextChanges=0,null==(n=e.events)||n.addHandler("PROVIDER_READY",()=>{this._status=r.READY}),null==(i=e.events)||i.addHandler("PROVIDER_STALE",()=>{this._status=r.STALE}),null==(o=e.events)||o.addHandler("PROVIDER_ERROR",e=>{(null==e?void 0:e.errorCode)==="PROVIDER_FATAL"?this._status=r.FATAL:this._status=r.ERROR})}get provider(){return this._provider}set provider(e){this._provider=e}get status(){return this._status}set status(e){this._status=e}get allContextChangesSettled(){return 0===this._pendingContextChanges}incrementPendingContextChanges(){this._pendingContextChanges++}decrementPendingContextChanges(){this._pendingContextChanges--}},X=class{constructor(e){this._hooks=[],this._context={},this._logger=new F,this._clientEventHandlers=new Map,this._domainScopedContext=new Map,this._clientEvents=new Map,this._runsOn=e}addHooks(...e){return this._hooks=[...this._hooks,...e],this}getHooks(){return this._hooks}clearHooks(){return this._hooks=[],this}setLogger(e){return this._logger=new U(e),this}get providerMetadata(){return this.getProviderMetadata()}getProviderMetadata(e){return this.getProviderForClient(e).metadata}addHandler(e,t,r){[...new Map([[void 0,this._defaultProvider]]),...this._domainScopedProviders].forEach(r=>{var n;let i=r[0],o=r[1].provider;if(V(e,r[1].status))try{t({domain:i,providerName:o.metadata.name})}catch(e){null==(n=this._logger)||n.error("Error running event handler:",e)}}),this._apiEmitter.addHandler(e,t),(null==r?void 0:r.signal)&&"function"==typeof r.signal.addEventListener&&r.signal.addEventListener("abort",()=>{this.removeHandler(e,t)})}removeHandler(e,t){this._apiEmitter.removeHandler(e,t)}clearHandlers(){this._apiEmitter.removeAllHandlers()}getHandlers(e){return this._apiEmitter.getHandlers(e)}setAwaitableProvider(e,t){var r,n,i,o,s,a,l,u;let h,c=B(e),d=null!=(r=$(e))?r:$(t);if(!d)return void this._logger.debug("No provider defined, ignoring setProvider call");let f=this.getProviderForClient(c),g=d.metadata.name;if(f===d)return void this._logger.debug("Provider is already set, ignoring setProvider call");if(d.runsOn){if(d.runsOn!==this._runsOn)throw new N(`Provider '${d.metadata.name}' is intended for use on the ${d.runsOn}.`)}else this._logger.debug(`Provider '${d.metadata.name}' has not defined its intended use.`);let v=this.getAssociatedEventEmitters(c),p=new W(d,this._statusEnumType.NOT_READY,this._statusEnumType);return"function"!=typeof d.initialize||this.allProviders.includes(d)?(p.status=this._statusEnumType.READY,v.forEach(e=>{null==e||e.emit("PROVIDER_READY",{clientName:c,domain:c,providerName:g})}),null==(a=this._apiEmitter)||a.emit("PROVIDER_READY",{clientName:c,domain:c,providerName:g})):h=null==(s=null==(o=null==(i=d.initialize)?void 0:i.call(d,c&&null!=(n=this._domainScopedContext.get(c))?n:this._context))?void 0:o.then(()=>{var e;p.status=this._statusEnumType.READY,this.getAssociatedEventEmitters(c).forEach(e=>{null==e||e.emit("PROVIDER_READY",{clientName:c,domain:c,providerName:g})}),null==(e=this._apiEmitter)||e.emit("PROVIDER_READY",{clientName:c,domain:c,providerName:g})}))?void 0:s.catch(e=>{var t;throw(null==e?void 0:e.code)==="PROVIDER_FATAL"?p.status=this._statusEnumType.FATAL:p.status=this._statusEnumType.ERROR,this.getAssociatedEventEmitters(c).forEach(t=>{null==t||t.emit("PROVIDER_ERROR",{clientName:c,domain:c,providerName:g,message:null==e?void 0:e.message})}),null==(t=this._apiEmitter)||t.emit("PROVIDER_ERROR",{clientName:c,domain:c,providerName:g,message:null==e?void 0:e.message}),e}),c?this._domainScopedProviders.set(c,p):this._defaultProvider=p,this.transferListeners(f,d,c,v),this.allProviders.includes(f)||null==(u=null==(l=null==f?void 0:f.onClose)?void 0:l.call(f))||u.catch(e=>{this._logger.error(`error closing provider: ${null==e?void 0:e.message}, ${null==e?void 0:e.stack}`)}),h}getProviderForClient(e){var t,r;return e&&null!=(r=null==(t=this._domainScopedProviders.get(e))?void 0:t.provider)?r:this._defaultProvider.provider}buildAndCacheEventEmitterForClient(e){let t=this._clientEvents.get(e);if(t)return t;let r=this._createEventEmitter();this._clientEvents.set(e,r);let n=this.getProviderForClient(e);return Object.values(j).forEach(t=>{var i;return null==(i=n.events)?void 0:i.addHandler(t,i=>A(this,null,function*(){r.emit(t,E(O({},i),_({clientName:e,domain:e,providerName:n.metadata.name})))}))}),r}getUnboundEmitters(){let e=[...this._domainScopedProviders.keys()];return[...[...this._clientEvents.keys()].filter(z).filter(t=>!e.includes(t)).map(e=>this._clientEvents.get(e)),this._clientEvents.get(void 0)].filter(z)}getAssociatedEventEmitters(e){return e?[this.buildAndCacheEventEmitterForClient(e)]:this.getUnboundEmitters()}transferListeners(e,t,r,n){var i;null==(i=this._clientEventHandlers.get(r))||i.forEach(t=>{var r;return null==(r=e.events)?void 0:r.removeHandler(...t)});let o=Object.values(j).map(e=>{let i=i=>A(this,null,function*(){n.forEach(n=>{null==n||n.emit(e,E(O({},i),_({clientName:r,domain:r,providerName:t.metadata.name})))}),this._apiEmitter.emit(e,E(O({},i),_({clientName:r,domain:r,providerName:t.metadata.name})))});return[e,i]});this._clientEventHandlers.set(r,o),o.forEach(e=>{var r;return null==(r=t.events)?void 0:r.addHandler(...e)})}close(){return A(this,null,function*(){var e,t;try{yield null==(t=null==(e=this==null?void 0:this._defaultProvider.provider)?void 0:e.onClose)?void 0:t.call(e)}catch(e){this.handleShutdownError(this._defaultProvider.provider,e)}let r=Array.from(this._domainScopedProviders);yield Promise.all(r.map(e=>A(this,[e],function*([,e]){var t,r;try{yield null==(r=null==e?void 0:(t=e.provider).onClose)?void 0:r.call(t)}catch(t){this.handleShutdownError(null==e?void 0:e.provider,t)}})))})}clearProvidersAndSetDefault(e){return A(this,null,function*(){try{yield this.close()}catch(e){this._logger.error("Unable to cleanly close providers. Resetting to the default configuration.")}finally{this._domainScopedProviders.clear(),this._defaultProvider=new W(e,this._statusEnumType.NOT_READY,this._statusEnumType)}})}get allProviders(){return[...[...this._domainScopedProviders.values()].map(e=>e.provider),this._defaultProvider.provider]}handleShutdownError(e,t){this._logger.error(`Error during shutdown of provider ${e.metadata.name}: ${t}`),this._logger.error(null==t?void 0:t.stack)}};let J=require("node:events");require("async_hooks");var q=Object.defineProperty,Q=Object.defineProperties,Z=Object.getOwnPropertyDescriptors,ee=Object.getOwnPropertySymbols,et=Object.prototype.hasOwnProperty,er=Object.prototype.propertyIsEnumerable,en=(e,t,r)=>t in e?q(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,ei=(e,t)=>{for(var r in t||(t={}))et.call(t,r)&&en(e,r,t[r]);if(ee)for(var r of ee(t))er.call(t,r)&&en(e,r,t[r]);return e},eo=(e,t,r)=>new Promise((n,i)=>{var o=e=>{try{a(r.next(e))}catch(e){i(e)}},s=e=>{try{a(r.throw(e))}catch(e){i(e)}},a=e=>e.done?n(e.value):Promise.resolve(e.value).then(o,s);a((r=r.apply(e,t)).next())}),es=new class{constructor(){this.metadata={name:"No-op Provider"}}resolveBooleanEvaluation(e,t){return this.noOp(t)}resolveStringEvaluation(e,t){return this.noOp(t)}resolveNumberEvaluation(e,t){return this.noOp(t)}resolveObjectEvaluation(e,t){return this.noOp(t)}noOp(e){return Promise.resolve({value:e,reason:"No-op"})}},ea=class{constructor(e,t,r,n,i,o,s,a,l={}){this.providerAccessor=e,this.providerStatusAccessor=t,this.emitterAccessor=r,this.apiContextAccessor=n,this.apiHooksAccessor=i,this.transactionContextAccessor=o,this.globalLogger=s,this.options=a,this._hooks=[],this._context=l}get metadata(){var e,t;return{name:null!=(e=this.options.domain)?e:this.options.name,domain:null!=(t=this.options.domain)?t:this.options.name,version:this.options.version,providerMetadata:this.providerAccessor().metadata}}get providerStatus(){return this.providerStatusAccessor()}addHandler(e,t,r){var n;if(this.emitterAccessor().addHandler(e,t),V(e,this._providerStatus))try{t({clientName:this.metadata.name,domain:this.metadata.domain,providerName:this._provider.metadata.name})}catch(e){null==(n=this._logger)||n.error("Error running event handler:",e)}(null==r?void 0:r.signal)&&"function"==typeof r.signal.addEventListener&&r.signal.addEventListener("abort",()=>{this.removeHandler(e,t)})}removeHandler(e,t){this.emitterAccessor().removeHandler(e,t)}getHandlers(e){return this.emitterAccessor().getHandlers(e)}setLogger(e){return this._clientLogger=new U(e),this}setContext(e){return this._context=e,this}getContext(){return this._context}addHooks(...e){return this._hooks=[...this._hooks,...e],this}getHooks(){return this._hooks}clearHooks(){return this._hooks=[],this}getBooleanValue(e,t,r,n){return eo(this,null,function*(){return(yield this.getBooleanDetails(e,t,r,n)).value})}getBooleanDetails(e,t,r,n){return this.evaluate(e,this._provider.resolveBooleanEvaluation,t,"boolean",r,n)}getStringValue(e,t,r,n){return eo(this,null,function*(){return(yield this.getStringDetails(e,t,r,n)).value})}getStringDetails(e,t,r,n){return this.evaluate(e,this._provider.resolveStringEvaluation,t,"string",r,n)}getNumberValue(e,t,r,n){return eo(this,null,function*(){return(yield this.getNumberDetails(e,t,r,n)).value})}getNumberDetails(e,t,r,n){return this.evaluate(e,this._provider.resolveNumberEvaluation,t,"number",r,n)}getObjectValue(e,t,r,n){return eo(this,null,function*(){return(yield this.getObjectDetails(e,t,r,n)).value})}getObjectDetails(e,t,r,n){return this.evaluate(e,this._provider.resolveObjectEvaluation,t,"object",r,n)}track(e,t={},r={}){var n,i;try{if(this.shortCircuitIfNotReady(),"function"==typeof this._provider.track){let o=Object.freeze(this.mergeContexts(t));return null==(i=(n=this._provider).track)?void 0:i.call(n,e,o,r)}this._logger.debug("Provider does not support the track function; will no-op.")}catch(e){this._logger.debug("Error recording tracking event.",e)}}evaluate(e,t,r,n){return eo(this,arguments,function*(e,t,r,n,i={},o={}){var s;let a,l=[...this.apiHooksAccessor(),...this.getHooks(),...o.hooks||[],...this._provider.hooks||[]],u=[...l].reverse(),h=this.mergeContexts(i),c={flagKey:e,defaultValue:r,flagValueType:n,clientMetadata:this.metadata,providerMetadata:this._provider.metadata,context:h,logger:this._logger};try{let n,i,h=yield this.beforeHooks(l,c,o);this.shortCircuitIfNotReady();let d=yield t.call(this._provider,e,r,h,this._logger),f=(n=ei({},d),i={flagMetadata:Object.freeze(null!=(s=d.flagMetadata)?s:{}),flagKey:e},Q(n,Z(i)));if(f.errorCode){let t=((e,t)=>{switch(e){case"FLAG_NOT_FOUND":return new P(t);case"PARSE_ERROR":return new S(t);case"TYPE_MISMATCH":return new k(t);case"TARGETING_KEY_MISSING":return new L(t);case"INVALID_CONTEXT":return new I(t);case"PROVIDER_NOT_READY":return new D(t);case"PROVIDER_FATAL":return new w(t);default:return new N(t)}})(f.errorCode,f.errorMessage);yield this.errorHooks(u,c,t,o),a=this.getErrorEvaluationDetails(e,r,t,f.flagMetadata)}else yield this.afterHooks(u,c,f,o),a=f}catch(t){yield this.errorHooks(u,c,t,o),a=this.getErrorEvaluationDetails(e,r,t)}return yield this.finallyHooks(u,c,a,o),a})}beforeHooks(e,t,r){return eo(this,null,function*(){var n;for(let i of e)Object.freeze(t),Object.assign(t.context,ei(ei({},t.context),(yield null==(n=null==i?void 0:i.before)?void 0:n.call(i,t,Object.freeze(r.hookHints)))));return Object.freeze(t.context)})}afterHooks(e,t,r,n){return eo(this,null,function*(){var i;for(let o of e)yield null==(i=null==o?void 0:o.after)?void 0:i.call(o,t,r,n.hookHints)})}errorHooks(e,t,r,n){return eo(this,null,function*(){var i;for(let o of e)try{yield null==(i=null==o?void 0:o.error)?void 0:i.call(o,t,r,n.hookHints)}catch(e){this._logger.error(`Unhandled error during 'error' hook: ${e}`),e instanceof Error&&this._logger.error(e.stack),this._logger.error(null==e?void 0:e.stack)}})}finallyHooks(e,t,r,n){return eo(this,null,function*(){var i;for(let o of e)try{yield null==(i=null==o?void 0:o.finally)?void 0:i.call(o,t,r,n.hookHints)}catch(e){this._logger.error(`Unhandled error during 'finally' hook: ${e}`),e instanceof Error&&this._logger.error(e.stack),this._logger.error(null==e?void 0:e.stack)}})}get _provider(){return this.providerAccessor()}get _providerStatus(){return this.providerStatusAccessor()}get _logger(){return this._clientLogger||this.globalLogger()}mergeContexts(e){return ei(ei(ei(ei({},this.apiContextAccessor()),this.transactionContextAccessor()),this._context),e)}shortCircuitIfNotReady(){if(this.providerStatus===H.NOT_READY)throw new D("provider has not yet initialized");if(this.providerStatus===H.FATAL)throw new w("provider is in an irrecoverable error state")}getErrorEvaluationDetails(e,t,r,n={}){let i=null==r?void 0:r.message;return{errorCode:(null==r?void 0:r.code)||T.GENERAL,errorMessage:i,value:t,reason:x,flagMetadata:Object.freeze(n),flagKey:e}}},el=class extends K{constructor(){super(),this.eventEmitter=new J.EventEmitter({captureRejections:!0}),this.eventEmitter.on("error",e=>{var t;null==(t=this._logger)||t.error("Error running event handler:",e)})}},eu=new class{getTransactionContext(){return{}}setTransactionContext(e,t,...r){t(...r)}},eh=Symbol.for("@openfeature/js-sdk/api"),ec=globalThis;(class e extends X{constructor(){super("server"),this._statusEnumType=H,this._apiEmitter=new el,this._defaultProvider=new W(es,H.NOT_READY,this._statusEnumType),this._domainScopedProviders=new Map,this._createEventEmitter=()=>new el,this._transactionContextPropagator=eu}static getInstance(){let t=ec[eh];if(t)return t;let r=new e;return ec[eh]=r,r}getProviderStatus(e){var t,r;return e&&null!=(r=null==(t=this._domainScopedProviders.get(e))?void 0:t.status)?r:this._defaultProvider.status}setProviderAndWait(e,t){return eo(this,null,function*(){let r=B(e),n=r?$(t):$(e);yield this.setAwaitableProvider(r,n)})}setProvider(e,t){let r=B(e),n=r?$(t):$(e);return Promise.resolve(this.setAwaitableProvider(r,n)).catch(e=>{this._logger.error("Error during provider initialization:",e)}),this}getProvider(e){return this.getProviderForClient(e)}setContext(e){return this._context=e,this}getContext(){return this._context}getClient(e,t,r){var n,i;let o=B(e);return new ea(()=>this.getProviderForClient(o),()=>this.getProviderStatus(o),()=>this.buildAndCacheEventEmitterForClient(o),()=>this.getContext(),()=>this.getHooks(),()=>this.getTransactionContext(),()=>this._logger,{domain:o,version:B(t)},null!=(i=null!=(n=$(e))?n:$(t))?i:$(r))}clearProviders(){return super.clearProvidersAndSetDefault(es)}setTransactionContextPropagator(e){let t="Invalid TransactionContextPropagator, will not be set: ";return"function"!=typeof(null==e?void 0:e.getTransactionContext)?this._logger.error(`${t}: getTransactionContext is not a function.`):"function"!=typeof(null==e?void 0:e.setTransactionContext)?this._logger.error(`${t}: setTransactionContext is not a function.`):this._transactionContextPropagator=e,this}setTransactionContext(e,t,...r){this._transactionContextPropagator.setTransactionContext(e,t,...r)}getTransactionContext(){try{return this._transactionContextPropagator.getTransactionContext()}catch(e){return this._logger.error(`Error getting transaction context: ${null==e?void 0:e.message}, returning empty context.`),this._logger.error(null==e?void 0:e.stack),{}}}}).getInstance(),(s=a||(a={})).MATCHES="MATCHES",s.NOT_MATCHES="NOT_MATCHES",s.GTE="GTE",s.GT="GT",s.LTE="LTE",s.LT="LT",s.ONE_OF="ONE_OF",s.NOT_ONE_OF="NOT_ONE_OF",s.IS_NULL="IS_NULL";class ed{}class ef extends ed{getShard(e,t){return parseInt(h(e).slice(0,8),16)%t}}function eg(e,t,r,n,i,o){if(!e)return{value:n,reason:"ERROR",errorCode:T.PROVIDER_NOT_READY};let{targetingKey:s,...l}=i;if(!s)return{value:n,reason:"ERROR",errorCode:T.TARGETING_KEY_MISSING};let u={id:s,...l};try{return function(e,t,r,n,i,o){if(!(null==e?void 0:e.enabled))return o.debug("returning default assignment because flag is disabled",{flagKey:e?e.key:"undefined",subjectKey:r}),{value:i,reason:"DISABLED"};if(!function(e,t){if("boolean"===e)return"BOOLEAN"===t;if("string"===e)return"STRING"===t;if("number"===e)return"INTEGER"===t||"NUMERIC"===t;if("object"===e)return"JSON"===t;throw Error(`Invalid expected type: ${e}`)}(t,e.variationType))return o.debug("variant value type mismatch, returning default value",{flagKey:e.key,subjectKey:r,expectedType:t,variantType:e.variationType}),{value:i,reason:x,errorCode:T.TYPE_MISMATCH};let s=new Date;for(let t of e.allocations){if(t.startAt&&s=new Date(t.endAt)){o.debug("allocation after end date",{flagKey:e.key,subjectKey:r,allocationKey:t.key,endAt:t.endAt});continue}if(!function(e,t,r){return null==e||!e.length||(r.debug("evaluating rules",{rules:JSON.stringify(e),subjectAttributes:t}),e.some(e=>!(function(e,t){return t.map(t=>(function(e,t){var r,n,i;let o=e[t.attribute];if(t.operator===a.IS_NULL)return t.value?null==o:null!=o;if(null!=o)switch(t.operator){case a.GTE:case a.GT:case a.LTE:case a.LT:return r=o,n=t.value,((e,r)=>t.operator===a.GTE?e>=r:t.operator===a.GT?e>r:t.operator===a.LTE?e<=r:e{let o=function(e,t,r){var n,i;let o=new ef().getShard((n=e.salt,i=t,`${n}-${i}`),e.totalShards);return e.ranges.some(e=>{var t,r;return t=o,(r=e).start<=t&&t{this.resolve=()=>{this.cleanup(),e()},this.reject=e=>{this.cleanup(),t(e)}}),new Promise(()=>{this.timeoutId=setTimeout(()=>{t()},e)})])}async wait(){try{await this.promise}finally{this.cleanup()}}complete(){this.resolve&&this.resolve()}fail(e){this.reject&&this.reject(e)}isInitializing(){return void 0!==this.resolve}cleanup(){this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=void 0),this.resolve=void 0,this.reject=void 0}}class ep{constructor(e){this.options=e,this.metadata={name:"datadog-node-server"},this.runsOn="server",this.hooks=[],this.events=new el,this.exposureCache=new v(5e4)}getConfiguration(){return this.configuration}setConfiguration(e){var t,r,n;let i=null==(t=this.configuration)?void 0:t.createdAt,o=!!this.configuration;if(o&&this.configuration!==e){this.events.emit(M.ConfigurationChanged),i!==(null==e?void 0:e.createdAt)&&(null==(r=this.exposureCache)||r.clear()),this.configuration=e;return}this.configuration=e,(null==(n=this.initController)?void 0:n.isInitializing())?this.initController.complete():o||this.events.emit(M.Ready)}setError(e){var t;(null==(t=this.initController)?void 0:t.isInitializing())?this.initController.fail(e):this.events.emit(M.Error,{error:e})}async initialize(){var e,t;if(this.configuration)return;let r=null!=(e=this.options.initializationTimeoutMs)?e:3e4;this.initController=new ev(r,()=>this.setError(Error(`Initialization timeout after ${r}ms`))),await this.initController.wait(),await (null==(t=this.exposureCache)?void 0:t.init())}async resolveBooleanEvaluation(e,t,r,n){let i=eg(this.configuration,"boolean",e,t,r,n);return this.handleExposure(e,r,i),i}async resolveStringEvaluation(e,t,r,n){let i=eg(this.configuration,"string",e,t,r,n);return this.handleExposure(e,r,i),i}async resolveNumberEvaluation(e,t,r,n){let i=eg(this.configuration,"number",e,t,r,n);return this.handleExposure(e,r,i),i}async resolveObjectEvaluation(e,t,r,n){let i=eg(this.configuration,"object",e,t,r,n);return this.handleExposure(e,r,i),i}handleExposure(e,t,r){var n,i,o;let s=Date.now(),a=function(e,t){var r,n;if(!(null==(r=t.flagMetadata)?void 0:r.doLog))return;let i=null==(n=t.flagMetadata)?void 0:n.allocationKey,o=t.variant;if(!i||!o)return;let{targetingKey:s="",...a}=e;return{allocation:{key:i},flag:{key:t.flagKey},variant:{key:o},subject:{id:s,attributes:a}}}(t,{...r,flagKey:e,flagMetadata:null!=(n=r.flagMetadata)?n:{}});!a||(null==(i=this.exposureCache)?void 0:i.has(a))||this.options.exposureChannel.hasSubscribers&&(this.options.exposureChannel.publish({...a,timestamp:s}),null==(o=this.exposureCache)||o.set(a))}}})(),module.exports=n})(); \ No newline at end of file diff --git a/packages/node_modules/@datadog/sketches-js/index.js b/packages/node_modules/@datadog/sketches-js/index.js index 1cbdcee5cd3..0769df33d91 100644 --- a/packages/node_modules/@datadog/sketches-js/index.js +++ b/packages/node_modules/@datadog/sketches-js/index.js @@ -1 +1 @@ -(()=>{"use strict";var __webpack_modules__={2136:function(t,e,n){var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0}),e.LogCollapsingHighestDenseDDSketch=e.LogCollapsingLowestDenseDDSketch=e.DDSketch=void 0;var o=n(1412),r=n(9667),s=.01,u=2048,a=function(){function t(t){var e=t.mapping,n=t.store,i=t.negativeStore,o=t.zeroCount;this.mapping=e,this.store=n,this.negativeStore=i,this.zeroCount=o,this.count=this.negativeStore.count+this.zeroCount+this.store.count,this.min=1/0,this.max=-1/0,this.sum=0}return t.prototype.accept=function(t,e){if(void 0===e&&(e=1),e<=0)throw Error("Weight must be a positive number");if(t>this.mapping.minPossible){var n=this.mapping.key(t);this.store.add(n,e)}else if(t<-this.mapping.minPossible){var n=this.mapping.key(-t);this.negativeStore.add(n,e)}else this.zeroCount+=e;this.count+=e,this.sum+=t*e,tthis.max&&(this.max=t)},t.prototype.getValueAtQuantile=function(t){if(t<0||t>1||0===this.count)return NaN;var e=t*(this.count-1),n=0;if(ethis.max&&(this.max=t.max)}},t.prototype.mergeable=function(t){return this.mapping.gamma===t.mapping.gamma},t.prototype._copy=function(t){this.store.copy(t.store),this.negativeStore.copy(t.negativeStore),this.zeroCount=t.zeroCount,this.min=t.min,this.max=t.max,this.count=t.count,this.sum=t.sum},t.prototype.toProto=function(){var t=n(4072).DDSketch,e=t.create({mapping:this.mapping.toProto(),positiveValues:this.store.toProto(),negativeValues:this.negativeStore.toProto(),zeroCount:this.zeroCount});return t.encode(e).finish()},t.fromProto=function(e){var i=n(4072).DDSketch.decode(e);return new t({mapping:r.KeyMapping.fromProto(i.mapping),store:o.DenseStore.fromProto(i.positiveValues),negativeStore:o.DenseStore.fromProto(i.negativeValues),zeroCount:i.zeroCount})},t}(),f={relativeAccuracy:s};e.DDSketch=function(t){function e(e){var n=(void 0===e?f:e).relativeAccuracy,i=void 0===n?s:n,u=new r.LogarithmicMapping(i),a=new o.DenseStore,l=new o.DenseStore;return t.call(this,{mapping:u,store:a,negativeStore:l,zeroCount:0})||this}return i(e,t),e}(a),e.LogCollapsingLowestDenseDDSketch=function(t){function e(e){var n=void 0===e?f:e,i=n.relativeAccuracy,a=void 0===i?s:i,l=n.binLimit,c=void 0===l?u:l,p=new r.LogarithmicMapping(a),h=new o.CollapsingLowestDenseStore(c),y=new o.CollapsingLowestDenseStore(c);return t.call(this,{mapping:p,store:h,negativeStore:y,zeroCount:0})||this}return i(e,t),e}(a),e.LogCollapsingHighestDenseDDSketch=function(t){function e(e){var n=void 0===e?f:e,i=n.relativeAccuracy,a=void 0===i?s:i,l=n.binLimit,c=void 0===l?u:l,p=new r.LogarithmicMapping(a),h=new o.CollapsingHighestDenseStore(c),y=new o.CollapsingHighestDenseStore(c);return t.call(this,{mapping:p,store:h,negativeStore:y,zeroCount:0})||this}return i(e,t),e}(a)},8426:function(t,e,n){var i=this&&this.__createBinding||(Object.create?function(t,e,n,i){void 0===i&&(i=n);var o=Object.getOwnPropertyDescriptor(e,n);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,i,o)}:function(t,e,n,i){void 0===i&&(i=n),t[i]=e[n]}),o=this&&this.__exportStar||function(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||i(e,t,n)};Object.defineProperty(e,"__esModule",{value:!0}),o(n(2136),e)},5718:function(t,e,n){var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0}),e.CubicallyInterpolatedMapping=void 0;var o=n(8952),r=n(1374);e.CubicallyInterpolatedMapping=function(t){function e(e,n){void 0===n&&(n=0);var i=t.call(this,e,n)||this;return i.A=6/35,i.B=-.6,i.C=10/7,i._multiplier/=i.C,i}return i(e,t),e.prototype._cubicLog2Approx=function(t){var e=(0,r.frexp)(t),n=e[0],i=e[1],o=2*n-1;return((this.A*o+this.B)*o+this.C)*o+(i-1)},e.prototype._cubicExp2Approx=function(t){var e=Math.floor(t),n=this.B*this.B-3*this.A*this.C,i=2*this.B*this.B*this.B-9*this.A*this.B*this.C-27*this.A*this.A*(t-e),o=Math.cbrt((i-Math.sqrt(i*i-4*n*n*n))/2),s=(-(this.B+o+n/o)/(3*this.A)+1)/2;return(0,r.ldexp)(s,e+1)},e.prototype._logGamma=function(t){return this._cubicLog2Approx(t)*this._multiplier},e.prototype._powGamma=function(t){return this._cubicExp2Approx(t/this._multiplier)},e.prototype._protoInterpolation=function(){return n(4072).IndexMapping.Interpolation.CUBIC},e}(o.KeyMapping)},8952:function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.KeyMapping=void 0;var i=n(9667),o=11125369292536007e-324,r=Number.MAX_VALUE;e.KeyMapping=function(){function t(t,e){if(void 0===e&&(e=0),t<=0||t>=1)throw Error("Relative accuracy must be between 0 and 1 when initializing a KeyMapping");this.relativeAccuracy=t,this._offset=e;var n=2*t/(1-t);this.gamma=1+n,this._multiplier=1/Math.log1p(n),this.minPossible=o*this.gamma,this.maxPossible=r/this.gamma}return t.fromGammaOffset=function(t,e){return new this((t-1)/(t+1),e)},t.prototype.key=function(t){return Math.ceil(this._logGamma(t))+this._offset},t.prototype.value=function(t){return this._powGamma(t-this._offset)*(2/(1+this.gamma))},t.prototype.toProto=function(){return n(4072).IndexMapping.create({gamma:this.gamma,indexOffset:this._offset,interpolation:this._protoInterpolation()})},t.fromProto=function(t){if(!t||null==t.gamma||null==t.indexOffset)throw Error("Failed to decode mapping from protobuf");var e=n(4072).IndexMapping.Interpolation,o=t.interpolation,r=t.gamma,s=t.indexOffset;switch(o){case e.NONE:return i.LogarithmicMapping.fromGammaOffset(r,s);case e.LINEAR:return i.LinearlyInterpolatedMapping.fromGammaOffset(r,s);case e.CUBIC:return i.CubicallyInterpolatedMapping.fromGammaOffset(r,s);default:throw Error("Unrecognized mapping when decoding from protobuf")}},t.prototype._logGamma=function(t){return Math.log2(t)*this._multiplier},t.prototype._powGamma=function(t){return Math.pow(2,t/this._multiplier)},t.prototype._protoInterpolation=function(){return n(4072).IndexMapping.Interpolation.NONE},t}()},2040:function(t,e,n){var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0}),e.LinearlyInterpolatedMapping=void 0;var o=n(8952),r=n(1374);e.LinearlyInterpolatedMapping=function(t){function e(e,n){return void 0===n&&(n=0),t.call(this,e,n)||this}return i(e,t),e.prototype._log2Approx=function(t){var e=(0,r.frexp)(t);return 2*e[0]-1+(e[1]-1)},e.prototype._exp2Approx=function(t){var e=Math.floor(t)+1,n=(t-e+2)/2;return(0,r.ldexp)(n,e)},e.prototype._logGamma=function(t){return Math.log2(t)*this._multiplier},e.prototype._powGamma=function(t){return Math.pow(2,t/this._multiplier)},e.prototype._protoInterpolation=function(){return n(4072).IndexMapping.Interpolation.LINEAR},e}(o.KeyMapping)},9784:function(t,e,n){var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0}),e.LogarithmicMapping=void 0,e.LogarithmicMapping=function(t){function e(e,n){void 0===n&&(n=0);var i=t.call(this,e,n)||this;return i._multiplier*=Math.log(2),i}return i(e,t),e.prototype._logGamma=function(t){return Math.log2(t)*this._multiplier},e.prototype._powGamma=function(t){return Math.pow(2,t/this._multiplier)},e.prototype._protoInterpolation=function(){return n(4072).IndexMapping.Interpolation.NONE},e}(n(8952).KeyMapping)},9667:function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.CubicallyInterpolatedMapping=e.LinearlyInterpolatedMapping=e.LogarithmicMapping=e.KeyMapping=void 0;var i=n(8952);Object.defineProperty(e,"KeyMapping",{enumerable:!0,get:function(){return i.KeyMapping}});var o=n(9784);Object.defineProperty(e,"LogarithmicMapping",{enumerable:!0,get:function(){return o.LogarithmicMapping}});var r=n(2040);Object.defineProperty(e,"LinearlyInterpolatedMapping",{enumerable:!0,get:function(){return r.LinearlyInterpolatedMapping}});var s=n(5718);Object.defineProperty(e,"CubicallyInterpolatedMapping",{enumerable:!0,get:function(){return s.CubicallyInterpolatedMapping}})},1374:function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.ldexp=e.frexp=void 0,e.frexp=function(t){if(0===t||!Number.isFinite(t))return[t,0];for(var e=Math.abs(t),n=Math.max(-1023,Math.floor(Math.log2(e))+1),i=e*Math.pow(2,-n);i<.5;)i*=2,n--;for(;i>=1;)i*=.5,n++;return t<0&&(i=-i),[i,n]},e.ldexp=function(t,e){for(var n=Math.min(3,Math.ceil(Math.abs(e)/1023)),i=t,o=0;o>>3){case 1:i.mapping=u.IndexMapping.decode(t,t.uint32());break;case 2:i.positiveValues=u.Store.decode(t,t.uint32());break;case 3:i.negativeValues=u.Store.decode(t,t.uint32());break;case 4:i.zeroCount=t.double();break;default:t.skipType(7&r)}}return i},t.decodeDelimited=function(t){return t instanceof o||(t=new o(t)),this.decode(t,t.uint32())},t.verify=function(t){if("object"!=typeof t||null===t)return"object expected";if(null!=t.mapping&&t.hasOwnProperty("mapping")){var e=u.IndexMapping.verify(t.mapping);if(e)return"mapping."+e}if(null!=t.positiveValues&&t.hasOwnProperty("positiveValues")){var e=u.Store.verify(t.positiveValues);if(e)return"positiveValues."+e}if(null!=t.negativeValues&&t.hasOwnProperty("negativeValues")){var e=u.Store.verify(t.negativeValues);if(e)return"negativeValues."+e}return null!=t.zeroCount&&t.hasOwnProperty("zeroCount")&&"number"!=typeof t.zeroCount?"zeroCount: number expected":null},t.fromObject=function(t){if(t instanceof u.DDSketch)return t;var e=new u.DDSketch;if(null!=t.mapping){if("object"!=typeof t.mapping)throw TypeError(".DDSketch.mapping: object expected");e.mapping=u.IndexMapping.fromObject(t.mapping)}if(null!=t.positiveValues){if("object"!=typeof t.positiveValues)throw TypeError(".DDSketch.positiveValues: object expected");e.positiveValues=u.Store.fromObject(t.positiveValues)}if(null!=t.negativeValues){if("object"!=typeof t.negativeValues)throw TypeError(".DDSketch.negativeValues: object expected");e.negativeValues=u.Store.fromObject(t.negativeValues)}return null!=t.zeroCount&&(e.zeroCount=Number(t.zeroCount)),e},t.toObject=function(t,e){e||(e={});var n={};return e.defaults&&(n.mapping=null,n.positiveValues=null,n.negativeValues=null,n.zeroCount=0),null!=t.mapping&&t.hasOwnProperty("mapping")&&(n.mapping=u.IndexMapping.toObject(t.mapping,e)),null!=t.positiveValues&&t.hasOwnProperty("positiveValues")&&(n.positiveValues=u.Store.toObject(t.positiveValues,e)),null!=t.negativeValues&&t.hasOwnProperty("negativeValues")&&(n.negativeValues=u.Store.toObject(t.negativeValues,e)),null!=t.zeroCount&&t.hasOwnProperty("zeroCount")&&(n.zeroCount=e.json&&!isFinite(t.zeroCount)?String(t.zeroCount):t.zeroCount),n},t.prototype.toJSON=function(){return this.constructor.toObject(this,i.util.toJSONOptions)},t}(),u.IndexMapping=function(){function t(t){if(t)for(var e=Object.keys(t),n=0;n>>3){case 1:i.gamma=t.double();break;case 2:i.indexOffset=t.double();break;case 3:i.interpolation=t.int32();break;default:t.skipType(7&r)}}return i},t.decodeDelimited=function(t){return t instanceof o||(t=new o(t)),this.decode(t,t.uint32())},t.verify=function(t){if("object"!=typeof t||null===t)return"object expected";if(null!=t.gamma&&t.hasOwnProperty("gamma")&&"number"!=typeof t.gamma)return"gamma: number expected";if(null!=t.indexOffset&&t.hasOwnProperty("indexOffset")&&"number"!=typeof t.indexOffset)return"indexOffset: number expected";if(null!=t.interpolation&&t.hasOwnProperty("interpolation"))switch(t.interpolation){default:return"interpolation: enum value expected";case 0:case 1:case 2:case 3:}return null},t.fromObject=function(t){if(t instanceof u.IndexMapping)return t;var e=new u.IndexMapping;switch(null!=t.gamma&&(e.gamma=Number(t.gamma)),null!=t.indexOffset&&(e.indexOffset=Number(t.indexOffset)),t.interpolation){case"NONE":case 0:e.interpolation=0;break;case"LINEAR":case 1:e.interpolation=1;break;case"QUADRATIC":case 2:e.interpolation=2;break;case"CUBIC":case 3:e.interpolation=3}return e},t.toObject=function(t,e){e||(e={});var n={};return e.defaults&&(n.gamma=0,n.indexOffset=0,n.interpolation=e.enums===String?"NONE":0),null!=t.gamma&&t.hasOwnProperty("gamma")&&(n.gamma=e.json&&!isFinite(t.gamma)?String(t.gamma):t.gamma),null!=t.indexOffset&&t.hasOwnProperty("indexOffset")&&(n.indexOffset=e.json&&!isFinite(t.indexOffset)?String(t.indexOffset):t.indexOffset),null!=t.interpolation&&t.hasOwnProperty("interpolation")&&(n.interpolation=e.enums===String?u.IndexMapping.Interpolation[t.interpolation]:t.interpolation),n},t.prototype.toJSON=function(){return this.constructor.toObject(this,i.util.toJSONOptions)},t.Interpolation=function(){var t={},e=Object.create(t);return e[t[0]="NONE"]=0,e[t[1]="LINEAR"]=1,e[t[2]="QUADRATIC"]=2,e[t[3]="CUBIC"]=3,e}(),t}(),u.Store=function(){function t(t){if(this.binCounts={},this.contiguousBinCounts=[],t)for(var e=Object.keys(t),n=0;n>>3){case 1:a.binCounts===s.emptyObject&&(a.binCounts={});var l=t.uint32()+t.pos;for(n=0,i=0;t.pos>>3){case 1:n=t.sint32();break;case 2:i=t.double();break;default:t.skipType(7&c)}}a.binCounts[n]=i;break;case 2:if(a.contiguousBinCounts&&a.contiguousBinCounts.length||(a.contiguousBinCounts=[]),(7&f)==2)for(var l=t.uint32()+t.pos;t.posthis.maxKey)&&this._extendRange(t.minKey,t.maxKey);var e=t.maxKey-t.offset+1,n=Math.max(this.maxKey+1,t.minKey)-t.offset;if(e>n){var i=(0,r.sumOfRange)(t.bins,n,e);this.bins[this.length()-1]+=i}else n=e;for(var o=t.minKey;othis.length())if((e=t+this.length()+1)<=this.minKey)this.offset=t,this.maxKey=e,this.bins.fill(0),this.bins[this.length()-1]=this.count;else{var n=this.offset-t;if(n>0){var i=e-this.offset+1,o=this.maxKey-this.offset+1,s=(0,r.sumOfRange)(this.bins,i,o);this.bins.fill(0,i,o),this.bins[i-1]+=s,this.maxKey=e,this._shiftBins(n)}else this.maxKey=e,this._shiftBins(n);this.minKey=t,this.isCollapsed=!0}else this._centerBins(t,e),this.minKey=t,this.maxKey=e},e.prototype._getIndex=function(t){if(tthis.maxKey&&this._extendRange(t);return t-this.offset},e}(o.DenseStore)},552:function(t,e,n){var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0}),e.CollapsingLowestDenseStore=void 0;var o=n(1598),r=n(4358);e.CollapsingLowestDenseStore=function(t){function e(e,n){var i=t.call(this,n)||this;return i.binLimit=e,i.isCollapsed=!1,i}return i(e,t),e.prototype.merge=function(t){if(0!==t.count){if(0===this.count)return void this.copy(t);(t.minKeythis.maxKey)&&this._extendRange(t.minKey,t.maxKey);var e=t.minKey-t.offset,n=Math.min(this.minKey,t.maxKey+1)-t.offset;if(n>e){var i=(0,r.sumOfRange)(t.bins,e,n);this.bins[0]+=i}else n=e;for(var o=n+t.offset;othis.length()){if((t=e-this.length()+1)>=this.maxKey)this.offset=t,this.minKey=t,this.bins.fill(0),this.bins[0]=this.count;else{var n=this.offset-t;if(n<0){var i=this.minKey-this.offset,o=t-this.offset,s=(0,r.sumOfRange)(this.bins,i,o);this.bins.fill(0,i,o),this.bins[o]+=s,this.minKey=t,this._shiftBins(n)}else this.minKey=t,this._shiftBins(n)}this.maxKey=e,this.isCollapsed=!0}else this._centerBins(t,e),this.minKey=t,this.maxKey=e},e.prototype._getIndex=function(t){if(tthis.maxKey&&this._extendRange(t);return t-this.offset},e}(o.DenseStore)},1598:function(t,e,n){var i=this&&this.__spreadArray||function(t,e,n){if(n||2==arguments.length)for(var i,o=0,r=e.length;ot||!e&&n>=t+1)return i+this.offset;return this.maxKey},t.prototype.merge=function(t){if(0!==t.count){if(0===this.count)return void this.copy(t);(t.minKeythis.maxKey)&&this._extendRange(t.minKey,t.maxKey);var e=t.minKey-t.offset,n=Math.min(this.minKey,t.maxKey+1)-t.offset;if(n>e){var i=(0,o.sumOfRange)(t.bins,e,n);this.bins[0]+=i}else n=e;for(var r=n+t.offset;r0?(this.bins=this.bins.slice(0,-t),(e=this.bins).unshift.apply(e,Array(t).fill(0))):(this.bins=this.bins.slice(Math.abs(t)),(n=this.bins).push.apply(n,Array(Math.abs(t)).fill(0))),this.offset-=t},t.prototype._centerBins=function(t,e){var n=t+Math.floor((e-t+1)/2);this._shiftBins(Math.floor(this.offset+this.length()/2)-n)},t.prototype._extendRange=function(t,e){e=e||t;var n,i=Math.min(t,e,this.minKey),o=Math.max(t,e,this.maxKey);if(0===this.length())this.bins=Array(this._getNewLength(i,o)).fill(0),this.offset=i,this._adjust(i,o);else if(i>=this.minKey&&othis.length()&&(n=this.bins).push.apply(n,Array(r-this.length()).fill(0)),this._adjust(i,o)}},t.prototype._getIndex=function(t){return tthis.maxKey&&this._extendRange(t),t-this.offset},t.prototype.toProto=function(){return n(4072).Store.create({contiguousBinCounts:this.bins,contiguousBinIndexOffset:this.offset})},t.fromProto=function(t){if(!t||null==t.contiguousBinCounts||null==t.contiguousBinIndexOffset)throw Error("Failed to decode store from protobuf");var e=new this,n=t.contiguousBinIndexOffset;e.offset=n;for(var i=0,o=t.contiguousBinCounts;i1&&"="===t.charAt(e);)++n;return Math.ceil(3*t.length)/4-n};for(var i=Array(64),o=Array(123),r=0;r<64;)o[i[r]=r<26?r+65:r<52?r+71:r<62?r-4:r-59|43]=r++;n.encode=function(t,e,n){for(var o,r=null,s=[],u=0,a=0;e>2],o=(3&f)<<4,a=1;break;case 1:s[u++]=i[o|f>>4],o=(15&f)<<2,a=2;break;case 2:s[u++]=i[o|f>>6],s[u++]=i[63&f],a=0}u>8191&&((r||(r=[])).push(String.fromCharCode.apply(String,s)),u=0)}return(a&&(s[u++]=i[o],s[u++]=61,1===a&&(s[u++]=61)),r)?(u&&r.push(String.fromCharCode.apply(String,s.slice(0,u))),r.join("")):String.fromCharCode.apply(String,s.slice(0,u))};var s="invalid encoding";n.decode=function(t,e,n){for(var i,r=n,u=0,a=0;a1)break;if(void 0===(f=o[f]))throw Error(s);switch(u){case 0:i=f,u=1;break;case 1:e[n++]=i<<2|(48&f)>>4,i=f,u=2;break;case 2:e[n++]=(15&i)<<4|(60&f)>>2,i=f,u=3;break;case 3:e[n++]=(3&i)<<6|f,u=0}}if(1===u)throw Error(s);return n-r},n.test=function(t){return/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(t)}},1977:function(t){function e(){this._listeners={}}t.exports=e,e.prototype.on=function(t,e,n){return(this._listeners[t]||(this._listeners[t]=[])).push({fn:e,ctx:n||this}),this},e.prototype.off=function(t,e){if(void 0===t)this._listeners={};else if(void 0===e)this._listeners[t]=[];else for(var n=this._listeners[t],i=0;i0?0:0x80000000,n,i);else if(isNaN(e))t(0x7fc00000,n,i);else if(e>34028234663852886e22)t((o<<31|0x7f800000)>>>0,n,i);else if(e<11754943508222875e-54)t((o<<31|Math.round(e/1401298464324817e-60))>>>0,n,i);else{var r=Math.floor(Math.log(e)/Math.LN2),s=8388607&Math.round(e*Math.pow(2,-r)*8388608);t((o<<31|r+127<<23|s)>>>0,n,i)}}function s(t,e,n){var i=t(e,n),o=(i>>31)*2+1,r=i>>>23&255,s=8388607&i;return 255===r?s?NaN:1/0*o:0===r?1401298464324817e-60*o*s:o*Math.pow(2,r-150)*(s+8388608)}t.writeFloatLE=e.bind(null,n),t.writeFloatBE=e.bind(null,i),t.readFloatLE=s.bind(null,o),t.readFloatBE=s.bind(null,r)}(),"undefined"!=typeof Float64Array?!function(){var e=new Float64Array([-0]),n=new Uint8Array(e.buffer),i=128===n[7];function o(t,i,o){e[0]=t,i[o]=n[0],i[o+1]=n[1],i[o+2]=n[2],i[o+3]=n[3],i[o+4]=n[4],i[o+5]=n[5],i[o+6]=n[6],i[o+7]=n[7]}function r(t,i,o){e[0]=t,i[o]=n[7],i[o+1]=n[6],i[o+2]=n[5],i[o+3]=n[4],i[o+4]=n[3],i[o+5]=n[2],i[o+6]=n[1],i[o+7]=n[0]}function s(t,i){return n[0]=t[i],n[1]=t[i+1],n[2]=t[i+2],n[3]=t[i+3],n[4]=t[i+4],n[5]=t[i+5],n[6]=t[i+6],n[7]=t[i+7],e[0]}function u(t,i){return n[7]=t[i],n[6]=t[i+1],n[5]=t[i+2],n[4]=t[i+3],n[3]=t[i+4],n[2]=t[i+5],n[1]=t[i+6],n[0]=t[i+7],e[0]}t.writeDoubleLE=i?o:r,t.writeDoubleBE=i?r:o,t.readDoubleLE=i?s:u,t.readDoubleBE=i?u:s}():!function(){function e(t,e,n,i,o,r){var s,u=+(i<0);if(u&&(i=-i),0===i)t(0,o,r+e),t(1/i>0?0:0x80000000,o,r+n);else if(isNaN(i))t(0,o,r+e),t(0x7ff80000,o,r+n);else if(i>17976931348623157e292)t(0,o,r+e),t((u<<31|0x7ff00000)>>>0,o,r+n);else if(i<22250738585072014e-324)t((s=i/5e-324)>>>0,o,r+e),t((u<<31|s/0x100000000)>>>0,o,r+n);else{var a=Math.floor(Math.log(i)/Math.LN2);1024===a&&(a=1023),t(0x10000000000000*(s=i*Math.pow(2,-a))>>>0,o,r+e),t((u<<31|a+1023<<20|1048576*s&1048575)>>>0,o,r+n)}}function s(t,e,n,i,o){var r=t(i,o+e),s=t(i,o+n),u=(s>>31)*2+1,a=s>>>20&2047,f=0x100000000*(1048575&s)+r;return 2047===a?f?NaN:1/0*u:0===a?5e-324*u*f:u*Math.pow(2,a-1075)*(f+0x10000000000000)}t.writeDoubleLE=e.bind(null,n,0,4),t.writeDoubleBE=e.bind(null,i,4,0),t.readDoubleLE=s.bind(null,o,0,4),t.readDoubleBE=s.bind(null,r,4,0)}(),t}function n(t,e,n){e[n]=255&t,e[n+1]=t>>>8&255,e[n+2]=t>>>16&255,e[n+3]=t>>>24}function i(t,e,n){e[n]=t>>>24,e[n+1]=t>>>16&255,e[n+2]=t>>>8&255,e[n+3]=255&t}function o(t,e){return(t[e]|t[e+1]<<8|t[e+2]<<16|t[e+3]<<24)>>>0}function r(t,e){return(t[e]<<24|t[e+1]<<16|t[e+2]<<8|t[e+3])>>>0}t.exports=e(e)},4153:function(module){module.exports=inquire;function inquire(moduleName){try{var mod=eval("quire".replace(/^/,"re"))(moduleName);if(mod&&(mod.length||Object.keys(mod).length))return mod}catch(e){}return null}},9390:function(t){t.exports=e;function e(t,e,n){var i=n||8192,o=i>>>1,r=null,s=i;return function(n){if(n<1||n>o)return t(n);s+n>i&&(r=t(i),s=0);var u=e.call(r,s,s+=n);return 7&s&&(s=(7|s)+1),u}}},1447:function(t,e){var n=e;n.length=function(t){for(var e=0,n=0,i=0;i191&&i<224?r[s++]=(31&i)<<6|63&t[e++]:i>239&&i<365?(i=((7&i)<<18|(63&t[e++])<<12|(63&t[e++])<<6|63&t[e++])-65536,r[s++]=55296+(i>>10),r[s++]=56320+(1023&i)):r[s++]=(15&i)<<12|(63&t[e++])<<6|63&t[e++],s>8191&&((o||(o=[])).push(String.fromCharCode.apply(String,r)),s=0);return o?(s&&o.push(String.fromCharCode.apply(String,r.slice(0,s))),o.join("")):String.fromCharCode.apply(String,r.slice(0,s))},n.write=function(t,e,n){for(var i,o,r=n,s=0;s>6|192:((64512&i)==55296&&(64512&(o=t.charCodeAt(s+1)))==56320?(i=65536+((1023&i)<<10)+(1023&o),++s,e[n++]=i>>18|240,e[n++]=i>>12&63|128):e[n++]=i>>12|224,e[n++]=i>>6&63|128),e[n++]=63&i|128);return n-r}},6946:function(t,e,n){t.exports=n(4394)},4394:function(t,e,n){var i=e;function o(){i.util._configure(),i.Writer._configure(i.BufferWriter),i.Reader._configure(i.BufferReader)}i.build="minimal",i.Writer=n(3449),i.BufferWriter=n(818),i.Reader=n(6237),i.BufferReader=n(3158),i.util=n(3610),i.rpc=n(5047),i.roots=n(4529),i.configure=o,o()},6237:function(t,e,n){t.exports=a;var i,o=n(3610),r=o.LongBits,s=o.utf8;function u(t,e){return RangeError("index out of range: "+t.pos+" + "+(e||1)+" > "+t.len)}function a(t){this.buf=t,this.pos=0,this.len=t.length}var f="undefined"!=typeof Uint8Array?function(t){if(t instanceof Uint8Array||Array.isArray(t))return new a(t);throw Error("illegal buffer")}:function(t){if(Array.isArray(t))return new a(t);throw Error("illegal buffer")},l=function(){return o.Buffer?function(t){return(a.create=function(t){return o.Buffer.isBuffer(t)?new i(t):f(t)})(t)}:f};function c(){var t=new r(0,0),e=0;if(this.len-this.pos>4){for(;e<4;++e)if(t.lo=(t.lo|(127&this.buf[this.pos])<<7*e)>>>0,this.buf[this.pos++]<128)return t;if(t.lo=(t.lo|(127&this.buf[this.pos])<<28)>>>0,t.hi=(t.hi|(127&this.buf[this.pos])>>4)>>>0,this.buf[this.pos++]<128)return t;e=0}else{for(;e<3;++e){if(this.pos>=this.len)throw u(this);if(t.lo=(t.lo|(127&this.buf[this.pos])<<7*e)>>>0,this.buf[this.pos++]<128)return t}return t.lo=(t.lo|(127&this.buf[this.pos++])<<7*e)>>>0,t}if(this.len-this.pos>4){for(;e<5;++e)if(t.hi=(t.hi|(127&this.buf[this.pos])<<7*e+3)>>>0,this.buf[this.pos++]<128)return t}else for(;e<5;++e){if(this.pos>=this.len)throw u(this);if(t.hi=(t.hi|(127&this.buf[this.pos])<<7*e+3)>>>0,this.buf[this.pos++]<128)return t}throw Error("invalid varint encoding")}function p(t,e){return(t[e-4]|t[e-3]<<8|t[e-2]<<16|t[e-1]<<24)>>>0}function h(){if(this.pos+8>this.len)throw u(this,8);return new r(p(this.buf,this.pos+=4),p(this.buf,this.pos+=4))}a.create=l(),a.prototype._slice=o.Array.prototype.subarray||o.Array.prototype.slice,a.prototype.uint32=function(){var t=0xffffffff;return function(){if(t=(127&this.buf[this.pos])>>>0,this.buf[this.pos++]<128||(t=(t|(127&this.buf[this.pos])<<7)>>>0,this.buf[this.pos++]<128)||(t=(t|(127&this.buf[this.pos])<<14)>>>0,this.buf[this.pos++]<128)||(t=(t|(127&this.buf[this.pos])<<21)>>>0,this.buf[this.pos++]<128)||(t=(t|(15&this.buf[this.pos])<<28)>>>0,this.buf[this.pos++]<128))return t;if((this.pos+=5)>this.len)throw this.pos=this.len,u(this,10);return t}}(),a.prototype.int32=function(){return 0|this.uint32()},a.prototype.sint32=function(){var t=this.uint32();return t>>>1^-(1&t)},a.prototype.bool=function(){return 0!==this.uint32()},a.prototype.fixed32=function(){if(this.pos+4>this.len)throw u(this,4);return p(this.buf,this.pos+=4)},a.prototype.sfixed32=function(){if(this.pos+4>this.len)throw u(this,4);return 0|p(this.buf,this.pos+=4)},a.prototype.float=function(){if(this.pos+4>this.len)throw u(this,4);var t=o.float.readFloatLE(this.buf,this.pos);return this.pos+=4,t},a.prototype.double=function(){if(this.pos+8>this.len)throw u(this,4);var t=o.float.readDoubleLE(this.buf,this.pos);return this.pos+=8,t},a.prototype.bytes=function(){var t=this.uint32(),e=this.pos,n=this.pos+t;if(n>this.len)throw u(this,t);if(this.pos+=t,Array.isArray(this.buf))return this.buf.slice(e,n);if(e===n){var i=o.Buffer;return i?i.alloc(0):new this.buf.constructor(0)}return this._slice.call(this.buf,e,n)},a.prototype.string=function(){var t=this.bytes();return s.read(t,0,t.length)},a.prototype.skip=function(t){if("number"==typeof t){if(this.pos+t>this.len)throw u(this,t);this.pos+=t}else do if(this.pos>=this.len)throw u(this);while(128&this.buf[this.pos++]);return this},a.prototype.skipType=function(t){switch(t){case 0:this.skip();break;case 1:this.skip(8);break;case 2:this.skip(this.uint32());break;case 3:for(;4!=(t=7&this.uint32());)this.skipType(t);break;case 5:this.skip(4);break;default:throw Error("invalid wire type "+t+" at offset "+this.pos)}return this},a._configure=function(t){i=t,a.create=l(),i._configure();var e=o.Long?"toLong":"toNumber";o.merge(a.prototype,{int64:function(){return c.call(this)[e](!1)},uint64:function(){return c.call(this)[e](!0)},sint64:function(){return c.call(this).zzDecode()[e](!1)},fixed64:function(){return h.call(this)[e](!0)},sfixed64:function(){return h.call(this)[e](!1)}})}},3158:function(t,e,n){t.exports=r;var i=n(6237);(r.prototype=Object.create(i.prototype)).constructor=r;var o=n(3610);function r(t){i.call(this,t)}r._configure=function(){o.Buffer&&(r.prototype._slice=o.Buffer.prototype.slice)},r.prototype.string=function(){var t=this.uint32();return this.buf.utf8Slice?this.buf.utf8Slice(this.pos,this.pos=Math.min(this.pos+t,this.len)):this.buf.toString("utf-8",this.pos,this.pos=Math.min(this.pos+t,this.len))},r._configure()},4529:function(t){t.exports={}},5047:function(t,e,n){e.Service=n(7595)},7595:function(t,e,n){t.exports=o;var i=n(3610);function o(t,e,n){if("function"!=typeof t)throw TypeError("rpcImpl must be a function");i.EventEmitter.call(this),this.rpcImpl=t,this.requestDelimited=!!e,this.responseDelimited=!!n}(o.prototype=Object.create(i.EventEmitter.prototype)).constructor=o,o.prototype.rpcCall=function t(e,n,o,r,s){if(!r)throw TypeError("request must be specified");var u=this;if(!s)return i.asPromise(t,u,e,n,o,r);if(!u.rpcImpl)return void setTimeout(function(){s(Error("already ended"))},0);try{return u.rpcImpl(e,n[u.requestDelimited?"encodeDelimited":"encode"](r).finish(),function(t,n){if(t)return u.emit("error",t,e),s(t);if(null===n)return void u.end(!0);if(!(n instanceof o))try{n=o[u.responseDelimited?"decodeDelimited":"decode"](n)}catch(t){return u.emit("error",t,e),s(t)}return u.emit("data",n,e),s(null,n)})}catch(t){u.emit("error",t,e),setTimeout(function(){s(t)},0);return}},o.prototype.end=function(t){return this.rpcImpl&&(t||this.rpcImpl(null,null,null),this.rpcImpl=null,this.emit("end").off()),this}},2239:function(t,e,n){t.exports=o;var i=n(3610);function o(t,e){this.lo=t>>>0,this.hi=e>>>0}var r=o.zero=new o(0,0);r.toNumber=function(){return 0},r.zzEncode=r.zzDecode=function(){return this},r.length=function(){return 1};var s=o.zeroHash="\0\0\0\0\0\0\0\0";o.fromNumber=function(t){if(0===t)return r;var e=t<0;e&&(t=-t);var n=t>>>0,i=(t-n)/0x100000000>>>0;return e&&(i=~i>>>0,n=~n>>>0,++n>0xffffffff&&(n=0,++i>0xffffffff&&(i=0))),new o(n,i)},o.from=function(t){if("number"==typeof t)return o.fromNumber(t);if(i.isString(t))if(!i.Long)return o.fromNumber(parseInt(t,10));else t=i.Long.fromString(t);return t.low||t.high?new o(t.low>>>0,t.high>>>0):r},o.prototype.toNumber=function(t){if(!t&&this.hi>>>31){var e=~this.lo+1>>>0,n=~this.hi>>>0;return e||(n=n+1>>>0),-(e+0x100000000*n)}return this.lo+0x100000000*this.hi},o.prototype.toLong=function(t){return i.Long?new i.Long(0|this.lo,0|this.hi,!!t):{low:0|this.lo,high:0|this.hi,unsigned:!!t}};var u=String.prototype.charCodeAt;o.fromHash=function(t){return t===s?r:new o((u.call(t,0)|u.call(t,1)<<8|u.call(t,2)<<16|u.call(t,3)<<24)>>>0,(u.call(t,4)|u.call(t,5)<<8|u.call(t,6)<<16|u.call(t,7)<<24)>>>0)},o.prototype.toHash=function(){return String.fromCharCode(255&this.lo,this.lo>>>8&255,this.lo>>>16&255,this.lo>>>24,255&this.hi,this.hi>>>8&255,this.hi>>>16&255,this.hi>>>24)},o.prototype.zzEncode=function(){var t=this.hi>>31;return this.hi=((this.hi<<1|this.lo>>>31)^t)>>>0,this.lo=(this.lo<<1^t)>>>0,this},o.prototype.zzDecode=function(){var t=-(1&this.lo);return this.lo=((this.lo>>>1|this.hi<<31)^t)>>>0,this.hi=(this.hi>>>1^t)>>>0,this},o.prototype.length=function(){var t=this.lo,e=(this.lo>>>28|this.hi<<4)>>>0,n=this.hi>>>24;return 0===n?0===e?t<16384?t<128?1:2:t<2097152?3:4:e<16384?e<128?5:6:e<2097152?7:8:n<128?9:10}},3610:function(t,e,n){var i=e;function o(t,e,n){for(var i=Object.keys(e),o=0;o0)},i.Buffer=function(){try{var t=i.inquire("buffer").Buffer;return t.prototype.utf8Write?t:null}catch(t){return null}}(),i._Buffer_from=null,i._Buffer_allocUnsafe=null,i.newBuffer=function(t){return"number"==typeof t?i.Buffer?i._Buffer_allocUnsafe(t):new i.Array(t):i.Buffer?i._Buffer_from(t):"undefined"==typeof Uint8Array?t:new Uint8Array(t)},i.Array="undefined"!=typeof Uint8Array?Uint8Array:Array,i.Long=i.global.dcodeIO&&i.global.dcodeIO.Long||i.global.Long||i.inquire("long"),i.key2Re=/^true|false|0|1$/,i.key32Re=/^-?(?:0|[1-9][0-9]*)$/,i.key64Re=/^(?:[\\x00-\\xff]{8}|-?(?:0|[1-9][0-9]*))$/,i.longToHash=function(t){return t?i.LongBits.from(t).toHash():i.LongBits.zeroHash},i.longFromHash=function(t,e){var n=i.LongBits.fromHash(t);return i.Long?i.Long.fromBits(n.lo,n.hi,e):n.toNumber(!!e)},i.merge=o,i.lcFirst=function(t){return t.charAt(0).toLowerCase()+t.substring(1)},i.newError=r,i.ProtocolError=r("ProtocolError"),i.oneOfGetter=function(t){for(var e={},n=0;n-1;--n)if(1===e[t[n]]&&void 0!==this[t[n]]&&null!==this[t[n]])return t[n]}},i.oneOfSetter=function(t){return function(e){for(var n=0;n127;)e[n++]=127&t|128,t>>>=7;e[n]=t}function g(t,e){this.len=t,this.next=void 0,this.val=e}function d(t,e,n){for(;t.hi;)e[n++]=127&t.lo|128,t.lo=(t.lo>>>7|t.hi<<25)>>>0,t.hi>>>=7;for(;t.lo>127;)e[n++]=127&t.lo|128,t.lo=t.lo>>>7;e[n++]=t.lo}function m(t,e,n){e[n]=255&t,e[n+1]=t>>>8&255,e[n+2]=t>>>16&255,e[n+3]=t>>>24}c.create=p(),c.alloc=function(t){return new o.Array(t)},o.Array!==Array&&(c.alloc=o.pool(c.alloc,o.Array.prototype.subarray)),c.prototype._push=function(t,e,n){return this.tail=this.tail.next=new a(t,e,n),this.len+=e,this},g.prototype=Object.create(a.prototype),g.prototype.fn=y,c.prototype.uint32=function(t){return this.len+=(this.tail=this.tail.next=new g((t>>>=0)<128?1:t<16384?2:t<2097152?3:t<0x10000000?4:5,t)).len,this},c.prototype.int32=function(t){return t<0?this._push(d,10,r.fromNumber(t)):this.uint32(t)},c.prototype.sint32=function(t){return this.uint32((t<<1^t>>31)>>>0)},c.prototype.uint64=function(t){var e=r.from(t);return this._push(d,e.length(),e)},c.prototype.int64=c.prototype.uint64,c.prototype.sint64=function(t){var e=r.from(t).zzEncode();return this._push(d,e.length(),e)},c.prototype.bool=function(t){return this._push(h,1,+!!t)},c.prototype.fixed32=function(t){return this._push(m,4,t>>>0)},c.prototype.sfixed32=c.prototype.fixed32,c.prototype.fixed64=function(t){var e=r.from(t);return this._push(m,4,e.lo)._push(m,4,e.hi)},c.prototype.sfixed64=c.prototype.fixed64,c.prototype.float=function(t){return this._push(o.float.writeFloatLE,4,t)},c.prototype.double=function(t){return this._push(o.float.writeDoubleLE,8,t)};var b=o.Array.prototype.set?function(t,e,n){e.set(t,n)}:function(t,e,n){for(var i=0;i>>0;if(!e)return this._push(h,1,0);if(o.isString(t)){var n=c.alloc(e=s.length(t));s.decode(t,n,0),t=n}return this.uint32(e)._push(b,e,t)},c.prototype.string=function(t){var e=u.length(t);return e?this.uint32(e)._push(u.write,e,t):this._push(h,1,0)},c.prototype.fork=function(){return this.states=new l(this),this.head=this.tail=new a(f,0,0),this.len=0,this},c.prototype.reset=function(){return this.states?(this.head=this.states.head,this.tail=this.states.tail,this.len=this.states.len,this.states=this.states.next):(this.head=this.tail=new a(f,0,0),this.len=0),this},c.prototype.ldelim=function(){var t=this.head,e=this.tail,n=this.len;return this.reset().uint32(n),n&&(this.tail.next=t.next,this.tail=e,this.len+=n),this},c.prototype.finish=function(){for(var t=this.head.next,e=this.constructor.alloc(this.len),n=0;t;)t.fn(t.val,e,n),n+=t.len,t=t.next;return e},c._configure=function(t){i=t,c.create=p(),i._configure()}},818:function(t,e,n){t.exports=r;var i=n(3449);(r.prototype=Object.create(i.prototype)).constructor=r;var o=n(3610);function r(){i.call(this)}function s(t,e,n){t.length<40?o.utf8.write(t,e,n):e.utf8Write?e.utf8Write(t,n):e.write(t,n)}r._configure=function(){r.alloc=o._Buffer_allocUnsafe,r.writeBytesBuffer=o.Buffer&&o.Buffer.prototype instanceof Uint8Array&&"set"===o.Buffer.prototype.set.name?function(t,e,n){e.set(t,n)}:function(t,e,n){if(t.copy)t.copy(e,n,0,t.length);else for(var i=0;i>>0;return this.uint32(e),e&&this._push(r.writeBytesBuffer,e,t),this},r.prototype.string=function(t){var e=o.Buffer.byteLength(t);return this.uint32(e),e&&this._push(s,e,t),this},r._configure()}},__webpack_module_cache__={};function __webpack_require__(t){var e=__webpack_module_cache__[t];if(void 0!==e)return e.exports;var n=__webpack_module_cache__[t]={exports:{}};return __webpack_modules__[t].call(n.exports,n,n.exports,__webpack_require__),n.exports}var __webpack_exports__=__webpack_require__(4685);module.exports=__webpack_exports__})(); \ No newline at end of file +(()=>{"use strict";var __webpack_modules__={2781:function(t,e,n){var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0}),e.LogCollapsingHighestDenseDDSketch=e.LogCollapsingLowestDenseDDSketch=e.DDSketch=void 0;var o=n(1047),r=n(2348),s=.01,u=2048,a=function(){function t(t){var e=t.mapping,n=t.store,i=t.negativeStore,o=t.zeroCount;this.mapping=e,this.store=n,this.negativeStore=i,this.zeroCount=o,this.count=this.negativeStore.count+this.zeroCount+this.store.count,this.min=1/0,this.max=-1/0,this.sum=0}return t.prototype.accept=function(t,e){if(void 0===e&&(e=1),e<=0)throw Error("Weight must be a positive number");if(t>this.mapping.minPossible){var n=this.mapping.key(t);this.store.add(n,e)}else if(t<-this.mapping.minPossible){var n=this.mapping.key(-t);this.negativeStore.add(n,e)}else this.zeroCount+=e;this.count+=e,this.sum+=t*e,tthis.max&&(this.max=t)},t.prototype.getValueAtQuantile=function(t){if(t<0||t>1||0===this.count)return NaN;var e=t*(this.count-1),n=0;if(ethis.max&&(this.max=t.max)}},t.prototype.mergeable=function(t){return this.mapping.gamma===t.mapping.gamma},t.prototype._copy=function(t){this.store.copy(t.store),this.negativeStore.copy(t.negativeStore),this.zeroCount=t.zeroCount,this.min=t.min,this.max=t.max,this.count=t.count,this.sum=t.sum},t.prototype.toProto=function(){var t=n(3881).DDSketch,e=t.create({mapping:this.mapping.toProto(),positiveValues:this.store.toProto(),negativeValues:this.negativeStore.toProto(),zeroCount:this.zeroCount});return t.encode(e).finish()},t.fromProto=function(e){var i=n(3881).DDSketch.decode(e);return new t({mapping:r.KeyMapping.fromProto(i.mapping),store:o.DenseStore.fromProto(i.positiveValues),negativeStore:o.DenseStore.fromProto(i.negativeValues),zeroCount:i.zeroCount})},t}(),f={relativeAccuracy:s};e.DDSketch=function(t){function e(e){var n=(void 0===e?f:e).relativeAccuracy,i=void 0===n?s:n,u=new r.LogarithmicMapping(i),a=new o.DenseStore,l=new o.DenseStore;return t.call(this,{mapping:u,store:a,negativeStore:l,zeroCount:0})||this}return i(e,t),e}(a),e.LogCollapsingLowestDenseDDSketch=function(t){function e(e){var n=void 0===e?f:e,i=n.relativeAccuracy,a=void 0===i?s:i,l=n.binLimit,c=void 0===l?u:l,p=new r.LogarithmicMapping(a),h=new o.CollapsingLowestDenseStore(c),y=new o.CollapsingLowestDenseStore(c);return t.call(this,{mapping:p,store:h,negativeStore:y,zeroCount:0})||this}return i(e,t),e}(a),e.LogCollapsingHighestDenseDDSketch=function(t){function e(e){var n=void 0===e?f:e,i=n.relativeAccuracy,a=void 0===i?s:i,l=n.binLimit,c=void 0===l?u:l,p=new r.LogarithmicMapping(a),h=new o.CollapsingHighestDenseStore(c),y=new o.CollapsingHighestDenseStore(c);return t.call(this,{mapping:p,store:h,negativeStore:y,zeroCount:0})||this}return i(e,t),e}(a)},6729:function(t,e,n){var i=this&&this.__createBinding||(Object.create?function(t,e,n,i){void 0===i&&(i=n);var o=Object.getOwnPropertyDescriptor(e,n);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,i,o)}:function(t,e,n,i){void 0===i&&(i=n),t[i]=e[n]}),o=this&&this.__exportStar||function(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||i(e,t,n)};Object.defineProperty(e,"__esModule",{value:!0}),o(n(2781),e)},3711:function(t,e,n){var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0}),e.CubicallyInterpolatedMapping=void 0;var o=n(1289),r=n(4879);e.CubicallyInterpolatedMapping=function(t){function e(e,n){void 0===n&&(n=0);var i=t.call(this,e,n)||this;return i.A=6/35,i.B=-.6,i.C=10/7,i._multiplier/=i.C,i}return i(e,t),e.prototype._cubicLog2Approx=function(t){var e=(0,r.frexp)(t),n=e[0],i=e[1],o=2*n-1;return((this.A*o+this.B)*o+this.C)*o+(i-1)},e.prototype._cubicExp2Approx=function(t){var e=Math.floor(t),n=this.B*this.B-3*this.A*this.C,i=2*this.B*this.B*this.B-9*this.A*this.B*this.C-27*this.A*this.A*(t-e),o=Math.cbrt((i-Math.sqrt(i*i-4*n*n*n))/2),s=(-(this.B+o+n/o)/(3*this.A)+1)/2;return(0,r.ldexp)(s,e+1)},e.prototype._logGamma=function(t){return this._cubicLog2Approx(t)*this._multiplier},e.prototype._powGamma=function(t){return this._cubicExp2Approx(t/this._multiplier)},e.prototype._protoInterpolation=function(){return n(3881).IndexMapping.Interpolation.CUBIC},e}(o.KeyMapping)},1289:function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.KeyMapping=void 0;var i=n(2348),o=11125369292536007e-324,r=Number.MAX_VALUE;e.KeyMapping=function(){function t(t,e){if(void 0===e&&(e=0),t<=0||t>=1)throw Error("Relative accuracy must be between 0 and 1 when initializing a KeyMapping");this.relativeAccuracy=t,this._offset=e;var n=2*t/(1-t);this.gamma=1+n,this._multiplier=1/Math.log1p(n),this.minPossible=o*this.gamma,this.maxPossible=r/this.gamma}return t.fromGammaOffset=function(t,e){return new this((t-1)/(t+1),e)},t.prototype.key=function(t){return Math.ceil(this._logGamma(t))+this._offset},t.prototype.value=function(t){return this._powGamma(t-this._offset)*(2/(1+this.gamma))},t.prototype.toProto=function(){return n(3881).IndexMapping.create({gamma:this.gamma,indexOffset:this._offset,interpolation:this._protoInterpolation()})},t.fromProto=function(t){if(!t||null==t.gamma||null==t.indexOffset)throw Error("Failed to decode mapping from protobuf");var e=n(3881).IndexMapping.Interpolation,o=t.interpolation,r=t.gamma,s=t.indexOffset;switch(o){case e.NONE:return i.LogarithmicMapping.fromGammaOffset(r,s);case e.LINEAR:return i.LinearlyInterpolatedMapping.fromGammaOffset(r,s);case e.CUBIC:return i.CubicallyInterpolatedMapping.fromGammaOffset(r,s);default:throw Error("Unrecognized mapping when decoding from protobuf")}},t.prototype._logGamma=function(t){return Math.log2(t)*this._multiplier},t.prototype._powGamma=function(t){return Math.pow(2,t/this._multiplier)},t.prototype._protoInterpolation=function(){return n(3881).IndexMapping.Interpolation.NONE},t}()},9935:function(t,e,n){var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0}),e.LinearlyInterpolatedMapping=void 0;var o=n(1289),r=n(4879);e.LinearlyInterpolatedMapping=function(t){function e(e,n){return void 0===n&&(n=0),t.call(this,e,n)||this}return i(e,t),e.prototype._log2Approx=function(t){var e=(0,r.frexp)(t);return 2*e[0]-1+(e[1]-1)},e.prototype._exp2Approx=function(t){var e=Math.floor(t)+1,n=(t-e+2)/2;return(0,r.ldexp)(n,e)},e.prototype._logGamma=function(t){return Math.log2(t)*this._multiplier},e.prototype._powGamma=function(t){return Math.pow(2,t/this._multiplier)},e.prototype._protoInterpolation=function(){return n(3881).IndexMapping.Interpolation.LINEAR},e}(o.KeyMapping)},4017:function(t,e,n){var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0}),e.LogarithmicMapping=void 0,e.LogarithmicMapping=function(t){function e(e,n){void 0===n&&(n=0);var i=t.call(this,e,n)||this;return i._multiplier*=Math.log(2),i}return i(e,t),e.prototype._logGamma=function(t){return Math.log2(t)*this._multiplier},e.prototype._powGamma=function(t){return Math.pow(2,t/this._multiplier)},e.prototype._protoInterpolation=function(){return n(3881).IndexMapping.Interpolation.NONE},e}(n(1289).KeyMapping)},2348:function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.CubicallyInterpolatedMapping=e.LinearlyInterpolatedMapping=e.LogarithmicMapping=e.KeyMapping=void 0;var i=n(1289);Object.defineProperty(e,"KeyMapping",{enumerable:!0,get:function(){return i.KeyMapping}});var o=n(4017);Object.defineProperty(e,"LogarithmicMapping",{enumerable:!0,get:function(){return o.LogarithmicMapping}});var r=n(9935);Object.defineProperty(e,"LinearlyInterpolatedMapping",{enumerable:!0,get:function(){return r.LinearlyInterpolatedMapping}});var s=n(3711);Object.defineProperty(e,"CubicallyInterpolatedMapping",{enumerable:!0,get:function(){return s.CubicallyInterpolatedMapping}})},4879:function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.ldexp=e.frexp=void 0,e.frexp=function(t){if(0===t||!Number.isFinite(t))return[t,0];for(var e=Math.abs(t),n=Math.max(-1023,Math.floor(Math.log2(e))+1),i=e*Math.pow(2,-n);i<.5;)i*=2,n--;for(;i>=1;)i*=.5,n++;return t<0&&(i=-i),[i,n]},e.ldexp=function(t,e){for(var n=Math.min(3,Math.ceil(Math.abs(e)/1023)),i=t,o=0;o>>3){case 1:i.mapping=u.IndexMapping.decode(t,t.uint32());break;case 2:i.positiveValues=u.Store.decode(t,t.uint32());break;case 3:i.negativeValues=u.Store.decode(t,t.uint32());break;case 4:i.zeroCount=t.double();break;default:t.skipType(7&r)}}return i},t.decodeDelimited=function(t){return t instanceof o||(t=new o(t)),this.decode(t,t.uint32())},t.verify=function(t){if("object"!=typeof t||null===t)return"object expected";if(null!=t.mapping&&t.hasOwnProperty("mapping")){var e=u.IndexMapping.verify(t.mapping);if(e)return"mapping."+e}if(null!=t.positiveValues&&t.hasOwnProperty("positiveValues")){var e=u.Store.verify(t.positiveValues);if(e)return"positiveValues."+e}if(null!=t.negativeValues&&t.hasOwnProperty("negativeValues")){var e=u.Store.verify(t.negativeValues);if(e)return"negativeValues."+e}return null!=t.zeroCount&&t.hasOwnProperty("zeroCount")&&"number"!=typeof t.zeroCount?"zeroCount: number expected":null},t.fromObject=function(t){if(t instanceof u.DDSketch)return t;var e=new u.DDSketch;if(null!=t.mapping){if("object"!=typeof t.mapping)throw TypeError(".DDSketch.mapping: object expected");e.mapping=u.IndexMapping.fromObject(t.mapping)}if(null!=t.positiveValues){if("object"!=typeof t.positiveValues)throw TypeError(".DDSketch.positiveValues: object expected");e.positiveValues=u.Store.fromObject(t.positiveValues)}if(null!=t.negativeValues){if("object"!=typeof t.negativeValues)throw TypeError(".DDSketch.negativeValues: object expected");e.negativeValues=u.Store.fromObject(t.negativeValues)}return null!=t.zeroCount&&(e.zeroCount=Number(t.zeroCount)),e},t.toObject=function(t,e){e||(e={});var n={};return e.defaults&&(n.mapping=null,n.positiveValues=null,n.negativeValues=null,n.zeroCount=0),null!=t.mapping&&t.hasOwnProperty("mapping")&&(n.mapping=u.IndexMapping.toObject(t.mapping,e)),null!=t.positiveValues&&t.hasOwnProperty("positiveValues")&&(n.positiveValues=u.Store.toObject(t.positiveValues,e)),null!=t.negativeValues&&t.hasOwnProperty("negativeValues")&&(n.negativeValues=u.Store.toObject(t.negativeValues,e)),null!=t.zeroCount&&t.hasOwnProperty("zeroCount")&&(n.zeroCount=e.json&&!isFinite(t.zeroCount)?String(t.zeroCount):t.zeroCount),n},t.prototype.toJSON=function(){return this.constructor.toObject(this,i.util.toJSONOptions)},t}(),u.IndexMapping=function(){function t(t){if(t)for(var e=Object.keys(t),n=0;n>>3){case 1:i.gamma=t.double();break;case 2:i.indexOffset=t.double();break;case 3:i.interpolation=t.int32();break;default:t.skipType(7&r)}}return i},t.decodeDelimited=function(t){return t instanceof o||(t=new o(t)),this.decode(t,t.uint32())},t.verify=function(t){if("object"!=typeof t||null===t)return"object expected";if(null!=t.gamma&&t.hasOwnProperty("gamma")&&"number"!=typeof t.gamma)return"gamma: number expected";if(null!=t.indexOffset&&t.hasOwnProperty("indexOffset")&&"number"!=typeof t.indexOffset)return"indexOffset: number expected";if(null!=t.interpolation&&t.hasOwnProperty("interpolation"))switch(t.interpolation){default:return"interpolation: enum value expected";case 0:case 1:case 2:case 3:}return null},t.fromObject=function(t){if(t instanceof u.IndexMapping)return t;var e=new u.IndexMapping;switch(null!=t.gamma&&(e.gamma=Number(t.gamma)),null!=t.indexOffset&&(e.indexOffset=Number(t.indexOffset)),t.interpolation){case"NONE":case 0:e.interpolation=0;break;case"LINEAR":case 1:e.interpolation=1;break;case"QUADRATIC":case 2:e.interpolation=2;break;case"CUBIC":case 3:e.interpolation=3}return e},t.toObject=function(t,e){e||(e={});var n={};return e.defaults&&(n.gamma=0,n.indexOffset=0,n.interpolation=e.enums===String?"NONE":0),null!=t.gamma&&t.hasOwnProperty("gamma")&&(n.gamma=e.json&&!isFinite(t.gamma)?String(t.gamma):t.gamma),null!=t.indexOffset&&t.hasOwnProperty("indexOffset")&&(n.indexOffset=e.json&&!isFinite(t.indexOffset)?String(t.indexOffset):t.indexOffset),null!=t.interpolation&&t.hasOwnProperty("interpolation")&&(n.interpolation=e.enums===String?u.IndexMapping.Interpolation[t.interpolation]:t.interpolation),n},t.prototype.toJSON=function(){return this.constructor.toObject(this,i.util.toJSONOptions)},t.Interpolation=function(){var t={},e=Object.create(t);return e[t[0]="NONE"]=0,e[t[1]="LINEAR"]=1,e[t[2]="QUADRATIC"]=2,e[t[3]="CUBIC"]=3,e}(),t}(),u.Store=function(){function t(t){if(this.binCounts={},this.contiguousBinCounts=[],t)for(var e=Object.keys(t),n=0;n>>3){case 1:a.binCounts===s.emptyObject&&(a.binCounts={});var l=t.uint32()+t.pos;for(n=0,i=0;t.pos>>3){case 1:n=t.sint32();break;case 2:i=t.double();break;default:t.skipType(7&c)}}a.binCounts[n]=i;break;case 2:if(a.contiguousBinCounts&&a.contiguousBinCounts.length||(a.contiguousBinCounts=[]),(7&f)==2)for(var l=t.uint32()+t.pos;t.posthis.maxKey)&&this._extendRange(t.minKey,t.maxKey);var e=t.maxKey-t.offset+1,n=Math.max(this.maxKey+1,t.minKey)-t.offset;if(e>n){var i=(0,r.sumOfRange)(t.bins,n,e);this.bins[this.length()-1]+=i}else n=e;for(var o=t.minKey;othis.length())if((e=t+this.length()+1)<=this.minKey)this.offset=t,this.maxKey=e,this.bins.fill(0),this.bins[this.length()-1]=this.count;else{var n=this.offset-t;if(n>0){var i=e-this.offset+1,o=this.maxKey-this.offset+1,s=(0,r.sumOfRange)(this.bins,i,o);this.bins.fill(0,i,o),this.bins[i-1]+=s,this.maxKey=e,this._shiftBins(n)}else this.maxKey=e,this._shiftBins(n);this.minKey=t,this.isCollapsed=!0}else this._centerBins(t,e),this.minKey=t,this.maxKey=e},e.prototype._getIndex=function(t){if(tthis.maxKey&&this._extendRange(t);return t-this.offset},e}(o.DenseStore)},649:function(t,e,n){var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0}),e.CollapsingLowestDenseStore=void 0;var o=n(3591),r=n(9687);e.CollapsingLowestDenseStore=function(t){function e(e,n){var i=t.call(this,n)||this;return i.binLimit=e,i.isCollapsed=!1,i}return i(e,t),e.prototype.merge=function(t){if(0!==t.count){if(0===this.count)return void this.copy(t);(t.minKeythis.maxKey)&&this._extendRange(t.minKey,t.maxKey);var e=t.minKey-t.offset,n=Math.min(this.minKey,t.maxKey+1)-t.offset;if(n>e){var i=(0,r.sumOfRange)(t.bins,e,n);this.bins[0]+=i}else n=e;for(var o=n+t.offset;othis.length()){if((t=e-this.length()+1)>=this.maxKey)this.offset=t,this.minKey=t,this.bins.fill(0),this.bins[0]=this.count;else{var n=this.offset-t;if(n<0){var i=this.minKey-this.offset,o=t-this.offset,s=(0,r.sumOfRange)(this.bins,i,o);this.bins.fill(0,i,o),this.bins[o]+=s,this.minKey=t,this._shiftBins(n)}else this.minKey=t,this._shiftBins(n)}this.maxKey=e,this.isCollapsed=!0}else this._centerBins(t,e),this.minKey=t,this.maxKey=e},e.prototype._getIndex=function(t){if(tthis.maxKey&&this._extendRange(t);return t-this.offset},e}(o.DenseStore)},3591:function(t,e,n){var i=this&&this.__spreadArray||function(t,e,n){if(n||2==arguments.length)for(var i,o=0,r=e.length;ot||!e&&n>=t+1)return i+this.offset;return this.maxKey},t.prototype.merge=function(t){if(0!==t.count){if(0===this.count)return void this.copy(t);(t.minKeythis.maxKey)&&this._extendRange(t.minKey,t.maxKey);var e=t.minKey-t.offset,n=Math.min(this.minKey,t.maxKey+1)-t.offset;if(n>e){var i=(0,o.sumOfRange)(t.bins,e,n);this.bins[0]+=i}else n=e;for(var r=n+t.offset;r0?(this.bins=this.bins.slice(0,-t),(e=this.bins).unshift.apply(e,Array(t).fill(0))):(this.bins=this.bins.slice(Math.abs(t)),(n=this.bins).push.apply(n,Array(Math.abs(t)).fill(0))),this.offset-=t},t.prototype._centerBins=function(t,e){var n=t+Math.floor((e-t+1)/2);this._shiftBins(Math.floor(this.offset+this.length()/2)-n)},t.prototype._extendRange=function(t,e){e=e||t;var n,i=Math.min(t,e,this.minKey),o=Math.max(t,e,this.maxKey);if(0===this.length())this.bins=Array(this._getNewLength(i,o)).fill(0),this.offset=i,this._adjust(i,o);else if(i>=this.minKey&&othis.length()&&(n=this.bins).push.apply(n,Array(r-this.length()).fill(0)),this._adjust(i,o)}},t.prototype._getIndex=function(t){return tthis.maxKey&&this._extendRange(t),t-this.offset},t.prototype.toProto=function(){return n(3881).Store.create({contiguousBinCounts:this.bins,contiguousBinIndexOffset:this.offset})},t.fromProto=function(t){if(!t||null==t.contiguousBinCounts||null==t.contiguousBinIndexOffset)throw Error("Failed to decode store from protobuf");var e=new this,n=t.contiguousBinIndexOffset;e.offset=n;for(var i=0,o=t.contiguousBinCounts;i1&&"="===t.charAt(e);)++n;return Math.ceil(3*t.length)/4-n};for(var i=Array(64),o=Array(123),r=0;r<64;)o[i[r]=r<26?r+65:r<52?r+71:r<62?r-4:r-59|43]=r++;n.encode=function(t,e,n){for(var o,r=null,s=[],u=0,a=0;e>2],o=(3&f)<<4,a=1;break;case 1:s[u++]=i[o|f>>4],o=(15&f)<<2,a=2;break;case 2:s[u++]=i[o|f>>6],s[u++]=i[63&f],a=0}u>8191&&((r||(r=[])).push(String.fromCharCode.apply(String,s)),u=0)}return(a&&(s[u++]=i[o],s[u++]=61,1===a&&(s[u++]=61)),r)?(u&&r.push(String.fromCharCode.apply(String,s.slice(0,u))),r.join("")):String.fromCharCode.apply(String,s.slice(0,u))};var s="invalid encoding";n.decode=function(t,e,n){for(var i,r=n,u=0,a=0;a1)break;if(void 0===(f=o[f]))throw Error(s);switch(u){case 0:i=f,u=1;break;case 1:e[n++]=i<<2|(48&f)>>4,i=f,u=2;break;case 2:e[n++]=(15&i)<<4|(60&f)>>2,i=f,u=3;break;case 3:e[n++]=(3&i)<<6|f,u=0}}if(1===u)throw Error(s);return n-r},n.test=function(t){return/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(t)}},3453:function(t){function e(){this._listeners={}}t.exports=e,e.prototype.on=function(t,e,n){return(this._listeners[t]||(this._listeners[t]=[])).push({fn:e,ctx:n||this}),this},e.prototype.off=function(t,e){if(void 0===t)this._listeners={};else if(void 0===e)this._listeners[t]=[];else for(var n=this._listeners[t],i=0;i0?0:0x80000000,n,i);else if(isNaN(e))t(0x7fc00000,n,i);else if(e>34028234663852886e22)t((o<<31|0x7f800000)>>>0,n,i);else if(e<11754943508222875e-54)t((o<<31|Math.round(e/1401298464324817e-60))>>>0,n,i);else{var r=Math.floor(Math.log(e)/Math.LN2),s=8388607&Math.round(e*Math.pow(2,-r)*8388608);t((o<<31|r+127<<23|s)>>>0,n,i)}}function s(t,e,n){var i=t(e,n),o=(i>>31)*2+1,r=i>>>23&255,s=8388607&i;return 255===r?s?NaN:1/0*o:0===r?1401298464324817e-60*o*s:o*Math.pow(2,r-150)*(s+8388608)}t.writeFloatLE=e.bind(null,n),t.writeFloatBE=e.bind(null,i),t.readFloatLE=s.bind(null,o),t.readFloatBE=s.bind(null,r)}(),"undefined"!=typeof Float64Array?!function(){var e=new Float64Array([-0]),n=new Uint8Array(e.buffer),i=128===n[7];function o(t,i,o){e[0]=t,i[o]=n[0],i[o+1]=n[1],i[o+2]=n[2],i[o+3]=n[3],i[o+4]=n[4],i[o+5]=n[5],i[o+6]=n[6],i[o+7]=n[7]}function r(t,i,o){e[0]=t,i[o]=n[7],i[o+1]=n[6],i[o+2]=n[5],i[o+3]=n[4],i[o+4]=n[3],i[o+5]=n[2],i[o+6]=n[1],i[o+7]=n[0]}function s(t,i){return n[0]=t[i],n[1]=t[i+1],n[2]=t[i+2],n[3]=t[i+3],n[4]=t[i+4],n[5]=t[i+5],n[6]=t[i+6],n[7]=t[i+7],e[0]}function u(t,i){return n[7]=t[i],n[6]=t[i+1],n[5]=t[i+2],n[4]=t[i+3],n[3]=t[i+4],n[2]=t[i+5],n[1]=t[i+6],n[0]=t[i+7],e[0]}t.writeDoubleLE=i?o:r,t.writeDoubleBE=i?r:o,t.readDoubleLE=i?s:u,t.readDoubleBE=i?u:s}():!function(){function e(t,e,n,i,o,r){var s,u=+(i<0);if(u&&(i=-i),0===i)t(0,o,r+e),t(1/i>0?0:0x80000000,o,r+n);else if(isNaN(i))t(0,o,r+e),t(0x7ff80000,o,r+n);else if(i>17976931348623157e292)t(0,o,r+e),t((u<<31|0x7ff00000)>>>0,o,r+n);else if(i<22250738585072014e-324)t((s=i/5e-324)>>>0,o,r+e),t((u<<31|s/0x100000000)>>>0,o,r+n);else{var a=Math.floor(Math.log(i)/Math.LN2);1024===a&&(a=1023),t(0x10000000000000*(s=i*Math.pow(2,-a))>>>0,o,r+e),t((u<<31|a+1023<<20|1048576*s&1048575)>>>0,o,r+n)}}function s(t,e,n,i,o){var r=t(i,o+e),s=t(i,o+n),u=(s>>31)*2+1,a=s>>>20&2047,f=0x100000000*(1048575&s)+r;return 2047===a?f?NaN:1/0*u:0===a?5e-324*u*f:u*Math.pow(2,a-1075)*(f+0x10000000000000)}t.writeDoubleLE=e.bind(null,n,0,4),t.writeDoubleBE=e.bind(null,i,4,0),t.readDoubleLE=s.bind(null,o,0,4),t.readDoubleBE=s.bind(null,r,4,0)}(),t}function n(t,e,n){e[n]=255&t,e[n+1]=t>>>8&255,e[n+2]=t>>>16&255,e[n+3]=t>>>24}function i(t,e,n){e[n]=t>>>24,e[n+1]=t>>>16&255,e[n+2]=t>>>8&255,e[n+3]=255&t}function o(t,e){return(t[e]|t[e+1]<<8|t[e+2]<<16|t[e+3]<<24)>>>0}function r(t,e){return(t[e]<<24|t[e+1]<<16|t[e+2]<<8|t[e+3])>>>0}t.exports=e(e)},1952:function(module){module.exports=inquire;function inquire(moduleName){try{var mod=eval("quire".replace(/^/,"re"))(moduleName);if(mod&&(mod.length||Object.keys(mod).length))return mod}catch(e){}return null}},3829:function(t){t.exports=e;function e(t,e,n){var i=n||8192,o=i>>>1,r=null,s=i;return function(n){if(n<1||n>o)return t(n);s+n>i&&(r=t(i),s=0);var u=e.call(r,s,s+=n);return 7&s&&(s=(7|s)+1),u}}},7800:function(t,e){var n=e;n.length=function(t){for(var e=0,n=0,i=0;i191&&i<224?r[s++]=(31&i)<<6|63&t[e++]:i>239&&i<365?(i=((7&i)<<18|(63&t[e++])<<12|(63&t[e++])<<6|63&t[e++])-65536,r[s++]=55296+(i>>10),r[s++]=56320+(1023&i)):r[s++]=(15&i)<<12|(63&t[e++])<<6|63&t[e++],s>8191&&((o||(o=[])).push(String.fromCharCode.apply(String,r)),s=0);return o?(s&&o.push(String.fromCharCode.apply(String,r.slice(0,s))),o.join("")):String.fromCharCode.apply(String,r.slice(0,s))},n.write=function(t,e,n){for(var i,o,r=n,s=0;s>6|192:((64512&i)==55296&&(64512&(o=t.charCodeAt(s+1)))==56320?(i=65536+((1023&i)<<10)+(1023&o),++s,e[n++]=i>>18|240,e[n++]=i>>12&63|128):e[n++]=i>>12|224,e[n++]=i>>6&63|128),e[n++]=63&i|128);return n-r}},1873:function(t,e,n){t.exports=n(233)},233:function(t,e,n){var i=e;function o(){i.util._configure(),i.Writer._configure(i.BufferWriter),i.Reader._configure(i.BufferReader)}i.build="minimal",i.Writer=n(8332),i.BufferWriter=n(1405),i.Reader=n(624),i.BufferReader=n(753),i.util=n(6339),i.rpc=n(7168),i.roots=n(9818),i.configure=o,o()},624:function(t,e,n){t.exports=a;var i,o=n(6339),r=o.LongBits,s=o.utf8;function u(t,e){return RangeError("index out of range: "+t.pos+" + "+(e||1)+" > "+t.len)}function a(t){this.buf=t,this.pos=0,this.len=t.length}var f="undefined"!=typeof Uint8Array?function(t){if(t instanceof Uint8Array||Array.isArray(t))return new a(t);throw Error("illegal buffer")}:function(t){if(Array.isArray(t))return new a(t);throw Error("illegal buffer")},l=function(){return o.Buffer?function(t){return(a.create=function(t){return o.Buffer.isBuffer(t)?new i(t):f(t)})(t)}:f};function c(){var t=new r(0,0),e=0;if(this.len-this.pos>4){for(;e<4;++e)if(t.lo=(t.lo|(127&this.buf[this.pos])<<7*e)>>>0,this.buf[this.pos++]<128)return t;if(t.lo=(t.lo|(127&this.buf[this.pos])<<28)>>>0,t.hi=(t.hi|(127&this.buf[this.pos])>>4)>>>0,this.buf[this.pos++]<128)return t;e=0}else{for(;e<3;++e){if(this.pos>=this.len)throw u(this);if(t.lo=(t.lo|(127&this.buf[this.pos])<<7*e)>>>0,this.buf[this.pos++]<128)return t}return t.lo=(t.lo|(127&this.buf[this.pos++])<<7*e)>>>0,t}if(this.len-this.pos>4){for(;e<5;++e)if(t.hi=(t.hi|(127&this.buf[this.pos])<<7*e+3)>>>0,this.buf[this.pos++]<128)return t}else for(;e<5;++e){if(this.pos>=this.len)throw u(this);if(t.hi=(t.hi|(127&this.buf[this.pos])<<7*e+3)>>>0,this.buf[this.pos++]<128)return t}throw Error("invalid varint encoding")}function p(t,e){return(t[e-4]|t[e-3]<<8|t[e-2]<<16|t[e-1]<<24)>>>0}function h(){if(this.pos+8>this.len)throw u(this,8);return new r(p(this.buf,this.pos+=4),p(this.buf,this.pos+=4))}a.create=l(),a.prototype._slice=o.Array.prototype.subarray||o.Array.prototype.slice,a.prototype.uint32=function(){var t=0xffffffff;return function(){if(t=(127&this.buf[this.pos])>>>0,this.buf[this.pos++]<128||(t=(t|(127&this.buf[this.pos])<<7)>>>0,this.buf[this.pos++]<128)||(t=(t|(127&this.buf[this.pos])<<14)>>>0,this.buf[this.pos++]<128)||(t=(t|(127&this.buf[this.pos])<<21)>>>0,this.buf[this.pos++]<128)||(t=(t|(15&this.buf[this.pos])<<28)>>>0,this.buf[this.pos++]<128))return t;if((this.pos+=5)>this.len)throw this.pos=this.len,u(this,10);return t}}(),a.prototype.int32=function(){return 0|this.uint32()},a.prototype.sint32=function(){var t=this.uint32();return t>>>1^-(1&t)},a.prototype.bool=function(){return 0!==this.uint32()},a.prototype.fixed32=function(){if(this.pos+4>this.len)throw u(this,4);return p(this.buf,this.pos+=4)},a.prototype.sfixed32=function(){if(this.pos+4>this.len)throw u(this,4);return 0|p(this.buf,this.pos+=4)},a.prototype.float=function(){if(this.pos+4>this.len)throw u(this,4);var t=o.float.readFloatLE(this.buf,this.pos);return this.pos+=4,t},a.prototype.double=function(){if(this.pos+8>this.len)throw u(this,4);var t=o.float.readDoubleLE(this.buf,this.pos);return this.pos+=8,t},a.prototype.bytes=function(){var t=this.uint32(),e=this.pos,n=this.pos+t;if(n>this.len)throw u(this,t);if(this.pos+=t,Array.isArray(this.buf))return this.buf.slice(e,n);if(e===n){var i=o.Buffer;return i?i.alloc(0):new this.buf.constructor(0)}return this._slice.call(this.buf,e,n)},a.prototype.string=function(){var t=this.bytes();return s.read(t,0,t.length)},a.prototype.skip=function(t){if("number"==typeof t){if(this.pos+t>this.len)throw u(this,t);this.pos+=t}else do if(this.pos>=this.len)throw u(this);while(128&this.buf[this.pos++]);return this},a.prototype.skipType=function(t){switch(t){case 0:this.skip();break;case 1:this.skip(8);break;case 2:this.skip(this.uint32());break;case 3:for(;4!=(t=7&this.uint32());)this.skipType(t);break;case 5:this.skip(4);break;default:throw Error("invalid wire type "+t+" at offset "+this.pos)}return this},a._configure=function(t){i=t,a.create=l(),i._configure();var e=o.Long?"toLong":"toNumber";o.merge(a.prototype,{int64:function(){return c.call(this)[e](!1)},uint64:function(){return c.call(this)[e](!0)},sint64:function(){return c.call(this).zzDecode()[e](!1)},fixed64:function(){return h.call(this)[e](!0)},sfixed64:function(){return h.call(this)[e](!1)}})}},753:function(t,e,n){t.exports=r;var i=n(624);(r.prototype=Object.create(i.prototype)).constructor=r;var o=n(6339);function r(t){i.call(this,t)}r._configure=function(){o.Buffer&&(r.prototype._slice=o.Buffer.prototype.slice)},r.prototype.string=function(){var t=this.uint32();return this.buf.utf8Slice?this.buf.utf8Slice(this.pos,this.pos=Math.min(this.pos+t,this.len)):this.buf.toString("utf-8",this.pos,this.pos=Math.min(this.pos+t,this.len))},r._configure()},9818:function(t){t.exports={}},7168:function(t,e,n){e.Service=n(6252)},6252:function(t,e,n){t.exports=o;var i=n(6339);function o(t,e,n){if("function"!=typeof t)throw TypeError("rpcImpl must be a function");i.EventEmitter.call(this),this.rpcImpl=t,this.requestDelimited=!!e,this.responseDelimited=!!n}(o.prototype=Object.create(i.EventEmitter.prototype)).constructor=o,o.prototype.rpcCall=function t(e,n,o,r,s){if(!r)throw TypeError("request must be specified");var u=this;if(!s)return i.asPromise(t,u,e,n,o,r);if(!u.rpcImpl)return void setTimeout(function(){s(Error("already ended"))},0);try{return u.rpcImpl(e,n[u.requestDelimited?"encodeDelimited":"encode"](r).finish(),function(t,n){if(t)return u.emit("error",t,e),s(t);if(null===n)return void u.end(!0);if(!(n instanceof o))try{n=o[u.responseDelimited?"decodeDelimited":"decode"](n)}catch(t){return u.emit("error",t,e),s(t)}return u.emit("data",n,e),s(null,n)})}catch(t){u.emit("error",t,e),setTimeout(function(){s(t)},0);return}},o.prototype.end=function(t){return this.rpcImpl&&(t||this.rpcImpl(null,null,null),this.rpcImpl=null,this.emit("end").off()),this}},8920:function(t,e,n){t.exports=o;var i=n(6339);function o(t,e){this.lo=t>>>0,this.hi=e>>>0}var r=o.zero=new o(0,0);r.toNumber=function(){return 0},r.zzEncode=r.zzDecode=function(){return this},r.length=function(){return 1};var s=o.zeroHash="\0\0\0\0\0\0\0\0";o.fromNumber=function(t){if(0===t)return r;var e=t<0;e&&(t=-t);var n=t>>>0,i=(t-n)/0x100000000>>>0;return e&&(i=~i>>>0,n=~n>>>0,++n>0xffffffff&&(n=0,++i>0xffffffff&&(i=0))),new o(n,i)},o.from=function(t){if("number"==typeof t)return o.fromNumber(t);if(i.isString(t))if(!i.Long)return o.fromNumber(parseInt(t,10));else t=i.Long.fromString(t);return t.low||t.high?new o(t.low>>>0,t.high>>>0):r},o.prototype.toNumber=function(t){if(!t&&this.hi>>>31){var e=~this.lo+1>>>0,n=~this.hi>>>0;return e||(n=n+1>>>0),-(e+0x100000000*n)}return this.lo+0x100000000*this.hi},o.prototype.toLong=function(t){return i.Long?new i.Long(0|this.lo,0|this.hi,!!t):{low:0|this.lo,high:0|this.hi,unsigned:!!t}};var u=String.prototype.charCodeAt;o.fromHash=function(t){return t===s?r:new o((u.call(t,0)|u.call(t,1)<<8|u.call(t,2)<<16|u.call(t,3)<<24)>>>0,(u.call(t,4)|u.call(t,5)<<8|u.call(t,6)<<16|u.call(t,7)<<24)>>>0)},o.prototype.toHash=function(){return String.fromCharCode(255&this.lo,this.lo>>>8&255,this.lo>>>16&255,this.lo>>>24,255&this.hi,this.hi>>>8&255,this.hi>>>16&255,this.hi>>>24)},o.prototype.zzEncode=function(){var t=this.hi>>31;return this.hi=((this.hi<<1|this.lo>>>31)^t)>>>0,this.lo=(this.lo<<1^t)>>>0,this},o.prototype.zzDecode=function(){var t=-(1&this.lo);return this.lo=((this.lo>>>1|this.hi<<31)^t)>>>0,this.hi=(this.hi>>>1^t)>>>0,this},o.prototype.length=function(){var t=this.lo,e=(this.lo>>>28|this.hi<<4)>>>0,n=this.hi>>>24;return 0===n?0===e?t<16384?t<128?1:2:t<2097152?3:4:e<16384?e<128?5:6:e<2097152?7:8:n<128?9:10}},6339:function(t,e,n){var i=e;function o(t,e,n){for(var i=Object.keys(e),o=0;o0)},i.Buffer=function(){try{var t=i.inquire("buffer").Buffer;return t.prototype.utf8Write?t:null}catch(t){return null}}(),i._Buffer_from=null,i._Buffer_allocUnsafe=null,i.newBuffer=function(t){return"number"==typeof t?i.Buffer?i._Buffer_allocUnsafe(t):new i.Array(t):i.Buffer?i._Buffer_from(t):"undefined"==typeof Uint8Array?t:new Uint8Array(t)},i.Array="undefined"!=typeof Uint8Array?Uint8Array:Array,i.Long=i.global.dcodeIO&&i.global.dcodeIO.Long||i.global.Long||i.inquire("long"),i.key2Re=/^true|false|0|1$/,i.key32Re=/^-?(?:0|[1-9][0-9]*)$/,i.key64Re=/^(?:[\\x00-\\xff]{8}|-?(?:0|[1-9][0-9]*))$/,i.longToHash=function(t){return t?i.LongBits.from(t).toHash():i.LongBits.zeroHash},i.longFromHash=function(t,e){var n=i.LongBits.fromHash(t);return i.Long?i.Long.fromBits(n.lo,n.hi,e):n.toNumber(!!e)},i.merge=o,i.lcFirst=function(t){return t.charAt(0).toLowerCase()+t.substring(1)},i.newError=r,i.ProtocolError=r("ProtocolError"),i.oneOfGetter=function(t){for(var e={},n=0;n-1;--n)if(1===e[t[n]]&&void 0!==this[t[n]]&&null!==this[t[n]])return t[n]}},i.oneOfSetter=function(t){return function(e){for(var n=0;n127;)e[n++]=127&t|128,t>>>=7;e[n]=t}function g(t,e){this.len=t,this.next=void 0,this.val=e}function d(t,e,n){for(;t.hi;)e[n++]=127&t.lo|128,t.lo=(t.lo>>>7|t.hi<<25)>>>0,t.hi>>>=7;for(;t.lo>127;)e[n++]=127&t.lo|128,t.lo=t.lo>>>7;e[n++]=t.lo}function m(t,e,n){e[n]=255&t,e[n+1]=t>>>8&255,e[n+2]=t>>>16&255,e[n+3]=t>>>24}c.create=p(),c.alloc=function(t){return new o.Array(t)},o.Array!==Array&&(c.alloc=o.pool(c.alloc,o.Array.prototype.subarray)),c.prototype._push=function(t,e,n){return this.tail=this.tail.next=new a(t,e,n),this.len+=e,this},g.prototype=Object.create(a.prototype),g.prototype.fn=y,c.prototype.uint32=function(t){return this.len+=(this.tail=this.tail.next=new g((t>>>=0)<128?1:t<16384?2:t<2097152?3:t<0x10000000?4:5,t)).len,this},c.prototype.int32=function(t){return t<0?this._push(d,10,r.fromNumber(t)):this.uint32(t)},c.prototype.sint32=function(t){return this.uint32((t<<1^t>>31)>>>0)},c.prototype.uint64=function(t){var e=r.from(t);return this._push(d,e.length(),e)},c.prototype.int64=c.prototype.uint64,c.prototype.sint64=function(t){var e=r.from(t).zzEncode();return this._push(d,e.length(),e)},c.prototype.bool=function(t){return this._push(h,1,+!!t)},c.prototype.fixed32=function(t){return this._push(m,4,t>>>0)},c.prototype.sfixed32=c.prototype.fixed32,c.prototype.fixed64=function(t){var e=r.from(t);return this._push(m,4,e.lo)._push(m,4,e.hi)},c.prototype.sfixed64=c.prototype.fixed64,c.prototype.float=function(t){return this._push(o.float.writeFloatLE,4,t)},c.prototype.double=function(t){return this._push(o.float.writeDoubleLE,8,t)};var b=o.Array.prototype.set?function(t,e,n){e.set(t,n)}:function(t,e,n){for(var i=0;i>>0;if(!e)return this._push(h,1,0);if(o.isString(t)){var n=c.alloc(e=s.length(t));s.decode(t,n,0),t=n}return this.uint32(e)._push(b,e,t)},c.prototype.string=function(t){var e=u.length(t);return e?this.uint32(e)._push(u.write,e,t):this._push(h,1,0)},c.prototype.fork=function(){return this.states=new l(this),this.head=this.tail=new a(f,0,0),this.len=0,this},c.prototype.reset=function(){return this.states?(this.head=this.states.head,this.tail=this.states.tail,this.len=this.states.len,this.states=this.states.next):(this.head=this.tail=new a(f,0,0),this.len=0),this},c.prototype.ldelim=function(){var t=this.head,e=this.tail,n=this.len;return this.reset().uint32(n),n&&(this.tail.next=t.next,this.tail=e,this.len+=n),this},c.prototype.finish=function(){for(var t=this.head.next,e=this.constructor.alloc(this.len),n=0;t;)t.fn(t.val,e,n),n+=t.len,t=t.next;return e},c._configure=function(t){i=t,c.create=p(),i._configure()}},1405:function(t,e,n){t.exports=r;var i=n(8332);(r.prototype=Object.create(i.prototype)).constructor=r;var o=n(6339);function r(){i.call(this)}function s(t,e,n){t.length<40?o.utf8.write(t,e,n):e.utf8Write?e.utf8Write(t,n):e.write(t,n)}r._configure=function(){r.alloc=o._Buffer_allocUnsafe,r.writeBytesBuffer=o.Buffer&&o.Buffer.prototype instanceof Uint8Array&&"set"===o.Buffer.prototype.set.name?function(t,e,n){e.set(t,n)}:function(t,e,n){if(t.copy)t.copy(e,n,0,t.length);else for(var i=0;i>>0;return this.uint32(e),e&&this._push(r.writeBytesBuffer,e,t),this},r.prototype.string=function(t){var e=o.Buffer.byteLength(t);return this.uint32(e),e&&this._push(s,e,t),this},r._configure()}},__webpack_module_cache__={};function __webpack_require__(t){var e=__webpack_module_cache__[t];if(void 0!==e)return e.exports;var n=__webpack_module_cache__[t]={exports:{}};return __webpack_modules__[t].call(n.exports,n,n.exports,__webpack_require__),n.exports}var __webpack_exports__=__webpack_require__(344);module.exports=__webpack_exports__})(); \ No newline at end of file diff --git a/packages/node_modules/@opentelemetry/resources/index.js b/packages/node_modules/@opentelemetry/resources/index.js index 8afb9eb3dd2..21c584042e8 100644 --- a/packages/node_modules/@opentelemetry/resources/index.js +++ b/packages/node_modules/@opentelemetry/resources/index.js @@ -1 +1 @@ -(()=>{"use strict";var e={5726:function(e,t,r){r.d(t,{K:()=>s});var n=r(1275),o=r(1994),i=r(6733),a=r(6051),u=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},c=function(e,t,r){if(r||2==arguments.length)for(var n,o=0,i=t.length;o";l.warn("Current logger will be overwritten from "+f),E.warn("Current logger will overwrite one already registered from "+f)}return(0,a.$G)("diag",E,t,!0)},t.disable=function(){(0,a.kv)("diag",t)},t.createComponentLogger=function(e){return new n.V(e)},t.verbose=e("verbose"),t.debug=e("debug"),t.info=e("info"),t.warn=e("warn"),t.error=e("error")}return e.instance=function(){return this._instance||(this._instance=new e),this._instance},e}()},8758:function(e,t,r){r.d(t,{s:()=>n});var n=r(5726).K.instance()},1275:function(e,t,r){r.d(t,{V:()=>a});var n=r(6051),o=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},i=function(e,t,r){if(r||2==arguments.length)for(var n,o=0,i=t.length;oo});var n=r(6733);function o(e,t){function r(r,n){var o=t[r];return"function"==typeof o&&e>=n?o.bind(t):function(){}}return en.u.ALL&&(e=n.u.ALL),t=t||{},{error:r("error",n.u.ERROR),warn:r("warn",n.u.WARN),info:r("info",n.u.INFO),debug:r("debug",n.u.DEBUG),verbose:r("verbose",n.u.VERBOSE)}}},6733:function(e,t,r){var n,o;r.d(t,{u:()=>n}),(o=n||(n={}))[o.NONE=0]="NONE",o[o.ERROR=30]="ERROR",o[o.WARN=50]="WARN",o[o.INFO=60]="INFO",o[o.DEBUG=70]="DEBUG",o[o.VERBOSE=80]="VERBOSE",o[o.ALL=9999]="ALL"},6051:function(e,t,r){r.d(t,{$G:()=>c,kv:()=>l,mS:()=>s});var n=r(5234),o=r(2910),i=r(8336),a=Symbol.for("opentelemetry.js.api."+o.x.split(".")[0]),u=n.X;function c(e,t,r,n){void 0===n&&(n=!1);var i,c=u[a]=null!=(i=u[a])?i:{version:o.x};if(!n&&c[e]){var s=Error("@opentelemetry/api: Attempted duplicate registration of API: "+e);return r.error(s.stack||s.message),!1}if(c.version!==o.x){var s=Error("@opentelemetry/api: Registration of version v"+c.version+" for "+e+" does not match previously registered API v"+o.x);return r.error(s.stack||s.message),!1}return c[e]=t,r.debug("@opentelemetry/api: Registered a global for "+e+" v"+o.x+"."),!0}function s(e){var t,r,n=null==(t=u[a])?void 0:t.version;if(n&&(0,i.$)(n))return null==(r=u[a])?void 0:r[e]}function l(e,t){t.debug("@opentelemetry/api: Unregistering a global for "+e+" v"+o.x+".");var r=u[a];r&&delete r[e]}},8336:function(e,t,r){r.d(t,{$:()=>i});var n=r(2910),o=/^(\d+)\.(\d+)\.(\d+)(-(.+))?$/,i=function(e){var t=new Set([e]),r=new Set,n=e.match(o);if(!n)return function(){return!1};var i={major:+n[1],minor:+n[2],patch:+n[3],prerelease:n[4]};if(null!=i.prerelease)return function(t){return t===e};function a(e){return r.add(e),!1}return function(e){if(t.has(e))return!0;if(r.has(e))return!1;var n=e.match(o);if(!n)return a(e);var u={major:+n[1],minor:+n[2],patch:+n[3],prerelease:n[4]};if(null!=u.prerelease||i.major!==u.major)return a(e);if(0===i.major)return i.minor===u.minor&&i.patch<=u.patch?(t.add(e),!0):a(e);return i.minor<=u.minor?(t.add(e),!0):a(e)}}(n.x)},5234:function(e,t,r){r.d(t,{X:()=>n});var n="object"==typeof globalThis?globalThis:global},2910:function(e,t,r){r.d(t,{x:()=>n});var n="1.9.0"},1973:function(e,t,r){r.d(t,{q:()=>o});let n=require("child_process");var o=require("util").promisify(n.exec)},454:function(e,t,r){r.d(t,{D:()=>u});var n=r(9896),o=r(1973),i=r(8758),a=function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){var c=[i,u];if(r)throw TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&c[0]?n.return:c[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,c[1])).done)return o;switch(n=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return a.label++,{value:c[1],done:!1};case 5:a.label++,n=c[1],c=[0];continue;case 7:c=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===c[0]||2===c[0])){a=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]a});var n=r(1973),o=r(8758),i=function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){var c=[i,u];if(r)throw TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&c[0]?n.return:c[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,c[1])).done)return o;switch(n=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return a.label++,{value:c[1],done:!1};case 5:a.label++,n=c[1],c=[0];continue;case 7:c=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===c[0]||2===c[0])){a=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]u});var n=r(9896),o=r(8758),i=function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){var c=[i,u];if(r)throw TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&c[0]?n.return:c[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,c[1])).done)return o;switch(n=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return a.label++,{value:c[1],done:!1};case 5:a.label++,n=c[1],c=[0];continue;case 7:c=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===c[0]||2===c[0])){a=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};function u(){var e,t,r,u;return e=this,t=void 0,r=void 0,u=function(){var e,t,r,u,c,s,l;return i(this,function(i){switch(i.label){case 0:e=["/etc/machine-id","/var/lib/dbus/machine-id"],i.label=1;case 1:i.trys.push([1,8,9,10]),r=(t=a(e)).next(),i.label=2;case 2:if(r.done)return[3,7];u=r.value,i.label=3;case 3:return i.trys.push([3,5,,6]),[4,n.promises.readFile(u,{encoding:"utf8"})];case 4:return[2,i.sent().trim()];case 5:return c=i.sent(),o.s.debug("error reading machine id: "+c),[3,6];case 6:return r=t.next(),[3,2];case 7:return[3,10];case 8:return s={error:i.sent()},[3,10];case 9:try{r&&!r.done&&(l=t.return)&&l.call(t)}finally{if(s)throw s.error}return[7];case 10:return[2,""]}})},new(r||(r=Promise))(function(n,o){function i(e){try{c(u.next(e))}catch(e){o(e)}}function a(e){try{c(u.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?n(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(i,a)}c((u=u.apply(e,t||[])).next())})}},2408:function(e,t,r){r.d(t,{D:()=>i});var n=r(8758),o=function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){var c=[i,u];if(r)throw TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&c[0]?n.return:c[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,c[1])).done)return o;switch(n=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return a.label++,{value:c[1],done:!1};case 5:a.label++,n=c[1],c=[0];continue;case 7:c=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===c[0]||2===c[0])){a=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]u});var n=r(932),o=r(1973),i=r(8758),a=function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){var c=[i,u];if(r)throw TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&c[0]?n.return:c[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,c[1])).done)return o;switch(n=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return a.label++,{value:c[1],done:!1};case 5:a.label++,n=c[1],c=[0];continue;case 7:c=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===c[0]||2===c[0])){a=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};(()=>{r.r(n),r.d(n,{envDetector:()=>U,envDetectorSync:()=>C,hostDetector:()=>B,Resource:()=>h,osDetector:()=>k,detectResources:()=>W,osDetectorSync:()=>G,browserDetectorSync:()=>R,processDetectorSync:()=>j,detectResourcesSync:()=>J,browserDetector:()=>L,processDetector:()=>F,defaultServiceName:()=>O,hostDetectorSync:()=>D,serviceInstanceIdDetectorSync:()=>Y});var e,t,o,i,a=r(8758),u="process.runtime.name",c="process.runtime.version",s="process.runtime.description",l="service.name",E="telemetry.sdk.name",f="telemetry.sdk.language",_="telemetry.sdk.version",T=((t={})[E]="opentelemetry",t[u]="node",t[f]="nodejs",t[_]="1.30.1",t);function O(){return"unknown_service:"+process.argv0}var p=function(){return(p=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])&&(6===c[0]||2===c[0])){a=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},h=function(){function e(e,t){var r,n=this;this._attributes=e,this.asyncAttributesPending=null!=t,this._syncAttributes=null!=(r=this._attributes)?r:{},this._asyncAttributesPromise=null==t?void 0:t.then(function(e){return n._attributes=Object.assign({},n._attributes,e),n.asyncAttributesPending=!1,e},function(e){return a.s.debug("a resource's async attributes promise rejected: %s",e),n.asyncAttributesPending=!1,{}})}return e.empty=function(){return e.EMPTY},e.default=function(){var t;return new e(((t={})[l]=O(),t[f]=T[f],t[E]=T[E],t[_]=T[_],t))},Object.defineProperty(e.prototype,"attributes",{get:function(){var e;return this.asyncAttributesPending&&a.s.error("Accessing resource attributes before async attributes settled"),null!=(e=this._attributes)?e:{}},enumerable:!1,configurable:!0}),e.prototype.waitForAsyncAttributes=function(){var e,t,r,n;return e=this,t=void 0,r=void 0,n=function(){return d(this,function(e){switch(e.label){case 0:if(!this.asyncAttributesPending)return[3,2];return[4,this._asyncAttributesPromise];case 1:e.sent(),e.label=2;case 2:return[2]}})},new(r||(r=Promise))(function(o,i){function a(e){try{c(n.next(e))}catch(e){i(e)}}function u(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(a,u)}c((n=n.apply(e,t||[])).next())})},e.prototype.merge=function(t){var r,n=this;if(!t)return this;var o=p(p({},this._syncAttributes),null!=(r=t._syncAttributes)?r:t.attributes);return this._asyncAttributesPromise||t._asyncAttributesPromise?new e(o,Promise.all([this._asyncAttributesPromise,t._asyncAttributesPromise]).then(function(e){var r,o=y(e,2),i=o[0],a=o[1];return p(p(p(p({},n._syncAttributes),i),null!=(r=t._syncAttributes)?r:t.attributes),a)})):new e(o)},e.EMPTY=new e({}),e}(),v=function(){return(v=Object.assign||function(e){for(var t,r=1,n=arguments.length;r=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},N=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},C=new(function(){function e(){this._MAX_LENGTH=255,this._COMMA_SEPARATOR=",",this._LABEL_KEY_VALUE_SPLITTER="=",this._ERROR_MESSAGE_INVALID_CHARS="should be a ASCII string with a length greater than 0 and not exceed "+this._MAX_LENGTH+" characters.",this._ERROR_MESSAGE_INVALID_VALUE="should be a ASCII string with a length not exceed "+this._MAX_LENGTH+" characters."}return e.prototype.detect=function(e){var t,r={},n=(t=function(e){var t={};for(var r in I)if("OTEL_LOG_LEVEL"===r)!function(e,t,r){var n=r[e];if("string"==typeof n){var o=m[n.toUpperCase()];null!=o&&(t[e]=o)}}(r,t,e);else if(A.indexOf(r)>-1)!function(e,t,r){if(void 0!==r[e]){var n=String(r[e]);t[e]="true"===n.toLowerCase()}}(r,t,e);else if(P.indexOf(r)>-1)!function(e,t,r,n,o){if(void 0===n&&(n=-1/0),void 0===o&&(o=1/0),void 0!==r[e]){var i=Number(r[e]);isNaN(i)||(io?t[e]=o:t[e]=i)}}(r,t,e);else if(S.indexOf(r)>-1)!function(e,t,r,n){void 0===n&&(n=",");var o=r[e];"string"==typeof o&&(t[e]=o.split(n).map(function(e){return e.trim()}))}(r,t,e);else{var n=e[r];null!=n&&(t[r]=String(n))}return t}(process.env),Object.assign({},I,t)),o=n.OTEL_RESOURCE_ATTRIBUTES,i=n.OTEL_SERVICE_NAME;if(o)try{var u=this._parseResourceAttributes(o);Object.assign(r,u)}catch(e){a.s.debug("EnvDetector failed: "+e.message)}return i&&(r[l]=i),new h(r)},e.prototype._parseResourceAttributes=function(e){if(!e)return{};var t,r,n={},o=e.split(this._COMMA_SEPARATOR,-1);try{for(var i=w(o),a=i.next();!a.done;a=i.next()){var u=a.value.split(this._LABEL_KEY_VALUE_SPLITTER,-1);if(2===u.length){var c=N(u,2),s=c[0],l=c[1];if(s=s.trim(),l=l.trim().split(/^"|"$/).join(""),!this._isValidAndNotEmpty(s))throw Error("Attribute key "+this._ERROR_MESSAGE_INVALID_CHARS);if(!this._isValid(l))throw Error("Attribute value "+this._ERROR_MESSAGE_INVALID_VALUE);n[s]=decodeURIComponent(l)}}}catch(e){t={error:e}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}return n},e.prototype._isValid=function(e){return e.length<=this._MAX_LENGTH&&this._isBaggageOctetString(e)},e.prototype._isBaggageOctetString=function(e){for(var t=0;t126)return!1}return!0},e.prototype._isValidAndNotEmpty=function(e){return e.length>0&&this._isValid(e)},e}()),U=new(function(){function e(){}return e.prototype.detect=function(e){return Promise.resolve(C.detect(e))},e}());let M=require("os");var x=function(e){switch(e){case"arm":return"arm32";case"ppc":return"ppc32";case"x64":return"amd64";default:return e}},X=function(e){switch(e){case"sunos":return"solaris";case"win32":return"windows";default:return e}};switch(r(932).platform){case"darwin":i=r(1568).D;break;case"linux":i=r(7917).D;break;case"freebsd":i=r(454).D;break;case"win32":i=r(7349).D;break;default:i=r(2408).D}var D=new(function(){function e(){}return e.prototype.detect=function(e){var t;return new h(((t={})["host.name"]=(0,M.hostname)(),t["host.arch"]=x((0,M.arch)()),t),this._getAsyncAttributes())},e.prototype._getAsyncAttributes=function(){return i().then(function(e){var t={};return e&&(t["host.id"]=e),t})},e}()),B=new(function(){function e(){}return e.prototype.detect=function(e){return Promise.resolve(D.detect(e))},e}()),G=new(function(){function e(){}return e.prototype.detect=function(e){var t;return new h(((t={})["os.type"]=X((0,M.platform)()),t["os.version"]=(0,M.release)(),t))},e}()),k=new(function(){function e(){}return e.prototype.detect=function(e){return Promise.resolve(G.detect(e))},e}()),V=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},H=function(e,t,r){if(r||2==arguments.length)for(var n,o=0,i=t.length;o1&&(r["process.command"]=process.argv[1]);try{var n=M.userInfo();r["process.owner"]=n.username}catch(e){a.s.debug("error obtaining process owner: "+e)}return new h(r)},e}()),F=new(function(){function e(){}return e.prototype.detect=function(e){return Promise.resolve(j.detect(e))},e}());let K=require("crypto");var Y=new(function(){function e(){}return e.prototype.detect=function(e){var t;return new h(((t={})["service.instance.id"]=(0,K.randomUUID)(),t))},e}()),q=function(e,t,r,n){return new(r||(r=Promise))(function(o,i){function a(e){try{c(n.next(e))}catch(e){i(e)}}function u(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(a,u)}c((n=n.apply(e,t||[])).next())})},Z=function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){var c=[i,u];if(r)throw TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&c[0]?n.return:c[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,c[1])).done)return o;switch(n=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return a.label++,{value:c[1],done:!1};case 5:a.label++,n=c[1],c=[0];continue;case 7:c=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===c[0]||2===c[0])){a=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]0){var t=JSON.stringify(e.attributes,null,4);a.s.verbose(t)}})}})(),module.exports=n})(); \ No newline at end of file +(()=>{"use strict";var e={4419:function(e,t,r){r.d(t,{K:()=>s});var n=r(7154),o=r(6627),i=r(2008),a=r(8212),u=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},c=function(e,t,r){if(r||2==arguments.length)for(var n,o=0,i=t.length;o";l.warn("Current logger will be overwritten from "+f),E.warn("Current logger will overwrite one already registered from "+f)}return(0,a.$G)("diag",E,t,!0)},t.disable=function(){(0,a.kv)("diag",t)},t.createComponentLogger=function(e){return new n.V(e)},t.verbose=e("verbose"),t.debug=e("debug"),t.info=e("info"),t.warn=e("warn"),t.error=e("error")}return e.instance=function(){return this._instance||(this._instance=new e),this._instance},e}()},4267:function(e,t,r){r.d(t,{s:()=>n});var n=r(4419).K.instance()},7154:function(e,t,r){r.d(t,{V:()=>a});var n=r(8212),o=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},i=function(e,t,r){if(r||2==arguments.length)for(var n,o=0,i=t.length;oo});var n=r(2008);function o(e,t){function r(r,n){var o=t[r];return"function"==typeof o&&e>=n?o.bind(t):function(){}}return en.u.ALL&&(e=n.u.ALL),t=t||{},{error:r("error",n.u.ERROR),warn:r("warn",n.u.WARN),info:r("info",n.u.INFO),debug:r("debug",n.u.DEBUG),verbose:r("verbose",n.u.VERBOSE)}}},2008:function(e,t,r){var n,o;r.d(t,{u:()=>n}),(o=n||(n={}))[o.NONE=0]="NONE",o[o.ERROR=30]="ERROR",o[o.WARN=50]="WARN",o[o.INFO=60]="INFO",o[o.DEBUG=70]="DEBUG",o[o.VERBOSE=80]="VERBOSE",o[o.ALL=9999]="ALL"},8212:function(e,t,r){r.d(t,{$G:()=>c,kv:()=>l,mS:()=>s});var n=r(1063),o=r(93),i=r(2087),a=Symbol.for("opentelemetry.js.api."+o.x.split(".")[0]),u=n.X;function c(e,t,r,n){void 0===n&&(n=!1);var i,c=u[a]=null!=(i=u[a])?i:{version:o.x};if(!n&&c[e]){var s=Error("@opentelemetry/api: Attempted duplicate registration of API: "+e);return r.error(s.stack||s.message),!1}if(c.version!==o.x){var s=Error("@opentelemetry/api: Registration of version v"+c.version+" for "+e+" does not match previously registered API v"+o.x);return r.error(s.stack||s.message),!1}return c[e]=t,r.debug("@opentelemetry/api: Registered a global for "+e+" v"+o.x+"."),!0}function s(e){var t,r,n=null==(t=u[a])?void 0:t.version;if(n&&(0,i.$)(n))return null==(r=u[a])?void 0:r[e]}function l(e,t){t.debug("@opentelemetry/api: Unregistering a global for "+e+" v"+o.x+".");var r=u[a];r&&delete r[e]}},2087:function(e,t,r){r.d(t,{$:()=>i});var n=r(93),o=/^(\d+)\.(\d+)\.(\d+)(-(.+))?$/,i=function(e){var t=new Set([e]),r=new Set,n=e.match(o);if(!n)return function(){return!1};var i={major:+n[1],minor:+n[2],patch:+n[3],prerelease:n[4]};if(null!=i.prerelease)return function(t){return t===e};function a(e){return r.add(e),!1}return function(e){if(t.has(e))return!0;if(r.has(e))return!1;var n=e.match(o);if(!n)return a(e);var u={major:+n[1],minor:+n[2],patch:+n[3],prerelease:n[4]};if(null!=u.prerelease||i.major!==u.major)return a(e);if(0===i.major)return i.minor===u.minor&&i.patch<=u.patch?(t.add(e),!0):a(e);return i.minor<=u.minor?(t.add(e),!0):a(e)}}(n.x)},1063:function(e,t,r){r.d(t,{X:()=>n});var n="object"==typeof globalThis?globalThis:global},93:function(e,t,r){r.d(t,{x:()=>n});var n="1.9.0"},2872:function(e,t,r){r.d(t,{q:()=>o});let n=require("child_process");var o=require("util").promisify(n.exec)},2341:function(e,t,r){r.d(t,{D:()=>u});var n=r(9896),o=r(2872),i=r(4267),a=function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){var c=[i,u];if(r)throw TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&c[0]?n.return:c[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,c[1])).done)return o;switch(n=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return a.label++,{value:c[1],done:!1};case 5:a.label++,n=c[1],c=[0];continue;case 7:c=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===c[0]||2===c[0])){a=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]a});var n=r(2872),o=r(4267),i=function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){var c=[i,u];if(r)throw TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&c[0]?n.return:c[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,c[1])).done)return o;switch(n=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return a.label++,{value:c[1],done:!1};case 5:a.label++,n=c[1],c=[0];continue;case 7:c=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===c[0]||2===c[0])){a=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]u});var n=r(9896),o=r(4267),i=function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){var c=[i,u];if(r)throw TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&c[0]?n.return:c[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,c[1])).done)return o;switch(n=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return a.label++,{value:c[1],done:!1};case 5:a.label++,n=c[1],c=[0];continue;case 7:c=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===c[0]||2===c[0])){a=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};function u(){var e,t,r,u;return e=this,t=void 0,r=void 0,u=function(){var e,t,r,u,c,s,l;return i(this,function(i){switch(i.label){case 0:e=["/etc/machine-id","/var/lib/dbus/machine-id"],i.label=1;case 1:i.trys.push([1,8,9,10]),r=(t=a(e)).next(),i.label=2;case 2:if(r.done)return[3,7];u=r.value,i.label=3;case 3:return i.trys.push([3,5,,6]),[4,n.promises.readFile(u,{encoding:"utf8"})];case 4:return[2,i.sent().trim()];case 5:return c=i.sent(),o.s.debug("error reading machine id: "+c),[3,6];case 6:return r=t.next(),[3,2];case 7:return[3,10];case 8:return s={error:i.sent()},[3,10];case 9:try{r&&!r.done&&(l=t.return)&&l.call(t)}finally{if(s)throw s.error}return[7];case 10:return[2,""]}})},new(r||(r=Promise))(function(n,o){function i(e){try{c(u.next(e))}catch(e){o(e)}}function a(e){try{c(u.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?n(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(i,a)}c((u=u.apply(e,t||[])).next())})}},2063:function(e,t,r){r.d(t,{D:()=>i});var n=r(4267),o=function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){var c=[i,u];if(r)throw TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&c[0]?n.return:c[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,c[1])).done)return o;switch(n=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return a.label++,{value:c[1],done:!1};case 5:a.label++,n=c[1],c=[0];continue;case 7:c=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===c[0]||2===c[0])){a=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]u});var n=r(932),o=r(2872),i=r(4267),a=function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){var c=[i,u];if(r)throw TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&c[0]?n.return:c[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,c[1])).done)return o;switch(n=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return a.label++,{value:c[1],done:!1};case 5:a.label++,n=c[1],c=[0];continue;case 7:c=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===c[0]||2===c[0])){a=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};(()=>{r.r(n),r.d(n,{envDetector:()=>U,envDetectorSync:()=>C,hostDetector:()=>B,Resource:()=>h,osDetector:()=>k,detectResources:()=>W,osDetectorSync:()=>G,browserDetectorSync:()=>R,processDetectorSync:()=>j,detectResourcesSync:()=>J,browserDetector:()=>L,processDetector:()=>F,defaultServiceName:()=>O,hostDetectorSync:()=>D,serviceInstanceIdDetectorSync:()=>Y});var e,t,o,i,a=r(4267),u="process.runtime.name",c="process.runtime.version",s="process.runtime.description",l="service.name",E="telemetry.sdk.name",f="telemetry.sdk.language",_="telemetry.sdk.version",T=((t={})[E]="opentelemetry",t[u]="node",t[f]="nodejs",t[_]="1.30.1",t);function O(){return"unknown_service:"+process.argv0}var p=function(){return(p=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])&&(6===c[0]||2===c[0])){a=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},h=function(){function e(e,t){var r,n=this;this._attributes=e,this.asyncAttributesPending=null!=t,this._syncAttributes=null!=(r=this._attributes)?r:{},this._asyncAttributesPromise=null==t?void 0:t.then(function(e){return n._attributes=Object.assign({},n._attributes,e),n.asyncAttributesPending=!1,e},function(e){return a.s.debug("a resource's async attributes promise rejected: %s",e),n.asyncAttributesPending=!1,{}})}return e.empty=function(){return e.EMPTY},e.default=function(){var t;return new e(((t={})[l]=O(),t[f]=T[f],t[E]=T[E],t[_]=T[_],t))},Object.defineProperty(e.prototype,"attributes",{get:function(){var e;return this.asyncAttributesPending&&a.s.error("Accessing resource attributes before async attributes settled"),null!=(e=this._attributes)?e:{}},enumerable:!1,configurable:!0}),e.prototype.waitForAsyncAttributes=function(){var e,t,r,n;return e=this,t=void 0,r=void 0,n=function(){return d(this,function(e){switch(e.label){case 0:if(!this.asyncAttributesPending)return[3,2];return[4,this._asyncAttributesPromise];case 1:e.sent(),e.label=2;case 2:return[2]}})},new(r||(r=Promise))(function(o,i){function a(e){try{c(n.next(e))}catch(e){i(e)}}function u(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(a,u)}c((n=n.apply(e,t||[])).next())})},e.prototype.merge=function(t){var r,n=this;if(!t)return this;var o=p(p({},this._syncAttributes),null!=(r=t._syncAttributes)?r:t.attributes);return this._asyncAttributesPromise||t._asyncAttributesPromise?new e(o,Promise.all([this._asyncAttributesPromise,t._asyncAttributesPromise]).then(function(e){var r,o=y(e,2),i=o[0],a=o[1];return p(p(p(p({},n._syncAttributes),i),null!=(r=t._syncAttributes)?r:t.attributes),a)})):new e(o)},e.EMPTY=new e({}),e}(),v=function(){return(v=Object.assign||function(e){for(var t,r=1,n=arguments.length;r=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},N=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},C=new(function(){function e(){this._MAX_LENGTH=255,this._COMMA_SEPARATOR=",",this._LABEL_KEY_VALUE_SPLITTER="=",this._ERROR_MESSAGE_INVALID_CHARS="should be a ASCII string with a length greater than 0 and not exceed "+this._MAX_LENGTH+" characters.",this._ERROR_MESSAGE_INVALID_VALUE="should be a ASCII string with a length not exceed "+this._MAX_LENGTH+" characters."}return e.prototype.detect=function(e){var t,r={},n=(t=function(e){var t={};for(var r in I)if("OTEL_LOG_LEVEL"===r)!function(e,t,r){var n=r[e];if("string"==typeof n){var o=m[n.toUpperCase()];null!=o&&(t[e]=o)}}(r,t,e);else if(A.indexOf(r)>-1)!function(e,t,r){if(void 0!==r[e]){var n=String(r[e]);t[e]="true"===n.toLowerCase()}}(r,t,e);else if(P.indexOf(r)>-1)!function(e,t,r,n,o){if(void 0===n&&(n=-1/0),void 0===o&&(o=1/0),void 0!==r[e]){var i=Number(r[e]);isNaN(i)||(io?t[e]=o:t[e]=i)}}(r,t,e);else if(S.indexOf(r)>-1)!function(e,t,r,n){void 0===n&&(n=",");var o=r[e];"string"==typeof o&&(t[e]=o.split(n).map(function(e){return e.trim()}))}(r,t,e);else{var n=e[r];null!=n&&(t[r]=String(n))}return t}(process.env),Object.assign({},I,t)),o=n.OTEL_RESOURCE_ATTRIBUTES,i=n.OTEL_SERVICE_NAME;if(o)try{var u=this._parseResourceAttributes(o);Object.assign(r,u)}catch(e){a.s.debug("EnvDetector failed: "+e.message)}return i&&(r[l]=i),new h(r)},e.prototype._parseResourceAttributes=function(e){if(!e)return{};var t,r,n={},o=e.split(this._COMMA_SEPARATOR,-1);try{for(var i=w(o),a=i.next();!a.done;a=i.next()){var u=a.value.split(this._LABEL_KEY_VALUE_SPLITTER,-1);if(2===u.length){var c=N(u,2),s=c[0],l=c[1];if(s=s.trim(),l=l.trim().split(/^"|"$/).join(""),!this._isValidAndNotEmpty(s))throw Error("Attribute key "+this._ERROR_MESSAGE_INVALID_CHARS);if(!this._isValid(l))throw Error("Attribute value "+this._ERROR_MESSAGE_INVALID_VALUE);n[s]=decodeURIComponent(l)}}}catch(e){t={error:e}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}return n},e.prototype._isValid=function(e){return e.length<=this._MAX_LENGTH&&this._isBaggageOctetString(e)},e.prototype._isBaggageOctetString=function(e){for(var t=0;t126)return!1}return!0},e.prototype._isValidAndNotEmpty=function(e){return e.length>0&&this._isValid(e)},e}()),U=new(function(){function e(){}return e.prototype.detect=function(e){return Promise.resolve(C.detect(e))},e}());let M=require("os");var x=function(e){switch(e){case"arm":return"arm32";case"ppc":return"ppc32";case"x64":return"amd64";default:return e}},X=function(e){switch(e){case"sunos":return"solaris";case"win32":return"windows";default:return e}};switch(r(932).platform){case"darwin":i=r(7821).D;break;case"linux":i=r(2238).D;break;case"freebsd":i=r(2341).D;break;case"win32":i=r(2618).D;break;default:i=r(2063).D}var D=new(function(){function e(){}return e.prototype.detect=function(e){var t;return new h(((t={})["host.name"]=(0,M.hostname)(),t["host.arch"]=x((0,M.arch)()),t),this._getAsyncAttributes())},e.prototype._getAsyncAttributes=function(){return i().then(function(e){var t={};return e&&(t["host.id"]=e),t})},e}()),B=new(function(){function e(){}return e.prototype.detect=function(e){return Promise.resolve(D.detect(e))},e}()),G=new(function(){function e(){}return e.prototype.detect=function(e){var t;return new h(((t={})["os.type"]=X((0,M.platform)()),t["os.version"]=(0,M.release)(),t))},e}()),k=new(function(){function e(){}return e.prototype.detect=function(e){return Promise.resolve(G.detect(e))},e}()),V=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},H=function(e,t,r){if(r||2==arguments.length)for(var n,o=0,i=t.length;o1&&(r["process.command"]=process.argv[1]);try{var n=M.userInfo();r["process.owner"]=n.username}catch(e){a.s.debug("error obtaining process owner: "+e)}return new h(r)},e}()),F=new(function(){function e(){}return e.prototype.detect=function(e){return Promise.resolve(j.detect(e))},e}());let K=require("crypto");var Y=new(function(){function e(){}return e.prototype.detect=function(e){var t;return new h(((t={})["service.instance.id"]=(0,K.randomUUID)(),t))},e}()),q=function(e,t,r,n){return new(r||(r=Promise))(function(o,i){function a(e){try{c(n.next(e))}catch(e){i(e)}}function u(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(a,u)}c((n=n.apply(e,t||[])).next())})},Z=function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){var c=[i,u];if(r)throw TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&c[0]?n.return:c[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,c[1])).done)return o;switch(n=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return a.label++,{value:c[1],done:!1};case 5:a.label++,n=c[1],c=[0];continue;case 7:c=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===c[0]||2===c[0])){a=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]0){var t=JSON.stringify(e.attributes,null,4);a.s.verbose(t)}})}})(),module.exports=n})(); \ No newline at end of file diff --git a/packages/node_modules/crypto-randomuuid/index.js b/packages/node_modules/crypto-randomuuid/index.js index 9a8b2d073cf..6442c66ea45 100644 --- a/packages/node_modules/crypto-randomuuid/index.js +++ b/packages/node_modules/crypto-randomuuid/index.js @@ -1 +1 @@ -(()=>{"use strict";var e={4487:function(e,t,o){let n=o(6982);e.exports="function"==typeof n.randomUUID?n.randomUUID:o(4908)},4908:function(e,t,o){let n,r,i,s=o(6982),{validateBoolean:c,validateObject:l,codes:{ERR_OPERATION_FAILED:u}}=o(7352),{randomFillSync:f}=s;function a(e){return f(Buffer.alloc(e))}let p=0;function h(e,t=0){let o=function(){if(void 0===i){i=Array(256);for(let e=0;e0){const e=c.indexOf("object");-1!==e&&(c.splice(e,1),l.push("Object"))}if(c.length>0){if(c.length>2){const e=c.pop();s+=`one of type ${c.join(", ")}, or ${e}`}else 2===c.length?s+=`one of type ${c[0]} or ${c[1]}`:s+=`of type ${c[0]}`;(l.length>0||u.length>0)&&(s+=" or ")}if(l.length>0){if(l.length>2){const e=l.pop();s+=`an instance of ${l.join(", ")}, or ${e}`}else s+=`an instance of ${l[0]}`,2===l.length&&(s+=` or ${l[1]}`);u.length>0&&(s+=" or ")}if(u.length>0)if(u.length>2){const e=u.pop();s+=`one of ${u.join(", ")}, or ${e}`}else 2===u.length?s+=`one of ${u[0]} or ${u[1]}`:(u[0].toLowerCase()!==u[0]&&(s+="an "),s+=`${u[0]}`);if(null==o)s+=`. Received ${o}`;else if("function"==typeof o&&o.name)s+=`. Received function ${o.name}`;else if("object"==typeof o)if(o.constructor&&o.constructor.name)s+=`. Received an instance of ${o.constructor.name}`;else{const e=r.inspect(o,{depth:-1});s+=`. Received ${e}`}else{let e=r.inspect(o,{colors:!1});e.length>25&&(e=`${e.slice(0,25)}...`),s+=`. Received type ${typeof o} (${e})`}this.code=this.constructor.name,Object.defineProperties(this,{message:{value:s,enumerable:!1,writable:!0,configurable:!0},toString:{value(){return`${this.name} [${this.code}]: ${this.message}`},enumerable:!1,writable:!0,configurable:!0}})}}e.exports={validateBoolean:function(e,t){if("boolean"!=typeof e)throw new c(t,"boolean",e)},validateObject:function(e,t,{nullable:o=!1,allowArray:n=!1,allowFunction:r=!1}={}){if(!o&&null===e||!n&&Array.isArray(e)||"object"!=typeof e&&(!r||"function"!=typeof e))throw new c(t,"Object",e)},codes:{ERR_OPERATION_FAILED:s}}},2613:function(e){e.exports=require("assert")},6982:function(e){e.exports=require("crypto")},9023:function(e){e.exports=require("util")}},t={},o=function o(n){var r=t[n];if(void 0!==r)return r.exports;var i=t[n]={exports:{}};return e[n](i,i.exports,o),i.exports}(4487);module.exports=o})(); \ No newline at end of file +(()=>{"use strict";var e={3918:function(e,t,o){let n=o(6982);e.exports="function"==typeof n.randomUUID?n.randomUUID:o(5943)},5943:function(e,t,o){let n,r,i,s=o(6982),{validateBoolean:c,validateObject:l,codes:{ERR_OPERATION_FAILED:u}}=o(3295),{randomFillSync:f}=s;function a(e){return f(Buffer.alloc(e))}let p=0;function h(e,t=0){let o=function(){if(void 0===i){i=Array(256);for(let e=0;e0){const e=c.indexOf("object");-1!==e&&(c.splice(e,1),l.push("Object"))}if(c.length>0){if(c.length>2){const e=c.pop();s+=`one of type ${c.join(", ")}, or ${e}`}else 2===c.length?s+=`one of type ${c[0]} or ${c[1]}`:s+=`of type ${c[0]}`;(l.length>0||u.length>0)&&(s+=" or ")}if(l.length>0){if(l.length>2){const e=l.pop();s+=`an instance of ${l.join(", ")}, or ${e}`}else s+=`an instance of ${l[0]}`,2===l.length&&(s+=` or ${l[1]}`);u.length>0&&(s+=" or ")}if(u.length>0)if(u.length>2){const e=u.pop();s+=`one of ${u.join(", ")}, or ${e}`}else 2===u.length?s+=`one of ${u[0]} or ${u[1]}`:(u[0].toLowerCase()!==u[0]&&(s+="an "),s+=`${u[0]}`);if(null==o)s+=`. Received ${o}`;else if("function"==typeof o&&o.name)s+=`. Received function ${o.name}`;else if("object"==typeof o)if(o.constructor&&o.constructor.name)s+=`. Received an instance of ${o.constructor.name}`;else{const e=r.inspect(o,{depth:-1});s+=`. Received ${e}`}else{let e=r.inspect(o,{colors:!1});e.length>25&&(e=`${e.slice(0,25)}...`),s+=`. Received type ${typeof o} (${e})`}this.code=this.constructor.name,Object.defineProperties(this,{message:{value:s,enumerable:!1,writable:!0,configurable:!0},toString:{value(){return`${this.name} [${this.code}]: ${this.message}`},enumerable:!1,writable:!0,configurable:!0}})}}e.exports={validateBoolean:function(e,t){if("boolean"!=typeof e)throw new c(t,"boolean",e)},validateObject:function(e,t,{nullable:o=!1,allowArray:n=!1,allowFunction:r=!1}={}){if(!o&&null===e||!n&&Array.isArray(e)||"object"!=typeof e&&(!r||"function"!=typeof e))throw new c(t,"Object",e)},codes:{ERR_OPERATION_FAILED:s}}},2613:function(e){e.exports=require("assert")},6982:function(e){e.exports=require("crypto")},9023:function(e){e.exports=require("util")}},t={},o=function o(n){var r=t[n];if(void 0!==r)return r.exports;var i=t[n]={exports:{}};return e[n](i,i.exports,o),i.exports}(3918);module.exports=o})(); \ No newline at end of file diff --git a/packages/node_modules/ignore/index.js b/packages/node_modules/ignore/index.js index 15cd72d2aab..82bde863199 100644 --- a/packages/node_modules/ignore/index.js +++ b/packages/node_modules/ignore/index.js @@ -1 +1 @@ -(()=>{var t={2535:function(t){function e(t){return Array.isArray(t)?t:[t]}let r,s=/^\s+$/,i=/(?:[^\\]|^)\\$/,n=/^\\!/,h=/^\\#/,o=/\r?\n/g,l=/^\.{0,2}\/|^\.{1,2}$/,a=/\/$/,u="node-ignore";"undefined"!=typeof Symbol&&(u=Symbol.for("node-ignore"));let c=u,d=(t,e,r)=>(Object.defineProperty(t,e,{value:r}),r),g=/([0-z])-([0-z])/g,p=()=>!1,_=[[/^\uFEFF/,()=>""],[/((?:\\\\)*?)(\\?\s+)$/,(t,e,r)=>e+(0===r.indexOf("\\")?" ":"")],[/(\\+?)\s/g,(t,e)=>{let{length:r}=e;return e.slice(0,r-r%2)+" "}],[/[\\$.|*+(){^]/g,t=>`\\${t}`],[/(?!\\)\?/g,()=>"[^/]"],[/^\//,()=>"^"],[/\//g,()=>"\\/"],[/^\^*\\\*\\\*\\\//,()=>"^(?:.*\\/)?"],[/^(?=[^^])/,function(){return/\/(?!$)/.test(this)?"^":"(?:^|\\/)"}],[/\\\/\\\*\\\*(?=\\\/|$)/g,(t,e,r)=>e+6e+r.replace(/\\\*/g,"[^\\/]*")],[/\\\\\\(?=[$.|*+(){^])/g,()=>"\\"],[/\\\\/g,()=>"\\"],[/(\\)?\[([^\]/]*?)(\\*)($|\])/g,(t,e,r,s,i)=>"\\"===e?`\\[${r}${(t=>{let{length:e}=t;return t.slice(0,e-e%2)})(s)}${i}`:"]"===i&&s.length%2==0?`[${r.replace(g,(t,e,r)=>e.charCodeAt(0)<=r.charCodeAt(0)?t:"")}${s}]`:"[]"],[/(?:[^*])$/,t=>/\/$/.test(t)?`${t}$`:`${t}(?=$|\\/$)`]],f=/(^|\\\/)?\\\*$/,$="regex",x="checkRegex",y={[$](t,e){let r=e?`${e}[^/]+`:"[^/]*";return`${r}(?=$|\\/$)`},[x](t,e){let r=e?`${e}[^/]*`:"[^/]*";return`${r}(?=$|\\/$)`}};class C{constructor(t,e,r,s,i,n){this.pattern=t,this.mark=e,this.negative=i,d(this,"body",r),d(this,"ignoreCase",s),d(this,"regexPrefix",n)}get regex(){let t="_"+$;return this[t]?this[t]:this._make($,t)}get checkRegex(){let t="_"+x;return this[t]?this[t]:this._make(x,t)}_make(t,e){let r=this.regexPrefix.replace(f,y[t]);return d(this,e,this.ignoreCase?RegExp(r,"i"):new RegExp(r))}}class b{constructor(t){this._ignoreCase=t,this._rules=[]}_add(t){let e;if(t&&t[c]){this._rules=this._rules.concat(t._rules._rules),this._added=!0;return}if("string"==typeof t&&(t={pattern:t}),(e=t.pattern)&&"string"==typeof e&&!s.test(e)&&!i.test(e)&&0!==e.indexOf("#")){let e=(({pattern:t,mark:e},r)=>{let s,i=!1,o=t;0===o.indexOf("!")&&(i=!0,o=o.substr(1));let l=(s=o=o.replace(n,"!").replace(h,"#"),_.reduce((t,[e,r])=>t.replace(e,r.bind(s)),s));return new C(t,e,o,r,i,l)})(t,this._ignoreCase);this._added=!0,this._rules.push(e)}}add(t){return this._added=!1,e("string"==typeof t?t.split(o).filter(Boolean):t).forEach(this._add,this),this._added}test(t,e,s){let i,n=!1,h=!1;this._rules.forEach(o=>{let{negative:l}=o;(h!==l||n===h)&&(!l||n||h||e)&&o[s].test(t)&&(n=!l,h=l,i=l?r:o)});let o={ignored:n,unignored:h};return i&&(o.rule=i),o}}let v=(t,e)=>{throw new e(t)},m=(t,e,r)=>"string"!=typeof t?r(`path must be a string, but got \`${e}\``,TypeError):t?!m.isNotRelative(t)||r(`path should be a \`path.relative()\`d string, but got "${e}"`,RangeError):r("path must not be empty",TypeError),k=t=>l.test(t);m.isNotRelative=k,m.convert=t=>t;class w{constructor({ignorecase:t=!0,ignoreCase:e=t,allowRelativePaths:r=!1}={}){d(this,c,!0),this._rules=new b(e),this._strictPathCheck=!r,this._initCache()}_initCache(){this._ignoreCache=Object.create(null),this._testCache=Object.create(null)}add(t){return this._rules.add(t)&&this._initCache(),this}addPattern(t){return this.add(t)}_test(t,e,r,s){let i=t&&m.convert(t);return m(i,t,this._strictPathCheck?v:p),this._t(i,e,r,s)}checkIgnore(t){if(!a.test(t))return this.test(t);let e=t.split("/").filter(Boolean);if(e.pop(),e.length){let t=this._t(e.join("/")+"/",this._testCache,!0,e);if(t.ignored)return t}return this._rules.test(t,!1,x)}_t(t,e,r,s){if(t in e)return e[t];if(s||(s=t.split("/").filter(Boolean)),s.pop(),!s.length)return e[t]=this._rules.test(t,r,$);let i=this._t(s.join("/")+"/",e,r,s);return e[t]=i.ignored?i:this._rules.test(t,r,$)}ignores(t){return this._test(t,this._ignoreCache,!1).ignored}createFilter(){return t=>!this.ignores(t)}filter(t){return e(t).filter(this.createFilter())}test(t){return this._test(t,this._testCache,!0)}}let E=t=>new w(t),R=()=>{m.convert=t=>/^\\\\\?\\/.test(t)||/["<>|\u0000-\u001F]+/u.test(t)?t:t.replace(/\\/g,"/");let t=/^[a-z]:\//i;m.isNotRelative=e=>t.test(e)||k(e)};"undefined"!=typeof process&&"win32"===process.platform&&R(),t.exports=E,E.default=E,t.exports.isPathValid=t=>m(t&&m.convert(t),t,p),d(t.exports,Symbol.for("setupWindows"),R)}},e={},r=function r(s){var i=e[s];if(void 0!==i)return i.exports;var n=e[s]={exports:{}};return t[s](n,n.exports,r),n.exports}(2535);module.exports=r})(); \ No newline at end of file +(()=>{var t={2296:function(t){function e(t){return Array.isArray(t)?t:[t]}let r,s=/^\s+$/,i=/(?:[^\\]|^)\\$/,n=/^\\!/,h=/^\\#/,o=/\r?\n/g,l=/^\.{0,2}\/|^\.{1,2}$/,a=/\/$/,u="node-ignore";"undefined"!=typeof Symbol&&(u=Symbol.for("node-ignore"));let c=u,d=(t,e,r)=>(Object.defineProperty(t,e,{value:r}),r),g=/([0-z])-([0-z])/g,p=()=>!1,_=[[/^\uFEFF/,()=>""],[/((?:\\\\)*?)(\\?\s+)$/,(t,e,r)=>e+(0===r.indexOf("\\")?" ":"")],[/(\\+?)\s/g,(t,e)=>{let{length:r}=e;return e.slice(0,r-r%2)+" "}],[/[\\$.|*+(){^]/g,t=>`\\${t}`],[/(?!\\)\?/g,()=>"[^/]"],[/^\//,()=>"^"],[/\//g,()=>"\\/"],[/^\^*\\\*\\\*\\\//,()=>"^(?:.*\\/)?"],[/^(?=[^^])/,function(){return/\/(?!$)/.test(this)?"^":"(?:^|\\/)"}],[/\\\/\\\*\\\*(?=\\\/|$)/g,(t,e,r)=>e+6e+r.replace(/\\\*/g,"[^\\/]*")],[/\\\\\\(?=[$.|*+(){^])/g,()=>"\\"],[/\\\\/g,()=>"\\"],[/(\\)?\[([^\]/]*?)(\\*)($|\])/g,(t,e,r,s,i)=>"\\"===e?`\\[${r}${(t=>{let{length:e}=t;return t.slice(0,e-e%2)})(s)}${i}`:"]"===i&&s.length%2==0?`[${r.replace(g,(t,e,r)=>e.charCodeAt(0)<=r.charCodeAt(0)?t:"")}${s}]`:"[]"],[/(?:[^*])$/,t=>/\/$/.test(t)?`${t}$`:`${t}(?=$|\\/$)`]],f=/(^|\\\/)?\\\*$/,$="regex",x="checkRegex",y={[$](t,e){let r=e?`${e}[^/]+`:"[^/]*";return`${r}(?=$|\\/$)`},[x](t,e){let r=e?`${e}[^/]*`:"[^/]*";return`${r}(?=$|\\/$)`}};class C{constructor(t,e,r,s,i,n){this.pattern=t,this.mark=e,this.negative=i,d(this,"body",r),d(this,"ignoreCase",s),d(this,"regexPrefix",n)}get regex(){let t="_"+$;return this[t]?this[t]:this._make($,t)}get checkRegex(){let t="_"+x;return this[t]?this[t]:this._make(x,t)}_make(t,e){let r=this.regexPrefix.replace(f,y[t]);return d(this,e,this.ignoreCase?RegExp(r,"i"):new RegExp(r))}}class b{constructor(t){this._ignoreCase=t,this._rules=[]}_add(t){let e;if(t&&t[c]){this._rules=this._rules.concat(t._rules._rules),this._added=!0;return}if("string"==typeof t&&(t={pattern:t}),(e=t.pattern)&&"string"==typeof e&&!s.test(e)&&!i.test(e)&&0!==e.indexOf("#")){let e=(({pattern:t,mark:e},r)=>{let s,i=!1,o=t;0===o.indexOf("!")&&(i=!0,o=o.substr(1));let l=(s=o=o.replace(n,"!").replace(h,"#"),_.reduce((t,[e,r])=>t.replace(e,r.bind(s)),s));return new C(t,e,o,r,i,l)})(t,this._ignoreCase);this._added=!0,this._rules.push(e)}}add(t){return this._added=!1,e("string"==typeof t?t.split(o).filter(Boolean):t).forEach(this._add,this),this._added}test(t,e,s){let i,n=!1,h=!1;this._rules.forEach(o=>{let{negative:l}=o;(h!==l||n===h)&&(!l||n||h||e)&&o[s].test(t)&&(n=!l,h=l,i=l?r:o)});let o={ignored:n,unignored:h};return i&&(o.rule=i),o}}let v=(t,e)=>{throw new e(t)},m=(t,e,r)=>"string"!=typeof t?r(`path must be a string, but got \`${e}\``,TypeError):t?!m.isNotRelative(t)||r(`path should be a \`path.relative()\`d string, but got "${e}"`,RangeError):r("path must not be empty",TypeError),k=t=>l.test(t);m.isNotRelative=k,m.convert=t=>t;class w{constructor({ignorecase:t=!0,ignoreCase:e=t,allowRelativePaths:r=!1}={}){d(this,c,!0),this._rules=new b(e),this._strictPathCheck=!r,this._initCache()}_initCache(){this._ignoreCache=Object.create(null),this._testCache=Object.create(null)}add(t){return this._rules.add(t)&&this._initCache(),this}addPattern(t){return this.add(t)}_test(t,e,r,s){let i=t&&m.convert(t);return m(i,t,this._strictPathCheck?v:p),this._t(i,e,r,s)}checkIgnore(t){if(!a.test(t))return this.test(t);let e=t.split("/").filter(Boolean);if(e.pop(),e.length){let t=this._t(e.join("/")+"/",this._testCache,!0,e);if(t.ignored)return t}return this._rules.test(t,!1,x)}_t(t,e,r,s){if(t in e)return e[t];if(s||(s=t.split("/").filter(Boolean)),s.pop(),!s.length)return e[t]=this._rules.test(t,r,$);let i=this._t(s.join("/")+"/",e,r,s);return e[t]=i.ignored?i:this._rules.test(t,r,$)}ignores(t){return this._test(t,this._ignoreCache,!1).ignored}createFilter(){return t=>!this.ignores(t)}filter(t){return e(t).filter(this.createFilter())}test(t){return this._test(t,this._testCache,!0)}}let E=t=>new w(t),R=()=>{m.convert=t=>/^\\\\\?\\/.test(t)||/["<>|\u0000-\u001F]+/u.test(t)?t:t.replace(/\\/g,"/");let t=/^[a-z]:\//i;m.isNotRelative=e=>t.test(e)||k(e)};"undefined"!=typeof process&&"win32"===process.platform&&R(),t.exports=E,E.default=E,t.exports.isPathValid=t=>m(t&&m.convert(t),t,p),d(t.exports,Symbol.for("setupWindows"),R)}},e={},r=function r(s){var i=e[s];if(void 0!==i)return i.exports;var n=e[s]={exports:{}};return t[s](n,n.exports,r),n.exports}(2296);module.exports=r})(); \ No newline at end of file diff --git a/packages/node_modules/istanbul-lib-coverage/index.js b/packages/node_modules/istanbul-lib-coverage/index.js index e466eccb9ed..10c6a087ae0 100644 --- a/packages/node_modules/istanbul-lib-coverage/index.js +++ b/packages/node_modules/istanbul-lib-coverage/index.js @@ -1 +1 @@ -(()=>{"use strict";var t={1958:function(t,e,a){let{FileCoverage:r}=a(4709),{CoverageMap:n}=a(3561),{CoverageSummary:s}=a(9455);t.exports={createCoverageSummary:t=>t&&t instanceof s?t:new s(t),createCoverageMap:t=>t&&t instanceof n?t:new n(t),createFileCoverage:t=>t&&t instanceof r?t:new r(t)},t.exports.classes={FileCoverage:r}},3561:function(t,e,a){let{FileCoverage:r}=a(4709),{CoverageSummary:n}=a(9455);function s(t,e){return t instanceof e?t:new e(t)}class i{constructor(t){t instanceof i?this.data=t.data:this.data=function(t){let e=Object.create(null);return t&&Object.entries(t).forEach(([t,a])=>{e[t]=s(a,r)}),e}(t)}merge(t){Object.values(s(t,i).data).forEach(t=>{this.addFileCoverage(t)})}filter(t){Object.keys(this.data).forEach(e=>{t(e)||delete this.data[e]})}toJSON(){return this.data}files(){return Object.keys(this.data)}fileCoverageFor(t){let e=this.data[t];if(!e)throw Error(`No file coverage available for: ${t}`);return e}addFileCoverage(t){let e=new r(t),{path:a}=e;this.data[a]?this.data[a].merge(e):this.data[a]=e}getCoverageSummary(){let t=new n;return Object.values(this.data).forEach(e=>{t.merge(e.toSummary())}),t}}t.exports={CoverageMap:i}},9455:function(t,e,a){let r=a(2735),n=a(20);class s{constructor(t){t?t instanceof s?this.data=t.data:this.data=t:this.data=function(){let t=()=>({total:0,covered:0,skipped:0,pct:"Unknown"});return{lines:t(),statements:t(),functions:t(),branches:t(),branchesTrue:t()}}(),function(t){if(!(t&&t.lines&&t.statements&&t.functions&&t.branches))throw Error("Invalid summary coverage object, missing keys, found:"+Object.keys(t).join(","))}(this.data)}merge(t){return["lines","statements","branches","functions","branchesTrue"].forEach(e=>{t[e]&&(this[e].total+=t[e].total,this[e].covered+=t[e].covered,this[e].skipped+=t[e].skipped,this[e].pct=r(this[e].covered,this[e].total))}),this}toJSON(){return this.data}isEmpty(){return 0===this.lines.total}}n(s,["lines","statements","functions","branches","branchesTrue"]),t.exports={CoverageSummary:s}},20:function(t){t.exports=function(t,e){e.forEach(e=>{Object.defineProperty(t.prototype,e,{enumerable:!0,get(){return this.data[e]}})})}},4709:function(t,e,a){let r=a(2735),n=a(20),{CoverageSummary:s}=a(9455),i=({start:t,end:e})=>`${t.line}|${t.column}|${e.line}|${e.column}`,o=t=>!!t&&"object"==typeof t,l=t=>o(t)&&"number"==typeof t.line&&"number"==typeof t.column,c=t=>o(t)&&l(t.start)&&l(t.end),h=t=>c(t)?t:c(t.loc)?t.loc:null,f=(t,e)=>{let a=h(t);if(!a)return null;let r=null,n=null,s=null;for(let[t,i]of Object.entries(e)){let e=h(i);if(!e)continue;let o=[a.start.line-e.start.line,a.start.column-e.start.column,e.end.line-a.end.line,e.end.column-a.end.column];if(o[0]<0||o[2]<0||0===o[0]&&o[1]<0||0===o[2]&&o[3]<0)continue;if(null===r){n=o,r=i,s=t;continue}let l=o[0]"number"==typeof t&&"number"==typeof e?t+e:Array.isArray(t)&&Array.isArray(e)?t.map((t,a)=>(t||0)+(e[a]||0)):null,p=(t,e,a,r)=>{let n=f(t,a);return n?u(e,r[n]):e},b=(t,e,a,r,n=i)=>{let s={};for(let[a,r]of Object.entries(t)){let t=e[a];s[n(t)]=[r,t]}let o={};for(let[t,e]of Object.entries(a)){let a=r[t];o[n(a)]=[e,a]}let l={};for(let[t,e]of Object.entries(s)){let n=e[0],s=e[1],i=o[t];n=i?u(n,i[0]):p(s,n,r,a),l[t]=[n,s]}for(let[a,r]of Object.entries(o)){let n=r[0],s=r[1];l[a]||(n=p(s,n,e,t),l[a]=[n,s])}let c={},h={};return Object.values(l).forEach(([t,e],a)=>{c[a]=t,h[a]=e}),[c,h]};class d{constructor(t,e=!1){if(!t)throw Error("Coverage must be initialized with a path or an object");if("string"==typeof t)this.data=function(t,e){let a={path:t,statementMap:{},fnMap:{},branchMap:{},s:{},f:{},b:{}};return e&&(a.bT={}),a}(t,e);else if(t instanceof d)this.data=t.data;else if("object"==typeof t)this.data=t;else throw Error("Invalid argument to coverage constructor");!function(t){if(!(t&&t.path&&t.statementMap&&t.fnMap&&t.branchMap&&t.s&&t.f&&t.b))throw Error("Invalid file coverage object, missing keys, found:"+Object.keys(t).join(","))}(this.data)}getLineCoverage(){let t=this.data.statementMap,e=this.data.s,a=Object.create(null);return Object.entries(e).forEach(([e,r])=>{if(!t[e])return;let{line:n}=t[e].start,s=a[n];(void 0===s||s{0===a&&e.push(t)}),e}getBranchCoverageByLine(){let t=this.branchMap,e=this.b,a={};return Object.entries(t).forEach(([t,r])=>{let n=r.line||r.loc.start.line,s=e[t];a[n]=a[n]||[],a[n].push(...s)}),Object.entries(a).forEach(([t,e])=>{let r=e.filter(t=>t>0),n=r.length/e.length*100;a[t]={covered:r.length,total:e.length,coverage:n}}),a}toJSON(){return this.data}merge(t){if(!0===t.all)return;if(!0===this.all){this.data=t.data;return}let[e,a]=b(this.s,this.statementMap,t.s,t.statementMap);this.data.s=e,this.data.statementMap=a;let r=t=>i(t.locations[0]);[e,a]=b(this.f,this.fnMap,t.f,t.fnMap,t=>i(t.loc)),this.data.f=e,this.data.fnMap=a,[e,a]=b(this.b,this.branchMap,t.b,t.branchMap,r),this.data.b=e,this.data.branchMap=a,this.bT&&t.bT&&([e,a]=b(this.bT,this.branchMap,t.bT,t.branchMap,r),this.data.bT=e)}computeSimpleTotals(t){let e=this[t];"function"==typeof e&&(e=e.call(this));let a={total:Object.keys(e).length,covered:Object.values(e).filter(t=>!!t).length,skipped:0};return a.pct=r(a.covered,a.total),a}computeBranchTotals(t){let e=this[t],a={total:0,covered:0,skipped:0};return Object.values(e).forEach(t=>{a.covered+=t.filter(t=>t>0).length,a.total+=t.length}),a.pct=r(a.covered,a.total),a}resetHits(){let t=this.s,e=this.f,a=this.b,r=this.bT;Object.keys(t).forEach(e=>{t[e]=0}),Object.keys(e).forEach(t=>{e[t]=0}),Object.keys(a).forEach(t=>{a[t].fill(0)}),r&&Object.keys(r).forEach(t=>{r[t].fill(0)})}toSummary(){let t={};return t.lines=this.computeSimpleTotals("getLineCoverage"),t.functions=this.computeSimpleTotals("f","fnMap"),t.statements=this.computeSimpleTotals("s","statementMap"),t.branches=this.computeBranchTotals("b"),this.bT&&(t.branchesTrue=this.computeBranchTotals("bT")),new s(t)}}n(d,["path","statementMap","fnMap","branchMap","s","f","b","bT","all"]),t.exports={FileCoverage:d,findNearestContainer:f,addHits:u,addNearestContainerHits:p}},2735:function(t){t.exports=function(t,e){return e>0?Math.floor(1e5*t/e/10)/100:100}}},e={},a=function a(r){var n=e[r];if(void 0!==n)return n.exports;var s=e[r]={exports:{}};return t[r](s,s.exports,a),s.exports}(1958);module.exports=a})(); \ No newline at end of file +(()=>{"use strict";var t={4967:function(t,e,a){let{FileCoverage:r}=a(5920),{CoverageMap:n}=a(9806),{CoverageSummary:s}=a(572);t.exports={createCoverageSummary:t=>t&&t instanceof s?t:new s(t),createCoverageMap:t=>t&&t instanceof n?t:new n(t),createFileCoverage:t=>t&&t instanceof r?t:new r(t)},t.exports.classes={FileCoverage:r}},9806:function(t,e,a){let{FileCoverage:r}=a(5920),{CoverageSummary:n}=a(572);function s(t,e){return t instanceof e?t:new e(t)}class i{constructor(t){t instanceof i?this.data=t.data:this.data=function(t){let e=Object.create(null);return t&&Object.entries(t).forEach(([t,a])=>{e[t]=s(a,r)}),e}(t)}merge(t){Object.values(s(t,i).data).forEach(t=>{this.addFileCoverage(t)})}filter(t){Object.keys(this.data).forEach(e=>{t(e)||delete this.data[e]})}toJSON(){return this.data}files(){return Object.keys(this.data)}fileCoverageFor(t){let e=this.data[t];if(!e)throw Error(`No file coverage available for: ${t}`);return e}addFileCoverage(t){let e=new r(t),{path:a}=e;this.data[a]?this.data[a].merge(e):this.data[a]=e}getCoverageSummary(){let t=new n;return Object.values(this.data).forEach(e=>{t.merge(e.toSummary())}),t}}t.exports={CoverageMap:i}},572:function(t,e,a){let r=a(1822),n=a(3813);class s{constructor(t){t?t instanceof s?this.data=t.data:this.data=t:this.data=function(){let t=()=>({total:0,covered:0,skipped:0,pct:"Unknown"});return{lines:t(),statements:t(),functions:t(),branches:t(),branchesTrue:t()}}(),function(t){if(!(t&&t.lines&&t.statements&&t.functions&&t.branches))throw Error("Invalid summary coverage object, missing keys, found:"+Object.keys(t).join(","))}(this.data)}merge(t){return["lines","statements","branches","functions","branchesTrue"].forEach(e=>{t[e]&&(this[e].total+=t[e].total,this[e].covered+=t[e].covered,this[e].skipped+=t[e].skipped,this[e].pct=r(this[e].covered,this[e].total))}),this}toJSON(){return this.data}isEmpty(){return 0===this.lines.total}}n(s,["lines","statements","functions","branches","branchesTrue"]),t.exports={CoverageSummary:s}},3813:function(t){t.exports=function(t,e){e.forEach(e=>{Object.defineProperty(t.prototype,e,{enumerable:!0,get(){return this.data[e]}})})}},5920:function(t,e,a){let r=a(1822),n=a(3813),{CoverageSummary:s}=a(572),i=({start:t,end:e})=>`${t.line}|${t.column}|${e.line}|${e.column}`,o=t=>!!t&&"object"==typeof t,l=t=>o(t)&&"number"==typeof t.line&&"number"==typeof t.column,c=t=>o(t)&&l(t.start)&&l(t.end),h=t=>c(t)?t:c(t.loc)?t.loc:null,f=(t,e)=>{let a=h(t);if(!a)return null;let r=null,n=null,s=null;for(let[t,i]of Object.entries(e)){let e=h(i);if(!e)continue;let o=[a.start.line-e.start.line,a.start.column-e.start.column,e.end.line-a.end.line,e.end.column-a.end.column];if(o[0]<0||o[2]<0||0===o[0]&&o[1]<0||0===o[2]&&o[3]<0)continue;if(null===r){n=o,r=i,s=t;continue}let l=o[0]"number"==typeof t&&"number"==typeof e?t+e:Array.isArray(t)&&Array.isArray(e)?t.map((t,a)=>(t||0)+(e[a]||0)):null,p=(t,e,a,r)=>{let n=f(t,a);return n?u(e,r[n]):e},b=(t,e,a,r,n=i)=>{let s={};for(let[a,r]of Object.entries(t)){let t=e[a];s[n(t)]=[r,t]}let o={};for(let[t,e]of Object.entries(a)){let a=r[t];o[n(a)]=[e,a]}let l={};for(let[t,e]of Object.entries(s)){let n=e[0],s=e[1],i=o[t];n=i?u(n,i[0]):p(s,n,r,a),l[t]=[n,s]}for(let[a,r]of Object.entries(o)){let n=r[0],s=r[1];l[a]||(n=p(s,n,e,t),l[a]=[n,s])}let c={},h={};return Object.values(l).forEach(([t,e],a)=>{c[a]=t,h[a]=e}),[c,h]};class d{constructor(t,e=!1){if(!t)throw Error("Coverage must be initialized with a path or an object");if("string"==typeof t)this.data=function(t,e){let a={path:t,statementMap:{},fnMap:{},branchMap:{},s:{},f:{},b:{}};return e&&(a.bT={}),a}(t,e);else if(t instanceof d)this.data=t.data;else if("object"==typeof t)this.data=t;else throw Error("Invalid argument to coverage constructor");!function(t){if(!(t&&t.path&&t.statementMap&&t.fnMap&&t.branchMap&&t.s&&t.f&&t.b))throw Error("Invalid file coverage object, missing keys, found:"+Object.keys(t).join(","))}(this.data)}getLineCoverage(){let t=this.data.statementMap,e=this.data.s,a=Object.create(null);return Object.entries(e).forEach(([e,r])=>{if(!t[e])return;let{line:n}=t[e].start,s=a[n];(void 0===s||s{0===a&&e.push(t)}),e}getBranchCoverageByLine(){let t=this.branchMap,e=this.b,a={};return Object.entries(t).forEach(([t,r])=>{let n=r.line||r.loc.start.line,s=e[t];a[n]=a[n]||[],a[n].push(...s)}),Object.entries(a).forEach(([t,e])=>{let r=e.filter(t=>t>0),n=r.length/e.length*100;a[t]={covered:r.length,total:e.length,coverage:n}}),a}toJSON(){return this.data}merge(t){if(!0===t.all)return;if(!0===this.all){this.data=t.data;return}let[e,a]=b(this.s,this.statementMap,t.s,t.statementMap);this.data.s=e,this.data.statementMap=a;let r=t=>i(t.locations[0]);[e,a]=b(this.f,this.fnMap,t.f,t.fnMap,t=>i(t.loc)),this.data.f=e,this.data.fnMap=a,[e,a]=b(this.b,this.branchMap,t.b,t.branchMap,r),this.data.b=e,this.data.branchMap=a,this.bT&&t.bT&&([e,a]=b(this.bT,this.branchMap,t.bT,t.branchMap,r),this.data.bT=e)}computeSimpleTotals(t){let e=this[t];"function"==typeof e&&(e=e.call(this));let a={total:Object.keys(e).length,covered:Object.values(e).filter(t=>!!t).length,skipped:0};return a.pct=r(a.covered,a.total),a}computeBranchTotals(t){let e=this[t],a={total:0,covered:0,skipped:0};return Object.values(e).forEach(t=>{a.covered+=t.filter(t=>t>0).length,a.total+=t.length}),a.pct=r(a.covered,a.total),a}resetHits(){let t=this.s,e=this.f,a=this.b,r=this.bT;Object.keys(t).forEach(e=>{t[e]=0}),Object.keys(e).forEach(t=>{e[t]=0}),Object.keys(a).forEach(t=>{a[t].fill(0)}),r&&Object.keys(r).forEach(t=>{r[t].fill(0)})}toSummary(){let t={};return t.lines=this.computeSimpleTotals("getLineCoverage"),t.functions=this.computeSimpleTotals("f","fnMap"),t.statements=this.computeSimpleTotals("s","statementMap"),t.branches=this.computeBranchTotals("b"),this.bT&&(t.branchesTrue=this.computeBranchTotals("bT")),new s(t)}}n(d,["path","statementMap","fnMap","branchMap","s","f","b","bT","all"]),t.exports={FileCoverage:d,findNearestContainer:f,addHits:u,addNearestContainerHits:p}},1822:function(t){t.exports=function(t,e){return e>0?Math.floor(1e5*t/e/10)/100:100}}},e={},a=function a(r){var n=e[r];if(void 0!==n)return n.exports;var s=e[r]={exports:{}};return t[r](s,s.exports,a),s.exports}(4967);module.exports=a})(); \ No newline at end of file diff --git a/packages/node_modules/jest-docblock/index.js b/packages/node_modules/jest-docblock/index.js index 9372864c970..ee47c04ff99 100644 --- a/packages/node_modules/jest-docblock/index.js +++ b/packages/node_modules/jest-docblock/index.js @@ -1 +1 @@ -(()=>{"use strict";var r={1671:function(r){let t=r=>{if("string"!=typeof r)throw TypeError("Expected a string");let t=r.match(/(?:\r?\n)/g)||[];if(0===t.length)return;let e=t.filter(r=>"\r\n"===r).length,n=t.length-e;return e>n?"\r\n":"\n"};r.exports=t,r.exports.graceful=r=>"string"==typeof r&&t(r)||"\n"},857:function(r){r.exports=require("os")}},t={};function e(n){var i=t[n];if(void 0!==i)return i.exports;var l=t[n]={exports:{}};return r[n](l,l.exports,e),l.exports}var n={};(()=>{function r(){let t=e(857);return r=function(){return t},t}function t(){var r;let n=(r=e(1671))&&r.__esModule?r:{default:r};return t=function(){return n},n}Object.defineProperty(n,"__esModule",{value:!0}),n.extract=function(r){let t=r.match(a);return t?t[0].trimLeft():""},n.parse=function(r){return g(r).pragmas},n.parseWithComments=g,n.print=function({comments:e="",pragmas:n={}}){let i=(0,t().default)(e)??r().EOL,l=Object.keys(n),a=l.flatMap(r=>m(r,n[r])).map(r=>` * ${r}${i}`).join("");if(!e){if(0===l.length)return"";if(1===l.length&&!Array.isArray(n[l[0]])){let r=n[l[0]];return`/** ${m(l[0],r)[0]} */`}}let u=e.split(i).map(r=>` * ${r}`).join(i)+i;return"/**"+i+(e?u:"")+(e&&l.length?" *"+i:"")+a+" */"},n.strip=function(r){let t=r.match(a);return t&&t[0]?r.substring(t[0].length):r};let i=/\*\/$/,l=/^\/\*\*?/,a=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,u=/(^|\s+)\/\/([^\r\n]*)/g,o=/^(\r?\n)+/,c=/(?:^|\r?\n) *(@[^\r\n]*?) *\r?\n *(?![^@\r\n]*\/\/[^]*)([^@\r\n\s][^@\r\n]+?) *\r?\n/g,p=/(?:^|\r?\n) *@(\S+) *([^\r\n]*)/g,f=/(\r?\n|^) *\* ?/g,s=[];function g(e){let n,a=(0,t().default)(e)??r().EOL;e=e.replace(l,"").replace(i,"").replace(f,"$1");let g="";for(;g!==e;)g=e,e=e.replace(c,`${a}$1 $2${a}`);e=e.replace(o,"").trimRight();let m=Object.create(null),h=e.replace(p,"").replace(o,"").trimRight();for(;n=p.exec(e);){let r=n[2].replace(u,"");"string"==typeof m[n[1]]||Array.isArray(m[n[1]])?m[n[1]]=s.concat(m[n[1]],r):m[n[1]]=r}return{comments:h,pragmas:m}}function m(r,t){return s.concat(t).map(t=>`@${r} ${t}`.trim())}})(),module.exports=n})(); \ No newline at end of file +(()=>{"use strict";var r={8448:function(r){let t=r=>{if("string"!=typeof r)throw TypeError("Expected a string");let t=r.match(/(?:\r?\n)/g)||[];if(0===t.length)return;let e=t.filter(r=>"\r\n"===r).length,n=t.length-e;return e>n?"\r\n":"\n"};r.exports=t,r.exports.graceful=r=>"string"==typeof r&&t(r)||"\n"},857:function(r){r.exports=require("os")}},t={};function e(n){var i=t[n];if(void 0!==i)return i.exports;var l=t[n]={exports:{}};return r[n](l,l.exports,e),l.exports}var n={};(()=>{function r(){let t=e(857);return r=function(){return t},t}function t(){var r;let n=(r=e(8448))&&r.__esModule?r:{default:r};return t=function(){return n},n}Object.defineProperty(n,"__esModule",{value:!0}),n.extract=function(r){let t=r.match(a);return t?t[0].trimLeft():""},n.parse=function(r){return g(r).pragmas},n.parseWithComments=g,n.print=function({comments:e="",pragmas:n={}}){let i=(0,t().default)(e)??r().EOL,l=Object.keys(n),a=l.flatMap(r=>m(r,n[r])).map(r=>` * ${r}${i}`).join("");if(!e){if(0===l.length)return"";if(1===l.length&&!Array.isArray(n[l[0]])){let r=n[l[0]];return`/** ${m(l[0],r)[0]} */`}}let u=e.split(i).map(r=>` * ${r}`).join(i)+i;return"/**"+i+(e?u:"")+(e&&l.length?" *"+i:"")+a+" */"},n.strip=function(r){let t=r.match(a);return t&&t[0]?r.substring(t[0].length):r};let i=/\*\/$/,l=/^\/\*\*?/,a=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,u=/(^|\s+)\/\/([^\r\n]*)/g,o=/^(\r?\n)+/,c=/(?:^|\r?\n) *(@[^\r\n]*?) *\r?\n *(?![^@\r\n]*\/\/[^]*)([^@\r\n\s][^@\r\n]+?) *\r?\n/g,p=/(?:^|\r?\n) *@(\S+) *([^\r\n]*)/g,f=/(\r?\n|^) *\* ?/g,s=[];function g(e){let n,a=(0,t().default)(e)??r().EOL;e=e.replace(l,"").replace(i,"").replace(f,"$1");let g="";for(;g!==e;)g=e,e=e.replace(c,`${a}$1 $2${a}`);e=e.replace(o,"").trimRight();let m=Object.create(null),h=e.replace(p,"").replace(o,"").trimRight();for(;n=p.exec(e);){let r=n[2].replace(u,"");"string"==typeof m[n[1]]||Array.isArray(m[n[1]])?m[n[1]]=s.concat(m[n[1]],r):m[n[1]]=r}return{comments:h,pragmas:m}}function m(r,t){return s.concat(t).map(t=>`@${r} ${t}`.trim())}})(),module.exports=n})(); \ No newline at end of file diff --git a/packages/node_modules/limiter/index.js b/packages/node_modules/limiter/index.js index ab737d458e4..f30b52cfa5b 100644 --- a/packages/node_modules/limiter/index.js +++ b/packages/node_modules/limiter/index.js @@ -1 +1 @@ -(()=>{var t={3085:function(t){t.exports=function(){if("undefined"!=typeof process&&process.hrtime){var t=process.hrtime();return 1e3*t[0]+Math.floor(t[1]/1e6)}return new Date().getTime()}},3065:function(t,e,n){var i=n(5472),r=n(3085),s=function(t,e,n){this.tokenBucket=new i(t,t,e,null),this.tokenBucket.content=t,this.curIntervalStart=r(),this.tokensThisInterval=0,this.fireImmediately=n};s.prototype={tokenBucket:null,curIntervalStart:0,tokensThisInterval:0,fireImmediately:!1,removeTokens:function(t,e){if(t>this.tokenBucket.bucketSize)return process.nextTick(e.bind(null,"Requested tokens "+t+" exceeds maximum tokens per interval "+this.tokenBucket.bucketSize,null)),!1;var n=this,i=r();if((i=this.tokenBucket.interval)&&(this.curIntervalStart=i,this.tokensThisInterval=0),t>this.tokenBucket.tokensPerInterval-this.tokensThisInterval)return this.fireImmediately?process.nextTick(e.bind(null,null,-1)):setTimeout(function(){n.tokenBucket.removeTokens(t,s)},Math.ceil(this.curIntervalStart+this.tokenBucket.interval-i)),!1;return this.tokenBucket.removeTokens(t,s);function s(i,r){if(i)return e(i,null);n.tokensThisInterval+=t,e(null,r)}},tryRemoveTokens:function(t){if(t>this.tokenBucket.bucketSize)return!1;var e=r();if((e=this.tokenBucket.interval)&&(this.curIntervalStart=e,this.tokensThisInterval=0),t>this.tokenBucket.tokensPerInterval-this.tokensThisInterval)return!1;var n=this.tokenBucket.tryRemoveTokens(t);return n&&(this.tokensThisInterval+=t),n},getTokensRemaining:function(){return this.tokenBucket.drip(),this.tokenBucket.content}},t.exports=s},5472:function(t){var e=function(t,e,n,i){if(this.bucketSize=t,this.tokensPerInterval=e,"string"==typeof n)switch(n){case"sec":case"second":this.interval=1e3;break;case"min":case"minute":this.interval=6e4;break;case"hr":case"hour":this.interval=36e5;break;case"day":this.interval=864e5;break;default:throw Error("Invaid interval "+n)}else this.interval=n;this.parentBucket=i,this.content=0,this.lastDrip=+new Date};e.prototype={bucketSize:1,tokensPerInterval:1,interval:1e3,parentBucket:null,content:0,lastDrip:0,removeTokens:function(t,e){var n=this;if(!this.bucketSize)return process.nextTick(e.bind(null,null,t,1/0)),!0;if(t>this.bucketSize)return process.nextTick(e.bind(null,"Requested tokens "+t+" exceeds bucket size "+this.bucketSize,null)),!1;if(this.drip(),t>this.content)return i();if(this.parentBucket)return this.parentBucket.removeTokens(t,function(r,s){return r?e(r,null):t>n.content?i():void(n.content-=t,e(null,Math.min(s,n.content)))});return this.content-=t,process.nextTick(e.bind(null,null,this.content)),!0;function i(){return setTimeout(function(){n.removeTokens(t,e)},Math.ceil((t-n.content)*(n.interval/n.tokensPerInterval))),!1}},tryRemoveTokens:function(t){return!this.bucketSize||!(t>this.bucketSize)&&(this.drip(),!(t>this.content)&&(!this.parentBucket||!!this.parentBucket.tryRemoveTokens(t))&&(this.content-=t,!0))},drip:function(){if(!this.tokensPerInterval){this.content=this.bucketSize;return}var t=+new Date,e=Math.max(t-this.lastDrip,0);this.lastDrip=t;var n=e*(this.tokensPerInterval/this.interval);this.content=Math.min(this.content+n,this.bucketSize)}},t.exports=e}},e={};function n(i){var r=e[i];if(void 0!==r)return r.exports;var s=e[i]={exports:{}};return t[i](s,s.exports,n),s.exports}var i={};i.RateLimiter=n(3065),i.TokenBucket=n(5472),module.exports=i})(); \ No newline at end of file +(()=>{var t={5632:function(t){t.exports=function(){if("undefined"!=typeof process&&process.hrtime){var t=process.hrtime();return 1e3*t[0]+Math.floor(t[1]/1e6)}return new Date().getTime()}},2744:function(t,e,n){var i=n(773),r=n(5632),s=function(t,e,n){this.tokenBucket=new i(t,t,e,null),this.tokenBucket.content=t,this.curIntervalStart=r(),this.tokensThisInterval=0,this.fireImmediately=n};s.prototype={tokenBucket:null,curIntervalStart:0,tokensThisInterval:0,fireImmediately:!1,removeTokens:function(t,e){if(t>this.tokenBucket.bucketSize)return process.nextTick(e.bind(null,"Requested tokens "+t+" exceeds maximum tokens per interval "+this.tokenBucket.bucketSize,null)),!1;var n=this,i=r();if((i=this.tokenBucket.interval)&&(this.curIntervalStart=i,this.tokensThisInterval=0),t>this.tokenBucket.tokensPerInterval-this.tokensThisInterval)return this.fireImmediately?process.nextTick(e.bind(null,null,-1)):setTimeout(function(){n.tokenBucket.removeTokens(t,s)},Math.ceil(this.curIntervalStart+this.tokenBucket.interval-i)),!1;return this.tokenBucket.removeTokens(t,s);function s(i,r){if(i)return e(i,null);n.tokensThisInterval+=t,e(null,r)}},tryRemoveTokens:function(t){if(t>this.tokenBucket.bucketSize)return!1;var e=r();if((e=this.tokenBucket.interval)&&(this.curIntervalStart=e,this.tokensThisInterval=0),t>this.tokenBucket.tokensPerInterval-this.tokensThisInterval)return!1;var n=this.tokenBucket.tryRemoveTokens(t);return n&&(this.tokensThisInterval+=t),n},getTokensRemaining:function(){return this.tokenBucket.drip(),this.tokenBucket.content}},t.exports=s},773:function(t){var e=function(t,e,n,i){if(this.bucketSize=t,this.tokensPerInterval=e,"string"==typeof n)switch(n){case"sec":case"second":this.interval=1e3;break;case"min":case"minute":this.interval=6e4;break;case"hr":case"hour":this.interval=36e5;break;case"day":this.interval=864e5;break;default:throw Error("Invaid interval "+n)}else this.interval=n;this.parentBucket=i,this.content=0,this.lastDrip=+new Date};e.prototype={bucketSize:1,tokensPerInterval:1,interval:1e3,parentBucket:null,content:0,lastDrip:0,removeTokens:function(t,e){var n=this;if(!this.bucketSize)return process.nextTick(e.bind(null,null,t,1/0)),!0;if(t>this.bucketSize)return process.nextTick(e.bind(null,"Requested tokens "+t+" exceeds bucket size "+this.bucketSize,null)),!1;if(this.drip(),t>this.content)return i();if(this.parentBucket)return this.parentBucket.removeTokens(t,function(r,s){return r?e(r,null):t>n.content?i():void(n.content-=t,e(null,Math.min(s,n.content)))});return this.content-=t,process.nextTick(e.bind(null,null,this.content)),!0;function i(){return setTimeout(function(){n.removeTokens(t,e)},Math.ceil((t-n.content)*(n.interval/n.tokensPerInterval))),!1}},tryRemoveTokens:function(t){return!this.bucketSize||!(t>this.bucketSize)&&(this.drip(),!(t>this.content)&&(!this.parentBucket||!!this.parentBucket.tryRemoveTokens(t))&&(this.content-=t,!0))},drip:function(){if(!this.tokensPerInterval){this.content=this.bucketSize;return}var t=+new Date,e=Math.max(t-this.lastDrip,0);this.lastDrip=t;var n=e*(this.tokensPerInterval/this.interval);this.content=Math.min(this.content+n,this.bucketSize)}},t.exports=e}},e={};function n(i){var r=e[i];if(void 0!==r)return r.exports;var s=e[i]={exports:{}};return t[i](s,s.exports,n),s.exports}var i={};i.RateLimiter=n(2744),i.TokenBucket=n(773),module.exports=i})(); \ No newline at end of file diff --git a/packages/node_modules/lodash.sortby/index.js b/packages/node_modules/lodash.sortby/index.js index 278f9d8cf50..1ad023185f5 100644 --- a/packages/node_modules/lodash.sortby/index.js +++ b/packages/node_modules/lodash.sortby/index.js @@ -1 +1 @@ -(()=>{var t={8479:function(t,r,n){t=n.nmd(t);var e,o,a,u,i,c,f="__lodash_hash_undefined__",l=1/0,s="[object Arguments]",v="[object Array]",h="[object Boolean]",p="[object Date]",_="[object Error]",d="[object Function]",y="[object Map]",b="[object Number]",g="[object Object]",j="[object Promise]",w="[object RegExp]",m="[object Set]",A="[object String]",O="[object Symbol]",x="[object WeakMap]",k="[object ArrayBuffer]",S="[object DataView]",$=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,E=/^\w*$/,F=/^\./,C=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,I=/\\(\\)?/g,M=/^\[object .+?Constructor\]$/,P=/^(?:0|[1-9]\d*)$/,T={};T["[object Float32Array]"]=T["[object Float64Array]"]=T["[object Int8Array]"]=T["[object Int16Array]"]=T["[object Int32Array]"]=T["[object Uint8Array]"]=T["[object Uint8ClampedArray]"]=T["[object Uint16Array]"]=T["[object Uint32Array]"]=!0,T[s]=T[v]=T[k]=T[h]=T[S]=T[p]=T[_]=T[d]=T[y]=T[b]=T[g]=T[w]=T[m]=T[A]=T[x]=!1;var U="object"==typeof global&&global&&global.Object===Object&&global,z="object"==typeof self&&self&&self.Object===Object&&self,L=U||z||Function("return this")(),B=r&&!r.nodeType&&r,D=B&&t&&!t.nodeType&&t,R=D&&D.exports===B&&U.process,V=function(){try{return R&&R.binding("util")}catch(t){}}(),W=V&&V.isTypedArray;function G(t,r){for(var n=-1,e=t?t.length:0,o=Array(e);++n-1},tk.prototype.set=function(t,r){var n=this.__data__,e=tF(n,t);return e<0?n.push([t,r]):n[e][1]=r,this},tS.prototype.clear=function(){this.__data__={hash:new tx,map:new(tv||tk),string:new tx}},tS.prototype.delete=function(t){return tL(this,t).delete(t)},tS.prototype.get=function(t){return tL(this,t).get(t)},tS.prototype.has=function(t){return tL(this,t).has(t)},tS.prototype.set=function(t,r){return tL(this,t).set(t,r),this},t$.prototype.add=t$.prototype.push=function(t){return this.__data__.set(t,f),this},t$.prototype.has=function(t){return this.__data__.has(t)},tE.prototype.clear=function(){this.__data__=new tk},tE.prototype.delete=function(t){return this.__data__.delete(t)},tE.prototype.get=function(t){return this.__data__.get(t)},tE.prototype.has=function(t){return this.__data__.has(t)},tE.prototype.set=function(t,r){var n=this.__data__;if(n instanceof tk){var e=n.__data__;if(!tv||e.length<199)return e.push([t,r]),this;n=this.__data__=new tS(e)}return n.set(t,r),this};var tC=(e=function(t,r){return t&&tI(t,r,t6)},function(t,r){if(null==t)return t;if(!t1(t))return e(t,r);for(var n=t.length,o=-1,a=Object(t);++oi))return!1;var f=a.get(t);if(f&&a.get(r))return f==r;var l=-1,s=!0,v=1&o?new t$:void 0;for(a.set(t,r),a.set(r,t);++l-1&&t%1==0&&t1&&tW(t,r[0],r[1])?r=[]:n>2&&tW(r[0],r[1],r[2])&&(r=[r[0]]),function(t,r,n){var e,o,a,u=-1;r=G(r.length?r:[t7],N(tU));var i=(e=function(t,n,e){return{criteria:G(r,function(r){return r(t)}),index:++u,value:t}},o=-1,a=t1(t)?Array(t.length):[],tC(t,function(t,r,n){a[++o]=e(t,r,n)}),a),c=i.length;for(i.sort(function(t,r){return function(t,r,n){for(var e=-1,o=t.criteria,a=r.criteria,u=o.length,i=n.length;++er||a&&u&&c&&!i&&!f||e&&u&&c||!n&&c||!o)return 1;if(!e&&!a&&!f&&t=i)return c;return c*("desc"==n[e]?-1:1)}}return t.index-r.index}(t,r,n)});c--;)i[c]=i[c].value;return i}(t,function t(r,n,e,o,a){var u=-1,i=r.length;for(e||(e=tR),a||(a=[]);++u0&&e(c)?n>1?t(c,n-1,e,o,a):function(t,r){for(var n=-1,e=r.length,o=t.length;++n-1&&t%1==0&&t<=0x1fffffffffffff}function t3(t){var r=typeof t;return!!t&&("object"==r||"function"==r)}function t8(t){return!!t&&"object"==typeof t}function t9(t){return"symbol"==typeof t||t8(t)&&tn.call(t)==O}var t4=W?N(W):function(t){return t8(t)&&t2(t.length)&&!!T[tn.call(t)]};function t6(t){return t1(t)?function(t,r){var n=tZ(t)||tY(t)?function(t,r){for(var n=-1,e=Array(t);++n(t.paths=[],t.children||(t.children=[]),t);var e=n(8479);module.exports=e})(); \ No newline at end of file +(()=>{var t={6986:function(t,r,n){t=n.nmd(t);var e,o,a,u,i,c,f="__lodash_hash_undefined__",l=1/0,s="[object Arguments]",v="[object Array]",h="[object Boolean]",p="[object Date]",_="[object Error]",d="[object Function]",y="[object Map]",b="[object Number]",g="[object Object]",j="[object Promise]",w="[object RegExp]",m="[object Set]",A="[object String]",O="[object Symbol]",x="[object WeakMap]",k="[object ArrayBuffer]",S="[object DataView]",$=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,E=/^\w*$/,F=/^\./,C=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,I=/\\(\\)?/g,M=/^\[object .+?Constructor\]$/,P=/^(?:0|[1-9]\d*)$/,T={};T["[object Float32Array]"]=T["[object Float64Array]"]=T["[object Int8Array]"]=T["[object Int16Array]"]=T["[object Int32Array]"]=T["[object Uint8Array]"]=T["[object Uint8ClampedArray]"]=T["[object Uint16Array]"]=T["[object Uint32Array]"]=!0,T[s]=T[v]=T[k]=T[h]=T[S]=T[p]=T[_]=T[d]=T[y]=T[b]=T[g]=T[w]=T[m]=T[A]=T[x]=!1;var U="object"==typeof global&&global&&global.Object===Object&&global,z="object"==typeof self&&self&&self.Object===Object&&self,L=U||z||Function("return this")(),B=r&&!r.nodeType&&r,D=B&&t&&!t.nodeType&&t,R=D&&D.exports===B&&U.process,V=function(){try{return R&&R.binding("util")}catch(t){}}(),W=V&&V.isTypedArray;function G(t,r){for(var n=-1,e=t?t.length:0,o=Array(e);++n-1},tk.prototype.set=function(t,r){var n=this.__data__,e=tF(n,t);return e<0?n.push([t,r]):n[e][1]=r,this},tS.prototype.clear=function(){this.__data__={hash:new tx,map:new(tv||tk),string:new tx}},tS.prototype.delete=function(t){return tL(this,t).delete(t)},tS.prototype.get=function(t){return tL(this,t).get(t)},tS.prototype.has=function(t){return tL(this,t).has(t)},tS.prototype.set=function(t,r){return tL(this,t).set(t,r),this},t$.prototype.add=t$.prototype.push=function(t){return this.__data__.set(t,f),this},t$.prototype.has=function(t){return this.__data__.has(t)},tE.prototype.clear=function(){this.__data__=new tk},tE.prototype.delete=function(t){return this.__data__.delete(t)},tE.prototype.get=function(t){return this.__data__.get(t)},tE.prototype.has=function(t){return this.__data__.has(t)},tE.prototype.set=function(t,r){var n=this.__data__;if(n instanceof tk){var e=n.__data__;if(!tv||e.length<199)return e.push([t,r]),this;n=this.__data__=new tS(e)}return n.set(t,r),this};var tC=(e=function(t,r){return t&&tI(t,r,t4)},function(t,r){if(null==t)return t;if(!t1(t))return e(t,r);for(var n=t.length,o=-1,a=Object(t);++oi))return!1;var f=a.get(t);if(f&&a.get(r))return f==r;var l=-1,s=!0,v=1&o?new t$:void 0;for(a.set(t,r),a.set(r,t);++l-1&&t%1==0&&t1&&tW(t,r[0],r[1])?r=[]:n>2&&tW(r[0],r[1],r[2])&&(r=[r[0]]),function(t,r,n){var e,o,a,u=-1;r=G(r.length?r:[t5],N(tU));var i=(e=function(t,n,e){return{criteria:G(r,function(r){return r(t)}),index:++u,value:t}},o=-1,a=t1(t)?Array(t.length):[],tC(t,function(t,r,n){a[++o]=e(t,r,n)}),a),c=i.length;for(i.sort(function(t,r){return function(t,r,n){for(var e=-1,o=t.criteria,a=r.criteria,u=o.length,i=n.length;++er||a&&u&&c&&!i&&!f||e&&u&&c||!n&&c||!o)return 1;if(!e&&!a&&!f&&t=i)return c;return c*("desc"==n[e]?-1:1)}}return t.index-r.index}(t,r,n)});c--;)i[c]=i[c].value;return i}(t,function t(r,n,e,o,a){var u=-1,i=r.length;for(e||(e=tR),a||(a=[]);++u0&&e(c)?n>1?t(c,n-1,e,o,a):function(t,r){for(var n=-1,e=r.length,o=t.length;++n-1&&t%1==0&&t<=0x1fffffffffffff}function t6(t){var r=typeof t;return!!t&&("object"==r||"function"==r)}function t3(t){return!!t&&"object"==typeof t}function t8(t){return"symbol"==typeof t||t3(t)&&tn.call(t)==O}var t9=W?N(W):function(t){return t3(t)&&t2(t.length)&&!!T[tn.call(t)]};function t4(t){return t1(t)?function(t,r){var n=tZ(t)||tY(t)?function(t,r){for(var n=-1,e=Array(t);++n(t.paths=[],t.children||(t.children=[]),t);var e=n(6986);module.exports=e})(); \ No newline at end of file diff --git a/packages/node_modules/module-details-from-path/index.js b/packages/node_modules/module-details-from-path/index.js index b7bc0deac7a..824ee1b1607 100644 --- a/packages/node_modules/module-details-from-path/index.js +++ b/packages/node_modules/module-details-from-path/index.js @@ -1 +1 @@ -(()=>{"use strict";var r={5335:function(r,e,t){var o=t(6928).sep;r.exports=function(r){var e=r.split(o),t=e.lastIndexOf("node_modules");if(-1!==t&&e[t+1]){for(var n="@"===e[t+1][0],s=n?e[t+1]+"/"+e[t+2]:e[t+1],a=n?3:2,i="",p=t+a-1,u=0;u<=p;u++)u===p?i+=e[u]:i+=e[u]+o;for(var f="",v=e.length-1,x=t+a;x<=v;x++)x===v?f+=e[x]:f+=e[x]+o;return{name:s,basedir:i,path:f}}}},6928:function(r){r.exports=require("path")}},e={},t=function t(o){var n=e[o];if(void 0!==n)return n.exports;var s=e[o]={exports:{}};return r[o](s,s.exports,t),s.exports}(5335);module.exports=t})(); \ No newline at end of file +(()=>{"use strict";var r={3592:function(r,e,t){var o=t(6928).sep;r.exports=function(r){var e=r.split(o),t=e.lastIndexOf("node_modules");if(-1!==t&&e[t+1]){for(var n="@"===e[t+1][0],s=n?e[t+1]+"/"+e[t+2]:e[t+1],a=n?3:2,i="",p=t+a-1,u=0;u<=p;u++)u===p?i+=e[u]:i+=e[u]+o;for(var f="",v=e.length-1,x=t+a;x<=v;x++)x===v?f+=e[x]:f+=e[x]+o;return{name:s,basedir:i,path:f}}}},6928:function(r){r.exports=require("path")}},e={},t=function t(o){var n=e[o];if(void 0!==n)return n.exports;var s=e[o]={exports:{}};return r[o](s,s.exports,t),s.exports}(3592);module.exports=t})(); \ No newline at end of file diff --git a/packages/node_modules/mutexify/index.js b/packages/node_modules/mutexify/index.js index 4a5e4ca5aa4..40c356b2972 100644 --- a/packages/node_modules/mutexify/index.js +++ b/packages/node_modules/mutexify/index.js @@ -1 +1 @@ -(()=>{var e={7826:function(e,o,n){var t=n(4111);e.exports=function(){var e=[],o=null,n=function(){o(u)},r=function(u){return o?e.push(u):(o=u,r.locked=!0,t(n),0)};r.locked=!1;var u=function(n,t,u){o=null,r.locked=!1,e.length&&r(e.shift()),n&&n(t,u)};return r}},4111:function(e,o,n){e.exports="undefined"!=typeof process&&"function"==typeof process.nextTick?process.nextTick.bind(process):n(2133)},2133:function(e){e.exports="function"==typeof queueMicrotask?queueMicrotask:e=>Promise.resolve().then(e)}},o={},n=function n(t){var r=o[t];if(void 0!==r)return r.exports;var u=o[t]={exports:{}};return e[t](u,u.exports,n),u.exports}(7826);module.exports=n})(); \ No newline at end of file +(()=>{var e={7861:function(e,o,n){var t=n(5076);e.exports=function(){var e=[],o=null,n=function(){o(u)},r=function(u){return o?e.push(u):(o=u,r.locked=!0,t(n),0)};r.locked=!1;var u=function(n,t,u){o=null,r.locked=!1,e.length&&r(e.shift()),n&&n(t,u)};return r}},5076:function(e,o,n){e.exports="undefined"!=typeof process&&"function"==typeof process.nextTick?process.nextTick.bind(process):n(7386)},7386:function(e){e.exports="function"==typeof queueMicrotask?queueMicrotask:e=>Promise.resolve().then(e)}},o={},n=function n(t){var r=o[t];if(void 0!==r)return r.exports;var u=o[t]={exports:{}};return e[t](u,u.exports,n),u.exports}(7861);module.exports=n})(); \ No newline at end of file diff --git a/packages/node_modules/mutexify/promise/index.js b/packages/node_modules/mutexify/promise/index.js new file mode 100644 index 00000000000..6db02da2168 --- /dev/null +++ b/packages/node_modules/mutexify/promise/index.js @@ -0,0 +1 @@ +(()=>{var e={7861:function(e,n,o){var r=o(5076);e.exports=function(){var e=[],n=null,o=function(){n(u)},t=function(u){return n?e.push(u):(n=u,t.locked=!0,r(o),0)};t.locked=!1;var u=function(o,r,u){n=null,t.locked=!1,e.length&&t(e.shift()),o&&o(r,u)};return t}},4492:function(e,n,o){var r=o(7861);e.exports=function(){var e=r(),n=function(){return new Promise(e)};return Object.defineProperty(n,"locked",{get:function(){return e.locked},enumerable:!0}),n}},5076:function(e,n,o){e.exports="undefined"!=typeof process&&"function"==typeof process.nextTick?process.nextTick.bind(process):o(7386)},7386:function(e){e.exports="function"==typeof queueMicrotask?queueMicrotask:e=>Promise.resolve().then(e)}},n={},o=function o(r){var t=n[r];if(void 0!==t)return t.exports;var u=n[r]={exports:{}};return e[r](u,u.exports,o),u.exports}(4492);module.exports=o})(); \ No newline at end of file diff --git a/packages/node_modules/opentracing/index.js b/packages/node_modules/opentracing/index.js index 9d4da4c9aff..7a0ed8f26ea 100644 --- a/packages/node_modules/opentracing/index.js +++ b/packages/node_modules/opentracing/index.js @@ -1 +1 @@ -(()=>{"use strict";var t={1459:function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){this.buffer=t}},6140:function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.FORMAT_BINARY="binary",e.FORMAT_TEXT_MAP="text_map",e.FORMAT_HTTP_HEADERS="http_headers",e.REFERENCE_CHILD_OF="child_of",e.REFERENCE_FOLLOWS_FROM="follows_from"},4020:function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.SPAN_KIND="span.kind",e.SPAN_KIND_RPC_CLIENT="client",e.SPAN_KIND_RPC_SERVER="server",e.SPAN_KIND_MESSAGING_PRODUCER="producer",e.SPAN_KIND_MESSAGING_CONSUMER="consumer",e.ERROR="error",e.COMPONENT="component",e.SAMPLING_PRIORITY="sampling.priority",e.PEER_SERVICE="peer.service",e.PEER_HOSTNAME="peer.hostname",e.PEER_ADDRESS="peer.address",e.PEER_HOST_IPV4="peer.ipv4",e.PEER_HOST_IPV6="peer.ipv6",e.PEER_PORT="peer.port",e.HTTP_URL="http.url",e.HTTP_METHOD="http.method",e.HTTP_STATUS_CODE="http.status_code",e.MESSAGE_BUS_DESTINATION="message_bus.destination",e.DB_INSTANCE="db.instance",e.DB_STATEMENT="db.statement",e.DB_TYPE="db.type",e.DB_USER="db.user"},8704:function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=n(6140),o=n(6296),i=n(5942);e.childOf=function(t){return t instanceof i.default&&(t=t.context()),new o.default(r.REFERENCE_CHILD_OF,t)},e.followsFrom=function(t){return t instanceof i.default&&(t=t.context()),new o.default(r.REFERENCE_FOLLOWS_FROM,t)}},1572:function(t,e,n){var r,o=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var i=n(2472),a=new i.default,u=null,s=new(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.startSpan=function(){var t=u||a;return t.startSpan.apply(t,arguments)},e.prototype.inject=function(){var t=u||a;return t.inject.apply(t,arguments)},e.prototype.extract=function(){var t=u||a;return t.extract.apply(t,arguments)},e}(i.default));e.initGlobalTracer=function(t){u=t},e.globalTracer=function(){return s}},5365:function(t,e,n){function r(t){for(var n in t)e.hasOwnProperty(n)||(e[n]=t[n])}Object.defineProperty(e,"__esModule",{value:!0}),e.BinaryCarrier=n(1459).default,e.Tags=n(4020);var o=n(5645);e.Reference=n(6296).default,e.Span=n(5942).default,e.SpanContext=n(8685).default,e.Tracer=n(2472).Tracer,e.MockTracer=n(388).MockTracer,r(n(1572)),r(n(6140)),r(n(8704)),o.initialize()},388:function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.MockContext=n(7168).default,e.MockSpan=n(5071).default,e.MockTracer=n(3554).default},7168:function(t,e,n){var r,o=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var i=function(t){function e(e){var n=t.call(this)||this;return n._span=e,n}return o(e,t),e.prototype.span=function(){return this._span},e}(n(8685).SpanContext);e.MockContext=i,e.default=i},9485:function(t,e){Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t){var e=this;this.spans=t,this.spansByUUID={},this.spansByTag={},this.debugSpans=[],this.unfinishedSpans=[],t.forEach(function(t){0===t._finishMs&&e.unfinishedSpans.push(t),e.spansByUUID[t.uuid()]=t,e.debugSpans.push(t.debug());var n=t.tags();Object.keys(n).forEach(function(r){var o=n[r];e.spansByTag[r]=e.spansByTag[r]||{},e.spansByTag[r][o]=e.spansByTag[r][o]||[],e.spansByTag[r][o].push(t)})})}return t.prototype.firstSpanWithTagValue=function(t,e){var n=this.spansByTag[t];if(!n)return null;var r=n[e];return r?r[0]:null},t}();e.MockReport=n,e.default=n},5071:function(t,e,n){var r,o=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var i=n(5365),a=n(7168),u=function(t){function e(e){var n=t.call(this)||this;return n._mockTracer=e,n._uuid=n._generateUUID(),n._startMs=Date.now(),n._finishMs=0,n._operationName="",n._tags={},n._logs=[],n}return o(e,t),e.prototype._context=function(){return new a.default(this)},e.prototype._setOperationName=function(t){this._operationName=t},e.prototype._addTags=function(t){for(var e=Object.keys(t),n=0;n{"use strict";var t={9728:function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){this.buffer=t}},3325:function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.FORMAT_BINARY="binary",e.FORMAT_TEXT_MAP="text_map",e.FORMAT_HTTP_HEADERS="http_headers",e.REFERENCE_CHILD_OF="child_of",e.REFERENCE_FOLLOWS_FROM="follows_from"},595:function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.SPAN_KIND="span.kind",e.SPAN_KIND_RPC_CLIENT="client",e.SPAN_KIND_RPC_SERVER="server",e.SPAN_KIND_MESSAGING_PRODUCER="producer",e.SPAN_KIND_MESSAGING_CONSUMER="consumer",e.ERROR="error",e.COMPONENT="component",e.SAMPLING_PRIORITY="sampling.priority",e.PEER_SERVICE="peer.service",e.PEER_HOSTNAME="peer.hostname",e.PEER_ADDRESS="peer.address",e.PEER_HOST_IPV4="peer.ipv4",e.PEER_HOST_IPV6="peer.ipv6",e.PEER_PORT="peer.port",e.HTTP_URL="http.url",e.HTTP_METHOD="http.method",e.HTTP_STATUS_CODE="http.status_code",e.MESSAGE_BUS_DESTINATION="message_bus.destination",e.DB_INSTANCE="db.instance",e.DB_STATEMENT="db.statement",e.DB_TYPE="db.type",e.DB_USER="db.user"},7465:function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=n(3325),o=n(8653),i=n(5386);e.childOf=function(t){return t instanceof i.default&&(t=t.context()),new o.default(r.REFERENCE_CHILD_OF,t)},e.followsFrom=function(t){return t instanceof i.default&&(t=t.context()),new o.default(r.REFERENCE_FOLLOWS_FROM,t)}},3537:function(t,e,n){var r,o=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var i=n(9507),a=new i.default,u=null,s=new(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.startSpan=function(){var t=u||a;return t.startSpan.apply(t,arguments)},e.prototype.inject=function(){var t=u||a;return t.inject.apply(t,arguments)},e.prototype.extract=function(){var t=u||a;return t.extract.apply(t,arguments)},e}(i.default));e.initGlobalTracer=function(t){u=t},e.globalTracer=function(){return s}},7816:function(t,e,n){function r(t){for(var n in t)e.hasOwnProperty(n)||(e[n]=t[n])}Object.defineProperty(e,"__esModule",{value:!0}),e.BinaryCarrier=n(9728).default,e.Tags=n(595);var o=n(4526);e.Reference=n(8653).default,e.Span=n(5386).default,e.SpanContext=n(2742).default,e.Tracer=n(9507).Tracer,e.MockTracer=n(6741).MockTracer,r(n(3537)),r(n(3325)),r(n(7465)),o.initialize()},6741:function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.MockContext=n(1091).default,e.MockSpan=n(4018).default,e.MockTracer=n(8683).default},1091:function(t,e,n){var r,o=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var i=function(t){function e(e){var n=t.call(this)||this;return n._span=e,n}return o(e,t),e.prototype.span=function(){return this._span},e}(n(2742).SpanContext);e.MockContext=i,e.default=i},4536:function(t,e){Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t){var e=this;this.spans=t,this.spansByUUID={},this.spansByTag={},this.debugSpans=[],this.unfinishedSpans=[],t.forEach(function(t){0===t._finishMs&&e.unfinishedSpans.push(t),e.spansByUUID[t.uuid()]=t,e.debugSpans.push(t.debug());var n=t.tags();Object.keys(n).forEach(function(r){var o=n[r];e.spansByTag[r]=e.spansByTag[r]||{},e.spansByTag[r][o]=e.spansByTag[r][o]||[],e.spansByTag[r][o].push(t)})})}return t.prototype.firstSpanWithTagValue=function(t,e){var n=this.spansByTag[t];if(!n)return null;var r=n[e];return r?r[0]:null},t}();e.MockReport=n,e.default=n},4018:function(t,e,n){var r,o=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var i=n(7816),a=n(1091),u=function(t){function e(e){var n=t.call(this)||this;return n._mockTracer=e,n._uuid=n._generateUUID(),n._startMs=Date.now(),n._finishMs=0,n._operationName="",n._tags={},n._logs=[],n}return o(e,t),e.prototype._context=function(){return new a.default(this)},e.prototype._setOperationName=function(t){this._operationName=t},e.prototype._addTags=function(t){for(var e=Object.keys(t),n=0;n{var e={5302:function(e){e.exports=function e(n,t,o){t=t||[];var i,s=(o=o||{}).strict,f=!1!==o.end,a=o.sensitive?"":"i",u=!1!==o.lookahead,p=0,l=t.length,c=0,g=0,x=0,h="";if(n instanceof RegExp){for(;i=r.exec(n.source);)"\\"!==i[0][0]&&t.push({name:i[1]||g++,optional:!1,offset:i.index});return n}if(Array.isArray(n))return new RegExp((n=n.map(function(r){return e(r,t,o).source})).join("|"),a);if("string"!=typeof n)throw TypeError("path must be a string, array of strings, or regular expression");for(n=n.replace(/\\.|(\/)?(\.)?:(\w+)(\(.*?\))?(\*)?(\?)?|[.*]|\/\(/g,function(e,r,o,i,s,f,a,u){if("\\"===e[0])return h+=e,x+=2,e;if("."===e)return h+="\\.",p+=1,x+=1,"\\.";if(r||o?h="":h+=n.slice(x,u),x=u+e.length,"*"===e)return p+=3,"(.*)";if("/("===e)return h+="/",p+=2,"/(?:";r=r||"",o=o?"\\.":"",a=a||"",s=s?s.replace(/\\.|\*/,function(e){return"*"===e?"(.*)":e}):h?"((?:(?!/|"+h+").)+?)":"([^/"+o+"]+?)",t.push({name:i,optional:!!a,offset:u+p});var l="(?:"+o+r+s+(f?"((?:[/"+o+"].+?)?)":"")+")"+a;return p+=l.length-e.length,l});i=r.exec(n);)"\\"!==i[0][0]&&((l+c===t.length||t[l+c].offset>i.index)&&t.splice(l+c,0,{name:g++,optional:!1,offset:i.index}),c++);return n+=s?"":"/"===n[n.length-1]?"?":"/?",f?n+="$":"/"!==n[n.length-1]&&(n+=u?"(?=/|$)":"(?:/|$)"),RegExp("^"+n,a)};var r=/\\.|\((?:\?<(.*?)>)?(?!\?)/g}},r={},n=function n(t){var o=r[t];if(void 0!==o)return o.exports;var i=r[t]={exports:{}};return e[t](i,i.exports,n),i.exports}(5302);module.exports=n})(); \ No newline at end of file +(()=>{var e={881:function(e){e.exports=function e(n,t,o){t=t||[];var i,s=(o=o||{}).strict,f=!1!==o.end,a=o.sensitive?"":"i",u=!1!==o.lookahead,p=0,l=t.length,c=0,g=0,x=0,h="";if(n instanceof RegExp){for(;i=r.exec(n.source);)"\\"!==i[0][0]&&t.push({name:i[1]||g++,optional:!1,offset:i.index});return n}if(Array.isArray(n))return new RegExp((n=n.map(function(r){return e(r,t,o).source})).join("|"),a);if("string"!=typeof n)throw TypeError("path must be a string, array of strings, or regular expression");for(n=n.replace(/\\.|(\/)?(\.)?:(\w+)(\(.*?\))?(\*)?(\?)?|[.*]|\/\(/g,function(e,r,o,i,s,f,a,u){if("\\"===e[0])return h+=e,x+=2,e;if("."===e)return h+="\\.",p+=1,x+=1,"\\.";if(r||o?h="":h+=n.slice(x,u),x=u+e.length,"*"===e)return p+=3,"(.*)";if("/("===e)return h+="/",p+=2,"/(?:";r=r||"",o=o?"\\.":"",a=a||"",s=s?s.replace(/\\.|\*/,function(e){return"*"===e?"(.*)":e}):h?"((?:(?!/|"+h+").)+?)":"([^/"+o+"]+?)",t.push({name:i,optional:!!a,offset:u+p});var l="(?:"+o+r+s+(f?"((?:[/"+o+"].+?)?)":"")+")"+a;return p+=l.length-e.length,l});i=r.exec(n);)"\\"!==i[0][0]&&((l+c===t.length||t[l+c].offset>i.index)&&t.splice(l+c,0,{name:g++,optional:!1,offset:i.index}),c++);return n+=s?"":"/"===n[n.length-1]?"?":"/?",f?n+="$":"/"!==n[n.length-1]&&(n+=u?"(?=/|$)":"(?:/|$)"),RegExp("^"+n,a)};var r=/\\.|\((?:\?<(.*?)>)?(?!\?)/g}},r={},n=function n(t){var o=r[t];if(void 0!==o)return o.exports;var i=r[t]={exports:{}};return e[t](i,i.exports,n),i.exports}(881);module.exports=n})(); \ No newline at end of file diff --git a/packages/node_modules/protobufjs/index.js b/packages/node_modules/protobufjs/index.js index 8be069d201d..6513a7298f6 100644 --- a/packages/node_modules/protobufjs/index.js +++ b/packages/node_modules/protobufjs/index.js @@ -1 +1 @@ -(()=>{"use strict";var __webpack_modules__={8045:function(e){e.exports=t;function t(e,t){for(var r=Array(arguments.length-1),i=0,n=2,o=!0;n1&&"="===e.charAt(t);)++r;return Math.ceil(3*e.length)/4-r};for(var i=Array(64),n=Array(123),o=0;o<64;)n[i[o]=o<26?o+65:o<52?o+71:o<62?o-4:o-59|43]=o++;r.encode=function(e,t,r){for(var n,o=null,s=[],a=0,u=0;t>2],n=(3&f)<<4,u=1;break;case 1:s[a++]=i[n|f>>4],n=(15&f)<<2,u=2;break;case 2:s[a++]=i[n|f>>6],s[a++]=i[63&f],u=0}a>8191&&((o||(o=[])).push(String.fromCharCode.apply(String,s)),a=0)}return(u&&(s[a++]=i[n],s[a++]=61,1===u&&(s[a++]=61)),o)?(a&&o.push(String.fromCharCode.apply(String,s.slice(0,a))),o.join("")):String.fromCharCode.apply(String,s.slice(0,a))};var s="invalid encoding";r.decode=function(e,t,r){for(var i,o=r,a=0,u=0;u1)break;if(void 0===(f=n[f]))throw Error(s);switch(a){case 0:i=f,a=1;break;case 1:t[r++]=i<<2|(48&f)>>4,i=f,a=2;break;case 2:t[r++]=(15&i)<<4|(60&f)>>2,i=f,a=3;break;case 3:t[r++]=(3&i)<<6|f,a=0}}if(1===a)throw Error(s);return r-o},r.test=function(e){return/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(e)}},8561:function(e){function t(e,r){"string"==typeof e&&(r=e,e=void 0);var i=[];function n(e){if("string"!=typeof e){var r=o();if(t.verbose&&console.log("codegen: "+r),r="return "+r,e){for(var s=Object.keys(e),a=Array(s.length+1),u=Array(s.length),f=0;f0?0:0x80000000,r,i);else if(isNaN(t))e(0x7fc00000,r,i);else if(t>34028234663852886e22)e((n<<31|0x7f800000)>>>0,r,i);else if(t<11754943508222875e-54)e((n<<31|Math.round(t/1401298464324817e-60))>>>0,r,i);else{var o=Math.floor(Math.log(t)/Math.LN2),s=8388607&Math.round(t*Math.pow(2,-o)*8388608);e((n<<31|o+127<<23|s)>>>0,r,i)}}function s(e,t,r){var i=e(t,r),n=(i>>31)*2+1,o=i>>>23&255,s=8388607&i;return 255===o?s?NaN:1/0*n:0===o?1401298464324817e-60*n*s:n*Math.pow(2,o-150)*(s+8388608)}e.writeFloatLE=t.bind(null,r),e.writeFloatBE=t.bind(null,i),e.readFloatLE=s.bind(null,n),e.readFloatBE=s.bind(null,o)}(),"undefined"!=typeof Float64Array?!function(){var t=new Float64Array([-0]),r=new Uint8Array(t.buffer),i=128===r[7];function n(e,i,n){t[0]=e,i[n]=r[0],i[n+1]=r[1],i[n+2]=r[2],i[n+3]=r[3],i[n+4]=r[4],i[n+5]=r[5],i[n+6]=r[6],i[n+7]=r[7]}function o(e,i,n){t[0]=e,i[n]=r[7],i[n+1]=r[6],i[n+2]=r[5],i[n+3]=r[4],i[n+4]=r[3],i[n+5]=r[2],i[n+6]=r[1],i[n+7]=r[0]}function s(e,i){return r[0]=e[i],r[1]=e[i+1],r[2]=e[i+2],r[3]=e[i+3],r[4]=e[i+4],r[5]=e[i+5],r[6]=e[i+6],r[7]=e[i+7],t[0]}function a(e,i){return r[7]=e[i],r[6]=e[i+1],r[5]=e[i+2],r[4]=e[i+3],r[3]=e[i+4],r[2]=e[i+5],r[1]=e[i+6],r[0]=e[i+7],t[0]}e.writeDoubleLE=i?n:o,e.writeDoubleBE=i?o:n,e.readDoubleLE=i?s:a,e.readDoubleBE=i?a:s}():!function(){function t(e,t,r,i,n,o){var s,a=+(i<0);if(a&&(i=-i),0===i)e(0,n,o+t),e(1/i>0?0:0x80000000,n,o+r);else if(isNaN(i))e(0,n,o+t),e(0x7ff80000,n,o+r);else if(i>17976931348623157e292)e(0,n,o+t),e((a<<31|0x7ff00000)>>>0,n,o+r);else if(i<22250738585072014e-324)e((s=i/5e-324)>>>0,n,o+t),e((a<<31|s/0x100000000)>>>0,n,o+r);else{var u=Math.floor(Math.log(i)/Math.LN2);1024===u&&(u=1023),e(0x10000000000000*(s=i*Math.pow(2,-u))>>>0,n,o+t),e((a<<31|u+1023<<20|1048576*s&1048575)>>>0,n,o+r)}}function s(e,t,r,i,n){var o=e(i,n+t),s=e(i,n+r),a=(s>>31)*2+1,u=s>>>20&2047,f=0x100000000*(1048575&s)+o;return 2047===u?f?NaN:1/0*a:0===u?5e-324*a*f:a*Math.pow(2,u-1075)*(f+0x10000000000000)}e.writeDoubleLE=t.bind(null,r,0,4),e.writeDoubleBE=t.bind(null,i,4,0),e.readDoubleLE=s.bind(null,n,0,4),e.readDoubleBE=s.bind(null,o,4,0)}(),e}function r(e,t,r){t[r]=255&e,t[r+1]=e>>>8&255,t[r+2]=e>>>16&255,t[r+3]=e>>>24}function i(e,t,r){t[r]=e>>>24,t[r+1]=e>>>16&255,t[r+2]=e>>>8&255,t[r+3]=255&e}function n(e,t){return(e[t]|e[t+1]<<8|e[t+2]<<16|e[t+3]<<24)>>>0}function o(e,t){return(e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3])>>>0}e.exports=t(t)},4153:function(module){module.exports=inquire;function inquire(moduleName){try{var mod=eval("quire".replace(/^/,"re"))(moduleName);if(mod&&(mod.length||Object.keys(mod).length))return mod}catch(e){}return null}},9207:function(e,t){var r=t,i=r.isAbsolute=function(e){return/^(?:\/|\w+:)/.test(e)},n=r.normalize=function(e){var t=(e=e.replace(/\\/g,"/").replace(/\/{2,}/g,"/")).split("/"),r=i(e),n="";r&&(n=t.shift()+"/");for(var o=0;o0&&".."!==t[o-1]?t.splice(--o,2):r?t.splice(o,1):++o:"."===t[o]?t.splice(o,1):++o;return n+t.join("/")};r.resolve=function(e,t,r){return(r||(t=n(t)),i(t))?t:(r||(e=n(e)),(e=e.replace(/(?:\/|^)[^/]+$/,"")).length?n(e+"/"+t):t)}},9390:function(e){e.exports=t;function t(e,t,r){var i=r||8192,n=i>>>1,o=null,s=i;return function(r){if(r<1||r>n)return e(r);s+r>i&&(o=e(i),s=0);var a=t.call(o,s,s+=r);return 7&s&&(s=(7|s)+1),a}}},1447:function(e,t){var r=t;r.length=function(e){for(var t=0,r=0,i=0;i191&&i<224?o[s++]=(31&i)<<6|63&e[t++]:i>239&&i<365?(i=((7&i)<<18|(63&e[t++])<<12|(63&e[t++])<<6|63&e[t++])-65536,o[s++]=55296+(i>>10),o[s++]=56320+(1023&i)):o[s++]=(15&i)<<12|(63&e[t++])<<6|63&e[t++],s>8191&&((n||(n=[])).push(String.fromCharCode.apply(String,o)),s=0);return n?(s&&n.push(String.fromCharCode.apply(String,o.slice(0,s))),n.join("")):String.fromCharCode.apply(String,o.slice(0,s))},r.write=function(e,t,r){for(var i,n,o=r,s=0;s>6|192:((64512&i)==55296&&(64512&(n=e.charCodeAt(s+1)))==56320?(i=65536+((1023&i)<<10)+(1023&n),++s,t[r++]=i>>18|240,t[r++]=i>>12&63|128):t[r++]=i>>12|224,t[r++]=i>>6&63|128),t[r++]=63&i|128);return r-o}},2549:function(e,t,r){e.exports=r(9100)},5095:function(e){e.exports=i;var t,r=/\/|\./;function i(e,t){r.test(e)||(e="google/protobuf/"+e+".proto",t={nested:{google:{nested:{protobuf:{nested:t}}}}}),i[e]=t}i("any",{Any:{fields:{type_url:{type:"string",id:1},value:{type:"bytes",id:2}}}}),i("duration",{Duration:t={fields:{seconds:{type:"int64",id:1},nanos:{type:"int32",id:2}}}}),i("timestamp",{Timestamp:t}),i("empty",{Empty:{fields:{}}}),i("struct",{Struct:{fields:{fields:{keyType:"string",type:"Value",id:1}}},Value:{oneofs:{kind:{oneof:["nullValue","numberValue","stringValue","boolValue","structValue","listValue"]}},fields:{nullValue:{type:"NullValue",id:1},numberValue:{type:"double",id:2},stringValue:{type:"string",id:3},boolValue:{type:"bool",id:4},structValue:{type:"Struct",id:5},listValue:{type:"ListValue",id:6}}},NullValue:{values:{NULL_VALUE:0}},ListValue:{fields:{values:{rule:"repeated",type:"Value",id:1}}}}),i("wrappers",{DoubleValue:{fields:{value:{type:"double",id:1}}},FloatValue:{fields:{value:{type:"float",id:1}}},Int64Value:{fields:{value:{type:"int64",id:1}}},UInt64Value:{fields:{value:{type:"uint64",id:1}}},Int32Value:{fields:{value:{type:"int32",id:1}}},UInt32Value:{fields:{value:{type:"uint32",id:1}}},BoolValue:{fields:{value:{type:"bool",id:1}}},StringValue:{fields:{value:{type:"string",id:1}}},BytesValue:{fields:{value:{type:"bytes",id:1}}}}),i("field_mask",{FieldMask:{fields:{paths:{rule:"repeated",type:"string",id:1}}}}),i.get=function(e){return i[e]||null}},744:function(e,t,r){var i=t,n=r(5643),o=r(3262);function s(e,t,r,i){var o=!1;if(t.resolvedType)if(t.resolvedType instanceof n){e("switch(d%s){",i);for(var s=t.resolvedType.values,a=Object.keys(s),u=0;u>>0",i,i);break;case"int32":case"sint32":case"sfixed32":e("m%s=d%s|0",i,i);break;case"uint64":f=!0;case"int64":case"sint64":case"fixed64":case"sfixed64":e("if(util.Long)")("(m%s=util.Long.fromValue(d%s)).unsigned=%j",i,i,f)('else if(typeof d%s==="string")',i)("m%s=parseInt(d%s,10)",i,i)('else if(typeof d%s==="number")',i)("m%s=d%s",i,i)('else if(typeof d%s==="object")',i)("m%s=new util.LongBits(d%s.low>>>0,d%s.high>>>0).toNumber(%s)",i,i,i,f?"true":"");break;case"bytes":e('if(typeof d%s==="string")',i)("util.base64.decode(d%s,m%s=util.newBuffer(util.base64.length(d%s)),0)",i,i,i)("else if(d%s.length >= 0)",i)("m%s=d%s",i,i);break;case"string":e("m%s=String(d%s)",i,i);break;case"bool":e("m%s=Boolean(d%s)",i,i)}}return e}function a(e,t,r,i){if(t.resolvedType)t.resolvedType instanceof n?e("d%s=o.enums===String?(types[%i].values[m%s]===undefined?m%s:types[%i].values[m%s]):m%s",i,r,i,i,r,i,i):e("d%s=types[%i].toObject(m%s,o)",i,r,i);else{var o=!1;switch(t.type){case"double":case"float":e("d%s=o.json&&!isFinite(m%s)?String(m%s):m%s",i,i,i,i);break;case"uint64":o=!0;case"int64":case"sint64":case"fixed64":case"sfixed64":e('if(typeof m%s==="number")',i)("d%s=o.longs===String?String(m%s):m%s",i,i,i)("else")("d%s=o.longs===String?util.Long.prototype.toString.call(m%s):o.longs===Number?new util.LongBits(m%s.low>>>0,m%s.high>>>0).toNumber(%s):m%s",i,i,i,i,o?"true":"",i);break;case"bytes":e("d%s=o.bytes===String?util.base64.encode(m%s,0,m%s.length):o.bytes===Array?Array.prototype.slice.call(m%s):m%s",i,i,i,i,i);break;default:e("d%s=m%s",i,i)}}return e}i.fromObject=function(e){var t=e.fieldsArray,r=o.codegen(["d"],e.name+"$fromObject")("if(d instanceof this.ctor)")("return d");if(!t.length)return r("return new this.ctor");r("var m=new this.ctor");for(var i=0;i>>3){"),r=0;r>>3){")("case 1: k=r.%s(); break",a.keyType)("case 2:"),void 0===n.basic[u]?t("value=types[%i].decode(r,r.uint32())",r):t("value=r.%s()",u),t("break")("default:")("r.skipType(tag2&7)")("break")("}")("}"),void 0!==n.long[a.keyType]?t('%s[typeof k==="object"?util.longToHash(k):k]=value',f):t("%s[k]=value",f)):a.repeated?(t("if(!(%s&&%s.length))",f,f)("%s=[]",f),void 0!==n.packed[u]&&t("if((t&7)===2){")("var c2=r.uint32()+r.pos")("while(r.pos>>0,(t.id<<3|4)>>>0):e("types[%i].encode(%s,w.uint32(%i).fork()).ldelim()",r,i,(t.id<<3|2)>>>0)}function a(e){for(var t,r,a=o.codegen(["m","w"],e.name+"$encode")("if(!w)")("w=Writer.create()"),u=e.fieldsArray.slice().sort(o.compareFieldsById),t=0;t>>0,8|n.mapKey[f.keyType],f.keyType),void 0===c?a("types[%i].encode(%s[ks[i]],w.uint32(18).fork()).ldelim().ldelim()",l,r):a(".uint32(%i).%s(%s[ks[i]]).ldelim()",16|c,p,r),a("}")("}")):f.repeated?(a("if(%s!=null&&%s.length){",r,r),f.packed&&void 0!==n.packed[p]?a("w.uint32(%i).fork()",(f.id<<3|2)>>>0)("for(var i=0;i<%s.length;++i)",r)("w.%s(%s[i])",p,r)("w.ldelim()"):(a("for(var i=0;i<%s.length;++i)",r),void 0===c?s(a,f,l,r+"[i]"):a("w.uint32(%i).%s(%s[i])",(f.id<<3|c)>>>0,p,r)),a("}")):(f.optional&&a("if(%s!=null&&Object.hasOwnProperty.call(m,%j))",r,f.name),void 0===c?s(a,f,l,r):a("w.uint32(%i).%s(%s)",(f.id<<3|c)>>>0,p,r))}return a("return w")}},5643:function(e,t,r){e.exports=s;var i=r(7209);((s.prototype=Object.create(i.prototype)).constructor=s).className="Enum";var n=r(8923),o=r(3262);function s(e,t,r,n,o,s){if(i.call(this,e,r),t&&"object"!=typeof t)throw TypeError("values must be an object");if(this.valuesById={},this.values=Object.create(this.valuesById),this.comment=n,this.comments=o||{},this.valuesOptions=s,this._valuesFeatures={},this.reserved=void 0,t)for(var a=Object.keys(t),u=0;u{var t=Object.assign({},this._features);this._valuesFeatures[e]=Object.assign(t,this.valuesOptions&&this.valuesOptions[e]&&this.valuesOptions[e].features)}),this},s.fromJSON=function(e,t){var r=new s(e,t.values,t.options,t.comment,t.comments);return r.reserved=t.reserved,t.edition&&(r._edition=t.edition),r._defaultEdition="proto3",r},s.prototype.toJSON=function(e){var t=!!e&&!!e.keepComments;return o.toObject(["edition",this._editionToJSON(),"options",this.options,"valuesOptions",this.valuesOptions,"values",this.values,"reserved",this.reserved&&this.reserved.length?this.reserved:void 0,"comment",t?this.comment:void 0,"comments",t?this.comments:void 0])},s.prototype.add=function(e,t,r,i){if(!o.isString(e))throw TypeError("name must be a string");if(!o.isInteger(t))throw TypeError("id must be an integer");if(void 0!==this.values[e])throw Error("duplicate name '"+e+"' in "+this);if(this.isReservedId(t))throw Error("id "+t+" is reserved in "+this);if(this.isReservedName(e))throw Error("name '"+e+"' is reserved in "+this);if(void 0!==this.valuesById[t]){if(!(this.options&&this.options.allow_alias))throw Error("duplicate id "+t+" in "+this);this.values[e]=t}else this.valuesById[this.values[e]=t]=e;return i&&(void 0===this.valuesOptions&&(this.valuesOptions={}),this.valuesOptions[e]=i||null),this.comments[e]=r||null,this},s.prototype.remove=function(e){if(!o.isString(e))throw TypeError("name must be a string");var t=this.values[e];if(null==t)throw Error("name '"+e+"' does not exist in "+this);return delete this.valuesById[t],delete this.values[e],delete this.comments[e],this.valuesOptions&&delete this.valuesOptions[e],this},s.prototype.isReservedId=function(e){return n.isReservedId(this.reserved,e)},s.prototype.isReservedName=function(e){return n.isReservedName(this.reserved,e)}},1344:function(e,t,r){e.exports=f;var i,n=r(7209);((f.prototype=Object.create(n.prototype)).constructor=f).className="Field";var o=r(5643),s=r(361),a=r(3262),u=/^required|optional|repeated$/;function f(e,t,r,i,o,f,l){if(a.isObject(i)?(l=o,f=i,i=o=void 0):a.isObject(o)&&(l=f,f=o,o=void 0),n.call(this,e,f),!a.isInteger(t)||t<0)throw TypeError("id must be a non-negative integer");if(!a.isString(r))throw TypeError("type must be a string");if(void 0!==i&&!u.test(i=i.toString().toLowerCase()))throw TypeError("rule must be a string rule");if(void 0!==o&&!a.isString(o))throw TypeError("extend must be a string");"proto3_optional"===i&&(i="optional"),this.rule=i&&"optional"!==i?i:void 0,this.type=r,this.id=t,this.extend=o||void 0,this.repeated="repeated"===i,this.map=!1,this.message=null,this.partOf=null,this.typeDefault=null,this.defaultValue=null,this.long=!!a.Long&&void 0!==s.long[r],this.bytes="bytes"===r,this.resolvedType=null,this.extensionField=null,this.declaringField=null,this.comment=l}f.fromJSON=function(e,t){var r=new f(e,t.id,t.type,t.rule,t.extend,t.options,t.comment);return t.edition&&(r._edition=t.edition),r._defaultEdition="proto3",r},Object.defineProperty(f.prototype,"required",{get:function(){return"LEGACY_REQUIRED"===this._features.field_presence}}),Object.defineProperty(f.prototype,"optional",{get:function(){return!this.required}}),Object.defineProperty(f.prototype,"delimited",{get:function(){return this.resolvedType instanceof i&&"DELIMITED"===this._features.message_encoding}}),Object.defineProperty(f.prototype,"packed",{get:function(){return"PACKED"===this._features.repeated_field_encoding}}),Object.defineProperty(f.prototype,"hasPresence",{get:function(){return!this.repeated&&!this.map&&(this.partOf||this.declaringField||this.extensionField||"IMPLICIT"!==this._features.field_presence)}}),f.prototype.setOption=function(e,t,r){return n.prototype.setOption.call(this,e,t,r)},f.prototype.toJSON=function(e){var t=!!e&&!!e.keepComments;return a.toObject(["edition",this._editionToJSON(),"rule","optional"!==this.rule&&this.rule||void 0,"type",this.type,"id",this.id,"extend",this.extend,"options",this.options,"comment",t?this.comment:void 0])},f.prototype.resolve=function(){if(this.resolved)return this;if(void 0===(this.typeDefault=s.defaults[this.type])?(this.resolvedType=(this.declaringField?this.declaringField.parent:this.parent).lookupTypeOrEnum(this.type),this.resolvedType instanceof i?this.typeDefault=null:this.typeDefault=this.resolvedType.values[Object.keys(this.resolvedType.values)[0]]):this.options&&this.options.proto3_optional&&(this.typeDefault=null),this.options&&null!=this.options.default&&(this.typeDefault=this.options.default,this.resolvedType instanceof o&&"string"==typeof this.typeDefault&&(this.typeDefault=this.resolvedType.values[this.typeDefault])),this.options&&(void 0===this.options.packed||!this.resolvedType||this.resolvedType instanceof o||delete this.options.packed,Object.keys(this.options).length||(this.options=void 0)),this.long)this.typeDefault=a.Long.fromNumber(this.typeDefault,"u"===this.type.charAt(0)),Object.freeze&&Object.freeze(this.typeDefault);else if(this.bytes&&"string"==typeof this.typeDefault){var e;a.base64.test(this.typeDefault)?a.base64.decode(this.typeDefault,e=a.newBuffer(a.base64.length(this.typeDefault)),0):a.utf8.write(this.typeDefault,e=a.newBuffer(a.utf8.length(this.typeDefault)),0),this.typeDefault=e}return this.map?this.defaultValue=a.emptyObject:this.repeated?this.defaultValue=a.emptyArray:this.defaultValue=this.typeDefault,this.parent instanceof i&&(this.parent.ctor.prototype[this.name]=this.defaultValue),n.prototype.resolve.call(this)},f.prototype._inferLegacyProtoFeatures=function(e){if("proto2"!==e&&"proto3"!==e)return{};var t={};if("required"===this.rule&&(t.field_presence="LEGACY_REQUIRED"),this.parent&&void 0===s.defaults[this.type]){var r=this.parent.get(this.type.split(".").pop());r&&r instanceof i&&r.group&&(t.message_encoding="DELIMITED")}return!0===this.getOption("packed")?t.repeated_field_encoding="PACKED":!1===this.getOption("packed")&&(t.repeated_field_encoding="EXPANDED"),t},f.prototype._resolveFeatures=function(e){return n.prototype._resolveFeatures.call(this,this._edition||e)},f.d=function(e,t,r,i){return"function"==typeof t?t=a.decorateType(t).name:t&&"object"==typeof t&&(t=a.decorateEnum(t).name),function(n,o){a.decorateType(n.constructor).add(new f(o,e,t,r,{default:i}))}},f._configure=function(e){i=e}},5325:function(e,t,r){var i=e.exports=r(4394);function n(e,t,r){return"function"==typeof t?(r=t,t=new i.Root):t||(t=new i.Root),t.load(e,r)}function o(e,t){return t||(t=new i.Root),t.loadSync(e)}i.build="light",i.load=n,i.loadSync=o,i.encoder=r(1080),i.decoder=r(7728),i.verifier=r(420),i.converter=r(744),i.ReflectionObject=r(7209),i.Namespace=r(8923),i.Root=r(5330),i.Enum=r(5643),i.Type=r(7882),i.Field=r(1344),i.OneOf=r(1457),i.MapField=r(8252),i.Service=r(9687),i.Method=r(8811),i.Message=r(2551),i.wrappers=r(6434),i.types=r(361),i.util=r(3262),i.ReflectionObject._configure(i.Root),i.Namespace._configure(i.Type,i.Service,i.Enum),i.Root._configure(i.Type),i.Field._configure(i.Type)},4394:function(e,t,r){var i=t;function n(){i.util._configure(),i.Writer._configure(i.BufferWriter),i.Reader._configure(i.BufferReader)}i.build="minimal",i.Writer=r(3449),i.BufferWriter=r(818),i.Reader=r(6237),i.BufferReader=r(3158),i.util=r(3610),i.rpc=r(5047),i.roots=r(4529),i.configure=n,n()},9100:function(e,t,r){var i=e.exports=r(5325);i.build="full",i.tokenize=r(527),i.parse=r(4863),i.common=r(5095),i.Root._configure(i.Type,i.parse,i.common)},8252:function(e,t,r){e.exports=s;var i=r(1344);((s.prototype=Object.create(i.prototype)).constructor=s).className="MapField";var n=r(361),o=r(3262);function s(e,t,r,n,s,a){if(i.call(this,e,t,n,void 0,void 0,s,a),!o.isString(r))throw TypeError("keyType must be a string");this.keyType=r,this.resolvedKeyType=null,this.map=!0}s.fromJSON=function(e,t){return new s(e,t.id,t.keyType,t.type,t.options,t.comment)},s.prototype.toJSON=function(e){var t=!!e&&!!e.keepComments;return o.toObject(["keyType",this.keyType,"type",this.type,"id",this.id,"extend",this.extend,"options",this.options,"comment",t?this.comment:void 0])},s.prototype.resolve=function(){if(this.resolved)return this;if(void 0===n.mapKey[this.keyType])throw Error("invalid key type: "+this.keyType);return i.prototype.resolve.call(this)},s.d=function(e,t,r){return"function"==typeof r?r=o.decorateType(r).name:r&&"object"==typeof r&&(r=o.decorateEnum(r).name),function(i,n){o.decorateType(i.constructor).add(new s(n,e,t,r))}}},2551:function(e,t,r){e.exports=n;var i=r(3610);function n(e){if(e)for(var t=Object.keys(e),r=0;rt)return!0}return!1},p.isReservedName=function(e,t){if(e){for(var r=0;r0;){var i=e.shift();if(r.nested&&r.nested[i]){if(!((r=r.nested[i])instanceof p))throw Error("path conflicts with non-namespace objects")}else r.add(r=new p(i))}return t&&r.addJSON(t),r},p.prototype.resolveAll=function(){if(!this._needsRecursiveResolve)return this;this._resolveFeaturesRecursive(this._edition);var e=this.nestedArray,t=0;for(this.resolve();t{t._resolveFeaturesRecursive(e)})),this},p.prototype.lookup=function(e,t,r){if("boolean"==typeof t?(r=t,t=void 0):t&&!Array.isArray(t)&&(t=[t]),u.isString(e)&&e.length){if("."===e)return this.root;e=e.split(".")}else if(!e.length)return this;var i=e.join(".");if(""===e[0])return this.root.lookup(e.slice(1),t);var n=this.root._fullyQualifiedObjects&&this.root._fullyQualifiedObjects["."+i];if(n&&(!t||t.indexOf(n.constructor)>-1)||(n=this._lookupImpl(e,i))&&(!t||t.indexOf(n.constructor)>-1))return n;if(r)return null;for(var o=this;o.parent;){if((n=o.parent._lookupImpl(e,i))&&(!t||t.indexOf(n.constructor)>-1))return n;o=o.parent}return null},p.prototype._lookupImpl=function(e,t){if(Object.prototype.hasOwnProperty.call(this._lookupCache,t))return this._lookupCache[t];var r=this.get(e[0]),i=null;if(r)1===e.length?i=r:r instanceof p&&(e=e.slice(1),i=r._lookupImpl(e,e.join(".")));else for(var n=0;n-1&&this.oneof.splice(t,1),e.partOf=null,this},s.prototype.onAdd=function(e){i.prototype.onAdd.call(this,e);for(var t=this,r=0;r{e._edition=L,Object.keys($).forEach(t=>{void 0===e.getOption(t)&&e.setOption(t,$[t],!0)})})}function q(e,t,r){var i=k.filename;return r||(k.filename=null),Error("illegal "+(t||"token")+" '"+e+"' ("+(i?i+", ":"")+"line "+N.line+")")}function z(){var e,t=[];do{if('"'!==(e=R())&&"'"!==e)throw q(e);t.push(R()),B(e),e=I()}while('"'===e||"'"===e);return t.join("")}function U(e){var t=R();switch(t){case"'":case'"':return F(t),z();case"true":case"TRUE":return!0;case"false":case"FALSE":return!1}try{return W(t,!0)}catch(r){if(e&&j.test(t))return t;throw q(t,"value")}}function H(e,t){do if(t&&('"'===(r=I())||"'"===r)){var r,i,n=z();if(e.push(n),L>=2023)throw q(n,"id")}else try{e.push([i=G(R()),B("to",!0)?G(R()):i])}catch(i){if(t&&j.test(r)&&L>=2023)e.push(r);else throw i}while(B(",",!0));var o={options:void 0};o.setOption=function(e,t){void 0===this.options&&(this.options={}),this.options[e]=t},ee(o,function(e){if("option"===e)eu(o,e),B(";");else throw q(e)},function(){ec(o)})}function W(e,t){var r=1;switch("-"===e.charAt(0)&&(r=-1,e=e.substring(1)),e){case"inf":case"INF":case"Inf":return 1/0*r;case"nan":case"NAN":case"Nan":case"NaN":return NaN;case"0":return 0}if(y.test(e))return r*parseInt(e,10);if(m.test(e))return r*parseInt(e,16);if(b.test(e))return r*parseInt(e,8);if(O.test(e))return r*parseFloat(e);throw q(e,"number",t)}function G(e,t){switch(e){case"max":case"MAX":case"Max":return 0x1fffffff;case"0":return 0}if(!t&&"-"===e.charAt(0))throw q(e,"id");if(v.test(e))return parseInt(e,10);if(g.test(e))return parseInt(e,16);if(w.test(e))return parseInt(e,8);throw q(e,"id")}function X(){if(void 0!==x)throw q("package");if(x=R(),!j.test(x))throw q(x,"name");C=C.define(x),B(";")}function Z(){var e,t=I();switch(t){case"weak":e=S||(S=[]),R();break;case"public":R();default:e=E||(E=[])}t=z(),B(";"),e.push(t)}function K(){if(B("="),(L=z())<2023)throw q(L,"syntax");B(";")}function Q(){if(B("="),!["2023"].includes(L=z()))throw q(L,"edition");B(";")}function Y(e,t){switch(t){case"option":return eu(e,t),B(";"),!0;case"message":return et(e,t),!0;case"enum":return es(e,t),!0;case"service":return eh(e,t),!0;case"extend":return ey(e,t),!0}return!1}function ee(e,t,r){var i,n=N.line;if(e&&("string"!=typeof e.comment&&(e.comment=P()),e.filename=k.filename),B("{",!0)){for(;"}"!==(i=R());)t(i);B(";",!0)}else r&&r(),B(";"),e&&("string"!=typeof e.comment||T)&&(e.comment=P(n)||e.comment)}function et(e,t){if(!_.test(t=R()))throw q(t,"type name");var r=new o(t);ee(r,function(e){if(!Y(r,e))switch(e){case"map":en(r,e);break;case"required":if("proto2"!==L)throw q(e);case"repeated":er(r,e);break;case"optional":if("proto3"===L)er(r,"proto3_optional");else if("proto2"!==L)throw q(e);else er(r,"optional");break;case"oneof":eo(r,e);break;case"extensions":H(r.extensions||(r.extensions=[]));break;case"reserved":H(r.reserved||(r.reserved=[]),!0);break;default:if("proto2"===L||!j.test(e))throw q(e);F(e),er(r,"optional")}}),e.add(r),e===C&&J.push(r)}function er(e,t,r){var i=R();if("group"===i)return void ei(e,t);for(;i.endsWith(".")||I().startsWith(".");)i+=R();if(!j.test(i))throw q(i,"type");var n=R();if(!_.test(n))throw q(n,"name");n=V(n),B("=");var o=new s(n,G(R()),i,t,r);if(ee(o,function(e){if("option"===e)eu(o,e),B(";");else throw q(e)},function(){ec(o)}),"proto3_optional"===t){var a=new u("_"+n);o.setOption("proto3_optional",!0),a.add(o),e.add(a)}else e.add(o);e===C&&J.push(o)}function ei(e,t){if(L>=2023)throw q("group");var r=R();if(!_.test(r))throw q(r,"name");var i=d.lcFirst(r);r===i&&(r=d.ucFirst(r)),B("=");var n=G(R()),a=new o(r);a.group=!0;var u=new s(i,n,r,t);u.filename=k.filename,ee(a,function(e){switch(e){case"option":eu(a,e),B(";");break;case"required":case"repeated":er(a,e);break;case"optional":"proto3"===L?er(a,"proto3_optional"):er(a,"optional");break;case"message":et(a,e);break;case"enum":es(a,e);break;case"reserved":H(a.reserved||(a.reserved=[]),!0);break;default:throw q(e)}}),e.add(a).add(u)}function en(e){B("<");var t=R();if(void 0===h.mapKey[t])throw q(t,"type");B(",");var r=R();if(!j.test(r))throw q(r,"type");B(">");var i=R();if(!_.test(i))throw q(i,"name");B("=");var n=new a(V(i),G(R()),t,r);ee(n,function(e){if("option"===e)eu(n,e),B(";");else throw q(e)},function(){ec(n)}),e.add(n)}function eo(e,t){if(!_.test(t=R()))throw q(t,"name");var r=new u(V(t));ee(r,function(e){"option"===e?(eu(r,e),B(";")):(F(e),er(r,"optional"))}),e.add(r)}function es(e,t){if(!_.test(t=R()))throw q(t,"name");var r=new f(t);ee(r,function(e){switch(e){case"option":eu(r,e),B(";");break;case"reserved":H(r.reserved||(r.reserved=[]),!0),void 0===r.reserved&&(r.reserved=[]);break;default:ea(r,e)}}),e.add(r),e===C&&J.push(r)}function ea(e,t){if(!_.test(t))throw q(t,"name");B("=");var r=G(R(),!0),i={options:void 0};i.getOption=function(e){return this.options[e]},i.setOption=function(e,t){c.prototype.setOption.call(i,e,t)},i.setParsedOption=function(){},ee(i,function(e){if("option"===e)eu(i,e),B(";");else throw q(e)},function(){ec(i)}),e.add(t,r,i.comment,i.parsedOptions||i.options)}function eu(e,t){var r,i,n=!0;for("option"===t&&(t=R());"="!==t;){if("("===t){var o=R();B(")"),t="("+o+")"}if(n){if(n=!1,t.includes(".")&&!t.includes("(")){var s=t.split(".");r=s[0]+".",t=s[1];continue}r=t}else i=i?i+=t:t;t=R()}var a=ef(e,i?r.concat(i):r);i=i&&"."===i[0]?i.slice(1):i,ep(e,r=r&&"."===r[r.length-1]?r.slice(0,-1):r,a,i)}function ef(e,t){if(B("{",!0)){for(var r={};!B("}",!0);){if(!_.test(A=R()))throw q(A,"name");if(null===A)throw q(A,"end of input");var i,n,o=A;if(B(":",!0),"{"===I())i=ef(e,t+"."+A);else if("["===I()){if(i=[],B("[",!0)){do n=U(!0),i.push(n);while(B(",",!0));B("]"),void 0!==n&&el(e,t+"."+A,n)}}else i=U(!0),el(e,t+"."+A,i);var s=r[o];s&&(i=[].concat(s).concat(i)),r[o]=i,B(",",!0),B(";",!0)}return r}var a=U(!0);return el(e,t,a),a}function el(e,t,r){if(C===e&&/^features\./.test(t)){$[t]=r;return}e.setOption&&e.setOption(t,r)}function ep(e,t,r,i){e.setParsedOption&&e.setParsedOption(t,r,i)}function ec(e){if(B("[",!0)){do eu(e,"option");while(B(",",!0));B("]")}return e}function eh(e,t){if(!_.test(t=R()))throw q(t,"service name");var r=new l(t);ee(r,function(e){if(!Y(r,e))if("rpc"===e)ed(r,e);else throw q(e)}),e.add(r),e===C&&J.push(r)}function ed(e,t){var r=P(),i=t;if(!_.test(t=R()))throw q(t,"name");var n,o,s,a,u=t;if(B("("),B("stream",!0)&&(o=!0),!j.test(t=R())||(n=t,B(")"),B("returns"),B("("),B("stream",!0)&&(a=!0),!j.test(t=R())))throw q(t);s=t,B(")");var f=new p(u,i,n,s,o,a);f.comment=r,ee(f,function(e){if("option"===e)eu(f,e),B(";");else throw q(e)}),e.add(f)}function ey(e,t){if(!j.test(t=R()))throw q(t,"reference");var r=t;ee(null,function(t){switch(t){case"required":case"repeated":er(e,t,r);break;case"optional":"proto3"===L?er(e,"proto3_optional",r):er(e,"optional",r);break;default:if("proto2"===L||!j.test(t))throw q(t);F(t),er(e,"optional",r)}})}for(;null!==(A=R());)switch(A){case"package":if(!D)throw q(A);X();break;case"import":if(!D)throw q(A);Z();break;case"syntax":if(!D)throw q(A);K();break;case"edition":if(!D)throw q(A);Q();break;case"option":eu(C,A),B(";",!0);break;default:if(Y(C,A)){D=!1;continue}throw q(A)}return M(),k.filename=null,{package:x,imports:E,weakImports:S,root:t}}},6237:function(e,t,r){e.exports=u;var i,n=r(3610),o=n.LongBits,s=n.utf8;function a(e,t){return RangeError("index out of range: "+e.pos+" + "+(t||1)+" > "+e.len)}function u(e){this.buf=e,this.pos=0,this.len=e.length}var f="undefined"!=typeof Uint8Array?function(e){if(e instanceof Uint8Array||Array.isArray(e))return new u(e);throw Error("illegal buffer")}:function(e){if(Array.isArray(e))return new u(e);throw Error("illegal buffer")},l=function(){return n.Buffer?function(e){return(u.create=function(e){return n.Buffer.isBuffer(e)?new i(e):f(e)})(e)}:f};function p(){var e=new o(0,0),t=0;if(this.len-this.pos>4){for(;t<4;++t)if(e.lo=(e.lo|(127&this.buf[this.pos])<<7*t)>>>0,this.buf[this.pos++]<128)return e;if(e.lo=(e.lo|(127&this.buf[this.pos])<<28)>>>0,e.hi=(e.hi|(127&this.buf[this.pos])>>4)>>>0,this.buf[this.pos++]<128)return e;t=0}else{for(;t<3;++t){if(this.pos>=this.len)throw a(this);if(e.lo=(e.lo|(127&this.buf[this.pos])<<7*t)>>>0,this.buf[this.pos++]<128)return e}return e.lo=(e.lo|(127&this.buf[this.pos++])<<7*t)>>>0,e}if(this.len-this.pos>4){for(;t<5;++t)if(e.hi=(e.hi|(127&this.buf[this.pos])<<7*t+3)>>>0,this.buf[this.pos++]<128)return e}else for(;t<5;++t){if(this.pos>=this.len)throw a(this);if(e.hi=(e.hi|(127&this.buf[this.pos])<<7*t+3)>>>0,this.buf[this.pos++]<128)return e}throw Error("invalid varint encoding")}function c(e,t){return(e[t-4]|e[t-3]<<8|e[t-2]<<16|e[t-1]<<24)>>>0}function h(){if(this.pos+8>this.len)throw a(this,8);return new o(c(this.buf,this.pos+=4),c(this.buf,this.pos+=4))}u.create=l(),u.prototype._slice=n.Array.prototype.subarray||n.Array.prototype.slice,u.prototype.uint32=function(){var e=0xffffffff;return function(){if(e=(127&this.buf[this.pos])>>>0,this.buf[this.pos++]<128||(e=(e|(127&this.buf[this.pos])<<7)>>>0,this.buf[this.pos++]<128)||(e=(e|(127&this.buf[this.pos])<<14)>>>0,this.buf[this.pos++]<128)||(e=(e|(127&this.buf[this.pos])<<21)>>>0,this.buf[this.pos++]<128)||(e=(e|(15&this.buf[this.pos])<<28)>>>0,this.buf[this.pos++]<128))return e;if((this.pos+=5)>this.len)throw this.pos=this.len,a(this,10);return e}}(),u.prototype.int32=function(){return 0|this.uint32()},u.prototype.sint32=function(){var e=this.uint32();return e>>>1^-(1&e)},u.prototype.bool=function(){return 0!==this.uint32()},u.prototype.fixed32=function(){if(this.pos+4>this.len)throw a(this,4);return c(this.buf,this.pos+=4)},u.prototype.sfixed32=function(){if(this.pos+4>this.len)throw a(this,4);return 0|c(this.buf,this.pos+=4)},u.prototype.float=function(){if(this.pos+4>this.len)throw a(this,4);var e=n.float.readFloatLE(this.buf,this.pos);return this.pos+=4,e},u.prototype.double=function(){if(this.pos+8>this.len)throw a(this,4);var e=n.float.readDoubleLE(this.buf,this.pos);return this.pos+=8,e},u.prototype.bytes=function(){var e=this.uint32(),t=this.pos,r=this.pos+e;if(r>this.len)throw a(this,e);if(this.pos+=e,Array.isArray(this.buf))return this.buf.slice(t,r);if(t===r){var i=n.Buffer;return i?i.alloc(0):new this.buf.constructor(0)}return this._slice.call(this.buf,t,r)},u.prototype.string=function(){var e=this.bytes();return s.read(e,0,e.length)},u.prototype.skip=function(e){if("number"==typeof e){if(this.pos+e>this.len)throw a(this,e);this.pos+=e}else do if(this.pos>=this.len)throw a(this);while(128&this.buf[this.pos++]);return this},u.prototype.skipType=function(e){switch(e){case 0:this.skip();break;case 1:this.skip(8);break;case 2:this.skip(this.uint32());break;case 3:for(;4!=(e=7&this.uint32());)this.skipType(e);break;case 5:this.skip(4);break;default:throw Error("invalid wire type "+e+" at offset "+this.pos)}return this},u._configure=function(e){i=e,u.create=l(),i._configure();var t=n.Long?"toLong":"toNumber";n.merge(u.prototype,{int64:function(){return p.call(this)[t](!1)},uint64:function(){return p.call(this)[t](!0)},sint64:function(){return p.call(this).zzDecode()[t](!1)},fixed64:function(){return h.call(this)[t](!0)},sfixed64:function(){return h.call(this)[t](!1)}})}},3158:function(e,t,r){e.exports=o;var i=r(6237);(o.prototype=Object.create(i.prototype)).constructor=o;var n=r(3610);function o(e){i.call(this,e)}o._configure=function(){n.Buffer&&(o.prototype._slice=n.Buffer.prototype.slice)},o.prototype.string=function(){var e=this.uint32();return this.buf.utf8Slice?this.buf.utf8Slice(this.pos,this.pos=Math.min(this.pos+e,this.len)):this.buf.toString("utf-8",this.pos,this.pos=Math.min(this.pos+e,this.len))},o._configure()},5330:function(e,t,r){e.exports=p;var i,n,o,s=r(8923);((p.prototype=Object.create(s.prototype)).constructor=p).className="Root";var a=r(1344),u=r(5643),f=r(1457),l=r(3262);function p(e){s.call(this,"",e),this.deferred=[],this.files=[],this._edition="proto2",this._fullyQualifiedObjects={}}function c(){}p.fromJSON=function(e,t){return t||(t=new p),e.options&&t.setOptions(e.options),t.addJSON(e.nested).resolveAll()},p.prototype.resolvePath=l.path.resolve,p.prototype.fetch=l.fetch,p.prototype.load=function e(t,r,i){"function"==typeof r&&(i=r,r=void 0);var s=this;if(!i)return l.asPromise(e,s,t,r);var a=i===c;function u(e,t){if(i){if(a)throw e;t&&t.resolveAll();var r=i;i=null,r(e,t)}}function f(e){var t=e.lastIndexOf("google/protobuf/");if(t>-1){var r=e.substring(t);if(r in o)return r}return null}function p(e,t){try{if(l.isString(t)&&"{"===t.charAt(0)&&(t=JSON.parse(t)),l.isString(t)){n.filename=e;var i,o=n(t,s,r),p=0;if(o.imports)for(;p-1)){if(s.files.push(e),e in o)return void(a?p(e,o[e]):(++d,setTimeout(function(){--d,p(e,o[e])})));if(a){var r;try{r=l.fs.readFileSync(e).toString("utf8")}catch(e){t||u(e);return}p(e,r)}else++d,s.fetch(e,function(r,n){if(--d,i){if(r)return void(t?d||u(null,s):u(r));p(e,n)}})}}var d=0;l.isString(t)&&(t=[t]);for(var y,v=0;v-1&&this.deferred.splice(t,1)}}else if(e instanceof u)h.test(e.name)&&delete e.parent[e.name];else if(e instanceof s){for(var r=0;r{t._resolveFeaturesRecursive(e)})),this},a.prototype.add=function(e){if(this.get(e.name))throw Error("duplicate name '"+e.name+"' in "+this);return e instanceof n?(this.methods[e.name]=e,e.parent=this,u(this)):i.prototype.add.call(this,e)},a.prototype.remove=function(e){if(e instanceof n){if(this.methods[e.name]!==e)throw Error(e+" is not a member of "+this);return delete this.methods[e.name],e.parent=null,u(this)}return i.prototype.remove.call(this,e)},a.prototype.create=function(e,t,r){for(var i,n=new s.Service(e,t,r),a=0;a]/g,r=/(?:"([^"\\]*(?:\\.[^"\\]*)*)")/g,i=/(?:'([^'\\]*(?:\\.[^'\\]*)*)')/g,n=/^ *[*/]+ */,o=/^\s*\*?\/*/,s=/\n/g,a=/\s/,u=/\\(.?)/g,f={0:"\0",r:"\r",n:"\n",t:" "};function l(e){return e.replace(u,function(e,t){switch(t){case"\\":case"":return t;default:return f[t]||""}})}function p(e,u){e=e.toString();var f=0,p=e.length,c=1,h=0,d={},y=[],v=null;function m(e){return Error("illegal "+e+" (line "+c+")")}function g(){var t="'"===v?i:r;t.lastIndex=f-1;var n=t.exec(e);if(!n)throw m("string");return f=t.lastIndex,k(v),v=null,l(n[1])}function b(t){return e.charAt(t)}function w(t,r,i){var a,f={type:e.charAt(t++),lineEmpty:!1,leading:i},l=t-(u?2:3);do if(--l<0||"\n"===(a=e.charAt(l))){f.lineEmpty=!0;break}while(" "===a||" "===a);for(var p=e.substring(t,r).split(s),y=0;y0)return y.shift();if(v)return g();var r,i,n,o,s,l=0===f;do{if(f===p)return null;for(r=!1;a.test(n=b(f));)if("\n"===n&&(l=!0,++c),++f===p)return null;if("/"===b(f)){if(++f===p)throw m("comment");if("/"===b(f))if(u){if(o=f,s=!1,O(f-1)){s=!0;do if((f=_(f))===p||(f++,!l))break;while(O(f))}else f=Math.min(p,_(f)+1);s&&(w(o,f,l),l=!0),c++,r=!0}else{for(s="/"===b(o=f+1);"\n"!==b(++f);)if(f===p)return null;++f,s&&(w(o,f-1,l),l=!0),++c,r=!0}else{if("*"!==(n=b(f)))return"/";o=f+1,s=u||"*"===b(o);do{if("\n"===n&&++c,++f===p)throw m("comment");i=n,n=b(f)}while("*"!==i||"/"!==n);++f,s&&(w(o,f-2,l),l=!0),r=!0}}}while(r);var h=f;if(t.lastIndex=0,!t.test(b(h++)))for(;h{t._resolveFeatures(e)}),this.fieldsArray.forEach(t=>{t._resolveFeatures(e)})),this},g.prototype.get=function(e){return this.fields[e]||this.oneofs&&this.oneofs[e]||this.nested&&this.nested[e]||null},g.prototype.add=function(e){if(this.get(e.name))throw Error("duplicate name '"+e.name+"' in "+this);if(e instanceof s&&void 0===e.extend){if(this._fieldsById?this._fieldsById[e.id]:this.fieldsById[e.id])throw Error("duplicate id "+e.id+" in "+this);if(this.isReservedId(e.id))throw Error("id "+e.id+" is reserved in "+this);if(this.isReservedName(e.name))throw Error("name '"+e.name+"' is reserved in "+this);return e.parent&&e.parent.remove(e),this.fields[e.name]=e,e.message=this,e.onAdd(this),b(this)}return e instanceof o?(this.oneofs||(this.oneofs={}),this.oneofs[e.name]=e,e.onAdd(this),b(this)):i.prototype.add.call(this,e)},g.prototype.remove=function(e){if(e instanceof s&&void 0===e.extend){if(!this.fields||this.fields[e.name]!==e)throw Error(e+" is not a member of "+this);return delete this.fields[e.name],e.parent=null,e.onRemove(this),b(this)}if(e instanceof o){if(!this.oneofs||this.oneofs[e.name]!==e)throw Error(e+" is not a member of "+this);return delete this.oneofs[e.name],e.parent=null,e.onRemove(this),b(this)}return i.prototype.remove.call(this,e)},g.prototype.isReservedId=function(e){return i.isReservedId(this.reserved,e)},g.prototype.isReservedName=function(e){return i.isReservedName(this.reserved,e)},g.prototype.create=function(e){return new this.ctor(e)},g.prototype.setup=function(){for(var e=this.fullName,t=[],r=0;r0)e[o]=n(e[o]||{},t,r);else{var s=e[o];if(s&&i)return e;s&&(r=[].concat(s).concat(r)),e[o]=r}return e}if("object"!=typeof e)throw TypeError("dst must be an object");if(!t)throw TypeError("path must be specified");return n(e,t=t.split("."),r)},Object.defineProperty(o,"decorateRoot",{get:function(){return s.decorated||(s.decorated=new(r(5330)))}})},2239:function(e,t,r){e.exports=n;var i=r(3610);function n(e,t){this.lo=e>>>0,this.hi=t>>>0}var o=n.zero=new n(0,0);o.toNumber=function(){return 0},o.zzEncode=o.zzDecode=function(){return this},o.length=function(){return 1};var s=n.zeroHash="\0\0\0\0\0\0\0\0";n.fromNumber=function(e){if(0===e)return o;var t=e<0;t&&(e=-e);var r=e>>>0,i=(e-r)/0x100000000>>>0;return t&&(i=~i>>>0,r=~r>>>0,++r>0xffffffff&&(r=0,++i>0xffffffff&&(i=0))),new n(r,i)},n.from=function(e){if("number"==typeof e)return n.fromNumber(e);if(i.isString(e))if(!i.Long)return n.fromNumber(parseInt(e,10));else e=i.Long.fromString(e);return e.low||e.high?new n(e.low>>>0,e.high>>>0):o},n.prototype.toNumber=function(e){if(!e&&this.hi>>>31){var t=~this.lo+1>>>0,r=~this.hi>>>0;return t||(r=r+1>>>0),-(t+0x100000000*r)}return this.lo+0x100000000*this.hi},n.prototype.toLong=function(e){return i.Long?new i.Long(0|this.lo,0|this.hi,!!e):{low:0|this.lo,high:0|this.hi,unsigned:!!e}};var a=String.prototype.charCodeAt;n.fromHash=function(e){return e===s?o:new n((a.call(e,0)|a.call(e,1)<<8|a.call(e,2)<<16|a.call(e,3)<<24)>>>0,(a.call(e,4)|a.call(e,5)<<8|a.call(e,6)<<16|a.call(e,7)<<24)>>>0)},n.prototype.toHash=function(){return String.fromCharCode(255&this.lo,this.lo>>>8&255,this.lo>>>16&255,this.lo>>>24,255&this.hi,this.hi>>>8&255,this.hi>>>16&255,this.hi>>>24)},n.prototype.zzEncode=function(){var e=this.hi>>31;return this.hi=((this.hi<<1|this.lo>>>31)^e)>>>0,this.lo=(this.lo<<1^e)>>>0,this},n.prototype.zzDecode=function(){var e=-(1&this.lo);return this.lo=((this.lo>>>1|this.hi<<31)^e)>>>0,this.hi=(this.hi>>>1^e)>>>0,this},n.prototype.length=function(){var e=this.lo,t=(this.lo>>>28|this.hi<<4)>>>0,r=this.hi>>>24;return 0===r?0===t?e<16384?e<128?1:2:e<2097152?3:4:t<16384?t<128?5:6:t<2097152?7:8:r<128?9:10}},3610:function(e,t,r){var i=t;function n(e,t,r){for(var i=Object.keys(t),n=0;n0)},i.Buffer=function(){try{var e=i.inquire("buffer").Buffer;return e.prototype.utf8Write?e:null}catch(e){return null}}(),i._Buffer_from=null,i._Buffer_allocUnsafe=null,i.newBuffer=function(e){return"number"==typeof e?i.Buffer?i._Buffer_allocUnsafe(e):new i.Array(e):i.Buffer?i._Buffer_from(e):"undefined"==typeof Uint8Array?e:new Uint8Array(e)},i.Array="undefined"!=typeof Uint8Array?Uint8Array:Array,i.Long=i.global.dcodeIO&&i.global.dcodeIO.Long||i.global.Long||i.inquire("long"),i.key2Re=/^true|false|0|1$/,i.key32Re=/^-?(?:0|[1-9][0-9]*)$/,i.key64Re=/^(?:[\\x00-\\xff]{8}|-?(?:0|[1-9][0-9]*))$/,i.longToHash=function(e){return e?i.LongBits.from(e).toHash():i.LongBits.zeroHash},i.longFromHash=function(e,t){var r=i.LongBits.fromHash(e);return i.Long?i.Long.fromBits(r.lo,r.hi,t):r.toNumber(!!t)},i.merge=n,i.lcFirst=function(e){return e.charAt(0).toLowerCase()+e.substring(1)},i.newError=o,i.ProtocolError=o("ProtocolError"),i.oneOfGetter=function(e){for(var t={},r=0;r-1;--r)if(1===t[e[r]]&&void 0!==this[e[r]]&&null!==this[e[r]])return e[r]}},i.oneOfSetter=function(e){return function(t){for(var r=0;r127;)t[r++]=127&e|128,e>>>=7;t[r]=e}function y(e,t){this.len=e,this.next=void 0,this.val=t}function v(e,t,r){for(;e.hi;)t[r++]=127&e.lo|128,e.lo=(e.lo>>>7|e.hi<<25)>>>0,e.hi>>>=7;for(;e.lo>127;)t[r++]=127&e.lo|128,e.lo=e.lo>>>7;t[r++]=e.lo}function m(e,t,r){t[r]=255&e,t[r+1]=e>>>8&255,t[r+2]=e>>>16&255,t[r+3]=e>>>24}p.create=c(),p.alloc=function(e){return new n.Array(e)},n.Array!==Array&&(p.alloc=n.pool(p.alloc,n.Array.prototype.subarray)),p.prototype._push=function(e,t,r){return this.tail=this.tail.next=new u(e,t,r),this.len+=t,this},y.prototype=Object.create(u.prototype),y.prototype.fn=d,p.prototype.uint32=function(e){return this.len+=(this.tail=this.tail.next=new y((e>>>=0)<128?1:e<16384?2:e<2097152?3:e<0x10000000?4:5,e)).len,this},p.prototype.int32=function(e){return e<0?this._push(v,10,o.fromNumber(e)):this.uint32(e)},p.prototype.sint32=function(e){return this.uint32((e<<1^e>>31)>>>0)},p.prototype.uint64=function(e){var t=o.from(e);return this._push(v,t.length(),t)},p.prototype.int64=p.prototype.uint64,p.prototype.sint64=function(e){var t=o.from(e).zzEncode();return this._push(v,t.length(),t)},p.prototype.bool=function(e){return this._push(h,1,+!!e)},p.prototype.fixed32=function(e){return this._push(m,4,e>>>0)},p.prototype.sfixed32=p.prototype.fixed32,p.prototype.fixed64=function(e){var t=o.from(e);return this._push(m,4,t.lo)._push(m,4,t.hi)},p.prototype.sfixed64=p.prototype.fixed64,p.prototype.float=function(e){return this._push(n.float.writeFloatLE,4,e)},p.prototype.double=function(e){return this._push(n.float.writeDoubleLE,8,e)};var g=n.Array.prototype.set?function(e,t,r){t.set(e,r)}:function(e,t,r){for(var i=0;i>>0;if(!t)return this._push(h,1,0);if(n.isString(e)){var r=p.alloc(t=s.length(e));s.decode(e,r,0),e=r}return this.uint32(t)._push(g,t,e)},p.prototype.string=function(e){var t=a.length(e);return t?this.uint32(t)._push(a.write,t,e):this._push(h,1,0)},p.prototype.fork=function(){return this.states=new l(this),this.head=this.tail=new u(f,0,0),this.len=0,this},p.prototype.reset=function(){return this.states?(this.head=this.states.head,this.tail=this.states.tail,this.len=this.states.len,this.states=this.states.next):(this.head=this.tail=new u(f,0,0),this.len=0),this},p.prototype.ldelim=function(){var e=this.head,t=this.tail,r=this.len;return this.reset().uint32(r),r&&(this.tail.next=e.next,this.tail=t,this.len+=r),this},p.prototype.finish=function(){for(var e=this.head.next,t=this.constructor.alloc(this.len),r=0;e;)e.fn(e.val,t,r),r+=e.len,e=e.next;return t},p._configure=function(e){i=e,p.create=c(),i._configure()}},818:function(e,t,r){e.exports=o;var i=r(3449);(o.prototype=Object.create(i.prototype)).constructor=o;var n=r(3610);function o(){i.call(this)}function s(e,t,r){e.length<40?n.utf8.write(e,t,r):t.utf8Write?t.utf8Write(e,r):t.write(e,r)}o._configure=function(){o.alloc=n._Buffer_allocUnsafe,o.writeBytesBuffer=n.Buffer&&n.Buffer.prototype instanceof Uint8Array&&"set"===n.Buffer.prototype.set.name?function(e,t,r){t.set(e,r)}:function(e,t,r){if(e.copy)e.copy(t,r,0,e.length);else for(var i=0;i>>0;return this.uint32(t),t&&this._push(o.writeBytesBuffer,t,e),this},o.prototype.string=function(e){var t=n.Buffer.byteLength(e);return this.uint32(t),t&&this._push(s,t,e),this},o._configure()}},__webpack_module_cache__={};function __webpack_require__(e){var t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;var r=__webpack_module_cache__[e]={exports:{}};return __webpack_modules__[e].call(r.exports,r,r.exports,__webpack_require__),r.exports}var __webpack_exports__=__webpack_require__(2549);module.exports=__webpack_exports__})(); \ No newline at end of file +(()=>{"use strict";var __webpack_modules__={488:function(e){e.exports=t;function t(e,t){for(var r=Array(arguments.length-1),i=0,n=2,o=!0;n1&&"="===e.charAt(t);)++r;return Math.ceil(3*e.length)/4-r};for(var i=Array(64),n=Array(123),o=0;o<64;)n[i[o]=o<26?o+65:o<52?o+71:o<62?o-4:o-59|43]=o++;r.encode=function(e,t,r){for(var n,o=null,s=[],a=0,u=0;t>2],n=(3&f)<<4,u=1;break;case 1:s[a++]=i[n|f>>4],n=(15&f)<<2,u=2;break;case 2:s[a++]=i[n|f>>6],s[a++]=i[63&f],u=0}a>8191&&((o||(o=[])).push(String.fromCharCode.apply(String,s)),a=0)}return(u&&(s[a++]=i[n],s[a++]=61,1===u&&(s[a++]=61)),o)?(a&&o.push(String.fromCharCode.apply(String,s.slice(0,a))),o.join("")):String.fromCharCode.apply(String,s.slice(0,a))};var s="invalid encoding";r.decode=function(e,t,r){for(var i,o=r,a=0,u=0;u1)break;if(void 0===(f=n[f]))throw Error(s);switch(a){case 0:i=f,a=1;break;case 1:t[r++]=i<<2|(48&f)>>4,i=f,a=2;break;case 2:t[r++]=(15&i)<<4|(60&f)>>2,i=f,a=3;break;case 3:t[r++]=(3&i)<<6|f,a=0}}if(1===a)throw Error(s);return r-o},r.test=function(e){return/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(e)}},4604:function(e){function t(e,r){"string"==typeof e&&(r=e,e=void 0);var i=[];function n(e){if("string"!=typeof e){var r=o();if(t.verbose&&console.log("codegen: "+r),r="return "+r,e){for(var s=Object.keys(e),a=Array(s.length+1),u=Array(s.length),f=0;f0?0:0x80000000,r,i);else if(isNaN(t))e(0x7fc00000,r,i);else if(t>34028234663852886e22)e((n<<31|0x7f800000)>>>0,r,i);else if(t<11754943508222875e-54)e((n<<31|Math.round(t/1401298464324817e-60))>>>0,r,i);else{var o=Math.floor(Math.log(t)/Math.LN2),s=8388607&Math.round(t*Math.pow(2,-o)*8388608);e((n<<31|o+127<<23|s)>>>0,r,i)}}function s(e,t,r){var i=e(t,r),n=(i>>31)*2+1,o=i>>>23&255,s=8388607&i;return 255===o?s?NaN:1/0*n:0===o?1401298464324817e-60*n*s:n*Math.pow(2,o-150)*(s+8388608)}e.writeFloatLE=t.bind(null,r),e.writeFloatBE=t.bind(null,i),e.readFloatLE=s.bind(null,n),e.readFloatBE=s.bind(null,o)}(),"undefined"!=typeof Float64Array?!function(){var t=new Float64Array([-0]),r=new Uint8Array(t.buffer),i=128===r[7];function n(e,i,n){t[0]=e,i[n]=r[0],i[n+1]=r[1],i[n+2]=r[2],i[n+3]=r[3],i[n+4]=r[4],i[n+5]=r[5],i[n+6]=r[6],i[n+7]=r[7]}function o(e,i,n){t[0]=e,i[n]=r[7],i[n+1]=r[6],i[n+2]=r[5],i[n+3]=r[4],i[n+4]=r[3],i[n+5]=r[2],i[n+6]=r[1],i[n+7]=r[0]}function s(e,i){return r[0]=e[i],r[1]=e[i+1],r[2]=e[i+2],r[3]=e[i+3],r[4]=e[i+4],r[5]=e[i+5],r[6]=e[i+6],r[7]=e[i+7],t[0]}function a(e,i){return r[7]=e[i],r[6]=e[i+1],r[5]=e[i+2],r[4]=e[i+3],r[3]=e[i+4],r[2]=e[i+5],r[1]=e[i+6],r[0]=e[i+7],t[0]}e.writeDoubleLE=i?n:o,e.writeDoubleBE=i?o:n,e.readDoubleLE=i?s:a,e.readDoubleBE=i?a:s}():!function(){function t(e,t,r,i,n,o){var s,a=+(i<0);if(a&&(i=-i),0===i)e(0,n,o+t),e(1/i>0?0:0x80000000,n,o+r);else if(isNaN(i))e(0,n,o+t),e(0x7ff80000,n,o+r);else if(i>17976931348623157e292)e(0,n,o+t),e((a<<31|0x7ff00000)>>>0,n,o+r);else if(i<22250738585072014e-324)e((s=i/5e-324)>>>0,n,o+t),e((a<<31|s/0x100000000)>>>0,n,o+r);else{var u=Math.floor(Math.log(i)/Math.LN2);1024===u&&(u=1023),e(0x10000000000000*(s=i*Math.pow(2,-u))>>>0,n,o+t),e((a<<31|u+1023<<20|1048576*s&1048575)>>>0,n,o+r)}}function s(e,t,r,i,n){var o=e(i,n+t),s=e(i,n+r),a=(s>>31)*2+1,u=s>>>20&2047,f=0x100000000*(1048575&s)+o;return 2047===u?f?NaN:1/0*a:0===u?5e-324*a*f:a*Math.pow(2,u-1075)*(f+0x10000000000000)}e.writeDoubleLE=t.bind(null,r,0,4),e.writeDoubleBE=t.bind(null,i,4,0),e.readDoubleLE=s.bind(null,n,0,4),e.readDoubleBE=s.bind(null,o,4,0)}(),e}function r(e,t,r){t[r]=255&e,t[r+1]=e>>>8&255,t[r+2]=e>>>16&255,t[r+3]=e>>>24}function i(e,t,r){t[r]=e>>>24,t[r+1]=e>>>16&255,t[r+2]=e>>>8&255,t[r+3]=255&e}function n(e,t){return(e[t]|e[t+1]<<8|e[t+2]<<16|e[t+3]<<24)>>>0}function o(e,t){return(e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3])>>>0}e.exports=t(t)},1952:function(module){module.exports=inquire;function inquire(moduleName){try{var mod=eval("quire".replace(/^/,"re"))(moduleName);if(mod&&(mod.length||Object.keys(mod).length))return mod}catch(e){}return null}},8592:function(e,t){var r=t,i=r.isAbsolute=function(e){return/^(?:\/|\w+:)/.test(e)},n=r.normalize=function(e){var t=(e=e.replace(/\\/g,"/").replace(/\/{2,}/g,"/")).split("/"),r=i(e),n="";r&&(n=t.shift()+"/");for(var o=0;o0&&".."!==t[o-1]?t.splice(--o,2):r?t.splice(o,1):++o:"."===t[o]?t.splice(o,1):++o;return n+t.join("/")};r.resolve=function(e,t,r){return(r||(t=n(t)),i(t))?t:(r||(e=n(e)),(e=e.replace(/(?:\/|^)[^/]+$/,"")).length?n(e+"/"+t):t)}},3829:function(e){e.exports=t;function t(e,t,r){var i=r||8192,n=i>>>1,o=null,s=i;return function(r){if(r<1||r>n)return e(r);s+r>i&&(o=e(i),s=0);var a=t.call(o,s,s+=r);return 7&s&&(s=(7|s)+1),a}}},7800:function(e,t){var r=t;r.length=function(e){for(var t=0,r=0,i=0;i191&&i<224?o[s++]=(31&i)<<6|63&e[t++]:i>239&&i<365?(i=((7&i)<<18|(63&e[t++])<<12|(63&e[t++])<<6|63&e[t++])-65536,o[s++]=55296+(i>>10),o[s++]=56320+(1023&i)):o[s++]=(15&i)<<12|(63&e[t++])<<6|63&e[t++],s>8191&&((n||(n=[])).push(String.fromCharCode.apply(String,o)),s=0);return n?(s&&n.push(String.fromCharCode.apply(String,o.slice(0,s))),n.join("")):String.fromCharCode.apply(String,o.slice(0,s))},r.write=function(e,t,r){for(var i,n,o=r,s=0;s>6|192:((64512&i)==55296&&(64512&(n=e.charCodeAt(s+1)))==56320?(i=65536+((1023&i)<<10)+(1023&n),++s,t[r++]=i>>18|240,t[r++]=i>>12&63|128):t[r++]=i>>12|224,t[r++]=i>>6&63|128),t[r++]=63&i|128);return r-o}},4026:function(e,t,r){e.exports=r(1203)},5722:function(e){e.exports=i;var t,r=/\/|\./;function i(e,t){r.test(e)||(e="google/protobuf/"+e+".proto",t={nested:{google:{nested:{protobuf:{nested:t}}}}}),i[e]=t}i("any",{Any:{fields:{type_url:{type:"string",id:1},value:{type:"bytes",id:2}}}}),i("duration",{Duration:t={fields:{seconds:{type:"int64",id:1},nanos:{type:"int32",id:2}}}}),i("timestamp",{Timestamp:t}),i("empty",{Empty:{fields:{}}}),i("struct",{Struct:{fields:{fields:{keyType:"string",type:"Value",id:1}}},Value:{oneofs:{kind:{oneof:["nullValue","numberValue","stringValue","boolValue","structValue","listValue"]}},fields:{nullValue:{type:"NullValue",id:1},numberValue:{type:"double",id:2},stringValue:{type:"string",id:3},boolValue:{type:"bool",id:4},structValue:{type:"Struct",id:5},listValue:{type:"ListValue",id:6}}},NullValue:{values:{NULL_VALUE:0}},ListValue:{fields:{values:{rule:"repeated",type:"Value",id:1}}}}),i("wrappers",{DoubleValue:{fields:{value:{type:"double",id:1}}},FloatValue:{fields:{value:{type:"float",id:1}}},Int64Value:{fields:{value:{type:"int64",id:1}}},UInt64Value:{fields:{value:{type:"uint64",id:1}}},Int32Value:{fields:{value:{type:"int32",id:1}}},UInt32Value:{fields:{value:{type:"uint32",id:1}}},BoolValue:{fields:{value:{type:"bool",id:1}}},StringValue:{fields:{value:{type:"string",id:1}}},BytesValue:{fields:{value:{type:"bytes",id:1}}}}),i("field_mask",{FieldMask:{fields:{paths:{rule:"repeated",type:"string",id:1}}}}),i.get=function(e){return i[e]||null}},5603:function(e,t,r){var i=t,n=r(1918),o=r(7899);function s(e,t,r,i){var o=!1;if(t.resolvedType)if(t.resolvedType instanceof n){e("switch(d%s){",i);for(var s=t.resolvedType.values,a=Object.keys(s),u=0;u>>0",i,i);break;case"int32":case"sint32":case"sfixed32":e("m%s=d%s|0",i,i);break;case"uint64":f=!0;case"int64":case"sint64":case"fixed64":case"sfixed64":e("if(util.Long)")("(m%s=util.Long.fromValue(d%s)).unsigned=%j",i,i,f)('else if(typeof d%s==="string")',i)("m%s=parseInt(d%s,10)",i,i)('else if(typeof d%s==="number")',i)("m%s=d%s",i,i)('else if(typeof d%s==="object")',i)("m%s=new util.LongBits(d%s.low>>>0,d%s.high>>>0).toNumber(%s)",i,i,i,f?"true":"");break;case"bytes":e('if(typeof d%s==="string")',i)("util.base64.decode(d%s,m%s=util.newBuffer(util.base64.length(d%s)),0)",i,i,i)("else if(d%s.length >= 0)",i)("m%s=d%s",i,i);break;case"string":e("m%s=String(d%s)",i,i);break;case"bool":e("m%s=Boolean(d%s)",i,i)}}return e}function a(e,t,r,i){if(t.resolvedType)t.resolvedType instanceof n?e("d%s=o.enums===String?(types[%i].values[m%s]===undefined?m%s:types[%i].values[m%s]):m%s",i,r,i,i,r,i,i):e("d%s=types[%i].toObject(m%s,o)",i,r,i);else{var o=!1;switch(t.type){case"double":case"float":e("d%s=o.json&&!isFinite(m%s)?String(m%s):m%s",i,i,i,i);break;case"uint64":o=!0;case"int64":case"sint64":case"fixed64":case"sfixed64":e('if(typeof m%s==="number")',i)("d%s=o.longs===String?String(m%s):m%s",i,i,i)("else")("d%s=o.longs===String?util.Long.prototype.toString.call(m%s):o.longs===Number?new util.LongBits(m%s.low>>>0,m%s.high>>>0).toNumber(%s):m%s",i,i,i,i,o?"true":"",i);break;case"bytes":e("d%s=o.bytes===String?util.base64.encode(m%s,0,m%s.length):o.bytes===Array?Array.prototype.slice.call(m%s):m%s",i,i,i,i,i);break;default:e("d%s=m%s",i,i)}}return e}i.fromObject=function(e){var t=e.fieldsArray,r=o.codegen(["d"],e.name+"$fromObject")("if(d instanceof this.ctor)")("return d");if(!t.length)return r("return new this.ctor");r("var m=new this.ctor");for(var i=0;i>>3){"),r=0;r>>3){")("case 1: k=r.%s(); break",a.keyType)("case 2:"),void 0===n.basic[u]?t("value=types[%i].decode(r,r.uint32())",r):t("value=r.%s()",u),t("break")("default:")("r.skipType(tag2&7)")("break")("}")("}"),void 0!==n.long[a.keyType]?t('%s[typeof k==="object"?util.longToHash(k):k]=value',f):t("%s[k]=value",f)):a.repeated?(t("if(!(%s&&%s.length))",f,f)("%s=[]",f),void 0!==n.packed[u]&&t("if((t&7)===2){")("var c2=r.uint32()+r.pos")("while(r.pos>>0,(t.id<<3|4)>>>0):e("types[%i].encode(%s,w.uint32(%i).fork()).ldelim()",r,i,(t.id<<3|2)>>>0)}function a(e){for(var t,r,a=o.codegen(["m","w"],e.name+"$encode")("if(!w)")("w=Writer.create()"),u=e.fieldsArray.slice().sort(o.compareFieldsById),t=0;t>>0,8|n.mapKey[f.keyType],f.keyType),void 0===c?a("types[%i].encode(%s[ks[i]],w.uint32(18).fork()).ldelim().ldelim()",l,r):a(".uint32(%i).%s(%s[ks[i]]).ldelim()",16|c,p,r),a("}")("}")):f.repeated?(a("if(%s!=null&&%s.length){",r,r),f.packed&&void 0!==n.packed[p]?a("w.uint32(%i).fork()",(f.id<<3|2)>>>0)("for(var i=0;i<%s.length;++i)",r)("w.%s(%s[i])",p,r)("w.ldelim()"):(a("for(var i=0;i<%s.length;++i)",r),void 0===c?s(a,f,l,r+"[i]"):a("w.uint32(%i).%s(%s[i])",(f.id<<3|c)>>>0,p,r)),a("}")):(f.optional&&a("if(%s!=null&&Object.hasOwnProperty.call(m,%j))",r,f.name),void 0===c?s(a,f,l,r):a("w.uint32(%i).%s(%s)",(f.id<<3|c)>>>0,p,r))}return a("return w")}},1918:function(e,t,r){e.exports=s;var i=r(7388);((s.prototype=Object.create(i.prototype)).constructor=s).className="Enum";var n=r(7220),o=r(7899);function s(e,t,r,n,o,s){if(i.call(this,e,r),t&&"object"!=typeof t)throw TypeError("values must be an object");if(this.valuesById={},this.values=Object.create(this.valuesById),this.comment=n,this.comments=o||{},this.valuesOptions=s,this._valuesFeatures={},this.reserved=void 0,t)for(var a=Object.keys(t),u=0;u{var t=Object.assign({},this._features);this._valuesFeatures[e]=Object.assign(t,this.valuesOptions&&this.valuesOptions[e]&&this.valuesOptions[e].features)}),this},s.fromJSON=function(e,t){var r=new s(e,t.values,t.options,t.comment,t.comments);return r.reserved=t.reserved,t.edition&&(r._edition=t.edition),r._defaultEdition="proto3",r},s.prototype.toJSON=function(e){var t=!!e&&!!e.keepComments;return o.toObject(["edition",this._editionToJSON(),"options",this.options,"valuesOptions",this.valuesOptions,"values",this.values,"reserved",this.reserved&&this.reserved.length?this.reserved:void 0,"comment",t?this.comment:void 0,"comments",t?this.comments:void 0])},s.prototype.add=function(e,t,r,i){if(!o.isString(e))throw TypeError("name must be a string");if(!o.isInteger(t))throw TypeError("id must be an integer");if(void 0!==this.values[e])throw Error("duplicate name '"+e+"' in "+this);if(this.isReservedId(t))throw Error("id "+t+" is reserved in "+this);if(this.isReservedName(e))throw Error("name '"+e+"' is reserved in "+this);if(void 0!==this.valuesById[t]){if(!(this.options&&this.options.allow_alias))throw Error("duplicate id "+t+" in "+this);this.values[e]=t}else this.valuesById[this.values[e]=t]=e;return i&&(void 0===this.valuesOptions&&(this.valuesOptions={}),this.valuesOptions[e]=i||null),this.comments[e]=r||null,this},s.prototype.remove=function(e){if(!o.isString(e))throw TypeError("name must be a string");var t=this.values[e];if(null==t)throw Error("name '"+e+"' does not exist in "+this);return delete this.valuesById[t],delete this.values[e],delete this.comments[e],this.valuesOptions&&delete this.valuesOptions[e],this},s.prototype.isReservedId=function(e){return n.isReservedId(this.reserved,e)},s.prototype.isReservedName=function(e){return n.isReservedName(this.reserved,e)}},7835:function(e,t,r){e.exports=f;var i,n=r(7388);((f.prototype=Object.create(n.prototype)).constructor=f).className="Field";var o=r(1918),s=r(5586),a=r(7899),u=/^required|optional|repeated$/;function f(e,t,r,i,o,f,l){if(a.isObject(i)?(l=o,f=i,i=o=void 0):a.isObject(o)&&(l=f,f=o,o=void 0),n.call(this,e,f),!a.isInteger(t)||t<0)throw TypeError("id must be a non-negative integer");if(!a.isString(r))throw TypeError("type must be a string");if(void 0!==i&&!u.test(i=i.toString().toLowerCase()))throw TypeError("rule must be a string rule");if(void 0!==o&&!a.isString(o))throw TypeError("extend must be a string");"proto3_optional"===i&&(i="optional"),this.rule=i&&"optional"!==i?i:void 0,this.type=r,this.id=t,this.extend=o||void 0,this.repeated="repeated"===i,this.map=!1,this.message=null,this.partOf=null,this.typeDefault=null,this.defaultValue=null,this.long=!!a.Long&&void 0!==s.long[r],this.bytes="bytes"===r,this.resolvedType=null,this.extensionField=null,this.declaringField=null,this.comment=l}f.fromJSON=function(e,t){var r=new f(e,t.id,t.type,t.rule,t.extend,t.options,t.comment);return t.edition&&(r._edition=t.edition),r._defaultEdition="proto3",r},Object.defineProperty(f.prototype,"required",{get:function(){return"LEGACY_REQUIRED"===this._features.field_presence}}),Object.defineProperty(f.prototype,"optional",{get:function(){return!this.required}}),Object.defineProperty(f.prototype,"delimited",{get:function(){return this.resolvedType instanceof i&&"DELIMITED"===this._features.message_encoding}}),Object.defineProperty(f.prototype,"packed",{get:function(){return"PACKED"===this._features.repeated_field_encoding}}),Object.defineProperty(f.prototype,"hasPresence",{get:function(){return!this.repeated&&!this.map&&(this.partOf||this.declaringField||this.extensionField||"IMPLICIT"!==this._features.field_presence)}}),f.prototype.setOption=function(e,t,r){return n.prototype.setOption.call(this,e,t,r)},f.prototype.toJSON=function(e){var t=!!e&&!!e.keepComments;return a.toObject(["edition",this._editionToJSON(),"rule","optional"!==this.rule&&this.rule||void 0,"type",this.type,"id",this.id,"extend",this.extend,"options",this.options,"comment",t?this.comment:void 0])},f.prototype.resolve=function(){if(this.resolved)return this;if(void 0===(this.typeDefault=s.defaults[this.type])?(this.resolvedType=(this.declaringField?this.declaringField.parent:this.parent).lookupTypeOrEnum(this.type),this.resolvedType instanceof i?this.typeDefault=null:this.typeDefault=this.resolvedType.values[Object.keys(this.resolvedType.values)[0]]):this.options&&this.options.proto3_optional&&(this.typeDefault=null),this.options&&null!=this.options.default&&(this.typeDefault=this.options.default,this.resolvedType instanceof o&&"string"==typeof this.typeDefault&&(this.typeDefault=this.resolvedType.values[this.typeDefault])),this.options&&(void 0===this.options.packed||!this.resolvedType||this.resolvedType instanceof o||delete this.options.packed,Object.keys(this.options).length||(this.options=void 0)),this.long)this.typeDefault=a.Long.fromNumber(this.typeDefault,"u"===this.type.charAt(0)),Object.freeze&&Object.freeze(this.typeDefault);else if(this.bytes&&"string"==typeof this.typeDefault){var e;a.base64.test(this.typeDefault)?a.base64.decode(this.typeDefault,e=a.newBuffer(a.base64.length(this.typeDefault)),0):a.utf8.write(this.typeDefault,e=a.newBuffer(a.utf8.length(this.typeDefault)),0),this.typeDefault=e}return this.map?this.defaultValue=a.emptyObject:this.repeated?this.defaultValue=a.emptyArray:this.defaultValue=this.typeDefault,this.parent instanceof i&&(this.parent.ctor.prototype[this.name]=this.defaultValue),n.prototype.resolve.call(this)},f.prototype._inferLegacyProtoFeatures=function(e){if("proto2"!==e&&"proto3"!==e)return{};var t={};if("required"===this.rule&&(t.field_presence="LEGACY_REQUIRED"),this.parent&&void 0===s.defaults[this.type]){var r=this.parent.get(this.type.split(".").pop());r&&r instanceof i&&r.group&&(t.message_encoding="DELIMITED")}return!0===this.getOption("packed")?t.repeated_field_encoding="PACKED":!1===this.getOption("packed")&&(t.repeated_field_encoding="EXPANDED"),t},f.prototype._resolveFeatures=function(e){return n.prototype._resolveFeatures.call(this,this._edition||e)},f.d=function(e,t,r,i){return"function"==typeof t?t=a.decorateType(t).name:t&&"object"==typeof t&&(t=a.decorateEnum(t).name),function(n,o){a.decorateType(n.constructor).add(new f(o,e,t,r,{default:i}))}},f._configure=function(e){i=e}},8926:function(e,t,r){var i=e.exports=r(233);function n(e,t,r){return"function"==typeof t?(r=t,t=new i.Root):t||(t=new i.Root),t.load(e,r)}function o(e,t){return t||(t=new i.Root),t.loadSync(e)}i.build="light",i.load=n,i.loadSync=o,i.encoder=r(8775),i.decoder=r(2655),i.verifier=r(2233),i.converter=r(5603),i.ReflectionObject=r(7388),i.Namespace=r(7220),i.Root=r(8335),i.Enum=r(1918),i.Type=r(3047),i.Field=r(7835),i.OneOf=r(7158),i.MapField=r(6941),i.Service=r(1144),i.Method=r(9282),i.Message=r(3468),i.wrappers=r(5591),i.types=r(5586),i.util=r(7899),i.ReflectionObject._configure(i.Root),i.Namespace._configure(i.Type,i.Service,i.Enum),i.Root._configure(i.Type),i.Field._configure(i.Type)},233:function(e,t,r){var i=t;function n(){i.util._configure(),i.Writer._configure(i.BufferWriter),i.Reader._configure(i.BufferReader)}i.build="minimal",i.Writer=r(8332),i.BufferWriter=r(1405),i.Reader=r(624),i.BufferReader=r(753),i.util=r(6339),i.rpc=r(7168),i.roots=r(9818),i.configure=n,n()},1203:function(e,t,r){var i=e.exports=r(8926);i.build="full",i.tokenize=r(6502),i.parse=r(6348),i.common=r(5722),i.Root._configure(i.Type,i.parse,i.common)},6941:function(e,t,r){e.exports=s;var i=r(7835);((s.prototype=Object.create(i.prototype)).constructor=s).className="MapField";var n=r(5586),o=r(7899);function s(e,t,r,n,s,a){if(i.call(this,e,t,n,void 0,void 0,s,a),!o.isString(r))throw TypeError("keyType must be a string");this.keyType=r,this.resolvedKeyType=null,this.map=!0}s.fromJSON=function(e,t){return new s(e,t.id,t.keyType,t.type,t.options,t.comment)},s.prototype.toJSON=function(e){var t=!!e&&!!e.keepComments;return o.toObject(["keyType",this.keyType,"type",this.type,"id",this.id,"extend",this.extend,"options",this.options,"comment",t?this.comment:void 0])},s.prototype.resolve=function(){if(this.resolved)return this;if(void 0===n.mapKey[this.keyType])throw Error("invalid key type: "+this.keyType);return i.prototype.resolve.call(this)},s.d=function(e,t,r){return"function"==typeof r?r=o.decorateType(r).name:r&&"object"==typeof r&&(r=o.decorateEnum(r).name),function(i,n){o.decorateType(i.constructor).add(new s(n,e,t,r))}}},3468:function(e,t,r){e.exports=n;var i=r(6339);function n(e){if(e)for(var t=Object.keys(e),r=0;rt)return!0}return!1},p.isReservedName=function(e,t){if(e){for(var r=0;r0;){var i=e.shift();if(r.nested&&r.nested[i]){if(!((r=r.nested[i])instanceof p))throw Error("path conflicts with non-namespace objects")}else r.add(r=new p(i))}return t&&r.addJSON(t),r},p.prototype.resolveAll=function(){if(!this._needsRecursiveResolve)return this;this._resolveFeaturesRecursive(this._edition);var e=this.nestedArray,t=0;for(this.resolve();t{t._resolveFeaturesRecursive(e)})),this},p.prototype.lookup=function(e,t,r){if("boolean"==typeof t?(r=t,t=void 0):t&&!Array.isArray(t)&&(t=[t]),u.isString(e)&&e.length){if("."===e)return this.root;e=e.split(".")}else if(!e.length)return this;var i=e.join(".");if(""===e[0])return this.root.lookup(e.slice(1),t);var n=this.root._fullyQualifiedObjects&&this.root._fullyQualifiedObjects["."+i];if(n&&(!t||t.indexOf(n.constructor)>-1)||(n=this._lookupImpl(e,i))&&(!t||t.indexOf(n.constructor)>-1))return n;if(r)return null;for(var o=this;o.parent;){if((n=o.parent._lookupImpl(e,i))&&(!t||t.indexOf(n.constructor)>-1))return n;o=o.parent}return null},p.prototype._lookupImpl=function(e,t){if(Object.prototype.hasOwnProperty.call(this._lookupCache,t))return this._lookupCache[t];var r=this.get(e[0]),i=null;if(r)1===e.length?i=r:r instanceof p&&(e=e.slice(1),i=r._lookupImpl(e,e.join(".")));else for(var n=0;n-1&&this.oneof.splice(t,1),e.partOf=null,this},s.prototype.onAdd=function(e){i.prototype.onAdd.call(this,e);for(var t=this,r=0;r{e._edition=L,Object.keys($).forEach(t=>{void 0===e.getOption(t)&&e.setOption(t,$[t],!0)})})}function q(e,t,r){var i=k.filename;return r||(k.filename=null),Error("illegal "+(t||"token")+" '"+e+"' ("+(i?i+", ":"")+"line "+N.line+")")}function z(){var e,t=[];do{if('"'!==(e=R())&&"'"!==e)throw q(e);t.push(R()),B(e),e=I()}while('"'===e||"'"===e);return t.join("")}function U(e){var t=R();switch(t){case"'":case'"':return F(t),z();case"true":case"TRUE":return!0;case"false":case"FALSE":return!1}try{return W(t,!0)}catch(r){if(e&&j.test(t))return t;throw q(t,"value")}}function H(e,t){do if(t&&('"'===(r=I())||"'"===r)){var r,i,n=z();if(e.push(n),L>=2023)throw q(n,"id")}else try{e.push([i=G(R()),B("to",!0)?G(R()):i])}catch(i){if(t&&j.test(r)&&L>=2023)e.push(r);else throw i}while(B(",",!0));var o={options:void 0};o.setOption=function(e,t){void 0===this.options&&(this.options={}),this.options[e]=t},ee(o,function(e){if("option"===e)eu(o,e),B(";");else throw q(e)},function(){ec(o)})}function W(e,t){var r=1;switch("-"===e.charAt(0)&&(r=-1,e=e.substring(1)),e){case"inf":case"INF":case"Inf":return 1/0*r;case"nan":case"NAN":case"Nan":case"NaN":return NaN;case"0":return 0}if(y.test(e))return r*parseInt(e,10);if(m.test(e))return r*parseInt(e,16);if(b.test(e))return r*parseInt(e,8);if(O.test(e))return r*parseFloat(e);throw q(e,"number",t)}function G(e,t){switch(e){case"max":case"MAX":case"Max":return 0x1fffffff;case"0":return 0}if(!t&&"-"===e.charAt(0))throw q(e,"id");if(v.test(e))return parseInt(e,10);if(g.test(e))return parseInt(e,16);if(w.test(e))return parseInt(e,8);throw q(e,"id")}function X(){if(void 0!==x)throw q("package");if(x=R(),!j.test(x))throw q(x,"name");C=C.define(x),B(";")}function Z(){var e,t=I();switch(t){case"weak":e=S||(S=[]),R();break;case"public":R();default:e=E||(E=[])}t=z(),B(";"),e.push(t)}function K(){if(B("="),(L=z())<2023)throw q(L,"syntax");B(";")}function Q(){if(B("="),!["2023"].includes(L=z()))throw q(L,"edition");B(";")}function Y(e,t){switch(t){case"option":return eu(e,t),B(";"),!0;case"message":return et(e,t),!0;case"enum":return es(e,t),!0;case"service":return eh(e,t),!0;case"extend":return ey(e,t),!0}return!1}function ee(e,t,r){var i,n=N.line;if(e&&("string"!=typeof e.comment&&(e.comment=P()),e.filename=k.filename),B("{",!0)){for(;"}"!==(i=R());)t(i);B(";",!0)}else r&&r(),B(";"),e&&("string"!=typeof e.comment||T)&&(e.comment=P(n)||e.comment)}function et(e,t){if(!_.test(t=R()))throw q(t,"type name");var r=new o(t);ee(r,function(e){if(!Y(r,e))switch(e){case"map":en(r,e);break;case"required":if("proto2"!==L)throw q(e);case"repeated":er(r,e);break;case"optional":if("proto3"===L)er(r,"proto3_optional");else if("proto2"!==L)throw q(e);else er(r,"optional");break;case"oneof":eo(r,e);break;case"extensions":H(r.extensions||(r.extensions=[]));break;case"reserved":H(r.reserved||(r.reserved=[]),!0);break;default:if("proto2"===L||!j.test(e))throw q(e);F(e),er(r,"optional")}}),e.add(r),e===C&&J.push(r)}function er(e,t,r){var i=R();if("group"===i)return void ei(e,t);for(;i.endsWith(".")||I().startsWith(".");)i+=R();if(!j.test(i))throw q(i,"type");var n=R();if(!_.test(n))throw q(n,"name");n=V(n),B("=");var o=new s(n,G(R()),i,t,r);if(ee(o,function(e){if("option"===e)eu(o,e),B(";");else throw q(e)},function(){ec(o)}),"proto3_optional"===t){var a=new u("_"+n);o.setOption("proto3_optional",!0),a.add(o),e.add(a)}else e.add(o);e===C&&J.push(o)}function ei(e,t){if(L>=2023)throw q("group");var r=R();if(!_.test(r))throw q(r,"name");var i=d.lcFirst(r);r===i&&(r=d.ucFirst(r)),B("=");var n=G(R()),a=new o(r);a.group=!0;var u=new s(i,n,r,t);u.filename=k.filename,ee(a,function(e){switch(e){case"option":eu(a,e),B(";");break;case"required":case"repeated":er(a,e);break;case"optional":"proto3"===L?er(a,"proto3_optional"):er(a,"optional");break;case"message":et(a,e);break;case"enum":es(a,e);break;case"reserved":H(a.reserved||(a.reserved=[]),!0);break;default:throw q(e)}}),e.add(a).add(u)}function en(e){B("<");var t=R();if(void 0===h.mapKey[t])throw q(t,"type");B(",");var r=R();if(!j.test(r))throw q(r,"type");B(">");var i=R();if(!_.test(i))throw q(i,"name");B("=");var n=new a(V(i),G(R()),t,r);ee(n,function(e){if("option"===e)eu(n,e),B(";");else throw q(e)},function(){ec(n)}),e.add(n)}function eo(e,t){if(!_.test(t=R()))throw q(t,"name");var r=new u(V(t));ee(r,function(e){"option"===e?(eu(r,e),B(";")):(F(e),er(r,"optional"))}),e.add(r)}function es(e,t){if(!_.test(t=R()))throw q(t,"name");var r=new f(t);ee(r,function(e){switch(e){case"option":eu(r,e),B(";");break;case"reserved":H(r.reserved||(r.reserved=[]),!0),void 0===r.reserved&&(r.reserved=[]);break;default:ea(r,e)}}),e.add(r),e===C&&J.push(r)}function ea(e,t){if(!_.test(t))throw q(t,"name");B("=");var r=G(R(),!0),i={options:void 0};i.getOption=function(e){return this.options[e]},i.setOption=function(e,t){c.prototype.setOption.call(i,e,t)},i.setParsedOption=function(){},ee(i,function(e){if("option"===e)eu(i,e),B(";");else throw q(e)},function(){ec(i)}),e.add(t,r,i.comment,i.parsedOptions||i.options)}function eu(e,t){var r,i,n=!0;for("option"===t&&(t=R());"="!==t;){if("("===t){var o=R();B(")"),t="("+o+")"}if(n){if(n=!1,t.includes(".")&&!t.includes("(")){var s=t.split(".");r=s[0]+".",t=s[1];continue}r=t}else i=i?i+=t:t;t=R()}var a=ef(e,i?r.concat(i):r);i=i&&"."===i[0]?i.slice(1):i,ep(e,r=r&&"."===r[r.length-1]?r.slice(0,-1):r,a,i)}function ef(e,t){if(B("{",!0)){for(var r={};!B("}",!0);){if(!_.test(A=R()))throw q(A,"name");if(null===A)throw q(A,"end of input");var i,n,o=A;if(B(":",!0),"{"===I())i=ef(e,t+"."+A);else if("["===I()){if(i=[],B("[",!0)){do n=U(!0),i.push(n);while(B(",",!0));B("]"),void 0!==n&&el(e,t+"."+A,n)}}else i=U(!0),el(e,t+"."+A,i);var s=r[o];s&&(i=[].concat(s).concat(i)),r[o]=i,B(",",!0),B(";",!0)}return r}var a=U(!0);return el(e,t,a),a}function el(e,t,r){if(C===e&&/^features\./.test(t)){$[t]=r;return}e.setOption&&e.setOption(t,r)}function ep(e,t,r,i){e.setParsedOption&&e.setParsedOption(t,r,i)}function ec(e){if(B("[",!0)){do eu(e,"option");while(B(",",!0));B("]")}return e}function eh(e,t){if(!_.test(t=R()))throw q(t,"service name");var r=new l(t);ee(r,function(e){if(!Y(r,e))if("rpc"===e)ed(r,e);else throw q(e)}),e.add(r),e===C&&J.push(r)}function ed(e,t){var r=P(),i=t;if(!_.test(t=R()))throw q(t,"name");var n,o,s,a,u=t;if(B("("),B("stream",!0)&&(o=!0),!j.test(t=R())||(n=t,B(")"),B("returns"),B("("),B("stream",!0)&&(a=!0),!j.test(t=R())))throw q(t);s=t,B(")");var f=new p(u,i,n,s,o,a);f.comment=r,ee(f,function(e){if("option"===e)eu(f,e),B(";");else throw q(e)}),e.add(f)}function ey(e,t){if(!j.test(t=R()))throw q(t,"reference");var r=t;ee(null,function(t){switch(t){case"required":case"repeated":er(e,t,r);break;case"optional":"proto3"===L?er(e,"proto3_optional",r):er(e,"optional",r);break;default:if("proto2"===L||!j.test(t))throw q(t);F(t),er(e,"optional",r)}})}for(;null!==(A=R());)switch(A){case"package":if(!D)throw q(A);X();break;case"import":if(!D)throw q(A);Z();break;case"syntax":if(!D)throw q(A);K();break;case"edition":if(!D)throw q(A);Q();break;case"option":eu(C,A),B(";",!0);break;default:if(Y(C,A)){D=!1;continue}throw q(A)}return M(),k.filename=null,{package:x,imports:E,weakImports:S,root:t}}},624:function(e,t,r){e.exports=u;var i,n=r(6339),o=n.LongBits,s=n.utf8;function a(e,t){return RangeError("index out of range: "+e.pos+" + "+(t||1)+" > "+e.len)}function u(e){this.buf=e,this.pos=0,this.len=e.length}var f="undefined"!=typeof Uint8Array?function(e){if(e instanceof Uint8Array||Array.isArray(e))return new u(e);throw Error("illegal buffer")}:function(e){if(Array.isArray(e))return new u(e);throw Error("illegal buffer")},l=function(){return n.Buffer?function(e){return(u.create=function(e){return n.Buffer.isBuffer(e)?new i(e):f(e)})(e)}:f};function p(){var e=new o(0,0),t=0;if(this.len-this.pos>4){for(;t<4;++t)if(e.lo=(e.lo|(127&this.buf[this.pos])<<7*t)>>>0,this.buf[this.pos++]<128)return e;if(e.lo=(e.lo|(127&this.buf[this.pos])<<28)>>>0,e.hi=(e.hi|(127&this.buf[this.pos])>>4)>>>0,this.buf[this.pos++]<128)return e;t=0}else{for(;t<3;++t){if(this.pos>=this.len)throw a(this);if(e.lo=(e.lo|(127&this.buf[this.pos])<<7*t)>>>0,this.buf[this.pos++]<128)return e}return e.lo=(e.lo|(127&this.buf[this.pos++])<<7*t)>>>0,e}if(this.len-this.pos>4){for(;t<5;++t)if(e.hi=(e.hi|(127&this.buf[this.pos])<<7*t+3)>>>0,this.buf[this.pos++]<128)return e}else for(;t<5;++t){if(this.pos>=this.len)throw a(this);if(e.hi=(e.hi|(127&this.buf[this.pos])<<7*t+3)>>>0,this.buf[this.pos++]<128)return e}throw Error("invalid varint encoding")}function c(e,t){return(e[t-4]|e[t-3]<<8|e[t-2]<<16|e[t-1]<<24)>>>0}function h(){if(this.pos+8>this.len)throw a(this,8);return new o(c(this.buf,this.pos+=4),c(this.buf,this.pos+=4))}u.create=l(),u.prototype._slice=n.Array.prototype.subarray||n.Array.prototype.slice,u.prototype.uint32=function(){var e=0xffffffff;return function(){if(e=(127&this.buf[this.pos])>>>0,this.buf[this.pos++]<128||(e=(e|(127&this.buf[this.pos])<<7)>>>0,this.buf[this.pos++]<128)||(e=(e|(127&this.buf[this.pos])<<14)>>>0,this.buf[this.pos++]<128)||(e=(e|(127&this.buf[this.pos])<<21)>>>0,this.buf[this.pos++]<128)||(e=(e|(15&this.buf[this.pos])<<28)>>>0,this.buf[this.pos++]<128))return e;if((this.pos+=5)>this.len)throw this.pos=this.len,a(this,10);return e}}(),u.prototype.int32=function(){return 0|this.uint32()},u.prototype.sint32=function(){var e=this.uint32();return e>>>1^-(1&e)},u.prototype.bool=function(){return 0!==this.uint32()},u.prototype.fixed32=function(){if(this.pos+4>this.len)throw a(this,4);return c(this.buf,this.pos+=4)},u.prototype.sfixed32=function(){if(this.pos+4>this.len)throw a(this,4);return 0|c(this.buf,this.pos+=4)},u.prototype.float=function(){if(this.pos+4>this.len)throw a(this,4);var e=n.float.readFloatLE(this.buf,this.pos);return this.pos+=4,e},u.prototype.double=function(){if(this.pos+8>this.len)throw a(this,4);var e=n.float.readDoubleLE(this.buf,this.pos);return this.pos+=8,e},u.prototype.bytes=function(){var e=this.uint32(),t=this.pos,r=this.pos+e;if(r>this.len)throw a(this,e);if(this.pos+=e,Array.isArray(this.buf))return this.buf.slice(t,r);if(t===r){var i=n.Buffer;return i?i.alloc(0):new this.buf.constructor(0)}return this._slice.call(this.buf,t,r)},u.prototype.string=function(){var e=this.bytes();return s.read(e,0,e.length)},u.prototype.skip=function(e){if("number"==typeof e){if(this.pos+e>this.len)throw a(this,e);this.pos+=e}else do if(this.pos>=this.len)throw a(this);while(128&this.buf[this.pos++]);return this},u.prototype.skipType=function(e){switch(e){case 0:this.skip();break;case 1:this.skip(8);break;case 2:this.skip(this.uint32());break;case 3:for(;4!=(e=7&this.uint32());)this.skipType(e);break;case 5:this.skip(4);break;default:throw Error("invalid wire type "+e+" at offset "+this.pos)}return this},u._configure=function(e){i=e,u.create=l(),i._configure();var t=n.Long?"toLong":"toNumber";n.merge(u.prototype,{int64:function(){return p.call(this)[t](!1)},uint64:function(){return p.call(this)[t](!0)},sint64:function(){return p.call(this).zzDecode()[t](!1)},fixed64:function(){return h.call(this)[t](!0)},sfixed64:function(){return h.call(this)[t](!1)}})}},753:function(e,t,r){e.exports=o;var i=r(624);(o.prototype=Object.create(i.prototype)).constructor=o;var n=r(6339);function o(e){i.call(this,e)}o._configure=function(){n.Buffer&&(o.prototype._slice=n.Buffer.prototype.slice)},o.prototype.string=function(){var e=this.uint32();return this.buf.utf8Slice?this.buf.utf8Slice(this.pos,this.pos=Math.min(this.pos+e,this.len)):this.buf.toString("utf-8",this.pos,this.pos=Math.min(this.pos+e,this.len))},o._configure()},8335:function(e,t,r){e.exports=p;var i,n,o,s=r(7220);((p.prototype=Object.create(s.prototype)).constructor=p).className="Root";var a=r(7835),u=r(1918),f=r(7158),l=r(7899);function p(e){s.call(this,"",e),this.deferred=[],this.files=[],this._edition="proto2",this._fullyQualifiedObjects={}}function c(){}p.fromJSON=function(e,t){return t||(t=new p),e.options&&t.setOptions(e.options),t.addJSON(e.nested).resolveAll()},p.prototype.resolvePath=l.path.resolve,p.prototype.fetch=l.fetch,p.prototype.load=function e(t,r,i){"function"==typeof r&&(i=r,r=void 0);var s=this;if(!i)return l.asPromise(e,s,t,r);var a=i===c;function u(e,t){if(i){if(a)throw e;t&&t.resolveAll();var r=i;i=null,r(e,t)}}function f(e){var t=e.lastIndexOf("google/protobuf/");if(t>-1){var r=e.substring(t);if(r in o)return r}return null}function p(e,t){try{if(l.isString(t)&&"{"===t.charAt(0)&&(t=JSON.parse(t)),l.isString(t)){n.filename=e;var i,o=n(t,s,r),p=0;if(o.imports)for(;p-1)){if(s.files.push(e),e in o)return void(a?p(e,o[e]):(++d,setTimeout(function(){--d,p(e,o[e])})));if(a){var r;try{r=l.fs.readFileSync(e).toString("utf8")}catch(e){t||u(e);return}p(e,r)}else++d,s.fetch(e,function(r,n){if(--d,i){if(r)return void(t?d||u(null,s):u(r));p(e,n)}})}}var d=0;l.isString(t)&&(t=[t]);for(var y,v=0;v-1&&this.deferred.splice(t,1)}}else if(e instanceof u)h.test(e.name)&&delete e.parent[e.name];else if(e instanceof s){for(var r=0;r{t._resolveFeaturesRecursive(e)})),this},a.prototype.add=function(e){if(this.get(e.name))throw Error("duplicate name '"+e.name+"' in "+this);return e instanceof n?(this.methods[e.name]=e,e.parent=this,u(this)):i.prototype.add.call(this,e)},a.prototype.remove=function(e){if(e instanceof n){if(this.methods[e.name]!==e)throw Error(e+" is not a member of "+this);return delete this.methods[e.name],e.parent=null,u(this)}return i.prototype.remove.call(this,e)},a.prototype.create=function(e,t,r){for(var i,n=new s.Service(e,t,r),a=0;a]/g,r=/(?:"([^"\\]*(?:\\.[^"\\]*)*)")/g,i=/(?:'([^'\\]*(?:\\.[^'\\]*)*)')/g,n=/^ *[*/]+ */,o=/^\s*\*?\/*/,s=/\n/g,a=/\s/,u=/\\(.?)/g,f={0:"\0",r:"\r",n:"\n",t:" "};function l(e){return e.replace(u,function(e,t){switch(t){case"\\":case"":return t;default:return f[t]||""}})}function p(e,u){e=e.toString();var f=0,p=e.length,c=1,h=0,d={},y=[],v=null;function m(e){return Error("illegal "+e+" (line "+c+")")}function g(){var t="'"===v?i:r;t.lastIndex=f-1;var n=t.exec(e);if(!n)throw m("string");return f=t.lastIndex,k(v),v=null,l(n[1])}function b(t){return e.charAt(t)}function w(t,r,i){var a,f={type:e.charAt(t++),lineEmpty:!1,leading:i},l=t-(u?2:3);do if(--l<0||"\n"===(a=e.charAt(l))){f.lineEmpty=!0;break}while(" "===a||" "===a);for(var p=e.substring(t,r).split(s),y=0;y0)return y.shift();if(v)return g();var r,i,n,o,s,l=0===f;do{if(f===p)return null;for(r=!1;a.test(n=b(f));)if("\n"===n&&(l=!0,++c),++f===p)return null;if("/"===b(f)){if(++f===p)throw m("comment");if("/"===b(f))if(u){if(o=f,s=!1,O(f-1)){s=!0;do if((f=_(f))===p||(f++,!l))break;while(O(f))}else f=Math.min(p,_(f)+1);s&&(w(o,f,l),l=!0),c++,r=!0}else{for(s="/"===b(o=f+1);"\n"!==b(++f);)if(f===p)return null;++f,s&&(w(o,f-1,l),l=!0),++c,r=!0}else{if("*"!==(n=b(f)))return"/";o=f+1,s=u||"*"===b(o);do{if("\n"===n&&++c,++f===p)throw m("comment");i=n,n=b(f)}while("*"!==i||"/"!==n);++f,s&&(w(o,f-2,l),l=!0),r=!0}}}while(r);var h=f;if(t.lastIndex=0,!t.test(b(h++)))for(;h{t._resolveFeatures(e)}),this.fieldsArray.forEach(t=>{t._resolveFeatures(e)})),this},g.prototype.get=function(e){return this.fields[e]||this.oneofs&&this.oneofs[e]||this.nested&&this.nested[e]||null},g.prototype.add=function(e){if(this.get(e.name))throw Error("duplicate name '"+e.name+"' in "+this);if(e instanceof s&&void 0===e.extend){if(this._fieldsById?this._fieldsById[e.id]:this.fieldsById[e.id])throw Error("duplicate id "+e.id+" in "+this);if(this.isReservedId(e.id))throw Error("id "+e.id+" is reserved in "+this);if(this.isReservedName(e.name))throw Error("name '"+e.name+"' is reserved in "+this);return e.parent&&e.parent.remove(e),this.fields[e.name]=e,e.message=this,e.onAdd(this),b(this)}return e instanceof o?(this.oneofs||(this.oneofs={}),this.oneofs[e.name]=e,e.onAdd(this),b(this)):i.prototype.add.call(this,e)},g.prototype.remove=function(e){if(e instanceof s&&void 0===e.extend){if(!this.fields||this.fields[e.name]!==e)throw Error(e+" is not a member of "+this);return delete this.fields[e.name],e.parent=null,e.onRemove(this),b(this)}if(e instanceof o){if(!this.oneofs||this.oneofs[e.name]!==e)throw Error(e+" is not a member of "+this);return delete this.oneofs[e.name],e.parent=null,e.onRemove(this),b(this)}return i.prototype.remove.call(this,e)},g.prototype.isReservedId=function(e){return i.isReservedId(this.reserved,e)},g.prototype.isReservedName=function(e){return i.isReservedName(this.reserved,e)},g.prototype.create=function(e){return new this.ctor(e)},g.prototype.setup=function(){for(var e=this.fullName,t=[],r=0;r0)e[o]=n(e[o]||{},t,r);else{var s=e[o];if(s&&i)return e;s&&(r=[].concat(s).concat(r)),e[o]=r}return e}if("object"!=typeof e)throw TypeError("dst must be an object");if(!t)throw TypeError("path must be specified");return n(e,t=t.split("."),r)},Object.defineProperty(o,"decorateRoot",{get:function(){return s.decorated||(s.decorated=new(r(8335)))}})},8920:function(e,t,r){e.exports=n;var i=r(6339);function n(e,t){this.lo=e>>>0,this.hi=t>>>0}var o=n.zero=new n(0,0);o.toNumber=function(){return 0},o.zzEncode=o.zzDecode=function(){return this},o.length=function(){return 1};var s=n.zeroHash="\0\0\0\0\0\0\0\0";n.fromNumber=function(e){if(0===e)return o;var t=e<0;t&&(e=-e);var r=e>>>0,i=(e-r)/0x100000000>>>0;return t&&(i=~i>>>0,r=~r>>>0,++r>0xffffffff&&(r=0,++i>0xffffffff&&(i=0))),new n(r,i)},n.from=function(e){if("number"==typeof e)return n.fromNumber(e);if(i.isString(e))if(!i.Long)return n.fromNumber(parseInt(e,10));else e=i.Long.fromString(e);return e.low||e.high?new n(e.low>>>0,e.high>>>0):o},n.prototype.toNumber=function(e){if(!e&&this.hi>>>31){var t=~this.lo+1>>>0,r=~this.hi>>>0;return t||(r=r+1>>>0),-(t+0x100000000*r)}return this.lo+0x100000000*this.hi},n.prototype.toLong=function(e){return i.Long?new i.Long(0|this.lo,0|this.hi,!!e):{low:0|this.lo,high:0|this.hi,unsigned:!!e}};var a=String.prototype.charCodeAt;n.fromHash=function(e){return e===s?o:new n((a.call(e,0)|a.call(e,1)<<8|a.call(e,2)<<16|a.call(e,3)<<24)>>>0,(a.call(e,4)|a.call(e,5)<<8|a.call(e,6)<<16|a.call(e,7)<<24)>>>0)},n.prototype.toHash=function(){return String.fromCharCode(255&this.lo,this.lo>>>8&255,this.lo>>>16&255,this.lo>>>24,255&this.hi,this.hi>>>8&255,this.hi>>>16&255,this.hi>>>24)},n.prototype.zzEncode=function(){var e=this.hi>>31;return this.hi=((this.hi<<1|this.lo>>>31)^e)>>>0,this.lo=(this.lo<<1^e)>>>0,this},n.prototype.zzDecode=function(){var e=-(1&this.lo);return this.lo=((this.lo>>>1|this.hi<<31)^e)>>>0,this.hi=(this.hi>>>1^e)>>>0,this},n.prototype.length=function(){var e=this.lo,t=(this.lo>>>28|this.hi<<4)>>>0,r=this.hi>>>24;return 0===r?0===t?e<16384?e<128?1:2:e<2097152?3:4:t<16384?t<128?5:6:t<2097152?7:8:r<128?9:10}},6339:function(e,t,r){var i=t;function n(e,t,r){for(var i=Object.keys(t),n=0;n0)},i.Buffer=function(){try{var e=i.inquire("buffer").Buffer;return e.prototype.utf8Write?e:null}catch(e){return null}}(),i._Buffer_from=null,i._Buffer_allocUnsafe=null,i.newBuffer=function(e){return"number"==typeof e?i.Buffer?i._Buffer_allocUnsafe(e):new i.Array(e):i.Buffer?i._Buffer_from(e):"undefined"==typeof Uint8Array?e:new Uint8Array(e)},i.Array="undefined"!=typeof Uint8Array?Uint8Array:Array,i.Long=i.global.dcodeIO&&i.global.dcodeIO.Long||i.global.Long||i.inquire("long"),i.key2Re=/^true|false|0|1$/,i.key32Re=/^-?(?:0|[1-9][0-9]*)$/,i.key64Re=/^(?:[\\x00-\\xff]{8}|-?(?:0|[1-9][0-9]*))$/,i.longToHash=function(e){return e?i.LongBits.from(e).toHash():i.LongBits.zeroHash},i.longFromHash=function(e,t){var r=i.LongBits.fromHash(e);return i.Long?i.Long.fromBits(r.lo,r.hi,t):r.toNumber(!!t)},i.merge=n,i.lcFirst=function(e){return e.charAt(0).toLowerCase()+e.substring(1)},i.newError=o,i.ProtocolError=o("ProtocolError"),i.oneOfGetter=function(e){for(var t={},r=0;r-1;--r)if(1===t[e[r]]&&void 0!==this[e[r]]&&null!==this[e[r]])return e[r]}},i.oneOfSetter=function(e){return function(t){for(var r=0;r127;)t[r++]=127&e|128,e>>>=7;t[r]=e}function y(e,t){this.len=e,this.next=void 0,this.val=t}function v(e,t,r){for(;e.hi;)t[r++]=127&e.lo|128,e.lo=(e.lo>>>7|e.hi<<25)>>>0,e.hi>>>=7;for(;e.lo>127;)t[r++]=127&e.lo|128,e.lo=e.lo>>>7;t[r++]=e.lo}function m(e,t,r){t[r]=255&e,t[r+1]=e>>>8&255,t[r+2]=e>>>16&255,t[r+3]=e>>>24}p.create=c(),p.alloc=function(e){return new n.Array(e)},n.Array!==Array&&(p.alloc=n.pool(p.alloc,n.Array.prototype.subarray)),p.prototype._push=function(e,t,r){return this.tail=this.tail.next=new u(e,t,r),this.len+=t,this},y.prototype=Object.create(u.prototype),y.prototype.fn=d,p.prototype.uint32=function(e){return this.len+=(this.tail=this.tail.next=new y((e>>>=0)<128?1:e<16384?2:e<2097152?3:e<0x10000000?4:5,e)).len,this},p.prototype.int32=function(e){return e<0?this._push(v,10,o.fromNumber(e)):this.uint32(e)},p.prototype.sint32=function(e){return this.uint32((e<<1^e>>31)>>>0)},p.prototype.uint64=function(e){var t=o.from(e);return this._push(v,t.length(),t)},p.prototype.int64=p.prototype.uint64,p.prototype.sint64=function(e){var t=o.from(e).zzEncode();return this._push(v,t.length(),t)},p.prototype.bool=function(e){return this._push(h,1,+!!e)},p.prototype.fixed32=function(e){return this._push(m,4,e>>>0)},p.prototype.sfixed32=p.prototype.fixed32,p.prototype.fixed64=function(e){var t=o.from(e);return this._push(m,4,t.lo)._push(m,4,t.hi)},p.prototype.sfixed64=p.prototype.fixed64,p.prototype.float=function(e){return this._push(n.float.writeFloatLE,4,e)},p.prototype.double=function(e){return this._push(n.float.writeDoubleLE,8,e)};var g=n.Array.prototype.set?function(e,t,r){t.set(e,r)}:function(e,t,r){for(var i=0;i>>0;if(!t)return this._push(h,1,0);if(n.isString(e)){var r=p.alloc(t=s.length(e));s.decode(e,r,0),e=r}return this.uint32(t)._push(g,t,e)},p.prototype.string=function(e){var t=a.length(e);return t?this.uint32(t)._push(a.write,t,e):this._push(h,1,0)},p.prototype.fork=function(){return this.states=new l(this),this.head=this.tail=new u(f,0,0),this.len=0,this},p.prototype.reset=function(){return this.states?(this.head=this.states.head,this.tail=this.states.tail,this.len=this.states.len,this.states=this.states.next):(this.head=this.tail=new u(f,0,0),this.len=0),this},p.prototype.ldelim=function(){var e=this.head,t=this.tail,r=this.len;return this.reset().uint32(r),r&&(this.tail.next=e.next,this.tail=t,this.len+=r),this},p.prototype.finish=function(){for(var e=this.head.next,t=this.constructor.alloc(this.len),r=0;e;)e.fn(e.val,t,r),r+=e.len,e=e.next;return t},p._configure=function(e){i=e,p.create=c(),i._configure()}},1405:function(e,t,r){e.exports=o;var i=r(8332);(o.prototype=Object.create(i.prototype)).constructor=o;var n=r(6339);function o(){i.call(this)}function s(e,t,r){e.length<40?n.utf8.write(e,t,r):t.utf8Write?t.utf8Write(e,r):t.write(e,r)}o._configure=function(){o.alloc=n._Buffer_allocUnsafe,o.writeBytesBuffer=n.Buffer&&n.Buffer.prototype instanceof Uint8Array&&"set"===n.Buffer.prototype.set.name?function(e,t,r){t.set(e,r)}:function(e,t,r){if(e.copy)e.copy(t,r,0,e.length);else for(var i=0;i>>0;return this.uint32(t),t&&this._push(o.writeBytesBuffer,t,e),this},o.prototype.string=function(e){var t=n.Buffer.byteLength(e);return this.uint32(t),t&&this._push(s,t,e),this},o._configure()}},__webpack_module_cache__={};function __webpack_require__(e){var t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;var r=__webpack_module_cache__[e]={exports:{}};return __webpack_modules__[e].call(r.exports,r,r.exports,__webpack_require__),r.exports}var __webpack_exports__=__webpack_require__(4026);module.exports=__webpack_exports__})(); \ No newline at end of file diff --git a/packages/node_modules/protobufjs/minimal/index.js b/packages/node_modules/protobufjs/minimal/index.js index 4cac663f519..9481440e674 100644 --- a/packages/node_modules/protobufjs/minimal/index.js +++ b/packages/node_modules/protobufjs/minimal/index.js @@ -1 +1 @@ -(()=>{"use strict";var __webpack_modules__={8045:function(t){t.exports=r;function r(t,r){for(var e=Array(arguments.length-1),n=0,i=2,o=!0;i1&&"="===t.charAt(r);)++e;return Math.ceil(3*t.length)/4-e};for(var n=Array(64),i=Array(123),o=0;o<64;)i[n[o]=o<26?o+65:o<52?o+71:o<62?o-4:o-59|43]=o++;e.encode=function(t,r,e){for(var i,o=null,s=[],u=0,f=0;r>2],i=(3&h)<<4,f=1;break;case 1:s[u++]=n[i|h>>4],i=(15&h)<<2,f=2;break;case 2:s[u++]=n[i|h>>6],s[u++]=n[63&h],f=0}u>8191&&((o||(o=[])).push(String.fromCharCode.apply(String,s)),u=0)}return(f&&(s[u++]=n[i],s[u++]=61,1===f&&(s[u++]=61)),o)?(u&&o.push(String.fromCharCode.apply(String,s.slice(0,u))),o.join("")):String.fromCharCode.apply(String,s.slice(0,u))};var s="invalid encoding";e.decode=function(t,r,e){for(var n,o=e,u=0,f=0;f1)break;if(void 0===(h=i[h]))throw Error(s);switch(u){case 0:n=h,u=1;break;case 1:r[e++]=n<<2|(48&h)>>4,n=h,u=2;break;case 2:r[e++]=(15&n)<<4|(60&h)>>2,n=h,u=3;break;case 3:r[e++]=(3&n)<<6|h,u=0}}if(1===u)throw Error(s);return e-o},e.test=function(t){return/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(t)}},1977:function(t){function r(){this._listeners={}}t.exports=r,r.prototype.on=function(t,r,e){return(this._listeners[t]||(this._listeners[t]=[])).push({fn:r,ctx:e||this}),this},r.prototype.off=function(t,r){if(void 0===t)this._listeners={};else if(void 0===r)this._listeners[t]=[];else for(var e=this._listeners[t],n=0;n0?0:0x80000000,e,n);else if(isNaN(r))t(0x7fc00000,e,n);else if(r>34028234663852886e22)t((i<<31|0x7f800000)>>>0,e,n);else if(r<11754943508222875e-54)t((i<<31|Math.round(r/1401298464324817e-60))>>>0,e,n);else{var o=Math.floor(Math.log(r)/Math.LN2),s=8388607&Math.round(r*Math.pow(2,-o)*8388608);t((i<<31|o+127<<23|s)>>>0,e,n)}}function s(t,r,e){var n=t(r,e),i=(n>>31)*2+1,o=n>>>23&255,s=8388607&n;return 255===o?s?NaN:1/0*i:0===o?1401298464324817e-60*i*s:i*Math.pow(2,o-150)*(s+8388608)}t.writeFloatLE=r.bind(null,e),t.writeFloatBE=r.bind(null,n),t.readFloatLE=s.bind(null,i),t.readFloatBE=s.bind(null,o)}(),"undefined"!=typeof Float64Array?!function(){var r=new Float64Array([-0]),e=new Uint8Array(r.buffer),n=128===e[7];function i(t,n,i){r[0]=t,n[i]=e[0],n[i+1]=e[1],n[i+2]=e[2],n[i+3]=e[3],n[i+4]=e[4],n[i+5]=e[5],n[i+6]=e[6],n[i+7]=e[7]}function o(t,n,i){r[0]=t,n[i]=e[7],n[i+1]=e[6],n[i+2]=e[5],n[i+3]=e[4],n[i+4]=e[3],n[i+5]=e[2],n[i+6]=e[1],n[i+7]=e[0]}function s(t,n){return e[0]=t[n],e[1]=t[n+1],e[2]=t[n+2],e[3]=t[n+3],e[4]=t[n+4],e[5]=t[n+5],e[6]=t[n+6],e[7]=t[n+7],r[0]}function u(t,n){return e[7]=t[n],e[6]=t[n+1],e[5]=t[n+2],e[4]=t[n+3],e[3]=t[n+4],e[2]=t[n+5],e[1]=t[n+6],e[0]=t[n+7],r[0]}t.writeDoubleLE=n?i:o,t.writeDoubleBE=n?o:i,t.readDoubleLE=n?s:u,t.readDoubleBE=n?u:s}():!function(){function r(t,r,e,n,i,o){var s,u=+(n<0);if(u&&(n=-n),0===n)t(0,i,o+r),t(1/n>0?0:0x80000000,i,o+e);else if(isNaN(n))t(0,i,o+r),t(0x7ff80000,i,o+e);else if(n>17976931348623157e292)t(0,i,o+r),t((u<<31|0x7ff00000)>>>0,i,o+e);else if(n<22250738585072014e-324)t((s=n/5e-324)>>>0,i,o+r),t((u<<31|s/0x100000000)>>>0,i,o+e);else{var f=Math.floor(Math.log(n)/Math.LN2);1024===f&&(f=1023),t(0x10000000000000*(s=n*Math.pow(2,-f))>>>0,i,o+r),t((u<<31|f+1023<<20|1048576*s&1048575)>>>0,i,o+e)}}function s(t,r,e,n,i){var o=t(n,i+r),s=t(n,i+e),u=(s>>31)*2+1,f=s>>>20&2047,h=0x100000000*(1048575&s)+o;return 2047===f?h?NaN:1/0*u:0===f?5e-324*u*h:u*Math.pow(2,f-1075)*(h+0x10000000000000)}t.writeDoubleLE=r.bind(null,e,0,4),t.writeDoubleBE=r.bind(null,n,4,0),t.readDoubleLE=s.bind(null,i,0,4),t.readDoubleBE=s.bind(null,o,4,0)}(),t}function e(t,r,e){r[e]=255&t,r[e+1]=t>>>8&255,r[e+2]=t>>>16&255,r[e+3]=t>>>24}function n(t,r,e){r[e]=t>>>24,r[e+1]=t>>>16&255,r[e+2]=t>>>8&255,r[e+3]=255&t}function i(t,r){return(t[r]|t[r+1]<<8|t[r+2]<<16|t[r+3]<<24)>>>0}function o(t,r){return(t[r]<<24|t[r+1]<<16|t[r+2]<<8|t[r+3])>>>0}t.exports=r(r)},4153:function(module){module.exports=inquire;function inquire(moduleName){try{var mod=eval("quire".replace(/^/,"re"))(moduleName);if(mod&&(mod.length||Object.keys(mod).length))return mod}catch(e){}return null}},9390:function(t){t.exports=r;function r(t,r,e){var n=e||8192,i=n>>>1,o=null,s=n;return function(e){if(e<1||e>i)return t(e);s+e>n&&(o=t(n),s=0);var u=r.call(o,s,s+=e);return 7&s&&(s=(7|s)+1),u}}},1447:function(t,r){var e=r;e.length=function(t){for(var r=0,e=0,n=0;n191&&n<224?o[s++]=(31&n)<<6|63&t[r++]:n>239&&n<365?(n=((7&n)<<18|(63&t[r++])<<12|(63&t[r++])<<6|63&t[r++])-65536,o[s++]=55296+(n>>10),o[s++]=56320+(1023&n)):o[s++]=(15&n)<<12|(63&t[r++])<<6|63&t[r++],s>8191&&((i||(i=[])).push(String.fromCharCode.apply(String,o)),s=0);return i?(s&&i.push(String.fromCharCode.apply(String,o.slice(0,s))),i.join("")):String.fromCharCode.apply(String,o.slice(0,s))},e.write=function(t,r,e){for(var n,i,o=e,s=0;s>6|192:((64512&n)==55296&&(64512&(i=t.charCodeAt(s+1)))==56320?(n=65536+((1023&n)<<10)+(1023&i),++s,r[e++]=n>>18|240,r[e++]=n>>12&63|128):r[e++]=n>>12|224,r[e++]=n>>6&63|128),r[e++]=63&n|128);return e-o}},6946:function(t,r,e){t.exports=e(4394)},4394:function(t,r,e){var n=r;function i(){n.util._configure(),n.Writer._configure(n.BufferWriter),n.Reader._configure(n.BufferReader)}n.build="minimal",n.Writer=e(3449),n.BufferWriter=e(818),n.Reader=e(6237),n.BufferReader=e(3158),n.util=e(3610),n.rpc=e(5047),n.roots=e(4529),n.configure=i,i()},6237:function(t,r,e){t.exports=f;var n,i=e(3610),o=i.LongBits,s=i.utf8;function u(t,r){return RangeError("index out of range: "+t.pos+" + "+(r||1)+" > "+t.len)}function f(t){this.buf=t,this.pos=0,this.len=t.length}var h="undefined"!=typeof Uint8Array?function(t){if(t instanceof Uint8Array||Array.isArray(t))return new f(t);throw Error("illegal buffer")}:function(t){if(Array.isArray(t))return new f(t);throw Error("illegal buffer")},l=function(){return i.Buffer?function(t){return(f.create=function(t){return i.Buffer.isBuffer(t)?new n(t):h(t)})(t)}:h};function a(){var t=new o(0,0),r=0;if(this.len-this.pos>4){for(;r<4;++r)if(t.lo=(t.lo|(127&this.buf[this.pos])<<7*r)>>>0,this.buf[this.pos++]<128)return t;if(t.lo=(t.lo|(127&this.buf[this.pos])<<28)>>>0,t.hi=(t.hi|(127&this.buf[this.pos])>>4)>>>0,this.buf[this.pos++]<128)return t;r=0}else{for(;r<3;++r){if(this.pos>=this.len)throw u(this);if(t.lo=(t.lo|(127&this.buf[this.pos])<<7*r)>>>0,this.buf[this.pos++]<128)return t}return t.lo=(t.lo|(127&this.buf[this.pos++])<<7*r)>>>0,t}if(this.len-this.pos>4){for(;r<5;++r)if(t.hi=(t.hi|(127&this.buf[this.pos])<<7*r+3)>>>0,this.buf[this.pos++]<128)return t}else for(;r<5;++r){if(this.pos>=this.len)throw u(this);if(t.hi=(t.hi|(127&this.buf[this.pos])<<7*r+3)>>>0,this.buf[this.pos++]<128)return t}throw Error("invalid varint encoding")}function c(t,r){return(t[r-4]|t[r-3]<<8|t[r-2]<<16|t[r-1]<<24)>>>0}function p(){if(this.pos+8>this.len)throw u(this,8);return new o(c(this.buf,this.pos+=4),c(this.buf,this.pos+=4))}f.create=l(),f.prototype._slice=i.Array.prototype.subarray||i.Array.prototype.slice,f.prototype.uint32=function(){var t=0xffffffff;return function(){if(t=(127&this.buf[this.pos])>>>0,this.buf[this.pos++]<128||(t=(t|(127&this.buf[this.pos])<<7)>>>0,this.buf[this.pos++]<128)||(t=(t|(127&this.buf[this.pos])<<14)>>>0,this.buf[this.pos++]<128)||(t=(t|(127&this.buf[this.pos])<<21)>>>0,this.buf[this.pos++]<128)||(t=(t|(15&this.buf[this.pos])<<28)>>>0,this.buf[this.pos++]<128))return t;if((this.pos+=5)>this.len)throw this.pos=this.len,u(this,10);return t}}(),f.prototype.int32=function(){return 0|this.uint32()},f.prototype.sint32=function(){var t=this.uint32();return t>>>1^-(1&t)},f.prototype.bool=function(){return 0!==this.uint32()},f.prototype.fixed32=function(){if(this.pos+4>this.len)throw u(this,4);return c(this.buf,this.pos+=4)},f.prototype.sfixed32=function(){if(this.pos+4>this.len)throw u(this,4);return 0|c(this.buf,this.pos+=4)},f.prototype.float=function(){if(this.pos+4>this.len)throw u(this,4);var t=i.float.readFloatLE(this.buf,this.pos);return this.pos+=4,t},f.prototype.double=function(){if(this.pos+8>this.len)throw u(this,4);var t=i.float.readDoubleLE(this.buf,this.pos);return this.pos+=8,t},f.prototype.bytes=function(){var t=this.uint32(),r=this.pos,e=this.pos+t;if(e>this.len)throw u(this,t);if(this.pos+=t,Array.isArray(this.buf))return this.buf.slice(r,e);if(r===e){var n=i.Buffer;return n?n.alloc(0):new this.buf.constructor(0)}return this._slice.call(this.buf,r,e)},f.prototype.string=function(){var t=this.bytes();return s.read(t,0,t.length)},f.prototype.skip=function(t){if("number"==typeof t){if(this.pos+t>this.len)throw u(this,t);this.pos+=t}else do if(this.pos>=this.len)throw u(this);while(128&this.buf[this.pos++]);return this},f.prototype.skipType=function(t){switch(t){case 0:this.skip();break;case 1:this.skip(8);break;case 2:this.skip(this.uint32());break;case 3:for(;4!=(t=7&this.uint32());)this.skipType(t);break;case 5:this.skip(4);break;default:throw Error("invalid wire type "+t+" at offset "+this.pos)}return this},f._configure=function(t){n=t,f.create=l(),n._configure();var r=i.Long?"toLong":"toNumber";i.merge(f.prototype,{int64:function(){return a.call(this)[r](!1)},uint64:function(){return a.call(this)[r](!0)},sint64:function(){return a.call(this).zzDecode()[r](!1)},fixed64:function(){return p.call(this)[r](!0)},sfixed64:function(){return p.call(this)[r](!1)}})}},3158:function(t,r,e){t.exports=o;var n=e(6237);(o.prototype=Object.create(n.prototype)).constructor=o;var i=e(3610);function o(t){n.call(this,t)}o._configure=function(){i.Buffer&&(o.prototype._slice=i.Buffer.prototype.slice)},o.prototype.string=function(){var t=this.uint32();return this.buf.utf8Slice?this.buf.utf8Slice(this.pos,this.pos=Math.min(this.pos+t,this.len)):this.buf.toString("utf-8",this.pos,this.pos=Math.min(this.pos+t,this.len))},o._configure()},4529:function(t){t.exports={}},5047:function(t,r,e){r.Service=e(7595)},7595:function(t,r,e){t.exports=i;var n=e(3610);function i(t,r,e){if("function"!=typeof t)throw TypeError("rpcImpl must be a function");n.EventEmitter.call(this),this.rpcImpl=t,this.requestDelimited=!!r,this.responseDelimited=!!e}(i.prototype=Object.create(n.EventEmitter.prototype)).constructor=i,i.prototype.rpcCall=function t(r,e,i,o,s){if(!o)throw TypeError("request must be specified");var u=this;if(!s)return n.asPromise(t,u,r,e,i,o);if(!u.rpcImpl)return void setTimeout(function(){s(Error("already ended"))},0);try{return u.rpcImpl(r,e[u.requestDelimited?"encodeDelimited":"encode"](o).finish(),function(t,e){if(t)return u.emit("error",t,r),s(t);if(null===e)return void u.end(!0);if(!(e instanceof i))try{e=i[u.responseDelimited?"decodeDelimited":"decode"](e)}catch(t){return u.emit("error",t,r),s(t)}return u.emit("data",e,r),s(null,e)})}catch(t){u.emit("error",t,r),setTimeout(function(){s(t)},0);return}},i.prototype.end=function(t){return this.rpcImpl&&(t||this.rpcImpl(null,null,null),this.rpcImpl=null,this.emit("end").off()),this}},2239:function(t,r,e){t.exports=i;var n=e(3610);function i(t,r){this.lo=t>>>0,this.hi=r>>>0}var o=i.zero=new i(0,0);o.toNumber=function(){return 0},o.zzEncode=o.zzDecode=function(){return this},o.length=function(){return 1};var s=i.zeroHash="\0\0\0\0\0\0\0\0";i.fromNumber=function(t){if(0===t)return o;var r=t<0;r&&(t=-t);var e=t>>>0,n=(t-e)/0x100000000>>>0;return r&&(n=~n>>>0,e=~e>>>0,++e>0xffffffff&&(e=0,++n>0xffffffff&&(n=0))),new i(e,n)},i.from=function(t){if("number"==typeof t)return i.fromNumber(t);if(n.isString(t))if(!n.Long)return i.fromNumber(parseInt(t,10));else t=n.Long.fromString(t);return t.low||t.high?new i(t.low>>>0,t.high>>>0):o},i.prototype.toNumber=function(t){if(!t&&this.hi>>>31){var r=~this.lo+1>>>0,e=~this.hi>>>0;return r||(e=e+1>>>0),-(r+0x100000000*e)}return this.lo+0x100000000*this.hi},i.prototype.toLong=function(t){return n.Long?new n.Long(0|this.lo,0|this.hi,!!t):{low:0|this.lo,high:0|this.hi,unsigned:!!t}};var u=String.prototype.charCodeAt;i.fromHash=function(t){return t===s?o:new i((u.call(t,0)|u.call(t,1)<<8|u.call(t,2)<<16|u.call(t,3)<<24)>>>0,(u.call(t,4)|u.call(t,5)<<8|u.call(t,6)<<16|u.call(t,7)<<24)>>>0)},i.prototype.toHash=function(){return String.fromCharCode(255&this.lo,this.lo>>>8&255,this.lo>>>16&255,this.lo>>>24,255&this.hi,this.hi>>>8&255,this.hi>>>16&255,this.hi>>>24)},i.prototype.zzEncode=function(){var t=this.hi>>31;return this.hi=((this.hi<<1|this.lo>>>31)^t)>>>0,this.lo=(this.lo<<1^t)>>>0,this},i.prototype.zzDecode=function(){var t=-(1&this.lo);return this.lo=((this.lo>>>1|this.hi<<31)^t)>>>0,this.hi=(this.hi>>>1^t)>>>0,this},i.prototype.length=function(){var t=this.lo,r=(this.lo>>>28|this.hi<<4)>>>0,e=this.hi>>>24;return 0===e?0===r?t<16384?t<128?1:2:t<2097152?3:4:r<16384?r<128?5:6:r<2097152?7:8:e<128?9:10}},3610:function(t,r,e){var n=r;function i(t,r,e){for(var n=Object.keys(r),i=0;i0)},n.Buffer=function(){try{var t=n.inquire("buffer").Buffer;return t.prototype.utf8Write?t:null}catch(t){return null}}(),n._Buffer_from=null,n._Buffer_allocUnsafe=null,n.newBuffer=function(t){return"number"==typeof t?n.Buffer?n._Buffer_allocUnsafe(t):new n.Array(t):n.Buffer?n._Buffer_from(t):"undefined"==typeof Uint8Array?t:new Uint8Array(t)},n.Array="undefined"!=typeof Uint8Array?Uint8Array:Array,n.Long=n.global.dcodeIO&&n.global.dcodeIO.Long||n.global.Long||n.inquire("long"),n.key2Re=/^true|false|0|1$/,n.key32Re=/^-?(?:0|[1-9][0-9]*)$/,n.key64Re=/^(?:[\\x00-\\xff]{8}|-?(?:0|[1-9][0-9]*))$/,n.longToHash=function(t){return t?n.LongBits.from(t).toHash():n.LongBits.zeroHash},n.longFromHash=function(t,r){var e=n.LongBits.fromHash(t);return n.Long?n.Long.fromBits(e.lo,e.hi,r):e.toNumber(!!r)},n.merge=i,n.lcFirst=function(t){return t.charAt(0).toLowerCase()+t.substring(1)},n.newError=o,n.ProtocolError=o("ProtocolError"),n.oneOfGetter=function(t){for(var r={},e=0;e-1;--e)if(1===r[t[e]]&&void 0!==this[t[e]]&&null!==this[t[e]])return t[e]}},n.oneOfSetter=function(t){return function(r){for(var e=0;e127;)r[e++]=127&t|128,t>>>=7;r[e]=t}function d(t,r){this.len=t,this.next=void 0,this.val=r}function b(t,r,e){for(;t.hi;)r[e++]=127&t.lo|128,t.lo=(t.lo>>>7|t.hi<<25)>>>0,t.hi>>>=7;for(;t.lo>127;)r[e++]=127&t.lo|128,t.lo=t.lo>>>7;r[e++]=t.lo}function g(t,r,e){r[e]=255&t,r[e+1]=t>>>8&255,r[e+2]=t>>>16&255,r[e+3]=t>>>24}a.create=c(),a.alloc=function(t){return new i.Array(t)},i.Array!==Array&&(a.alloc=i.pool(a.alloc,i.Array.prototype.subarray)),a.prototype._push=function(t,r,e){return this.tail=this.tail.next=new f(t,r,e),this.len+=r,this},d.prototype=Object.create(f.prototype),d.prototype.fn=y,a.prototype.uint32=function(t){return this.len+=(this.tail=this.tail.next=new d((t>>>=0)<128?1:t<16384?2:t<2097152?3:t<0x10000000?4:5,t)).len,this},a.prototype.int32=function(t){return t<0?this._push(b,10,o.fromNumber(t)):this.uint32(t)},a.prototype.sint32=function(t){return this.uint32((t<<1^t>>31)>>>0)},a.prototype.uint64=function(t){var r=o.from(t);return this._push(b,r.length(),r)},a.prototype.int64=a.prototype.uint64,a.prototype.sint64=function(t){var r=o.from(t).zzEncode();return this._push(b,r.length(),r)},a.prototype.bool=function(t){return this._push(p,1,+!!t)},a.prototype.fixed32=function(t){return this._push(g,4,t>>>0)},a.prototype.sfixed32=a.prototype.fixed32,a.prototype.fixed64=function(t){var r=o.from(t);return this._push(g,4,r.lo)._push(g,4,r.hi)},a.prototype.sfixed64=a.prototype.fixed64,a.prototype.float=function(t){return this._push(i.float.writeFloatLE,4,t)},a.prototype.double=function(t){return this._push(i.float.writeDoubleLE,8,t)};var v=i.Array.prototype.set?function(t,r,e){r.set(t,e)}:function(t,r,e){for(var n=0;n>>0;if(!r)return this._push(p,1,0);if(i.isString(t)){var e=a.alloc(r=s.length(t));s.decode(t,e,0),t=e}return this.uint32(r)._push(v,r,t)},a.prototype.string=function(t){var r=u.length(t);return r?this.uint32(r)._push(u.write,r,t):this._push(p,1,0)},a.prototype.fork=function(){return this.states=new l(this),this.head=this.tail=new f(h,0,0),this.len=0,this},a.prototype.reset=function(){return this.states?(this.head=this.states.head,this.tail=this.states.tail,this.len=this.states.len,this.states=this.states.next):(this.head=this.tail=new f(h,0,0),this.len=0),this},a.prototype.ldelim=function(){var t=this.head,r=this.tail,e=this.len;return this.reset().uint32(e),e&&(this.tail.next=t.next,this.tail=r,this.len+=e),this},a.prototype.finish=function(){for(var t=this.head.next,r=this.constructor.alloc(this.len),e=0;t;)t.fn(t.val,r,e),e+=t.len,t=t.next;return r},a._configure=function(t){n=t,a.create=c(),n._configure()}},818:function(t,r,e){t.exports=o;var n=e(3449);(o.prototype=Object.create(n.prototype)).constructor=o;var i=e(3610);function o(){n.call(this)}function s(t,r,e){t.length<40?i.utf8.write(t,r,e):r.utf8Write?r.utf8Write(t,e):r.write(t,e)}o._configure=function(){o.alloc=i._Buffer_allocUnsafe,o.writeBytesBuffer=i.Buffer&&i.Buffer.prototype instanceof Uint8Array&&"set"===i.Buffer.prototype.set.name?function(t,r,e){r.set(t,e)}:function(t,r,e){if(t.copy)t.copy(r,e,0,t.length);else for(var n=0;n>>0;return this.uint32(r),r&&this._push(o.writeBytesBuffer,r,t),this},o.prototype.string=function(t){var r=i.Buffer.byteLength(t);return this.uint32(r),r&&this._push(s,r,t),this},o._configure()}},__webpack_module_cache__={};function __webpack_require__(t){var r=__webpack_module_cache__[t];if(void 0!==r)return r.exports;var e=__webpack_module_cache__[t]={exports:{}};return __webpack_modules__[t].call(e.exports,e,e.exports,__webpack_require__),e.exports}var __webpack_exports__=__webpack_require__(6946);module.exports=__webpack_exports__})(); \ No newline at end of file +(()=>{"use strict";var __webpack_modules__={488:function(t){t.exports=r;function r(t,r){for(var e=Array(arguments.length-1),n=0,i=2,o=!0;i1&&"="===t.charAt(r);)++e;return Math.ceil(3*t.length)/4-e};for(var n=Array(64),i=Array(123),o=0;o<64;)i[n[o]=o<26?o+65:o<52?o+71:o<62?o-4:o-59|43]=o++;e.encode=function(t,r,e){for(var i,o=null,s=[],u=0,f=0;r>2],i=(3&h)<<4,f=1;break;case 1:s[u++]=n[i|h>>4],i=(15&h)<<2,f=2;break;case 2:s[u++]=n[i|h>>6],s[u++]=n[63&h],f=0}u>8191&&((o||(o=[])).push(String.fromCharCode.apply(String,s)),u=0)}return(f&&(s[u++]=n[i],s[u++]=61,1===f&&(s[u++]=61)),o)?(u&&o.push(String.fromCharCode.apply(String,s.slice(0,u))),o.join("")):String.fromCharCode.apply(String,s.slice(0,u))};var s="invalid encoding";e.decode=function(t,r,e){for(var n,o=e,u=0,f=0;f1)break;if(void 0===(h=i[h]))throw Error(s);switch(u){case 0:n=h,u=1;break;case 1:r[e++]=n<<2|(48&h)>>4,n=h,u=2;break;case 2:r[e++]=(15&n)<<4|(60&h)>>2,n=h,u=3;break;case 3:r[e++]=(3&n)<<6|h,u=0}}if(1===u)throw Error(s);return e-o},e.test=function(t){return/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(t)}},3453:function(t){function r(){this._listeners={}}t.exports=r,r.prototype.on=function(t,r,e){return(this._listeners[t]||(this._listeners[t]=[])).push({fn:r,ctx:e||this}),this},r.prototype.off=function(t,r){if(void 0===t)this._listeners={};else if(void 0===r)this._listeners[t]=[];else for(var e=this._listeners[t],n=0;n0?0:0x80000000,e,n);else if(isNaN(r))t(0x7fc00000,e,n);else if(r>34028234663852886e22)t((i<<31|0x7f800000)>>>0,e,n);else if(r<11754943508222875e-54)t((i<<31|Math.round(r/1401298464324817e-60))>>>0,e,n);else{var o=Math.floor(Math.log(r)/Math.LN2),s=8388607&Math.round(r*Math.pow(2,-o)*8388608);t((i<<31|o+127<<23|s)>>>0,e,n)}}function s(t,r,e){var n=t(r,e),i=(n>>31)*2+1,o=n>>>23&255,s=8388607&n;return 255===o?s?NaN:1/0*i:0===o?1401298464324817e-60*i*s:i*Math.pow(2,o-150)*(s+8388608)}t.writeFloatLE=r.bind(null,e),t.writeFloatBE=r.bind(null,n),t.readFloatLE=s.bind(null,i),t.readFloatBE=s.bind(null,o)}(),"undefined"!=typeof Float64Array?!function(){var r=new Float64Array([-0]),e=new Uint8Array(r.buffer),n=128===e[7];function i(t,n,i){r[0]=t,n[i]=e[0],n[i+1]=e[1],n[i+2]=e[2],n[i+3]=e[3],n[i+4]=e[4],n[i+5]=e[5],n[i+6]=e[6],n[i+7]=e[7]}function o(t,n,i){r[0]=t,n[i]=e[7],n[i+1]=e[6],n[i+2]=e[5],n[i+3]=e[4],n[i+4]=e[3],n[i+5]=e[2],n[i+6]=e[1],n[i+7]=e[0]}function s(t,n){return e[0]=t[n],e[1]=t[n+1],e[2]=t[n+2],e[3]=t[n+3],e[4]=t[n+4],e[5]=t[n+5],e[6]=t[n+6],e[7]=t[n+7],r[0]}function u(t,n){return e[7]=t[n],e[6]=t[n+1],e[5]=t[n+2],e[4]=t[n+3],e[3]=t[n+4],e[2]=t[n+5],e[1]=t[n+6],e[0]=t[n+7],r[0]}t.writeDoubleLE=n?i:o,t.writeDoubleBE=n?o:i,t.readDoubleLE=n?s:u,t.readDoubleBE=n?u:s}():!function(){function r(t,r,e,n,i,o){var s,u=+(n<0);if(u&&(n=-n),0===n)t(0,i,o+r),t(1/n>0?0:0x80000000,i,o+e);else if(isNaN(n))t(0,i,o+r),t(0x7ff80000,i,o+e);else if(n>17976931348623157e292)t(0,i,o+r),t((u<<31|0x7ff00000)>>>0,i,o+e);else if(n<22250738585072014e-324)t((s=n/5e-324)>>>0,i,o+r),t((u<<31|s/0x100000000)>>>0,i,o+e);else{var f=Math.floor(Math.log(n)/Math.LN2);1024===f&&(f=1023),t(0x10000000000000*(s=n*Math.pow(2,-f))>>>0,i,o+r),t((u<<31|f+1023<<20|1048576*s&1048575)>>>0,i,o+e)}}function s(t,r,e,n,i){var o=t(n,i+r),s=t(n,i+e),u=(s>>31)*2+1,f=s>>>20&2047,h=0x100000000*(1048575&s)+o;return 2047===f?h?NaN:1/0*u:0===f?5e-324*u*h:u*Math.pow(2,f-1075)*(h+0x10000000000000)}t.writeDoubleLE=r.bind(null,e,0,4),t.writeDoubleBE=r.bind(null,n,4,0),t.readDoubleLE=s.bind(null,i,0,4),t.readDoubleBE=s.bind(null,o,4,0)}(),t}function e(t,r,e){r[e]=255&t,r[e+1]=t>>>8&255,r[e+2]=t>>>16&255,r[e+3]=t>>>24}function n(t,r,e){r[e]=t>>>24,r[e+1]=t>>>16&255,r[e+2]=t>>>8&255,r[e+3]=255&t}function i(t,r){return(t[r]|t[r+1]<<8|t[r+2]<<16|t[r+3]<<24)>>>0}function o(t,r){return(t[r]<<24|t[r+1]<<16|t[r+2]<<8|t[r+3])>>>0}t.exports=r(r)},1952:function(module){module.exports=inquire;function inquire(moduleName){try{var mod=eval("quire".replace(/^/,"re"))(moduleName);if(mod&&(mod.length||Object.keys(mod).length))return mod}catch(e){}return null}},3829:function(t){t.exports=r;function r(t,r,e){var n=e||8192,i=n>>>1,o=null,s=n;return function(e){if(e<1||e>i)return t(e);s+e>n&&(o=t(n),s=0);var u=r.call(o,s,s+=e);return 7&s&&(s=(7|s)+1),u}}},7800:function(t,r){var e=r;e.length=function(t){for(var r=0,e=0,n=0;n191&&n<224?o[s++]=(31&n)<<6|63&t[r++]:n>239&&n<365?(n=((7&n)<<18|(63&t[r++])<<12|(63&t[r++])<<6|63&t[r++])-65536,o[s++]=55296+(n>>10),o[s++]=56320+(1023&n)):o[s++]=(15&n)<<12|(63&t[r++])<<6|63&t[r++],s>8191&&((i||(i=[])).push(String.fromCharCode.apply(String,o)),s=0);return i?(s&&i.push(String.fromCharCode.apply(String,o.slice(0,s))),i.join("")):String.fromCharCode.apply(String,o.slice(0,s))},e.write=function(t,r,e){for(var n,i,o=e,s=0;s>6|192:((64512&n)==55296&&(64512&(i=t.charCodeAt(s+1)))==56320?(n=65536+((1023&n)<<10)+(1023&i),++s,r[e++]=n>>18|240,r[e++]=n>>12&63|128):r[e++]=n>>12|224,r[e++]=n>>6&63|128),r[e++]=63&n|128);return e-o}},1873:function(t,r,e){t.exports=e(233)},233:function(t,r,e){var n=r;function i(){n.util._configure(),n.Writer._configure(n.BufferWriter),n.Reader._configure(n.BufferReader)}n.build="minimal",n.Writer=e(8332),n.BufferWriter=e(1405),n.Reader=e(624),n.BufferReader=e(753),n.util=e(6339),n.rpc=e(7168),n.roots=e(9818),n.configure=i,i()},624:function(t,r,e){t.exports=f;var n,i=e(6339),o=i.LongBits,s=i.utf8;function u(t,r){return RangeError("index out of range: "+t.pos+" + "+(r||1)+" > "+t.len)}function f(t){this.buf=t,this.pos=0,this.len=t.length}var h="undefined"!=typeof Uint8Array?function(t){if(t instanceof Uint8Array||Array.isArray(t))return new f(t);throw Error("illegal buffer")}:function(t){if(Array.isArray(t))return new f(t);throw Error("illegal buffer")},l=function(){return i.Buffer?function(t){return(f.create=function(t){return i.Buffer.isBuffer(t)?new n(t):h(t)})(t)}:h};function a(){var t=new o(0,0),r=0;if(this.len-this.pos>4){for(;r<4;++r)if(t.lo=(t.lo|(127&this.buf[this.pos])<<7*r)>>>0,this.buf[this.pos++]<128)return t;if(t.lo=(t.lo|(127&this.buf[this.pos])<<28)>>>0,t.hi=(t.hi|(127&this.buf[this.pos])>>4)>>>0,this.buf[this.pos++]<128)return t;r=0}else{for(;r<3;++r){if(this.pos>=this.len)throw u(this);if(t.lo=(t.lo|(127&this.buf[this.pos])<<7*r)>>>0,this.buf[this.pos++]<128)return t}return t.lo=(t.lo|(127&this.buf[this.pos++])<<7*r)>>>0,t}if(this.len-this.pos>4){for(;r<5;++r)if(t.hi=(t.hi|(127&this.buf[this.pos])<<7*r+3)>>>0,this.buf[this.pos++]<128)return t}else for(;r<5;++r){if(this.pos>=this.len)throw u(this);if(t.hi=(t.hi|(127&this.buf[this.pos])<<7*r+3)>>>0,this.buf[this.pos++]<128)return t}throw Error("invalid varint encoding")}function c(t,r){return(t[r-4]|t[r-3]<<8|t[r-2]<<16|t[r-1]<<24)>>>0}function p(){if(this.pos+8>this.len)throw u(this,8);return new o(c(this.buf,this.pos+=4),c(this.buf,this.pos+=4))}f.create=l(),f.prototype._slice=i.Array.prototype.subarray||i.Array.prototype.slice,f.prototype.uint32=function(){var t=0xffffffff;return function(){if(t=(127&this.buf[this.pos])>>>0,this.buf[this.pos++]<128||(t=(t|(127&this.buf[this.pos])<<7)>>>0,this.buf[this.pos++]<128)||(t=(t|(127&this.buf[this.pos])<<14)>>>0,this.buf[this.pos++]<128)||(t=(t|(127&this.buf[this.pos])<<21)>>>0,this.buf[this.pos++]<128)||(t=(t|(15&this.buf[this.pos])<<28)>>>0,this.buf[this.pos++]<128))return t;if((this.pos+=5)>this.len)throw this.pos=this.len,u(this,10);return t}}(),f.prototype.int32=function(){return 0|this.uint32()},f.prototype.sint32=function(){var t=this.uint32();return t>>>1^-(1&t)},f.prototype.bool=function(){return 0!==this.uint32()},f.prototype.fixed32=function(){if(this.pos+4>this.len)throw u(this,4);return c(this.buf,this.pos+=4)},f.prototype.sfixed32=function(){if(this.pos+4>this.len)throw u(this,4);return 0|c(this.buf,this.pos+=4)},f.prototype.float=function(){if(this.pos+4>this.len)throw u(this,4);var t=i.float.readFloatLE(this.buf,this.pos);return this.pos+=4,t},f.prototype.double=function(){if(this.pos+8>this.len)throw u(this,4);var t=i.float.readDoubleLE(this.buf,this.pos);return this.pos+=8,t},f.prototype.bytes=function(){var t=this.uint32(),r=this.pos,e=this.pos+t;if(e>this.len)throw u(this,t);if(this.pos+=t,Array.isArray(this.buf))return this.buf.slice(r,e);if(r===e){var n=i.Buffer;return n?n.alloc(0):new this.buf.constructor(0)}return this._slice.call(this.buf,r,e)},f.prototype.string=function(){var t=this.bytes();return s.read(t,0,t.length)},f.prototype.skip=function(t){if("number"==typeof t){if(this.pos+t>this.len)throw u(this,t);this.pos+=t}else do if(this.pos>=this.len)throw u(this);while(128&this.buf[this.pos++]);return this},f.prototype.skipType=function(t){switch(t){case 0:this.skip();break;case 1:this.skip(8);break;case 2:this.skip(this.uint32());break;case 3:for(;4!=(t=7&this.uint32());)this.skipType(t);break;case 5:this.skip(4);break;default:throw Error("invalid wire type "+t+" at offset "+this.pos)}return this},f._configure=function(t){n=t,f.create=l(),n._configure();var r=i.Long?"toLong":"toNumber";i.merge(f.prototype,{int64:function(){return a.call(this)[r](!1)},uint64:function(){return a.call(this)[r](!0)},sint64:function(){return a.call(this).zzDecode()[r](!1)},fixed64:function(){return p.call(this)[r](!0)},sfixed64:function(){return p.call(this)[r](!1)}})}},753:function(t,r,e){t.exports=o;var n=e(624);(o.prototype=Object.create(n.prototype)).constructor=o;var i=e(6339);function o(t){n.call(this,t)}o._configure=function(){i.Buffer&&(o.prototype._slice=i.Buffer.prototype.slice)},o.prototype.string=function(){var t=this.uint32();return this.buf.utf8Slice?this.buf.utf8Slice(this.pos,this.pos=Math.min(this.pos+t,this.len)):this.buf.toString("utf-8",this.pos,this.pos=Math.min(this.pos+t,this.len))},o._configure()},9818:function(t){t.exports={}},7168:function(t,r,e){r.Service=e(6252)},6252:function(t,r,e){t.exports=i;var n=e(6339);function i(t,r,e){if("function"!=typeof t)throw TypeError("rpcImpl must be a function");n.EventEmitter.call(this),this.rpcImpl=t,this.requestDelimited=!!r,this.responseDelimited=!!e}(i.prototype=Object.create(n.EventEmitter.prototype)).constructor=i,i.prototype.rpcCall=function t(r,e,i,o,s){if(!o)throw TypeError("request must be specified");var u=this;if(!s)return n.asPromise(t,u,r,e,i,o);if(!u.rpcImpl)return void setTimeout(function(){s(Error("already ended"))},0);try{return u.rpcImpl(r,e[u.requestDelimited?"encodeDelimited":"encode"](o).finish(),function(t,e){if(t)return u.emit("error",t,r),s(t);if(null===e)return void u.end(!0);if(!(e instanceof i))try{e=i[u.responseDelimited?"decodeDelimited":"decode"](e)}catch(t){return u.emit("error",t,r),s(t)}return u.emit("data",e,r),s(null,e)})}catch(t){u.emit("error",t,r),setTimeout(function(){s(t)},0);return}},i.prototype.end=function(t){return this.rpcImpl&&(t||this.rpcImpl(null,null,null),this.rpcImpl=null,this.emit("end").off()),this}},8920:function(t,r,e){t.exports=i;var n=e(6339);function i(t,r){this.lo=t>>>0,this.hi=r>>>0}var o=i.zero=new i(0,0);o.toNumber=function(){return 0},o.zzEncode=o.zzDecode=function(){return this},o.length=function(){return 1};var s=i.zeroHash="\0\0\0\0\0\0\0\0";i.fromNumber=function(t){if(0===t)return o;var r=t<0;r&&(t=-t);var e=t>>>0,n=(t-e)/0x100000000>>>0;return r&&(n=~n>>>0,e=~e>>>0,++e>0xffffffff&&(e=0,++n>0xffffffff&&(n=0))),new i(e,n)},i.from=function(t){if("number"==typeof t)return i.fromNumber(t);if(n.isString(t))if(!n.Long)return i.fromNumber(parseInt(t,10));else t=n.Long.fromString(t);return t.low||t.high?new i(t.low>>>0,t.high>>>0):o},i.prototype.toNumber=function(t){if(!t&&this.hi>>>31){var r=~this.lo+1>>>0,e=~this.hi>>>0;return r||(e=e+1>>>0),-(r+0x100000000*e)}return this.lo+0x100000000*this.hi},i.prototype.toLong=function(t){return n.Long?new n.Long(0|this.lo,0|this.hi,!!t):{low:0|this.lo,high:0|this.hi,unsigned:!!t}};var u=String.prototype.charCodeAt;i.fromHash=function(t){return t===s?o:new i((u.call(t,0)|u.call(t,1)<<8|u.call(t,2)<<16|u.call(t,3)<<24)>>>0,(u.call(t,4)|u.call(t,5)<<8|u.call(t,6)<<16|u.call(t,7)<<24)>>>0)},i.prototype.toHash=function(){return String.fromCharCode(255&this.lo,this.lo>>>8&255,this.lo>>>16&255,this.lo>>>24,255&this.hi,this.hi>>>8&255,this.hi>>>16&255,this.hi>>>24)},i.prototype.zzEncode=function(){var t=this.hi>>31;return this.hi=((this.hi<<1|this.lo>>>31)^t)>>>0,this.lo=(this.lo<<1^t)>>>0,this},i.prototype.zzDecode=function(){var t=-(1&this.lo);return this.lo=((this.lo>>>1|this.hi<<31)^t)>>>0,this.hi=(this.hi>>>1^t)>>>0,this},i.prototype.length=function(){var t=this.lo,r=(this.lo>>>28|this.hi<<4)>>>0,e=this.hi>>>24;return 0===e?0===r?t<16384?t<128?1:2:t<2097152?3:4:r<16384?r<128?5:6:r<2097152?7:8:e<128?9:10}},6339:function(t,r,e){var n=r;function i(t,r,e){for(var n=Object.keys(r),i=0;i0)},n.Buffer=function(){try{var t=n.inquire("buffer").Buffer;return t.prototype.utf8Write?t:null}catch(t){return null}}(),n._Buffer_from=null,n._Buffer_allocUnsafe=null,n.newBuffer=function(t){return"number"==typeof t?n.Buffer?n._Buffer_allocUnsafe(t):new n.Array(t):n.Buffer?n._Buffer_from(t):"undefined"==typeof Uint8Array?t:new Uint8Array(t)},n.Array="undefined"!=typeof Uint8Array?Uint8Array:Array,n.Long=n.global.dcodeIO&&n.global.dcodeIO.Long||n.global.Long||n.inquire("long"),n.key2Re=/^true|false|0|1$/,n.key32Re=/^-?(?:0|[1-9][0-9]*)$/,n.key64Re=/^(?:[\\x00-\\xff]{8}|-?(?:0|[1-9][0-9]*))$/,n.longToHash=function(t){return t?n.LongBits.from(t).toHash():n.LongBits.zeroHash},n.longFromHash=function(t,r){var e=n.LongBits.fromHash(t);return n.Long?n.Long.fromBits(e.lo,e.hi,r):e.toNumber(!!r)},n.merge=i,n.lcFirst=function(t){return t.charAt(0).toLowerCase()+t.substring(1)},n.newError=o,n.ProtocolError=o("ProtocolError"),n.oneOfGetter=function(t){for(var r={},e=0;e-1;--e)if(1===r[t[e]]&&void 0!==this[t[e]]&&null!==this[t[e]])return t[e]}},n.oneOfSetter=function(t){return function(r){for(var e=0;e127;)r[e++]=127&t|128,t>>>=7;r[e]=t}function d(t,r){this.len=t,this.next=void 0,this.val=r}function b(t,r,e){for(;t.hi;)r[e++]=127&t.lo|128,t.lo=(t.lo>>>7|t.hi<<25)>>>0,t.hi>>>=7;for(;t.lo>127;)r[e++]=127&t.lo|128,t.lo=t.lo>>>7;r[e++]=t.lo}function g(t,r,e){r[e]=255&t,r[e+1]=t>>>8&255,r[e+2]=t>>>16&255,r[e+3]=t>>>24}a.create=c(),a.alloc=function(t){return new i.Array(t)},i.Array!==Array&&(a.alloc=i.pool(a.alloc,i.Array.prototype.subarray)),a.prototype._push=function(t,r,e){return this.tail=this.tail.next=new f(t,r,e),this.len+=r,this},d.prototype=Object.create(f.prototype),d.prototype.fn=y,a.prototype.uint32=function(t){return this.len+=(this.tail=this.tail.next=new d((t>>>=0)<128?1:t<16384?2:t<2097152?3:t<0x10000000?4:5,t)).len,this},a.prototype.int32=function(t){return t<0?this._push(b,10,o.fromNumber(t)):this.uint32(t)},a.prototype.sint32=function(t){return this.uint32((t<<1^t>>31)>>>0)},a.prototype.uint64=function(t){var r=o.from(t);return this._push(b,r.length(),r)},a.prototype.int64=a.prototype.uint64,a.prototype.sint64=function(t){var r=o.from(t).zzEncode();return this._push(b,r.length(),r)},a.prototype.bool=function(t){return this._push(p,1,+!!t)},a.prototype.fixed32=function(t){return this._push(g,4,t>>>0)},a.prototype.sfixed32=a.prototype.fixed32,a.prototype.fixed64=function(t){var r=o.from(t);return this._push(g,4,r.lo)._push(g,4,r.hi)},a.prototype.sfixed64=a.prototype.fixed64,a.prototype.float=function(t){return this._push(i.float.writeFloatLE,4,t)},a.prototype.double=function(t){return this._push(i.float.writeDoubleLE,8,t)};var v=i.Array.prototype.set?function(t,r,e){r.set(t,e)}:function(t,r,e){for(var n=0;n>>0;if(!r)return this._push(p,1,0);if(i.isString(t)){var e=a.alloc(r=s.length(t));s.decode(t,e,0),t=e}return this.uint32(r)._push(v,r,t)},a.prototype.string=function(t){var r=u.length(t);return r?this.uint32(r)._push(u.write,r,t):this._push(p,1,0)},a.prototype.fork=function(){return this.states=new l(this),this.head=this.tail=new f(h,0,0),this.len=0,this},a.prototype.reset=function(){return this.states?(this.head=this.states.head,this.tail=this.states.tail,this.len=this.states.len,this.states=this.states.next):(this.head=this.tail=new f(h,0,0),this.len=0),this},a.prototype.ldelim=function(){var t=this.head,r=this.tail,e=this.len;return this.reset().uint32(e),e&&(this.tail.next=t.next,this.tail=r,this.len+=e),this},a.prototype.finish=function(){for(var t=this.head.next,r=this.constructor.alloc(this.len),e=0;t;)t.fn(t.val,r,e),e+=t.len,t=t.next;return r},a._configure=function(t){n=t,a.create=c(),n._configure()}},1405:function(t,r,e){t.exports=o;var n=e(8332);(o.prototype=Object.create(n.prototype)).constructor=o;var i=e(6339);function o(){n.call(this)}function s(t,r,e){t.length<40?i.utf8.write(t,r,e):r.utf8Write?r.utf8Write(t,e):r.write(t,e)}o._configure=function(){o.alloc=i._Buffer_allocUnsafe,o.writeBytesBuffer=i.Buffer&&i.Buffer.prototype instanceof Uint8Array&&"set"===i.Buffer.prototype.set.name?function(t,r,e){r.set(t,e)}:function(t,r,e){if(t.copy)t.copy(r,e,0,t.length);else for(var n=0;n>>0;return this.uint32(r),r&&this._push(o.writeBytesBuffer,r,t),this},o.prototype.string=function(t){var r=i.Buffer.byteLength(t);return this.uint32(r),r&&this._push(s,r,t),this},o._configure()}},__webpack_module_cache__={};function __webpack_require__(t){var r=__webpack_module_cache__[t];if(void 0!==r)return r.exports;var e=__webpack_module_cache__[t]={exports:{}};return __webpack_modules__[t].call(e.exports,e,e.exports,__webpack_require__),e.exports}var __webpack_exports__=__webpack_require__(1873);module.exports=__webpack_exports__})(); \ No newline at end of file diff --git a/packages/node_modules/retry/index.js b/packages/node_modules/retry/index.js index 7f569d85637..878566b0304 100644 --- a/packages/node_modules/retry/index.js +++ b/packages/node_modules/retry/index.js @@ -1 +1 @@ -(()=>{var t={5617:function(t,e,i){t.exports=i(8303)},8303:function(t,e,i){var r=i(3961);e.operation=function(t){return new r(e.timeouts(t),{forever:t&&(t.forever||t.retries===1/0),unref:t&&t.unref,maxRetryTime:t&&t.maxRetryTime})},e.timeouts=function(t){if(t instanceof Array)return[].concat(t);var e={retries:10,factor:2,minTimeout:1e3,maxTimeout:1/0,randomize:!1};for(var i in t)e[i]=t[i];if(e.minTimeout>e.maxTimeout)throw Error("minTimeout is greater than maxTimeout");for(var r=[],o=0;o=this._maxRetryTime)return this._errors.push(t),this._errors.unshift(Error("RetryOperation timeout occurred")),!1;this._errors.push(t);var i=this._timeouts.shift();if(void 0===i)if(!this._cachedTimeouts)return!1;else this._errors.splice(0,this._errors.length-1),i=this._cachedTimeouts.slice(-1);var r=this;return this._timer=setTimeout(function(){r._attempts++,r._operationTimeoutCb&&(r._timeout=setTimeout(function(){r._operationTimeoutCb(r._attempts)},r._operationTimeout),r._options.unref&&r._timeout.unref()),r._fn(r._attempts)},i),this._options.unref&&this._timer.unref(),!0},e.prototype.attempt=function(t,e){this._fn=t,e&&(e.timeout&&(this._operationTimeout=e.timeout),e.cb&&(this._operationTimeoutCb=e.cb));var i=this;this._operationTimeoutCb&&(this._timeout=setTimeout(function(){i._operationTimeoutCb()},i._operationTimeout)),this._operationStart=new Date().getTime(),this._fn(this._attempts)},e.prototype.try=function(t){console.log("Using RetryOperation.try() is deprecated"),this.attempt(t)},e.prototype.start=function(t){console.log("Using RetryOperation.start() is deprecated"),this.attempt(t)},e.prototype.start=e.prototype.try,e.prototype.errors=function(){return this._errors},e.prototype.attempts=function(){return this._attempts},e.prototype.mainError=function(){if(0===this._errors.length)return null;for(var t={},e=null,i=0,r=0;r=i&&(e=o,i=s)}return e}}},e={},i=function i(r){var o=e[r];if(void 0!==o)return o.exports;var n=e[r]={exports:{}};return t[r](n,n.exports,i),n.exports}(5617);module.exports=i})(); \ No newline at end of file +(()=>{var t={7628:function(t,e,i){t.exports=i(6322)},6322:function(t,e,i){var r=i(1124);e.operation=function(t){return new r(e.timeouts(t),{forever:t&&(t.forever||t.retries===1/0),unref:t&&t.unref,maxRetryTime:t&&t.maxRetryTime})},e.timeouts=function(t){if(t instanceof Array)return[].concat(t);var e={retries:10,factor:2,minTimeout:1e3,maxTimeout:1/0,randomize:!1};for(var i in t)e[i]=t[i];if(e.minTimeout>e.maxTimeout)throw Error("minTimeout is greater than maxTimeout");for(var r=[],o=0;o=this._maxRetryTime)return this._errors.push(t),this._errors.unshift(Error("RetryOperation timeout occurred")),!1;this._errors.push(t);var i=this._timeouts.shift();if(void 0===i)if(!this._cachedTimeouts)return!1;else this._errors.splice(0,this._errors.length-1),i=this._cachedTimeouts.slice(-1);var r=this;return this._timer=setTimeout(function(){r._attempts++,r._operationTimeoutCb&&(r._timeout=setTimeout(function(){r._operationTimeoutCb(r._attempts)},r._operationTimeout),r._options.unref&&r._timeout.unref()),r._fn(r._attempts)},i),this._options.unref&&this._timer.unref(),!0},e.prototype.attempt=function(t,e){this._fn=t,e&&(e.timeout&&(this._operationTimeout=e.timeout),e.cb&&(this._operationTimeoutCb=e.cb));var i=this;this._operationTimeoutCb&&(this._timeout=setTimeout(function(){i._operationTimeoutCb()},i._operationTimeout)),this._operationStart=new Date().getTime(),this._fn(this._attempts)},e.prototype.try=function(t){console.log("Using RetryOperation.try() is deprecated"),this.attempt(t)},e.prototype.start=function(t){console.log("Using RetryOperation.start() is deprecated"),this.attempt(t)},e.prototype.start=e.prototype.try,e.prototype.errors=function(){return this._errors},e.prototype.attempts=function(){return this._attempts},e.prototype.mainError=function(){if(0===this._errors.length)return null;for(var t={},e=null,i=0,r=0;r=i&&(e=o,i=s)}return e}}},e={},i=function i(r){var o=e[r];if(void 0!==o)return o.exports;var n=e[r]={exports:{}};return t[r](n,n.exports,i),n.exports}(7628);module.exports=i})(); \ No newline at end of file diff --git a/packages/node_modules/retry/lib/retry_operation/index.js b/packages/node_modules/retry/lib/retry_operation/index.js index a4968bb2745..a035bfa2804 100644 --- a/packages/node_modules/retry/lib/retry_operation/index.js +++ b/packages/node_modules/retry/lib/retry_operation/index.js @@ -1 +1 @@ -(()=>{var t={3961:function(t){function e(t,e){"boolean"==typeof e&&(e={forever:e}),this._originalTimeouts=JSON.parse(JSON.stringify(t)),this._timeouts=t,this._options=e||{},this._maxRetryTime=e&&e.maxRetryTime||1/0,this._fn=null,this._errors=[],this._attempts=1,this._operationTimeout=null,this._operationTimeoutCb=null,this._timeout=null,this._operationStart=null,this._timer=null,this._options.forever&&(this._cachedTimeouts=this._timeouts.slice(0))}t.exports=e,e.prototype.reset=function(){this._attempts=1,this._timeouts=this._originalTimeouts.slice(0)},e.prototype.stop=function(){this._timeout&&clearTimeout(this._timeout),this._timer&&clearTimeout(this._timer),this._timeouts=[],this._cachedTimeouts=null},e.prototype.retry=function(t){if(this._timeout&&clearTimeout(this._timeout),!t)return!1;var e=new Date().getTime();if(t&&e-this._operationStart>=this._maxRetryTime)return this._errors.push(t),this._errors.unshift(Error("RetryOperation timeout occurred")),!1;this._errors.push(t);var i=this._timeouts.shift();if(void 0===i)if(!this._cachedTimeouts)return!1;else this._errors.splice(0,this._errors.length-1),i=this._cachedTimeouts.slice(-1);var o=this;return this._timer=setTimeout(function(){o._attempts++,o._operationTimeoutCb&&(o._timeout=setTimeout(function(){o._operationTimeoutCb(o._attempts)},o._operationTimeout),o._options.unref&&o._timeout.unref()),o._fn(o._attempts)},i),this._options.unref&&this._timer.unref(),!0},e.prototype.attempt=function(t,e){this._fn=t,e&&(e.timeout&&(this._operationTimeout=e.timeout),e.cb&&(this._operationTimeoutCb=e.cb));var i=this;this._operationTimeoutCb&&(this._timeout=setTimeout(function(){i._operationTimeoutCb()},i._operationTimeout)),this._operationStart=new Date().getTime(),this._fn(this._attempts)},e.prototype.try=function(t){console.log("Using RetryOperation.try() is deprecated"),this.attempt(t)},e.prototype.start=function(t){console.log("Using RetryOperation.start() is deprecated"),this.attempt(t)},e.prototype.start=e.prototype.try,e.prototype.errors=function(){return this._errors},e.prototype.attempts=function(){return this._attempts},e.prototype.mainError=function(){if(0===this._errors.length)return null;for(var t={},e=null,i=0,o=0;o=i&&(e=r,i=n)}return e}}},e={},i=function i(o){var r=e[o];if(void 0!==r)return r.exports;var s=e[o]={exports:{}};return t[o](s,s.exports,i),s.exports}(3961);module.exports=i})(); \ No newline at end of file +(()=>{var t={1124:function(t){function e(t,e){"boolean"==typeof e&&(e={forever:e}),this._originalTimeouts=JSON.parse(JSON.stringify(t)),this._timeouts=t,this._options=e||{},this._maxRetryTime=e&&e.maxRetryTime||1/0,this._fn=null,this._errors=[],this._attempts=1,this._operationTimeout=null,this._operationTimeoutCb=null,this._timeout=null,this._operationStart=null,this._timer=null,this._options.forever&&(this._cachedTimeouts=this._timeouts.slice(0))}t.exports=e,e.prototype.reset=function(){this._attempts=1,this._timeouts=this._originalTimeouts.slice(0)},e.prototype.stop=function(){this._timeout&&clearTimeout(this._timeout),this._timer&&clearTimeout(this._timer),this._timeouts=[],this._cachedTimeouts=null},e.prototype.retry=function(t){if(this._timeout&&clearTimeout(this._timeout),!t)return!1;var e=new Date().getTime();if(t&&e-this._operationStart>=this._maxRetryTime)return this._errors.push(t),this._errors.unshift(Error("RetryOperation timeout occurred")),!1;this._errors.push(t);var i=this._timeouts.shift();if(void 0===i)if(!this._cachedTimeouts)return!1;else this._errors.splice(0,this._errors.length-1),i=this._cachedTimeouts.slice(-1);var o=this;return this._timer=setTimeout(function(){o._attempts++,o._operationTimeoutCb&&(o._timeout=setTimeout(function(){o._operationTimeoutCb(o._attempts)},o._operationTimeout),o._options.unref&&o._timeout.unref()),o._fn(o._attempts)},i),this._options.unref&&this._timer.unref(),!0},e.prototype.attempt=function(t,e){this._fn=t,e&&(e.timeout&&(this._operationTimeout=e.timeout),e.cb&&(this._operationTimeoutCb=e.cb));var i=this;this._operationTimeoutCb&&(this._timeout=setTimeout(function(){i._operationTimeoutCb()},i._operationTimeout)),this._operationStart=new Date().getTime(),this._fn(this._attempts)},e.prototype.try=function(t){console.log("Using RetryOperation.try() is deprecated"),this.attempt(t)},e.prototype.start=function(t){console.log("Using RetryOperation.start() is deprecated"),this.attempt(t)},e.prototype.start=e.prototype.try,e.prototype.errors=function(){return this._errors},e.prototype.attempts=function(){return this._attempts},e.prototype.mainError=function(){if(0===this._errors.length)return null;for(var t={},e=null,i=0,o=0;o=i&&(e=r,i=n)}return e}}},e={},i=function i(o){var r=e[o];if(void 0!==r)return r.exports;var s=e[o]={exports:{}};return t[o](s,s.exports,i),s.exports}(1124);module.exports=i})(); \ No newline at end of file diff --git a/packages/node_modules/rfdc/index.js b/packages/node_modules/rfdc/index.js index 8d0578c3b6e..32f5c6c4908 100644 --- a/packages/node_modules/rfdc/index.js +++ b/packages/node_modules/rfdc/index.js @@ -1 +1 @@ -(()=>{"use strict";var t={9844:function(t){function e(t){return t instanceof Buffer?Buffer.from(t):new t.constructor(t.buffer.slice(),t.byteOffset,t.length)}t.exports=function(t){if((t=t||{}).circles)return function(t){let r=[],o=[],n=new Map;if(n.set(Date,t=>new Date(t)),n.set(Map,(t,e)=>new Map(u(Array.from(t),e))),n.set(Set,(t,e)=>new Set(u(Array.from(t),e))),t.constructorHandlers)for(let e of t.constructorHandlers)n.set(e[0],e[1]);let c=null;return t.proto?function t(f){if("object"!=typeof f||null===f)return f;if(Array.isArray(f))return u(f,t);if(f.constructor!==Object&&(c=n.get(f.constructor)))return c(f,t);let l={};for(let u in r.push(f),o.push(l),f){let s=f[u];if("object"!=typeof s||null===s)l[u]=s;else if(s.constructor!==Object&&(c=n.get(s.constructor)))l[u]=c(s,t);else if(ArrayBuffer.isView(s))l[u]=e(s);else{let e=r.indexOf(s);-1!==e?l[u]=o[e]:l[u]=t(s)}}return r.pop(),o.pop(),l}:function t(f){if("object"!=typeof f||null===f)return f;if(Array.isArray(f))return u(f,t);if(f.constructor!==Object&&(c=n.get(f.constructor)))return c(f,t);let l={};for(let u in r.push(f),o.push(l),f){if(!1===Object.hasOwnProperty.call(f,u))continue;let s=f[u];if("object"!=typeof s||null===s)l[u]=s;else if(s.constructor!==Object&&(c=n.get(s.constructor)))l[u]=c(s,t);else if(ArrayBuffer.isView(s))l[u]=e(s);else{let e=r.indexOf(s);-1!==e?l[u]=o[e]:l[u]=t(s)}}return r.pop(),o.pop(),l};function u(t,u){let f=Object.keys(t),l=Array(f.length);for(let s=0;snew Date(t)),r.set(Map,(t,e)=>new Map(n(Array.from(t),e))),r.set(Set,(t,e)=>new Set(n(Array.from(t),e))),t.constructorHandlers)for(let e of t.constructorHandlers)r.set(e[0],e[1]);let o=null;return t.proto?function t(c){if("object"!=typeof c||null===c)return c;if(Array.isArray(c))return n(c,t);if(c.constructor!==Object&&(o=r.get(c.constructor)))return o(c,t);let u={};for(let n in c){let f=c[n];"object"!=typeof f||null===f?u[n]=f:f.constructor!==Object&&(o=r.get(f.constructor))?u[n]=o(f,t):ArrayBuffer.isView(f)?u[n]=e(f):u[n]=t(f)}return u}:function t(c){if("object"!=typeof c||null===c)return c;if(Array.isArray(c))return n(c,t);if(c.constructor!==Object&&(o=r.get(c.constructor)))return o(c,t);let u={};for(let n in c){if(!1===Object.hasOwnProperty.call(c,n))continue;let f=c[n];"object"!=typeof f||null===f?u[n]=f:f.constructor!==Object&&(o=r.get(f.constructor))?u[n]=o(f,t):ArrayBuffer.isView(f)?u[n]=e(f):u[n]=t(f)}return u};function n(t,n){let c=Object.keys(t),u=Array(c.length);for(let f=0;f{"use strict";var t={6995:function(t){function e(t){return t instanceof Buffer?Buffer.from(t):new t.constructor(t.buffer.slice(),t.byteOffset,t.length)}t.exports=function(t){if((t=t||{}).circles)return function(t){let r=[],o=[],n=new Map;if(n.set(Date,t=>new Date(t)),n.set(Map,(t,e)=>new Map(u(Array.from(t),e))),n.set(Set,(t,e)=>new Set(u(Array.from(t),e))),t.constructorHandlers)for(let e of t.constructorHandlers)n.set(e[0],e[1]);let c=null;return t.proto?function t(f){if("object"!=typeof f||null===f)return f;if(Array.isArray(f))return u(f,t);if(f.constructor!==Object&&(c=n.get(f.constructor)))return c(f,t);let l={};for(let u in r.push(f),o.push(l),f){let s=f[u];if("object"!=typeof s||null===s)l[u]=s;else if(s.constructor!==Object&&(c=n.get(s.constructor)))l[u]=c(s,t);else if(ArrayBuffer.isView(s))l[u]=e(s);else{let e=r.indexOf(s);-1!==e?l[u]=o[e]:l[u]=t(s)}}return r.pop(),o.pop(),l}:function t(f){if("object"!=typeof f||null===f)return f;if(Array.isArray(f))return u(f,t);if(f.constructor!==Object&&(c=n.get(f.constructor)))return c(f,t);let l={};for(let u in r.push(f),o.push(l),f){if(!1===Object.hasOwnProperty.call(f,u))continue;let s=f[u];if("object"!=typeof s||null===s)l[u]=s;else if(s.constructor!==Object&&(c=n.get(s.constructor)))l[u]=c(s,t);else if(ArrayBuffer.isView(s))l[u]=e(s);else{let e=r.indexOf(s);-1!==e?l[u]=o[e]:l[u]=t(s)}}return r.pop(),o.pop(),l};function u(t,u){let f=Object.keys(t),l=Array(f.length);for(let s=0;snew Date(t)),r.set(Map,(t,e)=>new Map(n(Array.from(t),e))),r.set(Set,(t,e)=>new Set(n(Array.from(t),e))),t.constructorHandlers)for(let e of t.constructorHandlers)r.set(e[0],e[1]);let o=null;return t.proto?function t(c){if("object"!=typeof c||null===c)return c;if(Array.isArray(c))return n(c,t);if(c.constructor!==Object&&(o=r.get(c.constructor)))return o(c,t);let u={};for(let n in c){let f=c[n];"object"!=typeof f||null===f?u[n]=f:f.constructor!==Object&&(o=r.get(f.constructor))?u[n]=o(f,t):ArrayBuffer.isView(f)?u[n]=e(f):u[n]=t(f)}return u}:function t(c){if("object"!=typeof c||null===c)return c;if(Array.isArray(c))return n(c,t);if(c.constructor!==Object&&(o=r.get(c.constructor)))return o(c,t);let u={};for(let n in c){if(!1===Object.hasOwnProperty.call(c,n))continue;let f=c[n];"object"!=typeof f||null===f?u[n]=f:f.constructor!==Object&&(o=r.get(f.constructor))?u[n]=o(f,t):ArrayBuffer.isView(f)?u[n]=e(f):u[n]=t(f)}return u};function n(t,n){let c=Object.keys(t),u=Array(c.length);for(let f=0;f{var t={3734:function(t){function e(t){return"latest"===t&&(t=">=0"),t.match(/^([^\d+]*)(\d.*)$/)||[null,"","*.*.*"]}function n(t,e){let n=t.slice(0);if(-1===t[e])return n;for(n[e++]++;e<3;e++)n[e]=0;return n}function r(t){return"x"===t||"X"===t||"*"===t||"latest"===t?-1:Number(t)}function u(t){return/^\d+$/.test(t)?Number(t):t}function i(t,e,n){return -1===n?"<"!==t:"="===t?e===n:">"===t?e>n:">="===t?e>=n:"<"===t?e"===e?(e=">=",l.push(0,0,0),l[f]++):""===e?l.push(0,0,0):l.push(-1,-1,-1),i)?[l.slice(0,3).concat(i.split(".").map(u)),e]:[l.slice(0,3),e]}t.exports=function(t,r){let[u]=l(t,"");for(let t of function(t){let r=[],u=[],i=t.trim().split(/\s+/);for(let t=0;t=~v^]+$/.test(f)&&t+1="}if("~"===p[0]){let t=s[2].split("-")[0].split(".").length;u.push([">=",h]),u.push(["<",1===t?n(h,0):n(h,1)])}else if("^"===p[0]){let t=0!==h[0]?0:0!==h[1]?1:2;u.push([">=",h]),u.push(["<",0===t?n(h,0):1===t?n(h,1):n(h,2)])}else u.push([p.replace("~","").replace("^",""),h])}return u.length&&r.push(u),r}(r))if(function(t,e){for(let[n,r]of t)if(!function(t,e,n){if(!i("=",t[0],e[0]))return i(n,t[0],e[0]);if(!i("=",t[1],e[1]))return i(n,t[1],e[1]);if(!i("=",t[2],e[2])||3===t.length&&3===e.length)return i(n,t[2],e[2]);if("<"===n[0]&&(3===e.length||3===t.length))return!1;if(">"===n[0]){if(3===t.length)return!0;if(3===e.length)return!1}for(let r=3;r{var t={4485:function(t){function e(t){return"latest"===t&&(t=">=0"),t.match(/^([^\d+]*)(\d.*)$/)||[null,"","*.*.*"]}function n(t,e){let n=t.slice(0);if(-1===t[e])return n;for(n[e++]++;e<3;e++)n[e]=0;return n}function r(t){return"x"===t||"X"===t||"*"===t||"latest"===t?-1:Number(t)}function u(t){return/^\d+$/.test(t)?Number(t):t}function i(t,e,n){return -1===n?"<"!==t:"="===t?e===n:">"===t?e>n:">="===t?e>=n:"<"===t?e"===e?(e=">=",l.push(0,0,0),l[f]++):""===e?l.push(0,0,0):l.push(-1,-1,-1),i)?[l.slice(0,3).concat(i.split(".").map(u)),e]:[l.slice(0,3),e]}t.exports=function(t,r){let[u]=l(t,"");for(let t of function(t){let r=[],u=[],i=t.trim().split(/\s+/);for(let t=0;t=~v^]+$/.test(f)&&t+1="}if("~"===p[0]){let t=s[2].split("-")[0].split(".").length;u.push([">=",h]),u.push(["<",1===t?n(h,0):n(h,1)])}else if("^"===p[0]){let t=0!==h[0]?0:0!==h[1]?1:2;u.push([">=",h]),u.push(["<",0===t?n(h,0):1===t?n(h,1):n(h,2)])}else u.push([p.replace("~","").replace("^",""),h])}return u.length&&r.push(u),r}(r))if(function(t,e){for(let[n,r]of t)if(!function(t,e,n){if(!i("=",t[0],e[0]))return i(n,t[0],e[0]);if(!i("=",t[1],e[1]))return i(n,t[1],e[1]);if(!i("=",t[2],e[2])||3===t.length&&3===e.length)return i(n,t[2],e[2]);if("<"===n[0]&&(3===e.length||3===t.length))return!1;if(">"===n[0]){if(3===t.length)return!0;if(3===e.length)return!1}for(let r=3;r{"use strict";var t={9563:function(t){for(var e="(?:\\|\\||\\&\\&|;;|\\|\\&|\\<\\(|\\<\\<\\<|>>|>\\&|<\\&|[&;()|<>])",r=RegExp("^"+e+"$"),n="|&;()<> \\t",o=/^#$/,i="",s=0;s<4;s++)i+=(0x100000000*Math.random()).toString(16);var a=RegExp("^"+i);t.exports=function(t,s,c){var u=function(t,s,a){a||(a={});var c=a.escape||"\\",u=function(t,e){for(var r,n=e.lastIndex,o=[];r=e.exec(t);)o.push(r),e.lastIndex===r.index&&(e.lastIndex+=1);return e.lastIndex=n,o}(t,RegExp(["("+e+")","("+("(\\"+c+"['\""+n+"]|[^\\s'\""+n)+"])+|\"((\\\\\"|[^\"])*?)\"|'((\\\\'|[^'])*?)')+"].join("|"),"g"));if(0===u.length)return[];s||(s={});var f=!1;return u.map(function(e){var n,a=e[0];if(a&&!f){if(r.test(a))return{op:a};var u=!1,p=!1,l="",x=!1;for(n=0;n?@[\\\]^`{|}])/g,"$1\\$2")}).join(" ")}}},e={};function r(n){var o=e[n];if(void 0!==o)return o.exports;var i=e[n]={exports:{}};return t[n](i,i.exports,r),i.exports}var n={};n.quote=r(3940),n.parse=r(9563),module.exports=n})(); \ No newline at end of file +(()=>{"use strict";var t={9318:function(t){for(var e="(?:\\|\\||\\&\\&|;;|\\|\\&|\\<\\(|\\<\\<\\<|>>|>\\&|<\\&|[&;()|<>])",r=RegExp("^"+e+"$"),n="|&;()<> \\t",o=/^#$/,i="",s=0;s<4;s++)i+=(0x100000000*Math.random()).toString(16);var a=RegExp("^"+i);t.exports=function(t,s,c){var u=function(t,s,a){a||(a={});var c=a.escape||"\\",u=function(t,e){for(var r,n=e.lastIndex,o=[];r=e.exec(t);)o.push(r),e.lastIndex===r.index&&(e.lastIndex+=1);return e.lastIndex=n,o}(t,RegExp(["("+e+")","("+("(\\"+c+"['\""+n+"]|[^\\s'\""+n)+"])+|\"((\\\\\"|[^\"])*?)\"|'((\\\\'|[^'])*?)')+"].join("|"),"g"));if(0===u.length)return[];s||(s={});var f=!1;return u.map(function(e){var n,a=e[0];if(a&&!f){if(r.test(a))return{op:a};var u=!1,p=!1,l="",x=!1;for(n=0;n?@[\\\]^`{|}])/g,"$1\\$2")}).join(" ")}}},e={};function r(n){var o=e[n];if(void 0!==o)return o.exports;var i=e[n]={exports:{}};return t[n](i,i.exports,r),i.exports}var n={};n.quote=r(4257),n.parse=r(9318),module.exports=n})(); \ No newline at end of file diff --git a/packages/node_modules/source-map/index.js b/packages/node_modules/source-map/index.js index 21d8384edee..fdf542382bc 100644 --- a/packages/node_modules/source-map/index.js +++ b/packages/node_modules/source-map/index.js @@ -1 +1 @@ -(()=>{var e={735:function(e,n){class t{constructor(){this._array=[],this._set=new Map}static fromArray(e,n){let r=new t;for(let t=0,o=e.length;t=0)return n;throw Error('"'+e+'" is not in the set.')}at(e){if(e>=0&&e>>=5)>0&&(n|=32),t+=r.encode(n);while(o>0);return t}},2364:function(e,n){let t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");n.encode=function(e){if(0<=e&&e0?r-a>1?e(a,r,o,i,s,l):l===n.LEAST_UPPER_BOUND?r1?e(t,a,o,i,s,l):l==n.LEAST_UPPER_BOUND?a:t<0?-1:t}(-1,t.length,e,t,r,o||n.GREATEST_LOWER_BOUND);if(i<0)return -1;for(;i-1>=0&&0===r(t[i],t[i-1],!0);)--i;return i}},3302:function(e,n,t){let r=t(251);n.MappingList=class{constructor(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}unsortedForEach(e,n){this._array.forEach(e,n)}add(e){var n;let t,o,i,s;(n=this._last,t=n.generatedLine,o=e.generatedLine,i=n.generatedColumn,s=e.generatedColumn,o>t||o==t&&s>=i||0>=r.compareByGeneratedPositionsInflated(n,e))?this._last=e:this._sorted=!1,this._array.push(e)}toArray(){return this._sorted||(this._array.sort(r.compareByGeneratedPositionsInflated),this._sorted=!0),this._array}}},6576:function(e,n,t){"use strict";let r=t(9896),o=t(6928);e.exports=function(){return new Promise((e,n)=>{let t=o.join(__dirname,"mappings.wasm");r.readFile(t,null,(t,r)=>{t?n(t):e(r.buffer)})})},e.exports.initialize=e=>{console.debug("SourceMapConsumer.initialize is a no-op when running in node.js")}},7446:function(e,n,t){let r=t(251),o=t(1163),i=t(735).ArraySet;t(7092);let s=t(6576),l=t(8991),a=Symbol("smcInternal");class u{constructor(e,n){if(e==a)return Promise.resolve(this);return function(e,n){let t=e;return"string"==typeof e&&(t=r.parseSourceMapInput(e)),Promise.resolve(null!=t.sections?new g(t,n):new c(t,n))}(e,n)}static initialize(e){s.initialize(e["lib/mappings.wasm"])}static fromSourceMap(e,n){var t,r;return t=e,r=n,c.fromSourceMap(t,r)}static async with(e,n,t){let r=await new u(e,n);try{return await t(r)}finally{r.destroy()}}eachMapping(e,n,t){throw Error("Subclasses must implement eachMapping")}allGeneratedPositionsFor(e){throw Error("Subclasses must implement allGeneratedPositionsFor")}destroy(){throw Error("Subclasses must implement destroy")}}u.prototype._version=3,u.GENERATED_ORDER=1,u.ORIGINAL_ORDER=2,u.GREATEST_LOWER_BOUND=1,u.LEAST_UPPER_BOUND=2,n.SourceMapConsumer=u;class c extends u{constructor(e,n){return super(a).then(t=>{let o=e;"string"==typeof e&&(o=r.parseSourceMapInput(e));let s=r.getArg(o,"version"),a=r.getArg(o,"sources").map(String),u=r.getArg(o,"names",[]),c=r.getArg(o,"sourceRoot",null),g=r.getArg(o,"sourcesContent",null),h=r.getArg(o,"mappings"),m=r.getArg(o,"file",null),p=r.getArg(o,"x_google_ignoreList",null);if(s!=t._version)throw Error("Unsupported version: "+s);return t._sourceLookupCache=new Map,t._names=i.fromArray(u.map(String),!0),t._sources=i.fromArray(a,!0),t._absoluteSources=i.fromArray(t._sources.toArray().map(function(e){return r.computeSourceURL(c,e,n)}),!0),t.sourceRoot=c,t.sourcesContent=g,t._mappings=h,t._sourceMapURL=n,t.file=m,t.x_google_ignoreList=p,t._computedColumnSpans=!1,t._mappingsPtr=0,t._wasm=null,l().then(e=>(t._wasm=e,t))})}_findSourceIndex(e){let n=this._sourceLookupCache.get(e);if("number"==typeof n)return n;let t=r.computeSourceURL(null,e,this._sourceMapURL);if(this._absoluteSources.has(t)){let n=this._absoluteSources.indexOf(t);return this._sourceLookupCache.set(e,n),n}let o=r.computeSourceURL(this.sourceRoot,e,this._sourceMapURL);if(this._absoluteSources.has(o)){let n=this._absoluteSources.indexOf(o);return this._sourceLookupCache.set(e,n),n}return -1}static fromSourceMap(e,n){return new c(e.toString())}get sources(){return this._absoluteSources.toArray()}_getMappingsPtr(){return 0===this._mappingsPtr&&this._parseMappings(),this._mappingsPtr}_parseMappings(){let e=this._mappings,n=e.length,t=this._wasm.exports.allocate_mappings(n)>>>0,r=new Uint8Array(this._wasm.exports.memory.buffer,t,n);for(let t=0;t{null!==n.source&&(n.source=this._absoluteSources.at(n.source),null!==n.name&&(n.name=this._names.at(n.name))),this._computedColumnSpans&&null===n.lastGeneratedColumn&&(n.lastGeneratedColumn=1/0),e.call(r,n)},()=>{switch(o){case u.GENERATED_ORDER:this._wasm.exports.by_generated_location(this._getMappingsPtr());break;case u.ORIGINAL_ORDER:this._wasm.exports.by_original_location(this._getMappingsPtr());break;default:throw Error("Unknown order of iteration.")}})}allGeneratedPositionsFor(e){let n=r.getArg(e,"source"),t=r.getArg(e,"line"),o=e.column||0;if((n=this._findSourceIndex(n))<0)return[];if(t<1)throw Error("Line numbers must be >= 1");if(o<0)throw Error("Column numbers must be >= 0");let i=[];return this._wasm.withMappingCallback(e=>{let n=e.lastGeneratedColumn;this._computedColumnSpans&&null===n&&(n=1/0),i.push({line:e.generatedLine,column:e.generatedColumn,lastColumn:n})},()=>{this._wasm.exports.all_generated_locations_for(this._getMappingsPtr(),n,t-1,"column"in e,o)}),i}destroy(){0!==this._mappingsPtr&&(this._wasm.exports.free_mappings(this._mappingsPtr),this._mappingsPtr=0)}computeColumnSpans(){this._computedColumnSpans||(this._wasm.exports.compute_column_spans(this._getMappingsPtr()),this._computedColumnSpans=!0)}originalPositionFor(e){let n,t={generatedLine:r.getArg(e,"line"),generatedColumn:r.getArg(e,"column")};if(t.generatedLine<1)throw Error("Line numbers must be >= 1");if(t.generatedColumn<0)throw Error("Column numbers must be >= 0");let o=r.getArg(e,"bias",u.GREATEST_LOWER_BOUND);if(null==o&&(o=u.GREATEST_LOWER_BOUND),this._wasm.withMappingCallback(e=>n=e,()=>{this._wasm.exports.original_location_for(this._getMappingsPtr(),t.generatedLine-1,t.generatedColumn,o)}),n&&n.generatedLine===t.generatedLine){let e=r.getArg(n,"source",null);null!==e&&(e=this._absoluteSources.at(e));let t=r.getArg(n,"name",null);return null!==t&&(t=this._names.at(t)),{source:e,line:r.getArg(n,"originalLine",null),column:r.getArg(n,"originalColumn",null),name:t}}return{source:null,line:null,column:null,name:null}}hasContentsOfAllSources(){return!!this.sourcesContent&&this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(e){return null==e})}sourceContentFor(e,n){if(!this.sourcesContent)return null;let t=this._findSourceIndex(e);if(t>=0)return this.sourcesContent[t];if(n)return null;throw Error('"'+e+'" is not in the SourceMap.')}generatedPositionFor(e){let n,t=r.getArg(e,"source");if((t=this._findSourceIndex(t))<0)return{line:null,column:null,lastColumn:null};let o={source:t,originalLine:r.getArg(e,"line"),originalColumn:r.getArg(e,"column")};if(o.originalLine<1)throw Error("Line numbers must be >= 1");if(o.originalColumn<0)throw Error("Column numbers must be >= 0");let i=r.getArg(e,"bias",u.GREATEST_LOWER_BOUND);if(null==i&&(i=u.GREATEST_LOWER_BOUND),this._wasm.withMappingCallback(e=>n=e,()=>{this._wasm.exports.generated_location_for(this._getMappingsPtr(),o.source,o.originalLine-1,o.originalColumn,i)}),n&&n.source===o.source){let e=n.lastGeneratedColumn;return this._computedColumnSpans&&null===e&&(e=1/0),{line:r.getArg(n,"generatedLine",null),column:r.getArg(n,"generatedColumn",null),lastColumn:e}}return{line:null,column:null,lastColumn:null}}}c.prototype.consumer=u;class g extends u{constructor(e,n){return super(a).then(t=>{let o=e;"string"==typeof e&&(o=r.parseSourceMapInput(e));let i=r.getArg(o,"version"),s=r.getArg(o,"sections");if(i!=t._version)throw Error("Unsupported version: "+i);let l={line:-1,column:0};return Promise.all(s.map(e=>{if(e.url)throw Error("Support for url field in sections not implemented.");let t=r.getArg(e,"offset"),o=r.getArg(t,"line"),i=r.getArg(t,"column");if(o({generatedOffset:{generatedLine:o+1,generatedColumn:i+1},consumer:e}))})).then(e=>(t._sections=e,t))})}get sources(){let e=[];for(let n=0;n=0?this._sections[n]:null,o=n>=0&&n+1=0?this._sections[n]:null,o=n>=0&&n+1{let n=t.generatedOffset.generatedLine-1,r=t.generatedOffset.generatedColumn-1;return 1===e.line&&(e.column+=r,"number"==typeof e.lastColumn&&(e.lastColumn+=r)),e.lastColumn===1/0&&o&&e.line===o.generatedOffset.generatedLine&&(e.lastColumn=o.generatedOffset.generatedColumn-2),e.line+=n,e}):[]}eachMapping(e,n,t){this._sections.forEach((r,o)=>{let i=o+10?new i:this._sources,a=new i;this._mappings.unsortedForEach(function(n){if(n.source===r&&null!=n.originalLine){let r=e.originalPositionFor({line:n.originalLine,column:n.originalColumn});null!=r.source&&(n.source=r.source,null!=t&&(n.source=o.join(t,n.source)),null!=s&&(n.source=o.relative(s,n.source)),n.originalLine=r.line,n.originalColumn=r.column,null!=r.name&&(n.name=r.name))}let i=n.source;null==i||l.has(i)||l.add(i);let u=n.name;null==u||a.has(u)||a.add(u)},this),this._sources=l,this._names=a,e.sources.forEach(function(n){let r=e.sourceContentFor(n);null!=r&&(null!=t&&(n=o.join(t,n)),null!=s&&(n=o.relative(s,n)),this.setSourceContent(n,r))},this)}_validateMapping(e,n,t,r){if(n&&"number"!=typeof n.line&&"number"!=typeof n.column)throw Error("original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.");if(e&&"line"in e&&"column"in e&&e.line>0&&e.column>=0&&!n&&!t&&!r);else if(e&&"line"in e&&"column"in e&&n&&"line"in n&&"column"in n&&e.line>0&&e.column>=0&&n.line>0&&n.column>=0&&t);else throw Error("Invalid mapping: "+JSON.stringify({generated:e,source:t,original:n,name:r}))}_serializeMappings(){let e,n,t,i,s=0,l=1,a=0,u=0,c=0,g=0,h="",m=this._mappings.toArray();for(let p=0,d=m.length;p0){if(!o.compareByGeneratedPositionsInflated(n,m[p-1]))continue;e+=","}e+=r.encode(n.generatedColumn-s),s=n.generatedColumn,null!=n.source&&(i=this._sources.indexOf(n.source),e+=r.encode(i-g),g=i,e+=r.encode(n.originalLine-1-u),u=n.originalLine-1,e+=r.encode(n.originalColumn-a),a=n.originalColumn,null!=n.name&&(t=this._names.indexOf(n.name),e+=r.encode(t-c),c=t)),h+=e}return h}_generateSourcesContent(e,n){return e.map(function(e){if(!this._sourcesContents)return null;null!=n&&(e=o.relative(n,e));let t=o.toSetString(e);return Object.prototype.hasOwnProperty.call(this._sourcesContents,t)?this._sourcesContents[t]:null},this)}toJSON(){let e={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return null!=this._file&&(e.file=this._file),null!=this._sourceRoot&&(e.sourceRoot=this._sourceRoot),this._sourcesContents&&(e.sourcesContent=this._generateSourcesContent(e.sources,e.sourceRoot)),e}toString(){return JSON.stringify(this.toJSON())}}l.prototype._version=3,n.SourceMapGenerator=l},1683:function(e,n,t){let r=t(4041).SourceMapGenerator,o=t(251),i=/(\r?\n)/,s="$$$isSourceNode$$$";class l{constructor(e,n,t,r,o){this.children=[],this.sourceContents={},this.line=null==e?null:e,this.column=null==n?null:n,this.source=null==t?null:t,this.name=null==o?null:o,this[s]=!0,null!=r&&this.add(r)}static fromStringWithSourceMap(e,n,t){let r,s=new l,a=e.split(i),u=0,c=function(){return e()+(e()||"");function e(){return u=0;n--)this.prepend(e[n]);else if(e[s]||"string"==typeof e)this.children.unshift(e);else throw TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e);return this}walk(e){let n;for(let t=0,r=this.children.length;t0){for(t=0,n=[];t=0;t--)if(36!==e.charCodeAt(t))return!1;return!0}function l(e,n){return e===n?0:null===e?1:null===n?-1:e>n?1:-1}n.toSetString=o?i:function(e){return s(e)?"$"+e:e},n.fromSetString=o?i:function(e){return s(e)?e.slice(1):e},n.compareByGeneratedPositionsInflated=function(e,n){let t=e.generatedLine-n.generatedLine;return 0!==t||0!=(t=e.generatedColumn-n.generatedColumn)||0!==(t=l(e.source,n.source))||0!=(t=e.originalLine-n.originalLine)||0!=(t=e.originalColumn-n.originalColumn)?t:l(e.name,n.name)},n.parseSourceMapInput=function(e){return JSON.parse(e.replace(/^\)]}'[^\n]*\n/,""))};let a="http:",u=`${a}//host`;function c(e){return n=>{let t=p(n),o=h(n),i=new r(n,o);e(i);let s=i.toString();return"absolute"===t?s:"scheme-relative"===t?s.slice(a.length):"path-absolute"===t?s.slice(u.length):d(o,s)}}function g(e,n){return new r(e,n).toString()}function h(e){let n=e.split("..").length-1,t=function(e,n){let t=0;for(;;){let e="p"+t++;if(-1===n.indexOf(e))return e}}(0,e),r=`${u}/`;for(let e=0;e0&&!o[o.length-1]&&o.pop();t.length>0&&o.length>0&&t[0]===o[0];)t.shift(),o.shift();return o.map(()=>"..").concat(t).join("/")+n.search+n.hash}let _=c(e=>{e.pathname=e.pathname.replace(/\/?$/,"/")}),f=c(e=>{e.href=new r(".",e.toString()).toString()}),C=c(e=>{});function S(e,n){let t=p(n),r=p(e);if(e=_(e),"absolute"===t)return g(n,void 0);if("absolute"===r)return g(n,e);if("scheme-relative"===t)return C(n);if("scheme-relative"===r)return g(n,g(e,u)).slice(a.length);if("path-absolute"===t)return C(n);if("path-absolute"===r)return g(n,g(e,u)).slice(u.length);let o=h(n+e),i=g(n,g(e,o));return d(o,i)}n.normalize=C,n.join=S,n.relative=function(e,n){let t=function(e,n){if(p(e)!==p(n))return null;let t=h(e+n),o=new r(e,t),i=new r(n,t);try{new r("",i.toString())}catch(e){return null}return i.protocol!==o.protocol||i.user!==o.user||i.password!==o.password||i.hostname!==o.hostname||i.port!==o.port?null:d(o,i)}(e,n);return"string"==typeof t?t:C(n)},n.computeSourceURL=function(e,n,t){e&&"path-absolute"===p(n)&&(n=n.replace(/^\//,""));let r=C(n||"");return e&&(r=S(e,r)),t&&(r=S(f(t),r)),r}},8991:function(e,n,t){let r=t(6576);function o(){this.generatedLine=0,this.generatedColumn=0,this.lastGeneratedColumn=null,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}let i=null;e.exports=function(){if(i)return i;let e=[];return i=r().then(n=>WebAssembly.instantiate(n,{env:{mapping_callback(n,t,r,i,s,l,a,u,c,g){let h=new o;h.generatedLine=n+1,h.generatedColumn=t,r&&(h.lastGeneratedColumn=i-1),s&&(h.source=l,h.originalLine=a+1,h.originalColumn=u,c&&(h.name=g)),e[e.length-1](h)},start_all_generated_locations_for(){console.time("all_generated_locations_for")},end_all_generated_locations_for(){console.timeEnd("all_generated_locations_for")},start_compute_column_spans(){console.time("compute_column_spans")},end_compute_column_spans(){console.timeEnd("compute_column_spans")},start_generated_location_for(){console.time("generated_location_for")},end_generated_location_for(){console.timeEnd("generated_location_for")},start_original_location_for(){console.time("original_location_for")},end_original_location_for(){console.timeEnd("original_location_for")},start_parse_mappings(){console.time("parse_mappings")},end_parse_mappings(){console.timeEnd("parse_mappings")},start_sort_by_generated_location(){console.time("sort_by_generated_location")},end_sort_by_generated_location(){console.timeEnd("sort_by_generated_location")},start_sort_by_original_location(){console.time("sort_by_original_location")},end_sort_by_original_location(){console.timeEnd("sort_by_original_location")}}})).then(n=>({exports:n.instance.exports,withMappingCallback:(n,t)=>{e.push(n);try{t()}finally{e.pop()}}})).then(null,e=>{throw i=null,e})}},9896:function(e){"use strict";e.exports=require("fs")},6928:function(e){"use strict";e.exports=require("path")},7016:function(e){"use strict";e.exports=require("url")}},n={};function t(r){var o=n[r];if(void 0!==o)return o.exports;var i=n[r]={exports:{}};return e[r](i,i.exports,t),i.exports}var r={};r.SourceMapGenerator=t(4041).SourceMapGenerator,r.SourceMapConsumer=t(7446).SourceMapConsumer,r.SourceNode=t(1683).SourceNode,module.exports=r})(); \ No newline at end of file +(()=>{var e={6860:function(e,n){class t{constructor(){this._array=[],this._set=new Map}static fromArray(e,n){let r=new t;for(let t=0,o=e.length;t=0)return n;throw Error('"'+e+'" is not in the set.')}at(e){if(e>=0&&e>>=5)>0&&(n|=32),t+=r.encode(n);while(o>0);return t}},1853:function(e,n){let t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");n.encode=function(e){if(0<=e&&e0?r-a>1?e(a,r,o,i,s,l):l===n.LEAST_UPPER_BOUND?r1?e(t,a,o,i,s,l):l==n.LEAST_UPPER_BOUND?a:t<0?-1:t}(-1,t.length,e,t,r,o||n.GREATEST_LOWER_BOUND);if(i<0)return -1;for(;i-1>=0&&0===r(t[i],t[i-1],!0);)--i;return i}},3415:function(e,n,t){let r=t(8962);n.MappingList=class{constructor(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}unsortedForEach(e,n){this._array.forEach(e,n)}add(e){var n;let t,o,i,s;(n=this._last,t=n.generatedLine,o=e.generatedLine,i=n.generatedColumn,s=e.generatedColumn,o>t||o==t&&s>=i||0>=r.compareByGeneratedPositionsInflated(n,e))?this._last=e:this._sorted=!1,this._array.push(e)}toArray(){return this._sorted||(this._array.sort(r.compareByGeneratedPositionsInflated),this._sorted=!0),this._array}}},7551:function(e,n,t){"use strict";let r=t(9896),o=t(6928);e.exports=function(){return new Promise((e,n)=>{let t=o.join(__dirname,"mappings.wasm");r.readFile(t,null,(t,r)=>{t?n(t):e(r.buffer)})})},e.exports.initialize=e=>{console.debug("SourceMapConsumer.initialize is a no-op when running in node.js")}},2393:function(e,n,t){let r=t(8962),o=t(2456),i=t(6860).ArraySet;t(4722);let s=t(7551),l=t(7286),a=Symbol("smcInternal");class u{constructor(e,n){if(e==a)return Promise.resolve(this);return function(e,n){let t=e;return"string"==typeof e&&(t=r.parseSourceMapInput(e)),Promise.resolve(null!=t.sections?new g(t,n):new c(t,n))}(e,n)}static initialize(e){s.initialize(e["lib/mappings.wasm"])}static fromSourceMap(e,n){var t,r;return t=e,r=n,c.fromSourceMap(t,r)}static async with(e,n,t){let r=await new u(e,n);try{return await t(r)}finally{r.destroy()}}eachMapping(e,n,t){throw Error("Subclasses must implement eachMapping")}allGeneratedPositionsFor(e){throw Error("Subclasses must implement allGeneratedPositionsFor")}destroy(){throw Error("Subclasses must implement destroy")}}u.prototype._version=3,u.GENERATED_ORDER=1,u.ORIGINAL_ORDER=2,u.GREATEST_LOWER_BOUND=1,u.LEAST_UPPER_BOUND=2,n.SourceMapConsumer=u;class c extends u{constructor(e,n){return super(a).then(t=>{let o=e;"string"==typeof e&&(o=r.parseSourceMapInput(e));let s=r.getArg(o,"version"),a=r.getArg(o,"sources").map(String),u=r.getArg(o,"names",[]),c=r.getArg(o,"sourceRoot",null),g=r.getArg(o,"sourcesContent",null),h=r.getArg(o,"mappings"),m=r.getArg(o,"file",null),p=r.getArg(o,"x_google_ignoreList",null);if(s!=t._version)throw Error("Unsupported version: "+s);return t._sourceLookupCache=new Map,t._names=i.fromArray(u.map(String),!0),t._sources=i.fromArray(a,!0),t._absoluteSources=i.fromArray(t._sources.toArray().map(function(e){return r.computeSourceURL(c,e,n)}),!0),t.sourceRoot=c,t.sourcesContent=g,t._mappings=h,t._sourceMapURL=n,t.file=m,t.x_google_ignoreList=p,t._computedColumnSpans=!1,t._mappingsPtr=0,t._wasm=null,l().then(e=>(t._wasm=e,t))})}_findSourceIndex(e){let n=this._sourceLookupCache.get(e);if("number"==typeof n)return n;let t=r.computeSourceURL(null,e,this._sourceMapURL);if(this._absoluteSources.has(t)){let n=this._absoluteSources.indexOf(t);return this._sourceLookupCache.set(e,n),n}let o=r.computeSourceURL(this.sourceRoot,e,this._sourceMapURL);if(this._absoluteSources.has(o)){let n=this._absoluteSources.indexOf(o);return this._sourceLookupCache.set(e,n),n}return -1}static fromSourceMap(e,n){return new c(e.toString())}get sources(){return this._absoluteSources.toArray()}_getMappingsPtr(){return 0===this._mappingsPtr&&this._parseMappings(),this._mappingsPtr}_parseMappings(){let e=this._mappings,n=e.length,t=this._wasm.exports.allocate_mappings(n)>>>0,r=new Uint8Array(this._wasm.exports.memory.buffer,t,n);for(let t=0;t{null!==n.source&&(n.source=this._absoluteSources.at(n.source),null!==n.name&&(n.name=this._names.at(n.name))),this._computedColumnSpans&&null===n.lastGeneratedColumn&&(n.lastGeneratedColumn=1/0),e.call(r,n)},()=>{switch(o){case u.GENERATED_ORDER:this._wasm.exports.by_generated_location(this._getMappingsPtr());break;case u.ORIGINAL_ORDER:this._wasm.exports.by_original_location(this._getMappingsPtr());break;default:throw Error("Unknown order of iteration.")}})}allGeneratedPositionsFor(e){let n=r.getArg(e,"source"),t=r.getArg(e,"line"),o=e.column||0;if((n=this._findSourceIndex(n))<0)return[];if(t<1)throw Error("Line numbers must be >= 1");if(o<0)throw Error("Column numbers must be >= 0");let i=[];return this._wasm.withMappingCallback(e=>{let n=e.lastGeneratedColumn;this._computedColumnSpans&&null===n&&(n=1/0),i.push({line:e.generatedLine,column:e.generatedColumn,lastColumn:n})},()=>{this._wasm.exports.all_generated_locations_for(this._getMappingsPtr(),n,t-1,"column"in e,o)}),i}destroy(){0!==this._mappingsPtr&&(this._wasm.exports.free_mappings(this._mappingsPtr),this._mappingsPtr=0)}computeColumnSpans(){this._computedColumnSpans||(this._wasm.exports.compute_column_spans(this._getMappingsPtr()),this._computedColumnSpans=!0)}originalPositionFor(e){let n,t={generatedLine:r.getArg(e,"line"),generatedColumn:r.getArg(e,"column")};if(t.generatedLine<1)throw Error("Line numbers must be >= 1");if(t.generatedColumn<0)throw Error("Column numbers must be >= 0");let o=r.getArg(e,"bias",u.GREATEST_LOWER_BOUND);if(null==o&&(o=u.GREATEST_LOWER_BOUND),this._wasm.withMappingCallback(e=>n=e,()=>{this._wasm.exports.original_location_for(this._getMappingsPtr(),t.generatedLine-1,t.generatedColumn,o)}),n&&n.generatedLine===t.generatedLine){let e=r.getArg(n,"source",null);null!==e&&(e=this._absoluteSources.at(e));let t=r.getArg(n,"name",null);return null!==t&&(t=this._names.at(t)),{source:e,line:r.getArg(n,"originalLine",null),column:r.getArg(n,"originalColumn",null),name:t}}return{source:null,line:null,column:null,name:null}}hasContentsOfAllSources(){return!!this.sourcesContent&&this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(e){return null==e})}sourceContentFor(e,n){if(!this.sourcesContent)return null;let t=this._findSourceIndex(e);if(t>=0)return this.sourcesContent[t];if(n)return null;throw Error('"'+e+'" is not in the SourceMap.')}generatedPositionFor(e){let n,t=r.getArg(e,"source");if((t=this._findSourceIndex(t))<0)return{line:null,column:null,lastColumn:null};let o={source:t,originalLine:r.getArg(e,"line"),originalColumn:r.getArg(e,"column")};if(o.originalLine<1)throw Error("Line numbers must be >= 1");if(o.originalColumn<0)throw Error("Column numbers must be >= 0");let i=r.getArg(e,"bias",u.GREATEST_LOWER_BOUND);if(null==i&&(i=u.GREATEST_LOWER_BOUND),this._wasm.withMappingCallback(e=>n=e,()=>{this._wasm.exports.generated_location_for(this._getMappingsPtr(),o.source,o.originalLine-1,o.originalColumn,i)}),n&&n.source===o.source){let e=n.lastGeneratedColumn;return this._computedColumnSpans&&null===e&&(e=1/0),{line:r.getArg(n,"generatedLine",null),column:r.getArg(n,"generatedColumn",null),lastColumn:e}}return{line:null,column:null,lastColumn:null}}}c.prototype.consumer=u;class g extends u{constructor(e,n){return super(a).then(t=>{let o=e;"string"==typeof e&&(o=r.parseSourceMapInput(e));let i=r.getArg(o,"version"),s=r.getArg(o,"sections");if(i!=t._version)throw Error("Unsupported version: "+i);let l={line:-1,column:0};return Promise.all(s.map(e=>{if(e.url)throw Error("Support for url field in sections not implemented.");let t=r.getArg(e,"offset"),o=r.getArg(t,"line"),i=r.getArg(t,"column");if(o({generatedOffset:{generatedLine:o+1,generatedColumn:i+1},consumer:e}))})).then(e=>(t._sections=e,t))})}get sources(){let e=[];for(let n=0;n=0?this._sections[n]:null,o=n>=0&&n+1=0?this._sections[n]:null,o=n>=0&&n+1{let n=t.generatedOffset.generatedLine-1,r=t.generatedOffset.generatedColumn-1;return 1===e.line&&(e.column+=r,"number"==typeof e.lastColumn&&(e.lastColumn+=r)),e.lastColumn===1/0&&o&&e.line===o.generatedOffset.generatedLine&&(e.lastColumn=o.generatedOffset.generatedColumn-2),e.line+=n,e}):[]}eachMapping(e,n,t){this._sections.forEach((r,o)=>{let i=o+10?new i:this._sources,a=new i;this._mappings.unsortedForEach(function(n){if(n.source===r&&null!=n.originalLine){let r=e.originalPositionFor({line:n.originalLine,column:n.originalColumn});null!=r.source&&(n.source=r.source,null!=t&&(n.source=o.join(t,n.source)),null!=s&&(n.source=o.relative(s,n.source)),n.originalLine=r.line,n.originalColumn=r.column,null!=r.name&&(n.name=r.name))}let i=n.source;null==i||l.has(i)||l.add(i);let u=n.name;null==u||a.has(u)||a.add(u)},this),this._sources=l,this._names=a,e.sources.forEach(function(n){let r=e.sourceContentFor(n);null!=r&&(null!=t&&(n=o.join(t,n)),null!=s&&(n=o.relative(s,n)),this.setSourceContent(n,r))},this)}_validateMapping(e,n,t,r){if(n&&"number"!=typeof n.line&&"number"!=typeof n.column)throw Error("original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.");if(e&&"line"in e&&"column"in e&&e.line>0&&e.column>=0&&!n&&!t&&!r);else if(e&&"line"in e&&"column"in e&&n&&"line"in n&&"column"in n&&e.line>0&&e.column>=0&&n.line>0&&n.column>=0&&t);else throw Error("Invalid mapping: "+JSON.stringify({generated:e,source:t,original:n,name:r}))}_serializeMappings(){let e,n,t,i,s=0,l=1,a=0,u=0,c=0,g=0,h="",m=this._mappings.toArray();for(let p=0,d=m.length;p0){if(!o.compareByGeneratedPositionsInflated(n,m[p-1]))continue;e+=","}e+=r.encode(n.generatedColumn-s),s=n.generatedColumn,null!=n.source&&(i=this._sources.indexOf(n.source),e+=r.encode(i-g),g=i,e+=r.encode(n.originalLine-1-u),u=n.originalLine-1,e+=r.encode(n.originalColumn-a),a=n.originalColumn,null!=n.name&&(t=this._names.indexOf(n.name),e+=r.encode(t-c),c=t)),h+=e}return h}_generateSourcesContent(e,n){return e.map(function(e){if(!this._sourcesContents)return null;null!=n&&(e=o.relative(n,e));let t=o.toSetString(e);return Object.prototype.hasOwnProperty.call(this._sourcesContents,t)?this._sourcesContents[t]:null},this)}toJSON(){let e={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return null!=this._file&&(e.file=this._file),null!=this._sourceRoot&&(e.sourceRoot=this._sourceRoot),this._sourcesContents&&(e.sourcesContent=this._generateSourcesContent(e.sources,e.sourceRoot)),e}toString(){return JSON.stringify(this.toJSON())}}l.prototype._version=3,n.SourceMapGenerator=l},4812:function(e,n,t){let r=t(4488).SourceMapGenerator,o=t(8962),i=/(\r?\n)/,s="$$$isSourceNode$$$";class l{constructor(e,n,t,r,o){this.children=[],this.sourceContents={},this.line=null==e?null:e,this.column=null==n?null:n,this.source=null==t?null:t,this.name=null==o?null:o,this[s]=!0,null!=r&&this.add(r)}static fromStringWithSourceMap(e,n,t){let r,s=new l,a=e.split(i),u=0,c=function(){return e()+(e()||"");function e(){return u=0;n--)this.prepend(e[n]);else if(e[s]||"string"==typeof e)this.children.unshift(e);else throw TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e);return this}walk(e){let n;for(let t=0,r=this.children.length;t0){for(t=0,n=[];t=0;t--)if(36!==e.charCodeAt(t))return!1;return!0}function l(e,n){return e===n?0:null===e?1:null===n?-1:e>n?1:-1}n.toSetString=o?i:function(e){return s(e)?"$"+e:e},n.fromSetString=o?i:function(e){return s(e)?e.slice(1):e},n.compareByGeneratedPositionsInflated=function(e,n){let t=e.generatedLine-n.generatedLine;return 0!==t||0!=(t=e.generatedColumn-n.generatedColumn)||0!==(t=l(e.source,n.source))||0!=(t=e.originalLine-n.originalLine)||0!=(t=e.originalColumn-n.originalColumn)?t:l(e.name,n.name)},n.parseSourceMapInput=function(e){return JSON.parse(e.replace(/^\)]}'[^\n]*\n/,""))};let a="http:",u=`${a}//host`;function c(e){return n=>{let t=p(n),o=h(n),i=new r(n,o);e(i);let s=i.toString();return"absolute"===t?s:"scheme-relative"===t?s.slice(a.length):"path-absolute"===t?s.slice(u.length):d(o,s)}}function g(e,n){return new r(e,n).toString()}function h(e){let n=e.split("..").length-1,t=function(e,n){let t=0;for(;;){let e="p"+t++;if(-1===n.indexOf(e))return e}}(0,e),r=`${u}/`;for(let e=0;e0&&!o[o.length-1]&&o.pop();t.length>0&&o.length>0&&t[0]===o[0];)t.shift(),o.shift();return o.map(()=>"..").concat(t).join("/")+n.search+n.hash}let _=c(e=>{e.pathname=e.pathname.replace(/\/?$/,"/")}),f=c(e=>{e.href=new r(".",e.toString()).toString()}),C=c(e=>{});function S(e,n){let t=p(n),r=p(e);if(e=_(e),"absolute"===t)return g(n,void 0);if("absolute"===r)return g(n,e);if("scheme-relative"===t)return C(n);if("scheme-relative"===r)return g(n,g(e,u)).slice(a.length);if("path-absolute"===t)return C(n);if("path-absolute"===r)return g(n,g(e,u)).slice(u.length);let o=h(n+e),i=g(n,g(e,o));return d(o,i)}n.normalize=C,n.join=S,n.relative=function(e,n){let t=function(e,n){if(p(e)!==p(n))return null;let t=h(e+n),o=new r(e,t),i=new r(n,t);try{new r("",i.toString())}catch(e){return null}return i.protocol!==o.protocol||i.user!==o.user||i.password!==o.password||i.hostname!==o.hostname||i.port!==o.port?null:d(o,i)}(e,n);return"string"==typeof t?t:C(n)},n.computeSourceURL=function(e,n,t){e&&"path-absolute"===p(n)&&(n=n.replace(/^\//,""));let r=C(n||"");return e&&(r=S(e,r)),t&&(r=S(f(t),r)),r}},7286:function(e,n,t){let r=t(7551);function o(){this.generatedLine=0,this.generatedColumn=0,this.lastGeneratedColumn=null,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}let i=null;e.exports=function(){if(i)return i;let e=[];return i=r().then(n=>WebAssembly.instantiate(n,{env:{mapping_callback(n,t,r,i,s,l,a,u,c,g){let h=new o;h.generatedLine=n+1,h.generatedColumn=t,r&&(h.lastGeneratedColumn=i-1),s&&(h.source=l,h.originalLine=a+1,h.originalColumn=u,c&&(h.name=g)),e[e.length-1](h)},start_all_generated_locations_for(){console.time("all_generated_locations_for")},end_all_generated_locations_for(){console.timeEnd("all_generated_locations_for")},start_compute_column_spans(){console.time("compute_column_spans")},end_compute_column_spans(){console.timeEnd("compute_column_spans")},start_generated_location_for(){console.time("generated_location_for")},end_generated_location_for(){console.timeEnd("generated_location_for")},start_original_location_for(){console.time("original_location_for")},end_original_location_for(){console.timeEnd("original_location_for")},start_parse_mappings(){console.time("parse_mappings")},end_parse_mappings(){console.timeEnd("parse_mappings")},start_sort_by_generated_location(){console.time("sort_by_generated_location")},end_sort_by_generated_location(){console.timeEnd("sort_by_generated_location")},start_sort_by_original_location(){console.time("sort_by_original_location")},end_sort_by_original_location(){console.timeEnd("sort_by_original_location")}}})).then(n=>({exports:n.instance.exports,withMappingCallback:(n,t)=>{e.push(n);try{t()}finally{e.pop()}}})).then(null,e=>{throw i=null,e})}},9896:function(e){"use strict";e.exports=require("fs")},6928:function(e){"use strict";e.exports=require("path")},7016:function(e){"use strict";e.exports=require("url")}},n={};function t(r){var o=n[r];if(void 0!==o)return o.exports;var i=n[r]={exports:{}};return e[r](i,i.exports,t),i.exports}var r={};r.SourceMapGenerator=t(4488).SourceMapGenerator,r.SourceMapConsumer=t(2393).SourceMapConsumer,r.SourceNode=t(4812).SourceNode,module.exports=r})(); \ No newline at end of file diff --git a/packages/node_modules/source-map/lib/util/index.js b/packages/node_modules/source-map/lib/util/index.js index 523d4a7203f..f2db96ba961 100644 --- a/packages/node_modules/source-map/lib/util/index.js +++ b/packages/node_modules/source-map/lib/util/index.js @@ -1 +1 @@ -(()=>{var e={2626:function(e,t,r){"use strict";e.exports="function"==typeof URL?URL:r(7016).URL},7016:function(e){"use strict";e.exports=require("url")}},t={},r={};(()=>{let n=function r(n){var o=t[n];if(void 0!==o)return o.exports;var i=t[n]={exports:{}};return e[n](i,i.exports,r),i.exports}(2626);r.getArg=function(e,t,r){if(t in e)return e[t];if(3==arguments.length)return r;throw Error('"'+t+'" is a required argument.')};let o=!("__proto__"in Object.create(null));function i(e){return e}function u(e){if(!e)return!1;let t=e.length;if(t<9||95!==e.charCodeAt(t-1)||95!==e.charCodeAt(t-2)||111!==e.charCodeAt(t-3)||116!==e.charCodeAt(t-4)||111!==e.charCodeAt(t-5)||114!==e.charCodeAt(t-6)||112!==e.charCodeAt(t-7)||95!==e.charCodeAt(t-8)||95!==e.charCodeAt(t-9))return!1;for(let r=t-10;r>=0;r--)if(36!==e.charCodeAt(r))return!1;return!0}function l(e,t){return e===t?0:null===e?1:null===t?-1:e>t?1:-1}r.toSetString=o?i:function(e){return u(e)?"$"+e:e},r.fromSetString=o?i:function(e){return u(e)?e.slice(1):e},r.compareByGeneratedPositionsInflated=function(e,t){let r=e.generatedLine-t.generatedLine;return 0!==r||0!=(r=e.generatedColumn-t.generatedColumn)||0!==(r=l(e.source,t.source))||0!=(r=e.originalLine-t.originalLine)||0!=(r=e.originalColumn-t.originalColumn)?r:l(e.name,t.name)},r.parseSourceMapInput=function(e){return JSON.parse(e.replace(/^\)]}'[^\n]*\n/,""))};let a="http:",c=`${a}//host`;function s(e){return t=>{let r=g(t),o=h(t),i=new n(t,o);e(i);let u=i.toString();return"absolute"===r?u:"scheme-relative"===r?u.slice(a.length):"path-absolute"===r?u.slice(c.length):d(o,u)}}function f(e,t){return new n(e,t).toString()}function h(e){let t=e.split("..").length-1,r=function(e,t){let r=0;for(;;){let e="p"+r++;if(-1===t.indexOf(e))return e}}(0,e),n=`${c}/`;for(let e=0;e0&&!o[o.length-1]&&o.pop();r.length>0&&o.length>0&&r[0]===o[0];)r.shift(),o.shift();return o.map(()=>"..").concat(r).join("/")+t.search+t.hash}let m=s(e=>{e.pathname=e.pathname.replace(/\/?$/,"/")}),C=s(e=>{e.href=new n(".",e.toString()).toString()}),A=s(e=>{});function S(e,t){let r=g(t),n=g(e);if(e=m(e),"absolute"===r)return f(t,void 0);if("absolute"===n)return f(t,e);if("scheme-relative"===r)return A(t);if("scheme-relative"===n)return f(t,f(e,c)).slice(a.length);if("path-absolute"===r)return A(t);if("path-absolute"===n)return f(t,f(e,c)).slice(c.length);let o=h(t+e),i=f(t,f(e,o));return d(o,i)}r.normalize=A,r.join=S,r.relative=function(e,t){let r=function(e,t){if(g(e)!==g(t))return null;let r=h(e+t),o=new n(e,r),i=new n(t,r);try{new n("",i.toString())}catch(e){return null}return i.protocol!==o.protocol||i.user!==o.user||i.password!==o.password||i.hostname!==o.hostname||i.port!==o.port?null:d(o,i)}(e,t);return"string"==typeof r?r:A(t)},r.computeSourceURL=function(e,t,r){e&&"path-absolute"===g(t)&&(t=t.replace(/^\//,""));let n=A(t||"");return e&&(n=S(e,n)),r&&(n=S(C(r),n)),n}})(),module.exports=r})(); \ No newline at end of file +(()=>{var e={921:function(e,t,r){"use strict";e.exports="function"==typeof URL?URL:r(7016).URL},7016:function(e){"use strict";e.exports=require("url")}},t={},r={};(()=>{let n=function r(n){var o=t[n];if(void 0!==o)return o.exports;var i=t[n]={exports:{}};return e[n](i,i.exports,r),i.exports}(921);r.getArg=function(e,t,r){if(t in e)return e[t];if(3==arguments.length)return r;throw Error('"'+t+'" is a required argument.')};let o=!("__proto__"in Object.create(null));function i(e){return e}function u(e){if(!e)return!1;let t=e.length;if(t<9||95!==e.charCodeAt(t-1)||95!==e.charCodeAt(t-2)||111!==e.charCodeAt(t-3)||116!==e.charCodeAt(t-4)||111!==e.charCodeAt(t-5)||114!==e.charCodeAt(t-6)||112!==e.charCodeAt(t-7)||95!==e.charCodeAt(t-8)||95!==e.charCodeAt(t-9))return!1;for(let r=t-10;r>=0;r--)if(36!==e.charCodeAt(r))return!1;return!0}function l(e,t){return e===t?0:null===e?1:null===t?-1:e>t?1:-1}r.toSetString=o?i:function(e){return u(e)?"$"+e:e},r.fromSetString=o?i:function(e){return u(e)?e.slice(1):e},r.compareByGeneratedPositionsInflated=function(e,t){let r=e.generatedLine-t.generatedLine;return 0!==r||0!=(r=e.generatedColumn-t.generatedColumn)||0!==(r=l(e.source,t.source))||0!=(r=e.originalLine-t.originalLine)||0!=(r=e.originalColumn-t.originalColumn)?r:l(e.name,t.name)},r.parseSourceMapInput=function(e){return JSON.parse(e.replace(/^\)]}'[^\n]*\n/,""))};let a="http:",c=`${a}//host`;function s(e){return t=>{let r=g(t),o=h(t),i=new n(t,o);e(i);let u=i.toString();return"absolute"===r?u:"scheme-relative"===r?u.slice(a.length):"path-absolute"===r?u.slice(c.length):d(o,u)}}function f(e,t){return new n(e,t).toString()}function h(e){let t=e.split("..").length-1,r=function(e,t){let r=0;for(;;){let e="p"+r++;if(-1===t.indexOf(e))return e}}(0,e),n=`${c}/`;for(let e=0;e0&&!o[o.length-1]&&o.pop();r.length>0&&o.length>0&&r[0]===o[0];)r.shift(),o.shift();return o.map(()=>"..").concat(r).join("/")+t.search+t.hash}let m=s(e=>{e.pathname=e.pathname.replace(/\/?$/,"/")}),C=s(e=>{e.href=new n(".",e.toString()).toString()}),A=s(e=>{});function S(e,t){let r=g(t),n=g(e);if(e=m(e),"absolute"===r)return f(t,void 0);if("absolute"===n)return f(t,e);if("scheme-relative"===r)return A(t);if("scheme-relative"===n)return f(t,f(e,c)).slice(a.length);if("path-absolute"===r)return A(t);if("path-absolute"===n)return f(t,f(e,c)).slice(c.length);let o=h(t+e),i=f(t,f(e,o));return d(o,i)}r.normalize=A,r.join=S,r.relative=function(e,t){let r=function(e,t){if(g(e)!==g(t))return null;let r=h(e+t),o=new n(e,r),i=new n(t,r);try{new n("",i.toString())}catch(e){return null}return i.protocol!==o.protocol||i.user!==o.user||i.password!==o.password||i.hostname!==o.hostname||i.port!==o.port?null:d(o,i)}(e,t);return"string"==typeof r?r:A(t)},r.computeSourceURL=function(e,t,r){e&&"path-absolute"===g(t)&&(t=t.replace(/^\//,""));let n=A(t||"");return e&&(n=S(e,n)),r&&(n=S(C(r),n)),n}})(),module.exports=r})(); \ No newline at end of file diff --git a/packages/node_modules/source-map/mappings.wasm b/packages/node_modules/source-map/mappings.wasm new file mode 100644 index 0000000000000000000000000000000000000000..cdcc2958c0f445a3662c9a82a0eead47e8210c3e GIT binary patch literal 48526 zcmdVDZH!(=cIS6rp7)pTr<={!rpUTiltfA-)ohYYYHZK;Bd;VgTv@>mj3CGd4Tqv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gwv{)hnx4SJzgrtzKV!>GI0u zOP5zKU%q_h^3}_0m#h-HHt*xwGT3cPaymn>n>e|}cwYBSOFI`)?cIn#cwaeG8T)TR0?b@|#*RQ>F zedYS4>#Nrh-nj*REf`{?bcS@g+Y05~N?^wU@}+x^?fJJK^E>t*!0Y{EAWj ztqP5n4R>$6QOUUh>Ypw<3kFldt}+p8NaGT>H|)aBJJS&P$d^ zzRNpDc;|oQI!+$;-`~3b)(5xmY(30+cd6nBx8Avvw*E2LlZ<$D`_99Mciy`2r4RGA z;n6dfF0QRzT)A-X-FLpcefPs~w#KJG2drMWv~uCn^>dxC+`3Eg&dSA0s~1=L29Xc% Oz59N9<>Hl#EB_z0Xo+P2 literal 0 HcmV?d00001 diff --git a/packages/node_modules/tlhunter-sorted-set/index.js b/packages/node_modules/tlhunter-sorted-set/index.js index 7ba6c3ad07b..9d90b7ee47d 100644 --- a/packages/node_modules/tlhunter-sorted-set/index.js +++ b/packages/node_modules/tlhunter-sorted-set/index.js @@ -1 +1 @@ -(()=>{var e={7647:function(e){e.exports=function(e){let t,n,r,l,i,h,s;if(!e.length)return[];for(i=e.length-1;i>=0;i--){if(!e[i].length)return[];e[i]=e[i]._head.next[0].next}if(1===e.length)return e[0].toArray({field:"key"});if(2===e.length)return function(e,t){let n=Object.create(null),r=[];for(;e;e=e.next[0].next)n[e.key]=!0;for(;t;t=t.next[0].next)n[t.key]&&r.push(t.key);return r}(e[0],e[1]);if(3===e.length)return function(e,t,n){let r=Object.create(null),l=[];for(;e;e=e.next[0].next)r[e.key]=0;for(;t;t=t.next[0].next)0===r[t.key]&&(r[t.key]=1);for(;n;n=n.next[0].next)1===r[n.key]&&l.push(n.key);return l}(e[0],e[1],e[2]);for(r=Object.create(null),n=e.shift();n;n=n.next[0].next)r[n.key]=0;for(i=0,s=e.length-1;i=this._tail.value)return this.length;if(tthis._tail.value||t=0;n-=1)for(;r.next[n].next&&r.next[n].next.value<=t;)l+=r.next[n].span,r=r.next[n].next;return l&&l+1}del(e){return this.rem(e)}empty(){this.length=0,this._level=1,this._map=new Map,this._head=new u(32,null,0),this._tail=null;for(let e=0;e<32;e+=1)this._head.next[e]=new s(null,0)}get(e){return this.score(e)}has(e){return this._map.has(e)}incrBy(e,t){let n=this.score(t);return n?(this.add(t,n+e),n+e):(this.add(t,e),e)}intersect(){let e=l.call(arguments);return e.unshift(this),r.call(this,e)}intersectKeys(){let e=l.call(arguments);return e.unshift(this),intersectKeys.call(this,e)}keys(){let e;if(!this.length)return[];let t=Array(this.length),n=this._head.next[0].next;for(e=0;n;n=n.next[0].next)t[e]=n.key,e+=1;return t}range(e,t,n){let r;if(0===this.length||(null==e?e=0:e<0&&(e=Math.max(this.length+e,0)),null==t?t=this.length-1:t<0&&(t=this.length+t),e>t||e>=this.length))return[];t>=this.length&&(t=this.length-1),"object"!=typeof n&&(n={withScores:!1});let l=0,i=t-e+1;try{r=Array(i)}catch(n){throw console.log("start",e),console.log("stop",t),console.log("Invalid length",i),n}let h=e>0?this._get(e):this._head.next[0].next;if(n.withScores)for(;i--;h=h.next[0].next)r[l]=[h.key,h.value],l+=1;else for(;i--;h=h.next[0].next)r[l]=h.key,l+=1;return r}rangeByScore(e,t,n){if(!this.length)return[];if("object"!=typeof n&&(n={withScores:!1}),null==e&&(e=-1/0),null==t&&(t=1/0),e<=this._head.next[0].next.value&&t>=this._tail.value)return this.toArray({withScores:n.withScores});if(tthis._tail.value||t=0;t-=1){for(;(l=r.next[t].next)&&(l.valuet||e>=l))return 0;if(t>l&&(t=l),0===e&&t===l)return this.empty(),l;let i=this._head,h=Array(32),s=-1;for(n=this._level-1;n>=0;n-=1){for(;(r=i.next[n].next)&&s+i.next[n].span=this._tail.value)return l=this.length,this.empty(),l;let i=this._head,h=Array(32);for(r=this._level-1;r>=0;r-=1){for(;(n=i.next[r].next)&&n.value=0;r-=1)for(;(n=t.next[r].next)&&n.value=0;t-=1){for(;n.next[t].next&&r+n.next[t].span<=e;)r+=n.next[t].span,n=n.next[t].next;if(r===e)return n}return null}_insert(e,t){let n,r=Array(32),l=Array(32),h=this._head,a=null;for(n=this._level-1;n>=0;n-=1){for(l[n]=n===this._level-1?0:l[n+1];(a=h.next[n].next)&&a.value<=t;){if(a.value===t){if(this._unique)return null;if(a.key>=e)break}l[n]+=h.next[n].span,h=a}if(this._unique&&h.value===t)return null;r[n]=h}if(this._unique&&h.value===t)return null;let x=function(){let e=1;for(;Math.random()this._level){for(n=this._level;n=0;r-=1){for(;(n=t.next[r].next)&&n.value=0;n-=1){for(;(r=i.next[n].next)&&(r.value1&&!this._head.next[this._level-1].next;)this._level-=1}}function s(e,t){this.next=e,this.span=t}function u(e,t,n){this.key=t,this.value=n,this.next=Array(e),this.prev=null}e.exports=h}},t={},n=function n(r){var l=t[r];if(void 0!==l)return l.exports;var i=t[r]={exports:{}};return e[r](i,i.exports,n),i.exports}(234);module.exports=n})(); \ No newline at end of file +(()=>{var e={258:function(e){e.exports=function(e){let t,n,r,l,i,h,s;if(!e.length)return[];for(i=e.length-1;i>=0;i--){if(!e[i].length)return[];e[i]=e[i]._head.next[0].next}if(1===e.length)return e[0].toArray({field:"key"});if(2===e.length)return function(e,t){let n=Object.create(null),r=[];for(;e;e=e.next[0].next)n[e.key]=!0;for(;t;t=t.next[0].next)n[t.key]&&r.push(t.key);return r}(e[0],e[1]);if(3===e.length)return function(e,t,n){let r=Object.create(null),l=[];for(;e;e=e.next[0].next)r[e.key]=0;for(;t;t=t.next[0].next)0===r[t.key]&&(r[t.key]=1);for(;n;n=n.next[0].next)1===r[n.key]&&l.push(n.key);return l}(e[0],e[1],e[2]);for(r=Object.create(null),n=e.shift();n;n=n.next[0].next)r[n.key]=0;for(i=0,s=e.length-1;i=this._tail.value)return this.length;if(tthis._tail.value||t=0;n-=1)for(;r.next[n].next&&r.next[n].next.value<=t;)l+=r.next[n].span,r=r.next[n].next;return l&&l+1}del(e){return this.rem(e)}empty(){this.length=0,this._level=1,this._map=new Map,this._head=new u(32,null,0),this._tail=null;for(let e=0;e<32;e+=1)this._head.next[e]=new s(null,0)}get(e){return this.score(e)}has(e){return this._map.has(e)}incrBy(e,t){let n=this.score(t);return n?(this.add(t,n+e),n+e):(this.add(t,e),e)}intersect(){let e=l.call(arguments);return e.unshift(this),r.call(this,e)}intersectKeys(){let e=l.call(arguments);return e.unshift(this),intersectKeys.call(this,e)}keys(){let e;if(!this.length)return[];let t=Array(this.length),n=this._head.next[0].next;for(e=0;n;n=n.next[0].next)t[e]=n.key,e+=1;return t}range(e,t,n){let r;if(0===this.length||(null==e?e=0:e<0&&(e=Math.max(this.length+e,0)),null==t?t=this.length-1:t<0&&(t=this.length+t),e>t||e>=this.length))return[];t>=this.length&&(t=this.length-1),"object"!=typeof n&&(n={withScores:!1});let l=0,i=t-e+1;try{r=Array(i)}catch(n){throw console.log("start",e),console.log("stop",t),console.log("Invalid length",i),n}let h=e>0?this._get(e):this._head.next[0].next;if(n.withScores)for(;i--;h=h.next[0].next)r[l]=[h.key,h.value],l+=1;else for(;i--;h=h.next[0].next)r[l]=h.key,l+=1;return r}rangeByScore(e,t,n){if(!this.length)return[];if("object"!=typeof n&&(n={withScores:!1}),null==e&&(e=-1/0),null==t&&(t=1/0),e<=this._head.next[0].next.value&&t>=this._tail.value)return this.toArray({withScores:n.withScores});if(tthis._tail.value||t=0;t-=1){for(;(l=r.next[t].next)&&(l.valuet||e>=l))return 0;if(t>l&&(t=l),0===e&&t===l)return this.empty(),l;let i=this._head,h=Array(32),s=-1;for(n=this._level-1;n>=0;n-=1){for(;(r=i.next[n].next)&&s+i.next[n].span=this._tail.value)return l=this.length,this.empty(),l;let i=this._head,h=Array(32);for(r=this._level-1;r>=0;r-=1){for(;(n=i.next[r].next)&&n.value=0;r-=1)for(;(n=t.next[r].next)&&n.value=0;t-=1){for(;n.next[t].next&&r+n.next[t].span<=e;)r+=n.next[t].span,n=n.next[t].next;if(r===e)return n}return null}_insert(e,t){let n,r=Array(32),l=Array(32),h=this._head,a=null;for(n=this._level-1;n>=0;n-=1){for(l[n]=n===this._level-1?0:l[n+1];(a=h.next[n].next)&&a.value<=t;){if(a.value===t){if(this._unique)return null;if(a.key>=e)break}l[n]+=h.next[n].span,h=a}if(this._unique&&h.value===t)return null;r[n]=h}if(this._unique&&h.value===t)return null;let x=function(){let e=1;for(;Math.random()this._level){for(n=this._level;n=0;r-=1){for(;(n=t.next[r].next)&&n.value=0;n-=1){for(;(r=i.next[n].next)&&(r.value1&&!this._head.next[this._level-1].next;)this._level-=1}}function s(e,t){this.next=e,this.span=t}function u(e,t,n){this.key=t,this.value=n,this.next=Array(e),this.prev=null}e.exports=h}},t={},n=function n(r){var l=t[r];if(void 0!==l)return l.exports;var i=t[r]={exports:{}};return e[r](i,i.exports,n),i.exports}(4179);module.exports=n})(); \ No newline at end of file diff --git a/packages/node_modules/ttl-set/index.js b/packages/node_modules/ttl-set/index.js index 107e7fa03d2..137f3740c72 100644 --- a/packages/node_modules/ttl-set/index.js +++ b/packages/node_modules/ttl-set/index.js @@ -1 +1 @@ -(()=>{var t={8190:function(t){t.exports=class{constructor(t){if(!(t>0)||(t-1&t)!=0)throw Error("Max size for a FixedFIFO should be a power of two");this.buffer=Array(t),this.mask=t-1,this.top=0,this.btm=0,this.next=null}clear(){this.top=this.btm=0,this.next=null,this.buffer.fill(void 0)}push(t){return void 0===this.buffer[this.top]&&(this.buffer[this.top]=t,this.top=this.top+1&this.mask,!0)}shift(){let t=this.buffer[this.btm];if(void 0!==t)return this.buffer[this.btm]=void 0,this.btm=this.btm+1&this.mask,t}peek(){return this.buffer[this.btm]}isEmpty(){return void 0===this.buffer[this.btm]}}},6080:function(t,i,s){let e=s(8190);t.exports=class{constructor(t){this.hwm=t||16,this.head=new e(this.hwm),this.tail=this.head,this.length=0}clear(){this.head=this.tail,this.head.clear(),this.length=0}push(t){if(this.length++,!this.head.push(t)){let i=this.head;this.head=i.next=new e(2*this.head.buffer.length),this.head.push(t)}}shift(){0!==this.length&&this.length--;let t=this.tail.shift();if(void 0===t&&this.tail.next){let t=this.tail.next;return this.tail.next=null,this.tail=t,this.tail.shift()}return t}peek(){let t=this.tail.peek();return void 0===t&&this.tail.next?this.tail.next.peek():t}isEmpty(){return 0===this.length}}},2782:function(t,i,s){"use strict";let e=s(6080);t.exports=class{constructor(t){this._ttl=t,this._list=new e,this._index=new Set,this._timer=null}add(t){this._index.add(t),this._list.push([Date.now(),t]),null===this._timer&&(this._timer=setTimeout(this._prune.bind(this),this._ttl).unref())}clear(){this._list.clear(),this._index.clear(),clearTimeout(this._timer),this._timer=null}has(t){return this._index.has(t)}get size(){return this._index.size}_prune(){for(;;){let t=this._list.peek();if(void 0===t){this._timer=null;return}if(t[0]>Date.now()-this._ttl)break;let i=this._list.shift();this._index.delete(i[1])}this._timer=setTimeout(this._prune.bind(this),Date.now()-this._list.peek()[0]).unref()}}}},i={},s=function s(e){var h=i[e];if(void 0!==h)return h.exports;var r=i[e]={exports:{}};return t[e](r,r.exports,s),r.exports}(2782);module.exports=s})(); \ No newline at end of file +(()=>{var t={4045:function(t){t.exports=class{constructor(t){if(!(t>0)||(t-1&t)!=0)throw Error("Max size for a FixedFIFO should be a power of two");this.buffer=Array(t),this.mask=t-1,this.top=0,this.btm=0,this.next=null}clear(){this.top=this.btm=0,this.next=null,this.buffer.fill(void 0)}push(t){return void 0===this.buffer[this.top]&&(this.buffer[this.top]=t,this.top=this.top+1&this.mask,!0)}shift(){let t=this.buffer[this.btm];if(void 0!==t)return this.buffer[this.btm]=void 0,this.btm=this.btm+1&this.mask,t}peek(){return this.buffer[this.btm]}isEmpty(){return void 0===this.buffer[this.btm]}}},369:function(t,i,s){let e=s(4045);t.exports=class{constructor(t){this.hwm=t||16,this.head=new e(this.hwm),this.tail=this.head,this.length=0}clear(){this.head=this.tail,this.head.clear(),this.length=0}push(t){if(this.length++,!this.head.push(t)){let i=this.head;this.head=i.next=new e(2*this.head.buffer.length),this.head.push(t)}}shift(){0!==this.length&&this.length--;let t=this.tail.shift();if(void 0===t&&this.tail.next){let t=this.tail.next;return this.tail.next=null,this.tail=t,this.tail.shift()}return t}peek(){let t=this.tail.peek();return void 0===t&&this.tail.next?this.tail.next.peek():t}isEmpty(){return 0===this.length}}},3811:function(t,i,s){"use strict";let e=s(369);t.exports=class{constructor(t){this._ttl=t,this._list=new e,this._index=new Set,this._timer=null}add(t){this._index.add(t),this._list.push([Date.now(),t]),null===this._timer&&(this._timer=setTimeout(this._prune.bind(this),this._ttl).unref())}clear(){this._list.clear(),this._index.clear(),clearTimeout(this._timer),this._timer=null}has(t){return this._index.has(t)}get size(){return this._index.size}_prune(){for(;;){let t=this._list.peek();if(void 0===t){this._timer=null;return}if(t[0]>Date.now()-this._ttl)break;let i=this._list.shift();this._index.delete(i[1])}this._timer=setTimeout(this._prune.bind(this),Date.now()-this._list.peek()[0]).unref()}}}},i={},s=function s(e){var h=i[e];if(void 0!==h)return h.exports;var r=i[e]={exports:{}};return t[e](r,r.exports,s),r.exports}(3811);module.exports=s})(); \ No newline at end of file diff --git a/vendor/rspack.config.js b/vendor/rspack.config.js index 34ceca02116..9cf0c555c6c 100644 --- a/vendor/rspack.config.js +++ b/vendor/rspack.config.js @@ -1,19 +1,29 @@ 'use strict' +const { CopyRspackPlugin } = require('@rspack/core') const { join } = require('path') const pkg = require('./package.json') const names = Object.keys(pkg.dependencies).concat([ + 'mutexify/promise', 'protobufjs/minimal', 'retry/lib/retry_operation', 'source-map/lib/util' ]) module.exports = { - entry: Object.fromEntries(names.map(name => [name, `./node_modules/${name}`])), + entry: Object.fromEntries(names.map(name => [name, name])), target: 'node', mode: 'production', devtool: false, + context: join(__dirname, 'node_modules'), + plugins: [ + new CopyRspackPlugin({ + patterns: [ + { from: 'source-map/lib/mappings.wasm', to: 'source-map' } + ], + }), + ], output: { filename: '[name]/index.js', libraryTarget: 'commonjs2', From ca85fec52772b25adbe3f25ea7e186261c00aa1e Mon Sep 17 00:00:00 2001 From: rochdev Date: Fri, 21 Nov 2025 15:13:38 -0500 Subject: [PATCH 27/95] fix types --- docs/test.ts | 2 +- index.d.ts | 4 +- .../@opentelemetry/api/api/context.d.ts | 41 +++++ .../@opentelemetry/api/api/diag.d.ts | 30 ++++ .../@opentelemetry/api/api/metrics.d.ts | 28 ++++ .../@opentelemetry/api/api/propagation.d.ts | 49 ++++++ .../@opentelemetry/api/api/trace.d.ts | 40 +++++ .../api/baggage/context-helpers.d.ts | 29 ++++ .../api/baggage/internal/baggage-impl.d.ts | 12 ++ .../api/baggage/internal/symbol.d.ts | 5 + .../@opentelemetry/api/baggage/types.d.ts | 60 +++++++ .../@opentelemetry/api/baggage/utils.d.ts | 15 ++ .../@opentelemetry/api/common/Attributes.d.ts | 15 ++ .../@opentelemetry/api/common/Exception.d.ts | 26 ++++ .../@opentelemetry/api/common/Time.d.ts | 20 +++ .../@opentelemetry/api/context-api.d.ts | 4 + .../api/context/NoopContextManager.d.ts | 9 ++ .../@opentelemetry/api/context/context.d.ts | 6 + .../@opentelemetry/api/context/types.d.ts | 52 +++++++ .../@opentelemetry/api/diag-api.d.ts | 9 ++ .../api/diag/ComponentLogger.d.ts | 20 +++ .../api/diag/consoleLogger.d.ts | 38 +++++ .../api/diag/internal/logLevelLogger.d.ts | 3 + .../api/diag/internal/noopLogger.d.ts | 8 + .../@opentelemetry/api/diag/types.d.ts | 100 ++++++++++++ .../api/experimental/index.d.ts | 3 + .../experimental/trace/SugaredOptions.d.ts | 13 ++ .../api/experimental/trace/SugaredTracer.d.ts | 64 ++++++++ .../@opentelemetry/api/index.d.ts | 54 +++++++ .../api/internal/global-utils.d.ts | 18 +++ .../@opentelemetry/api/internal/semver.d.ts | 34 ++++ .../@opentelemetry/api/metrics-api.d.ts | 4 + .../@opentelemetry/api/metrics/Meter.d.ts | 110 +++++++++++++ .../api/metrics/MeterProvider.d.ts | 17 ++ .../@opentelemetry/api/metrics/Metric.d.ts | 115 ++++++++++++++ .../@opentelemetry/api/metrics/NoopMeter.d.ts | 82 ++++++++++ .../api/metrics/NoopMeterProvider.d.ts | 11 ++ .../api/metrics/ObservableResult.d.ts | 31 ++++ .../api/platform/browser/globalThis.d.ts | 10 ++ .../api/platform/browser/index.d.ts | 2 + .../@opentelemetry/api/platform/index.d.ts | 2 + .../api/platform/node/globalThis.d.ts | 3 + .../api/platform/node/index.d.ts | 2 + .../@opentelemetry/api/propagation-api.d.ts | 4 + .../propagation/NoopTextMapPropagator.d.ts | 13 ++ .../api/propagation/TextMapPropagator.d.ts | 84 ++++++++++ .../@opentelemetry/api/trace-api.d.ts | 4 + .../api/trace/NonRecordingSpan.d.ts | 28 ++++ .../@opentelemetry/api/trace/NoopTracer.d.ts | 14 ++ .../api/trace/NoopTracerProvider.d.ts | 13 ++ .../@opentelemetry/api/trace/ProxyTracer.d.ts | 27 ++++ .../api/trace/ProxyTracerProvider.d.ts | 25 +++ .../@opentelemetry/api/trace/Sampler.d.ts | 31 ++++ .../api/trace/SamplingResult.d.ts | 49 ++++++ .../@opentelemetry/api/trace/SpanOptions.d.ts | 23 +++ .../@opentelemetry/api/trace/attributes.d.ts | 10 ++ .../api/trace/context-utils.d.ts | 41 +++++ .../api/trace/internal/tracestate-impl.d.ts | 22 +++ .../trace/internal/tracestate-validators.d.ts | 15 ++ .../api/trace/internal/utils.d.ts | 3 + .../api/trace/invalid-span-constants.d.ts | 5 + .../@opentelemetry/api/trace/link.d.ts | 26 ++++ .../@opentelemetry/api/trace/span.d.ts | 120 ++++++++++++++ .../api/trace/span_context.d.ts | 53 +++++++ .../@opentelemetry/api/trace/span_kind.d.ts | 27 ++++ .../api/trace/spancontext-utils.d.ts | 17 ++ .../@opentelemetry/api/trace/status.d.ts | 25 +++ .../@opentelemetry/api/trace/trace_flags.d.ts | 7 + .../@opentelemetry/api/trace/trace_state.d.ts | 38 +++++ .../@opentelemetry/api/trace/tracer.d.ts | 71 +++++++++ .../api/trace/tracer_options.d.ts | 10 ++ .../api/trace/tracer_provider.d.ts | 21 +++ .../@opentelemetry/api/version.d.ts | 2 + .../opentracing/binary_carrier.d.ts | 11 ++ .../node_modules/opentracing/constants.d.ts | 61 ++++++++ .../opentracing/examples/demo/demo.d.ts | 2 + .../node_modules/opentracing/ext/tags.d.ts | 90 +++++++++++ .../node_modules/opentracing/functions.d.ts | 20 +++ .../opentracing/global_tracer.d.ts | 14 ++ packages/node_modules/opentracing/index.d.ts | 12 ++ .../opentracing/mock_tracer/index.d.ts | 5 + .../opentracing/mock_tracer/mock_context.d.ts | 13 ++ .../opentracing/mock_tracer/mock_report.d.ts | 16 ++ .../opentracing/mock_tracer/mock_span.d.ts | 50 ++++++ .../opentracing/mock_tracer/mock_tracer.d.ts | 26 ++++ packages/node_modules/opentracing/noop.d.ts | 8 + .../node_modules/opentracing/reference.d.ts | 33 ++++ packages/node_modules/opentracing/span.d.ts | 147 ++++++++++++++++++ .../opentracing/span_context.d.ts | 26 ++++ .../opentracing/test/api_compatibility.d.ts | 16 ++ .../test/mocktracer_implemenation.d.ts | 3 + .../opentracing/test/noop_implementation.d.ts | 4 + .../opentracing/test/opentracing_api.d.ts | 3 + .../opentracing/test/unittest.d.ts | 2 + packages/node_modules/opentracing/tracer.d.ts | 127 +++++++++++++++ vendor/rspack.config.js | 15 +- 96 files changed, 2728 insertions(+), 4 deletions(-) create mode 100644 packages/node_modules/@opentelemetry/api/api/context.d.ts create mode 100644 packages/node_modules/@opentelemetry/api/api/diag.d.ts create mode 100644 packages/node_modules/@opentelemetry/api/api/metrics.d.ts create mode 100644 packages/node_modules/@opentelemetry/api/api/propagation.d.ts create mode 100644 packages/node_modules/@opentelemetry/api/api/trace.d.ts create mode 100644 packages/node_modules/@opentelemetry/api/baggage/context-helpers.d.ts create mode 100644 packages/node_modules/@opentelemetry/api/baggage/internal/baggage-impl.d.ts create mode 100644 packages/node_modules/@opentelemetry/api/baggage/internal/symbol.d.ts create mode 100644 packages/node_modules/@opentelemetry/api/baggage/types.d.ts create mode 100644 packages/node_modules/@opentelemetry/api/baggage/utils.d.ts create mode 100644 packages/node_modules/@opentelemetry/api/common/Attributes.d.ts create mode 100644 packages/node_modules/@opentelemetry/api/common/Exception.d.ts create mode 100644 packages/node_modules/@opentelemetry/api/common/Time.d.ts create mode 100644 packages/node_modules/@opentelemetry/api/context-api.d.ts create mode 100644 packages/node_modules/@opentelemetry/api/context/NoopContextManager.d.ts create mode 100644 packages/node_modules/@opentelemetry/api/context/context.d.ts create mode 100644 packages/node_modules/@opentelemetry/api/context/types.d.ts create mode 100644 packages/node_modules/@opentelemetry/api/diag-api.d.ts create mode 100644 packages/node_modules/@opentelemetry/api/diag/ComponentLogger.d.ts create mode 100644 packages/node_modules/@opentelemetry/api/diag/consoleLogger.d.ts create mode 100644 packages/node_modules/@opentelemetry/api/diag/internal/logLevelLogger.d.ts create mode 100644 packages/node_modules/@opentelemetry/api/diag/internal/noopLogger.d.ts create mode 100644 packages/node_modules/@opentelemetry/api/diag/types.d.ts create mode 100644 packages/node_modules/@opentelemetry/api/experimental/index.d.ts create mode 100644 packages/node_modules/@opentelemetry/api/experimental/trace/SugaredOptions.d.ts create mode 100644 packages/node_modules/@opentelemetry/api/experimental/trace/SugaredTracer.d.ts create mode 100644 packages/node_modules/@opentelemetry/api/index.d.ts create mode 100644 packages/node_modules/@opentelemetry/api/internal/global-utils.d.ts create mode 100644 packages/node_modules/@opentelemetry/api/internal/semver.d.ts create mode 100644 packages/node_modules/@opentelemetry/api/metrics-api.d.ts create mode 100644 packages/node_modules/@opentelemetry/api/metrics/Meter.d.ts create mode 100644 packages/node_modules/@opentelemetry/api/metrics/MeterProvider.d.ts create mode 100644 packages/node_modules/@opentelemetry/api/metrics/Metric.d.ts create mode 100644 packages/node_modules/@opentelemetry/api/metrics/NoopMeter.d.ts create mode 100644 packages/node_modules/@opentelemetry/api/metrics/NoopMeterProvider.d.ts create mode 100644 packages/node_modules/@opentelemetry/api/metrics/ObservableResult.d.ts create mode 100644 packages/node_modules/@opentelemetry/api/platform/browser/globalThis.d.ts create mode 100644 packages/node_modules/@opentelemetry/api/platform/browser/index.d.ts create mode 100644 packages/node_modules/@opentelemetry/api/platform/index.d.ts create mode 100644 packages/node_modules/@opentelemetry/api/platform/node/globalThis.d.ts create mode 100644 packages/node_modules/@opentelemetry/api/platform/node/index.d.ts create mode 100644 packages/node_modules/@opentelemetry/api/propagation-api.d.ts create mode 100644 packages/node_modules/@opentelemetry/api/propagation/NoopTextMapPropagator.d.ts create mode 100644 packages/node_modules/@opentelemetry/api/propagation/TextMapPropagator.d.ts create mode 100644 packages/node_modules/@opentelemetry/api/trace-api.d.ts create mode 100644 packages/node_modules/@opentelemetry/api/trace/NonRecordingSpan.d.ts create mode 100644 packages/node_modules/@opentelemetry/api/trace/NoopTracer.d.ts create mode 100644 packages/node_modules/@opentelemetry/api/trace/NoopTracerProvider.d.ts create mode 100644 packages/node_modules/@opentelemetry/api/trace/ProxyTracer.d.ts create mode 100644 packages/node_modules/@opentelemetry/api/trace/ProxyTracerProvider.d.ts create mode 100644 packages/node_modules/@opentelemetry/api/trace/Sampler.d.ts create mode 100644 packages/node_modules/@opentelemetry/api/trace/SamplingResult.d.ts create mode 100644 packages/node_modules/@opentelemetry/api/trace/SpanOptions.d.ts create mode 100644 packages/node_modules/@opentelemetry/api/trace/attributes.d.ts create mode 100644 packages/node_modules/@opentelemetry/api/trace/context-utils.d.ts create mode 100644 packages/node_modules/@opentelemetry/api/trace/internal/tracestate-impl.d.ts create mode 100644 packages/node_modules/@opentelemetry/api/trace/internal/tracestate-validators.d.ts create mode 100644 packages/node_modules/@opentelemetry/api/trace/internal/utils.d.ts create mode 100644 packages/node_modules/@opentelemetry/api/trace/invalid-span-constants.d.ts create mode 100644 packages/node_modules/@opentelemetry/api/trace/link.d.ts create mode 100644 packages/node_modules/@opentelemetry/api/trace/span.d.ts create mode 100644 packages/node_modules/@opentelemetry/api/trace/span_context.d.ts create mode 100644 packages/node_modules/@opentelemetry/api/trace/span_kind.d.ts create mode 100644 packages/node_modules/@opentelemetry/api/trace/spancontext-utils.d.ts create mode 100644 packages/node_modules/@opentelemetry/api/trace/status.d.ts create mode 100644 packages/node_modules/@opentelemetry/api/trace/trace_flags.d.ts create mode 100644 packages/node_modules/@opentelemetry/api/trace/trace_state.d.ts create mode 100644 packages/node_modules/@opentelemetry/api/trace/tracer.d.ts create mode 100644 packages/node_modules/@opentelemetry/api/trace/tracer_options.d.ts create mode 100644 packages/node_modules/@opentelemetry/api/trace/tracer_provider.d.ts create mode 100644 packages/node_modules/@opentelemetry/api/version.d.ts create mode 100644 packages/node_modules/opentracing/binary_carrier.d.ts create mode 100644 packages/node_modules/opentracing/constants.d.ts create mode 100644 packages/node_modules/opentracing/examples/demo/demo.d.ts create mode 100644 packages/node_modules/opentracing/ext/tags.d.ts create mode 100644 packages/node_modules/opentracing/functions.d.ts create mode 100644 packages/node_modules/opentracing/global_tracer.d.ts create mode 100644 packages/node_modules/opentracing/index.d.ts create mode 100644 packages/node_modules/opentracing/mock_tracer/index.d.ts create mode 100644 packages/node_modules/opentracing/mock_tracer/mock_context.d.ts create mode 100644 packages/node_modules/opentracing/mock_tracer/mock_report.d.ts create mode 100644 packages/node_modules/opentracing/mock_tracer/mock_span.d.ts create mode 100644 packages/node_modules/opentracing/mock_tracer/mock_tracer.d.ts create mode 100644 packages/node_modules/opentracing/noop.d.ts create mode 100644 packages/node_modules/opentracing/reference.d.ts create mode 100644 packages/node_modules/opentracing/span.d.ts create mode 100644 packages/node_modules/opentracing/span_context.d.ts create mode 100644 packages/node_modules/opentracing/test/api_compatibility.d.ts create mode 100644 packages/node_modules/opentracing/test/mocktracer_implemenation.d.ts create mode 100644 packages/node_modules/opentracing/test/noop_implementation.d.ts create mode 100644 packages/node_modules/opentracing/test/opentracing_api.d.ts create mode 100644 packages/node_modules/opentracing/test/unittest.d.ts create mode 100644 packages/node_modules/opentracing/tracer.d.ts diff --git a/docs/test.ts b/docs/test.ts index fa07875f411..bfd78810189 100644 --- a/docs/test.ts +++ b/docs/test.ts @@ -25,7 +25,7 @@ import { SPAN_TYPE, } from '../ext/tags' import { HTTP, WEB } from '../ext/types' -import * as opentracing from 'opentracing'; +import * as opentracing from '../packages/node_modules/opentracing'; import { IncomingMessage, OutgoingMessage } from 'http'; opentracing.initGlobalTracer(tracer); diff --git a/index.d.ts b/index.d.ts index e9c7302f5be..9925a9a6ac4 100644 --- a/index.d.ts +++ b/index.d.ts @@ -1,7 +1,7 @@ import { ClientRequest, IncomingMessage, OutgoingMessage, ServerResponse } from "http"; import { LookupFunction } from 'net'; -import * as opentracing from "opentracing"; -import * as otel from "@opentelemetry/api"; +import * as opentracing from "./packages/node_modules/opentracing"; +import * as otel from "./packages/node_modules/@opentelemetry/api"; /** * Tracer is the entry-point of the Datadog tracing implementation. diff --git a/packages/node_modules/@opentelemetry/api/api/context.d.ts b/packages/node_modules/@opentelemetry/api/api/context.d.ts new file mode 100644 index 00000000000..61caee8dab5 --- /dev/null +++ b/packages/node_modules/@opentelemetry/api/api/context.d.ts @@ -0,0 +1,41 @@ +import { Context, ContextManager } from '../context/types'; +/** + * Singleton object which represents the entry point to the OpenTelemetry Context API + */ +export declare class ContextAPI { + private static _instance?; + /** Empty private constructor prevents end users from constructing a new instance of the API */ + private constructor(); + /** Get the singleton instance of the Context API */ + static getInstance(): ContextAPI; + /** + * Set the current context manager. + * + * @returns true if the context manager was successfully registered, else false + */ + setGlobalContextManager(contextManager: ContextManager): boolean; + /** + * Get the currently active context + */ + active(): Context; + /** + * Execute a function with an active context + * + * @param context context to be active during function execution + * @param fn function to execute in a context + * @param thisArg optional receiver to be used for calling fn + * @param args optional arguments forwarded to fn + */ + with ReturnType>(context: Context, fn: F, thisArg?: ThisParameterType, ...args: A): ReturnType; + /** + * Bind a context to a target function or event emitter + * + * @param context context to bind to the event emitter or function. Defaults to the currently active context + * @param target function or event emitter to bind + */ + bind(context: Context, target: T): T; + private _getContextManager; + /** Disable and remove the global context manager */ + disable(): void; +} +//# sourceMappingURL=context.d.ts.map \ No newline at end of file diff --git a/packages/node_modules/@opentelemetry/api/api/diag.d.ts b/packages/node_modules/@opentelemetry/api/api/diag.d.ts new file mode 100644 index 00000000000..131db17289a --- /dev/null +++ b/packages/node_modules/@opentelemetry/api/api/diag.d.ts @@ -0,0 +1,30 @@ +import { ComponentLoggerOptions, DiagLogFunction, DiagLogger, DiagLoggerApi } from '../diag/types'; +/** + * Singleton object which represents the entry point to the OpenTelemetry internal + * diagnostic API + */ +export declare class DiagAPI implements DiagLogger, DiagLoggerApi { + private static _instance?; + /** Get the singleton instance of the DiagAPI API */ + static instance(): DiagAPI; + /** + * Private internal constructor + * @private + */ + private constructor(); + setLogger: DiagLoggerApi['setLogger']; + /** + * + */ + createComponentLogger: (options: ComponentLoggerOptions) => DiagLogger; + verbose: DiagLogFunction; + debug: DiagLogFunction; + info: DiagLogFunction; + warn: DiagLogFunction; + error: DiagLogFunction; + /** + * Unregister the global logger and return to Noop + */ + disable: () => void; +} +//# sourceMappingURL=diag.d.ts.map \ No newline at end of file diff --git a/packages/node_modules/@opentelemetry/api/api/metrics.d.ts b/packages/node_modules/@opentelemetry/api/api/metrics.d.ts new file mode 100644 index 00000000000..5adc1454c32 --- /dev/null +++ b/packages/node_modules/@opentelemetry/api/api/metrics.d.ts @@ -0,0 +1,28 @@ +import { Meter, MeterOptions } from '../metrics/Meter'; +import { MeterProvider } from '../metrics/MeterProvider'; +/** + * Singleton object which represents the entry point to the OpenTelemetry Metrics API + */ +export declare class MetricsAPI { + private static _instance?; + /** Empty private constructor prevents end users from constructing a new instance of the API */ + private constructor(); + /** Get the singleton instance of the Metrics API */ + static getInstance(): MetricsAPI; + /** + * Set the current global meter provider. + * Returns true if the meter provider was successfully registered, else false. + */ + setGlobalMeterProvider(provider: MeterProvider): boolean; + /** + * Returns the global meter provider. + */ + getMeterProvider(): MeterProvider; + /** + * Returns a meter from the global meter provider. + */ + getMeter(name: string, version?: string, options?: MeterOptions): Meter; + /** Remove the global meter provider */ + disable(): void; +} +//# sourceMappingURL=metrics.d.ts.map \ No newline at end of file diff --git a/packages/node_modules/@opentelemetry/api/api/propagation.d.ts b/packages/node_modules/@opentelemetry/api/api/propagation.d.ts new file mode 100644 index 00000000000..a22d24d3088 --- /dev/null +++ b/packages/node_modules/@opentelemetry/api/api/propagation.d.ts @@ -0,0 +1,49 @@ +import { Context } from '../context/types'; +import { TextMapGetter, TextMapPropagator, TextMapSetter } from '../propagation/TextMapPropagator'; +import { getBaggage, getActiveBaggage, setBaggage, deleteBaggage } from '../baggage/context-helpers'; +import { createBaggage } from '../baggage/utils'; +/** + * Singleton object which represents the entry point to the OpenTelemetry Propagation API + */ +export declare class PropagationAPI { + private static _instance?; + /** Empty private constructor prevents end users from constructing a new instance of the API */ + private constructor(); + /** Get the singleton instance of the Propagator API */ + static getInstance(): PropagationAPI; + /** + * Set the current propagator. + * + * @returns true if the propagator was successfully registered, else false + */ + setGlobalPropagator(propagator: TextMapPropagator): boolean; + /** + * Inject context into a carrier to be propagated inter-process + * + * @param context Context carrying tracing data to inject + * @param carrier carrier to inject context into + * @param setter Function used to set values on the carrier + */ + inject(context: Context, carrier: Carrier, setter?: TextMapSetter): void; + /** + * Extract context from a carrier + * + * @param context Context which the newly created context will inherit from + * @param carrier Carrier to extract context from + * @param getter Function used to extract keys from a carrier + */ + extract(context: Context, carrier: Carrier, getter?: TextMapGetter): Context; + /** + * Return a list of all fields which may be used by the propagator. + */ + fields(): string[]; + /** Remove the global propagator */ + disable(): void; + createBaggage: typeof createBaggage; + getBaggage: typeof getBaggage; + getActiveBaggage: typeof getActiveBaggage; + setBaggage: typeof setBaggage; + deleteBaggage: typeof deleteBaggage; + private _getGlobalPropagator; +} +//# sourceMappingURL=propagation.d.ts.map \ No newline at end of file diff --git a/packages/node_modules/@opentelemetry/api/api/trace.d.ts b/packages/node_modules/@opentelemetry/api/api/trace.d.ts new file mode 100644 index 00000000000..df59fd2f90b --- /dev/null +++ b/packages/node_modules/@opentelemetry/api/api/trace.d.ts @@ -0,0 +1,40 @@ +import { isSpanContextValid, wrapSpanContext } from '../trace/spancontext-utils'; +import { Tracer } from '../trace/tracer'; +import { TracerProvider } from '../trace/tracer_provider'; +import { deleteSpan, getActiveSpan, getSpan, getSpanContext, setSpan, setSpanContext } from '../trace/context-utils'; +/** + * Singleton object which represents the entry point to the OpenTelemetry Tracing API + */ +export declare class TraceAPI { + private static _instance?; + private _proxyTracerProvider; + /** Empty private constructor prevents end users from constructing a new instance of the API */ + private constructor(); + /** Get the singleton instance of the Trace API */ + static getInstance(): TraceAPI; + /** + * Set the current global tracer. + * + * @returns true if the tracer provider was successfully registered, else false + */ + setGlobalTracerProvider(provider: TracerProvider): boolean; + /** + * Returns the global tracer provider. + */ + getTracerProvider(): TracerProvider; + /** + * Returns a tracer from the global tracer provider. + */ + getTracer(name: string, version?: string): Tracer; + /** Remove the global tracer provider */ + disable(): void; + wrapSpanContext: typeof wrapSpanContext; + isSpanContextValid: typeof isSpanContextValid; + deleteSpan: typeof deleteSpan; + getSpan: typeof getSpan; + getActiveSpan: typeof getActiveSpan; + getSpanContext: typeof getSpanContext; + setSpan: typeof setSpan; + setSpanContext: typeof setSpanContext; +} +//# sourceMappingURL=trace.d.ts.map \ No newline at end of file diff --git a/packages/node_modules/@opentelemetry/api/baggage/context-helpers.d.ts b/packages/node_modules/@opentelemetry/api/baggage/context-helpers.d.ts new file mode 100644 index 00000000000..23750eb615e --- /dev/null +++ b/packages/node_modules/@opentelemetry/api/baggage/context-helpers.d.ts @@ -0,0 +1,29 @@ +import { Context } from '../context/types'; +import { Baggage } from './types'; +/** + * Retrieve the current baggage from the given context + * + * @param {Context} Context that manage all context values + * @returns {Baggage} Extracted baggage from the context + */ +export declare function getBaggage(context: Context): Baggage | undefined; +/** + * Retrieve the current baggage from the active/current context + * + * @returns {Baggage} Extracted baggage from the context + */ +export declare function getActiveBaggage(): Baggage | undefined; +/** + * Store a baggage in the given context + * + * @param {Context} Context that manage all context values + * @param {Baggage} baggage that will be set in the actual context + */ +export declare function setBaggage(context: Context, baggage: Baggage): Context; +/** + * Delete the baggage stored in the given context + * + * @param {Context} Context that manage all context values + */ +export declare function deleteBaggage(context: Context): Context; +//# sourceMappingURL=context-helpers.d.ts.map \ No newline at end of file diff --git a/packages/node_modules/@opentelemetry/api/baggage/internal/baggage-impl.d.ts b/packages/node_modules/@opentelemetry/api/baggage/internal/baggage-impl.d.ts new file mode 100644 index 00000000000..e6b45540425 --- /dev/null +++ b/packages/node_modules/@opentelemetry/api/baggage/internal/baggage-impl.d.ts @@ -0,0 +1,12 @@ +import type { Baggage, BaggageEntry } from '../types'; +export declare class BaggageImpl implements Baggage { + private _entries; + constructor(entries?: Map); + getEntry(key: string): BaggageEntry | undefined; + getAllEntries(): [string, BaggageEntry][]; + setEntry(key: string, entry: BaggageEntry): BaggageImpl; + removeEntry(key: string): BaggageImpl; + removeEntries(...keys: string[]): BaggageImpl; + clear(): BaggageImpl; +} +//# sourceMappingURL=baggage-impl.d.ts.map \ No newline at end of file diff --git a/packages/node_modules/@opentelemetry/api/baggage/internal/symbol.d.ts b/packages/node_modules/@opentelemetry/api/baggage/internal/symbol.d.ts new file mode 100644 index 00000000000..9cd991c1cd7 --- /dev/null +++ b/packages/node_modules/@opentelemetry/api/baggage/internal/symbol.d.ts @@ -0,0 +1,5 @@ +/** + * Symbol used to make BaggageEntryMetadata an opaque type + */ +export declare const baggageEntryMetadataSymbol: unique symbol; +//# sourceMappingURL=symbol.d.ts.map \ No newline at end of file diff --git a/packages/node_modules/@opentelemetry/api/baggage/types.d.ts b/packages/node_modules/@opentelemetry/api/baggage/types.d.ts new file mode 100644 index 00000000000..32fa0ec6bd2 --- /dev/null +++ b/packages/node_modules/@opentelemetry/api/baggage/types.d.ts @@ -0,0 +1,60 @@ +import { baggageEntryMetadataSymbol } from './internal/symbol'; +export interface BaggageEntry { + /** `String` value of the `BaggageEntry`. */ + value: string; + /** + * Metadata is an optional string property defined by the W3C baggage specification. + * It currently has no special meaning defined by the specification. + */ + metadata?: BaggageEntryMetadata; +} +/** + * Serializable Metadata defined by the W3C baggage specification. + * It currently has no special meaning defined by the OpenTelemetry or W3C. + */ +export declare type BaggageEntryMetadata = { + toString(): string; +} & { + __TYPE__: typeof baggageEntryMetadataSymbol; +}; +/** + * Baggage represents collection of key-value pairs with optional metadata. + * Each key of Baggage is associated with exactly one value. + * Baggage may be used to annotate and enrich telemetry data. + */ +export interface Baggage { + /** + * Get an entry from Baggage if it exists + * + * @param key The key which identifies the BaggageEntry + */ + getEntry(key: string): BaggageEntry | undefined; + /** + * Get a list of all entries in the Baggage + */ + getAllEntries(): [string, BaggageEntry][]; + /** + * Returns a new baggage with the entries from the current bag and the specified entry + * + * @param key string which identifies the baggage entry + * @param entry BaggageEntry for the given key + */ + setEntry(key: string, entry: BaggageEntry): Baggage; + /** + * Returns a new baggage with the entries from the current bag except the removed entry + * + * @param key key identifying the entry to be removed + */ + removeEntry(key: string): Baggage; + /** + * Returns a new baggage with the entries from the current bag except the removed entries + * + * @param key keys identifying the entries to be removed + */ + removeEntries(...key: string[]): Baggage; + /** + * Returns a new baggage with no entries + */ + clear(): Baggage; +} +//# sourceMappingURL=types.d.ts.map \ No newline at end of file diff --git a/packages/node_modules/@opentelemetry/api/baggage/utils.d.ts b/packages/node_modules/@opentelemetry/api/baggage/utils.d.ts new file mode 100644 index 00000000000..9955d9e2858 --- /dev/null +++ b/packages/node_modules/@opentelemetry/api/baggage/utils.d.ts @@ -0,0 +1,15 @@ +import { Baggage, BaggageEntry, BaggageEntryMetadata } from './types'; +/** + * Create a new Baggage with optional entries + * + * @param entries An array of baggage entries the new baggage should contain + */ +export declare function createBaggage(entries?: Record): Baggage; +/** + * Create a serializable BaggageEntryMetadata object from a string. + * + * @param str string metadata. Format is currently not defined by the spec and has no special meaning. + * + */ +export declare function baggageEntryMetadataFromString(str: string): BaggageEntryMetadata; +//# sourceMappingURL=utils.d.ts.map \ No newline at end of file diff --git a/packages/node_modules/@opentelemetry/api/common/Attributes.d.ts b/packages/node_modules/@opentelemetry/api/common/Attributes.d.ts new file mode 100644 index 00000000000..19994fb2a86 --- /dev/null +++ b/packages/node_modules/@opentelemetry/api/common/Attributes.d.ts @@ -0,0 +1,15 @@ +/** + * Attributes is a map from string to attribute values. + * + * Note: only the own enumerable keys are counted as valid attribute keys. + */ +export interface Attributes { + [attributeKey: string]: AttributeValue | undefined; +} +/** + * Attribute values may be any non-nullish primitive value except an object. + * + * null or undefined attribute values are invalid and will result in undefined behavior. + */ +export declare type AttributeValue = string | number | boolean | Array | Array | Array; +//# sourceMappingURL=Attributes.d.ts.map \ No newline at end of file diff --git a/packages/node_modules/@opentelemetry/api/common/Exception.d.ts b/packages/node_modules/@opentelemetry/api/common/Exception.d.ts new file mode 100644 index 00000000000..e175a7fdc86 --- /dev/null +++ b/packages/node_modules/@opentelemetry/api/common/Exception.d.ts @@ -0,0 +1,26 @@ +interface ExceptionWithCode { + code: string | number; + name?: string; + message?: string; + stack?: string; +} +interface ExceptionWithMessage { + code?: string | number; + message: string; + name?: string; + stack?: string; +} +interface ExceptionWithName { + code?: string | number; + message?: string; + name: string; + stack?: string; +} +/** + * Defines Exception. + * + * string or an object with one of (message or name or code) and optional stack + */ +export declare type Exception = ExceptionWithCode | ExceptionWithMessage | ExceptionWithName | string; +export {}; +//# sourceMappingURL=Exception.d.ts.map \ No newline at end of file diff --git a/packages/node_modules/@opentelemetry/api/common/Time.d.ts b/packages/node_modules/@opentelemetry/api/common/Time.d.ts new file mode 100644 index 00000000000..cc3c502c12f --- /dev/null +++ b/packages/node_modules/@opentelemetry/api/common/Time.d.ts @@ -0,0 +1,20 @@ +/** + * Defines High-Resolution Time. + * + * The first number, HrTime[0], is UNIX Epoch time in seconds since 00:00:00 UTC on 1 January 1970. + * The second number, HrTime[1], represents the partial second elapsed since Unix Epoch time represented by first number in nanoseconds. + * For example, 2021-01-01T12:30:10.150Z in UNIX Epoch time in milliseconds is represented as 1609504210150. + * The first number is calculated by converting and truncating the Epoch time in milliseconds to seconds: + * HrTime[0] = Math.trunc(1609504210150 / 1000) = 1609504210. + * The second number is calculated by converting the digits after the decimal point of the subtraction, (1609504210150 / 1000) - HrTime[0], to nanoseconds: + * HrTime[1] = Number((1609504210.150 - HrTime[0]).toFixed(9)) * 1e9 = 150000000. + * This is represented in HrTime format as [1609504210, 150000000]. + */ +export declare type HrTime = [number, number]; +/** + * Defines TimeInput. + * + * hrtime, epoch milliseconds, performance.now() or Date + */ +export declare type TimeInput = HrTime | number | Date; +//# sourceMappingURL=Time.d.ts.map \ No newline at end of file diff --git a/packages/node_modules/@opentelemetry/api/context-api.d.ts b/packages/node_modules/@opentelemetry/api/context-api.d.ts new file mode 100644 index 00000000000..650f4eecca9 --- /dev/null +++ b/packages/node_modules/@opentelemetry/api/context-api.d.ts @@ -0,0 +1,4 @@ +import { ContextAPI } from './api/context'; +/** Entrypoint for context API */ +export declare const context: ContextAPI; +//# sourceMappingURL=context-api.d.ts.map \ No newline at end of file diff --git a/packages/node_modules/@opentelemetry/api/context/NoopContextManager.d.ts b/packages/node_modules/@opentelemetry/api/context/NoopContextManager.d.ts new file mode 100644 index 00000000000..48a165970c6 --- /dev/null +++ b/packages/node_modules/@opentelemetry/api/context/NoopContextManager.d.ts @@ -0,0 +1,9 @@ +import * as types from './types'; +export declare class NoopContextManager implements types.ContextManager { + active(): types.Context; + with ReturnType>(_context: types.Context, fn: F, thisArg?: ThisParameterType, ...args: A): ReturnType; + bind(_context: types.Context, target: T): T; + enable(): this; + disable(): this; +} +//# sourceMappingURL=NoopContextManager.d.ts.map \ No newline at end of file diff --git a/packages/node_modules/@opentelemetry/api/context/context.d.ts b/packages/node_modules/@opentelemetry/api/context/context.d.ts new file mode 100644 index 00000000000..8be0259401a --- /dev/null +++ b/packages/node_modules/@opentelemetry/api/context/context.d.ts @@ -0,0 +1,6 @@ +import { Context } from './types'; +/** Get a key to uniquely identify a context value */ +export declare function createContextKey(description: string): symbol; +/** The root context is used as the default parent context when there is no active context */ +export declare const ROOT_CONTEXT: Context; +//# sourceMappingURL=context.d.ts.map \ No newline at end of file diff --git a/packages/node_modules/@opentelemetry/api/context/types.d.ts b/packages/node_modules/@opentelemetry/api/context/types.d.ts new file mode 100644 index 00000000000..7e866320cf1 --- /dev/null +++ b/packages/node_modules/@opentelemetry/api/context/types.d.ts @@ -0,0 +1,52 @@ +export interface Context { + /** + * Get a value from the context. + * + * @param key key which identifies a context value + */ + getValue(key: symbol): unknown; + /** + * Create a new context which inherits from this context and has + * the given key set to the given value. + * + * @param key context key for which to set the value + * @param value value to set for the given key + */ + setValue(key: symbol, value: unknown): Context; + /** + * Return a new context which inherits from this context but does + * not contain a value for the given key. + * + * @param key context key for which to clear a value + */ + deleteValue(key: symbol): Context; +} +export interface ContextManager { + /** + * Get the current active context + */ + active(): Context; + /** + * Run the fn callback with object set as the current active context + * @param context Any object to set as the current active context + * @param fn A callback to be immediately run within a specific context + * @param thisArg optional receiver to be used for calling fn + * @param args optional arguments forwarded to fn + */ + with ReturnType>(context: Context, fn: F, thisArg?: ThisParameterType, ...args: A): ReturnType; + /** + * Bind an object as the current context (or a specific one) + * @param [context] Optionally specify the context which you want to assign + * @param target Any object to which a context need to be set + */ + bind(context: Context, target: T): T; + /** + * Enable context management + */ + enable(): this; + /** + * Disable context management + */ + disable(): this; +} +//# sourceMappingURL=types.d.ts.map \ No newline at end of file diff --git a/packages/node_modules/@opentelemetry/api/diag-api.d.ts b/packages/node_modules/@opentelemetry/api/diag-api.d.ts new file mode 100644 index 00000000000..d82fdb18d27 --- /dev/null +++ b/packages/node_modules/@opentelemetry/api/diag-api.d.ts @@ -0,0 +1,9 @@ +import { DiagAPI } from './api/diag'; +/** + * Entrypoint for Diag API. + * Defines Diagnostic handler used for internal diagnostic logging operations. + * The default provides a Noop DiagLogger implementation which may be changed via the + * diag.setLogger(logger: DiagLogger) function. + */ +export declare const diag: DiagAPI; +//# sourceMappingURL=diag-api.d.ts.map \ No newline at end of file diff --git a/packages/node_modules/@opentelemetry/api/diag/ComponentLogger.d.ts b/packages/node_modules/@opentelemetry/api/diag/ComponentLogger.d.ts new file mode 100644 index 00000000000..f06095031a7 --- /dev/null +++ b/packages/node_modules/@opentelemetry/api/diag/ComponentLogger.d.ts @@ -0,0 +1,20 @@ +import { ComponentLoggerOptions, DiagLogger } from './types'; +/** + * Component Logger which is meant to be used as part of any component which + * will add automatically additional namespace in front of the log message. + * It will then forward all message to global diag logger + * @example + * const cLogger = diag.createComponentLogger({ namespace: '@opentelemetry/instrumentation-http' }); + * cLogger.debug('test'); + * // @opentelemetry/instrumentation-http test + */ +export declare class DiagComponentLogger implements DiagLogger { + private _namespace; + constructor(props: ComponentLoggerOptions); + debug(...args: any[]): void; + error(...args: any[]): void; + info(...args: any[]): void; + warn(...args: any[]): void; + verbose(...args: any[]): void; +} +//# sourceMappingURL=ComponentLogger.d.ts.map \ No newline at end of file diff --git a/packages/node_modules/@opentelemetry/api/diag/consoleLogger.d.ts b/packages/node_modules/@opentelemetry/api/diag/consoleLogger.d.ts new file mode 100644 index 00000000000..fa3db1e318c --- /dev/null +++ b/packages/node_modules/@opentelemetry/api/diag/consoleLogger.d.ts @@ -0,0 +1,38 @@ +import { DiagLogger, DiagLogFunction } from './types'; +/** + * A simple Immutable Console based diagnostic logger which will output any messages to the Console. + * If you want to limit the amount of logging to a specific level or lower use the + * {@link createLogLevelDiagLogger} + */ +export declare class DiagConsoleLogger implements DiagLogger { + constructor(); + /** Log an error scenario that was not expected and caused the requested operation to fail. */ + error: DiagLogFunction; + /** + * Log a warning scenario to inform the developer of an issues that should be investigated. + * The requested operation may or may not have succeeded or completed. + */ + warn: DiagLogFunction; + /** + * Log a general informational message, this should not affect functionality. + * This is also the default logging level so this should NOT be used for logging + * debugging level information. + */ + info: DiagLogFunction; + /** + * Log a general debug message that can be useful for identifying a failure. + * Information logged at this level may include diagnostic details that would + * help identify a failure scenario. Useful scenarios would be to log the execution + * order of async operations + */ + debug: DiagLogFunction; + /** + * Log a detailed (verbose) trace level logging that can be used to identify failures + * where debug level logging would be insufficient, this level of tracing can include + * input and output parameters and as such may include PII information passing through + * the API. As such it is recommended that this level of tracing should not be enabled + * in a production environment. + */ + verbose: DiagLogFunction; +} +//# sourceMappingURL=consoleLogger.d.ts.map \ No newline at end of file diff --git a/packages/node_modules/@opentelemetry/api/diag/internal/logLevelLogger.d.ts b/packages/node_modules/@opentelemetry/api/diag/internal/logLevelLogger.d.ts new file mode 100644 index 00000000000..890b9f1ef44 --- /dev/null +++ b/packages/node_modules/@opentelemetry/api/diag/internal/logLevelLogger.d.ts @@ -0,0 +1,3 @@ +import { DiagLogger, DiagLogLevel } from '../types'; +export declare function createLogLevelDiagLogger(maxLevel: DiagLogLevel, logger: DiagLogger): DiagLogger; +//# sourceMappingURL=logLevelLogger.d.ts.map \ No newline at end of file diff --git a/packages/node_modules/@opentelemetry/api/diag/internal/noopLogger.d.ts b/packages/node_modules/@opentelemetry/api/diag/internal/noopLogger.d.ts new file mode 100644 index 00000000000..ac71ee3b583 --- /dev/null +++ b/packages/node_modules/@opentelemetry/api/diag/internal/noopLogger.d.ts @@ -0,0 +1,8 @@ +import { DiagLogger } from '../types'; +/** + * Returns a No-Op Diagnostic logger where all messages do nothing. + * @implements {@link DiagLogger} + * @returns {DiagLogger} + */ +export declare function createNoopDiagLogger(): DiagLogger; +//# sourceMappingURL=noopLogger.d.ts.map \ No newline at end of file diff --git a/packages/node_modules/@opentelemetry/api/diag/types.d.ts b/packages/node_modules/@opentelemetry/api/diag/types.d.ts new file mode 100644 index 00000000000..e992cc59c22 --- /dev/null +++ b/packages/node_modules/@opentelemetry/api/diag/types.d.ts @@ -0,0 +1,100 @@ +export declare type DiagLogFunction = (message: string, ...args: unknown[]) => void; +/** + * Defines an internal diagnostic logger interface which is used to log internal diagnostic + * messages, you can set the default diagnostic logger via the {@link DiagAPI} setLogger function. + * API provided implementations include :- + * - a No-Op {@link createNoopDiagLogger} + * - a {@link DiagLogLevel} filtering wrapper {@link createLogLevelDiagLogger} + * - a general Console {@link DiagConsoleLogger} version. + */ +export interface DiagLogger { + /** Log an error scenario that was not expected and caused the requested operation to fail. */ + error: DiagLogFunction; + /** + * Log a warning scenario to inform the developer of an issues that should be investigated. + * The requested operation may or may not have succeeded or completed. + */ + warn: DiagLogFunction; + /** + * Log a general informational message, this should not affect functionality. + * This is also the default logging level so this should NOT be used for logging + * debugging level information. + */ + info: DiagLogFunction; + /** + * Log a general debug message that can be useful for identifying a failure. + * Information logged at this level may include diagnostic details that would + * help identify a failure scenario. + * For example: Logging the order of execution of async operations. + */ + debug: DiagLogFunction; + /** + * Log a detailed (verbose) trace level logging that can be used to identify failures + * where debug level logging would be insufficient, this level of tracing can include + * input and output parameters and as such may include PII information passing through + * the API. As such it is recommended that this level of tracing should not be enabled + * in a production environment. + */ + verbose: DiagLogFunction; +} +/** + * Defines the available internal logging levels for the diagnostic logger, the numeric values + * of the levels are defined to match the original values from the initial LogLevel to avoid + * compatibility/migration issues for any implementation that assume the numeric ordering. + */ +export declare enum DiagLogLevel { + /** Diagnostic Logging level setting to disable all logging (except and forced logs) */ + NONE = 0, + /** Identifies an error scenario */ + ERROR = 30, + /** Identifies a warning scenario */ + WARN = 50, + /** General informational log message */ + INFO = 60, + /** General debug log message */ + DEBUG = 70, + /** + * Detailed trace level logging should only be used for development, should only be set + * in a development environment. + */ + VERBOSE = 80, + /** Used to set the logging level to include all logging */ + ALL = 9999 +} +/** + * Defines options for ComponentLogger + */ +export interface ComponentLoggerOptions { + namespace: string; +} +export interface DiagLoggerOptions { + /** + * The {@link DiagLogLevel} used to filter logs sent to the logger. + * + * @defaultValue DiagLogLevel.INFO + */ + logLevel?: DiagLogLevel; + /** + * Setting this value to `true` will suppress the warning message normally emitted when registering a logger when another logger is already registered. + */ + suppressOverrideMessage?: boolean; +} +export interface DiagLoggerApi { + /** + * Set the global DiagLogger and DiagLogLevel. + * If a global diag logger is already set, this will override it. + * + * @param logger - The {@link DiagLogger} instance to set as the default logger. + * @param options - A {@link DiagLoggerOptions} object. If not provided, default values will be set. + * @returns `true` if the logger was successfully registered, else `false` + */ + setLogger(logger: DiagLogger, options?: DiagLoggerOptions): boolean; + /** + * + * @param logger - The {@link DiagLogger} instance to set as the default logger. + * @param logLevel - The {@link DiagLogLevel} used to filter logs sent to the logger. If not provided it will default to {@link DiagLogLevel.INFO}. + * @returns `true` if the logger was successfully registered, else `false` + */ + setLogger(logger: DiagLogger, logLevel?: DiagLogLevel): boolean; +} +//# sourceMappingURL=types.d.ts.map \ No newline at end of file diff --git a/packages/node_modules/@opentelemetry/api/experimental/index.d.ts b/packages/node_modules/@opentelemetry/api/experimental/index.d.ts new file mode 100644 index 00000000000..bec39657e20 --- /dev/null +++ b/packages/node_modules/@opentelemetry/api/experimental/index.d.ts @@ -0,0 +1,3 @@ +export { wrapTracer, SugaredTracer } from './trace/SugaredTracer'; +export { SugaredSpanOptions } from './trace/SugaredOptions'; +//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/packages/node_modules/@opentelemetry/api/experimental/trace/SugaredOptions.d.ts b/packages/node_modules/@opentelemetry/api/experimental/trace/SugaredOptions.d.ts new file mode 100644 index 00000000000..89040affca2 --- /dev/null +++ b/packages/node_modules/@opentelemetry/api/experimental/trace/SugaredOptions.d.ts @@ -0,0 +1,13 @@ +import { Span, SpanOptions } from '../../'; +/** + * Options needed for span creation + */ +export interface SugaredSpanOptions extends SpanOptions { + /** + * function to overwrite default exception behavior to record the exception. No exceptions should be thrown in the function. + * @param e Error which triggered this exception + * @param span current span from context + */ + onException?: (e: Error, span: Span) => void; +} +//# sourceMappingURL=SugaredOptions.d.ts.map \ No newline at end of file diff --git a/packages/node_modules/@opentelemetry/api/experimental/trace/SugaredTracer.d.ts b/packages/node_modules/@opentelemetry/api/experimental/trace/SugaredTracer.d.ts new file mode 100644 index 00000000000..1ba7da92176 --- /dev/null +++ b/packages/node_modules/@opentelemetry/api/experimental/trace/SugaredTracer.d.ts @@ -0,0 +1,64 @@ +import { SugaredSpanOptions } from './SugaredOptions'; +import { Context, Span, Tracer } from '../../'; +/** + * return a new SugaredTracer created from the supplied one + * @param tracer + */ +export declare function wrapTracer(tracer: Tracer): SugaredTracer; +export declare class SugaredTracer implements Tracer { + private readonly _tracer; + constructor(tracer: Tracer); + startActiveSpan: Tracer['startActiveSpan']; + startSpan: Tracer['startSpan']; + /** + * Starts a new {@link Span} and calls the given function passing it the + * created span as first argument. + * Additionally, the new span gets set in context and this context is activated + * for the duration of the function call. + * The span will be closed after the function has executed. + * If an exception occurs, it is recorded, the status is set to ERROR and the exception is rethrown. + * + * @param name The name of the span + * @param [options] SugaredSpanOptions used for span creation + * @param [context] Context to use to extract parent + * @param fn function called in the context of the span and receives the newly created span as an argument + * @returns return value of fn + * @example + * const something = tracer.withActiveSpan('op', span => { + * // do some work + * }); + * @example + * const something = await tracer.withActiveSpan('op', span => { + * // do some async work + * }); + */ + withActiveSpan ReturnType>(name: string, fn: F): ReturnType; + withActiveSpan ReturnType>(name: string, options: SugaredSpanOptions, fn: F): ReturnType; + withActiveSpan ReturnType>(name: string, options: SugaredSpanOptions, context: Context, fn: F): ReturnType; + /** + * Starts a new {@link Span} and ends it after execution of fn without setting it on context. + * The span will be closed after the function has executed. + * If an exception occurs, it is recorded, the status is et to ERROR and rethrown. + * + * This method does NOT modify the current Context. + * + * @param name The name of the span + * @param [options] SugaredSpanOptions used for span creation + * @param [context] Context to use to extract parent + * @param fn function called in the context of the span and receives the newly created span as an argument + * @returns Span The newly created span + * @example + * const something = tracer.withSpan('op', span => { + * // do some work + * }); + * @example + * const something = await tracer.withSpan('op', span => { + * // do some async work + * }); + */ + withSpan ReturnType>(name: string, fn: F): ReturnType; + withSpan ReturnType>(name: string, options: SugaredSpanOptions, fn: F): ReturnType; + withSpan ReturnType>(name: string, options: SugaredSpanOptions, context: Context, fn: F): ReturnType; + withSpan ReturnType>(name: string, options: SugaredSpanOptions, context: Context, fn: F): ReturnType; +} +//# sourceMappingURL=SugaredTracer.d.ts.map \ No newline at end of file diff --git a/packages/node_modules/@opentelemetry/api/index.d.ts b/packages/node_modules/@opentelemetry/api/index.d.ts new file mode 100644 index 00000000000..eea88f226db --- /dev/null +++ b/packages/node_modules/@opentelemetry/api/index.d.ts @@ -0,0 +1,54 @@ +export { BaggageEntry, BaggageEntryMetadata, Baggage } from './baggage/types'; +export { baggageEntryMetadataFromString } from './baggage/utils'; +export { Exception } from './common/Exception'; +export { HrTime, TimeInput } from './common/Time'; +export { Attributes, AttributeValue } from './common/Attributes'; +export { createContextKey, ROOT_CONTEXT } from './context/context'; +export { Context, ContextManager } from './context/types'; +export type { ContextAPI } from './api/context'; +export { DiagConsoleLogger } from './diag/consoleLogger'; +export { DiagLogFunction, DiagLogger, DiagLogLevel, ComponentLoggerOptions, DiagLoggerOptions, } from './diag/types'; +export type { DiagAPI } from './api/diag'; +export { createNoopMeter } from './metrics/NoopMeter'; +export { MeterOptions, Meter } from './metrics/Meter'; +export { MeterProvider } from './metrics/MeterProvider'; +export { ValueType, Counter, Gauge, Histogram, MetricOptions, Observable, ObservableCounter, ObservableGauge, ObservableUpDownCounter, UpDownCounter, BatchObservableCallback, MetricAdvice, MetricAttributes, MetricAttributeValue, ObservableCallback, } from './metrics/Metric'; +export { BatchObservableResult, ObservableResult, } from './metrics/ObservableResult'; +export type { MetricsAPI } from './api/metrics'; +export { TextMapPropagator, TextMapSetter, TextMapGetter, defaultTextMapGetter, defaultTextMapSetter, } from './propagation/TextMapPropagator'; +export type { PropagationAPI } from './api/propagation'; +export { SpanAttributes, SpanAttributeValue } from './trace/attributes'; +export { Link } from './trace/link'; +export { ProxyTracer, TracerDelegator } from './trace/ProxyTracer'; +export { ProxyTracerProvider } from './trace/ProxyTracerProvider'; +export { Sampler } from './trace/Sampler'; +export { SamplingDecision, SamplingResult } from './trace/SamplingResult'; +export { SpanContext } from './trace/span_context'; +export { SpanKind } from './trace/span_kind'; +export { Span } from './trace/span'; +export { SpanOptions } from './trace/SpanOptions'; +export { SpanStatus, SpanStatusCode } from './trace/status'; +export { TraceFlags } from './trace/trace_flags'; +export { TraceState } from './trace/trace_state'; +export { createTraceState } from './trace/internal/utils'; +export { TracerProvider } from './trace/tracer_provider'; +export { Tracer } from './trace/tracer'; +export { TracerOptions } from './trace/tracer_options'; +export { isSpanContextValid, isValidTraceId, isValidSpanId, } from './trace/spancontext-utils'; +export { INVALID_SPANID, INVALID_TRACEID, INVALID_SPAN_CONTEXT, } from './trace/invalid-span-constants'; +export type { TraceAPI } from './api/trace'; +import { context } from './context-api'; +import { diag } from './diag-api'; +import { metrics } from './metrics-api'; +import { propagation } from './propagation-api'; +import { trace } from './trace-api'; +export { context, diag, metrics, propagation, trace }; +declare const _default: { + context: import("./api/context").ContextAPI; + diag: import("./api/diag").DiagAPI; + metrics: import("./api/metrics").MetricsAPI; + propagation: import("./api/propagation").PropagationAPI; + trace: import("./api/trace").TraceAPI; +}; +export default _default; +//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/packages/node_modules/@opentelemetry/api/internal/global-utils.d.ts b/packages/node_modules/@opentelemetry/api/internal/global-utils.d.ts new file mode 100644 index 00000000000..320db97555a --- /dev/null +++ b/packages/node_modules/@opentelemetry/api/internal/global-utils.d.ts @@ -0,0 +1,18 @@ +import { MeterProvider } from '../metrics/MeterProvider'; +import { ContextManager } from '../context/types'; +import { DiagLogger } from '../diag/types'; +import { TextMapPropagator } from '../propagation/TextMapPropagator'; +import type { TracerProvider } from '../trace/tracer_provider'; +export declare function registerGlobal(type: Type, instance: OTelGlobalAPI[Type], diag: DiagLogger, allowOverride?: boolean): boolean; +export declare function getGlobal(type: Type): OTelGlobalAPI[Type] | undefined; +export declare function unregisterGlobal(type: keyof OTelGlobalAPI, diag: DiagLogger): void; +declare type OTelGlobalAPI = { + version: string; + diag?: DiagLogger; + trace?: TracerProvider; + context?: ContextManager; + metrics?: MeterProvider; + propagation?: TextMapPropagator; +}; +export {}; +//# sourceMappingURL=global-utils.d.ts.map \ No newline at end of file diff --git a/packages/node_modules/@opentelemetry/api/internal/semver.d.ts b/packages/node_modules/@opentelemetry/api/internal/semver.d.ts new file mode 100644 index 00000000000..d9f4259e455 --- /dev/null +++ b/packages/node_modules/@opentelemetry/api/internal/semver.d.ts @@ -0,0 +1,34 @@ +/** + * Create a function to test an API version to see if it is compatible with the provided ownVersion. + * + * The returned function has the following semantics: + * - Exact match is always compatible + * - Major versions must match exactly + * - 1.x package cannot use global 2.x package + * - 2.x package cannot use global 1.x package + * - The minor version of the API module requesting access to the global API must be less than or equal to the minor version of this API + * - 1.3 package may use 1.4 global because the later global contains all functions 1.3 expects + * - 1.4 package may NOT use 1.3 global because it may try to call functions which don't exist on 1.3 + * - If the major version is 0, the minor version is treated as the major and the patch is treated as the minor + * - Patch and build tag differences are not considered at this time + * + * @param ownVersion version which should be checked against + */ +export declare function _makeCompatibilityCheck(ownVersion: string): (globalVersion: string) => boolean; +/** + * Test an API version to see if it is compatible with this API. + * + * - Exact match is always compatible + * - Major versions must match exactly + * - 1.x package cannot use global 2.x package + * - 2.x package cannot use global 1.x package + * - The minor version of the API module requesting access to the global API must be less than or equal to the minor version of this API + * - 1.3 package may use 1.4 global because the later global contains all functions 1.3 expects + * - 1.4 package may NOT use 1.3 global because it may try to call functions which don't exist on 1.3 + * - If the major version is 0, the minor version is treated as the major and the patch is treated as the minor + * - Patch and build tag differences are not considered at this time + * + * @param version version of the API requesting an instance of the global API + */ +export declare const isCompatible: (globalVersion: string) => boolean; +//# sourceMappingURL=semver.d.ts.map \ No newline at end of file diff --git a/packages/node_modules/@opentelemetry/api/metrics-api.d.ts b/packages/node_modules/@opentelemetry/api/metrics-api.d.ts new file mode 100644 index 00000000000..26d539c049e --- /dev/null +++ b/packages/node_modules/@opentelemetry/api/metrics-api.d.ts @@ -0,0 +1,4 @@ +import { MetricsAPI } from './api/metrics'; +/** Entrypoint for metrics API */ +export declare const metrics: MetricsAPI; +//# sourceMappingURL=metrics-api.d.ts.map \ No newline at end of file diff --git a/packages/node_modules/@opentelemetry/api/metrics/Meter.d.ts b/packages/node_modules/@opentelemetry/api/metrics/Meter.d.ts new file mode 100644 index 00000000000..5e3926b75c5 --- /dev/null +++ b/packages/node_modules/@opentelemetry/api/metrics/Meter.d.ts @@ -0,0 +1,110 @@ +import { BatchObservableCallback, Counter, Gauge, Histogram, MetricAttributes, MetricOptions, Observable, ObservableCounter, ObservableGauge, ObservableUpDownCounter, UpDownCounter } from './Metric'; +/** + * An interface describes additional metadata of a meter. + */ +export interface MeterOptions { + /** + * The schemaUrl of the meter or instrumentation library + */ + schemaUrl?: string; +} +/** + * An interface to allow the recording metrics. + * + * {@link Metric}s are used for recording pre-defined aggregation (`Counter`), + * or raw values (`Histogram`) in which the aggregation and attributes + * for the exported metric are deferred. + */ +export interface Meter { + /** + * Creates and returns a new `Gauge`. + * @param name the name of the metric. + * @param [options] the metric options. + */ + createGauge(name: string, options?: MetricOptions): Gauge; + /** + * Creates and returns a new `Histogram`. + * @param name the name of the metric. + * @param [options] the metric options. + */ + createHistogram(name: string, options?: MetricOptions): Histogram; + /** + * Creates a new `Counter` metric. Generally, this kind of metric when the + * value is a quantity, the sum is of primary interest, and the event count + * and value distribution are not of primary interest. + * @param name the name of the metric. + * @param [options] the metric options. + */ + createCounter(name: string, options?: MetricOptions): Counter; + /** + * Creates a new `UpDownCounter` metric. UpDownCounter is a synchronous + * instrument and very similar to Counter except that Add(increment) + * supports negative increments. It is generally useful for capturing changes + * in an amount of resources used, or any quantity that rises and falls + * during a request. + * Example uses for UpDownCounter: + *
    + *
  1. count the number of active requests.
  2. + *
  3. count memory in use by instrumenting new and delete.
  4. + *
  5. count queue size by instrumenting enqueue and dequeue.
  6. + *
  7. count semaphore up and down operations.
  8. + *
+ * + * @param name the name of the metric. + * @param [options] the metric options. + */ + createUpDownCounter(name: string, options?: MetricOptions): UpDownCounter; + /** + * Creates a new `ObservableGauge` metric. + * + * The callback SHOULD be safe to be invoked concurrently. + * + * @param name the name of the metric. + * @param [options] the metric options. + */ + createObservableGauge(name: string, options?: MetricOptions): ObservableGauge; + /** + * Creates a new `ObservableCounter` metric. + * + * The callback SHOULD be safe to be invoked concurrently. + * + * @param name the name of the metric. + * @param [options] the metric options. + */ + createObservableCounter(name: string, options?: MetricOptions): ObservableCounter; + /** + * Creates a new `ObservableUpDownCounter` metric. + * + * The callback SHOULD be safe to be invoked concurrently. + * + * @param name the name of the metric. + * @param [options] the metric options. + */ + createObservableUpDownCounter(name: string, options?: MetricOptions): ObservableUpDownCounter; + /** + * Sets up a function that will be called whenever a metric collection is + * initiated. + * + * If the function is already in the list of callbacks for this Observable, + * the function is not added a second time. + * + * Only the associated observables can be observed in the callback. + * Measurements of observables that are not associated observed in the + * callback are dropped. + * + * @param callback the batch observable callback + * @param observables the observables associated with this batch observable callback + */ + addBatchObservableCallback(callback: BatchObservableCallback, observables: Observable[]): void; + /** + * Removes a callback previously registered with {@link Meter.addBatchObservableCallback}. + * + * The callback to be removed is identified using a combination of the callback itself, + * and the set of the observables associated with it. + * + * @param callback the batch observable callback + * @param observables the observables associated with this batch observable callback + */ + removeBatchObservableCallback(callback: BatchObservableCallback, observables: Observable[]): void; +} +//# sourceMappingURL=Meter.d.ts.map \ No newline at end of file diff --git a/packages/node_modules/@opentelemetry/api/metrics/MeterProvider.d.ts b/packages/node_modules/@opentelemetry/api/metrics/MeterProvider.d.ts new file mode 100644 index 00000000000..6c08cc3175a --- /dev/null +++ b/packages/node_modules/@opentelemetry/api/metrics/MeterProvider.d.ts @@ -0,0 +1,17 @@ +import { Meter, MeterOptions } from './Meter'; +/** + * A registry for creating named {@link Meter}s. + */ +export interface MeterProvider { + /** + * Returns a Meter, creating one if one with the given name, version, and + * schemaUrl pair is not already created. + * + * @param name The name of the meter or instrumentation library. + * @param version The version of the meter or instrumentation library. + * @param options The options of the meter or instrumentation library. + * @returns Meter A Meter with the given name and version + */ + getMeter(name: string, version?: string, options?: MeterOptions): Meter; +} +//# sourceMappingURL=MeterProvider.d.ts.map \ No newline at end of file diff --git a/packages/node_modules/@opentelemetry/api/metrics/Metric.d.ts b/packages/node_modules/@opentelemetry/api/metrics/Metric.d.ts new file mode 100644 index 00000000000..607b637ebba --- /dev/null +++ b/packages/node_modules/@opentelemetry/api/metrics/Metric.d.ts @@ -0,0 +1,115 @@ +import { Attributes, AttributeValue } from '../common/Attributes'; +import { Context } from '../context/types'; +import { BatchObservableResult, ObservableResult } from './ObservableResult'; +/** + * Advisory options influencing aggregation configuration parameters. + * @experimental + */ +export interface MetricAdvice { + /** + * Hint the explicit bucket boundaries for SDK if the metric is been + * aggregated with a HistogramAggregator. + */ + explicitBucketBoundaries?: number[]; +} +/** + * Options needed for metric creation + */ +export interface MetricOptions { + /** + * The description of the Metric. + * @default '' + */ + description?: string; + /** + * The unit of the Metric values. + * @default '' + */ + unit?: string; + /** + * Indicates the type of the recorded value. + * @default {@link ValueType.DOUBLE} + */ + valueType?: ValueType; + /** + * The advice influencing aggregation configuration parameters. + * @experimental + */ + advice?: MetricAdvice; +} +/** The Type of value. It describes how the data is reported. */ +export declare enum ValueType { + INT = 0, + DOUBLE = 1 +} +/** + * Counter is the most common synchronous instrument. This instrument supports + * an `Add(increment)` function for reporting a sum, and is restricted to + * non-negative increments. The default aggregation is Sum, as for any additive + * instrument. + * + * Example uses for Counter: + *
    + *
  1. count the number of bytes received.
  2. + *
  3. count the number of requests completed.
  4. + *
  5. count the number of accounts created.
  6. + *
  7. count the number of checkpoints run.
  8. + *
  9. count the number of 5xx errors.
  10. + *
      + */ +export interface Counter { + /** + * Increment value of counter by the input. Inputs must not be negative. + */ + add(value: number, attributes?: AttributesTypes, context?: Context): void; +} +export interface UpDownCounter { + /** + * Increment value of counter by the input. Inputs may be negative. + */ + add(value: number, attributes?: AttributesTypes, context?: Context): void; +} +export interface Gauge { + /** + * Records a measurement. + */ + record(value: number, attributes?: AttributesTypes, context?: Context): void; +} +export interface Histogram { + /** + * Records a measurement. Value of the measurement must not be negative. + */ + record(value: number, attributes?: AttributesTypes, context?: Context): void; +} +/** + * @deprecated please use {@link Attributes} + */ +export declare type MetricAttributes = Attributes; +/** + * @deprecated please use {@link AttributeValue} + */ +export declare type MetricAttributeValue = AttributeValue; +/** + * The observable callback for Observable instruments. + */ +export declare type ObservableCallback = (observableResult: ObservableResult) => void | Promise; +/** + * The observable callback for a batch of Observable instruments. + */ +export declare type BatchObservableCallback = (observableResult: BatchObservableResult) => void | Promise; +export interface Observable { + /** + * Sets up a function that will be called whenever a metric collection is initiated. + * + * If the function is already in the list of callbacks for this Observable, the function is not added a second time. + */ + addCallback(callback: ObservableCallback): void; + /** + * Removes a callback previously registered with {@link Observable.addCallback}. + */ + removeCallback(callback: ObservableCallback): void; +} +export declare type ObservableCounter = Observable; +export declare type ObservableUpDownCounter = Observable; +export declare type ObservableGauge = Observable; +//# sourceMappingURL=Metric.d.ts.map \ No newline at end of file diff --git a/packages/node_modules/@opentelemetry/api/metrics/NoopMeter.d.ts b/packages/node_modules/@opentelemetry/api/metrics/NoopMeter.d.ts new file mode 100644 index 00000000000..bbefa9a74df --- /dev/null +++ b/packages/node_modules/@opentelemetry/api/metrics/NoopMeter.d.ts @@ -0,0 +1,82 @@ +import { Meter } from './Meter'; +import { BatchObservableCallback, Counter, Gauge, Histogram, MetricAttributes, MetricOptions, Observable, ObservableCallback, ObservableCounter, ObservableGauge, ObservableUpDownCounter, UpDownCounter } from './Metric'; +/** + * NoopMeter is a noop implementation of the {@link Meter} interface. It reuses + * constant NoopMetrics for all of its methods. + */ +export declare class NoopMeter implements Meter { + constructor(); + /** + * @see {@link Meter.createGauge} + */ + createGauge(_name: string, _options?: MetricOptions): Gauge; + /** + * @see {@link Meter.createHistogram} + */ + createHistogram(_name: string, _options?: MetricOptions): Histogram; + /** + * @see {@link Meter.createCounter} + */ + createCounter(_name: string, _options?: MetricOptions): Counter; + /** + * @see {@link Meter.createUpDownCounter} + */ + createUpDownCounter(_name: string, _options?: MetricOptions): UpDownCounter; + /** + * @see {@link Meter.createObservableGauge} + */ + createObservableGauge(_name: string, _options?: MetricOptions): ObservableGauge; + /** + * @see {@link Meter.createObservableCounter} + */ + createObservableCounter(_name: string, _options?: MetricOptions): ObservableCounter; + /** + * @see {@link Meter.createObservableUpDownCounter} + */ + createObservableUpDownCounter(_name: string, _options?: MetricOptions): ObservableUpDownCounter; + /** + * @see {@link Meter.addBatchObservableCallback} + */ + addBatchObservableCallback(_callback: BatchObservableCallback, _observables: Observable[]): void; + /** + * @see {@link Meter.removeBatchObservableCallback} + */ + removeBatchObservableCallback(_callback: BatchObservableCallback): void; +} +export declare class NoopMetric { +} +export declare class NoopCounterMetric extends NoopMetric implements Counter { + add(_value: number, _attributes: MetricAttributes): void; +} +export declare class NoopUpDownCounterMetric extends NoopMetric implements UpDownCounter { + add(_value: number, _attributes: MetricAttributes): void; +} +export declare class NoopGaugeMetric extends NoopMetric implements Gauge { + record(_value: number, _attributes: MetricAttributes): void; +} +export declare class NoopHistogramMetric extends NoopMetric implements Histogram { + record(_value: number, _attributes: MetricAttributes): void; +} +export declare class NoopObservableMetric { + addCallback(_callback: ObservableCallback): void; + removeCallback(_callback: ObservableCallback): void; +} +export declare class NoopObservableCounterMetric extends NoopObservableMetric implements ObservableCounter { +} +export declare class NoopObservableGaugeMetric extends NoopObservableMetric implements ObservableGauge { +} +export declare class NoopObservableUpDownCounterMetric extends NoopObservableMetric implements ObservableUpDownCounter { +} +export declare const NOOP_METER: NoopMeter; +export declare const NOOP_COUNTER_METRIC: NoopCounterMetric; +export declare const NOOP_GAUGE_METRIC: NoopGaugeMetric; +export declare const NOOP_HISTOGRAM_METRIC: NoopHistogramMetric; +export declare const NOOP_UP_DOWN_COUNTER_METRIC: NoopUpDownCounterMetric; +export declare const NOOP_OBSERVABLE_COUNTER_METRIC: NoopObservableCounterMetric; +export declare const NOOP_OBSERVABLE_GAUGE_METRIC: NoopObservableGaugeMetric; +export declare const NOOP_OBSERVABLE_UP_DOWN_COUNTER_METRIC: NoopObservableUpDownCounterMetric; +/** + * Create a no-op Meter + */ +export declare function createNoopMeter(): Meter; +//# sourceMappingURL=NoopMeter.d.ts.map \ No newline at end of file diff --git a/packages/node_modules/@opentelemetry/api/metrics/NoopMeterProvider.d.ts b/packages/node_modules/@opentelemetry/api/metrics/NoopMeterProvider.d.ts new file mode 100644 index 00000000000..8b51bc526f1 --- /dev/null +++ b/packages/node_modules/@opentelemetry/api/metrics/NoopMeterProvider.d.ts @@ -0,0 +1,11 @@ +import { Meter, MeterOptions } from './Meter'; +import { MeterProvider } from './MeterProvider'; +/** + * An implementation of the {@link MeterProvider} which returns an impotent Meter + * for all calls to `getMeter` + */ +export declare class NoopMeterProvider implements MeterProvider { + getMeter(_name: string, _version?: string, _options?: MeterOptions): Meter; +} +export declare const NOOP_METER_PROVIDER: NoopMeterProvider; +//# sourceMappingURL=NoopMeterProvider.d.ts.map \ No newline at end of file diff --git a/packages/node_modules/@opentelemetry/api/metrics/ObservableResult.d.ts b/packages/node_modules/@opentelemetry/api/metrics/ObservableResult.d.ts new file mode 100644 index 00000000000..26563f9ecb2 --- /dev/null +++ b/packages/node_modules/@opentelemetry/api/metrics/ObservableResult.d.ts @@ -0,0 +1,31 @@ +import { MetricAttributes, Observable } from './Metric'; +/** + * Interface that is being used in callback function for Observable Metric. + */ +export interface ObservableResult { + /** + * Observe a measurement of the value associated with the given attributes. + * + * @param value The value to be observed. + * @param attributes The attributes associated with the value. If more than + * one values associated with the same attributes values, SDK may pick the + * last one or simply drop the entire observable result. + */ + observe(this: ObservableResult, value: number, attributes?: AttributesTypes): void; +} +/** + * Interface that is being used in batch observable callback function. + */ +export interface BatchObservableResult { + /** + * Observe a measurement of the value associated with the given attributes. + * + * @param metric The observable metric to be observed. + * @param value The value to be observed. + * @param attributes The attributes associated with the value. If more than + * one values associated with the same attributes values, SDK may pick the + * last one or simply drop the entire observable result. + */ + observe(this: BatchObservableResult, metric: Observable, value: number, attributes?: AttributesTypes): void; +} +//# sourceMappingURL=ObservableResult.d.ts.map \ No newline at end of file diff --git a/packages/node_modules/@opentelemetry/api/platform/browser/globalThis.d.ts b/packages/node_modules/@opentelemetry/api/platform/browser/globalThis.d.ts new file mode 100644 index 00000000000..e73fd73e554 --- /dev/null +++ b/packages/node_modules/@opentelemetry/api/platform/browser/globalThis.d.ts @@ -0,0 +1,10 @@ +/** + * - globalThis (New standard) + * - self (Will return the current window instance for supported browsers) + * - window (fallback for older browser implementations) + * - global (NodeJS implementation) + * - (When all else fails) + */ +/** only globals that common to node and browsers are allowed */ +export declare const _globalThis: typeof globalThis; +//# sourceMappingURL=globalThis.d.ts.map \ No newline at end of file diff --git a/packages/node_modules/@opentelemetry/api/platform/browser/index.d.ts b/packages/node_modules/@opentelemetry/api/platform/browser/index.d.ts new file mode 100644 index 00000000000..ba20e1232c4 --- /dev/null +++ b/packages/node_modules/@opentelemetry/api/platform/browser/index.d.ts @@ -0,0 +1,2 @@ +export * from './globalThis'; +//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/packages/node_modules/@opentelemetry/api/platform/index.d.ts b/packages/node_modules/@opentelemetry/api/platform/index.d.ts new file mode 100644 index 00000000000..90595da96ff --- /dev/null +++ b/packages/node_modules/@opentelemetry/api/platform/index.d.ts @@ -0,0 +1,2 @@ +export * from './node'; +//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/packages/node_modules/@opentelemetry/api/platform/node/globalThis.d.ts b/packages/node_modules/@opentelemetry/api/platform/node/globalThis.d.ts new file mode 100644 index 00000000000..e3c83e5d299 --- /dev/null +++ b/packages/node_modules/@opentelemetry/api/platform/node/globalThis.d.ts @@ -0,0 +1,3 @@ +/** only globals that common to node and browsers are allowed */ +export declare const _globalThis: typeof globalThis; +//# sourceMappingURL=globalThis.d.ts.map \ No newline at end of file diff --git a/packages/node_modules/@opentelemetry/api/platform/node/index.d.ts b/packages/node_modules/@opentelemetry/api/platform/node/index.d.ts new file mode 100644 index 00000000000..ba20e1232c4 --- /dev/null +++ b/packages/node_modules/@opentelemetry/api/platform/node/index.d.ts @@ -0,0 +1,2 @@ +export * from './globalThis'; +//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/packages/node_modules/@opentelemetry/api/propagation-api.d.ts b/packages/node_modules/@opentelemetry/api/propagation-api.d.ts new file mode 100644 index 00000000000..e12b51ba7e5 --- /dev/null +++ b/packages/node_modules/@opentelemetry/api/propagation-api.d.ts @@ -0,0 +1,4 @@ +import { PropagationAPI } from './api/propagation'; +/** Entrypoint for propagation API */ +export declare const propagation: PropagationAPI; +//# sourceMappingURL=propagation-api.d.ts.map \ No newline at end of file diff --git a/packages/node_modules/@opentelemetry/api/propagation/NoopTextMapPropagator.d.ts b/packages/node_modules/@opentelemetry/api/propagation/NoopTextMapPropagator.d.ts new file mode 100644 index 00000000000..398021f3b21 --- /dev/null +++ b/packages/node_modules/@opentelemetry/api/propagation/NoopTextMapPropagator.d.ts @@ -0,0 +1,13 @@ +import { Context } from '../context/types'; +import { TextMapPropagator } from './TextMapPropagator'; +/** + * No-op implementations of {@link TextMapPropagator}. + */ +export declare class NoopTextMapPropagator implements TextMapPropagator { + /** Noop inject function does nothing */ + inject(_context: Context, _carrier: unknown): void; + /** Noop extract function does nothing and returns the input context */ + extract(context: Context, _carrier: unknown): Context; + fields(): string[]; +} +//# sourceMappingURL=NoopTextMapPropagator.d.ts.map \ No newline at end of file diff --git a/packages/node_modules/@opentelemetry/api/propagation/TextMapPropagator.d.ts b/packages/node_modules/@opentelemetry/api/propagation/TextMapPropagator.d.ts new file mode 100644 index 00000000000..dc39367bfbf --- /dev/null +++ b/packages/node_modules/@opentelemetry/api/propagation/TextMapPropagator.d.ts @@ -0,0 +1,84 @@ +import { Context } from '../context/types'; +/** + * Injects `Context` into and extracts it from carriers that travel + * in-band across process boundaries. Encoding is expected to conform to the + * HTTP Header Field semantics. Values are often encoded as RPC/HTTP request + * headers. + * + * The carrier of propagated data on both the client (injector) and server + * (extractor) side is usually an object such as http headers. Propagation is + * usually implemented via library-specific request interceptors, where the + * client-side injects values and the server-side extracts them. + */ +export interface TextMapPropagator { + /** + * Injects values from a given `Context` into a carrier. + * + * OpenTelemetry defines a common set of format values (TextMapPropagator), + * and each has an expected `carrier` type. + * + * @param context the Context from which to extract values to transmit over + * the wire. + * @param carrier the carrier of propagation fields, such as http request + * headers. + * @param setter an optional {@link TextMapSetter}. If undefined, values will be + * set by direct object assignment. + */ + inject(context: Context, carrier: Carrier, setter: TextMapSetter): void; + /** + * Given a `Context` and a carrier, extract context values from a + * carrier and return a new context, created from the old context, with the + * extracted values. + * + * @param context the Context from which to extract values to transmit over + * the wire. + * @param carrier the carrier of propagation fields, such as http request + * headers. + * @param getter an optional {@link TextMapGetter}. If undefined, keys will be all + * own properties, and keys will be accessed by direct object access. + */ + extract(context: Context, carrier: Carrier, getter: TextMapGetter): Context; + /** + * Return a list of all fields which may be used by the propagator. + */ + fields(): string[]; +} +/** + * A setter is specified by the caller to define a specific method + * to set key/value pairs on the carrier within a propagator. + */ +export interface TextMapSetter { + /** + * Callback used to set a key/value pair on an object. + * + * Should be called by the propagator each time a key/value pair + * should be set, and should set that key/value pair on the propagator. + * + * @param carrier object or class which carries key/value pairs + * @param key string key to modify + * @param value value to be set to the key on the carrier + */ + set(carrier: Carrier, key: string, value: string): void; +} +/** + * A getter is specified by the caller to define a specific method + * to get the value of a key from a carrier. + */ +export interface TextMapGetter { + /** + * Get a list of all keys available on the carrier. + * + * @param carrier + */ + keys(carrier: Carrier): string[]; + /** + * Get the value of a specific key from the carrier. + * + * @param carrier + * @param key + */ + get(carrier: Carrier, key: string): undefined | string | string[]; +} +export declare const defaultTextMapGetter: TextMapGetter; +export declare const defaultTextMapSetter: TextMapSetter; +//# sourceMappingURL=TextMapPropagator.d.ts.map \ No newline at end of file diff --git a/packages/node_modules/@opentelemetry/api/trace-api.d.ts b/packages/node_modules/@opentelemetry/api/trace-api.d.ts new file mode 100644 index 00000000000..b4751a7f8f8 --- /dev/null +++ b/packages/node_modules/@opentelemetry/api/trace-api.d.ts @@ -0,0 +1,4 @@ +import { TraceAPI } from './api/trace'; +/** Entrypoint for trace API */ +export declare const trace: TraceAPI; +//# sourceMappingURL=trace-api.d.ts.map \ No newline at end of file diff --git a/packages/node_modules/@opentelemetry/api/trace/NonRecordingSpan.d.ts b/packages/node_modules/@opentelemetry/api/trace/NonRecordingSpan.d.ts new file mode 100644 index 00000000000..ce569f0c59c --- /dev/null +++ b/packages/node_modules/@opentelemetry/api/trace/NonRecordingSpan.d.ts @@ -0,0 +1,28 @@ +import { Exception } from '../common/Exception'; +import { TimeInput } from '../common/Time'; +import { SpanAttributes } from './attributes'; +import { Span } from './span'; +import { SpanContext } from './span_context'; +import { SpanStatus } from './status'; +import { Link } from './link'; +/** + * The NonRecordingSpan is the default {@link Span} that is used when no Span + * implementation is available. All operations are no-op including context + * propagation. + */ +export declare class NonRecordingSpan implements Span { + private readonly _spanContext; + constructor(_spanContext?: SpanContext); + spanContext(): SpanContext; + setAttribute(_key: string, _value: unknown): this; + setAttributes(_attributes: SpanAttributes): this; + addEvent(_name: string, _attributes?: SpanAttributes): this; + addLink(_link: Link): this; + addLinks(_links: Link[]): this; + setStatus(_status: SpanStatus): this; + updateName(_name: string): this; + end(_endTime?: TimeInput): void; + isRecording(): boolean; + recordException(_exception: Exception, _time?: TimeInput): void; +} +//# sourceMappingURL=NonRecordingSpan.d.ts.map \ No newline at end of file diff --git a/packages/node_modules/@opentelemetry/api/trace/NoopTracer.d.ts b/packages/node_modules/@opentelemetry/api/trace/NoopTracer.d.ts new file mode 100644 index 00000000000..0e059c990c6 --- /dev/null +++ b/packages/node_modules/@opentelemetry/api/trace/NoopTracer.d.ts @@ -0,0 +1,14 @@ +import { Context } from '../context/types'; +import { Span } from './span'; +import { SpanOptions } from './SpanOptions'; +import { Tracer } from './tracer'; +/** + * No-op implementations of {@link Tracer}. + */ +export declare class NoopTracer implements Tracer { + startSpan(name: string, options?: SpanOptions, context?: Context): Span; + startActiveSpan ReturnType>(name: string, fn: F): ReturnType; + startActiveSpan ReturnType>(name: string, opts: SpanOptions | undefined, fn: F): ReturnType; + startActiveSpan ReturnType>(name: string, opts: SpanOptions | undefined, ctx: Context | undefined, fn: F): ReturnType; +} +//# sourceMappingURL=NoopTracer.d.ts.map \ No newline at end of file diff --git a/packages/node_modules/@opentelemetry/api/trace/NoopTracerProvider.d.ts b/packages/node_modules/@opentelemetry/api/trace/NoopTracerProvider.d.ts new file mode 100644 index 00000000000..ec0fe792012 --- /dev/null +++ b/packages/node_modules/@opentelemetry/api/trace/NoopTracerProvider.d.ts @@ -0,0 +1,13 @@ +import { Tracer } from './tracer'; +import { TracerOptions } from './tracer_options'; +import { TracerProvider } from './tracer_provider'; +/** + * An implementation of the {@link TracerProvider} which returns an impotent + * Tracer for all calls to `getTracer`. + * + * All operations are no-op. + */ +export declare class NoopTracerProvider implements TracerProvider { + getTracer(_name?: string, _version?: string, _options?: TracerOptions): Tracer; +} +//# sourceMappingURL=NoopTracerProvider.d.ts.map \ No newline at end of file diff --git a/packages/node_modules/@opentelemetry/api/trace/ProxyTracer.d.ts b/packages/node_modules/@opentelemetry/api/trace/ProxyTracer.d.ts new file mode 100644 index 00000000000..116cc5c1f68 --- /dev/null +++ b/packages/node_modules/@opentelemetry/api/trace/ProxyTracer.d.ts @@ -0,0 +1,27 @@ +import { Context } from '../context/types'; +import { Span } from './span'; +import { SpanOptions } from './SpanOptions'; +import { Tracer } from './tracer'; +import { TracerOptions } from './tracer_options'; +/** + * Proxy tracer provided by the proxy tracer provider + */ +export declare class ProxyTracer implements Tracer { + private _provider; + readonly name: string; + readonly version?: string | undefined; + readonly options?: TracerOptions | undefined; + private _delegate?; + constructor(_provider: TracerDelegator, name: string, version?: string | undefined, options?: TracerOptions | undefined); + startSpan(name: string, options?: SpanOptions, context?: Context): Span; + startActiveSpan unknown>(_name: string, _options: F | SpanOptions, _context?: F | Context, _fn?: F): ReturnType; + /** + * Try to get a tracer from the proxy tracer provider. + * If the proxy tracer provider has no delegate, return a noop tracer. + */ + private _getTracer; +} +export interface TracerDelegator { + getDelegateTracer(name: string, version?: string, options?: TracerOptions): Tracer | undefined; +} +//# sourceMappingURL=ProxyTracer.d.ts.map \ No newline at end of file diff --git a/packages/node_modules/@opentelemetry/api/trace/ProxyTracerProvider.d.ts b/packages/node_modules/@opentelemetry/api/trace/ProxyTracerProvider.d.ts new file mode 100644 index 00000000000..ee7eafa94d5 --- /dev/null +++ b/packages/node_modules/@opentelemetry/api/trace/ProxyTracerProvider.d.ts @@ -0,0 +1,25 @@ +import { Tracer } from './tracer'; +import { TracerProvider } from './tracer_provider'; +import { TracerOptions } from './tracer_options'; +/** + * Tracer provider which provides {@link ProxyTracer}s. + * + * Before a delegate is set, tracers provided are NoOp. + * When a delegate is set, traces are provided from the delegate. + * When a delegate is set after tracers have already been provided, + * all tracers already provided will use the provided delegate implementation. + */ +export declare class ProxyTracerProvider implements TracerProvider { + private _delegate?; + /** + * Get a {@link ProxyTracer} + */ + getTracer(name: string, version?: string, options?: TracerOptions): Tracer; + getDelegate(): TracerProvider; + /** + * Set the delegate tracer provider + */ + setDelegate(delegate: TracerProvider): void; + getDelegateTracer(name: string, version?: string, options?: TracerOptions): Tracer | undefined; +} +//# sourceMappingURL=ProxyTracerProvider.d.ts.map \ No newline at end of file diff --git a/packages/node_modules/@opentelemetry/api/trace/Sampler.d.ts b/packages/node_modules/@opentelemetry/api/trace/Sampler.d.ts new file mode 100644 index 00000000000..c847eaf36d4 --- /dev/null +++ b/packages/node_modules/@opentelemetry/api/trace/Sampler.d.ts @@ -0,0 +1,31 @@ +import { Context } from '../context/types'; +import { SpanAttributes } from './attributes'; +import { Link } from './link'; +import { SamplingResult } from './SamplingResult'; +import { SpanKind } from './span_kind'; +/** + * @deprecated use the one declared in @opentelemetry/sdk-trace-base instead. + * This interface represent a sampler. Sampling is a mechanism to control the + * noise and overhead introduced by OpenTelemetry by reducing the number of + * samples of traces collected and sent to the backend. + */ +export interface Sampler { + /** + * Checks whether span needs to be created and tracked. + * + * @param context Parent Context which may contain a span. + * @param traceId of the span to be created. It can be different from the + * traceId in the {@link SpanContext}. Typically in situations when the + * span to be created starts a new trace. + * @param spanName of the span to be created. + * @param spanKind of the span to be created. + * @param attributes Initial set of SpanAttributes for the Span being constructed. + * @param links Collection of links that will be associated with the Span to + * be created. Typically useful for batch operations. + * @returns a {@link SamplingResult}. + */ + shouldSample(context: Context, traceId: string, spanName: string, spanKind: SpanKind, attributes: SpanAttributes, links: Link[]): SamplingResult; + /** Returns the sampler name or short description with the configuration. */ + toString(): string; +} +//# sourceMappingURL=Sampler.d.ts.map \ No newline at end of file diff --git a/packages/node_modules/@opentelemetry/api/trace/SamplingResult.d.ts b/packages/node_modules/@opentelemetry/api/trace/SamplingResult.d.ts new file mode 100644 index 00000000000..f2bb495ff51 --- /dev/null +++ b/packages/node_modules/@opentelemetry/api/trace/SamplingResult.d.ts @@ -0,0 +1,49 @@ +import { SpanAttributes } from './attributes'; +import { TraceState } from './trace_state'; +/** + * @deprecated use the one declared in @opentelemetry/sdk-trace-base instead. + * A sampling decision that determines how a {@link Span} will be recorded + * and collected. + */ +export declare enum SamplingDecision { + /** + * `Span.isRecording() === false`, span will not be recorded and all events + * and attributes will be dropped. + */ + NOT_RECORD = 0, + /** + * `Span.isRecording() === true`, but `Sampled` flag in {@link TraceFlags} + * MUST NOT be set. + */ + RECORD = 1, + /** + * `Span.isRecording() === true` AND `Sampled` flag in {@link TraceFlags} + * MUST be set. + */ + RECORD_AND_SAMPLED = 2 +} +/** + * @deprecated use the one declared in @opentelemetry/sdk-trace-base instead. + * A sampling result contains a decision for a {@link Span} and additional + * attributes the sampler would like to added to the Span. + */ +export interface SamplingResult { + /** + * A sampling decision, refer to {@link SamplingDecision} for details. + */ + decision: SamplingDecision; + /** + * The list of attributes returned by SamplingResult MUST be immutable. + * Caller may call {@link Sampler}.shouldSample any number of times and + * can safely cache the returned value. + */ + attributes?: Readonly; + /** + * A {@link TraceState} that will be associated with the {@link Span} through + * the new {@link SpanContext}. Samplers SHOULD return the TraceState from + * the passed-in {@link Context} if they do not intend to change it. Leaving + * the value undefined will also leave the TraceState unchanged. + */ + traceState?: TraceState; +} +//# sourceMappingURL=SamplingResult.d.ts.map \ No newline at end of file diff --git a/packages/node_modules/@opentelemetry/api/trace/SpanOptions.d.ts b/packages/node_modules/@opentelemetry/api/trace/SpanOptions.d.ts new file mode 100644 index 00000000000..c8045689b74 --- /dev/null +++ b/packages/node_modules/@opentelemetry/api/trace/SpanOptions.d.ts @@ -0,0 +1,23 @@ +import { TimeInput } from '../common/Time'; +import { SpanAttributes } from './attributes'; +import { Link } from './link'; +import { SpanKind } from './span_kind'; +/** + * Options needed for span creation + */ +export interface SpanOptions { + /** + * The SpanKind of a span + * @default {@link SpanKind.INTERNAL} + */ + kind?: SpanKind; + /** A span's attributes */ + attributes?: SpanAttributes; + /** {@link Link}s span to other spans */ + links?: Link[]; + /** A manually specified start time for the created `Span` object. */ + startTime?: TimeInput; + /** The new span should be a root span. (Ignore parent from context). */ + root?: boolean; +} +//# sourceMappingURL=SpanOptions.d.ts.map \ No newline at end of file diff --git a/packages/node_modules/@opentelemetry/api/trace/attributes.d.ts b/packages/node_modules/@opentelemetry/api/trace/attributes.d.ts new file mode 100644 index 00000000000..a2a5d2a2f9a --- /dev/null +++ b/packages/node_modules/@opentelemetry/api/trace/attributes.d.ts @@ -0,0 +1,10 @@ +import { Attributes, AttributeValue } from '../common/Attributes'; +/** + * @deprecated please use {@link Attributes} + */ +export declare type SpanAttributes = Attributes; +/** + * @deprecated please use {@link AttributeValue} + */ +export declare type SpanAttributeValue = AttributeValue; +//# sourceMappingURL=attributes.d.ts.map \ No newline at end of file diff --git a/packages/node_modules/@opentelemetry/api/trace/context-utils.d.ts b/packages/node_modules/@opentelemetry/api/trace/context-utils.d.ts new file mode 100644 index 00000000000..f35f794218d --- /dev/null +++ b/packages/node_modules/@opentelemetry/api/trace/context-utils.d.ts @@ -0,0 +1,41 @@ +import { Context } from '../context/types'; +import { Span } from './span'; +import { SpanContext } from './span_context'; +/** + * Return the span if one exists + * + * @param context context to get span from + */ +export declare function getSpan(context: Context): Span | undefined; +/** + * Gets the span from the current context, if one exists. + */ +export declare function getActiveSpan(): Span | undefined; +/** + * Set the span on a context + * + * @param context context to use as parent + * @param span span to set active + */ +export declare function setSpan(context: Context, span: Span): Context; +/** + * Remove current span stored in the context + * + * @param context context to delete span from + */ +export declare function deleteSpan(context: Context): Context; +/** + * Wrap span context in a NoopSpan and set as span in a new + * context + * + * @param context context to set active span on + * @param spanContext span context to be wrapped + */ +export declare function setSpanContext(context: Context, spanContext: SpanContext): Context; +/** + * Get the span context of the span if it exists. + * + * @param context context to get values from + */ +export declare function getSpanContext(context: Context): SpanContext | undefined; +//# sourceMappingURL=context-utils.d.ts.map \ No newline at end of file diff --git a/packages/node_modules/@opentelemetry/api/trace/internal/tracestate-impl.d.ts b/packages/node_modules/@opentelemetry/api/trace/internal/tracestate-impl.d.ts new file mode 100644 index 00000000000..9ed5ecb7109 --- /dev/null +++ b/packages/node_modules/@opentelemetry/api/trace/internal/tracestate-impl.d.ts @@ -0,0 +1,22 @@ +import { TraceState } from '../trace_state'; +/** + * TraceState must be a class and not a simple object type because of the spec + * requirement (https://www.w3.org/TR/trace-context/#tracestate-field). + * + * Here is the list of allowed mutations: + * - New key-value pair should be added into the beginning of the list + * - The value of any key can be updated. Modified keys MUST be moved to the + * beginning of the list. + */ +export declare class TraceStateImpl implements TraceState { + private _internalState; + constructor(rawTraceState?: string); + set(key: string, value: string): TraceStateImpl; + unset(key: string): TraceStateImpl; + get(key: string): string | undefined; + serialize(): string; + private _parse; + private _keys; + private _clone; +} +//# sourceMappingURL=tracestate-impl.d.ts.map \ No newline at end of file diff --git a/packages/node_modules/@opentelemetry/api/trace/internal/tracestate-validators.d.ts b/packages/node_modules/@opentelemetry/api/trace/internal/tracestate-validators.d.ts new file mode 100644 index 00000000000..4917f99d1ed --- /dev/null +++ b/packages/node_modules/@opentelemetry/api/trace/internal/tracestate-validators.d.ts @@ -0,0 +1,15 @@ +/** + * Key is opaque string up to 256 characters printable. It MUST begin with a + * lowercase letter, and can only contain lowercase letters a-z, digits 0-9, + * underscores _, dashes -, asterisks *, and forward slashes /. + * For multi-tenant vendor scenarios, an at sign (@) can be used to prefix the + * vendor name. Vendors SHOULD set the tenant ID at the beginning of the key. + * see https://www.w3.org/TR/trace-context/#key + */ +export declare function validateKey(key: string): boolean; +/** + * Value is opaque string up to 256 characters printable ASCII RFC0020 + * characters (i.e., the range 0x20 to 0x7E) except comma , and =. + */ +export declare function validateValue(value: string): boolean; +//# sourceMappingURL=tracestate-validators.d.ts.map \ No newline at end of file diff --git a/packages/node_modules/@opentelemetry/api/trace/internal/utils.d.ts b/packages/node_modules/@opentelemetry/api/trace/internal/utils.d.ts new file mode 100644 index 00000000000..e3b51fe45b9 --- /dev/null +++ b/packages/node_modules/@opentelemetry/api/trace/internal/utils.d.ts @@ -0,0 +1,3 @@ +import { TraceState } from '../trace_state'; +export declare function createTraceState(rawTraceState?: string): TraceState; +//# sourceMappingURL=utils.d.ts.map \ No newline at end of file diff --git a/packages/node_modules/@opentelemetry/api/trace/invalid-span-constants.d.ts b/packages/node_modules/@opentelemetry/api/trace/invalid-span-constants.d.ts new file mode 100644 index 00000000000..e32dab9d602 --- /dev/null +++ b/packages/node_modules/@opentelemetry/api/trace/invalid-span-constants.d.ts @@ -0,0 +1,5 @@ +import { SpanContext } from './span_context'; +export declare const INVALID_SPANID = "0000000000000000"; +export declare const INVALID_TRACEID = "00000000000000000000000000000000"; +export declare const INVALID_SPAN_CONTEXT: SpanContext; +//# sourceMappingURL=invalid-span-constants.d.ts.map \ No newline at end of file diff --git a/packages/node_modules/@opentelemetry/api/trace/link.d.ts b/packages/node_modules/@opentelemetry/api/trace/link.d.ts new file mode 100644 index 00000000000..8fc0106276c --- /dev/null +++ b/packages/node_modules/@opentelemetry/api/trace/link.d.ts @@ -0,0 +1,26 @@ +import { SpanAttributes } from './attributes'; +import { SpanContext } from './span_context'; +/** + * A pointer from the current {@link Span} to another span in the same trace or + * in a different trace. + * Few examples of Link usage. + * 1. Batch Processing: A batch of elements may contain elements associated + * with one or more traces/spans. Since there can only be one parent + * SpanContext, Link is used to keep reference to SpanContext of all + * elements in the batch. + * 2. Public Endpoint: A SpanContext in incoming client request on a public + * endpoint is untrusted from service provider perspective. In such case it + * is advisable to start a new trace with appropriate sampling decision. + * However, it is desirable to associate incoming SpanContext to new trace + * initiated on service provider side so two traces (from Client and from + * Service Provider) can be correlated. + */ +export interface Link { + /** The {@link SpanContext} of a linked span. */ + context: SpanContext; + /** A set of {@link SpanAttributes} on the link. */ + attributes?: SpanAttributes; + /** Count of attributes of the link that were dropped due to collection limits */ + droppedAttributesCount?: number; +} +//# sourceMappingURL=link.d.ts.map \ No newline at end of file diff --git a/packages/node_modules/@opentelemetry/api/trace/span.d.ts b/packages/node_modules/@opentelemetry/api/trace/span.d.ts new file mode 100644 index 00000000000..28c6442dbe7 --- /dev/null +++ b/packages/node_modules/@opentelemetry/api/trace/span.d.ts @@ -0,0 +1,120 @@ +import { Exception } from '../common/Exception'; +import { TimeInput } from '../common/Time'; +import { SpanAttributes, SpanAttributeValue } from './attributes'; +import { SpanContext } from './span_context'; +import { SpanStatus } from './status'; +import { Link } from './link'; +/** + * An interface that represents a span. A span represents a single operation + * within a trace. Examples of span might include remote procedure calls or a + * in-process function calls to sub-components. A Trace has a single, top-level + * "root" Span that in turn may have zero or more child Spans, which in turn + * may have children. + * + * Spans are created by the {@link Tracer.startSpan} method. + */ +export interface Span { + /** + * Returns the {@link SpanContext} object associated with this Span. + * + * Get an immutable, serializable identifier for this span that can be used + * to create new child spans. Returned SpanContext is usable even after the + * span ends. + * + * @returns the SpanContext object associated with this Span. + */ + spanContext(): SpanContext; + /** + * Sets an attribute to the span. + * + * Sets a single Attribute with the key and value passed as arguments. + * + * @param key the key for this attribute. + * @param value the value for this attribute. Setting a value null or + * undefined is invalid and will result in undefined behavior. + */ + setAttribute(key: string, value: SpanAttributeValue): this; + /** + * Sets attributes to the span. + * + * @param attributes the attributes that will be added. + * null or undefined attribute values + * are invalid and will result in undefined behavior. + */ + setAttributes(attributes: SpanAttributes): this; + /** + * Adds an event to the Span. + * + * @param name the name of the event. + * @param [attributesOrStartTime] the attributes that will be added; these are + * associated with this event. Can be also a start time + * if type is {@type TimeInput} and 3rd param is undefined + * @param [startTime] start time of the event. + */ + addEvent(name: string, attributesOrStartTime?: SpanAttributes | TimeInput, startTime?: TimeInput): this; + /** + * Adds a single link to the span. + * + * Links added after the creation will not affect the sampling decision. + * It is preferred span links be added at span creation. + * + * @param link the link to add. + */ + addLink(link: Link): this; + /** + * Adds multiple links to the span. + * + * Links added after the creation will not affect the sampling decision. + * It is preferred span links be added at span creation. + * + * @param links the links to add. + */ + addLinks(links: Link[]): this; + /** + * Sets a status to the span. If used, this will override the default Span + * status. Default is {@link SpanStatusCode.UNSET}. SetStatus overrides the value + * of previous calls to SetStatus on the Span. + * + * @param status the SpanStatus to set. + */ + setStatus(status: SpanStatus): this; + /** + * Updates the Span name. + * + * This will override the name provided via {@link Tracer.startSpan}. + * + * Upon this update, any sampling behavior based on Span name will depend on + * the implementation. + * + * @param name the Span name. + */ + updateName(name: string): this; + /** + * Marks the end of Span execution. + * + * Call to End of a Span MUST not have any effects on child spans. Those may + * still be running and can be ended later. + * + * Do not return `this`. The Span generally should not be used after it + * is ended so chaining is not desired in this context. + * + * @param [endTime] the time to set as Span's end time. If not provided, + * use the current time as the span's end time. + */ + end(endTime?: TimeInput): void; + /** + * Returns the flag whether this span will be recorded. + * + * @returns true if this Span is active and recording information like events + * with the `AddEvent` operation and attributes using `setAttributes`. + */ + isRecording(): boolean; + /** + * Sets exception as a span event + * @param exception the exception the only accepted values are string or Error + * @param [time] the time to set as Span's event time. If not provided, + * use the current time. + */ + recordException(exception: Exception, time?: TimeInput): void; +} +//# sourceMappingURL=span.d.ts.map \ No newline at end of file diff --git a/packages/node_modules/@opentelemetry/api/trace/span_context.d.ts b/packages/node_modules/@opentelemetry/api/trace/span_context.d.ts new file mode 100644 index 00000000000..f30933a1fb5 --- /dev/null +++ b/packages/node_modules/@opentelemetry/api/trace/span_context.d.ts @@ -0,0 +1,53 @@ +import { TraceState } from './trace_state'; +/** + * A SpanContext represents the portion of a {@link Span} which must be + * serialized and propagated along side of a {@link Baggage}. + */ +export interface SpanContext { + /** + * The ID of the trace that this span belongs to. It is worldwide unique + * with practically sufficient probability by being made as 16 randomly + * generated bytes, encoded as a 32 lowercase hex characters corresponding to + * 128 bits. + */ + traceId: string; + /** + * The ID of the Span. It is globally unique with practically sufficient + * probability by being made as 8 randomly generated bytes, encoded as a 16 + * lowercase hex characters corresponding to 64 bits. + */ + spanId: string; + /** + * Only true if the SpanContext was propagated from a remote parent. + */ + isRemote?: boolean; + /** + * Trace flags to propagate. + * + * It is represented as 1 byte (bitmap). Bit to represent whether trace is + * sampled or not. When set, the least significant bit documents that the + * caller may have recorded trace data. A caller who does not record trace + * data out-of-band leaves this flag unset. + * + * see {@link TraceFlags} for valid flag values. + */ + traceFlags: number; + /** + * Tracing-system-specific info to propagate. + * + * The tracestate field value is a `list` as defined below. The `list` is a + * series of `list-members` separated by commas `,`, and a list-member is a + * key/value pair separated by an equals sign `=`. Spaces and horizontal tabs + * surrounding `list-members` are ignored. There can be a maximum of 32 + * `list-members` in a `list`. + * More Info: https://www.w3.org/TR/trace-context/#tracestate-field + * + * Examples: + * Single tracing system (generic format): + * tracestate: rojo=00f067aa0ba902b7 + * Multiple tracing systems (with different formatting): + * tracestate: rojo=00f067aa0ba902b7,congo=t61rcWkgMzE + */ + traceState?: TraceState; +} +//# sourceMappingURL=span_context.d.ts.map \ No newline at end of file diff --git a/packages/node_modules/@opentelemetry/api/trace/span_kind.d.ts b/packages/node_modules/@opentelemetry/api/trace/span_kind.d.ts new file mode 100644 index 00000000000..a89846f6567 --- /dev/null +++ b/packages/node_modules/@opentelemetry/api/trace/span_kind.d.ts @@ -0,0 +1,27 @@ +export declare enum SpanKind { + /** Default value. Indicates that the span is used internally. */ + INTERNAL = 0, + /** + * Indicates that the span covers server-side handling of an RPC or other + * remote request. + */ + SERVER = 1, + /** + * Indicates that the span covers the client-side wrapper around an RPC or + * other remote request. + */ + CLIENT = 2, + /** + * Indicates that the span describes producer sending a message to a + * broker. Unlike client and server, there is no direct critical path latency + * relationship between producer and consumer spans. + */ + PRODUCER = 3, + /** + * Indicates that the span describes consumer receiving a message from a + * broker. Unlike client and server, there is no direct critical path latency + * relationship between producer and consumer spans. + */ + CONSUMER = 4 +} +//# sourceMappingURL=span_kind.d.ts.map \ No newline at end of file diff --git a/packages/node_modules/@opentelemetry/api/trace/spancontext-utils.d.ts b/packages/node_modules/@opentelemetry/api/trace/spancontext-utils.d.ts new file mode 100644 index 00000000000..f1911114873 --- /dev/null +++ b/packages/node_modules/@opentelemetry/api/trace/spancontext-utils.d.ts @@ -0,0 +1,17 @@ +import { Span } from './span'; +import { SpanContext } from './span_context'; +export declare function isValidTraceId(traceId: string): boolean; +export declare function isValidSpanId(spanId: string): boolean; +/** + * Returns true if this {@link SpanContext} is valid. + * @return true if this {@link SpanContext} is valid. + */ +export declare function isSpanContextValid(spanContext: SpanContext): boolean; +/** + * Wrap the given {@link SpanContext} in a new non-recording {@link Span} + * + * @param spanContext span context to be wrapped + * @returns a new non-recording {@link Span} with the provided context + */ +export declare function wrapSpanContext(spanContext: SpanContext): Span; +//# sourceMappingURL=spancontext-utils.d.ts.map \ No newline at end of file diff --git a/packages/node_modules/@opentelemetry/api/trace/status.d.ts b/packages/node_modules/@opentelemetry/api/trace/status.d.ts new file mode 100644 index 00000000000..ab19a68f72e --- /dev/null +++ b/packages/node_modules/@opentelemetry/api/trace/status.d.ts @@ -0,0 +1,25 @@ +export interface SpanStatus { + /** The status code of this message. */ + code: SpanStatusCode; + /** A developer-facing error message. */ + message?: string; +} +/** + * An enumeration of status codes. + */ +export declare enum SpanStatusCode { + /** + * The default status. + */ + UNSET = 0, + /** + * The operation has been validated by an Application developer or + * Operator to have completed successfully. + */ + OK = 1, + /** + * The operation contains an error. + */ + ERROR = 2 +} +//# sourceMappingURL=status.d.ts.map \ No newline at end of file diff --git a/packages/node_modules/@opentelemetry/api/trace/trace_flags.d.ts b/packages/node_modules/@opentelemetry/api/trace/trace_flags.d.ts new file mode 100644 index 00000000000..11288ba95aa --- /dev/null +++ b/packages/node_modules/@opentelemetry/api/trace/trace_flags.d.ts @@ -0,0 +1,7 @@ +export declare enum TraceFlags { + /** Represents no flag set. */ + NONE = 0, + /** Bit to represent whether trace is sampled in trace flags. */ + SAMPLED = 1 +} +//# sourceMappingURL=trace_flags.d.ts.map \ No newline at end of file diff --git a/packages/node_modules/@opentelemetry/api/trace/trace_state.d.ts b/packages/node_modules/@opentelemetry/api/trace/trace_state.d.ts new file mode 100644 index 00000000000..f275b8bed66 --- /dev/null +++ b/packages/node_modules/@opentelemetry/api/trace/trace_state.d.ts @@ -0,0 +1,38 @@ +export interface TraceState { + /** + * Create a new TraceState which inherits from this TraceState and has the + * given key set. + * The new entry will always be added in the front of the list of states. + * + * @param key key of the TraceState entry. + * @param value value of the TraceState entry. + */ + set(key: string, value: string): TraceState; + /** + * Return a new TraceState which inherits from this TraceState but does not + * contain the given key. + * + * @param key the key for the TraceState entry to be removed. + */ + unset(key: string): TraceState; + /** + * Returns the value to which the specified key is mapped, or `undefined` if + * this map contains no mapping for the key. + * + * @param key with which the specified value is to be associated. + * @returns the value to which the specified key is mapped, or `undefined` if + * this map contains no mapping for the key. + */ + get(key: string): string | undefined; + /** + * Serializes the TraceState to a `list` as defined below. The `list` is a + * series of `list-members` separated by commas `,`, and a list-member is a + * key/value pair separated by an equals sign `=`. Spaces and horizontal tabs + * surrounding `list-members` are ignored. There can be a maximum of 32 + * `list-members` in a `list`. + * + * @returns the serialized string. + */ + serialize(): string; +} +//# sourceMappingURL=trace_state.d.ts.map \ No newline at end of file diff --git a/packages/node_modules/@opentelemetry/api/trace/tracer.d.ts b/packages/node_modules/@opentelemetry/api/trace/tracer.d.ts new file mode 100644 index 00000000000..25090899e8d --- /dev/null +++ b/packages/node_modules/@opentelemetry/api/trace/tracer.d.ts @@ -0,0 +1,71 @@ +import { Context } from '../context/types'; +import { Span } from './span'; +import { SpanOptions } from './SpanOptions'; +/** + * Tracer provides an interface for creating {@link Span}s. + */ +export interface Tracer { + /** + * Starts a new {@link Span}. Start the span without setting it on context. + * + * This method do NOT modify the current Context. + * + * @param name The name of the span + * @param [options] SpanOptions used for span creation + * @param [context] Context to use to extract parent + * @returns Span The newly created span + * @example + * const span = tracer.startSpan('op'); + * span.setAttribute('key', 'value'); + * span.end(); + */ + startSpan(name: string, options?: SpanOptions, context?: Context): Span; + /** + * Starts a new {@link Span} and calls the given function passing it the + * created span as first argument. + * Additionally the new span gets set in context and this context is activated + * for the duration of the function call. + * + * @param name The name of the span + * @param [options] SpanOptions used for span creation + * @param [context] Context to use to extract parent + * @param fn function called in the context of the span and receives the newly created span as an argument + * @returns return value of fn + * @example + * const something = tracer.startActiveSpan('op', span => { + * try { + * do some work + * span.setStatus({code: SpanStatusCode.OK}); + * return something; + * } catch (err) { + * span.setStatus({ + * code: SpanStatusCode.ERROR, + * message: err.message, + * }); + * throw err; + * } finally { + * span.end(); + * } + * }); + * + * @example + * const span = tracer.startActiveSpan('op', span => { + * try { + * do some work + * return span; + * } catch (err) { + * span.setStatus({ + * code: SpanStatusCode.ERROR, + * message: err.message, + * }); + * throw err; + * } + * }); + * do some more work + * span.end(); + */ + startActiveSpan unknown>(name: string, fn: F): ReturnType; + startActiveSpan unknown>(name: string, options: SpanOptions, fn: F): ReturnType; + startActiveSpan unknown>(name: string, options: SpanOptions, context: Context, fn: F): ReturnType; +} +//# sourceMappingURL=tracer.d.ts.map \ No newline at end of file diff --git a/packages/node_modules/@opentelemetry/api/trace/tracer_options.d.ts b/packages/node_modules/@opentelemetry/api/trace/tracer_options.d.ts new file mode 100644 index 00000000000..f3bbccfc25e --- /dev/null +++ b/packages/node_modules/@opentelemetry/api/trace/tracer_options.d.ts @@ -0,0 +1,10 @@ +/** + * An interface describes additional metadata of a tracer. + */ +export interface TracerOptions { + /** + * The schemaUrl of the tracer or instrumentation library + */ + schemaUrl?: string; +} +//# sourceMappingURL=tracer_options.d.ts.map \ No newline at end of file diff --git a/packages/node_modules/@opentelemetry/api/trace/tracer_provider.d.ts b/packages/node_modules/@opentelemetry/api/trace/tracer_provider.d.ts new file mode 100644 index 00000000000..9b2f7a954c6 --- /dev/null +++ b/packages/node_modules/@opentelemetry/api/trace/tracer_provider.d.ts @@ -0,0 +1,21 @@ +import { Tracer } from './tracer'; +import { TracerOptions } from './tracer_options'; +/** + * A registry for creating named {@link Tracer}s. + */ +export interface TracerProvider { + /** + * Returns a Tracer, creating one if one with the given name and version is + * not already created. + * + * This function may return different Tracer types (e.g. + * {@link NoopTracerProvider} vs. a functional tracer). + * + * @param name The name of the tracer or instrumentation library. + * @param version The version of the tracer or instrumentation library. + * @param options The options of the tracer or instrumentation library. + * @returns Tracer A Tracer with the given name and version + */ + getTracer(name: string, version?: string, options?: TracerOptions): Tracer; +} +//# sourceMappingURL=tracer_provider.d.ts.map \ No newline at end of file diff --git a/packages/node_modules/@opentelemetry/api/version.d.ts b/packages/node_modules/@opentelemetry/api/version.d.ts new file mode 100644 index 00000000000..40f036592c6 --- /dev/null +++ b/packages/node_modules/@opentelemetry/api/version.d.ts @@ -0,0 +1,2 @@ +export declare const VERSION = "1.9.0"; +//# sourceMappingURL=version.d.ts.map \ No newline at end of file diff --git a/packages/node_modules/opentracing/binary_carrier.d.ts b/packages/node_modules/opentracing/binary_carrier.d.ts new file mode 100644 index 00000000000..809e9768867 --- /dev/null +++ b/packages/node_modules/opentracing/binary_carrier.d.ts @@ -0,0 +1,11 @@ +/** + * Convenience class to use as a binary carrier. + * + * Any valid Object with a field named `buffer` may be used as a binary carrier; + * this class is only one such type of object that can be used. + */ +export default class BinaryCarrier { + buffer: ArrayLike; + constructor(buffer: ArrayLike); +} +//# sourceMappingURL=binary_carrier.d.ts.map \ No newline at end of file diff --git a/packages/node_modules/opentracing/constants.d.ts b/packages/node_modules/opentracing/constants.d.ts new file mode 100644 index 00000000000..59e7421518a --- /dev/null +++ b/packages/node_modules/opentracing/constants.d.ts @@ -0,0 +1,61 @@ +/** + * The FORMAT_BINARY format represents SpanContexts in an opaque binary + * carrier. + * + * Tracer.inject() will set the buffer field to an Array-like (Array, + * ArrayBuffer, or TypedBuffer) object containing the injected binary data. + * Any valid Object can be used as long as the buffer field of the object + * can be set. + * + * Tracer.extract() will look for `carrier.buffer`, and that field is + * expected to be an Array-like object (Array, ArrayBuffer, or + * TypedBuffer). + */ +export declare const FORMAT_BINARY = "binary"; +/** + * The FORMAT_TEXT_MAP format represents SpanContexts using a + * string->string map (backed by a Javascript Object) as a carrier. + * + * NOTE: Unlike FORMAT_HTTP_HEADERS, FORMAT_TEXT_MAP places no restrictions + * on the characters used in either the keys or the values of the map + * entries. + * + * The FORMAT_TEXT_MAP carrier map may contain unrelated data (e.g., + * arbitrary gRPC metadata); as such, the Tracer implementation should use + * a prefix or other convention to distinguish Tracer-specific key:value + * pairs. + */ +export declare const FORMAT_TEXT_MAP = "text_map"; +/** + * The FORMAT_HTTP_HEADERS format represents SpanContexts using a + * character-restricted string->string map (backed by a Javascript Object) + * as a carrier. + * + * Keys and values in the FORMAT_HTTP_HEADERS carrier must be suitable for + * use as HTTP headers (without modification or further escaping). That is, + * the keys have a greatly restricted character set, casing for the keys + * may not be preserved by various intermediaries, and the values should be + * URL-escaped. + * + * The FORMAT_HTTP_HEADERS carrier map may contain unrelated data (e.g., + * arbitrary HTTP headers); as such, the Tracer implementation should use a + * prefix or other convention to distinguish Tracer-specific key:value + * pairs. + */ +export declare const FORMAT_HTTP_HEADERS = "http_headers"; +/** + * A Span may be the "child of" a parent Span. In a “child of” reference, + * the parent Span depends on the child Span in some capacity. + * + * See more about reference types at https://github.com/opentracing/specification + */ +export declare const REFERENCE_CHILD_OF = "child_of"; +/** + * Some parent Spans do not depend in any way on the result of their child + * Spans. In these cases, we say merely that the child Span “follows from” + * the parent Span in a causal sense. + * + * See more about reference types at https://github.com/opentracing/specification + */ +export declare const REFERENCE_FOLLOWS_FROM = "follows_from"; +//# sourceMappingURL=constants.d.ts.map \ No newline at end of file diff --git a/packages/node_modules/opentracing/examples/demo/demo.d.ts b/packages/node_modules/opentracing/examples/demo/demo.d.ts new file mode 100644 index 00000000000..97525d2afed --- /dev/null +++ b/packages/node_modules/opentracing/examples/demo/demo.d.ts @@ -0,0 +1,2 @@ +export {}; +//# sourceMappingURL=demo.d.ts.map \ No newline at end of file diff --git a/packages/node_modules/opentracing/ext/tags.d.ts b/packages/node_modules/opentracing/ext/tags.d.ts new file mode 100644 index 00000000000..c46606f3169 --- /dev/null +++ b/packages/node_modules/opentracing/ext/tags.d.ts @@ -0,0 +1,90 @@ +/** SPAN_KIND hints at relationship between spans, e.g. client/server */ +export declare const SPAN_KIND = "span.kind"; +/** Marks a span representing the client-side of an RPC or other remote call */ +export declare const SPAN_KIND_RPC_CLIENT = "client"; +/** Marks a span representing the server-side of an RPC or other remote call */ +export declare const SPAN_KIND_RPC_SERVER = "server"; +/** Marks a span representing the producing-side within a messaging system or other remote call */ +export declare const SPAN_KIND_MESSAGING_PRODUCER = "producer"; +/** Marks a span representing the consuming-side within a messaging system or other remote call */ +export declare const SPAN_KIND_MESSAGING_CONSUMER = "consumer"; +/** + * ERROR (boolean) true if and only if the application considers the operation + * represented by the Span to have failed + */ +export declare const ERROR = "error"; +/** + * COMPONENT (string) ia s low-cardinality identifier of the module, library, + * or package that is generating a span. + */ +export declare const COMPONENT = "component"; +/** + * SAMPLING_PRIORITY (number) determines the priority of sampling this Span. + * If greater than 0, a hint to the Tracer to do its best to capture the trace. + * If 0, a hint to the trace to not-capture the trace. If absent, the Tracer + * should use its default sampling mechanism. + */ +export declare const SAMPLING_PRIORITY = "sampling.priority"; +/** + * PEER_SERVICE (string) Remote service name (for some unspecified + * definition of "service"). E.g., "elasticsearch", "a_custom_microservice", "memcache" + */ +export declare const PEER_SERVICE = "peer.service"; +/** PEER_HOSTNAME (string) Remote hostname. E.g., "opentracing.io", "internal.dns.name" */ +export declare const PEER_HOSTNAME = "peer.hostname"; +/** + * PEER_ADDRESS (string) Remote "address", suitable for use in a + * networking client library. This may be a "ip:port", a bare + * "hostname", a FQDN, or even a JDBC substring like "mysql://prod-db:3306" + */ +export declare const PEER_ADDRESS = "peer.address"; +/** + * PEER_HOST_IPV4 (number) Remote IPv4 address as a .-separated tuple. + * E.g., "127.0.0.1" + */ +export declare const PEER_HOST_IPV4 = "peer.ipv4"; +export declare const PEER_HOST_IPV6 = "peer.ipv6"; +export declare const PEER_PORT = "peer.port"; +/** + * HTTP_URL (string) URL of the request being handled in this segment of the + * trace, in standard URI format. E.g., "https://domain.net/path/to?resource=here" + */ +export declare const HTTP_URL = "http.url"; +/** + * HTTP_METHOD (string) HTTP method of the request for the associated Span. E.g., + * "GET", "POST" + */ +export declare const HTTP_METHOD = "http.method"; +/** + * HTTP_STATUS_CODE (number) HTTP response status code for the associated Span. + * E.g., 200, 503, 404 + */ +export declare const HTTP_STATUS_CODE = "http.status_code"; +/** + * MESSAGE_BUS_DESTINATION (string) An address at which messages can be exchanged. + * E.g. A Kafka record has an associated "topic name" that can be extracted + * by the instrumented producer or consumer and stored using this tag. + */ +export declare const MESSAGE_BUS_DESTINATION = "message_bus.destination"; +/** + * DB_INSTANCE (string) Database instance name. E.g., In java, if the + * jdbc.url="jdbc:mysql://127.0.0.1:3306/customers", the instance name is "customers". + */ +export declare const DB_INSTANCE = "db.instance"; +/** + * DB_STATEMENT (string) A database statement for the given database type. + * E.g., for db.type="SQL", "SELECT * FROM wuser_table"; + * for db.type="redis", "SET mykey 'WuValue'". + */ +export declare const DB_STATEMENT = "db.statement"; +/** + * DB_TYPE (string) Database type. For any SQL database, "sql". For others, + * the lower-case database category, e.g. "cassandra", "hbase", or "redis". + */ +export declare const DB_TYPE = "db.type"; +/** + * DB_USER (string) Username for accessing database. E.g., "readonly_user" + * or "reporting_user" + */ +export declare const DB_USER = "db.user"; +//# sourceMappingURL=tags.d.ts.map \ No newline at end of file diff --git a/packages/node_modules/opentracing/functions.d.ts b/packages/node_modules/opentracing/functions.d.ts new file mode 100644 index 00000000000..2e47cd998e0 --- /dev/null +++ b/packages/node_modules/opentracing/functions.d.ts @@ -0,0 +1,20 @@ +import Reference from './reference'; +import Span from './span'; +import SpanContext from './span_context'; +/** + * Return a new REFERENCE_CHILD_OF reference. + * + * @param {SpanContext} spanContext - the parent SpanContext instance to + * reference. + * @return a REFERENCE_CHILD_OF reference pointing to `spanContext` + */ +export declare function childOf(spanContext: SpanContext | Span): Reference; +/** + * Return a new REFERENCE_FOLLOWS_FROM reference. + * + * @param {SpanContext} spanContext - the parent SpanContext instance to + * reference. + * @return a REFERENCE_FOLLOWS_FROM reference pointing to `spanContext` + */ +export declare function followsFrom(spanContext: SpanContext | Span): Reference; +//# sourceMappingURL=functions.d.ts.map \ No newline at end of file diff --git a/packages/node_modules/opentracing/global_tracer.d.ts b/packages/node_modules/opentracing/global_tracer.d.ts new file mode 100644 index 00000000000..4d7da91f6e7 --- /dev/null +++ b/packages/node_modules/opentracing/global_tracer.d.ts @@ -0,0 +1,14 @@ +import Tracer from './tracer'; +/** + * Set the global Tracer. + * + * The behavior is undefined if this function is called more than once. + * + * @param {Tracer} tracer - the Tracer implementation + */ +export declare function initGlobalTracer(tracer: Tracer): void; +/** + * Returns the global tracer. + */ +export declare function globalTracer(): Tracer; +//# sourceMappingURL=global_tracer.d.ts.map \ No newline at end of file diff --git a/packages/node_modules/opentracing/index.d.ts b/packages/node_modules/opentracing/index.d.ts new file mode 100644 index 00000000000..865382e4927 --- /dev/null +++ b/packages/node_modules/opentracing/index.d.ts @@ -0,0 +1,12 @@ +import BinaryCarrier from './binary_carrier'; +import * as Tags from './ext/tags'; +import Reference from './reference'; +import Span from './span'; +import SpanContext from './span_context'; +import { SpanOptions, Tracer } from './tracer'; +import { MockTracer } from './mock_tracer'; +export { BinaryCarrier, Reference, SpanContext, Span, Tracer, SpanOptions, Tags, MockTracer }; +export * from './global_tracer'; +export * from './constants'; +export * from './functions'; +//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/packages/node_modules/opentracing/mock_tracer/index.d.ts b/packages/node_modules/opentracing/mock_tracer/index.d.ts new file mode 100644 index 00000000000..2c53a1312dd --- /dev/null +++ b/packages/node_modules/opentracing/mock_tracer/index.d.ts @@ -0,0 +1,5 @@ +import MockContext from './mock_context'; +import MockSpan from './mock_span'; +import MockTracer from './mock_tracer'; +export { MockTracer, MockSpan, MockContext }; +//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/packages/node_modules/opentracing/mock_tracer/mock_context.d.ts b/packages/node_modules/opentracing/mock_tracer/mock_context.d.ts new file mode 100644 index 00000000000..5a9e6b55f74 --- /dev/null +++ b/packages/node_modules/opentracing/mock_tracer/mock_context.d.ts @@ -0,0 +1,13 @@ +import { SpanContext } from '../span_context'; +import MockSpan from './mock_span'; +/** + * OpenTracing Context implementation designed for use in + * unit tests. + */ +export declare class MockContext extends SpanContext { + private _span; + constructor(span: MockSpan); + span(): MockSpan; +} +export default MockContext; +//# sourceMappingURL=mock_context.d.ts.map \ No newline at end of file diff --git a/packages/node_modules/opentracing/mock_tracer/mock_report.d.ts b/packages/node_modules/opentracing/mock_tracer/mock_report.d.ts new file mode 100644 index 00000000000..03840ff9d6d --- /dev/null +++ b/packages/node_modules/opentracing/mock_tracer/mock_report.d.ts @@ -0,0 +1,16 @@ +import { MockSpan } from './mock_span'; +/** + * Index a collection of reported MockSpans in a way that's easy to run unit + * test assertions against. + */ +export declare class MockReport { + spans: MockSpan[]; + private spansByUUID; + private spansByTag; + private debugSpans; + private unfinishedSpans; + constructor(spans: MockSpan[]); + firstSpanWithTagValue(key: string, val: any): MockSpan | null; +} +export default MockReport; +//# sourceMappingURL=mock_report.d.ts.map \ No newline at end of file diff --git a/packages/node_modules/opentracing/mock_tracer/mock_span.d.ts b/packages/node_modules/opentracing/mock_tracer/mock_span.d.ts new file mode 100644 index 00000000000..d2a6fd3a735 --- /dev/null +++ b/packages/node_modules/opentracing/mock_tracer/mock_span.d.ts @@ -0,0 +1,50 @@ +import * as opentracing from '../index'; +import Reference from '../reference'; +import MockContext from './mock_context'; +import MockTracer from './mock_tracer'; +export interface DebugInfo { + uuid: string; + operation: string; + millis: [number, number, number]; + tags?: { + [key: string]: any; + }; +} +/** + * OpenTracing Span implementation designed for use in unit tests. + */ +export declare class MockSpan extends opentracing.Span { + private _operationName; + private _tags; + private _logs; + _finishMs: number; + private _mockTracer; + private _uuid; + private _startMs; + _startStack?: string; + protected _context(): MockContext; + protected _setOperationName(name: string): void; + protected _addTags(set: { + [key: string]: any; + }): void; + protected _log(fields: { + [key: string]: any; + }, timestamp?: number): void; + protected _finish(finishTime?: number): void; + constructor(tracer: MockTracer); + uuid(): string; + operationName(): string; + durationMs(): number; + tags(): { + [key: string]: any; + }; + tracer(): opentracing.Tracer; + private _generateUUID; + addReference(ref: Reference): void; + /** + * Returns a simplified object better for console.log()'ing. + */ + debug(): DebugInfo; +} +export default MockSpan; +//# sourceMappingURL=mock_span.d.ts.map \ No newline at end of file diff --git a/packages/node_modules/opentracing/mock_tracer/mock_tracer.d.ts b/packages/node_modules/opentracing/mock_tracer/mock_tracer.d.ts new file mode 100644 index 00000000000..3a3381de579 --- /dev/null +++ b/packages/node_modules/opentracing/mock_tracer/mock_tracer.d.ts @@ -0,0 +1,26 @@ +import * as opentracing from '../index'; +import MockContext from './mock_context'; +import MockReport from './mock_report'; +import MockSpan from './mock_span'; +/** + * OpenTracing Tracer implementation designed for use in unit tests. + */ +export declare class MockTracer extends opentracing.Tracer { + private _spans; + protected _startSpan(name: string, fields: opentracing.SpanOptions): MockSpan; + protected _inject(span: MockContext, format: any, carrier: any): never; + protected _extract(format: any, carrier: any): never; + constructor(); + private _allocSpan; + /** + * Discard any buffered data. + */ + clear(): void; + /** + * Return the buffered data in a format convenient for making unit test + * assertions. + */ + report(): MockReport; +} +export default MockTracer; +//# sourceMappingURL=mock_tracer.d.ts.map \ No newline at end of file diff --git a/packages/node_modules/opentracing/noop.d.ts b/packages/node_modules/opentracing/noop.d.ts new file mode 100644 index 00000000000..58c9286cec2 --- /dev/null +++ b/packages/node_modules/opentracing/noop.d.ts @@ -0,0 +1,8 @@ +import Span from './span'; +import SpanContext from './span_context'; +import Tracer from './tracer'; +export declare let tracer: Tracer | null; +export declare let spanContext: SpanContext | null; +export declare let span: Span | null; +export declare function initialize(): void; +//# sourceMappingURL=noop.d.ts.map \ No newline at end of file diff --git a/packages/node_modules/opentracing/reference.d.ts b/packages/node_modules/opentracing/reference.d.ts new file mode 100644 index 00000000000..b9b9ba4ce23 --- /dev/null +++ b/packages/node_modules/opentracing/reference.d.ts @@ -0,0 +1,33 @@ +import Span from './span'; +import SpanContext from './span_context'; +/** + * Reference pairs a reference type constant (e.g., REFERENCE_CHILD_OF or + * REFERENCE_FOLLOWS_FROM) with the SpanContext it points to. + * + * See the exported childOf() and followsFrom() functions at the package level. + */ +export default class Reference { + protected _type: string; + protected _referencedContext: SpanContext; + /** + * @return {string} The Reference type (e.g., REFERENCE_CHILD_OF or + * REFERENCE_FOLLOWS_FROM). + */ + type(): string; + /** + * @return {SpanContext} The SpanContext being referred to (e.g., the + * parent in a REFERENCE_CHILD_OF Reference). + */ + referencedContext(): SpanContext; + /** + * Initialize a new Reference instance. + * + * @param {string} type - the Reference type constant (e.g., + * REFERENCE_CHILD_OF or REFERENCE_FOLLOWS_FROM). + * @param {SpanContext} referencedContext - the SpanContext being referred + * to. As a convenience, a Span instance may be passed in instead + * (in which case its .context() is used here). + */ + constructor(type: string, referencedContext: SpanContext | Span); +} +//# sourceMappingURL=reference.d.ts.map \ No newline at end of file diff --git a/packages/node_modules/opentracing/span.d.ts b/packages/node_modules/opentracing/span.d.ts new file mode 100644 index 00000000000..d2bbd50b4a3 --- /dev/null +++ b/packages/node_modules/opentracing/span.d.ts @@ -0,0 +1,147 @@ +import SpanContext from './span_context'; +import Tracer from './tracer'; +/** + * Span represents a logical unit of work as part of a broader Trace. Examples + * of span might include remote procedure calls or a in-process function calls + * to sub-components. A Trace has a single, top-level "root" Span that in turn + * may have zero or more child Spans, which in turn may have children. + */ +export declare class Span { + /** + * Returns the SpanContext object associated with this Span. + * + * @return {SpanContext} + */ + context(): SpanContext; + /** + * Returns the Tracer object used to create this Span. + * + * @return {Tracer} + */ + tracer(): Tracer; + /** + * Sets the string name for the logical operation this span represents. + * + * @param {string} name + */ + setOperationName(name: string): this; + /** + * Sets a key:value pair on this Span that also propagates to future + * children of the associated Span. + * + * setBaggageItem() enables powerful functionality given a full-stack + * opentracing integration (e.g., arbitrary application data from a web + * client can make it, transparently, all the way into the depths of a + * storage system), and with it some powerful costs: use this feature with + * care. + * + * IMPORTANT NOTE #1: setBaggageItem() will only propagate baggage items to + * *future* causal descendants of the associated Span. + * + * IMPORTANT NOTE #2: Use this thoughtfully and with care. Every key and + * value is copied into every local *and remote* child of the associated + * Span, and that can add up to a lot of network and cpu overhead. + * + * @param {string} key + * @param {string} value + */ + setBaggageItem(key: string, value: string): this; + /** + * Returns the value for a baggage item given its key. + * + * @param {string} key + * The key for the given trace attribute. + * @return {string} + * String value for the given key, or undefined if the key does not + * correspond to a set trace attribute. + */ + getBaggageItem(key: string): string | undefined; + /** + * Adds a single tag to the span. See `addTags()` for details. + * + * @param {string} key + * @param {any} value + */ + setTag(key: string, value: any): this; + /** + * Adds the given key value pairs to the set of span tags. + * + * Multiple calls to addTags() results in the tags being the superset of + * all calls. + * + * The behavior of setting the same key multiple times on the same span + * is undefined. + * + * The supported type of the values is implementation-dependent. + * Implementations are expected to safely handle all types of values but + * may choose to ignore unrecognized / unhandle-able values (e.g. objects + * with cyclic references, function objects). + * + * @return {[type]} [description] + */ + addTags(keyValueMap: { + [key: string]: any; + }): this; + /** + * Add a log record to this Span, optionally at a user-provided timestamp. + * + * For example: + * + * span.log({ + * size: rpc.size(), // numeric value + * URI: rpc.URI(), // string value + * payload: rpc.payload(), // Object value + * "keys can be arbitrary strings": rpc.foo(), + * }); + * + * span.log({ + * "error.description": someError.description(), + * }, someError.timestampMillis()); + * + * @param {object} keyValuePairs + * An object mapping string keys to arbitrary value types. All + * Tracer implementations should support bool, string, and numeric + * value types, and some may also support Object values. + * @param {number} timestamp + * An optional parameter specifying the timestamp in milliseconds + * since the Unix epoch. Fractional values are allowed so that + * timestamps with sub-millisecond accuracy can be represented. If + * not specified, the implementation is expected to use its notion + * of the current time of the call. + */ + log(keyValuePairs: { + [key: string]: any; + }, timestamp?: number): this; + /** + * DEPRECATED + */ + logEvent(eventName: string, payload: any): void; + /** + * Sets the end timestamp and finalizes Span state. + * + * With the exception of calls to Span.context() (which are always allowed), + * finish() must be the last call made to any span instance, and to do + * otherwise leads to undefined behavior. + * + * @param {number} finishTime + * Optional finish time in milliseconds as a Unix timestamp. Decimal + * values are supported for timestamps with sub-millisecond accuracy. + * If not specified, the current time (as defined by the + * implementation) will be used. + */ + finish(finishTime?: number): void; + protected _context(): SpanContext; + protected _tracer(): Tracer; + protected _setOperationName(name: string): void; + protected _setBaggageItem(key: string, value: string): void; + protected _getBaggageItem(key: string): string | undefined; + protected _addTags(keyValuePairs: { + [key: string]: any; + }): void; + protected _log(keyValuePairs: { + [key: string]: any; + }, timestamp?: number): void; + protected _finish(finishTime?: number): void; +} +export default Span; +//# sourceMappingURL=span.d.ts.map \ No newline at end of file diff --git a/packages/node_modules/opentracing/span_context.d.ts b/packages/node_modules/opentracing/span_context.d.ts new file mode 100644 index 00000000000..52bec33ff69 --- /dev/null +++ b/packages/node_modules/opentracing/span_context.d.ts @@ -0,0 +1,26 @@ +/** + * SpanContext represents Span state that must propagate to descendant Spans + * and across process boundaries. + * + * SpanContext is logically divided into two pieces: the user-level "Baggage" + * (see setBaggageItem and getBaggageItem) that propagates across Span + * boundaries and any Tracer-implementation-specific fields that are needed to + * identify or otherwise contextualize the associated Span instance (e.g., a + * tuple). + */ +export declare class SpanContext { + /** + * Returns a string representation of the implementation internal trace ID. + * + * @returns {string} + */ + toTraceId(): string; + /** + * Returns a string representation of the implementation internal span ID. + * + * @returns {string} + */ + toSpanId(): string; +} +export default SpanContext; +//# sourceMappingURL=span_context.d.ts.map \ No newline at end of file diff --git a/packages/node_modules/opentracing/test/api_compatibility.d.ts b/packages/node_modules/opentracing/test/api_compatibility.d.ts new file mode 100644 index 00000000000..f383322c160 --- /dev/null +++ b/packages/node_modules/opentracing/test/api_compatibility.d.ts @@ -0,0 +1,16 @@ +import { Tracer } from '../index'; +export interface ApiCompatibilityChecksOptions { + /** a boolean that controls whether or not to verify certain API functionality */ + skipBaggageChecks?: boolean; + skipInjectExtractChecks?: boolean; +} +/** + * A function that takes a tracer factory, and tests wheter the initialized tracer + * fulfills Opentracing's api requirements. + * + * @param {object} createTracer - a factory function that allocates a tracer. + * @param {object} [options] - the options to be set on api compatibility + */ +declare function apiCompatibilityChecks(createTracer?: () => Tracer, options?: ApiCompatibilityChecksOptions): void; +export default apiCompatibilityChecks; +//# sourceMappingURL=api_compatibility.d.ts.map \ No newline at end of file diff --git a/packages/node_modules/opentracing/test/mocktracer_implemenation.d.ts b/packages/node_modules/opentracing/test/mocktracer_implemenation.d.ts new file mode 100644 index 00000000000..e4b9252a22a --- /dev/null +++ b/packages/node_modules/opentracing/test/mocktracer_implemenation.d.ts @@ -0,0 +1,3 @@ +declare function mockTracerimplementationTests(): void; +export default mockTracerimplementationTests; +//# sourceMappingURL=mocktracer_implemenation.d.ts.map \ No newline at end of file diff --git a/packages/node_modules/opentracing/test/noop_implementation.d.ts b/packages/node_modules/opentracing/test/noop_implementation.d.ts new file mode 100644 index 00000000000..916d86e1123 --- /dev/null +++ b/packages/node_modules/opentracing/test/noop_implementation.d.ts @@ -0,0 +1,4 @@ +import { Tracer } from '../index'; +export declare function noopImplementationTests(createTracer?: () => Tracer): void; +export default noopImplementationTests; +//# sourceMappingURL=noop_implementation.d.ts.map \ No newline at end of file diff --git a/packages/node_modules/opentracing/test/opentracing_api.d.ts b/packages/node_modules/opentracing/test/opentracing_api.d.ts new file mode 100644 index 00000000000..632e02886e8 --- /dev/null +++ b/packages/node_modules/opentracing/test/opentracing_api.d.ts @@ -0,0 +1,3 @@ +export declare function opentracingAPITests(): void; +export default opentracingAPITests; +//# sourceMappingURL=opentracing_api.d.ts.map \ No newline at end of file diff --git a/packages/node_modules/opentracing/test/unittest.d.ts b/packages/node_modules/opentracing/test/unittest.d.ts new file mode 100644 index 00000000000..08090a13357 --- /dev/null +++ b/packages/node_modules/opentracing/test/unittest.d.ts @@ -0,0 +1,2 @@ +export {}; +//# sourceMappingURL=unittest.d.ts.map \ No newline at end of file diff --git a/packages/node_modules/opentracing/tracer.d.ts b/packages/node_modules/opentracing/tracer.d.ts new file mode 100644 index 00000000000..95e2c02b4d4 --- /dev/null +++ b/packages/node_modules/opentracing/tracer.d.ts @@ -0,0 +1,127 @@ +import Reference from './reference'; +import Span from './span'; +import SpanContext from './span_context'; +export interface SpanOptions { + /** + * a parent SpanContext (or Span, for convenience) that the newly-started + * span will be the child of (per REFERENCE_CHILD_OF). If specified, + * `references` must be unspecified. + */ + childOf?: Span | SpanContext; + /** + * an array of Reference instances, each pointing to a causal parent + * SpanContext. If specified, `fields.childOf` must be unspecified. + */ + references?: Reference[]; + /** + * set of key-value pairs which will be set as tags on the newly created + * Span. Ownership of the object is passed to the created span for + * efficiency reasons (the caller should not modify this object after + * calling startSpan). + */ + tags?: { + [key: string]: any; + }; + /** + * a manually specified start time for the created Span object. The time + * should be specified in milliseconds as Unix timestamp. Decimal value are + * supported to represent time values with sub-millisecond accuracy. + */ + startTime?: number; +} +/** + * Tracer is the entry-point between the instrumentation API and the tracing + * implementation. + * + * The default object acts as a no-op implementation. + * + * Note to implementators: derived classes can choose to directly implement the + * methods in the "OpenTracing API methods" section, or optionally the subset of + * underscore-prefixed methods to pick up the argument checking and handling + * automatically from the base class. + */ +export declare class Tracer { + /** + * Starts and returns a new Span representing a logical unit of work. + * + * For example: + * + * // Start a new (parentless) root Span: + * var parent = Tracer.startSpan('DoWork'); + * + * // Start a new (child) Span: + * var child = Tracer.startSpan('load-from-db', { + * childOf: parent.context(), + * }); + * + * // Start a new async (FollowsFrom) Span: + * var child = Tracer.startSpan('async-cache-write', { + * references: [ + * opentracing.followsFrom(parent.context()) + * ], + * }); + * + * @param {string} name - the name of the operation (REQUIRED). + * @param {SpanOptions} [options] - options for the newly created span. + * @return {Span} - a new Span object. + */ + startSpan(name: string, options?: SpanOptions): Span; + /** + * Injects the given SpanContext instance for cross-process propagation + * within `carrier`. The expected type of `carrier` depends on the value of + * `format. + * + * OpenTracing defines a common set of `format` values (see + * FORMAT_TEXT_MAP, FORMAT_HTTP_HEADERS, and FORMAT_BINARY), and each has + * an expected carrier type. + * + * Consider this pseudocode example: + * + * var clientSpan = ...; + * ... + * // Inject clientSpan into a text carrier. + * var headersCarrier = {}; + * Tracer.inject(clientSpan.context(), Tracer.FORMAT_HTTP_HEADERS, headersCarrier); + * // Incorporate the textCarrier into the outbound HTTP request header + * // map. + * Object.assign(outboundHTTPReq.headers, headersCarrier); + * // ... send the httpReq + * + * @param {SpanContext} spanContext - the SpanContext to inject into the + * carrier object. As a convenience, a Span instance may be passed + * in instead (in which case its .context() is used for the + * inject()). + * @param {string} format - the format of the carrier. + * @param {any} carrier - see the documentation for the chosen `format` + * for a description of the carrier object. + */ + inject(spanContext: SpanContext | Span, format: string, carrier: any): void; + /** + * Returns a SpanContext instance extracted from `carrier` in the given + * `format`. + * + * OpenTracing defines a common set of `format` values (see + * FORMAT_TEXT_MAP, FORMAT_HTTP_HEADERS, and FORMAT_BINARY), and each has + * an expected carrier type. + * + * Consider this pseudocode example: + * + * // Use the inbound HTTP request's headers as a text map carrier. + * var headersCarrier = inboundHTTPReq.headers; + * var wireCtx = Tracer.extract(Tracer.FORMAT_HTTP_HEADERS, headersCarrier); + * var serverSpan = Tracer.startSpan('...', { childOf : wireCtx }); + * + * @param {string} format - the format of the carrier. + * @param {any} carrier - the type of the carrier object is determined by + * the format. + * @return {SpanContext} + * The extracted SpanContext, or null if no such SpanContext could + * be found in `carrier` + */ + extract(format: string, carrier: any): SpanContext | null; + protected _startSpan(name: string, fields: SpanOptions): Span; + protected _inject(spanContext: SpanContext, format: string, carrier: any): void; + protected _extract(format: string, carrier: any): SpanContext | null; +} +export default Tracer; +//# sourceMappingURL=tracer.d.ts.map \ No newline at end of file diff --git a/vendor/rspack.config.js b/vendor/rspack.config.js index 9cf0c555c6c..0af38f187ea 100644 --- a/vendor/rspack.config.js +++ b/vendor/rspack.config.js @@ -20,7 +20,20 @@ module.exports = { plugins: [ new CopyRspackPlugin({ patterns: [ - { from: 'source-map/lib/mappings.wasm', to: 'source-map' } + { + from: '**/*.d.ts', + context: join(__dirname, 'node_modules', '@opentelemetry', 'api', 'build', 'src'), + to: '@opentelemetry/api' + }, + { + from: '**/*.d.ts', + context: join(__dirname, 'node_modules', 'opentracing', 'lib'), + to: 'opentracing' + }, + { + from: 'source-map/lib/mappings.wasm', + to: 'source-map' + }, ], }), ], From 05b26d947afcc78e538ef9f5fcfc74c7a5856cbb Mon Sep 17 00:00:00 2001 From: rochdev Date: Fri, 21 Nov 2025 15:32:09 -0500 Subject: [PATCH 28/95] fix lint --- eslint.config.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eslint.config.mjs b/eslint.config.mjs index be9763c6576..601017704d9 100644 --- a/eslint.config.mjs +++ b/eslint.config.mjs @@ -354,7 +354,7 @@ export default [ importAttributes: 'always-multiline', dynamicImports: 'always-multiline' }], - 'import/no-extraneous-dependencies': 'error', + 'import/no-extraneous-dependencies': 'off', 'n/no-restricted-require': ['error', ['diagnostics_channel']], 'n/hashbang': 'off', // TODO: Enable this rule once we have a plan to address it 'n/no-process-exit': 'off', // TODO: Enable this rule once we have a plan to address it From fca2e3bea85accd81923a7dc621f390a8418ebae Mon Sep 17 00:00:00 2001 From: rochdev Date: Fri, 21 Nov 2025 15:40:04 -0500 Subject: [PATCH 29/95] fix lint --- eslint.config.mjs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/eslint.config.mjs b/eslint.config.mjs index 601017704d9..505f824bdc0 100644 --- a/eslint.config.mjs +++ b/eslint.config.mjs @@ -354,7 +354,9 @@ export default [ importAttributes: 'always-multiline', dynamicImports: 'always-multiline' }], - 'import/no-extraneous-dependencies': 'off', + 'import/no-extraneous-dependencies': 'error', + 'n/no-extraneous-require': 'off', + 'n/no-unpublished-require': 'off', 'n/no-restricted-require': ['error', ['diagnostics_channel']], 'n/hashbang': 'off', // TODO: Enable this rule once we have a plan to address it 'n/no-process-exit': 'off', // TODO: Enable this rule once we have a plan to address it From 6a6c5434b7a53897da988e36f7719900f886a4c5 Mon Sep 17 00:00:00 2001 From: rochdev Date: Fri, 21 Nov 2025 16:30:06 -0500 Subject: [PATCH 30/95] fix llmobs --- packages/dd-trace/test/llmobs/sdk/typescript/index.spec.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/dd-trace/test/llmobs/sdk/typescript/index.spec.js b/packages/dd-trace/test/llmobs/sdk/typescript/index.spec.js index f3e0de092e5..e2a3ff02f54 100644 --- a/packages/dd-trace/test/llmobs/sdk/typescript/index.spec.js +++ b/packages/dd-trace/test/llmobs/sdk/typescript/index.spec.js @@ -75,7 +75,7 @@ describe('typescript', () => { // TODO: Figure out the real version without using `npm show` as it causes rate limit errors. context(`with version ${version}`, () => { useSandbox( - [`typescript@${version}`], false, ['./packages/dd-trace/test/llmobs/sdk/typescript/*'] + ['@types/node@18.19.130', `typescript@${version}`], false, ['./packages/dd-trace/test/llmobs/sdk/typescript/*'] ) beforeEach(async () => { From 82bd80367663b4578431cb5280c7c88eb0c77a8f Mon Sep 17 00:00:00 2001 From: rochdev Date: Fri, 21 Nov 2025 16:58:31 -0500 Subject: [PATCH 31/95] fix esbuild --- packages/datadog-esbuild/index.js | 43 +++++++++++++++++-------------- 1 file changed, 23 insertions(+), 20 deletions(-) diff --git a/packages/datadog-esbuild/index.js b/packages/datadog-esbuild/index.js index 97a318ac3ba..7d9a2fad4a5 100644 --- a/packages/datadog-esbuild/index.js +++ b/packages/datadog-esbuild/index.js @@ -114,7 +114,6 @@ ${build.initialOptions.banner.js}` } try { - // eslint-disable-next-line n/no-unpublished-require require.resolve('@openfeature/core') } catch (error) { build.initialOptions.external ??= [] @@ -245,29 +244,33 @@ ${build.initialOptions.banner.js}` } } - const packageJson = JSON.parse(fs.readFileSync(pathToPackageJson).toString()) + try { + const packageJson = JSON.parse(fs.readFileSync(pathToPackageJson).toString()) - const isESM = isESMFile(fullPathToModule, pathToPackageJson, packageJson) - if (isESM && !interceptedESMModules.has(fullPathToModule)) { - fullPathToModule += ESM_INTERCEPTED_SUFFIX - } + const isESM = isESMFile(fullPathToModule, pathToPackageJson, packageJson) + if (isESM && !interceptedESMModules.has(fullPathToModule)) { + fullPathToModule += ESM_INTERCEPTED_SUFFIX + } - if (DEBUG) console.log(`RESOLVE: ${args.path}@${packageJson.version}`) + if (DEBUG) console.log(`RESOLVE: ${args.path}@${packageJson.version}`) - // https://esbuild.github.io/plugins/#on-resolve-arguments - return { - path: fullPathToModule, - pluginData: { - version: packageJson.version, - pkg: extracted.pkg, - path: extracted.path, - full: fullPathToModule, - raw: args.path, - pkgOfInterest: true, - kind: args.kind, - internal, - isESM + // https://esbuild.github.io/plugins/#on-resolve-arguments + return { + path: fullPathToModule, + pluginData: { + version: packageJson.version, + pkg: extracted.pkg, + path: extracted.path, + full: fullPathToModule, + raw: args.path, + pkgOfInterest: true, + kind: args.kind, + internal, + isESM + } } + } catch { + // Skip vendored dependencies which never have a `package.json`. } } }) From 6c092b91677e5764696e4f4b13f7892f064fbd85 Mon Sep 17 00:00:00 2001 From: rochdev Date: Fri, 21 Nov 2025 17:02:49 -0500 Subject: [PATCH 32/95] fix lint --- integration-tests/ci-visibility/subproject/subproject-test.js | 2 -- integration-tests/esbuild/index.spec.js | 2 -- 2 files changed, 4 deletions(-) diff --git a/integration-tests/ci-visibility/subproject/subproject-test.js b/integration-tests/ci-visibility/subproject/subproject-test.js index 021028a4dbb..5b4307ccf2b 100644 --- a/integration-tests/ci-visibility/subproject/subproject-test.js +++ b/integration-tests/ci-visibility/subproject/subproject-test.js @@ -1,7 +1,5 @@ 'use strict' -// TODO: It shouldn't be necessary to disable n/no-extraneous-require - Research -// eslint-disable-next-line n/no-extraneous-require const { expect } = require('chai') const dependency = require('./dependency') diff --git a/integration-tests/esbuild/index.spec.js b/integration-tests/esbuild/index.spec.js index 8cf991a0d84..677c279621f 100755 --- a/integration-tests/esbuild/index.spec.js +++ b/integration-tests/esbuild/index.spec.js @@ -9,8 +9,6 @@ const chproc = require('node:child_process') const pathModule = require('node:path') const fs = require('node:fs') -// TODO: It shouldn't be necessary to disable n/no-extraneous-require - Research -// eslint-disable-next-line n/no-extraneous-require const { describe, before, it } = require('mocha') // sub process must be executed inside TEST_DIR From 881861a9f70133e7cc7be0f35dc0741e038f9d51 Mon Sep 17 00:00:00 2001 From: rochdev Date: Fri, 21 Nov 2025 17:11:59 -0500 Subject: [PATCH 33/95] fix missing dependency for sandboxed test --- .../appsec/iast-stack-traces-with-sourcemaps.spec.js | 2 +- packages/dd-trace/test/llmobs/sdk/typescript/index.spec.js | 2 +- packages/dd-trace/test/plugins/versions/package.json | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/integration-tests/appsec/iast-stack-traces-with-sourcemaps.spec.js b/integration-tests/appsec/iast-stack-traces-with-sourcemaps.spec.js index 4029e9031b8..77fb7aeafa9 100644 --- a/integration-tests/appsec/iast-stack-traces-with-sourcemaps.spec.js +++ b/integration-tests/appsec/iast-stack-traces-with-sourcemaps.spec.js @@ -9,7 +9,7 @@ const { assert } = require('chai') describe('IAST stack traces and vulnerabilities with sourcemaps', () => { let axios, cwd, appDir, appFile, agent, proc - useSandbox(['typescript', 'express']) + useSandbox(['@types/node', 'typescript', 'express']) before(function () { cwd = sandboxCwd() diff --git a/packages/dd-trace/test/llmobs/sdk/typescript/index.spec.js b/packages/dd-trace/test/llmobs/sdk/typescript/index.spec.js index e2a3ff02f54..8f5c64dd418 100644 --- a/packages/dd-trace/test/llmobs/sdk/typescript/index.spec.js +++ b/packages/dd-trace/test/llmobs/sdk/typescript/index.spec.js @@ -75,7 +75,7 @@ describe('typescript', () => { // TODO: Figure out the real version without using `npm show` as it causes rate limit errors. context(`with version ${version}`, () => { useSandbox( - ['@types/node@18.19.130', `typescript@${version}`], false, ['./packages/dd-trace/test/llmobs/sdk/typescript/*'] + ['@types/node', `typescript@${version}`], false, ['./packages/dd-trace/test/llmobs/sdk/typescript/*'] ) beforeEach(async () => { diff --git a/packages/dd-trace/test/plugins/versions/package.json b/packages/dd-trace/test/plugins/versions/package.json index 580260affbc..a7aa936ce57 100644 --- a/packages/dd-trace/test/plugins/versions/package.json +++ b/packages/dd-trace/test/plugins/versions/package.json @@ -67,6 +67,7 @@ "@prisma/client": "6.19.0", "@redis/client": "5.9.0", "@smithy/smithy-client": "4.9.3", + "@types/node": "18.19.130", "@vitest/coverage-istanbul": "4.0.8", "@vitest/coverage-v8": "4.0.8", "@vitest/runner": "4.0.8", From 45c945ac600e39de97fcb0f149ff4bb6f3c2f80b Mon Sep 17 00:00:00 2001 From: rochdev Date: Fri, 21 Nov 2025 18:23:06 -0500 Subject: [PATCH 34/95] add licenses --- .../@datadog/openfeature-node-server/LICENSE | 13 ++ .../node_modules/@datadog/sketches-js/LICENSE | 39 ++++ .../node_modules/@isaacs/ttlcache/LICENSE | 55 +++++ .../@opentelemetry/api-logs/LICENSE | 201 ++++++++++++++++++ .../node_modules/@opentelemetry/api/LICENSE | 201 ++++++++++++++++++ .../node_modules/@opentelemetry/core/LICENSE | 201 ++++++++++++++++++ .../@opentelemetry/resources/LICENSE | 201 ++++++++++++++++++ packages/node_modules/ignore/LICENSE | 21 ++ .../istanbul-lib-coverage/LICENSE | 24 +++ packages/node_modules/jest-docblock/LICENSE | 21 ++ packages/node_modules/jsonpath-plus/LICENSE | 22 ++ packages/node_modules/limiter/LICENSE | 19 ++ packages/node_modules/lodash.sortby/LICENSE | 47 ++++ packages/node_modules/lru-cache/LICENSE | 15 ++ .../module-details-from-path/LICENSE | 21 ++ packages/node_modules/mutexify/LICENSE | 21 ++ .../node_modules/mutexify/promise/LICENSE | 21 ++ packages/node_modules/opentracing/LICENSE | 201 ++++++++++++++++++ packages/node_modules/path-to-regexp/LICENSE | 21 ++ packages/node_modules/pprof-format/LICENSE | 8 + packages/node_modules/protobufjs/LICENSE | 39 ++++ .../node_modules/protobufjs/minimal/LICENSE | 26 +++ packages/node_modules/retry/LICENSE | 21 ++ .../retry/lib/retry_operation/LICENSE | 21 ++ packages/node_modules/rfdc/LICENSE | 15 ++ packages/node_modules/semifies/LICENSE | 201 ++++++++++++++++++ packages/node_modules/shell-quote/LICENSE | 24 +++ packages/node_modules/source-map/LICENSE | 28 +++ .../node_modules/source-map/lib/util/LICENSE | 28 +++ .../node_modules/tlhunter-sorted-set/LICENSE | 21 ++ packages/node_modules/ttl-set/LICENSE | 21 ++ vendor/package.json | 4 +- vendor/rspack.config.js | 8 + vendor/yarn.lock | 12 ++ 34 files changed, 1841 insertions(+), 1 deletion(-) create mode 100644 packages/node_modules/@datadog/openfeature-node-server/LICENSE create mode 100644 packages/node_modules/@datadog/sketches-js/LICENSE create mode 100644 packages/node_modules/@isaacs/ttlcache/LICENSE create mode 100644 packages/node_modules/@opentelemetry/api-logs/LICENSE create mode 100644 packages/node_modules/@opentelemetry/api/LICENSE create mode 100644 packages/node_modules/@opentelemetry/core/LICENSE create mode 100644 packages/node_modules/@opentelemetry/resources/LICENSE create mode 100644 packages/node_modules/ignore/LICENSE create mode 100644 packages/node_modules/istanbul-lib-coverage/LICENSE create mode 100644 packages/node_modules/jest-docblock/LICENSE create mode 100644 packages/node_modules/jsonpath-plus/LICENSE create mode 100644 packages/node_modules/limiter/LICENSE create mode 100644 packages/node_modules/lodash.sortby/LICENSE create mode 100644 packages/node_modules/lru-cache/LICENSE create mode 100644 packages/node_modules/module-details-from-path/LICENSE create mode 100644 packages/node_modules/mutexify/LICENSE create mode 100644 packages/node_modules/mutexify/promise/LICENSE create mode 100644 packages/node_modules/opentracing/LICENSE create mode 100644 packages/node_modules/path-to-regexp/LICENSE create mode 100644 packages/node_modules/pprof-format/LICENSE create mode 100644 packages/node_modules/protobufjs/LICENSE create mode 100644 packages/node_modules/protobufjs/minimal/LICENSE create mode 100644 packages/node_modules/retry/LICENSE create mode 100644 packages/node_modules/retry/lib/retry_operation/LICENSE create mode 100644 packages/node_modules/rfdc/LICENSE create mode 100644 packages/node_modules/semifies/LICENSE create mode 100644 packages/node_modules/shell-quote/LICENSE create mode 100644 packages/node_modules/source-map/LICENSE create mode 100644 packages/node_modules/source-map/lib/util/LICENSE create mode 100644 packages/node_modules/tlhunter-sorted-set/LICENSE create mode 100644 packages/node_modules/ttl-set/LICENSE diff --git a/packages/node_modules/@datadog/openfeature-node-server/LICENSE b/packages/node_modules/@datadog/openfeature-node-server/LICENSE new file mode 100644 index 00000000000..20553dda3ae --- /dev/null +++ b/packages/node_modules/@datadog/openfeature-node-server/LICENSE @@ -0,0 +1,13 @@ + DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE + Version 2, December 2004 + + Copyright (C) 2015 André Cruz + + Everyone is permitted to copy and distribute verbatim or modified + copies of this license document, and changing it is allowed as long + as the name is changed. + + DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE + TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + + 0. You just DO WHAT THE FUCK YOU WANT TO. diff --git a/packages/node_modules/@datadog/sketches-js/LICENSE b/packages/node_modules/@datadog/sketches-js/LICENSE new file mode 100644 index 00000000000..57b7e30978f --- /dev/null +++ b/packages/node_modules/@datadog/sketches-js/LICENSE @@ -0,0 +1,39 @@ +This license applies to all parts of protobuf.js except those files +either explicitly including or referencing a different license or +located in a directory containing a different LICENSE file. + +--- + +Copyright (c) 2016, Daniel Wirtz All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are +met: + +* Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. +* Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. +* Neither the name of its author, nor the names of its contributors + may be used to endorse or promote products derived from this software + without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +--- + +Code generated by the command line utilities is owned by the owner +of the input file used when generating it. This code is not +standalone and requires a support library to be linked with it. This +support library is itself covered by the above license. diff --git a/packages/node_modules/@isaacs/ttlcache/LICENSE b/packages/node_modules/@isaacs/ttlcache/LICENSE new file mode 100644 index 00000000000..c5402b9577a --- /dev/null +++ b/packages/node_modules/@isaacs/ttlcache/LICENSE @@ -0,0 +1,55 @@ +# Blue Oak Model License + +Version 1.0.0 + +## Purpose + +This license gives everyone as much permission to work with +this software as possible, while protecting contributors +from liability. + +## Acceptance + +In order to receive this license, you must agree to its +rules. The rules of this license are both obligations +under that agreement and conditions to your license. +You must not do anything with this software that triggers +a rule that you cannot or will not follow. + +## Copyright + +Each contributor licenses you to do everything with this +software that would otherwise infringe that contributor's +copyright in it. + +## Notices + +You must ensure that everyone who gets a copy of +any part of this software from you, with or without +changes, also gets the text of this license or a link to +. + +## Excuse + +If anyone notifies you in writing that you have not +complied with [Notices](#notices), you can keep your +license by taking all practical steps to comply within 30 +days after the notice. If you do not do so, your license +ends immediately. + +## Patent + +Each contributor licenses you to do everything with this +software that would otherwise infringe any patent claims +they can license or become able to license. + +## Reliability + +No contributor can revoke this license. + +## No Liability + +***As far as the law allows, this software comes as is, +without any warranty or condition, and no contributor +will be liable to anyone for any damages related to this +software or this license, under any kind of legal claim.*** diff --git a/packages/node_modules/@opentelemetry/api-logs/LICENSE b/packages/node_modules/@opentelemetry/api-logs/LICENSE new file mode 100644 index 00000000000..261eeb9e9f8 --- /dev/null +++ b/packages/node_modules/@opentelemetry/api-logs/LICENSE @@ -0,0 +1,201 @@ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/packages/node_modules/@opentelemetry/api/LICENSE b/packages/node_modules/@opentelemetry/api/LICENSE new file mode 100644 index 00000000000..261eeb9e9f8 --- /dev/null +++ b/packages/node_modules/@opentelemetry/api/LICENSE @@ -0,0 +1,201 @@ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/packages/node_modules/@opentelemetry/core/LICENSE b/packages/node_modules/@opentelemetry/core/LICENSE new file mode 100644 index 00000000000..261eeb9e9f8 --- /dev/null +++ b/packages/node_modules/@opentelemetry/core/LICENSE @@ -0,0 +1,201 @@ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/packages/node_modules/@opentelemetry/resources/LICENSE b/packages/node_modules/@opentelemetry/resources/LICENSE new file mode 100644 index 00000000000..261eeb9e9f8 --- /dev/null +++ b/packages/node_modules/@opentelemetry/resources/LICENSE @@ -0,0 +1,201 @@ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/packages/node_modules/ignore/LICENSE b/packages/node_modules/ignore/LICENSE new file mode 100644 index 00000000000..825533e337f --- /dev/null +++ b/packages/node_modules/ignore/LICENSE @@ -0,0 +1,21 @@ +Copyright (c) 2013 Kael Zhang , contributors +http://kael.me/ + +Permission is hereby granted, free of charge, to any person obtaining +a copy of this software and associated documentation files (the +"Software"), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject to +the following conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. \ No newline at end of file diff --git a/packages/node_modules/istanbul-lib-coverage/LICENSE b/packages/node_modules/istanbul-lib-coverage/LICENSE new file mode 100644 index 00000000000..d55d2916eb8 --- /dev/null +++ b/packages/node_modules/istanbul-lib-coverage/LICENSE @@ -0,0 +1,24 @@ +Copyright 2012-2015 Yahoo! Inc. +All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: + * Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + * Neither the name of the Yahoo! Inc. nor the + names of its contributors may be used to endorse or promote products + derived from this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL YAHOO! INC. BE LIABLE FOR ANY +DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/packages/node_modules/jest-docblock/LICENSE b/packages/node_modules/jest-docblock/LICENSE new file mode 100644 index 00000000000..b93be90515c --- /dev/null +++ b/packages/node_modules/jest-docblock/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) Meta Platforms, Inc. and affiliates. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/packages/node_modules/jsonpath-plus/LICENSE b/packages/node_modules/jsonpath-plus/LICENSE new file mode 100644 index 00000000000..65b363b19fb --- /dev/null +++ b/packages/node_modules/jsonpath-plus/LICENSE @@ -0,0 +1,22 @@ +MIT License + +Copyright (c) 2011-2019 Stefan Goessner, Subbu Allamaraju, Mike Brevoort, +Robert Krahn, Brett Zamir, Richard Schneider + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/packages/node_modules/limiter/LICENSE b/packages/node_modules/limiter/LICENSE new file mode 100644 index 00000000000..7a52222b9fb --- /dev/null +++ b/packages/node_modules/limiter/LICENSE @@ -0,0 +1,19 @@ +Copyright (C) 2011 by John Hurliman + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. diff --git a/packages/node_modules/lodash.sortby/LICENSE b/packages/node_modules/lodash.sortby/LICENSE new file mode 100644 index 00000000000..e0c69d56032 --- /dev/null +++ b/packages/node_modules/lodash.sortby/LICENSE @@ -0,0 +1,47 @@ +Copyright jQuery Foundation and other contributors + +Based on Underscore.js, copyright Jeremy Ashkenas, +DocumentCloud and Investigative Reporters & Editors + +This software consists of voluntary contributions made by many +individuals. For exact contribution history, see the revision history +available at https://github.com/lodash/lodash + +The following license applies to all parts of this software except as +documented below: + +==== + +Permission is hereby granted, free of charge, to any person obtaining +a copy of this software and associated documentation files (the +"Software"), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject to +the following conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +==== + +Copyright and related rights for sample code are waived via CC0. Sample +code is defined as all source code displayed within the prose of the +documentation. + +CC0: http://creativecommons.org/publicdomain/zero/1.0/ + +==== + +Files located in the node_modules and vendor directories are externally +maintained libraries used by this software which have their own +licenses; we recommend you read them, as their terms may differ from the +terms above. diff --git a/packages/node_modules/lru-cache/LICENSE b/packages/node_modules/lru-cache/LICENSE new file mode 100644 index 00000000000..f785757cd63 --- /dev/null +++ b/packages/node_modules/lru-cache/LICENSE @@ -0,0 +1,15 @@ +The ISC License + +Copyright (c) 2010-2023 Isaac Z. Schlueter and Contributors + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted, provided that the above +copyright notice and this permission notice appear in all copies. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES +WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR +ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES +WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN +ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR +IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. diff --git a/packages/node_modules/module-details-from-path/LICENSE b/packages/node_modules/module-details-from-path/LICENSE new file mode 100644 index 00000000000..b76ab4f8107 --- /dev/null +++ b/packages/node_modules/module-details-from-path/LICENSE @@ -0,0 +1,21 @@ +The MIT License (MIT) + +Copyright (c) 2016-2025 Thomas Watson Steen + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/packages/node_modules/mutexify/LICENSE b/packages/node_modules/mutexify/LICENSE new file mode 100644 index 00000000000..8ff6bf68f98 --- /dev/null +++ b/packages/node_modules/mutexify/LICENSE @@ -0,0 +1,21 @@ +The MIT License (MIT) + +Copyright (c) 2014 Mathias Buus + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. diff --git a/packages/node_modules/mutexify/promise/LICENSE b/packages/node_modules/mutexify/promise/LICENSE new file mode 100644 index 00000000000..702b8e70fc7 --- /dev/null +++ b/packages/node_modules/mutexify/promise/LICENSE @@ -0,0 +1,21 @@ +The MIT License (MIT) + +Copyright (c) 2021 Mathias Buus + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. diff --git a/packages/node_modules/opentracing/LICENSE b/packages/node_modules/opentracing/LICENSE new file mode 100644 index 00000000000..3b64b0b0dc4 --- /dev/null +++ b/packages/node_modules/opentracing/LICENSE @@ -0,0 +1,201 @@ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "{}" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright The OpenTracing Authors + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/packages/node_modules/path-to-regexp/LICENSE b/packages/node_modules/path-to-regexp/LICENSE new file mode 100644 index 00000000000..983fbe8aec3 --- /dev/null +++ b/packages/node_modules/path-to-regexp/LICENSE @@ -0,0 +1,21 @@ +The MIT License (MIT) + +Copyright (c) 2014 Blake Embrey (hello@blakeembrey.com) + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. diff --git a/packages/node_modules/pprof-format/LICENSE b/packages/node_modules/pprof-format/LICENSE new file mode 100644 index 00000000000..164731f9dcf --- /dev/null +++ b/packages/node_modules/pprof-format/LICENSE @@ -0,0 +1,8 @@ +Copyright 2022 DataDog Inc. + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +Footer diff --git a/packages/node_modules/protobufjs/LICENSE b/packages/node_modules/protobufjs/LICENSE new file mode 100644 index 00000000000..57b7e30978f --- /dev/null +++ b/packages/node_modules/protobufjs/LICENSE @@ -0,0 +1,39 @@ +This license applies to all parts of protobuf.js except those files +either explicitly including or referencing a different license or +located in a directory containing a different LICENSE file. + +--- + +Copyright (c) 2016, Daniel Wirtz All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are +met: + +* Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. +* Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. +* Neither the name of its author, nor the names of its contributors + may be used to endorse or promote products derived from this software + without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +--- + +Code generated by the command line utilities is owned by the owner +of the input file used when generating it. This code is not +standalone and requires a support library to be linked with it. This +support library is itself covered by the above license. diff --git a/packages/node_modules/protobufjs/minimal/LICENSE b/packages/node_modules/protobufjs/minimal/LICENSE new file mode 100644 index 00000000000..be2b397e3c3 --- /dev/null +++ b/packages/node_modules/protobufjs/minimal/LICENSE @@ -0,0 +1,26 @@ +Copyright (c) 2016, Daniel Wirtz All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are +met: + +* Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. +* Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. +* Neither the name of its author, nor the names of its contributors + may be used to endorse or promote products derived from this software + without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/packages/node_modules/retry/LICENSE b/packages/node_modules/retry/LICENSE new file mode 100644 index 00000000000..0b58de379fb --- /dev/null +++ b/packages/node_modules/retry/LICENSE @@ -0,0 +1,21 @@ +Copyright (c) 2011: +Tim Koschützki (tim@debuggable.com) +Felix Geisendörfer (felix@debuggable.com) + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in + all copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + THE SOFTWARE. diff --git a/packages/node_modules/retry/lib/retry_operation/LICENSE b/packages/node_modules/retry/lib/retry_operation/LICENSE new file mode 100644 index 00000000000..0b58de379fb --- /dev/null +++ b/packages/node_modules/retry/lib/retry_operation/LICENSE @@ -0,0 +1,21 @@ +Copyright (c) 2011: +Tim Koschützki (tim@debuggable.com) +Felix Geisendörfer (felix@debuggable.com) + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in + all copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + THE SOFTWARE. diff --git a/packages/node_modules/rfdc/LICENSE b/packages/node_modules/rfdc/LICENSE new file mode 100644 index 00000000000..d600e514fe8 --- /dev/null +++ b/packages/node_modules/rfdc/LICENSE @@ -0,0 +1,15 @@ +Copyright 2019 "David Mark Clements " + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated +documentation files (the "Software"), to deal in the Software without restriction, including without limitation +the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and +to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions +of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED +TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF +CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS +IN THE SOFTWARE. diff --git a/packages/node_modules/semifies/LICENSE b/packages/node_modules/semifies/LICENSE new file mode 100644 index 00000000000..261eeb9e9f8 --- /dev/null +++ b/packages/node_modules/semifies/LICENSE @@ -0,0 +1,201 @@ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/packages/node_modules/shell-quote/LICENSE b/packages/node_modules/shell-quote/LICENSE new file mode 100644 index 00000000000..3d59c73309d --- /dev/null +++ b/packages/node_modules/shell-quote/LICENSE @@ -0,0 +1,24 @@ +The MIT License + +Copyright (c) 2013 James Halliday (mail@substack.net) + +Permission is hereby granted, free of charge, +to any person obtaining a copy of this software and +associated documentation files (the "Software"), to +deal in the Software without restriction, including +without limitation the rights to use, copy, modify, +merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom +the Software is furnished to do so, +subject to the following conditions: + +The above copyright notice and this permission notice +shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES +OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR +ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE +SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. \ No newline at end of file diff --git a/packages/node_modules/source-map/LICENSE b/packages/node_modules/source-map/LICENSE new file mode 100644 index 00000000000..ed1b7cf27e9 --- /dev/null +++ b/packages/node_modules/source-map/LICENSE @@ -0,0 +1,28 @@ + +Copyright (c) 2009-2011, Mozilla Foundation and contributors +All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: + +* Redistributions of source code must retain the above copyright notice, this + list of conditions and the following disclaimer. + +* Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + +* Neither the names of the Mozilla Foundation nor the names of project + contributors may be used to endorse or promote products derived from this + software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE +FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR +SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/packages/node_modules/source-map/lib/util/LICENSE b/packages/node_modules/source-map/lib/util/LICENSE new file mode 100644 index 00000000000..ed1b7cf27e9 --- /dev/null +++ b/packages/node_modules/source-map/lib/util/LICENSE @@ -0,0 +1,28 @@ + +Copyright (c) 2009-2011, Mozilla Foundation and contributors +All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: + +* Redistributions of source code must retain the above copyright notice, this + list of conditions and the following disclaimer. + +* Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + +* Neither the names of the Mozilla Foundation nor the names of project + contributors may be used to endorse or promote products derived from this + software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE +FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR +SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/packages/node_modules/tlhunter-sorted-set/LICENSE b/packages/node_modules/tlhunter-sorted-set/LICENSE new file mode 100644 index 00000000000..89362686fb9 --- /dev/null +++ b/packages/node_modules/tlhunter-sorted-set/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2014 Eli Skeggs, 2017 Akseli Palén, 2023 DataDog, Inc. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/packages/node_modules/ttl-set/LICENSE b/packages/node_modules/ttl-set/LICENSE new file mode 100644 index 00000000000..f53a746aa3b --- /dev/null +++ b/packages/node_modules/ttl-set/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2024 Thomas Watson + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/vendor/package.json b/vendor/package.json index fa459510f92..04b380a8a9c 100644 --- a/vendor/package.json +++ b/vendor/package.json @@ -1,4 +1,5 @@ { + "license": "(Apache-2.0 OR BSD-3-Clause)", "scripts": { "postinstall": "rspack" }, @@ -34,6 +35,7 @@ }, "devDependencies": { "@rspack/cli": "^1.6.4", - "@rspack/core": "^1.6.4" + "@rspack/core": "^1.6.4", + "license-webpack-plugin": "^4.0.2" } } diff --git a/vendor/rspack.config.js b/vendor/rspack.config.js index 0af38f187ea..0a5a15f3a10 100644 --- a/vendor/rspack.config.js +++ b/vendor/rspack.config.js @@ -1,6 +1,7 @@ 'use strict' const { CopyRspackPlugin } = require('@rspack/core') +const { LicenseWebpackPlugin } = require('license-webpack-plugin') const { join } = require('path') const pkg = require('./package.json') @@ -18,6 +19,13 @@ module.exports = { devtool: false, context: join(__dirname, 'node_modules'), plugins: [ + new LicenseWebpackPlugin({ + outputFilename: '[name]/LICENSE', + renderLicenses: modules => modules[0].licenseText, + stats: { + warnings: false + } + }), new CopyRspackPlugin({ patterns: [ { diff --git a/vendor/yarn.lock b/vendor/yarn.lock index 27135977a1b..9b0edb285c3 100644 --- a/vendor/yarn.lock +++ b/vendor/yarn.lock @@ -1265,6 +1265,13 @@ launch-editor@^2.6.1: picocolors "^1.1.1" shell-quote "^1.8.3" +license-webpack-plugin@^4.0.2: + version "4.0.2" + resolved "https://registry.yarnpkg.com/license-webpack-plugin/-/license-webpack-plugin-4.0.2.tgz#1e18442ed20b754b82f1adeff42249b81d11aec6" + integrity sha512-771TFWFD70G1wLTC4oU2Cw4qvtmNrIw+wRvBtn+okgHl7slJVi7zfNcdmqDL72BojM30VNJ2UHylr1o77U37Jw== + dependencies: + webpack-sources "^3.0.0" + limiter@^1.1.5: version "1.1.5" resolved "https://registry.yarnpkg.com/limiter/-/limiter-1.1.5.tgz#8f92a25b3b16c6131293a0cc834b4a838a2aa7c2" @@ -1975,6 +1982,11 @@ webpack-dev-server@5.2.2: webpack-dev-middleware "^7.4.2" ws "^8.18.0" +webpack-sources@^3.0.0: + version "3.3.3" + resolved "https://registry.yarnpkg.com/webpack-sources/-/webpack-sources-3.3.3.tgz#d4bf7f9909675d7a070ff14d0ef2a4f3c982c723" + integrity sha512-yd1RBzSGanHkitROoPFd6qsrxt+oFhg/129YzheDGqeustzX0vTZJZsSsQjVQC4yzBQ56K55XU8gaNCtIzOnTg== + websocket-driver@>=0.5.1, websocket-driver@^0.7.4: version "0.7.4" resolved "https://registry.yarnpkg.com/websocket-driver/-/websocket-driver-0.7.4.tgz#89ad5295bbf64b480abcba31e4953aca706f5760" From 801469e0b99f40313fbd34e5edc25f04169556d5 Mon Sep 17 00:00:00 2001 From: rochdev Date: Sat, 22 Nov 2025 18:40:36 -0500 Subject: [PATCH 35/95] code cleanup and remove unneeded dependency --- packages/node_modules/mutexify/LICENSE | 21 ------------------- packages/node_modules/mutexify/index.js | 1 - .../retry/lib/retry_operation/LICENSE | 21 ------------------- .../retry/lib/retry_operation/index.js | 1 - vendor/rspack.config.js | 17 ++++++++++----- 5 files changed, 12 insertions(+), 49 deletions(-) delete mode 100644 packages/node_modules/mutexify/LICENSE delete mode 100644 packages/node_modules/mutexify/index.js delete mode 100644 packages/node_modules/retry/lib/retry_operation/LICENSE delete mode 100644 packages/node_modules/retry/lib/retry_operation/index.js diff --git a/packages/node_modules/mutexify/LICENSE b/packages/node_modules/mutexify/LICENSE deleted file mode 100644 index 8ff6bf68f98..00000000000 --- a/packages/node_modules/mutexify/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -The MIT License (MIT) - -Copyright (c) 2014 Mathias Buus - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. diff --git a/packages/node_modules/mutexify/index.js b/packages/node_modules/mutexify/index.js deleted file mode 100644 index 40c356b2972..00000000000 --- a/packages/node_modules/mutexify/index.js +++ /dev/null @@ -1 +0,0 @@ -(()=>{var e={7861:function(e,o,n){var t=n(5076);e.exports=function(){var e=[],o=null,n=function(){o(u)},r=function(u){return o?e.push(u):(o=u,r.locked=!0,t(n),0)};r.locked=!1;var u=function(n,t,u){o=null,r.locked=!1,e.length&&r(e.shift()),n&&n(t,u)};return r}},5076:function(e,o,n){e.exports="undefined"!=typeof process&&"function"==typeof process.nextTick?process.nextTick.bind(process):n(7386)},7386:function(e){e.exports="function"==typeof queueMicrotask?queueMicrotask:e=>Promise.resolve().then(e)}},o={},n=function n(t){var r=o[t];if(void 0!==r)return r.exports;var u=o[t]={exports:{}};return e[t](u,u.exports,n),u.exports}(7861);module.exports=n})(); \ No newline at end of file diff --git a/packages/node_modules/retry/lib/retry_operation/LICENSE b/packages/node_modules/retry/lib/retry_operation/LICENSE deleted file mode 100644 index 0b58de379fb..00000000000 --- a/packages/node_modules/retry/lib/retry_operation/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -Copyright (c) 2011: -Tim Koschützki (tim@debuggable.com) -Felix Geisendörfer (felix@debuggable.com) - - Permission is hereby granted, free of charge, to any person obtaining a copy - of this software and associated documentation files (the "Software"), to deal - in the Software without restriction, including without limitation the rights - to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - copies of the Software, and to permit persons to whom the Software is - furnished to do so, subject to the following conditions: - - The above copyright notice and this permission notice shall be included in - all copies or substantial portions of the Software. - - THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN - THE SOFTWARE. diff --git a/packages/node_modules/retry/lib/retry_operation/index.js b/packages/node_modules/retry/lib/retry_operation/index.js deleted file mode 100644 index a035bfa2804..00000000000 --- a/packages/node_modules/retry/lib/retry_operation/index.js +++ /dev/null @@ -1 +0,0 @@ -(()=>{var t={1124:function(t){function e(t,e){"boolean"==typeof e&&(e={forever:e}),this._originalTimeouts=JSON.parse(JSON.stringify(t)),this._timeouts=t,this._options=e||{},this._maxRetryTime=e&&e.maxRetryTime||1/0,this._fn=null,this._errors=[],this._attempts=1,this._operationTimeout=null,this._operationTimeoutCb=null,this._timeout=null,this._operationStart=null,this._timer=null,this._options.forever&&(this._cachedTimeouts=this._timeouts.slice(0))}t.exports=e,e.prototype.reset=function(){this._attempts=1,this._timeouts=this._originalTimeouts.slice(0)},e.prototype.stop=function(){this._timeout&&clearTimeout(this._timeout),this._timer&&clearTimeout(this._timer),this._timeouts=[],this._cachedTimeouts=null},e.prototype.retry=function(t){if(this._timeout&&clearTimeout(this._timeout),!t)return!1;var e=new Date().getTime();if(t&&e-this._operationStart>=this._maxRetryTime)return this._errors.push(t),this._errors.unshift(Error("RetryOperation timeout occurred")),!1;this._errors.push(t);var i=this._timeouts.shift();if(void 0===i)if(!this._cachedTimeouts)return!1;else this._errors.splice(0,this._errors.length-1),i=this._cachedTimeouts.slice(-1);var o=this;return this._timer=setTimeout(function(){o._attempts++,o._operationTimeoutCb&&(o._timeout=setTimeout(function(){o._operationTimeoutCb(o._attempts)},o._operationTimeout),o._options.unref&&o._timeout.unref()),o._fn(o._attempts)},i),this._options.unref&&this._timer.unref(),!0},e.prototype.attempt=function(t,e){this._fn=t,e&&(e.timeout&&(this._operationTimeout=e.timeout),e.cb&&(this._operationTimeoutCb=e.cb));var i=this;this._operationTimeoutCb&&(this._timeout=setTimeout(function(){i._operationTimeoutCb()},i._operationTimeout)),this._operationStart=new Date().getTime(),this._fn(this._attempts)},e.prototype.try=function(t){console.log("Using RetryOperation.try() is deprecated"),this.attempt(t)},e.prototype.start=function(t){console.log("Using RetryOperation.start() is deprecated"),this.attempt(t)},e.prototype.start=e.prototype.try,e.prototype.errors=function(){return this._errors},e.prototype.attempts=function(){return this._attempts},e.prototype.mainError=function(){if(0===this._errors.length)return null;for(var t={},e=null,i=0,o=0;o=i&&(e=r,i=n)}return e}}},e={},i=function i(o){var r=e[o];if(void 0!==r)return r.exports;var s=e[o]={exports:{}};return t[o](s,s.exports,i),s.exports}(1124);module.exports=i})(); \ No newline at end of file diff --git a/vendor/rspack.config.js b/vendor/rspack.config.js index 0a5a15f3a10..ad0b50d91bb 100644 --- a/vendor/rspack.config.js +++ b/vendor/rspack.config.js @@ -3,14 +3,21 @@ const { CopyRspackPlugin } = require('@rspack/core') const { LicenseWebpackPlugin } = require('license-webpack-plugin') const { join } = require('path') -const pkg = require('./package.json') +const { dependencies } = require('./package.json') -const names = Object.keys(pkg.dependencies).concat([ +const include = [ 'mutexify/promise', - 'protobufjs/minimal', - 'retry/lib/retry_operation', + 'protobufjs/minimal', // peer dependency for `@datadog/sketches-js` 'source-map/lib/util' -]) +] + +const exclude = [ + 'mutexify' // we only ever use `mutexify/promise` +] + +const names = Object.keys(dependencies) + .concat(include) + .filter(name => !exclude.includes(name)) module.exports = { entry: Object.fromEntries(names.map(name => [name, name])), From f7de043dcf4c3d0270b042cea94088012189ce5f Mon Sep 17 00:00:00 2001 From: rochdev Date: Sun, 23 Nov 2025 19:12:03 -0500 Subject: [PATCH 36/95] move escape-string-regexp to vendored dependencies --- loader-hook.mjs | 2 +- package.json | 1 - packages/node_modules/escape-string-regexp/LICENSE | 9 +++++++++ packages/node_modules/escape-string-regexp/index.js | 1 + vendor/package.json | 1 + vendor/yarn.lock | 5 +++++ yarn.lock | 5 ----- 7 files changed, 17 insertions(+), 7 deletions(-) create mode 100644 packages/node_modules/escape-string-regexp/LICENSE create mode 100644 packages/node_modules/escape-string-regexp/index.js diff --git a/loader-hook.mjs b/loader-hook.mjs index 1ad3206c752..b54b85df4fb 100644 --- a/loader-hook.mjs +++ b/loader-hook.mjs @@ -1,4 +1,4 @@ -import regexpEscape from 'escape-string-regexp' +import regexpEscape from './packages/node_modules/escape-string-regexp/index.js' import * as iitm from 'import-in-the-middle/hook.mjs' import hooks from './packages/datadog-instrumentations/src/helpers/hooks.js' import configHelper from './packages/dd-trace/src/config-helper.js' diff --git a/package.json b/package.json index e93d778d591..41d03f2303e 100644 --- a/package.json +++ b/package.json @@ -124,7 +124,6 @@ ], "dependencies": { "dc-polyfill": "^0.1.10", - "escape-string-regexp": "^5.0.0", "import-in-the-middle": "^1.14.2" }, "optionalDependencies": { diff --git a/packages/node_modules/escape-string-regexp/LICENSE b/packages/node_modules/escape-string-regexp/LICENSE new file mode 100644 index 00000000000..fa7ceba3eb4 --- /dev/null +++ b/packages/node_modules/escape-string-regexp/LICENSE @@ -0,0 +1,9 @@ +MIT License + +Copyright (c) Sindre Sorhus (https://sindresorhus.com) + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/packages/node_modules/escape-string-regexp/index.js b/packages/node_modules/escape-string-regexp/index.js new file mode 100644 index 00000000000..25fdc8d83c3 --- /dev/null +++ b/packages/node_modules/escape-string-regexp/index.js @@ -0,0 +1 @@ +(()=>{"use strict";var e={};e.d=(r,t)=>{for(var o in t)e.o(t,o)&&!e.o(r,o)&&Object.defineProperty(r,o,{enumerable:!0,get:t[o]})},e.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),e.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var r={};function t(e){if("string"!=typeof e)throw TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}e.r(r),e.d(r,{default:()=>t}),module.exports=r})(); \ No newline at end of file diff --git a/vendor/package.json b/vendor/package.json index 04b380a8a9c..94d1c9f758d 100644 --- a/vendor/package.json +++ b/vendor/package.json @@ -12,6 +12,7 @@ "@opentelemetry/core": ">=1.14.0 <1.31.0", "@opentelemetry/resources": ">=1.0.0 <1.31.0", "crypto-randomuuid": "^1.0.0", + "escape-string-regexp": "^5.0.0", "ignore": "^7.0.5", "istanbul-lib-coverage": "^3.2.2", "jest-docblock": "^29.7.0", diff --git a/vendor/yarn.lock b/vendor/yarn.lock index 9b0edb285c3..cf1f0cce101 100644 --- a/vendor/yarn.lock +++ b/vendor/yarn.lock @@ -876,6 +876,11 @@ escape-string-regexp@^4.0.0: resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz#14ba83a5d373e3d311e5afca29cf5bfad965bf34" integrity sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA== +escape-string-regexp@^5.0.0: + version "5.0.0" + resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-5.0.0.tgz#4683126b500b61762f2dbebace1806e8be31b1c8" + integrity sha512-/veY75JbMK4j1yjvuUxuVsiS/hr/4iHs9FTT6cgTexxdE0Ly/glccBAkloH/DofkjRbZU3bnoj38mOmhkZ0lHw== + etag@~1.8.1: version "1.8.1" resolved "https://registry.yarnpkg.com/etag/-/etag-1.8.1.tgz#41ae2eeb65efa62268aebfea83ac7d79299b0887" diff --git a/yarn.lock b/yarn.lock index 77264285a92..77ec7e52d3f 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1881,11 +1881,6 @@ escape-string-regexp@^4.0.0: resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz#14ba83a5d373e3d311e5afca29cf5bfad965bf34" integrity sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA== -escape-string-regexp@^5.0.0: - version "5.0.0" - resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-5.0.0.tgz#4683126b500b61762f2dbebace1806e8be31b1c8" - integrity sha512-/veY75JbMK4j1yjvuUxuVsiS/hr/4iHs9FTT6cgTexxdE0Ly/glccBAkloH/DofkjRbZU3bnoj38mOmhkZ0lHw== - eslint-compat-utils@^0.5.1: version "0.5.1" resolved "https://registry.yarnpkg.com/eslint-compat-utils/-/eslint-compat-utils-0.5.1.tgz#7fc92b776d185a70c4070d03fd26fde3d59652e4" From 1fe8823ca2ffc58e8fbd1562bbde292c5c661f12 Mon Sep 17 00:00:00 2001 From: rochdev Date: Mon, 24 Nov 2025 12:45:47 -0500 Subject: [PATCH 37/95] move otel api back to dependencies --- index.d.ts | 2 +- package.json | 2 + .../@opentelemetry/api-logs/LICENSE | 201 ------------------ .../@opentelemetry/api-logs/index.js | 1 - .../node_modules/@opentelemetry/api/LICENSE | 201 ------------------ .../@opentelemetry/api/api/context.d.ts | 41 ---- .../@opentelemetry/api/api/diag.d.ts | 30 --- .../@opentelemetry/api/api/metrics.d.ts | 28 --- .../@opentelemetry/api/api/propagation.d.ts | 49 ----- .../@opentelemetry/api/api/trace.d.ts | 40 ---- .../api/baggage/context-helpers.d.ts | 29 --- .../api/baggage/internal/baggage-impl.d.ts | 12 -- .../api/baggage/internal/symbol.d.ts | 5 - .../@opentelemetry/api/baggage/types.d.ts | 60 ------ .../@opentelemetry/api/baggage/utils.d.ts | 15 -- .../@opentelemetry/api/common/Attributes.d.ts | 15 -- .../@opentelemetry/api/common/Exception.d.ts | 26 --- .../@opentelemetry/api/common/Time.d.ts | 20 -- .../@opentelemetry/api/context-api.d.ts | 4 - .../api/context/NoopContextManager.d.ts | 9 - .../@opentelemetry/api/context/context.d.ts | 6 - .../@opentelemetry/api/context/types.d.ts | 52 ----- .../@opentelemetry/api/diag-api.d.ts | 9 - .../api/diag/ComponentLogger.d.ts | 20 -- .../api/diag/consoleLogger.d.ts | 38 ---- .../api/diag/internal/logLevelLogger.d.ts | 3 - .../api/diag/internal/noopLogger.d.ts | 8 - .../@opentelemetry/api/diag/types.d.ts | 100 --------- .../api/experimental/index.d.ts | 3 - .../experimental/trace/SugaredOptions.d.ts | 13 -- .../api/experimental/trace/SugaredTracer.d.ts | 64 ------ .../@opentelemetry/api/index.d.ts | 54 ----- .../node_modules/@opentelemetry/api/index.js | 1 - .../api/internal/global-utils.d.ts | 18 -- .../@opentelemetry/api/internal/semver.d.ts | 34 --- .../@opentelemetry/api/metrics-api.d.ts | 4 - .../@opentelemetry/api/metrics/Meter.d.ts | 110 ---------- .../api/metrics/MeterProvider.d.ts | 17 -- .../@opentelemetry/api/metrics/Metric.d.ts | 115 ---------- .../@opentelemetry/api/metrics/NoopMeter.d.ts | 82 ------- .../api/metrics/NoopMeterProvider.d.ts | 11 - .../api/metrics/ObservableResult.d.ts | 31 --- .../api/platform/browser/globalThis.d.ts | 10 - .../api/platform/browser/index.d.ts | 2 - .../@opentelemetry/api/platform/index.d.ts | 2 - .../api/platform/node/globalThis.d.ts | 3 - .../api/platform/node/index.d.ts | 2 - .../@opentelemetry/api/propagation-api.d.ts | 4 - .../propagation/NoopTextMapPropagator.d.ts | 13 -- .../api/propagation/TextMapPropagator.d.ts | 84 -------- .../@opentelemetry/api/trace-api.d.ts | 4 - .../api/trace/NonRecordingSpan.d.ts | 28 --- .../@opentelemetry/api/trace/NoopTracer.d.ts | 14 -- .../api/trace/NoopTracerProvider.d.ts | 13 -- .../@opentelemetry/api/trace/ProxyTracer.d.ts | 27 --- .../api/trace/ProxyTracerProvider.d.ts | 25 --- .../@opentelemetry/api/trace/Sampler.d.ts | 31 --- .../api/trace/SamplingResult.d.ts | 49 ----- .../@opentelemetry/api/trace/SpanOptions.d.ts | 23 -- .../@opentelemetry/api/trace/attributes.d.ts | 10 - .../api/trace/context-utils.d.ts | 41 ---- .../api/trace/internal/tracestate-impl.d.ts | 22 -- .../trace/internal/tracestate-validators.d.ts | 15 -- .../api/trace/internal/utils.d.ts | 3 - .../api/trace/invalid-span-constants.d.ts | 5 - .../@opentelemetry/api/trace/link.d.ts | 26 --- .../@opentelemetry/api/trace/span.d.ts | 120 ----------- .../api/trace/span_context.d.ts | 53 ----- .../@opentelemetry/api/trace/span_kind.d.ts | 27 --- .../api/trace/spancontext-utils.d.ts | 17 -- .../@opentelemetry/api/trace/status.d.ts | 25 --- .../@opentelemetry/api/trace/trace_flags.d.ts | 7 - .../@opentelemetry/api/trace/trace_state.d.ts | 38 ---- .../@opentelemetry/api/trace/tracer.d.ts | 71 ------- .../api/trace/tracer_options.d.ts | 10 - .../api/trace/tracer_provider.d.ts | 21 -- .../@opentelemetry/api/version.d.ts | 2 - .../@opentelemetry/resources/index.js | 2 +- vendor/package.json | 2 - vendor/rspack.config.js | 5 - vendor/yarn.lock | 12 -- yarn.lock | 15 +- 82 files changed, 16 insertions(+), 2450 deletions(-) delete mode 100644 packages/node_modules/@opentelemetry/api-logs/LICENSE delete mode 100644 packages/node_modules/@opentelemetry/api-logs/index.js delete mode 100644 packages/node_modules/@opentelemetry/api/LICENSE delete mode 100644 packages/node_modules/@opentelemetry/api/api/context.d.ts delete mode 100644 packages/node_modules/@opentelemetry/api/api/diag.d.ts delete mode 100644 packages/node_modules/@opentelemetry/api/api/metrics.d.ts delete mode 100644 packages/node_modules/@opentelemetry/api/api/propagation.d.ts delete mode 100644 packages/node_modules/@opentelemetry/api/api/trace.d.ts delete mode 100644 packages/node_modules/@opentelemetry/api/baggage/context-helpers.d.ts delete mode 100644 packages/node_modules/@opentelemetry/api/baggage/internal/baggage-impl.d.ts delete mode 100644 packages/node_modules/@opentelemetry/api/baggage/internal/symbol.d.ts delete mode 100644 packages/node_modules/@opentelemetry/api/baggage/types.d.ts delete mode 100644 packages/node_modules/@opentelemetry/api/baggage/utils.d.ts delete mode 100644 packages/node_modules/@opentelemetry/api/common/Attributes.d.ts delete mode 100644 packages/node_modules/@opentelemetry/api/common/Exception.d.ts delete mode 100644 packages/node_modules/@opentelemetry/api/common/Time.d.ts delete mode 100644 packages/node_modules/@opentelemetry/api/context-api.d.ts delete mode 100644 packages/node_modules/@opentelemetry/api/context/NoopContextManager.d.ts delete mode 100644 packages/node_modules/@opentelemetry/api/context/context.d.ts delete mode 100644 packages/node_modules/@opentelemetry/api/context/types.d.ts delete mode 100644 packages/node_modules/@opentelemetry/api/diag-api.d.ts delete mode 100644 packages/node_modules/@opentelemetry/api/diag/ComponentLogger.d.ts delete mode 100644 packages/node_modules/@opentelemetry/api/diag/consoleLogger.d.ts delete mode 100644 packages/node_modules/@opentelemetry/api/diag/internal/logLevelLogger.d.ts delete mode 100644 packages/node_modules/@opentelemetry/api/diag/internal/noopLogger.d.ts delete mode 100644 packages/node_modules/@opentelemetry/api/diag/types.d.ts delete mode 100644 packages/node_modules/@opentelemetry/api/experimental/index.d.ts delete mode 100644 packages/node_modules/@opentelemetry/api/experimental/trace/SugaredOptions.d.ts delete mode 100644 packages/node_modules/@opentelemetry/api/experimental/trace/SugaredTracer.d.ts delete mode 100644 packages/node_modules/@opentelemetry/api/index.d.ts delete mode 100644 packages/node_modules/@opentelemetry/api/index.js delete mode 100644 packages/node_modules/@opentelemetry/api/internal/global-utils.d.ts delete mode 100644 packages/node_modules/@opentelemetry/api/internal/semver.d.ts delete mode 100644 packages/node_modules/@opentelemetry/api/metrics-api.d.ts delete mode 100644 packages/node_modules/@opentelemetry/api/metrics/Meter.d.ts delete mode 100644 packages/node_modules/@opentelemetry/api/metrics/MeterProvider.d.ts delete mode 100644 packages/node_modules/@opentelemetry/api/metrics/Metric.d.ts delete mode 100644 packages/node_modules/@opentelemetry/api/metrics/NoopMeter.d.ts delete mode 100644 packages/node_modules/@opentelemetry/api/metrics/NoopMeterProvider.d.ts delete mode 100644 packages/node_modules/@opentelemetry/api/metrics/ObservableResult.d.ts delete mode 100644 packages/node_modules/@opentelemetry/api/platform/browser/globalThis.d.ts delete mode 100644 packages/node_modules/@opentelemetry/api/platform/browser/index.d.ts delete mode 100644 packages/node_modules/@opentelemetry/api/platform/index.d.ts delete mode 100644 packages/node_modules/@opentelemetry/api/platform/node/globalThis.d.ts delete mode 100644 packages/node_modules/@opentelemetry/api/platform/node/index.d.ts delete mode 100644 packages/node_modules/@opentelemetry/api/propagation-api.d.ts delete mode 100644 packages/node_modules/@opentelemetry/api/propagation/NoopTextMapPropagator.d.ts delete mode 100644 packages/node_modules/@opentelemetry/api/propagation/TextMapPropagator.d.ts delete mode 100644 packages/node_modules/@opentelemetry/api/trace-api.d.ts delete mode 100644 packages/node_modules/@opentelemetry/api/trace/NonRecordingSpan.d.ts delete mode 100644 packages/node_modules/@opentelemetry/api/trace/NoopTracer.d.ts delete mode 100644 packages/node_modules/@opentelemetry/api/trace/NoopTracerProvider.d.ts delete mode 100644 packages/node_modules/@opentelemetry/api/trace/ProxyTracer.d.ts delete mode 100644 packages/node_modules/@opentelemetry/api/trace/ProxyTracerProvider.d.ts delete mode 100644 packages/node_modules/@opentelemetry/api/trace/Sampler.d.ts delete mode 100644 packages/node_modules/@opentelemetry/api/trace/SamplingResult.d.ts delete mode 100644 packages/node_modules/@opentelemetry/api/trace/SpanOptions.d.ts delete mode 100644 packages/node_modules/@opentelemetry/api/trace/attributes.d.ts delete mode 100644 packages/node_modules/@opentelemetry/api/trace/context-utils.d.ts delete mode 100644 packages/node_modules/@opentelemetry/api/trace/internal/tracestate-impl.d.ts delete mode 100644 packages/node_modules/@opentelemetry/api/trace/internal/tracestate-validators.d.ts delete mode 100644 packages/node_modules/@opentelemetry/api/trace/internal/utils.d.ts delete mode 100644 packages/node_modules/@opentelemetry/api/trace/invalid-span-constants.d.ts delete mode 100644 packages/node_modules/@opentelemetry/api/trace/link.d.ts delete mode 100644 packages/node_modules/@opentelemetry/api/trace/span.d.ts delete mode 100644 packages/node_modules/@opentelemetry/api/trace/span_context.d.ts delete mode 100644 packages/node_modules/@opentelemetry/api/trace/span_kind.d.ts delete mode 100644 packages/node_modules/@opentelemetry/api/trace/spancontext-utils.d.ts delete mode 100644 packages/node_modules/@opentelemetry/api/trace/status.d.ts delete mode 100644 packages/node_modules/@opentelemetry/api/trace/trace_flags.d.ts delete mode 100644 packages/node_modules/@opentelemetry/api/trace/trace_state.d.ts delete mode 100644 packages/node_modules/@opentelemetry/api/trace/tracer.d.ts delete mode 100644 packages/node_modules/@opentelemetry/api/trace/tracer_options.d.ts delete mode 100644 packages/node_modules/@opentelemetry/api/trace/tracer_provider.d.ts delete mode 100644 packages/node_modules/@opentelemetry/api/version.d.ts diff --git a/index.d.ts b/index.d.ts index 9925a9a6ac4..eab07da5fe3 100644 --- a/index.d.ts +++ b/index.d.ts @@ -1,7 +1,7 @@ import { ClientRequest, IncomingMessage, OutgoingMessage, ServerResponse } from "http"; import { LookupFunction } from 'net'; import * as opentracing from "./packages/node_modules/opentracing"; -import * as otel from "./packages/node_modules/@opentelemetry/api"; +import * as otel from "@opentelemetry/api"; /** * Tracer is the entry-point of the Datadog tracing implementation. diff --git a/package.json b/package.json index 41d03f2303e..f085395b190 100644 --- a/package.json +++ b/package.json @@ -123,6 +123,8 @@ "version.js" ], "dependencies": { + "@opentelemetry/api": ">=1.0.0 <1.10.0", + "@opentelemetry/api-logs": "<1.0.0", "dc-polyfill": "^0.1.10", "import-in-the-middle": "^1.14.2" }, diff --git a/packages/node_modules/@opentelemetry/api-logs/LICENSE b/packages/node_modules/@opentelemetry/api-logs/LICENSE deleted file mode 100644 index 261eeb9e9f8..00000000000 --- a/packages/node_modules/@opentelemetry/api-logs/LICENSE +++ /dev/null @@ -1,201 +0,0 @@ - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "[]" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright [yyyy] [name of copyright owner] - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. diff --git a/packages/node_modules/@opentelemetry/api-logs/index.js b/packages/node_modules/@opentelemetry/api-logs/index.js deleted file mode 100644 index d14a8ed4230..00000000000 --- a/packages/node_modules/@opentelemetry/api-logs/index.js +++ /dev/null @@ -1 +0,0 @@ -(()=>{"use strict";var e,t,r={};r.d=(e,t)=>{for(var o in t)r.o(t,o)&&!r.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};r.r(o),r.d(o,{SeverityNumber:()=>t,NoopLogger:()=>g,NOOP_LOGGER:()=>i,logs:()=>A,ProxyLoggerProvider:()=>n}),(e=t||(t={}))[e.UNSPECIFIED=0]="UNSPECIFIED",e[e.TRACE=1]="TRACE",e[e.TRACE2=2]="TRACE2",e[e.TRACE3=3]="TRACE3",e[e.TRACE4=4]="TRACE4",e[e.DEBUG=5]="DEBUG",e[e.DEBUG2=6]="DEBUG2",e[e.DEBUG3=7]="DEBUG3",e[e.DEBUG4=8]="DEBUG4",e[e.INFO=9]="INFO",e[e.INFO2=10]="INFO2",e[e.INFO3=11]="INFO3",e[e.INFO4=12]="INFO4",e[e.WARN=13]="WARN",e[e.WARN2=14]="WARN2",e[e.WARN3=15]="WARN3",e[e.WARN4=16]="WARN4",e[e.ERROR=17]="ERROR",e[e.ERROR2=18]="ERROR2",e[e.ERROR3=19]="ERROR3",e[e.ERROR4=20]="ERROR4",e[e.FATAL=21]="FATAL",e[e.FATAL2=22]="FATAL2",e[e.FATAL3=23]="FATAL3",e[e.FATAL4=24]="FATAL4";class g{emit(e){}}let i=new g,s=new class{getLogger(e,t,r){return new g}};class l{constructor(e,t,r,o){this._provider=e,this.name=t,this.version=r,this.options=o}emit(e){this._getLogger().emit(e)}_getLogger(){if(this._delegate)return this._delegate;let e=this._provider._getDelegateLogger(this.name,this.version,this.options);return e?(this._delegate=e,this._delegate):i}}class n{getLogger(e,t,r){var o;return null!=(o=this._getDelegateLogger(e,t,r))?o:new l(this,e,t,r)}_getDelegate(){var e;return null!=(e=this._delegate)?e:s}_setDelegate(e){this._delegate=e}_getDelegateLogger(e,t,r){var o;return null==(o=this._delegate)?void 0:o.getLogger(e,t,r)}}let a="object"==typeof globalThis?globalThis:global,R=Symbol.for("io.opentelemetry.js.api.logs");class d{constructor(){this._proxyLoggerProvider=new n}static getInstance(){return this._instance||(this._instance=new d),this._instance}setGlobalLoggerProvider(e){return a[R]?this.getLoggerProvider():(a[R]=t=>1===t?e:s,this._proxyLoggerProvider._setDelegate(e),e)}getLoggerProvider(){var e,t;return null!=(t=null==(e=a[R])?void 0:e.call(a,1))?t:this._proxyLoggerProvider}getLogger(e,t,r){return this.getLoggerProvider().getLogger(e,t,r)}disable(){delete a[R],this._proxyLoggerProvider=new n}}let A=d.getInstance();module.exports=o})(); \ No newline at end of file diff --git a/packages/node_modules/@opentelemetry/api/LICENSE b/packages/node_modules/@opentelemetry/api/LICENSE deleted file mode 100644 index 261eeb9e9f8..00000000000 --- a/packages/node_modules/@opentelemetry/api/LICENSE +++ /dev/null @@ -1,201 +0,0 @@ - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "[]" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright [yyyy] [name of copyright owner] - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. diff --git a/packages/node_modules/@opentelemetry/api/api/context.d.ts b/packages/node_modules/@opentelemetry/api/api/context.d.ts deleted file mode 100644 index 61caee8dab5..00000000000 --- a/packages/node_modules/@opentelemetry/api/api/context.d.ts +++ /dev/null @@ -1,41 +0,0 @@ -import { Context, ContextManager } from '../context/types'; -/** - * Singleton object which represents the entry point to the OpenTelemetry Context API - */ -export declare class ContextAPI { - private static _instance?; - /** Empty private constructor prevents end users from constructing a new instance of the API */ - private constructor(); - /** Get the singleton instance of the Context API */ - static getInstance(): ContextAPI; - /** - * Set the current context manager. - * - * @returns true if the context manager was successfully registered, else false - */ - setGlobalContextManager(contextManager: ContextManager): boolean; - /** - * Get the currently active context - */ - active(): Context; - /** - * Execute a function with an active context - * - * @param context context to be active during function execution - * @param fn function to execute in a context - * @param thisArg optional receiver to be used for calling fn - * @param args optional arguments forwarded to fn - */ - with ReturnType>(context: Context, fn: F, thisArg?: ThisParameterType, ...args: A): ReturnType; - /** - * Bind a context to a target function or event emitter - * - * @param context context to bind to the event emitter or function. Defaults to the currently active context - * @param target function or event emitter to bind - */ - bind(context: Context, target: T): T; - private _getContextManager; - /** Disable and remove the global context manager */ - disable(): void; -} -//# sourceMappingURL=context.d.ts.map \ No newline at end of file diff --git a/packages/node_modules/@opentelemetry/api/api/diag.d.ts b/packages/node_modules/@opentelemetry/api/api/diag.d.ts deleted file mode 100644 index 131db17289a..00000000000 --- a/packages/node_modules/@opentelemetry/api/api/diag.d.ts +++ /dev/null @@ -1,30 +0,0 @@ -import { ComponentLoggerOptions, DiagLogFunction, DiagLogger, DiagLoggerApi } from '../diag/types'; -/** - * Singleton object which represents the entry point to the OpenTelemetry internal - * diagnostic API - */ -export declare class DiagAPI implements DiagLogger, DiagLoggerApi { - private static _instance?; - /** Get the singleton instance of the DiagAPI API */ - static instance(): DiagAPI; - /** - * Private internal constructor - * @private - */ - private constructor(); - setLogger: DiagLoggerApi['setLogger']; - /** - * - */ - createComponentLogger: (options: ComponentLoggerOptions) => DiagLogger; - verbose: DiagLogFunction; - debug: DiagLogFunction; - info: DiagLogFunction; - warn: DiagLogFunction; - error: DiagLogFunction; - /** - * Unregister the global logger and return to Noop - */ - disable: () => void; -} -//# sourceMappingURL=diag.d.ts.map \ No newline at end of file diff --git a/packages/node_modules/@opentelemetry/api/api/metrics.d.ts b/packages/node_modules/@opentelemetry/api/api/metrics.d.ts deleted file mode 100644 index 5adc1454c32..00000000000 --- a/packages/node_modules/@opentelemetry/api/api/metrics.d.ts +++ /dev/null @@ -1,28 +0,0 @@ -import { Meter, MeterOptions } from '../metrics/Meter'; -import { MeterProvider } from '../metrics/MeterProvider'; -/** - * Singleton object which represents the entry point to the OpenTelemetry Metrics API - */ -export declare class MetricsAPI { - private static _instance?; - /** Empty private constructor prevents end users from constructing a new instance of the API */ - private constructor(); - /** Get the singleton instance of the Metrics API */ - static getInstance(): MetricsAPI; - /** - * Set the current global meter provider. - * Returns true if the meter provider was successfully registered, else false. - */ - setGlobalMeterProvider(provider: MeterProvider): boolean; - /** - * Returns the global meter provider. - */ - getMeterProvider(): MeterProvider; - /** - * Returns a meter from the global meter provider. - */ - getMeter(name: string, version?: string, options?: MeterOptions): Meter; - /** Remove the global meter provider */ - disable(): void; -} -//# sourceMappingURL=metrics.d.ts.map \ No newline at end of file diff --git a/packages/node_modules/@opentelemetry/api/api/propagation.d.ts b/packages/node_modules/@opentelemetry/api/api/propagation.d.ts deleted file mode 100644 index a22d24d3088..00000000000 --- a/packages/node_modules/@opentelemetry/api/api/propagation.d.ts +++ /dev/null @@ -1,49 +0,0 @@ -import { Context } from '../context/types'; -import { TextMapGetter, TextMapPropagator, TextMapSetter } from '../propagation/TextMapPropagator'; -import { getBaggage, getActiveBaggage, setBaggage, deleteBaggage } from '../baggage/context-helpers'; -import { createBaggage } from '../baggage/utils'; -/** - * Singleton object which represents the entry point to the OpenTelemetry Propagation API - */ -export declare class PropagationAPI { - private static _instance?; - /** Empty private constructor prevents end users from constructing a new instance of the API */ - private constructor(); - /** Get the singleton instance of the Propagator API */ - static getInstance(): PropagationAPI; - /** - * Set the current propagator. - * - * @returns true if the propagator was successfully registered, else false - */ - setGlobalPropagator(propagator: TextMapPropagator): boolean; - /** - * Inject context into a carrier to be propagated inter-process - * - * @param context Context carrying tracing data to inject - * @param carrier carrier to inject context into - * @param setter Function used to set values on the carrier - */ - inject(context: Context, carrier: Carrier, setter?: TextMapSetter): void; - /** - * Extract context from a carrier - * - * @param context Context which the newly created context will inherit from - * @param carrier Carrier to extract context from - * @param getter Function used to extract keys from a carrier - */ - extract(context: Context, carrier: Carrier, getter?: TextMapGetter): Context; - /** - * Return a list of all fields which may be used by the propagator. - */ - fields(): string[]; - /** Remove the global propagator */ - disable(): void; - createBaggage: typeof createBaggage; - getBaggage: typeof getBaggage; - getActiveBaggage: typeof getActiveBaggage; - setBaggage: typeof setBaggage; - deleteBaggage: typeof deleteBaggage; - private _getGlobalPropagator; -} -//# sourceMappingURL=propagation.d.ts.map \ No newline at end of file diff --git a/packages/node_modules/@opentelemetry/api/api/trace.d.ts b/packages/node_modules/@opentelemetry/api/api/trace.d.ts deleted file mode 100644 index df59fd2f90b..00000000000 --- a/packages/node_modules/@opentelemetry/api/api/trace.d.ts +++ /dev/null @@ -1,40 +0,0 @@ -import { isSpanContextValid, wrapSpanContext } from '../trace/spancontext-utils'; -import { Tracer } from '../trace/tracer'; -import { TracerProvider } from '../trace/tracer_provider'; -import { deleteSpan, getActiveSpan, getSpan, getSpanContext, setSpan, setSpanContext } from '../trace/context-utils'; -/** - * Singleton object which represents the entry point to the OpenTelemetry Tracing API - */ -export declare class TraceAPI { - private static _instance?; - private _proxyTracerProvider; - /** Empty private constructor prevents end users from constructing a new instance of the API */ - private constructor(); - /** Get the singleton instance of the Trace API */ - static getInstance(): TraceAPI; - /** - * Set the current global tracer. - * - * @returns true if the tracer provider was successfully registered, else false - */ - setGlobalTracerProvider(provider: TracerProvider): boolean; - /** - * Returns the global tracer provider. - */ - getTracerProvider(): TracerProvider; - /** - * Returns a tracer from the global tracer provider. - */ - getTracer(name: string, version?: string): Tracer; - /** Remove the global tracer provider */ - disable(): void; - wrapSpanContext: typeof wrapSpanContext; - isSpanContextValid: typeof isSpanContextValid; - deleteSpan: typeof deleteSpan; - getSpan: typeof getSpan; - getActiveSpan: typeof getActiveSpan; - getSpanContext: typeof getSpanContext; - setSpan: typeof setSpan; - setSpanContext: typeof setSpanContext; -} -//# sourceMappingURL=trace.d.ts.map \ No newline at end of file diff --git a/packages/node_modules/@opentelemetry/api/baggage/context-helpers.d.ts b/packages/node_modules/@opentelemetry/api/baggage/context-helpers.d.ts deleted file mode 100644 index 23750eb615e..00000000000 --- a/packages/node_modules/@opentelemetry/api/baggage/context-helpers.d.ts +++ /dev/null @@ -1,29 +0,0 @@ -import { Context } from '../context/types'; -import { Baggage } from './types'; -/** - * Retrieve the current baggage from the given context - * - * @param {Context} Context that manage all context values - * @returns {Baggage} Extracted baggage from the context - */ -export declare function getBaggage(context: Context): Baggage | undefined; -/** - * Retrieve the current baggage from the active/current context - * - * @returns {Baggage} Extracted baggage from the context - */ -export declare function getActiveBaggage(): Baggage | undefined; -/** - * Store a baggage in the given context - * - * @param {Context} Context that manage all context values - * @param {Baggage} baggage that will be set in the actual context - */ -export declare function setBaggage(context: Context, baggage: Baggage): Context; -/** - * Delete the baggage stored in the given context - * - * @param {Context} Context that manage all context values - */ -export declare function deleteBaggage(context: Context): Context; -//# sourceMappingURL=context-helpers.d.ts.map \ No newline at end of file diff --git a/packages/node_modules/@opentelemetry/api/baggage/internal/baggage-impl.d.ts b/packages/node_modules/@opentelemetry/api/baggage/internal/baggage-impl.d.ts deleted file mode 100644 index e6b45540425..00000000000 --- a/packages/node_modules/@opentelemetry/api/baggage/internal/baggage-impl.d.ts +++ /dev/null @@ -1,12 +0,0 @@ -import type { Baggage, BaggageEntry } from '../types'; -export declare class BaggageImpl implements Baggage { - private _entries; - constructor(entries?: Map); - getEntry(key: string): BaggageEntry | undefined; - getAllEntries(): [string, BaggageEntry][]; - setEntry(key: string, entry: BaggageEntry): BaggageImpl; - removeEntry(key: string): BaggageImpl; - removeEntries(...keys: string[]): BaggageImpl; - clear(): BaggageImpl; -} -//# sourceMappingURL=baggage-impl.d.ts.map \ No newline at end of file diff --git a/packages/node_modules/@opentelemetry/api/baggage/internal/symbol.d.ts b/packages/node_modules/@opentelemetry/api/baggage/internal/symbol.d.ts deleted file mode 100644 index 9cd991c1cd7..00000000000 --- a/packages/node_modules/@opentelemetry/api/baggage/internal/symbol.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -/** - * Symbol used to make BaggageEntryMetadata an opaque type - */ -export declare const baggageEntryMetadataSymbol: unique symbol; -//# sourceMappingURL=symbol.d.ts.map \ No newline at end of file diff --git a/packages/node_modules/@opentelemetry/api/baggage/types.d.ts b/packages/node_modules/@opentelemetry/api/baggage/types.d.ts deleted file mode 100644 index 32fa0ec6bd2..00000000000 --- a/packages/node_modules/@opentelemetry/api/baggage/types.d.ts +++ /dev/null @@ -1,60 +0,0 @@ -import { baggageEntryMetadataSymbol } from './internal/symbol'; -export interface BaggageEntry { - /** `String` value of the `BaggageEntry`. */ - value: string; - /** - * Metadata is an optional string property defined by the W3C baggage specification. - * It currently has no special meaning defined by the specification. - */ - metadata?: BaggageEntryMetadata; -} -/** - * Serializable Metadata defined by the W3C baggage specification. - * It currently has no special meaning defined by the OpenTelemetry or W3C. - */ -export declare type BaggageEntryMetadata = { - toString(): string; -} & { - __TYPE__: typeof baggageEntryMetadataSymbol; -}; -/** - * Baggage represents collection of key-value pairs with optional metadata. - * Each key of Baggage is associated with exactly one value. - * Baggage may be used to annotate and enrich telemetry data. - */ -export interface Baggage { - /** - * Get an entry from Baggage if it exists - * - * @param key The key which identifies the BaggageEntry - */ - getEntry(key: string): BaggageEntry | undefined; - /** - * Get a list of all entries in the Baggage - */ - getAllEntries(): [string, BaggageEntry][]; - /** - * Returns a new baggage with the entries from the current bag and the specified entry - * - * @param key string which identifies the baggage entry - * @param entry BaggageEntry for the given key - */ - setEntry(key: string, entry: BaggageEntry): Baggage; - /** - * Returns a new baggage with the entries from the current bag except the removed entry - * - * @param key key identifying the entry to be removed - */ - removeEntry(key: string): Baggage; - /** - * Returns a new baggage with the entries from the current bag except the removed entries - * - * @param key keys identifying the entries to be removed - */ - removeEntries(...key: string[]): Baggage; - /** - * Returns a new baggage with no entries - */ - clear(): Baggage; -} -//# sourceMappingURL=types.d.ts.map \ No newline at end of file diff --git a/packages/node_modules/@opentelemetry/api/baggage/utils.d.ts b/packages/node_modules/@opentelemetry/api/baggage/utils.d.ts deleted file mode 100644 index 9955d9e2858..00000000000 --- a/packages/node_modules/@opentelemetry/api/baggage/utils.d.ts +++ /dev/null @@ -1,15 +0,0 @@ -import { Baggage, BaggageEntry, BaggageEntryMetadata } from './types'; -/** - * Create a new Baggage with optional entries - * - * @param entries An array of baggage entries the new baggage should contain - */ -export declare function createBaggage(entries?: Record): Baggage; -/** - * Create a serializable BaggageEntryMetadata object from a string. - * - * @param str string metadata. Format is currently not defined by the spec and has no special meaning. - * - */ -export declare function baggageEntryMetadataFromString(str: string): BaggageEntryMetadata; -//# sourceMappingURL=utils.d.ts.map \ No newline at end of file diff --git a/packages/node_modules/@opentelemetry/api/common/Attributes.d.ts b/packages/node_modules/@opentelemetry/api/common/Attributes.d.ts deleted file mode 100644 index 19994fb2a86..00000000000 --- a/packages/node_modules/@opentelemetry/api/common/Attributes.d.ts +++ /dev/null @@ -1,15 +0,0 @@ -/** - * Attributes is a map from string to attribute values. - * - * Note: only the own enumerable keys are counted as valid attribute keys. - */ -export interface Attributes { - [attributeKey: string]: AttributeValue | undefined; -} -/** - * Attribute values may be any non-nullish primitive value except an object. - * - * null or undefined attribute values are invalid and will result in undefined behavior. - */ -export declare type AttributeValue = string | number | boolean | Array | Array | Array; -//# sourceMappingURL=Attributes.d.ts.map \ No newline at end of file diff --git a/packages/node_modules/@opentelemetry/api/common/Exception.d.ts b/packages/node_modules/@opentelemetry/api/common/Exception.d.ts deleted file mode 100644 index e175a7fdc86..00000000000 --- a/packages/node_modules/@opentelemetry/api/common/Exception.d.ts +++ /dev/null @@ -1,26 +0,0 @@ -interface ExceptionWithCode { - code: string | number; - name?: string; - message?: string; - stack?: string; -} -interface ExceptionWithMessage { - code?: string | number; - message: string; - name?: string; - stack?: string; -} -interface ExceptionWithName { - code?: string | number; - message?: string; - name: string; - stack?: string; -} -/** - * Defines Exception. - * - * string or an object with one of (message or name or code) and optional stack - */ -export declare type Exception = ExceptionWithCode | ExceptionWithMessage | ExceptionWithName | string; -export {}; -//# sourceMappingURL=Exception.d.ts.map \ No newline at end of file diff --git a/packages/node_modules/@opentelemetry/api/common/Time.d.ts b/packages/node_modules/@opentelemetry/api/common/Time.d.ts deleted file mode 100644 index cc3c502c12f..00000000000 --- a/packages/node_modules/@opentelemetry/api/common/Time.d.ts +++ /dev/null @@ -1,20 +0,0 @@ -/** - * Defines High-Resolution Time. - * - * The first number, HrTime[0], is UNIX Epoch time in seconds since 00:00:00 UTC on 1 January 1970. - * The second number, HrTime[1], represents the partial second elapsed since Unix Epoch time represented by first number in nanoseconds. - * For example, 2021-01-01T12:30:10.150Z in UNIX Epoch time in milliseconds is represented as 1609504210150. - * The first number is calculated by converting and truncating the Epoch time in milliseconds to seconds: - * HrTime[0] = Math.trunc(1609504210150 / 1000) = 1609504210. - * The second number is calculated by converting the digits after the decimal point of the subtraction, (1609504210150 / 1000) - HrTime[0], to nanoseconds: - * HrTime[1] = Number((1609504210.150 - HrTime[0]).toFixed(9)) * 1e9 = 150000000. - * This is represented in HrTime format as [1609504210, 150000000]. - */ -export declare type HrTime = [number, number]; -/** - * Defines TimeInput. - * - * hrtime, epoch milliseconds, performance.now() or Date - */ -export declare type TimeInput = HrTime | number | Date; -//# sourceMappingURL=Time.d.ts.map \ No newline at end of file diff --git a/packages/node_modules/@opentelemetry/api/context-api.d.ts b/packages/node_modules/@opentelemetry/api/context-api.d.ts deleted file mode 100644 index 650f4eecca9..00000000000 --- a/packages/node_modules/@opentelemetry/api/context-api.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -import { ContextAPI } from './api/context'; -/** Entrypoint for context API */ -export declare const context: ContextAPI; -//# sourceMappingURL=context-api.d.ts.map \ No newline at end of file diff --git a/packages/node_modules/@opentelemetry/api/context/NoopContextManager.d.ts b/packages/node_modules/@opentelemetry/api/context/NoopContextManager.d.ts deleted file mode 100644 index 48a165970c6..00000000000 --- a/packages/node_modules/@opentelemetry/api/context/NoopContextManager.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -import * as types from './types'; -export declare class NoopContextManager implements types.ContextManager { - active(): types.Context; - with ReturnType>(_context: types.Context, fn: F, thisArg?: ThisParameterType, ...args: A): ReturnType; - bind(_context: types.Context, target: T): T; - enable(): this; - disable(): this; -} -//# sourceMappingURL=NoopContextManager.d.ts.map \ No newline at end of file diff --git a/packages/node_modules/@opentelemetry/api/context/context.d.ts b/packages/node_modules/@opentelemetry/api/context/context.d.ts deleted file mode 100644 index 8be0259401a..00000000000 --- a/packages/node_modules/@opentelemetry/api/context/context.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import { Context } from './types'; -/** Get a key to uniquely identify a context value */ -export declare function createContextKey(description: string): symbol; -/** The root context is used as the default parent context when there is no active context */ -export declare const ROOT_CONTEXT: Context; -//# sourceMappingURL=context.d.ts.map \ No newline at end of file diff --git a/packages/node_modules/@opentelemetry/api/context/types.d.ts b/packages/node_modules/@opentelemetry/api/context/types.d.ts deleted file mode 100644 index 7e866320cf1..00000000000 --- a/packages/node_modules/@opentelemetry/api/context/types.d.ts +++ /dev/null @@ -1,52 +0,0 @@ -export interface Context { - /** - * Get a value from the context. - * - * @param key key which identifies a context value - */ - getValue(key: symbol): unknown; - /** - * Create a new context which inherits from this context and has - * the given key set to the given value. - * - * @param key context key for which to set the value - * @param value value to set for the given key - */ - setValue(key: symbol, value: unknown): Context; - /** - * Return a new context which inherits from this context but does - * not contain a value for the given key. - * - * @param key context key for which to clear a value - */ - deleteValue(key: symbol): Context; -} -export interface ContextManager { - /** - * Get the current active context - */ - active(): Context; - /** - * Run the fn callback with object set as the current active context - * @param context Any object to set as the current active context - * @param fn A callback to be immediately run within a specific context - * @param thisArg optional receiver to be used for calling fn - * @param args optional arguments forwarded to fn - */ - with ReturnType>(context: Context, fn: F, thisArg?: ThisParameterType, ...args: A): ReturnType; - /** - * Bind an object as the current context (or a specific one) - * @param [context] Optionally specify the context which you want to assign - * @param target Any object to which a context need to be set - */ - bind(context: Context, target: T): T; - /** - * Enable context management - */ - enable(): this; - /** - * Disable context management - */ - disable(): this; -} -//# sourceMappingURL=types.d.ts.map \ No newline at end of file diff --git a/packages/node_modules/@opentelemetry/api/diag-api.d.ts b/packages/node_modules/@opentelemetry/api/diag-api.d.ts deleted file mode 100644 index d82fdb18d27..00000000000 --- a/packages/node_modules/@opentelemetry/api/diag-api.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -import { DiagAPI } from './api/diag'; -/** - * Entrypoint for Diag API. - * Defines Diagnostic handler used for internal diagnostic logging operations. - * The default provides a Noop DiagLogger implementation which may be changed via the - * diag.setLogger(logger: DiagLogger) function. - */ -export declare const diag: DiagAPI; -//# sourceMappingURL=diag-api.d.ts.map \ No newline at end of file diff --git a/packages/node_modules/@opentelemetry/api/diag/ComponentLogger.d.ts b/packages/node_modules/@opentelemetry/api/diag/ComponentLogger.d.ts deleted file mode 100644 index f06095031a7..00000000000 --- a/packages/node_modules/@opentelemetry/api/diag/ComponentLogger.d.ts +++ /dev/null @@ -1,20 +0,0 @@ -import { ComponentLoggerOptions, DiagLogger } from './types'; -/** - * Component Logger which is meant to be used as part of any component which - * will add automatically additional namespace in front of the log message. - * It will then forward all message to global diag logger - * @example - * const cLogger = diag.createComponentLogger({ namespace: '@opentelemetry/instrumentation-http' }); - * cLogger.debug('test'); - * // @opentelemetry/instrumentation-http test - */ -export declare class DiagComponentLogger implements DiagLogger { - private _namespace; - constructor(props: ComponentLoggerOptions); - debug(...args: any[]): void; - error(...args: any[]): void; - info(...args: any[]): void; - warn(...args: any[]): void; - verbose(...args: any[]): void; -} -//# sourceMappingURL=ComponentLogger.d.ts.map \ No newline at end of file diff --git a/packages/node_modules/@opentelemetry/api/diag/consoleLogger.d.ts b/packages/node_modules/@opentelemetry/api/diag/consoleLogger.d.ts deleted file mode 100644 index fa3db1e318c..00000000000 --- a/packages/node_modules/@opentelemetry/api/diag/consoleLogger.d.ts +++ /dev/null @@ -1,38 +0,0 @@ -import { DiagLogger, DiagLogFunction } from './types'; -/** - * A simple Immutable Console based diagnostic logger which will output any messages to the Console. - * If you want to limit the amount of logging to a specific level or lower use the - * {@link createLogLevelDiagLogger} - */ -export declare class DiagConsoleLogger implements DiagLogger { - constructor(); - /** Log an error scenario that was not expected and caused the requested operation to fail. */ - error: DiagLogFunction; - /** - * Log a warning scenario to inform the developer of an issues that should be investigated. - * The requested operation may or may not have succeeded or completed. - */ - warn: DiagLogFunction; - /** - * Log a general informational message, this should not affect functionality. - * This is also the default logging level so this should NOT be used for logging - * debugging level information. - */ - info: DiagLogFunction; - /** - * Log a general debug message that can be useful for identifying a failure. - * Information logged at this level may include diagnostic details that would - * help identify a failure scenario. Useful scenarios would be to log the execution - * order of async operations - */ - debug: DiagLogFunction; - /** - * Log a detailed (verbose) trace level logging that can be used to identify failures - * where debug level logging would be insufficient, this level of tracing can include - * input and output parameters and as such may include PII information passing through - * the API. As such it is recommended that this level of tracing should not be enabled - * in a production environment. - */ - verbose: DiagLogFunction; -} -//# sourceMappingURL=consoleLogger.d.ts.map \ No newline at end of file diff --git a/packages/node_modules/@opentelemetry/api/diag/internal/logLevelLogger.d.ts b/packages/node_modules/@opentelemetry/api/diag/internal/logLevelLogger.d.ts deleted file mode 100644 index 890b9f1ef44..00000000000 --- a/packages/node_modules/@opentelemetry/api/diag/internal/logLevelLogger.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { DiagLogger, DiagLogLevel } from '../types'; -export declare function createLogLevelDiagLogger(maxLevel: DiagLogLevel, logger: DiagLogger): DiagLogger; -//# sourceMappingURL=logLevelLogger.d.ts.map \ No newline at end of file diff --git a/packages/node_modules/@opentelemetry/api/diag/internal/noopLogger.d.ts b/packages/node_modules/@opentelemetry/api/diag/internal/noopLogger.d.ts deleted file mode 100644 index ac71ee3b583..00000000000 --- a/packages/node_modules/@opentelemetry/api/diag/internal/noopLogger.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -import { DiagLogger } from '../types'; -/** - * Returns a No-Op Diagnostic logger where all messages do nothing. - * @implements {@link DiagLogger} - * @returns {DiagLogger} - */ -export declare function createNoopDiagLogger(): DiagLogger; -//# sourceMappingURL=noopLogger.d.ts.map \ No newline at end of file diff --git a/packages/node_modules/@opentelemetry/api/diag/types.d.ts b/packages/node_modules/@opentelemetry/api/diag/types.d.ts deleted file mode 100644 index e992cc59c22..00000000000 --- a/packages/node_modules/@opentelemetry/api/diag/types.d.ts +++ /dev/null @@ -1,100 +0,0 @@ -export declare type DiagLogFunction = (message: string, ...args: unknown[]) => void; -/** - * Defines an internal diagnostic logger interface which is used to log internal diagnostic - * messages, you can set the default diagnostic logger via the {@link DiagAPI} setLogger function. - * API provided implementations include :- - * - a No-Op {@link createNoopDiagLogger} - * - a {@link DiagLogLevel} filtering wrapper {@link createLogLevelDiagLogger} - * - a general Console {@link DiagConsoleLogger} version. - */ -export interface DiagLogger { - /** Log an error scenario that was not expected and caused the requested operation to fail. */ - error: DiagLogFunction; - /** - * Log a warning scenario to inform the developer of an issues that should be investigated. - * The requested operation may or may not have succeeded or completed. - */ - warn: DiagLogFunction; - /** - * Log a general informational message, this should not affect functionality. - * This is also the default logging level so this should NOT be used for logging - * debugging level information. - */ - info: DiagLogFunction; - /** - * Log a general debug message that can be useful for identifying a failure. - * Information logged at this level may include diagnostic details that would - * help identify a failure scenario. - * For example: Logging the order of execution of async operations. - */ - debug: DiagLogFunction; - /** - * Log a detailed (verbose) trace level logging that can be used to identify failures - * where debug level logging would be insufficient, this level of tracing can include - * input and output parameters and as such may include PII information passing through - * the API. As such it is recommended that this level of tracing should not be enabled - * in a production environment. - */ - verbose: DiagLogFunction; -} -/** - * Defines the available internal logging levels for the diagnostic logger, the numeric values - * of the levels are defined to match the original values from the initial LogLevel to avoid - * compatibility/migration issues for any implementation that assume the numeric ordering. - */ -export declare enum DiagLogLevel { - /** Diagnostic Logging level setting to disable all logging (except and forced logs) */ - NONE = 0, - /** Identifies an error scenario */ - ERROR = 30, - /** Identifies a warning scenario */ - WARN = 50, - /** General informational log message */ - INFO = 60, - /** General debug log message */ - DEBUG = 70, - /** - * Detailed trace level logging should only be used for development, should only be set - * in a development environment. - */ - VERBOSE = 80, - /** Used to set the logging level to include all logging */ - ALL = 9999 -} -/** - * Defines options for ComponentLogger - */ -export interface ComponentLoggerOptions { - namespace: string; -} -export interface DiagLoggerOptions { - /** - * The {@link DiagLogLevel} used to filter logs sent to the logger. - * - * @defaultValue DiagLogLevel.INFO - */ - logLevel?: DiagLogLevel; - /** - * Setting this value to `true` will suppress the warning message normally emitted when registering a logger when another logger is already registered. - */ - suppressOverrideMessage?: boolean; -} -export interface DiagLoggerApi { - /** - * Set the global DiagLogger and DiagLogLevel. - * If a global diag logger is already set, this will override it. - * - * @param logger - The {@link DiagLogger} instance to set as the default logger. - * @param options - A {@link DiagLoggerOptions} object. If not provided, default values will be set. - * @returns `true` if the logger was successfully registered, else `false` - */ - setLogger(logger: DiagLogger, options?: DiagLoggerOptions): boolean; - /** - * - * @param logger - The {@link DiagLogger} instance to set as the default logger. - * @param logLevel - The {@link DiagLogLevel} used to filter logs sent to the logger. If not provided it will default to {@link DiagLogLevel.INFO}. - * @returns `true` if the logger was successfully registered, else `false` - */ - setLogger(logger: DiagLogger, logLevel?: DiagLogLevel): boolean; -} -//# sourceMappingURL=types.d.ts.map \ No newline at end of file diff --git a/packages/node_modules/@opentelemetry/api/experimental/index.d.ts b/packages/node_modules/@opentelemetry/api/experimental/index.d.ts deleted file mode 100644 index bec39657e20..00000000000 --- a/packages/node_modules/@opentelemetry/api/experimental/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -export { wrapTracer, SugaredTracer } from './trace/SugaredTracer'; -export { SugaredSpanOptions } from './trace/SugaredOptions'; -//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/packages/node_modules/@opentelemetry/api/experimental/trace/SugaredOptions.d.ts b/packages/node_modules/@opentelemetry/api/experimental/trace/SugaredOptions.d.ts deleted file mode 100644 index 89040affca2..00000000000 --- a/packages/node_modules/@opentelemetry/api/experimental/trace/SugaredOptions.d.ts +++ /dev/null @@ -1,13 +0,0 @@ -import { Span, SpanOptions } from '../../'; -/** - * Options needed for span creation - */ -export interface SugaredSpanOptions extends SpanOptions { - /** - * function to overwrite default exception behavior to record the exception. No exceptions should be thrown in the function. - * @param e Error which triggered this exception - * @param span current span from context - */ - onException?: (e: Error, span: Span) => void; -} -//# sourceMappingURL=SugaredOptions.d.ts.map \ No newline at end of file diff --git a/packages/node_modules/@opentelemetry/api/experimental/trace/SugaredTracer.d.ts b/packages/node_modules/@opentelemetry/api/experimental/trace/SugaredTracer.d.ts deleted file mode 100644 index 1ba7da92176..00000000000 --- a/packages/node_modules/@opentelemetry/api/experimental/trace/SugaredTracer.d.ts +++ /dev/null @@ -1,64 +0,0 @@ -import { SugaredSpanOptions } from './SugaredOptions'; -import { Context, Span, Tracer } from '../../'; -/** - * return a new SugaredTracer created from the supplied one - * @param tracer - */ -export declare function wrapTracer(tracer: Tracer): SugaredTracer; -export declare class SugaredTracer implements Tracer { - private readonly _tracer; - constructor(tracer: Tracer); - startActiveSpan: Tracer['startActiveSpan']; - startSpan: Tracer['startSpan']; - /** - * Starts a new {@link Span} and calls the given function passing it the - * created span as first argument. - * Additionally, the new span gets set in context and this context is activated - * for the duration of the function call. - * The span will be closed after the function has executed. - * If an exception occurs, it is recorded, the status is set to ERROR and the exception is rethrown. - * - * @param name The name of the span - * @param [options] SugaredSpanOptions used for span creation - * @param [context] Context to use to extract parent - * @param fn function called in the context of the span and receives the newly created span as an argument - * @returns return value of fn - * @example - * const something = tracer.withActiveSpan('op', span => { - * // do some work - * }); - * @example - * const something = await tracer.withActiveSpan('op', span => { - * // do some async work - * }); - */ - withActiveSpan ReturnType>(name: string, fn: F): ReturnType; - withActiveSpan ReturnType>(name: string, options: SugaredSpanOptions, fn: F): ReturnType; - withActiveSpan ReturnType>(name: string, options: SugaredSpanOptions, context: Context, fn: F): ReturnType; - /** - * Starts a new {@link Span} and ends it after execution of fn without setting it on context. - * The span will be closed after the function has executed. - * If an exception occurs, it is recorded, the status is et to ERROR and rethrown. - * - * This method does NOT modify the current Context. - * - * @param name The name of the span - * @param [options] SugaredSpanOptions used for span creation - * @param [context] Context to use to extract parent - * @param fn function called in the context of the span and receives the newly created span as an argument - * @returns Span The newly created span - * @example - * const something = tracer.withSpan('op', span => { - * // do some work - * }); - * @example - * const something = await tracer.withSpan('op', span => { - * // do some async work - * }); - */ - withSpan ReturnType>(name: string, fn: F): ReturnType; - withSpan ReturnType>(name: string, options: SugaredSpanOptions, fn: F): ReturnType; - withSpan ReturnType>(name: string, options: SugaredSpanOptions, context: Context, fn: F): ReturnType; - withSpan ReturnType>(name: string, options: SugaredSpanOptions, context: Context, fn: F): ReturnType; -} -//# sourceMappingURL=SugaredTracer.d.ts.map \ No newline at end of file diff --git a/packages/node_modules/@opentelemetry/api/index.d.ts b/packages/node_modules/@opentelemetry/api/index.d.ts deleted file mode 100644 index eea88f226db..00000000000 --- a/packages/node_modules/@opentelemetry/api/index.d.ts +++ /dev/null @@ -1,54 +0,0 @@ -export { BaggageEntry, BaggageEntryMetadata, Baggage } from './baggage/types'; -export { baggageEntryMetadataFromString } from './baggage/utils'; -export { Exception } from './common/Exception'; -export { HrTime, TimeInput } from './common/Time'; -export { Attributes, AttributeValue } from './common/Attributes'; -export { createContextKey, ROOT_CONTEXT } from './context/context'; -export { Context, ContextManager } from './context/types'; -export type { ContextAPI } from './api/context'; -export { DiagConsoleLogger } from './diag/consoleLogger'; -export { DiagLogFunction, DiagLogger, DiagLogLevel, ComponentLoggerOptions, DiagLoggerOptions, } from './diag/types'; -export type { DiagAPI } from './api/diag'; -export { createNoopMeter } from './metrics/NoopMeter'; -export { MeterOptions, Meter } from './metrics/Meter'; -export { MeterProvider } from './metrics/MeterProvider'; -export { ValueType, Counter, Gauge, Histogram, MetricOptions, Observable, ObservableCounter, ObservableGauge, ObservableUpDownCounter, UpDownCounter, BatchObservableCallback, MetricAdvice, MetricAttributes, MetricAttributeValue, ObservableCallback, } from './metrics/Metric'; -export { BatchObservableResult, ObservableResult, } from './metrics/ObservableResult'; -export type { MetricsAPI } from './api/metrics'; -export { TextMapPropagator, TextMapSetter, TextMapGetter, defaultTextMapGetter, defaultTextMapSetter, } from './propagation/TextMapPropagator'; -export type { PropagationAPI } from './api/propagation'; -export { SpanAttributes, SpanAttributeValue } from './trace/attributes'; -export { Link } from './trace/link'; -export { ProxyTracer, TracerDelegator } from './trace/ProxyTracer'; -export { ProxyTracerProvider } from './trace/ProxyTracerProvider'; -export { Sampler } from './trace/Sampler'; -export { SamplingDecision, SamplingResult } from './trace/SamplingResult'; -export { SpanContext } from './trace/span_context'; -export { SpanKind } from './trace/span_kind'; -export { Span } from './trace/span'; -export { SpanOptions } from './trace/SpanOptions'; -export { SpanStatus, SpanStatusCode } from './trace/status'; -export { TraceFlags } from './trace/trace_flags'; -export { TraceState } from './trace/trace_state'; -export { createTraceState } from './trace/internal/utils'; -export { TracerProvider } from './trace/tracer_provider'; -export { Tracer } from './trace/tracer'; -export { TracerOptions } from './trace/tracer_options'; -export { isSpanContextValid, isValidTraceId, isValidSpanId, } from './trace/spancontext-utils'; -export { INVALID_SPANID, INVALID_TRACEID, INVALID_SPAN_CONTEXT, } from './trace/invalid-span-constants'; -export type { TraceAPI } from './api/trace'; -import { context } from './context-api'; -import { diag } from './diag-api'; -import { metrics } from './metrics-api'; -import { propagation } from './propagation-api'; -import { trace } from './trace-api'; -export { context, diag, metrics, propagation, trace }; -declare const _default: { - context: import("./api/context").ContextAPI; - diag: import("./api/diag").DiagAPI; - metrics: import("./api/metrics").MetricsAPI; - propagation: import("./api/propagation").PropagationAPI; - trace: import("./api/trace").TraceAPI; -}; -export default _default; -//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/packages/node_modules/@opentelemetry/api/index.js b/packages/node_modules/@opentelemetry/api/index.js deleted file mode 100644 index dbbdb158eec..00000000000 --- a/packages/node_modules/@opentelemetry/api/index.js +++ /dev/null @@ -1 +0,0 @@ -(()=>{"use strict";var t,e,n,r,o,i,a,u,c,l,s,p,f,y={};y.d=(t,e)=>{for(var n in e)y.o(e,n)&&!y.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},y.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),y.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var g={};y.r(g),y.d(g,{TraceFlags:()=>l,createContextKey:()=>V,createNoopMeter:()=>ta,metrics:()=>tq,propagation:()=>t5,ValueType:()=>c,context:()=>tW,ProxyTracerProvider:()=>tB,createTraceState:()=>t$,defaultTextMapGetter:()=>tu,DiagLogLevel:()=>u,trace:()=>t6,SpanStatusCode:()=>f,isValidTraceId:()=>tA,ProxyTracer:()=>tV,INVALID_TRACEID:()=>t_,INVALID_SPAN_CONTEXT:()=>tb,ROOT_CONTEXT:()=>k,default:()=>t7,DiagConsoleLogger:()=>G,defaultTextMapSetter:()=>tc,isSpanContextValid:()=>tD,INVALID_SPANID:()=>td,SamplingDecision:()=>s,diag:()=>tX,SpanKind:()=>p,isValidSpanId:()=>tI,baggageEntryMetadataFromString:()=>j});var h="object"==typeof globalThis?globalThis:global,v="1.9.0",d=/^(\d+)\.(\d+)\.(\d+)(-(.+))?$/,_=function(t){var e=new Set([t]),n=new Set,r=t.match(d);if(!r)return function(){return!1};var o={major:+r[1],minor:+r[2],patch:+r[3],prerelease:r[4]};if(null!=o.prerelease)return function(e){return e===t};function i(t){return n.add(t),!1}return function(t){if(e.has(t))return!0;if(n.has(t))return!1;var r=t.match(d);if(!r)return i(t);var a={major:+r[1],minor:+r[2],patch:+r[3],prerelease:r[4]};if(null!=a.prerelease||o.major!==a.major)return i(t);if(0===o.major)return o.minor===a.minor&&o.patch<=a.patch?(e.add(t),!0):i(t);return o.minor<=a.minor?(e.add(t),!0):i(t)}}(v),b=Symbol.for("opentelemetry.js.api."+v.split(".")[0]);function m(t,e,n,r){void 0===r&&(r=!1);var o,i=h[b]=null!=(o=h[b])?o:{version:v};if(!r&&i[t]){var a=Error("@opentelemetry/api: Attempted duplicate registration of API: "+t);return n.error(a.stack||a.message),!1}if(i.version!==v){var a=Error("@opentelemetry/api: Registration of version v"+i.version+" for "+t+" does not match previously registered API v"+v);return n.error(a.stack||a.message),!1}return i[t]=e,n.debug("@opentelemetry/api: Registered a global for "+t+" v"+v+"."),!0}function w(t){var e,n,r=null==(e=h[b])?void 0:e.version;if(r&&_(r))return null==(n=h[b])?void 0:n[t]}function S(t,e){e.debug("@opentelemetry/api: Unregistering a global for "+t+" v"+v+".");var n=h[b];n&&delete n[t]}var E=function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,o,i=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(t){o={error:t}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},O=function(t,e,n){if(n||2==arguments.length)for(var r,o=0,i=e.length;o0)&&!(r=i.next()).done;)a.push(r.value)}catch(t){o={error:t}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},x=function(t,e,n){if(n||2==arguments.length)for(var r,o=0,i=e.length;o=r?o.bind(e):function(){}}return tu.ALL&&(t=u.ALL),e=e||{},{error:n("error",u.ERROR),warn:n("warn",u.WARN),info:n("info",u.INFO),debug:n("debug",u.DEBUG),verbose:n("verbose",u.VERBOSE)}}(null!=(o=n.logLevel)?o:u.INFO,t);if(c&&!n.suppressOverrideMessage){var s=null!=(i=Error().stack)?i:"";c.warn("Current logger will be overwritten from "+s),l.warn("Current logger will overwrite one already registered from "+s)}return m("diag",l,e,!0)},e.disable=function(){S("diag",e)},e.createComponentLogger=function(t){return new C(t)},e.verbose=t("verbose"),e.debug=t("debug"),e.info=t("info"),e.warn=t("warn"),e.error=t("error")}return t.instance=function(){return this._instance||(this._instance=new t),this._instance},t}(),A=function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,o,i=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(t){o={error:t}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},I=function(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},D=function(){function t(t){this._entries=t?new Map(t):new Map}return t.prototype.getEntry=function(t){var e=this._entries.get(t);if(e)return Object.assign({},e)},t.prototype.getAllEntries=function(){return Array.from(this._entries.entries()).map(function(t){var e=A(t,2);return[e[0],e[1]]})},t.prototype.setEntry=function(e,n){var r=new t(this._entries);return r._entries.set(e,n),r},t.prototype.removeEntry=function(e){var n=new t(this._entries);return n._entries.delete(e),n},t.prototype.removeEntries=function(){for(var e,n,r=[],o=0;o0)&&!(r=i.next()).done;)a.push(r.value)}catch(t){o={error:t}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},ts=function(t,e,n){if(n||2==arguments.length)for(var r,o=0,i=e.length;o0)&&!(r=i.next()).done;)a.push(r.value)}catch(t){o={error:t}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},ty=function(t,e,n){if(n||2==arguments.length)for(var r,o=0,i=e.length;o512)&&(this._internalState=t.split(",").reverse().reduce(function(t,e){var n=e.trim(),r=n.indexOf("=");if(-1!==r){var o=n.slice(0,r),i=n.slice(r+1,e.length);tU.test(o)&&tF.test(i)&&!tz.test(i)&&t.set(o,i)}return t},new Map),this._internalState.size>32&&(this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,32))))},t.prototype._keys=function(){return Array.from(this._internalState.keys()).reverse()},t.prototype._clone=function(){var e=new t;return e._internalState=new Map(this._internalState),e},t}();function t$(t){return new tK(t)}var tW=tv.getInstance(),tX=N.instance(),tH=new(function(){function t(){}return t.prototype.getMeter=function(t,e,n){return Q},t}()),tY="metrics",tq=(function(){function t(){}return t.getInstance=function(){return this._instance||(this._instance=new t),this._instance},t.prototype.setGlobalMeterProvider=function(t){return m(tY,t,N.instance())},t.prototype.getMeterProvider=function(){return w(tY)||tH},t.prototype.getMeter=function(t,e,n){return this.getMeterProvider().getMeter(t,e,n)},t.prototype.disable=function(){S(tY,N.instance())},t})().getInstance(),tJ=function(){function t(){}return t.prototype.inject=function(t,e){},t.prototype.extract=function(t,e){return t},t.prototype.fields=function(){return[]},t}(),tQ=V("OpenTelemetry Baggage Key");function tZ(t){return t.getValue(tQ)||void 0}function t0(){return tZ(tv.getInstance().active())}function t1(t,e){return t.setValue(tQ,e)}function t2(t){return t.deleteValue(tQ)}var t3="propagation",t9=new tJ,t5=(function(){function t(){this.createBaggage=L,this.getBaggage=tZ,this.getActiveBaggage=t0,this.setBaggage=t1,this.deleteBaggage=t2}return t.getInstance=function(){return this._instance||(this._instance=new t),this._instance},t.prototype.setGlobalPropagator=function(t){return m(t3,t,N.instance())},t.prototype.inject=function(t,e,n){return void 0===n&&(n=tc),this._getGlobalPropagator().inject(t,e,n)},t.prototype.extract=function(t,e,n){return void 0===n&&(n=tu),this._getGlobalPropagator().extract(t,e,n)},t.prototype.fields=function(){return this._getGlobalPropagator().fields()},t.prototype.disable=function(){S(t3,N.instance())},t.prototype._getGlobalPropagator=function(){return w(t3)||t9},t})().getInstance(),t4="trace",t6=(function(){function t(){this._proxyTracerProvider=new tB,this.wrapSpanContext=tP,this.isSpanContextValid=tD,this.deleteSpan=tC,this.getSpan=tS,this.getActiveSpan=tE,this.getSpanContext=tT,this.setSpan=tO,this.setSpanContext=tR}return t.getInstance=function(){return this._instance||(this._instance=new t),this._instance},t.prototype.setGlobalTracerProvider=function(t){var e=m(t4,this._proxyTracerProvider,N.instance());return e&&this._proxyTracerProvider.setDelegate(t),e},t.prototype.getTracerProvider=function(){return w(t4)||this._proxyTracerProvider},t.prototype.getTracer=function(t,e){return this.getTracerProvider().getTracer(t,e)},t.prototype.disable=function(){S(t4,N.instance()),this._proxyTracerProvider=new tB},t})().getInstance();let t7={context:tW,diag:tX,metrics:tq,propagation:t5,trace:t6};module.exports=g})(); \ No newline at end of file diff --git a/packages/node_modules/@opentelemetry/api/internal/global-utils.d.ts b/packages/node_modules/@opentelemetry/api/internal/global-utils.d.ts deleted file mode 100644 index 320db97555a..00000000000 --- a/packages/node_modules/@opentelemetry/api/internal/global-utils.d.ts +++ /dev/null @@ -1,18 +0,0 @@ -import { MeterProvider } from '../metrics/MeterProvider'; -import { ContextManager } from '../context/types'; -import { DiagLogger } from '../diag/types'; -import { TextMapPropagator } from '../propagation/TextMapPropagator'; -import type { TracerProvider } from '../trace/tracer_provider'; -export declare function registerGlobal(type: Type, instance: OTelGlobalAPI[Type], diag: DiagLogger, allowOverride?: boolean): boolean; -export declare function getGlobal(type: Type): OTelGlobalAPI[Type] | undefined; -export declare function unregisterGlobal(type: keyof OTelGlobalAPI, diag: DiagLogger): void; -declare type OTelGlobalAPI = { - version: string; - diag?: DiagLogger; - trace?: TracerProvider; - context?: ContextManager; - metrics?: MeterProvider; - propagation?: TextMapPropagator; -}; -export {}; -//# sourceMappingURL=global-utils.d.ts.map \ No newline at end of file diff --git a/packages/node_modules/@opentelemetry/api/internal/semver.d.ts b/packages/node_modules/@opentelemetry/api/internal/semver.d.ts deleted file mode 100644 index d9f4259e455..00000000000 --- a/packages/node_modules/@opentelemetry/api/internal/semver.d.ts +++ /dev/null @@ -1,34 +0,0 @@ -/** - * Create a function to test an API version to see if it is compatible with the provided ownVersion. - * - * The returned function has the following semantics: - * - Exact match is always compatible - * - Major versions must match exactly - * - 1.x package cannot use global 2.x package - * - 2.x package cannot use global 1.x package - * - The minor version of the API module requesting access to the global API must be less than or equal to the minor version of this API - * - 1.3 package may use 1.4 global because the later global contains all functions 1.3 expects - * - 1.4 package may NOT use 1.3 global because it may try to call functions which don't exist on 1.3 - * - If the major version is 0, the minor version is treated as the major and the patch is treated as the minor - * - Patch and build tag differences are not considered at this time - * - * @param ownVersion version which should be checked against - */ -export declare function _makeCompatibilityCheck(ownVersion: string): (globalVersion: string) => boolean; -/** - * Test an API version to see if it is compatible with this API. - * - * - Exact match is always compatible - * - Major versions must match exactly - * - 1.x package cannot use global 2.x package - * - 2.x package cannot use global 1.x package - * - The minor version of the API module requesting access to the global API must be less than or equal to the minor version of this API - * - 1.3 package may use 1.4 global because the later global contains all functions 1.3 expects - * - 1.4 package may NOT use 1.3 global because it may try to call functions which don't exist on 1.3 - * - If the major version is 0, the minor version is treated as the major and the patch is treated as the minor - * - Patch and build tag differences are not considered at this time - * - * @param version version of the API requesting an instance of the global API - */ -export declare const isCompatible: (globalVersion: string) => boolean; -//# sourceMappingURL=semver.d.ts.map \ No newline at end of file diff --git a/packages/node_modules/@opentelemetry/api/metrics-api.d.ts b/packages/node_modules/@opentelemetry/api/metrics-api.d.ts deleted file mode 100644 index 26d539c049e..00000000000 --- a/packages/node_modules/@opentelemetry/api/metrics-api.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -import { MetricsAPI } from './api/metrics'; -/** Entrypoint for metrics API */ -export declare const metrics: MetricsAPI; -//# sourceMappingURL=metrics-api.d.ts.map \ No newline at end of file diff --git a/packages/node_modules/@opentelemetry/api/metrics/Meter.d.ts b/packages/node_modules/@opentelemetry/api/metrics/Meter.d.ts deleted file mode 100644 index 5e3926b75c5..00000000000 --- a/packages/node_modules/@opentelemetry/api/metrics/Meter.d.ts +++ /dev/null @@ -1,110 +0,0 @@ -import { BatchObservableCallback, Counter, Gauge, Histogram, MetricAttributes, MetricOptions, Observable, ObservableCounter, ObservableGauge, ObservableUpDownCounter, UpDownCounter } from './Metric'; -/** - * An interface describes additional metadata of a meter. - */ -export interface MeterOptions { - /** - * The schemaUrl of the meter or instrumentation library - */ - schemaUrl?: string; -} -/** - * An interface to allow the recording metrics. - * - * {@link Metric}s are used for recording pre-defined aggregation (`Counter`), - * or raw values (`Histogram`) in which the aggregation and attributes - * for the exported metric are deferred. - */ -export interface Meter { - /** - * Creates and returns a new `Gauge`. - * @param name the name of the metric. - * @param [options] the metric options. - */ - createGauge(name: string, options?: MetricOptions): Gauge; - /** - * Creates and returns a new `Histogram`. - * @param name the name of the metric. - * @param [options] the metric options. - */ - createHistogram(name: string, options?: MetricOptions): Histogram; - /** - * Creates a new `Counter` metric. Generally, this kind of metric when the - * value is a quantity, the sum is of primary interest, and the event count - * and value distribution are not of primary interest. - * @param name the name of the metric. - * @param [options] the metric options. - */ - createCounter(name: string, options?: MetricOptions): Counter; - /** - * Creates a new `UpDownCounter` metric. UpDownCounter is a synchronous - * instrument and very similar to Counter except that Add(increment) - * supports negative increments. It is generally useful for capturing changes - * in an amount of resources used, or any quantity that rises and falls - * during a request. - * Example uses for UpDownCounter: - *
        - *
      1. count the number of active requests.
      2. - *
      3. count memory in use by instrumenting new and delete.
      4. - *
      5. count queue size by instrumenting enqueue and dequeue.
      6. - *
      7. count semaphore up and down operations.
      8. - *
      - * - * @param name the name of the metric. - * @param [options] the metric options. - */ - createUpDownCounter(name: string, options?: MetricOptions): UpDownCounter; - /** - * Creates a new `ObservableGauge` metric. - * - * The callback SHOULD be safe to be invoked concurrently. - * - * @param name the name of the metric. - * @param [options] the metric options. - */ - createObservableGauge(name: string, options?: MetricOptions): ObservableGauge; - /** - * Creates a new `ObservableCounter` metric. - * - * The callback SHOULD be safe to be invoked concurrently. - * - * @param name the name of the metric. - * @param [options] the metric options. - */ - createObservableCounter(name: string, options?: MetricOptions): ObservableCounter; - /** - * Creates a new `ObservableUpDownCounter` metric. - * - * The callback SHOULD be safe to be invoked concurrently. - * - * @param name the name of the metric. - * @param [options] the metric options. - */ - createObservableUpDownCounter(name: string, options?: MetricOptions): ObservableUpDownCounter; - /** - * Sets up a function that will be called whenever a metric collection is - * initiated. - * - * If the function is already in the list of callbacks for this Observable, - * the function is not added a second time. - * - * Only the associated observables can be observed in the callback. - * Measurements of observables that are not associated observed in the - * callback are dropped. - * - * @param callback the batch observable callback - * @param observables the observables associated with this batch observable callback - */ - addBatchObservableCallback(callback: BatchObservableCallback, observables: Observable[]): void; - /** - * Removes a callback previously registered with {@link Meter.addBatchObservableCallback}. - * - * The callback to be removed is identified using a combination of the callback itself, - * and the set of the observables associated with it. - * - * @param callback the batch observable callback - * @param observables the observables associated with this batch observable callback - */ - removeBatchObservableCallback(callback: BatchObservableCallback, observables: Observable[]): void; -} -//# sourceMappingURL=Meter.d.ts.map \ No newline at end of file diff --git a/packages/node_modules/@opentelemetry/api/metrics/MeterProvider.d.ts b/packages/node_modules/@opentelemetry/api/metrics/MeterProvider.d.ts deleted file mode 100644 index 6c08cc3175a..00000000000 --- a/packages/node_modules/@opentelemetry/api/metrics/MeterProvider.d.ts +++ /dev/null @@ -1,17 +0,0 @@ -import { Meter, MeterOptions } from './Meter'; -/** - * A registry for creating named {@link Meter}s. - */ -export interface MeterProvider { - /** - * Returns a Meter, creating one if one with the given name, version, and - * schemaUrl pair is not already created. - * - * @param name The name of the meter or instrumentation library. - * @param version The version of the meter or instrumentation library. - * @param options The options of the meter or instrumentation library. - * @returns Meter A Meter with the given name and version - */ - getMeter(name: string, version?: string, options?: MeterOptions): Meter; -} -//# sourceMappingURL=MeterProvider.d.ts.map \ No newline at end of file diff --git a/packages/node_modules/@opentelemetry/api/metrics/Metric.d.ts b/packages/node_modules/@opentelemetry/api/metrics/Metric.d.ts deleted file mode 100644 index 607b637ebba..00000000000 --- a/packages/node_modules/@opentelemetry/api/metrics/Metric.d.ts +++ /dev/null @@ -1,115 +0,0 @@ -import { Attributes, AttributeValue } from '../common/Attributes'; -import { Context } from '../context/types'; -import { BatchObservableResult, ObservableResult } from './ObservableResult'; -/** - * Advisory options influencing aggregation configuration parameters. - * @experimental - */ -export interface MetricAdvice { - /** - * Hint the explicit bucket boundaries for SDK if the metric is been - * aggregated with a HistogramAggregator. - */ - explicitBucketBoundaries?: number[]; -} -/** - * Options needed for metric creation - */ -export interface MetricOptions { - /** - * The description of the Metric. - * @default '' - */ - description?: string; - /** - * The unit of the Metric values. - * @default '' - */ - unit?: string; - /** - * Indicates the type of the recorded value. - * @default {@link ValueType.DOUBLE} - */ - valueType?: ValueType; - /** - * The advice influencing aggregation configuration parameters. - * @experimental - */ - advice?: MetricAdvice; -} -/** The Type of value. It describes how the data is reported. */ -export declare enum ValueType { - INT = 0, - DOUBLE = 1 -} -/** - * Counter is the most common synchronous instrument. This instrument supports - * an `Add(increment)` function for reporting a sum, and is restricted to - * non-negative increments. The default aggregation is Sum, as for any additive - * instrument. - * - * Example uses for Counter: - *
        - *
      1. count the number of bytes received.
      2. - *
      3. count the number of requests completed.
      4. - *
      5. count the number of accounts created.
      6. - *
      7. count the number of checkpoints run.
      8. - *
      9. count the number of 5xx errors.
      10. - *
          - */ -export interface Counter { - /** - * Increment value of counter by the input. Inputs must not be negative. - */ - add(value: number, attributes?: AttributesTypes, context?: Context): void; -} -export interface UpDownCounter { - /** - * Increment value of counter by the input. Inputs may be negative. - */ - add(value: number, attributes?: AttributesTypes, context?: Context): void; -} -export interface Gauge { - /** - * Records a measurement. - */ - record(value: number, attributes?: AttributesTypes, context?: Context): void; -} -export interface Histogram { - /** - * Records a measurement. Value of the measurement must not be negative. - */ - record(value: number, attributes?: AttributesTypes, context?: Context): void; -} -/** - * @deprecated please use {@link Attributes} - */ -export declare type MetricAttributes = Attributes; -/** - * @deprecated please use {@link AttributeValue} - */ -export declare type MetricAttributeValue = AttributeValue; -/** - * The observable callback for Observable instruments. - */ -export declare type ObservableCallback = (observableResult: ObservableResult) => void | Promise; -/** - * The observable callback for a batch of Observable instruments. - */ -export declare type BatchObservableCallback = (observableResult: BatchObservableResult) => void | Promise; -export interface Observable { - /** - * Sets up a function that will be called whenever a metric collection is initiated. - * - * If the function is already in the list of callbacks for this Observable, the function is not added a second time. - */ - addCallback(callback: ObservableCallback): void; - /** - * Removes a callback previously registered with {@link Observable.addCallback}. - */ - removeCallback(callback: ObservableCallback): void; -} -export declare type ObservableCounter = Observable; -export declare type ObservableUpDownCounter = Observable; -export declare type ObservableGauge = Observable; -//# sourceMappingURL=Metric.d.ts.map \ No newline at end of file diff --git a/packages/node_modules/@opentelemetry/api/metrics/NoopMeter.d.ts b/packages/node_modules/@opentelemetry/api/metrics/NoopMeter.d.ts deleted file mode 100644 index bbefa9a74df..00000000000 --- a/packages/node_modules/@opentelemetry/api/metrics/NoopMeter.d.ts +++ /dev/null @@ -1,82 +0,0 @@ -import { Meter } from './Meter'; -import { BatchObservableCallback, Counter, Gauge, Histogram, MetricAttributes, MetricOptions, Observable, ObservableCallback, ObservableCounter, ObservableGauge, ObservableUpDownCounter, UpDownCounter } from './Metric'; -/** - * NoopMeter is a noop implementation of the {@link Meter} interface. It reuses - * constant NoopMetrics for all of its methods. - */ -export declare class NoopMeter implements Meter { - constructor(); - /** - * @see {@link Meter.createGauge} - */ - createGauge(_name: string, _options?: MetricOptions): Gauge; - /** - * @see {@link Meter.createHistogram} - */ - createHistogram(_name: string, _options?: MetricOptions): Histogram; - /** - * @see {@link Meter.createCounter} - */ - createCounter(_name: string, _options?: MetricOptions): Counter; - /** - * @see {@link Meter.createUpDownCounter} - */ - createUpDownCounter(_name: string, _options?: MetricOptions): UpDownCounter; - /** - * @see {@link Meter.createObservableGauge} - */ - createObservableGauge(_name: string, _options?: MetricOptions): ObservableGauge; - /** - * @see {@link Meter.createObservableCounter} - */ - createObservableCounter(_name: string, _options?: MetricOptions): ObservableCounter; - /** - * @see {@link Meter.createObservableUpDownCounter} - */ - createObservableUpDownCounter(_name: string, _options?: MetricOptions): ObservableUpDownCounter; - /** - * @see {@link Meter.addBatchObservableCallback} - */ - addBatchObservableCallback(_callback: BatchObservableCallback, _observables: Observable[]): void; - /** - * @see {@link Meter.removeBatchObservableCallback} - */ - removeBatchObservableCallback(_callback: BatchObservableCallback): void; -} -export declare class NoopMetric { -} -export declare class NoopCounterMetric extends NoopMetric implements Counter { - add(_value: number, _attributes: MetricAttributes): void; -} -export declare class NoopUpDownCounterMetric extends NoopMetric implements UpDownCounter { - add(_value: number, _attributes: MetricAttributes): void; -} -export declare class NoopGaugeMetric extends NoopMetric implements Gauge { - record(_value: number, _attributes: MetricAttributes): void; -} -export declare class NoopHistogramMetric extends NoopMetric implements Histogram { - record(_value: number, _attributes: MetricAttributes): void; -} -export declare class NoopObservableMetric { - addCallback(_callback: ObservableCallback): void; - removeCallback(_callback: ObservableCallback): void; -} -export declare class NoopObservableCounterMetric extends NoopObservableMetric implements ObservableCounter { -} -export declare class NoopObservableGaugeMetric extends NoopObservableMetric implements ObservableGauge { -} -export declare class NoopObservableUpDownCounterMetric extends NoopObservableMetric implements ObservableUpDownCounter { -} -export declare const NOOP_METER: NoopMeter; -export declare const NOOP_COUNTER_METRIC: NoopCounterMetric; -export declare const NOOP_GAUGE_METRIC: NoopGaugeMetric; -export declare const NOOP_HISTOGRAM_METRIC: NoopHistogramMetric; -export declare const NOOP_UP_DOWN_COUNTER_METRIC: NoopUpDownCounterMetric; -export declare const NOOP_OBSERVABLE_COUNTER_METRIC: NoopObservableCounterMetric; -export declare const NOOP_OBSERVABLE_GAUGE_METRIC: NoopObservableGaugeMetric; -export declare const NOOP_OBSERVABLE_UP_DOWN_COUNTER_METRIC: NoopObservableUpDownCounterMetric; -/** - * Create a no-op Meter - */ -export declare function createNoopMeter(): Meter; -//# sourceMappingURL=NoopMeter.d.ts.map \ No newline at end of file diff --git a/packages/node_modules/@opentelemetry/api/metrics/NoopMeterProvider.d.ts b/packages/node_modules/@opentelemetry/api/metrics/NoopMeterProvider.d.ts deleted file mode 100644 index 8b51bc526f1..00000000000 --- a/packages/node_modules/@opentelemetry/api/metrics/NoopMeterProvider.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { Meter, MeterOptions } from './Meter'; -import { MeterProvider } from './MeterProvider'; -/** - * An implementation of the {@link MeterProvider} which returns an impotent Meter - * for all calls to `getMeter` - */ -export declare class NoopMeterProvider implements MeterProvider { - getMeter(_name: string, _version?: string, _options?: MeterOptions): Meter; -} -export declare const NOOP_METER_PROVIDER: NoopMeterProvider; -//# sourceMappingURL=NoopMeterProvider.d.ts.map \ No newline at end of file diff --git a/packages/node_modules/@opentelemetry/api/metrics/ObservableResult.d.ts b/packages/node_modules/@opentelemetry/api/metrics/ObservableResult.d.ts deleted file mode 100644 index 26563f9ecb2..00000000000 --- a/packages/node_modules/@opentelemetry/api/metrics/ObservableResult.d.ts +++ /dev/null @@ -1,31 +0,0 @@ -import { MetricAttributes, Observable } from './Metric'; -/** - * Interface that is being used in callback function for Observable Metric. - */ -export interface ObservableResult { - /** - * Observe a measurement of the value associated with the given attributes. - * - * @param value The value to be observed. - * @param attributes The attributes associated with the value. If more than - * one values associated with the same attributes values, SDK may pick the - * last one or simply drop the entire observable result. - */ - observe(this: ObservableResult, value: number, attributes?: AttributesTypes): void; -} -/** - * Interface that is being used in batch observable callback function. - */ -export interface BatchObservableResult { - /** - * Observe a measurement of the value associated with the given attributes. - * - * @param metric The observable metric to be observed. - * @param value The value to be observed. - * @param attributes The attributes associated with the value. If more than - * one values associated with the same attributes values, SDK may pick the - * last one or simply drop the entire observable result. - */ - observe(this: BatchObservableResult, metric: Observable, value: number, attributes?: AttributesTypes): void; -} -//# sourceMappingURL=ObservableResult.d.ts.map \ No newline at end of file diff --git a/packages/node_modules/@opentelemetry/api/platform/browser/globalThis.d.ts b/packages/node_modules/@opentelemetry/api/platform/browser/globalThis.d.ts deleted file mode 100644 index e73fd73e554..00000000000 --- a/packages/node_modules/@opentelemetry/api/platform/browser/globalThis.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -/** - * - globalThis (New standard) - * - self (Will return the current window instance for supported browsers) - * - window (fallback for older browser implementations) - * - global (NodeJS implementation) - * - (When all else fails) - */ -/** only globals that common to node and browsers are allowed */ -export declare const _globalThis: typeof globalThis; -//# sourceMappingURL=globalThis.d.ts.map \ No newline at end of file diff --git a/packages/node_modules/@opentelemetry/api/platform/browser/index.d.ts b/packages/node_modules/@opentelemetry/api/platform/browser/index.d.ts deleted file mode 100644 index ba20e1232c4..00000000000 --- a/packages/node_modules/@opentelemetry/api/platform/browser/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from './globalThis'; -//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/packages/node_modules/@opentelemetry/api/platform/index.d.ts b/packages/node_modules/@opentelemetry/api/platform/index.d.ts deleted file mode 100644 index 90595da96ff..00000000000 --- a/packages/node_modules/@opentelemetry/api/platform/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from './node'; -//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/packages/node_modules/@opentelemetry/api/platform/node/globalThis.d.ts b/packages/node_modules/@opentelemetry/api/platform/node/globalThis.d.ts deleted file mode 100644 index e3c83e5d299..00000000000 --- a/packages/node_modules/@opentelemetry/api/platform/node/globalThis.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -/** only globals that common to node and browsers are allowed */ -export declare const _globalThis: typeof globalThis; -//# sourceMappingURL=globalThis.d.ts.map \ No newline at end of file diff --git a/packages/node_modules/@opentelemetry/api/platform/node/index.d.ts b/packages/node_modules/@opentelemetry/api/platform/node/index.d.ts deleted file mode 100644 index ba20e1232c4..00000000000 --- a/packages/node_modules/@opentelemetry/api/platform/node/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from './globalThis'; -//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/packages/node_modules/@opentelemetry/api/propagation-api.d.ts b/packages/node_modules/@opentelemetry/api/propagation-api.d.ts deleted file mode 100644 index e12b51ba7e5..00000000000 --- a/packages/node_modules/@opentelemetry/api/propagation-api.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -import { PropagationAPI } from './api/propagation'; -/** Entrypoint for propagation API */ -export declare const propagation: PropagationAPI; -//# sourceMappingURL=propagation-api.d.ts.map \ No newline at end of file diff --git a/packages/node_modules/@opentelemetry/api/propagation/NoopTextMapPropagator.d.ts b/packages/node_modules/@opentelemetry/api/propagation/NoopTextMapPropagator.d.ts deleted file mode 100644 index 398021f3b21..00000000000 --- a/packages/node_modules/@opentelemetry/api/propagation/NoopTextMapPropagator.d.ts +++ /dev/null @@ -1,13 +0,0 @@ -import { Context } from '../context/types'; -import { TextMapPropagator } from './TextMapPropagator'; -/** - * No-op implementations of {@link TextMapPropagator}. - */ -export declare class NoopTextMapPropagator implements TextMapPropagator { - /** Noop inject function does nothing */ - inject(_context: Context, _carrier: unknown): void; - /** Noop extract function does nothing and returns the input context */ - extract(context: Context, _carrier: unknown): Context; - fields(): string[]; -} -//# sourceMappingURL=NoopTextMapPropagator.d.ts.map \ No newline at end of file diff --git a/packages/node_modules/@opentelemetry/api/propagation/TextMapPropagator.d.ts b/packages/node_modules/@opentelemetry/api/propagation/TextMapPropagator.d.ts deleted file mode 100644 index dc39367bfbf..00000000000 --- a/packages/node_modules/@opentelemetry/api/propagation/TextMapPropagator.d.ts +++ /dev/null @@ -1,84 +0,0 @@ -import { Context } from '../context/types'; -/** - * Injects `Context` into and extracts it from carriers that travel - * in-band across process boundaries. Encoding is expected to conform to the - * HTTP Header Field semantics. Values are often encoded as RPC/HTTP request - * headers. - * - * The carrier of propagated data on both the client (injector) and server - * (extractor) side is usually an object such as http headers. Propagation is - * usually implemented via library-specific request interceptors, where the - * client-side injects values and the server-side extracts them. - */ -export interface TextMapPropagator { - /** - * Injects values from a given `Context` into a carrier. - * - * OpenTelemetry defines a common set of format values (TextMapPropagator), - * and each has an expected `carrier` type. - * - * @param context the Context from which to extract values to transmit over - * the wire. - * @param carrier the carrier of propagation fields, such as http request - * headers. - * @param setter an optional {@link TextMapSetter}. If undefined, values will be - * set by direct object assignment. - */ - inject(context: Context, carrier: Carrier, setter: TextMapSetter): void; - /** - * Given a `Context` and a carrier, extract context values from a - * carrier and return a new context, created from the old context, with the - * extracted values. - * - * @param context the Context from which to extract values to transmit over - * the wire. - * @param carrier the carrier of propagation fields, such as http request - * headers. - * @param getter an optional {@link TextMapGetter}. If undefined, keys will be all - * own properties, and keys will be accessed by direct object access. - */ - extract(context: Context, carrier: Carrier, getter: TextMapGetter): Context; - /** - * Return a list of all fields which may be used by the propagator. - */ - fields(): string[]; -} -/** - * A setter is specified by the caller to define a specific method - * to set key/value pairs on the carrier within a propagator. - */ -export interface TextMapSetter { - /** - * Callback used to set a key/value pair on an object. - * - * Should be called by the propagator each time a key/value pair - * should be set, and should set that key/value pair on the propagator. - * - * @param carrier object or class which carries key/value pairs - * @param key string key to modify - * @param value value to be set to the key on the carrier - */ - set(carrier: Carrier, key: string, value: string): void; -} -/** - * A getter is specified by the caller to define a specific method - * to get the value of a key from a carrier. - */ -export interface TextMapGetter { - /** - * Get a list of all keys available on the carrier. - * - * @param carrier - */ - keys(carrier: Carrier): string[]; - /** - * Get the value of a specific key from the carrier. - * - * @param carrier - * @param key - */ - get(carrier: Carrier, key: string): undefined | string | string[]; -} -export declare const defaultTextMapGetter: TextMapGetter; -export declare const defaultTextMapSetter: TextMapSetter; -//# sourceMappingURL=TextMapPropagator.d.ts.map \ No newline at end of file diff --git a/packages/node_modules/@opentelemetry/api/trace-api.d.ts b/packages/node_modules/@opentelemetry/api/trace-api.d.ts deleted file mode 100644 index b4751a7f8f8..00000000000 --- a/packages/node_modules/@opentelemetry/api/trace-api.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -import { TraceAPI } from './api/trace'; -/** Entrypoint for trace API */ -export declare const trace: TraceAPI; -//# sourceMappingURL=trace-api.d.ts.map \ No newline at end of file diff --git a/packages/node_modules/@opentelemetry/api/trace/NonRecordingSpan.d.ts b/packages/node_modules/@opentelemetry/api/trace/NonRecordingSpan.d.ts deleted file mode 100644 index ce569f0c59c..00000000000 --- a/packages/node_modules/@opentelemetry/api/trace/NonRecordingSpan.d.ts +++ /dev/null @@ -1,28 +0,0 @@ -import { Exception } from '../common/Exception'; -import { TimeInput } from '../common/Time'; -import { SpanAttributes } from './attributes'; -import { Span } from './span'; -import { SpanContext } from './span_context'; -import { SpanStatus } from './status'; -import { Link } from './link'; -/** - * The NonRecordingSpan is the default {@link Span} that is used when no Span - * implementation is available. All operations are no-op including context - * propagation. - */ -export declare class NonRecordingSpan implements Span { - private readonly _spanContext; - constructor(_spanContext?: SpanContext); - spanContext(): SpanContext; - setAttribute(_key: string, _value: unknown): this; - setAttributes(_attributes: SpanAttributes): this; - addEvent(_name: string, _attributes?: SpanAttributes): this; - addLink(_link: Link): this; - addLinks(_links: Link[]): this; - setStatus(_status: SpanStatus): this; - updateName(_name: string): this; - end(_endTime?: TimeInput): void; - isRecording(): boolean; - recordException(_exception: Exception, _time?: TimeInput): void; -} -//# sourceMappingURL=NonRecordingSpan.d.ts.map \ No newline at end of file diff --git a/packages/node_modules/@opentelemetry/api/trace/NoopTracer.d.ts b/packages/node_modules/@opentelemetry/api/trace/NoopTracer.d.ts deleted file mode 100644 index 0e059c990c6..00000000000 --- a/packages/node_modules/@opentelemetry/api/trace/NoopTracer.d.ts +++ /dev/null @@ -1,14 +0,0 @@ -import { Context } from '../context/types'; -import { Span } from './span'; -import { SpanOptions } from './SpanOptions'; -import { Tracer } from './tracer'; -/** - * No-op implementations of {@link Tracer}. - */ -export declare class NoopTracer implements Tracer { - startSpan(name: string, options?: SpanOptions, context?: Context): Span; - startActiveSpan ReturnType>(name: string, fn: F): ReturnType; - startActiveSpan ReturnType>(name: string, opts: SpanOptions | undefined, fn: F): ReturnType; - startActiveSpan ReturnType>(name: string, opts: SpanOptions | undefined, ctx: Context | undefined, fn: F): ReturnType; -} -//# sourceMappingURL=NoopTracer.d.ts.map \ No newline at end of file diff --git a/packages/node_modules/@opentelemetry/api/trace/NoopTracerProvider.d.ts b/packages/node_modules/@opentelemetry/api/trace/NoopTracerProvider.d.ts deleted file mode 100644 index ec0fe792012..00000000000 --- a/packages/node_modules/@opentelemetry/api/trace/NoopTracerProvider.d.ts +++ /dev/null @@ -1,13 +0,0 @@ -import { Tracer } from './tracer'; -import { TracerOptions } from './tracer_options'; -import { TracerProvider } from './tracer_provider'; -/** - * An implementation of the {@link TracerProvider} which returns an impotent - * Tracer for all calls to `getTracer`. - * - * All operations are no-op. - */ -export declare class NoopTracerProvider implements TracerProvider { - getTracer(_name?: string, _version?: string, _options?: TracerOptions): Tracer; -} -//# sourceMappingURL=NoopTracerProvider.d.ts.map \ No newline at end of file diff --git a/packages/node_modules/@opentelemetry/api/trace/ProxyTracer.d.ts b/packages/node_modules/@opentelemetry/api/trace/ProxyTracer.d.ts deleted file mode 100644 index 116cc5c1f68..00000000000 --- a/packages/node_modules/@opentelemetry/api/trace/ProxyTracer.d.ts +++ /dev/null @@ -1,27 +0,0 @@ -import { Context } from '../context/types'; -import { Span } from './span'; -import { SpanOptions } from './SpanOptions'; -import { Tracer } from './tracer'; -import { TracerOptions } from './tracer_options'; -/** - * Proxy tracer provided by the proxy tracer provider - */ -export declare class ProxyTracer implements Tracer { - private _provider; - readonly name: string; - readonly version?: string | undefined; - readonly options?: TracerOptions | undefined; - private _delegate?; - constructor(_provider: TracerDelegator, name: string, version?: string | undefined, options?: TracerOptions | undefined); - startSpan(name: string, options?: SpanOptions, context?: Context): Span; - startActiveSpan unknown>(_name: string, _options: F | SpanOptions, _context?: F | Context, _fn?: F): ReturnType; - /** - * Try to get a tracer from the proxy tracer provider. - * If the proxy tracer provider has no delegate, return a noop tracer. - */ - private _getTracer; -} -export interface TracerDelegator { - getDelegateTracer(name: string, version?: string, options?: TracerOptions): Tracer | undefined; -} -//# sourceMappingURL=ProxyTracer.d.ts.map \ No newline at end of file diff --git a/packages/node_modules/@opentelemetry/api/trace/ProxyTracerProvider.d.ts b/packages/node_modules/@opentelemetry/api/trace/ProxyTracerProvider.d.ts deleted file mode 100644 index ee7eafa94d5..00000000000 --- a/packages/node_modules/@opentelemetry/api/trace/ProxyTracerProvider.d.ts +++ /dev/null @@ -1,25 +0,0 @@ -import { Tracer } from './tracer'; -import { TracerProvider } from './tracer_provider'; -import { TracerOptions } from './tracer_options'; -/** - * Tracer provider which provides {@link ProxyTracer}s. - * - * Before a delegate is set, tracers provided are NoOp. - * When a delegate is set, traces are provided from the delegate. - * When a delegate is set after tracers have already been provided, - * all tracers already provided will use the provided delegate implementation. - */ -export declare class ProxyTracerProvider implements TracerProvider { - private _delegate?; - /** - * Get a {@link ProxyTracer} - */ - getTracer(name: string, version?: string, options?: TracerOptions): Tracer; - getDelegate(): TracerProvider; - /** - * Set the delegate tracer provider - */ - setDelegate(delegate: TracerProvider): void; - getDelegateTracer(name: string, version?: string, options?: TracerOptions): Tracer | undefined; -} -//# sourceMappingURL=ProxyTracerProvider.d.ts.map \ No newline at end of file diff --git a/packages/node_modules/@opentelemetry/api/trace/Sampler.d.ts b/packages/node_modules/@opentelemetry/api/trace/Sampler.d.ts deleted file mode 100644 index c847eaf36d4..00000000000 --- a/packages/node_modules/@opentelemetry/api/trace/Sampler.d.ts +++ /dev/null @@ -1,31 +0,0 @@ -import { Context } from '../context/types'; -import { SpanAttributes } from './attributes'; -import { Link } from './link'; -import { SamplingResult } from './SamplingResult'; -import { SpanKind } from './span_kind'; -/** - * @deprecated use the one declared in @opentelemetry/sdk-trace-base instead. - * This interface represent a sampler. Sampling is a mechanism to control the - * noise and overhead introduced by OpenTelemetry by reducing the number of - * samples of traces collected and sent to the backend. - */ -export interface Sampler { - /** - * Checks whether span needs to be created and tracked. - * - * @param context Parent Context which may contain a span. - * @param traceId of the span to be created. It can be different from the - * traceId in the {@link SpanContext}. Typically in situations when the - * span to be created starts a new trace. - * @param spanName of the span to be created. - * @param spanKind of the span to be created. - * @param attributes Initial set of SpanAttributes for the Span being constructed. - * @param links Collection of links that will be associated with the Span to - * be created. Typically useful for batch operations. - * @returns a {@link SamplingResult}. - */ - shouldSample(context: Context, traceId: string, spanName: string, spanKind: SpanKind, attributes: SpanAttributes, links: Link[]): SamplingResult; - /** Returns the sampler name or short description with the configuration. */ - toString(): string; -} -//# sourceMappingURL=Sampler.d.ts.map \ No newline at end of file diff --git a/packages/node_modules/@opentelemetry/api/trace/SamplingResult.d.ts b/packages/node_modules/@opentelemetry/api/trace/SamplingResult.d.ts deleted file mode 100644 index f2bb495ff51..00000000000 --- a/packages/node_modules/@opentelemetry/api/trace/SamplingResult.d.ts +++ /dev/null @@ -1,49 +0,0 @@ -import { SpanAttributes } from './attributes'; -import { TraceState } from './trace_state'; -/** - * @deprecated use the one declared in @opentelemetry/sdk-trace-base instead. - * A sampling decision that determines how a {@link Span} will be recorded - * and collected. - */ -export declare enum SamplingDecision { - /** - * `Span.isRecording() === false`, span will not be recorded and all events - * and attributes will be dropped. - */ - NOT_RECORD = 0, - /** - * `Span.isRecording() === true`, but `Sampled` flag in {@link TraceFlags} - * MUST NOT be set. - */ - RECORD = 1, - /** - * `Span.isRecording() === true` AND `Sampled` flag in {@link TraceFlags} - * MUST be set. - */ - RECORD_AND_SAMPLED = 2 -} -/** - * @deprecated use the one declared in @opentelemetry/sdk-trace-base instead. - * A sampling result contains a decision for a {@link Span} and additional - * attributes the sampler would like to added to the Span. - */ -export interface SamplingResult { - /** - * A sampling decision, refer to {@link SamplingDecision} for details. - */ - decision: SamplingDecision; - /** - * The list of attributes returned by SamplingResult MUST be immutable. - * Caller may call {@link Sampler}.shouldSample any number of times and - * can safely cache the returned value. - */ - attributes?: Readonly; - /** - * A {@link TraceState} that will be associated with the {@link Span} through - * the new {@link SpanContext}. Samplers SHOULD return the TraceState from - * the passed-in {@link Context} if they do not intend to change it. Leaving - * the value undefined will also leave the TraceState unchanged. - */ - traceState?: TraceState; -} -//# sourceMappingURL=SamplingResult.d.ts.map \ No newline at end of file diff --git a/packages/node_modules/@opentelemetry/api/trace/SpanOptions.d.ts b/packages/node_modules/@opentelemetry/api/trace/SpanOptions.d.ts deleted file mode 100644 index c8045689b74..00000000000 --- a/packages/node_modules/@opentelemetry/api/trace/SpanOptions.d.ts +++ /dev/null @@ -1,23 +0,0 @@ -import { TimeInput } from '../common/Time'; -import { SpanAttributes } from './attributes'; -import { Link } from './link'; -import { SpanKind } from './span_kind'; -/** - * Options needed for span creation - */ -export interface SpanOptions { - /** - * The SpanKind of a span - * @default {@link SpanKind.INTERNAL} - */ - kind?: SpanKind; - /** A span's attributes */ - attributes?: SpanAttributes; - /** {@link Link}s span to other spans */ - links?: Link[]; - /** A manually specified start time for the created `Span` object. */ - startTime?: TimeInput; - /** The new span should be a root span. (Ignore parent from context). */ - root?: boolean; -} -//# sourceMappingURL=SpanOptions.d.ts.map \ No newline at end of file diff --git a/packages/node_modules/@opentelemetry/api/trace/attributes.d.ts b/packages/node_modules/@opentelemetry/api/trace/attributes.d.ts deleted file mode 100644 index a2a5d2a2f9a..00000000000 --- a/packages/node_modules/@opentelemetry/api/trace/attributes.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -import { Attributes, AttributeValue } from '../common/Attributes'; -/** - * @deprecated please use {@link Attributes} - */ -export declare type SpanAttributes = Attributes; -/** - * @deprecated please use {@link AttributeValue} - */ -export declare type SpanAttributeValue = AttributeValue; -//# sourceMappingURL=attributes.d.ts.map \ No newline at end of file diff --git a/packages/node_modules/@opentelemetry/api/trace/context-utils.d.ts b/packages/node_modules/@opentelemetry/api/trace/context-utils.d.ts deleted file mode 100644 index f35f794218d..00000000000 --- a/packages/node_modules/@opentelemetry/api/trace/context-utils.d.ts +++ /dev/null @@ -1,41 +0,0 @@ -import { Context } from '../context/types'; -import { Span } from './span'; -import { SpanContext } from './span_context'; -/** - * Return the span if one exists - * - * @param context context to get span from - */ -export declare function getSpan(context: Context): Span | undefined; -/** - * Gets the span from the current context, if one exists. - */ -export declare function getActiveSpan(): Span | undefined; -/** - * Set the span on a context - * - * @param context context to use as parent - * @param span span to set active - */ -export declare function setSpan(context: Context, span: Span): Context; -/** - * Remove current span stored in the context - * - * @param context context to delete span from - */ -export declare function deleteSpan(context: Context): Context; -/** - * Wrap span context in a NoopSpan and set as span in a new - * context - * - * @param context context to set active span on - * @param spanContext span context to be wrapped - */ -export declare function setSpanContext(context: Context, spanContext: SpanContext): Context; -/** - * Get the span context of the span if it exists. - * - * @param context context to get values from - */ -export declare function getSpanContext(context: Context): SpanContext | undefined; -//# sourceMappingURL=context-utils.d.ts.map \ No newline at end of file diff --git a/packages/node_modules/@opentelemetry/api/trace/internal/tracestate-impl.d.ts b/packages/node_modules/@opentelemetry/api/trace/internal/tracestate-impl.d.ts deleted file mode 100644 index 9ed5ecb7109..00000000000 --- a/packages/node_modules/@opentelemetry/api/trace/internal/tracestate-impl.d.ts +++ /dev/null @@ -1,22 +0,0 @@ -import { TraceState } from '../trace_state'; -/** - * TraceState must be a class and not a simple object type because of the spec - * requirement (https://www.w3.org/TR/trace-context/#tracestate-field). - * - * Here is the list of allowed mutations: - * - New key-value pair should be added into the beginning of the list - * - The value of any key can be updated. Modified keys MUST be moved to the - * beginning of the list. - */ -export declare class TraceStateImpl implements TraceState { - private _internalState; - constructor(rawTraceState?: string); - set(key: string, value: string): TraceStateImpl; - unset(key: string): TraceStateImpl; - get(key: string): string | undefined; - serialize(): string; - private _parse; - private _keys; - private _clone; -} -//# sourceMappingURL=tracestate-impl.d.ts.map \ No newline at end of file diff --git a/packages/node_modules/@opentelemetry/api/trace/internal/tracestate-validators.d.ts b/packages/node_modules/@opentelemetry/api/trace/internal/tracestate-validators.d.ts deleted file mode 100644 index 4917f99d1ed..00000000000 --- a/packages/node_modules/@opentelemetry/api/trace/internal/tracestate-validators.d.ts +++ /dev/null @@ -1,15 +0,0 @@ -/** - * Key is opaque string up to 256 characters printable. It MUST begin with a - * lowercase letter, and can only contain lowercase letters a-z, digits 0-9, - * underscores _, dashes -, asterisks *, and forward slashes /. - * For multi-tenant vendor scenarios, an at sign (@) can be used to prefix the - * vendor name. Vendors SHOULD set the tenant ID at the beginning of the key. - * see https://www.w3.org/TR/trace-context/#key - */ -export declare function validateKey(key: string): boolean; -/** - * Value is opaque string up to 256 characters printable ASCII RFC0020 - * characters (i.e., the range 0x20 to 0x7E) except comma , and =. - */ -export declare function validateValue(value: string): boolean; -//# sourceMappingURL=tracestate-validators.d.ts.map \ No newline at end of file diff --git a/packages/node_modules/@opentelemetry/api/trace/internal/utils.d.ts b/packages/node_modules/@opentelemetry/api/trace/internal/utils.d.ts deleted file mode 100644 index e3b51fe45b9..00000000000 --- a/packages/node_modules/@opentelemetry/api/trace/internal/utils.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { TraceState } from '../trace_state'; -export declare function createTraceState(rawTraceState?: string): TraceState; -//# sourceMappingURL=utils.d.ts.map \ No newline at end of file diff --git a/packages/node_modules/@opentelemetry/api/trace/invalid-span-constants.d.ts b/packages/node_modules/@opentelemetry/api/trace/invalid-span-constants.d.ts deleted file mode 100644 index e32dab9d602..00000000000 --- a/packages/node_modules/@opentelemetry/api/trace/invalid-span-constants.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -import { SpanContext } from './span_context'; -export declare const INVALID_SPANID = "0000000000000000"; -export declare const INVALID_TRACEID = "00000000000000000000000000000000"; -export declare const INVALID_SPAN_CONTEXT: SpanContext; -//# sourceMappingURL=invalid-span-constants.d.ts.map \ No newline at end of file diff --git a/packages/node_modules/@opentelemetry/api/trace/link.d.ts b/packages/node_modules/@opentelemetry/api/trace/link.d.ts deleted file mode 100644 index 8fc0106276c..00000000000 --- a/packages/node_modules/@opentelemetry/api/trace/link.d.ts +++ /dev/null @@ -1,26 +0,0 @@ -import { SpanAttributes } from './attributes'; -import { SpanContext } from './span_context'; -/** - * A pointer from the current {@link Span} to another span in the same trace or - * in a different trace. - * Few examples of Link usage. - * 1. Batch Processing: A batch of elements may contain elements associated - * with one or more traces/spans. Since there can only be one parent - * SpanContext, Link is used to keep reference to SpanContext of all - * elements in the batch. - * 2. Public Endpoint: A SpanContext in incoming client request on a public - * endpoint is untrusted from service provider perspective. In such case it - * is advisable to start a new trace with appropriate sampling decision. - * However, it is desirable to associate incoming SpanContext to new trace - * initiated on service provider side so two traces (from Client and from - * Service Provider) can be correlated. - */ -export interface Link { - /** The {@link SpanContext} of a linked span. */ - context: SpanContext; - /** A set of {@link SpanAttributes} on the link. */ - attributes?: SpanAttributes; - /** Count of attributes of the link that were dropped due to collection limits */ - droppedAttributesCount?: number; -} -//# sourceMappingURL=link.d.ts.map \ No newline at end of file diff --git a/packages/node_modules/@opentelemetry/api/trace/span.d.ts b/packages/node_modules/@opentelemetry/api/trace/span.d.ts deleted file mode 100644 index 28c6442dbe7..00000000000 --- a/packages/node_modules/@opentelemetry/api/trace/span.d.ts +++ /dev/null @@ -1,120 +0,0 @@ -import { Exception } from '../common/Exception'; -import { TimeInput } from '../common/Time'; -import { SpanAttributes, SpanAttributeValue } from './attributes'; -import { SpanContext } from './span_context'; -import { SpanStatus } from './status'; -import { Link } from './link'; -/** - * An interface that represents a span. A span represents a single operation - * within a trace. Examples of span might include remote procedure calls or a - * in-process function calls to sub-components. A Trace has a single, top-level - * "root" Span that in turn may have zero or more child Spans, which in turn - * may have children. - * - * Spans are created by the {@link Tracer.startSpan} method. - */ -export interface Span { - /** - * Returns the {@link SpanContext} object associated with this Span. - * - * Get an immutable, serializable identifier for this span that can be used - * to create new child spans. Returned SpanContext is usable even after the - * span ends. - * - * @returns the SpanContext object associated with this Span. - */ - spanContext(): SpanContext; - /** - * Sets an attribute to the span. - * - * Sets a single Attribute with the key and value passed as arguments. - * - * @param key the key for this attribute. - * @param value the value for this attribute. Setting a value null or - * undefined is invalid and will result in undefined behavior. - */ - setAttribute(key: string, value: SpanAttributeValue): this; - /** - * Sets attributes to the span. - * - * @param attributes the attributes that will be added. - * null or undefined attribute values - * are invalid and will result in undefined behavior. - */ - setAttributes(attributes: SpanAttributes): this; - /** - * Adds an event to the Span. - * - * @param name the name of the event. - * @param [attributesOrStartTime] the attributes that will be added; these are - * associated with this event. Can be also a start time - * if type is {@type TimeInput} and 3rd param is undefined - * @param [startTime] start time of the event. - */ - addEvent(name: string, attributesOrStartTime?: SpanAttributes | TimeInput, startTime?: TimeInput): this; - /** - * Adds a single link to the span. - * - * Links added after the creation will not affect the sampling decision. - * It is preferred span links be added at span creation. - * - * @param link the link to add. - */ - addLink(link: Link): this; - /** - * Adds multiple links to the span. - * - * Links added after the creation will not affect the sampling decision. - * It is preferred span links be added at span creation. - * - * @param links the links to add. - */ - addLinks(links: Link[]): this; - /** - * Sets a status to the span. If used, this will override the default Span - * status. Default is {@link SpanStatusCode.UNSET}. SetStatus overrides the value - * of previous calls to SetStatus on the Span. - * - * @param status the SpanStatus to set. - */ - setStatus(status: SpanStatus): this; - /** - * Updates the Span name. - * - * This will override the name provided via {@link Tracer.startSpan}. - * - * Upon this update, any sampling behavior based on Span name will depend on - * the implementation. - * - * @param name the Span name. - */ - updateName(name: string): this; - /** - * Marks the end of Span execution. - * - * Call to End of a Span MUST not have any effects on child spans. Those may - * still be running and can be ended later. - * - * Do not return `this`. The Span generally should not be used after it - * is ended so chaining is not desired in this context. - * - * @param [endTime] the time to set as Span's end time. If not provided, - * use the current time as the span's end time. - */ - end(endTime?: TimeInput): void; - /** - * Returns the flag whether this span will be recorded. - * - * @returns true if this Span is active and recording information like events - * with the `AddEvent` operation and attributes using `setAttributes`. - */ - isRecording(): boolean; - /** - * Sets exception as a span event - * @param exception the exception the only accepted values are string or Error - * @param [time] the time to set as Span's event time. If not provided, - * use the current time. - */ - recordException(exception: Exception, time?: TimeInput): void; -} -//# sourceMappingURL=span.d.ts.map \ No newline at end of file diff --git a/packages/node_modules/@opentelemetry/api/trace/span_context.d.ts b/packages/node_modules/@opentelemetry/api/trace/span_context.d.ts deleted file mode 100644 index f30933a1fb5..00000000000 --- a/packages/node_modules/@opentelemetry/api/trace/span_context.d.ts +++ /dev/null @@ -1,53 +0,0 @@ -import { TraceState } from './trace_state'; -/** - * A SpanContext represents the portion of a {@link Span} which must be - * serialized and propagated along side of a {@link Baggage}. - */ -export interface SpanContext { - /** - * The ID of the trace that this span belongs to. It is worldwide unique - * with practically sufficient probability by being made as 16 randomly - * generated bytes, encoded as a 32 lowercase hex characters corresponding to - * 128 bits. - */ - traceId: string; - /** - * The ID of the Span. It is globally unique with practically sufficient - * probability by being made as 8 randomly generated bytes, encoded as a 16 - * lowercase hex characters corresponding to 64 bits. - */ - spanId: string; - /** - * Only true if the SpanContext was propagated from a remote parent. - */ - isRemote?: boolean; - /** - * Trace flags to propagate. - * - * It is represented as 1 byte (bitmap). Bit to represent whether trace is - * sampled or not. When set, the least significant bit documents that the - * caller may have recorded trace data. A caller who does not record trace - * data out-of-band leaves this flag unset. - * - * see {@link TraceFlags} for valid flag values. - */ - traceFlags: number; - /** - * Tracing-system-specific info to propagate. - * - * The tracestate field value is a `list` as defined below. The `list` is a - * series of `list-members` separated by commas `,`, and a list-member is a - * key/value pair separated by an equals sign `=`. Spaces and horizontal tabs - * surrounding `list-members` are ignored. There can be a maximum of 32 - * `list-members` in a `list`. - * More Info: https://www.w3.org/TR/trace-context/#tracestate-field - * - * Examples: - * Single tracing system (generic format): - * tracestate: rojo=00f067aa0ba902b7 - * Multiple tracing systems (with different formatting): - * tracestate: rojo=00f067aa0ba902b7,congo=t61rcWkgMzE - */ - traceState?: TraceState; -} -//# sourceMappingURL=span_context.d.ts.map \ No newline at end of file diff --git a/packages/node_modules/@opentelemetry/api/trace/span_kind.d.ts b/packages/node_modules/@opentelemetry/api/trace/span_kind.d.ts deleted file mode 100644 index a89846f6567..00000000000 --- a/packages/node_modules/@opentelemetry/api/trace/span_kind.d.ts +++ /dev/null @@ -1,27 +0,0 @@ -export declare enum SpanKind { - /** Default value. Indicates that the span is used internally. */ - INTERNAL = 0, - /** - * Indicates that the span covers server-side handling of an RPC or other - * remote request. - */ - SERVER = 1, - /** - * Indicates that the span covers the client-side wrapper around an RPC or - * other remote request. - */ - CLIENT = 2, - /** - * Indicates that the span describes producer sending a message to a - * broker. Unlike client and server, there is no direct critical path latency - * relationship between producer and consumer spans. - */ - PRODUCER = 3, - /** - * Indicates that the span describes consumer receiving a message from a - * broker. Unlike client and server, there is no direct critical path latency - * relationship between producer and consumer spans. - */ - CONSUMER = 4 -} -//# sourceMappingURL=span_kind.d.ts.map \ No newline at end of file diff --git a/packages/node_modules/@opentelemetry/api/trace/spancontext-utils.d.ts b/packages/node_modules/@opentelemetry/api/trace/spancontext-utils.d.ts deleted file mode 100644 index f1911114873..00000000000 --- a/packages/node_modules/@opentelemetry/api/trace/spancontext-utils.d.ts +++ /dev/null @@ -1,17 +0,0 @@ -import { Span } from './span'; -import { SpanContext } from './span_context'; -export declare function isValidTraceId(traceId: string): boolean; -export declare function isValidSpanId(spanId: string): boolean; -/** - * Returns true if this {@link SpanContext} is valid. - * @return true if this {@link SpanContext} is valid. - */ -export declare function isSpanContextValid(spanContext: SpanContext): boolean; -/** - * Wrap the given {@link SpanContext} in a new non-recording {@link Span} - * - * @param spanContext span context to be wrapped - * @returns a new non-recording {@link Span} with the provided context - */ -export declare function wrapSpanContext(spanContext: SpanContext): Span; -//# sourceMappingURL=spancontext-utils.d.ts.map \ No newline at end of file diff --git a/packages/node_modules/@opentelemetry/api/trace/status.d.ts b/packages/node_modules/@opentelemetry/api/trace/status.d.ts deleted file mode 100644 index ab19a68f72e..00000000000 --- a/packages/node_modules/@opentelemetry/api/trace/status.d.ts +++ /dev/null @@ -1,25 +0,0 @@ -export interface SpanStatus { - /** The status code of this message. */ - code: SpanStatusCode; - /** A developer-facing error message. */ - message?: string; -} -/** - * An enumeration of status codes. - */ -export declare enum SpanStatusCode { - /** - * The default status. - */ - UNSET = 0, - /** - * The operation has been validated by an Application developer or - * Operator to have completed successfully. - */ - OK = 1, - /** - * The operation contains an error. - */ - ERROR = 2 -} -//# sourceMappingURL=status.d.ts.map \ No newline at end of file diff --git a/packages/node_modules/@opentelemetry/api/trace/trace_flags.d.ts b/packages/node_modules/@opentelemetry/api/trace/trace_flags.d.ts deleted file mode 100644 index 11288ba95aa..00000000000 --- a/packages/node_modules/@opentelemetry/api/trace/trace_flags.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -export declare enum TraceFlags { - /** Represents no flag set. */ - NONE = 0, - /** Bit to represent whether trace is sampled in trace flags. */ - SAMPLED = 1 -} -//# sourceMappingURL=trace_flags.d.ts.map \ No newline at end of file diff --git a/packages/node_modules/@opentelemetry/api/trace/trace_state.d.ts b/packages/node_modules/@opentelemetry/api/trace/trace_state.d.ts deleted file mode 100644 index f275b8bed66..00000000000 --- a/packages/node_modules/@opentelemetry/api/trace/trace_state.d.ts +++ /dev/null @@ -1,38 +0,0 @@ -export interface TraceState { - /** - * Create a new TraceState which inherits from this TraceState and has the - * given key set. - * The new entry will always be added in the front of the list of states. - * - * @param key key of the TraceState entry. - * @param value value of the TraceState entry. - */ - set(key: string, value: string): TraceState; - /** - * Return a new TraceState which inherits from this TraceState but does not - * contain the given key. - * - * @param key the key for the TraceState entry to be removed. - */ - unset(key: string): TraceState; - /** - * Returns the value to which the specified key is mapped, or `undefined` if - * this map contains no mapping for the key. - * - * @param key with which the specified value is to be associated. - * @returns the value to which the specified key is mapped, or `undefined` if - * this map contains no mapping for the key. - */ - get(key: string): string | undefined; - /** - * Serializes the TraceState to a `list` as defined below. The `list` is a - * series of `list-members` separated by commas `,`, and a list-member is a - * key/value pair separated by an equals sign `=`. Spaces and horizontal tabs - * surrounding `list-members` are ignored. There can be a maximum of 32 - * `list-members` in a `list`. - * - * @returns the serialized string. - */ - serialize(): string; -} -//# sourceMappingURL=trace_state.d.ts.map \ No newline at end of file diff --git a/packages/node_modules/@opentelemetry/api/trace/tracer.d.ts b/packages/node_modules/@opentelemetry/api/trace/tracer.d.ts deleted file mode 100644 index 25090899e8d..00000000000 --- a/packages/node_modules/@opentelemetry/api/trace/tracer.d.ts +++ /dev/null @@ -1,71 +0,0 @@ -import { Context } from '../context/types'; -import { Span } from './span'; -import { SpanOptions } from './SpanOptions'; -/** - * Tracer provides an interface for creating {@link Span}s. - */ -export interface Tracer { - /** - * Starts a new {@link Span}. Start the span without setting it on context. - * - * This method do NOT modify the current Context. - * - * @param name The name of the span - * @param [options] SpanOptions used for span creation - * @param [context] Context to use to extract parent - * @returns Span The newly created span - * @example - * const span = tracer.startSpan('op'); - * span.setAttribute('key', 'value'); - * span.end(); - */ - startSpan(name: string, options?: SpanOptions, context?: Context): Span; - /** - * Starts a new {@link Span} and calls the given function passing it the - * created span as first argument. - * Additionally the new span gets set in context and this context is activated - * for the duration of the function call. - * - * @param name The name of the span - * @param [options] SpanOptions used for span creation - * @param [context] Context to use to extract parent - * @param fn function called in the context of the span and receives the newly created span as an argument - * @returns return value of fn - * @example - * const something = tracer.startActiveSpan('op', span => { - * try { - * do some work - * span.setStatus({code: SpanStatusCode.OK}); - * return something; - * } catch (err) { - * span.setStatus({ - * code: SpanStatusCode.ERROR, - * message: err.message, - * }); - * throw err; - * } finally { - * span.end(); - * } - * }); - * - * @example - * const span = tracer.startActiveSpan('op', span => { - * try { - * do some work - * return span; - * } catch (err) { - * span.setStatus({ - * code: SpanStatusCode.ERROR, - * message: err.message, - * }); - * throw err; - * } - * }); - * do some more work - * span.end(); - */ - startActiveSpan unknown>(name: string, fn: F): ReturnType; - startActiveSpan unknown>(name: string, options: SpanOptions, fn: F): ReturnType; - startActiveSpan unknown>(name: string, options: SpanOptions, context: Context, fn: F): ReturnType; -} -//# sourceMappingURL=tracer.d.ts.map \ No newline at end of file diff --git a/packages/node_modules/@opentelemetry/api/trace/tracer_options.d.ts b/packages/node_modules/@opentelemetry/api/trace/tracer_options.d.ts deleted file mode 100644 index f3bbccfc25e..00000000000 --- a/packages/node_modules/@opentelemetry/api/trace/tracer_options.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -/** - * An interface describes additional metadata of a tracer. - */ -export interface TracerOptions { - /** - * The schemaUrl of the tracer or instrumentation library - */ - schemaUrl?: string; -} -//# sourceMappingURL=tracer_options.d.ts.map \ No newline at end of file diff --git a/packages/node_modules/@opentelemetry/api/trace/tracer_provider.d.ts b/packages/node_modules/@opentelemetry/api/trace/tracer_provider.d.ts deleted file mode 100644 index 9b2f7a954c6..00000000000 --- a/packages/node_modules/@opentelemetry/api/trace/tracer_provider.d.ts +++ /dev/null @@ -1,21 +0,0 @@ -import { Tracer } from './tracer'; -import { TracerOptions } from './tracer_options'; -/** - * A registry for creating named {@link Tracer}s. - */ -export interface TracerProvider { - /** - * Returns a Tracer, creating one if one with the given name and version is - * not already created. - * - * This function may return different Tracer types (e.g. - * {@link NoopTracerProvider} vs. a functional tracer). - * - * @param name The name of the tracer or instrumentation library. - * @param version The version of the tracer or instrumentation library. - * @param options The options of the tracer or instrumentation library. - * @returns Tracer A Tracer with the given name and version - */ - getTracer(name: string, version?: string, options?: TracerOptions): Tracer; -} -//# sourceMappingURL=tracer_provider.d.ts.map \ No newline at end of file diff --git a/packages/node_modules/@opentelemetry/api/version.d.ts b/packages/node_modules/@opentelemetry/api/version.d.ts deleted file mode 100644 index 40f036592c6..00000000000 --- a/packages/node_modules/@opentelemetry/api/version.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export declare const VERSION = "1.9.0"; -//# sourceMappingURL=version.d.ts.map \ No newline at end of file diff --git a/packages/node_modules/@opentelemetry/resources/index.js b/packages/node_modules/@opentelemetry/resources/index.js index 21c584042e8..f48e69d7b1c 100644 --- a/packages/node_modules/@opentelemetry/resources/index.js +++ b/packages/node_modules/@opentelemetry/resources/index.js @@ -1 +1 @@ -(()=>{"use strict";var e={4419:function(e,t,r){r.d(t,{K:()=>s});var n=r(7154),o=r(6627),i=r(2008),a=r(8212),u=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},c=function(e,t,r){if(r||2==arguments.length)for(var n,o=0,i=t.length;o";l.warn("Current logger will be overwritten from "+f),E.warn("Current logger will overwrite one already registered from "+f)}return(0,a.$G)("diag",E,t,!0)},t.disable=function(){(0,a.kv)("diag",t)},t.createComponentLogger=function(e){return new n.V(e)},t.verbose=e("verbose"),t.debug=e("debug"),t.info=e("info"),t.warn=e("warn"),t.error=e("error")}return e.instance=function(){return this._instance||(this._instance=new e),this._instance},e}()},4267:function(e,t,r){r.d(t,{s:()=>n});var n=r(4419).K.instance()},7154:function(e,t,r){r.d(t,{V:()=>a});var n=r(8212),o=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},i=function(e,t,r){if(r||2==arguments.length)for(var n,o=0,i=t.length;oo});var n=r(2008);function o(e,t){function r(r,n){var o=t[r];return"function"==typeof o&&e>=n?o.bind(t):function(){}}return en.u.ALL&&(e=n.u.ALL),t=t||{},{error:r("error",n.u.ERROR),warn:r("warn",n.u.WARN),info:r("info",n.u.INFO),debug:r("debug",n.u.DEBUG),verbose:r("verbose",n.u.VERBOSE)}}},2008:function(e,t,r){var n,o;r.d(t,{u:()=>n}),(o=n||(n={}))[o.NONE=0]="NONE",o[o.ERROR=30]="ERROR",o[o.WARN=50]="WARN",o[o.INFO=60]="INFO",o[o.DEBUG=70]="DEBUG",o[o.VERBOSE=80]="VERBOSE",o[o.ALL=9999]="ALL"},8212:function(e,t,r){r.d(t,{$G:()=>c,kv:()=>l,mS:()=>s});var n=r(1063),o=r(93),i=r(2087),a=Symbol.for("opentelemetry.js.api."+o.x.split(".")[0]),u=n.X;function c(e,t,r,n){void 0===n&&(n=!1);var i,c=u[a]=null!=(i=u[a])?i:{version:o.x};if(!n&&c[e]){var s=Error("@opentelemetry/api: Attempted duplicate registration of API: "+e);return r.error(s.stack||s.message),!1}if(c.version!==o.x){var s=Error("@opentelemetry/api: Registration of version v"+c.version+" for "+e+" does not match previously registered API v"+o.x);return r.error(s.stack||s.message),!1}return c[e]=t,r.debug("@opentelemetry/api: Registered a global for "+e+" v"+o.x+"."),!0}function s(e){var t,r,n=null==(t=u[a])?void 0:t.version;if(n&&(0,i.$)(n))return null==(r=u[a])?void 0:r[e]}function l(e,t){t.debug("@opentelemetry/api: Unregistering a global for "+e+" v"+o.x+".");var r=u[a];r&&delete r[e]}},2087:function(e,t,r){r.d(t,{$:()=>i});var n=r(93),o=/^(\d+)\.(\d+)\.(\d+)(-(.+))?$/,i=function(e){var t=new Set([e]),r=new Set,n=e.match(o);if(!n)return function(){return!1};var i={major:+n[1],minor:+n[2],patch:+n[3],prerelease:n[4]};if(null!=i.prerelease)return function(t){return t===e};function a(e){return r.add(e),!1}return function(e){if(t.has(e))return!0;if(r.has(e))return!1;var n=e.match(o);if(!n)return a(e);var u={major:+n[1],minor:+n[2],patch:+n[3],prerelease:n[4]};if(null!=u.prerelease||i.major!==u.major)return a(e);if(0===i.major)return i.minor===u.minor&&i.patch<=u.patch?(t.add(e),!0):a(e);return i.minor<=u.minor?(t.add(e),!0):a(e)}}(n.x)},1063:function(e,t,r){r.d(t,{X:()=>n});var n="object"==typeof globalThis?globalThis:global},93:function(e,t,r){r.d(t,{x:()=>n});var n="1.9.0"},2872:function(e,t,r){r.d(t,{q:()=>o});let n=require("child_process");var o=require("util").promisify(n.exec)},2341:function(e,t,r){r.d(t,{D:()=>u});var n=r(9896),o=r(2872),i=r(4267),a=function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){var c=[i,u];if(r)throw TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&c[0]?n.return:c[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,c[1])).done)return o;switch(n=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return a.label++,{value:c[1],done:!1};case 5:a.label++,n=c[1],c=[0];continue;case 7:c=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===c[0]||2===c[0])){a=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]a});var n=r(2872),o=r(4267),i=function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){var c=[i,u];if(r)throw TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&c[0]?n.return:c[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,c[1])).done)return o;switch(n=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return a.label++,{value:c[1],done:!1};case 5:a.label++,n=c[1],c=[0];continue;case 7:c=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===c[0]||2===c[0])){a=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]u});var n=r(9896),o=r(4267),i=function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){var c=[i,u];if(r)throw TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&c[0]?n.return:c[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,c[1])).done)return o;switch(n=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return a.label++,{value:c[1],done:!1};case 5:a.label++,n=c[1],c=[0];continue;case 7:c=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===c[0]||2===c[0])){a=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};function u(){var e,t,r,u;return e=this,t=void 0,r=void 0,u=function(){var e,t,r,u,c,s,l;return i(this,function(i){switch(i.label){case 0:e=["/etc/machine-id","/var/lib/dbus/machine-id"],i.label=1;case 1:i.trys.push([1,8,9,10]),r=(t=a(e)).next(),i.label=2;case 2:if(r.done)return[3,7];u=r.value,i.label=3;case 3:return i.trys.push([3,5,,6]),[4,n.promises.readFile(u,{encoding:"utf8"})];case 4:return[2,i.sent().trim()];case 5:return c=i.sent(),o.s.debug("error reading machine id: "+c),[3,6];case 6:return r=t.next(),[3,2];case 7:return[3,10];case 8:return s={error:i.sent()},[3,10];case 9:try{r&&!r.done&&(l=t.return)&&l.call(t)}finally{if(s)throw s.error}return[7];case 10:return[2,""]}})},new(r||(r=Promise))(function(n,o){function i(e){try{c(u.next(e))}catch(e){o(e)}}function a(e){try{c(u.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?n(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(i,a)}c((u=u.apply(e,t||[])).next())})}},2063:function(e,t,r){r.d(t,{D:()=>i});var n=r(4267),o=function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){var c=[i,u];if(r)throw TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&c[0]?n.return:c[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,c[1])).done)return o;switch(n=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return a.label++,{value:c[1],done:!1};case 5:a.label++,n=c[1],c=[0];continue;case 7:c=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===c[0]||2===c[0])){a=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]u});var n=r(932),o=r(2872),i=r(4267),a=function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){var c=[i,u];if(r)throw TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&c[0]?n.return:c[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,c[1])).done)return o;switch(n=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return a.label++,{value:c[1],done:!1};case 5:a.label++,n=c[1],c=[0];continue;case 7:c=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===c[0]||2===c[0])){a=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};(()=>{r.r(n),r.d(n,{envDetector:()=>U,envDetectorSync:()=>C,hostDetector:()=>B,Resource:()=>h,osDetector:()=>k,detectResources:()=>W,osDetectorSync:()=>G,browserDetectorSync:()=>R,processDetectorSync:()=>j,detectResourcesSync:()=>J,browserDetector:()=>L,processDetector:()=>F,defaultServiceName:()=>O,hostDetectorSync:()=>D,serviceInstanceIdDetectorSync:()=>Y});var e,t,o,i,a=r(4267),u="process.runtime.name",c="process.runtime.version",s="process.runtime.description",l="service.name",E="telemetry.sdk.name",f="telemetry.sdk.language",_="telemetry.sdk.version",T=((t={})[E]="opentelemetry",t[u]="node",t[f]="nodejs",t[_]="1.30.1",t);function O(){return"unknown_service:"+process.argv0}var p=function(){return(p=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])&&(6===c[0]||2===c[0])){a=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},h=function(){function e(e,t){var r,n=this;this._attributes=e,this.asyncAttributesPending=null!=t,this._syncAttributes=null!=(r=this._attributes)?r:{},this._asyncAttributesPromise=null==t?void 0:t.then(function(e){return n._attributes=Object.assign({},n._attributes,e),n.asyncAttributesPending=!1,e},function(e){return a.s.debug("a resource's async attributes promise rejected: %s",e),n.asyncAttributesPending=!1,{}})}return e.empty=function(){return e.EMPTY},e.default=function(){var t;return new e(((t={})[l]=O(),t[f]=T[f],t[E]=T[E],t[_]=T[_],t))},Object.defineProperty(e.prototype,"attributes",{get:function(){var e;return this.asyncAttributesPending&&a.s.error("Accessing resource attributes before async attributes settled"),null!=(e=this._attributes)?e:{}},enumerable:!1,configurable:!0}),e.prototype.waitForAsyncAttributes=function(){var e,t,r,n;return e=this,t=void 0,r=void 0,n=function(){return d(this,function(e){switch(e.label){case 0:if(!this.asyncAttributesPending)return[3,2];return[4,this._asyncAttributesPromise];case 1:e.sent(),e.label=2;case 2:return[2]}})},new(r||(r=Promise))(function(o,i){function a(e){try{c(n.next(e))}catch(e){i(e)}}function u(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(a,u)}c((n=n.apply(e,t||[])).next())})},e.prototype.merge=function(t){var r,n=this;if(!t)return this;var o=p(p({},this._syncAttributes),null!=(r=t._syncAttributes)?r:t.attributes);return this._asyncAttributesPromise||t._asyncAttributesPromise?new e(o,Promise.all([this._asyncAttributesPromise,t._asyncAttributesPromise]).then(function(e){var r,o=y(e,2),i=o[0],a=o[1];return p(p(p(p({},n._syncAttributes),i),null!=(r=t._syncAttributes)?r:t.attributes),a)})):new e(o)},e.EMPTY=new e({}),e}(),v=function(){return(v=Object.assign||function(e){for(var t,r=1,n=arguments.length;r=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},N=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},C=new(function(){function e(){this._MAX_LENGTH=255,this._COMMA_SEPARATOR=",",this._LABEL_KEY_VALUE_SPLITTER="=",this._ERROR_MESSAGE_INVALID_CHARS="should be a ASCII string with a length greater than 0 and not exceed "+this._MAX_LENGTH+" characters.",this._ERROR_MESSAGE_INVALID_VALUE="should be a ASCII string with a length not exceed "+this._MAX_LENGTH+" characters."}return e.prototype.detect=function(e){var t,r={},n=(t=function(e){var t={};for(var r in I)if("OTEL_LOG_LEVEL"===r)!function(e,t,r){var n=r[e];if("string"==typeof n){var o=m[n.toUpperCase()];null!=o&&(t[e]=o)}}(r,t,e);else if(A.indexOf(r)>-1)!function(e,t,r){if(void 0!==r[e]){var n=String(r[e]);t[e]="true"===n.toLowerCase()}}(r,t,e);else if(P.indexOf(r)>-1)!function(e,t,r,n,o){if(void 0===n&&(n=-1/0),void 0===o&&(o=1/0),void 0!==r[e]){var i=Number(r[e]);isNaN(i)||(io?t[e]=o:t[e]=i)}}(r,t,e);else if(S.indexOf(r)>-1)!function(e,t,r,n){void 0===n&&(n=",");var o=r[e];"string"==typeof o&&(t[e]=o.split(n).map(function(e){return e.trim()}))}(r,t,e);else{var n=e[r];null!=n&&(t[r]=String(n))}return t}(process.env),Object.assign({},I,t)),o=n.OTEL_RESOURCE_ATTRIBUTES,i=n.OTEL_SERVICE_NAME;if(o)try{var u=this._parseResourceAttributes(o);Object.assign(r,u)}catch(e){a.s.debug("EnvDetector failed: "+e.message)}return i&&(r[l]=i),new h(r)},e.prototype._parseResourceAttributes=function(e){if(!e)return{};var t,r,n={},o=e.split(this._COMMA_SEPARATOR,-1);try{for(var i=w(o),a=i.next();!a.done;a=i.next()){var u=a.value.split(this._LABEL_KEY_VALUE_SPLITTER,-1);if(2===u.length){var c=N(u,2),s=c[0],l=c[1];if(s=s.trim(),l=l.trim().split(/^"|"$/).join(""),!this._isValidAndNotEmpty(s))throw Error("Attribute key "+this._ERROR_MESSAGE_INVALID_CHARS);if(!this._isValid(l))throw Error("Attribute value "+this._ERROR_MESSAGE_INVALID_VALUE);n[s]=decodeURIComponent(l)}}}catch(e){t={error:e}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}return n},e.prototype._isValid=function(e){return e.length<=this._MAX_LENGTH&&this._isBaggageOctetString(e)},e.prototype._isBaggageOctetString=function(e){for(var t=0;t126)return!1}return!0},e.prototype._isValidAndNotEmpty=function(e){return e.length>0&&this._isValid(e)},e}()),U=new(function(){function e(){}return e.prototype.detect=function(e){return Promise.resolve(C.detect(e))},e}());let M=require("os");var x=function(e){switch(e){case"arm":return"arm32";case"ppc":return"ppc32";case"x64":return"amd64";default:return e}},X=function(e){switch(e){case"sunos":return"solaris";case"win32":return"windows";default:return e}};switch(r(932).platform){case"darwin":i=r(7821).D;break;case"linux":i=r(2238).D;break;case"freebsd":i=r(2341).D;break;case"win32":i=r(2618).D;break;default:i=r(2063).D}var D=new(function(){function e(){}return e.prototype.detect=function(e){var t;return new h(((t={})["host.name"]=(0,M.hostname)(),t["host.arch"]=x((0,M.arch)()),t),this._getAsyncAttributes())},e.prototype._getAsyncAttributes=function(){return i().then(function(e){var t={};return e&&(t["host.id"]=e),t})},e}()),B=new(function(){function e(){}return e.prototype.detect=function(e){return Promise.resolve(D.detect(e))},e}()),G=new(function(){function e(){}return e.prototype.detect=function(e){var t;return new h(((t={})["os.type"]=X((0,M.platform)()),t["os.version"]=(0,M.release)(),t))},e}()),k=new(function(){function e(){}return e.prototype.detect=function(e){return Promise.resolve(G.detect(e))},e}()),V=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},H=function(e,t,r){if(r||2==arguments.length)for(var n,o=0,i=t.length;o1&&(r["process.command"]=process.argv[1]);try{var n=M.userInfo();r["process.owner"]=n.username}catch(e){a.s.debug("error obtaining process owner: "+e)}return new h(r)},e}()),F=new(function(){function e(){}return e.prototype.detect=function(e){return Promise.resolve(j.detect(e))},e}());let K=require("crypto");var Y=new(function(){function e(){}return e.prototype.detect=function(e){var t;return new h(((t={})["service.instance.id"]=(0,K.randomUUID)(),t))},e}()),q=function(e,t,r,n){return new(r||(r=Promise))(function(o,i){function a(e){try{c(n.next(e))}catch(e){i(e)}}function u(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(a,u)}c((n=n.apply(e,t||[])).next())})},Z=function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){var c=[i,u];if(r)throw TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&c[0]?n.return:c[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,c[1])).done)return o;switch(n=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return a.label++,{value:c[1],done:!1};case 5:a.label++,n=c[1],c=[0];continue;case 7:c=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===c[0]||2===c[0])){a=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]0){var t=JSON.stringify(e.attributes,null,4);a.s.verbose(t)}})}})(),module.exports=n})(); \ No newline at end of file +(()=>{"use strict";var e={7259:function(e,t,r){r.d(t,{K:()=>s});var n=r(7066),o=r(6347),i=r(9232),a=r(844),u=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},c=function(e,t,r){if(r||2==arguments.length)for(var n,o=0,i=t.length;o";l.warn("Current logger will be overwritten from "+f),E.warn("Current logger will overwrite one already registered from "+f)}return(0,a.$G)("diag",E,t,!0)},t.disable=function(){(0,a.kv)("diag",t)},t.createComponentLogger=function(e){return new n.V(e)},t.verbose=e("verbose"),t.debug=e("debug"),t.info=e("info"),t.warn=e("warn"),t.error=e("error")}return e.instance=function(){return this._instance||(this._instance=new e),this._instance},e}()},2339:function(e,t,r){r.d(t,{s:()=>n});var n=r(7259).K.instance()},7066:function(e,t,r){r.d(t,{V:()=>a});var n=r(844),o=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},i=function(e,t,r){if(r||2==arguments.length)for(var n,o=0,i=t.length;oo});var n=r(9232);function o(e,t){function r(r,n){var o=t[r];return"function"==typeof o&&e>=n?o.bind(t):function(){}}return en.u.ALL&&(e=n.u.ALL),t=t||{},{error:r("error",n.u.ERROR),warn:r("warn",n.u.WARN),info:r("info",n.u.INFO),debug:r("debug",n.u.DEBUG),verbose:r("verbose",n.u.VERBOSE)}}},9232:function(e,t,r){var n,o;r.d(t,{u:()=>n}),(o=n||(n={}))[o.NONE=0]="NONE",o[o.ERROR=30]="ERROR",o[o.WARN=50]="WARN",o[o.INFO=60]="INFO",o[o.DEBUG=70]="DEBUG",o[o.VERBOSE=80]="VERBOSE",o[o.ALL=9999]="ALL"},844:function(e,t,r){r.d(t,{$G:()=>c,kv:()=>l,mS:()=>s});var n=r(4111),o=r(8533),i=r(5391),a=Symbol.for("opentelemetry.js.api."+o.x.split(".")[0]),u=n.X;function c(e,t,r,n){void 0===n&&(n=!1);var i,c=u[a]=null!=(i=u[a])?i:{version:o.x};if(!n&&c[e]){var s=Error("@opentelemetry/api: Attempted duplicate registration of API: "+e);return r.error(s.stack||s.message),!1}if(c.version!==o.x){var s=Error("@opentelemetry/api: Registration of version v"+c.version+" for "+e+" does not match previously registered API v"+o.x);return r.error(s.stack||s.message),!1}return c[e]=t,r.debug("@opentelemetry/api: Registered a global for "+e+" v"+o.x+"."),!0}function s(e){var t,r,n=null==(t=u[a])?void 0:t.version;if(n&&(0,i.$)(n))return null==(r=u[a])?void 0:r[e]}function l(e,t){t.debug("@opentelemetry/api: Unregistering a global for "+e+" v"+o.x+".");var r=u[a];r&&delete r[e]}},5391:function(e,t,r){r.d(t,{$:()=>i});var n=r(8533),o=/^(\d+)\.(\d+)\.(\d+)(-(.+))?$/,i=function(e){var t=new Set([e]),r=new Set,n=e.match(o);if(!n)return function(){return!1};var i={major:+n[1],minor:+n[2],patch:+n[3],prerelease:n[4]};if(null!=i.prerelease)return function(t){return t===e};function a(e){return r.add(e),!1}return function(e){if(t.has(e))return!0;if(r.has(e))return!1;var n=e.match(o);if(!n)return a(e);var u={major:+n[1],minor:+n[2],patch:+n[3],prerelease:n[4]};if(null!=u.prerelease||i.major!==u.major)return a(e);if(0===i.major)return i.minor===u.minor&&i.patch<=u.patch?(t.add(e),!0):a(e);return i.minor<=u.minor?(t.add(e),!0):a(e)}}(n.x)},4111:function(e,t,r){r.d(t,{X:()=>n});var n="object"==typeof globalThis?globalThis:global},8533:function(e,t,r){r.d(t,{x:()=>n});var n="1.9.0"},2872:function(e,t,r){r.d(t,{q:()=>o});let n=require("child_process");var o=require("util").promisify(n.exec)},2341:function(e,t,r){r.d(t,{D:()=>u});var n=r(9896),o=r(2872),i=r(2339),a=function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){var c=[i,u];if(r)throw TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&c[0]?n.return:c[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,c[1])).done)return o;switch(n=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return a.label++,{value:c[1],done:!1};case 5:a.label++,n=c[1],c=[0];continue;case 7:c=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===c[0]||2===c[0])){a=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]a});var n=r(2872),o=r(2339),i=function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){var c=[i,u];if(r)throw TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&c[0]?n.return:c[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,c[1])).done)return o;switch(n=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return a.label++,{value:c[1],done:!1};case 5:a.label++,n=c[1],c=[0];continue;case 7:c=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===c[0]||2===c[0])){a=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]u});var n=r(9896),o=r(2339),i=function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){var c=[i,u];if(r)throw TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&c[0]?n.return:c[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,c[1])).done)return o;switch(n=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return a.label++,{value:c[1],done:!1};case 5:a.label++,n=c[1],c=[0];continue;case 7:c=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===c[0]||2===c[0])){a=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};function u(){var e,t,r,u;return e=this,t=void 0,r=void 0,u=function(){var e,t,r,u,c,s,l;return i(this,function(i){switch(i.label){case 0:e=["/etc/machine-id","/var/lib/dbus/machine-id"],i.label=1;case 1:i.trys.push([1,8,9,10]),r=(t=a(e)).next(),i.label=2;case 2:if(r.done)return[3,7];u=r.value,i.label=3;case 3:return i.trys.push([3,5,,6]),[4,n.promises.readFile(u,{encoding:"utf8"})];case 4:return[2,i.sent().trim()];case 5:return c=i.sent(),o.s.debug("error reading machine id: "+c),[3,6];case 6:return r=t.next(),[3,2];case 7:return[3,10];case 8:return s={error:i.sent()},[3,10];case 9:try{r&&!r.done&&(l=t.return)&&l.call(t)}finally{if(s)throw s.error}return[7];case 10:return[2,""]}})},new(r||(r=Promise))(function(n,o){function i(e){try{c(u.next(e))}catch(e){o(e)}}function a(e){try{c(u.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?n(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(i,a)}c((u=u.apply(e,t||[])).next())})}},2063:function(e,t,r){r.d(t,{D:()=>i});var n=r(2339),o=function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){var c=[i,u];if(r)throw TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&c[0]?n.return:c[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,c[1])).done)return o;switch(n=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return a.label++,{value:c[1],done:!1};case 5:a.label++,n=c[1],c=[0];continue;case 7:c=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===c[0]||2===c[0])){a=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]u});var n=r(932),o=r(2872),i=r(2339),a=function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){var c=[i,u];if(r)throw TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&c[0]?n.return:c[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,c[1])).done)return o;switch(n=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return a.label++,{value:c[1],done:!1};case 5:a.label++,n=c[1],c=[0];continue;case 7:c=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===c[0]||2===c[0])){a=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};(()=>{r.r(n),r.d(n,{envDetector:()=>U,envDetectorSync:()=>C,hostDetector:()=>B,Resource:()=>h,osDetector:()=>k,detectResources:()=>W,osDetectorSync:()=>G,browserDetectorSync:()=>R,processDetectorSync:()=>j,detectResourcesSync:()=>J,browserDetector:()=>L,processDetector:()=>F,defaultServiceName:()=>O,hostDetectorSync:()=>D,serviceInstanceIdDetectorSync:()=>Y});var e,t,o,i,a=r(2339),u="process.runtime.name",c="process.runtime.version",s="process.runtime.description",l="service.name",E="telemetry.sdk.name",f="telemetry.sdk.language",_="telemetry.sdk.version",T=((t={})[E]="opentelemetry",t[u]="node",t[f]="nodejs",t[_]="1.30.1",t);function O(){return"unknown_service:"+process.argv0}var p=function(){return(p=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])&&(6===c[0]||2===c[0])){a=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},h=function(){function e(e,t){var r,n=this;this._attributes=e,this.asyncAttributesPending=null!=t,this._syncAttributes=null!=(r=this._attributes)?r:{},this._asyncAttributesPromise=null==t?void 0:t.then(function(e){return n._attributes=Object.assign({},n._attributes,e),n.asyncAttributesPending=!1,e},function(e){return a.s.debug("a resource's async attributes promise rejected: %s",e),n.asyncAttributesPending=!1,{}})}return e.empty=function(){return e.EMPTY},e.default=function(){var t;return new e(((t={})[l]=O(),t[f]=T[f],t[E]=T[E],t[_]=T[_],t))},Object.defineProperty(e.prototype,"attributes",{get:function(){var e;return this.asyncAttributesPending&&a.s.error("Accessing resource attributes before async attributes settled"),null!=(e=this._attributes)?e:{}},enumerable:!1,configurable:!0}),e.prototype.waitForAsyncAttributes=function(){var e,t,r,n;return e=this,t=void 0,r=void 0,n=function(){return d(this,function(e){switch(e.label){case 0:if(!this.asyncAttributesPending)return[3,2];return[4,this._asyncAttributesPromise];case 1:e.sent(),e.label=2;case 2:return[2]}})},new(r||(r=Promise))(function(o,i){function a(e){try{c(n.next(e))}catch(e){i(e)}}function u(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(a,u)}c((n=n.apply(e,t||[])).next())})},e.prototype.merge=function(t){var r,n=this;if(!t)return this;var o=p(p({},this._syncAttributes),null!=(r=t._syncAttributes)?r:t.attributes);return this._asyncAttributesPromise||t._asyncAttributesPromise?new e(o,Promise.all([this._asyncAttributesPromise,t._asyncAttributesPromise]).then(function(e){var r,o=y(e,2),i=o[0],a=o[1];return p(p(p(p({},n._syncAttributes),i),null!=(r=t._syncAttributes)?r:t.attributes),a)})):new e(o)},e.EMPTY=new e({}),e}(),v=function(){return(v=Object.assign||function(e){for(var t,r=1,n=arguments.length;r=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},N=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},C=new(function(){function e(){this._MAX_LENGTH=255,this._COMMA_SEPARATOR=",",this._LABEL_KEY_VALUE_SPLITTER="=",this._ERROR_MESSAGE_INVALID_CHARS="should be a ASCII string with a length greater than 0 and not exceed "+this._MAX_LENGTH+" characters.",this._ERROR_MESSAGE_INVALID_VALUE="should be a ASCII string with a length not exceed "+this._MAX_LENGTH+" characters."}return e.prototype.detect=function(e){var t,r={},n=(t=function(e){var t={};for(var r in I)if("OTEL_LOG_LEVEL"===r)!function(e,t,r){var n=r[e];if("string"==typeof n){var o=m[n.toUpperCase()];null!=o&&(t[e]=o)}}(r,t,e);else if(A.indexOf(r)>-1)!function(e,t,r){if(void 0!==r[e]){var n=String(r[e]);t[e]="true"===n.toLowerCase()}}(r,t,e);else if(P.indexOf(r)>-1)!function(e,t,r,n,o){if(void 0===n&&(n=-1/0),void 0===o&&(o=1/0),void 0!==r[e]){var i=Number(r[e]);isNaN(i)||(io?t[e]=o:t[e]=i)}}(r,t,e);else if(S.indexOf(r)>-1)!function(e,t,r,n){void 0===n&&(n=",");var o=r[e];"string"==typeof o&&(t[e]=o.split(n).map(function(e){return e.trim()}))}(r,t,e);else{var n=e[r];null!=n&&(t[r]=String(n))}return t}(process.env),Object.assign({},I,t)),o=n.OTEL_RESOURCE_ATTRIBUTES,i=n.OTEL_SERVICE_NAME;if(o)try{var u=this._parseResourceAttributes(o);Object.assign(r,u)}catch(e){a.s.debug("EnvDetector failed: "+e.message)}return i&&(r[l]=i),new h(r)},e.prototype._parseResourceAttributes=function(e){if(!e)return{};var t,r,n={},o=e.split(this._COMMA_SEPARATOR,-1);try{for(var i=w(o),a=i.next();!a.done;a=i.next()){var u=a.value.split(this._LABEL_KEY_VALUE_SPLITTER,-1);if(2===u.length){var c=N(u,2),s=c[0],l=c[1];if(s=s.trim(),l=l.trim().split(/^"|"$/).join(""),!this._isValidAndNotEmpty(s))throw Error("Attribute key "+this._ERROR_MESSAGE_INVALID_CHARS);if(!this._isValid(l))throw Error("Attribute value "+this._ERROR_MESSAGE_INVALID_VALUE);n[s]=decodeURIComponent(l)}}}catch(e){t={error:e}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}return n},e.prototype._isValid=function(e){return e.length<=this._MAX_LENGTH&&this._isBaggageOctetString(e)},e.prototype._isBaggageOctetString=function(e){for(var t=0;t126)return!1}return!0},e.prototype._isValidAndNotEmpty=function(e){return e.length>0&&this._isValid(e)},e}()),U=new(function(){function e(){}return e.prototype.detect=function(e){return Promise.resolve(C.detect(e))},e}());let M=require("os");var x=function(e){switch(e){case"arm":return"arm32";case"ppc":return"ppc32";case"x64":return"amd64";default:return e}},X=function(e){switch(e){case"sunos":return"solaris";case"win32":return"windows";default:return e}};switch(r(932).platform){case"darwin":i=r(7821).D;break;case"linux":i=r(2238).D;break;case"freebsd":i=r(2341).D;break;case"win32":i=r(2618).D;break;default:i=r(2063).D}var D=new(function(){function e(){}return e.prototype.detect=function(e){var t;return new h(((t={})["host.name"]=(0,M.hostname)(),t["host.arch"]=x((0,M.arch)()),t),this._getAsyncAttributes())},e.prototype._getAsyncAttributes=function(){return i().then(function(e){var t={};return e&&(t["host.id"]=e),t})},e}()),B=new(function(){function e(){}return e.prototype.detect=function(e){return Promise.resolve(D.detect(e))},e}()),G=new(function(){function e(){}return e.prototype.detect=function(e){var t;return new h(((t={})["os.type"]=X((0,M.platform)()),t["os.version"]=(0,M.release)(),t))},e}()),k=new(function(){function e(){}return e.prototype.detect=function(e){return Promise.resolve(G.detect(e))},e}()),V=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},H=function(e,t,r){if(r||2==arguments.length)for(var n,o=0,i=t.length;o1&&(r["process.command"]=process.argv[1]);try{var n=M.userInfo();r["process.owner"]=n.username}catch(e){a.s.debug("error obtaining process owner: "+e)}return new h(r)},e}()),F=new(function(){function e(){}return e.prototype.detect=function(e){return Promise.resolve(j.detect(e))},e}());let K=require("crypto");var Y=new(function(){function e(){}return e.prototype.detect=function(e){var t;return new h(((t={})["service.instance.id"]=(0,K.randomUUID)(),t))},e}()),q=function(e,t,r,n){return new(r||(r=Promise))(function(o,i){function a(e){try{c(n.next(e))}catch(e){i(e)}}function u(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(a,u)}c((n=n.apply(e,t||[])).next())})},Z=function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){var c=[i,u];if(r)throw TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&c[0]?n.return:c[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,c[1])).done)return o;switch(n=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return a.label++,{value:c[1],done:!1};case 5:a.label++,n=c[1],c=[0];continue;case 7:c=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===c[0]||2===c[0])){a=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]0){var t=JSON.stringify(e.attributes,null,4);a.s.verbose(t)}})}})(),module.exports=n})(); \ No newline at end of file diff --git a/vendor/package.json b/vendor/package.json index 94d1c9f758d..e96536043d7 100644 --- a/vendor/package.json +++ b/vendor/package.json @@ -7,8 +7,6 @@ "@datadog/openfeature-node-server": "^0.2.0", "@datadog/sketches-js": "2.1.1", "@isaacs/ttlcache": "^2.0.1", - "@opentelemetry/api": ">=1.0.0 <1.10.0", - "@opentelemetry/api-logs": "<1.0.0", "@opentelemetry/core": ">=1.14.0 <1.31.0", "@opentelemetry/resources": ">=1.0.0 <1.31.0", "crypto-randomuuid": "^1.0.0", diff --git a/vendor/rspack.config.js b/vendor/rspack.config.js index ad0b50d91bb..014d22e3d94 100644 --- a/vendor/rspack.config.js +++ b/vendor/rspack.config.js @@ -35,11 +35,6 @@ module.exports = { }), new CopyRspackPlugin({ patterns: [ - { - from: '**/*.d.ts', - context: join(__dirname, 'node_modules', '@opentelemetry', 'api', 'build', 'src'), - to: '@opentelemetry/api' - }, { from: '**/*.d.ts', context: join(__dirname, 'node_modules', 'opentracing', 'lib'), diff --git a/vendor/yarn.lock b/vendor/yarn.lock index cf1f0cce101..c3579e49a9f 100644 --- a/vendor/yarn.lock +++ b/vendor/yarn.lock @@ -171,18 +171,6 @@ resolved "https://registry.yarnpkg.com/@openfeature/server-sdk/-/server-sdk-1.18.0.tgz#5fed5f1d0900b2535878db18a78295bbaebb997b" integrity sha512-uP8nqEGBS58s3iWXx6d8vnJ6ZVt3DACJL4PWADOAuwIS4xXpID91783e9f6zQ0i1ijQpj3yx+3ZuCB2LfQMUMA== -"@opentelemetry/api-logs@<1.0.0": - version "0.208.0" - resolved "https://registry.yarnpkg.com/@opentelemetry/api-logs/-/api-logs-0.208.0.tgz#56d3891010a1fa1cf600ba8899ed61b43ace511c" - integrity sha512-CjruKY9V6NMssL/T1kAFgzosF1v9o6oeN+aX5JB/C/xPNtmgIJqcXHG7fA82Ou1zCpWGl4lROQUKwUNE1pMCyg== - dependencies: - "@opentelemetry/api" "^1.3.0" - -"@opentelemetry/api@>=1.0.0 <1.10.0", "@opentelemetry/api@^1.3.0": - version "1.9.0" - resolved "https://registry.yarnpkg.com/@opentelemetry/api/-/api-1.9.0.tgz#d03eba68273dc0f7509e2a3d5cba21eae10379fe" - integrity sha512-3giAOQvZiH5F9bMlMiv8+GSPMeqg0dbaeo58/0SlA9sxSqZhnUtxzX9/2FzyhS9sWQf5S0GJE0AKBrFqjpeYcg== - "@opentelemetry/core@1.30.1", "@opentelemetry/core@>=1.14.0 <1.31.0": version "1.30.1" resolved "https://registry.yarnpkg.com/@opentelemetry/core/-/core-1.30.1.tgz#a0b468bb396358df801881709ea38299fc30ab27" diff --git a/yarn.lock b/yarn.lock index 77ec7e52d3f..f2b63dcb4c8 100644 --- a/yarn.lock +++ b/yarn.lock @@ -667,6 +667,18 @@ resolved "https://registry.yarnpkg.com/@openfeature/server-sdk/-/server-sdk-1.20.0.tgz#43a5d3cffd915742ff64eeef53b7132279df4823" integrity sha512-95L9CCaGVKC6+7rNCmDxjthFvUyPLOUkoYyjg9Y/Cmy0G9D63xrJBsmH6fqHtLifzAu4+E7fWAZ3TIBnnCtr7A== +"@opentelemetry/api-logs@<1.0.0": + version "0.208.0" + resolved "https://registry.yarnpkg.com/@opentelemetry/api-logs/-/api-logs-0.208.0.tgz#56d3891010a1fa1cf600ba8899ed61b43ace511c" + integrity sha512-CjruKY9V6NMssL/T1kAFgzosF1v9o6oeN+aX5JB/C/xPNtmgIJqcXHG7fA82Ou1zCpWGl4lROQUKwUNE1pMCyg== + dependencies: + "@opentelemetry/api" "^1.3.0" + +"@opentelemetry/api@>=1.0.0 <1.10.0", "@opentelemetry/api@^1.3.0": + version "1.9.0" + resolved "https://registry.yarnpkg.com/@opentelemetry/api/-/api-1.9.0.tgz#d03eba68273dc0f7509e2a3d5cba21eae10379fe" + integrity sha512-3giAOQvZiH5F9bMlMiv8+GSPMeqg0dbaeo58/0SlA9sxSqZhnUtxzX9/2FzyhS9sWQf5S0GJE0AKBrFqjpeYcg== + "@oven/bun-darwin-aarch64@1.3.3": version "1.3.3" resolved "https://registry.yarnpkg.com/@oven/bun-darwin-aarch64/-/bun-darwin-aarch64-1.3.3.tgz#2ba3a5bbe5171cb99422a873e93d130c6ee24b8b" @@ -4392,7 +4404,6 @@ streamsearch@^1.1.0: integrity sha512-Mcc5wHehp9aXz1ax6bZUyY5afg9u2rv5cqQI3mRrYkGC8rW2hM02jWuwjtL++LS5qinSyhj2QfLyNsuc+VsExg== "string-width-cjs@npm:string-width@^4.2.0", string-width@^4.0.0, string-width@^4.1.0, string-width@^4.2.0, string-width@^4.2.2, string-width@^4.2.3: - name string-width-cjs version "4.2.3" resolved "https://registry.yarnpkg.com/string-width/-/string-width-4.2.3.tgz#269c7117d27b05ad2e536830a8ec895ef9c6d010" integrity sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g== @@ -4457,7 +4468,6 @@ string_decoder@~1.1.1: safe-buffer "~5.1.0" "strip-ansi-cjs@npm:strip-ansi@^6.0.1", strip-ansi@^6.0.0, strip-ansi@^6.0.1: - name strip-ansi-cjs version "6.0.1" resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-6.0.1.tgz#9e26c63d30f53443e9489495b2105d37b67a85d9" integrity sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A== @@ -4935,7 +4945,6 @@ workerpool@^9.2.0: integrity sha512-TmPRQYYSAnnDiEB0P/Ytip7bFGvqnSU6I2BcuSw7Hx+JSg/DsUi5ebYfc8GYaSdpuvOcEs6dXxPurOYpe9QFwg== "wrap-ansi-cjs@npm:wrap-ansi@^7.0.0", wrap-ansi@^7.0.0: - name wrap-ansi-cjs version "7.0.0" resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-7.0.0.tgz#67e145cff510a6a6984bdf1152911d69d2eb9e43" integrity sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q== From 54cd0ff9d243e72176066c17dcd7e4e7cbfc9a4c Mon Sep 17 00:00:00 2001 From: rochdev Date: Mon, 24 Nov 2025 14:22:51 -0500 Subject: [PATCH 38/95] fix escape-string-regexp --- loader-hook.mjs | 2 +- packages/node_modules/@opentelemetry/resources/index.js | 2 +- vendor/rspack.config.js | 4 +++- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/loader-hook.mjs b/loader-hook.mjs index b54b85df4fb..81e7f031b22 100644 --- a/loader-hook.mjs +++ b/loader-hook.mjs @@ -33,7 +33,7 @@ function addSecurityControls (data) { .map(sc => sc.trim()) for (const subpath of securityControls) { - data.include.push(new RegExp(regexpEscape(subpath))) + data.include.push(new RegExp(regexpEscape.default(subpath))) } } diff --git a/packages/node_modules/@opentelemetry/resources/index.js b/packages/node_modules/@opentelemetry/resources/index.js index f48e69d7b1c..21c584042e8 100644 --- a/packages/node_modules/@opentelemetry/resources/index.js +++ b/packages/node_modules/@opentelemetry/resources/index.js @@ -1 +1 @@ -(()=>{"use strict";var e={7259:function(e,t,r){r.d(t,{K:()=>s});var n=r(7066),o=r(6347),i=r(9232),a=r(844),u=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},c=function(e,t,r){if(r||2==arguments.length)for(var n,o=0,i=t.length;o";l.warn("Current logger will be overwritten from "+f),E.warn("Current logger will overwrite one already registered from "+f)}return(0,a.$G)("diag",E,t,!0)},t.disable=function(){(0,a.kv)("diag",t)},t.createComponentLogger=function(e){return new n.V(e)},t.verbose=e("verbose"),t.debug=e("debug"),t.info=e("info"),t.warn=e("warn"),t.error=e("error")}return e.instance=function(){return this._instance||(this._instance=new e),this._instance},e}()},2339:function(e,t,r){r.d(t,{s:()=>n});var n=r(7259).K.instance()},7066:function(e,t,r){r.d(t,{V:()=>a});var n=r(844),o=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},i=function(e,t,r){if(r||2==arguments.length)for(var n,o=0,i=t.length;oo});var n=r(9232);function o(e,t){function r(r,n){var o=t[r];return"function"==typeof o&&e>=n?o.bind(t):function(){}}return en.u.ALL&&(e=n.u.ALL),t=t||{},{error:r("error",n.u.ERROR),warn:r("warn",n.u.WARN),info:r("info",n.u.INFO),debug:r("debug",n.u.DEBUG),verbose:r("verbose",n.u.VERBOSE)}}},9232:function(e,t,r){var n,o;r.d(t,{u:()=>n}),(o=n||(n={}))[o.NONE=0]="NONE",o[o.ERROR=30]="ERROR",o[o.WARN=50]="WARN",o[o.INFO=60]="INFO",o[o.DEBUG=70]="DEBUG",o[o.VERBOSE=80]="VERBOSE",o[o.ALL=9999]="ALL"},844:function(e,t,r){r.d(t,{$G:()=>c,kv:()=>l,mS:()=>s});var n=r(4111),o=r(8533),i=r(5391),a=Symbol.for("opentelemetry.js.api."+o.x.split(".")[0]),u=n.X;function c(e,t,r,n){void 0===n&&(n=!1);var i,c=u[a]=null!=(i=u[a])?i:{version:o.x};if(!n&&c[e]){var s=Error("@opentelemetry/api: Attempted duplicate registration of API: "+e);return r.error(s.stack||s.message),!1}if(c.version!==o.x){var s=Error("@opentelemetry/api: Registration of version v"+c.version+" for "+e+" does not match previously registered API v"+o.x);return r.error(s.stack||s.message),!1}return c[e]=t,r.debug("@opentelemetry/api: Registered a global for "+e+" v"+o.x+"."),!0}function s(e){var t,r,n=null==(t=u[a])?void 0:t.version;if(n&&(0,i.$)(n))return null==(r=u[a])?void 0:r[e]}function l(e,t){t.debug("@opentelemetry/api: Unregistering a global for "+e+" v"+o.x+".");var r=u[a];r&&delete r[e]}},5391:function(e,t,r){r.d(t,{$:()=>i});var n=r(8533),o=/^(\d+)\.(\d+)\.(\d+)(-(.+))?$/,i=function(e){var t=new Set([e]),r=new Set,n=e.match(o);if(!n)return function(){return!1};var i={major:+n[1],minor:+n[2],patch:+n[3],prerelease:n[4]};if(null!=i.prerelease)return function(t){return t===e};function a(e){return r.add(e),!1}return function(e){if(t.has(e))return!0;if(r.has(e))return!1;var n=e.match(o);if(!n)return a(e);var u={major:+n[1],minor:+n[2],patch:+n[3],prerelease:n[4]};if(null!=u.prerelease||i.major!==u.major)return a(e);if(0===i.major)return i.minor===u.minor&&i.patch<=u.patch?(t.add(e),!0):a(e);return i.minor<=u.minor?(t.add(e),!0):a(e)}}(n.x)},4111:function(e,t,r){r.d(t,{X:()=>n});var n="object"==typeof globalThis?globalThis:global},8533:function(e,t,r){r.d(t,{x:()=>n});var n="1.9.0"},2872:function(e,t,r){r.d(t,{q:()=>o});let n=require("child_process");var o=require("util").promisify(n.exec)},2341:function(e,t,r){r.d(t,{D:()=>u});var n=r(9896),o=r(2872),i=r(2339),a=function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){var c=[i,u];if(r)throw TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&c[0]?n.return:c[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,c[1])).done)return o;switch(n=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return a.label++,{value:c[1],done:!1};case 5:a.label++,n=c[1],c=[0];continue;case 7:c=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===c[0]||2===c[0])){a=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]a});var n=r(2872),o=r(2339),i=function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){var c=[i,u];if(r)throw TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&c[0]?n.return:c[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,c[1])).done)return o;switch(n=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return a.label++,{value:c[1],done:!1};case 5:a.label++,n=c[1],c=[0];continue;case 7:c=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===c[0]||2===c[0])){a=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]u});var n=r(9896),o=r(2339),i=function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){var c=[i,u];if(r)throw TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&c[0]?n.return:c[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,c[1])).done)return o;switch(n=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return a.label++,{value:c[1],done:!1};case 5:a.label++,n=c[1],c=[0];continue;case 7:c=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===c[0]||2===c[0])){a=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};function u(){var e,t,r,u;return e=this,t=void 0,r=void 0,u=function(){var e,t,r,u,c,s,l;return i(this,function(i){switch(i.label){case 0:e=["/etc/machine-id","/var/lib/dbus/machine-id"],i.label=1;case 1:i.trys.push([1,8,9,10]),r=(t=a(e)).next(),i.label=2;case 2:if(r.done)return[3,7];u=r.value,i.label=3;case 3:return i.trys.push([3,5,,6]),[4,n.promises.readFile(u,{encoding:"utf8"})];case 4:return[2,i.sent().trim()];case 5:return c=i.sent(),o.s.debug("error reading machine id: "+c),[3,6];case 6:return r=t.next(),[3,2];case 7:return[3,10];case 8:return s={error:i.sent()},[3,10];case 9:try{r&&!r.done&&(l=t.return)&&l.call(t)}finally{if(s)throw s.error}return[7];case 10:return[2,""]}})},new(r||(r=Promise))(function(n,o){function i(e){try{c(u.next(e))}catch(e){o(e)}}function a(e){try{c(u.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?n(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(i,a)}c((u=u.apply(e,t||[])).next())})}},2063:function(e,t,r){r.d(t,{D:()=>i});var n=r(2339),o=function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){var c=[i,u];if(r)throw TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&c[0]?n.return:c[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,c[1])).done)return o;switch(n=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return a.label++,{value:c[1],done:!1};case 5:a.label++,n=c[1],c=[0];continue;case 7:c=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===c[0]||2===c[0])){a=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]u});var n=r(932),o=r(2872),i=r(2339),a=function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){var c=[i,u];if(r)throw TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&c[0]?n.return:c[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,c[1])).done)return o;switch(n=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return a.label++,{value:c[1],done:!1};case 5:a.label++,n=c[1],c=[0];continue;case 7:c=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===c[0]||2===c[0])){a=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};(()=>{r.r(n),r.d(n,{envDetector:()=>U,envDetectorSync:()=>C,hostDetector:()=>B,Resource:()=>h,osDetector:()=>k,detectResources:()=>W,osDetectorSync:()=>G,browserDetectorSync:()=>R,processDetectorSync:()=>j,detectResourcesSync:()=>J,browserDetector:()=>L,processDetector:()=>F,defaultServiceName:()=>O,hostDetectorSync:()=>D,serviceInstanceIdDetectorSync:()=>Y});var e,t,o,i,a=r(2339),u="process.runtime.name",c="process.runtime.version",s="process.runtime.description",l="service.name",E="telemetry.sdk.name",f="telemetry.sdk.language",_="telemetry.sdk.version",T=((t={})[E]="opentelemetry",t[u]="node",t[f]="nodejs",t[_]="1.30.1",t);function O(){return"unknown_service:"+process.argv0}var p=function(){return(p=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])&&(6===c[0]||2===c[0])){a=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},h=function(){function e(e,t){var r,n=this;this._attributes=e,this.asyncAttributesPending=null!=t,this._syncAttributes=null!=(r=this._attributes)?r:{},this._asyncAttributesPromise=null==t?void 0:t.then(function(e){return n._attributes=Object.assign({},n._attributes,e),n.asyncAttributesPending=!1,e},function(e){return a.s.debug("a resource's async attributes promise rejected: %s",e),n.asyncAttributesPending=!1,{}})}return e.empty=function(){return e.EMPTY},e.default=function(){var t;return new e(((t={})[l]=O(),t[f]=T[f],t[E]=T[E],t[_]=T[_],t))},Object.defineProperty(e.prototype,"attributes",{get:function(){var e;return this.asyncAttributesPending&&a.s.error("Accessing resource attributes before async attributes settled"),null!=(e=this._attributes)?e:{}},enumerable:!1,configurable:!0}),e.prototype.waitForAsyncAttributes=function(){var e,t,r,n;return e=this,t=void 0,r=void 0,n=function(){return d(this,function(e){switch(e.label){case 0:if(!this.asyncAttributesPending)return[3,2];return[4,this._asyncAttributesPromise];case 1:e.sent(),e.label=2;case 2:return[2]}})},new(r||(r=Promise))(function(o,i){function a(e){try{c(n.next(e))}catch(e){i(e)}}function u(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(a,u)}c((n=n.apply(e,t||[])).next())})},e.prototype.merge=function(t){var r,n=this;if(!t)return this;var o=p(p({},this._syncAttributes),null!=(r=t._syncAttributes)?r:t.attributes);return this._asyncAttributesPromise||t._asyncAttributesPromise?new e(o,Promise.all([this._asyncAttributesPromise,t._asyncAttributesPromise]).then(function(e){var r,o=y(e,2),i=o[0],a=o[1];return p(p(p(p({},n._syncAttributes),i),null!=(r=t._syncAttributes)?r:t.attributes),a)})):new e(o)},e.EMPTY=new e({}),e}(),v=function(){return(v=Object.assign||function(e){for(var t,r=1,n=arguments.length;r=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},N=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},C=new(function(){function e(){this._MAX_LENGTH=255,this._COMMA_SEPARATOR=",",this._LABEL_KEY_VALUE_SPLITTER="=",this._ERROR_MESSAGE_INVALID_CHARS="should be a ASCII string with a length greater than 0 and not exceed "+this._MAX_LENGTH+" characters.",this._ERROR_MESSAGE_INVALID_VALUE="should be a ASCII string with a length not exceed "+this._MAX_LENGTH+" characters."}return e.prototype.detect=function(e){var t,r={},n=(t=function(e){var t={};for(var r in I)if("OTEL_LOG_LEVEL"===r)!function(e,t,r){var n=r[e];if("string"==typeof n){var o=m[n.toUpperCase()];null!=o&&(t[e]=o)}}(r,t,e);else if(A.indexOf(r)>-1)!function(e,t,r){if(void 0!==r[e]){var n=String(r[e]);t[e]="true"===n.toLowerCase()}}(r,t,e);else if(P.indexOf(r)>-1)!function(e,t,r,n,o){if(void 0===n&&(n=-1/0),void 0===o&&(o=1/0),void 0!==r[e]){var i=Number(r[e]);isNaN(i)||(io?t[e]=o:t[e]=i)}}(r,t,e);else if(S.indexOf(r)>-1)!function(e,t,r,n){void 0===n&&(n=",");var o=r[e];"string"==typeof o&&(t[e]=o.split(n).map(function(e){return e.trim()}))}(r,t,e);else{var n=e[r];null!=n&&(t[r]=String(n))}return t}(process.env),Object.assign({},I,t)),o=n.OTEL_RESOURCE_ATTRIBUTES,i=n.OTEL_SERVICE_NAME;if(o)try{var u=this._parseResourceAttributes(o);Object.assign(r,u)}catch(e){a.s.debug("EnvDetector failed: "+e.message)}return i&&(r[l]=i),new h(r)},e.prototype._parseResourceAttributes=function(e){if(!e)return{};var t,r,n={},o=e.split(this._COMMA_SEPARATOR,-1);try{for(var i=w(o),a=i.next();!a.done;a=i.next()){var u=a.value.split(this._LABEL_KEY_VALUE_SPLITTER,-1);if(2===u.length){var c=N(u,2),s=c[0],l=c[1];if(s=s.trim(),l=l.trim().split(/^"|"$/).join(""),!this._isValidAndNotEmpty(s))throw Error("Attribute key "+this._ERROR_MESSAGE_INVALID_CHARS);if(!this._isValid(l))throw Error("Attribute value "+this._ERROR_MESSAGE_INVALID_VALUE);n[s]=decodeURIComponent(l)}}}catch(e){t={error:e}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}return n},e.prototype._isValid=function(e){return e.length<=this._MAX_LENGTH&&this._isBaggageOctetString(e)},e.prototype._isBaggageOctetString=function(e){for(var t=0;t126)return!1}return!0},e.prototype._isValidAndNotEmpty=function(e){return e.length>0&&this._isValid(e)},e}()),U=new(function(){function e(){}return e.prototype.detect=function(e){return Promise.resolve(C.detect(e))},e}());let M=require("os");var x=function(e){switch(e){case"arm":return"arm32";case"ppc":return"ppc32";case"x64":return"amd64";default:return e}},X=function(e){switch(e){case"sunos":return"solaris";case"win32":return"windows";default:return e}};switch(r(932).platform){case"darwin":i=r(7821).D;break;case"linux":i=r(2238).D;break;case"freebsd":i=r(2341).D;break;case"win32":i=r(2618).D;break;default:i=r(2063).D}var D=new(function(){function e(){}return e.prototype.detect=function(e){var t;return new h(((t={})["host.name"]=(0,M.hostname)(),t["host.arch"]=x((0,M.arch)()),t),this._getAsyncAttributes())},e.prototype._getAsyncAttributes=function(){return i().then(function(e){var t={};return e&&(t["host.id"]=e),t})},e}()),B=new(function(){function e(){}return e.prototype.detect=function(e){return Promise.resolve(D.detect(e))},e}()),G=new(function(){function e(){}return e.prototype.detect=function(e){var t;return new h(((t={})["os.type"]=X((0,M.platform)()),t["os.version"]=(0,M.release)(),t))},e}()),k=new(function(){function e(){}return e.prototype.detect=function(e){return Promise.resolve(G.detect(e))},e}()),V=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},H=function(e,t,r){if(r||2==arguments.length)for(var n,o=0,i=t.length;o1&&(r["process.command"]=process.argv[1]);try{var n=M.userInfo();r["process.owner"]=n.username}catch(e){a.s.debug("error obtaining process owner: "+e)}return new h(r)},e}()),F=new(function(){function e(){}return e.prototype.detect=function(e){return Promise.resolve(j.detect(e))},e}());let K=require("crypto");var Y=new(function(){function e(){}return e.prototype.detect=function(e){var t;return new h(((t={})["service.instance.id"]=(0,K.randomUUID)(),t))},e}()),q=function(e,t,r,n){return new(r||(r=Promise))(function(o,i){function a(e){try{c(n.next(e))}catch(e){i(e)}}function u(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(a,u)}c((n=n.apply(e,t||[])).next())})},Z=function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){var c=[i,u];if(r)throw TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&c[0]?n.return:c[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,c[1])).done)return o;switch(n=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return a.label++,{value:c[1],done:!1};case 5:a.label++,n=c[1],c=[0];continue;case 7:c=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===c[0]||2===c[0])){a=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]0){var t=JSON.stringify(e.attributes,null,4);a.s.verbose(t)}})}})(),module.exports=n})(); \ No newline at end of file +(()=>{"use strict";var e={4419:function(e,t,r){r.d(t,{K:()=>s});var n=r(7154),o=r(6627),i=r(2008),a=r(8212),u=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},c=function(e,t,r){if(r||2==arguments.length)for(var n,o=0,i=t.length;o";l.warn("Current logger will be overwritten from "+f),E.warn("Current logger will overwrite one already registered from "+f)}return(0,a.$G)("diag",E,t,!0)},t.disable=function(){(0,a.kv)("diag",t)},t.createComponentLogger=function(e){return new n.V(e)},t.verbose=e("verbose"),t.debug=e("debug"),t.info=e("info"),t.warn=e("warn"),t.error=e("error")}return e.instance=function(){return this._instance||(this._instance=new e),this._instance},e}()},4267:function(e,t,r){r.d(t,{s:()=>n});var n=r(4419).K.instance()},7154:function(e,t,r){r.d(t,{V:()=>a});var n=r(8212),o=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},i=function(e,t,r){if(r||2==arguments.length)for(var n,o=0,i=t.length;oo});var n=r(2008);function o(e,t){function r(r,n){var o=t[r];return"function"==typeof o&&e>=n?o.bind(t):function(){}}return en.u.ALL&&(e=n.u.ALL),t=t||{},{error:r("error",n.u.ERROR),warn:r("warn",n.u.WARN),info:r("info",n.u.INFO),debug:r("debug",n.u.DEBUG),verbose:r("verbose",n.u.VERBOSE)}}},2008:function(e,t,r){var n,o;r.d(t,{u:()=>n}),(o=n||(n={}))[o.NONE=0]="NONE",o[o.ERROR=30]="ERROR",o[o.WARN=50]="WARN",o[o.INFO=60]="INFO",o[o.DEBUG=70]="DEBUG",o[o.VERBOSE=80]="VERBOSE",o[o.ALL=9999]="ALL"},8212:function(e,t,r){r.d(t,{$G:()=>c,kv:()=>l,mS:()=>s});var n=r(1063),o=r(93),i=r(2087),a=Symbol.for("opentelemetry.js.api."+o.x.split(".")[0]),u=n.X;function c(e,t,r,n){void 0===n&&(n=!1);var i,c=u[a]=null!=(i=u[a])?i:{version:o.x};if(!n&&c[e]){var s=Error("@opentelemetry/api: Attempted duplicate registration of API: "+e);return r.error(s.stack||s.message),!1}if(c.version!==o.x){var s=Error("@opentelemetry/api: Registration of version v"+c.version+" for "+e+" does not match previously registered API v"+o.x);return r.error(s.stack||s.message),!1}return c[e]=t,r.debug("@opentelemetry/api: Registered a global for "+e+" v"+o.x+"."),!0}function s(e){var t,r,n=null==(t=u[a])?void 0:t.version;if(n&&(0,i.$)(n))return null==(r=u[a])?void 0:r[e]}function l(e,t){t.debug("@opentelemetry/api: Unregistering a global for "+e+" v"+o.x+".");var r=u[a];r&&delete r[e]}},2087:function(e,t,r){r.d(t,{$:()=>i});var n=r(93),o=/^(\d+)\.(\d+)\.(\d+)(-(.+))?$/,i=function(e){var t=new Set([e]),r=new Set,n=e.match(o);if(!n)return function(){return!1};var i={major:+n[1],minor:+n[2],patch:+n[3],prerelease:n[4]};if(null!=i.prerelease)return function(t){return t===e};function a(e){return r.add(e),!1}return function(e){if(t.has(e))return!0;if(r.has(e))return!1;var n=e.match(o);if(!n)return a(e);var u={major:+n[1],minor:+n[2],patch:+n[3],prerelease:n[4]};if(null!=u.prerelease||i.major!==u.major)return a(e);if(0===i.major)return i.minor===u.minor&&i.patch<=u.patch?(t.add(e),!0):a(e);return i.minor<=u.minor?(t.add(e),!0):a(e)}}(n.x)},1063:function(e,t,r){r.d(t,{X:()=>n});var n="object"==typeof globalThis?globalThis:global},93:function(e,t,r){r.d(t,{x:()=>n});var n="1.9.0"},2872:function(e,t,r){r.d(t,{q:()=>o});let n=require("child_process");var o=require("util").promisify(n.exec)},2341:function(e,t,r){r.d(t,{D:()=>u});var n=r(9896),o=r(2872),i=r(4267),a=function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){var c=[i,u];if(r)throw TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&c[0]?n.return:c[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,c[1])).done)return o;switch(n=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return a.label++,{value:c[1],done:!1};case 5:a.label++,n=c[1],c=[0];continue;case 7:c=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===c[0]||2===c[0])){a=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]a});var n=r(2872),o=r(4267),i=function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){var c=[i,u];if(r)throw TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&c[0]?n.return:c[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,c[1])).done)return o;switch(n=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return a.label++,{value:c[1],done:!1};case 5:a.label++,n=c[1],c=[0];continue;case 7:c=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===c[0]||2===c[0])){a=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]u});var n=r(9896),o=r(4267),i=function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){var c=[i,u];if(r)throw TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&c[0]?n.return:c[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,c[1])).done)return o;switch(n=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return a.label++,{value:c[1],done:!1};case 5:a.label++,n=c[1],c=[0];continue;case 7:c=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===c[0]||2===c[0])){a=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};function u(){var e,t,r,u;return e=this,t=void 0,r=void 0,u=function(){var e,t,r,u,c,s,l;return i(this,function(i){switch(i.label){case 0:e=["/etc/machine-id","/var/lib/dbus/machine-id"],i.label=1;case 1:i.trys.push([1,8,9,10]),r=(t=a(e)).next(),i.label=2;case 2:if(r.done)return[3,7];u=r.value,i.label=3;case 3:return i.trys.push([3,5,,6]),[4,n.promises.readFile(u,{encoding:"utf8"})];case 4:return[2,i.sent().trim()];case 5:return c=i.sent(),o.s.debug("error reading machine id: "+c),[3,6];case 6:return r=t.next(),[3,2];case 7:return[3,10];case 8:return s={error:i.sent()},[3,10];case 9:try{r&&!r.done&&(l=t.return)&&l.call(t)}finally{if(s)throw s.error}return[7];case 10:return[2,""]}})},new(r||(r=Promise))(function(n,o){function i(e){try{c(u.next(e))}catch(e){o(e)}}function a(e){try{c(u.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?n(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(i,a)}c((u=u.apply(e,t||[])).next())})}},2063:function(e,t,r){r.d(t,{D:()=>i});var n=r(4267),o=function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){var c=[i,u];if(r)throw TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&c[0]?n.return:c[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,c[1])).done)return o;switch(n=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return a.label++,{value:c[1],done:!1};case 5:a.label++,n=c[1],c=[0];continue;case 7:c=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===c[0]||2===c[0])){a=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]u});var n=r(932),o=r(2872),i=r(4267),a=function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){var c=[i,u];if(r)throw TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&c[0]?n.return:c[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,c[1])).done)return o;switch(n=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return a.label++,{value:c[1],done:!1};case 5:a.label++,n=c[1],c=[0];continue;case 7:c=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===c[0]||2===c[0])){a=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};(()=>{r.r(n),r.d(n,{envDetector:()=>U,envDetectorSync:()=>C,hostDetector:()=>B,Resource:()=>h,osDetector:()=>k,detectResources:()=>W,osDetectorSync:()=>G,browserDetectorSync:()=>R,processDetectorSync:()=>j,detectResourcesSync:()=>J,browserDetector:()=>L,processDetector:()=>F,defaultServiceName:()=>O,hostDetectorSync:()=>D,serviceInstanceIdDetectorSync:()=>Y});var e,t,o,i,a=r(4267),u="process.runtime.name",c="process.runtime.version",s="process.runtime.description",l="service.name",E="telemetry.sdk.name",f="telemetry.sdk.language",_="telemetry.sdk.version",T=((t={})[E]="opentelemetry",t[u]="node",t[f]="nodejs",t[_]="1.30.1",t);function O(){return"unknown_service:"+process.argv0}var p=function(){return(p=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])&&(6===c[0]||2===c[0])){a=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},h=function(){function e(e,t){var r,n=this;this._attributes=e,this.asyncAttributesPending=null!=t,this._syncAttributes=null!=(r=this._attributes)?r:{},this._asyncAttributesPromise=null==t?void 0:t.then(function(e){return n._attributes=Object.assign({},n._attributes,e),n.asyncAttributesPending=!1,e},function(e){return a.s.debug("a resource's async attributes promise rejected: %s",e),n.asyncAttributesPending=!1,{}})}return e.empty=function(){return e.EMPTY},e.default=function(){var t;return new e(((t={})[l]=O(),t[f]=T[f],t[E]=T[E],t[_]=T[_],t))},Object.defineProperty(e.prototype,"attributes",{get:function(){var e;return this.asyncAttributesPending&&a.s.error("Accessing resource attributes before async attributes settled"),null!=(e=this._attributes)?e:{}},enumerable:!1,configurable:!0}),e.prototype.waitForAsyncAttributes=function(){var e,t,r,n;return e=this,t=void 0,r=void 0,n=function(){return d(this,function(e){switch(e.label){case 0:if(!this.asyncAttributesPending)return[3,2];return[4,this._asyncAttributesPromise];case 1:e.sent(),e.label=2;case 2:return[2]}})},new(r||(r=Promise))(function(o,i){function a(e){try{c(n.next(e))}catch(e){i(e)}}function u(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(a,u)}c((n=n.apply(e,t||[])).next())})},e.prototype.merge=function(t){var r,n=this;if(!t)return this;var o=p(p({},this._syncAttributes),null!=(r=t._syncAttributes)?r:t.attributes);return this._asyncAttributesPromise||t._asyncAttributesPromise?new e(o,Promise.all([this._asyncAttributesPromise,t._asyncAttributesPromise]).then(function(e){var r,o=y(e,2),i=o[0],a=o[1];return p(p(p(p({},n._syncAttributes),i),null!=(r=t._syncAttributes)?r:t.attributes),a)})):new e(o)},e.EMPTY=new e({}),e}(),v=function(){return(v=Object.assign||function(e){for(var t,r=1,n=arguments.length;r=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},N=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},C=new(function(){function e(){this._MAX_LENGTH=255,this._COMMA_SEPARATOR=",",this._LABEL_KEY_VALUE_SPLITTER="=",this._ERROR_MESSAGE_INVALID_CHARS="should be a ASCII string with a length greater than 0 and not exceed "+this._MAX_LENGTH+" characters.",this._ERROR_MESSAGE_INVALID_VALUE="should be a ASCII string with a length not exceed "+this._MAX_LENGTH+" characters."}return e.prototype.detect=function(e){var t,r={},n=(t=function(e){var t={};for(var r in I)if("OTEL_LOG_LEVEL"===r)!function(e,t,r){var n=r[e];if("string"==typeof n){var o=m[n.toUpperCase()];null!=o&&(t[e]=o)}}(r,t,e);else if(A.indexOf(r)>-1)!function(e,t,r){if(void 0!==r[e]){var n=String(r[e]);t[e]="true"===n.toLowerCase()}}(r,t,e);else if(P.indexOf(r)>-1)!function(e,t,r,n,o){if(void 0===n&&(n=-1/0),void 0===o&&(o=1/0),void 0!==r[e]){var i=Number(r[e]);isNaN(i)||(io?t[e]=o:t[e]=i)}}(r,t,e);else if(S.indexOf(r)>-1)!function(e,t,r,n){void 0===n&&(n=",");var o=r[e];"string"==typeof o&&(t[e]=o.split(n).map(function(e){return e.trim()}))}(r,t,e);else{var n=e[r];null!=n&&(t[r]=String(n))}return t}(process.env),Object.assign({},I,t)),o=n.OTEL_RESOURCE_ATTRIBUTES,i=n.OTEL_SERVICE_NAME;if(o)try{var u=this._parseResourceAttributes(o);Object.assign(r,u)}catch(e){a.s.debug("EnvDetector failed: "+e.message)}return i&&(r[l]=i),new h(r)},e.prototype._parseResourceAttributes=function(e){if(!e)return{};var t,r,n={},o=e.split(this._COMMA_SEPARATOR,-1);try{for(var i=w(o),a=i.next();!a.done;a=i.next()){var u=a.value.split(this._LABEL_KEY_VALUE_SPLITTER,-1);if(2===u.length){var c=N(u,2),s=c[0],l=c[1];if(s=s.trim(),l=l.trim().split(/^"|"$/).join(""),!this._isValidAndNotEmpty(s))throw Error("Attribute key "+this._ERROR_MESSAGE_INVALID_CHARS);if(!this._isValid(l))throw Error("Attribute value "+this._ERROR_MESSAGE_INVALID_VALUE);n[s]=decodeURIComponent(l)}}}catch(e){t={error:e}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}return n},e.prototype._isValid=function(e){return e.length<=this._MAX_LENGTH&&this._isBaggageOctetString(e)},e.prototype._isBaggageOctetString=function(e){for(var t=0;t126)return!1}return!0},e.prototype._isValidAndNotEmpty=function(e){return e.length>0&&this._isValid(e)},e}()),U=new(function(){function e(){}return e.prototype.detect=function(e){return Promise.resolve(C.detect(e))},e}());let M=require("os");var x=function(e){switch(e){case"arm":return"arm32";case"ppc":return"ppc32";case"x64":return"amd64";default:return e}},X=function(e){switch(e){case"sunos":return"solaris";case"win32":return"windows";default:return e}};switch(r(932).platform){case"darwin":i=r(7821).D;break;case"linux":i=r(2238).D;break;case"freebsd":i=r(2341).D;break;case"win32":i=r(2618).D;break;default:i=r(2063).D}var D=new(function(){function e(){}return e.prototype.detect=function(e){var t;return new h(((t={})["host.name"]=(0,M.hostname)(),t["host.arch"]=x((0,M.arch)()),t),this._getAsyncAttributes())},e.prototype._getAsyncAttributes=function(){return i().then(function(e){var t={};return e&&(t["host.id"]=e),t})},e}()),B=new(function(){function e(){}return e.prototype.detect=function(e){return Promise.resolve(D.detect(e))},e}()),G=new(function(){function e(){}return e.prototype.detect=function(e){var t;return new h(((t={})["os.type"]=X((0,M.platform)()),t["os.version"]=(0,M.release)(),t))},e}()),k=new(function(){function e(){}return e.prototype.detect=function(e){return Promise.resolve(G.detect(e))},e}()),V=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},H=function(e,t,r){if(r||2==arguments.length)for(var n,o=0,i=t.length;o1&&(r["process.command"]=process.argv[1]);try{var n=M.userInfo();r["process.owner"]=n.username}catch(e){a.s.debug("error obtaining process owner: "+e)}return new h(r)},e}()),F=new(function(){function e(){}return e.prototype.detect=function(e){return Promise.resolve(j.detect(e))},e}());let K=require("crypto");var Y=new(function(){function e(){}return e.prototype.detect=function(e){var t;return new h(((t={})["service.instance.id"]=(0,K.randomUUID)(),t))},e}()),q=function(e,t,r,n){return new(r||(r=Promise))(function(o,i){function a(e){try{c(n.next(e))}catch(e){i(e)}}function u(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(a,u)}c((n=n.apply(e,t||[])).next())})},Z=function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){var c=[i,u];if(r)throw TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&c[0]?n.return:c[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,c[1])).done)return o;switch(n=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return a.label++,{value:c[1],done:!1};case 5:a.label++,n=c[1],c=[0];continue;case 7:c=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===c[0]||2===c[0])){a=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]0){var t=JSON.stringify(e.attributes,null,4);a.s.verbose(t)}})}})(),module.exports=n})(); \ No newline at end of file diff --git a/vendor/rspack.config.js b/vendor/rspack.config.js index 014d22e3d94..cf77b4ff9e6 100644 --- a/vendor/rspack.config.js +++ b/vendor/rspack.config.js @@ -49,7 +49,9 @@ module.exports = { ], output: { filename: '[name]/index.js', - libraryTarget: 'commonjs2', + library: { + type: 'commonjs2' + }, path: join(__dirname, '..', 'packages', 'node_modules'), clean: true }, From d54b956b44fc63949126b62fcfe6ce99a86f2fd6 Mon Sep 17 00:00:00 2001 From: rochdev Date: Mon, 24 Nov 2025 17:36:09 -0500 Subject: [PATCH 39/95] fix license inclusion and clean up code --- .../@datadog/openfeature-node-server/LICENSE | 206 +++++++++++++++++- .../@opentelemetry/resources/index.js | 2 +- .../node_modules/mutexify/promise/LICENSE | 2 +- .../node_modules/protobufjs/minimal/LICENSE | 13 ++ vendor/rspack.config.js | 16 +- 5 files changed, 219 insertions(+), 20 deletions(-) diff --git a/packages/node_modules/@datadog/openfeature-node-server/LICENSE b/packages/node_modules/@datadog/openfeature-node-server/LICENSE index 20553dda3ae..4a0027eec4e 100644 --- a/packages/node_modules/@datadog/openfeature-node-server/LICENSE +++ b/packages/node_modules/@datadog/openfeature-node-server/LICENSE @@ -1,13 +1,201 @@ - DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE - Version 2, December 2004 + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ - Copyright (C) 2015 André Cruz + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - Everyone is permitted to copy and distribute verbatim or modified - copies of this license document, and changing it is allowed as long - as the name is changed. + 1. Definitions. - DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE - TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. - 0. You just DO WHAT THE FUCK YOU WANT TO. + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright 2025 Datadog, Inc. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/packages/node_modules/@opentelemetry/resources/index.js b/packages/node_modules/@opentelemetry/resources/index.js index 21c584042e8..f48e69d7b1c 100644 --- a/packages/node_modules/@opentelemetry/resources/index.js +++ b/packages/node_modules/@opentelemetry/resources/index.js @@ -1 +1 @@ -(()=>{"use strict";var e={4419:function(e,t,r){r.d(t,{K:()=>s});var n=r(7154),o=r(6627),i=r(2008),a=r(8212),u=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},c=function(e,t,r){if(r||2==arguments.length)for(var n,o=0,i=t.length;o";l.warn("Current logger will be overwritten from "+f),E.warn("Current logger will overwrite one already registered from "+f)}return(0,a.$G)("diag",E,t,!0)},t.disable=function(){(0,a.kv)("diag",t)},t.createComponentLogger=function(e){return new n.V(e)},t.verbose=e("verbose"),t.debug=e("debug"),t.info=e("info"),t.warn=e("warn"),t.error=e("error")}return e.instance=function(){return this._instance||(this._instance=new e),this._instance},e}()},4267:function(e,t,r){r.d(t,{s:()=>n});var n=r(4419).K.instance()},7154:function(e,t,r){r.d(t,{V:()=>a});var n=r(8212),o=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},i=function(e,t,r){if(r||2==arguments.length)for(var n,o=0,i=t.length;oo});var n=r(2008);function o(e,t){function r(r,n){var o=t[r];return"function"==typeof o&&e>=n?o.bind(t):function(){}}return en.u.ALL&&(e=n.u.ALL),t=t||{},{error:r("error",n.u.ERROR),warn:r("warn",n.u.WARN),info:r("info",n.u.INFO),debug:r("debug",n.u.DEBUG),verbose:r("verbose",n.u.VERBOSE)}}},2008:function(e,t,r){var n,o;r.d(t,{u:()=>n}),(o=n||(n={}))[o.NONE=0]="NONE",o[o.ERROR=30]="ERROR",o[o.WARN=50]="WARN",o[o.INFO=60]="INFO",o[o.DEBUG=70]="DEBUG",o[o.VERBOSE=80]="VERBOSE",o[o.ALL=9999]="ALL"},8212:function(e,t,r){r.d(t,{$G:()=>c,kv:()=>l,mS:()=>s});var n=r(1063),o=r(93),i=r(2087),a=Symbol.for("opentelemetry.js.api."+o.x.split(".")[0]),u=n.X;function c(e,t,r,n){void 0===n&&(n=!1);var i,c=u[a]=null!=(i=u[a])?i:{version:o.x};if(!n&&c[e]){var s=Error("@opentelemetry/api: Attempted duplicate registration of API: "+e);return r.error(s.stack||s.message),!1}if(c.version!==o.x){var s=Error("@opentelemetry/api: Registration of version v"+c.version+" for "+e+" does not match previously registered API v"+o.x);return r.error(s.stack||s.message),!1}return c[e]=t,r.debug("@opentelemetry/api: Registered a global for "+e+" v"+o.x+"."),!0}function s(e){var t,r,n=null==(t=u[a])?void 0:t.version;if(n&&(0,i.$)(n))return null==(r=u[a])?void 0:r[e]}function l(e,t){t.debug("@opentelemetry/api: Unregistering a global for "+e+" v"+o.x+".");var r=u[a];r&&delete r[e]}},2087:function(e,t,r){r.d(t,{$:()=>i});var n=r(93),o=/^(\d+)\.(\d+)\.(\d+)(-(.+))?$/,i=function(e){var t=new Set([e]),r=new Set,n=e.match(o);if(!n)return function(){return!1};var i={major:+n[1],minor:+n[2],patch:+n[3],prerelease:n[4]};if(null!=i.prerelease)return function(t){return t===e};function a(e){return r.add(e),!1}return function(e){if(t.has(e))return!0;if(r.has(e))return!1;var n=e.match(o);if(!n)return a(e);var u={major:+n[1],minor:+n[2],patch:+n[3],prerelease:n[4]};if(null!=u.prerelease||i.major!==u.major)return a(e);if(0===i.major)return i.minor===u.minor&&i.patch<=u.patch?(t.add(e),!0):a(e);return i.minor<=u.minor?(t.add(e),!0):a(e)}}(n.x)},1063:function(e,t,r){r.d(t,{X:()=>n});var n="object"==typeof globalThis?globalThis:global},93:function(e,t,r){r.d(t,{x:()=>n});var n="1.9.0"},2872:function(e,t,r){r.d(t,{q:()=>o});let n=require("child_process");var o=require("util").promisify(n.exec)},2341:function(e,t,r){r.d(t,{D:()=>u});var n=r(9896),o=r(2872),i=r(4267),a=function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){var c=[i,u];if(r)throw TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&c[0]?n.return:c[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,c[1])).done)return o;switch(n=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return a.label++,{value:c[1],done:!1};case 5:a.label++,n=c[1],c=[0];continue;case 7:c=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===c[0]||2===c[0])){a=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]a});var n=r(2872),o=r(4267),i=function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){var c=[i,u];if(r)throw TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&c[0]?n.return:c[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,c[1])).done)return o;switch(n=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return a.label++,{value:c[1],done:!1};case 5:a.label++,n=c[1],c=[0];continue;case 7:c=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===c[0]||2===c[0])){a=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]u});var n=r(9896),o=r(4267),i=function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){var c=[i,u];if(r)throw TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&c[0]?n.return:c[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,c[1])).done)return o;switch(n=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return a.label++,{value:c[1],done:!1};case 5:a.label++,n=c[1],c=[0];continue;case 7:c=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===c[0]||2===c[0])){a=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};function u(){var e,t,r,u;return e=this,t=void 0,r=void 0,u=function(){var e,t,r,u,c,s,l;return i(this,function(i){switch(i.label){case 0:e=["/etc/machine-id","/var/lib/dbus/machine-id"],i.label=1;case 1:i.trys.push([1,8,9,10]),r=(t=a(e)).next(),i.label=2;case 2:if(r.done)return[3,7];u=r.value,i.label=3;case 3:return i.trys.push([3,5,,6]),[4,n.promises.readFile(u,{encoding:"utf8"})];case 4:return[2,i.sent().trim()];case 5:return c=i.sent(),o.s.debug("error reading machine id: "+c),[3,6];case 6:return r=t.next(),[3,2];case 7:return[3,10];case 8:return s={error:i.sent()},[3,10];case 9:try{r&&!r.done&&(l=t.return)&&l.call(t)}finally{if(s)throw s.error}return[7];case 10:return[2,""]}})},new(r||(r=Promise))(function(n,o){function i(e){try{c(u.next(e))}catch(e){o(e)}}function a(e){try{c(u.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?n(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(i,a)}c((u=u.apply(e,t||[])).next())})}},2063:function(e,t,r){r.d(t,{D:()=>i});var n=r(4267),o=function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){var c=[i,u];if(r)throw TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&c[0]?n.return:c[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,c[1])).done)return o;switch(n=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return a.label++,{value:c[1],done:!1};case 5:a.label++,n=c[1],c=[0];continue;case 7:c=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===c[0]||2===c[0])){a=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]u});var n=r(932),o=r(2872),i=r(4267),a=function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){var c=[i,u];if(r)throw TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&c[0]?n.return:c[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,c[1])).done)return o;switch(n=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return a.label++,{value:c[1],done:!1};case 5:a.label++,n=c[1],c=[0];continue;case 7:c=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===c[0]||2===c[0])){a=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};(()=>{r.r(n),r.d(n,{envDetector:()=>U,envDetectorSync:()=>C,hostDetector:()=>B,Resource:()=>h,osDetector:()=>k,detectResources:()=>W,osDetectorSync:()=>G,browserDetectorSync:()=>R,processDetectorSync:()=>j,detectResourcesSync:()=>J,browserDetector:()=>L,processDetector:()=>F,defaultServiceName:()=>O,hostDetectorSync:()=>D,serviceInstanceIdDetectorSync:()=>Y});var e,t,o,i,a=r(4267),u="process.runtime.name",c="process.runtime.version",s="process.runtime.description",l="service.name",E="telemetry.sdk.name",f="telemetry.sdk.language",_="telemetry.sdk.version",T=((t={})[E]="opentelemetry",t[u]="node",t[f]="nodejs",t[_]="1.30.1",t);function O(){return"unknown_service:"+process.argv0}var p=function(){return(p=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])&&(6===c[0]||2===c[0])){a=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},h=function(){function e(e,t){var r,n=this;this._attributes=e,this.asyncAttributesPending=null!=t,this._syncAttributes=null!=(r=this._attributes)?r:{},this._asyncAttributesPromise=null==t?void 0:t.then(function(e){return n._attributes=Object.assign({},n._attributes,e),n.asyncAttributesPending=!1,e},function(e){return a.s.debug("a resource's async attributes promise rejected: %s",e),n.asyncAttributesPending=!1,{}})}return e.empty=function(){return e.EMPTY},e.default=function(){var t;return new e(((t={})[l]=O(),t[f]=T[f],t[E]=T[E],t[_]=T[_],t))},Object.defineProperty(e.prototype,"attributes",{get:function(){var e;return this.asyncAttributesPending&&a.s.error("Accessing resource attributes before async attributes settled"),null!=(e=this._attributes)?e:{}},enumerable:!1,configurable:!0}),e.prototype.waitForAsyncAttributes=function(){var e,t,r,n;return e=this,t=void 0,r=void 0,n=function(){return d(this,function(e){switch(e.label){case 0:if(!this.asyncAttributesPending)return[3,2];return[4,this._asyncAttributesPromise];case 1:e.sent(),e.label=2;case 2:return[2]}})},new(r||(r=Promise))(function(o,i){function a(e){try{c(n.next(e))}catch(e){i(e)}}function u(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(a,u)}c((n=n.apply(e,t||[])).next())})},e.prototype.merge=function(t){var r,n=this;if(!t)return this;var o=p(p({},this._syncAttributes),null!=(r=t._syncAttributes)?r:t.attributes);return this._asyncAttributesPromise||t._asyncAttributesPromise?new e(o,Promise.all([this._asyncAttributesPromise,t._asyncAttributesPromise]).then(function(e){var r,o=y(e,2),i=o[0],a=o[1];return p(p(p(p({},n._syncAttributes),i),null!=(r=t._syncAttributes)?r:t.attributes),a)})):new e(o)},e.EMPTY=new e({}),e}(),v=function(){return(v=Object.assign||function(e){for(var t,r=1,n=arguments.length;r=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},N=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},C=new(function(){function e(){this._MAX_LENGTH=255,this._COMMA_SEPARATOR=",",this._LABEL_KEY_VALUE_SPLITTER="=",this._ERROR_MESSAGE_INVALID_CHARS="should be a ASCII string with a length greater than 0 and not exceed "+this._MAX_LENGTH+" characters.",this._ERROR_MESSAGE_INVALID_VALUE="should be a ASCII string with a length not exceed "+this._MAX_LENGTH+" characters."}return e.prototype.detect=function(e){var t,r={},n=(t=function(e){var t={};for(var r in I)if("OTEL_LOG_LEVEL"===r)!function(e,t,r){var n=r[e];if("string"==typeof n){var o=m[n.toUpperCase()];null!=o&&(t[e]=o)}}(r,t,e);else if(A.indexOf(r)>-1)!function(e,t,r){if(void 0!==r[e]){var n=String(r[e]);t[e]="true"===n.toLowerCase()}}(r,t,e);else if(P.indexOf(r)>-1)!function(e,t,r,n,o){if(void 0===n&&(n=-1/0),void 0===o&&(o=1/0),void 0!==r[e]){var i=Number(r[e]);isNaN(i)||(io?t[e]=o:t[e]=i)}}(r,t,e);else if(S.indexOf(r)>-1)!function(e,t,r,n){void 0===n&&(n=",");var o=r[e];"string"==typeof o&&(t[e]=o.split(n).map(function(e){return e.trim()}))}(r,t,e);else{var n=e[r];null!=n&&(t[r]=String(n))}return t}(process.env),Object.assign({},I,t)),o=n.OTEL_RESOURCE_ATTRIBUTES,i=n.OTEL_SERVICE_NAME;if(o)try{var u=this._parseResourceAttributes(o);Object.assign(r,u)}catch(e){a.s.debug("EnvDetector failed: "+e.message)}return i&&(r[l]=i),new h(r)},e.prototype._parseResourceAttributes=function(e){if(!e)return{};var t,r,n={},o=e.split(this._COMMA_SEPARATOR,-1);try{for(var i=w(o),a=i.next();!a.done;a=i.next()){var u=a.value.split(this._LABEL_KEY_VALUE_SPLITTER,-1);if(2===u.length){var c=N(u,2),s=c[0],l=c[1];if(s=s.trim(),l=l.trim().split(/^"|"$/).join(""),!this._isValidAndNotEmpty(s))throw Error("Attribute key "+this._ERROR_MESSAGE_INVALID_CHARS);if(!this._isValid(l))throw Error("Attribute value "+this._ERROR_MESSAGE_INVALID_VALUE);n[s]=decodeURIComponent(l)}}}catch(e){t={error:e}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}return n},e.prototype._isValid=function(e){return e.length<=this._MAX_LENGTH&&this._isBaggageOctetString(e)},e.prototype._isBaggageOctetString=function(e){for(var t=0;t126)return!1}return!0},e.prototype._isValidAndNotEmpty=function(e){return e.length>0&&this._isValid(e)},e}()),U=new(function(){function e(){}return e.prototype.detect=function(e){return Promise.resolve(C.detect(e))},e}());let M=require("os");var x=function(e){switch(e){case"arm":return"arm32";case"ppc":return"ppc32";case"x64":return"amd64";default:return e}},X=function(e){switch(e){case"sunos":return"solaris";case"win32":return"windows";default:return e}};switch(r(932).platform){case"darwin":i=r(7821).D;break;case"linux":i=r(2238).D;break;case"freebsd":i=r(2341).D;break;case"win32":i=r(2618).D;break;default:i=r(2063).D}var D=new(function(){function e(){}return e.prototype.detect=function(e){var t;return new h(((t={})["host.name"]=(0,M.hostname)(),t["host.arch"]=x((0,M.arch)()),t),this._getAsyncAttributes())},e.prototype._getAsyncAttributes=function(){return i().then(function(e){var t={};return e&&(t["host.id"]=e),t})},e}()),B=new(function(){function e(){}return e.prototype.detect=function(e){return Promise.resolve(D.detect(e))},e}()),G=new(function(){function e(){}return e.prototype.detect=function(e){var t;return new h(((t={})["os.type"]=X((0,M.platform)()),t["os.version"]=(0,M.release)(),t))},e}()),k=new(function(){function e(){}return e.prototype.detect=function(e){return Promise.resolve(G.detect(e))},e}()),V=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},H=function(e,t,r){if(r||2==arguments.length)for(var n,o=0,i=t.length;o1&&(r["process.command"]=process.argv[1]);try{var n=M.userInfo();r["process.owner"]=n.username}catch(e){a.s.debug("error obtaining process owner: "+e)}return new h(r)},e}()),F=new(function(){function e(){}return e.prototype.detect=function(e){return Promise.resolve(j.detect(e))},e}());let K=require("crypto");var Y=new(function(){function e(){}return e.prototype.detect=function(e){var t;return new h(((t={})["service.instance.id"]=(0,K.randomUUID)(),t))},e}()),q=function(e,t,r,n){return new(r||(r=Promise))(function(o,i){function a(e){try{c(n.next(e))}catch(e){i(e)}}function u(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(a,u)}c((n=n.apply(e,t||[])).next())})},Z=function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){var c=[i,u];if(r)throw TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&c[0]?n.return:c[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,c[1])).done)return o;switch(n=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return a.label++,{value:c[1],done:!1};case 5:a.label++,n=c[1],c=[0];continue;case 7:c=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===c[0]||2===c[0])){a=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]0){var t=JSON.stringify(e.attributes,null,4);a.s.verbose(t)}})}})(),module.exports=n})(); \ No newline at end of file +(()=>{"use strict";var e={7259:function(e,t,r){r.d(t,{K:()=>s});var n=r(7066),o=r(6347),i=r(9232),a=r(844),u=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},c=function(e,t,r){if(r||2==arguments.length)for(var n,o=0,i=t.length;o";l.warn("Current logger will be overwritten from "+f),E.warn("Current logger will overwrite one already registered from "+f)}return(0,a.$G)("diag",E,t,!0)},t.disable=function(){(0,a.kv)("diag",t)},t.createComponentLogger=function(e){return new n.V(e)},t.verbose=e("verbose"),t.debug=e("debug"),t.info=e("info"),t.warn=e("warn"),t.error=e("error")}return e.instance=function(){return this._instance||(this._instance=new e),this._instance},e}()},2339:function(e,t,r){r.d(t,{s:()=>n});var n=r(7259).K.instance()},7066:function(e,t,r){r.d(t,{V:()=>a});var n=r(844),o=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},i=function(e,t,r){if(r||2==arguments.length)for(var n,o=0,i=t.length;oo});var n=r(9232);function o(e,t){function r(r,n){var o=t[r];return"function"==typeof o&&e>=n?o.bind(t):function(){}}return en.u.ALL&&(e=n.u.ALL),t=t||{},{error:r("error",n.u.ERROR),warn:r("warn",n.u.WARN),info:r("info",n.u.INFO),debug:r("debug",n.u.DEBUG),verbose:r("verbose",n.u.VERBOSE)}}},9232:function(e,t,r){var n,o;r.d(t,{u:()=>n}),(o=n||(n={}))[o.NONE=0]="NONE",o[o.ERROR=30]="ERROR",o[o.WARN=50]="WARN",o[o.INFO=60]="INFO",o[o.DEBUG=70]="DEBUG",o[o.VERBOSE=80]="VERBOSE",o[o.ALL=9999]="ALL"},844:function(e,t,r){r.d(t,{$G:()=>c,kv:()=>l,mS:()=>s});var n=r(4111),o=r(8533),i=r(5391),a=Symbol.for("opentelemetry.js.api."+o.x.split(".")[0]),u=n.X;function c(e,t,r,n){void 0===n&&(n=!1);var i,c=u[a]=null!=(i=u[a])?i:{version:o.x};if(!n&&c[e]){var s=Error("@opentelemetry/api: Attempted duplicate registration of API: "+e);return r.error(s.stack||s.message),!1}if(c.version!==o.x){var s=Error("@opentelemetry/api: Registration of version v"+c.version+" for "+e+" does not match previously registered API v"+o.x);return r.error(s.stack||s.message),!1}return c[e]=t,r.debug("@opentelemetry/api: Registered a global for "+e+" v"+o.x+"."),!0}function s(e){var t,r,n=null==(t=u[a])?void 0:t.version;if(n&&(0,i.$)(n))return null==(r=u[a])?void 0:r[e]}function l(e,t){t.debug("@opentelemetry/api: Unregistering a global for "+e+" v"+o.x+".");var r=u[a];r&&delete r[e]}},5391:function(e,t,r){r.d(t,{$:()=>i});var n=r(8533),o=/^(\d+)\.(\d+)\.(\d+)(-(.+))?$/,i=function(e){var t=new Set([e]),r=new Set,n=e.match(o);if(!n)return function(){return!1};var i={major:+n[1],minor:+n[2],patch:+n[3],prerelease:n[4]};if(null!=i.prerelease)return function(t){return t===e};function a(e){return r.add(e),!1}return function(e){if(t.has(e))return!0;if(r.has(e))return!1;var n=e.match(o);if(!n)return a(e);var u={major:+n[1],minor:+n[2],patch:+n[3],prerelease:n[4]};if(null!=u.prerelease||i.major!==u.major)return a(e);if(0===i.major)return i.minor===u.minor&&i.patch<=u.patch?(t.add(e),!0):a(e);return i.minor<=u.minor?(t.add(e),!0):a(e)}}(n.x)},4111:function(e,t,r){r.d(t,{X:()=>n});var n="object"==typeof globalThis?globalThis:global},8533:function(e,t,r){r.d(t,{x:()=>n});var n="1.9.0"},2872:function(e,t,r){r.d(t,{q:()=>o});let n=require("child_process");var o=require("util").promisify(n.exec)},2341:function(e,t,r){r.d(t,{D:()=>u});var n=r(9896),o=r(2872),i=r(2339),a=function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){var c=[i,u];if(r)throw TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&c[0]?n.return:c[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,c[1])).done)return o;switch(n=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return a.label++,{value:c[1],done:!1};case 5:a.label++,n=c[1],c=[0];continue;case 7:c=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===c[0]||2===c[0])){a=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]a});var n=r(2872),o=r(2339),i=function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){var c=[i,u];if(r)throw TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&c[0]?n.return:c[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,c[1])).done)return o;switch(n=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return a.label++,{value:c[1],done:!1};case 5:a.label++,n=c[1],c=[0];continue;case 7:c=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===c[0]||2===c[0])){a=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]u});var n=r(9896),o=r(2339),i=function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){var c=[i,u];if(r)throw TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&c[0]?n.return:c[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,c[1])).done)return o;switch(n=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return a.label++,{value:c[1],done:!1};case 5:a.label++,n=c[1],c=[0];continue;case 7:c=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===c[0]||2===c[0])){a=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};function u(){var e,t,r,u;return e=this,t=void 0,r=void 0,u=function(){var e,t,r,u,c,s,l;return i(this,function(i){switch(i.label){case 0:e=["/etc/machine-id","/var/lib/dbus/machine-id"],i.label=1;case 1:i.trys.push([1,8,9,10]),r=(t=a(e)).next(),i.label=2;case 2:if(r.done)return[3,7];u=r.value,i.label=3;case 3:return i.trys.push([3,5,,6]),[4,n.promises.readFile(u,{encoding:"utf8"})];case 4:return[2,i.sent().trim()];case 5:return c=i.sent(),o.s.debug("error reading machine id: "+c),[3,6];case 6:return r=t.next(),[3,2];case 7:return[3,10];case 8:return s={error:i.sent()},[3,10];case 9:try{r&&!r.done&&(l=t.return)&&l.call(t)}finally{if(s)throw s.error}return[7];case 10:return[2,""]}})},new(r||(r=Promise))(function(n,o){function i(e){try{c(u.next(e))}catch(e){o(e)}}function a(e){try{c(u.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?n(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(i,a)}c((u=u.apply(e,t||[])).next())})}},2063:function(e,t,r){r.d(t,{D:()=>i});var n=r(2339),o=function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){var c=[i,u];if(r)throw TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&c[0]?n.return:c[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,c[1])).done)return o;switch(n=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return a.label++,{value:c[1],done:!1};case 5:a.label++,n=c[1],c=[0];continue;case 7:c=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===c[0]||2===c[0])){a=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]u});var n=r(932),o=r(2872),i=r(2339),a=function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){var c=[i,u];if(r)throw TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&c[0]?n.return:c[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,c[1])).done)return o;switch(n=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return a.label++,{value:c[1],done:!1};case 5:a.label++,n=c[1],c=[0];continue;case 7:c=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===c[0]||2===c[0])){a=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};(()=>{r.r(n),r.d(n,{envDetector:()=>U,envDetectorSync:()=>C,hostDetector:()=>B,Resource:()=>h,osDetector:()=>k,detectResources:()=>W,osDetectorSync:()=>G,browserDetectorSync:()=>R,processDetectorSync:()=>j,detectResourcesSync:()=>J,browserDetector:()=>L,processDetector:()=>F,defaultServiceName:()=>O,hostDetectorSync:()=>D,serviceInstanceIdDetectorSync:()=>Y});var e,t,o,i,a=r(2339),u="process.runtime.name",c="process.runtime.version",s="process.runtime.description",l="service.name",E="telemetry.sdk.name",f="telemetry.sdk.language",_="telemetry.sdk.version",T=((t={})[E]="opentelemetry",t[u]="node",t[f]="nodejs",t[_]="1.30.1",t);function O(){return"unknown_service:"+process.argv0}var p=function(){return(p=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])&&(6===c[0]||2===c[0])){a=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},h=function(){function e(e,t){var r,n=this;this._attributes=e,this.asyncAttributesPending=null!=t,this._syncAttributes=null!=(r=this._attributes)?r:{},this._asyncAttributesPromise=null==t?void 0:t.then(function(e){return n._attributes=Object.assign({},n._attributes,e),n.asyncAttributesPending=!1,e},function(e){return a.s.debug("a resource's async attributes promise rejected: %s",e),n.asyncAttributesPending=!1,{}})}return e.empty=function(){return e.EMPTY},e.default=function(){var t;return new e(((t={})[l]=O(),t[f]=T[f],t[E]=T[E],t[_]=T[_],t))},Object.defineProperty(e.prototype,"attributes",{get:function(){var e;return this.asyncAttributesPending&&a.s.error("Accessing resource attributes before async attributes settled"),null!=(e=this._attributes)?e:{}},enumerable:!1,configurable:!0}),e.prototype.waitForAsyncAttributes=function(){var e,t,r,n;return e=this,t=void 0,r=void 0,n=function(){return d(this,function(e){switch(e.label){case 0:if(!this.asyncAttributesPending)return[3,2];return[4,this._asyncAttributesPromise];case 1:e.sent(),e.label=2;case 2:return[2]}})},new(r||(r=Promise))(function(o,i){function a(e){try{c(n.next(e))}catch(e){i(e)}}function u(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(a,u)}c((n=n.apply(e,t||[])).next())})},e.prototype.merge=function(t){var r,n=this;if(!t)return this;var o=p(p({},this._syncAttributes),null!=(r=t._syncAttributes)?r:t.attributes);return this._asyncAttributesPromise||t._asyncAttributesPromise?new e(o,Promise.all([this._asyncAttributesPromise,t._asyncAttributesPromise]).then(function(e){var r,o=y(e,2),i=o[0],a=o[1];return p(p(p(p({},n._syncAttributes),i),null!=(r=t._syncAttributes)?r:t.attributes),a)})):new e(o)},e.EMPTY=new e({}),e}(),v=function(){return(v=Object.assign||function(e){for(var t,r=1,n=arguments.length;r=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},N=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},C=new(function(){function e(){this._MAX_LENGTH=255,this._COMMA_SEPARATOR=",",this._LABEL_KEY_VALUE_SPLITTER="=",this._ERROR_MESSAGE_INVALID_CHARS="should be a ASCII string with a length greater than 0 and not exceed "+this._MAX_LENGTH+" characters.",this._ERROR_MESSAGE_INVALID_VALUE="should be a ASCII string with a length not exceed "+this._MAX_LENGTH+" characters."}return e.prototype.detect=function(e){var t,r={},n=(t=function(e){var t={};for(var r in I)if("OTEL_LOG_LEVEL"===r)!function(e,t,r){var n=r[e];if("string"==typeof n){var o=m[n.toUpperCase()];null!=o&&(t[e]=o)}}(r,t,e);else if(A.indexOf(r)>-1)!function(e,t,r){if(void 0!==r[e]){var n=String(r[e]);t[e]="true"===n.toLowerCase()}}(r,t,e);else if(P.indexOf(r)>-1)!function(e,t,r,n,o){if(void 0===n&&(n=-1/0),void 0===o&&(o=1/0),void 0!==r[e]){var i=Number(r[e]);isNaN(i)||(io?t[e]=o:t[e]=i)}}(r,t,e);else if(S.indexOf(r)>-1)!function(e,t,r,n){void 0===n&&(n=",");var o=r[e];"string"==typeof o&&(t[e]=o.split(n).map(function(e){return e.trim()}))}(r,t,e);else{var n=e[r];null!=n&&(t[r]=String(n))}return t}(process.env),Object.assign({},I,t)),o=n.OTEL_RESOURCE_ATTRIBUTES,i=n.OTEL_SERVICE_NAME;if(o)try{var u=this._parseResourceAttributes(o);Object.assign(r,u)}catch(e){a.s.debug("EnvDetector failed: "+e.message)}return i&&(r[l]=i),new h(r)},e.prototype._parseResourceAttributes=function(e){if(!e)return{};var t,r,n={},o=e.split(this._COMMA_SEPARATOR,-1);try{for(var i=w(o),a=i.next();!a.done;a=i.next()){var u=a.value.split(this._LABEL_KEY_VALUE_SPLITTER,-1);if(2===u.length){var c=N(u,2),s=c[0],l=c[1];if(s=s.trim(),l=l.trim().split(/^"|"$/).join(""),!this._isValidAndNotEmpty(s))throw Error("Attribute key "+this._ERROR_MESSAGE_INVALID_CHARS);if(!this._isValid(l))throw Error("Attribute value "+this._ERROR_MESSAGE_INVALID_VALUE);n[s]=decodeURIComponent(l)}}}catch(e){t={error:e}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}return n},e.prototype._isValid=function(e){return e.length<=this._MAX_LENGTH&&this._isBaggageOctetString(e)},e.prototype._isBaggageOctetString=function(e){for(var t=0;t126)return!1}return!0},e.prototype._isValidAndNotEmpty=function(e){return e.length>0&&this._isValid(e)},e}()),U=new(function(){function e(){}return e.prototype.detect=function(e){return Promise.resolve(C.detect(e))},e}());let M=require("os");var x=function(e){switch(e){case"arm":return"arm32";case"ppc":return"ppc32";case"x64":return"amd64";default:return e}},X=function(e){switch(e){case"sunos":return"solaris";case"win32":return"windows";default:return e}};switch(r(932).platform){case"darwin":i=r(7821).D;break;case"linux":i=r(2238).D;break;case"freebsd":i=r(2341).D;break;case"win32":i=r(2618).D;break;default:i=r(2063).D}var D=new(function(){function e(){}return e.prototype.detect=function(e){var t;return new h(((t={})["host.name"]=(0,M.hostname)(),t["host.arch"]=x((0,M.arch)()),t),this._getAsyncAttributes())},e.prototype._getAsyncAttributes=function(){return i().then(function(e){var t={};return e&&(t["host.id"]=e),t})},e}()),B=new(function(){function e(){}return e.prototype.detect=function(e){return Promise.resolve(D.detect(e))},e}()),G=new(function(){function e(){}return e.prototype.detect=function(e){var t;return new h(((t={})["os.type"]=X((0,M.platform)()),t["os.version"]=(0,M.release)(),t))},e}()),k=new(function(){function e(){}return e.prototype.detect=function(e){return Promise.resolve(G.detect(e))},e}()),V=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},H=function(e,t,r){if(r||2==arguments.length)for(var n,o=0,i=t.length;o1&&(r["process.command"]=process.argv[1]);try{var n=M.userInfo();r["process.owner"]=n.username}catch(e){a.s.debug("error obtaining process owner: "+e)}return new h(r)},e}()),F=new(function(){function e(){}return e.prototype.detect=function(e){return Promise.resolve(j.detect(e))},e}());let K=require("crypto");var Y=new(function(){function e(){}return e.prototype.detect=function(e){var t;return new h(((t={})["service.instance.id"]=(0,K.randomUUID)(),t))},e}()),q=function(e,t,r,n){return new(r||(r=Promise))(function(o,i){function a(e){try{c(n.next(e))}catch(e){i(e)}}function u(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(a,u)}c((n=n.apply(e,t||[])).next())})},Z=function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){var c=[i,u];if(r)throw TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&c[0]?n.return:c[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,c[1])).done)return o;switch(n=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return a.label++,{value:c[1],done:!1};case 5:a.label++,n=c[1],c=[0];continue;case 7:c=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===c[0]||2===c[0])){a=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]0){var t=JSON.stringify(e.attributes,null,4);a.s.verbose(t)}})}})(),module.exports=n})(); \ No newline at end of file diff --git a/packages/node_modules/mutexify/promise/LICENSE b/packages/node_modules/mutexify/promise/LICENSE index 702b8e70fc7..8ff6bf68f98 100644 --- a/packages/node_modules/mutexify/promise/LICENSE +++ b/packages/node_modules/mutexify/promise/LICENSE @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2021 Mathias Buus +Copyright (c) 2014 Mathias Buus Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/packages/node_modules/protobufjs/minimal/LICENSE b/packages/node_modules/protobufjs/minimal/LICENSE index be2b397e3c3..57b7e30978f 100644 --- a/packages/node_modules/protobufjs/minimal/LICENSE +++ b/packages/node_modules/protobufjs/minimal/LICENSE @@ -1,3 +1,9 @@ +This license applies to all parts of protobuf.js except those files +either explicitly including or referencing a different license or +located in a directory containing a different LICENSE file. + +--- + Copyright (c) 2016, Daniel Wirtz All rights reserved. Redistribution and use in source and binary forms, with or without @@ -24,3 +30,10 @@ DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +--- + +Code generated by the command line utilities is owned by the owner +of the input file used when generating it. This code is not +standalone and requires a support library to be linked with it. This +support library is itself covered by the above license. diff --git a/vendor/rspack.config.js b/vendor/rspack.config.js index cf77b4ff9e6..bff18603a32 100644 --- a/vendor/rspack.config.js +++ b/vendor/rspack.config.js @@ -5,22 +5,19 @@ const { LicenseWebpackPlugin } = require('license-webpack-plugin') const { join } = require('path') const { dependencies } = require('./package.json') -const include = [ +const include = new Set([ + ...Object.keys(dependencies), 'mutexify/promise', 'protobufjs/minimal', // peer dependency for `@datadog/sketches-js` 'source-map/lib/util' -] +]) -const exclude = [ +const exclude = new Set([ 'mutexify' // we only ever use `mutexify/promise` -] - -const names = Object.keys(dependencies) - .concat(include) - .filter(name => !exclude.includes(name)) +]) module.exports = { - entry: Object.fromEntries(names.map(name => [name, name])), + entry: Object.fromEntries(include.difference(exclude).entries()), target: 'node', mode: 'production', devtool: false, @@ -28,6 +25,7 @@ module.exports = { plugins: [ new LicenseWebpackPlugin({ outputFilename: '[name]/LICENSE', + excludedPackageTest: packageName => !include.has(packageName), renderLicenses: modules => modules[0].licenseText, stats: { warnings: false From 2470cb400b6eefda6b5784fe52090d1c6153cf2d Mon Sep 17 00:00:00 2001 From: rochdev Date: Mon, 24 Nov 2025 17:56:11 -0500 Subject: [PATCH 40/95] remove dependency on otel api --- package.json | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index f085395b190..fb7a8974767 100644 --- a/package.json +++ b/package.json @@ -123,11 +123,17 @@ "version.js" ], "dependencies": { - "@opentelemetry/api": ">=1.0.0 <1.10.0", - "@opentelemetry/api-logs": "<1.0.0", "dc-polyfill": "^0.1.10", "import-in-the-middle": "^1.14.2" }, + "peerDependencies": { + "@opentelemetry/api": ">=1.0.0 <1.10.0" + }, + "peerDependenciesMeta": { + "@opentelemetry/api": { + "optional": true + } + }, "optionalDependencies": { "@datadog/libdatadog": "0.7.0", "@datadog/native-appsec": "10.3.0", @@ -143,6 +149,8 @@ "@msgpack/msgpack": "^3.1.2", "@openfeature/core": "^1.9.0", "@openfeature/server-sdk": "~1.20.0", + "@opentelemetry/api": ">=1.0.0 <1.10.0", + "@opentelemetry/api-logs": "<1.0.0", "@stylistic/eslint-plugin": "^5.5.0", "@types/chai": "^4.3.16", "@types/mocha": "^10.0.10", From 1227fef841a82c633cf59e54286fabaed0c01385 Mon Sep 17 00:00:00 2001 From: rochdev Date: Mon, 24 Nov 2025 18:07:21 -0500 Subject: [PATCH 41/95] move otel api-logs to peer dependencies --- package.json | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index fb7a8974767..992e9e5a076 100644 --- a/package.json +++ b/package.json @@ -127,11 +127,15 @@ "import-in-the-middle": "^1.14.2" }, "peerDependencies": { - "@opentelemetry/api": ">=1.0.0 <1.10.0" + "@opentelemetry/api": ">=1.0.0 <1.10.0", + "@opentelemetry/api-logs": "<1.0.0" }, "peerDependenciesMeta": { "@opentelemetry/api": { "optional": true + }, + "@opentelemetry/api-logs": { + "optional": true } }, "optionalDependencies": { From 817197d36e62c088f4b320ab46ae0decceb515c3 Mon Sep 17 00:00:00 2001 From: rochdev Date: Mon, 24 Nov 2025 19:05:49 -0500 Subject: [PATCH 42/95] remove optional flag for otel api --- package.json | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index 992e9e5a076..193bc7755f8 100644 --- a/package.json +++ b/package.json @@ -132,10 +132,10 @@ }, "peerDependenciesMeta": { "@opentelemetry/api": { - "optional": true + "optional": false }, "@opentelemetry/api-logs": { - "optional": true + "optional": false } }, "optionalDependencies": { @@ -153,8 +153,6 @@ "@msgpack/msgpack": "^3.1.2", "@openfeature/core": "^1.9.0", "@openfeature/server-sdk": "~1.20.0", - "@opentelemetry/api": ">=1.0.0 <1.10.0", - "@opentelemetry/api-logs": "<1.0.0", "@stylistic/eslint-plugin": "^5.5.0", "@types/chai": "^4.3.16", "@types/mocha": "^10.0.10", From 0d89378598b055061665bf4deabca2291f57419f Mon Sep 17 00:00:00 2001 From: rochdev Date: Mon, 24 Nov 2025 19:29:39 -0500 Subject: [PATCH 43/95] move otel api to optional dependencies --- package.json | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) diff --git a/package.json b/package.json index 193bc7755f8..27d68ea7e49 100644 --- a/package.json +++ b/package.json @@ -126,25 +126,15 @@ "dc-polyfill": "^0.1.10", "import-in-the-middle": "^1.14.2" }, - "peerDependencies": { - "@opentelemetry/api": ">=1.0.0 <1.10.0", - "@opentelemetry/api-logs": "<1.0.0" - }, - "peerDependenciesMeta": { - "@opentelemetry/api": { - "optional": false - }, - "@opentelemetry/api-logs": { - "optional": false - } - }, "optionalDependencies": { "@datadog/libdatadog": "0.7.0", "@datadog/native-appsec": "10.3.0", "@datadog/native-iast-taint-tracking": "4.1.0", "@datadog/native-metrics": "3.1.1", "@datadog/pprof": "5.12.0", - "@datadog/wasm-js-rewriter": "5.0.1" + "@datadog/wasm-js-rewriter": "5.0.1", + "@opentelemetry/api": ">=1.0.0 <1.10.0", + "@opentelemetry/api-logs": "<1.0.0" }, "devDependencies": { "@babel/helpers": "^7.28.4", From 1aee4e8b3fbb04c2a8e76b4ef1cf4906e8becdfc Mon Sep 17 00:00:00 2001 From: rochdev Date: Tue, 25 Nov 2025 10:23:10 -0500 Subject: [PATCH 44/95] fix playwright test --- integration-tests/playwright/playwright.spec.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/integration-tests/playwright/playwright.spec.js b/integration-tests/playwright/playwright.spec.js index 3db9a12080e..17a0b2b129e 100644 --- a/integration-tests/playwright/playwright.spec.js +++ b/integration-tests/playwright/playwright.spec.js @@ -83,7 +83,7 @@ versions.forEach((version) => { this.retries(2) this.timeout(80000) - useSandbox([`@playwright/test@${version}`, 'typescript'], true) + useSandbox([`@playwright/test@${version}`, '@types/node', 'typescript'], true) before(function (done) { // Increase timeout for this hook specifically to account for slow chromium installation in CI @@ -297,6 +297,8 @@ versions.forEach((version) => { stdio: 'inherit' } ) + childProcess.stdout.pipe(process.stdout) + childProcess.stderr.pipe(process.stderr) childProcess.stdout.on('data', chunk => { testOutput += chunk.toString() }) From cc36535e649747532b9ad5a5a02bd4163022d937 Mon Sep 17 00:00:00 2001 From: rochdev Date: Tue, 25 Nov 2025 15:25:28 -0500 Subject: [PATCH 45/95] vendor graphql language tools --- .../src/tools/transforms.js | 4 ++-- .../node_modules/graphql/language/LICENSE | 21 +++++++++++++++++++ .../node_modules/graphql/language/index.js | 13 ++++++++++++ vendor/package.json | 1 + vendor/rspack.config.js | 2 ++ vendor/yarn.lock | 5 +++++ 6 files changed, 44 insertions(+), 2 deletions(-) create mode 100644 packages/node_modules/graphql/language/LICENSE create mode 100644 packages/node_modules/graphql/language/index.js diff --git a/packages/datadog-plugin-graphql/src/tools/transforms.js b/packages/datadog-plugin-graphql/src/tools/transforms.js index 542daa525fa..6dde1bc1524 100644 --- a/packages/datadog-plugin-graphql/src/tools/transforms.js +++ b/packages/datadog-plugin-graphql/src/tools/transforms.js @@ -5,8 +5,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); -const visitor_1 = require("graphql/language/visitor"); -const printer_1 = require("graphql/language/printer"); +const visitor_1 = require("graphql/language"); +const printer_1 = require("graphql/language"); const utilities_1 = require("graphql/utilities"); const lodash_sortby_1 = __importDefault(require("lodash.sortby")); function hideLiterals(ast) { diff --git a/packages/node_modules/graphql/language/LICENSE b/packages/node_modules/graphql/language/LICENSE new file mode 100644 index 00000000000..7bbf892a049 --- /dev/null +++ b/packages/node_modules/graphql/language/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) GraphQL Contributors + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/packages/node_modules/graphql/language/index.js b/packages/node_modules/graphql/language/index.js new file mode 100644 index 00000000000..db6401f699e --- /dev/null +++ b/packages/node_modules/graphql/language/index.js @@ -0,0 +1,13 @@ +(()=>{"use strict";var e,n,t,i,r,o,s,a,l,u,c,d,p={7561:function(e,n,t){Object.defineProperty(n,"__esModule",{value:!0}),n.GraphQLError=void 0,n.formatError=function(e){return e.toJSON()},n.printError=function(e){return e.toString()};var i=t(7006),r=t(8515),o=t(5018);class s extends Error{constructor(e,...n){var t,o,l;const{nodes:u,source:c,positions:d,path:p,originalError:h,extensions:T}=function(e){let n=e[0];return null==n||"kind"in n||"length"in n?{nodes:n,source:e[1],positions:e[2],path:e[3],originalError:e[4],extensions:e[5]}:n}(n);super(e),this.name="GraphQLError",this.path=null!=p?p:void 0,this.originalError=null!=h?h:void 0,this.nodes=a(Array.isArray(u)?u:u?[u]:void 0);const f=a(null==(t=this.nodes)?void 0:t.map(e=>e.loc).filter(e=>null!=e));this.source=null!=c?c:null==f||null==(o=f[0])?void 0:o.source,this.positions=null!=d?d:null==f?void 0:f.map(e=>e.start),this.locations=d&&c?d.map(e=>(0,r.getLocation)(c,e)):null==f?void 0:f.map(e=>(0,r.getLocation)(e.source,e.start));const E=(0,i.isObjectLike)(null==h?void 0:h.extensions)?null==h?void 0:h.extensions:void 0;this.extensions=null!=(l=null!=T?T:E)?l:Object.create(null),Object.defineProperties(this,{message:{writable:!0,enumerable:!0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),null!=h&&h.stack?Object.defineProperty(this,"stack",{value:h.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,s):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let e=this.message;if(this.nodes)for(let n of this.nodes)n.loc&&(e+="\n\n"+(0,o.printLocation)(n.loc));else if(this.source&&this.locations)for(let n of this.locations)e+="\n\n"+(0,o.printSourceLocation)(this.source,n);return e}toJSON(){let e={message:this.message};return null!=this.locations&&(e.locations=this.locations),null!=this.path&&(e.path=this.path),null!=this.extensions&&Object.keys(this.extensions).length>0&&(e.extensions=this.extensions),e}}function a(e){return void 0===e||0===e.length?void 0:e}n.GraphQLError=s},221:function(e,n,t){Object.defineProperty(n,"__esModule",{value:!0}),n.syntaxError=function(e,n,t){return new i.GraphQLError(`Syntax Error: ${t}`,{source:e,positions:[n]})};var i=t(7561)},861:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.devAssert=function(e,n){if(!e)throw Error(n)}},7704:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.inspect=function(e){return function e(n,t){switch(typeof n){case"string":return JSON.stringify(n);case"function":return n.name?`[function ${n.name}]`:"[function]";case"object":return function(n,t){let i;if(null===n)return"null";if(t.includes(n))return"[Circular]";let r=[...t,n];if("function"==typeof n.toJSON){let t=n.toJSON();if(t!==n)return"string"==typeof t?t:e(t,r)}else if(Array.isArray(n)){var o,s,a=n,l=r;if(0===a.length)return"[]";if(l.length>2)return"[Array]";let t=Math.min(10,a.length),i=a.length-t,u=[];for(let n=0;n1&&u.push(`... ${i} more items`),"["+u.join(", ")+"]"}return o=n,s=r,0===(i=Object.entries(o)).length?"{}":s.length>2?"["+function(e){let n=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if("Object"===n&&"function"==typeof e.constructor){let n=e.constructor.name;if("string"==typeof n&&""!==n)return n}return n}(o)+"]":"{ "+i.map(([n,t])=>n+": "+e(t,s)).join(", ")+" }"}(n,t);default:return String(n)}}(e,[])}},8092:function(e,n,t){Object.defineProperty(n,"__esModule",{value:!0}),n.instanceOf=void 0;var i=t(7704);n.instanceOf=globalThis.process&&1?function(e,n){return e instanceof n}:function(e,n){if(e instanceof n)return!0;if("object"==typeof e&&null!==e){var t;let r=n.prototype[Symbol.toStringTag];if(r===(Symbol.toStringTag in e?e[Symbol.toStringTag]:null==(t=e.constructor)?void 0:t.name)){let n=(0,i.inspect)(e);throw Error(`Cannot use ${r} "${n}" from another module or realm. + +Ensure that there is only one instance of "graphql" in the node_modules +directory. If different versions of "graphql" are the dependencies of other +relied on modules, use "resolutions" to ensure only one version is installed. + +https://yarnpkg.com/en/docs/selective-version-resolutions + +Duplicate "graphql" modules cannot be used at the same time since different +versions may have different capabilities and behavior. The data from one +version used in the function from another could produce confusing and +spurious results.`)}}return!1}},8512:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.invariant=function(e,n){if(!e)throw Error(null!=n?n:"Unexpected invariant triggered.")}},7006:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.isObjectLike=function(e){return"object"==typeof e&&null!==e}},7226:function(e,n){var t,i;Object.defineProperty(n,"__esModule",{value:!0}),n.Token=n.QueryDocumentKeys=n.OperationTypeNode=n.Location=void 0,n.isNode=function(e){let n=null==e?void 0:e.kind;return"string"==typeof n&&a.has(n)};class r{constructor(e,n,t){this.start=e.start,this.end=n.end,this.startToken=e,this.endToken=n,this.source=t}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}}n.Location=r;class o{constructor(e,n,t,i,r,o){this.kind=e,this.start=n,this.end=t,this.line=i,this.column=r,this.value=o,this.prev=null,this.next=null}get[Symbol.toStringTag](){return"Token"}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}}n.Token=o;let s={Name:[],Document:["definitions"],OperationDefinition:["description","name","variableDefinitions","directives","selectionSet"],VariableDefinition:["description","variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["description","name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"],TypeCoordinate:["name"],MemberCoordinate:["name","memberName"],ArgumentCoordinate:["name","fieldName","argumentName"],DirectiveCoordinate:["name"],DirectiveArgumentCoordinate:["name","argumentName"]};n.QueryDocumentKeys=s;let a=new Set(Object.keys(s));n.OperationTypeNode=t,(i=t||(n.OperationTypeNode=t={})).QUERY="query",i.MUTATION="mutation",i.SUBSCRIPTION="subscription"},6158:function(e,n,t){Object.defineProperty(n,"__esModule",{value:!0}),n.dedentBlockStringLines=function(e){var n,t;let r=Number.MAX_SAFE_INTEGER,o=null,s=-1;for(let n=0;n0===n?e:e.slice(r)).slice(null!=(n=o)?n:0,s+1)},n.isPrintableAsBlockString=function(e){if(""===e)return!0;let n=!0,t=!1,i=!0,r=!1;for(let o=0;o1&&r.slice(1).every(e=>0===e.length||(0,i.isWhiteSpace)(e.charCodeAt(0))),a=t.endsWith('\\"""'),l=e.endsWith('"')&&!a,u=e.endsWith("\\"),c=l||u,d=!(null!=n&&n.minimize)&&(!o||e.length>70||c||s||a),p="",h=o&&(0,i.isWhiteSpace)(e.charCodeAt(0));return(d&&!h||s)&&(p+="\n"),p+=t,(d||c)&&(p+="\n"),'"""'+p+'"""'};var i=t(9349)},9349:function(e,n){function t(e){return e>=48&&e<=57}function i(e){return e>=97&&e<=122||e>=65&&e<=90}Object.defineProperty(n,"__esModule",{value:!0}),n.isDigit=t,n.isLetter=i,n.isNameContinue=function(e){return i(e)||t(e)||95===e},n.isNameStart=function(e){return i(e)||95===e},n.isWhiteSpace=function(e){return 9===e||32===e}},9996:function(e,n){var t,i;Object.defineProperty(n,"__esModule",{value:!0}),n.DirectiveLocation=void 0,n.DirectiveLocation=t,(i=t||(n.DirectiveLocation=t={})).QUERY="QUERY",i.MUTATION="MUTATION",i.SUBSCRIPTION="SUBSCRIPTION",i.FIELD="FIELD",i.FRAGMENT_DEFINITION="FRAGMENT_DEFINITION",i.FRAGMENT_SPREAD="FRAGMENT_SPREAD",i.INLINE_FRAGMENT="INLINE_FRAGMENT",i.VARIABLE_DEFINITION="VARIABLE_DEFINITION",i.SCHEMA="SCHEMA",i.SCALAR="SCALAR",i.OBJECT="OBJECT",i.FIELD_DEFINITION="FIELD_DEFINITION",i.ARGUMENT_DEFINITION="ARGUMENT_DEFINITION",i.INTERFACE="INTERFACE",i.UNION="UNION",i.ENUM="ENUM",i.ENUM_VALUE="ENUM_VALUE",i.INPUT_OBJECT="INPUT_OBJECT",i.INPUT_FIELD_DEFINITION="INPUT_FIELD_DEFINITION"},8433:function(e,n){var t,i;Object.defineProperty(n,"__esModule",{value:!0}),n.Kind=void 0,n.Kind=t,(i=t||(n.Kind=t={})).NAME="Name",i.DOCUMENT="Document",i.OPERATION_DEFINITION="OperationDefinition",i.VARIABLE_DEFINITION="VariableDefinition",i.SELECTION_SET="SelectionSet",i.FIELD="Field",i.ARGUMENT="Argument",i.FRAGMENT_SPREAD="FragmentSpread",i.INLINE_FRAGMENT="InlineFragment",i.FRAGMENT_DEFINITION="FragmentDefinition",i.VARIABLE="Variable",i.INT="IntValue",i.FLOAT="FloatValue",i.STRING="StringValue",i.BOOLEAN="BooleanValue",i.NULL="NullValue",i.ENUM="EnumValue",i.LIST="ListValue",i.OBJECT="ObjectValue",i.OBJECT_FIELD="ObjectField",i.DIRECTIVE="Directive",i.NAMED_TYPE="NamedType",i.LIST_TYPE="ListType",i.NON_NULL_TYPE="NonNullType",i.SCHEMA_DEFINITION="SchemaDefinition",i.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",i.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",i.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",i.FIELD_DEFINITION="FieldDefinition",i.INPUT_VALUE_DEFINITION="InputValueDefinition",i.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",i.UNION_TYPE_DEFINITION="UnionTypeDefinition",i.ENUM_TYPE_DEFINITION="EnumTypeDefinition",i.ENUM_VALUE_DEFINITION="EnumValueDefinition",i.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",i.DIRECTIVE_DEFINITION="DirectiveDefinition",i.SCHEMA_EXTENSION="SchemaExtension",i.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",i.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",i.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",i.UNION_TYPE_EXTENSION="UnionTypeExtension",i.ENUM_TYPE_EXTENSION="EnumTypeExtension",i.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension",i.TYPE_COORDINATE="TypeCoordinate",i.MEMBER_COORDINATE="MemberCoordinate",i.ARGUMENT_COORDINATE="ArgumentCoordinate",i.DIRECTIVE_COORDINATE="DirectiveCoordinate",i.DIRECTIVE_ARGUMENT_COORDINATE="DirectiveArgumentCoordinate"},5316:function(e,n,t){Object.defineProperty(n,"__esModule",{value:!0}),n.Lexer=void 0,n.createToken=T,n.isPunctuatorTokenKind=function(e){return e===a.TokenKind.BANG||e===a.TokenKind.DOLLAR||e===a.TokenKind.AMP||e===a.TokenKind.PAREN_L||e===a.TokenKind.PAREN_R||e===a.TokenKind.DOT||e===a.TokenKind.SPREAD||e===a.TokenKind.COLON||e===a.TokenKind.EQUALS||e===a.TokenKind.AT||e===a.TokenKind.BRACKET_L||e===a.TokenKind.BRACKET_R||e===a.TokenKind.BRACE_L||e===a.TokenKind.PIPE||e===a.TokenKind.BRACE_R},n.printCodePointAt=h,n.readName=k;var i=t(221),r=t(7226),o=t(6158),s=t(9349),a=t(5229);class l{constructor(e){const n=new r.Token(a.TokenKind.SOF,0,0,0,0);this.source=e,this.lastToken=n,this.token=n,this.line=1,this.lineStart=0}get[Symbol.toStringTag](){return"Lexer"}advance(){return this.lastToken=this.token,this.token=this.lookahead()}lookahead(){let e=this.token;if(e.kind!==a.TokenKind.EOF)do if(e.next)e=e.next;else{let n=function(e,n){let t=e.source.body,r=t.length,l=n;for(;l=0&&e<=55295||e>=57344&&e<=1114111}function c(e,n){return d(e.charCodeAt(n))&&p(e.charCodeAt(n+1))}function d(e){return e>=55296&&e<=56319}function p(e){return e>=56320&&e<=57343}function h(e,n){let t=e.source.body.codePointAt(n);if(void 0===t)return a.TokenKind.EOF;if(t>=32&&t<=126){let e=String.fromCodePoint(t);return'"'===e?"'\"'":`"${e}"`}return"U+"+t.toString(16).toUpperCase().padStart(4,"0")}function T(e,n,t,i,o){let s=e.line,a=1+t-e.lineStart;return new r.Token(n,t,i,s,a,o)}function f(e,n,t){if(!(0,s.isDigit)(t))throw(0,i.syntaxError)(e.source,n,`Invalid number, expected digit but got: ${h(e,n)}.`);let r=e.source.body,o=n+1;for(;(0,s.isDigit)(r.charCodeAt(o));)++o;return o}function E(e,n){return N(e.charCodeAt(n))<<12|N(e.charCodeAt(n+1))<<8|N(e.charCodeAt(n+2))<<4|N(e.charCodeAt(n+3))}function N(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function k(e,n){let t=e.source.body,i=t.length,r=n+1;for(;r=n)break;t=s.index+s[0].length,o+=1}return{line:o,column:n+1-t}};var i=t(8512);let r=/\r\n|[\n\r]/g},5259:function(e,n,t){Object.defineProperty(n,"__esModule",{value:!0}),n.Parser=void 0,n.parse=function(e,n){let t=new d(e,n),i=t.parseDocument();return Object.defineProperty(i,"tokenCount",{enumerable:!1,value:t.tokenCount}),i},n.parseConstValue=function(e,n){let t=new d(e,n);t.expectToken(c.TokenKind.SOF);let i=t.parseConstValueLiteral();return t.expectToken(c.TokenKind.EOF),i},n.parseSchemaCoordinate=function(e){let n=(0,u.isSource)(e)?e:new u.Source(e),t=new d(e,{lexer:new l.SchemaCoordinateLexer(n)});t.expectToken(c.TokenKind.SOF);let i=t.parseSchemaCoordinate();return t.expectToken(c.TokenKind.EOF),i},n.parseType=function(e,n){let t=new d(e,n);t.expectToken(c.TokenKind.SOF);let i=t.parseTypeReference();return t.expectToken(c.TokenKind.EOF),i},n.parseValue=function(e,n){let t=new d(e,n);t.expectToken(c.TokenKind.SOF);let i=t.parseValueLiteral(!1);return t.expectToken(c.TokenKind.EOF),i};var i=t(221),r=t(7226),o=t(9996),s=t(8433),a=t(5316),l=t(9587),u=t(8457),c=t(5229);class d{constructor(e,n={}){const{lexer:t,...i}=n;if(t)this._lexer=t;else{const n=(0,u.isSource)(e)?e:new u.Source(e);this._lexer=new a.Lexer(n)}this._options=i,this._tokenCounter=0}get tokenCount(){return this._tokenCounter}parseName(){let e=this.expectToken(c.TokenKind.NAME);return this.node(e,{kind:s.Kind.NAME,value:e.value})}parseDocument(){return this.node(this._lexer.token,{kind:s.Kind.DOCUMENT,definitions:this.many(c.TokenKind.SOF,this.parseDefinition,c.TokenKind.EOF)})}parseDefinition(){if(this.peek(c.TokenKind.BRACE_L))return this.parseOperationDefinition();let e=this.peekDescription(),n=e?this._lexer.lookahead():this._lexer.token;if(e&&n.kind===c.TokenKind.BRACE_L)throw(0,i.syntaxError)(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are not supported on shorthand queries.");if(n.kind===c.TokenKind.NAME){switch(n.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}switch(n.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition()}if(e)throw(0,i.syntaxError)(this._lexer.source,this._lexer.token.start,"Unexpected description, only GraphQL definitions support descriptions.");if("extend"===n.value)return this.parseTypeSystemExtension()}throw this.unexpected(n)}parseOperationDefinition(){let e,n=this._lexer.token;if(this.peek(c.TokenKind.BRACE_L))return this.node(n,{kind:s.Kind.OPERATION_DEFINITION,operation:r.OperationTypeNode.QUERY,description:void 0,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});let t=this.parseDescription(),i=this.parseOperationType();return this.peek(c.TokenKind.NAME)&&(e=this.parseName()),this.node(n,{kind:s.Kind.OPERATION_DEFINITION,operation:i,description:t,name:e,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){let e=this.expectToken(c.TokenKind.NAME);switch(e.value){case"query":return r.OperationTypeNode.QUERY;case"mutation":return r.OperationTypeNode.MUTATION;case"subscription":return r.OperationTypeNode.SUBSCRIPTION}throw this.unexpected(e)}parseVariableDefinitions(){return this.optionalMany(c.TokenKind.PAREN_L,this.parseVariableDefinition,c.TokenKind.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:s.Kind.VARIABLE_DEFINITION,description:this.parseDescription(),variable:this.parseVariable(),type:(this.expectToken(c.TokenKind.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(c.TokenKind.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){let e=this._lexer.token;return this.expectToken(c.TokenKind.DOLLAR),this.node(e,{kind:s.Kind.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:s.Kind.SELECTION_SET,selections:this.many(c.TokenKind.BRACE_L,this.parseSelection,c.TokenKind.BRACE_R)})}parseSelection(){return this.peek(c.TokenKind.SPREAD)?this.parseFragment():this.parseField()}parseField(){let e,n,t=this._lexer.token,i=this.parseName();return this.expectOptionalToken(c.TokenKind.COLON)?(e=i,n=this.parseName()):n=i,this.node(t,{kind:s.Kind.FIELD,alias:e,name:n,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(c.TokenKind.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(e){let n=e?this.parseConstArgument:this.parseArgument;return this.optionalMany(c.TokenKind.PAREN_L,n,c.TokenKind.PAREN_R)}parseArgument(e=!1){let n=this._lexer.token,t=this.parseName();return this.expectToken(c.TokenKind.COLON),this.node(n,{kind:s.Kind.ARGUMENT,name:t,value:this.parseValueLiteral(e)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){let e=this._lexer.token;this.expectToken(c.TokenKind.SPREAD);let n=this.expectOptionalKeyword("on");return!n&&this.peek(c.TokenKind.NAME)?this.node(e,{kind:s.Kind.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(e,{kind:s.Kind.INLINE_FRAGMENT,typeCondition:n?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){let e=this._lexer.token,n=this.parseDescription();return(this.expectKeyword("fragment"),!0===this._options.allowLegacyFragmentVariables)?this.node(e,{kind:s.Kind.FRAGMENT_DEFINITION,description:n,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}):this.node(e,{kind:s.Kind.FRAGMENT_DEFINITION,description:n,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentName(){if("on"===this._lexer.token.value)throw this.unexpected();return this.parseName()}parseValueLiteral(e){let n=this._lexer.token;switch(n.kind){case c.TokenKind.BRACKET_L:return this.parseList(e);case c.TokenKind.BRACE_L:return this.parseObject(e);case c.TokenKind.INT:return this.advanceLexer(),this.node(n,{kind:s.Kind.INT,value:n.value});case c.TokenKind.FLOAT:return this.advanceLexer(),this.node(n,{kind:s.Kind.FLOAT,value:n.value});case c.TokenKind.STRING:case c.TokenKind.BLOCK_STRING:return this.parseStringLiteral();case c.TokenKind.NAME:switch(this.advanceLexer(),n.value){case"true":return this.node(n,{kind:s.Kind.BOOLEAN,value:!0});case"false":return this.node(n,{kind:s.Kind.BOOLEAN,value:!1});case"null":return this.node(n,{kind:s.Kind.NULL});default:return this.node(n,{kind:s.Kind.ENUM,value:n.value})}case c.TokenKind.DOLLAR:if(e){if(this.expectToken(c.TokenKind.DOLLAR),this._lexer.token.kind===c.TokenKind.NAME){let e=this._lexer.token.value;throw(0,i.syntaxError)(this._lexer.source,n.start,`Unexpected variable "$${e}" in constant value.`)}throw this.unexpected(n)}return this.parseVariable();default:throw this.unexpected()}}parseConstValueLiteral(){return this.parseValueLiteral(!0)}parseStringLiteral(){let e=this._lexer.token;return this.advanceLexer(),this.node(e,{kind:s.Kind.STRING,value:e.value,block:e.kind===c.TokenKind.BLOCK_STRING})}parseList(e){let n=()=>this.parseValueLiteral(e);return this.node(this._lexer.token,{kind:s.Kind.LIST,values:this.any(c.TokenKind.BRACKET_L,n,c.TokenKind.BRACKET_R)})}parseObject(e){let n=()=>this.parseObjectField(e);return this.node(this._lexer.token,{kind:s.Kind.OBJECT,fields:this.any(c.TokenKind.BRACE_L,n,c.TokenKind.BRACE_R)})}parseObjectField(e){let n=this._lexer.token,t=this.parseName();return this.expectToken(c.TokenKind.COLON),this.node(n,{kind:s.Kind.OBJECT_FIELD,name:t,value:this.parseValueLiteral(e)})}parseDirectives(e){let n=[];for(;this.peek(c.TokenKind.AT);)n.push(this.parseDirective(e));return n}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(e){let n=this._lexer.token;return this.expectToken(c.TokenKind.AT),this.node(n,{kind:s.Kind.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e)})}parseTypeReference(){let e,n=this._lexer.token;if(this.expectOptionalToken(c.TokenKind.BRACKET_L)){let t=this.parseTypeReference();this.expectToken(c.TokenKind.BRACKET_R),e=this.node(n,{kind:s.Kind.LIST_TYPE,type:t})}else e=this.parseNamedType();return this.expectOptionalToken(c.TokenKind.BANG)?this.node(n,{kind:s.Kind.NON_NULL_TYPE,type:e}):e}parseNamedType(){return this.node(this._lexer.token,{kind:s.Kind.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(c.TokenKind.STRING)||this.peek(c.TokenKind.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){let e=this._lexer.token,n=this.parseDescription();this.expectKeyword("schema");let t=this.parseConstDirectives(),i=this.many(c.TokenKind.BRACE_L,this.parseOperationTypeDefinition,c.TokenKind.BRACE_R);return this.node(e,{kind:s.Kind.SCHEMA_DEFINITION,description:n,directives:t,operationTypes:i})}parseOperationTypeDefinition(){let e=this._lexer.token,n=this.parseOperationType();this.expectToken(c.TokenKind.COLON);let t=this.parseNamedType();return this.node(e,{kind:s.Kind.OPERATION_TYPE_DEFINITION,operation:n,type:t})}parseScalarTypeDefinition(){let e=this._lexer.token,n=this.parseDescription();this.expectKeyword("scalar");let t=this.parseName(),i=this.parseConstDirectives();return this.node(e,{kind:s.Kind.SCALAR_TYPE_DEFINITION,description:n,name:t,directives:i})}parseObjectTypeDefinition(){let e=this._lexer.token,n=this.parseDescription();this.expectKeyword("type");let t=this.parseName(),i=this.parseImplementsInterfaces(),r=this.parseConstDirectives(),o=this.parseFieldsDefinition();return this.node(e,{kind:s.Kind.OBJECT_TYPE_DEFINITION,description:n,name:t,interfaces:i,directives:r,fields:o})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(c.TokenKind.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(c.TokenKind.BRACE_L,this.parseFieldDefinition,c.TokenKind.BRACE_R)}parseFieldDefinition(){let e=this._lexer.token,n=this.parseDescription(),t=this.parseName(),i=this.parseArgumentDefs();this.expectToken(c.TokenKind.COLON);let r=this.parseTypeReference(),o=this.parseConstDirectives();return this.node(e,{kind:s.Kind.FIELD_DEFINITION,description:n,name:t,arguments:i,type:r,directives:o})}parseArgumentDefs(){return this.optionalMany(c.TokenKind.PAREN_L,this.parseInputValueDef,c.TokenKind.PAREN_R)}parseInputValueDef(){let e,n=this._lexer.token,t=this.parseDescription(),i=this.parseName();this.expectToken(c.TokenKind.COLON);let r=this.parseTypeReference();this.expectOptionalToken(c.TokenKind.EQUALS)&&(e=this.parseConstValueLiteral());let o=this.parseConstDirectives();return this.node(n,{kind:s.Kind.INPUT_VALUE_DEFINITION,description:t,name:i,type:r,defaultValue:e,directives:o})}parseInterfaceTypeDefinition(){let e=this._lexer.token,n=this.parseDescription();this.expectKeyword("interface");let t=this.parseName(),i=this.parseImplementsInterfaces(),r=this.parseConstDirectives(),o=this.parseFieldsDefinition();return this.node(e,{kind:s.Kind.INTERFACE_TYPE_DEFINITION,description:n,name:t,interfaces:i,directives:r,fields:o})}parseUnionTypeDefinition(){let e=this._lexer.token,n=this.parseDescription();this.expectKeyword("union");let t=this.parseName(),i=this.parseConstDirectives(),r=this.parseUnionMemberTypes();return this.node(e,{kind:s.Kind.UNION_TYPE_DEFINITION,description:n,name:t,directives:i,types:r})}parseUnionMemberTypes(){return this.expectOptionalToken(c.TokenKind.EQUALS)?this.delimitedMany(c.TokenKind.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){let e=this._lexer.token,n=this.parseDescription();this.expectKeyword("enum");let t=this.parseName(),i=this.parseConstDirectives(),r=this.parseEnumValuesDefinition();return this.node(e,{kind:s.Kind.ENUM_TYPE_DEFINITION,description:n,name:t,directives:i,values:r})}parseEnumValuesDefinition(){return this.optionalMany(c.TokenKind.BRACE_L,this.parseEnumValueDefinition,c.TokenKind.BRACE_R)}parseEnumValueDefinition(){let e=this._lexer.token,n=this.parseDescription(),t=this.parseEnumValueName(),i=this.parseConstDirectives();return this.node(e,{kind:s.Kind.ENUM_VALUE_DEFINITION,description:n,name:t,directives:i})}parseEnumValueName(){if("true"===this._lexer.token.value||"false"===this._lexer.token.value||"null"===this._lexer.token.value)throw(0,i.syntaxError)(this._lexer.source,this._lexer.token.start,`${p(this._lexer.token)} is reserved and cannot be used for an enum value.`);return this.parseName()}parseInputObjectTypeDefinition(){let e=this._lexer.token,n=this.parseDescription();this.expectKeyword("input");let t=this.parseName(),i=this.parseConstDirectives(),r=this.parseInputFieldsDefinition();return this.node(e,{kind:s.Kind.INPUT_OBJECT_TYPE_DEFINITION,description:n,name:t,directives:i,fields:r})}parseInputFieldsDefinition(){return this.optionalMany(c.TokenKind.BRACE_L,this.parseInputValueDef,c.TokenKind.BRACE_R)}parseTypeSystemExtension(){let e=this._lexer.lookahead();if(e.kind===c.TokenKind.NAME)switch(e.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(e)}parseSchemaExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");let n=this.parseConstDirectives(),t=this.optionalMany(c.TokenKind.BRACE_L,this.parseOperationTypeDefinition,c.TokenKind.BRACE_R);if(0===n.length&&0===t.length)throw this.unexpected();return this.node(e,{kind:s.Kind.SCHEMA_EXTENSION,directives:n,operationTypes:t})}parseScalarTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");let n=this.parseName(),t=this.parseConstDirectives();if(0===t.length)throw this.unexpected();return this.node(e,{kind:s.Kind.SCALAR_TYPE_EXTENSION,name:n,directives:t})}parseObjectTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");let n=this.parseName(),t=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),r=this.parseFieldsDefinition();if(0===t.length&&0===i.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:s.Kind.OBJECT_TYPE_EXTENSION,name:n,interfaces:t,directives:i,fields:r})}parseInterfaceTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");let n=this.parseName(),t=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),r=this.parseFieldsDefinition();if(0===t.length&&0===i.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:s.Kind.INTERFACE_TYPE_EXTENSION,name:n,interfaces:t,directives:i,fields:r})}parseUnionTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");let n=this.parseName(),t=this.parseConstDirectives(),i=this.parseUnionMemberTypes();if(0===t.length&&0===i.length)throw this.unexpected();return this.node(e,{kind:s.Kind.UNION_TYPE_EXTENSION,name:n,directives:t,types:i})}parseEnumTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");let n=this.parseName(),t=this.parseConstDirectives(),i=this.parseEnumValuesDefinition();if(0===t.length&&0===i.length)throw this.unexpected();return this.node(e,{kind:s.Kind.ENUM_TYPE_EXTENSION,name:n,directives:t,values:i})}parseInputObjectTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");let n=this.parseName(),t=this.parseConstDirectives(),i=this.parseInputFieldsDefinition();if(0===t.length&&0===i.length)throw this.unexpected();return this.node(e,{kind:s.Kind.INPUT_OBJECT_TYPE_EXTENSION,name:n,directives:t,fields:i})}parseDirectiveDefinition(){let e=this._lexer.token,n=this.parseDescription();this.expectKeyword("directive"),this.expectToken(c.TokenKind.AT);let t=this.parseName(),i=this.parseArgumentDefs(),r=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");let o=this.parseDirectiveLocations();return this.node(e,{kind:s.Kind.DIRECTIVE_DEFINITION,description:n,name:t,arguments:i,repeatable:r,locations:o})}parseDirectiveLocations(){return this.delimitedMany(c.TokenKind.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){let e=this._lexer.token,n=this.parseName();if(Object.prototype.hasOwnProperty.call(o.DirectiveLocation,n.value))return n;throw this.unexpected(e)}parseSchemaCoordinate(){let e,n,t=this._lexer.token,i=this.expectOptionalToken(c.TokenKind.AT),r=this.parseName();return(!i&&this.expectOptionalToken(c.TokenKind.DOT)&&(e=this.parseName()),(i||e)&&this.expectOptionalToken(c.TokenKind.PAREN_L)&&(n=this.parseName(),this.expectToken(c.TokenKind.COLON),this.expectToken(c.TokenKind.PAREN_R)),i)?n?this.node(t,{kind:s.Kind.DIRECTIVE_ARGUMENT_COORDINATE,name:r,argumentName:n}):this.node(t,{kind:s.Kind.DIRECTIVE_COORDINATE,name:r}):e?n?this.node(t,{kind:s.Kind.ARGUMENT_COORDINATE,name:r,fieldName:e,argumentName:n}):this.node(t,{kind:s.Kind.MEMBER_COORDINATE,name:r,memberName:e}):this.node(t,{kind:s.Kind.TYPE_COORDINATE,name:r})}node(e,n){return!0!==this._options.noLocation&&(n.loc=new r.Location(e,this._lexer.lastToken,this._lexer.source)),n}peek(e){return this._lexer.token.kind===e}expectToken(e){let n=this._lexer.token;if(n.kind===e)return this.advanceLexer(),n;throw(0,i.syntaxError)(this._lexer.source,n.start,`Expected ${h(e)}, found ${p(n)}.`)}expectOptionalToken(e){return this._lexer.token.kind===e&&(this.advanceLexer(),!0)}expectKeyword(e){let n=this._lexer.token;if(n.kind===c.TokenKind.NAME&&n.value===e)this.advanceLexer();else throw(0,i.syntaxError)(this._lexer.source,n.start,`Expected "${e}", found ${p(n)}.`)}expectOptionalKeyword(e){let n=this._lexer.token;return n.kind===c.TokenKind.NAME&&n.value===e&&(this.advanceLexer(),!0)}unexpected(e){let n=null!=e?e:this._lexer.token;return(0,i.syntaxError)(this._lexer.source,n.start,`Unexpected ${p(n)}.`)}any(e,n,t){this.expectToken(e);let i=[];for(;!this.expectOptionalToken(t);)i.push(n.call(this));return i}optionalMany(e,n,t){if(this.expectOptionalToken(e)){let e=[];do e.push(n.call(this));while(!this.expectOptionalToken(t));return e}return[]}many(e,n,t){this.expectToken(e);let i=[];do i.push(n.call(this));while(!this.expectOptionalToken(t));return i}delimitedMany(e,n){this.expectOptionalToken(e);let t=[];do t.push(n.call(this));while(this.expectOptionalToken(e));return t}advanceLexer(){let{maxTokens:e}=this._options,n=this._lexer.advance();if(n.kind!==c.TokenKind.EOF&&(++this._tokenCounter,void 0!==e&&this._tokenCounter>e))throw(0,i.syntaxError)(this._lexer.source,n.start,`Document contains more that ${e} tokens. Parsing aborted.`)}}function p(e){let n=e.value;return h(e.kind)+(null!=n?` "${n}"`:"")}function h(e){return(0,a.isPunctuatorTokenKind)(e)?`"${e}"`:e}n.Parser=d},3890:function(e,n,t){Object.defineProperty(n,"__esModule",{value:!0}),n.isConstValueNode=function e(n){return o(n)&&(n.kind===i.Kind.LIST?n.values.some(e):n.kind===i.Kind.OBJECT?n.fields.some(n=>e(n.value)):n.kind!==i.Kind.VARIABLE)},n.isDefinitionNode=function(e){return r(e)||s(e)||l(e)},n.isExecutableDefinitionNode=r,n.isSchemaCoordinateNode=function(e){return e.kind===i.Kind.TYPE_COORDINATE||e.kind===i.Kind.MEMBER_COORDINATE||e.kind===i.Kind.ARGUMENT_COORDINATE||e.kind===i.Kind.DIRECTIVE_COORDINATE||e.kind===i.Kind.DIRECTIVE_ARGUMENT_COORDINATE},n.isSelectionNode=function(e){return e.kind===i.Kind.FIELD||e.kind===i.Kind.FRAGMENT_SPREAD||e.kind===i.Kind.INLINE_FRAGMENT},n.isTypeDefinitionNode=a,n.isTypeExtensionNode=u,n.isTypeNode=function(e){return e.kind===i.Kind.NAMED_TYPE||e.kind===i.Kind.LIST_TYPE||e.kind===i.Kind.NON_NULL_TYPE},n.isTypeSystemDefinitionNode=s,n.isTypeSystemExtensionNode=l,n.isValueNode=o;var i=t(8433);function r(e){return e.kind===i.Kind.OPERATION_DEFINITION||e.kind===i.Kind.FRAGMENT_DEFINITION}function o(e){return e.kind===i.Kind.VARIABLE||e.kind===i.Kind.INT||e.kind===i.Kind.FLOAT||e.kind===i.Kind.STRING||e.kind===i.Kind.BOOLEAN||e.kind===i.Kind.NULL||e.kind===i.Kind.ENUM||e.kind===i.Kind.LIST||e.kind===i.Kind.OBJECT}function s(e){return e.kind===i.Kind.SCHEMA_DEFINITION||a(e)||e.kind===i.Kind.DIRECTIVE_DEFINITION}function a(e){return e.kind===i.Kind.SCALAR_TYPE_DEFINITION||e.kind===i.Kind.OBJECT_TYPE_DEFINITION||e.kind===i.Kind.INTERFACE_TYPE_DEFINITION||e.kind===i.Kind.UNION_TYPE_DEFINITION||e.kind===i.Kind.ENUM_TYPE_DEFINITION||e.kind===i.Kind.INPUT_OBJECT_TYPE_DEFINITION}function l(e){return e.kind===i.Kind.SCHEMA_EXTENSION||u(e)}function u(e){return e.kind===i.Kind.SCALAR_TYPE_EXTENSION||e.kind===i.Kind.OBJECT_TYPE_EXTENSION||e.kind===i.Kind.INTERFACE_TYPE_EXTENSION||e.kind===i.Kind.UNION_TYPE_EXTENSION||e.kind===i.Kind.ENUM_TYPE_EXTENSION||e.kind===i.Kind.INPUT_OBJECT_TYPE_EXTENSION}},5018:function(e,n,t){Object.defineProperty(n,"__esModule",{value:!0}),n.printLocation=function(e){return r(e.source,(0,i.getLocation)(e.source,e.start))},n.printSourceLocation=r;var i=t(8515);function r(e,n){let t=e.locationOffset.column-1,i="".padStart(t)+e.body,r=n.line-1,s=e.locationOffset.line-1,a=n.line+s,l=1===n.line?t:0,u=n.column+l,c=`${e.name}:${a}:${u} +`,d=i.split(/\r\n|[\n\r]/g),p=d[r];if(p.length>120){let e=Math.floor(u/80),n=[];for(let e=0;e["|",e]),["|","^".padStart(u%80)],["|",n[e+1]]])}return c+o([[`${a-1} |`,d[r-1]],[`${a} |`,p],["|","^".padStart(u)],[`${a+1} |`,d[r+1]]])}function o(e){let n=e.filter(([e,n])=>void 0!==n),t=Math.max(...n.map(([e])=>e.length));return n.map(([e,n])=>e.padStart(t)+(n?" "+n:"")).join("\n")}},128:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.printString=function(e){return`"${e.replace(t,i)}"`};let t=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function i(e){return r[e.charCodeAt(0)]}let r=["\\u0000","\\u0001","\\u0002","\\u0003","\\u0004","\\u0005","\\u0006","\\u0007","\\b","\\t","\\n","\\u000B","\\f","\\r","\\u000E","\\u000F","\\u0010","\\u0011","\\u0012","\\u0013","\\u0014","\\u0015","\\u0016","\\u0017","\\u0018","\\u0019","\\u001A","\\u001B","\\u001C","\\u001D","\\u001E","\\u001F","","",'\\"',"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\\\","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\u007F","\\u0080","\\u0081","\\u0082","\\u0083","\\u0084","\\u0085","\\u0086","\\u0087","\\u0088","\\u0089","\\u008A","\\u008B","\\u008C","\\u008D","\\u008E","\\u008F","\\u0090","\\u0091","\\u0092","\\u0093","\\u0094","\\u0095","\\u0096","\\u0097","\\u0098","\\u0099","\\u009A","\\u009B","\\u009C","\\u009D","\\u009E","\\u009F"]},7030:function(e,n,t){Object.defineProperty(n,"__esModule",{value:!0}),n.print=function(e){return(0,o.visit)(e,s)};var i=t(6158),r=t(128),o=t(9624);let s={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>a(e.definitions,"\n\n")},OperationDefinition:{leave(e){let n=d(e.variableDefinitions)?u("(\n",a(e.variableDefinitions,"\n"),"\n)"):u("(",a(e.variableDefinitions,", "),")"),t=u("",e.description,"\n")+a([e.operation,a([e.name,n]),a(e.directives," ")]," ");return("query"===t?"":t+" ")+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:n,defaultValue:t,directives:i,description:r})=>u("",r,"\n")+e+": "+n+u(" = ",t)+u(" ",a(i," "))},SelectionSet:{leave:({selections:e})=>l(e)},Field:{leave({alias:e,name:n,arguments:t,directives:i,selectionSet:r}){let o=u("",e,": ")+n,s=o+u("(",a(t,", "),")");return s.length>80&&(s=o+u("(\n",c(a(t,"\n")),"\n)")),a([s,a(i," "),r]," ")}},Argument:{leave:({name:e,value:n})=>e+": "+n},FragmentSpread:{leave:({name:e,directives:n})=>"..."+e+u(" ",a(n," "))},InlineFragment:{leave:({typeCondition:e,directives:n,selectionSet:t})=>a(["...",u("on ",e),a(n," "),t]," ")},FragmentDefinition:{leave:({name:e,typeCondition:n,variableDefinitions:t,directives:i,selectionSet:r,description:o})=>u("",o,"\n")+`fragment ${e}${u("(",a(t,", "),")")} `+`on ${n} ${u("",a(i," ")," ")}`+r},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e},StringValue:{leave:({value:e,block:n})=>n?(0,i.printBlockString)(e):(0,r.printString)(e)},BooleanValue:{leave:({value:e})=>e?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>"["+a(e,", ")+"]"},ObjectValue:{leave:({fields:e})=>"{"+a(e,", ")+"}"},ObjectField:{leave:({name:e,value:n})=>e+": "+n},Directive:{leave:({name:e,arguments:n})=>"@"+e+u("(",a(n,", "),")")},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>"["+e+"]"},NonNullType:{leave:({type:e})=>e+"!"},SchemaDefinition:{leave:({description:e,directives:n,operationTypes:t})=>u("",e,"\n")+a(["schema",a(n," "),l(t)]," ")},OperationTypeDefinition:{leave:({operation:e,type:n})=>e+": "+n},ScalarTypeDefinition:{leave:({description:e,name:n,directives:t})=>u("",e,"\n")+a(["scalar",n,a(t," ")]," ")},ObjectTypeDefinition:{leave:({description:e,name:n,interfaces:t,directives:i,fields:r})=>u("",e,"\n")+a(["type",n,u("implements ",a(t," & ")),a(i," "),l(r)]," ")},FieldDefinition:{leave:({description:e,name:n,arguments:t,type:i,directives:r})=>u("",e,"\n")+n+(d(t)?u("(\n",c(a(t,"\n")),"\n)"):u("(",a(t,", "),")"))+": "+i+u(" ",a(r," "))},InputValueDefinition:{leave:({description:e,name:n,type:t,defaultValue:i,directives:r})=>u("",e,"\n")+a([n+": "+t,u("= ",i),a(r," ")]," ")},InterfaceTypeDefinition:{leave:({description:e,name:n,interfaces:t,directives:i,fields:r})=>u("",e,"\n")+a(["interface",n,u("implements ",a(t," & ")),a(i," "),l(r)]," ")},UnionTypeDefinition:{leave:({description:e,name:n,directives:t,types:i})=>u("",e,"\n")+a(["union",n,a(t," "),u("= ",a(i," | "))]," ")},EnumTypeDefinition:{leave:({description:e,name:n,directives:t,values:i})=>u("",e,"\n")+a(["enum",n,a(t," "),l(i)]," ")},EnumValueDefinition:{leave:({description:e,name:n,directives:t})=>u("",e,"\n")+a([n,a(t," ")]," ")},InputObjectTypeDefinition:{leave:({description:e,name:n,directives:t,fields:i})=>u("",e,"\n")+a(["input",n,a(t," "),l(i)]," ")},DirectiveDefinition:{leave:({description:e,name:n,arguments:t,repeatable:i,locations:r})=>u("",e,"\n")+"directive @"+n+(d(t)?u("(\n",c(a(t,"\n")),"\n)"):u("(",a(t,", "),")"))+(i?" repeatable":"")+" on "+a(r," | ")},SchemaExtension:{leave:({directives:e,operationTypes:n})=>a(["extend schema",a(e," "),l(n)]," ")},ScalarTypeExtension:{leave:({name:e,directives:n})=>a(["extend scalar",e,a(n," ")]," ")},ObjectTypeExtension:{leave:({name:e,interfaces:n,directives:t,fields:i})=>a(["extend type",e,u("implements ",a(n," & ")),a(t," "),l(i)]," ")},InterfaceTypeExtension:{leave:({name:e,interfaces:n,directives:t,fields:i})=>a(["extend interface",e,u("implements ",a(n," & ")),a(t," "),l(i)]," ")},UnionTypeExtension:{leave:({name:e,directives:n,types:t})=>a(["extend union",e,a(n," "),u("= ",a(t," | "))]," ")},EnumTypeExtension:{leave:({name:e,directives:n,values:t})=>a(["extend enum",e,a(n," "),l(t)]," ")},InputObjectTypeExtension:{leave:({name:e,directives:n,fields:t})=>a(["extend input",e,a(n," "),l(t)]," ")},TypeCoordinate:{leave:({name:e})=>e},MemberCoordinate:{leave:({name:e,memberName:n})=>a([e,u(".",n)])},ArgumentCoordinate:{leave:({name:e,fieldName:n,argumentName:t})=>a([e,u(".",n),u("(",t,":)")])},DirectiveCoordinate:{leave:({name:e})=>a(["@",e])},DirectiveArgumentCoordinate:{leave:({name:e,argumentName:n})=>a(["@",e,u("(",n,":)")])}};function a(e,n=""){var t;return null!=(t=null==e?void 0:e.filter(e=>e).join(n))?t:""}function l(e){return u("{\n",c(a(e,"\n")),"\n}")}function u(e,n,t=""){return null!=n&&""!==n?e+n+t:""}function c(e){return u(" ",e.replace(/\n/g,"\n "))}function d(e){var n;return null!=(n=null==e?void 0:e.some(e=>e.includes("\n")))&&n}},9587:function(e,n,t){Object.defineProperty(n,"__esModule",{value:!0}),n.SchemaCoordinateLexer=void 0;var i=t(221),r=t(7226),o=t(9349),s=t(5316),a=t(5229);class l{line=1;lineStart=0;constructor(e){const n=new r.Token(a.TokenKind.SOF,0,0,0,0);this.source=e,this.lastToken=n,this.token=n}get[Symbol.toStringTag](){return"SchemaCoordinateLexer"}advance(){return this.lastToken=this.token,this.token=this.lookahead()}lookahead(){let e=this.token;if(e.kind!==a.TokenKind.EOF){let n=function(e,n){let t=e.source.body,r=t.length;if(n0||(0,i.devAssert)(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||(0,i.devAssert)(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}}n.Source=s},5229:function(e,n){var t,i;Object.defineProperty(n,"__esModule",{value:!0}),n.TokenKind=void 0,n.TokenKind=t,(i=t||(n.TokenKind=t={})).SOF="",i.EOF="",i.BANG="!",i.DOLLAR="$",i.AMP="&",i.PAREN_L="(",i.PAREN_R=")",i.DOT=".",i.SPREAD="...",i.COLON=":",i.EQUALS="=",i.AT="@",i.BRACKET_L="[",i.BRACKET_R="]",i.BRACE_L="{",i.PIPE="|",i.BRACE_R="}",i.NAME="Name",i.INT="Int",i.FLOAT="Float",i.STRING="String",i.BLOCK_STRING="BlockString",i.COMMENT="Comment"},9624:function(e,n,t){Object.defineProperty(n,"__esModule",{value:!0}),n.BREAK=void 0,n.getEnterLeaveForKind=l,n.getVisitFn=function(e,n,t){let{enter:i,leave:r}=l(e,n);return t?r:i},n.visit=function(e,n,t=o.QueryDocumentKeys){let u,c,d,p=new Map;for(let e of Object.values(s.Kind))p.set(e,l(n,e));let h=Array.isArray(e),T=[e],f=-1,E=[],N=e,k=[],O=[];do{var m,I,v;let e,s=++f===T.length,l=s&&0!==E.length;if(s){if(c=0===O.length?void 0:k[k.length-1],N=d,d=O.pop(),l)if(h){N=N.slice();let e=0;for(let[n,t]of E){let i=n-e;null===t?(N.splice(i,1),e++):N[i]=t}}else for(let[e,n]of(N={...N},E))N[e]=n;f=u.index,T=u.keys,E=u.edits,h=u.inArray,u=u.prev}else if(d){if(null==(N=d[c=h?f:T[f]]))continue;k.push(c)}if(!Array.isArray(N)){(0,o.isNode)(N)||(0,i.devAssert)(!1,`Invalid AST Node: ${(0,r.inspect)(N)}.`);let t=s?null==(m=p.get(N.kind))?void 0:m.leave:null==(I=p.get(N.kind))?void 0:I.enter;if((e=null==t?void 0:t.call(n,N,c,d,k,O))===a)break;if(!1===e){if(!s){k.pop();continue}}else if(void 0!==e&&(E.push([c,e]),!s))if((0,o.isNode)(e))N=e;else{k.pop();continue}}void 0===e&&l&&E.push([c,N]),s?k.pop():(u={inArray:h,index:f,keys:T,edits:E,prev:u},T=(h=Array.isArray(N))?N:null!=(v=t[N.kind])?v:[],f=-1,E=[],d&&O.push(d),d=N)}while(void 0!==u);return 0!==E.length?E[E.length-1][1]:e},n.visitInParallel=function(e){let n=Array(e.length).fill(null),t=Object.create(null);for(let i of Object.values(s.Kind)){let r=!1,o=Array(e.length).fill(void 0),s=Array(e.length).fill(void 0);for(let n=0;n=1.0.0 <1.31.0", "crypto-randomuuid": "^1.0.0", "escape-string-regexp": "^5.0.0", + "graphql": "^16.12.0", "ignore": "^7.0.5", "istanbul-lib-coverage": "^3.2.2", "jest-docblock": "^29.7.0", diff --git a/vendor/rspack.config.js b/vendor/rspack.config.js index bff18603a32..64c6f654178 100644 --- a/vendor/rspack.config.js +++ b/vendor/rspack.config.js @@ -7,12 +7,14 @@ const { dependencies } = require('./package.json') const include = new Set([ ...Object.keys(dependencies), + 'graphql/language', 'mutexify/promise', 'protobufjs/minimal', // peer dependency for `@datadog/sketches-js` 'source-map/lib/util' ]) const exclude = new Set([ + 'graphql', // we only use some internals to interact with the AST 'mutexify' // we only ever use `mutexify/promise` ]) diff --git a/vendor/yarn.lock b/vendor/yarn.lock index c3579e49a9f..d94b451dffd 100644 --- a/vendor/yarn.lock +++ b/vendor/yarn.lock @@ -1034,6 +1034,11 @@ graceful-fs@^4.2.6: resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.2.11.tgz#4183e4e8bf08bb6e05bbb2f7d2e0c8f712ca40e3" integrity sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ== +graphql@^16.12.0: + version "16.12.0" + resolved "https://registry.yarnpkg.com/graphql/-/graphql-16.12.0.tgz#28cc2462435b1ac3fdc6976d030cef83a0c13ac7" + integrity sha512-DKKrynuQRne0PNpEbzuEdHlYOMksHSUI8Zc9Unei5gTsMNA2/vMpoMz/yKba50pejK56qj98qM0SjYxAKi13gQ== + gzip-size@^6.0.0: version "6.0.0" resolved "https://registry.yarnpkg.com/gzip-size/-/gzip-size-6.0.0.tgz#065367fd50c239c0671cbcbad5be3e2eeb10e462" From 2dab1890996afb4ecc913ca68fa0b5cb9e5a7c2f Mon Sep 17 00:00:00 2001 From: rochdev Date: Tue, 25 Nov 2025 17:46:05 -0500 Subject: [PATCH 46/95] automate vendor update for dependabot --- .github/dependabot.yml | 58 ++++++++++++++++----- .github/workflows/audit.yml | 2 + .github/workflows/dependabot-automation.yml | 33 ++++++++++++ 3 files changed, 79 insertions(+), 14 deletions(-) diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 25ed96de689..d1fec1c3e6e 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -60,20 +60,6 @@ updates: - dependency-name: "@types/node" # Update the types manually with new Node.js version support update-types: ["version-update:semver-major"] - - dependency-name: "jest-docblock" - # 30.0.0 onwards only supports Node.js 18.14.x and above - update-types: ["version-update:semver-major"] - # The path-to-regexp version has to be the same as used in express v4. - # Consider vendoring it instead. - - dependency-name: "path-to-regexp" - - dependency-name: "lru-cache" - # 11.0.0 onwards only supports Node.js 20 and above - update-types: ["version-update:semver-major"] - - dependency-name: "limiter" - # 2.0.0 onwards breaks our tests. 3.0.0 works but it requires Node.js v16. - # That breaks cypress in our v5 release line. Update when v5 is EOL. - # Reverting this commit should suffice. - update-types: ["version-update:semver-major"] - dependency-name: "glob" # 11.0.0 onwards only supports Node.js 20 and above update-types: ["version-update:semver-major"] @@ -87,6 +73,9 @@ updates: # Thus, we ignore them and update them manually. - dependency-name: "@opentelemetry/api" - dependency-name: "@opentelemetry/api-logs" + - dependency-name: "tap" + # Contain breaking changes that are incompatible with our test usage + update-types: ["version-update:semver-major"] groups: dev-minor-and-patch-dependencies: dependency-type: "development" @@ -104,6 +93,47 @@ updates: - "patch" # Instrumented library support range + - package-ecosystem: "npm" + directories: + - "/vendor" + schedule: + interval: "weekly" + open-pull-requests-limit: 100 + cooldown: + default-days: 1 + labels: + - dependabot + - dependencies + - javascript + - semver-patch + ignore: + - dependency-name: "jest-docblock" + # 30.0.0 onwards only supports Node.js 18.14.x and above + update-types: ["version-update:semver-major"] + # The path-to-regexp version has to be the same as used in express v4. + - dependency-name: "path-to-regexp" + - dependency-name: "lru-cache" + # 11.0.0 onwards only supports Node.js 20 and above + update-types: ["version-update:semver-major"] + - dependency-name: "limiter" + # 2.0.0 onwards breaks our tests. 3.0.0 works but it requires Node.js v16. + # That breaks cypress in our v5 release line. Update when v5 is EOL. + # Reverting this commit should suffice. + update-types: ["version-update:semver-major"] + - dependency-name: "@opentelemetry/core" + # 2.0.0 onwards only supports Node.js 18.19.0 and above + update-types: ["version-update:semver-major"] + - dependency-name: "@opentelemetry/resources" + # 2.0.0 onwards only supports Node.js 18.19.0 and above + update-types: ["version-update:semver-major"] + groups: + vendor-minor-and-patch-dependencies: + dependency-type: "production" + patterns: + - "*" + update-types: + - "minor" + - "patch" - package-ecosystem: "npm" directories: - "/packages/dd-trace/test/plugins/versions" diff --git a/.github/workflows/audit.yml b/.github/workflows/audit.yml index caaf58d17af..504fecf300e 100644 --- a/.github/workflows/audit.yml +++ b/.github/workflows/audit.yml @@ -16,3 +16,5 @@ jobs: - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 - uses: ./.github/actions/node/latest - run: yarn audit + - run: yarn audit + working-directory: ./vendor diff --git a/.github/workflows/dependabot-automation.yml b/.github/workflows/dependabot-automation.yml index a61d26e58f8..2efb5242a78 100644 --- a/.github/workflows/dependabot-automation.yml +++ b/.github/workflows/dependabot-automation.yml @@ -37,3 +37,36 @@ jobs: env: PR_URL: ${{ github.event.pull_request.html_url }} GH_TOKEN: ${{ steps.octo-sts.outputs.token }} + + vendor: + if: github.event.pull_request.user.login == 'dependabot[bot]' + runs-on: ubuntu-latest + permissions: + id-token: write + contents: write + steps: + - name: Dependabot metadata + id: metadata + uses: dependabot/fetch-metadata@08eff52bf64351f401fb50d4972fa95b9f2c2d1b # 2.4.0 + - uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0 + if: steps.metadata.outputs.dependency-group == 'vendor-minor-and-patch-dependencies' + - run: yarn + working-directory: ./vendor + if: steps.metadata.outputs.dependency-group == 'vendor-minor-and-patch-dependencies' + - name: Create commits + id: create-commits + run: | + git config user.name github-actions + git config user.email github-actions@github.com + git add -A + git commit -m "update vendored dependencies with new versions" + + echo "commit=$(git rev-parse HEAD)" >> $GITHUB_OUTPUT + if: steps.metadata.outputs.dependency-group == 'vendor-minor-and-patch-dependencies' + - name: Push commits + uses: DataDog/commit-headless@5a0f3876e0fbdd3a86b3e008acf4ec562db59eee # action/v2.0.1 + with: + branch: ${{ github.ref_name }} + command: push + commits: "${{ steps.create-commits.outputs.commits }}" + if: steps.metadata.outputs.dependency-group == 'vendor-minor-and-patch-dependencies' From fe3e01a60f5168486d592a184d5593e11cc74326 Mon Sep 17 00:00:00 2001 From: rochdev Date: Tue, 25 Nov 2025 18:18:06 -0500 Subject: [PATCH 47/95] update package size calculation to give the real number --- .github/workflows/project.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/project.yml b/.github/workflows/project.yml index bbde2abd5cc..d117f071738 100644 --- a/.github/workflows/project.yml +++ b/.github/workflows/project.yml @@ -58,9 +58,12 @@ jobs: steps: - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 - uses: ./.github/actions/node/latest - - uses: ./.github/actions/install + - run: FILENAME=$(npm pack) && tar -zxf $FILENAME -C package + - run: yarn --prod --ignore-optional + working-directory: ./package - name: Compute module size tree and report uses: qard/heaviest-objects-in-the-universe@1e02edbdda803a45537a808ede97866db47756d3 # Unreleased + working-directory: ./package with: github-token: ${{ secrets.GITHUB_TOKEN }} From dbc86e50b6a988863717bec0a83ca3e7050879b5 Mon Sep 17 00:00:00 2001 From: rochdev Date: Tue, 25 Nov 2025 18:33:47 -0500 Subject: [PATCH 48/95] refactor without working-directory --- .github/workflows/project.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/project.yml b/.github/workflows/project.yml index d117f071738..ac09b56dc1b 100644 --- a/.github/workflows/project.yml +++ b/.github/workflows/project.yml @@ -58,9 +58,10 @@ jobs: steps: - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 - uses: ./.github/actions/node/latest - - run: FILENAME=$(npm pack) && tar -zxf $FILENAME -C package + - run: FILENAME=$(npm pack --pack-destination /tmp) && mv /tmp/$FILENAME /tmp/dd-trace.tgz + - run: rm -rf * + - run: tar -zxf /tmp/dd-trace.tgz -C $(pwd) - run: yarn --prod --ignore-optional - working-directory: ./package - name: Compute module size tree and report uses: qard/heaviest-objects-in-the-universe@1e02edbdda803a45537a808ede97866db47756d3 # Unreleased working-directory: ./package From d422122b942371f236da80666a499456fb63b6bd Mon Sep 17 00:00:00 2001 From: rochdev Date: Tue, 25 Nov 2025 20:27:41 -0500 Subject: [PATCH 49/95] debug --- .github/workflows/project.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/project.yml b/.github/workflows/project.yml index ac09b56dc1b..94ca23bb8a6 100644 --- a/.github/workflows/project.yml +++ b/.github/workflows/project.yml @@ -62,6 +62,7 @@ jobs: - run: rm -rf * - run: tar -zxf /tmp/dd-trace.tgz -C $(pwd) - run: yarn --prod --ignore-optional + - run: ls -lisa - name: Compute module size tree and report uses: qard/heaviest-objects-in-the-universe@1e02edbdda803a45537a808ede97866db47756d3 # Unreleased working-directory: ./package From 2a5934dac32dba9ac26bf088f20a1c790bd9c266 Mon Sep 17 00:00:00 2001 From: rochdev Date: Tue, 25 Nov 2025 20:31:02 -0500 Subject: [PATCH 50/95] add path --- .github/workflows/project.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/project.yml b/.github/workflows/project.yml index 94ca23bb8a6..f5a4b8d04f5 100644 --- a/.github/workflows/project.yml +++ b/.github/workflows/project.yml @@ -60,7 +60,7 @@ jobs: - uses: ./.github/actions/node/latest - run: FILENAME=$(npm pack --pack-destination /tmp) && mv /tmp/$FILENAME /tmp/dd-trace.tgz - run: rm -rf * - - run: tar -zxf /tmp/dd-trace.tgz -C $(pwd) + - run: tar -zxf /tmp/dd-trace.tgz -C $(pwd) package - run: yarn --prod --ignore-optional - run: ls -lisa - name: Compute module size tree and report From ab75a7e7dfa9f11cb86d5123c5350da3743d1f8c Mon Sep 17 00:00:00 2001 From: rochdev Date: Tue, 25 Nov 2025 20:32:38 -0500 Subject: [PATCH 51/95] add path --- .github/workflows/project.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/project.yml b/.github/workflows/project.yml index f5a4b8d04f5..9d7c3618d80 100644 --- a/.github/workflows/project.yml +++ b/.github/workflows/project.yml @@ -60,7 +60,7 @@ jobs: - uses: ./.github/actions/node/latest - run: FILENAME=$(npm pack --pack-destination /tmp) && mv /tmp/$FILENAME /tmp/dd-trace.tgz - run: rm -rf * - - run: tar -zxf /tmp/dd-trace.tgz -C $(pwd) package + - run: tar -zxf /tmp/dd-trace.tgz package -C $(pwd) - run: yarn --prod --ignore-optional - run: ls -lisa - name: Compute module size tree and report From 853c1e99db80f4f10f312badd2e30d8517ede113 Mon Sep 17 00:00:00 2001 From: rochdev Date: Tue, 25 Nov 2025 20:33:48 -0500 Subject: [PATCH 52/95] strip components --- .github/workflows/project.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/project.yml b/.github/workflows/project.yml index 9d7c3618d80..e379d0633de 100644 --- a/.github/workflows/project.yml +++ b/.github/workflows/project.yml @@ -60,7 +60,7 @@ jobs: - uses: ./.github/actions/node/latest - run: FILENAME=$(npm pack --pack-destination /tmp) && mv /tmp/$FILENAME /tmp/dd-trace.tgz - run: rm -rf * - - run: tar -zxf /tmp/dd-trace.tgz package -C $(pwd) + - run: tar -zxf /tmp/dd-trace.tgz -C $(pwd) --strip-components=1 - run: yarn --prod --ignore-optional - run: ls -lisa - name: Compute module size tree and report From 493442f56e7dce4705256138b6fc5ebf9b27eb09 Mon Sep 17 00:00:00 2001 From: rochdev Date: Wed, 26 Nov 2025 13:35:00 -0500 Subject: [PATCH 53/95] remove external option requirement for graphql with bundlers --- .../iast-esbuild-cjs/esbuild.common-config.js | 8 +- .../esbuild.common-config.mjs | 8 +- .../esbuild/build-and-test-koa.mjs | 6 +- .../esbuild/build-and-test-typescript.mjs | 6 +- .../esbuild/build.esm-hono-output-cjs.mjs | 5 - .../esbuild/build.esm-hono-output-esm.mjs | 5 - .../esbuild/build.esm-http-output-cjs.mjs | 5 - .../esbuild/build.esm-http-output-esm.mjs | 5 - .../src/tools/transforms.js | 6 +- .../graphql/{language => }/LICENSE | 0 packages/node_modules/graphql/index.js | 121 ++++++++++++++++++ .../node_modules/graphql/language/index.js | 13 -- vendor/rspack.config.js | 2 - 13 files changed, 128 insertions(+), 62 deletions(-) rename packages/node_modules/graphql/{language => }/LICENSE (100%) create mode 100644 packages/node_modules/graphql/index.js delete mode 100644 packages/node_modules/graphql/language/index.js diff --git a/integration-tests/appsec/iast-esbuild-cjs/esbuild.common-config.js b/integration-tests/appsec/iast-esbuild-cjs/esbuild.common-config.js index c7f8fc23e6b..1cc5eee98a2 100644 --- a/integration-tests/appsec/iast-esbuild-cjs/esbuild.common-config.js +++ b/integration-tests/appsec/iast-esbuild-cjs/esbuild.common-config.js @@ -11,12 +11,6 @@ module.exports = { target: ['node18'], external: [ '@datadog/native-iast-taint-tracking', - '@datadog/wasm-js-rewriter', - - // required if you encounter graphql errors during the build step - // see https://docs.datadoghq.com/tracing/trace_collection/automatic_instrumentation/dd_libraries/nodejs/#bundling - 'graphql/language/visitor', - 'graphql/language/printer', - 'graphql/utilities' + '@datadog/wasm-js-rewriter' ] } diff --git a/integration-tests/appsec/iast-esbuild-esm/esbuild.common-config.mjs b/integration-tests/appsec/iast-esbuild-esm/esbuild.common-config.mjs index cb7ff7aa106..5c3ab0145be 100644 --- a/integration-tests/appsec/iast-esbuild-esm/esbuild.common-config.mjs +++ b/integration-tests/appsec/iast-esbuild-esm/esbuild.common-config.mjs @@ -16,12 +16,6 @@ export default { target: ['node18'], external: [ '@datadog/native-iast-taint-tracking', - '@datadog/wasm-js-rewriter', - - // required if you encounter graphql errors during the build step - // see https://docs.datadoghq.com/tracing/trace_collection/automatic_instrumentation/dd_libraries/nodejs/#bundling - 'graphql/language/visitor', - 'graphql/language/printer', - 'graphql/utilities' + '@datadog/wasm-js-rewriter' ] } diff --git a/integration-tests/esbuild/build-and-test-koa.mjs b/integration-tests/esbuild/build-and-test-koa.mjs index 5f8eabf7249..34e7c97579a 100644 --- a/integration-tests/esbuild/build-and-test-koa.mjs +++ b/integration-tests/esbuild/build-and-test-koa.mjs @@ -20,11 +20,7 @@ try { platform: 'node', target: 'es2022', plugins: [ddPlugin], - external: [ - 'graphql/language/visitor', - 'graphql/language/printer', - 'graphql/utilities' - ] + external: [] }) // Verify instrumentation diff --git a/integration-tests/esbuild/build-and-test-typescript.mjs b/integration-tests/esbuild/build-and-test-typescript.mjs index 187c9dad7ed..e1673ff5ff7 100755 --- a/integration-tests/esbuild/build-and-test-typescript.mjs +++ b/integration-tests/esbuild/build-and-test-typescript.mjs @@ -16,11 +16,7 @@ try { platform: 'node', target: 'es2022', plugins: [ddPlugin], - external: [ - 'graphql/language/visitor', - 'graphql/language/printer', - 'graphql/utilities' - ] + external: [] }) console.log('ok') // eslint-disable-line no-console } finally { diff --git a/integration-tests/esbuild/build.esm-hono-output-cjs.mjs b/integration-tests/esbuild/build.esm-hono-output-cjs.mjs index a3b60d3ca03..eec950da5de 100644 --- a/integration-tests/esbuild/build.esm-hono-output-cjs.mjs +++ b/integration-tests/esbuild/build.esm-hono-output-cjs.mjs @@ -22,11 +22,6 @@ const external = [ '@datadog/native-appsec', '@datadog/native-iast-taint-tracking', '@datadog/native-iast-rewriter', - - // required if you encounter graphql errors during the build step - 'graphql/language/visitor', - 'graphql/language/printer', - 'graphql/utilities', ] esbuild.build({ diff --git a/integration-tests/esbuild/build.esm-hono-output-esm.mjs b/integration-tests/esbuild/build.esm-hono-output-esm.mjs index b30153a22aa..63b4c72c746 100644 --- a/integration-tests/esbuild/build.esm-hono-output-esm.mjs +++ b/integration-tests/esbuild/build.esm-hono-output-esm.mjs @@ -22,11 +22,6 @@ const external = [ '@datadog/native-appsec', '@datadog/native-iast-taint-tracking', '@datadog/native-iast-rewriter', - - // required if you encounter graphql errors during the build step - 'graphql/language/visitor', - 'graphql/language/printer', - 'graphql/utilities', ] esbuild.build({ diff --git a/integration-tests/esbuild/build.esm-http-output-cjs.mjs b/integration-tests/esbuild/build.esm-http-output-cjs.mjs index ef9155b3aa7..fc34bca3eef 100644 --- a/integration-tests/esbuild/build.esm-http-output-cjs.mjs +++ b/integration-tests/esbuild/build.esm-http-output-cjs.mjs @@ -22,11 +22,6 @@ const external = [ '@datadog/native-appsec', '@datadog/native-iast-taint-tracking', '@datadog/native-iast-rewriter', - - // required if you encounter graphql errors during the build step - 'graphql/language/visitor', - 'graphql/language/printer', - 'graphql/utilities', ] esbuild.build({ diff --git a/integration-tests/esbuild/build.esm-http-output-esm.mjs b/integration-tests/esbuild/build.esm-http-output-esm.mjs index 427dabb023c..e6fee1f0198 100644 --- a/integration-tests/esbuild/build.esm-http-output-esm.mjs +++ b/integration-tests/esbuild/build.esm-http-output-esm.mjs @@ -22,11 +22,6 @@ const external = [ '@datadog/native-appsec', '@datadog/native-iast-taint-tracking', '@datadog/native-iast-rewriter', - - // required if you encounter graphql errors during the build step - 'graphql/language/visitor', - 'graphql/language/printer', - 'graphql/utilities', ] esbuild.build({ diff --git a/packages/datadog-plugin-graphql/src/tools/transforms.js b/packages/datadog-plugin-graphql/src/tools/transforms.js index 6dde1bc1524..b79712719fd 100644 --- a/packages/datadog-plugin-graphql/src/tools/transforms.js +++ b/packages/datadog-plugin-graphql/src/tools/transforms.js @@ -5,9 +5,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); -const visitor_1 = require("graphql/language"); -const printer_1 = require("graphql/language"); -const utilities_1 = require("graphql/utilities"); +const visitor_1 = require("graphql"); +const printer_1 = require("graphql"); +const utilities_1 = require("graphql"); const lodash_sortby_1 = __importDefault(require("lodash.sortby")); function hideLiterals(ast) { return visitor_1.visit(ast, { diff --git a/packages/node_modules/graphql/language/LICENSE b/packages/node_modules/graphql/LICENSE similarity index 100% rename from packages/node_modules/graphql/language/LICENSE rename to packages/node_modules/graphql/LICENSE diff --git a/packages/node_modules/graphql/index.js b/packages/node_modules/graphql/index.js new file mode 100644 index 00000000000..3d29c46fd32 --- /dev/null +++ b/packages/node_modules/graphql/index.js @@ -0,0 +1,121 @@ +(()=>{"use strict";let e;var t,n,r,i,o,a,s,l,u,c,p,d,f,h,m,y={};y.d=(e,t)=>{for(var n in t)y.o(t,n)&&!y.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},y.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),y.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var E={};y.r(E),y.d(E,{VariablesAreInputTypesRule:()=>rP,SingleFieldSubscriptionsRule:()=>rb,UniqueVariableNamesRule:()=>rU,GraphQLDeprecatedDirective:()=>t4,GraphQLNonNull:()=>tc,__InputValue:()=>ns,createSourceEventStream:()=>ih,execute:()=>r1,isDefinitionNode:()=>nk,isInterfaceType:()=>eH,isRequiredArgument:()=>tw,isValidNameError:()=>iH,parseValue:()=>el,valueFromAST:()=>rm,NoUnusedVariablesRule:()=>n2,__DirectiveLocation:()=>ni,findDangerousChanges:()=>iZ,__TypeKind:()=>nu,isSchema:()=>nm,UniqueTypeNamesRule:()=>rV,NoSchemaIntrospectionCustomRule:()=>iE,defaultTypeResolver:()=>io,isType:()=>eQ,syntaxError:()=>$,version:()=>T,UniqueFragmentNamesRule:()=>r$,assertWrappingType:()=>td,getNullableType:()=>tm,isObjectType:()=>eX,visitWithTypeInfo:()=>nR,assertEnumValueName:()=>eY,printSchema:()=>ix,validate:()=>rX,BREAK:()=>eR,assertNonNullType:()=>e6,assertNullableType:()=>th,executeSync:()=>r2,isLeafType:()=>tr,resolveSchemaCoordinate:()=>i9,assertOutputType:()=>tn,buildASTSchema:()=>iS,astFromValue:()=>ne,Kind:()=>p,ProvidedRequiredArgumentsRule:()=>ra,UniqueDirectiveNamesRule:()=>rw,KnownDirectivesRule:()=>nq,DEFAULT_DEPRECATION_REASON:()=>t3,TypeKind:()=>f,assertInterfaceType:()=>eW,isValueNode:()=>nx,GraphQLSpecifiedByDirective:()=>t9,GraphQLFloat:()=>tQ,UniqueFieldDefinitionNamesRule:()=>rL,LoneAnonymousOperationRule:()=>nz,VariablesInAllowedPositionRule:()=>rG,assertInputType:()=>te,formatError:()=>L,assertInputObjectType:()=>e4,isOutputType:()=>tt,isWrappingType:()=>tp,assertLeafType:()=>ti,assertValidSchema:()=>nN,FragmentsOnCompositeTypesRule:()=>nB,graphql:()=>il,UniqueOperationTypesRule:()=>rC,parseSchemaCoordinate:()=>ep,UniqueEnumValueNamesRule:()=>rk,isNonNullType:()=>e8,isSelectionNode:()=>n$,printError:()=>k,specifiedDirectives:()=>t8,visit:()=>ek,GraphQLScalarType:()=>tI,assertEnumType:()=>e2,UniqueDirectivesPerLocationRule:()=>rR,assertName:()=>eB,getDirectiveValues:()=>rv,isConstValueNode:()=>function e(t){return nx(t)&&(t.kind===p.LIST?t.values.some(e):t.kind===p.OBJECT?t.fields.some(t=>e(t.value)):t.kind!==p.VARIABLE)},isEqualType:()=>tM,isNamedType:()=>ty,isTypeDefinitionNode:()=>nV,validateSchema:()=>nv,parse:()=>es,__Schema:()=>nn,isTypeSystemDefinitionNode:()=>nC,valueFromASTUntyped:()=>eG,LoneSchemaDefinitionRule:()=>nH,isTypeSubTypeOf:()=>tj,UniqueArgumentNamesRule:()=>rS,UniqueInputFieldNamesRule:()=>rx,locatedError:()=>rZ,typeFromAST:()=>nA,printLocation:()=>D,assertUnionType:()=>e0,separateOperations:()=>iJ,getVariableValues:()=>rE,Location:()=>x,GraphQLObjectType:()=>tg,UniqueArgumentDefinitionNamesRule:()=>rA,stripIgnoredCharacters:()=>iX,GRAPHQL_MAX_INT:()=>tG,visitInParallel:()=>eL,parseType:()=>ec,isTypeNode:()=>nF,PossibleTypeExtensionsRule:()=>ri,graphqlSync:()=>iu,isSchemaCoordinateNode:()=>nj,DirectiveLocation:()=>c,TypeNameMetaFieldDef:()=>nd,coerceInputValue:()=>rf,GraphQLInt:()=>tY,resolveObjMapThunk:()=>tN,GraphQLInterfaceType:()=>tR,UniqueOperationNamesRule:()=>rF,GraphQLSkipDirective:()=>t2,isEnumType:()=>e1,assertValidName:()=>iz,buildClientSchema:()=>ig,KnownArgumentNamesRule:()=>nY,ValuesOfCorrectTypeRule:()=>rM,isInputObjectType:()=>e3,GraphQLID:()=>tK,NoUnusedFragmentsRule:()=>n1,isUnionType:()=>eZ,isSpecifiedScalarType:()=>tz,getArgumentValues:()=>rT,printSourceLocation:()=>A,__EnumValue:()=>nl,getOperationAST:()=>iv,isExecutableDefinitionNode:()=>nL,isAbstractType:()=>ts,assertAbstractType:()=>tl,isTypeExtensionNode:()=>nM,GraphQLInputObjectType:()=>tC,getNamedType:()=>tT,parseConstValue:()=>eu,KnownFragmentNamesRule:()=>nJ,isListType:()=>e9,Lexer:()=>Q,isSpecifiedDirective:()=>t6,responsePathAsArray:()=>rd,isDirective:()=>tW,TypeInfo:()=>nS,assertScalarType:()=>eK,extendSchema:()=>i_,isIntrospectionType:()=>nh,print:()=>eF,getIntrospectionQuery:()=>iT,GraphQLBoolean:()=>tJ,KnownTypeNamesRule:()=>nK,assertListType:()=>e5,concatAST:()=>iq,NoDeprecatedCustomRule:()=>iy,defaultFieldResolver:()=>ia,GraphQLDirective:()=>t0,getLocation:()=>b,TypeMetaFieldDef:()=>np,GRAPHQL_MIN_INT:()=>tB,GraphQLIncludeDirective:()=>t1,ScalarLeafsRule:()=>ru,assertSchema:()=>ny,lexicographicSortSchema:()=>iR,GraphQLList:()=>tu,isTypeSystemExtensionNode:()=>nU,specifiedScalarTypes:()=>tX,BreakingChangeType:()=>h,ExecutableDefinitionsRule:()=>nP,assertDirective:()=>tZ,__Field:()=>na,getVisitFn:()=>ex,recommendedRules:()=>rB,SchemaMetaFieldDef:()=>nc,assertCompositeType:()=>ta,isRequiredInputField:()=>tU,Token:()=>F,specifiedRules:()=>rY,DangerousChangeType:()=>m,GraphQLUnionType:()=>tk,isCompositeType:()=>to,versionInfo:()=>v,FieldsOnCorrectTypeRule:()=>nG,GraphQLString:()=>tq,assertType:()=>eq,introspectionFromSchema:()=>iI,doTypesOverlap:()=>tP,GraphQLEnumType:()=>t$,resolveReadonlyArrayThunk:()=>tv,GraphQLOneOfDirective:()=>t5,NoFragmentCyclesRule:()=>nZ,findBreakingChanges:()=>iW,ValidationContext:()=>rK,OverlappingFieldsCanBeMergedRule:()=>n4,isScalarType:()=>eJ,MaxIntrospectionDepthRule:()=>nW,NoUndefinedVariablesRule:()=>n0,assertObjectType:()=>ez,getOperationRootType:()=>iN,printType:()=>iU,OperationTypeNode:()=>u,isInputType:()=>e7,__Directive:()=>nr,GraphQLSchema:()=>nE,Source:()=>ea,resolveASTSchemaCoordinate:()=>i5,GraphQLError:()=>w,assertNamedType:()=>tE,buildSchema:()=>iw,introspectionTypes:()=>nf,PossibleFragmentSpreadsRule:()=>rr,__Type:()=>no,getEnterLeaveForKind:()=>e$,TokenKind:()=>d,printIntrospectionSchema:()=>iF,isNullableType:()=>tf,subscribe:()=>id});let T="16.12.0",v=Object.freeze({major:16,minor:12,patch:0,preReleaseTag:null});function N(e,t){if(!e)throw Error(t)}function I(e){return"function"==typeof(null==e?void 0:e.then)}function g(e){return"object"==typeof e&&null!==e}function _(e,t){if(!e)throw Error(null!=t?t:"Unexpected invariant triggered.")}let O=/\r\n|[\n\r]/g;function b(e,t){let n=0,r=1;for(let i of e.body.matchAll(O)){if("number"==typeof i.index||_(!1),i.index>=t)break;n=i.index+i[0].length,r+=1}return{line:r,column:t+1-n}}function D(e){return A(e.source,b(e.source,e.start))}function A(e,t){let n=e.locationOffset.column-1,r="".padStart(n)+e.body,i=t.line-1,o=e.locationOffset.line-1,a=t.line+o,s=1===t.line?n:0,l=t.column+s,u=`${e.name}:${a}:${l} +`,c=r.split(/\r\n|[\n\r]/g),p=c[i];if(p.length>120){let e=Math.floor(l/80),t=[];for(let e=0;e["|",e]),["|","^".padStart(l%80)],["|",t[e+1]]])}return u+S([[`${a-1} |`,c[i-1]],[`${a} |`,p],["|","^".padStart(l)],[`${a+1} |`,c[i+1]]])}function S(e){let t=e.filter(([e,t])=>void 0!==t),n=Math.max(...t.map(([e])=>e.length));return t.map(([e,t])=>e.padStart(n)+(t?" "+t:"")).join("\n")}class w extends Error{constructor(e,...t){var n,r,i;const{nodes:o,source:a,positions:s,path:l,originalError:u,extensions:c}=function(e){let t=e[0];return null==t||"kind"in t||"length"in t?{nodes:t,source:e[1],positions:e[2],path:e[3],originalError:e[4],extensions:e[5]}:t}(t);super(e),this.name="GraphQLError",this.path=null!=l?l:void 0,this.originalError=null!=u?u:void 0,this.nodes=R(Array.isArray(o)?o:o?[o]:void 0);const p=R(null==(n=this.nodes)?void 0:n.map(e=>e.loc).filter(e=>null!=e));this.source=null!=a?a:null==p||null==(r=p[0])?void 0:r.source,this.positions=null!=s?s:null==p?void 0:p.map(e=>e.start),this.locations=s&&a?s.map(e=>b(a,e)):null==p?void 0:p.map(e=>b(e.source,e.start));const d=g(null==u?void 0:u.extensions)?null==u?void 0:u.extensions:void 0;this.extensions=null!=(i=null!=c?c:d)?i:Object.create(null),Object.defineProperties(this,{message:{writable:!0,enumerable:!0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),null!=u&&u.stack?Object.defineProperty(this,"stack",{value:u.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,w):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let e=this.message;if(this.nodes)for(let t of this.nodes)t.loc&&(e+="\n\n"+D(t.loc));else if(this.source&&this.locations)for(let t of this.locations)e+="\n\n"+A(this.source,t);return e}toJSON(){let e={message:this.message};return null!=this.locations&&(e.locations=this.locations),null!=this.path&&(e.path=this.path),null!=this.extensions&&Object.keys(this.extensions).length>0&&(e.extensions=this.extensions),e}}function R(e){return void 0===e||0===e.length?void 0:e}function k(e){return e.toString()}function L(e){return e.toJSON()}function $(e,t,n){return new w(`Syntax Error: ${n}`,{source:e,positions:[t]})}class x{constructor(e,t,n){this.start=e.start,this.end=t.end,this.startToken=e,this.endToken=t,this.source=n}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}}class F{constructor(e,t,n,r,i,o){this.kind=e,this.start=t,this.end=n,this.line=r,this.column=i,this.value=o,this.prev=null,this.next=null}get[Symbol.toStringTag](){return"Token"}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}}let C={Name:[],Document:["definitions"],OperationDefinition:["description","name","variableDefinitions","directives","selectionSet"],VariableDefinition:["description","variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["description","name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"],TypeCoordinate:["name"],MemberCoordinate:["name","memberName"],ArgumentCoordinate:["name","fieldName","argumentName"],DirectiveCoordinate:["name"],DirectiveArgumentCoordinate:["name","argumentName"]},V=new Set(Object.keys(C));function U(e){let t=null==e?void 0:e.kind;return"string"==typeof t&&V.has(t)}function M(e){return 9===e||32===e}function j(e){return e>=48&&e<=57}function P(e){return e>=97&&e<=122||e>=65&&e<=90}function G(e){return P(e)||95===e}function B(e){return P(e)||j(e)||95===e}function Y(e,t){let n=e.replace(/"""/g,'\\"""'),r=n.split(/\r\n|[\n\r]/g),i=1===r.length,o=r.length>1&&r.slice(1).every(e=>0===e.length||M(e.charCodeAt(0))),a=n.endsWith('\\"""'),s=e.endsWith('"')&&!a,l=e.endsWith("\\"),u=s||l,c=!(null!=t&&t.minimize)&&(!i||e.length>70||u||o||a),p="",d=i&&M(e.charCodeAt(0));return(c&&!d||o)&&(p+="\n"),p+=n,(c||u)&&(p+="\n"),'"""'+p+'"""'}(t=u||(u={})).QUERY="query",t.MUTATION="mutation",t.SUBSCRIPTION="subscription",(n=c||(c={})).QUERY="QUERY",n.MUTATION="MUTATION",n.SUBSCRIPTION="SUBSCRIPTION",n.FIELD="FIELD",n.FRAGMENT_DEFINITION="FRAGMENT_DEFINITION",n.FRAGMENT_SPREAD="FRAGMENT_SPREAD",n.INLINE_FRAGMENT="INLINE_FRAGMENT",n.VARIABLE_DEFINITION="VARIABLE_DEFINITION",n.SCHEMA="SCHEMA",n.SCALAR="SCALAR",n.OBJECT="OBJECT",n.FIELD_DEFINITION="FIELD_DEFINITION",n.ARGUMENT_DEFINITION="ARGUMENT_DEFINITION",n.INTERFACE="INTERFACE",n.UNION="UNION",n.ENUM="ENUM",n.ENUM_VALUE="ENUM_VALUE",n.INPUT_OBJECT="INPUT_OBJECT",n.INPUT_FIELD_DEFINITION="INPUT_FIELD_DEFINITION",(r=p||(p={})).NAME="Name",r.DOCUMENT="Document",r.OPERATION_DEFINITION="OperationDefinition",r.VARIABLE_DEFINITION="VariableDefinition",r.SELECTION_SET="SelectionSet",r.FIELD="Field",r.ARGUMENT="Argument",r.FRAGMENT_SPREAD="FragmentSpread",r.INLINE_FRAGMENT="InlineFragment",r.FRAGMENT_DEFINITION="FragmentDefinition",r.VARIABLE="Variable",r.INT="IntValue",r.FLOAT="FloatValue",r.STRING="StringValue",r.BOOLEAN="BooleanValue",r.NULL="NullValue",r.ENUM="EnumValue",r.LIST="ListValue",r.OBJECT="ObjectValue",r.OBJECT_FIELD="ObjectField",r.DIRECTIVE="Directive",r.NAMED_TYPE="NamedType",r.LIST_TYPE="ListType",r.NON_NULL_TYPE="NonNullType",r.SCHEMA_DEFINITION="SchemaDefinition",r.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",r.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",r.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",r.FIELD_DEFINITION="FieldDefinition",r.INPUT_VALUE_DEFINITION="InputValueDefinition",r.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",r.UNION_TYPE_DEFINITION="UnionTypeDefinition",r.ENUM_TYPE_DEFINITION="EnumTypeDefinition",r.ENUM_VALUE_DEFINITION="EnumValueDefinition",r.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",r.DIRECTIVE_DEFINITION="DirectiveDefinition",r.SCHEMA_EXTENSION="SchemaExtension",r.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",r.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",r.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",r.UNION_TYPE_EXTENSION="UnionTypeExtension",r.ENUM_TYPE_EXTENSION="EnumTypeExtension",r.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension",r.TYPE_COORDINATE="TypeCoordinate",r.MEMBER_COORDINATE="MemberCoordinate",r.ARGUMENT_COORDINATE="ArgumentCoordinate",r.DIRECTIVE_COORDINATE="DirectiveCoordinate",r.DIRECTIVE_ARGUMENT_COORDINATE="DirectiveArgumentCoordinate",(i=d||(d={})).SOF="",i.EOF="",i.BANG="!",i.DOLLAR="$",i.AMP="&",i.PAREN_L="(",i.PAREN_R=")",i.DOT=".",i.SPREAD="...",i.COLON=":",i.EQUALS="=",i.AT="@",i.BRACKET_L="[",i.BRACKET_R="]",i.BRACE_L="{",i.PIPE="|",i.BRACE_R="}",i.NAME="Name",i.INT="Int",i.FLOAT="Float",i.STRING="String",i.BLOCK_STRING="BlockString",i.COMMENT="Comment";class Q{constructor(e){const t=new F(d.SOF,0,0,0,0);this.source=e,this.lastToken=t,this.token=t,this.line=1,this.lineStart=0}get[Symbol.toStringTag](){return"Lexer"}advance(){return this.lastToken=this.token,this.token=this.lookahead()}lookahead(){let e=this.token;if(e.kind!==d.EOF)do if(e.next)e=e.next;else{let t=function(e,t){let n=e.source.body,r=n.length,i=t;for(;i0===t?e:e.slice(r)).slice(null!=(t=i)?t:0,o+1)})(l).join("\n"));return e.line+=l.length-1,e.lineStart=i,r}if(92===r&&34===n.charCodeAt(o+1)&&34===n.charCodeAt(o+2)&&34===n.charCodeAt(o+3)){s+=n.slice(a,o),a=o+1,o+=4;continue}if(10===r||13===r){s+=n.slice(a,o),l.push(s),13===r&&10===n.charCodeAt(o+1)?o+=2:++o,s="",a=o,i=o;continue}if(J(r))++o;else if(K(n,o))o+=2;else throw $(e.source,o,`Invalid character within String: ${H(e,o)}.`)}throw $(e.source,o,"Unterminated string.")}(e,i);return function(e,t){let n=e.source.body,r=n.length,i=t+1,o=i,a="";for(;i=0&&e<=55295||e>=57344&&e<=1114111}function K(e,t){return X(e.charCodeAt(t))&&z(e.charCodeAt(t+1))}function X(e){return e>=55296&&e<=56319}function z(e){return e>=56320&&e<=57343}function H(e,t){let n=e.source.body.codePointAt(t);if(void 0===n)return d.EOF;if(n>=32&&n<=126){let e=String.fromCodePoint(n);return'"'===e?"'\"'":`"${e}"`}return"U+"+n.toString(16).toUpperCase().padStart(4,"0")}function W(e,t,n,r,i){let o=e.line,a=1+n-e.lineStart;return new F(t,n,r,o,a,i)}function Z(e,t,n){if(!j(n))throw $(e.source,t,`Invalid number, expected digit but got: ${H(e,t)}.`);let r=e.source.body,i=t+1;for(;j(r.charCodeAt(i));)++i;return i}function ee(e,t){return et(e.charCodeAt(t))<<12|et(e.charCodeAt(t+1))<<8|et(e.charCodeAt(t+2))<<4|et(e.charCodeAt(t+3))}function et(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function en(e,t){let n=e.source.body,r=n.length,i=t+1;for(;i2)return"[Array]";let n=Math.min(10,s.length),r=s.length-n,u=[];for(let t=0;t1&&u.push(`... ${r} more items`),"["+u.join(", ")+"]"}return o=t,a=i,0===(r=Object.entries(o)).length?"{}":a.length>2?"["+function(e){let t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if("Object"===t&&"function"==typeof e.constructor){let t=e.constructor.name;if("string"==typeof t&&""!==t)return t}return t}(o)+"]":"{ "+r.map(([t,n])=>t+": "+e(n,a)).join(", ")+" }"}(t,n);default:return String(t)}}(e,[])}let eo=globalThis.process&&1?function(e,t){return e instanceof t}:function(e,t){if(e instanceof t)return!0;if("object"==typeof e&&null!==e){var n;let r=t.prototype[Symbol.toStringTag];if(r===(Symbol.toStringTag in e?e[Symbol.toStringTag]:null==(n=e.constructor)?void 0:n.name)){let t=ei(e);throw Error(`Cannot use ${r} "${t}" from another module or realm. + +Ensure that there is only one instance of "graphql" in the node_modules +directory. If different versions of "graphql" are the dependencies of other +relied on modules, use "resolutions" to ensure only one version is installed. + +https://yarnpkg.com/en/docs/selective-version-resolutions + +Duplicate "graphql" modules cannot be used at the same time since different +versions may have different capabilities and behavior. The data from one +version used in the function from another could produce confusing and +spurious results.`)}}return!1};class ea{constructor(e,t="GraphQL request",n={line:1,column:1}){"string"==typeof e||N(!1,`Body must be a string. Received: ${ei(e)}.`),this.body=e,this.name=t,this.locationOffset=n,this.locationOffset.line>0||N(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||N(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}}function es(e,t){let n=new ed(e,t),r=n.parseDocument();return Object.defineProperty(r,"tokenCount",{enumerable:!1,value:n.tokenCount}),r}function el(e,t){let n=new ed(e,t);n.expectToken(d.SOF);let r=n.parseValueLiteral(!1);return n.expectToken(d.EOF),r}function eu(e,t){let n=new ed(e,t);n.expectToken(d.SOF);let r=n.parseConstValueLiteral();return n.expectToken(d.EOF),r}function ec(e,t){let n=new ed(e,t);n.expectToken(d.SOF);let r=n.parseTypeReference();return n.expectToken(d.EOF),r}function ep(e){let t=new er(eo(e,ea)?e:new ea(e)),n=new ed(e,{lexer:t});n.expectToken(d.SOF);let r=n.parseSchemaCoordinate();return n.expectToken(d.EOF),r}class ed{constructor(e,t={}){const{lexer:n,...r}=t;if(n)this._lexer=n;else{const t=eo(e,ea)?e:new ea(e);this._lexer=new Q(t)}this._options=r,this._tokenCounter=0}get tokenCount(){return this._tokenCounter}parseName(){let e=this.expectToken(d.NAME);return this.node(e,{kind:p.NAME,value:e.value})}parseDocument(){return this.node(this._lexer.token,{kind:p.DOCUMENT,definitions:this.many(d.SOF,this.parseDefinition,d.EOF)})}parseDefinition(){if(this.peek(d.BRACE_L))return this.parseOperationDefinition();let e=this.peekDescription(),t=e?this._lexer.lookahead():this._lexer.token;if(e&&t.kind===d.BRACE_L)throw $(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are not supported on shorthand queries.");if(t.kind===d.NAME){switch(t.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}switch(t.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition()}if(e)throw $(this._lexer.source,this._lexer.token.start,"Unexpected description, only GraphQL definitions support descriptions.");if("extend"===t.value)return this.parseTypeSystemExtension()}throw this.unexpected(t)}parseOperationDefinition(){let e,t=this._lexer.token;if(this.peek(d.BRACE_L))return this.node(t,{kind:p.OPERATION_DEFINITION,operation:u.QUERY,description:void 0,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});let n=this.parseDescription(),r=this.parseOperationType();return this.peek(d.NAME)&&(e=this.parseName()),this.node(t,{kind:p.OPERATION_DEFINITION,operation:r,description:n,name:e,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){let e=this.expectToken(d.NAME);switch(e.value){case"query":return u.QUERY;case"mutation":return u.MUTATION;case"subscription":return u.SUBSCRIPTION}throw this.unexpected(e)}parseVariableDefinitions(){return this.optionalMany(d.PAREN_L,this.parseVariableDefinition,d.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:p.VARIABLE_DEFINITION,description:this.parseDescription(),variable:this.parseVariable(),type:(this.expectToken(d.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(d.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){let e=this._lexer.token;return this.expectToken(d.DOLLAR),this.node(e,{kind:p.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:p.SELECTION_SET,selections:this.many(d.BRACE_L,this.parseSelection,d.BRACE_R)})}parseSelection(){return this.peek(d.SPREAD)?this.parseFragment():this.parseField()}parseField(){let e,t,n=this._lexer.token,r=this.parseName();return this.expectOptionalToken(d.COLON)?(e=r,t=this.parseName()):t=r,this.node(n,{kind:p.FIELD,alias:e,name:t,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(d.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(e){let t=e?this.parseConstArgument:this.parseArgument;return this.optionalMany(d.PAREN_L,t,d.PAREN_R)}parseArgument(e=!1){let t=this._lexer.token,n=this.parseName();return this.expectToken(d.COLON),this.node(t,{kind:p.ARGUMENT,name:n,value:this.parseValueLiteral(e)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){let e=this._lexer.token;this.expectToken(d.SPREAD);let t=this.expectOptionalKeyword("on");return!t&&this.peek(d.NAME)?this.node(e,{kind:p.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(e,{kind:p.INLINE_FRAGMENT,typeCondition:t?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){let e=this._lexer.token,t=this.parseDescription();return(this.expectKeyword("fragment"),!0===this._options.allowLegacyFragmentVariables)?this.node(e,{kind:p.FRAGMENT_DEFINITION,description:t,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}):this.node(e,{kind:p.FRAGMENT_DEFINITION,description:t,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentName(){if("on"===this._lexer.token.value)throw this.unexpected();return this.parseName()}parseValueLiteral(e){let t=this._lexer.token;switch(t.kind){case d.BRACKET_L:return this.parseList(e);case d.BRACE_L:return this.parseObject(e);case d.INT:return this.advanceLexer(),this.node(t,{kind:p.INT,value:t.value});case d.FLOAT:return this.advanceLexer(),this.node(t,{kind:p.FLOAT,value:t.value});case d.STRING:case d.BLOCK_STRING:return this.parseStringLiteral();case d.NAME:switch(this.advanceLexer(),t.value){case"true":return this.node(t,{kind:p.BOOLEAN,value:!0});case"false":return this.node(t,{kind:p.BOOLEAN,value:!1});case"null":return this.node(t,{kind:p.NULL});default:return this.node(t,{kind:p.ENUM,value:t.value})}case d.DOLLAR:if(e){if(this.expectToken(d.DOLLAR),this._lexer.token.kind===d.NAME){let e=this._lexer.token.value;throw $(this._lexer.source,t.start,`Unexpected variable "$${e}" in constant value.`)}throw this.unexpected(t)}return this.parseVariable();default:throw this.unexpected()}}parseConstValueLiteral(){return this.parseValueLiteral(!0)}parseStringLiteral(){let e=this._lexer.token;return this.advanceLexer(),this.node(e,{kind:p.STRING,value:e.value,block:e.kind===d.BLOCK_STRING})}parseList(e){let t=()=>this.parseValueLiteral(e);return this.node(this._lexer.token,{kind:p.LIST,values:this.any(d.BRACKET_L,t,d.BRACKET_R)})}parseObject(e){let t=()=>this.parseObjectField(e);return this.node(this._lexer.token,{kind:p.OBJECT,fields:this.any(d.BRACE_L,t,d.BRACE_R)})}parseObjectField(e){let t=this._lexer.token,n=this.parseName();return this.expectToken(d.COLON),this.node(t,{kind:p.OBJECT_FIELD,name:n,value:this.parseValueLiteral(e)})}parseDirectives(e){let t=[];for(;this.peek(d.AT);)t.push(this.parseDirective(e));return t}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(e){let t=this._lexer.token;return this.expectToken(d.AT),this.node(t,{kind:p.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e)})}parseTypeReference(){let e,t=this._lexer.token;if(this.expectOptionalToken(d.BRACKET_L)){let n=this.parseTypeReference();this.expectToken(d.BRACKET_R),e=this.node(t,{kind:p.LIST_TYPE,type:n})}else e=this.parseNamedType();return this.expectOptionalToken(d.BANG)?this.node(t,{kind:p.NON_NULL_TYPE,type:e}):e}parseNamedType(){return this.node(this._lexer.token,{kind:p.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(d.STRING)||this.peek(d.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("schema");let n=this.parseConstDirectives(),r=this.many(d.BRACE_L,this.parseOperationTypeDefinition,d.BRACE_R);return this.node(e,{kind:p.SCHEMA_DEFINITION,description:t,directives:n,operationTypes:r})}parseOperationTypeDefinition(){let e=this._lexer.token,t=this.parseOperationType();this.expectToken(d.COLON);let n=this.parseNamedType();return this.node(e,{kind:p.OPERATION_TYPE_DEFINITION,operation:t,type:n})}parseScalarTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("scalar");let n=this.parseName(),r=this.parseConstDirectives();return this.node(e,{kind:p.SCALAR_TYPE_DEFINITION,description:t,name:n,directives:r})}parseObjectTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("type");let n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),o=this.parseFieldsDefinition();return this.node(e,{kind:p.OBJECT_TYPE_DEFINITION,description:t,name:n,interfaces:r,directives:i,fields:o})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(d.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(d.BRACE_L,this.parseFieldDefinition,d.BRACE_R)}parseFieldDefinition(){let e=this._lexer.token,t=this.parseDescription(),n=this.parseName(),r=this.parseArgumentDefs();this.expectToken(d.COLON);let i=this.parseTypeReference(),o=this.parseConstDirectives();return this.node(e,{kind:p.FIELD_DEFINITION,description:t,name:n,arguments:r,type:i,directives:o})}parseArgumentDefs(){return this.optionalMany(d.PAREN_L,this.parseInputValueDef,d.PAREN_R)}parseInputValueDef(){let e,t=this._lexer.token,n=this.parseDescription(),r=this.parseName();this.expectToken(d.COLON);let i=this.parseTypeReference();this.expectOptionalToken(d.EQUALS)&&(e=this.parseConstValueLiteral());let o=this.parseConstDirectives();return this.node(t,{kind:p.INPUT_VALUE_DEFINITION,description:n,name:r,type:i,defaultValue:e,directives:o})}parseInterfaceTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("interface");let n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),o=this.parseFieldsDefinition();return this.node(e,{kind:p.INTERFACE_TYPE_DEFINITION,description:t,name:n,interfaces:r,directives:i,fields:o})}parseUnionTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("union");let n=this.parseName(),r=this.parseConstDirectives(),i=this.parseUnionMemberTypes();return this.node(e,{kind:p.UNION_TYPE_DEFINITION,description:t,name:n,directives:r,types:i})}parseUnionMemberTypes(){return this.expectOptionalToken(d.EQUALS)?this.delimitedMany(d.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("enum");let n=this.parseName(),r=this.parseConstDirectives(),i=this.parseEnumValuesDefinition();return this.node(e,{kind:p.ENUM_TYPE_DEFINITION,description:t,name:n,directives:r,values:i})}parseEnumValuesDefinition(){return this.optionalMany(d.BRACE_L,this.parseEnumValueDefinition,d.BRACE_R)}parseEnumValueDefinition(){let e=this._lexer.token,t=this.parseDescription(),n=this.parseEnumValueName(),r=this.parseConstDirectives();return this.node(e,{kind:p.ENUM_VALUE_DEFINITION,description:t,name:n,directives:r})}parseEnumValueName(){if("true"===this._lexer.token.value||"false"===this._lexer.token.value||"null"===this._lexer.token.value)throw $(this._lexer.source,this._lexer.token.start,`${ef(this._lexer.token)} is reserved and cannot be used for an enum value.`);return this.parseName()}parseInputObjectTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("input");let n=this.parseName(),r=this.parseConstDirectives(),i=this.parseInputFieldsDefinition();return this.node(e,{kind:p.INPUT_OBJECT_TYPE_DEFINITION,description:t,name:n,directives:r,fields:i})}parseInputFieldsDefinition(){return this.optionalMany(d.BRACE_L,this.parseInputValueDef,d.BRACE_R)}parseTypeSystemExtension(){let e=this._lexer.lookahead();if(e.kind===d.NAME)switch(e.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(e)}parseSchemaExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");let t=this.parseConstDirectives(),n=this.optionalMany(d.BRACE_L,this.parseOperationTypeDefinition,d.BRACE_R);if(0===t.length&&0===n.length)throw this.unexpected();return this.node(e,{kind:p.SCHEMA_EXTENSION,directives:t,operationTypes:n})}parseScalarTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");let t=this.parseName(),n=this.parseConstDirectives();if(0===n.length)throw this.unexpected();return this.node(e,{kind:p.SCALAR_TYPE_EXTENSION,name:t,directives:n})}parseObjectTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");let t=this.parseName(),n=this.parseImplementsInterfaces(),r=this.parseConstDirectives(),i=this.parseFieldsDefinition();if(0===n.length&&0===r.length&&0===i.length)throw this.unexpected();return this.node(e,{kind:p.OBJECT_TYPE_EXTENSION,name:t,interfaces:n,directives:r,fields:i})}parseInterfaceTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");let t=this.parseName(),n=this.parseImplementsInterfaces(),r=this.parseConstDirectives(),i=this.parseFieldsDefinition();if(0===n.length&&0===r.length&&0===i.length)throw this.unexpected();return this.node(e,{kind:p.INTERFACE_TYPE_EXTENSION,name:t,interfaces:n,directives:r,fields:i})}parseUnionTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");let t=this.parseName(),n=this.parseConstDirectives(),r=this.parseUnionMemberTypes();if(0===n.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:p.UNION_TYPE_EXTENSION,name:t,directives:n,types:r})}parseEnumTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");let t=this.parseName(),n=this.parseConstDirectives(),r=this.parseEnumValuesDefinition();if(0===n.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:p.ENUM_TYPE_EXTENSION,name:t,directives:n,values:r})}parseInputObjectTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");let t=this.parseName(),n=this.parseConstDirectives(),r=this.parseInputFieldsDefinition();if(0===n.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:p.INPUT_OBJECT_TYPE_EXTENSION,name:t,directives:n,fields:r})}parseDirectiveDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("directive"),this.expectToken(d.AT);let n=this.parseName(),r=this.parseArgumentDefs(),i=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");let o=this.parseDirectiveLocations();return this.node(e,{kind:p.DIRECTIVE_DEFINITION,description:t,name:n,arguments:r,repeatable:i,locations:o})}parseDirectiveLocations(){return this.delimitedMany(d.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){let e=this._lexer.token,t=this.parseName();if(Object.prototype.hasOwnProperty.call(c,t.value))return t;throw this.unexpected(e)}parseSchemaCoordinate(){let e,t,n=this._lexer.token,r=this.expectOptionalToken(d.AT),i=this.parseName();return(!r&&this.expectOptionalToken(d.DOT)&&(e=this.parseName()),(r||e)&&this.expectOptionalToken(d.PAREN_L)&&(t=this.parseName(),this.expectToken(d.COLON),this.expectToken(d.PAREN_R)),r)?t?this.node(n,{kind:p.DIRECTIVE_ARGUMENT_COORDINATE,name:i,argumentName:t}):this.node(n,{kind:p.DIRECTIVE_COORDINATE,name:i}):e?t?this.node(n,{kind:p.ARGUMENT_COORDINATE,name:i,fieldName:e,argumentName:t}):this.node(n,{kind:p.MEMBER_COORDINATE,name:i,memberName:e}):this.node(n,{kind:p.TYPE_COORDINATE,name:i})}node(e,t){return!0!==this._options.noLocation&&(t.loc=new x(e,this._lexer.lastToken,this._lexer.source)),t}peek(e){return this._lexer.token.kind===e}expectToken(e){let t=this._lexer.token;if(t.kind===e)return this.advanceLexer(),t;throw $(this._lexer.source,t.start,`Expected ${eh(e)}, found ${ef(t)}.`)}expectOptionalToken(e){return this._lexer.token.kind===e&&(this.advanceLexer(),!0)}expectKeyword(e){let t=this._lexer.token;if(t.kind===d.NAME&&t.value===e)this.advanceLexer();else throw $(this._lexer.source,t.start,`Expected "${e}", found ${ef(t)}.`)}expectOptionalKeyword(e){let t=this._lexer.token;return t.kind===d.NAME&&t.value===e&&(this.advanceLexer(),!0)}unexpected(e){let t=null!=e?e:this._lexer.token;return $(this._lexer.source,t.start,`Unexpected ${ef(t)}.`)}any(e,t,n){this.expectToken(e);let r=[];for(;!this.expectOptionalToken(n);)r.push(t.call(this));return r}optionalMany(e,t,n){if(this.expectOptionalToken(e)){let e=[];do e.push(t.call(this));while(!this.expectOptionalToken(n));return e}return[]}many(e,t,n){this.expectToken(e);let r=[];do r.push(t.call(this));while(!this.expectOptionalToken(n));return r}delimitedMany(e,t){this.expectOptionalToken(e);let n=[];do n.push(t.call(this));while(this.expectOptionalToken(e));return n}advanceLexer(){let{maxTokens:e}=this._options,t=this._lexer.advance();if(t.kind!==d.EOF&&(++this._tokenCounter,void 0!==e&&this._tokenCounter>e))throw $(this._lexer.source,t.start,`Document contains more that ${e} tokens. Parsing aborted.`)}}function ef(e){let t=e.value;return eh(e.kind)+(null!=t?` "${t}"`:"")}function eh(e){return q(e)?`"${e}"`:e}function em(e,t){let[n,r]=t?[e,t]:[void 0,e],i=" Did you mean ";n&&(i+=n+" ");let o=r.map(e=>`"${e}"`);switch(o.length){case 0:return"";case 1:return i+o[0]+"?";case 2:return i+o[0]+" or "+o[1]+"?"}let a=o.slice(0,5),s=a.pop();return i+a.join(", ")+", or "+s+"?"}function ey(e){return e}function eE(e,t){let n=Object.create(null);for(let r of e)n[t(r)]=r;return n}function eT(e,t,n){let r=Object.create(null);for(let i of e)r[t(i)]=n(i);return r}function ev(e,t){let n=Object.create(null);for(let r of Object.keys(e))n[r]=t(e[r],r);return n}function eN(e,t){let n=0,r=0;for(;n0);let s=0;do++r,s=10*s+o-eI,o=t.charCodeAt(r);while(eg(o)&&s>0);if(as)return 1}else{if(io)return 1;++n,++r}}return e.length-t.length}let eI=48;function eg(e){return!isNaN(e)&&eI<=e&&e<=57}function e_(e,t){let n=Object.create(null),r=new eO(e),i=Math.floor(.4*e.length)+1;for(let e of t){let t=r.measure(e,i);void 0!==t&&(n[e]=t)}return Object.keys(n).sort((e,t)=>{let r=n[e]-n[t];return 0!==r?r:eN(e,t)})}class eO{constructor(e){this._input=e,this._inputLowerCase=e.toLowerCase(),this._inputArray=eb(this._inputLowerCase),this._rows=[Array(e.length+1).fill(0),Array(e.length+1).fill(0),Array(e.length+1).fill(0)]}measure(e,t){if(this._input===e)return 0;let n=e.toLowerCase();if(this._inputLowerCase===n)return 1;let r=eb(n),i=this._inputArray;if(r.lengtht)return;let s=this._rows;for(let e=0;e<=a;e++)s[0][e]=e;for(let e=1;e<=o;e++){let n=s[(e-1)%3],o=s[e%3],l=o[0]=e;for(let t=1;t<=a;t++){let a=+(r[e-1]!==i[t-1]),u=Math.min(n[t]+1,o[t-1]+1,n[t-1]+a);e>1&&t>1&&r[e-1]===i[t-2]&&r[e-2]===i[t-1]&&(u=Math.min(u,s[(e-2)%3][t-2]+1)),ut)return}let l=s[o%3][a];return l<=t?l:void 0}}function eb(e){let t=e.length,n=Array(t);for(let r=0;re.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>eV(e.definitions,"\n\n")},OperationDefinition:{leave(e){let t=eP(e.variableDefinitions)?eM("(\n",eV(e.variableDefinitions,"\n"),"\n)"):eM("(",eV(e.variableDefinitions,", "),")"),n=eM("",e.description,"\n")+eV([e.operation,eV([e.name,t]),eV(e.directives," ")]," ");return("query"===n?"":n+" ")+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:t,defaultValue:n,directives:r,description:i})=>eM("",i,"\n")+e+": "+t+eM(" = ",n)+eM(" ",eV(r," "))},SelectionSet:{leave:({selections:e})=>eU(e)},Field:{leave({alias:e,name:t,arguments:n,directives:r,selectionSet:i}){let o=eM("",e,": ")+t,a=o+eM("(",eV(n,", "),")");return a.length>80&&(a=o+eM("(\n",ej(eV(n,"\n")),"\n)")),eV([a,eV(r," "),i]," ")}},Argument:{leave:({name:e,value:t})=>e+": "+t},FragmentSpread:{leave:({name:e,directives:t})=>"..."+e+eM(" ",eV(t," "))},InlineFragment:{leave:({typeCondition:e,directives:t,selectionSet:n})=>eV(["...",eM("on ",e),eV(t," "),n]," ")},FragmentDefinition:{leave:({name:e,typeCondition:t,variableDefinitions:n,directives:r,selectionSet:i,description:o})=>eM("",o,"\n")+`fragment ${e}${eM("(",eV(n,", "),")")} `+`on ${t} ${eM("",eV(r," ")," ")}`+i},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e},StringValue:{leave:({value:e,block:t})=>t?Y(e):`"${e.replace(eA,eS)}"`},BooleanValue:{leave:({value:e})=>e?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>"["+eV(e,", ")+"]"},ObjectValue:{leave:({fields:e})=>"{"+eV(e,", ")+"}"},ObjectField:{leave:({name:e,value:t})=>e+": "+t},Directive:{leave:({name:e,arguments:t})=>"@"+e+eM("(",eV(t,", "),")")},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>"["+e+"]"},NonNullType:{leave:({type:e})=>e+"!"},SchemaDefinition:{leave:({description:e,directives:t,operationTypes:n})=>eM("",e,"\n")+eV(["schema",eV(t," "),eU(n)]," ")},OperationTypeDefinition:{leave:({operation:e,type:t})=>e+": "+t},ScalarTypeDefinition:{leave:({description:e,name:t,directives:n})=>eM("",e,"\n")+eV(["scalar",t,eV(n," ")]," ")},ObjectTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:r,fields:i})=>eM("",e,"\n")+eV(["type",t,eM("implements ",eV(n," & ")),eV(r," "),eU(i)]," ")},FieldDefinition:{leave:({description:e,name:t,arguments:n,type:r,directives:i})=>eM("",e,"\n")+t+(eP(n)?eM("(\n",ej(eV(n,"\n")),"\n)"):eM("(",eV(n,", "),")"))+": "+r+eM(" ",eV(i," "))},InputValueDefinition:{leave:({description:e,name:t,type:n,defaultValue:r,directives:i})=>eM("",e,"\n")+eV([t+": "+n,eM("= ",r),eV(i," ")]," ")},InterfaceTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:r,fields:i})=>eM("",e,"\n")+eV(["interface",t,eM("implements ",eV(n," & ")),eV(r," "),eU(i)]," ")},UnionTypeDefinition:{leave:({description:e,name:t,directives:n,types:r})=>eM("",e,"\n")+eV(["union",t,eV(n," "),eM("= ",eV(r," | "))]," ")},EnumTypeDefinition:{leave:({description:e,name:t,directives:n,values:r})=>eM("",e,"\n")+eV(["enum",t,eV(n," "),eU(r)]," ")},EnumValueDefinition:{leave:({description:e,name:t,directives:n})=>eM("",e,"\n")+eV([t,eV(n," ")]," ")},InputObjectTypeDefinition:{leave:({description:e,name:t,directives:n,fields:r})=>eM("",e,"\n")+eV(["input",t,eV(n," "),eU(r)]," ")},DirectiveDefinition:{leave:({description:e,name:t,arguments:n,repeatable:r,locations:i})=>eM("",e,"\n")+"directive @"+t+(eP(n)?eM("(\n",ej(eV(n,"\n")),"\n)"):eM("(",eV(n,", "),")"))+(r?" repeatable":"")+" on "+eV(i," | ")},SchemaExtension:{leave:({directives:e,operationTypes:t})=>eV(["extend schema",eV(e," "),eU(t)]," ")},ScalarTypeExtension:{leave:({name:e,directives:t})=>eV(["extend scalar",e,eV(t," ")]," ")},ObjectTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>eV(["extend type",e,eM("implements ",eV(t," & ")),eV(n," "),eU(r)]," ")},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>eV(["extend interface",e,eM("implements ",eV(t," & ")),eV(n," "),eU(r)]," ")},UnionTypeExtension:{leave:({name:e,directives:t,types:n})=>eV(["extend union",e,eV(t," "),eM("= ",eV(n," | "))]," ")},EnumTypeExtension:{leave:({name:e,directives:t,values:n})=>eV(["extend enum",e,eV(t," "),eU(n)]," ")},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:n})=>eV(["extend input",e,eV(t," "),eU(n)]," ")},TypeCoordinate:{leave:({name:e})=>e},MemberCoordinate:{leave:({name:e,memberName:t})=>eV([e,eM(".",t)])},ArgumentCoordinate:{leave:({name:e,fieldName:t,argumentName:n})=>eV([e,eM(".",t),eM("(",n,":)")])},DirectiveCoordinate:{leave:({name:e})=>eV(["@",e])},DirectiveArgumentCoordinate:{leave:({name:e,argumentName:t})=>eV(["@",e,eM("(",t,":)")])}};function eV(e,t=""){var n;return null!=(n=null==e?void 0:e.filter(e=>e).join(t))?n:""}function eU(e){return eM("{\n",ej(eV(e,"\n")),"\n}")}function eM(e,t,n=""){return null!=t&&""!==t?e+t+n:""}function ej(e){return eM(" ",e.replace(/\n/g,"\n "))}function eP(e){var t;return null!=(t=null==e?void 0:e.some(e=>e.includes("\n")))&&t}function eG(e,t){switch(e.kind){case p.NULL:return null;case p.INT:return parseInt(e.value,10);case p.FLOAT:return parseFloat(e.value);case p.STRING:case p.ENUM:case p.BOOLEAN:return e.value;case p.LIST:return e.values.map(e=>eG(e,t));case p.OBJECT:return eT(e.fields,e=>e.name.value,e=>eG(e.value,t));case p.VARIABLE:return null==t?void 0:t[e.name.value]}}function eB(e){if(null!=e||N(!1,"Must provide name."),"string"==typeof e||N(!1,"Expected name to be a string."),0===e.length)throw new w("Expected name to be a non-empty string.");for(let t=1;to(eG(e,t)),this.extensions=eD(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!=(i=e.extensionASTNodes)?i:[],null==e.specifiedByURL||"string"==typeof e.specifiedByURL||N(!1,`${this.name} must provide "specifiedByURL" as a string, but got: ${ei(e.specifiedByURL)}.`),null==e.serialize||"function"==typeof e.serialize||N(!1,`${this.name} must provide "serialize" function. If this custom Scalar is also used as an input type, ensure "parseValue" and "parseLiteral" functions are also provided.`),e.parseLiteral&&("function"==typeof e.parseValue&&"function"==typeof e.parseLiteral||N(!1,`${this.name} must provide both "parseValue" and "parseLiteral" functions.`))}get[Symbol.toStringTag](){return"GraphQLScalarType"}toConfig(){return{name:this.name,description:this.description,specifiedByURL:this.specifiedByURL,serialize:this.serialize,parseValue:this.parseValue,parseLiteral:this.parseLiteral,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}class tg{constructor(e){var t;this.name=eB(e.name),this.description=e.description,this.isTypeOf=e.isTypeOf,this.extensions=eD(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!=(t=e.extensionASTNodes)?t:[],this._fields=()=>tO(e),this._interfaces=()=>t_(e),null==e.isTypeOf||"function"==typeof e.isTypeOf||N(!1,`${this.name} must provide "isTypeOf" as a function, but got: ${ei(e.isTypeOf)}.`)}get[Symbol.toStringTag](){return"GraphQLObjectType"}getFields(){return"function"==typeof this._fields&&(this._fields=this._fields()),this._fields}getInterfaces(){return"function"==typeof this._interfaces&&(this._interfaces=this._interfaces()),this._interfaces}toConfig(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:tA(this.getFields()),isTypeOf:this.isTypeOf,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}function t_(e){var t;let n=tv(null!=(t=e.interfaces)?t:[]);return Array.isArray(n)||N(!1,`${e.name} interfaces must be an Array or a function which returns an Array.`),n}function tO(e){let t=tN(e.fields);return tD(t)||N(!1,`${e.name} fields must be an object with field names as keys or a function which returns such an object.`),ev(t,(t,n)=>{var r;tD(t)||N(!1,`${e.name}.${n} field config must be an object.`),null==t.resolve||"function"==typeof t.resolve||N(!1,`${e.name}.${n} field resolver must be a function if provided, but got: ${ei(t.resolve)}.`);let i=null!=(r=t.args)?r:{};return tD(i)||N(!1,`${e.name}.${n} args must be an object with argument names as keys.`),{name:eB(n),description:t.description,type:t.type,args:tb(i),resolve:t.resolve,subscribe:t.subscribe,deprecationReason:t.deprecationReason,extensions:eD(t.extensions),astNode:t.astNode}})}function tb(e){return Object.entries(e).map(([e,t])=>({name:eB(e),description:t.description,type:t.type,defaultValue:t.defaultValue,deprecationReason:t.deprecationReason,extensions:eD(t.extensions),astNode:t.astNode}))}function tD(e){return g(e)&&!Array.isArray(e)}function tA(e){return ev(e,e=>({description:e.description,type:e.type,args:tS(e.args),resolve:e.resolve,subscribe:e.subscribe,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode}))}function tS(e){return eT(e,e=>e.name,e=>({description:e.description,type:e.type,defaultValue:e.defaultValue,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode}))}function tw(e){return e8(e.type)&&void 0===e.defaultValue}class tR{constructor(e){var t;this.name=eB(e.name),this.description=e.description,this.resolveType=e.resolveType,this.extensions=eD(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!=(t=e.extensionASTNodes)?t:[],this._fields=tO.bind(void 0,e),this._interfaces=t_.bind(void 0,e),null==e.resolveType||"function"==typeof e.resolveType||N(!1,`${this.name} must provide "resolveType" as a function, but got: ${ei(e.resolveType)}.`)}get[Symbol.toStringTag](){return"GraphQLInterfaceType"}getFields(){return"function"==typeof this._fields&&(this._fields=this._fields()),this._fields}getInterfaces(){return"function"==typeof this._interfaces&&(this._interfaces=this._interfaces()),this._interfaces}toConfig(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:tA(this.getFields()),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}class tk{constructor(e){var t;this.name=eB(e.name),this.description=e.description,this.resolveType=e.resolveType,this.extensions=eD(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!=(t=e.extensionASTNodes)?t:[],this._types=tL.bind(void 0,e),null==e.resolveType||"function"==typeof e.resolveType||N(!1,`${this.name} must provide "resolveType" as a function, but got: ${ei(e.resolveType)}.`)}get[Symbol.toStringTag](){return"GraphQLUnionType"}getTypes(){return"function"==typeof this._types&&(this._types=this._types()),this._types}toConfig(){return{name:this.name,description:this.description,types:this.getTypes(),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}function tL(e){let t=tv(e.types);return Array.isArray(t)||N(!1,`Must provide Array of types or a function which returns such an array for Union ${e.name}.`),t}class t${constructor(e){var t;this.name=eB(e.name),this.description=e.description,this.extensions=eD(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!=(t=e.extensionASTNodes)?t:[],this._values="function"==typeof e.values?e.values:tF(this.name,e.values),this._valueLookup=null,this._nameLookup=null}get[Symbol.toStringTag](){return"GraphQLEnumType"}getValues(){return"function"==typeof this._values&&(this._values=tF(this.name,this._values())),this._values}getValue(e){return null===this._nameLookup&&(this._nameLookup=eE(this.getValues(),e=>e.name)),this._nameLookup[e]}serialize(e){null===this._valueLookup&&(this._valueLookup=new Map(this.getValues().map(e=>[e.value,e])));let t=this._valueLookup.get(e);if(void 0===t)throw new w(`Enum "${this.name}" cannot represent value: ${ei(e)}`);return t.name}parseValue(e){if("string"!=typeof e){let t=ei(e);throw new w(`Enum "${this.name}" cannot represent non-string value: ${t}.`+tx(this,t))}let t=this.getValue(e);if(null==t)throw new w(`Value "${e}" does not exist in "${this.name}" enum.`+tx(this,e));return t.value}parseLiteral(e,t){if(e.kind!==p.ENUM){let t=eF(e);throw new w(`Enum "${this.name}" cannot represent non-enum value: ${t}.`+tx(this,t),{nodes:e})}let n=this.getValue(e.value);if(null==n){let t=eF(e);throw new w(`Value "${t}" does not exist in "${this.name}" enum.`+tx(this,t),{nodes:e})}return n.value}toConfig(){let e=eT(this.getValues(),e=>e.name,e=>({description:e.description,value:e.value,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode}));return{name:this.name,description:this.description,values:e,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}function tx(e,t){return em("the enum value",e_(t,e.getValues().map(e=>e.name)))}function tF(e,t){return tD(t)||N(!1,`${e} values must be an object with value names as keys.`),Object.entries(t).map(([t,n])=>(tD(n)||N(!1,`${e}.${t} must refer to an object with a "value" key representing an internal value but got: ${ei(n)}.`),{name:eY(t),description:n.description,value:void 0!==n.value?n.value:t,deprecationReason:n.deprecationReason,extensions:eD(n.extensions),astNode:n.astNode}))}class tC{constructor(e){var t,n;this.name=eB(e.name),this.description=e.description,this.extensions=eD(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!=(t=e.extensionASTNodes)?t:[],this.isOneOf=null!=(n=e.isOneOf)&&n,this._fields=tV.bind(void 0,e)}get[Symbol.toStringTag](){return"GraphQLInputObjectType"}getFields(){return"function"==typeof this._fields&&(this._fields=this._fields()),this._fields}toConfig(){let e=ev(this.getFields(),e=>({description:e.description,type:e.type,defaultValue:e.defaultValue,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode}));return{name:this.name,description:this.description,fields:e,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes,isOneOf:this.isOneOf}}toString(){return this.name}toJSON(){return this.toString()}}function tV(e){let t=tN(e.fields);return tD(t)||N(!1,`${e.name} fields must be an object with field names as keys or a function which returns such an object.`),ev(t,(t,n)=>("resolve"in t&&N(!1,`${e.name}.${n} field has a resolve property, but Input Types cannot define resolvers.`),{name:eB(n),description:t.description,type:t.type,defaultValue:t.defaultValue,deprecationReason:t.deprecationReason,extensions:eD(t.extensions),astNode:t.astNode}))}function tU(e){return e8(e.type)&&void 0===e.defaultValue}function tM(e,t){return e===t||!!(e8(e)&&e8(t)||e9(e)&&e9(t))&&tM(e.ofType,t.ofType)}function tj(e,t,n){return t===n||(e8(n)?!!e8(t)&&tj(e,t.ofType,n.ofType):e8(t)?tj(e,t.ofType,n):e9(n)?!!e9(t)&&tj(e,t.ofType,n.ofType):!e9(t)&&ts(n)&&(eH(t)||eX(t))&&e.isSubType(n,t))}function tP(e,t,n){return t===n||(ts(t)?ts(n)?e.getPossibleTypes(t).some(t=>e.isSubType(n,t)):e.isSubType(t,n):!!ts(n)&&e.isSubType(n,t))}let tG=0x7fffffff,tB=-0x80000000,tY=new tI({name:"Int",description:"The `Int` scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.",serialize(e){let t=tH(e);if("boolean"==typeof t)return+!!t;let n=t;if("string"==typeof t&&""!==t&&(n=Number(t)),"number"!=typeof n||!Number.isInteger(n))throw new w(`Int cannot represent non-integer value: ${ei(t)}`);if(n>tG||ntG||etG||te.name===t)}function tH(e){if(g(e)){if("function"==typeof e.valueOf){let t=e.valueOf();if(!g(t))return t}if("function"==typeof e.toJSON)return e.toJSON()}return e}function tW(e){return eo(e,t0)}function tZ(e){if(!tW(e))throw Error(`Expected ${ei(e)} to be a GraphQL directive.`);return e}class t0{constructor(e){var t,n;this.name=eB(e.name),this.description=e.description,this.locations=e.locations,this.isRepeatable=null!=(t=e.isRepeatable)&&t,this.extensions=eD(e.extensions),this.astNode=e.astNode,Array.isArray(e.locations)||N(!1,`@${e.name} locations must be an Array.`);const r=null!=(n=e.args)?n:{};g(r)&&!Array.isArray(r)||N(!1,`@${e.name} args must be an object with argument names as keys.`),this.args=tb(r)}get[Symbol.toStringTag](){return"GraphQLDirective"}toConfig(){return{name:this.name,description:this.description,locations:this.locations,args:tS(this.args),isRepeatable:this.isRepeatable,extensions:this.extensions,astNode:this.astNode}}toString(){return"@"+this.name}toJSON(){return this.toString()}}let t1=new t0({name:"include",description:"Directs the executor to include this field or fragment only when the `if` argument is true.",locations:[c.FIELD,c.FRAGMENT_SPREAD,c.INLINE_FRAGMENT],args:{if:{type:new tc(tJ),description:"Included when true."}}}),t2=new t0({name:"skip",description:"Directs the executor to skip this field or fragment when the `if` argument is true.",locations:[c.FIELD,c.FRAGMENT_SPREAD,c.INLINE_FRAGMENT],args:{if:{type:new tc(tJ),description:"Skipped when true."}}}),t3="No longer supported",t4=new t0({name:"deprecated",description:"Marks an element of a GraphQL schema as no longer supported.",locations:[c.FIELD_DEFINITION,c.ARGUMENT_DEFINITION,c.INPUT_FIELD_DEFINITION,c.ENUM_VALUE],args:{reason:{type:tq,description:"Explains why this element was deprecated, usually also including a suggestion for how to access supported similar data. Formatted using the Markdown syntax, as specified by [CommonMark](https://commonmark.org/).",defaultValue:t3}}}),t9=new t0({name:"specifiedBy",description:"Exposes a URL that specifies the behavior of this scalar.",locations:[c.SCALAR],args:{url:{type:new tc(tq),description:"The URL that specifies the behavior of this scalar."}}}),t5=new t0({name:"oneOf",description:"Indicates exactly one field must be supplied and this field must not be `null`.",locations:[c.INPUT_OBJECT],args:{}}),t8=Object.freeze([t1,t2,t4,t9,t5]);function t6(e){return t8.some(({name:t})=>t===e.name)}function t7(e){return"object"==typeof e&&"function"==typeof(null==e?void 0:e[Symbol.iterator])}function ne(e,t){if(e8(t)){let n=ne(e,t.ofType);return(null==n?void 0:n.kind)===p.NULL?null:n}if(null===e)return{kind:p.NULL};if(void 0===e)return null;if(e9(t)){let n=t.ofType;if(t7(e)){let t=[];for(let r of e){let e=ne(r,n);null!=e&&t.push(e)}return{kind:p.LIST,values:t}}return ne(e,n)}if(e3(t)){if(!g(e))return null;let n=[];for(let r of Object.values(t.getFields())){let t=ne(e[r.name],r.type);t&&n.push({kind:p.OBJECT_FIELD,name:{kind:p.NAME,value:r.name},value:t})}return{kind:p.OBJECT,fields:n}}if(tr(t)){let n=t.serialize(e);if(null==n)return null;if("boolean"==typeof n)return{kind:p.BOOLEAN,value:n};if("number"==typeof n&&Number.isFinite(n)){let e=String(n);return nt.test(e)?{kind:p.INT,value:e}:{kind:p.FLOAT,value:e}}if("string"==typeof n)return e1(t)?{kind:p.ENUM,value:n}:t===tK&&nt.test(n)?{kind:p.INT,value:n}:{kind:p.STRING,value:n};throw TypeError(`Cannot convert value to AST: ${ei(n)}.`)}_(!1,"Unexpected input type: "+ei(t))}let nt=/^-?(?:0|[1-9][0-9]*)$/,nn=new tg({name:"__Schema",description:"A GraphQL Schema defines the capabilities of a GraphQL server. It exposes all available types and directives on the server, as well as the entry points for query, mutation, and subscription operations.",fields:()=>({description:{type:tq,resolve:e=>e.description},types:{description:"A list of all types supported by this server.",type:new tc(new tu(new tc(no))),resolve:e=>Object.values(e.getTypeMap())},queryType:{description:"The type that query operations will be rooted at.",type:new tc(no),resolve:e=>e.getQueryType()},mutationType:{description:"If this server supports mutation, the type that mutation operations will be rooted at.",type:no,resolve:e=>e.getMutationType()},subscriptionType:{description:"If this server support subscription, the type that subscription operations will be rooted at.",type:no,resolve:e=>e.getSubscriptionType()},directives:{description:"A list of all directives supported by this server.",type:new tc(new tu(new tc(nr))),resolve:e=>e.getDirectives()}})}),nr=new tg({name:"__Directive",description:"A Directive provides a way to describe alternate runtime execution and type validation behavior in a GraphQL document.\n\nIn some cases, you need to provide options to alter GraphQL's execution behavior in ways field arguments will not suffice, such as conditionally including or skipping a field. Directives provide this by describing additional information to the executor.",fields:()=>({name:{type:new tc(tq),resolve:e=>e.name},description:{type:tq,resolve:e=>e.description},isRepeatable:{type:new tc(tJ),resolve:e=>e.isRepeatable},locations:{type:new tc(new tu(new tc(ni))),resolve:e=>e.locations},args:{type:new tc(new tu(new tc(ns))),args:{includeDeprecated:{type:tJ,defaultValue:!1}},resolve:(e,{includeDeprecated:t})=>t?e.args:e.args.filter(e=>null==e.deprecationReason)}})}),ni=new t$({name:"__DirectiveLocation",description:"A Directive can be adjacent to many parts of the GraphQL language, a __DirectiveLocation describes one such possible adjacencies.",values:{QUERY:{value:c.QUERY,description:"Location adjacent to a query operation."},MUTATION:{value:c.MUTATION,description:"Location adjacent to a mutation operation."},SUBSCRIPTION:{value:c.SUBSCRIPTION,description:"Location adjacent to a subscription operation."},FIELD:{value:c.FIELD,description:"Location adjacent to a field."},FRAGMENT_DEFINITION:{value:c.FRAGMENT_DEFINITION,description:"Location adjacent to a fragment definition."},FRAGMENT_SPREAD:{value:c.FRAGMENT_SPREAD,description:"Location adjacent to a fragment spread."},INLINE_FRAGMENT:{value:c.INLINE_FRAGMENT,description:"Location adjacent to an inline fragment."},VARIABLE_DEFINITION:{value:c.VARIABLE_DEFINITION,description:"Location adjacent to a variable definition."},SCHEMA:{value:c.SCHEMA,description:"Location adjacent to a schema definition."},SCALAR:{value:c.SCALAR,description:"Location adjacent to a scalar definition."},OBJECT:{value:c.OBJECT,description:"Location adjacent to an object type definition."},FIELD_DEFINITION:{value:c.FIELD_DEFINITION,description:"Location adjacent to a field definition."},ARGUMENT_DEFINITION:{value:c.ARGUMENT_DEFINITION,description:"Location adjacent to an argument definition."},INTERFACE:{value:c.INTERFACE,description:"Location adjacent to an interface definition."},UNION:{value:c.UNION,description:"Location adjacent to a union definition."},ENUM:{value:c.ENUM,description:"Location adjacent to an enum definition."},ENUM_VALUE:{value:c.ENUM_VALUE,description:"Location adjacent to an enum value definition."},INPUT_OBJECT:{value:c.INPUT_OBJECT,description:"Location adjacent to an input object type definition."},INPUT_FIELD_DEFINITION:{value:c.INPUT_FIELD_DEFINITION,description:"Location adjacent to an input object field definition."}}}),no=new tg({name:"__Type",description:"The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum.\n\nDepending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name, description and optional `specifiedByURL`, while Enum types provide their values. Object and Interface types provide the fields they describe. Abstract types, Union and Interface, provide the Object types possible at runtime. List and NonNull types compose other types.",fields:()=>({kind:{type:new tc(nu),resolve:e=>eJ(e)?f.SCALAR:eX(e)?f.OBJECT:eH(e)?f.INTERFACE:eZ(e)?f.UNION:e1(e)?f.ENUM:e3(e)?f.INPUT_OBJECT:e9(e)?f.LIST:e8(e)?f.NON_NULL:void _(!1,`Unexpected type: "${ei(e)}".`)},name:{type:tq,resolve:e=>"name"in e?e.name:void 0},description:{type:tq,resolve:e=>"description"in e?e.description:void 0},specifiedByURL:{type:tq,resolve:e=>"specifiedByURL"in e?e.specifiedByURL:void 0},fields:{type:new tu(new tc(na)),args:{includeDeprecated:{type:tJ,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if(eX(e)||eH(e)){let n=Object.values(e.getFields());return t?n:n.filter(e=>null==e.deprecationReason)}}},interfaces:{type:new tu(new tc(no)),resolve(e){if(eX(e)||eH(e))return e.getInterfaces()}},possibleTypes:{type:new tu(new tc(no)),resolve(e,t,n,{schema:r}){if(ts(e))return r.getPossibleTypes(e)}},enumValues:{type:new tu(new tc(nl)),args:{includeDeprecated:{type:tJ,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if(e1(e)){let n=e.getValues();return t?n:n.filter(e=>null==e.deprecationReason)}}},inputFields:{type:new tu(new tc(ns)),args:{includeDeprecated:{type:tJ,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if(e3(e)){let n=Object.values(e.getFields());return t?n:n.filter(e=>null==e.deprecationReason)}}},ofType:{type:no,resolve:e=>"ofType"in e?e.ofType:void 0},isOneOf:{type:tJ,resolve:e=>{if(e3(e))return e.isOneOf}}})}),na=new tg({name:"__Field",description:"Object and Interface types are described by a list of Fields, each of which has a name, potentially a list of arguments, and a return type.",fields:()=>({name:{type:new tc(tq),resolve:e=>e.name},description:{type:tq,resolve:e=>e.description},args:{type:new tc(new tu(new tc(ns))),args:{includeDeprecated:{type:tJ,defaultValue:!1}},resolve:(e,{includeDeprecated:t})=>t?e.args:e.args.filter(e=>null==e.deprecationReason)},type:{type:new tc(no),resolve:e=>e.type},isDeprecated:{type:new tc(tJ),resolve:e=>null!=e.deprecationReason},deprecationReason:{type:tq,resolve:e=>e.deprecationReason}})}),ns=new tg({name:"__InputValue",description:"Arguments provided to Fields or Directives and the input fields of an InputObject are represented as Input Values which describe their type and optionally a default value.",fields:()=>({name:{type:new tc(tq),resolve:e=>e.name},description:{type:tq,resolve:e=>e.description},type:{type:new tc(no),resolve:e=>e.type},defaultValue:{type:tq,description:"A GraphQL-formatted string representing the default value for this input value.",resolve(e){let{type:t,defaultValue:n}=e,r=ne(n,t);return r?eF(r):null}},isDeprecated:{type:new tc(tJ),resolve:e=>null!=e.deprecationReason},deprecationReason:{type:tq,resolve:e=>e.deprecationReason}})}),nl=new tg({name:"__EnumValue",description:"One possible value for a given Enum. Enum values are unique values, not a placeholder for a string or numeric value. However an Enum value is returned in a JSON response as a string.",fields:()=>({name:{type:new tc(tq),resolve:e=>e.name},description:{type:tq,resolve:e=>e.description},isDeprecated:{type:new tc(tJ),resolve:e=>null!=e.deprecationReason},deprecationReason:{type:tq,resolve:e=>e.deprecationReason}})});(o=f||(f={})).SCALAR="SCALAR",o.OBJECT="OBJECT",o.INTERFACE="INTERFACE",o.UNION="UNION",o.ENUM="ENUM",o.INPUT_OBJECT="INPUT_OBJECT",o.LIST="LIST",o.NON_NULL="NON_NULL";let nu=new t$({name:"__TypeKind",description:"An enum describing what kind of type a given `__Type` is.",values:{SCALAR:{value:f.SCALAR,description:"Indicates this type is a scalar."},OBJECT:{value:f.OBJECT,description:"Indicates this type is an object. `fields` and `interfaces` are valid fields."},INTERFACE:{value:f.INTERFACE,description:"Indicates this type is an interface. `fields`, `interfaces`, and `possibleTypes` are valid fields."},UNION:{value:f.UNION,description:"Indicates this type is a union. `possibleTypes` is a valid field."},ENUM:{value:f.ENUM,description:"Indicates this type is an enum. `enumValues` is a valid field."},INPUT_OBJECT:{value:f.INPUT_OBJECT,description:"Indicates this type is an input object. `inputFields` is a valid field."},LIST:{value:f.LIST,description:"Indicates this type is a list. `ofType` is a valid field."},NON_NULL:{value:f.NON_NULL,description:"Indicates this type is a non-null. `ofType` is a valid field."}}}),nc={name:"__schema",type:new tc(nn),description:"Access the current type schema of this server.",args:[],resolve:(e,t,n,{schema:r})=>r,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0},np={name:"__type",type:no,description:"Request the type information of a single type.",args:[{name:"name",description:void 0,type:new tc(tq),defaultValue:void 0,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0}],resolve:(e,{name:t},n,{schema:r})=>r.getType(t),deprecationReason:void 0,extensions:Object.create(null),astNode:void 0},nd={name:"__typename",type:new tc(tq),description:"The name of the current Object type at runtime.",args:[],resolve:(e,t,n,{parentType:r})=>r.name,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0},nf=Object.freeze([nn,nr,ni,no,na,ns,nl,nu]);function nh(e){return nf.some(({name:t})=>e.name===t)}function nm(e){return eo(e,nE)}function ny(e){if(!nm(e))throw Error(`Expected ${ei(e)} to be a GraphQL schema.`);return e}class nE{constructor(e){var t,n;this.__validationErrors=!0===e.assumeValid?[]:void 0,g(e)||N(!1,"Must provide configuration object."),!e.types||Array.isArray(e.types)||N(!1,`"types" must be Array if provided but got: ${ei(e.types)}.`),!e.directives||Array.isArray(e.directives)||N(!1,`"directives" must be Array if provided but got: ${ei(e.directives)}.`),this.description=e.description,this.extensions=eD(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!=(t=e.extensionASTNodes)?t:[],this._queryType=e.query,this._mutationType=e.mutation,this._subscriptionType=e.subscription,this._directives=null!=(n=e.directives)?n:t8;const r=new Set(e.types);if(null!=e.types)for(const t of e.types)r.delete(t),nT(t,r);for(const e of(null!=this._queryType&&nT(this._queryType,r),null!=this._mutationType&&nT(this._mutationType,r),null!=this._subscriptionType&&nT(this._subscriptionType,r),this._directives))if(tW(e))for(const t of e.args)nT(t.type,r);for(const e of(nT(nn,r),this._typeMap=Object.create(null),this._subTypeMap=Object.create(null),this._implementationsMap=Object.create(null),r)){if(null==e)continue;const t=e.name;if(t||N(!1,"One of the provided types for building the Schema is missing a name."),void 0!==this._typeMap[t])throw Error(`Schema must contain uniquely named types but contains multiple types named "${t}".`);if(this._typeMap[t]=e,eH(e)){for(const t of e.getInterfaces())if(eH(t)){let n=this._implementationsMap[t.name];void 0===n&&(n=this._implementationsMap[t.name]={objects:[],interfaces:[]}),n.interfaces.push(e)}}else if(eX(e)){for(const t of e.getInterfaces())if(eH(t)){let n=this._implementationsMap[t.name];void 0===n&&(n=this._implementationsMap[t.name]={objects:[],interfaces:[]}),n.objects.push(e)}}}}get[Symbol.toStringTag](){return"GraphQLSchema"}getQueryType(){return this._queryType}getMutationType(){return this._mutationType}getSubscriptionType(){return this._subscriptionType}getRootType(e){switch(e){case u.QUERY:return this.getQueryType();case u.MUTATION:return this.getMutationType();case u.SUBSCRIPTION:return this.getSubscriptionType()}}getTypeMap(){return this._typeMap}getType(e){return this.getTypeMap()[e]}getPossibleTypes(e){return eZ(e)?e.getTypes():this.getImplementations(e).objects}getImplementations(e){let t=this._implementationsMap[e.name];return null!=t?t:{objects:[],interfaces:[]}}isSubType(e,t){let n=this._subTypeMap[e.name];if(void 0===n){if(n=Object.create(null),eZ(e))for(let t of e.getTypes())n[t.name]=!0;else{let t=this.getImplementations(e);for(let e of t.objects)n[e.name]=!0;for(let e of t.interfaces)n[e.name]=!0}this._subTypeMap[e.name]=n}return void 0!==n[t.name]}getDirectives(){return this._directives}getDirective(e){return this.getDirectives().find(t=>t.name===e)}toConfig(){return{description:this.description,query:this.getQueryType(),mutation:this.getMutationType(),subscription:this.getSubscriptionType(),types:Object.values(this.getTypeMap()),directives:this.getDirectives(),extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes,assumeValid:void 0!==this.__validationErrors}}}function nT(e,t){let n=tT(e);if(!t.has(n)){if(t.add(n),eZ(n))for(let e of n.getTypes())nT(e,t);else if(eX(n)||eH(n)){for(let e of n.getInterfaces())nT(e,t);for(let e of Object.values(n.getFields()))for(let n of(nT(e.type,t),e.args))nT(n.type,t)}else if(e3(n))for(let e of Object.values(n.getFields()))nT(e.type,t)}return t}function nv(e){var t,n,r,i;let o,a,s,l;if(ny(e),e.__validationErrors)return e.__validationErrors;let c=new nI(e);(a=(o=(t=c).schema).getQueryType())?eX(a)||t.reportError(`Query root type must be Object type, it cannot be ${ei(a)}.`,null!=(n=ng(o,u.QUERY))?n:a.astNode):t.reportError("Query root type must be provided.",o.astNode),(s=o.getMutationType())&&!eX(s)&&t.reportError(`Mutation root type must be Object type if provided, it cannot be ${ei(s)}.`,null!=(r=ng(o,u.MUTATION))?r:s.astNode),(l=o.getSubscriptionType())&&!eX(l)&&t.reportError(`Subscription root type must be Object type if provided, it cannot be ${ei(l)}.`,null!=(i=ng(o,u.SUBSCRIPTION))?i:l.astNode),function(e){for(let n of e.schema.getDirectives()){if(!tW(n)){e.reportError(`Expected directive but got: ${ei(n)}.`,null==n?void 0:n.astNode);continue}for(let r of(n_(e,n),0===n.locations.length&&e.reportError(`Directive @${n.name} must include 1 or more locations.`,n.astNode),n.args))if(n_(e,r),e7(r.type)||e.reportError(`The type of @${n.name}(${r.name}:) must be Input Type but got: ${ei(r.type)}.`,r.astNode),tw(r)&&null!=r.deprecationReason){var t;e.reportError(`Required argument @${n.name}(${r.name}:) cannot be deprecated.`,[nD(r.astNode),null==(t=r.astNode)?void 0:t.type])}}}(c),function(e){var t;let n,r,i,o=(t=e,n=Object.create(null),r=[],i=Object.create(null),function e(o){if(!n[o.name]){for(let a of(n[o.name]=!0,i[o.name]=r.length,Object.values(o.getFields())))if(e8(a.type)&&e3(a.type.ofType)){let n=a.type.ofType,o=i[n.name];if(r.push(a),void 0===o)e(n);else{let e=r.slice(o),i=e.map(e=>e.name).join(".");t.reportError(`Cannot reference Input Object "${n.name}" within itself through a series of non-null fields: "${i}".`,e.map(e=>e.astNode))}r.pop()}i[o.name]=void 0}});for(let t of Object.values(e.schema.getTypeMap())){if(!ty(t)){e.reportError(`Expected GraphQL named type but got: ${ei(t)}.`,t.astNode);continue}nh(t)||n_(e,t),eX(t)||eH(t)?(function(e,t){let n=Object.values(t.getFields());for(let a of(0===n.length&&e.reportError(`Type ${t.name} must define one or more fields.`,[t.astNode,...t.extensionASTNodes]),n)){var r,i,o;for(let n of(n_(e,a),tt(a.type)||e.reportError(`The type of ${t.name}.${a.name} must be Output Type but got: ${ei(a.type)}.`,null==(r=a.astNode)?void 0:r.type),a.args)){let r=n.name;n_(e,n),e7(n.type)||e.reportError(`The type of ${t.name}.${a.name}(${r}:) must be Input Type but got: ${ei(n.type)}.`,null==(i=n.astNode)?void 0:i.type),tw(n)&&null!=n.deprecationReason&&e.reportError(`Required argument ${t.name}.${a.name}(${r}:) cannot be deprecated.`,[nD(n.astNode),null==(o=n.astNode)?void 0:o.type])}}}(e,t),function(e,t){let n=Object.create(null);for(let r of t.getInterfaces()){if(!eH(r)){e.reportError(`Type ${ei(t)} must only implement Interface types, it cannot implement ${ei(r)}.`,nO(t,r));continue}if(t===r){e.reportError(`Type ${t.name} cannot implement itself because it would create a circular reference.`,nO(t,r));continue}if(n[r.name]){e.reportError(`Type ${t.name} can only implement ${r.name} once.`,nO(t,r));continue}n[r.name]=!0,function(e,t,n){let r=t.getInterfaces();for(let i of n.getInterfaces())r.includes(i)||e.reportError(i===t?`Type ${t.name} cannot implement ${n.name} because it would create a circular reference.`:`Type ${t.name} must implement ${i.name} because it is implemented by ${n.name}.`,[...nO(n,i),...nO(t,n)])}(e,t,r),function(e,t,n){let r=t.getFields();for(let l of Object.values(n.getFields())){var i,o,a,s;let u=l.name,c=r[u];if(!c){e.reportError(`Interface field ${n.name}.${u} expected but ${t.name} does not provide it.`,[l.astNode,t.astNode,...t.extensionASTNodes]);continue}for(let r of(tj(e.schema,c.type,l.type)||e.reportError(`Interface field ${n.name}.${u} expects type ${ei(l.type)} but ${t.name}.${u} is type ${ei(c.type)}.`,[null==(i=l.astNode)?void 0:i.type,null==(o=c.astNode)?void 0:o.type]),l.args)){let i=r.name,o=c.args.find(e=>e.name===i);if(!o){e.reportError(`Interface field argument ${n.name}.${u}(${i}:) expected but ${t.name}.${u} does not provide it.`,[r.astNode,c.astNode]);continue}tM(r.type,o.type)||e.reportError(`Interface field argument ${n.name}.${u}(${i}:) expects type ${ei(r.type)} but ${t.name}.${u}(${i}:) is type ${ei(o.type)}.`,[null==(a=r.astNode)?void 0:a.type,null==(s=o.astNode)?void 0:s.type])}for(let r of c.args){let i=r.name;!l.args.find(e=>e.name===i)&&tw(r)&&e.reportError(`Object field ${t.name}.${u} includes required argument ${i} that is missing from the Interface field ${n.name}.${u}.`,[r.astNode,l.astNode])}}}(e,t,r)}}(e,t)):eZ(t)?function(e,t){let n=t.getTypes();0===n.length&&e.reportError(`Union type ${t.name} must define one or more member types.`,[t.astNode,...t.extensionASTNodes]);let r=Object.create(null);for(let i of n){if(r[i.name]){e.reportError(`Union type ${t.name} can only include type ${i.name} once.`,nb(t,i.name));continue}r[i.name]=!0,eX(i)||e.reportError(`Union type ${t.name} can only include Object types, it cannot include ${ei(i)}.`,nb(t,String(i)))}}(e,t):e1(t)?function(e,t){let n=t.getValues();for(let r of(0===n.length&&e.reportError(`Enum type ${t.name} must define one or more values.`,[t.astNode,...t.extensionASTNodes]),n))n_(e,r)}(e,t):e3(t)&&(function(e,t){let n=Object.values(t.getFields());for(let o of(0===n.length&&e.reportError(`Input Object type ${t.name} must define one or more fields.`,[t.astNode,...t.extensionASTNodes]),n)){var r,i;n_(e,o),e7(o.type)||e.reportError(`The type of ${t.name}.${o.name} must be Input Type but got: ${ei(o.type)}.`,null==(r=o.astNode)?void 0:r.type),tU(o)&&null!=o.deprecationReason&&e.reportError(`Required input field ${t.name}.${o.name} cannot be deprecated.`,[nD(o.astNode),null==(i=o.astNode)?void 0:i.type]),t.isOneOf&&function(e,t,n){if(e8(t.type)){var r;n.reportError(`OneOf input field ${e.name}.${t.name} must be nullable.`,null==(r=t.astNode)?void 0:r.type)}void 0!==t.defaultValue&&n.reportError(`OneOf input field ${e.name}.${t.name} cannot have a default value.`,t.astNode)}(t,o,e)}}(e,t),o(t))}}(c);let p=c.getErrors();return e.__validationErrors=p,p}function nN(e){let t=nv(e);if(0!==t.length)throw Error(t.map(e=>e.message).join("\n\n"))}class nI{constructor(e){this._errors=[],this.schema=e}reportError(e,t){let n=Array.isArray(t)?t.filter(Boolean):t;this._errors.push(new w(e,{nodes:n}))}getErrors(){return this._errors}}function ng(e,t){var n;return null==(n=[e.astNode,...e.extensionASTNodes].flatMap(e=>{var t;return null!=(t=null==e?void 0:e.operationTypes)?t:[]}).find(e=>e.operation===t))?void 0:n.type}function n_(e,t){t.name.startsWith("__")&&e.reportError(`Name "${t.name}" must not begin with "__", which is reserved by GraphQL introspection.`,t.astNode)}function nO(e,t){let{astNode:n,extensionASTNodes:r}=e;return(null!=n?[n,...r]:r).flatMap(e=>{var t;return null!=(t=e.interfaces)?t:[]}).filter(e=>e.name.value===t.name)}function nb(e,t){let{astNode:n,extensionASTNodes:r}=e;return(null!=n?[n,...r]:r).flatMap(e=>{var t;return null!=(t=e.types)?t:[]}).filter(e=>e.name.value===t)}function nD(e){var t;return null==e||null==(t=e.directives)?void 0:t.find(e=>e.name.value===t4.name)}function nA(e,t){switch(t.kind){case p.LIST_TYPE:{let n=nA(e,t.type);return n&&new tu(n)}case p.NON_NULL_TYPE:{let n=nA(e,t.type);return n&&new tc(n)}case p.NAMED_TYPE:return e.getType(t.name.value)}}class nS{constructor(e,t,n){this._schema=e,this._typeStack=[],this._parentTypeStack=[],this._inputTypeStack=[],this._fieldDefStack=[],this._defaultValueStack=[],this._directive=null,this._argument=null,this._enumValue=null,this._getFieldDef=null!=n?n:nw,t&&(e7(t)&&this._inputTypeStack.push(t),to(t)&&this._parentTypeStack.push(t),tt(t)&&this._typeStack.push(t))}get[Symbol.toStringTag](){return"TypeInfo"}getType(){if(this._typeStack.length>0)return this._typeStack[this._typeStack.length-1]}getParentType(){if(this._parentTypeStack.length>0)return this._parentTypeStack[this._parentTypeStack.length-1]}getInputType(){if(this._inputTypeStack.length>0)return this._inputTypeStack[this._inputTypeStack.length-1]}getParentInputType(){if(this._inputTypeStack.length>1)return this._inputTypeStack[this._inputTypeStack.length-2]}getFieldDef(){if(this._fieldDefStack.length>0)return this._fieldDefStack[this._fieldDefStack.length-1]}getDefaultValue(){if(this._defaultValueStack.length>0)return this._defaultValueStack[this._defaultValueStack.length-1]}getDirective(){return this._directive}getArgument(){return this._argument}getEnumValue(){return this._enumValue}enter(e){let t=this._schema;switch(e.kind){case p.SELECTION_SET:{let e=tT(this.getType());this._parentTypeStack.push(to(e)?e:void 0);break}case p.FIELD:{let n,r,i=this.getParentType();i&&(n=this._getFieldDef(t,i,e))&&(r=n.type),this._fieldDefStack.push(n),this._typeStack.push(tt(r)?r:void 0);break}case p.DIRECTIVE:this._directive=t.getDirective(e.name.value);break;case p.OPERATION_DEFINITION:{let n=t.getRootType(e.operation);this._typeStack.push(eX(n)?n:void 0);break}case p.INLINE_FRAGMENT:case p.FRAGMENT_DEFINITION:{let n=e.typeCondition,r=n?nA(t,n):tT(this.getType());this._typeStack.push(tt(r)?r:void 0);break}case p.VARIABLE_DEFINITION:{let n=nA(t,e.type);this._inputTypeStack.push(e7(n)?n:void 0);break}case p.ARGUMENT:{var n;let t,r,i=null!=(n=this.getDirective())?n:this.getFieldDef();i&&(t=i.args.find(t=>t.name===e.name.value))&&(r=t.type),this._argument=t,this._defaultValueStack.push(t?t.defaultValue:void 0),this._inputTypeStack.push(e7(r)?r:void 0);break}case p.LIST:{let e=tm(this.getInputType()),t=e9(e)?e.ofType:e;this._defaultValueStack.push(void 0),this._inputTypeStack.push(e7(t)?t:void 0);break}case p.OBJECT_FIELD:{let t,n,r=tT(this.getInputType());e3(r)&&(n=r.getFields()[e.name.value])&&(t=n.type),this._defaultValueStack.push(n?n.defaultValue:void 0),this._inputTypeStack.push(e7(t)?t:void 0);break}case p.ENUM:{let t,n=tT(this.getInputType());e1(n)&&(t=n.getValue(e.value)),this._enumValue=t}}}leave(e){switch(e.kind){case p.SELECTION_SET:this._parentTypeStack.pop();break;case p.FIELD:this._fieldDefStack.pop(),this._typeStack.pop();break;case p.DIRECTIVE:this._directive=null;break;case p.OPERATION_DEFINITION:case p.INLINE_FRAGMENT:case p.FRAGMENT_DEFINITION:this._typeStack.pop();break;case p.VARIABLE_DEFINITION:this._inputTypeStack.pop();break;case p.ARGUMENT:this._argument=null,this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case p.LIST:case p.OBJECT_FIELD:this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case p.ENUM:this._enumValue=null}}}function nw(e,t,n){let r=n.name.value;return r===nc.name&&e.getQueryType()===t?nc:r===np.name&&e.getQueryType()===t?np:r===nd.name&&to(t)?nd:eX(t)||eH(t)?t.getFields()[r]:void 0}function nR(e,t){return{enter(...n){let r=n[0];e.enter(r);let i=e$(t,r.kind).enter;if(i){let o=i.apply(t,n);return void 0!==o&&(e.leave(r),U(o)&&e.enter(o)),o}},leave(...n){let r,i=n[0],o=e$(t,i.kind).leave;return o&&(r=o.apply(t,n)),e.leave(i),r}}}function nk(e){return nL(e)||nC(e)||nU(e)}function nL(e){return e.kind===p.OPERATION_DEFINITION||e.kind===p.FRAGMENT_DEFINITION}function n$(e){return e.kind===p.FIELD||e.kind===p.FRAGMENT_SPREAD||e.kind===p.INLINE_FRAGMENT}function nx(e){return e.kind===p.VARIABLE||e.kind===p.INT||e.kind===p.FLOAT||e.kind===p.STRING||e.kind===p.BOOLEAN||e.kind===p.NULL||e.kind===p.ENUM||e.kind===p.LIST||e.kind===p.OBJECT}function nF(e){return e.kind===p.NAMED_TYPE||e.kind===p.LIST_TYPE||e.kind===p.NON_NULL_TYPE}function nC(e){return e.kind===p.SCHEMA_DEFINITION||nV(e)||e.kind===p.DIRECTIVE_DEFINITION}function nV(e){return e.kind===p.SCALAR_TYPE_DEFINITION||e.kind===p.OBJECT_TYPE_DEFINITION||e.kind===p.INTERFACE_TYPE_DEFINITION||e.kind===p.UNION_TYPE_DEFINITION||e.kind===p.ENUM_TYPE_DEFINITION||e.kind===p.INPUT_OBJECT_TYPE_DEFINITION}function nU(e){return e.kind===p.SCHEMA_EXTENSION||nM(e)}function nM(e){return e.kind===p.SCALAR_TYPE_EXTENSION||e.kind===p.OBJECT_TYPE_EXTENSION||e.kind===p.INTERFACE_TYPE_EXTENSION||e.kind===p.UNION_TYPE_EXTENSION||e.kind===p.ENUM_TYPE_EXTENSION||e.kind===p.INPUT_OBJECT_TYPE_EXTENSION}function nj(e){return e.kind===p.TYPE_COORDINATE||e.kind===p.MEMBER_COORDINATE||e.kind===p.ARGUMENT_COORDINATE||e.kind===p.DIRECTIVE_COORDINATE||e.kind===p.DIRECTIVE_ARGUMENT_COORDINATE}function nP(e){return{Document(t){for(let n of t.definitions)if(!nL(n)){let t=n.kind===p.SCHEMA_DEFINITION||n.kind===p.SCHEMA_EXTENSION?"schema":'"'+n.name.value+'"';e.reportError(new w(`The ${t} definition is not executable.`,{nodes:n}))}return!1}}}function nG(e){return{Field(t){let n=e.getParentType();if(n&&!e.getFieldDef()){var r,i;let o=e.getSchema(),a=t.name.value,s=em("to use an inline fragment on",function(e,t,n){if(!ts(t))return[];let r=new Set,i=Object.create(null);for(let a of e.getPossibleTypes(t))if(a.getFields()[n])for(let e of(r.add(a),i[a.name]=1,a.getInterfaces())){var o;e.getFields()[n]&&(r.add(e),i[e.name]=(null!=(o=i[e.name])?o:0)+1)}return[...r].sort((t,n)=>{let r=i[n.name]-i[t.name];return 0!==r?r:eH(t)&&e.isSubType(t,n)?-1:eH(n)&&e.isSubType(n,t)?1:eN(t.name,n.name)}).map(e=>e.name)}(o,n,a));""===s&&(s=em((r=n,i=a,eX(r)||eH(r)?e_(i,Object.keys(r.getFields())):[]))),e.reportError(new w(`Cannot query field "${a}" on type "${n.name}".`+s,{nodes:t}))}}}}function nB(e){return{InlineFragment(t){let n=t.typeCondition;if(n){let t=nA(e.getSchema(),n);if(t&&!to(t)){let t=eF(n);e.reportError(new w(`Fragment cannot condition on non composite type "${t}".`,{nodes:n}))}}},FragmentDefinition(t){let n=nA(e.getSchema(),t.typeCondition);if(n&&!to(n)){let n=eF(t.typeCondition);e.reportError(new w(`Fragment "${t.name.value}" cannot condition on non composite type "${n}".`,{nodes:t.typeCondition}))}}}}function nY(e){return{...nQ(e),Argument(t){let n=e.getArgument(),r=e.getFieldDef(),i=e.getParentType();if(!n&&r&&i){let n=t.name.value,o=e_(n,r.args.map(e=>e.name));e.reportError(new w(`Unknown argument "${n}" on field "${i.name}.${r.name}".`+em(o),{nodes:t}))}}}}function nQ(e){let t=Object.create(null),n=e.getSchema();for(let e of n?n.getDirectives():t8)t[e.name]=e.args.map(e=>e.name);for(let n of e.getDocument().definitions)if(n.kind===p.DIRECTIVE_DEFINITION){var r;let e=null!=(r=n.arguments)?r:[];t[n.name.value]=e.map(e=>e.name.value)}return{Directive(n){let r=n.name.value,i=t[r];if(n.arguments&&i)for(let t of n.arguments){let n=t.name.value;if(!i.includes(n)){let o=e_(n,i);e.reportError(new w(`Unknown argument "${n}" on directive "@${r}".`+em(o),{nodes:t}))}}return!1}}}function nq(e){let t=Object.create(null),n=e.getSchema();for(let e of n?n.getDirectives():t8)t[e.name]=e.locations;for(let n of e.getDocument().definitions)n.kind===p.DIRECTIVE_DEFINITION&&(t[n.name.value]=n.locations.map(e=>e.value));return{Directive(n,r,i,o,a){let s=n.name.value,l=t[s];if(!l)return void e.reportError(new w(`Unknown directive "@${s}".`,{nodes:n}));let d=function(e){let t=e[e.length-1];switch("kind"in t||_(!1),t.kind){case p.OPERATION_DEFINITION:var n=t.operation;switch(n){case u.QUERY:return c.QUERY;case u.MUTATION:return c.MUTATION;case u.SUBSCRIPTION:return c.SUBSCRIPTION}return;case p.FIELD:return c.FIELD;case p.FRAGMENT_SPREAD:return c.FRAGMENT_SPREAD;case p.INLINE_FRAGMENT:return c.INLINE_FRAGMENT;case p.FRAGMENT_DEFINITION:return c.FRAGMENT_DEFINITION;case p.VARIABLE_DEFINITION:return c.VARIABLE_DEFINITION;case p.SCHEMA_DEFINITION:case p.SCHEMA_EXTENSION:return c.SCHEMA;case p.SCALAR_TYPE_DEFINITION:case p.SCALAR_TYPE_EXTENSION:return c.SCALAR;case p.OBJECT_TYPE_DEFINITION:case p.OBJECT_TYPE_EXTENSION:return c.OBJECT;case p.FIELD_DEFINITION:return c.FIELD_DEFINITION;case p.INTERFACE_TYPE_DEFINITION:case p.INTERFACE_TYPE_EXTENSION:return c.INTERFACE;case p.UNION_TYPE_DEFINITION:case p.UNION_TYPE_EXTENSION:return c.UNION;case p.ENUM_TYPE_DEFINITION:case p.ENUM_TYPE_EXTENSION:return c.ENUM;case p.ENUM_VALUE_DEFINITION:return c.ENUM_VALUE;case p.INPUT_OBJECT_TYPE_DEFINITION:case p.INPUT_OBJECT_TYPE_EXTENSION:return c.INPUT_OBJECT;case p.INPUT_VALUE_DEFINITION:{let t=e[e.length-3];return"kind"in t||_(!1),t.kind===p.INPUT_OBJECT_TYPE_DEFINITION?c.INPUT_FIELD_DEFINITION:c.ARGUMENT_DEFINITION}default:_(!1,"Unexpected kind: "+ei(t.kind))}}(a);d&&!l.includes(d)&&e.reportError(new w(`Directive "@${s}" may not be used on ${d}.`,{nodes:n}))}}}function nJ(e){return{FragmentSpread(t){let n=t.name.value;e.getFragment(n)||e.reportError(new w(`Unknown fragment "${n}".`,{nodes:t.name}))}}}function nK(e){let t=e.getSchema(),n=t?t.getTypeMap():Object.create(null),r=Object.create(null);for(let t of e.getDocument().definitions)nV(t)&&(r[t.name.value]=!0);let i=[...Object.keys(n),...Object.keys(r)];return{NamedType(t,o,a,s,l){let u=t.name.value;if(!n[u]&&!r[u]){var c,p;let n=null!=(c=l[2])?c:a,r=null!=n&&"kind"in(p=n)&&(nC(p)||nU(p));if(r&&nX.includes(u))return;let o=e_(u,r?nX.concat(i):i);e.reportError(new w(`Unknown type "${u}".`+em(o),{nodes:t}))}}}}let nX=[...tX,...nf].map(e=>e.name);function nz(e){let t=0;return{Document(e){t=e.definitions.filter(e=>e.kind===p.OPERATION_DEFINITION).length},OperationDefinition(n){!n.name&&t>1&&e.reportError(new w("This anonymous operation must be the only defined operation.",{nodes:n}))}}}function nH(e){var t,n,r;let i=e.getSchema(),o=null!=(t=null!=(n=null!=(r=null==i?void 0:i.astNode)?r:null==i?void 0:i.getQueryType())?n:null==i?void 0:i.getMutationType())?t:null==i?void 0:i.getSubscriptionType(),a=0;return{SchemaDefinition(t){o?e.reportError(new w("Cannot define a new schema within a schema extension.",{nodes:t})):(a>0&&e.reportError(new w("Must provide only one schema definition.",{nodes:t})),++a)}}}function nW(e){return{Field(t){if(("__schema"===t.name.value||"__type"===t.name.value)&&function t(n,r=Object.create(null),i=0){if(n.kind===p.FRAGMENT_SPREAD){let o=n.name.value;if(!0===r[o])return!1;let a=e.getFragment(o);if(!a)return!1;try{return r[o]=!0,t(a,r,i)}finally{r[o]=void 0}}if(n.kind===p.FIELD&&("fields"===n.name.value||"interfaces"===n.name.value||"possibleTypes"===n.name.value||"inputFields"===n.name.value)&&++i>=3)return!0;if("selectionSet"in n&&n.selectionSet){for(let e of n.selectionSet.selections)if(t(e,r,i))return!0}return!1}(t))return e.reportError(new w("Maximum introspection depth exceeded",{nodes:[t]})),!1}}}function nZ(e){let t=Object.create(null),n=[],r=Object.create(null);return{OperationDefinition:()=>!1,FragmentDefinition:i=>((function i(o){if(t[o.name.value])return;let a=o.name.value;t[a]=!0;let s=e.getFragmentSpreads(o.selectionSet);if(0!==s.length){for(let t of(r[a]=n.length,s)){let o=t.name.value,a=r[o];if(n.push(t),void 0===a){let t=e.getFragment(o);t&&i(t)}else{let t=n.slice(a),r=t.slice(0,-1).map(e=>'"'+e.name.value+'"').join(", ");e.reportError(new w(`Cannot spread fragment "${o}" within itself`+(""!==r?` via ${r}.`:"."),{nodes:t}))}n.pop()}r[a]=void 0}})(i),!1)}}function n0(e){let t=Object.create(null);return{OperationDefinition:{enter(){t=Object.create(null)},leave(n){for(let{node:r}of e.getRecursiveVariableUsages(n)){let i=r.name.value;!0!==t[i]&&e.reportError(new w(n.name?`Variable "$${i}" is not defined by operation "${n.name.value}".`:`Variable "$${i}" is not defined.`,{nodes:[r,n]}))}}},VariableDefinition(e){t[e.variable.name.value]=!0}}}function n1(e){let t=[],n=[];return{OperationDefinition:e=>(t.push(e),!1),FragmentDefinition:e=>(n.push(e),!1),Document:{leave(){let r=Object.create(null);for(let n of t)for(let t of e.getRecursivelyReferencedFragments(n))r[t.name.value]=!0;for(let t of n){let n=t.name.value;!0!==r[n]&&e.reportError(new w(`Fragment "${n}" is never used.`,{nodes:t}))}}}}}function n2(e){let t=[];return{OperationDefinition:{enter(){t=[]},leave(n){let r=Object.create(null);for(let{node:t}of e.getRecursiveVariableUsages(n))r[t.name.value]=!0;for(let i of t){let t=i.variable.name.value;!0!==r[t]&&e.reportError(new w(n.name?`Variable "$${t}" is never used in operation "${n.name.value}".`:`Variable "$${t}" is never used.`,{nodes:i}))}}},VariableDefinition(e){t.push(e)}}}function n3(e){switch(e.kind){case p.OBJECT:return{...e,fields:e.fields.map(e=>({...e,value:n3(e.value)})).sort((e,t)=>eN(e.name.value,t.name.value))};case p.LIST:return{...e,values:e.values.map(n3)};case p.INT:case p.FLOAT:case p.STRING:case p.BOOLEAN:case p.NULL:case p.ENUM:case p.VARIABLE:return e}}function n4(e){let t=new rt,n=new rn,r=new Map;return{SelectionSet(i){for(let[[o,a],s,l]of function(e,t,n,r,i,o){let a=[],[s,l]=n7(e,t,i,o);if(function(e,t,n,r,i,o){for(let[a,s]of Object.entries(o))if(s.length>1)for(let o=0;o`subfields "${t}" conflict because `+e(n)).join(" and "):t}(a);e.reportError(new w(`Fields "${o}" conflict because ${t}. Use different aliases on the fields to fetch both if this was intentional.`,{nodes:s.concat(l)}))}}}}function n9(e,t,n,r,i,o,a,s){if(r.has(a,s,o))return;r.add(a,s,o);let l=e.getFragment(s);if(!l)return;let[u,c]=re(e,n,l);if(a!==u)for(let s of(n8(e,t,n,r,i,o,a,u),c))n9(e,t,n,r,i,o,a,s)}function n5(e,t,n,r,i,o,a,s){if(a===s||i.has(a,s,o))return;i.add(a,s,o);let l=e.getFragment(a),u=e.getFragment(s);if(!l||!u)return;let[c,p]=re(e,n,l),[d,f]=re(e,n,u);for(let s of(n8(e,t,n,r,i,o,c,d),f))n5(e,t,n,r,i,o,a,s);for(let a of p)n5(e,t,n,r,i,o,a,s)}function n8(e,t,n,r,i,o,a,s){for(let[l,u]of Object.entries(a)){let a=s[l];if(a)for(let s of u)for(let u of a){let a=n6(e,n,r,i,o,l,s,u);a&&t.push(a)}}}function n6(e,t,n,r,i,o,a,s){let[l,u,c]=a,[p,d,f]=s,h=i||l!==p&&eX(l)&&eX(p);if(!h){let e=u.name.value,t=d.name.value;if(e!==t)return[[o,`"${e}" and "${t}" are different fields`],[u],[d]];if(!function(e,t){let n=e.arguments,r=t.arguments;if(void 0===n||0===n.length)return void 0===r||0===r.length;if(void 0===r||0===r.length||n.length!==r.length)return!1;let i=new Map(r.map(({name:e,value:t})=>[e.value,t]));return n.every(e=>{let t=e.value,n=i.get(e.name.value);return void 0!==n&&function(e){return eF(n3(e))}(t)===function(e){return eF(n3(e))}(n)})}(u,d))return[[o,"they have differing arguments"],[u],[d]]}let m=null==c?void 0:c.type,y=null==f?void 0:f.type;if(m&&y&&function e(t,n){return e9(t)?!e9(n)||e(t.ofType,n.ofType):!!e9(n)||(e8(t)?!e8(n)||e(t.ofType,n.ofType):!!e8(n)||!!(tr(t)||tr(n))&&t!==n)}(m,y))return[[o,`they return conflicting types "${ei(m)}" and "${ei(y)}"`],[u],[d]];let E=u.selectionSet,T=d.selectionSet;if(E&&T){var v=function(e,t,n,r,i,o,a,s,l){let u=[],[c,p]=n7(e,t,o,a),[d,f]=n7(e,t,s,l);for(let o of(n8(e,u,t,n,r,i,c,d),f))n9(e,u,t,n,r,i,c,o);for(let o of p)n9(e,u,t,n,r,i,d,o);for(let o of p)for(let a of f)n5(e,u,t,n,r,i,o,a);return u}(e,t,n,r,h,tT(m),E,tT(y),T),N=o,I=u,g=d;return v.length>0?[[N,v.map(([e])=>e)],[I,...v.map(([,e])=>e).flat()],[g,...v.map(([,,e])=>e).flat()]]:void 0}}function n7(e,t,n,r){let i=t.get(r);if(i)return i;let o=Object.create(null),a=Object.create(null);!function e(t,n,r,i,o){for(let a of r.selections)switch(a.kind){case p.FIELD:{let e,t=a.name.value;(eX(n)||eH(n))&&(e=n.getFields()[t]);let r=a.alias?a.alias.value:t;i[r]||(i[r]=[]),i[r].push([n,a,e]);break}case p.FRAGMENT_SPREAD:o[a.name.value]=!0;break;case p.INLINE_FRAGMENT:{let r=a.typeCondition,s=r?nA(t.getSchema(),r):n;e(t,s,a.selectionSet,i,o)}}}(e,n,r,o,a);let s=[o,Object.keys(a)];return t.set(r,s),s}function re(e,t,n){let r=t.get(n.selectionSet);if(r)return r;let i=nA(e.getSchema(),n.typeCondition);return n7(e,t,i,n.selectionSet)}class rt{constructor(){this._data=new Map}has(e,t,n){var r;let i=null==(r=this._data.get(e))?void 0:r.get(t);return void 0!==i&&(!!n||n===i)}add(e,t,n){let r=this._data.get(e);void 0===r?this._data.set(e,new Map([[t,n]])):r.set(t,n)}}class rn{constructor(){this._orderedPairSet=new rt}has(e,t,n){return ee.name.value));for(let n of r.args)if(!i.has(n.name)&&tw(n)){let i=ei(n.type);e.reportError(new w(`Field "${r.name}" argument "${n.name}" of type "${i}" is required, but it was not provided.`,{nodes:t}))}}}}}function rs(e){var t,n;let r=Object.create(null),i=e.getSchema();for(let e of null!=(t=null==i?void 0:i.getDirectives())?t:t8)r[e.name]=eE(e.args.filter(tw),e=>e.name);for(let t of e.getDocument().definitions)if(t.kind===p.DIRECTIVE_DEFINITION){let e=null!=(n=t.arguments)?n:[];r[t.name.value]=eE(e.filter(rl),e=>e.name.value)}return{Directive:{leave(t){let n=t.name.value,i=r[n];if(i){var o;let r=new Set((null!=(o=t.arguments)?o:[]).map(e=>e.name.value));for(let[o,a]of Object.entries(i))if(!r.has(o)){let r=eQ(a.type)?ei(a.type):eF(a.type);e.reportError(new w(`Directive "@${n}" argument "${o}" of type "${r}" is required, but it was not provided.`,{nodes:t}))}}}}}}function rl(e){return e.type.kind===p.NON_NULL_TYPE&&null==e.defaultValue}function ru(e){return{Field(t){let n=e.getType(),r=t.selectionSet;if(n)if(tr(tT(n))){if(r){let i=t.name.value,o=ei(n);e.reportError(new w(`Field "${i}" must not have a selection since type "${o}" has no subfields.`,{nodes:r}))}}else if(r){if(0===r.selections.length){let r=t.name.value,i=ei(n);e.reportError(new w(`Field "${r}" of type "${i}" must have at least one field selected.`,{nodes:t}))}}else{let r=t.name.value,i=ei(n);e.reportError(new w(`Field "${r}" of type "${i}" must have a selection of subfields. Did you mean "${r} { ... }"?`,{nodes:t}))}}}}function rc(e){return e.map(e=>"number"==typeof e?"["+e.toString()+"]":"."+e).join("")}function rp(e,t,n){return{prev:e,key:t,typename:n}}function rd(e){let t=[],n=e;for(;n;)t.push(n.key),n=n.prev;return t.reverse()}function rf(e,t,n=rh){return function e(t,n,r,i){if(e8(n))return null!=t?e(t,n.ofType,r,i):void r(rd(i),t,new w(`Expected non-nullable type "${ei(n)}" not to be null.`));if(null==t)return null;if(e9(n)){let o=n.ofType;return t7(t)?Array.from(t,(t,n)=>e(t,o,r,rp(i,n,void 0))):[e(t,o,r,i)]}if(e3(n)){if(!g(t)||Array.isArray(t))return void r(rd(i),t,new w(`Expected type "${n.name}" to be an object.`));let o={},a=n.getFields();for(let s of Object.values(a)){let a=t[s.name];if(void 0===a){if(void 0!==s.defaultValue)o[s.name]=s.defaultValue;else if(e8(s.type)){let e=ei(s.type);r(rd(i),t,new w(`Field "${s.name}" of required type "${e}" was not provided.`))}continue}o[s.name]=e(a,s.type,r,rp(i,s.name,n.name))}for(let e of Object.keys(t))if(!a[e]){let o=e_(e,Object.keys(n.getFields()));r(rd(i),t,new w(`Field "${e}" is not defined by type "${n.name}".`+em(o)))}if(n.isOneOf){let e=Object.keys(o);1!==e.length&&r(rd(i),t,new w(`Exactly one key must be specified for OneOf type "${n.name}".`));let a=e[0],s=o[a];null===s&&r(rd(i).concat(a),s,new w(`Field "${a}" must be non-null.`))}return o}if(tr(n)){let e;try{e=n.parseValue(t)}catch(e){e instanceof w?r(rd(i),t,e):r(rd(i),t,new w(`Expected type "${n.name}". `+e.message,{originalError:e}));return}return void 0===e&&r(rd(i),t,new w(`Expected type "${n.name}".`)),e}_(!1,"Unexpected input type: "+ei(n))}(e,t,n,void 0)}function rh(e,t,n){let r="Invalid value "+ei(t);throw e.length>0&&(r+=` at "value${rc(e)}"`),n.message=r+": "+n.message,n}function rm(e,t,n){if(e){if(e.kind===p.VARIABLE){let r=e.name.value;if(null==n||void 0===n[r])return;let i=n[r];if(null===i&&e8(t))return;return i}if(e8(t)){if(e.kind===p.NULL)return;return rm(e,t.ofType,n)}if(e.kind===p.NULL)return null;if(e9(t)){let r=t.ofType;if(e.kind===p.LIST){let t=[];for(let i of e.values)if(ry(i,n)){if(e8(r))return;t.push(null)}else{let e=rm(i,r,n);if(void 0===e)return;t.push(e)}return t}let i=rm(e,r,n);if(void 0===i)return;return[i]}if(e3(t)){if(e.kind!==p.OBJECT)return;let r=Object.create(null),i=eE(e.fields,e=>e.name.value);for(let e of Object.values(t.getFields())){let t=i[e.name];if(!t||ry(t.value,n)){if(void 0!==e.defaultValue)r[e.name]=e.defaultValue;else if(e8(e.type))return;continue}let o=rm(t.value,e.type,n);if(void 0===o)return;r[e.name]=o}if(t.isOneOf){let e=Object.keys(r);if(1!==e.length||null===r[e[0]])return}return r}if(tr(t)){let r;try{r=t.parseLiteral(e,n)}catch(e){return}if(void 0===r)return;return r}_(!1,"Unexpected input type: "+ei(t))}}function ry(e,t){return e.kind===p.VARIABLE&&(null==t||void 0===t[e.name.value])}function rE(e,t,n,r){let i=[],o=null==r?void 0:r.maxErrors;try{let r=function(e,t,n,r){let i={};for(let o of t){let t=o.variable.name.value,a=nA(e,o.type);if(!e7(a)){let e=eF(o.type);r(new w(`Variable "$${t}" expected value of type "${e}" which cannot be used as an input type.`,{nodes:o.type}));continue}if(!rN(n,t)){if(o.defaultValue)i[t]=rm(o.defaultValue,a);else if(e8(a)){let e=ei(a);r(new w(`Variable "$${t}" of required type "${e}" was not provided.`,{nodes:o}))}continue}let s=n[t];if(null===s&&e8(a)){let e=ei(a);r(new w(`Variable "$${t}" of non-null type "${e}" must not be null.`,{nodes:o}));continue}i[t]=rf(s,a,(e,n,i)=>{let a=`Variable "$${t}" got invalid value `+ei(n);e.length>0&&(a+=` at "${t}${rc(e)}"`),r(new w(a+"; "+i.message,{nodes:o,originalError:i}))})}return i}(e,t,n,e=>{if(null!=o&&i.length>=o)throw new w("Too many errors processing variables, error limit reached. Execution aborted.");i.push(e)});if(0===i.length)return{coerced:r}}catch(e){i.push(e)}return{errors:i}}function rT(e,t,n){var r;let i={},o=eE(null!=(r=t.arguments)?r:[],e=>e.name.value);for(let r of e.args){let e=r.name,a=r.type,s=o[e];if(!s){if(void 0!==r.defaultValue)i[e]=r.defaultValue;else if(e8(a))throw new w(`Argument "${e}" of required type "${ei(a)}" was not provided.`,{nodes:t});continue}let l=s.value,u=l.kind===p.NULL;if(l.kind===p.VARIABLE){let t=l.name.value;if(null==n||!rN(n,t)){if(void 0!==r.defaultValue)i[e]=r.defaultValue;else if(e8(a))throw new w(`Argument "${e}" of required type "${ei(a)}" was provided the variable "$${t}" which was not provided a runtime value.`,{nodes:l});continue}u=null==n[t]}if(u&&e8(a))throw new w(`Argument "${e}" of non-null type "${ei(a)}" must not be null.`,{nodes:l});let c=rm(l,a,n);if(void 0===c)throw new w(`Argument "${e}" has invalid value ${eF(l)}.`,{nodes:l});i[e]=c}return i}function rv(e,t,n){var r;let i=null==(r=t.directives)?void 0:r.find(t=>t.name.value===e.name);if(i)return rT(e,i,n)}function rN(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function rI(e,t,n,r,i){let o=new Map;return rg(e,t,n,r,i,o,new Set),o}function rg(e,t,n,r,i,o,a){for(let l of i.selections)switch(l.kind){case p.FIELD:{var s;if(!r_(n,l))continue;let e=(s=l).alias?s.alias.value:s.name.value,t=o.get(e);void 0!==t?t.push(l):o.set(e,[l]);break}case p.INLINE_FRAGMENT:if(!r_(n,l)||!rO(e,l,r))continue;rg(e,t,n,r,l.selectionSet,o,a);break;case p.FRAGMENT_SPREAD:{let i=l.name.value;if(a.has(i)||!r_(n,l))continue;a.add(i);let s=t[i];if(!s||!rO(e,s,r))continue;rg(e,t,n,r,s.selectionSet,o,a)}}}function r_(e,t){let n=rv(t2,t,e);if((null==n?void 0:n.if)===!0)return!1;let r=rv(t1,t,e);return(null==r?void 0:r.if)!==!1}function rO(e,t,n){let r=t.typeCondition;if(!r)return!0;let i=nA(e,r);return i===n||!!ts(i)&&e.isSubType(i,n)}function rb(e){return{OperationDefinition(t){if("subscription"===t.operation){let n=e.getSchema(),r=n.getSubscriptionType();if(r){let i=t.name?t.name.value:null,o=Object.create(null),a=e.getDocument(),s=Object.create(null);for(let e of a.definitions)e.kind===p.FRAGMENT_DEFINITION&&(s[e.name.value]=e);let l=rI(n,s,o,r,t.selectionSet);if(l.size>1){let t=[...l.values()].slice(1).flat();e.reportError(new w(null!=i?`Subscription "${i}" must select only one top level field.`:"Anonymous Subscription must select only one top level field.",{nodes:t}))}for(let t of l.values())t[0].name.value.startsWith("__")&&e.reportError(new w(null!=i?`Subscription "${i}" must not select an introspection top level field.`:"Anonymous Subscription must not select an introspection top level field.",{nodes:t}))}}}}}function rD(e,t){let n=new Map;for(let r of e){let e=t(r),i=n.get(e);void 0===i?n.set(e,[r]):i.push(r)}return n}function rA(e){return{DirectiveDefinition(e){var t;let r=null!=(t=e.arguments)?t:[];return n(`@${e.name.value}`,r)},InterfaceTypeDefinition:t,InterfaceTypeExtension:t,ObjectTypeDefinition:t,ObjectTypeExtension:t};function t(e){var t,r;let i=e.name.value;for(let o of null!=(t=e.fields)?t:[]){let e=o.name.value;n(`${i}.${e}`,null!=(r=o.arguments)?r:[])}return!1}function n(t,n){for(let[r,i]of rD(n,e=>e.name.value))i.length>1&&e.reportError(new w(`Argument "${t}(${r}:)" can only be defined once.`,{nodes:i.map(e=>e.name)}));return!1}}function rS(e){return{Field:t,Directive:t};function t(t){var n;for(let[r,i]of rD(null!=(n=t.arguments)?n:[],e=>e.name.value))i.length>1&&e.reportError(new w(`There can be only one argument named "${r}".`,{nodes:i.map(e=>e.name)}))}}function rw(e){let t=Object.create(null),n=e.getSchema();return{DirectiveDefinition(r){let i=r.name.value;return null!=n&&n.getDirective(i)?void e.reportError(new w(`Directive "@${i}" already exists in the schema. It cannot be redefined.`,{nodes:r.name})):(t[i]?e.reportError(new w(`There can be only one directive named "@${i}".`,{nodes:[t[i],r.name]})):t[i]=r.name,!1)}}}function rR(e){let t=Object.create(null),n=e.getSchema();for(let e of n?n.getDirectives():t8)t[e.name]=!e.isRepeatable;for(let n of e.getDocument().definitions)n.kind===p.DIRECTIVE_DEFINITION&&(t[n.name.value]=!n.repeatable);let r=Object.create(null),i=Object.create(null);return{enter(n){let o;if("directives"in n&&n.directives){if(n.kind===p.SCHEMA_DEFINITION||n.kind===p.SCHEMA_EXTENSION)o=r;else if(nV(n)||nM(n)){let e=n.name.value;void 0===(o=i[e])&&(i[e]=o=Object.create(null))}else o=Object.create(null);for(let r of n.directives){let n=r.name.value;t[n]&&(o[n]?e.reportError(new w(`The directive "@${n}" can only be used once at this location.`,{nodes:[o[n],r]})):o[n]=r)}}}}}function rk(e){let t=e.getSchema(),n=t?t.getTypeMap():Object.create(null),r=Object.create(null);return{EnumTypeDefinition:i,EnumTypeExtension:i};function i(t){var i;let o=t.name.value;r[o]||(r[o]=Object.create(null));let a=null!=(i=t.values)?i:[],s=r[o];for(let t of a){let r=t.name.value,i=n[o];e1(i)&&i.getValue(r)?e.reportError(new w(`Enum value "${o}.${r}" already exists in the schema. It cannot also be defined in this type extension.`,{nodes:t.name})):s[r]?e.reportError(new w(`Enum value "${o}.${r}" can only be defined once.`,{nodes:[s[r],t.name]})):s[r]=t.name}return!1}}function rL(e){let t=e.getSchema(),n=t?t.getTypeMap():Object.create(null),r=Object.create(null);return{InputObjectTypeDefinition:i,InputObjectTypeExtension:i,InterfaceTypeDefinition:i,InterfaceTypeExtension:i,ObjectTypeDefinition:i,ObjectTypeExtension:i};function i(t){var i,o,a;let s=t.name.value;r[s]||(r[s]=Object.create(null));let l=null!=(i=t.fields)?i:[],u=r[s];for(let t of l){let r=t.name.value;(o=n[s],a=r,(eX(o)||eH(o)||e3(o))&&null!=o.getFields()[a])?e.reportError(new w(`Field "${s}.${r}" already exists in the schema. It cannot also be defined in this type extension.`,{nodes:t.name})):u[r]?e.reportError(new w(`Field "${s}.${r}" can only be defined once.`,{nodes:[u[r],t.name]})):u[r]=t.name}return!1}}function r$(e){let t=Object.create(null);return{OperationDefinition:()=>!1,FragmentDefinition(n){let r=n.name.value;return t[r]?e.reportError(new w(`There can be only one fragment named "${r}".`,{nodes:[t[r],n.name]})):t[r]=n.name,!1}}}function rx(e){let t=[],n=Object.create(null);return{ObjectValue:{enter(){t.push(n),n=Object.create(null)},leave(){let e=t.pop();e||_(!1),n=e}},ObjectField(t){let r=t.name.value;n[r]?e.reportError(new w(`There can be only one input field named "${r}".`,{nodes:[n[r],t.name]})):n[r]=t.name}}}function rF(e){let t=Object.create(null);return{OperationDefinition(n){let r=n.name;return r&&(t[r.value]?e.reportError(new w(`There can be only one operation named "${r.value}".`,{nodes:[t[r.value],r]})):t[r.value]=r),!1},FragmentDefinition:()=>!1}}function rC(e){let t=e.getSchema(),n=Object.create(null),r=t?{query:t.getQueryType(),mutation:t.getMutationType(),subscription:t.getSubscriptionType()}:{};return{SchemaDefinition:i,SchemaExtension:i};function i(t){var i;for(let o of null!=(i=t.operationTypes)?i:[]){let t=o.operation,i=n[t];r[t]?e.reportError(new w(`Type for ${t} already defined in the schema. It cannot be redefined.`,{nodes:o})):i?e.reportError(new w(`There can be only one ${t} type in schema.`,{nodes:[i,o]})):n[t]=o}return!1}}function rV(e){let t=Object.create(null),n=e.getSchema();return{ScalarTypeDefinition:r,ObjectTypeDefinition:r,InterfaceTypeDefinition:r,UnionTypeDefinition:r,EnumTypeDefinition:r,InputObjectTypeDefinition:r};function r(r){let i=r.name.value;return null!=n&&n.getType(i)?void e.reportError(new w(`Type "${i}" already exists in the schema. It cannot also be defined in this type definition.`,{nodes:r.name})):(t[i]?e.reportError(new w(`There can be only one type named "${i}".`,{nodes:[t[i],r.name]})):t[i]=r.name,!1)}}function rU(e){return{OperationDefinition(t){var n;for(let[r,i]of rD(null!=(n=t.variableDefinitions)?n:[],e=>e.variable.name.value))i.length>1&&e.reportError(new w(`There can be only one variable named "$${r}".`,{nodes:i.map(e=>e.variable.name)}))}}}function rM(e){let t={};return{OperationDefinition:{enter(){t={}}},VariableDefinition(e){t[e.variable.name.value]=e},ListValue(t){if(!e9(tm(e.getParentInputType())))return rj(e,t),!1},ObjectValue(t){let n=tT(e.getInputType());if(!e3(n))return rj(e,t),!1;let r=eE(t.fields,e=>e.name.value);for(let i of Object.values(n.getFields()))if(!r[i.name]&&tU(i)){let r=ei(i.type);e.reportError(new w(`Field "${n.name}.${i.name}" of required type "${r}" was not provided.`,{nodes:t}))}n.isOneOf&&function(e,t,n,r){var i;let o=Object.keys(r);if(1!==o.length)return e.reportError(new w(`OneOf Input Object "${n.name}" must specify exactly one key.`,{nodes:[t]}));let a=null==(i=r[o[0]])?void 0:i.value;a&&a.kind!==p.NULL||e.reportError(new w(`Field "${n.name}.${o[0]}" must be non-null.`,{nodes:[t]}))}(e,t,n,r)},ObjectField(t){let n=tT(e.getParentInputType());if(!e.getInputType()&&e3(n)){let r=e_(t.name.value,Object.keys(n.getFields()));e.reportError(new w(`Field "${t.name.value}" is not defined by type "${n.name}".`+em(r),{nodes:t}))}},NullValue(t){let n=e.getInputType();e8(n)&&e.reportError(new w(`Expected value of type "${ei(n)}", found ${eF(t)}.`,{nodes:t}))},EnumValue:t=>rj(e,t),IntValue:t=>rj(e,t),FloatValue:t=>rj(e,t),StringValue:t=>rj(e,t),BooleanValue:t=>rj(e,t)}}function rj(e,t){let n=e.getInputType();if(!n)return;let r=tT(n);if(!tr(r)){let r=ei(n);e.reportError(new w(`Expected value of type "${r}", found ${eF(t)}.`,{nodes:t}));return}try{let i=r.parseLiteral(t,void 0);if(void 0===i){let r=ei(n);e.reportError(new w(`Expected value of type "${r}", found ${eF(t)}.`,{nodes:t}))}}catch(i){let r=ei(n);i instanceof w?e.reportError(i):e.reportError(new w(`Expected value of type "${r}", found ${eF(t)}; `+i.message,{nodes:t,originalError:i}))}}function rP(e){return{VariableDefinition(t){let n=nA(e.getSchema(),t.type);if(void 0!==n&&!e7(n)){let n=t.variable.name.value,r=eF(t.type);e.reportError(new w(`Variable "$${n}" cannot be non-input type "${r}".`,{nodes:t.type}))}}}}function rG(e){let t=Object.create(null);return{OperationDefinition:{enter(){t=Object.create(null)},leave(n){for(let{node:l,type:u,defaultValue:c,parentType:d}of e.getRecursiveVariableUsages(n)){let n=l.name.value,f=t[n];if(f&&u){var r,i,o,a,s;let t=e.getSchema(),h=nA(t,f.type);if(h&&(r=t,i=h,o=f.defaultValue,a=u,s=c,e8(a)&&!e8(i)?!((null!=o&&o.kind!==p.NULL||void 0!==s)&&tj(r,i,a.ofType)):!tj(r,i,a))){let t=ei(h),r=ei(u);e.reportError(new w(`Variable "$${n}" of type "${t}" used in position expecting type "${r}".`,{nodes:[f,l]}))}e3(d)&&d.isOneOf&&tf(h)&&e.reportError(new w(`Variable "$${n}" is of type "${h}" but must be non-nullable to be used for OneOf Input Object "${d}".`,{nodes:[f,l]}))}}}},VariableDefinition(e){t[e.variable.name.value]=e}}}let rB=Object.freeze([nW]),rY=Object.freeze([nP,rF,nz,rb,nK,nB,rP,ru,nG,r$,nJ,n1,rr,nZ,rU,n0,n2,nq,rR,nY,rS,rM,ra,rG,n4,rx,...rB]),rQ=Object.freeze([nH,rC,rV,rk,rL,rA,rw,nK,nq,rR,ri,nQ,rS,rx,rs]);class rq{constructor(e,t){this._ast=e,this._fragments=void 0,this._fragmentSpreads=new Map,this._recursivelyReferencedFragments=new Map,this._onError=t}get[Symbol.toStringTag](){return"ASTValidationContext"}reportError(e){this._onError(e)}getDocument(){return this._ast}getFragment(e){let t;if(this._fragments)t=this._fragments;else{for(let e of(t=Object.create(null),this.getDocument().definitions))e.kind===p.FRAGMENT_DEFINITION&&(t[e.name.value]=e);this._fragments=t}return t[e]}getFragmentSpreads(e){let t=this._fragmentSpreads.get(e);if(!t){let n;t=[];let r=[e];for(;n=r.pop();)for(let e of n.selections)e.kind===p.FRAGMENT_SPREAD?t.push(e):e.selectionSet&&r.push(e.selectionSet);this._fragmentSpreads.set(e,t)}return t}getRecursivelyReferencedFragments(e){let t=this._recursivelyReferencedFragments.get(e);if(!t){let n;t=[];let r=Object.create(null),i=[e.selectionSet];for(;n=i.pop();)for(let e of this.getFragmentSpreads(n)){let n=e.name.value;if(!0!==r[n]){r[n]=!0;let e=this.getFragment(n);e&&(t.push(e),i.push(e.selectionSet))}}this._recursivelyReferencedFragments.set(e,t)}return t}}class rJ extends rq{constructor(e,t,n){super(e,n),this._schema=t}get[Symbol.toStringTag](){return"SDLValidationContext"}getSchema(){return this._schema}}class rK extends rq{constructor(e,t,n,r){super(t,r),this._schema=e,this._typeInfo=n,this._variableUsages=new Map,this._recursiveVariableUsages=new Map}get[Symbol.toStringTag](){return"ValidationContext"}getSchema(){return this._schema}getVariableUsages(e){let t=this._variableUsages.get(e);if(!t){let n=[],r=new nS(this._schema);ek(e,nR(r,{VariableDefinition:()=>!1,Variable(e){n.push({node:e,type:r.getInputType(),defaultValue:r.getDefaultValue(),parentType:r.getParentInputType()})}})),t=n,this._variableUsages.set(e,t)}return t}getRecursiveVariableUsages(e){let t=this._recursiveVariableUsages.get(e);if(!t){for(let n of(t=this.getVariableUsages(e),this.getRecursivelyReferencedFragments(e)))t=t.concat(this.getVariableUsages(n));this._recursiveVariableUsages.set(e,t)}return t}getType(){return this._typeInfo.getType()}getParentType(){return this._typeInfo.getParentType()}getInputType(){return this._typeInfo.getInputType()}getParentInputType(){return this._typeInfo.getParentInputType()}getFieldDef(){return this._typeInfo.getFieldDef()}getDirective(){return this._typeInfo.getDirective()}getArgument(){return this._typeInfo.getArgument()}getEnumValue(){return this._typeInfo.getEnumValue()}}function rX(e,t,n=rY,r,i=new nS(e)){var o;let a=null!=(o=null==r?void 0:r.maxErrors)?o:100;t||N(!1,"Must provide document."),nN(e);let s=Object.freeze({}),l=[],u=new rK(e,t,i,e=>{if(l.length>=a)throw l.push(new w("Too many validation errors, error limit reached. Validation aborted.")),s;l.push(e)}),c=eL(n.map(e=>e(u)));try{ek(t,nR(i,c))}catch(e){if(e!==s)throw e}return l}function rz(e,t,n=rQ){let r=[],i=new rJ(e,t,e=>{r.push(e)});return ek(e,eL(n.map(e=>e(i)))),r}function rH(e){return Promise.all(Object.values(e)).then(t=>{let n=Object.create(null);for(let[r,i]of Object.keys(e).entries())n[i]=t[r];return n})}class rW extends Error{constructor(e){super("Unexpected error value: "+ei(e)),this.name="NonErrorThrown",this.thrownValue=e}}function rZ(e,t,n){var r;let i=e instanceof Error?e:new rW(e);return Array.isArray(i.path)?i:new w(i.message,{nodes:null!=(r=i.nodes)?r:t,source:i.source,positions:i.positions,path:n,originalError:i})}let r0=(a=(e,t,n)=>(function(e,t,n,r,i){let o=new Map,a=new Set;for(let s of i)s.selectionSet&&rg(e,t,n,r,s.selectionSet,o,a);return o})(e.schema,e.fragments,e.variableValues,t,n),function(t,n,r){void 0===e&&(e=new WeakMap);let i=e.get(t);void 0===i&&(i=new WeakMap,e.set(t,i));let o=i.get(n);void 0===o&&(o=new WeakMap,i.set(n,o));let s=o.get(r);return void 0===s&&(s=a(t,n,r),o.set(r,s)),s});function r1(e){arguments.length<2||N(!1,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");let{schema:t,document:n,variableValues:r,rootValue:i}=e;r4(t,n,r);let o=r9(e);if(!("schema"in o))return{errors:o};try{let{operation:e}=o,t=function(e,t,n){let r=e.schema.getRootType(t.operation);if(null==r)throw new w(`Schema is not configured to execute ${t.operation} operation.`,{nodes:t});let i=rI(e.schema,e.fragments,e.variableValues,r,t.selectionSet),o;switch(t.operation){case u.QUERY:return r5(e,r,n,o,i);case u.MUTATION:var a,s,l,c,p;return a=e,s=r,l=n,c=o,p=i,function(e,t,n){let r=n;for(let n of e)r=I(r)?r.then(e=>t(e,n)):t(r,n);return r}(p.entries(),(e,[t,n])=>{let r=rp(c,t,s.name),i=r8(a,s,l,n,r);return void 0===i?e:I(i)?i.then(n=>(e[t]=n,e)):(e[t]=i,e)},Object.create(null));case u.SUBSCRIPTION:return r5(e,r,n,o,i)}}(o,e,i);if(I(t))return t.then(e=>r3(e,o.errors),e=>(o.errors.push(e),r3(null,o.errors)));return r3(t,o.errors)}catch(e){return o.errors.push(e),r3(null,o.errors)}}function r2(e){let t=r1(e);if(I(t))throw Error("GraphQL execution failed to complete synchronously.");return t}function r3(e,t){return 0===t.length?{data:e}:{errors:t,data:e}}function r4(e,t,n){t||N(!1,"Must provide document."),nN(e),null==n||g(n)||N(!1,"Variables must be provided as an Object where each property is a variable value. Perhaps look to see if an unparsed JSON string was provided.")}function r9(e){var t,n,r;let i,{schema:o,document:a,rootValue:s,contextValue:l,variableValues:u,operationName:c,fieldResolver:d,typeResolver:f,subscribeFieldResolver:h,options:m}=e,y=Object.create(null);for(let e of a.definitions)switch(e.kind){case p.OPERATION_DEFINITION:if(null==c){if(void 0!==i)return[new w("Must provide operation name if query contains multiple operations.")];i=e}else(null==(t=e.name)?void 0:t.value)===c&&(i=e);break;case p.FRAGMENT_DEFINITION:y[e.name.value]=e}if(!i)return null!=c?[new w(`Unknown operation named "${c}".`)]:[new w("Must provide an operation.")];let E=rE(o,null!=(n=i.variableDefinitions)?n:[],null!=u?u:{},{maxErrors:null!=(r=null==m?void 0:m.maxCoercionErrors)?r:50});return E.errors?E.errors:{schema:o,fragments:y,rootValue:s,contextValue:l,operation:i,variableValues:E.coerced,fieldResolver:null!=d?d:ia,typeResolver:null!=f?f:io,subscribeFieldResolver:null!=h?h:ia,errors:[]}}function r5(e,t,n,r,i){let o=Object.create(null),a=!1;try{for(let[s,l]of i.entries()){let i=rp(r,s,t.name),u=r8(e,t,n,l,i);void 0!==u&&(o[s]=u,I(u)&&(a=!0))}}catch(e){if(a)return rH(o).finally(()=>{throw e});throw e}return a?rH(o):o}function r8(e,t,n,r,i){var o;let a=is(e.schema,t,r[0]);if(!a)return;let s=a.type,l=null!=(o=a.resolve)?o:e.fieldResolver,u=r6(e,a,r,t,i);try{let t,o=rT(a,r[0],e.variableValues),c=e.contextValue,p=l(n,o,c,u);if(t=I(p)?p.then(t=>ie(e,s,r,u,i,t)):ie(e,s,r,u,i,p),I(t))return t.then(void 0,t=>{let n=rZ(t,r,rd(i));return r7(n,s,e)});return t}catch(t){return r7(rZ(t,r,rd(i)),s,e)}}function r6(e,t,n,r,i){return{fieldName:t.name,fieldNodes:n,returnType:t.type,parentType:r,path:i,schema:e.schema,fragments:e.fragments,rootValue:e.rootValue,operation:e.operation,variableValues:e.variableValues}}function r7(e,t,n){if(e8(t))throw e;return n.errors.push(e),null}function ie(e,t,n,r,i,o){var a,s,l,u,c,p,d;let f;if(o instanceof Error)throw o;if(e8(t)){let a=ie(e,t.ofType,n,r,i,o);if(null===a)throw Error(`Cannot return null for non-nullable field ${r.parentType.name}.${r.fieldName}.`);return a}return null==o?null:e9(t)?function(e,t,n,r,i,o){if(!t7(o))throw new w(`Expected Iterable, but did not find one for field "${r.parentType.name}.${r.fieldName}".`);let a=t.ofType,s=!1,l=Array.from(o,(t,o)=>{let l=rp(i,o,void 0);try{let i;if(i=I(t)?t.then(t=>ie(e,a,n,r,l,t)):ie(e,a,n,r,l,t),I(i))return s=!0,i.then(void 0,t=>{let r=rZ(t,n,rd(l));return r7(r,a,e)});return i}catch(t){return r7(rZ(t,n,rd(l)),a,e)}});return s?Promise.all(l):l}(e,t,n,r,i,o):tr(t)?function(e,t){let n=e.serialize(t);if(null==n)throw Error(`Expected \`${ei(e)}.serialize(${ei(t)})\` to return non-nullable value, returned: ${ei(n)}`);return n}(t,o):ts(t)?(a=e,s=t,l=n,u=r,c=i,p=o,I(f=(null!=(d=s.resolveType)?d:a.typeResolver)(p,a.contextValue,u,s))?f.then(e=>ir(a,it(e,a,s,l,u,p),l,u,c,p)):ir(a,it(f,a,s,l,u,p),l,u,c,p)):eX(t)?ir(e,t,n,r,i,o):void _(!1,"Cannot complete value of unexpected output type: "+ei(t))}function it(e,t,n,r,i,o){if(null==e)throw new w(`Abstract type "${n.name}" must resolve to an Object type at runtime for field "${i.parentType.name}.${i.fieldName}". Either the "${n.name}" type should provide a "resolveType" function or each possible type should provide an "isTypeOf" function.`,r);if(eX(e))throw new w("Support for returning GraphQLObjectType from resolveType was removed in graphql-js@16.0.0 please return type name instead.");if("string"!=typeof e)throw new w(`Abstract type "${n.name}" must resolve to an Object type at runtime for field "${i.parentType.name}.${i.fieldName}" with value ${ei(o)}, received "${ei(e)}".`);let a=t.schema.getType(e);if(null==a)throw new w(`Abstract type "${n.name}" was resolved to a type "${e}" that does not exist inside the schema.`,{nodes:r});if(!eX(a))throw new w(`Abstract type "${n.name}" was resolved to a non-object type "${e}".`,{nodes:r});if(!t.schema.isSubType(n,a))throw new w(`Runtime Object type "${a.name}" is not a possible type for "${n.name}".`,{nodes:r});return a}function ir(e,t,n,r,i,o){let a=r0(e,t,n);if(t.isTypeOf){let s=t.isTypeOf(o,e.contextValue,r);if(I(s))return s.then(r=>{if(!r)throw ii(t,o,n);return r5(e,t,o,i,a)});if(!s)throw ii(t,o,n)}return r5(e,t,o,i,a)}function ii(e,t,n){return new w(`Expected value of type "${e.name}" but got: ${ei(t)}.`,{nodes:n})}let io=function(e,t,n,r){if(g(e)&&"string"==typeof e.__typename)return e.__typename;let i=n.schema.getPossibleTypes(r),o=[];for(let r=0;r{}),a.name}}if(o.length)return Promise.all(o).then(e=>{for(let t=0;tt(ic(e)))}function iu(e){let t=ic(e);if(I(t))throw Error("GraphQL execution failed to complete synchronously.");return t}function ic(e){let t;arguments.length<2||N(!1,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");let{schema:n,source:r,rootValue:i,contextValue:o,variableValues:a,operationName:s,fieldResolver:l,typeResolver:u}=e,c=nv(n);if(c.length>0)return{errors:c};try{t=es(r)}catch(e){return{errors:[e]}}let p=rX(n,t);return p.length>0?{errors:p}:r1({schema:n,document:t,rootValue:i,contextValue:o,variableValues:a,operationName:s,fieldResolver:l,typeResolver:u})}function ip(e){return"function"==typeof(null==e?void 0:e[Symbol.asyncIterator])}async function id(e){arguments.length<2||N(!1,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");let t=await ih(e);if(!ip(t))return t;let n=t[Symbol.asyncIterator]();async function r(t){if(t.done)return t;try{let n;return{value:await (n=t.value,r1({...e,rootValue:n})),done:!1}}catch(e){if("function"==typeof n.return)try{await n.return()}catch(e){}throw e}}return{next:async()=>r(await n.next()),return:async()=>"function"==typeof n.return?r(await n.return()):{value:void 0,done:!0},async throw(e){if("function"==typeof n.throw)return r(await n.throw(e));throw e},[Symbol.asyncIterator](){return this}}}async function ih(...e){let t,n=(t=e[0])&&"document"in t?t:{schema:t,document:e[1],rootValue:e[2],contextValue:e[3],variableValues:e[4],operationName:e[5],subscribeFieldResolver:e[6]},{schema:r,document:i,variableValues:o}=n;r4(r,i,o);let a=r9(n);if(!("schema"in a))return{errors:a};try{let e=await im(a);if(!ip(e))throw Error(`Subscription field must return Async Iterable. Received: ${ei(e)}.`);return e}catch(e){if(e instanceof w)return{errors:[e]};throw e}}async function im(e){let{schema:t,fragments:n,operation:r,variableValues:i,rootValue:o}=e,a=t.getSubscriptionType();if(null==a)throw new w("Schema is not configured to execute subscription operation.",{nodes:r});let[s,l]=[...rI(t,n,i,a,r.selectionSet).entries()][0],u=is(t,a,l[0]);if(!u){let e=l[0].name.value;throw new w(`The subscription field "${e}" is not defined.`,{nodes:l})}let c=rp(void 0,s,a.name),p=r6(e,u,l,a,c);try{var d;let t=rT(u,l[0],i),n=e.contextValue,r=null!=(d=u.subscribe)?d:e.subscribeFieldResolver,a=await r(o,t,n,p);if(a instanceof Error)throw a;return a}catch(e){throw rZ(e,l,rd(c))}}function iy(e){return{Field(t){let n=e.getFieldDef(),r=null==n?void 0:n.deprecationReason;if(n&&null!=r){let i=e.getParentType();null!=i||_(!1),e.reportError(new w(`The field ${i.name}.${n.name} is deprecated. ${r}`,{nodes:t}))}},Argument(t){let n=e.getArgument(),r=null==n?void 0:n.deprecationReason;if(n&&null!=r){let i=e.getDirective();if(null!=i)e.reportError(new w(`Directive "@${i.name}" argument "${n.name}" is deprecated. ${r}`,{nodes:t}));else{let i=e.getParentType(),o=e.getFieldDef();null!=i&&null!=o||_(!1),e.reportError(new w(`Field "${i.name}.${o.name}" argument "${n.name}" is deprecated. ${r}`,{nodes:t}))}}},ObjectField(t){let n=tT(e.getParentInputType());if(e3(n)){let r=n.getFields()[t.name.value],i=null==r?void 0:r.deprecationReason;null!=i&&e.reportError(new w(`The input field ${n.name}.${r.name} is deprecated. ${i}`,{nodes:t}))}},EnumValue(t){let n=e.getEnumValue(),r=null==n?void 0:n.deprecationReason;if(n&&null!=r){let i=tT(e.getInputType());null!=i||_(!1),e.reportError(new w(`The enum value "${i.name}.${n.name}" is deprecated. ${r}`,{nodes:t}))}}}}function iE(e){return{Field(t){let n=tT(e.getType());n&&nh(n)&&e.reportError(new w(`GraphQL introspection has been disabled, but the requested query contained the field "${t.name.value}".`,{nodes:t}))}}}function iT(e){let t={descriptions:!0,specifiedByUrl:!1,directiveIsRepeatable:!1,schemaDescription:!1,inputValueDeprecation:!1,oneOf:!1,...e},n=t.descriptions?"description":"",r=t.specifiedByUrl?"specifiedByURL":"",i=t.directiveIsRepeatable?"isRepeatable":"",o=t.schemaDescription?n:"";function a(e){return t.inputValueDeprecation?e:""}let s=t.oneOf?"isOneOf":"";return` + query IntrospectionQuery { + __schema { + ${o} + queryType { name kind } + mutationType { name kind } + subscriptionType { name kind } + types { + ...FullType + } + directives { + name + ${n} + ${i} + locations + args${a("(includeDeprecated: true)")} { + ...InputValue + } + } + } + } + + fragment FullType on __Type { + kind + name + ${n} + ${r} + ${s} + fields(includeDeprecated: true) { + name + ${n} + args${a("(includeDeprecated: true)")} { + ...InputValue + } + type { + ...TypeRef + } + isDeprecated + deprecationReason + } + inputFields${a("(includeDeprecated: true)")} { + ...InputValue + } + interfaces { + ...TypeRef + } + enumValues(includeDeprecated: true) { + name + ${n} + isDeprecated + deprecationReason + } + possibleTypes { + ...TypeRef + } + } + + fragment InputValue on __InputValue { + name + ${n} + type { ...TypeRef } + defaultValue + ${a("isDeprecated")} + ${a("deprecationReason")} + } + + fragment TypeRef on __Type { + kind + name + ofType { + kind + name + ofType { + kind + name + ofType { + kind + name + ofType { + kind + name + ofType { + kind + name + ofType { + kind + name + ofType { + kind + name + ofType { + kind + name + ofType { + kind + name + } + } + } + } + } + } + } + } + } + } + `}function iv(e,t){let n=null;for(let i of e.definitions)if(i.kind===p.OPERATION_DEFINITION){var r;if(null==t){if(n)return null;n=i}else if((null==(r=i.name)?void 0:r.value)===t)return i}return n}function iN(e,t){if("query"===t.operation){let n=e.getQueryType();if(!n)throw new w("Schema does not define the required query root type.",{nodes:t});return n}if("mutation"===t.operation){let n=e.getMutationType();if(!n)throw new w("Schema is not configured for mutations.",{nodes:t});return n}if("subscription"===t.operation){let n=e.getSubscriptionType();if(!n)throw new w("Schema is not configured for subscriptions.",{nodes:t});return n}throw new w("Can only have query, mutation and subscription operations.",{nodes:t})}function iI(e,t){let n=r2({schema:e,document:es(iT({specifiedByUrl:!0,directiveIsRepeatable:!0,schemaDescription:!0,inputValueDeprecation:!0,oneOf:!0,...t}))});return!n.errors&&n.data||_(!1),n.data}function ig(e,t){g(e)&&g(e.__schema)||N(!1,`Invalid or incomplete introspection result. Ensure that you are passing "data" property of introspection response and no "errors" was returned alongside: ${ei(e)}.`);let n=e.__schema,r=eT(n.types,e=>e.name,e=>(function(e){if(null!=e&&null!=e.name&&null!=e.kind)switch(e.kind){case f.SCALAR:return new tI({name:(t=e).name,description:t.description,specifiedByURL:t.specifiedByURL});case f.OBJECT:return new tg({name:(n=e).name,description:n.description,interfaces:()=>d(n),fields:()=>h(n)});case f.INTERFACE:return new tR({name:(r=e).name,description:r.description,interfaces:()=>d(r),fields:()=>h(r)});case f.UNION:var t,n,r,i=e;if(!i.possibleTypes){let e=ei(i);throw Error(`Introspection result missing possibleTypes: ${e}.`)}return new tk({name:i.name,description:i.description,types:()=>i.possibleTypes.map(c)});case f.ENUM:var o=e;if(!o.enumValues){let e=ei(o);throw Error(`Introspection result missing enumValues: ${e}.`)}return new t$({name:o.name,description:o.description,values:eT(o.enumValues,e=>e.name,e=>({description:e.description,deprecationReason:e.deprecationReason}))});case f.INPUT_OBJECT:var a=e;if(!a.inputFields){let e=ei(a);throw Error(`Introspection result missing inputFields: ${e}.`)}return new tC({name:a.name,description:a.description,fields:()=>y(a.inputFields),isOneOf:a.isOneOf})}let s=ei(e);throw Error(`Invalid or incomplete introspection result. Ensure that a full introspection query is used in order to build a client schema: ${s}.`)})(e));for(let e of[...tX,...nf])r[e.name]&&(r[e.name]=e);let i=n.queryType?c(n.queryType):null,o=n.mutationType?c(n.mutationType):null,a=n.subscriptionType?c(n.subscriptionType):null,s=n.directives?n.directives.map(function(e){if(!e.args){let t=ei(e);throw Error(`Introspection result missing directive args: ${t}.`)}if(!e.locations){let t=ei(e);throw Error(`Introspection result missing directive locations: ${t}.`)}return new t0({name:e.name,description:e.description,isRepeatable:e.isRepeatable,locations:e.locations.slice(),args:y(e.args)})}):[];return new nE({description:n.description,query:i,mutation:o,subscription:a,types:Object.values(r),directives:s,assumeValid:null==t?void 0:t.assumeValid});function l(e){if(e.kind===f.LIST){let t=e.ofType;if(!t)throw Error("Decorated type deeper than introspection query.");return new tu(l(t))}if(e.kind===f.NON_NULL){let t=e.ofType;if(!t)throw Error("Decorated type deeper than introspection query.");return new tc(th(l(t)))}return u(e)}function u(e){let t=e.name;if(!t)throw Error(`Unknown type reference: ${ei(e)}.`);let n=r[t];if(!n)throw Error(`Invalid or incomplete schema, unknown type: ${t}. Ensure that a full introspection query is used in order to build a client schema.`);return n}function c(e){return ez(u(e))}function p(e){return eW(u(e))}function d(e){if(null===e.interfaces&&e.kind===f.INTERFACE)return[];if(!e.interfaces){let t=ei(e);throw Error(`Introspection result missing interfaces: ${t}.`)}return e.interfaces.map(p)}function h(e){if(!e.fields)throw Error(`Introspection result missing fields: ${ei(e)}.`);return eT(e.fields,e=>e.name,m)}function m(e){let t=l(e.type);if(!tt(t)){let e=ei(t);throw Error(`Introspection must provide output type for fields, but received: ${e}.`)}if(!e.args){let t=ei(e);throw Error(`Introspection result missing field args: ${t}.`)}return{description:e.description,deprecationReason:e.deprecationReason,type:t,args:y(e.args)}}function y(e){return eT(e,e=>e.name,E)}function E(e){let t=l(e.type);if(!e7(t)){let e=ei(t);throw Error(`Introspection must provide input type for arguments, but received: ${e}.`)}let n=null!=e.defaultValue?rm(el(e.defaultValue),t):void 0;return{description:e.description,type:t,defaultValue:n,deprecationReason:e.deprecationReason}}}function i_(e,t,n){ny(e),null!=t&&t.kind===p.DOCUMENT||N(!1,"Must provide valid Document AST."),(null==n?void 0:n.assumeValid)!==!0&&(null==n?void 0:n.assumeValidSDL)!==!0&&function(e,t){let n=rz(e,t);if(0!==n.length)throw Error(n.map(e=>e.message).join("\n\n"))}(t,e);let r=e.toConfig(),i=iO(r,t,n);return r===i?e:new nE(i)}function iO(e,t,n){var r,i,o,a,s,l;let u,c=[],d=Object.create(null),f=[],h=[];for(let e of t.definitions)if(e.kind===p.SCHEMA_DEFINITION)u=e;else if(e.kind===p.SCHEMA_EXTENSION)h.push(e);else if(nV(e))c.push(e);else if(nM(e)){let t=e.name.value,n=d[t];d[t]=n?n.concat([e]):[e]}else e.kind===p.DIRECTIVE_DEFINITION&&f.push(e);if(0===Object.keys(d).length&&0===c.length&&0===f.length&&0===h.length&&null==u)return e;let m=Object.create(null);for(let t of e.types){m[t.name]=nh(l=t)||tz(l)?l:eJ(l)?function(e){var t,n;let r=e.toConfig(),i=null!=(t=d[r.name])?t:[],o=r.specifiedByURL;for(let e of i)o=null!=(n=iA(e))?n:o;return new tI({...r,specifiedByURL:o,extensionASTNodes:r.extensionASTNodes.concat(i)})}(l):eX(l)?function(e){var t;let n=e.toConfig(),r=null!=(t=d[n.name])?t:[];return new tg({...n,interfaces:()=>[...e.getInterfaces().map(T),...w(r)],fields:()=>({...ev(n.fields,v),...b(r)}),extensionASTNodes:n.extensionASTNodes.concat(r)})}(l):eH(l)?function(e){var t;let n=e.toConfig(),r=null!=(t=d[n.name])?t:[];return new tR({...n,interfaces:()=>[...e.getInterfaces().map(T),...w(r)],fields:()=>({...ev(n.fields,v),...b(r)}),extensionASTNodes:n.extensionASTNodes.concat(r)})}(l):eZ(l)?function(e){var t;let n=e.toConfig(),r=null!=(t=d[n.name])?t:[];return new tk({...n,types:()=>[...e.getTypes().map(T),...R(r)],extensionASTNodes:n.extensionASTNodes.concat(r)})}(l):e1(l)?function(e){var t;let n=e.toConfig(),r=null!=(t=d[e.name])?t:[];return new t$({...n,values:{...n.values,...S(r)},extensionASTNodes:n.extensionASTNodes.concat(r)})}(l):e3(l)?function(e){var t;let n=e.toConfig(),r=null!=(t=d[n.name])?t:[];return new tC({...n,fields:()=>({...ev(n.fields,e=>({...e,type:E(e.type)})),...A(r)}),extensionASTNodes:n.extensionASTNodes.concat(r)})}(l):void _(!1,"Unexpected type: "+ei(l))}for(let e of c){let t=e.name.value;m[t]=null!=(s=ib[t])?s:function(e){var t,n,r,i,o,a,s;let l=e.name.value,u=null!=(t=d[l])?t:[];switch(e.kind){case p.OBJECT_TYPE_DEFINITION:{let t=[e,...u];return new tg({name:l,description:null==(n=e.description)?void 0:n.value,interfaces:()=>w(t),fields:()=>b(t),astNode:e,extensionASTNodes:u})}case p.INTERFACE_TYPE_DEFINITION:{let t=[e,...u];return new tR({name:l,description:null==(r=e.description)?void 0:r.value,interfaces:()=>w(t),fields:()=>b(t),astNode:e,extensionASTNodes:u})}case p.ENUM_TYPE_DEFINITION:{let t=[e,...u];return new t$({name:l,description:null==(i=e.description)?void 0:i.value,values:S(t),astNode:e,extensionASTNodes:u})}case p.UNION_TYPE_DEFINITION:{let t=[e,...u];return new tk({name:l,description:null==(o=e.description)?void 0:o.value,types:()=>R(t),astNode:e,extensionASTNodes:u})}case p.SCALAR_TYPE_DEFINITION:return new tI({name:l,description:null==(a=e.description)?void 0:a.value,specifiedByURL:iA(e),astNode:e,extensionASTNodes:u});case p.INPUT_OBJECT_TYPE_DEFINITION:{let t=[e,...u];return new tC({name:l,description:null==(s=e.description)?void 0:s.value,fields:()=>A(t),astNode:e,extensionASTNodes:u,isOneOf:!!rv(t5,e)})}}}(e)}let y={query:e.query&&T(e.query),mutation:e.mutation&&T(e.mutation),subscription:e.subscription&&T(e.subscription),...u&&I([u]),...I(h)};return{description:null==(r=u)||null==(i=r.description)?void 0:i.value,...y,types:Object.values(m),directives:[...e.directives.map(function(e){let t=e.toConfig();return new t0({...t,args:ev(t.args,N)})}),...f.map(function(e){var t;return new t0({name:e.name.value,description:null==(t=e.description)?void 0:t.value,locations:e.locations.map(({value:e})=>e),isRepeatable:e.repeatable,args:D(e.arguments),astNode:e})})],extensions:Object.create(null),astNode:null!=(o=u)?o:e.astNode,extensionASTNodes:e.extensionASTNodes.concat(h),assumeValid:null!=(a=null==n?void 0:n.assumeValid)&&a};function E(e){return e9(e)?new tu(E(e.ofType)):e8(e)?new tc(E(e.ofType)):T(e)}function T(e){return m[e.name]}function v(e){return{...e,type:E(e.type),args:e.args&&ev(e.args,N)}}function N(e){return{...e,type:E(e.type)}}function I(e){let t={};for(let r of e){var n;for(let e of null!=(n=r.operationTypes)?n:[])t[e.operation]=g(e.type)}return t}function g(e){var t;let n=e.name.value,r=null!=(t=ib[n])?t:m[n];if(void 0===r)throw Error(`Unknown type: "${n}".`);return r}function O(e){return e.kind===p.LIST_TYPE?new tu(O(e.type)):e.kind===p.NON_NULL_TYPE?new tc(O(e.type)):g(e)}function b(e){let t=Object.create(null);for(let i of e){var n,r;for(let e of null!=(n=i.fields)?n:[])t[e.name.value]={type:O(e.type),description:null==(r=e.description)?void 0:r.value,args:D(e.arguments),deprecationReason:iD(e),astNode:e}}return t}function D(e){let t=Object.create(null);for(let r of null!=e?e:[]){var n;let e=O(r.type);t[r.name.value]={type:e,description:null==(n=r.description)?void 0:n.value,defaultValue:rm(r.defaultValue,e),deprecationReason:iD(r),astNode:r}}return t}function A(e){let t=Object.create(null);for(let i of e){var n,r;for(let e of null!=(n=i.fields)?n:[]){let n=O(e.type);t[e.name.value]={type:n,description:null==(r=e.description)?void 0:r.value,defaultValue:rm(e.defaultValue,n),deprecationReason:iD(e),astNode:e}}}return t}function S(e){let t=Object.create(null);for(let i of e){var n,r;for(let e of null!=(n=i.values)?n:[])t[e.name.value]={description:null==(r=e.description)?void 0:r.value,deprecationReason:iD(e),astNode:e}}return t}function w(e){return e.flatMap(e=>{var t,n;return null!=(t=null==(n=e.interfaces)?void 0:n.map(g))?t:[]})}function R(e){return e.flatMap(e=>{var t,n;return null!=(t=null==(n=e.types)?void 0:n.map(g))?t:[]})}}let ib=eE([...tX,...nf],e=>e.name);function iD(e){let t=rv(t4,e);return null==t?void 0:t.reason}function iA(e){let t=rv(t9,e);return null==t?void 0:t.url}function iS(e,t){null!=e&&e.kind===p.DOCUMENT||N(!1,"Must provide valid Document AST."),(null==t?void 0:t.assumeValid)!==!0&&(null==t?void 0:t.assumeValidSDL)!==!0&&function(e){let t=rz(e);if(0!==t.length)throw Error(t.map(e=>e.message).join("\n\n"))}(e);let n=iO({description:void 0,types:[],directives:[],extensions:Object.create(null),extensionASTNodes:[],assumeValid:!1},e,t);if(null==n.astNode)for(let e of n.types)switch(e.name){case"Query":n.query=e;break;case"Mutation":n.mutation=e;break;case"Subscription":n.subscription=e}let r=[...n.directives,...t8.filter(e=>n.directives.every(t=>t.name!==e.name))];return new nE({...n,directives:r})}function iw(e,t){return iS(es(e,{noLocation:null==t?void 0:t.noLocation,allowLegacyFragmentVariables:null==t?void 0:t.allowLegacyFragmentVariables}),{assumeValidSDL:null==t?void 0:t.assumeValidSDL,assumeValid:null==t?void 0:t.assumeValid})}function iR(e){var t,n,r;let i=e.toConfig(),o=eT(iL(i.types),e=>e.name,function(e){if(eJ(e)||nh(e))return e;if(eX(e)){let t=e.toConfig();return new tg({...t,interfaces:()=>c(t.interfaces),fields:()=>u(t.fields)})}if(eH(e)){let t=e.toConfig();return new tR({...t,interfaces:()=>c(t.interfaces),fields:()=>u(t.fields)})}if(eZ(e)){let t=e.toConfig();return new tk({...t,types:()=>c(t.types)})}if(e1(e)){let t=e.toConfig();return new t$({...t,values:ik(t.values,e=>e)})}if(e3(e)){let t=e.toConfig();return new tC({...t,fields:()=>ik(t.fields,e=>({...e,type:a(e.type)}))})}_(!1,"Unexpected type: "+ei(e))});return new nE({...i,types:Object.values(o),directives:iL(i.directives).map(function(e){let t=e.toConfig();return new t0({...t,locations:i$(t.locations,e=>e),args:l(t.args)})}),query:(t=i.query)&&s(t),mutation:(n=i.mutation)&&s(n),subscription:(r=i.subscription)&&s(r)});function a(e){return e9(e)?new tu(a(e.ofType)):e8(e)?new tc(a(e.ofType)):s(e)}function s(e){return o[e.name]}function l(e){return ik(e,e=>({...e,type:a(e.type)}))}function u(e){return ik(e,e=>({...e,type:a(e.type),args:e.args&&l(e.args)}))}function c(e){return iL(e).map(s)}}function ik(e,t){let n=Object.create(null);for(let r of Object.keys(e).sort(eN))n[r]=t(e[r]);return n}function iL(e){return i$(e,e=>e.name)}function i$(e,t){return e.slice().sort((e,n)=>eN(t(e),t(n)))}function ix(e){return iV(e,e=>!t6(e),iC)}function iF(e){return iV(e,t6,nh)}function iC(e){return!tz(e)&&!nh(e)}function iV(e,t,n){let r=e.getDirectives().filter(t),i=Object.values(e.getTypeMap()).filter(n);return[function(e){if(null==e.description&&function(e){let t=e.getQueryType();if(t&&"Query"!==t.name)return!1;let n=e.getMutationType();if(n&&"Mutation"!==n.name)return!1;let r=e.getSubscriptionType();return!r||"Subscription"===r.name}(e))return;let t=[],n=e.getQueryType();n&&t.push(` query: ${n.name}`);let r=e.getMutationType();r&&t.push(` mutation: ${r.name}`);let i=e.getSubscriptionType();return i&&t.push(` subscription: ${i.name}`),iQ(e)+`schema { +${t.join("\n")} +}`}(e),...r.map(e=>{var t;return iQ(t=e)+"directive @"+t.name+iG(t.args)+(t.isRepeatable?" repeatable":"")+" on "+t.locations.join(" | ")}),...i.map(e=>iU(e))].filter(Boolean).join("\n\n")}function iU(e){var t,n,r,i,o,a;let s,l,u,c;return eJ(e)?iQ(t=e)+`scalar ${t.name}`+function(e){if(null==e.specifiedByURL)return"";let t=eF({kind:p.STRING,value:e.specifiedByURL});return` @specifiedBy(url: ${t})`}(t):eX(e)?iQ(n=e)+`type ${n.name}`+iM(n)+ij(n):eH(e)?iQ(r=e)+`interface ${r.name}`+iM(r)+ij(r):eZ(e)?(l=(s=(i=e).getTypes()).length?" = "+s.join(" | "):"",iQ(i)+"union "+i.name+l):e1(e)?(u=(o=e).getValues().map((e,t)=>iQ(e," ",!t)+" "+e.name+iY(e.deprecationReason)),iQ(o)+`enum ${o.name}`+iP(u)):e3(e)?(c=Object.values((a=e).getFields()).map((e,t)=>iQ(e," ",!t)+" "+iB(e)),iQ(a)+`input ${a.name}`+(a.isOneOf?" @oneOf":"")+iP(c)):void _(!1,"Unexpected type: "+ei(e))}function iM(e){let t=e.getInterfaces();return t.length?" implements "+t.map(e=>e.name).join(" & "):""}function ij(e){return iP(Object.values(e.getFields()).map((e,t)=>iQ(e," ",!t)+" "+e.name+iG(e.args," ")+": "+String(e.type)+iY(e.deprecationReason)))}function iP(e){return 0!==e.length?" {\n"+e.join("\n")+"\n}":""}function iG(e,t=""){return 0===e.length?"":e.every(e=>!e.description)?"("+e.map(iB).join(", ")+")":"(\n"+e.map((e,n)=>iQ(e," "+t,!n)+" "+t+iB(e)).join("\n")+"\n"+t+")"}function iB(e){let t=ne(e.defaultValue,e.type),n=e.name+": "+String(e.type);return t&&(n+=` = ${eF(t)}`),n+iY(e.deprecationReason)}function iY(e){if(null==e)return"";if(e!==t3){let t=eF({kind:p.STRING,value:e});return` @deprecated(reason: ${t})`}return" @deprecated"}function iQ(e,t="",n=!0){let{description:r}=e;return null==r?"":(t&&!n?"\n"+t:t)+eF({kind:p.STRING,value:r,block:function(e){if(""===e)return!0;let t=!0,n=!1,r=!0,i=!1;for(let o=0;oe===i||e.kind===p.FRAGMENT_DEFINITION&&t.has(e.name.value))}}return r}function iK(e){let t=[];return ek(e,{FragmentSpread(e){t.push(e.name.value)}}),t}function iX(e){let t=eo(e,ea)?e:new ea(e),n=t.body,r=new Q(t),i="",o=!1;for(;r.advance().kind!==d.EOF;){let e=r.token,t=e.kind,a=!q(e.kind);o&&(a||e.kind===d.SPREAD)&&(i+=" ");let s=n.slice(e.start,e.end);t===d.BLOCK_STRING?i+=Y(e.value,{minimize:!0}):i+=s,o=a}return i}function iz(e){let t=iH(e);if(t)throw t;return e}function iH(e){if("string"==typeof e||N(!1,"Expected name to be a string."),e.startsWith("__"))return new w(`Name "${e}" must not begin with "__", which is reserved by GraphQL introspection.`);try{eB(e)}catch(e){return e}}function iW(e,t){return i0(e,t).filter(e=>e.type in h)}function iZ(e,t){return i0(e,t).filter(e=>e.type in m)}function i0(e,t){return[...function(e,t){let n=[],r=i4(Object.values(e.getTypeMap()),Object.values(t.getTypeMap()));for(let e of r.removed)n.push({type:h.TYPE_REMOVED,description:tz(e)?`Standard scalar ${e.name} was removed because it is not referenced anymore.`:`${e.name} was removed.`});for(let[e,t]of r.persisted)e1(e)&&e1(t)?n.push(...function(e,t){let n=[],r=i4(e.getValues(),t.getValues());for(let t of r.added)n.push({type:m.VALUE_ADDED_TO_ENUM,description:`${t.name} was added to enum type ${e.name}.`});for(let t of r.removed)n.push({type:h.VALUE_REMOVED_FROM_ENUM,description:`${t.name} was removed from enum type ${e.name}.`});return n}(e,t)):eZ(e)&&eZ(t)?n.push(...function(e,t){let n=[],r=i4(e.getTypes(),t.getTypes());for(let t of r.added)n.push({type:m.TYPE_ADDED_TO_UNION,description:`${t.name} was added to union type ${e.name}.`});for(let t of r.removed)n.push({type:h.TYPE_REMOVED_FROM_UNION,description:`${t.name} was removed from union type ${e.name}.`});return n}(e,t)):e3(e)&&e3(t)?n.push(...function(e,t){let n=[],r=i4(Object.values(e.getFields()),Object.values(t.getFields()));for(let t of r.added)tU(t)?n.push({type:h.REQUIRED_INPUT_FIELD_ADDED,description:`A required field ${t.name} on input type ${e.name} was added.`}):n.push({type:m.OPTIONAL_INPUT_FIELD_ADDED,description:`An optional field ${t.name} on input type ${e.name} was added.`});for(let t of r.removed)n.push({type:h.FIELD_REMOVED,description:`${e.name}.${t.name} was removed.`});for(let[t,i]of r.persisted)i1(t.type,i.type)||n.push({type:h.FIELD_CHANGED_KIND,description:`${e.name}.${t.name} changed type from ${String(t.type)} to ${String(i.type)}.`});return n}(e,t)):eX(e)&&eX(t)||eH(e)&&eH(t)?n.push(...function(e,t){let n=[],r=i4(Object.values(e.getFields()),Object.values(t.getFields()));for(let t of r.removed)n.push({type:h.FIELD_REMOVED,description:`${e.name}.${t.name} was removed.`});for(let[t,i]of r.persisted)n.push(...function(e,t,n){let r=[],i=i4(t.args,n.args);for(let n of i.removed)r.push({type:h.ARG_REMOVED,description:`${e.name}.${t.name} arg ${n.name} was removed.`});for(let[n,o]of i.persisted)if(i1(n.type,o.type)){if(void 0!==n.defaultValue)if(void 0===o.defaultValue)r.push({type:m.ARG_DEFAULT_VALUE_CHANGE,description:`${e.name}.${t.name} arg ${n.name} defaultValue was removed.`});else{let i=i3(n.defaultValue,n.type),a=i3(o.defaultValue,o.type);i!==a&&r.push({type:m.ARG_DEFAULT_VALUE_CHANGE,description:`${e.name}.${t.name} arg ${n.name} has changed defaultValue from ${i} to ${a}.`})}}else r.push({type:h.ARG_CHANGED_KIND,description:`${e.name}.${t.name} arg ${n.name} has changed type from ${String(n.type)} to ${String(o.type)}.`});for(let n of i.added)tw(n)?r.push({type:h.REQUIRED_ARG_ADDED,description:`A required arg ${n.name} on ${e.name}.${t.name} was added.`}):r.push({type:m.OPTIONAL_ARG_ADDED,description:`An optional arg ${n.name} on ${e.name}.${t.name} was added.`});return r}(e,t,i)),!function e(t,n){return e9(t)?e9(n)&&e(t.ofType,n.ofType)||e8(n)&&e(t,n.ofType):e8(t)?e8(n)&&e(t.ofType,n.ofType):ty(n)&&t.name===n.name||e8(n)&&e(t,n.ofType)}(t.type,i.type)&&n.push({type:h.FIELD_CHANGED_KIND,description:`${e.name}.${t.name} changed type from ${String(t.type)} to ${String(i.type)}.`});return n}(e,t),...function(e,t){let n=[],r=i4(e.getInterfaces(),t.getInterfaces());for(let t of r.added)n.push({type:m.IMPLEMENTED_INTERFACE_ADDED,description:`${t.name} added to interfaces implemented by ${e.name}.`});for(let t of r.removed)n.push({type:h.IMPLEMENTED_INTERFACE_REMOVED,description:`${e.name} no longer implements interface ${t.name}.`});return n}(e,t)):e.constructor!==t.constructor&&n.push({type:h.TYPE_CHANGED_KIND,description:`${e.name} changed from ${i2(e)} to ${i2(t)}.`});return n}(e,t),...function(e,t){let n=[],r=i4(e.getDirectives(),t.getDirectives());for(let e of r.removed)n.push({type:h.DIRECTIVE_REMOVED,description:`${e.name} was removed.`});for(let[e,t]of r.persisted){let r=i4(e.args,t.args);for(let t of r.added)tw(t)&&n.push({type:h.REQUIRED_DIRECTIVE_ARG_ADDED,description:`A required arg ${t.name} on directive ${e.name} was added.`});for(let t of r.removed)n.push({type:h.DIRECTIVE_ARG_REMOVED,description:`${t.name} was removed from ${e.name}.`});for(let r of(e.isRepeatable&&!t.isRepeatable&&n.push({type:h.DIRECTIVE_REPEATABLE_REMOVED,description:`Repeatable flag was removed from ${e.name}.`}),e.locations))t.locations.includes(r)||n.push({type:h.DIRECTIVE_LOCATION_REMOVED,description:`${r} was removed from ${e.name}.`})}return n}(e,t)]}(s=h||(h={})).TYPE_REMOVED="TYPE_REMOVED",s.TYPE_CHANGED_KIND="TYPE_CHANGED_KIND",s.TYPE_REMOVED_FROM_UNION="TYPE_REMOVED_FROM_UNION",s.VALUE_REMOVED_FROM_ENUM="VALUE_REMOVED_FROM_ENUM",s.REQUIRED_INPUT_FIELD_ADDED="REQUIRED_INPUT_FIELD_ADDED",s.IMPLEMENTED_INTERFACE_REMOVED="IMPLEMENTED_INTERFACE_REMOVED",s.FIELD_REMOVED="FIELD_REMOVED",s.FIELD_CHANGED_KIND="FIELD_CHANGED_KIND",s.REQUIRED_ARG_ADDED="REQUIRED_ARG_ADDED",s.ARG_REMOVED="ARG_REMOVED",s.ARG_CHANGED_KIND="ARG_CHANGED_KIND",s.DIRECTIVE_REMOVED="DIRECTIVE_REMOVED",s.DIRECTIVE_ARG_REMOVED="DIRECTIVE_ARG_REMOVED",s.REQUIRED_DIRECTIVE_ARG_ADDED="REQUIRED_DIRECTIVE_ARG_ADDED",s.DIRECTIVE_REPEATABLE_REMOVED="DIRECTIVE_REPEATABLE_REMOVED",s.DIRECTIVE_LOCATION_REMOVED="DIRECTIVE_LOCATION_REMOVED",(l=m||(m={})).VALUE_ADDED_TO_ENUM="VALUE_ADDED_TO_ENUM",l.TYPE_ADDED_TO_UNION="TYPE_ADDED_TO_UNION",l.OPTIONAL_INPUT_FIELD_ADDED="OPTIONAL_INPUT_FIELD_ADDED",l.OPTIONAL_ARG_ADDED="OPTIONAL_ARG_ADDED",l.IMPLEMENTED_INTERFACE_ADDED="IMPLEMENTED_INTERFACE_ADDED",l.ARG_DEFAULT_VALUE_CHANGE="ARG_DEFAULT_VALUE_CHANGE";function i1(e,t){return e9(e)?e9(t)&&i1(e.ofType,t.ofType):e8(e)?e8(t)&&i1(e.ofType,t.ofType)||!e8(t)&&i1(e.ofType,t):ty(t)&&e.name===t.name}function i2(e){return eJ(e)?"a Scalar type":eX(e)?"an Object type":eH(e)?"an Interface type":eZ(e)?"a Union type":e1(e)?"an Enum type":e3(e)?"an Input type":void _(!1,"Unexpected type: "+ei(e))}function i3(e,t){let n=ne(e,t);return null!=n||_(!1),eF(n3(n))}function i4(e,t){let n=[],r=[],i=[],o=eE(e,({name:e})=>e),a=eE(t,({name:e})=>e);for(let t of e){let e=a[t.name];void 0===e?r.push(t):i.push([t,e])}for(let e of t)void 0===o[e.name]&&n.push(e);return{added:n,persisted:i,removed:r}}function i9(e,t){return i5(e,ep(t))}function i5(e,t){switch(t.kind){case p.TYPE_COORDINATE:let n=t.name.value,r=e.getType(n);if(null!=r)return{kind:"NamedType",type:r};return;case p.MEMBER_COORDINATE:return function(e,t){let n=t.name.value,r=e.getType(n);if(!r)throw Error(`Expected ${ei(n)} to be defined as a type in the schema.`);if(!e1(r)&&!e3(r)&&!eX(r)&&!eH(r))throw Error(`Expected ${ei(n)} to be an Enum, Input Object, Object or Interface type.`);if(e1(r)){let e=t.memberName.value,n=r.getValue(e);if(null==n)return;return{kind:"EnumValue",type:r,enumValue:n}}if(e3(r)){let e=t.memberName.value,n=r.getFields()[e];if(null==n)return;return{kind:"InputField",type:r,inputField:n}}let i=t.memberName.value,o=r.getFields()[i];if(null!=o)return{kind:"Field",type:r,field:o}}(e,t);case p.ARGUMENT_COORDINATE:return function(e,t){let n=t.name.value,r=e.getType(n);if(null==r)throw Error(`Expected ${ei(n)} to be defined as a type in the schema.`);if(!eX(r)&&!eH(r))throw Error(`Expected ${ei(n)} to be an object type or interface type.`);let i=t.fieldName.value,o=r.getFields()[i];if(null==o)throw Error(`Expected ${ei(i)} to exist as a field of type ${ei(n)} in the schema.`);let a=t.argumentName.value,s=o.args.find(e=>e.name===a);if(null!=s)return{kind:"FieldArgument",type:r,field:o,fieldArgument:s}}(e,t);case p.DIRECTIVE_COORDINATE:let i=t.name.value,o=e.getDirective(i);if(o)return{kind:"Directive",directive:o};return;case p.DIRECTIVE_ARGUMENT_COORDINATE:return function(e,t){let n=t.name.value,r=e.getDirective(n);if(!r)throw Error(`Expected ${ei(n)} to be defined as a directive in the schema.`);let{argumentName:{value:i}}=t,o=r.args.find(e=>e.name===i);if(o)return{kind:"DirectiveArgument",directive:r,directiveArgument:o}}(e,t)}}module.exports=E})(); \ No newline at end of file diff --git a/packages/node_modules/graphql/language/index.js b/packages/node_modules/graphql/language/index.js deleted file mode 100644 index db6401f699e..00000000000 --- a/packages/node_modules/graphql/language/index.js +++ /dev/null @@ -1,13 +0,0 @@ -(()=>{"use strict";var e,n,t,i,r,o,s,a,l,u,c,d,p={7561:function(e,n,t){Object.defineProperty(n,"__esModule",{value:!0}),n.GraphQLError=void 0,n.formatError=function(e){return e.toJSON()},n.printError=function(e){return e.toString()};var i=t(7006),r=t(8515),o=t(5018);class s extends Error{constructor(e,...n){var t,o,l;const{nodes:u,source:c,positions:d,path:p,originalError:h,extensions:T}=function(e){let n=e[0];return null==n||"kind"in n||"length"in n?{nodes:n,source:e[1],positions:e[2],path:e[3],originalError:e[4],extensions:e[5]}:n}(n);super(e),this.name="GraphQLError",this.path=null!=p?p:void 0,this.originalError=null!=h?h:void 0,this.nodes=a(Array.isArray(u)?u:u?[u]:void 0);const f=a(null==(t=this.nodes)?void 0:t.map(e=>e.loc).filter(e=>null!=e));this.source=null!=c?c:null==f||null==(o=f[0])?void 0:o.source,this.positions=null!=d?d:null==f?void 0:f.map(e=>e.start),this.locations=d&&c?d.map(e=>(0,r.getLocation)(c,e)):null==f?void 0:f.map(e=>(0,r.getLocation)(e.source,e.start));const E=(0,i.isObjectLike)(null==h?void 0:h.extensions)?null==h?void 0:h.extensions:void 0;this.extensions=null!=(l=null!=T?T:E)?l:Object.create(null),Object.defineProperties(this,{message:{writable:!0,enumerable:!0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),null!=h&&h.stack?Object.defineProperty(this,"stack",{value:h.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,s):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let e=this.message;if(this.nodes)for(let n of this.nodes)n.loc&&(e+="\n\n"+(0,o.printLocation)(n.loc));else if(this.source&&this.locations)for(let n of this.locations)e+="\n\n"+(0,o.printSourceLocation)(this.source,n);return e}toJSON(){let e={message:this.message};return null!=this.locations&&(e.locations=this.locations),null!=this.path&&(e.path=this.path),null!=this.extensions&&Object.keys(this.extensions).length>0&&(e.extensions=this.extensions),e}}function a(e){return void 0===e||0===e.length?void 0:e}n.GraphQLError=s},221:function(e,n,t){Object.defineProperty(n,"__esModule",{value:!0}),n.syntaxError=function(e,n,t){return new i.GraphQLError(`Syntax Error: ${t}`,{source:e,positions:[n]})};var i=t(7561)},861:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.devAssert=function(e,n){if(!e)throw Error(n)}},7704:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.inspect=function(e){return function e(n,t){switch(typeof n){case"string":return JSON.stringify(n);case"function":return n.name?`[function ${n.name}]`:"[function]";case"object":return function(n,t){let i;if(null===n)return"null";if(t.includes(n))return"[Circular]";let r=[...t,n];if("function"==typeof n.toJSON){let t=n.toJSON();if(t!==n)return"string"==typeof t?t:e(t,r)}else if(Array.isArray(n)){var o,s,a=n,l=r;if(0===a.length)return"[]";if(l.length>2)return"[Array]";let t=Math.min(10,a.length),i=a.length-t,u=[];for(let n=0;n1&&u.push(`... ${i} more items`),"["+u.join(", ")+"]"}return o=n,s=r,0===(i=Object.entries(o)).length?"{}":s.length>2?"["+function(e){let n=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if("Object"===n&&"function"==typeof e.constructor){let n=e.constructor.name;if("string"==typeof n&&""!==n)return n}return n}(o)+"]":"{ "+i.map(([n,t])=>n+": "+e(t,s)).join(", ")+" }"}(n,t);default:return String(n)}}(e,[])}},8092:function(e,n,t){Object.defineProperty(n,"__esModule",{value:!0}),n.instanceOf=void 0;var i=t(7704);n.instanceOf=globalThis.process&&1?function(e,n){return e instanceof n}:function(e,n){if(e instanceof n)return!0;if("object"==typeof e&&null!==e){var t;let r=n.prototype[Symbol.toStringTag];if(r===(Symbol.toStringTag in e?e[Symbol.toStringTag]:null==(t=e.constructor)?void 0:t.name)){let n=(0,i.inspect)(e);throw Error(`Cannot use ${r} "${n}" from another module or realm. - -Ensure that there is only one instance of "graphql" in the node_modules -directory. If different versions of "graphql" are the dependencies of other -relied on modules, use "resolutions" to ensure only one version is installed. - -https://yarnpkg.com/en/docs/selective-version-resolutions - -Duplicate "graphql" modules cannot be used at the same time since different -versions may have different capabilities and behavior. The data from one -version used in the function from another could produce confusing and -spurious results.`)}}return!1}},8512:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.invariant=function(e,n){if(!e)throw Error(null!=n?n:"Unexpected invariant triggered.")}},7006:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.isObjectLike=function(e){return"object"==typeof e&&null!==e}},7226:function(e,n){var t,i;Object.defineProperty(n,"__esModule",{value:!0}),n.Token=n.QueryDocumentKeys=n.OperationTypeNode=n.Location=void 0,n.isNode=function(e){let n=null==e?void 0:e.kind;return"string"==typeof n&&a.has(n)};class r{constructor(e,n,t){this.start=e.start,this.end=n.end,this.startToken=e,this.endToken=n,this.source=t}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}}n.Location=r;class o{constructor(e,n,t,i,r,o){this.kind=e,this.start=n,this.end=t,this.line=i,this.column=r,this.value=o,this.prev=null,this.next=null}get[Symbol.toStringTag](){return"Token"}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}}n.Token=o;let s={Name:[],Document:["definitions"],OperationDefinition:["description","name","variableDefinitions","directives","selectionSet"],VariableDefinition:["description","variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["description","name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"],TypeCoordinate:["name"],MemberCoordinate:["name","memberName"],ArgumentCoordinate:["name","fieldName","argumentName"],DirectiveCoordinate:["name"],DirectiveArgumentCoordinate:["name","argumentName"]};n.QueryDocumentKeys=s;let a=new Set(Object.keys(s));n.OperationTypeNode=t,(i=t||(n.OperationTypeNode=t={})).QUERY="query",i.MUTATION="mutation",i.SUBSCRIPTION="subscription"},6158:function(e,n,t){Object.defineProperty(n,"__esModule",{value:!0}),n.dedentBlockStringLines=function(e){var n,t;let r=Number.MAX_SAFE_INTEGER,o=null,s=-1;for(let n=0;n0===n?e:e.slice(r)).slice(null!=(n=o)?n:0,s+1)},n.isPrintableAsBlockString=function(e){if(""===e)return!0;let n=!0,t=!1,i=!0,r=!1;for(let o=0;o1&&r.slice(1).every(e=>0===e.length||(0,i.isWhiteSpace)(e.charCodeAt(0))),a=t.endsWith('\\"""'),l=e.endsWith('"')&&!a,u=e.endsWith("\\"),c=l||u,d=!(null!=n&&n.minimize)&&(!o||e.length>70||c||s||a),p="",h=o&&(0,i.isWhiteSpace)(e.charCodeAt(0));return(d&&!h||s)&&(p+="\n"),p+=t,(d||c)&&(p+="\n"),'"""'+p+'"""'};var i=t(9349)},9349:function(e,n){function t(e){return e>=48&&e<=57}function i(e){return e>=97&&e<=122||e>=65&&e<=90}Object.defineProperty(n,"__esModule",{value:!0}),n.isDigit=t,n.isLetter=i,n.isNameContinue=function(e){return i(e)||t(e)||95===e},n.isNameStart=function(e){return i(e)||95===e},n.isWhiteSpace=function(e){return 9===e||32===e}},9996:function(e,n){var t,i;Object.defineProperty(n,"__esModule",{value:!0}),n.DirectiveLocation=void 0,n.DirectiveLocation=t,(i=t||(n.DirectiveLocation=t={})).QUERY="QUERY",i.MUTATION="MUTATION",i.SUBSCRIPTION="SUBSCRIPTION",i.FIELD="FIELD",i.FRAGMENT_DEFINITION="FRAGMENT_DEFINITION",i.FRAGMENT_SPREAD="FRAGMENT_SPREAD",i.INLINE_FRAGMENT="INLINE_FRAGMENT",i.VARIABLE_DEFINITION="VARIABLE_DEFINITION",i.SCHEMA="SCHEMA",i.SCALAR="SCALAR",i.OBJECT="OBJECT",i.FIELD_DEFINITION="FIELD_DEFINITION",i.ARGUMENT_DEFINITION="ARGUMENT_DEFINITION",i.INTERFACE="INTERFACE",i.UNION="UNION",i.ENUM="ENUM",i.ENUM_VALUE="ENUM_VALUE",i.INPUT_OBJECT="INPUT_OBJECT",i.INPUT_FIELD_DEFINITION="INPUT_FIELD_DEFINITION"},8433:function(e,n){var t,i;Object.defineProperty(n,"__esModule",{value:!0}),n.Kind=void 0,n.Kind=t,(i=t||(n.Kind=t={})).NAME="Name",i.DOCUMENT="Document",i.OPERATION_DEFINITION="OperationDefinition",i.VARIABLE_DEFINITION="VariableDefinition",i.SELECTION_SET="SelectionSet",i.FIELD="Field",i.ARGUMENT="Argument",i.FRAGMENT_SPREAD="FragmentSpread",i.INLINE_FRAGMENT="InlineFragment",i.FRAGMENT_DEFINITION="FragmentDefinition",i.VARIABLE="Variable",i.INT="IntValue",i.FLOAT="FloatValue",i.STRING="StringValue",i.BOOLEAN="BooleanValue",i.NULL="NullValue",i.ENUM="EnumValue",i.LIST="ListValue",i.OBJECT="ObjectValue",i.OBJECT_FIELD="ObjectField",i.DIRECTIVE="Directive",i.NAMED_TYPE="NamedType",i.LIST_TYPE="ListType",i.NON_NULL_TYPE="NonNullType",i.SCHEMA_DEFINITION="SchemaDefinition",i.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",i.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",i.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",i.FIELD_DEFINITION="FieldDefinition",i.INPUT_VALUE_DEFINITION="InputValueDefinition",i.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",i.UNION_TYPE_DEFINITION="UnionTypeDefinition",i.ENUM_TYPE_DEFINITION="EnumTypeDefinition",i.ENUM_VALUE_DEFINITION="EnumValueDefinition",i.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",i.DIRECTIVE_DEFINITION="DirectiveDefinition",i.SCHEMA_EXTENSION="SchemaExtension",i.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",i.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",i.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",i.UNION_TYPE_EXTENSION="UnionTypeExtension",i.ENUM_TYPE_EXTENSION="EnumTypeExtension",i.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension",i.TYPE_COORDINATE="TypeCoordinate",i.MEMBER_COORDINATE="MemberCoordinate",i.ARGUMENT_COORDINATE="ArgumentCoordinate",i.DIRECTIVE_COORDINATE="DirectiveCoordinate",i.DIRECTIVE_ARGUMENT_COORDINATE="DirectiveArgumentCoordinate"},5316:function(e,n,t){Object.defineProperty(n,"__esModule",{value:!0}),n.Lexer=void 0,n.createToken=T,n.isPunctuatorTokenKind=function(e){return e===a.TokenKind.BANG||e===a.TokenKind.DOLLAR||e===a.TokenKind.AMP||e===a.TokenKind.PAREN_L||e===a.TokenKind.PAREN_R||e===a.TokenKind.DOT||e===a.TokenKind.SPREAD||e===a.TokenKind.COLON||e===a.TokenKind.EQUALS||e===a.TokenKind.AT||e===a.TokenKind.BRACKET_L||e===a.TokenKind.BRACKET_R||e===a.TokenKind.BRACE_L||e===a.TokenKind.PIPE||e===a.TokenKind.BRACE_R},n.printCodePointAt=h,n.readName=k;var i=t(221),r=t(7226),o=t(6158),s=t(9349),a=t(5229);class l{constructor(e){const n=new r.Token(a.TokenKind.SOF,0,0,0,0);this.source=e,this.lastToken=n,this.token=n,this.line=1,this.lineStart=0}get[Symbol.toStringTag](){return"Lexer"}advance(){return this.lastToken=this.token,this.token=this.lookahead()}lookahead(){let e=this.token;if(e.kind!==a.TokenKind.EOF)do if(e.next)e=e.next;else{let n=function(e,n){let t=e.source.body,r=t.length,l=n;for(;l=0&&e<=55295||e>=57344&&e<=1114111}function c(e,n){return d(e.charCodeAt(n))&&p(e.charCodeAt(n+1))}function d(e){return e>=55296&&e<=56319}function p(e){return e>=56320&&e<=57343}function h(e,n){let t=e.source.body.codePointAt(n);if(void 0===t)return a.TokenKind.EOF;if(t>=32&&t<=126){let e=String.fromCodePoint(t);return'"'===e?"'\"'":`"${e}"`}return"U+"+t.toString(16).toUpperCase().padStart(4,"0")}function T(e,n,t,i,o){let s=e.line,a=1+t-e.lineStart;return new r.Token(n,t,i,s,a,o)}function f(e,n,t){if(!(0,s.isDigit)(t))throw(0,i.syntaxError)(e.source,n,`Invalid number, expected digit but got: ${h(e,n)}.`);let r=e.source.body,o=n+1;for(;(0,s.isDigit)(r.charCodeAt(o));)++o;return o}function E(e,n){return N(e.charCodeAt(n))<<12|N(e.charCodeAt(n+1))<<8|N(e.charCodeAt(n+2))<<4|N(e.charCodeAt(n+3))}function N(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function k(e,n){let t=e.source.body,i=t.length,r=n+1;for(;r=n)break;t=s.index+s[0].length,o+=1}return{line:o,column:n+1-t}};var i=t(8512);let r=/\r\n|[\n\r]/g},5259:function(e,n,t){Object.defineProperty(n,"__esModule",{value:!0}),n.Parser=void 0,n.parse=function(e,n){let t=new d(e,n),i=t.parseDocument();return Object.defineProperty(i,"tokenCount",{enumerable:!1,value:t.tokenCount}),i},n.parseConstValue=function(e,n){let t=new d(e,n);t.expectToken(c.TokenKind.SOF);let i=t.parseConstValueLiteral();return t.expectToken(c.TokenKind.EOF),i},n.parseSchemaCoordinate=function(e){let n=(0,u.isSource)(e)?e:new u.Source(e),t=new d(e,{lexer:new l.SchemaCoordinateLexer(n)});t.expectToken(c.TokenKind.SOF);let i=t.parseSchemaCoordinate();return t.expectToken(c.TokenKind.EOF),i},n.parseType=function(e,n){let t=new d(e,n);t.expectToken(c.TokenKind.SOF);let i=t.parseTypeReference();return t.expectToken(c.TokenKind.EOF),i},n.parseValue=function(e,n){let t=new d(e,n);t.expectToken(c.TokenKind.SOF);let i=t.parseValueLiteral(!1);return t.expectToken(c.TokenKind.EOF),i};var i=t(221),r=t(7226),o=t(9996),s=t(8433),a=t(5316),l=t(9587),u=t(8457),c=t(5229);class d{constructor(e,n={}){const{lexer:t,...i}=n;if(t)this._lexer=t;else{const n=(0,u.isSource)(e)?e:new u.Source(e);this._lexer=new a.Lexer(n)}this._options=i,this._tokenCounter=0}get tokenCount(){return this._tokenCounter}parseName(){let e=this.expectToken(c.TokenKind.NAME);return this.node(e,{kind:s.Kind.NAME,value:e.value})}parseDocument(){return this.node(this._lexer.token,{kind:s.Kind.DOCUMENT,definitions:this.many(c.TokenKind.SOF,this.parseDefinition,c.TokenKind.EOF)})}parseDefinition(){if(this.peek(c.TokenKind.BRACE_L))return this.parseOperationDefinition();let e=this.peekDescription(),n=e?this._lexer.lookahead():this._lexer.token;if(e&&n.kind===c.TokenKind.BRACE_L)throw(0,i.syntaxError)(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are not supported on shorthand queries.");if(n.kind===c.TokenKind.NAME){switch(n.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}switch(n.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition()}if(e)throw(0,i.syntaxError)(this._lexer.source,this._lexer.token.start,"Unexpected description, only GraphQL definitions support descriptions.");if("extend"===n.value)return this.parseTypeSystemExtension()}throw this.unexpected(n)}parseOperationDefinition(){let e,n=this._lexer.token;if(this.peek(c.TokenKind.BRACE_L))return this.node(n,{kind:s.Kind.OPERATION_DEFINITION,operation:r.OperationTypeNode.QUERY,description:void 0,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});let t=this.parseDescription(),i=this.parseOperationType();return this.peek(c.TokenKind.NAME)&&(e=this.parseName()),this.node(n,{kind:s.Kind.OPERATION_DEFINITION,operation:i,description:t,name:e,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){let e=this.expectToken(c.TokenKind.NAME);switch(e.value){case"query":return r.OperationTypeNode.QUERY;case"mutation":return r.OperationTypeNode.MUTATION;case"subscription":return r.OperationTypeNode.SUBSCRIPTION}throw this.unexpected(e)}parseVariableDefinitions(){return this.optionalMany(c.TokenKind.PAREN_L,this.parseVariableDefinition,c.TokenKind.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:s.Kind.VARIABLE_DEFINITION,description:this.parseDescription(),variable:this.parseVariable(),type:(this.expectToken(c.TokenKind.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(c.TokenKind.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){let e=this._lexer.token;return this.expectToken(c.TokenKind.DOLLAR),this.node(e,{kind:s.Kind.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:s.Kind.SELECTION_SET,selections:this.many(c.TokenKind.BRACE_L,this.parseSelection,c.TokenKind.BRACE_R)})}parseSelection(){return this.peek(c.TokenKind.SPREAD)?this.parseFragment():this.parseField()}parseField(){let e,n,t=this._lexer.token,i=this.parseName();return this.expectOptionalToken(c.TokenKind.COLON)?(e=i,n=this.parseName()):n=i,this.node(t,{kind:s.Kind.FIELD,alias:e,name:n,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(c.TokenKind.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(e){let n=e?this.parseConstArgument:this.parseArgument;return this.optionalMany(c.TokenKind.PAREN_L,n,c.TokenKind.PAREN_R)}parseArgument(e=!1){let n=this._lexer.token,t=this.parseName();return this.expectToken(c.TokenKind.COLON),this.node(n,{kind:s.Kind.ARGUMENT,name:t,value:this.parseValueLiteral(e)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){let e=this._lexer.token;this.expectToken(c.TokenKind.SPREAD);let n=this.expectOptionalKeyword("on");return!n&&this.peek(c.TokenKind.NAME)?this.node(e,{kind:s.Kind.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(e,{kind:s.Kind.INLINE_FRAGMENT,typeCondition:n?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){let e=this._lexer.token,n=this.parseDescription();return(this.expectKeyword("fragment"),!0===this._options.allowLegacyFragmentVariables)?this.node(e,{kind:s.Kind.FRAGMENT_DEFINITION,description:n,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}):this.node(e,{kind:s.Kind.FRAGMENT_DEFINITION,description:n,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentName(){if("on"===this._lexer.token.value)throw this.unexpected();return this.parseName()}parseValueLiteral(e){let n=this._lexer.token;switch(n.kind){case c.TokenKind.BRACKET_L:return this.parseList(e);case c.TokenKind.BRACE_L:return this.parseObject(e);case c.TokenKind.INT:return this.advanceLexer(),this.node(n,{kind:s.Kind.INT,value:n.value});case c.TokenKind.FLOAT:return this.advanceLexer(),this.node(n,{kind:s.Kind.FLOAT,value:n.value});case c.TokenKind.STRING:case c.TokenKind.BLOCK_STRING:return this.parseStringLiteral();case c.TokenKind.NAME:switch(this.advanceLexer(),n.value){case"true":return this.node(n,{kind:s.Kind.BOOLEAN,value:!0});case"false":return this.node(n,{kind:s.Kind.BOOLEAN,value:!1});case"null":return this.node(n,{kind:s.Kind.NULL});default:return this.node(n,{kind:s.Kind.ENUM,value:n.value})}case c.TokenKind.DOLLAR:if(e){if(this.expectToken(c.TokenKind.DOLLAR),this._lexer.token.kind===c.TokenKind.NAME){let e=this._lexer.token.value;throw(0,i.syntaxError)(this._lexer.source,n.start,`Unexpected variable "$${e}" in constant value.`)}throw this.unexpected(n)}return this.parseVariable();default:throw this.unexpected()}}parseConstValueLiteral(){return this.parseValueLiteral(!0)}parseStringLiteral(){let e=this._lexer.token;return this.advanceLexer(),this.node(e,{kind:s.Kind.STRING,value:e.value,block:e.kind===c.TokenKind.BLOCK_STRING})}parseList(e){let n=()=>this.parseValueLiteral(e);return this.node(this._lexer.token,{kind:s.Kind.LIST,values:this.any(c.TokenKind.BRACKET_L,n,c.TokenKind.BRACKET_R)})}parseObject(e){let n=()=>this.parseObjectField(e);return this.node(this._lexer.token,{kind:s.Kind.OBJECT,fields:this.any(c.TokenKind.BRACE_L,n,c.TokenKind.BRACE_R)})}parseObjectField(e){let n=this._lexer.token,t=this.parseName();return this.expectToken(c.TokenKind.COLON),this.node(n,{kind:s.Kind.OBJECT_FIELD,name:t,value:this.parseValueLiteral(e)})}parseDirectives(e){let n=[];for(;this.peek(c.TokenKind.AT);)n.push(this.parseDirective(e));return n}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(e){let n=this._lexer.token;return this.expectToken(c.TokenKind.AT),this.node(n,{kind:s.Kind.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e)})}parseTypeReference(){let e,n=this._lexer.token;if(this.expectOptionalToken(c.TokenKind.BRACKET_L)){let t=this.parseTypeReference();this.expectToken(c.TokenKind.BRACKET_R),e=this.node(n,{kind:s.Kind.LIST_TYPE,type:t})}else e=this.parseNamedType();return this.expectOptionalToken(c.TokenKind.BANG)?this.node(n,{kind:s.Kind.NON_NULL_TYPE,type:e}):e}parseNamedType(){return this.node(this._lexer.token,{kind:s.Kind.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(c.TokenKind.STRING)||this.peek(c.TokenKind.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){let e=this._lexer.token,n=this.parseDescription();this.expectKeyword("schema");let t=this.parseConstDirectives(),i=this.many(c.TokenKind.BRACE_L,this.parseOperationTypeDefinition,c.TokenKind.BRACE_R);return this.node(e,{kind:s.Kind.SCHEMA_DEFINITION,description:n,directives:t,operationTypes:i})}parseOperationTypeDefinition(){let e=this._lexer.token,n=this.parseOperationType();this.expectToken(c.TokenKind.COLON);let t=this.parseNamedType();return this.node(e,{kind:s.Kind.OPERATION_TYPE_DEFINITION,operation:n,type:t})}parseScalarTypeDefinition(){let e=this._lexer.token,n=this.parseDescription();this.expectKeyword("scalar");let t=this.parseName(),i=this.parseConstDirectives();return this.node(e,{kind:s.Kind.SCALAR_TYPE_DEFINITION,description:n,name:t,directives:i})}parseObjectTypeDefinition(){let e=this._lexer.token,n=this.parseDescription();this.expectKeyword("type");let t=this.parseName(),i=this.parseImplementsInterfaces(),r=this.parseConstDirectives(),o=this.parseFieldsDefinition();return this.node(e,{kind:s.Kind.OBJECT_TYPE_DEFINITION,description:n,name:t,interfaces:i,directives:r,fields:o})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(c.TokenKind.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(c.TokenKind.BRACE_L,this.parseFieldDefinition,c.TokenKind.BRACE_R)}parseFieldDefinition(){let e=this._lexer.token,n=this.parseDescription(),t=this.parseName(),i=this.parseArgumentDefs();this.expectToken(c.TokenKind.COLON);let r=this.parseTypeReference(),o=this.parseConstDirectives();return this.node(e,{kind:s.Kind.FIELD_DEFINITION,description:n,name:t,arguments:i,type:r,directives:o})}parseArgumentDefs(){return this.optionalMany(c.TokenKind.PAREN_L,this.parseInputValueDef,c.TokenKind.PAREN_R)}parseInputValueDef(){let e,n=this._lexer.token,t=this.parseDescription(),i=this.parseName();this.expectToken(c.TokenKind.COLON);let r=this.parseTypeReference();this.expectOptionalToken(c.TokenKind.EQUALS)&&(e=this.parseConstValueLiteral());let o=this.parseConstDirectives();return this.node(n,{kind:s.Kind.INPUT_VALUE_DEFINITION,description:t,name:i,type:r,defaultValue:e,directives:o})}parseInterfaceTypeDefinition(){let e=this._lexer.token,n=this.parseDescription();this.expectKeyword("interface");let t=this.parseName(),i=this.parseImplementsInterfaces(),r=this.parseConstDirectives(),o=this.parseFieldsDefinition();return this.node(e,{kind:s.Kind.INTERFACE_TYPE_DEFINITION,description:n,name:t,interfaces:i,directives:r,fields:o})}parseUnionTypeDefinition(){let e=this._lexer.token,n=this.parseDescription();this.expectKeyword("union");let t=this.parseName(),i=this.parseConstDirectives(),r=this.parseUnionMemberTypes();return this.node(e,{kind:s.Kind.UNION_TYPE_DEFINITION,description:n,name:t,directives:i,types:r})}parseUnionMemberTypes(){return this.expectOptionalToken(c.TokenKind.EQUALS)?this.delimitedMany(c.TokenKind.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){let e=this._lexer.token,n=this.parseDescription();this.expectKeyword("enum");let t=this.parseName(),i=this.parseConstDirectives(),r=this.parseEnumValuesDefinition();return this.node(e,{kind:s.Kind.ENUM_TYPE_DEFINITION,description:n,name:t,directives:i,values:r})}parseEnumValuesDefinition(){return this.optionalMany(c.TokenKind.BRACE_L,this.parseEnumValueDefinition,c.TokenKind.BRACE_R)}parseEnumValueDefinition(){let e=this._lexer.token,n=this.parseDescription(),t=this.parseEnumValueName(),i=this.parseConstDirectives();return this.node(e,{kind:s.Kind.ENUM_VALUE_DEFINITION,description:n,name:t,directives:i})}parseEnumValueName(){if("true"===this._lexer.token.value||"false"===this._lexer.token.value||"null"===this._lexer.token.value)throw(0,i.syntaxError)(this._lexer.source,this._lexer.token.start,`${p(this._lexer.token)} is reserved and cannot be used for an enum value.`);return this.parseName()}parseInputObjectTypeDefinition(){let e=this._lexer.token,n=this.parseDescription();this.expectKeyword("input");let t=this.parseName(),i=this.parseConstDirectives(),r=this.parseInputFieldsDefinition();return this.node(e,{kind:s.Kind.INPUT_OBJECT_TYPE_DEFINITION,description:n,name:t,directives:i,fields:r})}parseInputFieldsDefinition(){return this.optionalMany(c.TokenKind.BRACE_L,this.parseInputValueDef,c.TokenKind.BRACE_R)}parseTypeSystemExtension(){let e=this._lexer.lookahead();if(e.kind===c.TokenKind.NAME)switch(e.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(e)}parseSchemaExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");let n=this.parseConstDirectives(),t=this.optionalMany(c.TokenKind.BRACE_L,this.parseOperationTypeDefinition,c.TokenKind.BRACE_R);if(0===n.length&&0===t.length)throw this.unexpected();return this.node(e,{kind:s.Kind.SCHEMA_EXTENSION,directives:n,operationTypes:t})}parseScalarTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");let n=this.parseName(),t=this.parseConstDirectives();if(0===t.length)throw this.unexpected();return this.node(e,{kind:s.Kind.SCALAR_TYPE_EXTENSION,name:n,directives:t})}parseObjectTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");let n=this.parseName(),t=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),r=this.parseFieldsDefinition();if(0===t.length&&0===i.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:s.Kind.OBJECT_TYPE_EXTENSION,name:n,interfaces:t,directives:i,fields:r})}parseInterfaceTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");let n=this.parseName(),t=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),r=this.parseFieldsDefinition();if(0===t.length&&0===i.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:s.Kind.INTERFACE_TYPE_EXTENSION,name:n,interfaces:t,directives:i,fields:r})}parseUnionTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");let n=this.parseName(),t=this.parseConstDirectives(),i=this.parseUnionMemberTypes();if(0===t.length&&0===i.length)throw this.unexpected();return this.node(e,{kind:s.Kind.UNION_TYPE_EXTENSION,name:n,directives:t,types:i})}parseEnumTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");let n=this.parseName(),t=this.parseConstDirectives(),i=this.parseEnumValuesDefinition();if(0===t.length&&0===i.length)throw this.unexpected();return this.node(e,{kind:s.Kind.ENUM_TYPE_EXTENSION,name:n,directives:t,values:i})}parseInputObjectTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");let n=this.parseName(),t=this.parseConstDirectives(),i=this.parseInputFieldsDefinition();if(0===t.length&&0===i.length)throw this.unexpected();return this.node(e,{kind:s.Kind.INPUT_OBJECT_TYPE_EXTENSION,name:n,directives:t,fields:i})}parseDirectiveDefinition(){let e=this._lexer.token,n=this.parseDescription();this.expectKeyword("directive"),this.expectToken(c.TokenKind.AT);let t=this.parseName(),i=this.parseArgumentDefs(),r=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");let o=this.parseDirectiveLocations();return this.node(e,{kind:s.Kind.DIRECTIVE_DEFINITION,description:n,name:t,arguments:i,repeatable:r,locations:o})}parseDirectiveLocations(){return this.delimitedMany(c.TokenKind.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){let e=this._lexer.token,n=this.parseName();if(Object.prototype.hasOwnProperty.call(o.DirectiveLocation,n.value))return n;throw this.unexpected(e)}parseSchemaCoordinate(){let e,n,t=this._lexer.token,i=this.expectOptionalToken(c.TokenKind.AT),r=this.parseName();return(!i&&this.expectOptionalToken(c.TokenKind.DOT)&&(e=this.parseName()),(i||e)&&this.expectOptionalToken(c.TokenKind.PAREN_L)&&(n=this.parseName(),this.expectToken(c.TokenKind.COLON),this.expectToken(c.TokenKind.PAREN_R)),i)?n?this.node(t,{kind:s.Kind.DIRECTIVE_ARGUMENT_COORDINATE,name:r,argumentName:n}):this.node(t,{kind:s.Kind.DIRECTIVE_COORDINATE,name:r}):e?n?this.node(t,{kind:s.Kind.ARGUMENT_COORDINATE,name:r,fieldName:e,argumentName:n}):this.node(t,{kind:s.Kind.MEMBER_COORDINATE,name:r,memberName:e}):this.node(t,{kind:s.Kind.TYPE_COORDINATE,name:r})}node(e,n){return!0!==this._options.noLocation&&(n.loc=new r.Location(e,this._lexer.lastToken,this._lexer.source)),n}peek(e){return this._lexer.token.kind===e}expectToken(e){let n=this._lexer.token;if(n.kind===e)return this.advanceLexer(),n;throw(0,i.syntaxError)(this._lexer.source,n.start,`Expected ${h(e)}, found ${p(n)}.`)}expectOptionalToken(e){return this._lexer.token.kind===e&&(this.advanceLexer(),!0)}expectKeyword(e){let n=this._lexer.token;if(n.kind===c.TokenKind.NAME&&n.value===e)this.advanceLexer();else throw(0,i.syntaxError)(this._lexer.source,n.start,`Expected "${e}", found ${p(n)}.`)}expectOptionalKeyword(e){let n=this._lexer.token;return n.kind===c.TokenKind.NAME&&n.value===e&&(this.advanceLexer(),!0)}unexpected(e){let n=null!=e?e:this._lexer.token;return(0,i.syntaxError)(this._lexer.source,n.start,`Unexpected ${p(n)}.`)}any(e,n,t){this.expectToken(e);let i=[];for(;!this.expectOptionalToken(t);)i.push(n.call(this));return i}optionalMany(e,n,t){if(this.expectOptionalToken(e)){let e=[];do e.push(n.call(this));while(!this.expectOptionalToken(t));return e}return[]}many(e,n,t){this.expectToken(e);let i=[];do i.push(n.call(this));while(!this.expectOptionalToken(t));return i}delimitedMany(e,n){this.expectOptionalToken(e);let t=[];do t.push(n.call(this));while(this.expectOptionalToken(e));return t}advanceLexer(){let{maxTokens:e}=this._options,n=this._lexer.advance();if(n.kind!==c.TokenKind.EOF&&(++this._tokenCounter,void 0!==e&&this._tokenCounter>e))throw(0,i.syntaxError)(this._lexer.source,n.start,`Document contains more that ${e} tokens. Parsing aborted.`)}}function p(e){let n=e.value;return h(e.kind)+(null!=n?` "${n}"`:"")}function h(e){return(0,a.isPunctuatorTokenKind)(e)?`"${e}"`:e}n.Parser=d},3890:function(e,n,t){Object.defineProperty(n,"__esModule",{value:!0}),n.isConstValueNode=function e(n){return o(n)&&(n.kind===i.Kind.LIST?n.values.some(e):n.kind===i.Kind.OBJECT?n.fields.some(n=>e(n.value)):n.kind!==i.Kind.VARIABLE)},n.isDefinitionNode=function(e){return r(e)||s(e)||l(e)},n.isExecutableDefinitionNode=r,n.isSchemaCoordinateNode=function(e){return e.kind===i.Kind.TYPE_COORDINATE||e.kind===i.Kind.MEMBER_COORDINATE||e.kind===i.Kind.ARGUMENT_COORDINATE||e.kind===i.Kind.DIRECTIVE_COORDINATE||e.kind===i.Kind.DIRECTIVE_ARGUMENT_COORDINATE},n.isSelectionNode=function(e){return e.kind===i.Kind.FIELD||e.kind===i.Kind.FRAGMENT_SPREAD||e.kind===i.Kind.INLINE_FRAGMENT},n.isTypeDefinitionNode=a,n.isTypeExtensionNode=u,n.isTypeNode=function(e){return e.kind===i.Kind.NAMED_TYPE||e.kind===i.Kind.LIST_TYPE||e.kind===i.Kind.NON_NULL_TYPE},n.isTypeSystemDefinitionNode=s,n.isTypeSystemExtensionNode=l,n.isValueNode=o;var i=t(8433);function r(e){return e.kind===i.Kind.OPERATION_DEFINITION||e.kind===i.Kind.FRAGMENT_DEFINITION}function o(e){return e.kind===i.Kind.VARIABLE||e.kind===i.Kind.INT||e.kind===i.Kind.FLOAT||e.kind===i.Kind.STRING||e.kind===i.Kind.BOOLEAN||e.kind===i.Kind.NULL||e.kind===i.Kind.ENUM||e.kind===i.Kind.LIST||e.kind===i.Kind.OBJECT}function s(e){return e.kind===i.Kind.SCHEMA_DEFINITION||a(e)||e.kind===i.Kind.DIRECTIVE_DEFINITION}function a(e){return e.kind===i.Kind.SCALAR_TYPE_DEFINITION||e.kind===i.Kind.OBJECT_TYPE_DEFINITION||e.kind===i.Kind.INTERFACE_TYPE_DEFINITION||e.kind===i.Kind.UNION_TYPE_DEFINITION||e.kind===i.Kind.ENUM_TYPE_DEFINITION||e.kind===i.Kind.INPUT_OBJECT_TYPE_DEFINITION}function l(e){return e.kind===i.Kind.SCHEMA_EXTENSION||u(e)}function u(e){return e.kind===i.Kind.SCALAR_TYPE_EXTENSION||e.kind===i.Kind.OBJECT_TYPE_EXTENSION||e.kind===i.Kind.INTERFACE_TYPE_EXTENSION||e.kind===i.Kind.UNION_TYPE_EXTENSION||e.kind===i.Kind.ENUM_TYPE_EXTENSION||e.kind===i.Kind.INPUT_OBJECT_TYPE_EXTENSION}},5018:function(e,n,t){Object.defineProperty(n,"__esModule",{value:!0}),n.printLocation=function(e){return r(e.source,(0,i.getLocation)(e.source,e.start))},n.printSourceLocation=r;var i=t(8515);function r(e,n){let t=e.locationOffset.column-1,i="".padStart(t)+e.body,r=n.line-1,s=e.locationOffset.line-1,a=n.line+s,l=1===n.line?t:0,u=n.column+l,c=`${e.name}:${a}:${u} -`,d=i.split(/\r\n|[\n\r]/g),p=d[r];if(p.length>120){let e=Math.floor(u/80),n=[];for(let e=0;e["|",e]),["|","^".padStart(u%80)],["|",n[e+1]]])}return c+o([[`${a-1} |`,d[r-1]],[`${a} |`,p],["|","^".padStart(u)],[`${a+1} |`,d[r+1]]])}function o(e){let n=e.filter(([e,n])=>void 0!==n),t=Math.max(...n.map(([e])=>e.length));return n.map(([e,n])=>e.padStart(t)+(n?" "+n:"")).join("\n")}},128:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.printString=function(e){return`"${e.replace(t,i)}"`};let t=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function i(e){return r[e.charCodeAt(0)]}let r=["\\u0000","\\u0001","\\u0002","\\u0003","\\u0004","\\u0005","\\u0006","\\u0007","\\b","\\t","\\n","\\u000B","\\f","\\r","\\u000E","\\u000F","\\u0010","\\u0011","\\u0012","\\u0013","\\u0014","\\u0015","\\u0016","\\u0017","\\u0018","\\u0019","\\u001A","\\u001B","\\u001C","\\u001D","\\u001E","\\u001F","","",'\\"',"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\\\","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\u007F","\\u0080","\\u0081","\\u0082","\\u0083","\\u0084","\\u0085","\\u0086","\\u0087","\\u0088","\\u0089","\\u008A","\\u008B","\\u008C","\\u008D","\\u008E","\\u008F","\\u0090","\\u0091","\\u0092","\\u0093","\\u0094","\\u0095","\\u0096","\\u0097","\\u0098","\\u0099","\\u009A","\\u009B","\\u009C","\\u009D","\\u009E","\\u009F"]},7030:function(e,n,t){Object.defineProperty(n,"__esModule",{value:!0}),n.print=function(e){return(0,o.visit)(e,s)};var i=t(6158),r=t(128),o=t(9624);let s={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>a(e.definitions,"\n\n")},OperationDefinition:{leave(e){let n=d(e.variableDefinitions)?u("(\n",a(e.variableDefinitions,"\n"),"\n)"):u("(",a(e.variableDefinitions,", "),")"),t=u("",e.description,"\n")+a([e.operation,a([e.name,n]),a(e.directives," ")]," ");return("query"===t?"":t+" ")+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:n,defaultValue:t,directives:i,description:r})=>u("",r,"\n")+e+": "+n+u(" = ",t)+u(" ",a(i," "))},SelectionSet:{leave:({selections:e})=>l(e)},Field:{leave({alias:e,name:n,arguments:t,directives:i,selectionSet:r}){let o=u("",e,": ")+n,s=o+u("(",a(t,", "),")");return s.length>80&&(s=o+u("(\n",c(a(t,"\n")),"\n)")),a([s,a(i," "),r]," ")}},Argument:{leave:({name:e,value:n})=>e+": "+n},FragmentSpread:{leave:({name:e,directives:n})=>"..."+e+u(" ",a(n," "))},InlineFragment:{leave:({typeCondition:e,directives:n,selectionSet:t})=>a(["...",u("on ",e),a(n," "),t]," ")},FragmentDefinition:{leave:({name:e,typeCondition:n,variableDefinitions:t,directives:i,selectionSet:r,description:o})=>u("",o,"\n")+`fragment ${e}${u("(",a(t,", "),")")} `+`on ${n} ${u("",a(i," ")," ")}`+r},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e},StringValue:{leave:({value:e,block:n})=>n?(0,i.printBlockString)(e):(0,r.printString)(e)},BooleanValue:{leave:({value:e})=>e?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>"["+a(e,", ")+"]"},ObjectValue:{leave:({fields:e})=>"{"+a(e,", ")+"}"},ObjectField:{leave:({name:e,value:n})=>e+": "+n},Directive:{leave:({name:e,arguments:n})=>"@"+e+u("(",a(n,", "),")")},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>"["+e+"]"},NonNullType:{leave:({type:e})=>e+"!"},SchemaDefinition:{leave:({description:e,directives:n,operationTypes:t})=>u("",e,"\n")+a(["schema",a(n," "),l(t)]," ")},OperationTypeDefinition:{leave:({operation:e,type:n})=>e+": "+n},ScalarTypeDefinition:{leave:({description:e,name:n,directives:t})=>u("",e,"\n")+a(["scalar",n,a(t," ")]," ")},ObjectTypeDefinition:{leave:({description:e,name:n,interfaces:t,directives:i,fields:r})=>u("",e,"\n")+a(["type",n,u("implements ",a(t," & ")),a(i," "),l(r)]," ")},FieldDefinition:{leave:({description:e,name:n,arguments:t,type:i,directives:r})=>u("",e,"\n")+n+(d(t)?u("(\n",c(a(t,"\n")),"\n)"):u("(",a(t,", "),")"))+": "+i+u(" ",a(r," "))},InputValueDefinition:{leave:({description:e,name:n,type:t,defaultValue:i,directives:r})=>u("",e,"\n")+a([n+": "+t,u("= ",i),a(r," ")]," ")},InterfaceTypeDefinition:{leave:({description:e,name:n,interfaces:t,directives:i,fields:r})=>u("",e,"\n")+a(["interface",n,u("implements ",a(t," & ")),a(i," "),l(r)]," ")},UnionTypeDefinition:{leave:({description:e,name:n,directives:t,types:i})=>u("",e,"\n")+a(["union",n,a(t," "),u("= ",a(i," | "))]," ")},EnumTypeDefinition:{leave:({description:e,name:n,directives:t,values:i})=>u("",e,"\n")+a(["enum",n,a(t," "),l(i)]," ")},EnumValueDefinition:{leave:({description:e,name:n,directives:t})=>u("",e,"\n")+a([n,a(t," ")]," ")},InputObjectTypeDefinition:{leave:({description:e,name:n,directives:t,fields:i})=>u("",e,"\n")+a(["input",n,a(t," "),l(i)]," ")},DirectiveDefinition:{leave:({description:e,name:n,arguments:t,repeatable:i,locations:r})=>u("",e,"\n")+"directive @"+n+(d(t)?u("(\n",c(a(t,"\n")),"\n)"):u("(",a(t,", "),")"))+(i?" repeatable":"")+" on "+a(r," | ")},SchemaExtension:{leave:({directives:e,operationTypes:n})=>a(["extend schema",a(e," "),l(n)]," ")},ScalarTypeExtension:{leave:({name:e,directives:n})=>a(["extend scalar",e,a(n," ")]," ")},ObjectTypeExtension:{leave:({name:e,interfaces:n,directives:t,fields:i})=>a(["extend type",e,u("implements ",a(n," & ")),a(t," "),l(i)]," ")},InterfaceTypeExtension:{leave:({name:e,interfaces:n,directives:t,fields:i})=>a(["extend interface",e,u("implements ",a(n," & ")),a(t," "),l(i)]," ")},UnionTypeExtension:{leave:({name:e,directives:n,types:t})=>a(["extend union",e,a(n," "),u("= ",a(t," | "))]," ")},EnumTypeExtension:{leave:({name:e,directives:n,values:t})=>a(["extend enum",e,a(n," "),l(t)]," ")},InputObjectTypeExtension:{leave:({name:e,directives:n,fields:t})=>a(["extend input",e,a(n," "),l(t)]," ")},TypeCoordinate:{leave:({name:e})=>e},MemberCoordinate:{leave:({name:e,memberName:n})=>a([e,u(".",n)])},ArgumentCoordinate:{leave:({name:e,fieldName:n,argumentName:t})=>a([e,u(".",n),u("(",t,":)")])},DirectiveCoordinate:{leave:({name:e})=>a(["@",e])},DirectiveArgumentCoordinate:{leave:({name:e,argumentName:n})=>a(["@",e,u("(",n,":)")])}};function a(e,n=""){var t;return null!=(t=null==e?void 0:e.filter(e=>e).join(n))?t:""}function l(e){return u("{\n",c(a(e,"\n")),"\n}")}function u(e,n,t=""){return null!=n&&""!==n?e+n+t:""}function c(e){return u(" ",e.replace(/\n/g,"\n "))}function d(e){var n;return null!=(n=null==e?void 0:e.some(e=>e.includes("\n")))&&n}},9587:function(e,n,t){Object.defineProperty(n,"__esModule",{value:!0}),n.SchemaCoordinateLexer=void 0;var i=t(221),r=t(7226),o=t(9349),s=t(5316),a=t(5229);class l{line=1;lineStart=0;constructor(e){const n=new r.Token(a.TokenKind.SOF,0,0,0,0);this.source=e,this.lastToken=n,this.token=n}get[Symbol.toStringTag](){return"SchemaCoordinateLexer"}advance(){return this.lastToken=this.token,this.token=this.lookahead()}lookahead(){let e=this.token;if(e.kind!==a.TokenKind.EOF){let n=function(e,n){let t=e.source.body,r=t.length;if(n0||(0,i.devAssert)(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||(0,i.devAssert)(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}}n.Source=s},5229:function(e,n){var t,i;Object.defineProperty(n,"__esModule",{value:!0}),n.TokenKind=void 0,n.TokenKind=t,(i=t||(n.TokenKind=t={})).SOF="",i.EOF="",i.BANG="!",i.DOLLAR="$",i.AMP="&",i.PAREN_L="(",i.PAREN_R=")",i.DOT=".",i.SPREAD="...",i.COLON=":",i.EQUALS="=",i.AT="@",i.BRACKET_L="[",i.BRACKET_R="]",i.BRACE_L="{",i.PIPE="|",i.BRACE_R="}",i.NAME="Name",i.INT="Int",i.FLOAT="Float",i.STRING="String",i.BLOCK_STRING="BlockString",i.COMMENT="Comment"},9624:function(e,n,t){Object.defineProperty(n,"__esModule",{value:!0}),n.BREAK=void 0,n.getEnterLeaveForKind=l,n.getVisitFn=function(e,n,t){let{enter:i,leave:r}=l(e,n);return t?r:i},n.visit=function(e,n,t=o.QueryDocumentKeys){let u,c,d,p=new Map;for(let e of Object.values(s.Kind))p.set(e,l(n,e));let h=Array.isArray(e),T=[e],f=-1,E=[],N=e,k=[],O=[];do{var m,I,v;let e,s=++f===T.length,l=s&&0!==E.length;if(s){if(c=0===O.length?void 0:k[k.length-1],N=d,d=O.pop(),l)if(h){N=N.slice();let e=0;for(let[n,t]of E){let i=n-e;null===t?(N.splice(i,1),e++):N[i]=t}}else for(let[e,n]of(N={...N},E))N[e]=n;f=u.index,T=u.keys,E=u.edits,h=u.inArray,u=u.prev}else if(d){if(null==(N=d[c=h?f:T[f]]))continue;k.push(c)}if(!Array.isArray(N)){(0,o.isNode)(N)||(0,i.devAssert)(!1,`Invalid AST Node: ${(0,r.inspect)(N)}.`);let t=s?null==(m=p.get(N.kind))?void 0:m.leave:null==(I=p.get(N.kind))?void 0:I.enter;if((e=null==t?void 0:t.call(n,N,c,d,k,O))===a)break;if(!1===e){if(!s){k.pop();continue}}else if(void 0!==e&&(E.push([c,e]),!s))if((0,o.isNode)(e))N=e;else{k.pop();continue}}void 0===e&&l&&E.push([c,N]),s?k.pop():(u={inArray:h,index:f,keys:T,edits:E,prev:u},T=(h=Array.isArray(N))?N:null!=(v=t[N.kind])?v:[],f=-1,E=[],d&&O.push(d),d=N)}while(void 0!==u);return 0!==E.length?E[E.length-1][1]:e},n.visitInParallel=function(e){let n=Array(e.length).fill(null),t=Object.create(null);for(let i of Object.values(s.Kind)){let r=!1,o=Array(e.length).fill(void 0),s=Array(e.length).fill(void 0);for(let n=0;n Date: Wed, 3 Dec 2025 21:01:36 -0500 Subject: [PATCH 54/95] add bundle validation --- .github/workflows/platform.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/platform.yml b/.github/workflows/platform.yml index 388028e38d2..f42ad773ef6 100644 --- a/.github/workflows/platform.yml +++ b/.github/workflows/platform.yml @@ -60,6 +60,15 @@ jobs: - run: ./node_modules/.bin/bun pm pack --gzip-level 0 --filename bun.tgz && tar -zxf bun.tgz -C bun - run: diff -r npm bun + bundle-validate: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0 + - uses: ./.github/actions/node/active-lts + - run: yarn + working-directory: vendor + - run: git diff --exit-code + core: runs-on: ubuntu-latest steps: From 4c2be2aa357151406f98c4dc24f3a9e70bb6885c Mon Sep 17 00:00:00 2001 From: Roch Devost Date: Wed, 3 Dec 2025 21:18:10 -0500 Subject: [PATCH 55/95] fix missing dependency and missing external --- .../@datadog/openfeature-node-server/LICENSE | 2 +- .../@datadog/openfeature-node-server/index.js | 2 +- .../node_modules/@openfeature/core/LICENSE | 201 ++++++++++++++++++ .../node_modules/@openfeature/core/index.js | 1 + .../node_modules/@opentelemetry/core/index.js | 2 +- .../@opentelemetry/resources/index.js | 2 +- vendor/package.json | 1 + vendor/rspack.config.js | 3 + vendor/yarn.lock | 5 + 9 files changed, 215 insertions(+), 4 deletions(-) create mode 100644 packages/node_modules/@openfeature/core/LICENSE create mode 100644 packages/node_modules/@openfeature/core/index.js diff --git a/packages/node_modules/@datadog/openfeature-node-server/LICENSE b/packages/node_modules/@datadog/openfeature-node-server/LICENSE index 4a0027eec4e..261eeb9e9f8 100644 --- a/packages/node_modules/@datadog/openfeature-node-server/LICENSE +++ b/packages/node_modules/@datadog/openfeature-node-server/LICENSE @@ -186,7 +186,7 @@ same "printed page" as the copyright notice for easier identification within third-party archives. - Copyright 2025 Datadog, Inc. + Copyright [yyyy] [name of copyright owner] Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/packages/node_modules/@datadog/openfeature-node-server/index.js b/packages/node_modules/@datadog/openfeature-node-server/index.js index 58ec21b3798..9009891a261 100644 --- a/packages/node_modules/@datadog/openfeature-node-server/index.js +++ b/packages/node_modules/@datadog/openfeature-node-server/index.js @@ -1 +1 @@ -(()=>{var e={694:function(e){e.exports=function(e){"use strict";var t=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"];function r(e,t){var r=e[0],n=e[1],i=e[2],o=e[3];r+=(n&i|~n&o)+t[0]-0x28955b88|0,o+=((r=(r<<7|r>>>25)+n|0)&n|~r&i)+t[1]-0x173848aa|0,i+=((o=(o<<12|o>>>20)+r|0)&r|~o&n)+t[2]+0x242070db|0,n+=((i=(i<<17|i>>>15)+o|0)&o|~i&r)+t[3]-0x3e423112|0,r+=((n=(n<<22|n>>>10)+i|0)&i|~n&o)+t[4]-0xa83f051|0,o+=((r=(r<<7|r>>>25)+n|0)&n|~r&i)+t[5]+0x4787c62a|0,i+=((o=(o<<12|o>>>20)+r|0)&r|~o&n)+t[6]-0x57cfb9ed|0,n+=((i=(i<<17|i>>>15)+o|0)&o|~i&r)+t[7]-0x2b96aff|0,r+=((n=(n<<22|n>>>10)+i|0)&i|~n&o)+t[8]+0x698098d8|0,o+=((r=(r<<7|r>>>25)+n|0)&n|~r&i)+t[9]-0x74bb0851|0,i+=((o=(o<<12|o>>>20)+r|0)&r|~o&n)+t[10]-42063|0,n+=((i=(i<<17|i>>>15)+o|0)&o|~i&r)+t[11]-0x76a32842|0,r+=((n=(n<<22|n>>>10)+i|0)&i|~n&o)+t[12]+0x6b901122|0,o+=((r=(r<<7|r>>>25)+n|0)&n|~r&i)+t[13]-0x2678e6d|0,i+=((o=(o<<12|o>>>20)+r|0)&r|~o&n)+t[14]-0x5986bc72|0,n+=((i=(i<<17|i>>>15)+o|0)&o|~i&r)+t[15]+0x49b40821|0,r+=((n=(n<<22|n>>>10)+i|0)&o|i&~o)+t[1]-0x9e1da9e|0,o+=((r=(r<<5|r>>>27)+n|0)&i|n&~i)+t[6]-0x3fbf4cc0|0,i+=((o=(o<<9|o>>>23)+r|0)&n|r&~n)+t[11]+0x265e5a51|0,n+=((i=(i<<14|i>>>18)+o|0)&r|o&~r)+t[0]-0x16493856|0,r+=((n=(n<<20|n>>>12)+i|0)&o|i&~o)+t[5]-0x29d0efa3|0,o+=((r=(r<<5|r>>>27)+n|0)&i|n&~i)+t[10]+0x2441453|0,i+=((o=(o<<9|o>>>23)+r|0)&n|r&~n)+t[15]-0x275e197f|0,n+=((i=(i<<14|i>>>18)+o|0)&r|o&~r)+t[4]-0x182c0438|0,r+=((n=(n<<20|n>>>12)+i|0)&o|i&~o)+t[9]+0x21e1cde6|0,o+=((r=(r<<5|r>>>27)+n|0)&i|n&~i)+t[14]-0x3cc8f82a|0,i+=((o=(o<<9|o>>>23)+r|0)&n|r&~n)+t[3]-0xb2af279|0,n+=((i=(i<<14|i>>>18)+o|0)&r|o&~r)+t[8]+0x455a14ed|0,r+=((n=(n<<20|n>>>12)+i|0)&o|i&~o)+t[13]-0x561c16fb|0,o+=((r=(r<<5|r>>>27)+n|0)&i|n&~i)+t[2]-0x3105c08|0,i+=((o=(o<<9|o>>>23)+r|0)&n|r&~n)+t[7]+0x676f02d9|0,n+=((i=(i<<14|i>>>18)+o|0)&r|o&~r)+t[12]-0x72d5b376|0,r+=((n=(n<<20|n>>>12)+i|0)^i^o)+t[5]-378558|0,o+=((r=(r<<4|r>>>28)+n|0)^n^i)+t[8]-0x788e097f|0,i+=((o=(o<<11|o>>>21)+r|0)^r^n)+t[11]+0x6d9d6122|0,n+=((i=(i<<16|i>>>16)+o|0)^o^r)+t[14]-0x21ac7f4|0,r+=((n=(n<<23|n>>>9)+i|0)^i^o)+t[1]-0x5b4115bc|0,o+=((r=(r<<4|r>>>28)+n|0)^n^i)+t[4]+0x4bdecfa9|0,i+=((o=(o<<11|o>>>21)+r|0)^r^n)+t[7]-0x944b4a0|0,n+=((i=(i<<16|i>>>16)+o|0)^o^r)+t[10]-0x41404390|0,r+=((n=(n<<23|n>>>9)+i|0)^i^o)+t[13]+0x289b7ec6|0,o+=((r=(r<<4|r>>>28)+n|0)^n^i)+t[0]-0x155ed806|0,i+=((o=(o<<11|o>>>21)+r|0)^r^n)+t[3]-0x2b10cf7b|0,n+=((i=(i<<16|i>>>16)+o|0)^o^r)+t[6]+0x4881d05|0,r+=((n=(n<<23|n>>>9)+i|0)^i^o)+t[9]-0x262b2fc7|0,o+=((r=(r<<4|r>>>28)+n|0)^n^i)+t[12]-0x1924661b|0,i+=((o=(o<<11|o>>>21)+r|0)^r^n)+t[15]+0x1fa27cf8|0,n+=((i=(i<<16|i>>>16)+o|0)^o^r)+t[2]-0x3b53a99b|0,n=(n<<23|n>>>9)+i|0,r+=(i^(n|~o))+t[0]-0xbd6ddbc|0,r=(r<<6|r>>>26)+n|0,o+=(n^(r|~i))+t[7]+0x432aff97|0,o=(o<<10|o>>>22)+r|0,i+=(r^(o|~n))+t[14]-0x546bdc59|0,i=(i<<15|i>>>17)+o|0,n+=(o^(i|~r))+t[5]-0x36c5fc7|0,n=(n<<21|n>>>11)+i|0,r+=(i^(n|~o))+t[12]+0x655b59c3|0,r=(r<<6|r>>>26)+n|0,o+=(n^(r|~i))+t[3]-0x70f3336e|0,o=(o<<10|o>>>22)+r|0,i+=(r^(o|~n))+t[10]-1051523|0,i=(i<<15|i>>>17)+o|0,n+=(o^(i|~r))+t[1]-0x7a7ba22f|0,n=(n<<21|n>>>11)+i|0,r+=(i^(n|~o))+t[8]+0x6fa87e4f|0,r=(r<<6|r>>>26)+n|0,o+=(n^(r|~i))+t[15]-0x1d31920|0,o=(o<<10|o>>>22)+r|0,i+=(r^(o|~n))+t[6]-0x5cfebcec|0,i=(i<<15|i>>>17)+o|0,n+=(o^(i|~r))+t[13]+0x4e0811a1|0,n=(n<<21|n>>>11)+i|0,r+=(i^(n|~o))+t[4]-0x8ac817e|0,r=(r<<6|r>>>26)+n|0,o+=(n^(r|~i))+t[11]-0x42c50dcb|0,o=(o<<10|o>>>22)+r|0,i+=(r^(o|~n))+t[2]+0x2ad7d2bb|0,i=(i<<15|i>>>17)+o|0,n+=(o^(i|~r))+t[9]-0x14792c6f|0,n=(n<<21|n>>>11)+i|0,e[0]=r+e[0]|0,e[1]=n+e[1]|0,e[2]=i+e[2]|0,e[3]=o+e[3]|0}function n(e){var t,r=[];for(t=0;t<64;t+=4)r[t>>2]=e.charCodeAt(t)+(e.charCodeAt(t+1)<<8)+(e.charCodeAt(t+2)<<16)+(e.charCodeAt(t+3)<<24);return r}function i(e){var t,r=[];for(t=0;t<64;t+=4)r[t>>2]=e[t]+(e[t+1]<<8)+(e[t+2]<<16)+(e[t+3]<<24);return r}function o(e){var t,i,o,s,a,l,u=e.length,h=[0x67452301,-0x10325477,-0x67452302,0x10325476];for(t=64;t<=u;t+=64)r(h,n(e.substring(t-64,t)));for(i=(e=e.substring(t-64)).length,o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],t=0;t>2]|=e.charCodeAt(t)<<(t%4<<3);if(o[t>>2]|=128<<(t%4<<3),t>55)for(r(h,o),t=0;t<16;t+=1)o[t]=0;return a=parseInt((s=(s=8*u).toString(16).match(/(.*?)(.{0,8})$/))[2],16),l=parseInt(s[1],16)||0,o[14]=a,o[15]=l,r(h,o),h}function s(e){var r;for(r=0;r>8*r+4&15]+t[e>>8*r&15];return n}(e[r]);return e.join("")}function a(e){return/[\u0080-\uFFFF]/.test(e)&&(e=unescape(encodeURIComponent(e))),e}function l(e){var t,r=[],n=e.length;for(t=0;tu)?new ArrayBuffer(0):(o=new Uint8Array(i=new ArrayBuffer(n=u-l)),s=new Uint8Array(this,l,n),o.set(s),i)}}(),u.prototype.append=function(e){return this.appendBinary(a(e)),this},u.prototype.appendBinary=function(e){this._buff+=e,this._length+=e.length;var t,i=this._buff.length;for(t=64;t<=i;t+=64)r(this._hash,n(this._buff.substring(t-64,t)));return this._buff=this._buff.substring(t-64),this},u.prototype.end=function(e){var t,r,n=this._buff,i=n.length,o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(t=0;t>2]|=n.charCodeAt(t)<<(t%4<<3);return this._finish(o,i),r=s(this._hash),e&&(r=l(r)),this.reset(),r},u.prototype.reset=function(){return this._buff="",this._length=0,this._hash=[0x67452301,-0x10325477,-0x67452302,0x10325476],this},u.prototype.getState=function(){return{buff:this._buff,length:this._length,hash:this._hash.slice()}},u.prototype.setState=function(e){return this._buff=e.buff,this._length=e.length,this._hash=e.hash,this},u.prototype.destroy=function(){delete this._hash,delete this._buff,delete this._length},u.prototype._finish=function(e,t){var n,i,o,s=t;if(e[s>>2]|=128<<(s%4<<3),s>55)for(r(this._hash,e),s=0;s<16;s+=1)e[s]=0;i=parseInt((n=(n=8*this._length).toString(16).match(/(.*?)(.{0,8})$/))[2],16),o=parseInt(n[1],16)||0,e[14]=i,e[15]=o,r(this._hash,e)},u.hash=function(e,t){return u.hashBinary(a(e),t)},u.hashBinary=function(e,t){var r=s(o(e));return t?l(r):r},u.ArrayBuffer=function(){this.reset()},u.ArrayBuffer.prototype.append=function(e){var t,n,o,s=(t=this._buff.buffer,(n=new Uint8Array(t.byteLength+e.byteLength)).set(new Uint8Array(t)),n.set(new Uint8Array(e),t.byteLength),n),a=s.length;for(this._length+=e.byteLength,o=64;o<=a;o+=64)r(this._hash,i(s.subarray(o-64,o)));return this._buff=new Uint8Array(o-64>2]|=n[t]<<(t%4<<3);return this._finish(o,i),r=s(this._hash),e&&(r=l(r)),this.reset(),r},u.ArrayBuffer.prototype.reset=function(){return this._buff=new Uint8Array(0),this._length=0,this._hash=[0x67452301,-0x10325477,-0x67452302,0x10325476],this},u.ArrayBuffer.prototype.getState=function(){var e,t=u.prototype.getState.call(this);return e=t.buff,t.buff=String.fromCharCode.apply(null,new Uint8Array(e)),t},u.ArrayBuffer.prototype.setState=function(e){return e.buff=function(e,t){var r,n=e.length,i=new ArrayBuffer(n),o=new Uint8Array(i);for(r=0;r>2]|=e[t]<<(t%4<<3);if(o[t>>2]|=128<<(t%4<<3),t>55)for(r(h,o),t=0;t<16;t+=1)o[t]=0;return a=parseInt((s=(s=8*u).toString(16).match(/(.*?)(.{0,8})$/))[2],16),l=parseInt(s[1],16)||0,o[14]=a,o[15]=l,r(h,o),h}(new Uint8Array(e)));return t?l(n):n},u}()}},t={};function r(n){var i=t[n];if(void 0!==i)return i.exports;var o=t[n]={exports:{}};return e[n](o,o.exports,r),o.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};(()=>{"use strict";r.r(n),r.d(n,{DatadogNodeServerProvider:()=>ep});var e,t,i,o,s,a,l=r(694),u=r.n(l);function h(e,t=""){return new(u())().append(t).append(e).end()}function c(e){return h(JSON.stringify({flag:{key:e.flag.key},subject:{id:e.subject.id,attributes:e.subject.attributes}}))}function d(e){return h(JSON.stringify(e))}class f{constructor(e){this.delegate=e}init(){return Promise.resolve()}has(e){return this.get(e)===d(e)}get(e){return this.delegate.get(c(e))}set(e){this.delegate.set(c(e),d(e))}entries(){return this.delegate.entries()}clear(){this.delegate.clear()}}class g{constructor(e){this.capacity=e,this.cache=new Map,this.size=this.cache.size}[(Symbol.toStringTag,Symbol.iterator)](){return this.cache[Symbol.iterator]()}forEach(e){this.cache.forEach(e)}entries(){return this.cache.entries()}clear(){this.cache.clear()}delete(e){return this.cache.delete(e)}keys(){return this.cache.keys()}values(){return this.cache.values()}has(e){return this.cache.has(e)}get(e){if(!this.has(e))return;let t=this.cache.get(e);return void 0!==t&&(this.delete(e),this.cache.set(e,t)),t}set(e,t){if(0===this.capacity)return this;if(this.cache.has(e))this.cache.delete(e);else if(this.cache.size>=this.capacity){let e=this.cache.keys().next().value;e&&this.delete(e)}return this.cache.set(e,t),this}}class v extends f{constructor(e){super(new g(e))}}var p=Object.defineProperty,E=Object.defineProperties,_=Object.getOwnPropertyDescriptors,y=Object.getOwnPropertySymbols,m=Object.prototype.hasOwnProperty,R=Object.prototype.propertyIsEnumerable,b=(e,t,r)=>t in e?p(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,O=(e,t)=>{for(var r in t||(t={}))m.call(t,r)&&b(e,r,t[r]);if(y)for(var r of y(t))R.call(t,r)&&b(e,r,t[r]);return e},A=(e,t,r)=>new Promise((n,i)=>{var o=e=>{try{a(r.next(e))}catch(e){i(e)}},s=e=>{try{a(r.throw(e))}catch(e){i(e)}},a=e=>e.done?n(e.value):Promise.resolve(e.value).then(o,s);a((r=r.apply(e,t)).next())}),x="ERROR",T=((e=T||{}).PROVIDER_NOT_READY="PROVIDER_NOT_READY",e.PROVIDER_FATAL="PROVIDER_FATAL",e.FLAG_NOT_FOUND="FLAG_NOT_FOUND",e.PARSE_ERROR="PARSE_ERROR",e.TYPE_MISMATCH="TYPE_MISMATCH",e.TARGETING_KEY_MISSING="TARGETING_KEY_MISSING",e.INVALID_CONTEXT="INVALID_CONTEXT",e.GENERAL="GENERAL",e),C=class e extends Error{constructor(t,r){super(t),Object.setPrototypeOf(this,e.prototype),this.name="OpenFeatureError",this.cause=null==r?void 0:r.cause}},P=class e extends C{constructor(t,r){super(t,r),Object.setPrototypeOf(this,e.prototype),this.name="FlagNotFoundError",this.code="FLAG_NOT_FOUND"}},N=class e extends C{constructor(t,r){super(t,r),Object.setPrototypeOf(this,e.prototype),this.name="GeneralError",this.code="GENERAL"}},I=class e extends C{constructor(t,r){super(t,r),Object.setPrototypeOf(this,e.prototype),this.name="InvalidContextError",this.code="INVALID_CONTEXT"}},S=class e extends C{constructor(t,r){super(t,r),Object.setPrototypeOf(this,e.prototype),this.name="ParseError",this.code="PARSE_ERROR"}},w=class e extends C{constructor(t,r){super(t,r),Object.setPrototypeOf(this,e.prototype),this.name="ProviderFatalError",this.code="PROVIDER_FATAL"}},D=class e extends C{constructor(t,r){super(t,r),Object.setPrototypeOf(this,e.prototype),this.name="ProviderNotReadyError",this.code="PROVIDER_NOT_READY"}},L=class e extends C{constructor(t,r){super(t,r),Object.setPrototypeOf(this,e.prototype),this.name="TargetingKeyMissingError",this.code="TARGETING_KEY_MISSING"}},k=class e extends C{constructor(t,r){super(t,r),Object.setPrototypeOf(this,e.prototype),this.name="TypeMismatchError",this.code="TYPE_MISMATCH"}},H=((t=H||{}).NOT_READY="NOT_READY",t.READY="READY",t.ERROR="ERROR",t.STALE="STALE",t.FATAL="FATAL",t),M=((i=M||{}).Ready="PROVIDER_READY",i.Error="PROVIDER_ERROR",i.ConfigurationChanged="PROVIDER_CONFIGURATION_CHANGED",i.Stale="PROVIDER_STALE",i),j=((o=j||{}).Ready="PROVIDER_READY",o.Error="PROVIDER_ERROR",o.ConfigurationChanged="PROVIDER_CONFIGURATION_CHANGED",o.ContextChanged="PROVIDER_CONTEXT_CHANGED",o.Reconciling="PROVIDER_RECONCILING",o.Stale="PROVIDER_STALE",o),G={READY:"PROVIDER_READY",ERROR:"PROVIDER_ERROR",FATAL:"PROVIDER_ERROR",STALE:"PROVIDER_STALE",RECONCILING:"PROVIDER_RECONCILING",NOT_READY:void 0},V=(e,t)=>!t&&"PROVIDER_READY"===e||G[t]===e,F=class{error(...e){console.error(...e)}warn(...e){console.warn(...e)}info(){}debug(){}},Y=["error","warn","info","debug"],U=class{constructor(e){this.fallbackLogger=new F;try{for(const t of Y)if(!e[t]||"function"!=typeof e[t])throw Error(`The provided logger is missing the ${t} method.`);this.logger=e}catch(e){console.error(e),console.error("Falling back to the default logger."),this.logger=this.fallbackLogger}}error(...e){this.log("error",...e)}warn(...e){this.log("warn",...e)}info(...e){this.log("info",...e)}debug(...e){this.log("debug",...e)}log(e,...t){try{this.logger[e](...t)}catch(r){this.fallbackLogger[e](...t)}}},K=class{constructor(e){this.globalLogger=e,this._handlers={PROVIDER_CONFIGURATION_CHANGED:new WeakMap,PROVIDER_CONTEXT_CHANGED:new WeakMap,PROVIDER_READY:new WeakMap,PROVIDER_ERROR:new WeakMap,PROVIDER_STALE:new WeakMap,PROVIDER_RECONCILING:new WeakMap}}emit(e,t){this.eventEmitter.emit(e,t)}addHandler(e,t){let r=e=>A(this,null,function*(){var r;try{yield t(e)}catch(e){null==(r=this._logger)||r.error("Error running event handler:",e)}}),n=this._handlers[e].get(t);this._handlers[e].set(t,[...n||[],r]),this.eventEmitter.on(e,r)}removeHandler(e,t){let r=this._handlers[e].get(t);if(r){let t=r.pop();t&&this.eventEmitter.removeListener(e,t)}}removeAllHandlers(e){e?this.eventEmitter.removeAllListeners(e):this.eventEmitter.removeAllListeners()}getHandlers(e){return this.eventEmitter.listeners(e)}setLogger(e){return this._eventLogger=new U(e),this}get _logger(){var e,t;return null!=(t=this._eventLogger)?t:null==(e=this.globalLogger)?void 0:e.call(this)}};function B(e){return"string"==typeof e?e:void 0}function $(e){return"object"==typeof e?e:void 0}function z(e){return null!=e}var W=class{constructor(e,t,r){var n,i,o;this._provider=e,this._status=t,this._pendingContextChanges=0,null==(n=e.events)||n.addHandler("PROVIDER_READY",()=>{this._status=r.READY}),null==(i=e.events)||i.addHandler("PROVIDER_STALE",()=>{this._status=r.STALE}),null==(o=e.events)||o.addHandler("PROVIDER_ERROR",e=>{(null==e?void 0:e.errorCode)==="PROVIDER_FATAL"?this._status=r.FATAL:this._status=r.ERROR})}get provider(){return this._provider}set provider(e){this._provider=e}get status(){return this._status}set status(e){this._status=e}get allContextChangesSettled(){return 0===this._pendingContextChanges}incrementPendingContextChanges(){this._pendingContextChanges++}decrementPendingContextChanges(){this._pendingContextChanges--}},X=class{constructor(e){this._hooks=[],this._context={},this._logger=new F,this._clientEventHandlers=new Map,this._domainScopedContext=new Map,this._clientEvents=new Map,this._runsOn=e}addHooks(...e){return this._hooks=[...this._hooks,...e],this}getHooks(){return this._hooks}clearHooks(){return this._hooks=[],this}setLogger(e){return this._logger=new U(e),this}get providerMetadata(){return this.getProviderMetadata()}getProviderMetadata(e){return this.getProviderForClient(e).metadata}addHandler(e,t,r){[...new Map([[void 0,this._defaultProvider]]),...this._domainScopedProviders].forEach(r=>{var n;let i=r[0],o=r[1].provider;if(V(e,r[1].status))try{t({domain:i,providerName:o.metadata.name})}catch(e){null==(n=this._logger)||n.error("Error running event handler:",e)}}),this._apiEmitter.addHandler(e,t),(null==r?void 0:r.signal)&&"function"==typeof r.signal.addEventListener&&r.signal.addEventListener("abort",()=>{this.removeHandler(e,t)})}removeHandler(e,t){this._apiEmitter.removeHandler(e,t)}clearHandlers(){this._apiEmitter.removeAllHandlers()}getHandlers(e){return this._apiEmitter.getHandlers(e)}setAwaitableProvider(e,t){var r,n,i,o,s,a,l,u;let h,c=B(e),d=null!=(r=$(e))?r:$(t);if(!d)return void this._logger.debug("No provider defined, ignoring setProvider call");let f=this.getProviderForClient(c),g=d.metadata.name;if(f===d)return void this._logger.debug("Provider is already set, ignoring setProvider call");if(d.runsOn){if(d.runsOn!==this._runsOn)throw new N(`Provider '${d.metadata.name}' is intended for use on the ${d.runsOn}.`)}else this._logger.debug(`Provider '${d.metadata.name}' has not defined its intended use.`);let v=this.getAssociatedEventEmitters(c),p=new W(d,this._statusEnumType.NOT_READY,this._statusEnumType);return"function"!=typeof d.initialize||this.allProviders.includes(d)?(p.status=this._statusEnumType.READY,v.forEach(e=>{null==e||e.emit("PROVIDER_READY",{clientName:c,domain:c,providerName:g})}),null==(a=this._apiEmitter)||a.emit("PROVIDER_READY",{clientName:c,domain:c,providerName:g})):h=null==(s=null==(o=null==(i=d.initialize)?void 0:i.call(d,c&&null!=(n=this._domainScopedContext.get(c))?n:this._context))?void 0:o.then(()=>{var e;p.status=this._statusEnumType.READY,this.getAssociatedEventEmitters(c).forEach(e=>{null==e||e.emit("PROVIDER_READY",{clientName:c,domain:c,providerName:g})}),null==(e=this._apiEmitter)||e.emit("PROVIDER_READY",{clientName:c,domain:c,providerName:g})}))?void 0:s.catch(e=>{var t;throw(null==e?void 0:e.code)==="PROVIDER_FATAL"?p.status=this._statusEnumType.FATAL:p.status=this._statusEnumType.ERROR,this.getAssociatedEventEmitters(c).forEach(t=>{null==t||t.emit("PROVIDER_ERROR",{clientName:c,domain:c,providerName:g,message:null==e?void 0:e.message})}),null==(t=this._apiEmitter)||t.emit("PROVIDER_ERROR",{clientName:c,domain:c,providerName:g,message:null==e?void 0:e.message}),e}),c?this._domainScopedProviders.set(c,p):this._defaultProvider=p,this.transferListeners(f,d,c,v),this.allProviders.includes(f)||null==(u=null==(l=null==f?void 0:f.onClose)?void 0:l.call(f))||u.catch(e=>{this._logger.error(`error closing provider: ${null==e?void 0:e.message}, ${null==e?void 0:e.stack}`)}),h}getProviderForClient(e){var t,r;return e&&null!=(r=null==(t=this._domainScopedProviders.get(e))?void 0:t.provider)?r:this._defaultProvider.provider}buildAndCacheEventEmitterForClient(e){let t=this._clientEvents.get(e);if(t)return t;let r=this._createEventEmitter();this._clientEvents.set(e,r);let n=this.getProviderForClient(e);return Object.values(j).forEach(t=>{var i;return null==(i=n.events)?void 0:i.addHandler(t,i=>A(this,null,function*(){r.emit(t,E(O({},i),_({clientName:e,domain:e,providerName:n.metadata.name})))}))}),r}getUnboundEmitters(){let e=[...this._domainScopedProviders.keys()];return[...[...this._clientEvents.keys()].filter(z).filter(t=>!e.includes(t)).map(e=>this._clientEvents.get(e)),this._clientEvents.get(void 0)].filter(z)}getAssociatedEventEmitters(e){return e?[this.buildAndCacheEventEmitterForClient(e)]:this.getUnboundEmitters()}transferListeners(e,t,r,n){var i;null==(i=this._clientEventHandlers.get(r))||i.forEach(t=>{var r;return null==(r=e.events)?void 0:r.removeHandler(...t)});let o=Object.values(j).map(e=>{let i=i=>A(this,null,function*(){n.forEach(n=>{null==n||n.emit(e,E(O({},i),_({clientName:r,domain:r,providerName:t.metadata.name})))}),this._apiEmitter.emit(e,E(O({},i),_({clientName:r,domain:r,providerName:t.metadata.name})))});return[e,i]});this._clientEventHandlers.set(r,o),o.forEach(e=>{var r;return null==(r=t.events)?void 0:r.addHandler(...e)})}close(){return A(this,null,function*(){var e,t;try{yield null==(t=null==(e=this==null?void 0:this._defaultProvider.provider)?void 0:e.onClose)?void 0:t.call(e)}catch(e){this.handleShutdownError(this._defaultProvider.provider,e)}let r=Array.from(this._domainScopedProviders);yield Promise.all(r.map(e=>A(this,[e],function*([,e]){var t,r;try{yield null==(r=null==e?void 0:(t=e.provider).onClose)?void 0:r.call(t)}catch(t){this.handleShutdownError(null==e?void 0:e.provider,t)}})))})}clearProvidersAndSetDefault(e){return A(this,null,function*(){try{yield this.close()}catch(e){this._logger.error("Unable to cleanly close providers. Resetting to the default configuration.")}finally{this._domainScopedProviders.clear(),this._defaultProvider=new W(e,this._statusEnumType.NOT_READY,this._statusEnumType)}})}get allProviders(){return[...[...this._domainScopedProviders.values()].map(e=>e.provider),this._defaultProvider.provider]}handleShutdownError(e,t){this._logger.error(`Error during shutdown of provider ${e.metadata.name}: ${t}`),this._logger.error(null==t?void 0:t.stack)}};let J=require("node:events");require("async_hooks");var q=Object.defineProperty,Q=Object.defineProperties,Z=Object.getOwnPropertyDescriptors,ee=Object.getOwnPropertySymbols,et=Object.prototype.hasOwnProperty,er=Object.prototype.propertyIsEnumerable,en=(e,t,r)=>t in e?q(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,ei=(e,t)=>{for(var r in t||(t={}))et.call(t,r)&&en(e,r,t[r]);if(ee)for(var r of ee(t))er.call(t,r)&&en(e,r,t[r]);return e},eo=(e,t,r)=>new Promise((n,i)=>{var o=e=>{try{a(r.next(e))}catch(e){i(e)}},s=e=>{try{a(r.throw(e))}catch(e){i(e)}},a=e=>e.done?n(e.value):Promise.resolve(e.value).then(o,s);a((r=r.apply(e,t)).next())}),es=new class{constructor(){this.metadata={name:"No-op Provider"}}resolveBooleanEvaluation(e,t){return this.noOp(t)}resolveStringEvaluation(e,t){return this.noOp(t)}resolveNumberEvaluation(e,t){return this.noOp(t)}resolveObjectEvaluation(e,t){return this.noOp(t)}noOp(e){return Promise.resolve({value:e,reason:"No-op"})}},ea=class{constructor(e,t,r,n,i,o,s,a,l={}){this.providerAccessor=e,this.providerStatusAccessor=t,this.emitterAccessor=r,this.apiContextAccessor=n,this.apiHooksAccessor=i,this.transactionContextAccessor=o,this.globalLogger=s,this.options=a,this._hooks=[],this._context=l}get metadata(){var e,t;return{name:null!=(e=this.options.domain)?e:this.options.name,domain:null!=(t=this.options.domain)?t:this.options.name,version:this.options.version,providerMetadata:this.providerAccessor().metadata}}get providerStatus(){return this.providerStatusAccessor()}addHandler(e,t,r){var n;if(this.emitterAccessor().addHandler(e,t),V(e,this._providerStatus))try{t({clientName:this.metadata.name,domain:this.metadata.domain,providerName:this._provider.metadata.name})}catch(e){null==(n=this._logger)||n.error("Error running event handler:",e)}(null==r?void 0:r.signal)&&"function"==typeof r.signal.addEventListener&&r.signal.addEventListener("abort",()=>{this.removeHandler(e,t)})}removeHandler(e,t){this.emitterAccessor().removeHandler(e,t)}getHandlers(e){return this.emitterAccessor().getHandlers(e)}setLogger(e){return this._clientLogger=new U(e),this}setContext(e){return this._context=e,this}getContext(){return this._context}addHooks(...e){return this._hooks=[...this._hooks,...e],this}getHooks(){return this._hooks}clearHooks(){return this._hooks=[],this}getBooleanValue(e,t,r,n){return eo(this,null,function*(){return(yield this.getBooleanDetails(e,t,r,n)).value})}getBooleanDetails(e,t,r,n){return this.evaluate(e,this._provider.resolveBooleanEvaluation,t,"boolean",r,n)}getStringValue(e,t,r,n){return eo(this,null,function*(){return(yield this.getStringDetails(e,t,r,n)).value})}getStringDetails(e,t,r,n){return this.evaluate(e,this._provider.resolveStringEvaluation,t,"string",r,n)}getNumberValue(e,t,r,n){return eo(this,null,function*(){return(yield this.getNumberDetails(e,t,r,n)).value})}getNumberDetails(e,t,r,n){return this.evaluate(e,this._provider.resolveNumberEvaluation,t,"number",r,n)}getObjectValue(e,t,r,n){return eo(this,null,function*(){return(yield this.getObjectDetails(e,t,r,n)).value})}getObjectDetails(e,t,r,n){return this.evaluate(e,this._provider.resolveObjectEvaluation,t,"object",r,n)}track(e,t={},r={}){var n,i;try{if(this.shortCircuitIfNotReady(),"function"==typeof this._provider.track){let o=Object.freeze(this.mergeContexts(t));return null==(i=(n=this._provider).track)?void 0:i.call(n,e,o,r)}this._logger.debug("Provider does not support the track function; will no-op.")}catch(e){this._logger.debug("Error recording tracking event.",e)}}evaluate(e,t,r,n){return eo(this,arguments,function*(e,t,r,n,i={},o={}){var s;let a,l=[...this.apiHooksAccessor(),...this.getHooks(),...o.hooks||[],...this._provider.hooks||[]],u=[...l].reverse(),h=this.mergeContexts(i),c={flagKey:e,defaultValue:r,flagValueType:n,clientMetadata:this.metadata,providerMetadata:this._provider.metadata,context:h,logger:this._logger};try{let n,i,h=yield this.beforeHooks(l,c,o);this.shortCircuitIfNotReady();let d=yield t.call(this._provider,e,r,h,this._logger),f=(n=ei({},d),i={flagMetadata:Object.freeze(null!=(s=d.flagMetadata)?s:{}),flagKey:e},Q(n,Z(i)));if(f.errorCode){let t=((e,t)=>{switch(e){case"FLAG_NOT_FOUND":return new P(t);case"PARSE_ERROR":return new S(t);case"TYPE_MISMATCH":return new k(t);case"TARGETING_KEY_MISSING":return new L(t);case"INVALID_CONTEXT":return new I(t);case"PROVIDER_NOT_READY":return new D(t);case"PROVIDER_FATAL":return new w(t);default:return new N(t)}})(f.errorCode,f.errorMessage);yield this.errorHooks(u,c,t,o),a=this.getErrorEvaluationDetails(e,r,t,f.flagMetadata)}else yield this.afterHooks(u,c,f,o),a=f}catch(t){yield this.errorHooks(u,c,t,o),a=this.getErrorEvaluationDetails(e,r,t)}return yield this.finallyHooks(u,c,a,o),a})}beforeHooks(e,t,r){return eo(this,null,function*(){var n;for(let i of e)Object.freeze(t),Object.assign(t.context,ei(ei({},t.context),(yield null==(n=null==i?void 0:i.before)?void 0:n.call(i,t,Object.freeze(r.hookHints)))));return Object.freeze(t.context)})}afterHooks(e,t,r,n){return eo(this,null,function*(){var i;for(let o of e)yield null==(i=null==o?void 0:o.after)?void 0:i.call(o,t,r,n.hookHints)})}errorHooks(e,t,r,n){return eo(this,null,function*(){var i;for(let o of e)try{yield null==(i=null==o?void 0:o.error)?void 0:i.call(o,t,r,n.hookHints)}catch(e){this._logger.error(`Unhandled error during 'error' hook: ${e}`),e instanceof Error&&this._logger.error(e.stack),this._logger.error(null==e?void 0:e.stack)}})}finallyHooks(e,t,r,n){return eo(this,null,function*(){var i;for(let o of e)try{yield null==(i=null==o?void 0:o.finally)?void 0:i.call(o,t,r,n.hookHints)}catch(e){this._logger.error(`Unhandled error during 'finally' hook: ${e}`),e instanceof Error&&this._logger.error(e.stack),this._logger.error(null==e?void 0:e.stack)}})}get _provider(){return this.providerAccessor()}get _providerStatus(){return this.providerStatusAccessor()}get _logger(){return this._clientLogger||this.globalLogger()}mergeContexts(e){return ei(ei(ei(ei({},this.apiContextAccessor()),this.transactionContextAccessor()),this._context),e)}shortCircuitIfNotReady(){if(this.providerStatus===H.NOT_READY)throw new D("provider has not yet initialized");if(this.providerStatus===H.FATAL)throw new w("provider is in an irrecoverable error state")}getErrorEvaluationDetails(e,t,r,n={}){let i=null==r?void 0:r.message;return{errorCode:(null==r?void 0:r.code)||T.GENERAL,errorMessage:i,value:t,reason:x,flagMetadata:Object.freeze(n),flagKey:e}}},el=class extends K{constructor(){super(),this.eventEmitter=new J.EventEmitter({captureRejections:!0}),this.eventEmitter.on("error",e=>{var t;null==(t=this._logger)||t.error("Error running event handler:",e)})}},eu=new class{getTransactionContext(){return{}}setTransactionContext(e,t,...r){t(...r)}},eh=Symbol.for("@openfeature/js-sdk/api"),ec=globalThis;(class e extends X{constructor(){super("server"),this._statusEnumType=H,this._apiEmitter=new el,this._defaultProvider=new W(es,H.NOT_READY,this._statusEnumType),this._domainScopedProviders=new Map,this._createEventEmitter=()=>new el,this._transactionContextPropagator=eu}static getInstance(){let t=ec[eh];if(t)return t;let r=new e;return ec[eh]=r,r}getProviderStatus(e){var t,r;return e&&null!=(r=null==(t=this._domainScopedProviders.get(e))?void 0:t.status)?r:this._defaultProvider.status}setProviderAndWait(e,t){return eo(this,null,function*(){let r=B(e),n=r?$(t):$(e);yield this.setAwaitableProvider(r,n)})}setProvider(e,t){let r=B(e),n=r?$(t):$(e);return Promise.resolve(this.setAwaitableProvider(r,n)).catch(e=>{this._logger.error("Error during provider initialization:",e)}),this}getProvider(e){return this.getProviderForClient(e)}setContext(e){return this._context=e,this}getContext(){return this._context}getClient(e,t,r){var n,i;let o=B(e);return new ea(()=>this.getProviderForClient(o),()=>this.getProviderStatus(o),()=>this.buildAndCacheEventEmitterForClient(o),()=>this.getContext(),()=>this.getHooks(),()=>this.getTransactionContext(),()=>this._logger,{domain:o,version:B(t)},null!=(i=null!=(n=$(e))?n:$(t))?i:$(r))}clearProviders(){return super.clearProvidersAndSetDefault(es)}setTransactionContextPropagator(e){let t="Invalid TransactionContextPropagator, will not be set: ";return"function"!=typeof(null==e?void 0:e.getTransactionContext)?this._logger.error(`${t}: getTransactionContext is not a function.`):"function"!=typeof(null==e?void 0:e.setTransactionContext)?this._logger.error(`${t}: setTransactionContext is not a function.`):this._transactionContextPropagator=e,this}setTransactionContext(e,t,...r){this._transactionContextPropagator.setTransactionContext(e,t,...r)}getTransactionContext(){try{return this._transactionContextPropagator.getTransactionContext()}catch(e){return this._logger.error(`Error getting transaction context: ${null==e?void 0:e.message}, returning empty context.`),this._logger.error(null==e?void 0:e.stack),{}}}}).getInstance(),(s=a||(a={})).MATCHES="MATCHES",s.NOT_MATCHES="NOT_MATCHES",s.GTE="GTE",s.GT="GT",s.LTE="LTE",s.LT="LT",s.ONE_OF="ONE_OF",s.NOT_ONE_OF="NOT_ONE_OF",s.IS_NULL="IS_NULL";class ed{}class ef extends ed{getShard(e,t){return parseInt(h(e).slice(0,8),16)%t}}function eg(e,t,r,n,i,o){if(!e)return{value:n,reason:"ERROR",errorCode:T.PROVIDER_NOT_READY};let{targetingKey:s,...l}=i;if(!s)return{value:n,reason:"ERROR",errorCode:T.TARGETING_KEY_MISSING};let u={id:s,...l};try{return function(e,t,r,n,i,o){if(!(null==e?void 0:e.enabled))return o.debug("returning default assignment because flag is disabled",{flagKey:e?e.key:"undefined",subjectKey:r}),{value:i,reason:"DISABLED"};if(!function(e,t){if("boolean"===e)return"BOOLEAN"===t;if("string"===e)return"STRING"===t;if("number"===e)return"INTEGER"===t||"NUMERIC"===t;if("object"===e)return"JSON"===t;throw Error(`Invalid expected type: ${e}`)}(t,e.variationType))return o.debug("variant value type mismatch, returning default value",{flagKey:e.key,subjectKey:r,expectedType:t,variantType:e.variationType}),{value:i,reason:x,errorCode:T.TYPE_MISMATCH};let s=new Date;for(let t of e.allocations){if(t.startAt&&s=new Date(t.endAt)){o.debug("allocation after end date",{flagKey:e.key,subjectKey:r,allocationKey:t.key,endAt:t.endAt});continue}if(!function(e,t,r){return null==e||!e.length||(r.debug("evaluating rules",{rules:JSON.stringify(e),subjectAttributes:t}),e.some(e=>!(function(e,t){return t.map(t=>(function(e,t){var r,n,i;let o=e[t.attribute];if(t.operator===a.IS_NULL)return t.value?null==o:null!=o;if(null!=o)switch(t.operator){case a.GTE:case a.GT:case a.LTE:case a.LT:return r=o,n=t.value,((e,r)=>t.operator===a.GTE?e>=r:t.operator===a.GT?e>r:t.operator===a.LTE?e<=r:e{let o=function(e,t,r){var n,i;let o=new ef().getShard((n=e.salt,i=t,`${n}-${i}`),e.totalShards);return e.ranges.some(e=>{var t,r;return t=o,(r=e).start<=t&&t{this.resolve=()=>{this.cleanup(),e()},this.reject=e=>{this.cleanup(),t(e)}}),new Promise(()=>{this.timeoutId=setTimeout(()=>{t()},e)})])}async wait(){try{await this.promise}finally{this.cleanup()}}complete(){this.resolve&&this.resolve()}fail(e){this.reject&&this.reject(e)}isInitializing(){return void 0!==this.resolve}cleanup(){this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=void 0),this.resolve=void 0,this.reject=void 0}}class ep{constructor(e){this.options=e,this.metadata={name:"datadog-node-server"},this.runsOn="server",this.hooks=[],this.events=new el,this.exposureCache=new v(5e4)}getConfiguration(){return this.configuration}setConfiguration(e){var t,r,n;let i=null==(t=this.configuration)?void 0:t.createdAt,o=!!this.configuration;if(o&&this.configuration!==e){this.events.emit(M.ConfigurationChanged),i!==(null==e?void 0:e.createdAt)&&(null==(r=this.exposureCache)||r.clear()),this.configuration=e;return}this.configuration=e,(null==(n=this.initController)?void 0:n.isInitializing())?this.initController.complete():o||this.events.emit(M.Ready)}setError(e){var t;(null==(t=this.initController)?void 0:t.isInitializing())?this.initController.fail(e):this.events.emit(M.Error,{error:e})}async initialize(){var e,t;if(this.configuration)return;let r=null!=(e=this.options.initializationTimeoutMs)?e:3e4;this.initController=new ev(r,()=>this.setError(Error(`Initialization timeout after ${r}ms`))),await this.initController.wait(),await (null==(t=this.exposureCache)?void 0:t.init())}async resolveBooleanEvaluation(e,t,r,n){let i=eg(this.configuration,"boolean",e,t,r,n);return this.handleExposure(e,r,i),i}async resolveStringEvaluation(e,t,r,n){let i=eg(this.configuration,"string",e,t,r,n);return this.handleExposure(e,r,i),i}async resolveNumberEvaluation(e,t,r,n){let i=eg(this.configuration,"number",e,t,r,n);return this.handleExposure(e,r,i),i}async resolveObjectEvaluation(e,t,r,n){let i=eg(this.configuration,"object",e,t,r,n);return this.handleExposure(e,r,i),i}handleExposure(e,t,r){var n,i,o;let s=Date.now(),a=function(e,t){var r,n;if(!(null==(r=t.flagMetadata)?void 0:r.doLog))return;let i=null==(n=t.flagMetadata)?void 0:n.allocationKey,o=t.variant;if(!i||!o)return;let{targetingKey:s="",...a}=e;return{allocation:{key:i},flag:{key:t.flagKey},variant:{key:o},subject:{id:s,attributes:a}}}(t,{...r,flagKey:e,flagMetadata:null!=(n=r.flagMetadata)?n:{}});!a||(null==(i=this.exposureCache)?void 0:i.has(a))||this.options.exposureChannel.hasSubscribers&&(this.options.exposureChannel.publish({...a,timestamp:s}),null==(o=this.exposureCache)||o.set(a))}}})(),module.exports=n})(); \ No newline at end of file +(()=>{var e={694:function(e){e.exports=function(e){"use strict";var t=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"];function r(e,t){var r=e[0],n=e[1],i=e[2],o=e[3];r+=(n&i|~n&o)+t[0]-0x28955b88|0,o+=((r=(r<<7|r>>>25)+n|0)&n|~r&i)+t[1]-0x173848aa|0,i+=((o=(o<<12|o>>>20)+r|0)&r|~o&n)+t[2]+0x242070db|0,n+=((i=(i<<17|i>>>15)+o|0)&o|~i&r)+t[3]-0x3e423112|0,r+=((n=(n<<22|n>>>10)+i|0)&i|~n&o)+t[4]-0xa83f051|0,o+=((r=(r<<7|r>>>25)+n|0)&n|~r&i)+t[5]+0x4787c62a|0,i+=((o=(o<<12|o>>>20)+r|0)&r|~o&n)+t[6]-0x57cfb9ed|0,n+=((i=(i<<17|i>>>15)+o|0)&o|~i&r)+t[7]-0x2b96aff|0,r+=((n=(n<<22|n>>>10)+i|0)&i|~n&o)+t[8]+0x698098d8|0,o+=((r=(r<<7|r>>>25)+n|0)&n|~r&i)+t[9]-0x74bb0851|0,i+=((o=(o<<12|o>>>20)+r|0)&r|~o&n)+t[10]-42063|0,n+=((i=(i<<17|i>>>15)+o|0)&o|~i&r)+t[11]-0x76a32842|0,r+=((n=(n<<22|n>>>10)+i|0)&i|~n&o)+t[12]+0x6b901122|0,o+=((r=(r<<7|r>>>25)+n|0)&n|~r&i)+t[13]-0x2678e6d|0,i+=((o=(o<<12|o>>>20)+r|0)&r|~o&n)+t[14]-0x5986bc72|0,n+=((i=(i<<17|i>>>15)+o|0)&o|~i&r)+t[15]+0x49b40821|0,r+=((n=(n<<22|n>>>10)+i|0)&o|i&~o)+t[1]-0x9e1da9e|0,o+=((r=(r<<5|r>>>27)+n|0)&i|n&~i)+t[6]-0x3fbf4cc0|0,i+=((o=(o<<9|o>>>23)+r|0)&n|r&~n)+t[11]+0x265e5a51|0,n+=((i=(i<<14|i>>>18)+o|0)&r|o&~r)+t[0]-0x16493856|0,r+=((n=(n<<20|n>>>12)+i|0)&o|i&~o)+t[5]-0x29d0efa3|0,o+=((r=(r<<5|r>>>27)+n|0)&i|n&~i)+t[10]+0x2441453|0,i+=((o=(o<<9|o>>>23)+r|0)&n|r&~n)+t[15]-0x275e197f|0,n+=((i=(i<<14|i>>>18)+o|0)&r|o&~r)+t[4]-0x182c0438|0,r+=((n=(n<<20|n>>>12)+i|0)&o|i&~o)+t[9]+0x21e1cde6|0,o+=((r=(r<<5|r>>>27)+n|0)&i|n&~i)+t[14]-0x3cc8f82a|0,i+=((o=(o<<9|o>>>23)+r|0)&n|r&~n)+t[3]-0xb2af279|0,n+=((i=(i<<14|i>>>18)+o|0)&r|o&~r)+t[8]+0x455a14ed|0,r+=((n=(n<<20|n>>>12)+i|0)&o|i&~o)+t[13]-0x561c16fb|0,o+=((r=(r<<5|r>>>27)+n|0)&i|n&~i)+t[2]-0x3105c08|0,i+=((o=(o<<9|o>>>23)+r|0)&n|r&~n)+t[7]+0x676f02d9|0,n+=((i=(i<<14|i>>>18)+o|0)&r|o&~r)+t[12]-0x72d5b376|0,r+=((n=(n<<20|n>>>12)+i|0)^i^o)+t[5]-378558|0,o+=((r=(r<<4|r>>>28)+n|0)^n^i)+t[8]-0x788e097f|0,i+=((o=(o<<11|o>>>21)+r|0)^r^n)+t[11]+0x6d9d6122|0,n+=((i=(i<<16|i>>>16)+o|0)^o^r)+t[14]-0x21ac7f4|0,r+=((n=(n<<23|n>>>9)+i|0)^i^o)+t[1]-0x5b4115bc|0,o+=((r=(r<<4|r>>>28)+n|0)^n^i)+t[4]+0x4bdecfa9|0,i+=((o=(o<<11|o>>>21)+r|0)^r^n)+t[7]-0x944b4a0|0,n+=((i=(i<<16|i>>>16)+o|0)^o^r)+t[10]-0x41404390|0,r+=((n=(n<<23|n>>>9)+i|0)^i^o)+t[13]+0x289b7ec6|0,o+=((r=(r<<4|r>>>28)+n|0)^n^i)+t[0]-0x155ed806|0,i+=((o=(o<<11|o>>>21)+r|0)^r^n)+t[3]-0x2b10cf7b|0,n+=((i=(i<<16|i>>>16)+o|0)^o^r)+t[6]+0x4881d05|0,r+=((n=(n<<23|n>>>9)+i|0)^i^o)+t[9]-0x262b2fc7|0,o+=((r=(r<<4|r>>>28)+n|0)^n^i)+t[12]-0x1924661b|0,i+=((o=(o<<11|o>>>21)+r|0)^r^n)+t[15]+0x1fa27cf8|0,n+=((i=(i<<16|i>>>16)+o|0)^o^r)+t[2]-0x3b53a99b|0,n=(n<<23|n>>>9)+i|0,r+=(i^(n|~o))+t[0]-0xbd6ddbc|0,r=(r<<6|r>>>26)+n|0,o+=(n^(r|~i))+t[7]+0x432aff97|0,o=(o<<10|o>>>22)+r|0,i+=(r^(o|~n))+t[14]-0x546bdc59|0,i=(i<<15|i>>>17)+o|0,n+=(o^(i|~r))+t[5]-0x36c5fc7|0,n=(n<<21|n>>>11)+i|0,r+=(i^(n|~o))+t[12]+0x655b59c3|0,r=(r<<6|r>>>26)+n|0,o+=(n^(r|~i))+t[3]-0x70f3336e|0,o=(o<<10|o>>>22)+r|0,i+=(r^(o|~n))+t[10]-1051523|0,i=(i<<15|i>>>17)+o|0,n+=(o^(i|~r))+t[1]-0x7a7ba22f|0,n=(n<<21|n>>>11)+i|0,r+=(i^(n|~o))+t[8]+0x6fa87e4f|0,r=(r<<6|r>>>26)+n|0,o+=(n^(r|~i))+t[15]-0x1d31920|0,o=(o<<10|o>>>22)+r|0,i+=(r^(o|~n))+t[6]-0x5cfebcec|0,i=(i<<15|i>>>17)+o|0,n+=(o^(i|~r))+t[13]+0x4e0811a1|0,n=(n<<21|n>>>11)+i|0,r+=(i^(n|~o))+t[4]-0x8ac817e|0,r=(r<<6|r>>>26)+n|0,o+=(n^(r|~i))+t[11]-0x42c50dcb|0,o=(o<<10|o>>>22)+r|0,i+=(r^(o|~n))+t[2]+0x2ad7d2bb|0,i=(i<<15|i>>>17)+o|0,n+=(o^(i|~r))+t[9]-0x14792c6f|0,n=(n<<21|n>>>11)+i|0,e[0]=r+e[0]|0,e[1]=n+e[1]|0,e[2]=i+e[2]|0,e[3]=o+e[3]|0}function n(e){var t,r=[];for(t=0;t<64;t+=4)r[t>>2]=e.charCodeAt(t)+(e.charCodeAt(t+1)<<8)+(e.charCodeAt(t+2)<<16)+(e.charCodeAt(t+3)<<24);return r}function i(e){var t,r=[];for(t=0;t<64;t+=4)r[t>>2]=e[t]+(e[t+1]<<8)+(e[t+2]<<16)+(e[t+3]<<24);return r}function o(e){var t,i,o,s,a,l,u=e.length,h=[0x67452301,-0x10325477,-0x67452302,0x10325476];for(t=64;t<=u;t+=64)r(h,n(e.substring(t-64,t)));for(i=(e=e.substring(t-64)).length,o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],t=0;t>2]|=e.charCodeAt(t)<<(t%4<<3);if(o[t>>2]|=128<<(t%4<<3),t>55)for(r(h,o),t=0;t<16;t+=1)o[t]=0;return a=parseInt((s=(s=8*u).toString(16).match(/(.*?)(.{0,8})$/))[2],16),l=parseInt(s[1],16)||0,o[14]=a,o[15]=l,r(h,o),h}function s(e){var r;for(r=0;r>8*r+4&15]+t[e>>8*r&15];return n}(e[r]);return e.join("")}function a(e){return/[\u0080-\uFFFF]/.test(e)&&(e=unescape(encodeURIComponent(e))),e}function l(e){var t,r=[],n=e.length;for(t=0;tu)?new ArrayBuffer(0):(o=new Uint8Array(i=new ArrayBuffer(n=u-l)),s=new Uint8Array(this,l,n),o.set(s),i)}}(),u.prototype.append=function(e){return this.appendBinary(a(e)),this},u.prototype.appendBinary=function(e){this._buff+=e,this._length+=e.length;var t,i=this._buff.length;for(t=64;t<=i;t+=64)r(this._hash,n(this._buff.substring(t-64,t)));return this._buff=this._buff.substring(t-64),this},u.prototype.end=function(e){var t,r,n=this._buff,i=n.length,o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(t=0;t>2]|=n.charCodeAt(t)<<(t%4<<3);return this._finish(o,i),r=s(this._hash),e&&(r=l(r)),this.reset(),r},u.prototype.reset=function(){return this._buff="",this._length=0,this._hash=[0x67452301,-0x10325477,-0x67452302,0x10325476],this},u.prototype.getState=function(){return{buff:this._buff,length:this._length,hash:this._hash.slice()}},u.prototype.setState=function(e){return this._buff=e.buff,this._length=e.length,this._hash=e.hash,this},u.prototype.destroy=function(){delete this._hash,delete this._buff,delete this._length},u.prototype._finish=function(e,t){var n,i,o,s=t;if(e[s>>2]|=128<<(s%4<<3),s>55)for(r(this._hash,e),s=0;s<16;s+=1)e[s]=0;i=parseInt((n=(n=8*this._length).toString(16).match(/(.*?)(.{0,8})$/))[2],16),o=parseInt(n[1],16)||0,e[14]=i,e[15]=o,r(this._hash,e)},u.hash=function(e,t){return u.hashBinary(a(e),t)},u.hashBinary=function(e,t){var r=s(o(e));return t?l(r):r},u.ArrayBuffer=function(){this.reset()},u.ArrayBuffer.prototype.append=function(e){var t,n,o,s=(t=this._buff.buffer,(n=new Uint8Array(t.byteLength+e.byteLength)).set(new Uint8Array(t)),n.set(new Uint8Array(e),t.byteLength),n),a=s.length;for(this._length+=e.byteLength,o=64;o<=a;o+=64)r(this._hash,i(s.subarray(o-64,o)));return this._buff=new Uint8Array(o-64>2]|=n[t]<<(t%4<<3);return this._finish(o,i),r=s(this._hash),e&&(r=l(r)),this.reset(),r},u.ArrayBuffer.prototype.reset=function(){return this._buff=new Uint8Array(0),this._length=0,this._hash=[0x67452301,-0x10325477,-0x67452302,0x10325476],this},u.ArrayBuffer.prototype.getState=function(){var e,t=u.prototype.getState.call(this);return e=t.buff,t.buff=String.fromCharCode.apply(null,new Uint8Array(e)),t},u.ArrayBuffer.prototype.setState=function(e){return e.buff=function(e,t){var r,n=e.length,i=new ArrayBuffer(n),o=new Uint8Array(i);for(r=0;r>2]|=e[t]<<(t%4<<3);if(o[t>>2]|=128<<(t%4<<3),t>55)for(r(h,o),t=0;t<16;t+=1)o[t]=0;return a=parseInt((s=(s=8*u).toString(16).match(/(.*?)(.{0,8})$/))[2],16),l=parseInt(s[1],16)||0,o[14]=a,o[15]=l,r(h,o),h}(new Uint8Array(e)));return t?l(n):n},u}()},984:function(e,t,r){"use strict";r.d(t,{ErrorCode:()=>E,GenericEventEmitter:()=>H,OpenFeatureCommonAPI:()=>V,ProviderFatalError:()=>O,ProviderNotReadyError:()=>A,ProviderWrapper:()=>F,SafeLogger:()=>k,ServerProviderEvents:()=>S,ServerProviderStatus:()=>T,StandardResolutionReasons:()=>p,instantiateErrorByErrorCode:()=>P,objectOrUndefined:()=>M,statusMatchesEvent:()=>D,stringOrUndefined:()=>j});var n,i,o,s,a=Object.defineProperty,l=Object.defineProperties,u=Object.getOwnPropertyDescriptors,h=Object.getOwnPropertySymbols,d=Object.prototype.hasOwnProperty,c=Object.prototype.propertyIsEnumerable,f=(e,t,r)=>t in e?a(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,v=(e,t)=>{for(var r in t||(t={}))d.call(t,r)&&f(e,r,t[r]);if(h)for(var r of h(t))c.call(t,r)&&f(e,r,t[r]);return e},g=(e,t,r)=>new Promise((n,i)=>{var o=e=>{try{a(r.next(e))}catch(e){i(e)}},s=e=>{try{a(r.throw(e))}catch(e){i(e)}},a=e=>e.done?n(e.value):Promise.resolve(e.value).then(o,s);a((r=r.apply(e,t)).next())}),p={STATIC:"STATIC",DEFAULT:"DEFAULT",TARGETING_MATCH:"TARGETING_MATCH",SPLIT:"SPLIT",CACHED:"CACHED",DISABLED:"DISABLED",UNKNOWN:"UNKNOWN",STALE:"STALE",ERROR:"ERROR"},E=((n=E||{}).PROVIDER_NOT_READY="PROVIDER_NOT_READY",n.PROVIDER_FATAL="PROVIDER_FATAL",n.FLAG_NOT_FOUND="FLAG_NOT_FOUND",n.PARSE_ERROR="PARSE_ERROR",n.TYPE_MISMATCH="TYPE_MISMATCH",n.TARGETING_KEY_MISSING="TARGETING_KEY_MISSING",n.INVALID_CONTEXT="INVALID_CONTEXT",n.GENERAL="GENERAL",n),_=class e extends Error{constructor(t,r){super(t),Object.setPrototypeOf(this,e.prototype),this.name="OpenFeatureError",this.cause=null==r?void 0:r.cause}},y=class e extends _{constructor(t,r){super(t,r),Object.setPrototypeOf(this,e.prototype),this.name="FlagNotFoundError",this.code="FLAG_NOT_FOUND"}},m=class e extends _{constructor(t,r){super(t,r),Object.setPrototypeOf(this,e.prototype),this.name="GeneralError",this.code="GENERAL"}},R=class e extends _{constructor(t,r){super(t,r),Object.setPrototypeOf(this,e.prototype),this.name="InvalidContextError",this.code="INVALID_CONTEXT"}},b=class e extends _{constructor(t,r){super(t,r),Object.setPrototypeOf(this,e.prototype),this.name="ParseError",this.code="PARSE_ERROR"}},O=class e extends _{constructor(t,r){super(t,r),Object.setPrototypeOf(this,e.prototype),this.name="ProviderFatalError",this.code="PROVIDER_FATAL"}},A=class e extends _{constructor(t,r){super(t,r),Object.setPrototypeOf(this,e.prototype),this.name="ProviderNotReadyError",this.code="PROVIDER_NOT_READY"}},x=class e extends _{constructor(t,r){super(t,r),Object.setPrototypeOf(this,e.prototype),this.name="TargetingKeyMissingError",this.code="TARGETING_KEY_MISSING"}},C=class e extends _{constructor(t,r){super(t,r),Object.setPrototypeOf(this,e.prototype),this.name="TypeMismatchError",this.code="TYPE_MISMATCH"}},P=(e,t)=>{switch(e){case"FLAG_NOT_FOUND":return new y(t);case"PARSE_ERROR":return new b(t);case"TYPE_MISMATCH":return new C(t);case"TARGETING_KEY_MISSING":return new x(t);case"INVALID_CONTEXT":return new R(t);case"PROVIDER_NOT_READY":return new A(t);case"PROVIDER_FATAL":return new O(t);default:return new m(t)}},T=((i=T||{}).NOT_READY="NOT_READY",i.READY="READY",i.ERROR="ERROR",i.STALE="STALE",i.FATAL="FATAL",i),S=((o=S||{}).Ready="PROVIDER_READY",o.Error="PROVIDER_ERROR",o.ConfigurationChanged="PROVIDER_CONFIGURATION_CHANGED",o.Stale="PROVIDER_STALE",o),N=((s=N||{}).Ready="PROVIDER_READY",s.Error="PROVIDER_ERROR",s.ConfigurationChanged="PROVIDER_CONFIGURATION_CHANGED",s.ContextChanged="PROVIDER_CONTEXT_CHANGED",s.Reconciling="PROVIDER_RECONCILING",s.Stale="PROVIDER_STALE",s),I={READY:"PROVIDER_READY",ERROR:"PROVIDER_ERROR",FATAL:"PROVIDER_ERROR",STALE:"PROVIDER_STALE",RECONCILING:"PROVIDER_RECONCILING",NOT_READY:void 0},D=(e,t)=>!t&&"PROVIDER_READY"===e||I[t]===e,w=class{error(...e){console.error(...e)}warn(...e){console.warn(...e)}info(){}debug(){}},L=["error","warn","info","debug"],k=class{constructor(e){this.fallbackLogger=new w;try{for(const t of L)if(!e[t]||"function"!=typeof e[t])throw Error(`The provided logger is missing the ${t} method.`);this.logger=e}catch(e){console.error(e),console.error("Falling back to the default logger."),this.logger=this.fallbackLogger}}error(...e){this.log("error",...e)}warn(...e){this.log("warn",...e)}info(...e){this.log("info",...e)}debug(...e){this.log("debug",...e)}log(e,...t){try{this.logger[e](...t)}catch(r){this.fallbackLogger[e](...t)}}},H=class{constructor(e){this.globalLogger=e,this._handlers={PROVIDER_CONFIGURATION_CHANGED:new WeakMap,PROVIDER_CONTEXT_CHANGED:new WeakMap,PROVIDER_READY:new WeakMap,PROVIDER_ERROR:new WeakMap,PROVIDER_STALE:new WeakMap,PROVIDER_RECONCILING:new WeakMap}}emit(e,t){this.eventEmitter.emit(e,t)}addHandler(e,t){let r=e=>g(this,null,function*(){var r;try{yield t(e)}catch(e){null==(r=this._logger)||r.error("Error running event handler:",e)}}),n=this._handlers[e].get(t);this._handlers[e].set(t,[...n||[],r]),this.eventEmitter.on(e,r)}removeHandler(e,t){let r=this._handlers[e].get(t);if(r){let t=r.pop();t&&this.eventEmitter.removeListener(e,t)}}removeAllHandlers(e){e?this.eventEmitter.removeAllListeners(e):this.eventEmitter.removeAllListeners()}getHandlers(e){return this.eventEmitter.listeners(e)}setLogger(e){return this._eventLogger=new k(e),this}get _logger(){var e,t;return null!=(t=this._eventLogger)?t:null==(e=this.globalLogger)?void 0:e.call(this)}};function j(e){return"string"==typeof e?e:void 0}function M(e){return"object"==typeof e?e:void 0}function G(e){return null!=e}var F=class{constructor(e,t,r){var n,i,o;this._provider=e,this._status=t,this._pendingContextChanges=0,null==(n=e.events)||n.addHandler("PROVIDER_READY",()=>{this._status=r.READY}),null==(i=e.events)||i.addHandler("PROVIDER_STALE",()=>{this._status=r.STALE}),null==(o=e.events)||o.addHandler("PROVIDER_ERROR",e=>{(null==e?void 0:e.errorCode)==="PROVIDER_FATAL"?this._status=r.FATAL:this._status=r.ERROR})}get provider(){return this._provider}set provider(e){this._provider=e}get status(){return this._status}set status(e){this._status=e}get allContextChangesSettled(){return 0===this._pendingContextChanges}incrementPendingContextChanges(){this._pendingContextChanges++}decrementPendingContextChanges(){this._pendingContextChanges--}},V=class{constructor(e){this._hooks=[],this._context={},this._logger=new w,this._clientEventHandlers=new Map,this._domainScopedContext=new Map,this._clientEvents=new Map,this._runsOn=e}addHooks(...e){return this._hooks=[...this._hooks,...e],this}getHooks(){return this._hooks}clearHooks(){return this._hooks=[],this}setLogger(e){return this._logger=new k(e),this}get providerMetadata(){return this.getProviderMetadata()}getProviderMetadata(e){return this.getProviderForClient(e).metadata}addHandler(e,t,r){[...new Map([[void 0,this._defaultProvider]]),...this._domainScopedProviders].forEach(r=>{var n;let i=r[0],o=r[1].provider;if(D(e,r[1].status))try{t({domain:i,providerName:o.metadata.name})}catch(e){null==(n=this._logger)||n.error("Error running event handler:",e)}}),this._apiEmitter.addHandler(e,t),(null==r?void 0:r.signal)&&"function"==typeof r.signal.addEventListener&&r.signal.addEventListener("abort",()=>{this.removeHandler(e,t)})}removeHandler(e,t){this._apiEmitter.removeHandler(e,t)}clearHandlers(){this._apiEmitter.removeAllHandlers()}getHandlers(e){return this._apiEmitter.getHandlers(e)}setAwaitableProvider(e,t){var r,n,i,o,s,a,l,u;let h,d=j(e),c=null!=(r=M(e))?r:M(t);if(!c)return void this._logger.debug("No provider defined, ignoring setProvider call");let f=this.getProviderForClient(d),v=c.metadata.name;if(f===c)return void this._logger.debug("Provider is already set, ignoring setProvider call");if(c.runsOn){if(c.runsOn!==this._runsOn)throw new m(`Provider '${c.metadata.name}' is intended for use on the ${c.runsOn}.`)}else this._logger.debug(`Provider '${c.metadata.name}' has not defined its intended use.`);let g=this.getAssociatedEventEmitters(d),p=new F(c,this._statusEnumType.NOT_READY,this._statusEnumType);return"function"!=typeof c.initialize||this.allProviders.includes(c)?(p.status=this._statusEnumType.READY,g.forEach(e=>{null==e||e.emit("PROVIDER_READY",{clientName:d,domain:d,providerName:v})}),null==(a=this._apiEmitter)||a.emit("PROVIDER_READY",{clientName:d,domain:d,providerName:v})):h=null==(s=null==(o=null==(i=c.initialize)?void 0:i.call(c,d&&null!=(n=this._domainScopedContext.get(d))?n:this._context))?void 0:o.then(()=>{var e;p.status=this._statusEnumType.READY,this.getAssociatedEventEmitters(d).forEach(e=>{null==e||e.emit("PROVIDER_READY",{clientName:d,domain:d,providerName:v})}),null==(e=this._apiEmitter)||e.emit("PROVIDER_READY",{clientName:d,domain:d,providerName:v})}))?void 0:s.catch(e=>{var t;throw(null==e?void 0:e.code)==="PROVIDER_FATAL"?p.status=this._statusEnumType.FATAL:p.status=this._statusEnumType.ERROR,this.getAssociatedEventEmitters(d).forEach(t=>{null==t||t.emit("PROVIDER_ERROR",{clientName:d,domain:d,providerName:v,message:null==e?void 0:e.message})}),null==(t=this._apiEmitter)||t.emit("PROVIDER_ERROR",{clientName:d,domain:d,providerName:v,message:null==e?void 0:e.message}),e}),d?this._domainScopedProviders.set(d,p):this._defaultProvider=p,this.transferListeners(f,c,d,g),this.allProviders.includes(f)||null==(u=null==(l=null==f?void 0:f.onClose)?void 0:l.call(f))||u.catch(e=>{this._logger.error(`error closing provider: ${null==e?void 0:e.message}, ${null==e?void 0:e.stack}`)}),h}getProviderForClient(e){var t,r;return e&&null!=(r=null==(t=this._domainScopedProviders.get(e))?void 0:t.provider)?r:this._defaultProvider.provider}buildAndCacheEventEmitterForClient(e){let t=this._clientEvents.get(e);if(t)return t;let r=this._createEventEmitter();this._clientEvents.set(e,r);let n=this.getProviderForClient(e);return Object.values(N).forEach(t=>{var i;return null==(i=n.events)?void 0:i.addHandler(t,i=>g(this,null,function*(){r.emit(t,l(v({},i),u({clientName:e,domain:e,providerName:n.metadata.name})))}))}),r}getUnboundEmitters(){let e=[...this._domainScopedProviders.keys()];return[...[...this._clientEvents.keys()].filter(G).filter(t=>!e.includes(t)).map(e=>this._clientEvents.get(e)),this._clientEvents.get(void 0)].filter(G)}getAssociatedEventEmitters(e){return e?[this.buildAndCacheEventEmitterForClient(e)]:this.getUnboundEmitters()}transferListeners(e,t,r,n){var i;null==(i=this._clientEventHandlers.get(r))||i.forEach(t=>{var r;return null==(r=e.events)?void 0:r.removeHandler(...t)});let o=Object.values(N).map(e=>{let i=i=>g(this,null,function*(){n.forEach(n=>{null==n||n.emit(e,l(v({},i),u({clientName:r,domain:r,providerName:t.metadata.name})))}),this._apiEmitter.emit(e,l(v({},i),u({clientName:r,domain:r,providerName:t.metadata.name})))});return[e,i]});this._clientEventHandlers.set(r,o),o.forEach(e=>{var r;return null==(r=t.events)?void 0:r.addHandler(...e)})}close(){return g(this,null,function*(){var e,t;try{yield null==(t=null==(e=this==null?void 0:this._defaultProvider.provider)?void 0:e.onClose)?void 0:t.call(e)}catch(e){this.handleShutdownError(this._defaultProvider.provider,e)}let r=Array.from(this._domainScopedProviders);yield Promise.all(r.map(e=>g(this,[e],function*([,e]){var t,r;try{yield null==(r=null==e?void 0:(t=e.provider).onClose)?void 0:r.call(t)}catch(t){this.handleShutdownError(null==e?void 0:e.provider,t)}})))})}clearProvidersAndSetDefault(e){return g(this,null,function*(){try{yield this.close()}catch(e){this._logger.error("Unable to cleanly close providers. Resetting to the default configuration.")}finally{this._domainScopedProviders.clear(),this._defaultProvider=new F(e,this._statusEnumType.NOT_READY,this._statusEnumType)}})}get allProviders(){return[...[...this._domainScopedProviders.values()].map(e=>e.provider),this._defaultProvider.provider]}handleShutdownError(e,t){this._logger.error(`Error during shutdown of provider ${e.metadata.name}: ${t}`),this._logger.error(null==t?void 0:t.stack)}}}},t={};function r(n){var i=t[n];if(void 0!==i)return i.exports;var o=t[n]={exports:{}};return e[n](o,o.exports,r),o.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};(()=>{"use strict";r.r(n),r.d(n,{DatadogNodeServerProvider:()=>w});var e,t,i=r(694),o=r.n(i);function s(e,t=""){return new(o())().append(t).append(e).end()}function a(e){return s(JSON.stringify({flag:{key:e.flag.key},subject:{id:e.subject.id,attributes:e.subject.attributes}}))}function l(e){return s(JSON.stringify(e))}class u{constructor(e){this.delegate=e}init(){return Promise.resolve()}has(e){return this.get(e)===l(e)}get(e){return this.delegate.get(a(e))}set(e){this.delegate.set(a(e),l(e))}entries(){return this.delegate.entries()}clear(){this.delegate.clear()}}class h{constructor(e){this.capacity=e,this.cache=new Map,this.size=this.cache.size}[(Symbol.toStringTag,Symbol.iterator)](){return this.cache[Symbol.iterator]()}forEach(e){this.cache.forEach(e)}entries(){return this.cache.entries()}clear(){this.cache.clear()}delete(e){return this.cache.delete(e)}keys(){return this.cache.keys()}values(){return this.cache.values()}has(e){return this.cache.has(e)}get(e){if(!this.has(e))return;let t=this.cache.get(e);return void 0!==t&&(this.delete(e),this.cache.set(e,t)),t}set(e,t){if(0===this.capacity)return this;if(this.cache.has(e))this.cache.delete(e);else if(this.cache.size>=this.capacity){let e=this.cache.keys().next().value;e&&this.delete(e)}return this.cache.set(e,t),this}}class d extends u{constructor(e){super(new h(e))}}var c=r(984);let f=require("node:events");require("async_hooks");var v=Object.defineProperty,g=Object.defineProperties,p=Object.getOwnPropertyDescriptors,E=Object.getOwnPropertySymbols,_=Object.prototype.hasOwnProperty,y=Object.prototype.propertyIsEnumerable,m=(e,t,r)=>t in e?v(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,R=(e,t)=>{for(var r in t||(t={}))_.call(t,r)&&m(e,r,t[r]);if(E)for(var r of E(t))y.call(t,r)&&m(e,r,t[r]);return e},b=(e,t,r)=>new Promise((n,i)=>{var o=e=>{try{a(r.next(e))}catch(e){i(e)}},s=e=>{try{a(r.throw(e))}catch(e){i(e)}},a=e=>e.done?n(e.value):Promise.resolve(e.value).then(o,s);a((r=r.apply(e,t)).next())}),O=new class{constructor(){this.metadata={name:"No-op Provider"}}resolveBooleanEvaluation(e,t){return this.noOp(t)}resolveStringEvaluation(e,t){return this.noOp(t)}resolveNumberEvaluation(e,t){return this.noOp(t)}resolveObjectEvaluation(e,t){return this.noOp(t)}noOp(e){return Promise.resolve({value:e,reason:"No-op"})}},A=class{constructor(e,t,r,n,i,o,s,a,l={}){this.providerAccessor=e,this.providerStatusAccessor=t,this.emitterAccessor=r,this.apiContextAccessor=n,this.apiHooksAccessor=i,this.transactionContextAccessor=o,this.globalLogger=s,this.options=a,this._hooks=[],this._context=l}get metadata(){var e,t;return{name:null!=(e=this.options.domain)?e:this.options.name,domain:null!=(t=this.options.domain)?t:this.options.name,version:this.options.version,providerMetadata:this.providerAccessor().metadata}}get providerStatus(){return this.providerStatusAccessor()}addHandler(e,t,r){var n;if(this.emitterAccessor().addHandler(e,t),(0,c.statusMatchesEvent)(e,this._providerStatus))try{t({clientName:this.metadata.name,domain:this.metadata.domain,providerName:this._provider.metadata.name})}catch(e){null==(n=this._logger)||n.error("Error running event handler:",e)}(null==r?void 0:r.signal)&&"function"==typeof r.signal.addEventListener&&r.signal.addEventListener("abort",()=>{this.removeHandler(e,t)})}removeHandler(e,t){this.emitterAccessor().removeHandler(e,t)}getHandlers(e){return this.emitterAccessor().getHandlers(e)}setLogger(e){return this._clientLogger=new c.SafeLogger(e),this}setContext(e){return this._context=e,this}getContext(){return this._context}addHooks(...e){return this._hooks=[...this._hooks,...e],this}getHooks(){return this._hooks}clearHooks(){return this._hooks=[],this}getBooleanValue(e,t,r,n){return b(this,null,function*(){return(yield this.getBooleanDetails(e,t,r,n)).value})}getBooleanDetails(e,t,r,n){return this.evaluate(e,this._provider.resolveBooleanEvaluation,t,"boolean",r,n)}getStringValue(e,t,r,n){return b(this,null,function*(){return(yield this.getStringDetails(e,t,r,n)).value})}getStringDetails(e,t,r,n){return this.evaluate(e,this._provider.resolveStringEvaluation,t,"string",r,n)}getNumberValue(e,t,r,n){return b(this,null,function*(){return(yield this.getNumberDetails(e,t,r,n)).value})}getNumberDetails(e,t,r,n){return this.evaluate(e,this._provider.resolveNumberEvaluation,t,"number",r,n)}getObjectValue(e,t,r,n){return b(this,null,function*(){return(yield this.getObjectDetails(e,t,r,n)).value})}getObjectDetails(e,t,r,n){return this.evaluate(e,this._provider.resolveObjectEvaluation,t,"object",r,n)}track(e,t={},r={}){var n,i;try{if(this.shortCircuitIfNotReady(),"function"==typeof this._provider.track){let o=Object.freeze(this.mergeContexts(t));return null==(i=(n=this._provider).track)?void 0:i.call(n,e,o,r)}this._logger.debug("Provider does not support the track function; will no-op.")}catch(e){this._logger.debug("Error recording tracking event.",e)}}evaluate(e,t,r,n){return b(this,arguments,function*(e,t,r,n,i={},o={}){var s;let a,l=[...this.apiHooksAccessor(),...this.getHooks(),...o.hooks||[],...this._provider.hooks||[]],u=[...l].reverse(),h=this.mergeContexts(i),d={flagKey:e,defaultValue:r,flagValueType:n,clientMetadata:this.metadata,providerMetadata:this._provider.metadata,context:h,logger:this._logger};try{let n,i,h=yield this.beforeHooks(l,d,o);this.shortCircuitIfNotReady();let f=yield t.call(this._provider,e,r,h,this._logger),v=(n=R({},f),i={flagMetadata:Object.freeze(null!=(s=f.flagMetadata)?s:{}),flagKey:e},g(n,p(i)));if(v.errorCode){let t=(0,c.instantiateErrorByErrorCode)(v.errorCode,v.errorMessage);yield this.errorHooks(u,d,t,o),a=this.getErrorEvaluationDetails(e,r,t,v.flagMetadata)}else yield this.afterHooks(u,d,v,o),a=v}catch(t){yield this.errorHooks(u,d,t,o),a=this.getErrorEvaluationDetails(e,r,t)}return yield this.finallyHooks(u,d,a,o),a})}beforeHooks(e,t,r){return b(this,null,function*(){var n;for(let i of e)Object.freeze(t),Object.assign(t.context,R(R({},t.context),(yield null==(n=null==i?void 0:i.before)?void 0:n.call(i,t,Object.freeze(r.hookHints)))));return Object.freeze(t.context)})}afterHooks(e,t,r,n){return b(this,null,function*(){var i;for(let o of e)yield null==(i=null==o?void 0:o.after)?void 0:i.call(o,t,r,n.hookHints)})}errorHooks(e,t,r,n){return b(this,null,function*(){var i;for(let o of e)try{yield null==(i=null==o?void 0:o.error)?void 0:i.call(o,t,r,n.hookHints)}catch(e){this._logger.error(`Unhandled error during 'error' hook: ${e}`),e instanceof Error&&this._logger.error(e.stack),this._logger.error(null==e?void 0:e.stack)}})}finallyHooks(e,t,r,n){return b(this,null,function*(){var i;for(let o of e)try{yield null==(i=null==o?void 0:o.finally)?void 0:i.call(o,t,r,n.hookHints)}catch(e){this._logger.error(`Unhandled error during 'finally' hook: ${e}`),e instanceof Error&&this._logger.error(e.stack),this._logger.error(null==e?void 0:e.stack)}})}get _provider(){return this.providerAccessor()}get _providerStatus(){return this.providerStatusAccessor()}get _logger(){return this._clientLogger||this.globalLogger()}mergeContexts(e){return R(R(R(R({},this.apiContextAccessor()),this.transactionContextAccessor()),this._context),e)}shortCircuitIfNotReady(){if(this.providerStatus===c.ServerProviderStatus.NOT_READY)throw new c.ProviderNotReadyError("provider has not yet initialized");if(this.providerStatus===c.ServerProviderStatus.FATAL)throw new c.ProviderFatalError("provider is in an irrecoverable error state")}getErrorEvaluationDetails(e,t,r,n={}){let i=null==r?void 0:r.message;return{errorCode:(null==r?void 0:r.code)||c.ErrorCode.GENERAL,errorMessage:i,value:t,reason:c.StandardResolutionReasons.ERROR,flagMetadata:Object.freeze(n),flagKey:e}}},x=class extends c.GenericEventEmitter{constructor(){super(),this.eventEmitter=new f.EventEmitter({captureRejections:!0}),this.eventEmitter.on("error",e=>{var t;null==(t=this._logger)||t.error("Error running event handler:",e)})}},C=new class{getTransactionContext(){return{}}setTransactionContext(e,t,...r){t(...r)}},P=Symbol.for("@openfeature/js-sdk/api"),T=globalThis;(class e extends c.OpenFeatureCommonAPI{constructor(){super("server"),this._statusEnumType=c.ServerProviderStatus,this._apiEmitter=new x,this._defaultProvider=new c.ProviderWrapper(O,c.ServerProviderStatus.NOT_READY,this._statusEnumType),this._domainScopedProviders=new Map,this._createEventEmitter=()=>new x,this._transactionContextPropagator=C}static getInstance(){let t=T[P];if(t)return t;let r=new e;return T[P]=r,r}getProviderStatus(e){var t,r;return e&&null!=(r=null==(t=this._domainScopedProviders.get(e))?void 0:t.status)?r:this._defaultProvider.status}setProviderAndWait(e,t){return b(this,null,function*(){let r=(0,c.stringOrUndefined)(e),n=r?(0,c.objectOrUndefined)(t):(0,c.objectOrUndefined)(e);yield this.setAwaitableProvider(r,n)})}setProvider(e,t){let r=(0,c.stringOrUndefined)(e),n=r?(0,c.objectOrUndefined)(t):(0,c.objectOrUndefined)(e);return Promise.resolve(this.setAwaitableProvider(r,n)).catch(e=>{this._logger.error("Error during provider initialization:",e)}),this}getProvider(e){return this.getProviderForClient(e)}setContext(e){return this._context=e,this}getContext(){return this._context}getClient(e,t,r){var n,i;let o=(0,c.stringOrUndefined)(e);return new A(()=>this.getProviderForClient(o),()=>this.getProviderStatus(o),()=>this.buildAndCacheEventEmitterForClient(o),()=>this.getContext(),()=>this.getHooks(),()=>this.getTransactionContext(),()=>this._logger,{domain:o,version:(0,c.stringOrUndefined)(t)},null!=(i=null!=(n=(0,c.objectOrUndefined)(e))?n:(0,c.objectOrUndefined)(t))?i:(0,c.objectOrUndefined)(r))}clearProviders(){return super.clearProvidersAndSetDefault(O)}setTransactionContextPropagator(e){let t="Invalid TransactionContextPropagator, will not be set: ";return"function"!=typeof(null==e?void 0:e.getTransactionContext)?this._logger.error(`${t}: getTransactionContext is not a function.`):"function"!=typeof(null==e?void 0:e.setTransactionContext)?this._logger.error(`${t}: setTransactionContext is not a function.`):this._transactionContextPropagator=e,this}setTransactionContext(e,t,...r){this._transactionContextPropagator.setTransactionContext(e,t,...r)}getTransactionContext(){try{return this._transactionContextPropagator.getTransactionContext()}catch(e){return this._logger.error(`Error getting transaction context: ${null==e?void 0:e.message}, returning empty context.`),this._logger.error(null==e?void 0:e.stack),{}}}}).getInstance(),(e=t||(t={})).MATCHES="MATCHES",e.NOT_MATCHES="NOT_MATCHES",e.GTE="GTE",e.GT="GT",e.LTE="LTE",e.LT="LT",e.ONE_OF="ONE_OF",e.NOT_ONE_OF="NOT_ONE_OF",e.IS_NULL="IS_NULL";class S{}class N extends S{getShard(e,t){return parseInt(s(e).slice(0,8),16)%t}}function I(e,r,n,i,o,s){if(!e)return{value:i,reason:"ERROR",errorCode:c.ErrorCode.PROVIDER_NOT_READY};let{targetingKey:a,...l}=o;if(!a)return{value:i,reason:"ERROR",errorCode:c.ErrorCode.TARGETING_KEY_MISSING};let u={id:a,...l};try{return function(e,r,n,i,o,s){if(!(null==e?void 0:e.enabled))return s.debug("returning default assignment because flag is disabled",{flagKey:e?e.key:"undefined",subjectKey:n}),{value:o,reason:c.StandardResolutionReasons.DISABLED};if(!function(e,t){if("boolean"===e)return"BOOLEAN"===t;if("string"===e)return"STRING"===t;if("number"===e)return"INTEGER"===t||"NUMERIC"===t;if("object"===e)return"JSON"===t;throw Error(`Invalid expected type: ${e}`)}(r,e.variationType))return s.debug("variant value type mismatch, returning default value",{flagKey:e.key,subjectKey:n,expectedType:r,variantType:e.variationType}),{value:o,reason:c.StandardResolutionReasons.ERROR,errorCode:c.ErrorCode.TYPE_MISMATCH};let a=new Date;for(let r of e.allocations){if(r.startAt&&a=new Date(r.endAt)){s.debug("allocation after end date",{flagKey:e.key,subjectKey:n,allocationKey:r.key,endAt:r.endAt});continue}if(!function(e,r,n){return null==e||!e.length||(n.debug("evaluating rules",{rules:JSON.stringify(e),subjectAttributes:r}),e.some(e=>!(function(e,r){return r.map(r=>(function(e,r){var n,i,o;let s=e[r.attribute];if(r.operator===t.IS_NULL)return r.value?null==s:null!=s;if(null!=s)switch(r.operator){case t.GTE:case t.GT:case t.LTE:case t.LT:return n=s,i=r.value,((e,n)=>r.operator===t.GTE?e>=n:r.operator===t.GT?e>n:r.operator===t.LTE?e<=n:e{let o=function(e,t,r){var n,i;let o=new N().getShard((n=e.salt,i=t,`${n}-${i}`),e.totalShards);return e.ranges.some(e=>{var t,r;return t=o,(r=e).start<=t&&t{this.resolve=()=>{this.cleanup(),e()},this.reject=e=>{this.cleanup(),t(e)}}),new Promise(()=>{this.timeoutId=setTimeout(()=>{t()},e)})])}async wait(){try{await this.promise}finally{this.cleanup()}}complete(){this.resolve&&this.resolve()}fail(e){this.reject&&this.reject(e)}isInitializing(){return void 0!==this.resolve}cleanup(){this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=void 0),this.resolve=void 0,this.reject=void 0}}class w{constructor(e){this.options=e,this.metadata={name:"datadog-node-server"},this.runsOn="server",this.hooks=[],this.events=new x,this.exposureCache=new d(5e4)}getConfiguration(){return this.configuration}setConfiguration(e){var t,r,n;let i=null==(t=this.configuration)?void 0:t.createdAt,o=!!this.configuration;if(o&&this.configuration!==e){this.events.emit(c.ServerProviderEvents.ConfigurationChanged),i!==(null==e?void 0:e.createdAt)&&(null==(r=this.exposureCache)||r.clear()),this.configuration=e;return}this.configuration=e,(null==(n=this.initController)?void 0:n.isInitializing())?this.initController.complete():o||this.events.emit(c.ServerProviderEvents.Ready)}setError(e){var t;(null==(t=this.initController)?void 0:t.isInitializing())?this.initController.fail(e):this.events.emit(c.ServerProviderEvents.Error,{error:e})}async initialize(){var e,t;if(this.configuration)return;let r=null!=(e=this.options.initializationTimeoutMs)?e:3e4;this.initController=new D(r,()=>this.setError(Error(`Initialization timeout after ${r}ms`))),await this.initController.wait(),await (null==(t=this.exposureCache)?void 0:t.init())}async resolveBooleanEvaluation(e,t,r,n){let i=I(this.configuration,"boolean",e,t,r,n);return this.handleExposure(e,r,i),i}async resolveStringEvaluation(e,t,r,n){let i=I(this.configuration,"string",e,t,r,n);return this.handleExposure(e,r,i),i}async resolveNumberEvaluation(e,t,r,n){let i=I(this.configuration,"number",e,t,r,n);return this.handleExposure(e,r,i),i}async resolveObjectEvaluation(e,t,r,n){let i=I(this.configuration,"object",e,t,r,n);return this.handleExposure(e,r,i),i}handleExposure(e,t,r){var n,i,o;let s=Date.now(),a=function(e,t){var r,n;if(!(null==(r=t.flagMetadata)?void 0:r.doLog))return;let i=null==(n=t.flagMetadata)?void 0:n.allocationKey,o=t.variant;if(!i||!o)return;let{targetingKey:s="",...a}=e;return{allocation:{key:i},flag:{key:t.flagKey},variant:{key:o},subject:{id:s,attributes:a}}}(t,{...r,flagKey:e,flagMetadata:null!=(n=r.flagMetadata)?n:{}});!a||(null==(i=this.exposureCache)?void 0:i.has(a))||this.options.exposureChannel.hasSubscribers&&(this.options.exposureChannel.publish({...a,timestamp:s}),null==(o=this.exposureCache)||o.set(a))}}})(),module.exports=n})(); \ No newline at end of file diff --git a/packages/node_modules/@openfeature/core/LICENSE b/packages/node_modules/@openfeature/core/LICENSE new file mode 100644 index 00000000000..261eeb9e9f8 --- /dev/null +++ b/packages/node_modules/@openfeature/core/LICENSE @@ -0,0 +1,201 @@ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/packages/node_modules/@openfeature/core/index.js b/packages/node_modules/@openfeature/core/index.js new file mode 100644 index 00000000000..880d90e4780 --- /dev/null +++ b/packages/node_modules/@openfeature/core/index.js @@ -0,0 +1 @@ +(()=>{"use strict";var e,t,r,n,i,s={};s.d=(e,t)=>{for(var r in t)s.o(t,r)&&!s.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),s.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};s.r(o),s.d(o,{AllProviderEvents:()=>V,AllProviderStatus:()=>S,ClientProviderEvents:()=>V,ClientProviderStatus:()=>S,DefaultLogger:()=>G,ErrorCode:()=>O,FlagNotFoundError:()=>A,GeneralError:()=>m,GenericEventEmitter:()=>H,InvalidContextError:()=>f,LOG_LEVELS:()=>F,MapHookData:()=>v,OpenFeatureCommonAPI:()=>B,OpenFeatureError:()=>p,ParseError:()=>P,ProviderFatalError:()=>T,ProviderNotReadyError:()=>I,ProviderWrapper:()=>$,SafeLogger:()=>M,ServerProviderEvents:()=>L,ServerProviderStatus:()=>y,StandardResolutionReasons:()=>g,TargetingKeyMissingError:()=>D,TelemetryAttribute:()=>Y,TelemetryFlagMetadata:()=>x,TypeMismatchError:()=>N,createEvaluationEvent:()=>j,instantiateErrorByErrorCode:()=>C,isObject:()=>K,isString:()=>k,objectOrUndefined:()=>W,statusMatchesEvent:()=>w,stringOrUndefined:()=>U});var a=Object.defineProperty,l=Object.defineProperties,d=Object.getOwnPropertyDescriptors,E=Object.getOwnPropertySymbols,u=Object.prototype.hasOwnProperty,h=Object.prototype.propertyIsEnumerable,R=(e,t,r)=>t in e?a(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,c=(e,t)=>{for(var r in t||(t={}))u.call(t,r)&&R(e,r,t[r]);if(E)for(var r of E(t))h.call(t,r)&&R(e,r,t[r]);return e},_=(e,t,r)=>new Promise((n,i)=>{var s=e=>{try{a(r.next(e))}catch(e){i(e)}},o=e=>{try{a(r.throw(e))}catch(e){i(e)}},a=e=>e.done?n(e.value):Promise.resolve(e.value).then(s,o);a((r=r.apply(e,t)).next())}),v=class{constructor(){this.data=new Map}set(e,t){this.data.set(e,t)}get(e){return this.data.get(e)}has(e){return this.data.has(e)}delete(e){return this.data.delete(e)}clear(){this.data.clear()}},g={STATIC:"STATIC",DEFAULT:"DEFAULT",TARGETING_MATCH:"TARGETING_MATCH",SPLIT:"SPLIT",CACHED:"CACHED",DISABLED:"DISABLED",UNKNOWN:"UNKNOWN",STALE:"STALE",ERROR:"ERROR"},O=((e=O||{}).PROVIDER_NOT_READY="PROVIDER_NOT_READY",e.PROVIDER_FATAL="PROVIDER_FATAL",e.FLAG_NOT_FOUND="FLAG_NOT_FOUND",e.PARSE_ERROR="PARSE_ERROR",e.TYPE_MISMATCH="TYPE_MISMATCH",e.TARGETING_KEY_MISSING="TARGETING_KEY_MISSING",e.INVALID_CONTEXT="INVALID_CONTEXT",e.GENERAL="GENERAL",e),p=class e extends Error{constructor(t,r){super(t),Object.setPrototypeOf(this,e.prototype),this.name="OpenFeatureError",this.cause=null==r?void 0:r.cause}},A=class e extends p{constructor(t,r){super(t,r),Object.setPrototypeOf(this,e.prototype),this.name="FlagNotFoundError",this.code="FLAG_NOT_FOUND"}},m=class e extends p{constructor(t,r){super(t,r),Object.setPrototypeOf(this,e.prototype),this.name="GeneralError",this.code="GENERAL"}},f=class e extends p{constructor(t,r){super(t,r),Object.setPrototypeOf(this,e.prototype),this.name="InvalidContextError",this.code="INVALID_CONTEXT"}},P=class e extends p{constructor(t,r){super(t,r),Object.setPrototypeOf(this,e.prototype),this.name="ParseError",this.code="PARSE_ERROR"}},T=class e extends p{constructor(t,r){super(t,r),Object.setPrototypeOf(this,e.prototype),this.name="ProviderFatalError",this.code="PROVIDER_FATAL"}},I=class e extends p{constructor(t,r){super(t,r),Object.setPrototypeOf(this,e.prototype),this.name="ProviderNotReadyError",this.code="PROVIDER_NOT_READY"}},D=class e extends p{constructor(t,r){super(t,r),Object.setPrototypeOf(this,e.prototype),this.name="TargetingKeyMissingError",this.code="TARGETING_KEY_MISSING"}},N=class e extends p{constructor(t,r){super(t,r),Object.setPrototypeOf(this,e.prototype),this.name="TypeMismatchError",this.code="TYPE_MISMATCH"}},C=(e,t)=>{switch(e){case"FLAG_NOT_FOUND":return new A(t);case"PARSE_ERROR":return new P(t);case"TYPE_MISMATCH":return new N(t);case"TARGETING_KEY_MISSING":return new D(t);case"INVALID_CONTEXT":return new f(t);case"PROVIDER_NOT_READY":return new I(t);case"PROVIDER_FATAL":return new T(t);default:return new m(t)}},y=((t=y||{}).NOT_READY="NOT_READY",t.READY="READY",t.ERROR="ERROR",t.STALE="STALE",t.FATAL="FATAL",t),S=((r=S||{}).NOT_READY="NOT_READY",r.READY="READY",r.ERROR="ERROR",r.STALE="STALE",r.FATAL="FATAL",r.RECONCILING="RECONCILING",r),L=((n=L||{}).Ready="PROVIDER_READY",n.Error="PROVIDER_ERROR",n.ConfigurationChanged="PROVIDER_CONFIGURATION_CHANGED",n.Stale="PROVIDER_STALE",n),V=((i=V||{}).Ready="PROVIDER_READY",i.Error="PROVIDER_ERROR",i.ConfigurationChanged="PROVIDER_CONFIGURATION_CHANGED",i.ContextChanged="PROVIDER_CONTEXT_CHANGED",i.Reconciling="PROVIDER_RECONCILING",i.Stale="PROVIDER_STALE",i),b={READY:"PROVIDER_READY",ERROR:"PROVIDER_ERROR",FATAL:"PROVIDER_ERROR",STALE:"PROVIDER_STALE",RECONCILING:"PROVIDER_RECONCILING",NOT_READY:void 0},w=(e,t)=>!t&&"PROVIDER_READY"===e||b[t]===e,G=class{error(...e){console.error(...e)}warn(...e){console.warn(...e)}info(){}debug(){}},F=["error","warn","info","debug"],M=class{constructor(e){this.fallbackLogger=new G;try{for(const t of F)if(!e[t]||"function"!=typeof e[t])throw Error(`The provided logger is missing the ${t} method.`);this.logger=e}catch(e){console.error(e),console.error("Falling back to the default logger."),this.logger=this.fallbackLogger}}error(...e){this.log("error",...e)}warn(...e){this.log("warn",...e)}info(...e){this.log("info",...e)}debug(...e){this.log("debug",...e)}log(e,...t){try{this.logger[e](...t)}catch(r){this.fallbackLogger[e](...t)}}},H=class{constructor(e){this.globalLogger=e,this._handlers={PROVIDER_CONFIGURATION_CHANGED:new WeakMap,PROVIDER_CONTEXT_CHANGED:new WeakMap,PROVIDER_READY:new WeakMap,PROVIDER_ERROR:new WeakMap,PROVIDER_STALE:new WeakMap,PROVIDER_RECONCILING:new WeakMap}}emit(e,t){this.eventEmitter.emit(e,t)}addHandler(e,t){let r=e=>_(this,null,function*(){var r;try{yield t(e)}catch(e){null==(r=this._logger)||r.error("Error running event handler:",e)}}),n=this._handlers[e].get(t);this._handlers[e].set(t,[...n||[],r]),this.eventEmitter.on(e,r)}removeHandler(e,t){let r=this._handlers[e].get(t);if(r){let t=r.pop();t&&this.eventEmitter.removeListener(e,t)}}removeAllHandlers(e){e?this.eventEmitter.removeAllListeners(e):this.eventEmitter.removeAllListeners()}getHandlers(e){return this.eventEmitter.listeners(e)}setLogger(e){return this._eventLogger=new M(e),this}get _logger(){var e,t;return null!=(t=this._eventLogger)?t:null==(e=this.globalLogger)?void 0:e.call(this)}},Y={KEY:"feature_flag.key",ERROR_CODE:"error.type",ERROR_MESSAGE:"error.message",VARIANT:"feature_flag.result.variant",VALUE:"feature_flag.result.value",CONTEXT_ID:"feature_flag.context.id",REASON:"feature_flag.result.reason",PROVIDER:"feature_flag.provider.name",FLAG_SET_ID:"feature_flag.set.id",VERSION:"feature_flag.version"},x={CONTEXT_ID:"contextId",FLAG_SET_ID:"flagSetId",VERSION:"version"};function j(e,t){var r,n,i;let s={[Y.KEY]:e.flagKey,[Y.PROVIDER]:e.providerMetadata.name,[Y.REASON]:(null!=(r=t.reason)?r:g.UNKNOWN).toLowerCase()};if(t.variant&&(s[Y.VARIANT]=t.variant),null!==t.value)if("object"!=typeof t.value)s[Y.VALUE]=t.value;else try{s[Y.VALUE]=JSON.stringify(t.value)}catch(e){}let o=null!=(n=t.flagMetadata[x.CONTEXT_ID])?n:e.context.targetingKey;o&&(s[Y.CONTEXT_ID]=o);let a=t.flagMetadata[x.FLAG_SET_ID];a&&(s[Y.FLAG_SET_ID]=a);let l=t.flagMetadata[x.VERSION];return l&&(s[Y.VERSION]=l),t.reason===g.ERROR&&(s[Y.ERROR_CODE]=(null!=(i=t.errorCode)?i:"GENERAL").toLowerCase(),t.errorMessage&&(s[Y.ERROR_MESSAGE]=t.errorMessage)),{name:"feature_flag.evaluation",attributes:s}}function k(e){return"string"==typeof e}function U(e){return k(e)?e:void 0}function K(e){return"object"==typeof e}function W(e){return K(e)?e:void 0}function X(e){return null!=e}var $=class{constructor(e,t,r){var n,i,s;this._provider=e,this._status=t,this._pendingContextChanges=0,null==(n=e.events)||n.addHandler("PROVIDER_READY",()=>{this._status=r.READY}),null==(i=e.events)||i.addHandler("PROVIDER_STALE",()=>{this._status=r.STALE}),null==(s=e.events)||s.addHandler("PROVIDER_ERROR",e=>{(null==e?void 0:e.errorCode)==="PROVIDER_FATAL"?this._status=r.FATAL:this._status=r.ERROR})}get provider(){return this._provider}set provider(e){this._provider=e}get status(){return this._status}set status(e){this._status=e}get allContextChangesSettled(){return 0===this._pendingContextChanges}incrementPendingContextChanges(){this._pendingContextChanges++}decrementPendingContextChanges(){this._pendingContextChanges--}},B=class{constructor(e){this._hooks=[],this._context={},this._logger=new G,this._clientEventHandlers=new Map,this._domainScopedContext=new Map,this._clientEvents=new Map,this._runsOn=e}addHooks(...e){return this._hooks=[...this._hooks,...e],this}getHooks(){return this._hooks}clearHooks(){return this._hooks=[],this}setLogger(e){return this._logger=new M(e),this}get providerMetadata(){return this.getProviderMetadata()}getProviderMetadata(e){return this.getProviderForClient(e).metadata}addHandler(e,t,r){[...new Map([[void 0,this._defaultProvider]]),...this._domainScopedProviders].forEach(r=>{var n;let i=r[0],s=r[1].provider;if(w(e,r[1].status))try{t({domain:i,providerName:s.metadata.name})}catch(e){null==(n=this._logger)||n.error("Error running event handler:",e)}}),this._apiEmitter.addHandler(e,t),(null==r?void 0:r.signal)&&"function"==typeof r.signal.addEventListener&&r.signal.addEventListener("abort",()=>{this.removeHandler(e,t)})}removeHandler(e,t){this._apiEmitter.removeHandler(e,t)}clearHandlers(){this._apiEmitter.removeAllHandlers()}getHandlers(e){return this._apiEmitter.getHandlers(e)}setAwaitableProvider(e,t){var r,n,i,s,o,a,l,d;let E,u=U(e),h=null!=(r=W(e))?r:W(t);if(!h)return void this._logger.debug("No provider defined, ignoring setProvider call");let R=this.getProviderForClient(u),c=h.metadata.name;if(R===h)return void this._logger.debug("Provider is already set, ignoring setProvider call");if(h.runsOn){if(h.runsOn!==this._runsOn)throw new m(`Provider '${h.metadata.name}' is intended for use on the ${h.runsOn}.`)}else this._logger.debug(`Provider '${h.metadata.name}' has not defined its intended use.`);let _=this.getAssociatedEventEmitters(u),v=new $(h,this._statusEnumType.NOT_READY,this._statusEnumType);return"function"!=typeof h.initialize||this.allProviders.includes(h)?(v.status=this._statusEnumType.READY,_.forEach(e=>{null==e||e.emit("PROVIDER_READY",{clientName:u,domain:u,providerName:c})}),null==(a=this._apiEmitter)||a.emit("PROVIDER_READY",{clientName:u,domain:u,providerName:c})):E=null==(o=null==(s=null==(i=h.initialize)?void 0:i.call(h,u&&null!=(n=this._domainScopedContext.get(u))?n:this._context))?void 0:s.then(()=>{var e;v.status=this._statusEnumType.READY,this.getAssociatedEventEmitters(u).forEach(e=>{null==e||e.emit("PROVIDER_READY",{clientName:u,domain:u,providerName:c})}),null==(e=this._apiEmitter)||e.emit("PROVIDER_READY",{clientName:u,domain:u,providerName:c})}))?void 0:o.catch(e=>{var t;throw(null==e?void 0:e.code)==="PROVIDER_FATAL"?v.status=this._statusEnumType.FATAL:v.status=this._statusEnumType.ERROR,this.getAssociatedEventEmitters(u).forEach(t=>{null==t||t.emit("PROVIDER_ERROR",{clientName:u,domain:u,providerName:c,message:null==e?void 0:e.message})}),null==(t=this._apiEmitter)||t.emit("PROVIDER_ERROR",{clientName:u,domain:u,providerName:c,message:null==e?void 0:e.message}),e}),u?this._domainScopedProviders.set(u,v):this._defaultProvider=v,this.transferListeners(R,h,u,_),this.allProviders.includes(R)||null==(d=null==(l=null==R?void 0:R.onClose)?void 0:l.call(R))||d.catch(e=>{this._logger.error(`error closing provider: ${null==e?void 0:e.message}, ${null==e?void 0:e.stack}`)}),E}getProviderForClient(e){var t,r;return e&&null!=(r=null==(t=this._domainScopedProviders.get(e))?void 0:t.provider)?r:this._defaultProvider.provider}buildAndCacheEventEmitterForClient(e){let t=this._clientEvents.get(e);if(t)return t;let r=this._createEventEmitter();this._clientEvents.set(e,r);let n=this.getProviderForClient(e);return Object.values(V).forEach(t=>{var i;return null==(i=n.events)?void 0:i.addHandler(t,i=>_(this,null,function*(){r.emit(t,l(c({},i),d({clientName:e,domain:e,providerName:n.metadata.name})))}))}),r}getUnboundEmitters(){let e=[...this._domainScopedProviders.keys()];return[...[...this._clientEvents.keys()].filter(X).filter(t=>!e.includes(t)).map(e=>this._clientEvents.get(e)),this._clientEvents.get(void 0)].filter(X)}getAssociatedEventEmitters(e){return e?[this.buildAndCacheEventEmitterForClient(e)]:this.getUnboundEmitters()}transferListeners(e,t,r,n){var i;null==(i=this._clientEventHandlers.get(r))||i.forEach(t=>{var r;return null==(r=e.events)?void 0:r.removeHandler(...t)});let s=Object.values(V).map(e=>{let i=i=>_(this,null,function*(){n.forEach(n=>{null==n||n.emit(e,l(c({},i),d({clientName:r,domain:r,providerName:t.metadata.name})))}),this._apiEmitter.emit(e,l(c({},i),d({clientName:r,domain:r,providerName:t.metadata.name})))});return[e,i]});this._clientEventHandlers.set(r,s),s.forEach(e=>{var r;return null==(r=t.events)?void 0:r.addHandler(...e)})}close(){return _(this,null,function*(){var e,t;try{yield null==(t=null==(e=this==null?void 0:this._defaultProvider.provider)?void 0:e.onClose)?void 0:t.call(e)}catch(e){this.handleShutdownError(this._defaultProvider.provider,e)}let r=Array.from(this._domainScopedProviders);yield Promise.all(r.map(e=>_(this,[e],function*([,e]){var t,r;try{yield null==(r=null==e?void 0:(t=e.provider).onClose)?void 0:r.call(t)}catch(t){this.handleShutdownError(null==e?void 0:e.provider,t)}})))})}clearProvidersAndSetDefault(e){return _(this,null,function*(){try{yield this.close()}catch(e){this._logger.error("Unable to cleanly close providers. Resetting to the default configuration.")}finally{this._domainScopedProviders.clear(),this._defaultProvider=new $(e,this._statusEnumType.NOT_READY,this._statusEnumType)}})}get allProviders(){return[...[...this._domainScopedProviders.values()].map(e=>e.provider),this._defaultProvider.provider]}handleShutdownError(e,t){this._logger.error(`Error during shutdown of provider ${e.metadata.name}: ${t}`),this._logger.error(null==t?void 0:t.stack)}};module.exports=o})(); \ No newline at end of file diff --git a/packages/node_modules/@opentelemetry/core/index.js b/packages/node_modules/@opentelemetry/core/index.js index 6068d3b1e09..cabd8e93b8b 100644 --- a/packages/node_modules/@opentelemetry/core/index.js +++ b/packages/node_modules/@opentelemetry/core/index.js @@ -1 +1 @@ -(()=>{"use strict";var t,e,r,n,o,i,a,u,c,l,f,s,_,p,E,T={};T.d=(t,e)=>{for(var r in e)T.o(e,r)&&!T.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},T.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),T.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var O={};T.r(O),T.d(O,{baggageUtils:()=>ri,hrTime:()=>tb,timeInputToHrTime:()=>tN,W3CTraceContextPropagator:()=>eM,callWithTimeout:()=>e8,AlwaysOnSampler:()=>eX,isTracingSuppressed:()=>tc,AlwaysOffSampler:()=>ej,loggingErrorHandler:()=>tS,DEFAULT_ATTRIBUTE_COUNT_LIMIT:()=>tQ,deleteRPCMetadata:()=>ex,suppressTracing:()=>ta,RPCType:()=>p,RandomIdGenerator:()=>tk,setRPCMetadata:()=>eD,unrefTimer:()=>t6,hrTimeToMilliseconds:()=>tD,TRACE_PARENT_HEADER:()=>eC,unsuppressTracing:()=>tu,globalErrorHandler:()=>tm,_globalThis:()=>tY,getEnvWithoutDefaults:()=>t8,ParentBasedSampler:()=>eG,millisToHrTime:()=>tI,isTimeInputHrTime:()=>tB,otperformance:()=>tA,internal:()=>ra,urlMatches:()=>e6,BindOnceFuture:()=>rn,DEFAULT_ENVIRONMENT:()=>t1,SDK_INFO:()=>tW,isWrapped:()=>e7,isAttributeKey:()=>th,TraceState:()=>eI,hexToBase64:()=>t9,TRACE_STATE_HEADER:()=>eb,getEnv:()=>t4,getTimeOrigin:()=>tC,TraceIdRatioBasedSampler:()=>eV,hrTimeDuration:()=>tw,DEFAULT_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT:()=>tq,isTimeInput:()=>tj,hexToBinary:()=>tV,DEFAULT_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT:()=>t0,parseTraceParent:()=>ew,isUrlIgnored:()=>e5,parseEnvironment:()=>t3,setGlobalErrorHandler:()=>tP,DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT:()=>t$,isAttributeValue:()=>tv,CompositePropagator:()=>t7,hrTimeToMicroseconds:()=>tx,AnchoredClock:()=>tT,TracesSamplerValues:()=>s,ExportResultCode:()=>l,hrTimeToNanoseconds:()=>tU,merge:()=>eJ,TimeoutError:()=>e4,W3CBaggagePropagator:()=>tE,addHrTimes:()=>tX,getRPCMetadata:()=>eB,sanitizeAttributes:()=>td,hrTimeToTimeStamp:()=>tM,VERSION:()=>tK});var y="object"==typeof globalThis?globalThis:global,g="1.9.0",d=/^(\d+)\.(\d+)\.(\d+)(-(.+))?$/,h=function(t){var e=new Set([t]),r=new Set,n=t.match(d);if(!n)return function(){return!1};var o={major:+n[1],minor:+n[2],patch:+n[3],prerelease:n[4]};if(null!=o.prerelease)return function(e){return e===t};function i(t){return r.add(t),!1}return function(t){if(e.has(t))return!0;if(r.has(t))return!1;var n=t.match(d);if(!n)return i(t);var a={major:+n[1],minor:+n[2],patch:+n[3],prerelease:n[4]};if(null!=a.prerelease||o.major!==a.major)return i(t);if(0===o.major)return o.minor===a.minor&&o.patch<=a.patch?(e.add(t),!0):i(t);return o.minor<=a.minor?(e.add(t),!0):i(t)}}(g),v=Symbol.for("opentelemetry.js.api."+g.split(".")[0]);function R(t,e,r,n){void 0===n&&(n=!1);var o,i=y[v]=null!=(o=y[v])?o:{version:g};if(!n&&i[t]){var a=Error("@opentelemetry/api: Attempted duplicate registration of API: "+t);return r.error(a.stack||a.message),!1}if(i.version!==g){var a=Error("@opentelemetry/api: Registration of version v"+i.version+" for "+t+" does not match previously registered API v"+g);return r.error(a.stack||a.message),!1}return i[t]=e,r.debug("@opentelemetry/api: Registered a global for "+t+" v"+g+"."),!0}function S(t){var e,r,n=null==(e=y[v])?void 0:e.version;if(n&&h(n))return null==(r=y[v])?void 0:r[t]}function L(t,e){e.debug("@opentelemetry/api: Unregistering a global for "+t+" v"+g+".");var r=y[v];r&&delete r[t]}var P=function(){function t(){}return t.prototype.inject=function(t,e){},t.prototype.extract=function(t,e){return t},t.prototype.fields=function(){return[]},t}(),m={get:function(t,e){if(null!=t)return t[e]},keys:function(t){return null==t?[]:Object.keys(t)}},A={set:function(t,e,r){null!=t&&(t[e]=r)}};function I(t){return Symbol.for(t)}var C=new function t(e){var r=this;r._currentContext=e?new Map(e):new Map,r.getValue=function(t){return r._currentContext.get(t)},r.setValue=function(e,n){var o=new t(r._currentContext);return o._currentContext.set(e,n),o},r.deleteValue=function(e){var n=new t(r._currentContext);return n._currentContext.delete(e),n}},b=function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},N=function(t,e,r){if(r||2==arguments.length)for(var n,o=0,i=e.length;o0)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},U=function(t,e,r){if(r||2==arguments.length)for(var n,o=0,i=e.length;o0)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},j=function(t,e,r){if(r||2==arguments.length)for(var n,o=0,i=e.length;o=n?o.bind(e):function(){}}return tc.ALL&&(t=c.ALL),e=e||{},{error:r("error",c.ERROR),warn:r("warn",c.WARN),info:r("info",c.INFO),debug:r("debug",c.DEBUG),verbose:r("verbose",c.VERBOSE)}}(null!=(o=r.logLevel)?o:c.INFO,t);if(u&&!r.suppressOverrideMessage){var f=null!=(i=Error().stack)?i:"";u.warn("Current logger will be overwritten from "+f),l.warn("Current logger will overwrite one already registered from "+f)}return R("diag",l,e,!0)},e.disable=function(){L("diag",e)},e.createComponentLogger=function(t){return new D(t)},e.verbose=t("verbose"),e.debug=t("debug"),e.info=t("info"),e.warn=t("warn"),e.error=t("error")}return t.instance=function(){return this._instance||(this._instance=new t),this._instance},t}(),G=function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},V=function(t,e,r){if(r||2==arguments.length)for(var n,o=0,i=e.length;o0)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},$=function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},Q=function(){function t(t){this._entries=t?new Map(t):new Map}return t.prototype.getEntry=function(t){var e=this._entries.get(t);if(e)return Object.assign({},e)},t.prototype.getAllEntries=function(){return Array.from(this._entries.entries()).map(function(t){var e=J(t,2);return[e[0],e[1]]})},t.prototype.setEntry=function(e,r){var n=new t(this._entries);return n._entries.set(e,r),n},t.prototype.removeEntry=function(e){var r=new t(this._entries);return r._entries.delete(e),r},t.prototype.removeEntries=function(){for(var e,r,n=[],o=0;o0)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a};function ts(t){return t.reduce(function(t,e){var r=""+t+(""!==t?",":"")+e;return r.length>8192?t:r},"")}function t_(t){return t.getAllEntries().map(function(t){var e=tf(t,2),r=e[0],n=e[1],o=encodeURIComponent(r)+"="+encodeURIComponent(n.value);return void 0!==n.metadata&&(o+=";"+n.metadata.toString()),o})}function tp(t){var e,r=t.split(";");if(!(r.length<=0)){var n=r.shift();if(n){var o=n.indexOf("=");if(!(o<=0)){var i,a=decodeURIComponent(n.substring(0,o).trim()),u=decodeURIComponent(n.substring(o+1).trim());return r.length>0&&("string"!=typeof(i=r.join(";"))&&(tt.error("Cannot create baggage metadata from unknown type: "+typeof i),i=""),e={__TYPE__:q,toString:function(){return i}}),{key:a,value:u,metadata:e}}}}}var tE=function(){function t(){}return t.prototype.inject=function(t,e,r){var n=to.getBaggage(t);if(!(!n||tc(t))){var o=ts(t_(n).filter(function(t){return t.length<=4096}).slice(0,180));o.length>0&&r.set(e,tl,o)}},t.prototype.extract=function(t,e,r){var n=r.get(e,tl),o=Array.isArray(n)?n.join(","):n;if(!o)return t;var i={};return 0===o.length||(o.split(",").forEach(function(t){var e=tp(t);if(e){var r={value:e.value};e.metadata&&(r.metadata=e.metadata),i[e.key]=r}}),0===Object.entries(i).length)?t:to.setBaggage(t,to.createBaggage(i))},t.prototype.fields=function(){return[tl]},t}(),tT=function(){function t(t,e){this._monotonicClock=e,this._epochMillis=t.now(),this._performanceMillis=e.now()}return t.prototype.now=function(){var t=this._monotonicClock.now()-this._performanceMillis;return this._epochMillis+t},t}(),tO=X.instance(),ty=function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},tg=function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a};function td(t){var e,r,n={};if("object"!=typeof t||null==t)return n;try{for(var o=ty(Object.entries(t)),i=o.next();!i.done;i=o.next()){var a=tg(i.value,2),u=a[0],c=a[1];if(!th(u)){tO.warn("Invalid attribute key: "+u);continue}if(!tv(c)){tO.warn("Invalid attribute value set for key: "+u);continue}Array.isArray(c)?n[u]=c.slice():n[u]=c}}catch(t){e={error:t}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(e)throw e.error}}return n}function th(t){return"string"==typeof t&&t.length>0}function tv(t){return null==t||(Array.isArray(t)?function(t){try{for(var e,r,n,o=ty(t),i=o.next();!i.done;i=o.next()){var a=i.value;if(null!=a){if(!n){if(tR(a)){n=typeof a;continue}return!1}if(typeof a!==n)return!1}}}catch(t){e={error:t}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(e)throw e.error}}return!0}(t):tR(t))}function tR(t){switch(typeof t){case"number":case"boolean":case"string":return!0}return!1}function tS(){return function(t){var e;tO.error("string"==typeof(e=t)?e:JSON.stringify(function(t){for(var e={},r=t;null!==r;)Object.getOwnPropertyNames(r).forEach(function(t){if(!e[t]){var n=r[t];n&&(e[t]=String(n))}}),r=Object.getPrototypeOf(r);return e}(e)))}}var tL=tS();function tP(t){tL=t}function tm(t){try{tL(t)}catch(t){}}var tA=require("perf_hooks").performance;function tI(t){return[Math.trunc(t/1e3),Math.round(t%1e3*1e6)]}function tC(){var t=tA.timeOrigin;return"number"!=typeof t&&(t=tA.timing&&tA.timing.fetchStart),t}function tb(t){return tX(tI(tC()),tI("number"==typeof t?t:tA.now()))}function tN(t){if(tB(t))return t;if("number"==typeof t)if(t=1e9&&(r[1]-=1e9,r[0]+=1),r}function tG(t){return t>=48&&t<=57?t-48:t>=97&&t<=102?t-87:t-55}function tV(t){for(var e=new Uint8Array(t.length/2),r=0,n=0;n>>0,4*e);for(var e=0;e0)break;else e===t-1&&(tF[t-1]=1);return tF.toString("hex",0,t)}}var tK="1.30.1",tW=((f={})["telemetry.sdk.name"]="opentelemetry",f["process.runtime.name"]="node",f["telemetry.sdk.language"]="nodejs",f["telemetry.sdk.version"]=tK,f),tY="object"==typeof globalThis?globalThis:global;(o=s||(s={})).AlwaysOff="always_off",o.AlwaysOn="always_on",o.ParentBasedAlwaysOff="parentbased_always_off",o.ParentBasedAlwaysOn="parentbased_always_on",o.ParentBasedTraceIdRatio="parentbased_traceidratio",o.TraceIdRatio="traceidratio";var tz=["OTEL_SDK_DISABLED"],tZ=["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"],tJ=["OTEL_NO_PATCH_MODULES","OTEL_PROPAGATORS","OTEL_SEMCONV_STABILITY_OPT_IN"],t$=1/0,tQ=128,tq=128,t0=128,t1={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:c.INFO,OTEL_NO_PATCH_MODULES:[],OTEL_PROPAGATORS:["tracecontext","baggage"],OTEL_RESOURCE_ATTRIBUTES:"",OTEL_SERVICE_NAME:"",OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT:t$,OTEL_ATTRIBUTE_COUNT_LIMIT:tQ,OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT:t$,OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT:tQ,OTEL_LOGRECORD_ATTRIBUTE_VALUE_LENGTH_LIMIT:t$,OTEL_LOGRECORD_ATTRIBUTE_COUNT_LIMIT:tQ,OTEL_SPAN_EVENT_COUNT_LIMIT:128,OTEL_SPAN_LINK_COUNT_LIMIT:128,OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT:tq,OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT:t0,OTEL_TRACES_EXPORTER:"",OTEL_TRACES_SAMPLER:s.ParentBasedAlwaysOn,OTEL_TRACES_SAMPLER_ARG:"",OTEL_LOGS_EXPORTER:"",OTEL_EXPORTER_OTLP_INSECURE:"",OTEL_EXPORTER_OTLP_TRACES_INSECURE:"",OTEL_EXPORTER_OTLP_METRICS_INSECURE:"",OTEL_EXPORTER_OTLP_LOGS_INSECURE:"",OTEL_EXPORTER_OTLP_CERTIFICATE:"",OTEL_EXPORTER_OTLP_TRACES_CERTIFICATE:"",OTEL_EXPORTER_OTLP_METRICS_CERTIFICATE:"",OTEL_EXPORTER_OTLP_LOGS_CERTIFICATE:"",OTEL_EXPORTER_OTLP_COMPRESSION:"",OTEL_EXPORTER_OTLP_TRACES_COMPRESSION:"",OTEL_EXPORTER_OTLP_METRICS_COMPRESSION:"",OTEL_EXPORTER_OTLP_LOGS_COMPRESSION:"",OTEL_EXPORTER_OTLP_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_TRACES_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_METRICS_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_LOGS_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_TRACES_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_METRICS_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_LOGS_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_TRACES_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_METRICS_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_LOGS_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE:"cumulative",OTEL_SEMCONV_STABILITY_OPT_IN:[]},t2={ALL:c.ALL,VERBOSE:c.VERBOSE,DEBUG:c.DEBUG,INFO:c.INFO,WARN:c.WARN,ERROR:c.ERROR,NONE:c.NONE};function t3(t){var e={};for(var r in t1)if("OTEL_LOG_LEVEL"===r)!function(t,e,r){var n=r[t];if("string"==typeof n){var o=t2[n.toUpperCase()];null!=o&&(e[t]=o)}}(r,e,t);else if(tz.indexOf(r)>-1)!function(t,e,r){if(void 0!==r[t]){var n=String(r[t]);e[t]="true"===n.toLowerCase()}}(r,e,t);else if(tZ.indexOf(r)>-1)!function(t,e,r,n,o){if(void 0===n&&(n=-1/0),void 0===o&&(o=1/0),void 0!==r[t]){var i=Number(r[t]);isNaN(i)||(io?e[t]=o:e[t]=i)}}(r,e,t);else if(tJ.indexOf(r)>-1)!function(t,e,r,n){void 0===n&&(n=",");var o=r[t];"string"==typeof o&&(e[t]=o.split(n).map(function(t){return t.trim()}))}(r,e,t);else{var n=t[r];null!=n&&(e[r]=String(n))}return e}function t4(){return Object.assign({},t1,t3(process.env))}function t8(){return t3(process.env)}function t9(t){return Buffer.from(tV(t)).toString("base64")}function t6(t){t.unref()}var t5=function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},t7=function(){function t(t){var e;void 0===t&&(t={}),this._propagators=null!=(e=t.propagators)?e:[],this._fields=Array.from(new Set(this._propagators.map(function(t){return"function"==typeof t.fields?t.fields():[]}).reduce(function(t,e){return t.concat(e)},[])))}return t.prototype.inject=function(t,e,r){var n,o;try{for(var i=t5(this._propagators),a=i.next();!a.done;a=i.next()){var u=a.value;try{u.inject(t,e,r)}catch(t){tO.warn("Failed to inject with "+u.constructor.name+". Err: "+t.message)}}}catch(t){n={error:t}}finally{try{a&&!a.done&&(o=i.return)&&o.call(i)}finally{if(n)throw n.error}}},t.prototype.extract=function(t,e,r){return this._propagators.reduce(function(t,n){try{return n.extract(t,e,r)}catch(t){tO.warn("Failed to extract with "+n.constructor.name+". Err: "+t.message)}return t},t)},t.prototype.fields=function(){return this._fields.slice()},t}();(i=_||(_={}))[i.NONE=0]="NONE",i[i.SAMPLED=1]="SAMPLED";var et="0000000000000000",ee="00000000000000000000000000000000",er={traceId:ee,spanId:et,traceFlags:_.NONE},en=function(){function t(t){void 0===t&&(t=er),this._spanContext=t}return t.prototype.spanContext=function(){return this._spanContext},t.prototype.setAttribute=function(t,e){return this},t.prototype.setAttributes=function(t){return this},t.prototype.addEvent=function(t,e){return this},t.prototype.addLink=function(t){return this},t.prototype.addLinks=function(t){return this},t.prototype.setStatus=function(t){return this},t.prototype.updateName=function(t){return this},t.prototype.end=function(t){},t.prototype.isRecording=function(){return!1},t.prototype.recordException=function(t,e){},t}(),eo=I("OpenTelemetry Context Key SPAN");function ei(t){return t.getValue(eo)||void 0}function ea(){return ei(H.getInstance().active())}function eu(t,e){return t.setValue(eo,e)}function ec(t){return t.deleteValue(eo)}function el(t,e){return eu(t,new en(e))}function ef(t){var e;return null==(e=ei(t))?void 0:e.spanContext()}var es=/^([0-9a-f]{32})$/i,e_=/^[0-9a-f]{16}$/i;function ep(t){return es.test(t)&&t!==ee}function eE(t){var e;return ep(t.traceId)&&(e=t.spanId,e_.test(e)&&e!==et)}function eT(t){return new en(t)}var eO=H.getInstance(),ey=function(){function t(){}return t.prototype.startSpan=function(t,e,r){if(void 0===r&&(r=eO.active()),null==e?void 0:e.root)return new en;var n,o=r&&ef(r);return"object"==typeof(n=o)&&"string"==typeof n.spanId&&"string"==typeof n.traceId&&"number"==typeof n.traceFlags&&eE(o)?new en(o):new en},t.prototype.startActiveSpan=function(t,e,r,n){if(!(arguments.length<2)){2==arguments.length?a=e:3==arguments.length?(o=e,a=r):(o=e,i=r,a=n);var o,i,a,u=null!=i?i:eO.active(),c=this.startSpan(t,o,u),l=eu(u,c);return eO.with(l,a,void 0,c)}},t}(),eg=new ey,ed=function(){function t(t,e,r,n){this._provider=t,this.name=e,this.version=r,this.options=n}return t.prototype.startSpan=function(t,e,r){return this._getTracer().startSpan(t,e,r)},t.prototype.startActiveSpan=function(t,e,r,n){var o=this._getTracer();return Reflect.apply(o.startActiveSpan,o,arguments)},t.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):eg},t}(),eh=new(function(){function t(){}return t.prototype.getTracer=function(t,e,r){return new ey},t}()),ev=function(){function t(){}return t.prototype.getTracer=function(t,e,r){var n;return null!=(n=this.getDelegateTracer(t,e,r))?n:new ed(this,t,e,r)},t.prototype.getDelegate=function(){var t;return null!=(t=this._delegate)?t:eh},t.prototype.setDelegate=function(t){this._delegate=t},t.prototype.getDelegateTracer=function(t,e,r){var n;return null==(n=this._delegate)?void 0:n.getTracer(t,e,r)},t}(),eR="trace",eS=(function(){function t(){this._proxyTracerProvider=new ev,this.wrapSpanContext=eT,this.isSpanContextValid=eE,this.deleteSpan=ec,this.getSpan=ei,this.getActiveSpan=ea,this.getSpanContext=ef,this.setSpan=eu,this.setSpanContext=el}return t.getInstance=function(){return this._instance||(this._instance=new t),this._instance},t.prototype.setGlobalTracerProvider=function(t){var e=R(eR,this._proxyTracerProvider,X.instance());return e&&this._proxyTracerProvider.setDelegate(t),e},t.prototype.getTracerProvider=function(){return S(eR)||this._proxyTracerProvider},t.prototype.getTracer=function(t,e){return this.getTracerProvider().getTracer(t,e)},t.prototype.disable=function(){L(eR,X.instance()),this._proxyTracerProvider=new ev},t})().getInstance(),eL="[_0-9a-z-*/]",eP=RegExp("^(?:[a-z]"+eL+"{0,255}|"+("[a-z0-9]"+eL+"{0,240}@[a-z]")+eL+"{0,13})$"),em=/^[ -~]{0,255}[!-~]$/,eA=/,|=/,eI=function(){function t(t){this._internalState=new Map,t&&this._parse(t)}return t.prototype.set=function(t,e){var r=this._clone();return r._internalState.has(t)&&r._internalState.delete(t),r._internalState.set(t,e),r},t.prototype.unset=function(t){var e=this._clone();return e._internalState.delete(t),e},t.prototype.get=function(t){return this._internalState.get(t)},t.prototype.serialize=function(){var t=this;return this._keys().reduce(function(e,r){return e.push(r+"="+t.get(r)),e},[]).join(",")},t.prototype._parse=function(t){!(t.length>512)&&(this._internalState=t.split(",").reverse().reduce(function(t,e){var r=e.trim(),n=r.indexOf("=");if(-1!==n){var o=r.slice(0,n),i=r.slice(n+1,e.length);eP.test(o)&&em.test(i)&&!eA.test(i)&&t.set(o,i)}return t},new Map),this._internalState.size>32&&(this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,32))))},t.prototype._keys=function(){return Array.from(this._internalState.keys()).reverse()},t.prototype._clone=function(){var e=new t;return e._internalState=new Map(this._internalState),e},t}(),eC="traceparent",eb="tracestate",eN=RegExp("^\\s?((?!ff)[\\da-f]{2})-((?![0]{32})[\\da-f]{32})-((?![0]{16})[\\da-f]{16})-([\\da-f]{2})(-.*)?\\s?$");function ew(t){var e=eN.exec(t);return!e||"00"===e[1]&&e[5]?null:{traceId:e[2],spanId:e[3],traceFlags:parseInt(e[4],16)}}var eM=function(){function t(){}return t.prototype.inject=function(t,e,r){var n=eS.getSpanContext(t);if(!(!n||tc(t))&&eE(n)){var o="00-"+n.traceId+"-"+n.spanId+"-0"+Number(n.traceFlags||_.NONE).toString(16);r.set(e,eC,o),n.traceState&&r.set(e,eb,n.traceState.serialize())}},t.prototype.extract=function(t,e,r){var n=r.get(e,eC);if(!n)return t;var o=Array.isArray(n)?n[0]:n;if("string"!=typeof o)return t;var i=ew(o);if(!i)return t;i.isRemote=!0;var a=r.get(e,eb);if(a){var u=Array.isArray(a)?a.join(","):a;i.traceState=new eI("string"==typeof u?u:void 0)}return eS.setSpanContext(t,i)},t.prototype.fields=function(){return[eC,eb]},t}(),eU=I("OpenTelemetry SDK Context Key RPC_METADATA");function eD(t,e){return t.setValue(eU,e)}function ex(t){return t.deleteValue(eU)}function eB(t){return t.getValue(eU)}(p||(p={})).HTTP="http",(a=E||(E={}))[a.NOT_RECORD=0]="NOT_RECORD",a[a.RECORD=1]="RECORD",a[a.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED";var ej=function(){function t(){}return t.prototype.shouldSample=function(){return{decision:E.NOT_RECORD}},t.prototype.toString=function(){return"AlwaysOffSampler"},t}(),eX=function(){function t(){}return t.prototype.shouldSample=function(){return{decision:E.RECORD_AND_SAMPLED}},t.prototype.toString=function(){return"AlwaysOnSampler"},t}(),eG=function(){function t(t){var e,r,n,o;this._root=t.root,this._root||(tm(Error("ParentBasedSampler must have a root sampler configured")),this._root=new eX),this._remoteParentSampled=null!=(e=t.remoteParentSampled)?e:new eX,this._remoteParentNotSampled=null!=(r=t.remoteParentNotSampled)?r:new ej,this._localParentSampled=null!=(n=t.localParentSampled)?n:new eX,this._localParentNotSampled=null!=(o=t.localParentNotSampled)?o:new ej}return t.prototype.shouldSample=function(t,e,r,n,o,i){var a=eS.getSpanContext(t);return a&&eE(a)?a.isRemote?a.traceFlags&_.SAMPLED?this._remoteParentSampled.shouldSample(t,e,r,n,o,i):this._remoteParentNotSampled.shouldSample(t,e,r,n,o,i):a.traceFlags&_.SAMPLED?this._localParentSampled.shouldSample(t,e,r,n,o,i):this._localParentNotSampled.shouldSample(t,e,r,n,o,i):this._root.shouldSample(t,e,r,n,o,i)},t.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()+"}"},t}(),eV=function(){function t(t){void 0===t&&(t=0),this._ratio=t,this._ratio=this._normalize(t),this._upperBound=Math.floor(0xffffffff*this._ratio)}return t.prototype.shouldSample=function(t,e){return{decision:ep(e)&&this._accumulate(e)=1?1:t<=0?0:t},t.prototype._accumulate=function(t){for(var e=0,r=0;r>>0}return e},t}(),ek=Function.prototype.toString,eF=ek.call(Object),eH=(t=Object.getPrototypeOf,e=Object,function(r){return t(e(r))}),eK=Object.prototype,eW=eK.hasOwnProperty,eY=Symbol?Symbol.toStringTag:void 0,ez=eK.toString;function eZ(t){if(null==(e=t)||"object"!=typeof e||"[object Object]"!==(null==(r=t)?void 0===r?"[object Undefined]":"[object Null]":eY&&eY in Object(r)?function(t){var e=eW.call(t,eY),r=t[eY],n=!1;try{t[eY]=void 0,n=!0}catch(t){}var o=ez.call(t);return n&&(e?t[eY]=r:delete t[eY]),o}(r):(n=r,ez.call(n))))return!1;var e,r,n,o=eH(t);if(null===o)return!0;var i=eW.call(o,"constructor")&&o.constructor;return"function"==typeof i&&i instanceof i&&ek.call(i)===eF}function eJ(){for(var t=[],e=0;e0;)r=function t(e,r,n,o){if(void 0===n&&(n=0),!(n>20)){if(n++,e2(e)||e2(r)||e0(r))u=e$(r);else if(eq(e)){if(u=e.slice(),eq(r))for(var i,a,u,c=0,l=r.length;c=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};function e6(t,e){return"string"==typeof e?t===e:!!t.match(e)}function e5(t,e){var r,n;if(!e)return!1;try{for(var o=e9(e),i=o.next();!i.done;i=o.next()){var a=i.value;if(e6(t,a))return!0}}catch(t){r={error:t}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return!1}function e7(t){return"function"==typeof t&&"function"==typeof t.__original&&"function"==typeof t.__unwrap&&!0===t.__wrapped}var rt=function(){function t(){var t=this;this._promise=new Promise(function(e,r){t._resolve=e,t._reject=r})}return Object.defineProperty(t.prototype,"promise",{get:function(){return this._promise},enumerable:!1,configurable:!0}),t.prototype.resolve=function(t){this._resolve(t)},t.prototype.reject=function(t){this._reject(t)},t}(),re=function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},rr=function(t,e,r){if(r||2==arguments.length)for(var n,o=0,i=e.length;o0}).reduce(function(t,e){return t[e.key]=e.value,t},{})},parsePairKeyValue:tp},ra={_export:function(t,e){return new Promise(function(r){ro.with(ta(ro.active()),function(){t.export(e,function(t){r(t)})})})}};module.exports=O})(); \ No newline at end of file +(()=>{"use strict";var e,t,r,n,o,i,a,_,T,E={};E.d=(e,t)=>{for(var r in t)E.o(t,r)&&!E.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},E.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),E.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var u={};E.r(u),E.d(u,{baggageUtils:()=>e6,hrTime:()=>w,timeInputToHrTime:()=>X,W3CTraceContextPropagator:()=>eI,callWithTimeout:()=>eQ,AlwaysOnSampler:()=>eb,isTracingSuppressed:()=>O,AlwaysOffSampler:()=>eN,loggingErrorHandler:()=>C,DEFAULT_ATTRIBUTE_COUNT_LIMIT:()=>eo,deleteRPCMetadata:()=>ev,suppressTracing:()=>f,RPCType:()=>T,RandomIdGenerator:()=>Z,setRPCMetadata:()=>eA,unrefTimer:()=>ef,hrTimeToMilliseconds:()=>V,TRACE_PARENT_HEADER:()=>ey,unsuppressTracing:()=>s,globalErrorHandler:()=>U,_globalThis:()=>q,getEnvWithoutDefaults:()=>el,ParentBasedSampler:()=>eU,millisToHrTime:()=>D,isTimeInputHrTime:()=>F,otperformance:()=>M,internal:()=>e5,urlMatches:()=>eq,BindOnceFuture:()=>e8,DEFAULT_ENVIRONMENT:()=>e_,SDK_INFO:()=>$,isWrapped:()=>e1,isAttributeKey:()=>m,TraceState:()=>eP,hexToBase64:()=>ec,TRACE_STATE_HEADER:()=>ed,getEnv:()=>eu,getTimeOrigin:()=>B,TraceIdRatioBasedSampler:()=>eM,hrTimeDuration:()=>j,DEFAULT_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT:()=>ei,isTimeInput:()=>K,hexToBinary:()=>Y,DEFAULT_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT:()=>ea,parseTraceParent:()=>eh,isUrlIgnored:()=>e0,parseEnvironment:()=>eE,setGlobalErrorHandler:()=>b,DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT:()=>en,isAttributeValue:()=>A,CompositePropagator:()=>eO,hrTimeToMicroseconds:()=>H,AnchoredClock:()=>d,TracesSamplerValues:()=>_,ExportResultCode:()=>i,hrTimeToNanoseconds:()=>G,merge:()=>eH,TimeoutError:()=>eJ,W3CBaggagePropagator:()=>y,addHrTimes:()=>k,getRPCMetadata:()=>eC,sanitizeAttributes:()=>I,hrTimeToTimeStamp:()=>x,VERSION:()=>Q});let l=require("@opentelemetry/api");var c=(0,l.createContextKey)("OpenTelemetry SDK Context Key SUPPRESS_TRACING");function f(e){return e.setValue(c,!0)}function s(e){return e.deleteValue(c)}function O(e){return!0===e.getValue(c)}var p="baggage",R=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a};function L(e){return e.reduce(function(e,t){var r=""+e+(""!==e?",":"")+t;return r.length>8192?e:r},"")}function S(e){return e.getAllEntries().map(function(e){var t=R(e,2),r=t[0],n=t[1],o=encodeURIComponent(r)+"="+encodeURIComponent(n.value);return void 0!==n.metadata&&(o+=";"+n.metadata.toString()),o})}function P(e){var t,r=e.split(";");if(!(r.length<=0)){var n=r.shift();if(n){var o=n.indexOf("=");if(!(o<=0)){var i=decodeURIComponent(n.substring(0,o).trim()),a=decodeURIComponent(n.substring(o+1).trim());return r.length>0&&(t=(0,l.baggageEntryMetadataFromString)(r.join(";"))),{key:i,value:a,metadata:t}}}}}var y=function(){function e(){}return e.prototype.inject=function(e,t,r){var n=l.propagation.getBaggage(e);if(!(!n||O(e))){var o=L(S(n).filter(function(e){return e.length<=4096}).slice(0,180));o.length>0&&r.set(t,p,o)}},e.prototype.extract=function(e,t,r){var n=r.get(t,p),o=Array.isArray(n)?n.join(","):n;if(!o)return e;var i={};return 0===o.length||(o.split(",").forEach(function(e){var t=P(e);if(t){var r={value:t.value};t.metadata&&(r.metadata=t.metadata),i[t.key]=r}}),0===Object.entries(i).length)?e:l.propagation.setBaggage(e,l.propagation.createBaggage(i))},e.prototype.fields=function(){return[p]},e}(),d=function(){function e(e,t){this._monotonicClock=t,this._epochMillis=e.now(),this._performanceMillis=t.now()}return e.prototype.now=function(){var e=this._monotonicClock.now()-this._performanceMillis;return this._epochMillis+e},e}(),g=function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},h=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a};function I(e){var t,r,n={};if("object"!=typeof e||null==e)return n;try{for(var o=g(Object.entries(e)),i=o.next();!i.done;i=o.next()){var a=h(i.value,2),_=a[0],T=a[1];if(!m(_)){l.diag.warn("Invalid attribute key: "+_);continue}if(!A(T)){l.diag.warn("Invalid attribute value set for key: "+_);continue}Array.isArray(T)?n[_]=T.slice():n[_]=T}}catch(e){t={error:e}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(t)throw t.error}}return n}function m(e){return"string"==typeof e&&e.length>0}function A(e){return null==e||(Array.isArray(e)?function(e){try{for(var t,r,n,o=g(e),i=o.next();!i.done;i=o.next()){var a=i.value;if(null!=a){if(!n){if(v(a)){n=typeof a;continue}return!1}if(typeof a!==n)return!1}}}catch(e){t={error:e}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(t)throw t.error}}return!0}(e):v(e))}function v(e){switch(typeof e){case"number":case"boolean":case"string":return!0}return!1}function C(){return function(e){var t;l.diag.error("string"==typeof(t=e)?t:JSON.stringify(function(e){for(var t={},r=e;null!==r;)Object.getOwnPropertyNames(r).forEach(function(e){if(!t[e]){var n=r[e];n&&(t[e]=String(n))}}),r=Object.getPrototypeOf(r);return t}(t)))}}var N=C();function b(e){N=e}function U(e){try{N(e)}catch(e){}}var M=require("perf_hooks").performance;function D(e){return[Math.trunc(e/1e3),Math.round(e%1e3*1e6)]}function B(){var e=M.timeOrigin;return"number"!=typeof e&&(e=M.timing&&M.timing.fetchStart),e}function w(e){return k(D(B()),D("number"==typeof e?e:M.now()))}function X(e){if(F(e))return e;if("number"==typeof e)if(e=1e9&&(r[1]-=1e9,r[0]+=1),r}function z(e){return e>=48&&e<=57?e-48:e>=97&&e<=102?e-87:e-55}function Y(e){for(var t=new Uint8Array(e.length/2),r=0,n=0;n>>0,4*t);for(var t=0;t0)break;else t===e-1&&(W[e-1]=1);return W.toString("hex",0,e)}}var Q="1.30.1",$=((a={})["telemetry.sdk.name"]="opentelemetry",a["process.runtime.name"]="node",a["telemetry.sdk.language"]="nodejs",a["telemetry.sdk.version"]=Q,a),q="object"==typeof globalThis?globalThis:global;(n=_||(_={})).AlwaysOff="always_off",n.AlwaysOn="always_on",n.ParentBasedAlwaysOff="parentbased_always_off",n.ParentBasedAlwaysOn="parentbased_always_on",n.ParentBasedTraceIdRatio="parentbased_traceidratio",n.TraceIdRatio="traceidratio";var ee=["OTEL_SDK_DISABLED"],et=["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"],er=["OTEL_NO_PATCH_MODULES","OTEL_PROPAGATORS","OTEL_SEMCONV_STABILITY_OPT_IN"],en=1/0,eo=128,ei=128,ea=128,e_={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:l.DiagLogLevel.INFO,OTEL_NO_PATCH_MODULES:[],OTEL_PROPAGATORS:["tracecontext","baggage"],OTEL_RESOURCE_ATTRIBUTES:"",OTEL_SERVICE_NAME:"",OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT:en,OTEL_ATTRIBUTE_COUNT_LIMIT:eo,OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT:en,OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT:eo,OTEL_LOGRECORD_ATTRIBUTE_VALUE_LENGTH_LIMIT:en,OTEL_LOGRECORD_ATTRIBUTE_COUNT_LIMIT:eo,OTEL_SPAN_EVENT_COUNT_LIMIT:128,OTEL_SPAN_LINK_COUNT_LIMIT:128,OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT:ei,OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT:ea,OTEL_TRACES_EXPORTER:"",OTEL_TRACES_SAMPLER:_.ParentBasedAlwaysOn,OTEL_TRACES_SAMPLER_ARG:"",OTEL_LOGS_EXPORTER:"",OTEL_EXPORTER_OTLP_INSECURE:"",OTEL_EXPORTER_OTLP_TRACES_INSECURE:"",OTEL_EXPORTER_OTLP_METRICS_INSECURE:"",OTEL_EXPORTER_OTLP_LOGS_INSECURE:"",OTEL_EXPORTER_OTLP_CERTIFICATE:"",OTEL_EXPORTER_OTLP_TRACES_CERTIFICATE:"",OTEL_EXPORTER_OTLP_METRICS_CERTIFICATE:"",OTEL_EXPORTER_OTLP_LOGS_CERTIFICATE:"",OTEL_EXPORTER_OTLP_COMPRESSION:"",OTEL_EXPORTER_OTLP_TRACES_COMPRESSION:"",OTEL_EXPORTER_OTLP_METRICS_COMPRESSION:"",OTEL_EXPORTER_OTLP_LOGS_COMPRESSION:"",OTEL_EXPORTER_OTLP_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_TRACES_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_METRICS_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_LOGS_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_TRACES_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_METRICS_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_LOGS_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_TRACES_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_METRICS_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_LOGS_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE:"cumulative",OTEL_SEMCONV_STABILITY_OPT_IN:[]},eT={ALL:l.DiagLogLevel.ALL,VERBOSE:l.DiagLogLevel.VERBOSE,DEBUG:l.DiagLogLevel.DEBUG,INFO:l.DiagLogLevel.INFO,WARN:l.DiagLogLevel.WARN,ERROR:l.DiagLogLevel.ERROR,NONE:l.DiagLogLevel.NONE};function eE(e){var t={};for(var r in e_)if("OTEL_LOG_LEVEL"===r)!function(e,t,r){var n=r[e];if("string"==typeof n){var o=eT[n.toUpperCase()];null!=o&&(t[e]=o)}}(r,t,e);else if(ee.indexOf(r)>-1)!function(e,t,r){if(void 0!==r[e]){var n=String(r[e]);t[e]="true"===n.toLowerCase()}}(r,t,e);else if(et.indexOf(r)>-1)!function(e,t,r,n,o){if(void 0===n&&(n=-1/0),void 0===o&&(o=1/0),void 0!==r[e]){var i=Number(r[e]);isNaN(i)||(io?t[e]=o:t[e]=i)}}(r,t,e);else if(er.indexOf(r)>-1)!function(e,t,r,n){void 0===n&&(n=",");var o=r[e];"string"==typeof o&&(t[e]=o.split(n).map(function(e){return e.trim()}))}(r,t,e);else{var n=e[r];null!=n&&(t[r]=String(n))}return t}function eu(){return Object.assign({},e_,eE(process.env))}function el(){return eE(process.env)}function ec(e){return Buffer.from(Y(e)).toString("base64")}function ef(e){e.unref()}var es=function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},eO=function(){function e(e){var t;void 0===e&&(e={}),this._propagators=null!=(t=e.propagators)?t:[],this._fields=Array.from(new Set(this._propagators.map(function(e){return"function"==typeof e.fields?e.fields():[]}).reduce(function(e,t){return e.concat(t)},[])))}return e.prototype.inject=function(e,t,r){var n,o;try{for(var i=es(this._propagators),a=i.next();!a.done;a=i.next()){var _=a.value;try{_.inject(e,t,r)}catch(e){l.diag.warn("Failed to inject with "+_.constructor.name+". Err: "+e.message)}}}catch(e){n={error:e}}finally{try{a&&!a.done&&(o=i.return)&&o.call(i)}finally{if(n)throw n.error}}},e.prototype.extract=function(e,t,r){return this._propagators.reduce(function(e,n){try{return n.extract(e,t,r)}catch(e){l.diag.warn("Failed to extract with "+n.constructor.name+". Err: "+e.message)}return e},e)},e.prototype.fields=function(){return this._fields.slice()},e}(),ep="[_0-9a-z-*/]",eR=RegExp("^(?:[a-z]"+ep+"{0,255}|"+("[a-z0-9]"+ep+"{0,240}@[a-z]")+ep+"{0,13})$"),eL=/^[ -~]{0,255}[!-~]$/,eS=/,|=/,eP=function(){function e(e){this._internalState=new Map,e&&this._parse(e)}return e.prototype.set=function(e,t){var r=this._clone();return r._internalState.has(e)&&r._internalState.delete(e),r._internalState.set(e,t),r},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,r){return t.push(r+"="+e.get(r)),t},[]).join(",")},e.prototype._parse=function(e){!(e.length>512)&&(this._internalState=e.split(",").reverse().reduce(function(e,t){var r=t.trim(),n=r.indexOf("=");if(-1!==n){var o=r.slice(0,n),i=r.slice(n+1,t.length);eR.test(o)&&eL.test(i)&&!eS.test(i)&&e.set(o,i)}return e},new Map),this._internalState.size>32&&(this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,32))))},e.prototype._keys=function(){return Array.from(this._internalState.keys()).reverse()},e.prototype._clone=function(){var t=new e;return t._internalState=new Map(this._internalState),t},e}(),ey="traceparent",ed="tracestate",eg=RegExp("^\\s?((?!ff)[\\da-f]{2})-((?![0]{32})[\\da-f]{32})-((?![0]{16})[\\da-f]{16})-([\\da-f]{2})(-.*)?\\s?$");function eh(e){var t=eg.exec(e);return!t||"00"===t[1]&&t[5]?null:{traceId:t[2],spanId:t[3],traceFlags:parseInt(t[4],16)}}var eI=function(){function e(){}return e.prototype.inject=function(e,t,r){var n=l.trace.getSpanContext(e);if(!(!n||O(e))&&(0,l.isSpanContextValid)(n)){var o="00-"+n.traceId+"-"+n.spanId+"-0"+Number(n.traceFlags||l.TraceFlags.NONE).toString(16);r.set(t,ey,o),n.traceState&&r.set(t,ed,n.traceState.serialize())}},e.prototype.extract=function(e,t,r){var n=r.get(t,ey);if(!n)return e;var o=Array.isArray(n)?n[0]:n;if("string"!=typeof o)return e;var i=eh(o);if(!i)return e;i.isRemote=!0;var a=r.get(t,ed);if(a){var _=Array.isArray(a)?a.join(","):a;i.traceState=new eP("string"==typeof _?_:void 0)}return l.trace.setSpanContext(e,i)},e.prototype.fields=function(){return[ey,ed]},e}(),em=(0,l.createContextKey)("OpenTelemetry SDK Context Key RPC_METADATA");function eA(e,t){return e.setValue(em,t)}function ev(e){return e.deleteValue(em)}function eC(e){return e.getValue(em)}(T||(T={})).HTTP="http";var eN=function(){function e(){}return e.prototype.shouldSample=function(){return{decision:l.SamplingDecision.NOT_RECORD}},e.prototype.toString=function(){return"AlwaysOffSampler"},e}(),eb=function(){function e(){}return e.prototype.shouldSample=function(){return{decision:l.SamplingDecision.RECORD_AND_SAMPLED}},e.prototype.toString=function(){return"AlwaysOnSampler"},e}(),eU=function(){function e(e){var t,r,n,o;this._root=e.root,this._root||(U(Error("ParentBasedSampler must have a root sampler configured")),this._root=new eb),this._remoteParentSampled=null!=(t=e.remoteParentSampled)?t:new eb,this._remoteParentNotSampled=null!=(r=e.remoteParentNotSampled)?r:new eN,this._localParentSampled=null!=(n=e.localParentSampled)?n:new eb,this._localParentNotSampled=null!=(o=e.localParentNotSampled)?o:new eN}return e.prototype.shouldSample=function(e,t,r,n,o,i){var a=l.trace.getSpanContext(e);return a&&(0,l.isSpanContextValid)(a)?a.isRemote?a.traceFlags&l.TraceFlags.SAMPLED?this._remoteParentSampled.shouldSample(e,t,r,n,o,i):this._remoteParentNotSampled.shouldSample(e,t,r,n,o,i):a.traceFlags&l.TraceFlags.SAMPLED?this._localParentSampled.shouldSample(e,t,r,n,o,i):this._localParentNotSampled.shouldSample(e,t,r,n,o,i):this._root.shouldSample(e,t,r,n,o,i)},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}(),eM=function(){function e(e){void 0===e&&(e=0),this._ratio=e,this._ratio=this._normalize(e),this._upperBound=Math.floor(0xffffffff*this._ratio)}return e.prototype.shouldSample=function(e,t){return{decision:(0,l.isValidTraceId)(t)&&this._accumulate(t)=1?1:e<=0?0:e},e.prototype._accumulate=function(e){for(var t=0,r=0;r>>0}return t},e}(),eD=Function.prototype.toString,eB=eD.call(Object),ew=(e=Object.getPrototypeOf,t=Object,function(r){return e(t(r))}),eX=Object.prototype,ej=eX.hasOwnProperty,ex=Symbol?Symbol.toStringTag:void 0,eG=eX.toString;function eV(e){if(null==(t=e)||"object"!=typeof t||"[object Object]"!==(null==(r=e)?void 0===r?"[object Undefined]":"[object Null]":ex&&ex in Object(r)?function(e){var t=ej.call(e,ex),r=e[ex],n=!1;try{e[ex]=void 0,n=!0}catch(e){}var o=eG.call(e);return n&&(t?e[ex]=r:delete e[ex]),o}(r):(n=r,eG.call(n))))return!1;var t,r,n,o=ew(e);if(null===o)return!0;var i=ej.call(o,"constructor")&&o.constructor;return"function"==typeof i&&i instanceof i&&eD.call(i)===eB}function eH(){for(var e=[],t=0;t0;)r=function e(t,r,n,o){if(void 0===n&&(n=0),!(n>20)){if(n++,eZ(t)||eZ(r)||ez(r))_=eF(r);else if(ek(t)){if(_=t.slice(),ek(r))for(var i,a,_,T=0,E=r.length;T=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};function eq(e,t){return"string"==typeof t?e===t:!!e.match(t)}function e0(e,t){var r,n;if(!t)return!1;try{for(var o=e$(t),i=o.next();!i.done;i=o.next()){var a=i.value;if(eq(e,a))return!0}}catch(e){r={error:e}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return!1}function e1(e){return"function"==typeof e&&"function"==typeof e.__original&&"function"==typeof e.__unwrap&&!0===e.__wrapped}var e2=function(){function e(){var e=this;this._promise=new Promise(function(t,r){e._resolve=t,e._reject=r})}return Object.defineProperty(e.prototype,"promise",{get:function(){return this._promise},enumerable:!1,configurable:!0}),e.prototype.resolve=function(e){this._resolve(e)},e.prototype.reject=function(e){this._reject(e)},e}(),e3=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},e4=function(e,t,r){if(r||2==arguments.length)for(var n,o=0,i=t.length;o0}).reduce(function(e,t){return e[t.key]=t.value,e},{})},parsePairKeyValue:P},e5={_export:function(e,t){return new Promise(function(r){l.context.with(f(l.context.active()),function(){e.export(t,function(e){r(e)})})})}};module.exports=u})(); \ No newline at end of file diff --git a/packages/node_modules/@opentelemetry/resources/index.js b/packages/node_modules/@opentelemetry/resources/index.js index f48e69d7b1c..af6eb43b0ba 100644 --- a/packages/node_modules/@opentelemetry/resources/index.js +++ b/packages/node_modules/@opentelemetry/resources/index.js @@ -1 +1 @@ -(()=>{"use strict";var e={7259:function(e,t,r){r.d(t,{K:()=>s});var n=r(7066),o=r(6347),i=r(9232),a=r(844),u=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},c=function(e,t,r){if(r||2==arguments.length)for(var n,o=0,i=t.length;o";l.warn("Current logger will be overwritten from "+f),E.warn("Current logger will overwrite one already registered from "+f)}return(0,a.$G)("diag",E,t,!0)},t.disable=function(){(0,a.kv)("diag",t)},t.createComponentLogger=function(e){return new n.V(e)},t.verbose=e("verbose"),t.debug=e("debug"),t.info=e("info"),t.warn=e("warn"),t.error=e("error")}return e.instance=function(){return this._instance||(this._instance=new e),this._instance},e}()},2339:function(e,t,r){r.d(t,{s:()=>n});var n=r(7259).K.instance()},7066:function(e,t,r){r.d(t,{V:()=>a});var n=r(844),o=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},i=function(e,t,r){if(r||2==arguments.length)for(var n,o=0,i=t.length;oo});var n=r(9232);function o(e,t){function r(r,n){var o=t[r];return"function"==typeof o&&e>=n?o.bind(t):function(){}}return en.u.ALL&&(e=n.u.ALL),t=t||{},{error:r("error",n.u.ERROR),warn:r("warn",n.u.WARN),info:r("info",n.u.INFO),debug:r("debug",n.u.DEBUG),verbose:r("verbose",n.u.VERBOSE)}}},9232:function(e,t,r){var n,o;r.d(t,{u:()=>n}),(o=n||(n={}))[o.NONE=0]="NONE",o[o.ERROR=30]="ERROR",o[o.WARN=50]="WARN",o[o.INFO=60]="INFO",o[o.DEBUG=70]="DEBUG",o[o.VERBOSE=80]="VERBOSE",o[o.ALL=9999]="ALL"},844:function(e,t,r){r.d(t,{$G:()=>c,kv:()=>l,mS:()=>s});var n=r(4111),o=r(8533),i=r(5391),a=Symbol.for("opentelemetry.js.api."+o.x.split(".")[0]),u=n.X;function c(e,t,r,n){void 0===n&&(n=!1);var i,c=u[a]=null!=(i=u[a])?i:{version:o.x};if(!n&&c[e]){var s=Error("@opentelemetry/api: Attempted duplicate registration of API: "+e);return r.error(s.stack||s.message),!1}if(c.version!==o.x){var s=Error("@opentelemetry/api: Registration of version v"+c.version+" for "+e+" does not match previously registered API v"+o.x);return r.error(s.stack||s.message),!1}return c[e]=t,r.debug("@opentelemetry/api: Registered a global for "+e+" v"+o.x+"."),!0}function s(e){var t,r,n=null==(t=u[a])?void 0:t.version;if(n&&(0,i.$)(n))return null==(r=u[a])?void 0:r[e]}function l(e,t){t.debug("@opentelemetry/api: Unregistering a global for "+e+" v"+o.x+".");var r=u[a];r&&delete r[e]}},5391:function(e,t,r){r.d(t,{$:()=>i});var n=r(8533),o=/^(\d+)\.(\d+)\.(\d+)(-(.+))?$/,i=function(e){var t=new Set([e]),r=new Set,n=e.match(o);if(!n)return function(){return!1};var i={major:+n[1],minor:+n[2],patch:+n[3],prerelease:n[4]};if(null!=i.prerelease)return function(t){return t===e};function a(e){return r.add(e),!1}return function(e){if(t.has(e))return!0;if(r.has(e))return!1;var n=e.match(o);if(!n)return a(e);var u={major:+n[1],minor:+n[2],patch:+n[3],prerelease:n[4]};if(null!=u.prerelease||i.major!==u.major)return a(e);if(0===i.major)return i.minor===u.minor&&i.patch<=u.patch?(t.add(e),!0):a(e);return i.minor<=u.minor?(t.add(e),!0):a(e)}}(n.x)},4111:function(e,t,r){r.d(t,{X:()=>n});var n="object"==typeof globalThis?globalThis:global},8533:function(e,t,r){r.d(t,{x:()=>n});var n="1.9.0"},2872:function(e,t,r){r.d(t,{q:()=>o});let n=require("child_process");var o=require("util").promisify(n.exec)},2341:function(e,t,r){r.d(t,{D:()=>u});var n=r(9896),o=r(2872),i=r(2339),a=function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){var c=[i,u];if(r)throw TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&c[0]?n.return:c[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,c[1])).done)return o;switch(n=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return a.label++,{value:c[1],done:!1};case 5:a.label++,n=c[1],c=[0];continue;case 7:c=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===c[0]||2===c[0])){a=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]a});var n=r(2872),o=r(2339),i=function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){var c=[i,u];if(r)throw TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&c[0]?n.return:c[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,c[1])).done)return o;switch(n=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return a.label++,{value:c[1],done:!1};case 5:a.label++,n=c[1],c=[0];continue;case 7:c=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===c[0]||2===c[0])){a=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]u});var n=r(9896),o=r(2339),i=function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){var c=[i,u];if(r)throw TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&c[0]?n.return:c[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,c[1])).done)return o;switch(n=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return a.label++,{value:c[1],done:!1};case 5:a.label++,n=c[1],c=[0];continue;case 7:c=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===c[0]||2===c[0])){a=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};function u(){var e,t,r,u;return e=this,t=void 0,r=void 0,u=function(){var e,t,r,u,c,s,l;return i(this,function(i){switch(i.label){case 0:e=["/etc/machine-id","/var/lib/dbus/machine-id"],i.label=1;case 1:i.trys.push([1,8,9,10]),r=(t=a(e)).next(),i.label=2;case 2:if(r.done)return[3,7];u=r.value,i.label=3;case 3:return i.trys.push([3,5,,6]),[4,n.promises.readFile(u,{encoding:"utf8"})];case 4:return[2,i.sent().trim()];case 5:return c=i.sent(),o.s.debug("error reading machine id: "+c),[3,6];case 6:return r=t.next(),[3,2];case 7:return[3,10];case 8:return s={error:i.sent()},[3,10];case 9:try{r&&!r.done&&(l=t.return)&&l.call(t)}finally{if(s)throw s.error}return[7];case 10:return[2,""]}})},new(r||(r=Promise))(function(n,o){function i(e){try{c(u.next(e))}catch(e){o(e)}}function a(e){try{c(u.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?n(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(i,a)}c((u=u.apply(e,t||[])).next())})}},2063:function(e,t,r){r.d(t,{D:()=>i});var n=r(2339),o=function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){var c=[i,u];if(r)throw TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&c[0]?n.return:c[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,c[1])).done)return o;switch(n=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return a.label++,{value:c[1],done:!1};case 5:a.label++,n=c[1],c=[0];continue;case 7:c=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===c[0]||2===c[0])){a=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]u});var n=r(932),o=r(2872),i=r(2339),a=function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){var c=[i,u];if(r)throw TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&c[0]?n.return:c[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,c[1])).done)return o;switch(n=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return a.label++,{value:c[1],done:!1};case 5:a.label++,n=c[1],c=[0];continue;case 7:c=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===c[0]||2===c[0])){a=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};(()=>{r.r(n),r.d(n,{envDetector:()=>U,envDetectorSync:()=>C,hostDetector:()=>B,Resource:()=>h,osDetector:()=>k,detectResources:()=>W,osDetectorSync:()=>G,browserDetectorSync:()=>R,processDetectorSync:()=>j,detectResourcesSync:()=>J,browserDetector:()=>L,processDetector:()=>F,defaultServiceName:()=>O,hostDetectorSync:()=>D,serviceInstanceIdDetectorSync:()=>Y});var e,t,o,i,a=r(2339),u="process.runtime.name",c="process.runtime.version",s="process.runtime.description",l="service.name",E="telemetry.sdk.name",f="telemetry.sdk.language",_="telemetry.sdk.version",T=((t={})[E]="opentelemetry",t[u]="node",t[f]="nodejs",t[_]="1.30.1",t);function O(){return"unknown_service:"+process.argv0}var p=function(){return(p=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])&&(6===c[0]||2===c[0])){a=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},h=function(){function e(e,t){var r,n=this;this._attributes=e,this.asyncAttributesPending=null!=t,this._syncAttributes=null!=(r=this._attributes)?r:{},this._asyncAttributesPromise=null==t?void 0:t.then(function(e){return n._attributes=Object.assign({},n._attributes,e),n.asyncAttributesPending=!1,e},function(e){return a.s.debug("a resource's async attributes promise rejected: %s",e),n.asyncAttributesPending=!1,{}})}return e.empty=function(){return e.EMPTY},e.default=function(){var t;return new e(((t={})[l]=O(),t[f]=T[f],t[E]=T[E],t[_]=T[_],t))},Object.defineProperty(e.prototype,"attributes",{get:function(){var e;return this.asyncAttributesPending&&a.s.error("Accessing resource attributes before async attributes settled"),null!=(e=this._attributes)?e:{}},enumerable:!1,configurable:!0}),e.prototype.waitForAsyncAttributes=function(){var e,t,r,n;return e=this,t=void 0,r=void 0,n=function(){return d(this,function(e){switch(e.label){case 0:if(!this.asyncAttributesPending)return[3,2];return[4,this._asyncAttributesPromise];case 1:e.sent(),e.label=2;case 2:return[2]}})},new(r||(r=Promise))(function(o,i){function a(e){try{c(n.next(e))}catch(e){i(e)}}function u(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(a,u)}c((n=n.apply(e,t||[])).next())})},e.prototype.merge=function(t){var r,n=this;if(!t)return this;var o=p(p({},this._syncAttributes),null!=(r=t._syncAttributes)?r:t.attributes);return this._asyncAttributesPromise||t._asyncAttributesPromise?new e(o,Promise.all([this._asyncAttributesPromise,t._asyncAttributesPromise]).then(function(e){var r,o=y(e,2),i=o[0],a=o[1];return p(p(p(p({},n._syncAttributes),i),null!=(r=t._syncAttributes)?r:t.attributes),a)})):new e(o)},e.EMPTY=new e({}),e}(),v=function(){return(v=Object.assign||function(e){for(var t,r=1,n=arguments.length;r=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},N=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},C=new(function(){function e(){this._MAX_LENGTH=255,this._COMMA_SEPARATOR=",",this._LABEL_KEY_VALUE_SPLITTER="=",this._ERROR_MESSAGE_INVALID_CHARS="should be a ASCII string with a length greater than 0 and not exceed "+this._MAX_LENGTH+" characters.",this._ERROR_MESSAGE_INVALID_VALUE="should be a ASCII string with a length not exceed "+this._MAX_LENGTH+" characters."}return e.prototype.detect=function(e){var t,r={},n=(t=function(e){var t={};for(var r in I)if("OTEL_LOG_LEVEL"===r)!function(e,t,r){var n=r[e];if("string"==typeof n){var o=m[n.toUpperCase()];null!=o&&(t[e]=o)}}(r,t,e);else if(A.indexOf(r)>-1)!function(e,t,r){if(void 0!==r[e]){var n=String(r[e]);t[e]="true"===n.toLowerCase()}}(r,t,e);else if(P.indexOf(r)>-1)!function(e,t,r,n,o){if(void 0===n&&(n=-1/0),void 0===o&&(o=1/0),void 0!==r[e]){var i=Number(r[e]);isNaN(i)||(io?t[e]=o:t[e]=i)}}(r,t,e);else if(S.indexOf(r)>-1)!function(e,t,r,n){void 0===n&&(n=",");var o=r[e];"string"==typeof o&&(t[e]=o.split(n).map(function(e){return e.trim()}))}(r,t,e);else{var n=e[r];null!=n&&(t[r]=String(n))}return t}(process.env),Object.assign({},I,t)),o=n.OTEL_RESOURCE_ATTRIBUTES,i=n.OTEL_SERVICE_NAME;if(o)try{var u=this._parseResourceAttributes(o);Object.assign(r,u)}catch(e){a.s.debug("EnvDetector failed: "+e.message)}return i&&(r[l]=i),new h(r)},e.prototype._parseResourceAttributes=function(e){if(!e)return{};var t,r,n={},o=e.split(this._COMMA_SEPARATOR,-1);try{for(var i=w(o),a=i.next();!a.done;a=i.next()){var u=a.value.split(this._LABEL_KEY_VALUE_SPLITTER,-1);if(2===u.length){var c=N(u,2),s=c[0],l=c[1];if(s=s.trim(),l=l.trim().split(/^"|"$/).join(""),!this._isValidAndNotEmpty(s))throw Error("Attribute key "+this._ERROR_MESSAGE_INVALID_CHARS);if(!this._isValid(l))throw Error("Attribute value "+this._ERROR_MESSAGE_INVALID_VALUE);n[s]=decodeURIComponent(l)}}}catch(e){t={error:e}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}return n},e.prototype._isValid=function(e){return e.length<=this._MAX_LENGTH&&this._isBaggageOctetString(e)},e.prototype._isBaggageOctetString=function(e){for(var t=0;t126)return!1}return!0},e.prototype._isValidAndNotEmpty=function(e){return e.length>0&&this._isValid(e)},e}()),U=new(function(){function e(){}return e.prototype.detect=function(e){return Promise.resolve(C.detect(e))},e}());let M=require("os");var x=function(e){switch(e){case"arm":return"arm32";case"ppc":return"ppc32";case"x64":return"amd64";default:return e}},X=function(e){switch(e){case"sunos":return"solaris";case"win32":return"windows";default:return e}};switch(r(932).platform){case"darwin":i=r(7821).D;break;case"linux":i=r(2238).D;break;case"freebsd":i=r(2341).D;break;case"win32":i=r(2618).D;break;default:i=r(2063).D}var D=new(function(){function e(){}return e.prototype.detect=function(e){var t;return new h(((t={})["host.name"]=(0,M.hostname)(),t["host.arch"]=x((0,M.arch)()),t),this._getAsyncAttributes())},e.prototype._getAsyncAttributes=function(){return i().then(function(e){var t={};return e&&(t["host.id"]=e),t})},e}()),B=new(function(){function e(){}return e.prototype.detect=function(e){return Promise.resolve(D.detect(e))},e}()),G=new(function(){function e(){}return e.prototype.detect=function(e){var t;return new h(((t={})["os.type"]=X((0,M.platform)()),t["os.version"]=(0,M.release)(),t))},e}()),k=new(function(){function e(){}return e.prototype.detect=function(e){return Promise.resolve(G.detect(e))},e}()),V=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},H=function(e,t,r){if(r||2==arguments.length)for(var n,o=0,i=t.length;o1&&(r["process.command"]=process.argv[1]);try{var n=M.userInfo();r["process.owner"]=n.username}catch(e){a.s.debug("error obtaining process owner: "+e)}return new h(r)},e}()),F=new(function(){function e(){}return e.prototype.detect=function(e){return Promise.resolve(j.detect(e))},e}());let K=require("crypto");var Y=new(function(){function e(){}return e.prototype.detect=function(e){var t;return new h(((t={})["service.instance.id"]=(0,K.randomUUID)(),t))},e}()),q=function(e,t,r,n){return new(r||(r=Promise))(function(o,i){function a(e){try{c(n.next(e))}catch(e){i(e)}}function u(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(a,u)}c((n=n.apply(e,t||[])).next())})},Z=function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){var c=[i,u];if(r)throw TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&c[0]?n.return:c[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,c[1])).done)return o;switch(n=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return a.label++,{value:c[1],done:!1};case 5:a.label++,n=c[1],c=[0];continue;case 7:c=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===c[0]||2===c[0])){a=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]0){var t=JSON.stringify(e.attributes,null,4);a.s.verbose(t)}})}})(),module.exports=n})(); \ No newline at end of file +(()=>{"use strict";var e={2872:function(e,t,r){r.d(t,{q:()=>o});let n=require("child_process");var o=require("util").promisify(n.exec)},2341:function(e,t,r){r.d(t,{D:()=>u});var n=r(9896),o=r(2872),i=r(7870),a=function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){var c=[i,u];if(r)throw TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&c[0]?n.return:c[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,c[1])).done)return o;switch(n=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return a.label++,{value:c[1],done:!1};case 5:a.label++,n=c[1],c=[0];continue;case 7:c=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===c[0]||2===c[0])){a=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]a});var n=r(2872),o=r(7870),i=function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){var c=[i,u];if(r)throw TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&c[0]?n.return:c[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,c[1])).done)return o;switch(n=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return a.label++,{value:c[1],done:!1};case 5:a.label++,n=c[1],c=[0];continue;case 7:c=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===c[0]||2===c[0])){a=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]u});var n=r(9896),o=r(7870),i=function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){var c=[i,u];if(r)throw TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&c[0]?n.return:c[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,c[1])).done)return o;switch(n=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return a.label++,{value:c[1],done:!1};case 5:a.label++,n=c[1],c=[0];continue;case 7:c=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===c[0]||2===c[0])){a=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};function u(){var e,t,r,u;return e=this,t=void 0,r=void 0,u=function(){var e,t,r,u,c,s,l;return i(this,function(i){switch(i.label){case 0:e=["/etc/machine-id","/var/lib/dbus/machine-id"],i.label=1;case 1:i.trys.push([1,8,9,10]),r=(t=a(e)).next(),i.label=2;case 2:if(r.done)return[3,7];u=r.value,i.label=3;case 3:return i.trys.push([3,5,,6]),[4,n.promises.readFile(u,{encoding:"utf8"})];case 4:return[2,i.sent().trim()];case 5:return c=i.sent(),o.diag.debug("error reading machine id: "+c),[3,6];case 6:return r=t.next(),[3,2];case 7:return[3,10];case 8:return s={error:i.sent()},[3,10];case 9:try{r&&!r.done&&(l=t.return)&&l.call(t)}finally{if(s)throw s.error}return[7];case 10:return[2,""]}})},new(r||(r=Promise))(function(n,o){function i(e){try{c(u.next(e))}catch(e){o(e)}}function a(e){try{c(u.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?n(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(i,a)}c((u=u.apply(e,t||[])).next())})}},2063:function(e,t,r){r.d(t,{D:()=>i});var n=r(7870),o=function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){var c=[i,u];if(r)throw TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&c[0]?n.return:c[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,c[1])).done)return o;switch(n=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return a.label++,{value:c[1],done:!1};case 5:a.label++,n=c[1],c=[0];continue;case 7:c=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===c[0]||2===c[0])){a=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]u});var n=r(932),o=r(2872),i=r(7870),a=function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){var c=[i,u];if(r)throw TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&c[0]?n.return:c[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,c[1])).done)return o;switch(n=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return a.label++,{value:c[1],done:!1};case 5:a.label++,n=c[1],c=[0];continue;case 7:c=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===c[0]||2===c[0])){a=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};(()=>{r.r(n),r.d(n,{envDetector:()=>N,envDetectorSync:()=>C,hostDetector:()=>x,Resource:()=>R,osDetector:()=>G,detectResources:()=>Z,osDetectorSync:()=>B,browserDetectorSync:()=>h,processDetectorSync:()=>H,detectResourcesSync:()=>J,browserDetector:()=>b,processDetector:()=>j,defaultServiceName:()=>O,hostDetectorSync:()=>X,serviceInstanceIdDetectorSync:()=>Y});var e,t,o,i,a=r(7870),u="process.runtime.name",c="process.runtime.version",s="process.runtime.description",l="service.name",E="telemetry.sdk.name",_="telemetry.sdk.language",T="telemetry.sdk.version",f=((t={})[E]="opentelemetry",t[u]="node",t[_]="nodejs",t[T]="1.30.1",t);function O(){return"unknown_service:"+process.argv0}var p=function(){return(p=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])&&(6===c[0]||2===c[0])){a=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},R=function(){function e(e,t){var r,n=this;this._attributes=e,this.asyncAttributesPending=null!=t,this._syncAttributes=null!=(r=this._attributes)?r:{},this._asyncAttributesPromise=null==t?void 0:t.then(function(e){return n._attributes=Object.assign({},n._attributes,e),n.asyncAttributesPending=!1,e},function(e){return a.diag.debug("a resource's async attributes promise rejected: %s",e),n.asyncAttributesPending=!1,{}})}return e.empty=function(){return e.EMPTY},e.default=function(){var t;return new e(((t={})[l]=O(),t[_]=f[_],t[E]=f[E],t[T]=f[T],t))},Object.defineProperty(e.prototype,"attributes",{get:function(){var e;return this.asyncAttributesPending&&a.diag.error("Accessing resource attributes before async attributes settled"),null!=(e=this._attributes)?e:{}},enumerable:!1,configurable:!0}),e.prototype.waitForAsyncAttributes=function(){var e,t,r,n;return e=this,t=void 0,r=void 0,n=function(){return d(this,function(e){switch(e.label){case 0:if(!this.asyncAttributesPending)return[3,2];return[4,this._asyncAttributesPromise];case 1:e.sent(),e.label=2;case 2:return[2]}})},new(r||(r=Promise))(function(o,i){function a(e){try{c(n.next(e))}catch(e){i(e)}}function u(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(a,u)}c((n=n.apply(e,t||[])).next())})},e.prototype.merge=function(t){var r,n=this;if(!t)return this;var o=p(p({},this._syncAttributes),null!=(r=t._syncAttributes)?r:t.attributes);return this._asyncAttributesPromise||t._asyncAttributesPromise?new e(o,Promise.all([this._asyncAttributesPromise,t._asyncAttributesPromise]).then(function(e){var r,o=L(e,2),i=o[0],a=o[1];return p(p(p(p({},n._syncAttributes),i),null!=(r=t._syncAttributes)?r:t.attributes),a)})):new e(o)},e.EMPTY=new e({}),e}(),y=function(){return(y=Object.assign||function(e){for(var t,r=1,n=arguments.length;r=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},m=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},C=new(function(){function e(){this._MAX_LENGTH=255,this._COMMA_SEPARATOR=",",this._LABEL_KEY_VALUE_SPLITTER="=",this._ERROR_MESSAGE_INVALID_CHARS="should be a ASCII string with a length greater than 0 and not exceed "+this._MAX_LENGTH+" characters.",this._ERROR_MESSAGE_INVALID_VALUE="should be a ASCII string with a length not exceed "+this._MAX_LENGTH+" characters."}return e.prototype.detect=function(e){var t,r={},n=(t=function(e){var t={};for(var r in I)if("OTEL_LOG_LEVEL"===r)!function(e,t,r){var n=r[e];if("string"==typeof n){var o=g[n.toUpperCase()];null!=o&&(t[e]=o)}}(r,t,e);else if(v.indexOf(r)>-1)!function(e,t,r){if(void 0!==r[e]){var n=String(r[e]);t[e]="true"===n.toLowerCase()}}(r,t,e);else if(P.indexOf(r)>-1)!function(e,t,r,n,o){if(void 0===n&&(n=-1/0),void 0===o&&(o=1/0),void 0!==r[e]){var i=Number(r[e]);isNaN(i)||(io?t[e]=o:t[e]=i)}}(r,t,e);else if(A.indexOf(r)>-1)!function(e,t,r,n){void 0===n&&(n=",");var o=r[e];"string"==typeof o&&(t[e]=o.split(n).map(function(e){return e.trim()}))}(r,t,e);else{var n=e[r];null!=n&&(t[r]=String(n))}return t}(process.env),Object.assign({},I,t)),o=n.OTEL_RESOURCE_ATTRIBUTES,i=n.OTEL_SERVICE_NAME;if(o)try{var u=this._parseResourceAttributes(o);Object.assign(r,u)}catch(e){a.diag.debug("EnvDetector failed: "+e.message)}return i&&(r[l]=i),new R(r)},e.prototype._parseResourceAttributes=function(e){if(!e)return{};var t,r,n={},o=e.split(this._COMMA_SEPARATOR,-1);try{for(var i=w(o),a=i.next();!a.done;a=i.next()){var u=a.value.split(this._LABEL_KEY_VALUE_SPLITTER,-1);if(2===u.length){var c=m(u,2),s=c[0],l=c[1];if(s=s.trim(),l=l.trim().split(/^"|"$/).join(""),!this._isValidAndNotEmpty(s))throw Error("Attribute key "+this._ERROR_MESSAGE_INVALID_CHARS);if(!this._isValid(l))throw Error("Attribute value "+this._ERROR_MESSAGE_INVALID_VALUE);n[s]=decodeURIComponent(l)}}}catch(e){t={error:e}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}return n},e.prototype._isValid=function(e){return e.length<=this._MAX_LENGTH&&this._isBaggageOctetString(e)},e.prototype._isBaggageOctetString=function(e){for(var t=0;t126)return!1}return!0},e.prototype._isValidAndNotEmpty=function(e){return e.length>0&&this._isValid(e)},e}()),N=new(function(){function e(){}return e.prototype.detect=function(e){return Promise.resolve(C.detect(e))},e}());let M=require("os");var U=function(e){switch(e){case"arm":return"arm32";case"ppc":return"ppc32";case"x64":return"amd64";default:return e}},D=function(e){switch(e){case"sunos":return"solaris";case"win32":return"windows";default:return e}};switch(r(932).platform){case"darwin":i=r(7821).D;break;case"linux":i=r(2238).D;break;case"freebsd":i=r(2341).D;break;case"win32":i=r(2618).D;break;default:i=r(2063).D}var X=new(function(){function e(){}return e.prototype.detect=function(e){var t;return new R(((t={})["host.name"]=(0,M.hostname)(),t["host.arch"]=U((0,M.arch)()),t),this._getAsyncAttributes())},e.prototype._getAsyncAttributes=function(){return i().then(function(e){var t={};return e&&(t["host.id"]=e),t})},e}()),x=new(function(){function e(){}return e.prototype.detect=function(e){return Promise.resolve(X.detect(e))},e}()),B=new(function(){function e(){}return e.prototype.detect=function(e){var t;return new R(((t={})["os.type"]=D((0,M.platform)()),t["os.version"]=(0,M.release)(),t))},e}()),G=new(function(){function e(){}return e.prototype.detect=function(e){return Promise.resolve(B.detect(e))},e}()),k=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},V=function(e,t,r){if(r||2==arguments.length)for(var n,o=0,i=t.length;o1&&(r["process.command"]=process.argv[1]);try{var n=M.userInfo();r["process.owner"]=n.username}catch(e){a.diag.debug("error obtaining process owner: "+e)}return new R(r)},e}()),j=new(function(){function e(){}return e.prototype.detect=function(e){return Promise.resolve(H.detect(e))},e}());let F=require("crypto");var Y=new(function(){function e(){}return e.prototype.detect=function(e){var t;return new R(((t={})["service.instance.id"]=(0,F.randomUUID)(),t))},e}()),K=function(e,t,r,n){return new(r||(r=Promise))(function(o,i){function a(e){try{c(n.next(e))}catch(e){i(e)}}function u(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(a,u)}c((n=n.apply(e,t||[])).next())})},q=function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){var c=[i,u];if(r)throw TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&c[0]?n.return:c[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,c[1])).done)return o;switch(n=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return a.label++,{value:c[1],done:!1};case 5:a.label++,n=c[1],c=[0];continue;case 7:c=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===c[0]||2===c[0])){a=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]0){var t=JSON.stringify(e.attributes,null,4);a.diag.verbose(t)}})}})(),module.exports=n})(); \ No newline at end of file diff --git a/vendor/package.json b/vendor/package.json index b4c577c0cdc..9068a783ff8 100644 --- a/vendor/package.json +++ b/vendor/package.json @@ -7,6 +7,7 @@ "@datadog/openfeature-node-server": "^0.2.0", "@datadog/sketches-js": "2.1.1", "@isaacs/ttlcache": "^2.0.1", + "@openfeature/core": "^1.9.0", "@opentelemetry/core": ">=1.14.0 <1.31.0", "@opentelemetry/resources": ">=1.0.0 <1.31.0", "crypto-randomuuid": "^1.0.0", diff --git a/vendor/rspack.config.js b/vendor/rspack.config.js index bff18603a32..d7f24389eac 100644 --- a/vendor/rspack.config.js +++ b/vendor/rspack.config.js @@ -22,6 +22,9 @@ module.exports = { mode: 'production', devtool: false, context: join(__dirname, 'node_modules'), + externals: { + '@opentelemetry/api': '@opentelemetry/api' + }, plugins: [ new LicenseWebpackPlugin({ outputFilename: '[name]/LICENSE', diff --git a/vendor/yarn.lock b/vendor/yarn.lock index d94b451dffd..7a953f1f114 100644 --- a/vendor/yarn.lock +++ b/vendor/yarn.lock @@ -166,6 +166,11 @@ "@emnapi/runtime" "^1.5.0" "@tybys/wasm-util" "^0.10.1" +"@openfeature/core@^1.9.0": + version "1.9.1" + resolved "https://registry.yarnpkg.com/@openfeature/core/-/core-1.9.1.tgz#9925a04ed0745e92dd7b3793b35cff1ed89d54c1" + integrity sha512-YySPtH4s/rKKnHRU0xyFGrqMU8XA+OIPNWDrlEFxE6DCVWCIrxE5YpiB94YD2jMFn6SSdA0cwQ8vLkCkl8lm8A== + "@openfeature/server-sdk@~1.18.0": version "1.18.0" resolved "https://registry.yarnpkg.com/@openfeature/server-sdk/-/server-sdk-1.18.0.tgz#5fed5f1d0900b2535878db18a78295bbaebb997b" From d85b16f1909480ea21de3bb2c6d22d199b7b57ee Mon Sep 17 00:00:00 2001 From: Roch Devost Date: Wed, 3 Dec 2025 21:32:24 -0500 Subject: [PATCH 56/95] switch to named module ids --- .../node_modules/@datadog/openfeature-node-server/index.js | 2 +- packages/node_modules/@datadog/sketches-js/index.js | 2 +- packages/node_modules/@opentelemetry/resources/index.js | 2 +- packages/node_modules/crypto-randomuuid/index.js | 2 +- packages/node_modules/ignore/index.js | 2 +- packages/node_modules/istanbul-lib-coverage/index.js | 2 +- packages/node_modules/jest-docblock/index.js | 2 +- packages/node_modules/limiter/index.js | 2 +- packages/node_modules/lodash.sortby/index.js | 2 +- packages/node_modules/module-details-from-path/index.js | 2 +- packages/node_modules/mutexify/promise/index.js | 2 +- packages/node_modules/opentracing/index.js | 2 +- packages/node_modules/path-to-regexp/index.js | 2 +- packages/node_modules/protobufjs/index.js | 2 +- packages/node_modules/protobufjs/minimal/index.js | 2 +- packages/node_modules/retry/index.js | 2 +- packages/node_modules/rfdc/index.js | 2 +- packages/node_modules/semifies/index.js | 2 +- packages/node_modules/shell-quote/index.js | 2 +- packages/node_modules/source-map/index.js | 2 +- packages/node_modules/source-map/lib/util/index.js | 2 +- packages/node_modules/tlhunter-sorted-set/index.js | 2 +- packages/node_modules/ttl-set/index.js | 2 +- vendor/rspack.config.js | 4 ++++ 24 files changed, 27 insertions(+), 23 deletions(-) diff --git a/packages/node_modules/@datadog/openfeature-node-server/index.js b/packages/node_modules/@datadog/openfeature-node-server/index.js index 9009891a261..4aa71eb0d2f 100644 --- a/packages/node_modules/@datadog/openfeature-node-server/index.js +++ b/packages/node_modules/@datadog/openfeature-node-server/index.js @@ -1 +1 @@ -(()=>{var e={694:function(e){e.exports=function(e){"use strict";var t=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"];function r(e,t){var r=e[0],n=e[1],i=e[2],o=e[3];r+=(n&i|~n&o)+t[0]-0x28955b88|0,o+=((r=(r<<7|r>>>25)+n|0)&n|~r&i)+t[1]-0x173848aa|0,i+=((o=(o<<12|o>>>20)+r|0)&r|~o&n)+t[2]+0x242070db|0,n+=((i=(i<<17|i>>>15)+o|0)&o|~i&r)+t[3]-0x3e423112|0,r+=((n=(n<<22|n>>>10)+i|0)&i|~n&o)+t[4]-0xa83f051|0,o+=((r=(r<<7|r>>>25)+n|0)&n|~r&i)+t[5]+0x4787c62a|0,i+=((o=(o<<12|o>>>20)+r|0)&r|~o&n)+t[6]-0x57cfb9ed|0,n+=((i=(i<<17|i>>>15)+o|0)&o|~i&r)+t[7]-0x2b96aff|0,r+=((n=(n<<22|n>>>10)+i|0)&i|~n&o)+t[8]+0x698098d8|0,o+=((r=(r<<7|r>>>25)+n|0)&n|~r&i)+t[9]-0x74bb0851|0,i+=((o=(o<<12|o>>>20)+r|0)&r|~o&n)+t[10]-42063|0,n+=((i=(i<<17|i>>>15)+o|0)&o|~i&r)+t[11]-0x76a32842|0,r+=((n=(n<<22|n>>>10)+i|0)&i|~n&o)+t[12]+0x6b901122|0,o+=((r=(r<<7|r>>>25)+n|0)&n|~r&i)+t[13]-0x2678e6d|0,i+=((o=(o<<12|o>>>20)+r|0)&r|~o&n)+t[14]-0x5986bc72|0,n+=((i=(i<<17|i>>>15)+o|0)&o|~i&r)+t[15]+0x49b40821|0,r+=((n=(n<<22|n>>>10)+i|0)&o|i&~o)+t[1]-0x9e1da9e|0,o+=((r=(r<<5|r>>>27)+n|0)&i|n&~i)+t[6]-0x3fbf4cc0|0,i+=((o=(o<<9|o>>>23)+r|0)&n|r&~n)+t[11]+0x265e5a51|0,n+=((i=(i<<14|i>>>18)+o|0)&r|o&~r)+t[0]-0x16493856|0,r+=((n=(n<<20|n>>>12)+i|0)&o|i&~o)+t[5]-0x29d0efa3|0,o+=((r=(r<<5|r>>>27)+n|0)&i|n&~i)+t[10]+0x2441453|0,i+=((o=(o<<9|o>>>23)+r|0)&n|r&~n)+t[15]-0x275e197f|0,n+=((i=(i<<14|i>>>18)+o|0)&r|o&~r)+t[4]-0x182c0438|0,r+=((n=(n<<20|n>>>12)+i|0)&o|i&~o)+t[9]+0x21e1cde6|0,o+=((r=(r<<5|r>>>27)+n|0)&i|n&~i)+t[14]-0x3cc8f82a|0,i+=((o=(o<<9|o>>>23)+r|0)&n|r&~n)+t[3]-0xb2af279|0,n+=((i=(i<<14|i>>>18)+o|0)&r|o&~r)+t[8]+0x455a14ed|0,r+=((n=(n<<20|n>>>12)+i|0)&o|i&~o)+t[13]-0x561c16fb|0,o+=((r=(r<<5|r>>>27)+n|0)&i|n&~i)+t[2]-0x3105c08|0,i+=((o=(o<<9|o>>>23)+r|0)&n|r&~n)+t[7]+0x676f02d9|0,n+=((i=(i<<14|i>>>18)+o|0)&r|o&~r)+t[12]-0x72d5b376|0,r+=((n=(n<<20|n>>>12)+i|0)^i^o)+t[5]-378558|0,o+=((r=(r<<4|r>>>28)+n|0)^n^i)+t[8]-0x788e097f|0,i+=((o=(o<<11|o>>>21)+r|0)^r^n)+t[11]+0x6d9d6122|0,n+=((i=(i<<16|i>>>16)+o|0)^o^r)+t[14]-0x21ac7f4|0,r+=((n=(n<<23|n>>>9)+i|0)^i^o)+t[1]-0x5b4115bc|0,o+=((r=(r<<4|r>>>28)+n|0)^n^i)+t[4]+0x4bdecfa9|0,i+=((o=(o<<11|o>>>21)+r|0)^r^n)+t[7]-0x944b4a0|0,n+=((i=(i<<16|i>>>16)+o|0)^o^r)+t[10]-0x41404390|0,r+=((n=(n<<23|n>>>9)+i|0)^i^o)+t[13]+0x289b7ec6|0,o+=((r=(r<<4|r>>>28)+n|0)^n^i)+t[0]-0x155ed806|0,i+=((o=(o<<11|o>>>21)+r|0)^r^n)+t[3]-0x2b10cf7b|0,n+=((i=(i<<16|i>>>16)+o|0)^o^r)+t[6]+0x4881d05|0,r+=((n=(n<<23|n>>>9)+i|0)^i^o)+t[9]-0x262b2fc7|0,o+=((r=(r<<4|r>>>28)+n|0)^n^i)+t[12]-0x1924661b|0,i+=((o=(o<<11|o>>>21)+r|0)^r^n)+t[15]+0x1fa27cf8|0,n+=((i=(i<<16|i>>>16)+o|0)^o^r)+t[2]-0x3b53a99b|0,n=(n<<23|n>>>9)+i|0,r+=(i^(n|~o))+t[0]-0xbd6ddbc|0,r=(r<<6|r>>>26)+n|0,o+=(n^(r|~i))+t[7]+0x432aff97|0,o=(o<<10|o>>>22)+r|0,i+=(r^(o|~n))+t[14]-0x546bdc59|0,i=(i<<15|i>>>17)+o|0,n+=(o^(i|~r))+t[5]-0x36c5fc7|0,n=(n<<21|n>>>11)+i|0,r+=(i^(n|~o))+t[12]+0x655b59c3|0,r=(r<<6|r>>>26)+n|0,o+=(n^(r|~i))+t[3]-0x70f3336e|0,o=(o<<10|o>>>22)+r|0,i+=(r^(o|~n))+t[10]-1051523|0,i=(i<<15|i>>>17)+o|0,n+=(o^(i|~r))+t[1]-0x7a7ba22f|0,n=(n<<21|n>>>11)+i|0,r+=(i^(n|~o))+t[8]+0x6fa87e4f|0,r=(r<<6|r>>>26)+n|0,o+=(n^(r|~i))+t[15]-0x1d31920|0,o=(o<<10|o>>>22)+r|0,i+=(r^(o|~n))+t[6]-0x5cfebcec|0,i=(i<<15|i>>>17)+o|0,n+=(o^(i|~r))+t[13]+0x4e0811a1|0,n=(n<<21|n>>>11)+i|0,r+=(i^(n|~o))+t[4]-0x8ac817e|0,r=(r<<6|r>>>26)+n|0,o+=(n^(r|~i))+t[11]-0x42c50dcb|0,o=(o<<10|o>>>22)+r|0,i+=(r^(o|~n))+t[2]+0x2ad7d2bb|0,i=(i<<15|i>>>17)+o|0,n+=(o^(i|~r))+t[9]-0x14792c6f|0,n=(n<<21|n>>>11)+i|0,e[0]=r+e[0]|0,e[1]=n+e[1]|0,e[2]=i+e[2]|0,e[3]=o+e[3]|0}function n(e){var t,r=[];for(t=0;t<64;t+=4)r[t>>2]=e.charCodeAt(t)+(e.charCodeAt(t+1)<<8)+(e.charCodeAt(t+2)<<16)+(e.charCodeAt(t+3)<<24);return r}function i(e){var t,r=[];for(t=0;t<64;t+=4)r[t>>2]=e[t]+(e[t+1]<<8)+(e[t+2]<<16)+(e[t+3]<<24);return r}function o(e){var t,i,o,s,a,l,u=e.length,h=[0x67452301,-0x10325477,-0x67452302,0x10325476];for(t=64;t<=u;t+=64)r(h,n(e.substring(t-64,t)));for(i=(e=e.substring(t-64)).length,o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],t=0;t>2]|=e.charCodeAt(t)<<(t%4<<3);if(o[t>>2]|=128<<(t%4<<3),t>55)for(r(h,o),t=0;t<16;t+=1)o[t]=0;return a=parseInt((s=(s=8*u).toString(16).match(/(.*?)(.{0,8})$/))[2],16),l=parseInt(s[1],16)||0,o[14]=a,o[15]=l,r(h,o),h}function s(e){var r;for(r=0;r>8*r+4&15]+t[e>>8*r&15];return n}(e[r]);return e.join("")}function a(e){return/[\u0080-\uFFFF]/.test(e)&&(e=unescape(encodeURIComponent(e))),e}function l(e){var t,r=[],n=e.length;for(t=0;tu)?new ArrayBuffer(0):(o=new Uint8Array(i=new ArrayBuffer(n=u-l)),s=new Uint8Array(this,l,n),o.set(s),i)}}(),u.prototype.append=function(e){return this.appendBinary(a(e)),this},u.prototype.appendBinary=function(e){this._buff+=e,this._length+=e.length;var t,i=this._buff.length;for(t=64;t<=i;t+=64)r(this._hash,n(this._buff.substring(t-64,t)));return this._buff=this._buff.substring(t-64),this},u.prototype.end=function(e){var t,r,n=this._buff,i=n.length,o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(t=0;t>2]|=n.charCodeAt(t)<<(t%4<<3);return this._finish(o,i),r=s(this._hash),e&&(r=l(r)),this.reset(),r},u.prototype.reset=function(){return this._buff="",this._length=0,this._hash=[0x67452301,-0x10325477,-0x67452302,0x10325476],this},u.prototype.getState=function(){return{buff:this._buff,length:this._length,hash:this._hash.slice()}},u.prototype.setState=function(e){return this._buff=e.buff,this._length=e.length,this._hash=e.hash,this},u.prototype.destroy=function(){delete this._hash,delete this._buff,delete this._length},u.prototype._finish=function(e,t){var n,i,o,s=t;if(e[s>>2]|=128<<(s%4<<3),s>55)for(r(this._hash,e),s=0;s<16;s+=1)e[s]=0;i=parseInt((n=(n=8*this._length).toString(16).match(/(.*?)(.{0,8})$/))[2],16),o=parseInt(n[1],16)||0,e[14]=i,e[15]=o,r(this._hash,e)},u.hash=function(e,t){return u.hashBinary(a(e),t)},u.hashBinary=function(e,t){var r=s(o(e));return t?l(r):r},u.ArrayBuffer=function(){this.reset()},u.ArrayBuffer.prototype.append=function(e){var t,n,o,s=(t=this._buff.buffer,(n=new Uint8Array(t.byteLength+e.byteLength)).set(new Uint8Array(t)),n.set(new Uint8Array(e),t.byteLength),n),a=s.length;for(this._length+=e.byteLength,o=64;o<=a;o+=64)r(this._hash,i(s.subarray(o-64,o)));return this._buff=new Uint8Array(o-64>2]|=n[t]<<(t%4<<3);return this._finish(o,i),r=s(this._hash),e&&(r=l(r)),this.reset(),r},u.ArrayBuffer.prototype.reset=function(){return this._buff=new Uint8Array(0),this._length=0,this._hash=[0x67452301,-0x10325477,-0x67452302,0x10325476],this},u.ArrayBuffer.prototype.getState=function(){var e,t=u.prototype.getState.call(this);return e=t.buff,t.buff=String.fromCharCode.apply(null,new Uint8Array(e)),t},u.ArrayBuffer.prototype.setState=function(e){return e.buff=function(e,t){var r,n=e.length,i=new ArrayBuffer(n),o=new Uint8Array(i);for(r=0;r>2]|=e[t]<<(t%4<<3);if(o[t>>2]|=128<<(t%4<<3),t>55)for(r(h,o),t=0;t<16;t+=1)o[t]=0;return a=parseInt((s=(s=8*u).toString(16).match(/(.*?)(.{0,8})$/))[2],16),l=parseInt(s[1],16)||0,o[14]=a,o[15]=l,r(h,o),h}(new Uint8Array(e)));return t?l(n):n},u}()},984:function(e,t,r){"use strict";r.d(t,{ErrorCode:()=>E,GenericEventEmitter:()=>H,OpenFeatureCommonAPI:()=>V,ProviderFatalError:()=>O,ProviderNotReadyError:()=>A,ProviderWrapper:()=>F,SafeLogger:()=>k,ServerProviderEvents:()=>S,ServerProviderStatus:()=>T,StandardResolutionReasons:()=>p,instantiateErrorByErrorCode:()=>P,objectOrUndefined:()=>M,statusMatchesEvent:()=>D,stringOrUndefined:()=>j});var n,i,o,s,a=Object.defineProperty,l=Object.defineProperties,u=Object.getOwnPropertyDescriptors,h=Object.getOwnPropertySymbols,d=Object.prototype.hasOwnProperty,c=Object.prototype.propertyIsEnumerable,f=(e,t,r)=>t in e?a(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,v=(e,t)=>{for(var r in t||(t={}))d.call(t,r)&&f(e,r,t[r]);if(h)for(var r of h(t))c.call(t,r)&&f(e,r,t[r]);return e},g=(e,t,r)=>new Promise((n,i)=>{var o=e=>{try{a(r.next(e))}catch(e){i(e)}},s=e=>{try{a(r.throw(e))}catch(e){i(e)}},a=e=>e.done?n(e.value):Promise.resolve(e.value).then(o,s);a((r=r.apply(e,t)).next())}),p={STATIC:"STATIC",DEFAULT:"DEFAULT",TARGETING_MATCH:"TARGETING_MATCH",SPLIT:"SPLIT",CACHED:"CACHED",DISABLED:"DISABLED",UNKNOWN:"UNKNOWN",STALE:"STALE",ERROR:"ERROR"},E=((n=E||{}).PROVIDER_NOT_READY="PROVIDER_NOT_READY",n.PROVIDER_FATAL="PROVIDER_FATAL",n.FLAG_NOT_FOUND="FLAG_NOT_FOUND",n.PARSE_ERROR="PARSE_ERROR",n.TYPE_MISMATCH="TYPE_MISMATCH",n.TARGETING_KEY_MISSING="TARGETING_KEY_MISSING",n.INVALID_CONTEXT="INVALID_CONTEXT",n.GENERAL="GENERAL",n),_=class e extends Error{constructor(t,r){super(t),Object.setPrototypeOf(this,e.prototype),this.name="OpenFeatureError",this.cause=null==r?void 0:r.cause}},y=class e extends _{constructor(t,r){super(t,r),Object.setPrototypeOf(this,e.prototype),this.name="FlagNotFoundError",this.code="FLAG_NOT_FOUND"}},m=class e extends _{constructor(t,r){super(t,r),Object.setPrototypeOf(this,e.prototype),this.name="GeneralError",this.code="GENERAL"}},R=class e extends _{constructor(t,r){super(t,r),Object.setPrototypeOf(this,e.prototype),this.name="InvalidContextError",this.code="INVALID_CONTEXT"}},b=class e extends _{constructor(t,r){super(t,r),Object.setPrototypeOf(this,e.prototype),this.name="ParseError",this.code="PARSE_ERROR"}},O=class e extends _{constructor(t,r){super(t,r),Object.setPrototypeOf(this,e.prototype),this.name="ProviderFatalError",this.code="PROVIDER_FATAL"}},A=class e extends _{constructor(t,r){super(t,r),Object.setPrototypeOf(this,e.prototype),this.name="ProviderNotReadyError",this.code="PROVIDER_NOT_READY"}},x=class e extends _{constructor(t,r){super(t,r),Object.setPrototypeOf(this,e.prototype),this.name="TargetingKeyMissingError",this.code="TARGETING_KEY_MISSING"}},C=class e extends _{constructor(t,r){super(t,r),Object.setPrototypeOf(this,e.prototype),this.name="TypeMismatchError",this.code="TYPE_MISMATCH"}},P=(e,t)=>{switch(e){case"FLAG_NOT_FOUND":return new y(t);case"PARSE_ERROR":return new b(t);case"TYPE_MISMATCH":return new C(t);case"TARGETING_KEY_MISSING":return new x(t);case"INVALID_CONTEXT":return new R(t);case"PROVIDER_NOT_READY":return new A(t);case"PROVIDER_FATAL":return new O(t);default:return new m(t)}},T=((i=T||{}).NOT_READY="NOT_READY",i.READY="READY",i.ERROR="ERROR",i.STALE="STALE",i.FATAL="FATAL",i),S=((o=S||{}).Ready="PROVIDER_READY",o.Error="PROVIDER_ERROR",o.ConfigurationChanged="PROVIDER_CONFIGURATION_CHANGED",o.Stale="PROVIDER_STALE",o),N=((s=N||{}).Ready="PROVIDER_READY",s.Error="PROVIDER_ERROR",s.ConfigurationChanged="PROVIDER_CONFIGURATION_CHANGED",s.ContextChanged="PROVIDER_CONTEXT_CHANGED",s.Reconciling="PROVIDER_RECONCILING",s.Stale="PROVIDER_STALE",s),I={READY:"PROVIDER_READY",ERROR:"PROVIDER_ERROR",FATAL:"PROVIDER_ERROR",STALE:"PROVIDER_STALE",RECONCILING:"PROVIDER_RECONCILING",NOT_READY:void 0},D=(e,t)=>!t&&"PROVIDER_READY"===e||I[t]===e,w=class{error(...e){console.error(...e)}warn(...e){console.warn(...e)}info(){}debug(){}},L=["error","warn","info","debug"],k=class{constructor(e){this.fallbackLogger=new w;try{for(const t of L)if(!e[t]||"function"!=typeof e[t])throw Error(`The provided logger is missing the ${t} method.`);this.logger=e}catch(e){console.error(e),console.error("Falling back to the default logger."),this.logger=this.fallbackLogger}}error(...e){this.log("error",...e)}warn(...e){this.log("warn",...e)}info(...e){this.log("info",...e)}debug(...e){this.log("debug",...e)}log(e,...t){try{this.logger[e](...t)}catch(r){this.fallbackLogger[e](...t)}}},H=class{constructor(e){this.globalLogger=e,this._handlers={PROVIDER_CONFIGURATION_CHANGED:new WeakMap,PROVIDER_CONTEXT_CHANGED:new WeakMap,PROVIDER_READY:new WeakMap,PROVIDER_ERROR:new WeakMap,PROVIDER_STALE:new WeakMap,PROVIDER_RECONCILING:new WeakMap}}emit(e,t){this.eventEmitter.emit(e,t)}addHandler(e,t){let r=e=>g(this,null,function*(){var r;try{yield t(e)}catch(e){null==(r=this._logger)||r.error("Error running event handler:",e)}}),n=this._handlers[e].get(t);this._handlers[e].set(t,[...n||[],r]),this.eventEmitter.on(e,r)}removeHandler(e,t){let r=this._handlers[e].get(t);if(r){let t=r.pop();t&&this.eventEmitter.removeListener(e,t)}}removeAllHandlers(e){e?this.eventEmitter.removeAllListeners(e):this.eventEmitter.removeAllListeners()}getHandlers(e){return this.eventEmitter.listeners(e)}setLogger(e){return this._eventLogger=new k(e),this}get _logger(){var e,t;return null!=(t=this._eventLogger)?t:null==(e=this.globalLogger)?void 0:e.call(this)}};function j(e){return"string"==typeof e?e:void 0}function M(e){return"object"==typeof e?e:void 0}function G(e){return null!=e}var F=class{constructor(e,t,r){var n,i,o;this._provider=e,this._status=t,this._pendingContextChanges=0,null==(n=e.events)||n.addHandler("PROVIDER_READY",()=>{this._status=r.READY}),null==(i=e.events)||i.addHandler("PROVIDER_STALE",()=>{this._status=r.STALE}),null==(o=e.events)||o.addHandler("PROVIDER_ERROR",e=>{(null==e?void 0:e.errorCode)==="PROVIDER_FATAL"?this._status=r.FATAL:this._status=r.ERROR})}get provider(){return this._provider}set provider(e){this._provider=e}get status(){return this._status}set status(e){this._status=e}get allContextChangesSettled(){return 0===this._pendingContextChanges}incrementPendingContextChanges(){this._pendingContextChanges++}decrementPendingContextChanges(){this._pendingContextChanges--}},V=class{constructor(e){this._hooks=[],this._context={},this._logger=new w,this._clientEventHandlers=new Map,this._domainScopedContext=new Map,this._clientEvents=new Map,this._runsOn=e}addHooks(...e){return this._hooks=[...this._hooks,...e],this}getHooks(){return this._hooks}clearHooks(){return this._hooks=[],this}setLogger(e){return this._logger=new k(e),this}get providerMetadata(){return this.getProviderMetadata()}getProviderMetadata(e){return this.getProviderForClient(e).metadata}addHandler(e,t,r){[...new Map([[void 0,this._defaultProvider]]),...this._domainScopedProviders].forEach(r=>{var n;let i=r[0],o=r[1].provider;if(D(e,r[1].status))try{t({domain:i,providerName:o.metadata.name})}catch(e){null==(n=this._logger)||n.error("Error running event handler:",e)}}),this._apiEmitter.addHandler(e,t),(null==r?void 0:r.signal)&&"function"==typeof r.signal.addEventListener&&r.signal.addEventListener("abort",()=>{this.removeHandler(e,t)})}removeHandler(e,t){this._apiEmitter.removeHandler(e,t)}clearHandlers(){this._apiEmitter.removeAllHandlers()}getHandlers(e){return this._apiEmitter.getHandlers(e)}setAwaitableProvider(e,t){var r,n,i,o,s,a,l,u;let h,d=j(e),c=null!=(r=M(e))?r:M(t);if(!c)return void this._logger.debug("No provider defined, ignoring setProvider call");let f=this.getProviderForClient(d),v=c.metadata.name;if(f===c)return void this._logger.debug("Provider is already set, ignoring setProvider call");if(c.runsOn){if(c.runsOn!==this._runsOn)throw new m(`Provider '${c.metadata.name}' is intended for use on the ${c.runsOn}.`)}else this._logger.debug(`Provider '${c.metadata.name}' has not defined its intended use.`);let g=this.getAssociatedEventEmitters(d),p=new F(c,this._statusEnumType.NOT_READY,this._statusEnumType);return"function"!=typeof c.initialize||this.allProviders.includes(c)?(p.status=this._statusEnumType.READY,g.forEach(e=>{null==e||e.emit("PROVIDER_READY",{clientName:d,domain:d,providerName:v})}),null==(a=this._apiEmitter)||a.emit("PROVIDER_READY",{clientName:d,domain:d,providerName:v})):h=null==(s=null==(o=null==(i=c.initialize)?void 0:i.call(c,d&&null!=(n=this._domainScopedContext.get(d))?n:this._context))?void 0:o.then(()=>{var e;p.status=this._statusEnumType.READY,this.getAssociatedEventEmitters(d).forEach(e=>{null==e||e.emit("PROVIDER_READY",{clientName:d,domain:d,providerName:v})}),null==(e=this._apiEmitter)||e.emit("PROVIDER_READY",{clientName:d,domain:d,providerName:v})}))?void 0:s.catch(e=>{var t;throw(null==e?void 0:e.code)==="PROVIDER_FATAL"?p.status=this._statusEnumType.FATAL:p.status=this._statusEnumType.ERROR,this.getAssociatedEventEmitters(d).forEach(t=>{null==t||t.emit("PROVIDER_ERROR",{clientName:d,domain:d,providerName:v,message:null==e?void 0:e.message})}),null==(t=this._apiEmitter)||t.emit("PROVIDER_ERROR",{clientName:d,domain:d,providerName:v,message:null==e?void 0:e.message}),e}),d?this._domainScopedProviders.set(d,p):this._defaultProvider=p,this.transferListeners(f,c,d,g),this.allProviders.includes(f)||null==(u=null==(l=null==f?void 0:f.onClose)?void 0:l.call(f))||u.catch(e=>{this._logger.error(`error closing provider: ${null==e?void 0:e.message}, ${null==e?void 0:e.stack}`)}),h}getProviderForClient(e){var t,r;return e&&null!=(r=null==(t=this._domainScopedProviders.get(e))?void 0:t.provider)?r:this._defaultProvider.provider}buildAndCacheEventEmitterForClient(e){let t=this._clientEvents.get(e);if(t)return t;let r=this._createEventEmitter();this._clientEvents.set(e,r);let n=this.getProviderForClient(e);return Object.values(N).forEach(t=>{var i;return null==(i=n.events)?void 0:i.addHandler(t,i=>g(this,null,function*(){r.emit(t,l(v({},i),u({clientName:e,domain:e,providerName:n.metadata.name})))}))}),r}getUnboundEmitters(){let e=[...this._domainScopedProviders.keys()];return[...[...this._clientEvents.keys()].filter(G).filter(t=>!e.includes(t)).map(e=>this._clientEvents.get(e)),this._clientEvents.get(void 0)].filter(G)}getAssociatedEventEmitters(e){return e?[this.buildAndCacheEventEmitterForClient(e)]:this.getUnboundEmitters()}transferListeners(e,t,r,n){var i;null==(i=this._clientEventHandlers.get(r))||i.forEach(t=>{var r;return null==(r=e.events)?void 0:r.removeHandler(...t)});let o=Object.values(N).map(e=>{let i=i=>g(this,null,function*(){n.forEach(n=>{null==n||n.emit(e,l(v({},i),u({clientName:r,domain:r,providerName:t.metadata.name})))}),this._apiEmitter.emit(e,l(v({},i),u({clientName:r,domain:r,providerName:t.metadata.name})))});return[e,i]});this._clientEventHandlers.set(r,o),o.forEach(e=>{var r;return null==(r=t.events)?void 0:r.addHandler(...e)})}close(){return g(this,null,function*(){var e,t;try{yield null==(t=null==(e=this==null?void 0:this._defaultProvider.provider)?void 0:e.onClose)?void 0:t.call(e)}catch(e){this.handleShutdownError(this._defaultProvider.provider,e)}let r=Array.from(this._domainScopedProviders);yield Promise.all(r.map(e=>g(this,[e],function*([,e]){var t,r;try{yield null==(r=null==e?void 0:(t=e.provider).onClose)?void 0:r.call(t)}catch(t){this.handleShutdownError(null==e?void 0:e.provider,t)}})))})}clearProvidersAndSetDefault(e){return g(this,null,function*(){try{yield this.close()}catch(e){this._logger.error("Unable to cleanly close providers. Resetting to the default configuration.")}finally{this._domainScopedProviders.clear(),this._defaultProvider=new F(e,this._statusEnumType.NOT_READY,this._statusEnumType)}})}get allProviders(){return[...[...this._domainScopedProviders.values()].map(e=>e.provider),this._defaultProvider.provider]}handleShutdownError(e,t){this._logger.error(`Error during shutdown of provider ${e.metadata.name}: ${t}`),this._logger.error(null==t?void 0:t.stack)}}}},t={};function r(n){var i=t[n];if(void 0!==i)return i.exports;var o=t[n]={exports:{}};return e[n](o,o.exports,r),o.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};(()=>{"use strict";r.r(n),r.d(n,{DatadogNodeServerProvider:()=>w});var e,t,i=r(694),o=r.n(i);function s(e,t=""){return new(o())().append(t).append(e).end()}function a(e){return s(JSON.stringify({flag:{key:e.flag.key},subject:{id:e.subject.id,attributes:e.subject.attributes}}))}function l(e){return s(JSON.stringify(e))}class u{constructor(e){this.delegate=e}init(){return Promise.resolve()}has(e){return this.get(e)===l(e)}get(e){return this.delegate.get(a(e))}set(e){this.delegate.set(a(e),l(e))}entries(){return this.delegate.entries()}clear(){this.delegate.clear()}}class h{constructor(e){this.capacity=e,this.cache=new Map,this.size=this.cache.size}[(Symbol.toStringTag,Symbol.iterator)](){return this.cache[Symbol.iterator]()}forEach(e){this.cache.forEach(e)}entries(){return this.cache.entries()}clear(){this.cache.clear()}delete(e){return this.cache.delete(e)}keys(){return this.cache.keys()}values(){return this.cache.values()}has(e){return this.cache.has(e)}get(e){if(!this.has(e))return;let t=this.cache.get(e);return void 0!==t&&(this.delete(e),this.cache.set(e,t)),t}set(e,t){if(0===this.capacity)return this;if(this.cache.has(e))this.cache.delete(e);else if(this.cache.size>=this.capacity){let e=this.cache.keys().next().value;e&&this.delete(e)}return this.cache.set(e,t),this}}class d extends u{constructor(e){super(new h(e))}}var c=r(984);let f=require("node:events");require("async_hooks");var v=Object.defineProperty,g=Object.defineProperties,p=Object.getOwnPropertyDescriptors,E=Object.getOwnPropertySymbols,_=Object.prototype.hasOwnProperty,y=Object.prototype.propertyIsEnumerable,m=(e,t,r)=>t in e?v(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,R=(e,t)=>{for(var r in t||(t={}))_.call(t,r)&&m(e,r,t[r]);if(E)for(var r of E(t))y.call(t,r)&&m(e,r,t[r]);return e},b=(e,t,r)=>new Promise((n,i)=>{var o=e=>{try{a(r.next(e))}catch(e){i(e)}},s=e=>{try{a(r.throw(e))}catch(e){i(e)}},a=e=>e.done?n(e.value):Promise.resolve(e.value).then(o,s);a((r=r.apply(e,t)).next())}),O=new class{constructor(){this.metadata={name:"No-op Provider"}}resolveBooleanEvaluation(e,t){return this.noOp(t)}resolveStringEvaluation(e,t){return this.noOp(t)}resolveNumberEvaluation(e,t){return this.noOp(t)}resolveObjectEvaluation(e,t){return this.noOp(t)}noOp(e){return Promise.resolve({value:e,reason:"No-op"})}},A=class{constructor(e,t,r,n,i,o,s,a,l={}){this.providerAccessor=e,this.providerStatusAccessor=t,this.emitterAccessor=r,this.apiContextAccessor=n,this.apiHooksAccessor=i,this.transactionContextAccessor=o,this.globalLogger=s,this.options=a,this._hooks=[],this._context=l}get metadata(){var e,t;return{name:null!=(e=this.options.domain)?e:this.options.name,domain:null!=(t=this.options.domain)?t:this.options.name,version:this.options.version,providerMetadata:this.providerAccessor().metadata}}get providerStatus(){return this.providerStatusAccessor()}addHandler(e,t,r){var n;if(this.emitterAccessor().addHandler(e,t),(0,c.statusMatchesEvent)(e,this._providerStatus))try{t({clientName:this.metadata.name,domain:this.metadata.domain,providerName:this._provider.metadata.name})}catch(e){null==(n=this._logger)||n.error("Error running event handler:",e)}(null==r?void 0:r.signal)&&"function"==typeof r.signal.addEventListener&&r.signal.addEventListener("abort",()=>{this.removeHandler(e,t)})}removeHandler(e,t){this.emitterAccessor().removeHandler(e,t)}getHandlers(e){return this.emitterAccessor().getHandlers(e)}setLogger(e){return this._clientLogger=new c.SafeLogger(e),this}setContext(e){return this._context=e,this}getContext(){return this._context}addHooks(...e){return this._hooks=[...this._hooks,...e],this}getHooks(){return this._hooks}clearHooks(){return this._hooks=[],this}getBooleanValue(e,t,r,n){return b(this,null,function*(){return(yield this.getBooleanDetails(e,t,r,n)).value})}getBooleanDetails(e,t,r,n){return this.evaluate(e,this._provider.resolveBooleanEvaluation,t,"boolean",r,n)}getStringValue(e,t,r,n){return b(this,null,function*(){return(yield this.getStringDetails(e,t,r,n)).value})}getStringDetails(e,t,r,n){return this.evaluate(e,this._provider.resolveStringEvaluation,t,"string",r,n)}getNumberValue(e,t,r,n){return b(this,null,function*(){return(yield this.getNumberDetails(e,t,r,n)).value})}getNumberDetails(e,t,r,n){return this.evaluate(e,this._provider.resolveNumberEvaluation,t,"number",r,n)}getObjectValue(e,t,r,n){return b(this,null,function*(){return(yield this.getObjectDetails(e,t,r,n)).value})}getObjectDetails(e,t,r,n){return this.evaluate(e,this._provider.resolveObjectEvaluation,t,"object",r,n)}track(e,t={},r={}){var n,i;try{if(this.shortCircuitIfNotReady(),"function"==typeof this._provider.track){let o=Object.freeze(this.mergeContexts(t));return null==(i=(n=this._provider).track)?void 0:i.call(n,e,o,r)}this._logger.debug("Provider does not support the track function; will no-op.")}catch(e){this._logger.debug("Error recording tracking event.",e)}}evaluate(e,t,r,n){return b(this,arguments,function*(e,t,r,n,i={},o={}){var s;let a,l=[...this.apiHooksAccessor(),...this.getHooks(),...o.hooks||[],...this._provider.hooks||[]],u=[...l].reverse(),h=this.mergeContexts(i),d={flagKey:e,defaultValue:r,flagValueType:n,clientMetadata:this.metadata,providerMetadata:this._provider.metadata,context:h,logger:this._logger};try{let n,i,h=yield this.beforeHooks(l,d,o);this.shortCircuitIfNotReady();let f=yield t.call(this._provider,e,r,h,this._logger),v=(n=R({},f),i={flagMetadata:Object.freeze(null!=(s=f.flagMetadata)?s:{}),flagKey:e},g(n,p(i)));if(v.errorCode){let t=(0,c.instantiateErrorByErrorCode)(v.errorCode,v.errorMessage);yield this.errorHooks(u,d,t,o),a=this.getErrorEvaluationDetails(e,r,t,v.flagMetadata)}else yield this.afterHooks(u,d,v,o),a=v}catch(t){yield this.errorHooks(u,d,t,o),a=this.getErrorEvaluationDetails(e,r,t)}return yield this.finallyHooks(u,d,a,o),a})}beforeHooks(e,t,r){return b(this,null,function*(){var n;for(let i of e)Object.freeze(t),Object.assign(t.context,R(R({},t.context),(yield null==(n=null==i?void 0:i.before)?void 0:n.call(i,t,Object.freeze(r.hookHints)))));return Object.freeze(t.context)})}afterHooks(e,t,r,n){return b(this,null,function*(){var i;for(let o of e)yield null==(i=null==o?void 0:o.after)?void 0:i.call(o,t,r,n.hookHints)})}errorHooks(e,t,r,n){return b(this,null,function*(){var i;for(let o of e)try{yield null==(i=null==o?void 0:o.error)?void 0:i.call(o,t,r,n.hookHints)}catch(e){this._logger.error(`Unhandled error during 'error' hook: ${e}`),e instanceof Error&&this._logger.error(e.stack),this._logger.error(null==e?void 0:e.stack)}})}finallyHooks(e,t,r,n){return b(this,null,function*(){var i;for(let o of e)try{yield null==(i=null==o?void 0:o.finally)?void 0:i.call(o,t,r,n.hookHints)}catch(e){this._logger.error(`Unhandled error during 'finally' hook: ${e}`),e instanceof Error&&this._logger.error(e.stack),this._logger.error(null==e?void 0:e.stack)}})}get _provider(){return this.providerAccessor()}get _providerStatus(){return this.providerStatusAccessor()}get _logger(){return this._clientLogger||this.globalLogger()}mergeContexts(e){return R(R(R(R({},this.apiContextAccessor()),this.transactionContextAccessor()),this._context),e)}shortCircuitIfNotReady(){if(this.providerStatus===c.ServerProviderStatus.NOT_READY)throw new c.ProviderNotReadyError("provider has not yet initialized");if(this.providerStatus===c.ServerProviderStatus.FATAL)throw new c.ProviderFatalError("provider is in an irrecoverable error state")}getErrorEvaluationDetails(e,t,r,n={}){let i=null==r?void 0:r.message;return{errorCode:(null==r?void 0:r.code)||c.ErrorCode.GENERAL,errorMessage:i,value:t,reason:c.StandardResolutionReasons.ERROR,flagMetadata:Object.freeze(n),flagKey:e}}},x=class extends c.GenericEventEmitter{constructor(){super(),this.eventEmitter=new f.EventEmitter({captureRejections:!0}),this.eventEmitter.on("error",e=>{var t;null==(t=this._logger)||t.error("Error running event handler:",e)})}},C=new class{getTransactionContext(){return{}}setTransactionContext(e,t,...r){t(...r)}},P=Symbol.for("@openfeature/js-sdk/api"),T=globalThis;(class e extends c.OpenFeatureCommonAPI{constructor(){super("server"),this._statusEnumType=c.ServerProviderStatus,this._apiEmitter=new x,this._defaultProvider=new c.ProviderWrapper(O,c.ServerProviderStatus.NOT_READY,this._statusEnumType),this._domainScopedProviders=new Map,this._createEventEmitter=()=>new x,this._transactionContextPropagator=C}static getInstance(){let t=T[P];if(t)return t;let r=new e;return T[P]=r,r}getProviderStatus(e){var t,r;return e&&null!=(r=null==(t=this._domainScopedProviders.get(e))?void 0:t.status)?r:this._defaultProvider.status}setProviderAndWait(e,t){return b(this,null,function*(){let r=(0,c.stringOrUndefined)(e),n=r?(0,c.objectOrUndefined)(t):(0,c.objectOrUndefined)(e);yield this.setAwaitableProvider(r,n)})}setProvider(e,t){let r=(0,c.stringOrUndefined)(e),n=r?(0,c.objectOrUndefined)(t):(0,c.objectOrUndefined)(e);return Promise.resolve(this.setAwaitableProvider(r,n)).catch(e=>{this._logger.error("Error during provider initialization:",e)}),this}getProvider(e){return this.getProviderForClient(e)}setContext(e){return this._context=e,this}getContext(){return this._context}getClient(e,t,r){var n,i;let o=(0,c.stringOrUndefined)(e);return new A(()=>this.getProviderForClient(o),()=>this.getProviderStatus(o),()=>this.buildAndCacheEventEmitterForClient(o),()=>this.getContext(),()=>this.getHooks(),()=>this.getTransactionContext(),()=>this._logger,{domain:o,version:(0,c.stringOrUndefined)(t)},null!=(i=null!=(n=(0,c.objectOrUndefined)(e))?n:(0,c.objectOrUndefined)(t))?i:(0,c.objectOrUndefined)(r))}clearProviders(){return super.clearProvidersAndSetDefault(O)}setTransactionContextPropagator(e){let t="Invalid TransactionContextPropagator, will not be set: ";return"function"!=typeof(null==e?void 0:e.getTransactionContext)?this._logger.error(`${t}: getTransactionContext is not a function.`):"function"!=typeof(null==e?void 0:e.setTransactionContext)?this._logger.error(`${t}: setTransactionContext is not a function.`):this._transactionContextPropagator=e,this}setTransactionContext(e,t,...r){this._transactionContextPropagator.setTransactionContext(e,t,...r)}getTransactionContext(){try{return this._transactionContextPropagator.getTransactionContext()}catch(e){return this._logger.error(`Error getting transaction context: ${null==e?void 0:e.message}, returning empty context.`),this._logger.error(null==e?void 0:e.stack),{}}}}).getInstance(),(e=t||(t={})).MATCHES="MATCHES",e.NOT_MATCHES="NOT_MATCHES",e.GTE="GTE",e.GT="GT",e.LTE="LTE",e.LT="LT",e.ONE_OF="ONE_OF",e.NOT_ONE_OF="NOT_ONE_OF",e.IS_NULL="IS_NULL";class S{}class N extends S{getShard(e,t){return parseInt(s(e).slice(0,8),16)%t}}function I(e,r,n,i,o,s){if(!e)return{value:i,reason:"ERROR",errorCode:c.ErrorCode.PROVIDER_NOT_READY};let{targetingKey:a,...l}=o;if(!a)return{value:i,reason:"ERROR",errorCode:c.ErrorCode.TARGETING_KEY_MISSING};let u={id:a,...l};try{return function(e,r,n,i,o,s){if(!(null==e?void 0:e.enabled))return s.debug("returning default assignment because flag is disabled",{flagKey:e?e.key:"undefined",subjectKey:n}),{value:o,reason:c.StandardResolutionReasons.DISABLED};if(!function(e,t){if("boolean"===e)return"BOOLEAN"===t;if("string"===e)return"STRING"===t;if("number"===e)return"INTEGER"===t||"NUMERIC"===t;if("object"===e)return"JSON"===t;throw Error(`Invalid expected type: ${e}`)}(r,e.variationType))return s.debug("variant value type mismatch, returning default value",{flagKey:e.key,subjectKey:n,expectedType:r,variantType:e.variationType}),{value:o,reason:c.StandardResolutionReasons.ERROR,errorCode:c.ErrorCode.TYPE_MISMATCH};let a=new Date;for(let r of e.allocations){if(r.startAt&&a=new Date(r.endAt)){s.debug("allocation after end date",{flagKey:e.key,subjectKey:n,allocationKey:r.key,endAt:r.endAt});continue}if(!function(e,r,n){return null==e||!e.length||(n.debug("evaluating rules",{rules:JSON.stringify(e),subjectAttributes:r}),e.some(e=>!(function(e,r){return r.map(r=>(function(e,r){var n,i,o;let s=e[r.attribute];if(r.operator===t.IS_NULL)return r.value?null==s:null!=s;if(null!=s)switch(r.operator){case t.GTE:case t.GT:case t.LTE:case t.LT:return n=s,i=r.value,((e,n)=>r.operator===t.GTE?e>=n:r.operator===t.GT?e>n:r.operator===t.LTE?e<=n:e{let o=function(e,t,r){var n,i;let o=new N().getShard((n=e.salt,i=t,`${n}-${i}`),e.totalShards);return e.ranges.some(e=>{var t,r;return t=o,(r=e).start<=t&&t{this.resolve=()=>{this.cleanup(),e()},this.reject=e=>{this.cleanup(),t(e)}}),new Promise(()=>{this.timeoutId=setTimeout(()=>{t()},e)})])}async wait(){try{await this.promise}finally{this.cleanup()}}complete(){this.resolve&&this.resolve()}fail(e){this.reject&&this.reject(e)}isInitializing(){return void 0!==this.resolve}cleanup(){this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=void 0),this.resolve=void 0,this.reject=void 0}}class w{constructor(e){this.options=e,this.metadata={name:"datadog-node-server"},this.runsOn="server",this.hooks=[],this.events=new x,this.exposureCache=new d(5e4)}getConfiguration(){return this.configuration}setConfiguration(e){var t,r,n;let i=null==(t=this.configuration)?void 0:t.createdAt,o=!!this.configuration;if(o&&this.configuration!==e){this.events.emit(c.ServerProviderEvents.ConfigurationChanged),i!==(null==e?void 0:e.createdAt)&&(null==(r=this.exposureCache)||r.clear()),this.configuration=e;return}this.configuration=e,(null==(n=this.initController)?void 0:n.isInitializing())?this.initController.complete():o||this.events.emit(c.ServerProviderEvents.Ready)}setError(e){var t;(null==(t=this.initController)?void 0:t.isInitializing())?this.initController.fail(e):this.events.emit(c.ServerProviderEvents.Error,{error:e})}async initialize(){var e,t;if(this.configuration)return;let r=null!=(e=this.options.initializationTimeoutMs)?e:3e4;this.initController=new D(r,()=>this.setError(Error(`Initialization timeout after ${r}ms`))),await this.initController.wait(),await (null==(t=this.exposureCache)?void 0:t.init())}async resolveBooleanEvaluation(e,t,r,n){let i=I(this.configuration,"boolean",e,t,r,n);return this.handleExposure(e,r,i),i}async resolveStringEvaluation(e,t,r,n){let i=I(this.configuration,"string",e,t,r,n);return this.handleExposure(e,r,i),i}async resolveNumberEvaluation(e,t,r,n){let i=I(this.configuration,"number",e,t,r,n);return this.handleExposure(e,r,i),i}async resolveObjectEvaluation(e,t,r,n){let i=I(this.configuration,"object",e,t,r,n);return this.handleExposure(e,r,i),i}handleExposure(e,t,r){var n,i,o;let s=Date.now(),a=function(e,t){var r,n;if(!(null==(r=t.flagMetadata)?void 0:r.doLog))return;let i=null==(n=t.flagMetadata)?void 0:n.allocationKey,o=t.variant;if(!i||!o)return;let{targetingKey:s="",...a}=e;return{allocation:{key:i},flag:{key:t.flagKey},variant:{key:o},subject:{id:s,attributes:a}}}(t,{...r,flagKey:e,flagMetadata:null!=(n=r.flagMetadata)?n:{}});!a||(null==(i=this.exposureCache)?void 0:i.has(a))||this.options.exposureChannel.hasSubscribers&&(this.options.exposureChannel.publish({...a,timestamp:s}),null==(o=this.exposureCache)||o.set(a))}}})(),module.exports=n})(); \ No newline at end of file +(()=>{var e={"./spark-md5/spark-md5.js":function(e){e.exports=function(e){"use strict";var t=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"];function r(e,t){var r=e[0],n=e[1],i=e[2],o=e[3];r+=(n&i|~n&o)+t[0]-0x28955b88|0,o+=((r=(r<<7|r>>>25)+n|0)&n|~r&i)+t[1]-0x173848aa|0,i+=((o=(o<<12|o>>>20)+r|0)&r|~o&n)+t[2]+0x242070db|0,n+=((i=(i<<17|i>>>15)+o|0)&o|~i&r)+t[3]-0x3e423112|0,r+=((n=(n<<22|n>>>10)+i|0)&i|~n&o)+t[4]-0xa83f051|0,o+=((r=(r<<7|r>>>25)+n|0)&n|~r&i)+t[5]+0x4787c62a|0,i+=((o=(o<<12|o>>>20)+r|0)&r|~o&n)+t[6]-0x57cfb9ed|0,n+=((i=(i<<17|i>>>15)+o|0)&o|~i&r)+t[7]-0x2b96aff|0,r+=((n=(n<<22|n>>>10)+i|0)&i|~n&o)+t[8]+0x698098d8|0,o+=((r=(r<<7|r>>>25)+n|0)&n|~r&i)+t[9]-0x74bb0851|0,i+=((o=(o<<12|o>>>20)+r|0)&r|~o&n)+t[10]-42063|0,n+=((i=(i<<17|i>>>15)+o|0)&o|~i&r)+t[11]-0x76a32842|0,r+=((n=(n<<22|n>>>10)+i|0)&i|~n&o)+t[12]+0x6b901122|0,o+=((r=(r<<7|r>>>25)+n|0)&n|~r&i)+t[13]-0x2678e6d|0,i+=((o=(o<<12|o>>>20)+r|0)&r|~o&n)+t[14]-0x5986bc72|0,n+=((i=(i<<17|i>>>15)+o|0)&o|~i&r)+t[15]+0x49b40821|0,r+=((n=(n<<22|n>>>10)+i|0)&o|i&~o)+t[1]-0x9e1da9e|0,o+=((r=(r<<5|r>>>27)+n|0)&i|n&~i)+t[6]-0x3fbf4cc0|0,i+=((o=(o<<9|o>>>23)+r|0)&n|r&~n)+t[11]+0x265e5a51|0,n+=((i=(i<<14|i>>>18)+o|0)&r|o&~r)+t[0]-0x16493856|0,r+=((n=(n<<20|n>>>12)+i|0)&o|i&~o)+t[5]-0x29d0efa3|0,o+=((r=(r<<5|r>>>27)+n|0)&i|n&~i)+t[10]+0x2441453|0,i+=((o=(o<<9|o>>>23)+r|0)&n|r&~n)+t[15]-0x275e197f|0,n+=((i=(i<<14|i>>>18)+o|0)&r|o&~r)+t[4]-0x182c0438|0,r+=((n=(n<<20|n>>>12)+i|0)&o|i&~o)+t[9]+0x21e1cde6|0,o+=((r=(r<<5|r>>>27)+n|0)&i|n&~i)+t[14]-0x3cc8f82a|0,i+=((o=(o<<9|o>>>23)+r|0)&n|r&~n)+t[3]-0xb2af279|0,n+=((i=(i<<14|i>>>18)+o|0)&r|o&~r)+t[8]+0x455a14ed|0,r+=((n=(n<<20|n>>>12)+i|0)&o|i&~o)+t[13]-0x561c16fb|0,o+=((r=(r<<5|r>>>27)+n|0)&i|n&~i)+t[2]-0x3105c08|0,i+=((o=(o<<9|o>>>23)+r|0)&n|r&~n)+t[7]+0x676f02d9|0,n+=((i=(i<<14|i>>>18)+o|0)&r|o&~r)+t[12]-0x72d5b376|0,r+=((n=(n<<20|n>>>12)+i|0)^i^o)+t[5]-378558|0,o+=((r=(r<<4|r>>>28)+n|0)^n^i)+t[8]-0x788e097f|0,i+=((o=(o<<11|o>>>21)+r|0)^r^n)+t[11]+0x6d9d6122|0,n+=((i=(i<<16|i>>>16)+o|0)^o^r)+t[14]-0x21ac7f4|0,r+=((n=(n<<23|n>>>9)+i|0)^i^o)+t[1]-0x5b4115bc|0,o+=((r=(r<<4|r>>>28)+n|0)^n^i)+t[4]+0x4bdecfa9|0,i+=((o=(o<<11|o>>>21)+r|0)^r^n)+t[7]-0x944b4a0|0,n+=((i=(i<<16|i>>>16)+o|0)^o^r)+t[10]-0x41404390|0,r+=((n=(n<<23|n>>>9)+i|0)^i^o)+t[13]+0x289b7ec6|0,o+=((r=(r<<4|r>>>28)+n|0)^n^i)+t[0]-0x155ed806|0,i+=((o=(o<<11|o>>>21)+r|0)^r^n)+t[3]-0x2b10cf7b|0,n+=((i=(i<<16|i>>>16)+o|0)^o^r)+t[6]+0x4881d05|0,r+=((n=(n<<23|n>>>9)+i|0)^i^o)+t[9]-0x262b2fc7|0,o+=((r=(r<<4|r>>>28)+n|0)^n^i)+t[12]-0x1924661b|0,i+=((o=(o<<11|o>>>21)+r|0)^r^n)+t[15]+0x1fa27cf8|0,n+=((i=(i<<16|i>>>16)+o|0)^o^r)+t[2]-0x3b53a99b|0,n=(n<<23|n>>>9)+i|0,r+=(i^(n|~o))+t[0]-0xbd6ddbc|0,r=(r<<6|r>>>26)+n|0,o+=(n^(r|~i))+t[7]+0x432aff97|0,o=(o<<10|o>>>22)+r|0,i+=(r^(o|~n))+t[14]-0x546bdc59|0,i=(i<<15|i>>>17)+o|0,n+=(o^(i|~r))+t[5]-0x36c5fc7|0,n=(n<<21|n>>>11)+i|0,r+=(i^(n|~o))+t[12]+0x655b59c3|0,r=(r<<6|r>>>26)+n|0,o+=(n^(r|~i))+t[3]-0x70f3336e|0,o=(o<<10|o>>>22)+r|0,i+=(r^(o|~n))+t[10]-1051523|0,i=(i<<15|i>>>17)+o|0,n+=(o^(i|~r))+t[1]-0x7a7ba22f|0,n=(n<<21|n>>>11)+i|0,r+=(i^(n|~o))+t[8]+0x6fa87e4f|0,r=(r<<6|r>>>26)+n|0,o+=(n^(r|~i))+t[15]-0x1d31920|0,o=(o<<10|o>>>22)+r|0,i+=(r^(o|~n))+t[6]-0x5cfebcec|0,i=(i<<15|i>>>17)+o|0,n+=(o^(i|~r))+t[13]+0x4e0811a1|0,n=(n<<21|n>>>11)+i|0,r+=(i^(n|~o))+t[4]-0x8ac817e|0,r=(r<<6|r>>>26)+n|0,o+=(n^(r|~i))+t[11]-0x42c50dcb|0,o=(o<<10|o>>>22)+r|0,i+=(r^(o|~n))+t[2]+0x2ad7d2bb|0,i=(i<<15|i>>>17)+o|0,n+=(o^(i|~r))+t[9]-0x14792c6f|0,n=(n<<21|n>>>11)+i|0,e[0]=r+e[0]|0,e[1]=n+e[1]|0,e[2]=i+e[2]|0,e[3]=o+e[3]|0}function n(e){var t,r=[];for(t=0;t<64;t+=4)r[t>>2]=e.charCodeAt(t)+(e.charCodeAt(t+1)<<8)+(e.charCodeAt(t+2)<<16)+(e.charCodeAt(t+3)<<24);return r}function i(e){var t,r=[];for(t=0;t<64;t+=4)r[t>>2]=e[t]+(e[t+1]<<8)+(e[t+2]<<16)+(e[t+3]<<24);return r}function o(e){var t,i,o,s,a,l,u=e.length,h=[0x67452301,-0x10325477,-0x67452302,0x10325476];for(t=64;t<=u;t+=64)r(h,n(e.substring(t-64,t)));for(i=(e=e.substring(t-64)).length,o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],t=0;t>2]|=e.charCodeAt(t)<<(t%4<<3);if(o[t>>2]|=128<<(t%4<<3),t>55)for(r(h,o),t=0;t<16;t+=1)o[t]=0;return a=parseInt((s=(s=8*u).toString(16).match(/(.*?)(.{0,8})$/))[2],16),l=parseInt(s[1],16)||0,o[14]=a,o[15]=l,r(h,o),h}function s(e){var r;for(r=0;r>8*r+4&15]+t[e>>8*r&15];return n}(e[r]);return e.join("")}function a(e){return/[\u0080-\uFFFF]/.test(e)&&(e=unescape(encodeURIComponent(e))),e}function l(e){var t,r=[],n=e.length;for(t=0;tu)?new ArrayBuffer(0):(o=new Uint8Array(i=new ArrayBuffer(n=u-l)),s=new Uint8Array(this,l,n),o.set(s),i)}}(),u.prototype.append=function(e){return this.appendBinary(a(e)),this},u.prototype.appendBinary=function(e){this._buff+=e,this._length+=e.length;var t,i=this._buff.length;for(t=64;t<=i;t+=64)r(this._hash,n(this._buff.substring(t-64,t)));return this._buff=this._buff.substring(t-64),this},u.prototype.end=function(e){var t,r,n=this._buff,i=n.length,o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(t=0;t>2]|=n.charCodeAt(t)<<(t%4<<3);return this._finish(o,i),r=s(this._hash),e&&(r=l(r)),this.reset(),r},u.prototype.reset=function(){return this._buff="",this._length=0,this._hash=[0x67452301,-0x10325477,-0x67452302,0x10325476],this},u.prototype.getState=function(){return{buff:this._buff,length:this._length,hash:this._hash.slice()}},u.prototype.setState=function(e){return this._buff=e.buff,this._length=e.length,this._hash=e.hash,this},u.prototype.destroy=function(){delete this._hash,delete this._buff,delete this._length},u.prototype._finish=function(e,t){var n,i,o,s=t;if(e[s>>2]|=128<<(s%4<<3),s>55)for(r(this._hash,e),s=0;s<16;s+=1)e[s]=0;i=parseInt((n=(n=8*this._length).toString(16).match(/(.*?)(.{0,8})$/))[2],16),o=parseInt(n[1],16)||0,e[14]=i,e[15]=o,r(this._hash,e)},u.hash=function(e,t){return u.hashBinary(a(e),t)},u.hashBinary=function(e,t){var r=s(o(e));return t?l(r):r},u.ArrayBuffer=function(){this.reset()},u.ArrayBuffer.prototype.append=function(e){var t,n,o,s=(t=this._buff.buffer,(n=new Uint8Array(t.byteLength+e.byteLength)).set(new Uint8Array(t)),n.set(new Uint8Array(e),t.byteLength),n),a=s.length;for(this._length+=e.byteLength,o=64;o<=a;o+=64)r(this._hash,i(s.subarray(o-64,o)));return this._buff=new Uint8Array(o-64>2]|=n[t]<<(t%4<<3);return this._finish(o,i),r=s(this._hash),e&&(r=l(r)),this.reset(),r},u.ArrayBuffer.prototype.reset=function(){return this._buff=new Uint8Array(0),this._length=0,this._hash=[0x67452301,-0x10325477,-0x67452302,0x10325476],this},u.ArrayBuffer.prototype.getState=function(){var e,t=u.prototype.getState.call(this);return e=t.buff,t.buff=String.fromCharCode.apply(null,new Uint8Array(e)),t},u.ArrayBuffer.prototype.setState=function(e){return e.buff=function(e,t){var r,n=e.length,i=new ArrayBuffer(n),o=new Uint8Array(i);for(r=0;r>2]|=e[t]<<(t%4<<3);if(o[t>>2]|=128<<(t%4<<3),t>55)for(r(h,o),t=0;t<16;t+=1)o[t]=0;return a=parseInt((s=(s=8*u).toString(16).match(/(.*?)(.{0,8})$/))[2],16),l=parseInt(s[1],16)||0,o[14]=a,o[15]=l,r(h,o),h}(new Uint8Array(e)));return t?l(n):n},u}()},"./@openfeature/core/dist/esm/index.js":function(e,t,r){"use strict";r.d(t,{ErrorCode:()=>E,GenericEventEmitter:()=>H,OpenFeatureCommonAPI:()=>V,ProviderFatalError:()=>O,ProviderNotReadyError:()=>A,ProviderWrapper:()=>F,SafeLogger:()=>k,ServerProviderEvents:()=>S,ServerProviderStatus:()=>T,StandardResolutionReasons:()=>p,instantiateErrorByErrorCode:()=>P,objectOrUndefined:()=>M,statusMatchesEvent:()=>D,stringOrUndefined:()=>j});var n,i,o,s,a=Object.defineProperty,l=Object.defineProperties,u=Object.getOwnPropertyDescriptors,h=Object.getOwnPropertySymbols,d=Object.prototype.hasOwnProperty,c=Object.prototype.propertyIsEnumerable,f=(e,t,r)=>t in e?a(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,v=(e,t)=>{for(var r in t||(t={}))d.call(t,r)&&f(e,r,t[r]);if(h)for(var r of h(t))c.call(t,r)&&f(e,r,t[r]);return e},g=(e,t,r)=>new Promise((n,i)=>{var o=e=>{try{a(r.next(e))}catch(e){i(e)}},s=e=>{try{a(r.throw(e))}catch(e){i(e)}},a=e=>e.done?n(e.value):Promise.resolve(e.value).then(o,s);a((r=r.apply(e,t)).next())}),p={STATIC:"STATIC",DEFAULT:"DEFAULT",TARGETING_MATCH:"TARGETING_MATCH",SPLIT:"SPLIT",CACHED:"CACHED",DISABLED:"DISABLED",UNKNOWN:"UNKNOWN",STALE:"STALE",ERROR:"ERROR"},E=((n=E||{}).PROVIDER_NOT_READY="PROVIDER_NOT_READY",n.PROVIDER_FATAL="PROVIDER_FATAL",n.FLAG_NOT_FOUND="FLAG_NOT_FOUND",n.PARSE_ERROR="PARSE_ERROR",n.TYPE_MISMATCH="TYPE_MISMATCH",n.TARGETING_KEY_MISSING="TARGETING_KEY_MISSING",n.INVALID_CONTEXT="INVALID_CONTEXT",n.GENERAL="GENERAL",n),_=class e extends Error{constructor(t,r){super(t),Object.setPrototypeOf(this,e.prototype),this.name="OpenFeatureError",this.cause=null==r?void 0:r.cause}},y=class e extends _{constructor(t,r){super(t,r),Object.setPrototypeOf(this,e.prototype),this.name="FlagNotFoundError",this.code="FLAG_NOT_FOUND"}},m=class e extends _{constructor(t,r){super(t,r),Object.setPrototypeOf(this,e.prototype),this.name="GeneralError",this.code="GENERAL"}},R=class e extends _{constructor(t,r){super(t,r),Object.setPrototypeOf(this,e.prototype),this.name="InvalidContextError",this.code="INVALID_CONTEXT"}},b=class e extends _{constructor(t,r){super(t,r),Object.setPrototypeOf(this,e.prototype),this.name="ParseError",this.code="PARSE_ERROR"}},O=class e extends _{constructor(t,r){super(t,r),Object.setPrototypeOf(this,e.prototype),this.name="ProviderFatalError",this.code="PROVIDER_FATAL"}},A=class e extends _{constructor(t,r){super(t,r),Object.setPrototypeOf(this,e.prototype),this.name="ProviderNotReadyError",this.code="PROVIDER_NOT_READY"}},x=class e extends _{constructor(t,r){super(t,r),Object.setPrototypeOf(this,e.prototype),this.name="TargetingKeyMissingError",this.code="TARGETING_KEY_MISSING"}},C=class e extends _{constructor(t,r){super(t,r),Object.setPrototypeOf(this,e.prototype),this.name="TypeMismatchError",this.code="TYPE_MISMATCH"}},P=(e,t)=>{switch(e){case"FLAG_NOT_FOUND":return new y(t);case"PARSE_ERROR":return new b(t);case"TYPE_MISMATCH":return new C(t);case"TARGETING_KEY_MISSING":return new x(t);case"INVALID_CONTEXT":return new R(t);case"PROVIDER_NOT_READY":return new A(t);case"PROVIDER_FATAL":return new O(t);default:return new m(t)}},T=((i=T||{}).NOT_READY="NOT_READY",i.READY="READY",i.ERROR="ERROR",i.STALE="STALE",i.FATAL="FATAL",i),S=((o=S||{}).Ready="PROVIDER_READY",o.Error="PROVIDER_ERROR",o.ConfigurationChanged="PROVIDER_CONFIGURATION_CHANGED",o.Stale="PROVIDER_STALE",o),N=((s=N||{}).Ready="PROVIDER_READY",s.Error="PROVIDER_ERROR",s.ConfigurationChanged="PROVIDER_CONFIGURATION_CHANGED",s.ContextChanged="PROVIDER_CONTEXT_CHANGED",s.Reconciling="PROVIDER_RECONCILING",s.Stale="PROVIDER_STALE",s),I={READY:"PROVIDER_READY",ERROR:"PROVIDER_ERROR",FATAL:"PROVIDER_ERROR",STALE:"PROVIDER_STALE",RECONCILING:"PROVIDER_RECONCILING",NOT_READY:void 0},D=(e,t)=>!t&&"PROVIDER_READY"===e||I[t]===e,w=class{error(...e){console.error(...e)}warn(...e){console.warn(...e)}info(){}debug(){}},L=["error","warn","info","debug"],k=class{constructor(e){this.fallbackLogger=new w;try{for(const t of L)if(!e[t]||"function"!=typeof e[t])throw Error(`The provided logger is missing the ${t} method.`);this.logger=e}catch(e){console.error(e),console.error("Falling back to the default logger."),this.logger=this.fallbackLogger}}error(...e){this.log("error",...e)}warn(...e){this.log("warn",...e)}info(...e){this.log("info",...e)}debug(...e){this.log("debug",...e)}log(e,...t){try{this.logger[e](...t)}catch(r){this.fallbackLogger[e](...t)}}},H=class{constructor(e){this.globalLogger=e,this._handlers={PROVIDER_CONFIGURATION_CHANGED:new WeakMap,PROVIDER_CONTEXT_CHANGED:new WeakMap,PROVIDER_READY:new WeakMap,PROVIDER_ERROR:new WeakMap,PROVIDER_STALE:new WeakMap,PROVIDER_RECONCILING:new WeakMap}}emit(e,t){this.eventEmitter.emit(e,t)}addHandler(e,t){let r=e=>g(this,null,function*(){var r;try{yield t(e)}catch(e){null==(r=this._logger)||r.error("Error running event handler:",e)}}),n=this._handlers[e].get(t);this._handlers[e].set(t,[...n||[],r]),this.eventEmitter.on(e,r)}removeHandler(e,t){let r=this._handlers[e].get(t);if(r){let t=r.pop();t&&this.eventEmitter.removeListener(e,t)}}removeAllHandlers(e){e?this.eventEmitter.removeAllListeners(e):this.eventEmitter.removeAllListeners()}getHandlers(e){return this.eventEmitter.listeners(e)}setLogger(e){return this._eventLogger=new k(e),this}get _logger(){var e,t;return null!=(t=this._eventLogger)?t:null==(e=this.globalLogger)?void 0:e.call(this)}};function j(e){return"string"==typeof e?e:void 0}function M(e){return"object"==typeof e?e:void 0}function G(e){return null!=e}var F=class{constructor(e,t,r){var n,i,o;this._provider=e,this._status=t,this._pendingContextChanges=0,null==(n=e.events)||n.addHandler("PROVIDER_READY",()=>{this._status=r.READY}),null==(i=e.events)||i.addHandler("PROVIDER_STALE",()=>{this._status=r.STALE}),null==(o=e.events)||o.addHandler("PROVIDER_ERROR",e=>{(null==e?void 0:e.errorCode)==="PROVIDER_FATAL"?this._status=r.FATAL:this._status=r.ERROR})}get provider(){return this._provider}set provider(e){this._provider=e}get status(){return this._status}set status(e){this._status=e}get allContextChangesSettled(){return 0===this._pendingContextChanges}incrementPendingContextChanges(){this._pendingContextChanges++}decrementPendingContextChanges(){this._pendingContextChanges--}},V=class{constructor(e){this._hooks=[],this._context={},this._logger=new w,this._clientEventHandlers=new Map,this._domainScopedContext=new Map,this._clientEvents=new Map,this._runsOn=e}addHooks(...e){return this._hooks=[...this._hooks,...e],this}getHooks(){return this._hooks}clearHooks(){return this._hooks=[],this}setLogger(e){return this._logger=new k(e),this}get providerMetadata(){return this.getProviderMetadata()}getProviderMetadata(e){return this.getProviderForClient(e).metadata}addHandler(e,t,r){[...new Map([[void 0,this._defaultProvider]]),...this._domainScopedProviders].forEach(r=>{var n;let i=r[0],o=r[1].provider;if(D(e,r[1].status))try{t({domain:i,providerName:o.metadata.name})}catch(e){null==(n=this._logger)||n.error("Error running event handler:",e)}}),this._apiEmitter.addHandler(e,t),(null==r?void 0:r.signal)&&"function"==typeof r.signal.addEventListener&&r.signal.addEventListener("abort",()=>{this.removeHandler(e,t)})}removeHandler(e,t){this._apiEmitter.removeHandler(e,t)}clearHandlers(){this._apiEmitter.removeAllHandlers()}getHandlers(e){return this._apiEmitter.getHandlers(e)}setAwaitableProvider(e,t){var r,n,i,o,s,a,l,u;let h,d=j(e),c=null!=(r=M(e))?r:M(t);if(!c)return void this._logger.debug("No provider defined, ignoring setProvider call");let f=this.getProviderForClient(d),v=c.metadata.name;if(f===c)return void this._logger.debug("Provider is already set, ignoring setProvider call");if(c.runsOn){if(c.runsOn!==this._runsOn)throw new m(`Provider '${c.metadata.name}' is intended for use on the ${c.runsOn}.`)}else this._logger.debug(`Provider '${c.metadata.name}' has not defined its intended use.`);let g=this.getAssociatedEventEmitters(d),p=new F(c,this._statusEnumType.NOT_READY,this._statusEnumType);return"function"!=typeof c.initialize||this.allProviders.includes(c)?(p.status=this._statusEnumType.READY,g.forEach(e=>{null==e||e.emit("PROVIDER_READY",{clientName:d,domain:d,providerName:v})}),null==(a=this._apiEmitter)||a.emit("PROVIDER_READY",{clientName:d,domain:d,providerName:v})):h=null==(s=null==(o=null==(i=c.initialize)?void 0:i.call(c,d&&null!=(n=this._domainScopedContext.get(d))?n:this._context))?void 0:o.then(()=>{var e;p.status=this._statusEnumType.READY,this.getAssociatedEventEmitters(d).forEach(e=>{null==e||e.emit("PROVIDER_READY",{clientName:d,domain:d,providerName:v})}),null==(e=this._apiEmitter)||e.emit("PROVIDER_READY",{clientName:d,domain:d,providerName:v})}))?void 0:s.catch(e=>{var t;throw(null==e?void 0:e.code)==="PROVIDER_FATAL"?p.status=this._statusEnumType.FATAL:p.status=this._statusEnumType.ERROR,this.getAssociatedEventEmitters(d).forEach(t=>{null==t||t.emit("PROVIDER_ERROR",{clientName:d,domain:d,providerName:v,message:null==e?void 0:e.message})}),null==(t=this._apiEmitter)||t.emit("PROVIDER_ERROR",{clientName:d,domain:d,providerName:v,message:null==e?void 0:e.message}),e}),d?this._domainScopedProviders.set(d,p):this._defaultProvider=p,this.transferListeners(f,c,d,g),this.allProviders.includes(f)||null==(u=null==(l=null==f?void 0:f.onClose)?void 0:l.call(f))||u.catch(e=>{this._logger.error(`error closing provider: ${null==e?void 0:e.message}, ${null==e?void 0:e.stack}`)}),h}getProviderForClient(e){var t,r;return e&&null!=(r=null==(t=this._domainScopedProviders.get(e))?void 0:t.provider)?r:this._defaultProvider.provider}buildAndCacheEventEmitterForClient(e){let t=this._clientEvents.get(e);if(t)return t;let r=this._createEventEmitter();this._clientEvents.set(e,r);let n=this.getProviderForClient(e);return Object.values(N).forEach(t=>{var i;return null==(i=n.events)?void 0:i.addHandler(t,i=>g(this,null,function*(){r.emit(t,l(v({},i),u({clientName:e,domain:e,providerName:n.metadata.name})))}))}),r}getUnboundEmitters(){let e=[...this._domainScopedProviders.keys()];return[...[...this._clientEvents.keys()].filter(G).filter(t=>!e.includes(t)).map(e=>this._clientEvents.get(e)),this._clientEvents.get(void 0)].filter(G)}getAssociatedEventEmitters(e){return e?[this.buildAndCacheEventEmitterForClient(e)]:this.getUnboundEmitters()}transferListeners(e,t,r,n){var i;null==(i=this._clientEventHandlers.get(r))||i.forEach(t=>{var r;return null==(r=e.events)?void 0:r.removeHandler(...t)});let o=Object.values(N).map(e=>{let i=i=>g(this,null,function*(){n.forEach(n=>{null==n||n.emit(e,l(v({},i),u({clientName:r,domain:r,providerName:t.metadata.name})))}),this._apiEmitter.emit(e,l(v({},i),u({clientName:r,domain:r,providerName:t.metadata.name})))});return[e,i]});this._clientEventHandlers.set(r,o),o.forEach(e=>{var r;return null==(r=t.events)?void 0:r.addHandler(...e)})}close(){return g(this,null,function*(){var e,t;try{yield null==(t=null==(e=this==null?void 0:this._defaultProvider.provider)?void 0:e.onClose)?void 0:t.call(e)}catch(e){this.handleShutdownError(this._defaultProvider.provider,e)}let r=Array.from(this._domainScopedProviders);yield Promise.all(r.map(e=>g(this,[e],function*([,e]){var t,r;try{yield null==(r=null==e?void 0:(t=e.provider).onClose)?void 0:r.call(t)}catch(t){this.handleShutdownError(null==e?void 0:e.provider,t)}})))})}clearProvidersAndSetDefault(e){return g(this,null,function*(){try{yield this.close()}catch(e){this._logger.error("Unable to cleanly close providers. Resetting to the default configuration.")}finally{this._domainScopedProviders.clear(),this._defaultProvider=new F(e,this._statusEnumType.NOT_READY,this._statusEnumType)}})}get allProviders(){return[...[...this._domainScopedProviders.values()].map(e=>e.provider),this._defaultProvider.provider]}handleShutdownError(e,t){this._logger.error(`Error during shutdown of provider ${e.metadata.name}: ${t}`),this._logger.error(null==t?void 0:t.stack)}}}},t={};function r(n){var i=t[n];if(void 0!==i)return i.exports;var o=t[n]={exports:{}};return e[n](o,o.exports,r),o.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};(()=>{"use strict";r.r(n),r.d(n,{DatadogNodeServerProvider:()=>w});var e,t,i=r("./spark-md5/spark-md5.js"),o=r.n(i);function s(e,t=""){return new(o())().append(t).append(e).end()}function a(e){return s(JSON.stringify({flag:{key:e.flag.key},subject:{id:e.subject.id,attributes:e.subject.attributes}}))}function l(e){return s(JSON.stringify(e))}class u{constructor(e){this.delegate=e}init(){return Promise.resolve()}has(e){return this.get(e)===l(e)}get(e){return this.delegate.get(a(e))}set(e){this.delegate.set(a(e),l(e))}entries(){return this.delegate.entries()}clear(){this.delegate.clear()}}class h{constructor(e){this.capacity=e,this.cache=new Map,this.size=this.cache.size}[(Symbol.toStringTag,Symbol.iterator)](){return this.cache[Symbol.iterator]()}forEach(e){this.cache.forEach(e)}entries(){return this.cache.entries()}clear(){this.cache.clear()}delete(e){return this.cache.delete(e)}keys(){return this.cache.keys()}values(){return this.cache.values()}has(e){return this.cache.has(e)}get(e){if(!this.has(e))return;let t=this.cache.get(e);return void 0!==t&&(this.delete(e),this.cache.set(e,t)),t}set(e,t){if(0===this.capacity)return this;if(this.cache.has(e))this.cache.delete(e);else if(this.cache.size>=this.capacity){let e=this.cache.keys().next().value;e&&this.delete(e)}return this.cache.set(e,t),this}}class d extends u{constructor(e){super(new h(e))}}var c=r("./@openfeature/core/dist/esm/index.js");let f=require("node:events");require("async_hooks");var v=Object.defineProperty,g=Object.defineProperties,p=Object.getOwnPropertyDescriptors,E=Object.getOwnPropertySymbols,_=Object.prototype.hasOwnProperty,y=Object.prototype.propertyIsEnumerable,m=(e,t,r)=>t in e?v(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,R=(e,t)=>{for(var r in t||(t={}))_.call(t,r)&&m(e,r,t[r]);if(E)for(var r of E(t))y.call(t,r)&&m(e,r,t[r]);return e},b=(e,t,r)=>new Promise((n,i)=>{var o=e=>{try{a(r.next(e))}catch(e){i(e)}},s=e=>{try{a(r.throw(e))}catch(e){i(e)}},a=e=>e.done?n(e.value):Promise.resolve(e.value).then(o,s);a((r=r.apply(e,t)).next())}),O=new class{constructor(){this.metadata={name:"No-op Provider"}}resolveBooleanEvaluation(e,t){return this.noOp(t)}resolveStringEvaluation(e,t){return this.noOp(t)}resolveNumberEvaluation(e,t){return this.noOp(t)}resolveObjectEvaluation(e,t){return this.noOp(t)}noOp(e){return Promise.resolve({value:e,reason:"No-op"})}},A=class{constructor(e,t,r,n,i,o,s,a,l={}){this.providerAccessor=e,this.providerStatusAccessor=t,this.emitterAccessor=r,this.apiContextAccessor=n,this.apiHooksAccessor=i,this.transactionContextAccessor=o,this.globalLogger=s,this.options=a,this._hooks=[],this._context=l}get metadata(){var e,t;return{name:null!=(e=this.options.domain)?e:this.options.name,domain:null!=(t=this.options.domain)?t:this.options.name,version:this.options.version,providerMetadata:this.providerAccessor().metadata}}get providerStatus(){return this.providerStatusAccessor()}addHandler(e,t,r){var n;if(this.emitterAccessor().addHandler(e,t),(0,c.statusMatchesEvent)(e,this._providerStatus))try{t({clientName:this.metadata.name,domain:this.metadata.domain,providerName:this._provider.metadata.name})}catch(e){null==(n=this._logger)||n.error("Error running event handler:",e)}(null==r?void 0:r.signal)&&"function"==typeof r.signal.addEventListener&&r.signal.addEventListener("abort",()=>{this.removeHandler(e,t)})}removeHandler(e,t){this.emitterAccessor().removeHandler(e,t)}getHandlers(e){return this.emitterAccessor().getHandlers(e)}setLogger(e){return this._clientLogger=new c.SafeLogger(e),this}setContext(e){return this._context=e,this}getContext(){return this._context}addHooks(...e){return this._hooks=[...this._hooks,...e],this}getHooks(){return this._hooks}clearHooks(){return this._hooks=[],this}getBooleanValue(e,t,r,n){return b(this,null,function*(){return(yield this.getBooleanDetails(e,t,r,n)).value})}getBooleanDetails(e,t,r,n){return this.evaluate(e,this._provider.resolveBooleanEvaluation,t,"boolean",r,n)}getStringValue(e,t,r,n){return b(this,null,function*(){return(yield this.getStringDetails(e,t,r,n)).value})}getStringDetails(e,t,r,n){return this.evaluate(e,this._provider.resolveStringEvaluation,t,"string",r,n)}getNumberValue(e,t,r,n){return b(this,null,function*(){return(yield this.getNumberDetails(e,t,r,n)).value})}getNumberDetails(e,t,r,n){return this.evaluate(e,this._provider.resolveNumberEvaluation,t,"number",r,n)}getObjectValue(e,t,r,n){return b(this,null,function*(){return(yield this.getObjectDetails(e,t,r,n)).value})}getObjectDetails(e,t,r,n){return this.evaluate(e,this._provider.resolveObjectEvaluation,t,"object",r,n)}track(e,t={},r={}){var n,i;try{if(this.shortCircuitIfNotReady(),"function"==typeof this._provider.track){let o=Object.freeze(this.mergeContexts(t));return null==(i=(n=this._provider).track)?void 0:i.call(n,e,o,r)}this._logger.debug("Provider does not support the track function; will no-op.")}catch(e){this._logger.debug("Error recording tracking event.",e)}}evaluate(e,t,r,n){return b(this,arguments,function*(e,t,r,n,i={},o={}){var s;let a,l=[...this.apiHooksAccessor(),...this.getHooks(),...o.hooks||[],...this._provider.hooks||[]],u=[...l].reverse(),h=this.mergeContexts(i),d={flagKey:e,defaultValue:r,flagValueType:n,clientMetadata:this.metadata,providerMetadata:this._provider.metadata,context:h,logger:this._logger};try{let n,i,h=yield this.beforeHooks(l,d,o);this.shortCircuitIfNotReady();let f=yield t.call(this._provider,e,r,h,this._logger),v=(n=R({},f),i={flagMetadata:Object.freeze(null!=(s=f.flagMetadata)?s:{}),flagKey:e},g(n,p(i)));if(v.errorCode){let t=(0,c.instantiateErrorByErrorCode)(v.errorCode,v.errorMessage);yield this.errorHooks(u,d,t,o),a=this.getErrorEvaluationDetails(e,r,t,v.flagMetadata)}else yield this.afterHooks(u,d,v,o),a=v}catch(t){yield this.errorHooks(u,d,t,o),a=this.getErrorEvaluationDetails(e,r,t)}return yield this.finallyHooks(u,d,a,o),a})}beforeHooks(e,t,r){return b(this,null,function*(){var n;for(let i of e)Object.freeze(t),Object.assign(t.context,R(R({},t.context),(yield null==(n=null==i?void 0:i.before)?void 0:n.call(i,t,Object.freeze(r.hookHints)))));return Object.freeze(t.context)})}afterHooks(e,t,r,n){return b(this,null,function*(){var i;for(let o of e)yield null==(i=null==o?void 0:o.after)?void 0:i.call(o,t,r,n.hookHints)})}errorHooks(e,t,r,n){return b(this,null,function*(){var i;for(let o of e)try{yield null==(i=null==o?void 0:o.error)?void 0:i.call(o,t,r,n.hookHints)}catch(e){this._logger.error(`Unhandled error during 'error' hook: ${e}`),e instanceof Error&&this._logger.error(e.stack),this._logger.error(null==e?void 0:e.stack)}})}finallyHooks(e,t,r,n){return b(this,null,function*(){var i;for(let o of e)try{yield null==(i=null==o?void 0:o.finally)?void 0:i.call(o,t,r,n.hookHints)}catch(e){this._logger.error(`Unhandled error during 'finally' hook: ${e}`),e instanceof Error&&this._logger.error(e.stack),this._logger.error(null==e?void 0:e.stack)}})}get _provider(){return this.providerAccessor()}get _providerStatus(){return this.providerStatusAccessor()}get _logger(){return this._clientLogger||this.globalLogger()}mergeContexts(e){return R(R(R(R({},this.apiContextAccessor()),this.transactionContextAccessor()),this._context),e)}shortCircuitIfNotReady(){if(this.providerStatus===c.ServerProviderStatus.NOT_READY)throw new c.ProviderNotReadyError("provider has not yet initialized");if(this.providerStatus===c.ServerProviderStatus.FATAL)throw new c.ProviderFatalError("provider is in an irrecoverable error state")}getErrorEvaluationDetails(e,t,r,n={}){let i=null==r?void 0:r.message;return{errorCode:(null==r?void 0:r.code)||c.ErrorCode.GENERAL,errorMessage:i,value:t,reason:c.StandardResolutionReasons.ERROR,flagMetadata:Object.freeze(n),flagKey:e}}},x=class extends c.GenericEventEmitter{constructor(){super(),this.eventEmitter=new f.EventEmitter({captureRejections:!0}),this.eventEmitter.on("error",e=>{var t;null==(t=this._logger)||t.error("Error running event handler:",e)})}},C=new class{getTransactionContext(){return{}}setTransactionContext(e,t,...r){t(...r)}},P=Symbol.for("@openfeature/js-sdk/api"),T=globalThis;(class e extends c.OpenFeatureCommonAPI{constructor(){super("server"),this._statusEnumType=c.ServerProviderStatus,this._apiEmitter=new x,this._defaultProvider=new c.ProviderWrapper(O,c.ServerProviderStatus.NOT_READY,this._statusEnumType),this._domainScopedProviders=new Map,this._createEventEmitter=()=>new x,this._transactionContextPropagator=C}static getInstance(){let t=T[P];if(t)return t;let r=new e;return T[P]=r,r}getProviderStatus(e){var t,r;return e&&null!=(r=null==(t=this._domainScopedProviders.get(e))?void 0:t.status)?r:this._defaultProvider.status}setProviderAndWait(e,t){return b(this,null,function*(){let r=(0,c.stringOrUndefined)(e),n=r?(0,c.objectOrUndefined)(t):(0,c.objectOrUndefined)(e);yield this.setAwaitableProvider(r,n)})}setProvider(e,t){let r=(0,c.stringOrUndefined)(e),n=r?(0,c.objectOrUndefined)(t):(0,c.objectOrUndefined)(e);return Promise.resolve(this.setAwaitableProvider(r,n)).catch(e=>{this._logger.error("Error during provider initialization:",e)}),this}getProvider(e){return this.getProviderForClient(e)}setContext(e){return this._context=e,this}getContext(){return this._context}getClient(e,t,r){var n,i;let o=(0,c.stringOrUndefined)(e);return new A(()=>this.getProviderForClient(o),()=>this.getProviderStatus(o),()=>this.buildAndCacheEventEmitterForClient(o),()=>this.getContext(),()=>this.getHooks(),()=>this.getTransactionContext(),()=>this._logger,{domain:o,version:(0,c.stringOrUndefined)(t)},null!=(i=null!=(n=(0,c.objectOrUndefined)(e))?n:(0,c.objectOrUndefined)(t))?i:(0,c.objectOrUndefined)(r))}clearProviders(){return super.clearProvidersAndSetDefault(O)}setTransactionContextPropagator(e){let t="Invalid TransactionContextPropagator, will not be set: ";return"function"!=typeof(null==e?void 0:e.getTransactionContext)?this._logger.error(`${t}: getTransactionContext is not a function.`):"function"!=typeof(null==e?void 0:e.setTransactionContext)?this._logger.error(`${t}: setTransactionContext is not a function.`):this._transactionContextPropagator=e,this}setTransactionContext(e,t,...r){this._transactionContextPropagator.setTransactionContext(e,t,...r)}getTransactionContext(){try{return this._transactionContextPropagator.getTransactionContext()}catch(e){return this._logger.error(`Error getting transaction context: ${null==e?void 0:e.message}, returning empty context.`),this._logger.error(null==e?void 0:e.stack),{}}}}).getInstance(),(e=t||(t={})).MATCHES="MATCHES",e.NOT_MATCHES="NOT_MATCHES",e.GTE="GTE",e.GT="GT",e.LTE="LTE",e.LT="LT",e.ONE_OF="ONE_OF",e.NOT_ONE_OF="NOT_ONE_OF",e.IS_NULL="IS_NULL";class S{}class N extends S{getShard(e,t){return parseInt(s(e).slice(0,8),16)%t}}function I(e,r,n,i,o,s){if(!e)return{value:i,reason:"ERROR",errorCode:c.ErrorCode.PROVIDER_NOT_READY};let{targetingKey:a,...l}=o;if(!a)return{value:i,reason:"ERROR",errorCode:c.ErrorCode.TARGETING_KEY_MISSING};let u={id:a,...l};try{return function(e,r,n,i,o,s){if(!(null==e?void 0:e.enabled))return s.debug("returning default assignment because flag is disabled",{flagKey:e?e.key:"undefined",subjectKey:n}),{value:o,reason:c.StandardResolutionReasons.DISABLED};if(!function(e,t){if("boolean"===e)return"BOOLEAN"===t;if("string"===e)return"STRING"===t;if("number"===e)return"INTEGER"===t||"NUMERIC"===t;if("object"===e)return"JSON"===t;throw Error(`Invalid expected type: ${e}`)}(r,e.variationType))return s.debug("variant value type mismatch, returning default value",{flagKey:e.key,subjectKey:n,expectedType:r,variantType:e.variationType}),{value:o,reason:c.StandardResolutionReasons.ERROR,errorCode:c.ErrorCode.TYPE_MISMATCH};let a=new Date;for(let r of e.allocations){if(r.startAt&&a=new Date(r.endAt)){s.debug("allocation after end date",{flagKey:e.key,subjectKey:n,allocationKey:r.key,endAt:r.endAt});continue}if(!function(e,r,n){return null==e||!e.length||(n.debug("evaluating rules",{rules:JSON.stringify(e),subjectAttributes:r}),e.some(e=>!(function(e,r){return r.map(r=>(function(e,r){var n,i,o;let s=e[r.attribute];if(r.operator===t.IS_NULL)return r.value?null==s:null!=s;if(null!=s)switch(r.operator){case t.GTE:case t.GT:case t.LTE:case t.LT:return n=s,i=r.value,((e,n)=>r.operator===t.GTE?e>=n:r.operator===t.GT?e>n:r.operator===t.LTE?e<=n:e{let o=function(e,t,r){var n,i;let o=new N().getShard((n=e.salt,i=t,`${n}-${i}`),e.totalShards);return e.ranges.some(e=>{var t,r;return t=o,(r=e).start<=t&&t{this.resolve=()=>{this.cleanup(),e()},this.reject=e=>{this.cleanup(),t(e)}}),new Promise(()=>{this.timeoutId=setTimeout(()=>{t()},e)})])}async wait(){try{await this.promise}finally{this.cleanup()}}complete(){this.resolve&&this.resolve()}fail(e){this.reject&&this.reject(e)}isInitializing(){return void 0!==this.resolve}cleanup(){this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=void 0),this.resolve=void 0,this.reject=void 0}}class w{constructor(e){this.options=e,this.metadata={name:"datadog-node-server"},this.runsOn="server",this.hooks=[],this.events=new x,this.exposureCache=new d(5e4)}getConfiguration(){return this.configuration}setConfiguration(e){var t,r,n;let i=null==(t=this.configuration)?void 0:t.createdAt,o=!!this.configuration;if(o&&this.configuration!==e){this.events.emit(c.ServerProviderEvents.ConfigurationChanged),i!==(null==e?void 0:e.createdAt)&&(null==(r=this.exposureCache)||r.clear()),this.configuration=e;return}this.configuration=e,(null==(n=this.initController)?void 0:n.isInitializing())?this.initController.complete():o||this.events.emit(c.ServerProviderEvents.Ready)}setError(e){var t;(null==(t=this.initController)?void 0:t.isInitializing())?this.initController.fail(e):this.events.emit(c.ServerProviderEvents.Error,{error:e})}async initialize(){var e,t;if(this.configuration)return;let r=null!=(e=this.options.initializationTimeoutMs)?e:3e4;this.initController=new D(r,()=>this.setError(Error(`Initialization timeout after ${r}ms`))),await this.initController.wait(),await (null==(t=this.exposureCache)?void 0:t.init())}async resolveBooleanEvaluation(e,t,r,n){let i=I(this.configuration,"boolean",e,t,r,n);return this.handleExposure(e,r,i),i}async resolveStringEvaluation(e,t,r,n){let i=I(this.configuration,"string",e,t,r,n);return this.handleExposure(e,r,i),i}async resolveNumberEvaluation(e,t,r,n){let i=I(this.configuration,"number",e,t,r,n);return this.handleExposure(e,r,i),i}async resolveObjectEvaluation(e,t,r,n){let i=I(this.configuration,"object",e,t,r,n);return this.handleExposure(e,r,i),i}handleExposure(e,t,r){var n,i,o;let s=Date.now(),a=function(e,t){var r,n;if(!(null==(r=t.flagMetadata)?void 0:r.doLog))return;let i=null==(n=t.flagMetadata)?void 0:n.allocationKey,o=t.variant;if(!i||!o)return;let{targetingKey:s="",...a}=e;return{allocation:{key:i},flag:{key:t.flagKey},variant:{key:o},subject:{id:s,attributes:a}}}(t,{...r,flagKey:e,flagMetadata:null!=(n=r.flagMetadata)?n:{}});!a||(null==(i=this.exposureCache)?void 0:i.has(a))||this.options.exposureChannel.hasSubscribers&&(this.options.exposureChannel.publish({...a,timestamp:s}),null==(o=this.exposureCache)||o.set(a))}}})(),module.exports=n})(); \ No newline at end of file diff --git a/packages/node_modules/@datadog/sketches-js/index.js b/packages/node_modules/@datadog/sketches-js/index.js index 0769df33d91..ccc4c1dab37 100644 --- a/packages/node_modules/@datadog/sketches-js/index.js +++ b/packages/node_modules/@datadog/sketches-js/index.js @@ -1 +1 @@ -(()=>{"use strict";var __webpack_modules__={2781:function(t,e,n){var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0}),e.LogCollapsingHighestDenseDDSketch=e.LogCollapsingLowestDenseDDSketch=e.DDSketch=void 0;var o=n(1047),r=n(2348),s=.01,u=2048,a=function(){function t(t){var e=t.mapping,n=t.store,i=t.negativeStore,o=t.zeroCount;this.mapping=e,this.store=n,this.negativeStore=i,this.zeroCount=o,this.count=this.negativeStore.count+this.zeroCount+this.store.count,this.min=1/0,this.max=-1/0,this.sum=0}return t.prototype.accept=function(t,e){if(void 0===e&&(e=1),e<=0)throw Error("Weight must be a positive number");if(t>this.mapping.minPossible){var n=this.mapping.key(t);this.store.add(n,e)}else if(t<-this.mapping.minPossible){var n=this.mapping.key(-t);this.negativeStore.add(n,e)}else this.zeroCount+=e;this.count+=e,this.sum+=t*e,tthis.max&&(this.max=t)},t.prototype.getValueAtQuantile=function(t){if(t<0||t>1||0===this.count)return NaN;var e=t*(this.count-1),n=0;if(ethis.max&&(this.max=t.max)}},t.prototype.mergeable=function(t){return this.mapping.gamma===t.mapping.gamma},t.prototype._copy=function(t){this.store.copy(t.store),this.negativeStore.copy(t.negativeStore),this.zeroCount=t.zeroCount,this.min=t.min,this.max=t.max,this.count=t.count,this.sum=t.sum},t.prototype.toProto=function(){var t=n(3881).DDSketch,e=t.create({mapping:this.mapping.toProto(),positiveValues:this.store.toProto(),negativeValues:this.negativeStore.toProto(),zeroCount:this.zeroCount});return t.encode(e).finish()},t.fromProto=function(e){var i=n(3881).DDSketch.decode(e);return new t({mapping:r.KeyMapping.fromProto(i.mapping),store:o.DenseStore.fromProto(i.positiveValues),negativeStore:o.DenseStore.fromProto(i.negativeValues),zeroCount:i.zeroCount})},t}(),f={relativeAccuracy:s};e.DDSketch=function(t){function e(e){var n=(void 0===e?f:e).relativeAccuracy,i=void 0===n?s:n,u=new r.LogarithmicMapping(i),a=new o.DenseStore,l=new o.DenseStore;return t.call(this,{mapping:u,store:a,negativeStore:l,zeroCount:0})||this}return i(e,t),e}(a),e.LogCollapsingLowestDenseDDSketch=function(t){function e(e){var n=void 0===e?f:e,i=n.relativeAccuracy,a=void 0===i?s:i,l=n.binLimit,c=void 0===l?u:l,p=new r.LogarithmicMapping(a),h=new o.CollapsingLowestDenseStore(c),y=new o.CollapsingLowestDenseStore(c);return t.call(this,{mapping:p,store:h,negativeStore:y,zeroCount:0})||this}return i(e,t),e}(a),e.LogCollapsingHighestDenseDDSketch=function(t){function e(e){var n=void 0===e?f:e,i=n.relativeAccuracy,a=void 0===i?s:i,l=n.binLimit,c=void 0===l?u:l,p=new r.LogarithmicMapping(a),h=new o.CollapsingHighestDenseStore(c),y=new o.CollapsingHighestDenseStore(c);return t.call(this,{mapping:p,store:h,negativeStore:y,zeroCount:0})||this}return i(e,t),e}(a)},6729:function(t,e,n){var i=this&&this.__createBinding||(Object.create?function(t,e,n,i){void 0===i&&(i=n);var o=Object.getOwnPropertyDescriptor(e,n);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,i,o)}:function(t,e,n,i){void 0===i&&(i=n),t[i]=e[n]}),o=this&&this.__exportStar||function(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||i(e,t,n)};Object.defineProperty(e,"__esModule",{value:!0}),o(n(2781),e)},3711:function(t,e,n){var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0}),e.CubicallyInterpolatedMapping=void 0;var o=n(1289),r=n(4879);e.CubicallyInterpolatedMapping=function(t){function e(e,n){void 0===n&&(n=0);var i=t.call(this,e,n)||this;return i.A=6/35,i.B=-.6,i.C=10/7,i._multiplier/=i.C,i}return i(e,t),e.prototype._cubicLog2Approx=function(t){var e=(0,r.frexp)(t),n=e[0],i=e[1],o=2*n-1;return((this.A*o+this.B)*o+this.C)*o+(i-1)},e.prototype._cubicExp2Approx=function(t){var e=Math.floor(t),n=this.B*this.B-3*this.A*this.C,i=2*this.B*this.B*this.B-9*this.A*this.B*this.C-27*this.A*this.A*(t-e),o=Math.cbrt((i-Math.sqrt(i*i-4*n*n*n))/2),s=(-(this.B+o+n/o)/(3*this.A)+1)/2;return(0,r.ldexp)(s,e+1)},e.prototype._logGamma=function(t){return this._cubicLog2Approx(t)*this._multiplier},e.prototype._powGamma=function(t){return this._cubicExp2Approx(t/this._multiplier)},e.prototype._protoInterpolation=function(){return n(3881).IndexMapping.Interpolation.CUBIC},e}(o.KeyMapping)},1289:function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.KeyMapping=void 0;var i=n(2348),o=11125369292536007e-324,r=Number.MAX_VALUE;e.KeyMapping=function(){function t(t,e){if(void 0===e&&(e=0),t<=0||t>=1)throw Error("Relative accuracy must be between 0 and 1 when initializing a KeyMapping");this.relativeAccuracy=t,this._offset=e;var n=2*t/(1-t);this.gamma=1+n,this._multiplier=1/Math.log1p(n),this.minPossible=o*this.gamma,this.maxPossible=r/this.gamma}return t.fromGammaOffset=function(t,e){return new this((t-1)/(t+1),e)},t.prototype.key=function(t){return Math.ceil(this._logGamma(t))+this._offset},t.prototype.value=function(t){return this._powGamma(t-this._offset)*(2/(1+this.gamma))},t.prototype.toProto=function(){return n(3881).IndexMapping.create({gamma:this.gamma,indexOffset:this._offset,interpolation:this._protoInterpolation()})},t.fromProto=function(t){if(!t||null==t.gamma||null==t.indexOffset)throw Error("Failed to decode mapping from protobuf");var e=n(3881).IndexMapping.Interpolation,o=t.interpolation,r=t.gamma,s=t.indexOffset;switch(o){case e.NONE:return i.LogarithmicMapping.fromGammaOffset(r,s);case e.LINEAR:return i.LinearlyInterpolatedMapping.fromGammaOffset(r,s);case e.CUBIC:return i.CubicallyInterpolatedMapping.fromGammaOffset(r,s);default:throw Error("Unrecognized mapping when decoding from protobuf")}},t.prototype._logGamma=function(t){return Math.log2(t)*this._multiplier},t.prototype._powGamma=function(t){return Math.pow(2,t/this._multiplier)},t.prototype._protoInterpolation=function(){return n(3881).IndexMapping.Interpolation.NONE},t}()},9935:function(t,e,n){var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0}),e.LinearlyInterpolatedMapping=void 0;var o=n(1289),r=n(4879);e.LinearlyInterpolatedMapping=function(t){function e(e,n){return void 0===n&&(n=0),t.call(this,e,n)||this}return i(e,t),e.prototype._log2Approx=function(t){var e=(0,r.frexp)(t);return 2*e[0]-1+(e[1]-1)},e.prototype._exp2Approx=function(t){var e=Math.floor(t)+1,n=(t-e+2)/2;return(0,r.ldexp)(n,e)},e.prototype._logGamma=function(t){return Math.log2(t)*this._multiplier},e.prototype._powGamma=function(t){return Math.pow(2,t/this._multiplier)},e.prototype._protoInterpolation=function(){return n(3881).IndexMapping.Interpolation.LINEAR},e}(o.KeyMapping)},4017:function(t,e,n){var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0}),e.LogarithmicMapping=void 0,e.LogarithmicMapping=function(t){function e(e,n){void 0===n&&(n=0);var i=t.call(this,e,n)||this;return i._multiplier*=Math.log(2),i}return i(e,t),e.prototype._logGamma=function(t){return Math.log2(t)*this._multiplier},e.prototype._powGamma=function(t){return Math.pow(2,t/this._multiplier)},e.prototype._protoInterpolation=function(){return n(3881).IndexMapping.Interpolation.NONE},e}(n(1289).KeyMapping)},2348:function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.CubicallyInterpolatedMapping=e.LinearlyInterpolatedMapping=e.LogarithmicMapping=e.KeyMapping=void 0;var i=n(1289);Object.defineProperty(e,"KeyMapping",{enumerable:!0,get:function(){return i.KeyMapping}});var o=n(4017);Object.defineProperty(e,"LogarithmicMapping",{enumerable:!0,get:function(){return o.LogarithmicMapping}});var r=n(9935);Object.defineProperty(e,"LinearlyInterpolatedMapping",{enumerable:!0,get:function(){return r.LinearlyInterpolatedMapping}});var s=n(3711);Object.defineProperty(e,"CubicallyInterpolatedMapping",{enumerable:!0,get:function(){return s.CubicallyInterpolatedMapping}})},4879:function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.ldexp=e.frexp=void 0,e.frexp=function(t){if(0===t||!Number.isFinite(t))return[t,0];for(var e=Math.abs(t),n=Math.max(-1023,Math.floor(Math.log2(e))+1),i=e*Math.pow(2,-n);i<.5;)i*=2,n--;for(;i>=1;)i*=.5,n++;return t<0&&(i=-i),[i,n]},e.ldexp=function(t,e){for(var n=Math.min(3,Math.ceil(Math.abs(e)/1023)),i=t,o=0;o>>3){case 1:i.mapping=u.IndexMapping.decode(t,t.uint32());break;case 2:i.positiveValues=u.Store.decode(t,t.uint32());break;case 3:i.negativeValues=u.Store.decode(t,t.uint32());break;case 4:i.zeroCount=t.double();break;default:t.skipType(7&r)}}return i},t.decodeDelimited=function(t){return t instanceof o||(t=new o(t)),this.decode(t,t.uint32())},t.verify=function(t){if("object"!=typeof t||null===t)return"object expected";if(null!=t.mapping&&t.hasOwnProperty("mapping")){var e=u.IndexMapping.verify(t.mapping);if(e)return"mapping."+e}if(null!=t.positiveValues&&t.hasOwnProperty("positiveValues")){var e=u.Store.verify(t.positiveValues);if(e)return"positiveValues."+e}if(null!=t.negativeValues&&t.hasOwnProperty("negativeValues")){var e=u.Store.verify(t.negativeValues);if(e)return"negativeValues."+e}return null!=t.zeroCount&&t.hasOwnProperty("zeroCount")&&"number"!=typeof t.zeroCount?"zeroCount: number expected":null},t.fromObject=function(t){if(t instanceof u.DDSketch)return t;var e=new u.DDSketch;if(null!=t.mapping){if("object"!=typeof t.mapping)throw TypeError(".DDSketch.mapping: object expected");e.mapping=u.IndexMapping.fromObject(t.mapping)}if(null!=t.positiveValues){if("object"!=typeof t.positiveValues)throw TypeError(".DDSketch.positiveValues: object expected");e.positiveValues=u.Store.fromObject(t.positiveValues)}if(null!=t.negativeValues){if("object"!=typeof t.negativeValues)throw TypeError(".DDSketch.negativeValues: object expected");e.negativeValues=u.Store.fromObject(t.negativeValues)}return null!=t.zeroCount&&(e.zeroCount=Number(t.zeroCount)),e},t.toObject=function(t,e){e||(e={});var n={};return e.defaults&&(n.mapping=null,n.positiveValues=null,n.negativeValues=null,n.zeroCount=0),null!=t.mapping&&t.hasOwnProperty("mapping")&&(n.mapping=u.IndexMapping.toObject(t.mapping,e)),null!=t.positiveValues&&t.hasOwnProperty("positiveValues")&&(n.positiveValues=u.Store.toObject(t.positiveValues,e)),null!=t.negativeValues&&t.hasOwnProperty("negativeValues")&&(n.negativeValues=u.Store.toObject(t.negativeValues,e)),null!=t.zeroCount&&t.hasOwnProperty("zeroCount")&&(n.zeroCount=e.json&&!isFinite(t.zeroCount)?String(t.zeroCount):t.zeroCount),n},t.prototype.toJSON=function(){return this.constructor.toObject(this,i.util.toJSONOptions)},t}(),u.IndexMapping=function(){function t(t){if(t)for(var e=Object.keys(t),n=0;n>>3){case 1:i.gamma=t.double();break;case 2:i.indexOffset=t.double();break;case 3:i.interpolation=t.int32();break;default:t.skipType(7&r)}}return i},t.decodeDelimited=function(t){return t instanceof o||(t=new o(t)),this.decode(t,t.uint32())},t.verify=function(t){if("object"!=typeof t||null===t)return"object expected";if(null!=t.gamma&&t.hasOwnProperty("gamma")&&"number"!=typeof t.gamma)return"gamma: number expected";if(null!=t.indexOffset&&t.hasOwnProperty("indexOffset")&&"number"!=typeof t.indexOffset)return"indexOffset: number expected";if(null!=t.interpolation&&t.hasOwnProperty("interpolation"))switch(t.interpolation){default:return"interpolation: enum value expected";case 0:case 1:case 2:case 3:}return null},t.fromObject=function(t){if(t instanceof u.IndexMapping)return t;var e=new u.IndexMapping;switch(null!=t.gamma&&(e.gamma=Number(t.gamma)),null!=t.indexOffset&&(e.indexOffset=Number(t.indexOffset)),t.interpolation){case"NONE":case 0:e.interpolation=0;break;case"LINEAR":case 1:e.interpolation=1;break;case"QUADRATIC":case 2:e.interpolation=2;break;case"CUBIC":case 3:e.interpolation=3}return e},t.toObject=function(t,e){e||(e={});var n={};return e.defaults&&(n.gamma=0,n.indexOffset=0,n.interpolation=e.enums===String?"NONE":0),null!=t.gamma&&t.hasOwnProperty("gamma")&&(n.gamma=e.json&&!isFinite(t.gamma)?String(t.gamma):t.gamma),null!=t.indexOffset&&t.hasOwnProperty("indexOffset")&&(n.indexOffset=e.json&&!isFinite(t.indexOffset)?String(t.indexOffset):t.indexOffset),null!=t.interpolation&&t.hasOwnProperty("interpolation")&&(n.interpolation=e.enums===String?u.IndexMapping.Interpolation[t.interpolation]:t.interpolation),n},t.prototype.toJSON=function(){return this.constructor.toObject(this,i.util.toJSONOptions)},t.Interpolation=function(){var t={},e=Object.create(t);return e[t[0]="NONE"]=0,e[t[1]="LINEAR"]=1,e[t[2]="QUADRATIC"]=2,e[t[3]="CUBIC"]=3,e}(),t}(),u.Store=function(){function t(t){if(this.binCounts={},this.contiguousBinCounts=[],t)for(var e=Object.keys(t),n=0;n>>3){case 1:a.binCounts===s.emptyObject&&(a.binCounts={});var l=t.uint32()+t.pos;for(n=0,i=0;t.pos>>3){case 1:n=t.sint32();break;case 2:i=t.double();break;default:t.skipType(7&c)}}a.binCounts[n]=i;break;case 2:if(a.contiguousBinCounts&&a.contiguousBinCounts.length||(a.contiguousBinCounts=[]),(7&f)==2)for(var l=t.uint32()+t.pos;t.posthis.maxKey)&&this._extendRange(t.minKey,t.maxKey);var e=t.maxKey-t.offset+1,n=Math.max(this.maxKey+1,t.minKey)-t.offset;if(e>n){var i=(0,r.sumOfRange)(t.bins,n,e);this.bins[this.length()-1]+=i}else n=e;for(var o=t.minKey;othis.length())if((e=t+this.length()+1)<=this.minKey)this.offset=t,this.maxKey=e,this.bins.fill(0),this.bins[this.length()-1]=this.count;else{var n=this.offset-t;if(n>0){var i=e-this.offset+1,o=this.maxKey-this.offset+1,s=(0,r.sumOfRange)(this.bins,i,o);this.bins.fill(0,i,o),this.bins[i-1]+=s,this.maxKey=e,this._shiftBins(n)}else this.maxKey=e,this._shiftBins(n);this.minKey=t,this.isCollapsed=!0}else this._centerBins(t,e),this.minKey=t,this.maxKey=e},e.prototype._getIndex=function(t){if(tthis.maxKey&&this._extendRange(t);return t-this.offset},e}(o.DenseStore)},649:function(t,e,n){var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0}),e.CollapsingLowestDenseStore=void 0;var o=n(3591),r=n(9687);e.CollapsingLowestDenseStore=function(t){function e(e,n){var i=t.call(this,n)||this;return i.binLimit=e,i.isCollapsed=!1,i}return i(e,t),e.prototype.merge=function(t){if(0!==t.count){if(0===this.count)return void this.copy(t);(t.minKeythis.maxKey)&&this._extendRange(t.minKey,t.maxKey);var e=t.minKey-t.offset,n=Math.min(this.minKey,t.maxKey+1)-t.offset;if(n>e){var i=(0,r.sumOfRange)(t.bins,e,n);this.bins[0]+=i}else n=e;for(var o=n+t.offset;othis.length()){if((t=e-this.length()+1)>=this.maxKey)this.offset=t,this.minKey=t,this.bins.fill(0),this.bins[0]=this.count;else{var n=this.offset-t;if(n<0){var i=this.minKey-this.offset,o=t-this.offset,s=(0,r.sumOfRange)(this.bins,i,o);this.bins.fill(0,i,o),this.bins[o]+=s,this.minKey=t,this._shiftBins(n)}else this.minKey=t,this._shiftBins(n)}this.maxKey=e,this.isCollapsed=!0}else this._centerBins(t,e),this.minKey=t,this.maxKey=e},e.prototype._getIndex=function(t){if(tthis.maxKey&&this._extendRange(t);return t-this.offset},e}(o.DenseStore)},3591:function(t,e,n){var i=this&&this.__spreadArray||function(t,e,n){if(n||2==arguments.length)for(var i,o=0,r=e.length;ot||!e&&n>=t+1)return i+this.offset;return this.maxKey},t.prototype.merge=function(t){if(0!==t.count){if(0===this.count)return void this.copy(t);(t.minKeythis.maxKey)&&this._extendRange(t.minKey,t.maxKey);var e=t.minKey-t.offset,n=Math.min(this.minKey,t.maxKey+1)-t.offset;if(n>e){var i=(0,o.sumOfRange)(t.bins,e,n);this.bins[0]+=i}else n=e;for(var r=n+t.offset;r0?(this.bins=this.bins.slice(0,-t),(e=this.bins).unshift.apply(e,Array(t).fill(0))):(this.bins=this.bins.slice(Math.abs(t)),(n=this.bins).push.apply(n,Array(Math.abs(t)).fill(0))),this.offset-=t},t.prototype._centerBins=function(t,e){var n=t+Math.floor((e-t+1)/2);this._shiftBins(Math.floor(this.offset+this.length()/2)-n)},t.prototype._extendRange=function(t,e){e=e||t;var n,i=Math.min(t,e,this.minKey),o=Math.max(t,e,this.maxKey);if(0===this.length())this.bins=Array(this._getNewLength(i,o)).fill(0),this.offset=i,this._adjust(i,o);else if(i>=this.minKey&&othis.length()&&(n=this.bins).push.apply(n,Array(r-this.length()).fill(0)),this._adjust(i,o)}},t.prototype._getIndex=function(t){return tthis.maxKey&&this._extendRange(t),t-this.offset},t.prototype.toProto=function(){return n(3881).Store.create({contiguousBinCounts:this.bins,contiguousBinIndexOffset:this.offset})},t.fromProto=function(t){if(!t||null==t.contiguousBinCounts||null==t.contiguousBinIndexOffset)throw Error("Failed to decode store from protobuf");var e=new this,n=t.contiguousBinIndexOffset;e.offset=n;for(var i=0,o=t.contiguousBinCounts;i1&&"="===t.charAt(e);)++n;return Math.ceil(3*t.length)/4-n};for(var i=Array(64),o=Array(123),r=0;r<64;)o[i[r]=r<26?r+65:r<52?r+71:r<62?r-4:r-59|43]=r++;n.encode=function(t,e,n){for(var o,r=null,s=[],u=0,a=0;e>2],o=(3&f)<<4,a=1;break;case 1:s[u++]=i[o|f>>4],o=(15&f)<<2,a=2;break;case 2:s[u++]=i[o|f>>6],s[u++]=i[63&f],a=0}u>8191&&((r||(r=[])).push(String.fromCharCode.apply(String,s)),u=0)}return(a&&(s[u++]=i[o],s[u++]=61,1===a&&(s[u++]=61)),r)?(u&&r.push(String.fromCharCode.apply(String,s.slice(0,u))),r.join("")):String.fromCharCode.apply(String,s.slice(0,u))};var s="invalid encoding";n.decode=function(t,e,n){for(var i,r=n,u=0,a=0;a1)break;if(void 0===(f=o[f]))throw Error(s);switch(u){case 0:i=f,u=1;break;case 1:e[n++]=i<<2|(48&f)>>4,i=f,u=2;break;case 2:e[n++]=(15&i)<<4|(60&f)>>2,i=f,u=3;break;case 3:e[n++]=(3&i)<<6|f,u=0}}if(1===u)throw Error(s);return n-r},n.test=function(t){return/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(t)}},3453:function(t){function e(){this._listeners={}}t.exports=e,e.prototype.on=function(t,e,n){return(this._listeners[t]||(this._listeners[t]=[])).push({fn:e,ctx:n||this}),this},e.prototype.off=function(t,e){if(void 0===t)this._listeners={};else if(void 0===e)this._listeners[t]=[];else for(var n=this._listeners[t],i=0;i0?0:0x80000000,n,i);else if(isNaN(e))t(0x7fc00000,n,i);else if(e>34028234663852886e22)t((o<<31|0x7f800000)>>>0,n,i);else if(e<11754943508222875e-54)t((o<<31|Math.round(e/1401298464324817e-60))>>>0,n,i);else{var r=Math.floor(Math.log(e)/Math.LN2),s=8388607&Math.round(e*Math.pow(2,-r)*8388608);t((o<<31|r+127<<23|s)>>>0,n,i)}}function s(t,e,n){var i=t(e,n),o=(i>>31)*2+1,r=i>>>23&255,s=8388607&i;return 255===r?s?NaN:1/0*o:0===r?1401298464324817e-60*o*s:o*Math.pow(2,r-150)*(s+8388608)}t.writeFloatLE=e.bind(null,n),t.writeFloatBE=e.bind(null,i),t.readFloatLE=s.bind(null,o),t.readFloatBE=s.bind(null,r)}(),"undefined"!=typeof Float64Array?!function(){var e=new Float64Array([-0]),n=new Uint8Array(e.buffer),i=128===n[7];function o(t,i,o){e[0]=t,i[o]=n[0],i[o+1]=n[1],i[o+2]=n[2],i[o+3]=n[3],i[o+4]=n[4],i[o+5]=n[5],i[o+6]=n[6],i[o+7]=n[7]}function r(t,i,o){e[0]=t,i[o]=n[7],i[o+1]=n[6],i[o+2]=n[5],i[o+3]=n[4],i[o+4]=n[3],i[o+5]=n[2],i[o+6]=n[1],i[o+7]=n[0]}function s(t,i){return n[0]=t[i],n[1]=t[i+1],n[2]=t[i+2],n[3]=t[i+3],n[4]=t[i+4],n[5]=t[i+5],n[6]=t[i+6],n[7]=t[i+7],e[0]}function u(t,i){return n[7]=t[i],n[6]=t[i+1],n[5]=t[i+2],n[4]=t[i+3],n[3]=t[i+4],n[2]=t[i+5],n[1]=t[i+6],n[0]=t[i+7],e[0]}t.writeDoubleLE=i?o:r,t.writeDoubleBE=i?r:o,t.readDoubleLE=i?s:u,t.readDoubleBE=i?u:s}():!function(){function e(t,e,n,i,o,r){var s,u=+(i<0);if(u&&(i=-i),0===i)t(0,o,r+e),t(1/i>0?0:0x80000000,o,r+n);else if(isNaN(i))t(0,o,r+e),t(0x7ff80000,o,r+n);else if(i>17976931348623157e292)t(0,o,r+e),t((u<<31|0x7ff00000)>>>0,o,r+n);else if(i<22250738585072014e-324)t((s=i/5e-324)>>>0,o,r+e),t((u<<31|s/0x100000000)>>>0,o,r+n);else{var a=Math.floor(Math.log(i)/Math.LN2);1024===a&&(a=1023),t(0x10000000000000*(s=i*Math.pow(2,-a))>>>0,o,r+e),t((u<<31|a+1023<<20|1048576*s&1048575)>>>0,o,r+n)}}function s(t,e,n,i,o){var r=t(i,o+e),s=t(i,o+n),u=(s>>31)*2+1,a=s>>>20&2047,f=0x100000000*(1048575&s)+r;return 2047===a?f?NaN:1/0*u:0===a?5e-324*u*f:u*Math.pow(2,a-1075)*(f+0x10000000000000)}t.writeDoubleLE=e.bind(null,n,0,4),t.writeDoubleBE=e.bind(null,i,4,0),t.readDoubleLE=s.bind(null,o,0,4),t.readDoubleBE=s.bind(null,r,4,0)}(),t}function n(t,e,n){e[n]=255&t,e[n+1]=t>>>8&255,e[n+2]=t>>>16&255,e[n+3]=t>>>24}function i(t,e,n){e[n]=t>>>24,e[n+1]=t>>>16&255,e[n+2]=t>>>8&255,e[n+3]=255&t}function o(t,e){return(t[e]|t[e+1]<<8|t[e+2]<<16|t[e+3]<<24)>>>0}function r(t,e){return(t[e]<<24|t[e+1]<<16|t[e+2]<<8|t[e+3])>>>0}t.exports=e(e)},1952:function(module){module.exports=inquire;function inquire(moduleName){try{var mod=eval("quire".replace(/^/,"re"))(moduleName);if(mod&&(mod.length||Object.keys(mod).length))return mod}catch(e){}return null}},3829:function(t){t.exports=e;function e(t,e,n){var i=n||8192,o=i>>>1,r=null,s=i;return function(n){if(n<1||n>o)return t(n);s+n>i&&(r=t(i),s=0);var u=e.call(r,s,s+=n);return 7&s&&(s=(7|s)+1),u}}},7800:function(t,e){var n=e;n.length=function(t){for(var e=0,n=0,i=0;i191&&i<224?r[s++]=(31&i)<<6|63&t[e++]:i>239&&i<365?(i=((7&i)<<18|(63&t[e++])<<12|(63&t[e++])<<6|63&t[e++])-65536,r[s++]=55296+(i>>10),r[s++]=56320+(1023&i)):r[s++]=(15&i)<<12|(63&t[e++])<<6|63&t[e++],s>8191&&((o||(o=[])).push(String.fromCharCode.apply(String,r)),s=0);return o?(s&&o.push(String.fromCharCode.apply(String,r.slice(0,s))),o.join("")):String.fromCharCode.apply(String,r.slice(0,s))},n.write=function(t,e,n){for(var i,o,r=n,s=0;s>6|192:((64512&i)==55296&&(64512&(o=t.charCodeAt(s+1)))==56320?(i=65536+((1023&i)<<10)+(1023&o),++s,e[n++]=i>>18|240,e[n++]=i>>12&63|128):e[n++]=i>>12|224,e[n++]=i>>6&63|128),e[n++]=63&i|128);return n-r}},1873:function(t,e,n){t.exports=n(233)},233:function(t,e,n){var i=e;function o(){i.util._configure(),i.Writer._configure(i.BufferWriter),i.Reader._configure(i.BufferReader)}i.build="minimal",i.Writer=n(8332),i.BufferWriter=n(1405),i.Reader=n(624),i.BufferReader=n(753),i.util=n(6339),i.rpc=n(7168),i.roots=n(9818),i.configure=o,o()},624:function(t,e,n){t.exports=a;var i,o=n(6339),r=o.LongBits,s=o.utf8;function u(t,e){return RangeError("index out of range: "+t.pos+" + "+(e||1)+" > "+t.len)}function a(t){this.buf=t,this.pos=0,this.len=t.length}var f="undefined"!=typeof Uint8Array?function(t){if(t instanceof Uint8Array||Array.isArray(t))return new a(t);throw Error("illegal buffer")}:function(t){if(Array.isArray(t))return new a(t);throw Error("illegal buffer")},l=function(){return o.Buffer?function(t){return(a.create=function(t){return o.Buffer.isBuffer(t)?new i(t):f(t)})(t)}:f};function c(){var t=new r(0,0),e=0;if(this.len-this.pos>4){for(;e<4;++e)if(t.lo=(t.lo|(127&this.buf[this.pos])<<7*e)>>>0,this.buf[this.pos++]<128)return t;if(t.lo=(t.lo|(127&this.buf[this.pos])<<28)>>>0,t.hi=(t.hi|(127&this.buf[this.pos])>>4)>>>0,this.buf[this.pos++]<128)return t;e=0}else{for(;e<3;++e){if(this.pos>=this.len)throw u(this);if(t.lo=(t.lo|(127&this.buf[this.pos])<<7*e)>>>0,this.buf[this.pos++]<128)return t}return t.lo=(t.lo|(127&this.buf[this.pos++])<<7*e)>>>0,t}if(this.len-this.pos>4){for(;e<5;++e)if(t.hi=(t.hi|(127&this.buf[this.pos])<<7*e+3)>>>0,this.buf[this.pos++]<128)return t}else for(;e<5;++e){if(this.pos>=this.len)throw u(this);if(t.hi=(t.hi|(127&this.buf[this.pos])<<7*e+3)>>>0,this.buf[this.pos++]<128)return t}throw Error("invalid varint encoding")}function p(t,e){return(t[e-4]|t[e-3]<<8|t[e-2]<<16|t[e-1]<<24)>>>0}function h(){if(this.pos+8>this.len)throw u(this,8);return new r(p(this.buf,this.pos+=4),p(this.buf,this.pos+=4))}a.create=l(),a.prototype._slice=o.Array.prototype.subarray||o.Array.prototype.slice,a.prototype.uint32=function(){var t=0xffffffff;return function(){if(t=(127&this.buf[this.pos])>>>0,this.buf[this.pos++]<128||(t=(t|(127&this.buf[this.pos])<<7)>>>0,this.buf[this.pos++]<128)||(t=(t|(127&this.buf[this.pos])<<14)>>>0,this.buf[this.pos++]<128)||(t=(t|(127&this.buf[this.pos])<<21)>>>0,this.buf[this.pos++]<128)||(t=(t|(15&this.buf[this.pos])<<28)>>>0,this.buf[this.pos++]<128))return t;if((this.pos+=5)>this.len)throw this.pos=this.len,u(this,10);return t}}(),a.prototype.int32=function(){return 0|this.uint32()},a.prototype.sint32=function(){var t=this.uint32();return t>>>1^-(1&t)},a.prototype.bool=function(){return 0!==this.uint32()},a.prototype.fixed32=function(){if(this.pos+4>this.len)throw u(this,4);return p(this.buf,this.pos+=4)},a.prototype.sfixed32=function(){if(this.pos+4>this.len)throw u(this,4);return 0|p(this.buf,this.pos+=4)},a.prototype.float=function(){if(this.pos+4>this.len)throw u(this,4);var t=o.float.readFloatLE(this.buf,this.pos);return this.pos+=4,t},a.prototype.double=function(){if(this.pos+8>this.len)throw u(this,4);var t=o.float.readDoubleLE(this.buf,this.pos);return this.pos+=8,t},a.prototype.bytes=function(){var t=this.uint32(),e=this.pos,n=this.pos+t;if(n>this.len)throw u(this,t);if(this.pos+=t,Array.isArray(this.buf))return this.buf.slice(e,n);if(e===n){var i=o.Buffer;return i?i.alloc(0):new this.buf.constructor(0)}return this._slice.call(this.buf,e,n)},a.prototype.string=function(){var t=this.bytes();return s.read(t,0,t.length)},a.prototype.skip=function(t){if("number"==typeof t){if(this.pos+t>this.len)throw u(this,t);this.pos+=t}else do if(this.pos>=this.len)throw u(this);while(128&this.buf[this.pos++]);return this},a.prototype.skipType=function(t){switch(t){case 0:this.skip();break;case 1:this.skip(8);break;case 2:this.skip(this.uint32());break;case 3:for(;4!=(t=7&this.uint32());)this.skipType(t);break;case 5:this.skip(4);break;default:throw Error("invalid wire type "+t+" at offset "+this.pos)}return this},a._configure=function(t){i=t,a.create=l(),i._configure();var e=o.Long?"toLong":"toNumber";o.merge(a.prototype,{int64:function(){return c.call(this)[e](!1)},uint64:function(){return c.call(this)[e](!0)},sint64:function(){return c.call(this).zzDecode()[e](!1)},fixed64:function(){return h.call(this)[e](!0)},sfixed64:function(){return h.call(this)[e](!1)}})}},753:function(t,e,n){t.exports=r;var i=n(624);(r.prototype=Object.create(i.prototype)).constructor=r;var o=n(6339);function r(t){i.call(this,t)}r._configure=function(){o.Buffer&&(r.prototype._slice=o.Buffer.prototype.slice)},r.prototype.string=function(){var t=this.uint32();return this.buf.utf8Slice?this.buf.utf8Slice(this.pos,this.pos=Math.min(this.pos+t,this.len)):this.buf.toString("utf-8",this.pos,this.pos=Math.min(this.pos+t,this.len))},r._configure()},9818:function(t){t.exports={}},7168:function(t,e,n){e.Service=n(6252)},6252:function(t,e,n){t.exports=o;var i=n(6339);function o(t,e,n){if("function"!=typeof t)throw TypeError("rpcImpl must be a function");i.EventEmitter.call(this),this.rpcImpl=t,this.requestDelimited=!!e,this.responseDelimited=!!n}(o.prototype=Object.create(i.EventEmitter.prototype)).constructor=o,o.prototype.rpcCall=function t(e,n,o,r,s){if(!r)throw TypeError("request must be specified");var u=this;if(!s)return i.asPromise(t,u,e,n,o,r);if(!u.rpcImpl)return void setTimeout(function(){s(Error("already ended"))},0);try{return u.rpcImpl(e,n[u.requestDelimited?"encodeDelimited":"encode"](r).finish(),function(t,n){if(t)return u.emit("error",t,e),s(t);if(null===n)return void u.end(!0);if(!(n instanceof o))try{n=o[u.responseDelimited?"decodeDelimited":"decode"](n)}catch(t){return u.emit("error",t,e),s(t)}return u.emit("data",n,e),s(null,n)})}catch(t){u.emit("error",t,e),setTimeout(function(){s(t)},0);return}},o.prototype.end=function(t){return this.rpcImpl&&(t||this.rpcImpl(null,null,null),this.rpcImpl=null,this.emit("end").off()),this}},8920:function(t,e,n){t.exports=o;var i=n(6339);function o(t,e){this.lo=t>>>0,this.hi=e>>>0}var r=o.zero=new o(0,0);r.toNumber=function(){return 0},r.zzEncode=r.zzDecode=function(){return this},r.length=function(){return 1};var s=o.zeroHash="\0\0\0\0\0\0\0\0";o.fromNumber=function(t){if(0===t)return r;var e=t<0;e&&(t=-t);var n=t>>>0,i=(t-n)/0x100000000>>>0;return e&&(i=~i>>>0,n=~n>>>0,++n>0xffffffff&&(n=0,++i>0xffffffff&&(i=0))),new o(n,i)},o.from=function(t){if("number"==typeof t)return o.fromNumber(t);if(i.isString(t))if(!i.Long)return o.fromNumber(parseInt(t,10));else t=i.Long.fromString(t);return t.low||t.high?new o(t.low>>>0,t.high>>>0):r},o.prototype.toNumber=function(t){if(!t&&this.hi>>>31){var e=~this.lo+1>>>0,n=~this.hi>>>0;return e||(n=n+1>>>0),-(e+0x100000000*n)}return this.lo+0x100000000*this.hi},o.prototype.toLong=function(t){return i.Long?new i.Long(0|this.lo,0|this.hi,!!t):{low:0|this.lo,high:0|this.hi,unsigned:!!t}};var u=String.prototype.charCodeAt;o.fromHash=function(t){return t===s?r:new o((u.call(t,0)|u.call(t,1)<<8|u.call(t,2)<<16|u.call(t,3)<<24)>>>0,(u.call(t,4)|u.call(t,5)<<8|u.call(t,6)<<16|u.call(t,7)<<24)>>>0)},o.prototype.toHash=function(){return String.fromCharCode(255&this.lo,this.lo>>>8&255,this.lo>>>16&255,this.lo>>>24,255&this.hi,this.hi>>>8&255,this.hi>>>16&255,this.hi>>>24)},o.prototype.zzEncode=function(){var t=this.hi>>31;return this.hi=((this.hi<<1|this.lo>>>31)^t)>>>0,this.lo=(this.lo<<1^t)>>>0,this},o.prototype.zzDecode=function(){var t=-(1&this.lo);return this.lo=((this.lo>>>1|this.hi<<31)^t)>>>0,this.hi=(this.hi>>>1^t)>>>0,this},o.prototype.length=function(){var t=this.lo,e=(this.lo>>>28|this.hi<<4)>>>0,n=this.hi>>>24;return 0===n?0===e?t<16384?t<128?1:2:t<2097152?3:4:e<16384?e<128?5:6:e<2097152?7:8:n<128?9:10}},6339:function(t,e,n){var i=e;function o(t,e,n){for(var i=Object.keys(e),o=0;o0)},i.Buffer=function(){try{var t=i.inquire("buffer").Buffer;return t.prototype.utf8Write?t:null}catch(t){return null}}(),i._Buffer_from=null,i._Buffer_allocUnsafe=null,i.newBuffer=function(t){return"number"==typeof t?i.Buffer?i._Buffer_allocUnsafe(t):new i.Array(t):i.Buffer?i._Buffer_from(t):"undefined"==typeof Uint8Array?t:new Uint8Array(t)},i.Array="undefined"!=typeof Uint8Array?Uint8Array:Array,i.Long=i.global.dcodeIO&&i.global.dcodeIO.Long||i.global.Long||i.inquire("long"),i.key2Re=/^true|false|0|1$/,i.key32Re=/^-?(?:0|[1-9][0-9]*)$/,i.key64Re=/^(?:[\\x00-\\xff]{8}|-?(?:0|[1-9][0-9]*))$/,i.longToHash=function(t){return t?i.LongBits.from(t).toHash():i.LongBits.zeroHash},i.longFromHash=function(t,e){var n=i.LongBits.fromHash(t);return i.Long?i.Long.fromBits(n.lo,n.hi,e):n.toNumber(!!e)},i.merge=o,i.lcFirst=function(t){return t.charAt(0).toLowerCase()+t.substring(1)},i.newError=r,i.ProtocolError=r("ProtocolError"),i.oneOfGetter=function(t){for(var e={},n=0;n-1;--n)if(1===e[t[n]]&&void 0!==this[t[n]]&&null!==this[t[n]])return t[n]}},i.oneOfSetter=function(t){return function(e){for(var n=0;n127;)e[n++]=127&t|128,t>>>=7;e[n]=t}function g(t,e){this.len=t,this.next=void 0,this.val=e}function d(t,e,n){for(;t.hi;)e[n++]=127&t.lo|128,t.lo=(t.lo>>>7|t.hi<<25)>>>0,t.hi>>>=7;for(;t.lo>127;)e[n++]=127&t.lo|128,t.lo=t.lo>>>7;e[n++]=t.lo}function m(t,e,n){e[n]=255&t,e[n+1]=t>>>8&255,e[n+2]=t>>>16&255,e[n+3]=t>>>24}c.create=p(),c.alloc=function(t){return new o.Array(t)},o.Array!==Array&&(c.alloc=o.pool(c.alloc,o.Array.prototype.subarray)),c.prototype._push=function(t,e,n){return this.tail=this.tail.next=new a(t,e,n),this.len+=e,this},g.prototype=Object.create(a.prototype),g.prototype.fn=y,c.prototype.uint32=function(t){return this.len+=(this.tail=this.tail.next=new g((t>>>=0)<128?1:t<16384?2:t<2097152?3:t<0x10000000?4:5,t)).len,this},c.prototype.int32=function(t){return t<0?this._push(d,10,r.fromNumber(t)):this.uint32(t)},c.prototype.sint32=function(t){return this.uint32((t<<1^t>>31)>>>0)},c.prototype.uint64=function(t){var e=r.from(t);return this._push(d,e.length(),e)},c.prototype.int64=c.prototype.uint64,c.prototype.sint64=function(t){var e=r.from(t).zzEncode();return this._push(d,e.length(),e)},c.prototype.bool=function(t){return this._push(h,1,+!!t)},c.prototype.fixed32=function(t){return this._push(m,4,t>>>0)},c.prototype.sfixed32=c.prototype.fixed32,c.prototype.fixed64=function(t){var e=r.from(t);return this._push(m,4,e.lo)._push(m,4,e.hi)},c.prototype.sfixed64=c.prototype.fixed64,c.prototype.float=function(t){return this._push(o.float.writeFloatLE,4,t)},c.prototype.double=function(t){return this._push(o.float.writeDoubleLE,8,t)};var b=o.Array.prototype.set?function(t,e,n){e.set(t,n)}:function(t,e,n){for(var i=0;i>>0;if(!e)return this._push(h,1,0);if(o.isString(t)){var n=c.alloc(e=s.length(t));s.decode(t,n,0),t=n}return this.uint32(e)._push(b,e,t)},c.prototype.string=function(t){var e=u.length(t);return e?this.uint32(e)._push(u.write,e,t):this._push(h,1,0)},c.prototype.fork=function(){return this.states=new l(this),this.head=this.tail=new a(f,0,0),this.len=0,this},c.prototype.reset=function(){return this.states?(this.head=this.states.head,this.tail=this.states.tail,this.len=this.states.len,this.states=this.states.next):(this.head=this.tail=new a(f,0,0),this.len=0),this},c.prototype.ldelim=function(){var t=this.head,e=this.tail,n=this.len;return this.reset().uint32(n),n&&(this.tail.next=t.next,this.tail=e,this.len+=n),this},c.prototype.finish=function(){for(var t=this.head.next,e=this.constructor.alloc(this.len),n=0;t;)t.fn(t.val,e,n),n+=t.len,t=t.next;return e},c._configure=function(t){i=t,c.create=p(),i._configure()}},1405:function(t,e,n){t.exports=r;var i=n(8332);(r.prototype=Object.create(i.prototype)).constructor=r;var o=n(6339);function r(){i.call(this)}function s(t,e,n){t.length<40?o.utf8.write(t,e,n):e.utf8Write?e.utf8Write(t,n):e.write(t,n)}r._configure=function(){r.alloc=o._Buffer_allocUnsafe,r.writeBytesBuffer=o.Buffer&&o.Buffer.prototype instanceof Uint8Array&&"set"===o.Buffer.prototype.set.name?function(t,e,n){e.set(t,n)}:function(t,e,n){if(t.copy)t.copy(e,n,0,t.length);else for(var i=0;i>>0;return this.uint32(e),e&&this._push(r.writeBytesBuffer,e,t),this},r.prototype.string=function(t){var e=o.Buffer.byteLength(t);return this.uint32(e),e&&this._push(s,e,t),this},r._configure()}},__webpack_module_cache__={};function __webpack_require__(t){var e=__webpack_module_cache__[t];if(void 0!==e)return e.exports;var n=__webpack_module_cache__[t]={exports:{}};return __webpack_modules__[t].call(n.exports,n,n.exports,__webpack_require__),n.exports}var __webpack_exports__=__webpack_require__(344);module.exports=__webpack_exports__})(); \ No newline at end of file +(()=>{"use strict";var __webpack_modules__={"./@datadog/sketches-js/dist/ddsketch/DDSketch.js":function(t,e,n){var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0}),e.LogCollapsingHighestDenseDDSketch=e.LogCollapsingLowestDenseDDSketch=e.DDSketch=void 0;var o=n("./@datadog/sketches-js/dist/ddsketch/store/index.js"),r=n("./@datadog/sketches-js/dist/ddsketch/mapping/index.js"),s=.01,u=2048,a=function(){function t(t){var e=t.mapping,n=t.store,i=t.negativeStore,o=t.zeroCount;this.mapping=e,this.store=n,this.negativeStore=i,this.zeroCount=o,this.count=this.negativeStore.count+this.zeroCount+this.store.count,this.min=1/0,this.max=-1/0,this.sum=0}return t.prototype.accept=function(t,e){if(void 0===e&&(e=1),e<=0)throw Error("Weight must be a positive number");if(t>this.mapping.minPossible){var n=this.mapping.key(t);this.store.add(n,e)}else if(t<-this.mapping.minPossible){var n=this.mapping.key(-t);this.negativeStore.add(n,e)}else this.zeroCount+=e;this.count+=e,this.sum+=t*e,tthis.max&&(this.max=t)},t.prototype.getValueAtQuantile=function(t){if(t<0||t>1||0===this.count)return NaN;var e=t*(this.count-1),n=0;if(ethis.max&&(this.max=t.max)}},t.prototype.mergeable=function(t){return this.mapping.gamma===t.mapping.gamma},t.prototype._copy=function(t){this.store.copy(t.store),this.negativeStore.copy(t.negativeStore),this.zeroCount=t.zeroCount,this.min=t.min,this.max=t.max,this.count=t.count,this.sum=t.sum},t.prototype.toProto=function(){var t=n("./@datadog/sketches-js/dist/ddsketch/proto/compiled.js").DDSketch,e=t.create({mapping:this.mapping.toProto(),positiveValues:this.store.toProto(),negativeValues:this.negativeStore.toProto(),zeroCount:this.zeroCount});return t.encode(e).finish()},t.fromProto=function(e){var i=n("./@datadog/sketches-js/dist/ddsketch/proto/compiled.js").DDSketch.decode(e);return new t({mapping:r.KeyMapping.fromProto(i.mapping),store:o.DenseStore.fromProto(i.positiveValues),negativeStore:o.DenseStore.fromProto(i.negativeValues),zeroCount:i.zeroCount})},t}(),f={relativeAccuracy:s};e.DDSketch=function(t){function e(e){var n=(void 0===e?f:e).relativeAccuracy,i=void 0===n?s:n,u=new r.LogarithmicMapping(i),a=new o.DenseStore,c=new o.DenseStore;return t.call(this,{mapping:u,store:a,negativeStore:c,zeroCount:0})||this}return i(e,t),e}(a),e.LogCollapsingLowestDenseDDSketch=function(t){function e(e){var n=void 0===e?f:e,i=n.relativeAccuracy,a=void 0===i?s:i,c=n.binLimit,p=void 0===c?u:c,l=new r.LogarithmicMapping(a),h=new o.CollapsingLowestDenseStore(p),d=new o.CollapsingLowestDenseStore(p);return t.call(this,{mapping:l,store:h,negativeStore:d,zeroCount:0})||this}return i(e,t),e}(a),e.LogCollapsingHighestDenseDDSketch=function(t){function e(e){var n=void 0===e?f:e,i=n.relativeAccuracy,a=void 0===i?s:i,c=n.binLimit,p=void 0===c?u:c,l=new r.LogarithmicMapping(a),h=new o.CollapsingHighestDenseStore(p),d=new o.CollapsingHighestDenseStore(p);return t.call(this,{mapping:l,store:h,negativeStore:d,zeroCount:0})||this}return i(e,t),e}(a)},"./@datadog/sketches-js/dist/ddsketch/index.js":function(t,e,n){var i=this&&this.__createBinding||(Object.create?function(t,e,n,i){void 0===i&&(i=n);var o=Object.getOwnPropertyDescriptor(e,n);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,i,o)}:function(t,e,n,i){void 0===i&&(i=n),t[i]=e[n]}),o=this&&this.__exportStar||function(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||i(e,t,n)};Object.defineProperty(e,"__esModule",{value:!0}),o(n("./@datadog/sketches-js/dist/ddsketch/DDSketch.js"),e)},"./@datadog/sketches-js/dist/ddsketch/mapping/CubicallyInterpolatedMapping.js":function(t,e,n){var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0}),e.CubicallyInterpolatedMapping=void 0;var o=n("./@datadog/sketches-js/dist/ddsketch/mapping/KeyMapping.js"),r=n("./@datadog/sketches-js/dist/ddsketch/math.js");e.CubicallyInterpolatedMapping=function(t){function e(e,n){void 0===n&&(n=0);var i=t.call(this,e,n)||this;return i.A=6/35,i.B=-.6,i.C=10/7,i._multiplier/=i.C,i}return i(e,t),e.prototype._cubicLog2Approx=function(t){var e=(0,r.frexp)(t),n=e[0],i=e[1],o=2*n-1;return((this.A*o+this.B)*o+this.C)*o+(i-1)},e.prototype._cubicExp2Approx=function(t){var e=Math.floor(t),n=this.B*this.B-3*this.A*this.C,i=2*this.B*this.B*this.B-9*this.A*this.B*this.C-27*this.A*this.A*(t-e),o=Math.cbrt((i-Math.sqrt(i*i-4*n*n*n))/2),s=(-(this.B+o+n/o)/(3*this.A)+1)/2;return(0,r.ldexp)(s,e+1)},e.prototype._logGamma=function(t){return this._cubicLog2Approx(t)*this._multiplier},e.prototype._powGamma=function(t){return this._cubicExp2Approx(t/this._multiplier)},e.prototype._protoInterpolation=function(){return n("./@datadog/sketches-js/dist/ddsketch/proto/compiled.js").IndexMapping.Interpolation.CUBIC},e}(o.KeyMapping)},"./@datadog/sketches-js/dist/ddsketch/mapping/KeyMapping.js":function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.KeyMapping=void 0;var i=n("./@datadog/sketches-js/dist/ddsketch/mapping/index.js"),o=11125369292536007e-324,r=Number.MAX_VALUE;e.KeyMapping=function(){function t(t,e){if(void 0===e&&(e=0),t<=0||t>=1)throw Error("Relative accuracy must be between 0 and 1 when initializing a KeyMapping");this.relativeAccuracy=t,this._offset=e;var n=2*t/(1-t);this.gamma=1+n,this._multiplier=1/Math.log1p(n),this.minPossible=o*this.gamma,this.maxPossible=r/this.gamma}return t.fromGammaOffset=function(t,e){return new this((t-1)/(t+1),e)},t.prototype.key=function(t){return Math.ceil(this._logGamma(t))+this._offset},t.prototype.value=function(t){return this._powGamma(t-this._offset)*(2/(1+this.gamma))},t.prototype.toProto=function(){return n("./@datadog/sketches-js/dist/ddsketch/proto/compiled.js").IndexMapping.create({gamma:this.gamma,indexOffset:this._offset,interpolation:this._protoInterpolation()})},t.fromProto=function(t){if(!t||null==t.gamma||null==t.indexOffset)throw Error("Failed to decode mapping from protobuf");var e=n("./@datadog/sketches-js/dist/ddsketch/proto/compiled.js").IndexMapping.Interpolation,o=t.interpolation,r=t.gamma,s=t.indexOffset;switch(o){case e.NONE:return i.LogarithmicMapping.fromGammaOffset(r,s);case e.LINEAR:return i.LinearlyInterpolatedMapping.fromGammaOffset(r,s);case e.CUBIC:return i.CubicallyInterpolatedMapping.fromGammaOffset(r,s);default:throw Error("Unrecognized mapping when decoding from protobuf")}},t.prototype._logGamma=function(t){return Math.log2(t)*this._multiplier},t.prototype._powGamma=function(t){return Math.pow(2,t/this._multiplier)},t.prototype._protoInterpolation=function(){return n("./@datadog/sketches-js/dist/ddsketch/proto/compiled.js").IndexMapping.Interpolation.NONE},t}()},"./@datadog/sketches-js/dist/ddsketch/mapping/LinearlyInterpolatedMapping.js":function(t,e,n){var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0}),e.LinearlyInterpolatedMapping=void 0;var o=n("./@datadog/sketches-js/dist/ddsketch/mapping/KeyMapping.js"),r=n("./@datadog/sketches-js/dist/ddsketch/math.js");e.LinearlyInterpolatedMapping=function(t){function e(e,n){return void 0===n&&(n=0),t.call(this,e,n)||this}return i(e,t),e.prototype._log2Approx=function(t){var e=(0,r.frexp)(t);return 2*e[0]-1+(e[1]-1)},e.prototype._exp2Approx=function(t){var e=Math.floor(t)+1,n=(t-e+2)/2;return(0,r.ldexp)(n,e)},e.prototype._logGamma=function(t){return Math.log2(t)*this._multiplier},e.prototype._powGamma=function(t){return Math.pow(2,t/this._multiplier)},e.prototype._protoInterpolation=function(){return n("./@datadog/sketches-js/dist/ddsketch/proto/compiled.js").IndexMapping.Interpolation.LINEAR},e}(o.KeyMapping)},"./@datadog/sketches-js/dist/ddsketch/mapping/LogarithmicMapping.js":function(t,e,n){var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0}),e.LogarithmicMapping=void 0,e.LogarithmicMapping=function(t){function e(e,n){void 0===n&&(n=0);var i=t.call(this,e,n)||this;return i._multiplier*=Math.log(2),i}return i(e,t),e.prototype._logGamma=function(t){return Math.log2(t)*this._multiplier},e.prototype._powGamma=function(t){return Math.pow(2,t/this._multiplier)},e.prototype._protoInterpolation=function(){return n("./@datadog/sketches-js/dist/ddsketch/proto/compiled.js").IndexMapping.Interpolation.NONE},e}(n("./@datadog/sketches-js/dist/ddsketch/mapping/KeyMapping.js").KeyMapping)},"./@datadog/sketches-js/dist/ddsketch/mapping/index.js":function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.CubicallyInterpolatedMapping=e.LinearlyInterpolatedMapping=e.LogarithmicMapping=e.KeyMapping=void 0;var i=n("./@datadog/sketches-js/dist/ddsketch/mapping/KeyMapping.js");Object.defineProperty(e,"KeyMapping",{enumerable:!0,get:function(){return i.KeyMapping}});var o=n("./@datadog/sketches-js/dist/ddsketch/mapping/LogarithmicMapping.js");Object.defineProperty(e,"LogarithmicMapping",{enumerable:!0,get:function(){return o.LogarithmicMapping}});var r=n("./@datadog/sketches-js/dist/ddsketch/mapping/LinearlyInterpolatedMapping.js");Object.defineProperty(e,"LinearlyInterpolatedMapping",{enumerable:!0,get:function(){return r.LinearlyInterpolatedMapping}});var s=n("./@datadog/sketches-js/dist/ddsketch/mapping/CubicallyInterpolatedMapping.js");Object.defineProperty(e,"CubicallyInterpolatedMapping",{enumerable:!0,get:function(){return s.CubicallyInterpolatedMapping}})},"./@datadog/sketches-js/dist/ddsketch/math.js":function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.ldexp=e.frexp=void 0,e.frexp=function(t){if(0===t||!Number.isFinite(t))return[t,0];for(var e=Math.abs(t),n=Math.max(-1023,Math.floor(Math.log2(e))+1),i=e*Math.pow(2,-n);i<.5;)i*=2,n--;for(;i>=1;)i*=.5,n++;return t<0&&(i=-i),[i,n]},e.ldexp=function(t,e){for(var n=Math.min(3,Math.ceil(Math.abs(e)/1023)),i=t,o=0;o>>3){case 1:i.mapping=u.IndexMapping.decode(t,t.uint32());break;case 2:i.positiveValues=u.Store.decode(t,t.uint32());break;case 3:i.negativeValues=u.Store.decode(t,t.uint32());break;case 4:i.zeroCount=t.double();break;default:t.skipType(7&r)}}return i},t.decodeDelimited=function(t){return t instanceof o||(t=new o(t)),this.decode(t,t.uint32())},t.verify=function(t){if("object"!=typeof t||null===t)return"object expected";if(null!=t.mapping&&t.hasOwnProperty("mapping")){var e=u.IndexMapping.verify(t.mapping);if(e)return"mapping."+e}if(null!=t.positiveValues&&t.hasOwnProperty("positiveValues")){var e=u.Store.verify(t.positiveValues);if(e)return"positiveValues."+e}if(null!=t.negativeValues&&t.hasOwnProperty("negativeValues")){var e=u.Store.verify(t.negativeValues);if(e)return"negativeValues."+e}return null!=t.zeroCount&&t.hasOwnProperty("zeroCount")&&"number"!=typeof t.zeroCount?"zeroCount: number expected":null},t.fromObject=function(t){if(t instanceof u.DDSketch)return t;var e=new u.DDSketch;if(null!=t.mapping){if("object"!=typeof t.mapping)throw TypeError(".DDSketch.mapping: object expected");e.mapping=u.IndexMapping.fromObject(t.mapping)}if(null!=t.positiveValues){if("object"!=typeof t.positiveValues)throw TypeError(".DDSketch.positiveValues: object expected");e.positiveValues=u.Store.fromObject(t.positiveValues)}if(null!=t.negativeValues){if("object"!=typeof t.negativeValues)throw TypeError(".DDSketch.negativeValues: object expected");e.negativeValues=u.Store.fromObject(t.negativeValues)}return null!=t.zeroCount&&(e.zeroCount=Number(t.zeroCount)),e},t.toObject=function(t,e){e||(e={});var n={};return e.defaults&&(n.mapping=null,n.positiveValues=null,n.negativeValues=null,n.zeroCount=0),null!=t.mapping&&t.hasOwnProperty("mapping")&&(n.mapping=u.IndexMapping.toObject(t.mapping,e)),null!=t.positiveValues&&t.hasOwnProperty("positiveValues")&&(n.positiveValues=u.Store.toObject(t.positiveValues,e)),null!=t.negativeValues&&t.hasOwnProperty("negativeValues")&&(n.negativeValues=u.Store.toObject(t.negativeValues,e)),null!=t.zeroCount&&t.hasOwnProperty("zeroCount")&&(n.zeroCount=e.json&&!isFinite(t.zeroCount)?String(t.zeroCount):t.zeroCount),n},t.prototype.toJSON=function(){return this.constructor.toObject(this,i.util.toJSONOptions)},t}(),u.IndexMapping=function(){function t(t){if(t)for(var e=Object.keys(t),n=0;n>>3){case 1:i.gamma=t.double();break;case 2:i.indexOffset=t.double();break;case 3:i.interpolation=t.int32();break;default:t.skipType(7&r)}}return i},t.decodeDelimited=function(t){return t instanceof o||(t=new o(t)),this.decode(t,t.uint32())},t.verify=function(t){if("object"!=typeof t||null===t)return"object expected";if(null!=t.gamma&&t.hasOwnProperty("gamma")&&"number"!=typeof t.gamma)return"gamma: number expected";if(null!=t.indexOffset&&t.hasOwnProperty("indexOffset")&&"number"!=typeof t.indexOffset)return"indexOffset: number expected";if(null!=t.interpolation&&t.hasOwnProperty("interpolation"))switch(t.interpolation){default:return"interpolation: enum value expected";case 0:case 1:case 2:case 3:}return null},t.fromObject=function(t){if(t instanceof u.IndexMapping)return t;var e=new u.IndexMapping;switch(null!=t.gamma&&(e.gamma=Number(t.gamma)),null!=t.indexOffset&&(e.indexOffset=Number(t.indexOffset)),t.interpolation){case"NONE":case 0:e.interpolation=0;break;case"LINEAR":case 1:e.interpolation=1;break;case"QUADRATIC":case 2:e.interpolation=2;break;case"CUBIC":case 3:e.interpolation=3}return e},t.toObject=function(t,e){e||(e={});var n={};return e.defaults&&(n.gamma=0,n.indexOffset=0,n.interpolation=e.enums===String?"NONE":0),null!=t.gamma&&t.hasOwnProperty("gamma")&&(n.gamma=e.json&&!isFinite(t.gamma)?String(t.gamma):t.gamma),null!=t.indexOffset&&t.hasOwnProperty("indexOffset")&&(n.indexOffset=e.json&&!isFinite(t.indexOffset)?String(t.indexOffset):t.indexOffset),null!=t.interpolation&&t.hasOwnProperty("interpolation")&&(n.interpolation=e.enums===String?u.IndexMapping.Interpolation[t.interpolation]:t.interpolation),n},t.prototype.toJSON=function(){return this.constructor.toObject(this,i.util.toJSONOptions)},t.Interpolation=function(){var t={},e=Object.create(t);return e[t[0]="NONE"]=0,e[t[1]="LINEAR"]=1,e[t[2]="QUADRATIC"]=2,e[t[3]="CUBIC"]=3,e}(),t}(),u.Store=function(){function t(t){if(this.binCounts={},this.contiguousBinCounts=[],t)for(var e=Object.keys(t),n=0;n>>3){case 1:a.binCounts===s.emptyObject&&(a.binCounts={});var c=t.uint32()+t.pos;for(n=0,i=0;t.pos>>3){case 1:n=t.sint32();break;case 2:i=t.double();break;default:t.skipType(7&p)}}a.binCounts[n]=i;break;case 2:if(a.contiguousBinCounts&&a.contiguousBinCounts.length||(a.contiguousBinCounts=[]),(7&f)==2)for(var c=t.uint32()+t.pos;t.posthis.maxKey)&&this._extendRange(t.minKey,t.maxKey);var e=t.maxKey-t.offset+1,n=Math.max(this.maxKey+1,t.minKey)-t.offset;if(e>n){var i=(0,r.sumOfRange)(t.bins,n,e);this.bins[this.length()-1]+=i}else n=e;for(var o=t.minKey;othis.length())if((e=t+this.length()+1)<=this.minKey)this.offset=t,this.maxKey=e,this.bins.fill(0),this.bins[this.length()-1]=this.count;else{var n=this.offset-t;if(n>0){var i=e-this.offset+1,o=this.maxKey-this.offset+1,s=(0,r.sumOfRange)(this.bins,i,o);this.bins.fill(0,i,o),this.bins[i-1]+=s,this.maxKey=e,this._shiftBins(n)}else this.maxKey=e,this._shiftBins(n);this.minKey=t,this.isCollapsed=!0}else this._centerBins(t,e),this.minKey=t,this.maxKey=e},e.prototype._getIndex=function(t){if(tthis.maxKey&&this._extendRange(t);return t-this.offset},e}(o.DenseStore)},"./@datadog/sketches-js/dist/ddsketch/store/CollapsingLowestDenseStore.js":function(t,e,n){var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0}),e.CollapsingLowestDenseStore=void 0;var o=n("./@datadog/sketches-js/dist/ddsketch/store/DenseStore.js"),r=n("./@datadog/sketches-js/dist/ddsketch/store/util.js");e.CollapsingLowestDenseStore=function(t){function e(e,n){var i=t.call(this,n)||this;return i.binLimit=e,i.isCollapsed=!1,i}return i(e,t),e.prototype.merge=function(t){if(0!==t.count){if(0===this.count)return void this.copy(t);(t.minKeythis.maxKey)&&this._extendRange(t.minKey,t.maxKey);var e=t.minKey-t.offset,n=Math.min(this.minKey,t.maxKey+1)-t.offset;if(n>e){var i=(0,r.sumOfRange)(t.bins,e,n);this.bins[0]+=i}else n=e;for(var o=n+t.offset;othis.length()){if((t=e-this.length()+1)>=this.maxKey)this.offset=t,this.minKey=t,this.bins.fill(0),this.bins[0]=this.count;else{var n=this.offset-t;if(n<0){var i=this.minKey-this.offset,o=t-this.offset,s=(0,r.sumOfRange)(this.bins,i,o);this.bins.fill(0,i,o),this.bins[o]+=s,this.minKey=t,this._shiftBins(n)}else this.minKey=t,this._shiftBins(n)}this.maxKey=e,this.isCollapsed=!0}else this._centerBins(t,e),this.minKey=t,this.maxKey=e},e.prototype._getIndex=function(t){if(tthis.maxKey&&this._extendRange(t);return t-this.offset},e}(o.DenseStore)},"./@datadog/sketches-js/dist/ddsketch/store/DenseStore.js":function(t,e,n){var i=this&&this.__spreadArray||function(t,e,n){if(n||2==arguments.length)for(var i,o=0,r=e.length;ot||!e&&n>=t+1)return i+this.offset;return this.maxKey},t.prototype.merge=function(t){if(0!==t.count){if(0===this.count)return void this.copy(t);(t.minKeythis.maxKey)&&this._extendRange(t.minKey,t.maxKey);var e=t.minKey-t.offset,n=Math.min(this.minKey,t.maxKey+1)-t.offset;if(n>e){var i=(0,o.sumOfRange)(t.bins,e,n);this.bins[0]+=i}else n=e;for(var r=n+t.offset;r0?(this.bins=this.bins.slice(0,-t),(e=this.bins).unshift.apply(e,Array(t).fill(0))):(this.bins=this.bins.slice(Math.abs(t)),(n=this.bins).push.apply(n,Array(Math.abs(t)).fill(0))),this.offset-=t},t.prototype._centerBins=function(t,e){var n=t+Math.floor((e-t+1)/2);this._shiftBins(Math.floor(this.offset+this.length()/2)-n)},t.prototype._extendRange=function(t,e){e=e||t;var n,i=Math.min(t,e,this.minKey),o=Math.max(t,e,this.maxKey);if(0===this.length())this.bins=Array(this._getNewLength(i,o)).fill(0),this.offset=i,this._adjust(i,o);else if(i>=this.minKey&&othis.length()&&(n=this.bins).push.apply(n,Array(r-this.length()).fill(0)),this._adjust(i,o)}},t.prototype._getIndex=function(t){return tthis.maxKey&&this._extendRange(t),t-this.offset},t.prototype.toProto=function(){return n("./@datadog/sketches-js/dist/ddsketch/proto/compiled.js").Store.create({contiguousBinCounts:this.bins,contiguousBinIndexOffset:this.offset})},t.fromProto=function(t){if(!t||null==t.contiguousBinCounts||null==t.contiguousBinIndexOffset)throw Error("Failed to decode store from protobuf");var e=new this,n=t.contiguousBinIndexOffset;e.offset=n;for(var i=0,o=t.contiguousBinCounts;i1&&"="===t.charAt(e);)++n;return Math.ceil(3*t.length)/4-n};for(var i=Array(64),o=Array(123),r=0;r<64;)o[i[r]=r<26?r+65:r<52?r+71:r<62?r-4:r-59|43]=r++;n.encode=function(t,e,n){for(var o,r=null,s=[],u=0,a=0;e>2],o=(3&f)<<4,a=1;break;case 1:s[u++]=i[o|f>>4],o=(15&f)<<2,a=2;break;case 2:s[u++]=i[o|f>>6],s[u++]=i[63&f],a=0}u>8191&&((r||(r=[])).push(String.fromCharCode.apply(String,s)),u=0)}return(a&&(s[u++]=i[o],s[u++]=61,1===a&&(s[u++]=61)),r)?(u&&r.push(String.fromCharCode.apply(String,s.slice(0,u))),r.join("")):String.fromCharCode.apply(String,s.slice(0,u))};var s="invalid encoding";n.decode=function(t,e,n){for(var i,r=n,u=0,a=0;a1)break;if(void 0===(f=o[f]))throw Error(s);switch(u){case 0:i=f,u=1;break;case 1:e[n++]=i<<2|(48&f)>>4,i=f,u=2;break;case 2:e[n++]=(15&i)<<4|(60&f)>>2,i=f,u=3;break;case 3:e[n++]=(3&i)<<6|f,u=0}}if(1===u)throw Error(s);return n-r},n.test=function(t){return/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(t)}},"./@protobufjs/eventemitter/index.js":function(t){function e(){this._listeners={}}t.exports=e,e.prototype.on=function(t,e,n){return(this._listeners[t]||(this._listeners[t]=[])).push({fn:e,ctx:n||this}),this},e.prototype.off=function(t,e){if(void 0===t)this._listeners={};else if(void 0===e)this._listeners[t]=[];else for(var n=this._listeners[t],i=0;i0?0:0x80000000,n,i);else if(isNaN(e))t(0x7fc00000,n,i);else if(e>34028234663852886e22)t((o<<31|0x7f800000)>>>0,n,i);else if(e<11754943508222875e-54)t((o<<31|Math.round(e/1401298464324817e-60))>>>0,n,i);else{var r=Math.floor(Math.log(e)/Math.LN2),s=8388607&Math.round(e*Math.pow(2,-r)*8388608);t((o<<31|r+127<<23|s)>>>0,n,i)}}function s(t,e,n){var i=t(e,n),o=(i>>31)*2+1,r=i>>>23&255,s=8388607&i;return 255===r?s?NaN:1/0*o:0===r?1401298464324817e-60*o*s:o*Math.pow(2,r-150)*(s+8388608)}t.writeFloatLE=e.bind(null,n),t.writeFloatBE=e.bind(null,i),t.readFloatLE=s.bind(null,o),t.readFloatBE=s.bind(null,r)}(),"undefined"!=typeof Float64Array?!function(){var e=new Float64Array([-0]),n=new Uint8Array(e.buffer),i=128===n[7];function o(t,i,o){e[0]=t,i[o]=n[0],i[o+1]=n[1],i[o+2]=n[2],i[o+3]=n[3],i[o+4]=n[4],i[o+5]=n[5],i[o+6]=n[6],i[o+7]=n[7]}function r(t,i,o){e[0]=t,i[o]=n[7],i[o+1]=n[6],i[o+2]=n[5],i[o+3]=n[4],i[o+4]=n[3],i[o+5]=n[2],i[o+6]=n[1],i[o+7]=n[0]}function s(t,i){return n[0]=t[i],n[1]=t[i+1],n[2]=t[i+2],n[3]=t[i+3],n[4]=t[i+4],n[5]=t[i+5],n[6]=t[i+6],n[7]=t[i+7],e[0]}function u(t,i){return n[7]=t[i],n[6]=t[i+1],n[5]=t[i+2],n[4]=t[i+3],n[3]=t[i+4],n[2]=t[i+5],n[1]=t[i+6],n[0]=t[i+7],e[0]}t.writeDoubleLE=i?o:r,t.writeDoubleBE=i?r:o,t.readDoubleLE=i?s:u,t.readDoubleBE=i?u:s}():!function(){function e(t,e,n,i,o,r){var s,u=+(i<0);if(u&&(i=-i),0===i)t(0,o,r+e),t(1/i>0?0:0x80000000,o,r+n);else if(isNaN(i))t(0,o,r+e),t(0x7ff80000,o,r+n);else if(i>17976931348623157e292)t(0,o,r+e),t((u<<31|0x7ff00000)>>>0,o,r+n);else if(i<22250738585072014e-324)t((s=i/5e-324)>>>0,o,r+e),t((u<<31|s/0x100000000)>>>0,o,r+n);else{var a=Math.floor(Math.log(i)/Math.LN2);1024===a&&(a=1023),t(0x10000000000000*(s=i*Math.pow(2,-a))>>>0,o,r+e),t((u<<31|a+1023<<20|1048576*s&1048575)>>>0,o,r+n)}}function s(t,e,n,i,o){var r=t(i,o+e),s=t(i,o+n),u=(s>>31)*2+1,a=s>>>20&2047,f=0x100000000*(1048575&s)+r;return 2047===a?f?NaN:1/0*u:0===a?5e-324*u*f:u*Math.pow(2,a-1075)*(f+0x10000000000000)}t.writeDoubleLE=e.bind(null,n,0,4),t.writeDoubleBE=e.bind(null,i,4,0),t.readDoubleLE=s.bind(null,o,0,4),t.readDoubleBE=s.bind(null,r,4,0)}(),t}function n(t,e,n){e[n]=255&t,e[n+1]=t>>>8&255,e[n+2]=t>>>16&255,e[n+3]=t>>>24}function i(t,e,n){e[n]=t>>>24,e[n+1]=t>>>16&255,e[n+2]=t>>>8&255,e[n+3]=255&t}function o(t,e){return(t[e]|t[e+1]<<8|t[e+2]<<16|t[e+3]<<24)>>>0}function r(t,e){return(t[e]<<24|t[e+1]<<16|t[e+2]<<8|t[e+3])>>>0}t.exports=e(e)},"./@protobufjs/inquire/index.js":function(module){module.exports=inquire;function inquire(moduleName){try{var mod=eval("quire".replace(/^/,"re"))(moduleName);if(mod&&(mod.length||Object.keys(mod).length))return mod}catch(e){}return null}},"./@protobufjs/pool/index.js":function(t){t.exports=e;function e(t,e,n){var i=n||8192,o=i>>>1,r=null,s=i;return function(n){if(n<1||n>o)return t(n);s+n>i&&(r=t(i),s=0);var u=e.call(r,s,s+=n);return 7&s&&(s=(7|s)+1),u}}},"./@protobufjs/utf8/index.js":function(t,e){var n=e;n.length=function(t){for(var e=0,n=0,i=0;i191&&i<224?r[s++]=(31&i)<<6|63&t[e++]:i>239&&i<365?(i=((7&i)<<18|(63&t[e++])<<12|(63&t[e++])<<6|63&t[e++])-65536,r[s++]=55296+(i>>10),r[s++]=56320+(1023&i)):r[s++]=(15&i)<<12|(63&t[e++])<<6|63&t[e++],s>8191&&((o||(o=[])).push(String.fromCharCode.apply(String,r)),s=0);return o?(s&&o.push(String.fromCharCode.apply(String,r.slice(0,s))),o.join("")):String.fromCharCode.apply(String,r.slice(0,s))},n.write=function(t,e,n){for(var i,o,r=n,s=0;s>6|192:((64512&i)==55296&&(64512&(o=t.charCodeAt(s+1)))==56320?(i=65536+((1023&i)<<10)+(1023&o),++s,e[n++]=i>>18|240,e[n++]=i>>12&63|128):e[n++]=i>>12|224,e[n++]=i>>6&63|128),e[n++]=63&i|128);return n-r}},"./protobufjs/minimal.js":function(t,e,n){t.exports=n("./protobufjs/src/index-minimal.js")},"./protobufjs/src/index-minimal.js":function(t,e,n){var i=e;function o(){i.util._configure(),i.Writer._configure(i.BufferWriter),i.Reader._configure(i.BufferReader)}i.build="minimal",i.Writer=n("./protobufjs/src/writer.js"),i.BufferWriter=n("./protobufjs/src/writer_buffer.js"),i.Reader=n("./protobufjs/src/reader.js"),i.BufferReader=n("./protobufjs/src/reader_buffer.js"),i.util=n("./protobufjs/src/util/minimal.js"),i.rpc=n("./protobufjs/src/rpc.js"),i.roots=n("./protobufjs/src/roots.js"),i.configure=o,o()},"./protobufjs/src/reader.js":function(t,e,n){t.exports=a;var i,o=n("./protobufjs/src/util/minimal.js"),r=o.LongBits,s=o.utf8;function u(t,e){return RangeError("index out of range: "+t.pos+" + "+(e||1)+" > "+t.len)}function a(t){this.buf=t,this.pos=0,this.len=t.length}var f="undefined"!=typeof Uint8Array?function(t){if(t instanceof Uint8Array||Array.isArray(t))return new a(t);throw Error("illegal buffer")}:function(t){if(Array.isArray(t))return new a(t);throw Error("illegal buffer")},c=function(){return o.Buffer?function(t){return(a.create=function(t){return o.Buffer.isBuffer(t)?new i(t):f(t)})(t)}:f};function p(){var t=new r(0,0),e=0;if(this.len-this.pos>4){for(;e<4;++e)if(t.lo=(t.lo|(127&this.buf[this.pos])<<7*e)>>>0,this.buf[this.pos++]<128)return t;if(t.lo=(t.lo|(127&this.buf[this.pos])<<28)>>>0,t.hi=(t.hi|(127&this.buf[this.pos])>>4)>>>0,this.buf[this.pos++]<128)return t;e=0}else{for(;e<3;++e){if(this.pos>=this.len)throw u(this);if(t.lo=(t.lo|(127&this.buf[this.pos])<<7*e)>>>0,this.buf[this.pos++]<128)return t}return t.lo=(t.lo|(127&this.buf[this.pos++])<<7*e)>>>0,t}if(this.len-this.pos>4){for(;e<5;++e)if(t.hi=(t.hi|(127&this.buf[this.pos])<<7*e+3)>>>0,this.buf[this.pos++]<128)return t}else for(;e<5;++e){if(this.pos>=this.len)throw u(this);if(t.hi=(t.hi|(127&this.buf[this.pos])<<7*e+3)>>>0,this.buf[this.pos++]<128)return t}throw Error("invalid varint encoding")}function l(t,e){return(t[e-4]|t[e-3]<<8|t[e-2]<<16|t[e-1]<<24)>>>0}function h(){if(this.pos+8>this.len)throw u(this,8);return new r(l(this.buf,this.pos+=4),l(this.buf,this.pos+=4))}a.create=c(),a.prototype._slice=o.Array.prototype.subarray||o.Array.prototype.slice,a.prototype.uint32=function(){var t=0xffffffff;return function(){if(t=(127&this.buf[this.pos])>>>0,this.buf[this.pos++]<128||(t=(t|(127&this.buf[this.pos])<<7)>>>0,this.buf[this.pos++]<128)||(t=(t|(127&this.buf[this.pos])<<14)>>>0,this.buf[this.pos++]<128)||(t=(t|(127&this.buf[this.pos])<<21)>>>0,this.buf[this.pos++]<128)||(t=(t|(15&this.buf[this.pos])<<28)>>>0,this.buf[this.pos++]<128))return t;if((this.pos+=5)>this.len)throw this.pos=this.len,u(this,10);return t}}(),a.prototype.int32=function(){return 0|this.uint32()},a.prototype.sint32=function(){var t=this.uint32();return t>>>1^-(1&t)},a.prototype.bool=function(){return 0!==this.uint32()},a.prototype.fixed32=function(){if(this.pos+4>this.len)throw u(this,4);return l(this.buf,this.pos+=4)},a.prototype.sfixed32=function(){if(this.pos+4>this.len)throw u(this,4);return 0|l(this.buf,this.pos+=4)},a.prototype.float=function(){if(this.pos+4>this.len)throw u(this,4);var t=o.float.readFloatLE(this.buf,this.pos);return this.pos+=4,t},a.prototype.double=function(){if(this.pos+8>this.len)throw u(this,4);var t=o.float.readDoubleLE(this.buf,this.pos);return this.pos+=8,t},a.prototype.bytes=function(){var t=this.uint32(),e=this.pos,n=this.pos+t;if(n>this.len)throw u(this,t);if(this.pos+=t,Array.isArray(this.buf))return this.buf.slice(e,n);if(e===n){var i=o.Buffer;return i?i.alloc(0):new this.buf.constructor(0)}return this._slice.call(this.buf,e,n)},a.prototype.string=function(){var t=this.bytes();return s.read(t,0,t.length)},a.prototype.skip=function(t){if("number"==typeof t){if(this.pos+t>this.len)throw u(this,t);this.pos+=t}else do if(this.pos>=this.len)throw u(this);while(128&this.buf[this.pos++]);return this},a.prototype.skipType=function(t){switch(t){case 0:this.skip();break;case 1:this.skip(8);break;case 2:this.skip(this.uint32());break;case 3:for(;4!=(t=7&this.uint32());)this.skipType(t);break;case 5:this.skip(4);break;default:throw Error("invalid wire type "+t+" at offset "+this.pos)}return this},a._configure=function(t){i=t,a.create=c(),i._configure();var e=o.Long?"toLong":"toNumber";o.merge(a.prototype,{int64:function(){return p.call(this)[e](!1)},uint64:function(){return p.call(this)[e](!0)},sint64:function(){return p.call(this).zzDecode()[e](!1)},fixed64:function(){return h.call(this)[e](!0)},sfixed64:function(){return h.call(this)[e](!1)}})}},"./protobufjs/src/reader_buffer.js":function(t,e,n){t.exports=r;var i=n("./protobufjs/src/reader.js");(r.prototype=Object.create(i.prototype)).constructor=r;var o=n("./protobufjs/src/util/minimal.js");function r(t){i.call(this,t)}r._configure=function(){o.Buffer&&(r.prototype._slice=o.Buffer.prototype.slice)},r.prototype.string=function(){var t=this.uint32();return this.buf.utf8Slice?this.buf.utf8Slice(this.pos,this.pos=Math.min(this.pos+t,this.len)):this.buf.toString("utf-8",this.pos,this.pos=Math.min(this.pos+t,this.len))},r._configure()},"./protobufjs/src/roots.js":function(t){t.exports={}},"./protobufjs/src/rpc.js":function(t,e,n){e.Service=n("./protobufjs/src/rpc/service.js")},"./protobufjs/src/rpc/service.js":function(t,e,n){t.exports=o;var i=n("./protobufjs/src/util/minimal.js");function o(t,e,n){if("function"!=typeof t)throw TypeError("rpcImpl must be a function");i.EventEmitter.call(this),this.rpcImpl=t,this.requestDelimited=!!e,this.responseDelimited=!!n}(o.prototype=Object.create(i.EventEmitter.prototype)).constructor=o,o.prototype.rpcCall=function t(e,n,o,r,s){if(!r)throw TypeError("request must be specified");var u=this;if(!s)return i.asPromise(t,u,e,n,o,r);if(!u.rpcImpl)return void setTimeout(function(){s(Error("already ended"))},0);try{return u.rpcImpl(e,n[u.requestDelimited?"encodeDelimited":"encode"](r).finish(),function(t,n){if(t)return u.emit("error",t,e),s(t);if(null===n)return void u.end(!0);if(!(n instanceof o))try{n=o[u.responseDelimited?"decodeDelimited":"decode"](n)}catch(t){return u.emit("error",t,e),s(t)}return u.emit("data",n,e),s(null,n)})}catch(t){u.emit("error",t,e),setTimeout(function(){s(t)},0);return}},o.prototype.end=function(t){return this.rpcImpl&&(t||this.rpcImpl(null,null,null),this.rpcImpl=null,this.emit("end").off()),this}},"./protobufjs/src/util/longbits.js":function(t,e,n){t.exports=o;var i=n("./protobufjs/src/util/minimal.js");function o(t,e){this.lo=t>>>0,this.hi=e>>>0}var r=o.zero=new o(0,0);r.toNumber=function(){return 0},r.zzEncode=r.zzDecode=function(){return this},r.length=function(){return 1};var s=o.zeroHash="\0\0\0\0\0\0\0\0";o.fromNumber=function(t){if(0===t)return r;var e=t<0;e&&(t=-t);var n=t>>>0,i=(t-n)/0x100000000>>>0;return e&&(i=~i>>>0,n=~n>>>0,++n>0xffffffff&&(n=0,++i>0xffffffff&&(i=0))),new o(n,i)},o.from=function(t){if("number"==typeof t)return o.fromNumber(t);if(i.isString(t))if(!i.Long)return o.fromNumber(parseInt(t,10));else t=i.Long.fromString(t);return t.low||t.high?new o(t.low>>>0,t.high>>>0):r},o.prototype.toNumber=function(t){if(!t&&this.hi>>>31){var e=~this.lo+1>>>0,n=~this.hi>>>0;return e||(n=n+1>>>0),-(e+0x100000000*n)}return this.lo+0x100000000*this.hi},o.prototype.toLong=function(t){return i.Long?new i.Long(0|this.lo,0|this.hi,!!t):{low:0|this.lo,high:0|this.hi,unsigned:!!t}};var u=String.prototype.charCodeAt;o.fromHash=function(t){return t===s?r:new o((u.call(t,0)|u.call(t,1)<<8|u.call(t,2)<<16|u.call(t,3)<<24)>>>0,(u.call(t,4)|u.call(t,5)<<8|u.call(t,6)<<16|u.call(t,7)<<24)>>>0)},o.prototype.toHash=function(){return String.fromCharCode(255&this.lo,this.lo>>>8&255,this.lo>>>16&255,this.lo>>>24,255&this.hi,this.hi>>>8&255,this.hi>>>16&255,this.hi>>>24)},o.prototype.zzEncode=function(){var t=this.hi>>31;return this.hi=((this.hi<<1|this.lo>>>31)^t)>>>0,this.lo=(this.lo<<1^t)>>>0,this},o.prototype.zzDecode=function(){var t=-(1&this.lo);return this.lo=((this.lo>>>1|this.hi<<31)^t)>>>0,this.hi=(this.hi>>>1^t)>>>0,this},o.prototype.length=function(){var t=this.lo,e=(this.lo>>>28|this.hi<<4)>>>0,n=this.hi>>>24;return 0===n?0===e?t<16384?t<128?1:2:t<2097152?3:4:e<16384?e<128?5:6:e<2097152?7:8:n<128?9:10}},"./protobufjs/src/util/minimal.js":function(t,e,n){var i=e;function o(t,e,n){for(var i=Object.keys(e),o=0;o0)},i.Buffer=function(){try{var t=i.inquire("buffer").Buffer;return t.prototype.utf8Write?t:null}catch(t){return null}}(),i._Buffer_from=null,i._Buffer_allocUnsafe=null,i.newBuffer=function(t){return"number"==typeof t?i.Buffer?i._Buffer_allocUnsafe(t):new i.Array(t):i.Buffer?i._Buffer_from(t):"undefined"==typeof Uint8Array?t:new Uint8Array(t)},i.Array="undefined"!=typeof Uint8Array?Uint8Array:Array,i.Long=i.global.dcodeIO&&i.global.dcodeIO.Long||i.global.Long||i.inquire("long"),i.key2Re=/^true|false|0|1$/,i.key32Re=/^-?(?:0|[1-9][0-9]*)$/,i.key64Re=/^(?:[\\x00-\\xff]{8}|-?(?:0|[1-9][0-9]*))$/,i.longToHash=function(t){return t?i.LongBits.from(t).toHash():i.LongBits.zeroHash},i.longFromHash=function(t,e){var n=i.LongBits.fromHash(t);return i.Long?i.Long.fromBits(n.lo,n.hi,e):n.toNumber(!!e)},i.merge=o,i.lcFirst=function(t){return t.charAt(0).toLowerCase()+t.substring(1)},i.newError=r,i.ProtocolError=r("ProtocolError"),i.oneOfGetter=function(t){for(var e={},n=0;n-1;--n)if(1===e[t[n]]&&void 0!==this[t[n]]&&null!==this[t[n]])return t[n]}},i.oneOfSetter=function(t){return function(e){for(var n=0;n127;)e[n++]=127&t|128,t>>>=7;e[n]=t}function g(t,e){this.len=t,this.next=void 0,this.val=e}function y(t,e,n){for(;t.hi;)e[n++]=127&t.lo|128,t.lo=(t.lo>>>7|t.hi<<25)>>>0,t.hi>>>=7;for(;t.lo>127;)e[n++]=127&t.lo|128,t.lo=t.lo>>>7;e[n++]=t.lo}function m(t,e,n){e[n]=255&t,e[n+1]=t>>>8&255,e[n+2]=t>>>16&255,e[n+3]=t>>>24}p.create=l(),p.alloc=function(t){return new o.Array(t)},o.Array!==Array&&(p.alloc=o.pool(p.alloc,o.Array.prototype.subarray)),p.prototype._push=function(t,e,n){return this.tail=this.tail.next=new a(t,e,n),this.len+=e,this},g.prototype=Object.create(a.prototype),g.prototype.fn=d,p.prototype.uint32=function(t){return this.len+=(this.tail=this.tail.next=new g((t>>>=0)<128?1:t<16384?2:t<2097152?3:t<0x10000000?4:5,t)).len,this},p.prototype.int32=function(t){return t<0?this._push(y,10,r.fromNumber(t)):this.uint32(t)},p.prototype.sint32=function(t){return this.uint32((t<<1^t>>31)>>>0)},p.prototype.uint64=function(t){var e=r.from(t);return this._push(y,e.length(),e)},p.prototype.int64=p.prototype.uint64,p.prototype.sint64=function(t){var e=r.from(t).zzEncode();return this._push(y,e.length(),e)},p.prototype.bool=function(t){return this._push(h,1,+!!t)},p.prototype.fixed32=function(t){return this._push(m,4,t>>>0)},p.prototype.sfixed32=p.prototype.fixed32,p.prototype.fixed64=function(t){var e=r.from(t);return this._push(m,4,e.lo)._push(m,4,e.hi)},p.prototype.sfixed64=p.prototype.fixed64,p.prototype.float=function(t){return this._push(o.float.writeFloatLE,4,t)},p.prototype.double=function(t){return this._push(o.float.writeDoubleLE,8,t)};var b=o.Array.prototype.set?function(t,e,n){e.set(t,n)}:function(t,e,n){for(var i=0;i>>0;if(!e)return this._push(h,1,0);if(o.isString(t)){var n=p.alloc(e=s.length(t));s.decode(t,n,0),t=n}return this.uint32(e)._push(b,e,t)},p.prototype.string=function(t){var e=u.length(t);return e?this.uint32(e)._push(u.write,e,t):this._push(h,1,0)},p.prototype.fork=function(){return this.states=new c(this),this.head=this.tail=new a(f,0,0),this.len=0,this},p.prototype.reset=function(){return this.states?(this.head=this.states.head,this.tail=this.states.tail,this.len=this.states.len,this.states=this.states.next):(this.head=this.tail=new a(f,0,0),this.len=0),this},p.prototype.ldelim=function(){var t=this.head,e=this.tail,n=this.len;return this.reset().uint32(n),n&&(this.tail.next=t.next,this.tail=e,this.len+=n),this},p.prototype.finish=function(){for(var t=this.head.next,e=this.constructor.alloc(this.len),n=0;t;)t.fn(t.val,e,n),n+=t.len,t=t.next;return e},p._configure=function(t){i=t,p.create=l(),i._configure()}},"./protobufjs/src/writer_buffer.js":function(t,e,n){t.exports=r;var i=n("./protobufjs/src/writer.js");(r.prototype=Object.create(i.prototype)).constructor=r;var o=n("./protobufjs/src/util/minimal.js");function r(){i.call(this)}function s(t,e,n){t.length<40?o.utf8.write(t,e,n):e.utf8Write?e.utf8Write(t,n):e.write(t,n)}r._configure=function(){r.alloc=o._Buffer_allocUnsafe,r.writeBytesBuffer=o.Buffer&&o.Buffer.prototype instanceof Uint8Array&&"set"===o.Buffer.prototype.set.name?function(t,e,n){e.set(t,n)}:function(t,e,n){if(t.copy)t.copy(e,n,0,t.length);else for(var i=0;i>>0;return this.uint32(e),e&&this._push(r.writeBytesBuffer,e,t),this},r.prototype.string=function(t){var e=o.Buffer.byteLength(t);return this.uint32(e),e&&this._push(s,e,t),this},r._configure()}},__webpack_module_cache__={};function __webpack_require__(t){var e=__webpack_module_cache__[t];if(void 0!==e)return e.exports;var n=__webpack_module_cache__[t]={exports:{}};return __webpack_modules__[t].call(n.exports,n,n.exports,__webpack_require__),n.exports}var __webpack_exports__=__webpack_require__("./@datadog/sketches-js/dist/index.js");module.exports=__webpack_exports__})(); \ No newline at end of file diff --git a/packages/node_modules/@opentelemetry/resources/index.js b/packages/node_modules/@opentelemetry/resources/index.js index af6eb43b0ba..67add8a5be8 100644 --- a/packages/node_modules/@opentelemetry/resources/index.js +++ b/packages/node_modules/@opentelemetry/resources/index.js @@ -1 +1 @@ -(()=>{"use strict";var e={2872:function(e,t,r){r.d(t,{q:()=>o});let n=require("child_process");var o=require("util").promisify(n.exec)},2341:function(e,t,r){r.d(t,{D:()=>u});var n=r(9896),o=r(2872),i=r(7870),a=function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){var c=[i,u];if(r)throw TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&c[0]?n.return:c[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,c[1])).done)return o;switch(n=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return a.label++,{value:c[1],done:!1};case 5:a.label++,n=c[1],c=[0];continue;case 7:c=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===c[0]||2===c[0])){a=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]a});var n=r(2872),o=r(7870),i=function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){var c=[i,u];if(r)throw TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&c[0]?n.return:c[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,c[1])).done)return o;switch(n=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return a.label++,{value:c[1],done:!1};case 5:a.label++,n=c[1],c=[0];continue;case 7:c=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===c[0]||2===c[0])){a=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]u});var n=r(9896),o=r(7870),i=function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){var c=[i,u];if(r)throw TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&c[0]?n.return:c[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,c[1])).done)return o;switch(n=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return a.label++,{value:c[1],done:!1};case 5:a.label++,n=c[1],c=[0];continue;case 7:c=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===c[0]||2===c[0])){a=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};function u(){var e,t,r,u;return e=this,t=void 0,r=void 0,u=function(){var e,t,r,u,c,s,l;return i(this,function(i){switch(i.label){case 0:e=["/etc/machine-id","/var/lib/dbus/machine-id"],i.label=1;case 1:i.trys.push([1,8,9,10]),r=(t=a(e)).next(),i.label=2;case 2:if(r.done)return[3,7];u=r.value,i.label=3;case 3:return i.trys.push([3,5,,6]),[4,n.promises.readFile(u,{encoding:"utf8"})];case 4:return[2,i.sent().trim()];case 5:return c=i.sent(),o.diag.debug("error reading machine id: "+c),[3,6];case 6:return r=t.next(),[3,2];case 7:return[3,10];case 8:return s={error:i.sent()},[3,10];case 9:try{r&&!r.done&&(l=t.return)&&l.call(t)}finally{if(s)throw s.error}return[7];case 10:return[2,""]}})},new(r||(r=Promise))(function(n,o){function i(e){try{c(u.next(e))}catch(e){o(e)}}function a(e){try{c(u.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?n(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(i,a)}c((u=u.apply(e,t||[])).next())})}},2063:function(e,t,r){r.d(t,{D:()=>i});var n=r(7870),o=function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){var c=[i,u];if(r)throw TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&c[0]?n.return:c[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,c[1])).done)return o;switch(n=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return a.label++,{value:c[1],done:!1};case 5:a.label++,n=c[1],c=[0];continue;case 7:c=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===c[0]||2===c[0])){a=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]u});var n=r(932),o=r(2872),i=r(7870),a=function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){var c=[i,u];if(r)throw TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&c[0]?n.return:c[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,c[1])).done)return o;switch(n=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return a.label++,{value:c[1],done:!1};case 5:a.label++,n=c[1],c=[0];continue;case 7:c=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===c[0]||2===c[0])){a=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};(()=>{r.r(n),r.d(n,{envDetector:()=>N,envDetectorSync:()=>C,hostDetector:()=>x,Resource:()=>R,osDetector:()=>G,detectResources:()=>Z,osDetectorSync:()=>B,browserDetectorSync:()=>h,processDetectorSync:()=>H,detectResourcesSync:()=>J,browserDetector:()=>b,processDetector:()=>j,defaultServiceName:()=>O,hostDetectorSync:()=>X,serviceInstanceIdDetectorSync:()=>Y});var e,t,o,i,a=r(7870),u="process.runtime.name",c="process.runtime.version",s="process.runtime.description",l="service.name",E="telemetry.sdk.name",_="telemetry.sdk.language",T="telemetry.sdk.version",f=((t={})[E]="opentelemetry",t[u]="node",t[_]="nodejs",t[T]="1.30.1",t);function O(){return"unknown_service:"+process.argv0}var p=function(){return(p=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])&&(6===c[0]||2===c[0])){a=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},R=function(){function e(e,t){var r,n=this;this._attributes=e,this.asyncAttributesPending=null!=t,this._syncAttributes=null!=(r=this._attributes)?r:{},this._asyncAttributesPromise=null==t?void 0:t.then(function(e){return n._attributes=Object.assign({},n._attributes,e),n.asyncAttributesPending=!1,e},function(e){return a.diag.debug("a resource's async attributes promise rejected: %s",e),n.asyncAttributesPending=!1,{}})}return e.empty=function(){return e.EMPTY},e.default=function(){var t;return new e(((t={})[l]=O(),t[_]=f[_],t[E]=f[E],t[T]=f[T],t))},Object.defineProperty(e.prototype,"attributes",{get:function(){var e;return this.asyncAttributesPending&&a.diag.error("Accessing resource attributes before async attributes settled"),null!=(e=this._attributes)?e:{}},enumerable:!1,configurable:!0}),e.prototype.waitForAsyncAttributes=function(){var e,t,r,n;return e=this,t=void 0,r=void 0,n=function(){return d(this,function(e){switch(e.label){case 0:if(!this.asyncAttributesPending)return[3,2];return[4,this._asyncAttributesPromise];case 1:e.sent(),e.label=2;case 2:return[2]}})},new(r||(r=Promise))(function(o,i){function a(e){try{c(n.next(e))}catch(e){i(e)}}function u(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(a,u)}c((n=n.apply(e,t||[])).next())})},e.prototype.merge=function(t){var r,n=this;if(!t)return this;var o=p(p({},this._syncAttributes),null!=(r=t._syncAttributes)?r:t.attributes);return this._asyncAttributesPromise||t._asyncAttributesPromise?new e(o,Promise.all([this._asyncAttributesPromise,t._asyncAttributesPromise]).then(function(e){var r,o=L(e,2),i=o[0],a=o[1];return p(p(p(p({},n._syncAttributes),i),null!=(r=t._syncAttributes)?r:t.attributes),a)})):new e(o)},e.EMPTY=new e({}),e}(),y=function(){return(y=Object.assign||function(e){for(var t,r=1,n=arguments.length;r=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},m=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},C=new(function(){function e(){this._MAX_LENGTH=255,this._COMMA_SEPARATOR=",",this._LABEL_KEY_VALUE_SPLITTER="=",this._ERROR_MESSAGE_INVALID_CHARS="should be a ASCII string with a length greater than 0 and not exceed "+this._MAX_LENGTH+" characters.",this._ERROR_MESSAGE_INVALID_VALUE="should be a ASCII string with a length not exceed "+this._MAX_LENGTH+" characters."}return e.prototype.detect=function(e){var t,r={},n=(t=function(e){var t={};for(var r in I)if("OTEL_LOG_LEVEL"===r)!function(e,t,r){var n=r[e];if("string"==typeof n){var o=g[n.toUpperCase()];null!=o&&(t[e]=o)}}(r,t,e);else if(v.indexOf(r)>-1)!function(e,t,r){if(void 0!==r[e]){var n=String(r[e]);t[e]="true"===n.toLowerCase()}}(r,t,e);else if(P.indexOf(r)>-1)!function(e,t,r,n,o){if(void 0===n&&(n=-1/0),void 0===o&&(o=1/0),void 0!==r[e]){var i=Number(r[e]);isNaN(i)||(io?t[e]=o:t[e]=i)}}(r,t,e);else if(A.indexOf(r)>-1)!function(e,t,r,n){void 0===n&&(n=",");var o=r[e];"string"==typeof o&&(t[e]=o.split(n).map(function(e){return e.trim()}))}(r,t,e);else{var n=e[r];null!=n&&(t[r]=String(n))}return t}(process.env),Object.assign({},I,t)),o=n.OTEL_RESOURCE_ATTRIBUTES,i=n.OTEL_SERVICE_NAME;if(o)try{var u=this._parseResourceAttributes(o);Object.assign(r,u)}catch(e){a.diag.debug("EnvDetector failed: "+e.message)}return i&&(r[l]=i),new R(r)},e.prototype._parseResourceAttributes=function(e){if(!e)return{};var t,r,n={},o=e.split(this._COMMA_SEPARATOR,-1);try{for(var i=w(o),a=i.next();!a.done;a=i.next()){var u=a.value.split(this._LABEL_KEY_VALUE_SPLITTER,-1);if(2===u.length){var c=m(u,2),s=c[0],l=c[1];if(s=s.trim(),l=l.trim().split(/^"|"$/).join(""),!this._isValidAndNotEmpty(s))throw Error("Attribute key "+this._ERROR_MESSAGE_INVALID_CHARS);if(!this._isValid(l))throw Error("Attribute value "+this._ERROR_MESSAGE_INVALID_VALUE);n[s]=decodeURIComponent(l)}}}catch(e){t={error:e}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}return n},e.prototype._isValid=function(e){return e.length<=this._MAX_LENGTH&&this._isBaggageOctetString(e)},e.prototype._isBaggageOctetString=function(e){for(var t=0;t126)return!1}return!0},e.prototype._isValidAndNotEmpty=function(e){return e.length>0&&this._isValid(e)},e}()),N=new(function(){function e(){}return e.prototype.detect=function(e){return Promise.resolve(C.detect(e))},e}());let M=require("os");var U=function(e){switch(e){case"arm":return"arm32";case"ppc":return"ppc32";case"x64":return"amd64";default:return e}},D=function(e){switch(e){case"sunos":return"solaris";case"win32":return"windows";default:return e}};switch(r(932).platform){case"darwin":i=r(7821).D;break;case"linux":i=r(2238).D;break;case"freebsd":i=r(2341).D;break;case"win32":i=r(2618).D;break;default:i=r(2063).D}var X=new(function(){function e(){}return e.prototype.detect=function(e){var t;return new R(((t={})["host.name"]=(0,M.hostname)(),t["host.arch"]=U((0,M.arch)()),t),this._getAsyncAttributes())},e.prototype._getAsyncAttributes=function(){return i().then(function(e){var t={};return e&&(t["host.id"]=e),t})},e}()),x=new(function(){function e(){}return e.prototype.detect=function(e){return Promise.resolve(X.detect(e))},e}()),B=new(function(){function e(){}return e.prototype.detect=function(e){var t;return new R(((t={})["os.type"]=D((0,M.platform)()),t["os.version"]=(0,M.release)(),t))},e}()),G=new(function(){function e(){}return e.prototype.detect=function(e){return Promise.resolve(B.detect(e))},e}()),k=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},V=function(e,t,r){if(r||2==arguments.length)for(var n,o=0,i=t.length;o1&&(r["process.command"]=process.argv[1]);try{var n=M.userInfo();r["process.owner"]=n.username}catch(e){a.diag.debug("error obtaining process owner: "+e)}return new R(r)},e}()),j=new(function(){function e(){}return e.prototype.detect=function(e){return Promise.resolve(H.detect(e))},e}());let F=require("crypto");var Y=new(function(){function e(){}return e.prototype.detect=function(e){var t;return new R(((t={})["service.instance.id"]=(0,F.randomUUID)(),t))},e}()),K=function(e,t,r,n){return new(r||(r=Promise))(function(o,i){function a(e){try{c(n.next(e))}catch(e){i(e)}}function u(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(a,u)}c((n=n.apply(e,t||[])).next())})},q=function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){var c=[i,u];if(r)throw TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&c[0]?n.return:c[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,c[1])).done)return o;switch(n=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return a.label++,{value:c[1],done:!1};case 5:a.label++,n=c[1],c=[0];continue;case 7:c=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===c[0]||2===c[0])){a=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]0){var t=JSON.stringify(e.attributes,null,4);a.diag.verbose(t)}})}})(),module.exports=n})(); \ No newline at end of file +(()=>{"use strict";var e={"./@opentelemetry/resources/build/esm/detectors/platform/node/machine-id/execAsync.js":function(e,t,r){r.d(t,{q:()=>o});let n=require("child_process");var o=require("util").promisify(n.exec)},"./@opentelemetry/resources/build/esm/detectors/platform/node/machine-id/getMachineId-bsd.js":function(e,t,r){r.d(t,{D:()=>u});var n=r("fs"),o=r("./@opentelemetry/resources/build/esm/detectors/platform/node/machine-id/execAsync.js"),i=r("@opentelemetry/api"),a=function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){var c=[i,u];if(r)throw TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&c[0]?n.return:c[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,c[1])).done)return o;switch(n=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return a.label++,{value:c[1],done:!1};case 5:a.label++,n=c[1],c=[0];continue;case 7:c=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===c[0]||2===c[0])){a=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]a});var n=r("./@opentelemetry/resources/build/esm/detectors/platform/node/machine-id/execAsync.js"),o=r("@opentelemetry/api"),i=function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){var c=[i,u];if(r)throw TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&c[0]?n.return:c[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,c[1])).done)return o;switch(n=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return a.label++,{value:c[1],done:!1};case 5:a.label++,n=c[1],c=[0];continue;case 7:c=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===c[0]||2===c[0])){a=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]u});var n=r("fs"),o=r("@opentelemetry/api"),i=function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){var c=[i,u];if(r)throw TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&c[0]?n.return:c[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,c[1])).done)return o;switch(n=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return a.label++,{value:c[1],done:!1};case 5:a.label++,n=c[1],c=[0];continue;case 7:c=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===c[0]||2===c[0])){a=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};function u(){var e,t,r,u;return e=this,t=void 0,r=void 0,u=function(){var e,t,r,u,c,s,l;return i(this,function(i){switch(i.label){case 0:e=["/etc/machine-id","/var/lib/dbus/machine-id"],i.label=1;case 1:i.trys.push([1,8,9,10]),r=(t=a(e)).next(),i.label=2;case 2:if(r.done)return[3,7];u=r.value,i.label=3;case 3:return i.trys.push([3,5,,6]),[4,n.promises.readFile(u,{encoding:"utf8"})];case 4:return[2,i.sent().trim()];case 5:return c=i.sent(),o.diag.debug("error reading machine id: "+c),[3,6];case 6:return r=t.next(),[3,2];case 7:return[3,10];case 8:return s={error:i.sent()},[3,10];case 9:try{r&&!r.done&&(l=t.return)&&l.call(t)}finally{if(s)throw s.error}return[7];case 10:return[2,""]}})},new(r||(r=Promise))(function(n,o){function i(e){try{c(u.next(e))}catch(e){o(e)}}function a(e){try{c(u.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?n(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(i,a)}c((u=u.apply(e,t||[])).next())})}},"./@opentelemetry/resources/build/esm/detectors/platform/node/machine-id/getMachineId-unsupported.js":function(e,t,r){r.d(t,{D:()=>i});var n=r("@opentelemetry/api"),o=function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){var c=[i,u];if(r)throw TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&c[0]?n.return:c[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,c[1])).done)return o;switch(n=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return a.label++,{value:c[1],done:!1};case 5:a.label++,n=c[1],c=[0];continue;case 7:c=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===c[0]||2===c[0])){a=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]u});var n=r("process"),o=r("./@opentelemetry/resources/build/esm/detectors/platform/node/machine-id/execAsync.js"),i=r("@opentelemetry/api"),a=function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){var c=[i,u];if(r)throw TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&c[0]?n.return:c[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,c[1])).done)return o;switch(n=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return a.label++,{value:c[1],done:!1};case 5:a.label++,n=c[1],c=[0];continue;case 7:c=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===c[0]||2===c[0])){a=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};(()=>{r.r(n),r.d(n,{envDetector:()=>N,envDetectorSync:()=>C,hostDetector:()=>X,Resource:()=>h,osDetector:()=>G,detectResources:()=>Z,osDetectorSync:()=>B,browserDetectorSync:()=>R,processDetectorSync:()=>V,detectResourcesSync:()=>J,browserDetector:()=>b,processDetector:()=>H,defaultServiceName:()=>d,hostDetectorSync:()=>D,serviceInstanceIdDetectorSync:()=>Y});var e,t,o,i,a=r("@opentelemetry/api"),u="process.runtime.name",c="process.runtime.version",s="process.runtime.description",l="service.name",E="telemetry.sdk.name",_="telemetry.sdk.language",T="telemetry.sdk.version",f=((t={})[E]="opentelemetry",t[u]="node",t[_]="nodejs",t[T]="1.30.1",t);function d(){return"unknown_service:"+process.argv0}var p=function(){return(p=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&o[o.length-1])&&(6===c[0]||2===c[0])){a=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},h=function(){function e(e,t){var r,n=this;this._attributes=e,this.asyncAttributesPending=null!=t,this._syncAttributes=null!=(r=this._attributes)?r:{},this._asyncAttributesPromise=null==t?void 0:t.then(function(e){return n._attributes=Object.assign({},n._attributes,e),n.asyncAttributesPending=!1,e},function(e){return a.diag.debug("a resource's async attributes promise rejected: %s",e),n.asyncAttributesPending=!1,{}})}return e.empty=function(){return e.EMPTY},e.default=function(){var t;return new e(((t={})[l]=d(),t[_]=f[_],t[E]=f[E],t[T]=f[T],t))},Object.defineProperty(e.prototype,"attributes",{get:function(){var e;return this.asyncAttributesPending&&a.diag.error("Accessing resource attributes before async attributes settled"),null!=(e=this._attributes)?e:{}},enumerable:!1,configurable:!0}),e.prototype.waitForAsyncAttributes=function(){var e,t,r,n;return e=this,t=void 0,r=void 0,n=function(){return O(this,function(e){switch(e.label){case 0:if(!this.asyncAttributesPending)return[3,2];return[4,this._asyncAttributesPromise];case 1:e.sent(),e.label=2;case 2:return[2]}})},new(r||(r=Promise))(function(o,i){function a(e){try{c(n.next(e))}catch(e){i(e)}}function u(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(a,u)}c((n=n.apply(e,t||[])).next())})},e.prototype.merge=function(t){var r,n=this;if(!t)return this;var o=p(p({},this._syncAttributes),null!=(r=t._syncAttributes)?r:t.attributes);return this._asyncAttributesPromise||t._asyncAttributesPromise?new e(o,Promise.all([this._asyncAttributesPromise,t._asyncAttributesPromise]).then(function(e){var r,o=y(e,2),i=o[0],a=o[1];return p(p(p(p({},n._syncAttributes),i),null!=(r=t._syncAttributes)?r:t.attributes),a)})):new e(o)},e.EMPTY=new e({}),e}(),L=function(){return(L=Object.assign||function(e){for(var t,r=1,n=arguments.length;r=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},w=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},C=new(function(){function e(){this._MAX_LENGTH=255,this._COMMA_SEPARATOR=",",this._LABEL_KEY_VALUE_SPLITTER="=",this._ERROR_MESSAGE_INVALID_CHARS="should be a ASCII string with a length greater than 0 and not exceed "+this._MAX_LENGTH+" characters.",this._ERROR_MESSAGE_INVALID_VALUE="should be a ASCII string with a length not exceed "+this._MAX_LENGTH+" characters."}return e.prototype.detect=function(e){var t,r={},n=(t=function(e){var t={};for(var r in I)if("OTEL_LOG_LEVEL"===r)!function(e,t,r){var n=r[e];if("string"==typeof n){var o=S[n.toUpperCase()];null!=o&&(t[e]=o)}}(r,t,e);else if(v.indexOf(r)>-1)!function(e,t,r){if(void 0!==r[e]){var n=String(r[e]);t[e]="true"===n.toLowerCase()}}(r,t,e);else if(P.indexOf(r)>-1)!function(e,t,r,n,o){if(void 0===n&&(n=-1/0),void 0===o&&(o=1/0),void 0!==r[e]){var i=Number(r[e]);isNaN(i)||(io?t[e]=o:t[e]=i)}}(r,t,e);else if(A.indexOf(r)>-1)!function(e,t,r,n){void 0===n&&(n=",");var o=r[e];"string"==typeof o&&(t[e]=o.split(n).map(function(e){return e.trim()}))}(r,t,e);else{var n=e[r];null!=n&&(t[r]=String(n))}return t}(process.env),Object.assign({},I,t)),o=n.OTEL_RESOURCE_ATTRIBUTES,i=n.OTEL_SERVICE_NAME;if(o)try{var u=this._parseResourceAttributes(o);Object.assign(r,u)}catch(e){a.diag.debug("EnvDetector failed: "+e.message)}return i&&(r[l]=i),new h(r)},e.prototype._parseResourceAttributes=function(e){if(!e)return{};var t,r,n={},o=e.split(this._COMMA_SEPARATOR,-1);try{for(var i=g(o),a=i.next();!a.done;a=i.next()){var u=a.value.split(this._LABEL_KEY_VALUE_SPLITTER,-1);if(2===u.length){var c=w(u,2),s=c[0],l=c[1];if(s=s.trim(),l=l.trim().split(/^"|"$/).join(""),!this._isValidAndNotEmpty(s))throw Error("Attribute key "+this._ERROR_MESSAGE_INVALID_CHARS);if(!this._isValid(l))throw Error("Attribute value "+this._ERROR_MESSAGE_INVALID_VALUE);n[s]=decodeURIComponent(l)}}}catch(e){t={error:e}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}return n},e.prototype._isValid=function(e){return e.length<=this._MAX_LENGTH&&this._isBaggageOctetString(e)},e.prototype._isBaggageOctetString=function(e){for(var t=0;t126)return!1}return!0},e.prototype._isValidAndNotEmpty=function(e){return e.length>0&&this._isValid(e)},e}()),N=new(function(){function e(){}return e.prototype.detect=function(e){return Promise.resolve(C.detect(e))},e}());let M=require("os");var U=function(e){switch(e){case"arm":return"arm32";case"ppc":return"ppc32";case"x64":return"amd64";default:return e}},x=function(e){switch(e){case"sunos":return"solaris";case"win32":return"windows";default:return e}};switch(r("process").platform){case"darwin":i=r("./@opentelemetry/resources/build/esm/detectors/platform/node/machine-id/getMachineId-darwin.js").D;break;case"linux":i=r("./@opentelemetry/resources/build/esm/detectors/platform/node/machine-id/getMachineId-linux.js").D;break;case"freebsd":i=r("./@opentelemetry/resources/build/esm/detectors/platform/node/machine-id/getMachineId-bsd.js").D;break;case"win32":i=r("./@opentelemetry/resources/build/esm/detectors/platform/node/machine-id/getMachineId-win.js").D;break;default:i=r("./@opentelemetry/resources/build/esm/detectors/platform/node/machine-id/getMachineId-unsupported.js").D}var D=new(function(){function e(){}return e.prototype.detect=function(e){var t;return new h(((t={})["host.name"]=(0,M.hostname)(),t["host.arch"]=U((0,M.arch)()),t),this._getAsyncAttributes())},e.prototype._getAsyncAttributes=function(){return i().then(function(e){var t={};return e&&(t["host.id"]=e),t})},e}()),X=new(function(){function e(){}return e.prototype.detect=function(e){return Promise.resolve(D.detect(e))},e}()),B=new(function(){function e(){}return e.prototype.detect=function(e){var t;return new h(((t={})["os.type"]=x((0,M.platform)()),t["os.version"]=(0,M.release)(),t))},e}()),G=new(function(){function e(){}return e.prototype.detect=function(e){return Promise.resolve(B.detect(e))},e}()),k=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},j=function(e,t,r){if(r||2==arguments.length)for(var n,o=0,i=t.length;o1&&(r["process.command"]=process.argv[1]);try{var n=M.userInfo();r["process.owner"]=n.username}catch(e){a.diag.debug("error obtaining process owner: "+e)}return new h(r)},e}()),H=new(function(){function e(){}return e.prototype.detect=function(e){return Promise.resolve(V.detect(e))},e}());let F=require("crypto");var Y=new(function(){function e(){}return e.prototype.detect=function(e){var t;return new h(((t={})["service.instance.id"]=(0,F.randomUUID)(),t))},e}()),K=function(e,t,r,n){return new(r||(r=Promise))(function(o,i){function a(e){try{c(n.next(e))}catch(e){i(e)}}function u(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(a,u)}c((n=n.apply(e,t||[])).next())})},q=function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){var c=[i,u];if(r)throw TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&c[0]?n.return:c[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,c[1])).done)return o;switch(n=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return a.label++,{value:c[1],done:!1};case 5:a.label++,n=c[1],c=[0];continue;case 7:c=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===c[0]||2===c[0])){a=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]0){var t=JSON.stringify(e.attributes,null,4);a.diag.verbose(t)}})}})(),module.exports=n})(); \ No newline at end of file diff --git a/packages/node_modules/crypto-randomuuid/index.js b/packages/node_modules/crypto-randomuuid/index.js index 6442c66ea45..2dd572d758d 100644 --- a/packages/node_modules/crypto-randomuuid/index.js +++ b/packages/node_modules/crypto-randomuuid/index.js @@ -1 +1 @@ -(()=>{"use strict";var e={3918:function(e,t,o){let n=o(6982);e.exports="function"==typeof n.randomUUID?n.randomUUID:o(5943)},5943:function(e,t,o){let n,r,i,s=o(6982),{validateBoolean:c,validateObject:l,codes:{ERR_OPERATION_FAILED:u}}=o(3295),{randomFillSync:f}=s;function a(e){return f(Buffer.alloc(e))}let p=0;function h(e,t=0){let o=function(){if(void 0===i){i=Array(256);for(let e=0;e0){const e=c.indexOf("object");-1!==e&&(c.splice(e,1),l.push("Object"))}if(c.length>0){if(c.length>2){const e=c.pop();s+=`one of type ${c.join(", ")}, or ${e}`}else 2===c.length?s+=`one of type ${c[0]} or ${c[1]}`:s+=`of type ${c[0]}`;(l.length>0||u.length>0)&&(s+=" or ")}if(l.length>0){if(l.length>2){const e=l.pop();s+=`an instance of ${l.join(", ")}, or ${e}`}else s+=`an instance of ${l[0]}`,2===l.length&&(s+=` or ${l[1]}`);u.length>0&&(s+=" or ")}if(u.length>0)if(u.length>2){const e=u.pop();s+=`one of ${u.join(", ")}, or ${e}`}else 2===u.length?s+=`one of ${u[0]} or ${u[1]}`:(u[0].toLowerCase()!==u[0]&&(s+="an "),s+=`${u[0]}`);if(null==o)s+=`. Received ${o}`;else if("function"==typeof o&&o.name)s+=`. Received function ${o.name}`;else if("object"==typeof o)if(o.constructor&&o.constructor.name)s+=`. Received an instance of ${o.constructor.name}`;else{const e=r.inspect(o,{depth:-1});s+=`. Received ${e}`}else{let e=r.inspect(o,{colors:!1});e.length>25&&(e=`${e.slice(0,25)}...`),s+=`. Received type ${typeof o} (${e})`}this.code=this.constructor.name,Object.defineProperties(this,{message:{value:s,enumerable:!1,writable:!0,configurable:!0},toString:{value(){return`${this.name} [${this.code}]: ${this.message}`},enumerable:!1,writable:!0,configurable:!0}})}}e.exports={validateBoolean:function(e,t){if("boolean"!=typeof e)throw new c(t,"boolean",e)},validateObject:function(e,t,{nullable:o=!1,allowArray:n=!1,allowFunction:r=!1}={}){if(!o&&null===e||!n&&Array.isArray(e)||"object"!=typeof e&&(!r||"function"!=typeof e))throw new c(t,"Object",e)},codes:{ERR_OPERATION_FAILED:s}}},2613:function(e){e.exports=require("assert")},6982:function(e){e.exports=require("crypto")},9023:function(e){e.exports=require("util")}},t={},o=function o(n){var r=t[n];if(void 0!==r)return r.exports;var i=t[n]={exports:{}};return e[n](i,i.exports,o),i.exports}(3918);module.exports=o})(); \ No newline at end of file +(()=>{"use strict";var e={"./crypto-randomuuid/index.js":function(e,t,o){let n=o("crypto");e.exports="function"==typeof n.randomUUID?n.randomUUID:o("./crypto-randomuuid/polyfill.js")},"./crypto-randomuuid/polyfill.js":function(e,t,o){let n,r,i,s=o("crypto"),{validateBoolean:c,validateObject:u,codes:{ERR_OPERATION_FAILED:l}}=o("./crypto-randomuuid/validators.js"),{randomFillSync:a}=s;function f(e){return a(Buffer.alloc(e))}let p=0;function d(e,t=0){let o=function(){if(void 0===i){i=Array(256);for(let e=0;e0){const e=c.indexOf("object");-1!==e&&(c.splice(e,1),u.push("Object"))}if(c.length>0){if(c.length>2){const e=c.pop();s+=`one of type ${c.join(", ")}, or ${e}`}else 2===c.length?s+=`one of type ${c[0]} or ${c[1]}`:s+=`of type ${c[0]}`;(u.length>0||l.length>0)&&(s+=" or ")}if(u.length>0){if(u.length>2){const e=u.pop();s+=`an instance of ${u.join(", ")}, or ${e}`}else s+=`an instance of ${u[0]}`,2===u.length&&(s+=` or ${u[1]}`);l.length>0&&(s+=" or ")}if(l.length>0)if(l.length>2){const e=l.pop();s+=`one of ${l.join(", ")}, or ${e}`}else 2===l.length?s+=`one of ${l[0]} or ${l[1]}`:(l[0].toLowerCase()!==l[0]&&(s+="an "),s+=`${l[0]}`);if(null==o)s+=`. Received ${o}`;else if("function"==typeof o&&o.name)s+=`. Received function ${o.name}`;else if("object"==typeof o)if(o.constructor&&o.constructor.name)s+=`. Received an instance of ${o.constructor.name}`;else{const e=r.inspect(o,{depth:-1});s+=`. Received ${e}`}else{let e=r.inspect(o,{colors:!1});e.length>25&&(e=`${e.slice(0,25)}...`),s+=`. Received type ${typeof o} (${e})`}this.code=this.constructor.name,Object.defineProperties(this,{message:{value:s,enumerable:!1,writable:!0,configurable:!0},toString:{value(){return`${this.name} [${this.code}]: ${this.message}`},enumerable:!1,writable:!0,configurable:!0}})}}e.exports={validateBoolean:function(e,t){if("boolean"!=typeof e)throw new c(t,"boolean",e)},validateObject:function(e,t,{nullable:o=!1,allowArray:n=!1,allowFunction:r=!1}={}){if(!o&&null===e||!n&&Array.isArray(e)||"object"!=typeof e&&(!r||"function"!=typeof e))throw new c(t,"Object",e)},codes:{ERR_OPERATION_FAILED:s}}},assert:function(e){e.exports=require("assert")},crypto:function(e){e.exports=require("crypto")},util:function(e){e.exports=require("util")}},t={},o=function o(n){var r=t[n];if(void 0!==r)return r.exports;var i=t[n]={exports:{}};return e[n](i,i.exports,o),i.exports}("./crypto-randomuuid/index.js");module.exports=o})(); \ No newline at end of file diff --git a/packages/node_modules/ignore/index.js b/packages/node_modules/ignore/index.js index 82bde863199..8e4ce73a5b1 100644 --- a/packages/node_modules/ignore/index.js +++ b/packages/node_modules/ignore/index.js @@ -1 +1 @@ -(()=>{var t={2296:function(t){function e(t){return Array.isArray(t)?t:[t]}let r,s=/^\s+$/,i=/(?:[^\\]|^)\\$/,n=/^\\!/,h=/^\\#/,o=/\r?\n/g,l=/^\.{0,2}\/|^\.{1,2}$/,a=/\/$/,u="node-ignore";"undefined"!=typeof Symbol&&(u=Symbol.for("node-ignore"));let c=u,d=(t,e,r)=>(Object.defineProperty(t,e,{value:r}),r),g=/([0-z])-([0-z])/g,p=()=>!1,_=[[/^\uFEFF/,()=>""],[/((?:\\\\)*?)(\\?\s+)$/,(t,e,r)=>e+(0===r.indexOf("\\")?" ":"")],[/(\\+?)\s/g,(t,e)=>{let{length:r}=e;return e.slice(0,r-r%2)+" "}],[/[\\$.|*+(){^]/g,t=>`\\${t}`],[/(?!\\)\?/g,()=>"[^/]"],[/^\//,()=>"^"],[/\//g,()=>"\\/"],[/^\^*\\\*\\\*\\\//,()=>"^(?:.*\\/)?"],[/^(?=[^^])/,function(){return/\/(?!$)/.test(this)?"^":"(?:^|\\/)"}],[/\\\/\\\*\\\*(?=\\\/|$)/g,(t,e,r)=>e+6e+r.replace(/\\\*/g,"[^\\/]*")],[/\\\\\\(?=[$.|*+(){^])/g,()=>"\\"],[/\\\\/g,()=>"\\"],[/(\\)?\[([^\]/]*?)(\\*)($|\])/g,(t,e,r,s,i)=>"\\"===e?`\\[${r}${(t=>{let{length:e}=t;return t.slice(0,e-e%2)})(s)}${i}`:"]"===i&&s.length%2==0?`[${r.replace(g,(t,e,r)=>e.charCodeAt(0)<=r.charCodeAt(0)?t:"")}${s}]`:"[]"],[/(?:[^*])$/,t=>/\/$/.test(t)?`${t}$`:`${t}(?=$|\\/$)`]],f=/(^|\\\/)?\\\*$/,$="regex",x="checkRegex",y={[$](t,e){let r=e?`${e}[^/]+`:"[^/]*";return`${r}(?=$|\\/$)`},[x](t,e){let r=e?`${e}[^/]*`:"[^/]*";return`${r}(?=$|\\/$)`}};class C{constructor(t,e,r,s,i,n){this.pattern=t,this.mark=e,this.negative=i,d(this,"body",r),d(this,"ignoreCase",s),d(this,"regexPrefix",n)}get regex(){let t="_"+$;return this[t]?this[t]:this._make($,t)}get checkRegex(){let t="_"+x;return this[t]?this[t]:this._make(x,t)}_make(t,e){let r=this.regexPrefix.replace(f,y[t]);return d(this,e,this.ignoreCase?RegExp(r,"i"):new RegExp(r))}}class b{constructor(t){this._ignoreCase=t,this._rules=[]}_add(t){let e;if(t&&t[c]){this._rules=this._rules.concat(t._rules._rules),this._added=!0;return}if("string"==typeof t&&(t={pattern:t}),(e=t.pattern)&&"string"==typeof e&&!s.test(e)&&!i.test(e)&&0!==e.indexOf("#")){let e=(({pattern:t,mark:e},r)=>{let s,i=!1,o=t;0===o.indexOf("!")&&(i=!0,o=o.substr(1));let l=(s=o=o.replace(n,"!").replace(h,"#"),_.reduce((t,[e,r])=>t.replace(e,r.bind(s)),s));return new C(t,e,o,r,i,l)})(t,this._ignoreCase);this._added=!0,this._rules.push(e)}}add(t){return this._added=!1,e("string"==typeof t?t.split(o).filter(Boolean):t).forEach(this._add,this),this._added}test(t,e,s){let i,n=!1,h=!1;this._rules.forEach(o=>{let{negative:l}=o;(h!==l||n===h)&&(!l||n||h||e)&&o[s].test(t)&&(n=!l,h=l,i=l?r:o)});let o={ignored:n,unignored:h};return i&&(o.rule=i),o}}let v=(t,e)=>{throw new e(t)},m=(t,e,r)=>"string"!=typeof t?r(`path must be a string, but got \`${e}\``,TypeError):t?!m.isNotRelative(t)||r(`path should be a \`path.relative()\`d string, but got "${e}"`,RangeError):r("path must not be empty",TypeError),k=t=>l.test(t);m.isNotRelative=k,m.convert=t=>t;class w{constructor({ignorecase:t=!0,ignoreCase:e=t,allowRelativePaths:r=!1}={}){d(this,c,!0),this._rules=new b(e),this._strictPathCheck=!r,this._initCache()}_initCache(){this._ignoreCache=Object.create(null),this._testCache=Object.create(null)}add(t){return this._rules.add(t)&&this._initCache(),this}addPattern(t){return this.add(t)}_test(t,e,r,s){let i=t&&m.convert(t);return m(i,t,this._strictPathCheck?v:p),this._t(i,e,r,s)}checkIgnore(t){if(!a.test(t))return this.test(t);let e=t.split("/").filter(Boolean);if(e.pop(),e.length){let t=this._t(e.join("/")+"/",this._testCache,!0,e);if(t.ignored)return t}return this._rules.test(t,!1,x)}_t(t,e,r,s){if(t in e)return e[t];if(s||(s=t.split("/").filter(Boolean)),s.pop(),!s.length)return e[t]=this._rules.test(t,r,$);let i=this._t(s.join("/")+"/",e,r,s);return e[t]=i.ignored?i:this._rules.test(t,r,$)}ignores(t){return this._test(t,this._ignoreCache,!1).ignored}createFilter(){return t=>!this.ignores(t)}filter(t){return e(t).filter(this.createFilter())}test(t){return this._test(t,this._testCache,!0)}}let E=t=>new w(t),R=()=>{m.convert=t=>/^\\\\\?\\/.test(t)||/["<>|\u0000-\u001F]+/u.test(t)?t:t.replace(/\\/g,"/");let t=/^[a-z]:\//i;m.isNotRelative=e=>t.test(e)||k(e)};"undefined"!=typeof process&&"win32"===process.platform&&R(),t.exports=E,E.default=E,t.exports.isPathValid=t=>m(t&&m.convert(t),t,p),d(t.exports,Symbol.for("setupWindows"),R)}},e={},r=function r(s){var i=e[s];if(void 0!==i)return i.exports;var n=e[s]={exports:{}};return t[s](n,n.exports,r),n.exports}(2296);module.exports=r})(); \ No newline at end of file +(()=>{var t={"./ignore/index.js":function(t){function e(t){return Array.isArray(t)?t:[t]}let r,s=/^\s+$/,i=/(?:[^\\]|^)\\$/,n=/^\\!/,h=/^\\#/,o=/\r?\n/g,l=/^\.{0,2}\/|^\.{1,2}$/,a=/\/$/,u="node-ignore";"undefined"!=typeof Symbol&&(u=Symbol.for("node-ignore"));let c=u,d=(t,e,r)=>(Object.defineProperty(t,e,{value:r}),r),g=/([0-z])-([0-z])/g,p=()=>!1,_=[[/^\uFEFF/,()=>""],[/((?:\\\\)*?)(\\?\s+)$/,(t,e,r)=>e+(0===r.indexOf("\\")?" ":"")],[/(\\+?)\s/g,(t,e)=>{let{length:r}=e;return e.slice(0,r-r%2)+" "}],[/[\\$.|*+(){^]/g,t=>`\\${t}`],[/(?!\\)\?/g,()=>"[^/]"],[/^\//,()=>"^"],[/\//g,()=>"\\/"],[/^\^*\\\*\\\*\\\//,()=>"^(?:.*\\/)?"],[/^(?=[^^])/,function(){return/\/(?!$)/.test(this)?"^":"(?:^|\\/)"}],[/\\\/\\\*\\\*(?=\\\/|$)/g,(t,e,r)=>e+6e+r.replace(/\\\*/g,"[^\\/]*")],[/\\\\\\(?=[$.|*+(){^])/g,()=>"\\"],[/\\\\/g,()=>"\\"],[/(\\)?\[([^\]/]*?)(\\*)($|\])/g,(t,e,r,s,i)=>"\\"===e?`\\[${r}${(t=>{let{length:e}=t;return t.slice(0,e-e%2)})(s)}${i}`:"]"===i&&s.length%2==0?`[${r.replace(g,(t,e,r)=>e.charCodeAt(0)<=r.charCodeAt(0)?t:"")}${s}]`:"[]"],[/(?:[^*])$/,t=>/\/$/.test(t)?`${t}$`:`${t}(?=$|\\/$)`]],f=/(^|\\\/)?\\\*$/,$="regex",x="checkRegex",y={[$](t,e){let r=e?`${e}[^/]+`:"[^/]*";return`${r}(?=$|\\/$)`},[x](t,e){let r=e?`${e}[^/]*`:"[^/]*";return`${r}(?=$|\\/$)`}};class C{constructor(t,e,r,s,i,n){this.pattern=t,this.mark=e,this.negative=i,d(this,"body",r),d(this,"ignoreCase",s),d(this,"regexPrefix",n)}get regex(){let t="_"+$;return this[t]?this[t]:this._make($,t)}get checkRegex(){let t="_"+x;return this[t]?this[t]:this._make(x,t)}_make(t,e){let r=this.regexPrefix.replace(f,y[t]);return d(this,e,this.ignoreCase?RegExp(r,"i"):new RegExp(r))}}class b{constructor(t){this._ignoreCase=t,this._rules=[]}_add(t){let e;if(t&&t[c]){this._rules=this._rules.concat(t._rules._rules),this._added=!0;return}if("string"==typeof t&&(t={pattern:t}),(e=t.pattern)&&"string"==typeof e&&!s.test(e)&&!i.test(e)&&0!==e.indexOf("#")){let e=(({pattern:t,mark:e},r)=>{let s,i=!1,o=t;0===o.indexOf("!")&&(i=!0,o=o.substr(1));let l=(s=o=o.replace(n,"!").replace(h,"#"),_.reduce((t,[e,r])=>t.replace(e,r.bind(s)),s));return new C(t,e,o,r,i,l)})(t,this._ignoreCase);this._added=!0,this._rules.push(e)}}add(t){return this._added=!1,e("string"==typeof t?t.split(o).filter(Boolean):t).forEach(this._add,this),this._added}test(t,e,s){let i,n=!1,h=!1;this._rules.forEach(o=>{let{negative:l}=o;(h!==l||n===h)&&(!l||n||h||e)&&o[s].test(t)&&(n=!l,h=l,i=l?r:o)});let o={ignored:n,unignored:h};return i&&(o.rule=i),o}}let v=(t,e)=>{throw new e(t)},m=(t,e,r)=>"string"!=typeof t?r(`path must be a string, but got \`${e}\``,TypeError):t?!m.isNotRelative(t)||r(`path should be a \`path.relative()\`d string, but got "${e}"`,RangeError):r("path must not be empty",TypeError),k=t=>l.test(t);m.isNotRelative=k,m.convert=t=>t;class w{constructor({ignorecase:t=!0,ignoreCase:e=t,allowRelativePaths:r=!1}={}){d(this,c,!0),this._rules=new b(e),this._strictPathCheck=!r,this._initCache()}_initCache(){this._ignoreCache=Object.create(null),this._testCache=Object.create(null)}add(t){return this._rules.add(t)&&this._initCache(),this}addPattern(t){return this.add(t)}_test(t,e,r,s){let i=t&&m.convert(t);return m(i,t,this._strictPathCheck?v:p),this._t(i,e,r,s)}checkIgnore(t){if(!a.test(t))return this.test(t);let e=t.split("/").filter(Boolean);if(e.pop(),e.length){let t=this._t(e.join("/")+"/",this._testCache,!0,e);if(t.ignored)return t}return this._rules.test(t,!1,x)}_t(t,e,r,s){if(t in e)return e[t];if(s||(s=t.split("/").filter(Boolean)),s.pop(),!s.length)return e[t]=this._rules.test(t,r,$);let i=this._t(s.join("/")+"/",e,r,s);return e[t]=i.ignored?i:this._rules.test(t,r,$)}ignores(t){return this._test(t,this._ignoreCache,!1).ignored}createFilter(){return t=>!this.ignores(t)}filter(t){return e(t).filter(this.createFilter())}test(t){return this._test(t,this._testCache,!0)}}let E=t=>new w(t),R=()=>{m.convert=t=>/^\\\\\?\\/.test(t)||/["<>|\u0000-\u001F]+/u.test(t)?t:t.replace(/\\/g,"/");let t=/^[a-z]:\//i;m.isNotRelative=e=>t.test(e)||k(e)};"undefined"!=typeof process&&"win32"===process.platform&&R(),t.exports=E,E.default=E,t.exports.isPathValid=t=>m(t&&m.convert(t),t,p),d(t.exports,Symbol.for("setupWindows"),R)}},e={},r=function r(s){var i=e[s];if(void 0!==i)return i.exports;var n=e[s]={exports:{}};return t[s](n,n.exports,r),n.exports}("./ignore/index.js");module.exports=r})(); \ No newline at end of file diff --git a/packages/node_modules/istanbul-lib-coverage/index.js b/packages/node_modules/istanbul-lib-coverage/index.js index 10c6a087ae0..296582e1403 100644 --- a/packages/node_modules/istanbul-lib-coverage/index.js +++ b/packages/node_modules/istanbul-lib-coverage/index.js @@ -1 +1 @@ -(()=>{"use strict";var t={4967:function(t,e,a){let{FileCoverage:r}=a(5920),{CoverageMap:n}=a(9806),{CoverageSummary:s}=a(572);t.exports={createCoverageSummary:t=>t&&t instanceof s?t:new s(t),createCoverageMap:t=>t&&t instanceof n?t:new n(t),createFileCoverage:t=>t&&t instanceof r?t:new r(t)},t.exports.classes={FileCoverage:r}},9806:function(t,e,a){let{FileCoverage:r}=a(5920),{CoverageSummary:n}=a(572);function s(t,e){return t instanceof e?t:new e(t)}class i{constructor(t){t instanceof i?this.data=t.data:this.data=function(t){let e=Object.create(null);return t&&Object.entries(t).forEach(([t,a])=>{e[t]=s(a,r)}),e}(t)}merge(t){Object.values(s(t,i).data).forEach(t=>{this.addFileCoverage(t)})}filter(t){Object.keys(this.data).forEach(e=>{t(e)||delete this.data[e]})}toJSON(){return this.data}files(){return Object.keys(this.data)}fileCoverageFor(t){let e=this.data[t];if(!e)throw Error(`No file coverage available for: ${t}`);return e}addFileCoverage(t){let e=new r(t),{path:a}=e;this.data[a]?this.data[a].merge(e):this.data[a]=e}getCoverageSummary(){let t=new n;return Object.values(this.data).forEach(e=>{t.merge(e.toSummary())}),t}}t.exports={CoverageMap:i}},572:function(t,e,a){let r=a(1822),n=a(3813);class s{constructor(t){t?t instanceof s?this.data=t.data:this.data=t:this.data=function(){let t=()=>({total:0,covered:0,skipped:0,pct:"Unknown"});return{lines:t(),statements:t(),functions:t(),branches:t(),branchesTrue:t()}}(),function(t){if(!(t&&t.lines&&t.statements&&t.functions&&t.branches))throw Error("Invalid summary coverage object, missing keys, found:"+Object.keys(t).join(","))}(this.data)}merge(t){return["lines","statements","branches","functions","branchesTrue"].forEach(e=>{t[e]&&(this[e].total+=t[e].total,this[e].covered+=t[e].covered,this[e].skipped+=t[e].skipped,this[e].pct=r(this[e].covered,this[e].total))}),this}toJSON(){return this.data}isEmpty(){return 0===this.lines.total}}n(s,["lines","statements","functions","branches","branchesTrue"]),t.exports={CoverageSummary:s}},3813:function(t){t.exports=function(t,e){e.forEach(e=>{Object.defineProperty(t.prototype,e,{enumerable:!0,get(){return this.data[e]}})})}},5920:function(t,e,a){let r=a(1822),n=a(3813),{CoverageSummary:s}=a(572),i=({start:t,end:e})=>`${t.line}|${t.column}|${e.line}|${e.column}`,o=t=>!!t&&"object"==typeof t,l=t=>o(t)&&"number"==typeof t.line&&"number"==typeof t.column,c=t=>o(t)&&l(t.start)&&l(t.end),h=t=>c(t)?t:c(t.loc)?t.loc:null,f=(t,e)=>{let a=h(t);if(!a)return null;let r=null,n=null,s=null;for(let[t,i]of Object.entries(e)){let e=h(i);if(!e)continue;let o=[a.start.line-e.start.line,a.start.column-e.start.column,e.end.line-a.end.line,e.end.column-a.end.column];if(o[0]<0||o[2]<0||0===o[0]&&o[1]<0||0===o[2]&&o[3]<0)continue;if(null===r){n=o,r=i,s=t;continue}let l=o[0]"number"==typeof t&&"number"==typeof e?t+e:Array.isArray(t)&&Array.isArray(e)?t.map((t,a)=>(t||0)+(e[a]||0)):null,p=(t,e,a,r)=>{let n=f(t,a);return n?u(e,r[n]):e},b=(t,e,a,r,n=i)=>{let s={};for(let[a,r]of Object.entries(t)){let t=e[a];s[n(t)]=[r,t]}let o={};for(let[t,e]of Object.entries(a)){let a=r[t];o[n(a)]=[e,a]}let l={};for(let[t,e]of Object.entries(s)){let n=e[0],s=e[1],i=o[t];n=i?u(n,i[0]):p(s,n,r,a),l[t]=[n,s]}for(let[a,r]of Object.entries(o)){let n=r[0],s=r[1];l[a]||(n=p(s,n,e,t),l[a]=[n,s])}let c={},h={};return Object.values(l).forEach(([t,e],a)=>{c[a]=t,h[a]=e}),[c,h]};class d{constructor(t,e=!1){if(!t)throw Error("Coverage must be initialized with a path or an object");if("string"==typeof t)this.data=function(t,e){let a={path:t,statementMap:{},fnMap:{},branchMap:{},s:{},f:{},b:{}};return e&&(a.bT={}),a}(t,e);else if(t instanceof d)this.data=t.data;else if("object"==typeof t)this.data=t;else throw Error("Invalid argument to coverage constructor");!function(t){if(!(t&&t.path&&t.statementMap&&t.fnMap&&t.branchMap&&t.s&&t.f&&t.b))throw Error("Invalid file coverage object, missing keys, found:"+Object.keys(t).join(","))}(this.data)}getLineCoverage(){let t=this.data.statementMap,e=this.data.s,a=Object.create(null);return Object.entries(e).forEach(([e,r])=>{if(!t[e])return;let{line:n}=t[e].start,s=a[n];(void 0===s||s{0===a&&e.push(t)}),e}getBranchCoverageByLine(){let t=this.branchMap,e=this.b,a={};return Object.entries(t).forEach(([t,r])=>{let n=r.line||r.loc.start.line,s=e[t];a[n]=a[n]||[],a[n].push(...s)}),Object.entries(a).forEach(([t,e])=>{let r=e.filter(t=>t>0),n=r.length/e.length*100;a[t]={covered:r.length,total:e.length,coverage:n}}),a}toJSON(){return this.data}merge(t){if(!0===t.all)return;if(!0===this.all){this.data=t.data;return}let[e,a]=b(this.s,this.statementMap,t.s,t.statementMap);this.data.s=e,this.data.statementMap=a;let r=t=>i(t.locations[0]);[e,a]=b(this.f,this.fnMap,t.f,t.fnMap,t=>i(t.loc)),this.data.f=e,this.data.fnMap=a,[e,a]=b(this.b,this.branchMap,t.b,t.branchMap,r),this.data.b=e,this.data.branchMap=a,this.bT&&t.bT&&([e,a]=b(this.bT,this.branchMap,t.bT,t.branchMap,r),this.data.bT=e)}computeSimpleTotals(t){let e=this[t];"function"==typeof e&&(e=e.call(this));let a={total:Object.keys(e).length,covered:Object.values(e).filter(t=>!!t).length,skipped:0};return a.pct=r(a.covered,a.total),a}computeBranchTotals(t){let e=this[t],a={total:0,covered:0,skipped:0};return Object.values(e).forEach(t=>{a.covered+=t.filter(t=>t>0).length,a.total+=t.length}),a.pct=r(a.covered,a.total),a}resetHits(){let t=this.s,e=this.f,a=this.b,r=this.bT;Object.keys(t).forEach(e=>{t[e]=0}),Object.keys(e).forEach(t=>{e[t]=0}),Object.keys(a).forEach(t=>{a[t].fill(0)}),r&&Object.keys(r).forEach(t=>{r[t].fill(0)})}toSummary(){let t={};return t.lines=this.computeSimpleTotals("getLineCoverage"),t.functions=this.computeSimpleTotals("f","fnMap"),t.statements=this.computeSimpleTotals("s","statementMap"),t.branches=this.computeBranchTotals("b"),this.bT&&(t.branchesTrue=this.computeBranchTotals("bT")),new s(t)}}n(d,["path","statementMap","fnMap","branchMap","s","f","b","bT","all"]),t.exports={FileCoverage:d,findNearestContainer:f,addHits:u,addNearestContainerHits:p}},1822:function(t){t.exports=function(t,e){return e>0?Math.floor(1e5*t/e/10)/100:100}}},e={},a=function a(r){var n=e[r];if(void 0!==n)return n.exports;var s=e[r]={exports:{}};return t[r](s,s.exports,a),s.exports}(4967);module.exports=a})(); \ No newline at end of file +(()=>{"use strict";var e={"./istanbul-lib-coverage/index.js":function(e,t,a){let{FileCoverage:r}=a("./istanbul-lib-coverage/lib/file-coverage.js"),{CoverageMap:s}=a("./istanbul-lib-coverage/lib/coverage-map.js"),{CoverageSummary:n}=a("./istanbul-lib-coverage/lib/coverage-summary.js");e.exports={createCoverageSummary:e=>e&&e instanceof n?e:new n(e),createCoverageMap:e=>e&&e instanceof s?e:new s(e),createFileCoverage:e=>e&&e instanceof r?e:new r(e)},e.exports.classes={FileCoverage:r}},"./istanbul-lib-coverage/lib/coverage-map.js":function(e,t,a){let{FileCoverage:r}=a("./istanbul-lib-coverage/lib/file-coverage.js"),{CoverageSummary:s}=a("./istanbul-lib-coverage/lib/coverage-summary.js");function n(e,t){return e instanceof t?e:new t(e)}class i{constructor(e){e instanceof i?this.data=e.data:this.data=function(e){let t=Object.create(null);return e&&Object.entries(e).forEach(([e,a])=>{t[e]=n(a,r)}),t}(e)}merge(e){Object.values(n(e,i).data).forEach(e=>{this.addFileCoverage(e)})}filter(e){Object.keys(this.data).forEach(t=>{e(t)||delete this.data[t]})}toJSON(){return this.data}files(){return Object.keys(this.data)}fileCoverageFor(e){let t=this.data[e];if(!t)throw Error(`No file coverage available for: ${e}`);return t}addFileCoverage(e){let t=new r(e),{path:a}=t;this.data[a]?this.data[a].merge(t):this.data[a]=t}getCoverageSummary(){let e=new s;return Object.values(this.data).forEach(t=>{e.merge(t.toSummary())}),e}}e.exports={CoverageMap:i}},"./istanbul-lib-coverage/lib/coverage-summary.js":function(e,t,a){let r=a("./istanbul-lib-coverage/lib/percent.js"),s=a("./istanbul-lib-coverage/lib/data-properties.js");class n{constructor(e){e?e instanceof n?this.data=e.data:this.data=e:this.data=function(){let e=()=>({total:0,covered:0,skipped:0,pct:"Unknown"});return{lines:e(),statements:e(),functions:e(),branches:e(),branchesTrue:e()}}(),function(e){if(!(e&&e.lines&&e.statements&&e.functions&&e.branches))throw Error("Invalid summary coverage object, missing keys, found:"+Object.keys(e).join(","))}(this.data)}merge(e){return["lines","statements","branches","functions","branchesTrue"].forEach(t=>{e[t]&&(this[t].total+=e[t].total,this[t].covered+=e[t].covered,this[t].skipped+=e[t].skipped,this[t].pct=r(this[t].covered,this[t].total))}),this}toJSON(){return this.data}isEmpty(){return 0===this.lines.total}}s(n,["lines","statements","functions","branches","branchesTrue"]),e.exports={CoverageSummary:n}},"./istanbul-lib-coverage/lib/data-properties.js":function(e){e.exports=function(e,t){t.forEach(t=>{Object.defineProperty(e.prototype,t,{enumerable:!0,get(){return this.data[t]}})})}},"./istanbul-lib-coverage/lib/file-coverage.js":function(e,t,a){let r=a("./istanbul-lib-coverage/lib/percent.js"),s=a("./istanbul-lib-coverage/lib/data-properties.js"),{CoverageSummary:n}=a("./istanbul-lib-coverage/lib/coverage-summary.js"),i=({start:e,end:t})=>`${e.line}|${e.column}|${t.line}|${t.column}`,o=e=>!!e&&"object"==typeof e,l=e=>o(e)&&"number"==typeof e.line&&"number"==typeof e.column,c=e=>o(e)&&l(e.start)&&l(e.end),u=e=>c(e)?e:c(e.loc)?e.loc:null,h=(e,t)=>{let a=u(e);if(!a)return null;let r=null,s=null,n=null;for(let[e,i]of Object.entries(t)){let t=u(i);if(!t)continue;let o=[a.start.line-t.start.line,a.start.column-t.start.column,t.end.line-a.end.line,t.end.column-a.end.column];if(o[0]<0||o[2]<0||0===o[0]&&o[1]<0||0===o[2]&&o[3]<0)continue;if(null===r){s=o,r=i,n=e;continue}let l=o[0]"number"==typeof e&&"number"==typeof t?e+t:Array.isArray(e)&&Array.isArray(t)?e.map((e,a)=>(e||0)+(t[a]||0)):null,f=(e,t,a,r)=>{let s=h(e,a);return s?b(t,r[s]):t},p=(e,t,a,r,s=i)=>{let n={};for(let[a,r]of Object.entries(e)){let e=t[a];n[s(e)]=[r,e]}let o={};for(let[e,t]of Object.entries(a)){let a=r[e];o[s(a)]=[t,a]}let l={};for(let[e,t]of Object.entries(n)){let s=t[0],n=t[1],i=o[e];s=i?b(s,i[0]):f(n,s,r,a),l[e]=[s,n]}for(let[a,r]of Object.entries(o)){let s=r[0],n=r[1];l[a]||(s=f(n,s,t,e),l[a]=[s,n])}let c={},u={};return Object.values(l).forEach(([e,t],a)=>{c[a]=e,u[a]=t}),[c,u]};class d{constructor(e,t=!1){if(!e)throw Error("Coverage must be initialized with a path or an object");if("string"==typeof e)this.data=function(e,t){let a={path:e,statementMap:{},fnMap:{},branchMap:{},s:{},f:{},b:{}};return t&&(a.bT={}),a}(e,t);else if(e instanceof d)this.data=e.data;else if("object"==typeof e)this.data=e;else throw Error("Invalid argument to coverage constructor");!function(e){if(!(e&&e.path&&e.statementMap&&e.fnMap&&e.branchMap&&e.s&&e.f&&e.b))throw Error("Invalid file coverage object, missing keys, found:"+Object.keys(e).join(","))}(this.data)}getLineCoverage(){let e=this.data.statementMap,t=this.data.s,a=Object.create(null);return Object.entries(t).forEach(([t,r])=>{if(!e[t])return;let{line:s}=e[t].start,n=a[s];(void 0===n||n{0===a&&t.push(e)}),t}getBranchCoverageByLine(){let e=this.branchMap,t=this.b,a={};return Object.entries(e).forEach(([e,r])=>{let s=r.line||r.loc.start.line,n=t[e];a[s]=a[s]||[],a[s].push(...n)}),Object.entries(a).forEach(([e,t])=>{let r=t.filter(e=>e>0),s=r.length/t.length*100;a[e]={covered:r.length,total:t.length,coverage:s}}),a}toJSON(){return this.data}merge(e){if(!0===e.all)return;if(!0===this.all){this.data=e.data;return}let[t,a]=p(this.s,this.statementMap,e.s,e.statementMap);this.data.s=t,this.data.statementMap=a;let r=e=>i(e.locations[0]);[t,a]=p(this.f,this.fnMap,e.f,e.fnMap,e=>i(e.loc)),this.data.f=t,this.data.fnMap=a,[t,a]=p(this.b,this.branchMap,e.b,e.branchMap,r),this.data.b=t,this.data.branchMap=a,this.bT&&e.bT&&([t,a]=p(this.bT,this.branchMap,e.bT,e.branchMap,r),this.data.bT=t)}computeSimpleTotals(e){let t=this[e];"function"==typeof t&&(t=t.call(this));let a={total:Object.keys(t).length,covered:Object.values(t).filter(e=>!!e).length,skipped:0};return a.pct=r(a.covered,a.total),a}computeBranchTotals(e){let t=this[e],a={total:0,covered:0,skipped:0};return Object.values(t).forEach(e=>{a.covered+=e.filter(e=>e>0).length,a.total+=e.length}),a.pct=r(a.covered,a.total),a}resetHits(){let e=this.s,t=this.f,a=this.b,r=this.bT;Object.keys(e).forEach(t=>{e[t]=0}),Object.keys(t).forEach(e=>{t[e]=0}),Object.keys(a).forEach(e=>{a[e].fill(0)}),r&&Object.keys(r).forEach(e=>{r[e].fill(0)})}toSummary(){let e={};return e.lines=this.computeSimpleTotals("getLineCoverage"),e.functions=this.computeSimpleTotals("f","fnMap"),e.statements=this.computeSimpleTotals("s","statementMap"),e.branches=this.computeBranchTotals("b"),this.bT&&(e.branchesTrue=this.computeBranchTotals("bT")),new n(e)}}s(d,["path","statementMap","fnMap","branchMap","s","f","b","bT","all"]),e.exports={FileCoverage:d,findNearestContainer:h,addHits:b,addNearestContainerHits:f}},"./istanbul-lib-coverage/lib/percent.js":function(e){e.exports=function(e,t){return t>0?Math.floor(1e5*e/t/10)/100:100}}},t={},a=function a(r){var s=t[r];if(void 0!==s)return s.exports;var n=t[r]={exports:{}};return e[r](n,n.exports,a),n.exports}("./istanbul-lib-coverage/index.js");module.exports=a})(); \ No newline at end of file diff --git a/packages/node_modules/jest-docblock/index.js b/packages/node_modules/jest-docblock/index.js index ee47c04ff99..acc38a36bc9 100644 --- a/packages/node_modules/jest-docblock/index.js +++ b/packages/node_modules/jest-docblock/index.js @@ -1 +1 @@ -(()=>{"use strict";var r={8448:function(r){let t=r=>{if("string"!=typeof r)throw TypeError("Expected a string");let t=r.match(/(?:\r?\n)/g)||[];if(0===t.length)return;let e=t.filter(r=>"\r\n"===r).length,n=t.length-e;return e>n?"\r\n":"\n"};r.exports=t,r.exports.graceful=r=>"string"==typeof r&&t(r)||"\n"},857:function(r){r.exports=require("os")}},t={};function e(n){var i=t[n];if(void 0!==i)return i.exports;var l=t[n]={exports:{}};return r[n](l,l.exports,e),l.exports}var n={};(()=>{function r(){let t=e(857);return r=function(){return t},t}function t(){var r;let n=(r=e(8448))&&r.__esModule?r:{default:r};return t=function(){return n},n}Object.defineProperty(n,"__esModule",{value:!0}),n.extract=function(r){let t=r.match(a);return t?t[0].trimLeft():""},n.parse=function(r){return g(r).pragmas},n.parseWithComments=g,n.print=function({comments:e="",pragmas:n={}}){let i=(0,t().default)(e)??r().EOL,l=Object.keys(n),a=l.flatMap(r=>m(r,n[r])).map(r=>` * ${r}${i}`).join("");if(!e){if(0===l.length)return"";if(1===l.length&&!Array.isArray(n[l[0]])){let r=n[l[0]];return`/** ${m(l[0],r)[0]} */`}}let u=e.split(i).map(r=>` * ${r}`).join(i)+i;return"/**"+i+(e?u:"")+(e&&l.length?" *"+i:"")+a+" */"},n.strip=function(r){let t=r.match(a);return t&&t[0]?r.substring(t[0].length):r};let i=/\*\/$/,l=/^\/\*\*?/,a=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,u=/(^|\s+)\/\/([^\r\n]*)/g,o=/^(\r?\n)+/,c=/(?:^|\r?\n) *(@[^\r\n]*?) *\r?\n *(?![^@\r\n]*\/\/[^]*)([^@\r\n\s][^@\r\n]+?) *\r?\n/g,p=/(?:^|\r?\n) *@(\S+) *([^\r\n]*)/g,f=/(\r?\n|^) *\* ?/g,s=[];function g(e){let n,a=(0,t().default)(e)??r().EOL;e=e.replace(l,"").replace(i,"").replace(f,"$1");let g="";for(;g!==e;)g=e,e=e.replace(c,`${a}$1 $2${a}`);e=e.replace(o,"").trimRight();let m=Object.create(null),h=e.replace(p,"").replace(o,"").trimRight();for(;n=p.exec(e);){let r=n[2].replace(u,"");"string"==typeof m[n[1]]||Array.isArray(m[n[1]])?m[n[1]]=s.concat(m[n[1]],r):m[n[1]]=r}return{comments:h,pragmas:m}}function m(r,t){return s.concat(t).map(t=>`@${r} ${t}`.trim())}})(),module.exports=n})(); \ No newline at end of file +(()=>{"use strict";var e={"./detect-newline/index.js":function(e){let r=e=>{if("string"!=typeof e)throw TypeError("Expected a string");let r=e.match(/(?:\r?\n)/g)||[];if(0===r.length)return;let t=r.filter(e=>"\r\n"===e).length,n=r.length-t;return t>n?"\r\n":"\n"};e.exports=r,e.exports.graceful=e=>"string"==typeof e&&r(e)||"\n"},os:function(e){e.exports=require("os")}},r={};function t(n){var i=r[n];if(void 0!==i)return i.exports;var l=r[n]={exports:{}};return e[n](l,l.exports,t),l.exports}var n={};(()=>{function e(){let r=t("os");return e=function(){return r},r}function r(){var e;let n=(e=t("./detect-newline/index.js"))&&e.__esModule?e:{default:e};return r=function(){return n},n}Object.defineProperty(n,"__esModule",{value:!0}),n.extract=function(e){let r=e.match(a);return r?r[0].trimLeft():""},n.parse=function(e){return g(e).pragmas},n.parseWithComments=g,n.print=function({comments:t="",pragmas:n={}}){let i=(0,r().default)(t)??e().EOL,l=Object.keys(n),a=l.flatMap(e=>m(e,n[e])).map(e=>` * ${e}${i}`).join("");if(!t){if(0===l.length)return"";if(1===l.length&&!Array.isArray(n[l[0]])){let e=n[l[0]];return`/** ${m(l[0],e)[0]} */`}}let o=t.split(i).map(e=>` * ${e}`).join(i)+i;return"/**"+i+(t?o:"")+(t&&l.length?" *"+i:"")+a+" */"},n.strip=function(e){let r=e.match(a);return r&&r[0]?e.substring(r[0].length):e};let i=/\*\/$/,l=/^\/\*\*?/,a=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,o=/(^|\s+)\/\/([^\r\n]*)/g,u=/^(\r?\n)+/,c=/(?:^|\r?\n) *(@[^\r\n]*?) *\r?\n *(?![^@\r\n]*\/\/[^]*)([^@\r\n\s][^@\r\n]+?) *\r?\n/g,s=/(?:^|\r?\n) *@(\S+) *([^\r\n]*)/g,p=/(\r?\n|^) *\* ?/g,f=[];function g(t){let n,a=(0,r().default)(t)??e().EOL;t=t.replace(l,"").replace(i,"").replace(p,"$1");let g="";for(;g!==t;)g=t,t=t.replace(c,`${a}$1 $2${a}`);t=t.replace(u,"").trimRight();let m=Object.create(null),h=t.replace(s,"").replace(u,"").trimRight();for(;n=s.exec(t);){let e=n[2].replace(o,"");"string"==typeof m[n[1]]||Array.isArray(m[n[1]])?m[n[1]]=f.concat(m[n[1]],e):m[n[1]]=e}return{comments:h,pragmas:m}}function m(e,r){return f.concat(r).map(r=>`@${e} ${r}`.trim())}})(),module.exports=n})(); \ No newline at end of file diff --git a/packages/node_modules/limiter/index.js b/packages/node_modules/limiter/index.js index f30b52cfa5b..1d78d5fd007 100644 --- a/packages/node_modules/limiter/index.js +++ b/packages/node_modules/limiter/index.js @@ -1 +1 @@ -(()=>{var t={5632:function(t){t.exports=function(){if("undefined"!=typeof process&&process.hrtime){var t=process.hrtime();return 1e3*t[0]+Math.floor(t[1]/1e6)}return new Date().getTime()}},2744:function(t,e,n){var i=n(773),r=n(5632),s=function(t,e,n){this.tokenBucket=new i(t,t,e,null),this.tokenBucket.content=t,this.curIntervalStart=r(),this.tokensThisInterval=0,this.fireImmediately=n};s.prototype={tokenBucket:null,curIntervalStart:0,tokensThisInterval:0,fireImmediately:!1,removeTokens:function(t,e){if(t>this.tokenBucket.bucketSize)return process.nextTick(e.bind(null,"Requested tokens "+t+" exceeds maximum tokens per interval "+this.tokenBucket.bucketSize,null)),!1;var n=this,i=r();if((i=this.tokenBucket.interval)&&(this.curIntervalStart=i,this.tokensThisInterval=0),t>this.tokenBucket.tokensPerInterval-this.tokensThisInterval)return this.fireImmediately?process.nextTick(e.bind(null,null,-1)):setTimeout(function(){n.tokenBucket.removeTokens(t,s)},Math.ceil(this.curIntervalStart+this.tokenBucket.interval-i)),!1;return this.tokenBucket.removeTokens(t,s);function s(i,r){if(i)return e(i,null);n.tokensThisInterval+=t,e(null,r)}},tryRemoveTokens:function(t){if(t>this.tokenBucket.bucketSize)return!1;var e=r();if((e=this.tokenBucket.interval)&&(this.curIntervalStart=e,this.tokensThisInterval=0),t>this.tokenBucket.tokensPerInterval-this.tokensThisInterval)return!1;var n=this.tokenBucket.tryRemoveTokens(t);return n&&(this.tokensThisInterval+=t),n},getTokensRemaining:function(){return this.tokenBucket.drip(),this.tokenBucket.content}},t.exports=s},773:function(t){var e=function(t,e,n,i){if(this.bucketSize=t,this.tokensPerInterval=e,"string"==typeof n)switch(n){case"sec":case"second":this.interval=1e3;break;case"min":case"minute":this.interval=6e4;break;case"hr":case"hour":this.interval=36e5;break;case"day":this.interval=864e5;break;default:throw Error("Invaid interval "+n)}else this.interval=n;this.parentBucket=i,this.content=0,this.lastDrip=+new Date};e.prototype={bucketSize:1,tokensPerInterval:1,interval:1e3,parentBucket:null,content:0,lastDrip:0,removeTokens:function(t,e){var n=this;if(!this.bucketSize)return process.nextTick(e.bind(null,null,t,1/0)),!0;if(t>this.bucketSize)return process.nextTick(e.bind(null,"Requested tokens "+t+" exceeds bucket size "+this.bucketSize,null)),!1;if(this.drip(),t>this.content)return i();if(this.parentBucket)return this.parentBucket.removeTokens(t,function(r,s){return r?e(r,null):t>n.content?i():void(n.content-=t,e(null,Math.min(s,n.content)))});return this.content-=t,process.nextTick(e.bind(null,null,this.content)),!0;function i(){return setTimeout(function(){n.removeTokens(t,e)},Math.ceil((t-n.content)*(n.interval/n.tokensPerInterval))),!1}},tryRemoveTokens:function(t){return!this.bucketSize||!(t>this.bucketSize)&&(this.drip(),!(t>this.content)&&(!this.parentBucket||!!this.parentBucket.tryRemoveTokens(t))&&(this.content-=t,!0))},drip:function(){if(!this.tokensPerInterval){this.content=this.bucketSize;return}var t=+new Date,e=Math.max(t-this.lastDrip,0);this.lastDrip=t;var n=e*(this.tokensPerInterval/this.interval);this.content=Math.min(this.content+n,this.bucketSize)}},t.exports=e}},e={};function n(i){var r=e[i];if(void 0!==r)return r.exports;var s=e[i]={exports:{}};return t[i](s,s.exports,n),s.exports}var i={};i.RateLimiter=n(2744),i.TokenBucket=n(773),module.exports=i})(); \ No newline at end of file +(()=>{var t={"./limiter/lib/clock.js":function(t){t.exports=function(){if("undefined"!=typeof process&&process.hrtime){var t=process.hrtime();return 1e3*t[0]+Math.floor(t[1]/1e6)}return new Date().getTime()}},"./limiter/lib/rateLimiter.js":function(t,e,n){var i=n("./limiter/lib/tokenBucket.js"),r=n("./limiter/lib/clock.js"),s=function(t,e,n){this.tokenBucket=new i(t,t,e,null),this.tokenBucket.content=t,this.curIntervalStart=r(),this.tokensThisInterval=0,this.fireImmediately=n};s.prototype={tokenBucket:null,curIntervalStart:0,tokensThisInterval:0,fireImmediately:!1,removeTokens:function(t,e){if(t>this.tokenBucket.bucketSize)return process.nextTick(e.bind(null,"Requested tokens "+t+" exceeds maximum tokens per interval "+this.tokenBucket.bucketSize,null)),!1;var n=this,i=r();if((i=this.tokenBucket.interval)&&(this.curIntervalStart=i,this.tokensThisInterval=0),t>this.tokenBucket.tokensPerInterval-this.tokensThisInterval)return this.fireImmediately?process.nextTick(e.bind(null,null,-1)):setTimeout(function(){n.tokenBucket.removeTokens(t,s)},Math.ceil(this.curIntervalStart+this.tokenBucket.interval-i)),!1;return this.tokenBucket.removeTokens(t,s);function s(i,r){if(i)return e(i,null);n.tokensThisInterval+=t,e(null,r)}},tryRemoveTokens:function(t){if(t>this.tokenBucket.bucketSize)return!1;var e=r();if((e=this.tokenBucket.interval)&&(this.curIntervalStart=e,this.tokensThisInterval=0),t>this.tokenBucket.tokensPerInterval-this.tokensThisInterval)return!1;var n=this.tokenBucket.tryRemoveTokens(t);return n&&(this.tokensThisInterval+=t),n},getTokensRemaining:function(){return this.tokenBucket.drip(),this.tokenBucket.content}},t.exports=s},"./limiter/lib/tokenBucket.js":function(t){var e=function(t,e,n,i){if(this.bucketSize=t,this.tokensPerInterval=e,"string"==typeof n)switch(n){case"sec":case"second":this.interval=1e3;break;case"min":case"minute":this.interval=6e4;break;case"hr":case"hour":this.interval=36e5;break;case"day":this.interval=864e5;break;default:throw Error("Invaid interval "+n)}else this.interval=n;this.parentBucket=i,this.content=0,this.lastDrip=+new Date};e.prototype={bucketSize:1,tokensPerInterval:1,interval:1e3,parentBucket:null,content:0,lastDrip:0,removeTokens:function(t,e){var n=this;if(!this.bucketSize)return process.nextTick(e.bind(null,null,t,1/0)),!0;if(t>this.bucketSize)return process.nextTick(e.bind(null,"Requested tokens "+t+" exceeds bucket size "+this.bucketSize,null)),!1;if(this.drip(),t>this.content)return i();if(this.parentBucket)return this.parentBucket.removeTokens(t,function(r,s){return r?e(r,null):t>n.content?i():void(n.content-=t,e(null,Math.min(s,n.content)))});return this.content-=t,process.nextTick(e.bind(null,null,this.content)),!0;function i(){return setTimeout(function(){n.removeTokens(t,e)},Math.ceil((t-n.content)*(n.interval/n.tokensPerInterval))),!1}},tryRemoveTokens:function(t){return!this.bucketSize||!(t>this.bucketSize)&&(this.drip(),!(t>this.content)&&(!this.parentBucket||!!this.parentBucket.tryRemoveTokens(t))&&(this.content-=t,!0))},drip:function(){if(!this.tokensPerInterval){this.content=this.bucketSize;return}var t=+new Date,e=Math.max(t-this.lastDrip,0);this.lastDrip=t;var n=e*(this.tokensPerInterval/this.interval);this.content=Math.min(this.content+n,this.bucketSize)}},t.exports=e}},e={};function n(i){var r=e[i];if(void 0!==r)return r.exports;var s=e[i]={exports:{}};return t[i](s,s.exports,n),s.exports}var i={};i.RateLimiter=n("./limiter/lib/rateLimiter.js"),i.TokenBucket=n("./limiter/lib/tokenBucket.js"),module.exports=i})(); \ No newline at end of file diff --git a/packages/node_modules/lodash.sortby/index.js b/packages/node_modules/lodash.sortby/index.js index 1ad023185f5..2282fc353b5 100644 --- a/packages/node_modules/lodash.sortby/index.js +++ b/packages/node_modules/lodash.sortby/index.js @@ -1 +1 @@ -(()=>{var t={6986:function(t,r,n){t=n.nmd(t);var e,o,a,u,i,c,f="__lodash_hash_undefined__",l=1/0,s="[object Arguments]",v="[object Array]",h="[object Boolean]",p="[object Date]",_="[object Error]",d="[object Function]",y="[object Map]",b="[object Number]",g="[object Object]",j="[object Promise]",w="[object RegExp]",m="[object Set]",A="[object String]",O="[object Symbol]",x="[object WeakMap]",k="[object ArrayBuffer]",S="[object DataView]",$=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,E=/^\w*$/,F=/^\./,C=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,I=/\\(\\)?/g,M=/^\[object .+?Constructor\]$/,P=/^(?:0|[1-9]\d*)$/,T={};T["[object Float32Array]"]=T["[object Float64Array]"]=T["[object Int8Array]"]=T["[object Int16Array]"]=T["[object Int32Array]"]=T["[object Uint8Array]"]=T["[object Uint8ClampedArray]"]=T["[object Uint16Array]"]=T["[object Uint32Array]"]=!0,T[s]=T[v]=T[k]=T[h]=T[S]=T[p]=T[_]=T[d]=T[y]=T[b]=T[g]=T[w]=T[m]=T[A]=T[x]=!1;var U="object"==typeof global&&global&&global.Object===Object&&global,z="object"==typeof self&&self&&self.Object===Object&&self,L=U||z||Function("return this")(),B=r&&!r.nodeType&&r,D=B&&t&&!t.nodeType&&t,R=D&&D.exports===B&&U.process,V=function(){try{return R&&R.binding("util")}catch(t){}}(),W=V&&V.isTypedArray;function G(t,r){for(var n=-1,e=t?t.length:0,o=Array(e);++n-1},tk.prototype.set=function(t,r){var n=this.__data__,e=tF(n,t);return e<0?n.push([t,r]):n[e][1]=r,this},tS.prototype.clear=function(){this.__data__={hash:new tx,map:new(tv||tk),string:new tx}},tS.prototype.delete=function(t){return tL(this,t).delete(t)},tS.prototype.get=function(t){return tL(this,t).get(t)},tS.prototype.has=function(t){return tL(this,t).has(t)},tS.prototype.set=function(t,r){return tL(this,t).set(t,r),this},t$.prototype.add=t$.prototype.push=function(t){return this.__data__.set(t,f),this},t$.prototype.has=function(t){return this.__data__.has(t)},tE.prototype.clear=function(){this.__data__=new tk},tE.prototype.delete=function(t){return this.__data__.delete(t)},tE.prototype.get=function(t){return this.__data__.get(t)},tE.prototype.has=function(t){return this.__data__.has(t)},tE.prototype.set=function(t,r){var n=this.__data__;if(n instanceof tk){var e=n.__data__;if(!tv||e.length<199)return e.push([t,r]),this;n=this.__data__=new tS(e)}return n.set(t,r),this};var tC=(e=function(t,r){return t&&tI(t,r,t4)},function(t,r){if(null==t)return t;if(!t1(t))return e(t,r);for(var n=t.length,o=-1,a=Object(t);++oi))return!1;var f=a.get(t);if(f&&a.get(r))return f==r;var l=-1,s=!0,v=1&o?new t$:void 0;for(a.set(t,r),a.set(r,t);++l-1&&t%1==0&&t1&&tW(t,r[0],r[1])?r=[]:n>2&&tW(r[0],r[1],r[2])&&(r=[r[0]]),function(t,r,n){var e,o,a,u=-1;r=G(r.length?r:[t5],N(tU));var i=(e=function(t,n,e){return{criteria:G(r,function(r){return r(t)}),index:++u,value:t}},o=-1,a=t1(t)?Array(t.length):[],tC(t,function(t,r,n){a[++o]=e(t,r,n)}),a),c=i.length;for(i.sort(function(t,r){return function(t,r,n){for(var e=-1,o=t.criteria,a=r.criteria,u=o.length,i=n.length;++er||a&&u&&c&&!i&&!f||e&&u&&c||!n&&c||!o)return 1;if(!e&&!a&&!f&&t=i)return c;return c*("desc"==n[e]?-1:1)}}return t.index-r.index}(t,r,n)});c--;)i[c]=i[c].value;return i}(t,function t(r,n,e,o,a){var u=-1,i=r.length;for(e||(e=tR),a||(a=[]);++u0&&e(c)?n>1?t(c,n-1,e,o,a):function(t,r){for(var n=-1,e=r.length,o=t.length;++n-1&&t%1==0&&t<=0x1fffffffffffff}function t6(t){var r=typeof t;return!!t&&("object"==r||"function"==r)}function t3(t){return!!t&&"object"==typeof t}function t8(t){return"symbol"==typeof t||t3(t)&&tn.call(t)==O}var t9=W?N(W):function(t){return t3(t)&&t2(t.length)&&!!T[tn.call(t)]};function t4(t){return t1(t)?function(t,r){var n=tZ(t)||tY(t)?function(t,r){for(var n=-1,e=Array(t);++n(t.paths=[],t.children||(t.children=[]),t);var e=n(6986);module.exports=e})(); \ No newline at end of file +(()=>{var t={"./lodash.sortby/index.js":function(t,r,n){t=n.nmd(t);var e,o,a,u,i,c,f="__lodash_hash_undefined__",l=1/0,s="[object Arguments]",h="[object Array]",v="[object Boolean]",p="[object Date]",_="[object Error]",d="[object Function]",y="[object Map]",b="[object Number]",g="[object Object]",j="[object Promise]",w="[object RegExp]",m="[object Set]",A="[object String]",O="[object Symbol]",x="[object WeakMap]",k="[object ArrayBuffer]",S="[object DataView]",$=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,E=/^\w*$/,F=/^\./,C=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,I=/\\(\\)?/g,M=/^\[object .+?Constructor\]$/,P=/^(?:0|[1-9]\d*)$/,T={};T["[object Float32Array]"]=T["[object Float64Array]"]=T["[object Int8Array]"]=T["[object Int16Array]"]=T["[object Int32Array]"]=T["[object Uint8Array]"]=T["[object Uint8ClampedArray]"]=T["[object Uint16Array]"]=T["[object Uint32Array]"]=!0,T[s]=T[h]=T[k]=T[v]=T[S]=T[p]=T[_]=T[d]=T[y]=T[b]=T[g]=T[w]=T[m]=T[A]=T[x]=!1;var U="object"==typeof global&&global&&global.Object===Object&&global,z="object"==typeof self&&self&&self.Object===Object&&self,L=U||z||Function("return this")(),B=r&&!r.nodeType&&r,D=B&&t&&!t.nodeType&&t,R=D&&D.exports===B&&U.process,V=function(){try{return R&&R.binding("util")}catch(t){}}(),W=V&&V.isTypedArray;function G(t,r){for(var n=-1,e=t?t.length:0,o=Array(e);++n-1},tk.prototype.set=function(t,r){var n=this.__data__,e=tF(n,t);return e<0?n.push([t,r]):n[e][1]=r,this},tS.prototype.clear=function(){this.__data__={hash:new tx,map:new(th||tk),string:new tx}},tS.prototype.delete=function(t){return tL(this,t).delete(t)},tS.prototype.get=function(t){return tL(this,t).get(t)},tS.prototype.has=function(t){return tL(this,t).has(t)},tS.prototype.set=function(t,r){return tL(this,t).set(t,r),this},t$.prototype.add=t$.prototype.push=function(t){return this.__data__.set(t,f),this},t$.prototype.has=function(t){return this.__data__.has(t)},tE.prototype.clear=function(){this.__data__=new tk},tE.prototype.delete=function(t){return this.__data__.delete(t)},tE.prototype.get=function(t){return this.__data__.get(t)},tE.prototype.has=function(t){return this.__data__.has(t)},tE.prototype.set=function(t,r){var n=this.__data__;if(n instanceof tk){var e=n.__data__;if(!th||e.length<199)return e.push([t,r]),this;n=this.__data__=new tS(e)}return n.set(t,r),this};var tC=(e=function(t,r){return t&&tI(t,r,t4)},function(t,r){if(null==t)return t;if(!t1(t))return e(t,r);for(var n=t.length,o=-1,a=Object(t);++oi))return!1;var f=a.get(t);if(f&&a.get(r))return f==r;var l=-1,s=!0,h=1&o?new t$:void 0;for(a.set(t,r),a.set(r,t);++l-1&&t%1==0&&t1&&tW(t,r[0],r[1])?r=[]:n>2&&tW(r[0],r[1],r[2])&&(r=[r[0]]),function(t,r,n){var e,o,a,u=-1;r=G(r.length?r:[t5],N(tU));var i=(e=function(t,n,e){return{criteria:G(r,function(r){return r(t)}),index:++u,value:t}},o=-1,a=t1(t)?Array(t.length):[],tC(t,function(t,r,n){a[++o]=e(t,r,n)}),a),c=i.length;for(i.sort(function(t,r){return function(t,r,n){for(var e=-1,o=t.criteria,a=r.criteria,u=o.length,i=n.length;++er||a&&u&&c&&!i&&!f||e&&u&&c||!n&&c||!o)return 1;if(!e&&!a&&!f&&t=i)return c;return c*("desc"==n[e]?-1:1)}}return t.index-r.index}(t,r,n)});c--;)i[c]=i[c].value;return i}(t,function t(r,n,e,o,a){var u=-1,i=r.length;for(e||(e=tR),a||(a=[]);++u0&&e(c)?n>1?t(c,n-1,e,o,a):function(t,r){for(var n=-1,e=r.length,o=t.length;++n-1&&t%1==0&&t<=0x1fffffffffffff}function t3(t){var r=typeof t;return!!t&&("object"==r||"function"==r)}function t8(t){return!!t&&"object"==typeof t}function t6(t){return"symbol"==typeof t||t8(t)&&tn.call(t)==O}var t9=W?N(W):function(t){return t8(t)&&t2(t.length)&&!!T[tn.call(t)]};function t4(t){return t1(t)?function(t,r){var n=tZ(t)||tY(t)?function(t,r){for(var n=-1,e=Array(t);++n(t.paths=[],t.children||(t.children=[]),t);var e=n("./lodash.sortby/index.js");module.exports=e})(); \ No newline at end of file diff --git a/packages/node_modules/module-details-from-path/index.js b/packages/node_modules/module-details-from-path/index.js index 824ee1b1607..60783a0d947 100644 --- a/packages/node_modules/module-details-from-path/index.js +++ b/packages/node_modules/module-details-from-path/index.js @@ -1 +1 @@ -(()=>{"use strict";var r={3592:function(r,e,t){var o=t(6928).sep;r.exports=function(r){var e=r.split(o),t=e.lastIndexOf("node_modules");if(-1!==t&&e[t+1]){for(var n="@"===e[t+1][0],s=n?e[t+1]+"/"+e[t+2]:e[t+1],a=n?3:2,i="",p=t+a-1,u=0;u<=p;u++)u===p?i+=e[u]:i+=e[u]+o;for(var f="",v=e.length-1,x=t+a;x<=v;x++)x===v?f+=e[x]:f+=e[x]+o;return{name:s,basedir:i,path:f}}}},6928:function(r){r.exports=require("path")}},e={},t=function t(o){var n=e[o];if(void 0!==n)return n.exports;var s=e[o]={exports:{}};return r[o](s,s.exports,t),s.exports}(3592);module.exports=t})(); \ No newline at end of file +(()=>{"use strict";var r={"./module-details-from-path/index.js":function(r,e,t){var o=t("path").sep;r.exports=function(r){var e=r.split(o),t=e.lastIndexOf("node_modules");if(-1!==t&&e[t+1]){for(var a="@"===e[t+1][0],s=a?e[t+1]+"/"+e[t+2]:e[t+1],n=a?3:2,i="",p=t+n-1,u=0;u<=p;u++)u===p?i+=e[u]:i+=e[u]+o;for(var d="",f=e.length-1,x=t+n;x<=f;x++)x===f?d+=e[x]:d+=e[x]+o;return{name:s,basedir:i,path:d}}}},path:function(r){r.exports=require("path")}},e={},t=function t(o){var a=e[o];if(void 0!==a)return a.exports;var s=e[o]={exports:{}};return r[o](s,s.exports,t),s.exports}("./module-details-from-path/index.js");module.exports=t})(); \ No newline at end of file diff --git a/packages/node_modules/mutexify/promise/index.js b/packages/node_modules/mutexify/promise/index.js index 6db02da2168..43e25fedd7b 100644 --- a/packages/node_modules/mutexify/promise/index.js +++ b/packages/node_modules/mutexify/promise/index.js @@ -1 +1 @@ -(()=>{var e={7861:function(e,n,o){var r=o(5076);e.exports=function(){var e=[],n=null,o=function(){n(u)},t=function(u){return n?e.push(u):(n=u,t.locked=!0,r(o),0)};t.locked=!1;var u=function(o,r,u){n=null,t.locked=!1,e.length&&t(e.shift()),o&&o(r,u)};return t}},4492:function(e,n,o){var r=o(7861);e.exports=function(){var e=r(),n=function(){return new Promise(e)};return Object.defineProperty(n,"locked",{get:function(){return e.locked},enumerable:!0}),n}},5076:function(e,n,o){e.exports="undefined"!=typeof process&&"function"==typeof process.nextTick?process.nextTick.bind(process):o(7386)},7386:function(e){e.exports="function"==typeof queueMicrotask?queueMicrotask:e=>Promise.resolve().then(e)}},n={},o=function o(r){var t=n[r];if(void 0!==t)return t.exports;var u=n[r]={exports:{}};return e[r](u,u.exports,o),u.exports}(4492);module.exports=o})(); \ No newline at end of file +(()=>{var e={"./mutexify/index.js":function(e,t,n){var o=n("./queue-tick/process-next-tick.js");e.exports=function(){var e=[],t=null,n=function(){t(u)},r=function(u){return t?e.push(u):(t=u,r.locked=!0,o(n),0)};r.locked=!1;var u=function(n,o,u){t=null,r.locked=!1,e.length&&r(e.shift()),n&&n(o,u)};return r}},"./mutexify/promise.js":function(e,t,n){var o=n("./mutexify/index.js");e.exports=function(){var e=o(),t=function(){return new Promise(e)};return Object.defineProperty(t,"locked",{get:function(){return e.locked},enumerable:!0}),t}},"./queue-tick/process-next-tick.js":function(e,t,n){e.exports="undefined"!=typeof process&&"function"==typeof process.nextTick?process.nextTick.bind(process):n("./queue-tick/queue-microtask.js")},"./queue-tick/queue-microtask.js":function(e){e.exports="function"==typeof queueMicrotask?queueMicrotask:e=>Promise.resolve().then(e)}},t={},n=function n(o){var r=t[o];if(void 0!==r)return r.exports;var u=t[o]={exports:{}};return e[o](u,u.exports,n),u.exports}("./mutexify/promise.js");module.exports=n})(); \ No newline at end of file diff --git a/packages/node_modules/opentracing/index.js b/packages/node_modules/opentracing/index.js index 7a0ed8f26ea..cccf4a007f7 100644 --- a/packages/node_modules/opentracing/index.js +++ b/packages/node_modules/opentracing/index.js @@ -1 +1 @@ -(()=>{"use strict";var t={9728:function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){this.buffer=t}},3325:function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.FORMAT_BINARY="binary",e.FORMAT_TEXT_MAP="text_map",e.FORMAT_HTTP_HEADERS="http_headers",e.REFERENCE_CHILD_OF="child_of",e.REFERENCE_FOLLOWS_FROM="follows_from"},595:function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.SPAN_KIND="span.kind",e.SPAN_KIND_RPC_CLIENT="client",e.SPAN_KIND_RPC_SERVER="server",e.SPAN_KIND_MESSAGING_PRODUCER="producer",e.SPAN_KIND_MESSAGING_CONSUMER="consumer",e.ERROR="error",e.COMPONENT="component",e.SAMPLING_PRIORITY="sampling.priority",e.PEER_SERVICE="peer.service",e.PEER_HOSTNAME="peer.hostname",e.PEER_ADDRESS="peer.address",e.PEER_HOST_IPV4="peer.ipv4",e.PEER_HOST_IPV6="peer.ipv6",e.PEER_PORT="peer.port",e.HTTP_URL="http.url",e.HTTP_METHOD="http.method",e.HTTP_STATUS_CODE="http.status_code",e.MESSAGE_BUS_DESTINATION="message_bus.destination",e.DB_INSTANCE="db.instance",e.DB_STATEMENT="db.statement",e.DB_TYPE="db.type",e.DB_USER="db.user"},7465:function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=n(3325),o=n(8653),i=n(5386);e.childOf=function(t){return t instanceof i.default&&(t=t.context()),new o.default(r.REFERENCE_CHILD_OF,t)},e.followsFrom=function(t){return t instanceof i.default&&(t=t.context()),new o.default(r.REFERENCE_FOLLOWS_FROM,t)}},3537:function(t,e,n){var r,o=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var i=n(9507),a=new i.default,u=null,s=new(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.startSpan=function(){var t=u||a;return t.startSpan.apply(t,arguments)},e.prototype.inject=function(){var t=u||a;return t.inject.apply(t,arguments)},e.prototype.extract=function(){var t=u||a;return t.extract.apply(t,arguments)},e}(i.default));e.initGlobalTracer=function(t){u=t},e.globalTracer=function(){return s}},7816:function(t,e,n){function r(t){for(var n in t)e.hasOwnProperty(n)||(e[n]=t[n])}Object.defineProperty(e,"__esModule",{value:!0}),e.BinaryCarrier=n(9728).default,e.Tags=n(595);var o=n(4526);e.Reference=n(8653).default,e.Span=n(5386).default,e.SpanContext=n(2742).default,e.Tracer=n(9507).Tracer,e.MockTracer=n(6741).MockTracer,r(n(3537)),r(n(3325)),r(n(7465)),o.initialize()},6741:function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.MockContext=n(1091).default,e.MockSpan=n(4018).default,e.MockTracer=n(8683).default},1091:function(t,e,n){var r,o=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var i=function(t){function e(e){var n=t.call(this)||this;return n._span=e,n}return o(e,t),e.prototype.span=function(){return this._span},e}(n(2742).SpanContext);e.MockContext=i,e.default=i},4536:function(t,e){Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t){var e=this;this.spans=t,this.spansByUUID={},this.spansByTag={},this.debugSpans=[],this.unfinishedSpans=[],t.forEach(function(t){0===t._finishMs&&e.unfinishedSpans.push(t),e.spansByUUID[t.uuid()]=t,e.debugSpans.push(t.debug());var n=t.tags();Object.keys(n).forEach(function(r){var o=n[r];e.spansByTag[r]=e.spansByTag[r]||{},e.spansByTag[r][o]=e.spansByTag[r][o]||[],e.spansByTag[r][o].push(t)})})}return t.prototype.firstSpanWithTagValue=function(t,e){var n=this.spansByTag[t];if(!n)return null;var r=n[e];return r?r[0]:null},t}();e.MockReport=n,e.default=n},4018:function(t,e,n){var r,o=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var i=n(7816),a=n(1091),u=function(t){function e(e){var n=t.call(this)||this;return n._mockTracer=e,n._uuid=n._generateUUID(),n._startMs=Date.now(),n._finishMs=0,n._operationName="",n._tags={},n._logs=[],n}return o(e,t),e.prototype._context=function(){return new a.default(this)},e.prototype._setOperationName=function(t){this._operationName=t},e.prototype._addTags=function(t){for(var e=Object.keys(t),n=0;n{"use strict";var t={"./opentracing/lib/binary_carrier.js":function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){this.buffer=t}},"./opentracing/lib/constants.js":function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.FORMAT_BINARY="binary",e.FORMAT_TEXT_MAP="text_map",e.FORMAT_HTTP_HEADERS="http_headers",e.REFERENCE_CHILD_OF="child_of",e.REFERENCE_FOLLOWS_FROM="follows_from"},"./opentracing/lib/ext/tags.js":function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.SPAN_KIND="span.kind",e.SPAN_KIND_RPC_CLIENT="client",e.SPAN_KIND_RPC_SERVER="server",e.SPAN_KIND_MESSAGING_PRODUCER="producer",e.SPAN_KIND_MESSAGING_CONSUMER="consumer",e.ERROR="error",e.COMPONENT="component",e.SAMPLING_PRIORITY="sampling.priority",e.PEER_SERVICE="peer.service",e.PEER_HOSTNAME="peer.hostname",e.PEER_ADDRESS="peer.address",e.PEER_HOST_IPV4="peer.ipv4",e.PEER_HOST_IPV6="peer.ipv6",e.PEER_PORT="peer.port",e.HTTP_URL="http.url",e.HTTP_METHOD="http.method",e.HTTP_STATUS_CODE="http.status_code",e.MESSAGE_BUS_DESTINATION="message_bus.destination",e.DB_INSTANCE="db.instance",e.DB_STATEMENT="db.statement",e.DB_TYPE="db.type",e.DB_USER="db.user"},"./opentracing/lib/functions.js":function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=n("./opentracing/lib/constants.js"),o=n("./opentracing/lib/reference.js"),i=n("./opentracing/lib/span.js");e.childOf=function(t){return t instanceof i.default&&(t=t.context()),new o.default(r.REFERENCE_CHILD_OF,t)},e.followsFrom=function(t){return t instanceof i.default&&(t=t.context()),new o.default(r.REFERENCE_FOLLOWS_FROM,t)}},"./opentracing/lib/global_tracer.js":function(t,e,n){var r,o=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var i=n("./opentracing/lib/tracer.js"),a=new i.default,c=null,s=new(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.startSpan=function(){var t=c||a;return t.startSpan.apply(t,arguments)},e.prototype.inject=function(){var t=c||a;return t.inject.apply(t,arguments)},e.prototype.extract=function(){var t=c||a;return t.extract.apply(t,arguments)},e}(i.default));e.initGlobalTracer=function(t){c=t},e.globalTracer=function(){return s}},"./opentracing/lib/index.js":function(t,e,n){function r(t){for(var n in t)e.hasOwnProperty(n)||(e[n]=t[n])}Object.defineProperty(e,"__esModule",{value:!0}),e.BinaryCarrier=n("./opentracing/lib/binary_carrier.js").default,e.Tags=n("./opentracing/lib/ext/tags.js");var o=n("./opentracing/lib/noop.js");e.Reference=n("./opentracing/lib/reference.js").default,e.Span=n("./opentracing/lib/span.js").default,e.SpanContext=n("./opentracing/lib/span_context.js").default,e.Tracer=n("./opentracing/lib/tracer.js").Tracer,e.MockTracer=n("./opentracing/lib/mock_tracer/index.js").MockTracer,r(n("./opentracing/lib/global_tracer.js")),r(n("./opentracing/lib/constants.js")),r(n("./opentracing/lib/functions.js")),o.initialize()},"./opentracing/lib/mock_tracer/index.js":function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.MockContext=n("./opentracing/lib/mock_tracer/mock_context.js").default,e.MockSpan=n("./opentracing/lib/mock_tracer/mock_span.js").default,e.MockTracer=n("./opentracing/lib/mock_tracer/mock_tracer.js").default},"./opentracing/lib/mock_tracer/mock_context.js":function(t,e,n){var r,o=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var i=function(t){function e(e){var n=t.call(this)||this;return n._span=e,n}return o(e,t),e.prototype.span=function(){return this._span},e}(n("./opentracing/lib/span_context.js").SpanContext);e.MockContext=i,e.default=i},"./opentracing/lib/mock_tracer/mock_report.js":function(t,e){Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t){var e=this;this.spans=t,this.spansByUUID={},this.spansByTag={},this.debugSpans=[],this.unfinishedSpans=[],t.forEach(function(t){0===t._finishMs&&e.unfinishedSpans.push(t),e.spansByUUID[t.uuid()]=t,e.debugSpans.push(t.debug());var n=t.tags();Object.keys(n).forEach(function(r){var o=n[r];e.spansByTag[r]=e.spansByTag[r]||{},e.spansByTag[r][o]=e.spansByTag[r][o]||[],e.spansByTag[r][o].push(t)})})}return t.prototype.firstSpanWithTagValue=function(t,e){var n=this.spansByTag[t];if(!n)return null;var r=n[e];return r?r[0]:null},t}();e.MockReport=n,e.default=n},"./opentracing/lib/mock_tracer/mock_span.js":function(t,e,n){var r,o=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var i=n("./opentracing/lib/index.js"),a=n("./opentracing/lib/mock_tracer/mock_context.js"),c=function(t){function e(e){var n=t.call(this)||this;return n._mockTracer=e,n._uuid=n._generateUUID(),n._startMs=Date.now(),n._finishMs=0,n._operationName="",n._tags={},n._logs=[],n}return o(e,t),e.prototype._context=function(){return new a.default(this)},e.prototype._setOperationName=function(t){this._operationName=t},e.prototype._addTags=function(t){for(var e=Object.keys(t),n=0;n{var e={881:function(e){e.exports=function e(n,t,o){t=t||[];var i,s=(o=o||{}).strict,f=!1!==o.end,a=o.sensitive?"":"i",u=!1!==o.lookahead,p=0,l=t.length,c=0,g=0,x=0,h="";if(n instanceof RegExp){for(;i=r.exec(n.source);)"\\"!==i[0][0]&&t.push({name:i[1]||g++,optional:!1,offset:i.index});return n}if(Array.isArray(n))return new RegExp((n=n.map(function(r){return e(r,t,o).source})).join("|"),a);if("string"!=typeof n)throw TypeError("path must be a string, array of strings, or regular expression");for(n=n.replace(/\\.|(\/)?(\.)?:(\w+)(\(.*?\))?(\*)?(\?)?|[.*]|\/\(/g,function(e,r,o,i,s,f,a,u){if("\\"===e[0])return h+=e,x+=2,e;if("."===e)return h+="\\.",p+=1,x+=1,"\\.";if(r||o?h="":h+=n.slice(x,u),x=u+e.length,"*"===e)return p+=3,"(.*)";if("/("===e)return h+="/",p+=2,"/(?:";r=r||"",o=o?"\\.":"",a=a||"",s=s?s.replace(/\\.|\*/,function(e){return"*"===e?"(.*)":e}):h?"((?:(?!/|"+h+").)+?)":"([^/"+o+"]+?)",t.push({name:i,optional:!!a,offset:u+p});var l="(?:"+o+r+s+(f?"((?:[/"+o+"].+?)?)":"")+")"+a;return p+=l.length-e.length,l});i=r.exec(n);)"\\"!==i[0][0]&&((l+c===t.length||t[l+c].offset>i.index)&&t.splice(l+c,0,{name:g++,optional:!1,offset:i.index}),c++);return n+=s?"":"/"===n[n.length-1]?"?":"/?",f?n+="$":"/"!==n[n.length-1]&&(n+=u?"(?=/|$)":"(?:/|$)"),RegExp("^"+n,a)};var r=/\\.|\((?:\?<(.*?)>)?(?!\?)/g}},r={},n=function n(t){var o=r[t];if(void 0!==o)return o.exports;var i=r[t]={exports:{}};return e[t](i,i.exports,n),i.exports}(881);module.exports=n})(); \ No newline at end of file +(()=>{var e={"./path-to-regexp/index.js":function(e){e.exports=function e(t,n,o){n=n||[];var i,s=(o=o||{}).strict,a=!1!==o.end,f=o.sensitive?"":"i",p=!1!==o.lookahead,u=0,x=n.length,g=0,l=0,c=0,h="";if(t instanceof RegExp){for(;i=r.exec(t.source);)"\\"!==i[0][0]&&n.push({name:i[1]||l++,optional:!1,offset:i.index});return t}if(Array.isArray(t))return new RegExp((t=t.map(function(r){return e(r,n,o).source})).join("|"),f);if("string"!=typeof t)throw TypeError("path must be a string, array of strings, or regular expression");for(t=t.replace(/\\.|(\/)?(\.)?:(\w+)(\(.*?\))?(\*)?(\?)?|[.*]|\/\(/g,function(e,r,o,i,s,a,f,p){if("\\"===e[0])return h+=e,c+=2,e;if("."===e)return h+="\\.",u+=1,c+=1,"\\.";if(r||o?h="":h+=t.slice(c,p),c=p+e.length,"*"===e)return u+=3,"(.*)";if("/("===e)return h+="/",u+=2,"/(?:";r=r||"",o=o?"\\.":"",f=f||"",s=s?s.replace(/\\.|\*/,function(e){return"*"===e?"(.*)":e}):h?"((?:(?!/|"+h+").)+?)":"([^/"+o+"]+?)",n.push({name:i,optional:!!f,offset:p+u});var x="(?:"+o+r+s+(a?"((?:[/"+o+"].+?)?)":"")+")"+f;return u+=x.length-e.length,x});i=r.exec(t);)"\\"!==i[0][0]&&((x+g===n.length||n[x+g].offset>i.index)&&n.splice(x+g,0,{name:l++,optional:!1,offset:i.index}),g++);return t+=s?"":"/"===t[t.length-1]?"?":"/?",a?t+="$":"/"!==t[t.length-1]&&(t+=p?"(?=/|$)":"(?:/|$)"),RegExp("^"+t,f)};var r=/\\.|\((?:\?<(.*?)>)?(?!\?)/g}},r={},t=function t(n){var o=r[n];if(void 0!==o)return o.exports;var i=r[n]={exports:{}};return e[n](i,i.exports,t),i.exports}("./path-to-regexp/index.js");module.exports=t})(); \ No newline at end of file diff --git a/packages/node_modules/protobufjs/index.js b/packages/node_modules/protobufjs/index.js index 6513a7298f6..dff735ca5fe 100644 --- a/packages/node_modules/protobufjs/index.js +++ b/packages/node_modules/protobufjs/index.js @@ -1 +1 @@ -(()=>{"use strict";var __webpack_modules__={488:function(e){e.exports=t;function t(e,t){for(var r=Array(arguments.length-1),i=0,n=2,o=!0;n1&&"="===e.charAt(t);)++r;return Math.ceil(3*e.length)/4-r};for(var i=Array(64),n=Array(123),o=0;o<64;)n[i[o]=o<26?o+65:o<52?o+71:o<62?o-4:o-59|43]=o++;r.encode=function(e,t,r){for(var n,o=null,s=[],a=0,u=0;t>2],n=(3&f)<<4,u=1;break;case 1:s[a++]=i[n|f>>4],n=(15&f)<<2,u=2;break;case 2:s[a++]=i[n|f>>6],s[a++]=i[63&f],u=0}a>8191&&((o||(o=[])).push(String.fromCharCode.apply(String,s)),a=0)}return(u&&(s[a++]=i[n],s[a++]=61,1===u&&(s[a++]=61)),o)?(a&&o.push(String.fromCharCode.apply(String,s.slice(0,a))),o.join("")):String.fromCharCode.apply(String,s.slice(0,a))};var s="invalid encoding";r.decode=function(e,t,r){for(var i,o=r,a=0,u=0;u1)break;if(void 0===(f=n[f]))throw Error(s);switch(a){case 0:i=f,a=1;break;case 1:t[r++]=i<<2|(48&f)>>4,i=f,a=2;break;case 2:t[r++]=(15&i)<<4|(60&f)>>2,i=f,a=3;break;case 3:t[r++]=(3&i)<<6|f,a=0}}if(1===a)throw Error(s);return r-o},r.test=function(e){return/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(e)}},4604:function(e){function t(e,r){"string"==typeof e&&(r=e,e=void 0);var i=[];function n(e){if("string"!=typeof e){var r=o();if(t.verbose&&console.log("codegen: "+r),r="return "+r,e){for(var s=Object.keys(e),a=Array(s.length+1),u=Array(s.length),f=0;f0?0:0x80000000,r,i);else if(isNaN(t))e(0x7fc00000,r,i);else if(t>34028234663852886e22)e((n<<31|0x7f800000)>>>0,r,i);else if(t<11754943508222875e-54)e((n<<31|Math.round(t/1401298464324817e-60))>>>0,r,i);else{var o=Math.floor(Math.log(t)/Math.LN2),s=8388607&Math.round(t*Math.pow(2,-o)*8388608);e((n<<31|o+127<<23|s)>>>0,r,i)}}function s(e,t,r){var i=e(t,r),n=(i>>31)*2+1,o=i>>>23&255,s=8388607&i;return 255===o?s?NaN:1/0*n:0===o?1401298464324817e-60*n*s:n*Math.pow(2,o-150)*(s+8388608)}e.writeFloatLE=t.bind(null,r),e.writeFloatBE=t.bind(null,i),e.readFloatLE=s.bind(null,n),e.readFloatBE=s.bind(null,o)}(),"undefined"!=typeof Float64Array?!function(){var t=new Float64Array([-0]),r=new Uint8Array(t.buffer),i=128===r[7];function n(e,i,n){t[0]=e,i[n]=r[0],i[n+1]=r[1],i[n+2]=r[2],i[n+3]=r[3],i[n+4]=r[4],i[n+5]=r[5],i[n+6]=r[6],i[n+7]=r[7]}function o(e,i,n){t[0]=e,i[n]=r[7],i[n+1]=r[6],i[n+2]=r[5],i[n+3]=r[4],i[n+4]=r[3],i[n+5]=r[2],i[n+6]=r[1],i[n+7]=r[0]}function s(e,i){return r[0]=e[i],r[1]=e[i+1],r[2]=e[i+2],r[3]=e[i+3],r[4]=e[i+4],r[5]=e[i+5],r[6]=e[i+6],r[7]=e[i+7],t[0]}function a(e,i){return r[7]=e[i],r[6]=e[i+1],r[5]=e[i+2],r[4]=e[i+3],r[3]=e[i+4],r[2]=e[i+5],r[1]=e[i+6],r[0]=e[i+7],t[0]}e.writeDoubleLE=i?n:o,e.writeDoubleBE=i?o:n,e.readDoubleLE=i?s:a,e.readDoubleBE=i?a:s}():!function(){function t(e,t,r,i,n,o){var s,a=+(i<0);if(a&&(i=-i),0===i)e(0,n,o+t),e(1/i>0?0:0x80000000,n,o+r);else if(isNaN(i))e(0,n,o+t),e(0x7ff80000,n,o+r);else if(i>17976931348623157e292)e(0,n,o+t),e((a<<31|0x7ff00000)>>>0,n,o+r);else if(i<22250738585072014e-324)e((s=i/5e-324)>>>0,n,o+t),e((a<<31|s/0x100000000)>>>0,n,o+r);else{var u=Math.floor(Math.log(i)/Math.LN2);1024===u&&(u=1023),e(0x10000000000000*(s=i*Math.pow(2,-u))>>>0,n,o+t),e((a<<31|u+1023<<20|1048576*s&1048575)>>>0,n,o+r)}}function s(e,t,r,i,n){var o=e(i,n+t),s=e(i,n+r),a=(s>>31)*2+1,u=s>>>20&2047,f=0x100000000*(1048575&s)+o;return 2047===u?f?NaN:1/0*a:0===u?5e-324*a*f:a*Math.pow(2,u-1075)*(f+0x10000000000000)}e.writeDoubleLE=t.bind(null,r,0,4),e.writeDoubleBE=t.bind(null,i,4,0),e.readDoubleLE=s.bind(null,n,0,4),e.readDoubleBE=s.bind(null,o,4,0)}(),e}function r(e,t,r){t[r]=255&e,t[r+1]=e>>>8&255,t[r+2]=e>>>16&255,t[r+3]=e>>>24}function i(e,t,r){t[r]=e>>>24,t[r+1]=e>>>16&255,t[r+2]=e>>>8&255,t[r+3]=255&e}function n(e,t){return(e[t]|e[t+1]<<8|e[t+2]<<16|e[t+3]<<24)>>>0}function o(e,t){return(e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3])>>>0}e.exports=t(t)},1952:function(module){module.exports=inquire;function inquire(moduleName){try{var mod=eval("quire".replace(/^/,"re"))(moduleName);if(mod&&(mod.length||Object.keys(mod).length))return mod}catch(e){}return null}},8592:function(e,t){var r=t,i=r.isAbsolute=function(e){return/^(?:\/|\w+:)/.test(e)},n=r.normalize=function(e){var t=(e=e.replace(/\\/g,"/").replace(/\/{2,}/g,"/")).split("/"),r=i(e),n="";r&&(n=t.shift()+"/");for(var o=0;o0&&".."!==t[o-1]?t.splice(--o,2):r?t.splice(o,1):++o:"."===t[o]?t.splice(o,1):++o;return n+t.join("/")};r.resolve=function(e,t,r){return(r||(t=n(t)),i(t))?t:(r||(e=n(e)),(e=e.replace(/(?:\/|^)[^/]+$/,"")).length?n(e+"/"+t):t)}},3829:function(e){e.exports=t;function t(e,t,r){var i=r||8192,n=i>>>1,o=null,s=i;return function(r){if(r<1||r>n)return e(r);s+r>i&&(o=e(i),s=0);var a=t.call(o,s,s+=r);return 7&s&&(s=(7|s)+1),a}}},7800:function(e,t){var r=t;r.length=function(e){for(var t=0,r=0,i=0;i191&&i<224?o[s++]=(31&i)<<6|63&e[t++]:i>239&&i<365?(i=((7&i)<<18|(63&e[t++])<<12|(63&e[t++])<<6|63&e[t++])-65536,o[s++]=55296+(i>>10),o[s++]=56320+(1023&i)):o[s++]=(15&i)<<12|(63&e[t++])<<6|63&e[t++],s>8191&&((n||(n=[])).push(String.fromCharCode.apply(String,o)),s=0);return n?(s&&n.push(String.fromCharCode.apply(String,o.slice(0,s))),n.join("")):String.fromCharCode.apply(String,o.slice(0,s))},r.write=function(e,t,r){for(var i,n,o=r,s=0;s>6|192:((64512&i)==55296&&(64512&(n=e.charCodeAt(s+1)))==56320?(i=65536+((1023&i)<<10)+(1023&n),++s,t[r++]=i>>18|240,t[r++]=i>>12&63|128):t[r++]=i>>12|224,t[r++]=i>>6&63|128),t[r++]=63&i|128);return r-o}},4026:function(e,t,r){e.exports=r(1203)},5722:function(e){e.exports=i;var t,r=/\/|\./;function i(e,t){r.test(e)||(e="google/protobuf/"+e+".proto",t={nested:{google:{nested:{protobuf:{nested:t}}}}}),i[e]=t}i("any",{Any:{fields:{type_url:{type:"string",id:1},value:{type:"bytes",id:2}}}}),i("duration",{Duration:t={fields:{seconds:{type:"int64",id:1},nanos:{type:"int32",id:2}}}}),i("timestamp",{Timestamp:t}),i("empty",{Empty:{fields:{}}}),i("struct",{Struct:{fields:{fields:{keyType:"string",type:"Value",id:1}}},Value:{oneofs:{kind:{oneof:["nullValue","numberValue","stringValue","boolValue","structValue","listValue"]}},fields:{nullValue:{type:"NullValue",id:1},numberValue:{type:"double",id:2},stringValue:{type:"string",id:3},boolValue:{type:"bool",id:4},structValue:{type:"Struct",id:5},listValue:{type:"ListValue",id:6}}},NullValue:{values:{NULL_VALUE:0}},ListValue:{fields:{values:{rule:"repeated",type:"Value",id:1}}}}),i("wrappers",{DoubleValue:{fields:{value:{type:"double",id:1}}},FloatValue:{fields:{value:{type:"float",id:1}}},Int64Value:{fields:{value:{type:"int64",id:1}}},UInt64Value:{fields:{value:{type:"uint64",id:1}}},Int32Value:{fields:{value:{type:"int32",id:1}}},UInt32Value:{fields:{value:{type:"uint32",id:1}}},BoolValue:{fields:{value:{type:"bool",id:1}}},StringValue:{fields:{value:{type:"string",id:1}}},BytesValue:{fields:{value:{type:"bytes",id:1}}}}),i("field_mask",{FieldMask:{fields:{paths:{rule:"repeated",type:"string",id:1}}}}),i.get=function(e){return i[e]||null}},5603:function(e,t,r){var i=t,n=r(1918),o=r(7899);function s(e,t,r,i){var o=!1;if(t.resolvedType)if(t.resolvedType instanceof n){e("switch(d%s){",i);for(var s=t.resolvedType.values,a=Object.keys(s),u=0;u>>0",i,i);break;case"int32":case"sint32":case"sfixed32":e("m%s=d%s|0",i,i);break;case"uint64":f=!0;case"int64":case"sint64":case"fixed64":case"sfixed64":e("if(util.Long)")("(m%s=util.Long.fromValue(d%s)).unsigned=%j",i,i,f)('else if(typeof d%s==="string")',i)("m%s=parseInt(d%s,10)",i,i)('else if(typeof d%s==="number")',i)("m%s=d%s",i,i)('else if(typeof d%s==="object")',i)("m%s=new util.LongBits(d%s.low>>>0,d%s.high>>>0).toNumber(%s)",i,i,i,f?"true":"");break;case"bytes":e('if(typeof d%s==="string")',i)("util.base64.decode(d%s,m%s=util.newBuffer(util.base64.length(d%s)),0)",i,i,i)("else if(d%s.length >= 0)",i)("m%s=d%s",i,i);break;case"string":e("m%s=String(d%s)",i,i);break;case"bool":e("m%s=Boolean(d%s)",i,i)}}return e}function a(e,t,r,i){if(t.resolvedType)t.resolvedType instanceof n?e("d%s=o.enums===String?(types[%i].values[m%s]===undefined?m%s:types[%i].values[m%s]):m%s",i,r,i,i,r,i,i):e("d%s=types[%i].toObject(m%s,o)",i,r,i);else{var o=!1;switch(t.type){case"double":case"float":e("d%s=o.json&&!isFinite(m%s)?String(m%s):m%s",i,i,i,i);break;case"uint64":o=!0;case"int64":case"sint64":case"fixed64":case"sfixed64":e('if(typeof m%s==="number")',i)("d%s=o.longs===String?String(m%s):m%s",i,i,i)("else")("d%s=o.longs===String?util.Long.prototype.toString.call(m%s):o.longs===Number?new util.LongBits(m%s.low>>>0,m%s.high>>>0).toNumber(%s):m%s",i,i,i,i,o?"true":"",i);break;case"bytes":e("d%s=o.bytes===String?util.base64.encode(m%s,0,m%s.length):o.bytes===Array?Array.prototype.slice.call(m%s):m%s",i,i,i,i,i);break;default:e("d%s=m%s",i,i)}}return e}i.fromObject=function(e){var t=e.fieldsArray,r=o.codegen(["d"],e.name+"$fromObject")("if(d instanceof this.ctor)")("return d");if(!t.length)return r("return new this.ctor");r("var m=new this.ctor");for(var i=0;i>>3){"),r=0;r>>3){")("case 1: k=r.%s(); break",a.keyType)("case 2:"),void 0===n.basic[u]?t("value=types[%i].decode(r,r.uint32())",r):t("value=r.%s()",u),t("break")("default:")("r.skipType(tag2&7)")("break")("}")("}"),void 0!==n.long[a.keyType]?t('%s[typeof k==="object"?util.longToHash(k):k]=value',f):t("%s[k]=value",f)):a.repeated?(t("if(!(%s&&%s.length))",f,f)("%s=[]",f),void 0!==n.packed[u]&&t("if((t&7)===2){")("var c2=r.uint32()+r.pos")("while(r.pos>>0,(t.id<<3|4)>>>0):e("types[%i].encode(%s,w.uint32(%i).fork()).ldelim()",r,i,(t.id<<3|2)>>>0)}function a(e){for(var t,r,a=o.codegen(["m","w"],e.name+"$encode")("if(!w)")("w=Writer.create()"),u=e.fieldsArray.slice().sort(o.compareFieldsById),t=0;t>>0,8|n.mapKey[f.keyType],f.keyType),void 0===c?a("types[%i].encode(%s[ks[i]],w.uint32(18).fork()).ldelim().ldelim()",l,r):a(".uint32(%i).%s(%s[ks[i]]).ldelim()",16|c,p,r),a("}")("}")):f.repeated?(a("if(%s!=null&&%s.length){",r,r),f.packed&&void 0!==n.packed[p]?a("w.uint32(%i).fork()",(f.id<<3|2)>>>0)("for(var i=0;i<%s.length;++i)",r)("w.%s(%s[i])",p,r)("w.ldelim()"):(a("for(var i=0;i<%s.length;++i)",r),void 0===c?s(a,f,l,r+"[i]"):a("w.uint32(%i).%s(%s[i])",(f.id<<3|c)>>>0,p,r)),a("}")):(f.optional&&a("if(%s!=null&&Object.hasOwnProperty.call(m,%j))",r,f.name),void 0===c?s(a,f,l,r):a("w.uint32(%i).%s(%s)",(f.id<<3|c)>>>0,p,r))}return a("return w")}},1918:function(e,t,r){e.exports=s;var i=r(7388);((s.prototype=Object.create(i.prototype)).constructor=s).className="Enum";var n=r(7220),o=r(7899);function s(e,t,r,n,o,s){if(i.call(this,e,r),t&&"object"!=typeof t)throw TypeError("values must be an object");if(this.valuesById={},this.values=Object.create(this.valuesById),this.comment=n,this.comments=o||{},this.valuesOptions=s,this._valuesFeatures={},this.reserved=void 0,t)for(var a=Object.keys(t),u=0;u{var t=Object.assign({},this._features);this._valuesFeatures[e]=Object.assign(t,this.valuesOptions&&this.valuesOptions[e]&&this.valuesOptions[e].features)}),this},s.fromJSON=function(e,t){var r=new s(e,t.values,t.options,t.comment,t.comments);return r.reserved=t.reserved,t.edition&&(r._edition=t.edition),r._defaultEdition="proto3",r},s.prototype.toJSON=function(e){var t=!!e&&!!e.keepComments;return o.toObject(["edition",this._editionToJSON(),"options",this.options,"valuesOptions",this.valuesOptions,"values",this.values,"reserved",this.reserved&&this.reserved.length?this.reserved:void 0,"comment",t?this.comment:void 0,"comments",t?this.comments:void 0])},s.prototype.add=function(e,t,r,i){if(!o.isString(e))throw TypeError("name must be a string");if(!o.isInteger(t))throw TypeError("id must be an integer");if(void 0!==this.values[e])throw Error("duplicate name '"+e+"' in "+this);if(this.isReservedId(t))throw Error("id "+t+" is reserved in "+this);if(this.isReservedName(e))throw Error("name '"+e+"' is reserved in "+this);if(void 0!==this.valuesById[t]){if(!(this.options&&this.options.allow_alias))throw Error("duplicate id "+t+" in "+this);this.values[e]=t}else this.valuesById[this.values[e]=t]=e;return i&&(void 0===this.valuesOptions&&(this.valuesOptions={}),this.valuesOptions[e]=i||null),this.comments[e]=r||null,this},s.prototype.remove=function(e){if(!o.isString(e))throw TypeError("name must be a string");var t=this.values[e];if(null==t)throw Error("name '"+e+"' does not exist in "+this);return delete this.valuesById[t],delete this.values[e],delete this.comments[e],this.valuesOptions&&delete this.valuesOptions[e],this},s.prototype.isReservedId=function(e){return n.isReservedId(this.reserved,e)},s.prototype.isReservedName=function(e){return n.isReservedName(this.reserved,e)}},7835:function(e,t,r){e.exports=f;var i,n=r(7388);((f.prototype=Object.create(n.prototype)).constructor=f).className="Field";var o=r(1918),s=r(5586),a=r(7899),u=/^required|optional|repeated$/;function f(e,t,r,i,o,f,l){if(a.isObject(i)?(l=o,f=i,i=o=void 0):a.isObject(o)&&(l=f,f=o,o=void 0),n.call(this,e,f),!a.isInteger(t)||t<0)throw TypeError("id must be a non-negative integer");if(!a.isString(r))throw TypeError("type must be a string");if(void 0!==i&&!u.test(i=i.toString().toLowerCase()))throw TypeError("rule must be a string rule");if(void 0!==o&&!a.isString(o))throw TypeError("extend must be a string");"proto3_optional"===i&&(i="optional"),this.rule=i&&"optional"!==i?i:void 0,this.type=r,this.id=t,this.extend=o||void 0,this.repeated="repeated"===i,this.map=!1,this.message=null,this.partOf=null,this.typeDefault=null,this.defaultValue=null,this.long=!!a.Long&&void 0!==s.long[r],this.bytes="bytes"===r,this.resolvedType=null,this.extensionField=null,this.declaringField=null,this.comment=l}f.fromJSON=function(e,t){var r=new f(e,t.id,t.type,t.rule,t.extend,t.options,t.comment);return t.edition&&(r._edition=t.edition),r._defaultEdition="proto3",r},Object.defineProperty(f.prototype,"required",{get:function(){return"LEGACY_REQUIRED"===this._features.field_presence}}),Object.defineProperty(f.prototype,"optional",{get:function(){return!this.required}}),Object.defineProperty(f.prototype,"delimited",{get:function(){return this.resolvedType instanceof i&&"DELIMITED"===this._features.message_encoding}}),Object.defineProperty(f.prototype,"packed",{get:function(){return"PACKED"===this._features.repeated_field_encoding}}),Object.defineProperty(f.prototype,"hasPresence",{get:function(){return!this.repeated&&!this.map&&(this.partOf||this.declaringField||this.extensionField||"IMPLICIT"!==this._features.field_presence)}}),f.prototype.setOption=function(e,t,r){return n.prototype.setOption.call(this,e,t,r)},f.prototype.toJSON=function(e){var t=!!e&&!!e.keepComments;return a.toObject(["edition",this._editionToJSON(),"rule","optional"!==this.rule&&this.rule||void 0,"type",this.type,"id",this.id,"extend",this.extend,"options",this.options,"comment",t?this.comment:void 0])},f.prototype.resolve=function(){if(this.resolved)return this;if(void 0===(this.typeDefault=s.defaults[this.type])?(this.resolvedType=(this.declaringField?this.declaringField.parent:this.parent).lookupTypeOrEnum(this.type),this.resolvedType instanceof i?this.typeDefault=null:this.typeDefault=this.resolvedType.values[Object.keys(this.resolvedType.values)[0]]):this.options&&this.options.proto3_optional&&(this.typeDefault=null),this.options&&null!=this.options.default&&(this.typeDefault=this.options.default,this.resolvedType instanceof o&&"string"==typeof this.typeDefault&&(this.typeDefault=this.resolvedType.values[this.typeDefault])),this.options&&(void 0===this.options.packed||!this.resolvedType||this.resolvedType instanceof o||delete this.options.packed,Object.keys(this.options).length||(this.options=void 0)),this.long)this.typeDefault=a.Long.fromNumber(this.typeDefault,"u"===this.type.charAt(0)),Object.freeze&&Object.freeze(this.typeDefault);else if(this.bytes&&"string"==typeof this.typeDefault){var e;a.base64.test(this.typeDefault)?a.base64.decode(this.typeDefault,e=a.newBuffer(a.base64.length(this.typeDefault)),0):a.utf8.write(this.typeDefault,e=a.newBuffer(a.utf8.length(this.typeDefault)),0),this.typeDefault=e}return this.map?this.defaultValue=a.emptyObject:this.repeated?this.defaultValue=a.emptyArray:this.defaultValue=this.typeDefault,this.parent instanceof i&&(this.parent.ctor.prototype[this.name]=this.defaultValue),n.prototype.resolve.call(this)},f.prototype._inferLegacyProtoFeatures=function(e){if("proto2"!==e&&"proto3"!==e)return{};var t={};if("required"===this.rule&&(t.field_presence="LEGACY_REQUIRED"),this.parent&&void 0===s.defaults[this.type]){var r=this.parent.get(this.type.split(".").pop());r&&r instanceof i&&r.group&&(t.message_encoding="DELIMITED")}return!0===this.getOption("packed")?t.repeated_field_encoding="PACKED":!1===this.getOption("packed")&&(t.repeated_field_encoding="EXPANDED"),t},f.prototype._resolveFeatures=function(e){return n.prototype._resolveFeatures.call(this,this._edition||e)},f.d=function(e,t,r,i){return"function"==typeof t?t=a.decorateType(t).name:t&&"object"==typeof t&&(t=a.decorateEnum(t).name),function(n,o){a.decorateType(n.constructor).add(new f(o,e,t,r,{default:i}))}},f._configure=function(e){i=e}},8926:function(e,t,r){var i=e.exports=r(233);function n(e,t,r){return"function"==typeof t?(r=t,t=new i.Root):t||(t=new i.Root),t.load(e,r)}function o(e,t){return t||(t=new i.Root),t.loadSync(e)}i.build="light",i.load=n,i.loadSync=o,i.encoder=r(8775),i.decoder=r(2655),i.verifier=r(2233),i.converter=r(5603),i.ReflectionObject=r(7388),i.Namespace=r(7220),i.Root=r(8335),i.Enum=r(1918),i.Type=r(3047),i.Field=r(7835),i.OneOf=r(7158),i.MapField=r(6941),i.Service=r(1144),i.Method=r(9282),i.Message=r(3468),i.wrappers=r(5591),i.types=r(5586),i.util=r(7899),i.ReflectionObject._configure(i.Root),i.Namespace._configure(i.Type,i.Service,i.Enum),i.Root._configure(i.Type),i.Field._configure(i.Type)},233:function(e,t,r){var i=t;function n(){i.util._configure(),i.Writer._configure(i.BufferWriter),i.Reader._configure(i.BufferReader)}i.build="minimal",i.Writer=r(8332),i.BufferWriter=r(1405),i.Reader=r(624),i.BufferReader=r(753),i.util=r(6339),i.rpc=r(7168),i.roots=r(9818),i.configure=n,n()},1203:function(e,t,r){var i=e.exports=r(8926);i.build="full",i.tokenize=r(6502),i.parse=r(6348),i.common=r(5722),i.Root._configure(i.Type,i.parse,i.common)},6941:function(e,t,r){e.exports=s;var i=r(7835);((s.prototype=Object.create(i.prototype)).constructor=s).className="MapField";var n=r(5586),o=r(7899);function s(e,t,r,n,s,a){if(i.call(this,e,t,n,void 0,void 0,s,a),!o.isString(r))throw TypeError("keyType must be a string");this.keyType=r,this.resolvedKeyType=null,this.map=!0}s.fromJSON=function(e,t){return new s(e,t.id,t.keyType,t.type,t.options,t.comment)},s.prototype.toJSON=function(e){var t=!!e&&!!e.keepComments;return o.toObject(["keyType",this.keyType,"type",this.type,"id",this.id,"extend",this.extend,"options",this.options,"comment",t?this.comment:void 0])},s.prototype.resolve=function(){if(this.resolved)return this;if(void 0===n.mapKey[this.keyType])throw Error("invalid key type: "+this.keyType);return i.prototype.resolve.call(this)},s.d=function(e,t,r){return"function"==typeof r?r=o.decorateType(r).name:r&&"object"==typeof r&&(r=o.decorateEnum(r).name),function(i,n){o.decorateType(i.constructor).add(new s(n,e,t,r))}}},3468:function(e,t,r){e.exports=n;var i=r(6339);function n(e){if(e)for(var t=Object.keys(e),r=0;rt)return!0}return!1},p.isReservedName=function(e,t){if(e){for(var r=0;r0;){var i=e.shift();if(r.nested&&r.nested[i]){if(!((r=r.nested[i])instanceof p))throw Error("path conflicts with non-namespace objects")}else r.add(r=new p(i))}return t&&r.addJSON(t),r},p.prototype.resolveAll=function(){if(!this._needsRecursiveResolve)return this;this._resolveFeaturesRecursive(this._edition);var e=this.nestedArray,t=0;for(this.resolve();t{t._resolveFeaturesRecursive(e)})),this},p.prototype.lookup=function(e,t,r){if("boolean"==typeof t?(r=t,t=void 0):t&&!Array.isArray(t)&&(t=[t]),u.isString(e)&&e.length){if("."===e)return this.root;e=e.split(".")}else if(!e.length)return this;var i=e.join(".");if(""===e[0])return this.root.lookup(e.slice(1),t);var n=this.root._fullyQualifiedObjects&&this.root._fullyQualifiedObjects["."+i];if(n&&(!t||t.indexOf(n.constructor)>-1)||(n=this._lookupImpl(e,i))&&(!t||t.indexOf(n.constructor)>-1))return n;if(r)return null;for(var o=this;o.parent;){if((n=o.parent._lookupImpl(e,i))&&(!t||t.indexOf(n.constructor)>-1))return n;o=o.parent}return null},p.prototype._lookupImpl=function(e,t){if(Object.prototype.hasOwnProperty.call(this._lookupCache,t))return this._lookupCache[t];var r=this.get(e[0]),i=null;if(r)1===e.length?i=r:r instanceof p&&(e=e.slice(1),i=r._lookupImpl(e,e.join(".")));else for(var n=0;n-1&&this.oneof.splice(t,1),e.partOf=null,this},s.prototype.onAdd=function(e){i.prototype.onAdd.call(this,e);for(var t=this,r=0;r{e._edition=L,Object.keys($).forEach(t=>{void 0===e.getOption(t)&&e.setOption(t,$[t],!0)})})}function q(e,t,r){var i=k.filename;return r||(k.filename=null),Error("illegal "+(t||"token")+" '"+e+"' ("+(i?i+", ":"")+"line "+N.line+")")}function z(){var e,t=[];do{if('"'!==(e=R())&&"'"!==e)throw q(e);t.push(R()),B(e),e=I()}while('"'===e||"'"===e);return t.join("")}function U(e){var t=R();switch(t){case"'":case'"':return F(t),z();case"true":case"TRUE":return!0;case"false":case"FALSE":return!1}try{return W(t,!0)}catch(r){if(e&&j.test(t))return t;throw q(t,"value")}}function H(e,t){do if(t&&('"'===(r=I())||"'"===r)){var r,i,n=z();if(e.push(n),L>=2023)throw q(n,"id")}else try{e.push([i=G(R()),B("to",!0)?G(R()):i])}catch(i){if(t&&j.test(r)&&L>=2023)e.push(r);else throw i}while(B(",",!0));var o={options:void 0};o.setOption=function(e,t){void 0===this.options&&(this.options={}),this.options[e]=t},ee(o,function(e){if("option"===e)eu(o,e),B(";");else throw q(e)},function(){ec(o)})}function W(e,t){var r=1;switch("-"===e.charAt(0)&&(r=-1,e=e.substring(1)),e){case"inf":case"INF":case"Inf":return 1/0*r;case"nan":case"NAN":case"Nan":case"NaN":return NaN;case"0":return 0}if(y.test(e))return r*parseInt(e,10);if(m.test(e))return r*parseInt(e,16);if(b.test(e))return r*parseInt(e,8);if(O.test(e))return r*parseFloat(e);throw q(e,"number",t)}function G(e,t){switch(e){case"max":case"MAX":case"Max":return 0x1fffffff;case"0":return 0}if(!t&&"-"===e.charAt(0))throw q(e,"id");if(v.test(e))return parseInt(e,10);if(g.test(e))return parseInt(e,16);if(w.test(e))return parseInt(e,8);throw q(e,"id")}function X(){if(void 0!==x)throw q("package");if(x=R(),!j.test(x))throw q(x,"name");C=C.define(x),B(";")}function Z(){var e,t=I();switch(t){case"weak":e=S||(S=[]),R();break;case"public":R();default:e=E||(E=[])}t=z(),B(";"),e.push(t)}function K(){if(B("="),(L=z())<2023)throw q(L,"syntax");B(";")}function Q(){if(B("="),!["2023"].includes(L=z()))throw q(L,"edition");B(";")}function Y(e,t){switch(t){case"option":return eu(e,t),B(";"),!0;case"message":return et(e,t),!0;case"enum":return es(e,t),!0;case"service":return eh(e,t),!0;case"extend":return ey(e,t),!0}return!1}function ee(e,t,r){var i,n=N.line;if(e&&("string"!=typeof e.comment&&(e.comment=P()),e.filename=k.filename),B("{",!0)){for(;"}"!==(i=R());)t(i);B(";",!0)}else r&&r(),B(";"),e&&("string"!=typeof e.comment||T)&&(e.comment=P(n)||e.comment)}function et(e,t){if(!_.test(t=R()))throw q(t,"type name");var r=new o(t);ee(r,function(e){if(!Y(r,e))switch(e){case"map":en(r,e);break;case"required":if("proto2"!==L)throw q(e);case"repeated":er(r,e);break;case"optional":if("proto3"===L)er(r,"proto3_optional");else if("proto2"!==L)throw q(e);else er(r,"optional");break;case"oneof":eo(r,e);break;case"extensions":H(r.extensions||(r.extensions=[]));break;case"reserved":H(r.reserved||(r.reserved=[]),!0);break;default:if("proto2"===L||!j.test(e))throw q(e);F(e),er(r,"optional")}}),e.add(r),e===C&&J.push(r)}function er(e,t,r){var i=R();if("group"===i)return void ei(e,t);for(;i.endsWith(".")||I().startsWith(".");)i+=R();if(!j.test(i))throw q(i,"type");var n=R();if(!_.test(n))throw q(n,"name");n=V(n),B("=");var o=new s(n,G(R()),i,t,r);if(ee(o,function(e){if("option"===e)eu(o,e),B(";");else throw q(e)},function(){ec(o)}),"proto3_optional"===t){var a=new u("_"+n);o.setOption("proto3_optional",!0),a.add(o),e.add(a)}else e.add(o);e===C&&J.push(o)}function ei(e,t){if(L>=2023)throw q("group");var r=R();if(!_.test(r))throw q(r,"name");var i=d.lcFirst(r);r===i&&(r=d.ucFirst(r)),B("=");var n=G(R()),a=new o(r);a.group=!0;var u=new s(i,n,r,t);u.filename=k.filename,ee(a,function(e){switch(e){case"option":eu(a,e),B(";");break;case"required":case"repeated":er(a,e);break;case"optional":"proto3"===L?er(a,"proto3_optional"):er(a,"optional");break;case"message":et(a,e);break;case"enum":es(a,e);break;case"reserved":H(a.reserved||(a.reserved=[]),!0);break;default:throw q(e)}}),e.add(a).add(u)}function en(e){B("<");var t=R();if(void 0===h.mapKey[t])throw q(t,"type");B(",");var r=R();if(!j.test(r))throw q(r,"type");B(">");var i=R();if(!_.test(i))throw q(i,"name");B("=");var n=new a(V(i),G(R()),t,r);ee(n,function(e){if("option"===e)eu(n,e),B(";");else throw q(e)},function(){ec(n)}),e.add(n)}function eo(e,t){if(!_.test(t=R()))throw q(t,"name");var r=new u(V(t));ee(r,function(e){"option"===e?(eu(r,e),B(";")):(F(e),er(r,"optional"))}),e.add(r)}function es(e,t){if(!_.test(t=R()))throw q(t,"name");var r=new f(t);ee(r,function(e){switch(e){case"option":eu(r,e),B(";");break;case"reserved":H(r.reserved||(r.reserved=[]),!0),void 0===r.reserved&&(r.reserved=[]);break;default:ea(r,e)}}),e.add(r),e===C&&J.push(r)}function ea(e,t){if(!_.test(t))throw q(t,"name");B("=");var r=G(R(),!0),i={options:void 0};i.getOption=function(e){return this.options[e]},i.setOption=function(e,t){c.prototype.setOption.call(i,e,t)},i.setParsedOption=function(){},ee(i,function(e){if("option"===e)eu(i,e),B(";");else throw q(e)},function(){ec(i)}),e.add(t,r,i.comment,i.parsedOptions||i.options)}function eu(e,t){var r,i,n=!0;for("option"===t&&(t=R());"="!==t;){if("("===t){var o=R();B(")"),t="("+o+")"}if(n){if(n=!1,t.includes(".")&&!t.includes("(")){var s=t.split(".");r=s[0]+".",t=s[1];continue}r=t}else i=i?i+=t:t;t=R()}var a=ef(e,i?r.concat(i):r);i=i&&"."===i[0]?i.slice(1):i,ep(e,r=r&&"."===r[r.length-1]?r.slice(0,-1):r,a,i)}function ef(e,t){if(B("{",!0)){for(var r={};!B("}",!0);){if(!_.test(A=R()))throw q(A,"name");if(null===A)throw q(A,"end of input");var i,n,o=A;if(B(":",!0),"{"===I())i=ef(e,t+"."+A);else if("["===I()){if(i=[],B("[",!0)){do n=U(!0),i.push(n);while(B(",",!0));B("]"),void 0!==n&&el(e,t+"."+A,n)}}else i=U(!0),el(e,t+"."+A,i);var s=r[o];s&&(i=[].concat(s).concat(i)),r[o]=i,B(",",!0),B(";",!0)}return r}var a=U(!0);return el(e,t,a),a}function el(e,t,r){if(C===e&&/^features\./.test(t)){$[t]=r;return}e.setOption&&e.setOption(t,r)}function ep(e,t,r,i){e.setParsedOption&&e.setParsedOption(t,r,i)}function ec(e){if(B("[",!0)){do eu(e,"option");while(B(",",!0));B("]")}return e}function eh(e,t){if(!_.test(t=R()))throw q(t,"service name");var r=new l(t);ee(r,function(e){if(!Y(r,e))if("rpc"===e)ed(r,e);else throw q(e)}),e.add(r),e===C&&J.push(r)}function ed(e,t){var r=P(),i=t;if(!_.test(t=R()))throw q(t,"name");var n,o,s,a,u=t;if(B("("),B("stream",!0)&&(o=!0),!j.test(t=R())||(n=t,B(")"),B("returns"),B("("),B("stream",!0)&&(a=!0),!j.test(t=R())))throw q(t);s=t,B(")");var f=new p(u,i,n,s,o,a);f.comment=r,ee(f,function(e){if("option"===e)eu(f,e),B(";");else throw q(e)}),e.add(f)}function ey(e,t){if(!j.test(t=R()))throw q(t,"reference");var r=t;ee(null,function(t){switch(t){case"required":case"repeated":er(e,t,r);break;case"optional":"proto3"===L?er(e,"proto3_optional",r):er(e,"optional",r);break;default:if("proto2"===L||!j.test(t))throw q(t);F(t),er(e,"optional",r)}})}for(;null!==(A=R());)switch(A){case"package":if(!D)throw q(A);X();break;case"import":if(!D)throw q(A);Z();break;case"syntax":if(!D)throw q(A);K();break;case"edition":if(!D)throw q(A);Q();break;case"option":eu(C,A),B(";",!0);break;default:if(Y(C,A)){D=!1;continue}throw q(A)}return M(),k.filename=null,{package:x,imports:E,weakImports:S,root:t}}},624:function(e,t,r){e.exports=u;var i,n=r(6339),o=n.LongBits,s=n.utf8;function a(e,t){return RangeError("index out of range: "+e.pos+" + "+(t||1)+" > "+e.len)}function u(e){this.buf=e,this.pos=0,this.len=e.length}var f="undefined"!=typeof Uint8Array?function(e){if(e instanceof Uint8Array||Array.isArray(e))return new u(e);throw Error("illegal buffer")}:function(e){if(Array.isArray(e))return new u(e);throw Error("illegal buffer")},l=function(){return n.Buffer?function(e){return(u.create=function(e){return n.Buffer.isBuffer(e)?new i(e):f(e)})(e)}:f};function p(){var e=new o(0,0),t=0;if(this.len-this.pos>4){for(;t<4;++t)if(e.lo=(e.lo|(127&this.buf[this.pos])<<7*t)>>>0,this.buf[this.pos++]<128)return e;if(e.lo=(e.lo|(127&this.buf[this.pos])<<28)>>>0,e.hi=(e.hi|(127&this.buf[this.pos])>>4)>>>0,this.buf[this.pos++]<128)return e;t=0}else{for(;t<3;++t){if(this.pos>=this.len)throw a(this);if(e.lo=(e.lo|(127&this.buf[this.pos])<<7*t)>>>0,this.buf[this.pos++]<128)return e}return e.lo=(e.lo|(127&this.buf[this.pos++])<<7*t)>>>0,e}if(this.len-this.pos>4){for(;t<5;++t)if(e.hi=(e.hi|(127&this.buf[this.pos])<<7*t+3)>>>0,this.buf[this.pos++]<128)return e}else for(;t<5;++t){if(this.pos>=this.len)throw a(this);if(e.hi=(e.hi|(127&this.buf[this.pos])<<7*t+3)>>>0,this.buf[this.pos++]<128)return e}throw Error("invalid varint encoding")}function c(e,t){return(e[t-4]|e[t-3]<<8|e[t-2]<<16|e[t-1]<<24)>>>0}function h(){if(this.pos+8>this.len)throw a(this,8);return new o(c(this.buf,this.pos+=4),c(this.buf,this.pos+=4))}u.create=l(),u.prototype._slice=n.Array.prototype.subarray||n.Array.prototype.slice,u.prototype.uint32=function(){var e=0xffffffff;return function(){if(e=(127&this.buf[this.pos])>>>0,this.buf[this.pos++]<128||(e=(e|(127&this.buf[this.pos])<<7)>>>0,this.buf[this.pos++]<128)||(e=(e|(127&this.buf[this.pos])<<14)>>>0,this.buf[this.pos++]<128)||(e=(e|(127&this.buf[this.pos])<<21)>>>0,this.buf[this.pos++]<128)||(e=(e|(15&this.buf[this.pos])<<28)>>>0,this.buf[this.pos++]<128))return e;if((this.pos+=5)>this.len)throw this.pos=this.len,a(this,10);return e}}(),u.prototype.int32=function(){return 0|this.uint32()},u.prototype.sint32=function(){var e=this.uint32();return e>>>1^-(1&e)},u.prototype.bool=function(){return 0!==this.uint32()},u.prototype.fixed32=function(){if(this.pos+4>this.len)throw a(this,4);return c(this.buf,this.pos+=4)},u.prototype.sfixed32=function(){if(this.pos+4>this.len)throw a(this,4);return 0|c(this.buf,this.pos+=4)},u.prototype.float=function(){if(this.pos+4>this.len)throw a(this,4);var e=n.float.readFloatLE(this.buf,this.pos);return this.pos+=4,e},u.prototype.double=function(){if(this.pos+8>this.len)throw a(this,4);var e=n.float.readDoubleLE(this.buf,this.pos);return this.pos+=8,e},u.prototype.bytes=function(){var e=this.uint32(),t=this.pos,r=this.pos+e;if(r>this.len)throw a(this,e);if(this.pos+=e,Array.isArray(this.buf))return this.buf.slice(t,r);if(t===r){var i=n.Buffer;return i?i.alloc(0):new this.buf.constructor(0)}return this._slice.call(this.buf,t,r)},u.prototype.string=function(){var e=this.bytes();return s.read(e,0,e.length)},u.prototype.skip=function(e){if("number"==typeof e){if(this.pos+e>this.len)throw a(this,e);this.pos+=e}else do if(this.pos>=this.len)throw a(this);while(128&this.buf[this.pos++]);return this},u.prototype.skipType=function(e){switch(e){case 0:this.skip();break;case 1:this.skip(8);break;case 2:this.skip(this.uint32());break;case 3:for(;4!=(e=7&this.uint32());)this.skipType(e);break;case 5:this.skip(4);break;default:throw Error("invalid wire type "+e+" at offset "+this.pos)}return this},u._configure=function(e){i=e,u.create=l(),i._configure();var t=n.Long?"toLong":"toNumber";n.merge(u.prototype,{int64:function(){return p.call(this)[t](!1)},uint64:function(){return p.call(this)[t](!0)},sint64:function(){return p.call(this).zzDecode()[t](!1)},fixed64:function(){return h.call(this)[t](!0)},sfixed64:function(){return h.call(this)[t](!1)}})}},753:function(e,t,r){e.exports=o;var i=r(624);(o.prototype=Object.create(i.prototype)).constructor=o;var n=r(6339);function o(e){i.call(this,e)}o._configure=function(){n.Buffer&&(o.prototype._slice=n.Buffer.prototype.slice)},o.prototype.string=function(){var e=this.uint32();return this.buf.utf8Slice?this.buf.utf8Slice(this.pos,this.pos=Math.min(this.pos+e,this.len)):this.buf.toString("utf-8",this.pos,this.pos=Math.min(this.pos+e,this.len))},o._configure()},8335:function(e,t,r){e.exports=p;var i,n,o,s=r(7220);((p.prototype=Object.create(s.prototype)).constructor=p).className="Root";var a=r(7835),u=r(1918),f=r(7158),l=r(7899);function p(e){s.call(this,"",e),this.deferred=[],this.files=[],this._edition="proto2",this._fullyQualifiedObjects={}}function c(){}p.fromJSON=function(e,t){return t||(t=new p),e.options&&t.setOptions(e.options),t.addJSON(e.nested).resolveAll()},p.prototype.resolvePath=l.path.resolve,p.prototype.fetch=l.fetch,p.prototype.load=function e(t,r,i){"function"==typeof r&&(i=r,r=void 0);var s=this;if(!i)return l.asPromise(e,s,t,r);var a=i===c;function u(e,t){if(i){if(a)throw e;t&&t.resolveAll();var r=i;i=null,r(e,t)}}function f(e){var t=e.lastIndexOf("google/protobuf/");if(t>-1){var r=e.substring(t);if(r in o)return r}return null}function p(e,t){try{if(l.isString(t)&&"{"===t.charAt(0)&&(t=JSON.parse(t)),l.isString(t)){n.filename=e;var i,o=n(t,s,r),p=0;if(o.imports)for(;p-1)){if(s.files.push(e),e in o)return void(a?p(e,o[e]):(++d,setTimeout(function(){--d,p(e,o[e])})));if(a){var r;try{r=l.fs.readFileSync(e).toString("utf8")}catch(e){t||u(e);return}p(e,r)}else++d,s.fetch(e,function(r,n){if(--d,i){if(r)return void(t?d||u(null,s):u(r));p(e,n)}})}}var d=0;l.isString(t)&&(t=[t]);for(var y,v=0;v-1&&this.deferred.splice(t,1)}}else if(e instanceof u)h.test(e.name)&&delete e.parent[e.name];else if(e instanceof s){for(var r=0;r{t._resolveFeaturesRecursive(e)})),this},a.prototype.add=function(e){if(this.get(e.name))throw Error("duplicate name '"+e.name+"' in "+this);return e instanceof n?(this.methods[e.name]=e,e.parent=this,u(this)):i.prototype.add.call(this,e)},a.prototype.remove=function(e){if(e instanceof n){if(this.methods[e.name]!==e)throw Error(e+" is not a member of "+this);return delete this.methods[e.name],e.parent=null,u(this)}return i.prototype.remove.call(this,e)},a.prototype.create=function(e,t,r){for(var i,n=new s.Service(e,t,r),a=0;a]/g,r=/(?:"([^"\\]*(?:\\.[^"\\]*)*)")/g,i=/(?:'([^'\\]*(?:\\.[^'\\]*)*)')/g,n=/^ *[*/]+ */,o=/^\s*\*?\/*/,s=/\n/g,a=/\s/,u=/\\(.?)/g,f={0:"\0",r:"\r",n:"\n",t:" "};function l(e){return e.replace(u,function(e,t){switch(t){case"\\":case"":return t;default:return f[t]||""}})}function p(e,u){e=e.toString();var f=0,p=e.length,c=1,h=0,d={},y=[],v=null;function m(e){return Error("illegal "+e+" (line "+c+")")}function g(){var t="'"===v?i:r;t.lastIndex=f-1;var n=t.exec(e);if(!n)throw m("string");return f=t.lastIndex,k(v),v=null,l(n[1])}function b(t){return e.charAt(t)}function w(t,r,i){var a,f={type:e.charAt(t++),lineEmpty:!1,leading:i},l=t-(u?2:3);do if(--l<0||"\n"===(a=e.charAt(l))){f.lineEmpty=!0;break}while(" "===a||" "===a);for(var p=e.substring(t,r).split(s),y=0;y0)return y.shift();if(v)return g();var r,i,n,o,s,l=0===f;do{if(f===p)return null;for(r=!1;a.test(n=b(f));)if("\n"===n&&(l=!0,++c),++f===p)return null;if("/"===b(f)){if(++f===p)throw m("comment");if("/"===b(f))if(u){if(o=f,s=!1,O(f-1)){s=!0;do if((f=_(f))===p||(f++,!l))break;while(O(f))}else f=Math.min(p,_(f)+1);s&&(w(o,f,l),l=!0),c++,r=!0}else{for(s="/"===b(o=f+1);"\n"!==b(++f);)if(f===p)return null;++f,s&&(w(o,f-1,l),l=!0),++c,r=!0}else{if("*"!==(n=b(f)))return"/";o=f+1,s=u||"*"===b(o);do{if("\n"===n&&++c,++f===p)throw m("comment");i=n,n=b(f)}while("*"!==i||"/"!==n);++f,s&&(w(o,f-2,l),l=!0),r=!0}}}while(r);var h=f;if(t.lastIndex=0,!t.test(b(h++)))for(;h{t._resolveFeatures(e)}),this.fieldsArray.forEach(t=>{t._resolveFeatures(e)})),this},g.prototype.get=function(e){return this.fields[e]||this.oneofs&&this.oneofs[e]||this.nested&&this.nested[e]||null},g.prototype.add=function(e){if(this.get(e.name))throw Error("duplicate name '"+e.name+"' in "+this);if(e instanceof s&&void 0===e.extend){if(this._fieldsById?this._fieldsById[e.id]:this.fieldsById[e.id])throw Error("duplicate id "+e.id+" in "+this);if(this.isReservedId(e.id))throw Error("id "+e.id+" is reserved in "+this);if(this.isReservedName(e.name))throw Error("name '"+e.name+"' is reserved in "+this);return e.parent&&e.parent.remove(e),this.fields[e.name]=e,e.message=this,e.onAdd(this),b(this)}return e instanceof o?(this.oneofs||(this.oneofs={}),this.oneofs[e.name]=e,e.onAdd(this),b(this)):i.prototype.add.call(this,e)},g.prototype.remove=function(e){if(e instanceof s&&void 0===e.extend){if(!this.fields||this.fields[e.name]!==e)throw Error(e+" is not a member of "+this);return delete this.fields[e.name],e.parent=null,e.onRemove(this),b(this)}if(e instanceof o){if(!this.oneofs||this.oneofs[e.name]!==e)throw Error(e+" is not a member of "+this);return delete this.oneofs[e.name],e.parent=null,e.onRemove(this),b(this)}return i.prototype.remove.call(this,e)},g.prototype.isReservedId=function(e){return i.isReservedId(this.reserved,e)},g.prototype.isReservedName=function(e){return i.isReservedName(this.reserved,e)},g.prototype.create=function(e){return new this.ctor(e)},g.prototype.setup=function(){for(var e=this.fullName,t=[],r=0;r0)e[o]=n(e[o]||{},t,r);else{var s=e[o];if(s&&i)return e;s&&(r=[].concat(s).concat(r)),e[o]=r}return e}if("object"!=typeof e)throw TypeError("dst must be an object");if(!t)throw TypeError("path must be specified");return n(e,t=t.split("."),r)},Object.defineProperty(o,"decorateRoot",{get:function(){return s.decorated||(s.decorated=new(r(8335)))}})},8920:function(e,t,r){e.exports=n;var i=r(6339);function n(e,t){this.lo=e>>>0,this.hi=t>>>0}var o=n.zero=new n(0,0);o.toNumber=function(){return 0},o.zzEncode=o.zzDecode=function(){return this},o.length=function(){return 1};var s=n.zeroHash="\0\0\0\0\0\0\0\0";n.fromNumber=function(e){if(0===e)return o;var t=e<0;t&&(e=-e);var r=e>>>0,i=(e-r)/0x100000000>>>0;return t&&(i=~i>>>0,r=~r>>>0,++r>0xffffffff&&(r=0,++i>0xffffffff&&(i=0))),new n(r,i)},n.from=function(e){if("number"==typeof e)return n.fromNumber(e);if(i.isString(e))if(!i.Long)return n.fromNumber(parseInt(e,10));else e=i.Long.fromString(e);return e.low||e.high?new n(e.low>>>0,e.high>>>0):o},n.prototype.toNumber=function(e){if(!e&&this.hi>>>31){var t=~this.lo+1>>>0,r=~this.hi>>>0;return t||(r=r+1>>>0),-(t+0x100000000*r)}return this.lo+0x100000000*this.hi},n.prototype.toLong=function(e){return i.Long?new i.Long(0|this.lo,0|this.hi,!!e):{low:0|this.lo,high:0|this.hi,unsigned:!!e}};var a=String.prototype.charCodeAt;n.fromHash=function(e){return e===s?o:new n((a.call(e,0)|a.call(e,1)<<8|a.call(e,2)<<16|a.call(e,3)<<24)>>>0,(a.call(e,4)|a.call(e,5)<<8|a.call(e,6)<<16|a.call(e,7)<<24)>>>0)},n.prototype.toHash=function(){return String.fromCharCode(255&this.lo,this.lo>>>8&255,this.lo>>>16&255,this.lo>>>24,255&this.hi,this.hi>>>8&255,this.hi>>>16&255,this.hi>>>24)},n.prototype.zzEncode=function(){var e=this.hi>>31;return this.hi=((this.hi<<1|this.lo>>>31)^e)>>>0,this.lo=(this.lo<<1^e)>>>0,this},n.prototype.zzDecode=function(){var e=-(1&this.lo);return this.lo=((this.lo>>>1|this.hi<<31)^e)>>>0,this.hi=(this.hi>>>1^e)>>>0,this},n.prototype.length=function(){var e=this.lo,t=(this.lo>>>28|this.hi<<4)>>>0,r=this.hi>>>24;return 0===r?0===t?e<16384?e<128?1:2:e<2097152?3:4:t<16384?t<128?5:6:t<2097152?7:8:r<128?9:10}},6339:function(e,t,r){var i=t;function n(e,t,r){for(var i=Object.keys(t),n=0;n0)},i.Buffer=function(){try{var e=i.inquire("buffer").Buffer;return e.prototype.utf8Write?e:null}catch(e){return null}}(),i._Buffer_from=null,i._Buffer_allocUnsafe=null,i.newBuffer=function(e){return"number"==typeof e?i.Buffer?i._Buffer_allocUnsafe(e):new i.Array(e):i.Buffer?i._Buffer_from(e):"undefined"==typeof Uint8Array?e:new Uint8Array(e)},i.Array="undefined"!=typeof Uint8Array?Uint8Array:Array,i.Long=i.global.dcodeIO&&i.global.dcodeIO.Long||i.global.Long||i.inquire("long"),i.key2Re=/^true|false|0|1$/,i.key32Re=/^-?(?:0|[1-9][0-9]*)$/,i.key64Re=/^(?:[\\x00-\\xff]{8}|-?(?:0|[1-9][0-9]*))$/,i.longToHash=function(e){return e?i.LongBits.from(e).toHash():i.LongBits.zeroHash},i.longFromHash=function(e,t){var r=i.LongBits.fromHash(e);return i.Long?i.Long.fromBits(r.lo,r.hi,t):r.toNumber(!!t)},i.merge=n,i.lcFirst=function(e){return e.charAt(0).toLowerCase()+e.substring(1)},i.newError=o,i.ProtocolError=o("ProtocolError"),i.oneOfGetter=function(e){for(var t={},r=0;r-1;--r)if(1===t[e[r]]&&void 0!==this[e[r]]&&null!==this[e[r]])return e[r]}},i.oneOfSetter=function(e){return function(t){for(var r=0;r127;)t[r++]=127&e|128,e>>>=7;t[r]=e}function y(e,t){this.len=e,this.next=void 0,this.val=t}function v(e,t,r){for(;e.hi;)t[r++]=127&e.lo|128,e.lo=(e.lo>>>7|e.hi<<25)>>>0,e.hi>>>=7;for(;e.lo>127;)t[r++]=127&e.lo|128,e.lo=e.lo>>>7;t[r++]=e.lo}function m(e,t,r){t[r]=255&e,t[r+1]=e>>>8&255,t[r+2]=e>>>16&255,t[r+3]=e>>>24}p.create=c(),p.alloc=function(e){return new n.Array(e)},n.Array!==Array&&(p.alloc=n.pool(p.alloc,n.Array.prototype.subarray)),p.prototype._push=function(e,t,r){return this.tail=this.tail.next=new u(e,t,r),this.len+=t,this},y.prototype=Object.create(u.prototype),y.prototype.fn=d,p.prototype.uint32=function(e){return this.len+=(this.tail=this.tail.next=new y((e>>>=0)<128?1:e<16384?2:e<2097152?3:e<0x10000000?4:5,e)).len,this},p.prototype.int32=function(e){return e<0?this._push(v,10,o.fromNumber(e)):this.uint32(e)},p.prototype.sint32=function(e){return this.uint32((e<<1^e>>31)>>>0)},p.prototype.uint64=function(e){var t=o.from(e);return this._push(v,t.length(),t)},p.prototype.int64=p.prototype.uint64,p.prototype.sint64=function(e){var t=o.from(e).zzEncode();return this._push(v,t.length(),t)},p.prototype.bool=function(e){return this._push(h,1,+!!e)},p.prototype.fixed32=function(e){return this._push(m,4,e>>>0)},p.prototype.sfixed32=p.prototype.fixed32,p.prototype.fixed64=function(e){var t=o.from(e);return this._push(m,4,t.lo)._push(m,4,t.hi)},p.prototype.sfixed64=p.prototype.fixed64,p.prototype.float=function(e){return this._push(n.float.writeFloatLE,4,e)},p.prototype.double=function(e){return this._push(n.float.writeDoubleLE,8,e)};var g=n.Array.prototype.set?function(e,t,r){t.set(e,r)}:function(e,t,r){for(var i=0;i>>0;if(!t)return this._push(h,1,0);if(n.isString(e)){var r=p.alloc(t=s.length(e));s.decode(e,r,0),e=r}return this.uint32(t)._push(g,t,e)},p.prototype.string=function(e){var t=a.length(e);return t?this.uint32(t)._push(a.write,t,e):this._push(h,1,0)},p.prototype.fork=function(){return this.states=new l(this),this.head=this.tail=new u(f,0,0),this.len=0,this},p.prototype.reset=function(){return this.states?(this.head=this.states.head,this.tail=this.states.tail,this.len=this.states.len,this.states=this.states.next):(this.head=this.tail=new u(f,0,0),this.len=0),this},p.prototype.ldelim=function(){var e=this.head,t=this.tail,r=this.len;return this.reset().uint32(r),r&&(this.tail.next=e.next,this.tail=t,this.len+=r),this},p.prototype.finish=function(){for(var e=this.head.next,t=this.constructor.alloc(this.len),r=0;e;)e.fn(e.val,t,r),r+=e.len,e=e.next;return t},p._configure=function(e){i=e,p.create=c(),i._configure()}},1405:function(e,t,r){e.exports=o;var i=r(8332);(o.prototype=Object.create(i.prototype)).constructor=o;var n=r(6339);function o(){i.call(this)}function s(e,t,r){e.length<40?n.utf8.write(e,t,r):t.utf8Write?t.utf8Write(e,r):t.write(e,r)}o._configure=function(){o.alloc=n._Buffer_allocUnsafe,o.writeBytesBuffer=n.Buffer&&n.Buffer.prototype instanceof Uint8Array&&"set"===n.Buffer.prototype.set.name?function(e,t,r){t.set(e,r)}:function(e,t,r){if(e.copy)e.copy(t,r,0,e.length);else for(var i=0;i>>0;return this.uint32(t),t&&this._push(o.writeBytesBuffer,t,e),this},o.prototype.string=function(e){var t=n.Buffer.byteLength(e);return this.uint32(t),t&&this._push(s,t,e),this},o._configure()}},__webpack_module_cache__={};function __webpack_require__(e){var t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;var r=__webpack_module_cache__[e]={exports:{}};return __webpack_modules__[e].call(r.exports,r,r.exports,__webpack_require__),r.exports}var __webpack_exports__=__webpack_require__(4026);module.exports=__webpack_exports__})(); \ No newline at end of file +(()=>{"use strict";var __webpack_modules__={"./@protobufjs/aspromise/index.js":function(e){e.exports=t;function t(e,t){for(var r=Array(arguments.length-1),o=0,s=2,i=!0;s1&&"="===e.charAt(t);)++r;return Math.ceil(3*e.length)/4-r};for(var o=Array(64),s=Array(123),i=0;i<64;)s[o[i]=i<26?i+65:i<52?i+71:i<62?i-4:i-59|43]=i++;r.encode=function(e,t,r){for(var s,i=null,n=[],u=0,f=0;t>2],s=(3&a)<<4,f=1;break;case 1:n[u++]=o[s|a>>4],s=(15&a)<<2,f=2;break;case 2:n[u++]=o[s|a>>6],n[u++]=o[63&a],f=0}u>8191&&((i||(i=[])).push(String.fromCharCode.apply(String,n)),u=0)}return(f&&(n[u++]=o[s],n[u++]=61,1===f&&(n[u++]=61)),i)?(u&&i.push(String.fromCharCode.apply(String,n.slice(0,u))),i.join("")):String.fromCharCode.apply(String,n.slice(0,u))};var n="invalid encoding";r.decode=function(e,t,r){for(var o,i=r,u=0,f=0;f1)break;if(void 0===(a=s[a]))throw Error(n);switch(u){case 0:o=a,u=1;break;case 1:t[r++]=o<<2|(48&a)>>4,o=a,u=2;break;case 2:t[r++]=(15&o)<<4|(60&a)>>2,o=a,u=3;break;case 3:t[r++]=(3&o)<<6|a,u=0}}if(1===u)throw Error(n);return r-i},r.test=function(e){return/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(e)}},"./@protobufjs/codegen/index.js":function(e){function t(e,r){"string"==typeof e&&(r=e,e=void 0);var o=[];function s(e){if("string"!=typeof e){var r=i();if(t.verbose&&console.log("codegen: "+r),r="return "+r,e){for(var n=Object.keys(e),u=Array(n.length+1),f=Array(n.length),a=0;a0?0:0x80000000,r,o);else if(isNaN(t))e(0x7fc00000,r,o);else if(t>34028234663852886e22)e((s<<31|0x7f800000)>>>0,r,o);else if(t<11754943508222875e-54)e((s<<31|Math.round(t/1401298464324817e-60))>>>0,r,o);else{var i=Math.floor(Math.log(t)/Math.LN2),n=8388607&Math.round(t*Math.pow(2,-i)*8388608);e((s<<31|i+127<<23|n)>>>0,r,o)}}function n(e,t,r){var o=e(t,r),s=(o>>31)*2+1,i=o>>>23&255,n=8388607&o;return 255===i?n?NaN:1/0*s:0===i?1401298464324817e-60*s*n:s*Math.pow(2,i-150)*(n+8388608)}e.writeFloatLE=t.bind(null,r),e.writeFloatBE=t.bind(null,o),e.readFloatLE=n.bind(null,s),e.readFloatBE=n.bind(null,i)}(),"undefined"!=typeof Float64Array?!function(){var t=new Float64Array([-0]),r=new Uint8Array(t.buffer),o=128===r[7];function s(e,o,s){t[0]=e,o[s]=r[0],o[s+1]=r[1],o[s+2]=r[2],o[s+3]=r[3],o[s+4]=r[4],o[s+5]=r[5],o[s+6]=r[6],o[s+7]=r[7]}function i(e,o,s){t[0]=e,o[s]=r[7],o[s+1]=r[6],o[s+2]=r[5],o[s+3]=r[4],o[s+4]=r[3],o[s+5]=r[2],o[s+6]=r[1],o[s+7]=r[0]}function n(e,o){return r[0]=e[o],r[1]=e[o+1],r[2]=e[o+2],r[3]=e[o+3],r[4]=e[o+4],r[5]=e[o+5],r[6]=e[o+6],r[7]=e[o+7],t[0]}function u(e,o){return r[7]=e[o],r[6]=e[o+1],r[5]=e[o+2],r[4]=e[o+3],r[3]=e[o+4],r[2]=e[o+5],r[1]=e[o+6],r[0]=e[o+7],t[0]}e.writeDoubleLE=o?s:i,e.writeDoubleBE=o?i:s,e.readDoubleLE=o?n:u,e.readDoubleBE=o?u:n}():!function(){function t(e,t,r,o,s,i){var n,u=+(o<0);if(u&&(o=-o),0===o)e(0,s,i+t),e(1/o>0?0:0x80000000,s,i+r);else if(isNaN(o))e(0,s,i+t),e(0x7ff80000,s,i+r);else if(o>17976931348623157e292)e(0,s,i+t),e((u<<31|0x7ff00000)>>>0,s,i+r);else if(o<22250738585072014e-324)e((n=o/5e-324)>>>0,s,i+t),e((u<<31|n/0x100000000)>>>0,s,i+r);else{var f=Math.floor(Math.log(o)/Math.LN2);1024===f&&(f=1023),e(0x10000000000000*(n=o*Math.pow(2,-f))>>>0,s,i+t),e((u<<31|f+1023<<20|1048576*n&1048575)>>>0,s,i+r)}}function n(e,t,r,o,s){var i=e(o,s+t),n=e(o,s+r),u=(n>>31)*2+1,f=n>>>20&2047,a=0x100000000*(1048575&n)+i;return 2047===f?a?NaN:1/0*u:0===f?5e-324*u*a:u*Math.pow(2,f-1075)*(a+0x10000000000000)}e.writeDoubleLE=t.bind(null,r,0,4),e.writeDoubleBE=t.bind(null,o,4,0),e.readDoubleLE=n.bind(null,s,0,4),e.readDoubleBE=n.bind(null,i,4,0)}(),e}function r(e,t,r){t[r]=255&e,t[r+1]=e>>>8&255,t[r+2]=e>>>16&255,t[r+3]=e>>>24}function o(e,t,r){t[r]=e>>>24,t[r+1]=e>>>16&255,t[r+2]=e>>>8&255,t[r+3]=255&e}function s(e,t){return(e[t]|e[t+1]<<8|e[t+2]<<16|e[t+3]<<24)>>>0}function i(e,t){return(e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3])>>>0}e.exports=t(t)},"./@protobufjs/inquire/index.js":function(module){module.exports=inquire;function inquire(moduleName){try{var mod=eval("quire".replace(/^/,"re"))(moduleName);if(mod&&(mod.length||Object.keys(mod).length))return mod}catch(e){}return null}},"./@protobufjs/path/index.js":function(e,t){var r=t,o=r.isAbsolute=function(e){return/^(?:\/|\w+:)/.test(e)},s=r.normalize=function(e){var t=(e=e.replace(/\\/g,"/").replace(/\/{2,}/g,"/")).split("/"),r=o(e),s="";r&&(s=t.shift()+"/");for(var i=0;i0&&".."!==t[i-1]?t.splice(--i,2):r?t.splice(i,1):++i:"."===t[i]?t.splice(i,1):++i;return s+t.join("/")};r.resolve=function(e,t,r){return(r||(t=s(t)),o(t))?t:(r||(e=s(e)),(e=e.replace(/(?:\/|^)[^/]+$/,"")).length?s(e+"/"+t):t)}},"./@protobufjs/pool/index.js":function(e){e.exports=t;function t(e,t,r){var o=r||8192,s=o>>>1,i=null,n=o;return function(r){if(r<1||r>s)return e(r);n+r>o&&(i=e(o),n=0);var u=t.call(i,n,n+=r);return 7&n&&(n=(7|n)+1),u}}},"./@protobufjs/utf8/index.js":function(e,t){var r=t;r.length=function(e){for(var t=0,r=0,o=0;o191&&o<224?i[n++]=(31&o)<<6|63&e[t++]:o>239&&o<365?(o=((7&o)<<18|(63&e[t++])<<12|(63&e[t++])<<6|63&e[t++])-65536,i[n++]=55296+(o>>10),i[n++]=56320+(1023&o)):i[n++]=(15&o)<<12|(63&e[t++])<<6|63&e[t++],n>8191&&((s||(s=[])).push(String.fromCharCode.apply(String,i)),n=0);return s?(n&&s.push(String.fromCharCode.apply(String,i.slice(0,n))),s.join("")):String.fromCharCode.apply(String,i.slice(0,n))},r.write=function(e,t,r){for(var o,s,i=r,n=0;n>6|192:((64512&o)==55296&&(64512&(s=e.charCodeAt(n+1)))==56320?(o=65536+((1023&o)<<10)+(1023&s),++n,t[r++]=o>>18|240,t[r++]=o>>12&63|128):t[r++]=o>>12|224,t[r++]=o>>6&63|128),t[r++]=63&o|128);return r-i}},"./protobufjs/index.js":function(e,t,r){e.exports=r("./protobufjs/src/index.js")},"./protobufjs/src/common.js":function(e){e.exports=o;var t,r=/\/|\./;function o(e,t){r.test(e)||(e="google/protobuf/"+e+".proto",t={nested:{google:{nested:{protobuf:{nested:t}}}}}),o[e]=t}o("any",{Any:{fields:{type_url:{type:"string",id:1},value:{type:"bytes",id:2}}}}),o("duration",{Duration:t={fields:{seconds:{type:"int64",id:1},nanos:{type:"int32",id:2}}}}),o("timestamp",{Timestamp:t}),o("empty",{Empty:{fields:{}}}),o("struct",{Struct:{fields:{fields:{keyType:"string",type:"Value",id:1}}},Value:{oneofs:{kind:{oneof:["nullValue","numberValue","stringValue","boolValue","structValue","listValue"]}},fields:{nullValue:{type:"NullValue",id:1},numberValue:{type:"double",id:2},stringValue:{type:"string",id:3},boolValue:{type:"bool",id:4},structValue:{type:"Struct",id:5},listValue:{type:"ListValue",id:6}}},NullValue:{values:{NULL_VALUE:0}},ListValue:{fields:{values:{rule:"repeated",type:"Value",id:1}}}}),o("wrappers",{DoubleValue:{fields:{value:{type:"double",id:1}}},FloatValue:{fields:{value:{type:"float",id:1}}},Int64Value:{fields:{value:{type:"int64",id:1}}},UInt64Value:{fields:{value:{type:"uint64",id:1}}},Int32Value:{fields:{value:{type:"int32",id:1}}},UInt32Value:{fields:{value:{type:"uint32",id:1}}},BoolValue:{fields:{value:{type:"bool",id:1}}},StringValue:{fields:{value:{type:"string",id:1}}},BytesValue:{fields:{value:{type:"bytes",id:1}}}}),o("field_mask",{FieldMask:{fields:{paths:{rule:"repeated",type:"string",id:1}}}}),o.get=function(e){return o[e]||null}},"./protobufjs/src/converter.js":function(e,t,r){var o=t,s=r("./protobufjs/src/enum.js"),i=r("./protobufjs/src/util.js");function n(e,t,r,o){var i=!1;if(t.resolvedType)if(t.resolvedType instanceof s){e("switch(d%s){",o);for(var n=t.resolvedType.values,u=Object.keys(n),f=0;f>>0",o,o);break;case"int32":case"sint32":case"sfixed32":e("m%s=d%s|0",o,o);break;case"uint64":a=!0;case"int64":case"sint64":case"fixed64":case"sfixed64":e("if(util.Long)")("(m%s=util.Long.fromValue(d%s)).unsigned=%j",o,o,a)('else if(typeof d%s==="string")',o)("m%s=parseInt(d%s,10)",o,o)('else if(typeof d%s==="number")',o)("m%s=d%s",o,o)('else if(typeof d%s==="object")',o)("m%s=new util.LongBits(d%s.low>>>0,d%s.high>>>0).toNumber(%s)",o,o,o,a?"true":"");break;case"bytes":e('if(typeof d%s==="string")',o)("util.base64.decode(d%s,m%s=util.newBuffer(util.base64.length(d%s)),0)",o,o,o)("else if(d%s.length >= 0)",o)("m%s=d%s",o,o);break;case"string":e("m%s=String(d%s)",o,o);break;case"bool":e("m%s=Boolean(d%s)",o,o)}}return e}function u(e,t,r,o){if(t.resolvedType)t.resolvedType instanceof s?e("d%s=o.enums===String?(types[%i].values[m%s]===undefined?m%s:types[%i].values[m%s]):m%s",o,r,o,o,r,o,o):e("d%s=types[%i].toObject(m%s,o)",o,r,o);else{var i=!1;switch(t.type){case"double":case"float":e("d%s=o.json&&!isFinite(m%s)?String(m%s):m%s",o,o,o,o);break;case"uint64":i=!0;case"int64":case"sint64":case"fixed64":case"sfixed64":e('if(typeof m%s==="number")',o)("d%s=o.longs===String?String(m%s):m%s",o,o,o)("else")("d%s=o.longs===String?util.Long.prototype.toString.call(m%s):o.longs===Number?new util.LongBits(m%s.low>>>0,m%s.high>>>0).toNumber(%s):m%s",o,o,o,o,i?"true":"",o);break;case"bytes":e("d%s=o.bytes===String?util.base64.encode(m%s,0,m%s.length):o.bytes===Array?Array.prototype.slice.call(m%s):m%s",o,o,o,o,o);break;default:e("d%s=m%s",o,o)}}return e}o.fromObject=function(e){var t=e.fieldsArray,r=i.codegen(["d"],e.name+"$fromObject")("if(d instanceof this.ctor)")("return d");if(!t.length)return r("return new this.ctor");r("var m=new this.ctor");for(var o=0;o>>3){"),r=0;r>>3){")("case 1: k=r.%s(); break",u.keyType)("case 2:"),void 0===s.basic[f]?t("value=types[%i].decode(r,r.uint32())",r):t("value=r.%s()",f),t("break")("default:")("r.skipType(tag2&7)")("break")("}")("}"),void 0!==s.long[u.keyType]?t('%s[typeof k==="object"?util.longToHash(k):k]=value',a):t("%s[k]=value",a)):u.repeated?(t("if(!(%s&&%s.length))",a,a)("%s=[]",a),void 0!==s.packed[f]&&t("if((t&7)===2){")("var c2=r.uint32()+r.pos")("while(r.pos>>0,(t.id<<3|4)>>>0):e("types[%i].encode(%s,w.uint32(%i).fork()).ldelim()",r,o,(t.id<<3|2)>>>0)}function u(e){for(var t,r,u=i.codegen(["m","w"],e.name+"$encode")("if(!w)")("w=Writer.create()"),f=e.fieldsArray.slice().sort(i.compareFieldsById),t=0;t>>0,8|s.mapKey[a.keyType],a.keyType),void 0===c?u("types[%i].encode(%s[ks[i]],w.uint32(18).fork()).ldelim().ldelim()",l,r):u(".uint32(%i).%s(%s[ks[i]]).ldelim()",16|c,p,r),u("}")("}")):a.repeated?(u("if(%s!=null&&%s.length){",r,r),a.packed&&void 0!==s.packed[p]?u("w.uint32(%i).fork()",(a.id<<3|2)>>>0)("for(var i=0;i<%s.length;++i)",r)("w.%s(%s[i])",p,r)("w.ldelim()"):(u("for(var i=0;i<%s.length;++i)",r),void 0===c?n(u,a,l,r+"[i]"):u("w.uint32(%i).%s(%s[i])",(a.id<<3|c)>>>0,p,r)),u("}")):(a.optional&&u("if(%s!=null&&Object.hasOwnProperty.call(m,%j))",r,a.name),void 0===c?n(u,a,l,r):u("w.uint32(%i).%s(%s)",(a.id<<3|c)>>>0,p,r))}return u("return w")}},"./protobufjs/src/enum.js":function(e,t,r){e.exports=n;var o=r("./protobufjs/src/object.js");((n.prototype=Object.create(o.prototype)).constructor=n).className="Enum";var s=r("./protobufjs/src/namespace.js"),i=r("./protobufjs/src/util.js");function n(e,t,r,s,i,n){if(o.call(this,e,r),t&&"object"!=typeof t)throw TypeError("values must be an object");if(this.valuesById={},this.values=Object.create(this.valuesById),this.comment=s,this.comments=i||{},this.valuesOptions=n,this._valuesFeatures={},this.reserved=void 0,t)for(var u=Object.keys(t),f=0;f{var t=Object.assign({},this._features);this._valuesFeatures[e]=Object.assign(t,this.valuesOptions&&this.valuesOptions[e]&&this.valuesOptions[e].features)}),this},n.fromJSON=function(e,t){var r=new n(e,t.values,t.options,t.comment,t.comments);return r.reserved=t.reserved,t.edition&&(r._edition=t.edition),r._defaultEdition="proto3",r},n.prototype.toJSON=function(e){var t=!!e&&!!e.keepComments;return i.toObject(["edition",this._editionToJSON(),"options",this.options,"valuesOptions",this.valuesOptions,"values",this.values,"reserved",this.reserved&&this.reserved.length?this.reserved:void 0,"comment",t?this.comment:void 0,"comments",t?this.comments:void 0])},n.prototype.add=function(e,t,r,o){if(!i.isString(e))throw TypeError("name must be a string");if(!i.isInteger(t))throw TypeError("id must be an integer");if(void 0!==this.values[e])throw Error("duplicate name '"+e+"' in "+this);if(this.isReservedId(t))throw Error("id "+t+" is reserved in "+this);if(this.isReservedName(e))throw Error("name '"+e+"' is reserved in "+this);if(void 0!==this.valuesById[t]){if(!(this.options&&this.options.allow_alias))throw Error("duplicate id "+t+" in "+this);this.values[e]=t}else this.valuesById[this.values[e]=t]=e;return o&&(void 0===this.valuesOptions&&(this.valuesOptions={}),this.valuesOptions[e]=o||null),this.comments[e]=r||null,this},n.prototype.remove=function(e){if(!i.isString(e))throw TypeError("name must be a string");var t=this.values[e];if(null==t)throw Error("name '"+e+"' does not exist in "+this);return delete this.valuesById[t],delete this.values[e],delete this.comments[e],this.valuesOptions&&delete this.valuesOptions[e],this},n.prototype.isReservedId=function(e){return s.isReservedId(this.reserved,e)},n.prototype.isReservedName=function(e){return s.isReservedName(this.reserved,e)}},"./protobufjs/src/field.js":function(e,t,r){e.exports=a;var o,s=r("./protobufjs/src/object.js");((a.prototype=Object.create(s.prototype)).constructor=a).className="Field";var i=r("./protobufjs/src/enum.js"),n=r("./protobufjs/src/types.js"),u=r("./protobufjs/src/util.js"),f=/^required|optional|repeated$/;function a(e,t,r,o,i,a,l){if(u.isObject(o)?(l=i,a=o,o=i=void 0):u.isObject(i)&&(l=a,a=i,i=void 0),s.call(this,e,a),!u.isInteger(t)||t<0)throw TypeError("id must be a non-negative integer");if(!u.isString(r))throw TypeError("type must be a string");if(void 0!==o&&!f.test(o=o.toString().toLowerCase()))throw TypeError("rule must be a string rule");if(void 0!==i&&!u.isString(i))throw TypeError("extend must be a string");"proto3_optional"===o&&(o="optional"),this.rule=o&&"optional"!==o?o:void 0,this.type=r,this.id=t,this.extend=i||void 0,this.repeated="repeated"===o,this.map=!1,this.message=null,this.partOf=null,this.typeDefault=null,this.defaultValue=null,this.long=!!u.Long&&void 0!==n.long[r],this.bytes="bytes"===r,this.resolvedType=null,this.extensionField=null,this.declaringField=null,this.comment=l}a.fromJSON=function(e,t){var r=new a(e,t.id,t.type,t.rule,t.extend,t.options,t.comment);return t.edition&&(r._edition=t.edition),r._defaultEdition="proto3",r},Object.defineProperty(a.prototype,"required",{get:function(){return"LEGACY_REQUIRED"===this._features.field_presence}}),Object.defineProperty(a.prototype,"optional",{get:function(){return!this.required}}),Object.defineProperty(a.prototype,"delimited",{get:function(){return this.resolvedType instanceof o&&"DELIMITED"===this._features.message_encoding}}),Object.defineProperty(a.prototype,"packed",{get:function(){return"PACKED"===this._features.repeated_field_encoding}}),Object.defineProperty(a.prototype,"hasPresence",{get:function(){return!this.repeated&&!this.map&&(this.partOf||this.declaringField||this.extensionField||"IMPLICIT"!==this._features.field_presence)}}),a.prototype.setOption=function(e,t,r){return s.prototype.setOption.call(this,e,t,r)},a.prototype.toJSON=function(e){var t=!!e&&!!e.keepComments;return u.toObject(["edition",this._editionToJSON(),"rule","optional"!==this.rule&&this.rule||void 0,"type",this.type,"id",this.id,"extend",this.extend,"options",this.options,"comment",t?this.comment:void 0])},a.prototype.resolve=function(){if(this.resolved)return this;if(void 0===(this.typeDefault=n.defaults[this.type])?(this.resolvedType=(this.declaringField?this.declaringField.parent:this.parent).lookupTypeOrEnum(this.type),this.resolvedType instanceof o?this.typeDefault=null:this.typeDefault=this.resolvedType.values[Object.keys(this.resolvedType.values)[0]]):this.options&&this.options.proto3_optional&&(this.typeDefault=null),this.options&&null!=this.options.default&&(this.typeDefault=this.options.default,this.resolvedType instanceof i&&"string"==typeof this.typeDefault&&(this.typeDefault=this.resolvedType.values[this.typeDefault])),this.options&&(void 0===this.options.packed||!this.resolvedType||this.resolvedType instanceof i||delete this.options.packed,Object.keys(this.options).length||(this.options=void 0)),this.long)this.typeDefault=u.Long.fromNumber(this.typeDefault,"u"===this.type.charAt(0)),Object.freeze&&Object.freeze(this.typeDefault);else if(this.bytes&&"string"==typeof this.typeDefault){var e;u.base64.test(this.typeDefault)?u.base64.decode(this.typeDefault,e=u.newBuffer(u.base64.length(this.typeDefault)),0):u.utf8.write(this.typeDefault,e=u.newBuffer(u.utf8.length(this.typeDefault)),0),this.typeDefault=e}return this.map?this.defaultValue=u.emptyObject:this.repeated?this.defaultValue=u.emptyArray:this.defaultValue=this.typeDefault,this.parent instanceof o&&(this.parent.ctor.prototype[this.name]=this.defaultValue),s.prototype.resolve.call(this)},a.prototype._inferLegacyProtoFeatures=function(e){if("proto2"!==e&&"proto3"!==e)return{};var t={};if("required"===this.rule&&(t.field_presence="LEGACY_REQUIRED"),this.parent&&void 0===n.defaults[this.type]){var r=this.parent.get(this.type.split(".").pop());r&&r instanceof o&&r.group&&(t.message_encoding="DELIMITED")}return!0===this.getOption("packed")?t.repeated_field_encoding="PACKED":!1===this.getOption("packed")&&(t.repeated_field_encoding="EXPANDED"),t},a.prototype._resolveFeatures=function(e){return s.prototype._resolveFeatures.call(this,this._edition||e)},a.d=function(e,t,r,o){return"function"==typeof t?t=u.decorateType(t).name:t&&"object"==typeof t&&(t=u.decorateEnum(t).name),function(s,i){u.decorateType(s.constructor).add(new a(i,e,t,r,{default:o}))}},a._configure=function(e){o=e}},"./protobufjs/src/index-light.js":function(e,t,r){var o=e.exports=r("./protobufjs/src/index-minimal.js");function s(e,t,r){return"function"==typeof t?(r=t,t=new o.Root):t||(t=new o.Root),t.load(e,r)}function i(e,t){return t||(t=new o.Root),t.loadSync(e)}o.build="light",o.load=s,o.loadSync=i,o.encoder=r("./protobufjs/src/encoder.js"),o.decoder=r("./protobufjs/src/decoder.js"),o.verifier=r("./protobufjs/src/verifier.js"),o.converter=r("./protobufjs/src/converter.js"),o.ReflectionObject=r("./protobufjs/src/object.js"),o.Namespace=r("./protobufjs/src/namespace.js"),o.Root=r("./protobufjs/src/root.js"),o.Enum=r("./protobufjs/src/enum.js"),o.Type=r("./protobufjs/src/type.js"),o.Field=r("./protobufjs/src/field.js"),o.OneOf=r("./protobufjs/src/oneof.js"),o.MapField=r("./protobufjs/src/mapfield.js"),o.Service=r("./protobufjs/src/service.js"),o.Method=r("./protobufjs/src/method.js"),o.Message=r("./protobufjs/src/message.js"),o.wrappers=r("./protobufjs/src/wrappers.js"),o.types=r("./protobufjs/src/types.js"),o.util=r("./protobufjs/src/util.js"),o.ReflectionObject._configure(o.Root),o.Namespace._configure(o.Type,o.Service,o.Enum),o.Root._configure(o.Type),o.Field._configure(o.Type)},"./protobufjs/src/index-minimal.js":function(e,t,r){var o=t;function s(){o.util._configure(),o.Writer._configure(o.BufferWriter),o.Reader._configure(o.BufferReader)}o.build="minimal",o.Writer=r("./protobufjs/src/writer.js"),o.BufferWriter=r("./protobufjs/src/writer_buffer.js"),o.Reader=r("./protobufjs/src/reader.js"),o.BufferReader=r("./protobufjs/src/reader_buffer.js"),o.util=r("./protobufjs/src/util/minimal.js"),o.rpc=r("./protobufjs/src/rpc.js"),o.roots=r("./protobufjs/src/roots.js"),o.configure=s,s()},"./protobufjs/src/index.js":function(e,t,r){var o=e.exports=r("./protobufjs/src/index-light.js");o.build="full",o.tokenize=r("./protobufjs/src/tokenize.js"),o.parse=r("./protobufjs/src/parse.js"),o.common=r("./protobufjs/src/common.js"),o.Root._configure(o.Type,o.parse,o.common)},"./protobufjs/src/mapfield.js":function(e,t,r){e.exports=n;var o=r("./protobufjs/src/field.js");((n.prototype=Object.create(o.prototype)).constructor=n).className="MapField";var s=r("./protobufjs/src/types.js"),i=r("./protobufjs/src/util.js");function n(e,t,r,s,n,u){if(o.call(this,e,t,s,void 0,void 0,n,u),!i.isString(r))throw TypeError("keyType must be a string");this.keyType=r,this.resolvedKeyType=null,this.map=!0}n.fromJSON=function(e,t){return new n(e,t.id,t.keyType,t.type,t.options,t.comment)},n.prototype.toJSON=function(e){var t=!!e&&!!e.keepComments;return i.toObject(["keyType",this.keyType,"type",this.type,"id",this.id,"extend",this.extend,"options",this.options,"comment",t?this.comment:void 0])},n.prototype.resolve=function(){if(this.resolved)return this;if(void 0===s.mapKey[this.keyType])throw Error("invalid key type: "+this.keyType);return o.prototype.resolve.call(this)},n.d=function(e,t,r){return"function"==typeof r?r=i.decorateType(r).name:r&&"object"==typeof r&&(r=i.decorateEnum(r).name),function(o,s){i.decorateType(o.constructor).add(new n(s,e,t,r))}}},"./protobufjs/src/message.js":function(e,t,r){e.exports=s;var o=r("./protobufjs/src/util/minimal.js");function s(e){if(e)for(var t=Object.keys(e),r=0;rt)return!0}return!1},p.isReservedName=function(e,t){if(e){for(var r=0;r0;){var o=e.shift();if(r.nested&&r.nested[o]){if(!((r=r.nested[o])instanceof p))throw Error("path conflicts with non-namespace objects")}else r.add(r=new p(o))}return t&&r.addJSON(t),r},p.prototype.resolveAll=function(){if(!this._needsRecursiveResolve)return this;this._resolveFeaturesRecursive(this._edition);var e=this.nestedArray,t=0;for(this.resolve();t{t._resolveFeaturesRecursive(e)})),this},p.prototype.lookup=function(e,t,r){if("boolean"==typeof t?(r=t,t=void 0):t&&!Array.isArray(t)&&(t=[t]),f.isString(e)&&e.length){if("."===e)return this.root;e=e.split(".")}else if(!e.length)return this;var o=e.join(".");if(""===e[0])return this.root.lookup(e.slice(1),t);var s=this.root._fullyQualifiedObjects&&this.root._fullyQualifiedObjects["."+o];if(s&&(!t||t.indexOf(s.constructor)>-1)||(s=this._lookupImpl(e,o))&&(!t||t.indexOf(s.constructor)>-1))return s;if(r)return null;for(var i=this;i.parent;){if((s=i.parent._lookupImpl(e,o))&&(!t||t.indexOf(s.constructor)>-1))return s;i=i.parent}return null},p.prototype._lookupImpl=function(e,t){if(Object.prototype.hasOwnProperty.call(this._lookupCache,t))return this._lookupCache[t];var r=this.get(e[0]),o=null;if(r)1===e.length?o=r:r instanceof p&&(e=e.slice(1),o=r._lookupImpl(e,e.join(".")));else for(var s=0;s-1&&this.oneof.splice(t,1),e.partOf=null,this},n.prototype.onAdd=function(e){o.prototype.onAdd.call(this,e);for(var t=this,r=0;r{e._edition=L,Object.keys($).forEach(t=>{void 0===e.getOption(t)&&e.setOption(t,$[t],!0)})})}function z(e,t,r){var o=k.filename;return r||(k.filename=null),Error("illegal "+(t||"token")+" '"+e+"' ("+(o?o+", ":"")+"line "+N.line+")")}function M(){var e,t=[];do{if('"'!==(e=R())&&"'"!==e)throw z(e);t.push(R()),B(e),e=I()}while('"'===e||"'"===e);return t.join("")}function U(e){var t=R();switch(t){case"'":case'"':return F(t),M();case"true":case"TRUE":return!0;case"false":case"FALSE":return!1}try{return W(t,!0)}catch(r){if(e&&_.test(t))return t;throw z(t,"value")}}function H(e,t){do if(t&&('"'===(r=I())||"'"===r)){var r,o,s=M();if(e.push(s),L>=2023)throw z(s,"id")}else try{e.push([o=G(R()),B("to",!0)?G(R()):o])}catch(o){if(t&&_.test(r)&&L>=2023)e.push(r);else throw o}while(B(",",!0));var i={options:void 0};i.setOption=function(e,t){void 0===this.options&&(this.options={}),this.options[e]=t},ee(i,function(e){if("option"===e)ef(i,e),B(";");else throw z(e)},function(){ec(i)})}function W(e,t){var r=1;switch("-"===e.charAt(0)&&(r=-1,e=e.substring(1)),e){case"inf":case"INF":case"Inf":return 1/0*r;case"nan":case"NAN":case"Nan":case"NaN":return NaN;case"0":return 0}if(y.test(e))return r*parseInt(e,10);if(m.test(e))return r*parseInt(e,16);if(j.test(e))return r*parseInt(e,8);if(w.test(e))return r*parseFloat(e);throw z(e,"number",t)}function G(e,t){switch(e){case"max":case"MAX":case"Max":return 0x1fffffff;case"0":return 0}if(!t&&"-"===e.charAt(0))throw z(e,"id");if(v.test(e))return parseInt(e,10);if(b.test(e))return parseInt(e,16);if(g.test(e))return parseInt(e,8);throw z(e,"id")}function X(){if(void 0!==A)throw z("package");if(A=R(),!_.test(A))throw z(A,"name");C=C.define(A),B(";")}function Z(){var e,t=I();switch(t){case"weak":e=S||(S=[]),R();break;case"public":R();default:e=E||(E=[])}t=M(),B(";"),e.push(t)}function K(){if(B("="),(L=M())<2023)throw z(L,"syntax");B(";")}function Q(){if(B("="),!["2023"].includes(L=M()))throw z(L,"edition");B(";")}function Y(e,t){switch(t){case"option":return ef(e,t),B(";"),!0;case"message":return et(e,t),!0;case"enum":return en(e,t),!0;case"service":return eh(e,t),!0;case"extend":return ey(e,t),!0}return!1}function ee(e,t,r){var o,s=N.line;if(e&&("string"!=typeof e.comment&&(e.comment=P()),e.filename=k.filename),B("{",!0)){for(;"}"!==(o=R());)t(o);B(";",!0)}else r&&r(),B(";"),e&&("string"!=typeof e.comment||T)&&(e.comment=P(s)||e.comment)}function et(e,t){if(!O.test(t=R()))throw z(t,"type name");var r=new i(t);ee(r,function(e){if(!Y(r,e))switch(e){case"map":es(r,e);break;case"required":if("proto2"!==L)throw z(e);case"repeated":er(r,e);break;case"optional":if("proto3"===L)er(r,"proto3_optional");else if("proto2"!==L)throw z(e);else er(r,"optional");break;case"oneof":ei(r,e);break;case"extensions":H(r.extensions||(r.extensions=[]));break;case"reserved":H(r.reserved||(r.reserved=[]),!0);break;default:if("proto2"===L||!_.test(e))throw z(e);F(e),er(r,"optional")}}),e.add(r),e===C&&J.push(r)}function er(e,t,r){var o=R();if("group"===o)return void eo(e,t);for(;o.endsWith(".")||I().startsWith(".");)o+=R();if(!_.test(o))throw z(o,"type");var s=R();if(!O.test(s))throw z(s,"name");s=q(s),B("=");var i=new n(s,G(R()),o,t,r);if(ee(i,function(e){if("option"===e)ef(i,e),B(";");else throw z(e)},function(){ec(i)}),"proto3_optional"===t){var u=new f("_"+s);i.setOption("proto3_optional",!0),u.add(i),e.add(u)}else e.add(i);e===C&&J.push(i)}function eo(e,t){if(L>=2023)throw z("group");var r=R();if(!O.test(r))throw z(r,"name");var o=d.lcFirst(r);r===o&&(r=d.ucFirst(r)),B("=");var s=G(R()),u=new i(r);u.group=!0;var f=new n(o,s,r,t);f.filename=k.filename,ee(u,function(e){switch(e){case"option":ef(u,e),B(";");break;case"required":case"repeated":er(u,e);break;case"optional":"proto3"===L?er(u,"proto3_optional"):er(u,"optional");break;case"message":et(u,e);break;case"enum":en(u,e);break;case"reserved":H(u.reserved||(u.reserved=[]),!0);break;default:throw z(e)}}),e.add(u).add(f)}function es(e){B("<");var t=R();if(void 0===h.mapKey[t])throw z(t,"type");B(",");var r=R();if(!_.test(r))throw z(r,"type");B(">");var o=R();if(!O.test(o))throw z(o,"name");B("=");var s=new u(q(o),G(R()),t,r);ee(s,function(e){if("option"===e)ef(s,e),B(";");else throw z(e)},function(){ec(s)}),e.add(s)}function ei(e,t){if(!O.test(t=R()))throw z(t,"name");var r=new f(q(t));ee(r,function(e){"option"===e?(ef(r,e),B(";")):(F(e),er(r,"optional"))}),e.add(r)}function en(e,t){if(!O.test(t=R()))throw z(t,"name");var r=new a(t);ee(r,function(e){switch(e){case"option":ef(r,e),B(";");break;case"reserved":H(r.reserved||(r.reserved=[]),!0),void 0===r.reserved&&(r.reserved=[]);break;default:eu(r,e)}}),e.add(r),e===C&&J.push(r)}function eu(e,t){if(!O.test(t))throw z(t,"name");B("=");var r=G(R(),!0),o={options:void 0};o.getOption=function(e){return this.options[e]},o.setOption=function(e,t){c.prototype.setOption.call(o,e,t)},o.setParsedOption=function(){},ee(o,function(e){if("option"===e)ef(o,e),B(";");else throw z(e)},function(){ec(o)}),e.add(t,r,o.comment,o.parsedOptions||o.options)}function ef(e,t){var r,o,s=!0;for("option"===t&&(t=R());"="!==t;){if("("===t){var i=R();B(")"),t="("+i+")"}if(s){if(s=!1,t.includes(".")&&!t.includes("(")){var n=t.split(".");r=n[0]+".",t=n[1];continue}r=t}else o=o?o+=t:t;t=R()}var u=ea(e,o?r.concat(o):r);o=o&&"."===o[0]?o.slice(1):o,ep(e,r=r&&"."===r[r.length-1]?r.slice(0,-1):r,u,o)}function ea(e,t){if(B("{",!0)){for(var r={};!B("}",!0);){if(!O.test(x=R()))throw z(x,"name");if(null===x)throw z(x,"end of input");var o,s,i=x;if(B(":",!0),"{"===I())o=ea(e,t+"."+x);else if("["===I()){if(o=[],B("[",!0)){do s=U(!0),o.push(s);while(B(",",!0));B("]"),void 0!==s&&el(e,t+"."+x,s)}}else o=U(!0),el(e,t+"."+x,o);var n=r[i];n&&(o=[].concat(n).concat(o)),r[i]=o,B(",",!0),B(";",!0)}return r}var u=U(!0);return el(e,t,u),u}function el(e,t,r){if(C===e&&/^features\./.test(t)){$[t]=r;return}e.setOption&&e.setOption(t,r)}function ep(e,t,r,o){e.setParsedOption&&e.setParsedOption(t,r,o)}function ec(e){if(B("[",!0)){do ef(e,"option");while(B(",",!0));B("]")}return e}function eh(e,t){if(!O.test(t=R()))throw z(t,"service name");var r=new l(t);ee(r,function(e){if(!Y(r,e))if("rpc"===e)ed(r,e);else throw z(e)}),e.add(r),e===C&&J.push(r)}function ed(e,t){var r=P(),o=t;if(!O.test(t=R()))throw z(t,"name");var s,i,n,u,f=t;if(B("("),B("stream",!0)&&(i=!0),!_.test(t=R())||(s=t,B(")"),B("returns"),B("("),B("stream",!0)&&(u=!0),!_.test(t=R())))throw z(t);n=t,B(")");var a=new p(f,o,s,n,i,u);a.comment=r,ee(a,function(e){if("option"===e)ef(a,e),B(";");else throw z(e)}),e.add(a)}function ey(e,t){if(!_.test(t=R()))throw z(t,"reference");var r=t;ee(null,function(t){switch(t){case"required":case"repeated":er(e,t,r);break;case"optional":"proto3"===L?er(e,"proto3_optional",r):er(e,"optional",r);break;default:if("proto2"===L||!_.test(t))throw z(t);F(t),er(e,"optional",r)}})}for(;null!==(x=R());)switch(x){case"package":if(!D)throw z(x);X();break;case"import":if(!D)throw z(x);Z();break;case"syntax":if(!D)throw z(x);K();break;case"edition":if(!D)throw z(x);Q();break;case"option":ef(C,x),B(";",!0);break;default:if(Y(C,x)){D=!1;continue}throw z(x)}return V(),k.filename=null,{package:A,imports:E,weakImports:S,root:t}}},"./protobufjs/src/reader.js":function(e,t,r){e.exports=f;var o,s=r("./protobufjs/src/util/minimal.js"),i=s.LongBits,n=s.utf8;function u(e,t){return RangeError("index out of range: "+e.pos+" + "+(t||1)+" > "+e.len)}function f(e){this.buf=e,this.pos=0,this.len=e.length}var a="undefined"!=typeof Uint8Array?function(e){if(e instanceof Uint8Array||Array.isArray(e))return new f(e);throw Error("illegal buffer")}:function(e){if(Array.isArray(e))return new f(e);throw Error("illegal buffer")},l=function(){return s.Buffer?function(e){return(f.create=function(e){return s.Buffer.isBuffer(e)?new o(e):a(e)})(e)}:a};function p(){var e=new i(0,0),t=0;if(this.len-this.pos>4){for(;t<4;++t)if(e.lo=(e.lo|(127&this.buf[this.pos])<<7*t)>>>0,this.buf[this.pos++]<128)return e;if(e.lo=(e.lo|(127&this.buf[this.pos])<<28)>>>0,e.hi=(e.hi|(127&this.buf[this.pos])>>4)>>>0,this.buf[this.pos++]<128)return e;t=0}else{for(;t<3;++t){if(this.pos>=this.len)throw u(this);if(e.lo=(e.lo|(127&this.buf[this.pos])<<7*t)>>>0,this.buf[this.pos++]<128)return e}return e.lo=(e.lo|(127&this.buf[this.pos++])<<7*t)>>>0,e}if(this.len-this.pos>4){for(;t<5;++t)if(e.hi=(e.hi|(127&this.buf[this.pos])<<7*t+3)>>>0,this.buf[this.pos++]<128)return e}else for(;t<5;++t){if(this.pos>=this.len)throw u(this);if(e.hi=(e.hi|(127&this.buf[this.pos])<<7*t+3)>>>0,this.buf[this.pos++]<128)return e}throw Error("invalid varint encoding")}function c(e,t){return(e[t-4]|e[t-3]<<8|e[t-2]<<16|e[t-1]<<24)>>>0}function h(){if(this.pos+8>this.len)throw u(this,8);return new i(c(this.buf,this.pos+=4),c(this.buf,this.pos+=4))}f.create=l(),f.prototype._slice=s.Array.prototype.subarray||s.Array.prototype.slice,f.prototype.uint32=function(){var e=0xffffffff;return function(){if(e=(127&this.buf[this.pos])>>>0,this.buf[this.pos++]<128||(e=(e|(127&this.buf[this.pos])<<7)>>>0,this.buf[this.pos++]<128)||(e=(e|(127&this.buf[this.pos])<<14)>>>0,this.buf[this.pos++]<128)||(e=(e|(127&this.buf[this.pos])<<21)>>>0,this.buf[this.pos++]<128)||(e=(e|(15&this.buf[this.pos])<<28)>>>0,this.buf[this.pos++]<128))return e;if((this.pos+=5)>this.len)throw this.pos=this.len,u(this,10);return e}}(),f.prototype.int32=function(){return 0|this.uint32()},f.prototype.sint32=function(){var e=this.uint32();return e>>>1^-(1&e)},f.prototype.bool=function(){return 0!==this.uint32()},f.prototype.fixed32=function(){if(this.pos+4>this.len)throw u(this,4);return c(this.buf,this.pos+=4)},f.prototype.sfixed32=function(){if(this.pos+4>this.len)throw u(this,4);return 0|c(this.buf,this.pos+=4)},f.prototype.float=function(){if(this.pos+4>this.len)throw u(this,4);var e=s.float.readFloatLE(this.buf,this.pos);return this.pos+=4,e},f.prototype.double=function(){if(this.pos+8>this.len)throw u(this,4);var e=s.float.readDoubleLE(this.buf,this.pos);return this.pos+=8,e},f.prototype.bytes=function(){var e=this.uint32(),t=this.pos,r=this.pos+e;if(r>this.len)throw u(this,e);if(this.pos+=e,Array.isArray(this.buf))return this.buf.slice(t,r);if(t===r){var o=s.Buffer;return o?o.alloc(0):new this.buf.constructor(0)}return this._slice.call(this.buf,t,r)},f.prototype.string=function(){var e=this.bytes();return n.read(e,0,e.length)},f.prototype.skip=function(e){if("number"==typeof e){if(this.pos+e>this.len)throw u(this,e);this.pos+=e}else do if(this.pos>=this.len)throw u(this);while(128&this.buf[this.pos++]);return this},f.prototype.skipType=function(e){switch(e){case 0:this.skip();break;case 1:this.skip(8);break;case 2:this.skip(this.uint32());break;case 3:for(;4!=(e=7&this.uint32());)this.skipType(e);break;case 5:this.skip(4);break;default:throw Error("invalid wire type "+e+" at offset "+this.pos)}return this},f._configure=function(e){o=e,f.create=l(),o._configure();var t=s.Long?"toLong":"toNumber";s.merge(f.prototype,{int64:function(){return p.call(this)[t](!1)},uint64:function(){return p.call(this)[t](!0)},sint64:function(){return p.call(this).zzDecode()[t](!1)},fixed64:function(){return h.call(this)[t](!0)},sfixed64:function(){return h.call(this)[t](!1)}})}},"./protobufjs/src/reader_buffer.js":function(e,t,r){e.exports=i;var o=r("./protobufjs/src/reader.js");(i.prototype=Object.create(o.prototype)).constructor=i;var s=r("./protobufjs/src/util/minimal.js");function i(e){o.call(this,e)}i._configure=function(){s.Buffer&&(i.prototype._slice=s.Buffer.prototype.slice)},i.prototype.string=function(){var e=this.uint32();return this.buf.utf8Slice?this.buf.utf8Slice(this.pos,this.pos=Math.min(this.pos+e,this.len)):this.buf.toString("utf-8",this.pos,this.pos=Math.min(this.pos+e,this.len))},i._configure()},"./protobufjs/src/root.js":function(e,t,r){e.exports=p;var o,s,i,n=r("./protobufjs/src/namespace.js");((p.prototype=Object.create(n.prototype)).constructor=p).className="Root";var u=r("./protobufjs/src/field.js"),f=r("./protobufjs/src/enum.js"),a=r("./protobufjs/src/oneof.js"),l=r("./protobufjs/src/util.js");function p(e){n.call(this,"",e),this.deferred=[],this.files=[],this._edition="proto2",this._fullyQualifiedObjects={}}function c(){}p.fromJSON=function(e,t){return t||(t=new p),e.options&&t.setOptions(e.options),t.addJSON(e.nested).resolveAll()},p.prototype.resolvePath=l.path.resolve,p.prototype.fetch=l.fetch,p.prototype.load=function e(t,r,o){"function"==typeof r&&(o=r,r=void 0);var n=this;if(!o)return l.asPromise(e,n,t,r);var u=o===c;function f(e,t){if(o){if(u)throw e;t&&t.resolveAll();var r=o;o=null,r(e,t)}}function a(e){var t=e.lastIndexOf("google/protobuf/");if(t>-1){var r=e.substring(t);if(r in i)return r}return null}function p(e,t){try{if(l.isString(t)&&"{"===t.charAt(0)&&(t=JSON.parse(t)),l.isString(t)){s.filename=e;var o,i=s(t,n,r),p=0;if(i.imports)for(;p-1)){if(n.files.push(e),e in i)return void(u?p(e,i[e]):(++d,setTimeout(function(){--d,p(e,i[e])})));if(u){var r;try{r=l.fs.readFileSync(e).toString("utf8")}catch(e){t||f(e);return}p(e,r)}else++d,n.fetch(e,function(r,s){if(--d,o){if(r)return void(t?d||f(null,n):f(r));p(e,s)}})}}var d=0;l.isString(t)&&(t=[t]);for(var y,v=0;v-1&&this.deferred.splice(t,1)}}else if(e instanceof f)h.test(e.name)&&delete e.parent[e.name];else if(e instanceof n){for(var r=0;r{t._resolveFeaturesRecursive(e)})),this},u.prototype.add=function(e){if(this.get(e.name))throw Error("duplicate name '"+e.name+"' in "+this);return e instanceof s?(this.methods[e.name]=e,e.parent=this,f(this)):o.prototype.add.call(this,e)},u.prototype.remove=function(e){if(e instanceof s){if(this.methods[e.name]!==e)throw Error(e+" is not a member of "+this);return delete this.methods[e.name],e.parent=null,f(this)}return o.prototype.remove.call(this,e)},u.prototype.create=function(e,t,r){for(var o,s=new n.Service(e,t,r),u=0;u]/g,r=/(?:"([^"\\]*(?:\\.[^"\\]*)*)")/g,o=/(?:'([^'\\]*(?:\\.[^'\\]*)*)')/g,s=/^ *[*/]+ */,i=/^\s*\*?\/*/,n=/\n/g,u=/\s/,f=/\\(.?)/g,a={0:"\0",r:"\r",n:"\n",t:" "};function l(e){return e.replace(f,function(e,t){switch(t){case"\\":case"":return t;default:return a[t]||""}})}function p(e,f){e=e.toString();var a=0,p=e.length,c=1,h=0,d={},y=[],v=null;function m(e){return Error("illegal "+e+" (line "+c+")")}function b(){var t="'"===v?o:r;t.lastIndex=a-1;var s=t.exec(e);if(!s)throw m("string");return a=t.lastIndex,k(v),v=null,l(s[1])}function j(t){return e.charAt(t)}function g(t,r,o){var u,a={type:e.charAt(t++),lineEmpty:!1,leading:o},l=t-(f?2:3);do if(--l<0||"\n"===(u=e.charAt(l))){a.lineEmpty=!0;break}while(" "===u||" "===u);for(var p=e.substring(t,r).split(n),y=0;y0)return y.shift();if(v)return b();var r,o,s,i,n,l=0===a;do{if(a===p)return null;for(r=!1;u.test(s=j(a));)if("\n"===s&&(l=!0,++c),++a===p)return null;if("/"===j(a)){if(++a===p)throw m("comment");if("/"===j(a))if(f){if(i=a,n=!1,w(a-1)){n=!0;do if((a=O(a))===p||(a++,!l))break;while(w(a))}else a=Math.min(p,O(a)+1);n&&(g(i,a,l),l=!0),c++,r=!0}else{for(n="/"===j(i=a+1);"\n"!==j(++a);)if(a===p)return null;++a,n&&(g(i,a-1,l),l=!0),++c,r=!0}else{if("*"!==(s=j(a)))return"/";i=a+1,n=f||"*"===j(i);do{if("\n"===s&&++c,++a===p)throw m("comment");o=s,s=j(a)}while("*"!==o||"/"!==s);++a,n&&(g(i,a-2,l),l=!0),r=!0}}}while(r);var h=a;if(t.lastIndex=0,!t.test(j(h++)))for(;h{t._resolveFeatures(e)}),this.fieldsArray.forEach(t=>{t._resolveFeatures(e)})),this},b.prototype.get=function(e){return this.fields[e]||this.oneofs&&this.oneofs[e]||this.nested&&this.nested[e]||null},b.prototype.add=function(e){if(this.get(e.name))throw Error("duplicate name '"+e.name+"' in "+this);if(e instanceof n&&void 0===e.extend){if(this._fieldsById?this._fieldsById[e.id]:this.fieldsById[e.id])throw Error("duplicate id "+e.id+" in "+this);if(this.isReservedId(e.id))throw Error("id "+e.id+" is reserved in "+this);if(this.isReservedName(e.name))throw Error("name '"+e.name+"' is reserved in "+this);return e.parent&&e.parent.remove(e),this.fields[e.name]=e,e.message=this,e.onAdd(this),j(this)}return e instanceof i?(this.oneofs||(this.oneofs={}),this.oneofs[e.name]=e,e.onAdd(this),j(this)):o.prototype.add.call(this,e)},b.prototype.remove=function(e){if(e instanceof n&&void 0===e.extend){if(!this.fields||this.fields[e.name]!==e)throw Error(e+" is not a member of "+this);return delete this.fields[e.name],e.parent=null,e.onRemove(this),j(this)}if(e instanceof i){if(!this.oneofs||this.oneofs[e.name]!==e)throw Error(e+" is not a member of "+this);return delete this.oneofs[e.name],e.parent=null,e.onRemove(this),j(this)}return o.prototype.remove.call(this,e)},b.prototype.isReservedId=function(e){return o.isReservedId(this.reserved,e)},b.prototype.isReservedName=function(e){return o.isReservedName(this.reserved,e)},b.prototype.create=function(e){return new this.ctor(e)},b.prototype.setup=function(){for(var e=this.fullName,t=[],r=0;r0)e[i]=s(e[i]||{},t,r);else{var n=e[i];if(n&&o)return e;n&&(r=[].concat(n).concat(r)),e[i]=r}return e}if("object"!=typeof e)throw TypeError("dst must be an object");if(!t)throw TypeError("path must be specified");return s(e,t=t.split("."),r)},Object.defineProperty(i,"decorateRoot",{get:function(){return n.decorated||(n.decorated=new(r("./protobufjs/src/root.js")))}})},"./protobufjs/src/util/longbits.js":function(e,t,r){e.exports=s;var o=r("./protobufjs/src/util/minimal.js");function s(e,t){this.lo=e>>>0,this.hi=t>>>0}var i=s.zero=new s(0,0);i.toNumber=function(){return 0},i.zzEncode=i.zzDecode=function(){return this},i.length=function(){return 1};var n=s.zeroHash="\0\0\0\0\0\0\0\0";s.fromNumber=function(e){if(0===e)return i;var t=e<0;t&&(e=-e);var r=e>>>0,o=(e-r)/0x100000000>>>0;return t&&(o=~o>>>0,r=~r>>>0,++r>0xffffffff&&(r=0,++o>0xffffffff&&(o=0))),new s(r,o)},s.from=function(e){if("number"==typeof e)return s.fromNumber(e);if(o.isString(e))if(!o.Long)return s.fromNumber(parseInt(e,10));else e=o.Long.fromString(e);return e.low||e.high?new s(e.low>>>0,e.high>>>0):i},s.prototype.toNumber=function(e){if(!e&&this.hi>>>31){var t=~this.lo+1>>>0,r=~this.hi>>>0;return t||(r=r+1>>>0),-(t+0x100000000*r)}return this.lo+0x100000000*this.hi},s.prototype.toLong=function(e){return o.Long?new o.Long(0|this.lo,0|this.hi,!!e):{low:0|this.lo,high:0|this.hi,unsigned:!!e}};var u=String.prototype.charCodeAt;s.fromHash=function(e){return e===n?i:new s((u.call(e,0)|u.call(e,1)<<8|u.call(e,2)<<16|u.call(e,3)<<24)>>>0,(u.call(e,4)|u.call(e,5)<<8|u.call(e,6)<<16|u.call(e,7)<<24)>>>0)},s.prototype.toHash=function(){return String.fromCharCode(255&this.lo,this.lo>>>8&255,this.lo>>>16&255,this.lo>>>24,255&this.hi,this.hi>>>8&255,this.hi>>>16&255,this.hi>>>24)},s.prototype.zzEncode=function(){var e=this.hi>>31;return this.hi=((this.hi<<1|this.lo>>>31)^e)>>>0,this.lo=(this.lo<<1^e)>>>0,this},s.prototype.zzDecode=function(){var e=-(1&this.lo);return this.lo=((this.lo>>>1|this.hi<<31)^e)>>>0,this.hi=(this.hi>>>1^e)>>>0,this},s.prototype.length=function(){var e=this.lo,t=(this.lo>>>28|this.hi<<4)>>>0,r=this.hi>>>24;return 0===r?0===t?e<16384?e<128?1:2:e<2097152?3:4:t<16384?t<128?5:6:t<2097152?7:8:r<128?9:10}},"./protobufjs/src/util/minimal.js":function(e,t,r){var o=t;function s(e,t,r){for(var o=Object.keys(t),s=0;s0)},o.Buffer=function(){try{var e=o.inquire("buffer").Buffer;return e.prototype.utf8Write?e:null}catch(e){return null}}(),o._Buffer_from=null,o._Buffer_allocUnsafe=null,o.newBuffer=function(e){return"number"==typeof e?o.Buffer?o._Buffer_allocUnsafe(e):new o.Array(e):o.Buffer?o._Buffer_from(e):"undefined"==typeof Uint8Array?e:new Uint8Array(e)},o.Array="undefined"!=typeof Uint8Array?Uint8Array:Array,o.Long=o.global.dcodeIO&&o.global.dcodeIO.Long||o.global.Long||o.inquire("long"),o.key2Re=/^true|false|0|1$/,o.key32Re=/^-?(?:0|[1-9][0-9]*)$/,o.key64Re=/^(?:[\\x00-\\xff]{8}|-?(?:0|[1-9][0-9]*))$/,o.longToHash=function(e){return e?o.LongBits.from(e).toHash():o.LongBits.zeroHash},o.longFromHash=function(e,t){var r=o.LongBits.fromHash(e);return o.Long?o.Long.fromBits(r.lo,r.hi,t):r.toNumber(!!t)},o.merge=s,o.lcFirst=function(e){return e.charAt(0).toLowerCase()+e.substring(1)},o.newError=i,o.ProtocolError=i("ProtocolError"),o.oneOfGetter=function(e){for(var t={},r=0;r-1;--r)if(1===t[e[r]]&&void 0!==this[e[r]]&&null!==this[e[r]])return e[r]}},o.oneOfSetter=function(e){return function(t){for(var r=0;r127;)t[r++]=127&e|128,e>>>=7;t[r]=e}function y(e,t){this.len=e,this.next=void 0,this.val=t}function v(e,t,r){for(;e.hi;)t[r++]=127&e.lo|128,e.lo=(e.lo>>>7|e.hi<<25)>>>0,e.hi>>>=7;for(;e.lo>127;)t[r++]=127&e.lo|128,e.lo=e.lo>>>7;t[r++]=e.lo}function m(e,t,r){t[r]=255&e,t[r+1]=e>>>8&255,t[r+2]=e>>>16&255,t[r+3]=e>>>24}p.create=c(),p.alloc=function(e){return new s.Array(e)},s.Array!==Array&&(p.alloc=s.pool(p.alloc,s.Array.prototype.subarray)),p.prototype._push=function(e,t,r){return this.tail=this.tail.next=new f(e,t,r),this.len+=t,this},y.prototype=Object.create(f.prototype),y.prototype.fn=d,p.prototype.uint32=function(e){return this.len+=(this.tail=this.tail.next=new y((e>>>=0)<128?1:e<16384?2:e<2097152?3:e<0x10000000?4:5,e)).len,this},p.prototype.int32=function(e){return e<0?this._push(v,10,i.fromNumber(e)):this.uint32(e)},p.prototype.sint32=function(e){return this.uint32((e<<1^e>>31)>>>0)},p.prototype.uint64=function(e){var t=i.from(e);return this._push(v,t.length(),t)},p.prototype.int64=p.prototype.uint64,p.prototype.sint64=function(e){var t=i.from(e).zzEncode();return this._push(v,t.length(),t)},p.prototype.bool=function(e){return this._push(h,1,+!!e)},p.prototype.fixed32=function(e){return this._push(m,4,e>>>0)},p.prototype.sfixed32=p.prototype.fixed32,p.prototype.fixed64=function(e){var t=i.from(e);return this._push(m,4,t.lo)._push(m,4,t.hi)},p.prototype.sfixed64=p.prototype.fixed64,p.prototype.float=function(e){return this._push(s.float.writeFloatLE,4,e)},p.prototype.double=function(e){return this._push(s.float.writeDoubleLE,8,e)};var b=s.Array.prototype.set?function(e,t,r){t.set(e,r)}:function(e,t,r){for(var o=0;o>>0;if(!t)return this._push(h,1,0);if(s.isString(e)){var r=p.alloc(t=n.length(e));n.decode(e,r,0),e=r}return this.uint32(t)._push(b,t,e)},p.prototype.string=function(e){var t=u.length(e);return t?this.uint32(t)._push(u.write,t,e):this._push(h,1,0)},p.prototype.fork=function(){return this.states=new l(this),this.head=this.tail=new f(a,0,0),this.len=0,this},p.prototype.reset=function(){return this.states?(this.head=this.states.head,this.tail=this.states.tail,this.len=this.states.len,this.states=this.states.next):(this.head=this.tail=new f(a,0,0),this.len=0),this},p.prototype.ldelim=function(){var e=this.head,t=this.tail,r=this.len;return this.reset().uint32(r),r&&(this.tail.next=e.next,this.tail=t,this.len+=r),this},p.prototype.finish=function(){for(var e=this.head.next,t=this.constructor.alloc(this.len),r=0;e;)e.fn(e.val,t,r),r+=e.len,e=e.next;return t},p._configure=function(e){o=e,p.create=c(),o._configure()}},"./protobufjs/src/writer_buffer.js":function(e,t,r){e.exports=i;var o=r("./protobufjs/src/writer.js");(i.prototype=Object.create(o.prototype)).constructor=i;var s=r("./protobufjs/src/util/minimal.js");function i(){o.call(this)}function n(e,t,r){e.length<40?s.utf8.write(e,t,r):t.utf8Write?t.utf8Write(e,r):t.write(e,r)}i._configure=function(){i.alloc=s._Buffer_allocUnsafe,i.writeBytesBuffer=s.Buffer&&s.Buffer.prototype instanceof Uint8Array&&"set"===s.Buffer.prototype.set.name?function(e,t,r){t.set(e,r)}:function(e,t,r){if(e.copy)e.copy(t,r,0,e.length);else for(var o=0;o>>0;return this.uint32(t),t&&this._push(i.writeBytesBuffer,t,e),this},i.prototype.string=function(e){var t=s.Buffer.byteLength(e);return this.uint32(t),t&&this._push(n,t,e),this},i._configure()}},__webpack_module_cache__={};function __webpack_require__(e){var t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;var r=__webpack_module_cache__[e]={exports:{}};return __webpack_modules__[e].call(r.exports,r,r.exports,__webpack_require__),r.exports}var __webpack_exports__=__webpack_require__("./protobufjs/index.js");module.exports=__webpack_exports__})(); \ No newline at end of file diff --git a/packages/node_modules/protobufjs/minimal/index.js b/packages/node_modules/protobufjs/minimal/index.js index 9481440e674..f59a69ec946 100644 --- a/packages/node_modules/protobufjs/minimal/index.js +++ b/packages/node_modules/protobufjs/minimal/index.js @@ -1 +1 @@ -(()=>{"use strict";var __webpack_modules__={488:function(t){t.exports=r;function r(t,r){for(var e=Array(arguments.length-1),n=0,i=2,o=!0;i1&&"="===t.charAt(r);)++e;return Math.ceil(3*t.length)/4-e};for(var n=Array(64),i=Array(123),o=0;o<64;)i[n[o]=o<26?o+65:o<52?o+71:o<62?o-4:o-59|43]=o++;e.encode=function(t,r,e){for(var i,o=null,s=[],u=0,f=0;r>2],i=(3&h)<<4,f=1;break;case 1:s[u++]=n[i|h>>4],i=(15&h)<<2,f=2;break;case 2:s[u++]=n[i|h>>6],s[u++]=n[63&h],f=0}u>8191&&((o||(o=[])).push(String.fromCharCode.apply(String,s)),u=0)}return(f&&(s[u++]=n[i],s[u++]=61,1===f&&(s[u++]=61)),o)?(u&&o.push(String.fromCharCode.apply(String,s.slice(0,u))),o.join("")):String.fromCharCode.apply(String,s.slice(0,u))};var s="invalid encoding";e.decode=function(t,r,e){for(var n,o=e,u=0,f=0;f1)break;if(void 0===(h=i[h]))throw Error(s);switch(u){case 0:n=h,u=1;break;case 1:r[e++]=n<<2|(48&h)>>4,n=h,u=2;break;case 2:r[e++]=(15&n)<<4|(60&h)>>2,n=h,u=3;break;case 3:r[e++]=(3&n)<<6|h,u=0}}if(1===u)throw Error(s);return e-o},e.test=function(t){return/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(t)}},3453:function(t){function r(){this._listeners={}}t.exports=r,r.prototype.on=function(t,r,e){return(this._listeners[t]||(this._listeners[t]=[])).push({fn:r,ctx:e||this}),this},r.prototype.off=function(t,r){if(void 0===t)this._listeners={};else if(void 0===r)this._listeners[t]=[];else for(var e=this._listeners[t],n=0;n0?0:0x80000000,e,n);else if(isNaN(r))t(0x7fc00000,e,n);else if(r>34028234663852886e22)t((i<<31|0x7f800000)>>>0,e,n);else if(r<11754943508222875e-54)t((i<<31|Math.round(r/1401298464324817e-60))>>>0,e,n);else{var o=Math.floor(Math.log(r)/Math.LN2),s=8388607&Math.round(r*Math.pow(2,-o)*8388608);t((i<<31|o+127<<23|s)>>>0,e,n)}}function s(t,r,e){var n=t(r,e),i=(n>>31)*2+1,o=n>>>23&255,s=8388607&n;return 255===o?s?NaN:1/0*i:0===o?1401298464324817e-60*i*s:i*Math.pow(2,o-150)*(s+8388608)}t.writeFloatLE=r.bind(null,e),t.writeFloatBE=r.bind(null,n),t.readFloatLE=s.bind(null,i),t.readFloatBE=s.bind(null,o)}(),"undefined"!=typeof Float64Array?!function(){var r=new Float64Array([-0]),e=new Uint8Array(r.buffer),n=128===e[7];function i(t,n,i){r[0]=t,n[i]=e[0],n[i+1]=e[1],n[i+2]=e[2],n[i+3]=e[3],n[i+4]=e[4],n[i+5]=e[5],n[i+6]=e[6],n[i+7]=e[7]}function o(t,n,i){r[0]=t,n[i]=e[7],n[i+1]=e[6],n[i+2]=e[5],n[i+3]=e[4],n[i+4]=e[3],n[i+5]=e[2],n[i+6]=e[1],n[i+7]=e[0]}function s(t,n){return e[0]=t[n],e[1]=t[n+1],e[2]=t[n+2],e[3]=t[n+3],e[4]=t[n+4],e[5]=t[n+5],e[6]=t[n+6],e[7]=t[n+7],r[0]}function u(t,n){return e[7]=t[n],e[6]=t[n+1],e[5]=t[n+2],e[4]=t[n+3],e[3]=t[n+4],e[2]=t[n+5],e[1]=t[n+6],e[0]=t[n+7],r[0]}t.writeDoubleLE=n?i:o,t.writeDoubleBE=n?o:i,t.readDoubleLE=n?s:u,t.readDoubleBE=n?u:s}():!function(){function r(t,r,e,n,i,o){var s,u=+(n<0);if(u&&(n=-n),0===n)t(0,i,o+r),t(1/n>0?0:0x80000000,i,o+e);else if(isNaN(n))t(0,i,o+r),t(0x7ff80000,i,o+e);else if(n>17976931348623157e292)t(0,i,o+r),t((u<<31|0x7ff00000)>>>0,i,o+e);else if(n<22250738585072014e-324)t((s=n/5e-324)>>>0,i,o+r),t((u<<31|s/0x100000000)>>>0,i,o+e);else{var f=Math.floor(Math.log(n)/Math.LN2);1024===f&&(f=1023),t(0x10000000000000*(s=n*Math.pow(2,-f))>>>0,i,o+r),t((u<<31|f+1023<<20|1048576*s&1048575)>>>0,i,o+e)}}function s(t,r,e,n,i){var o=t(n,i+r),s=t(n,i+e),u=(s>>31)*2+1,f=s>>>20&2047,h=0x100000000*(1048575&s)+o;return 2047===f?h?NaN:1/0*u:0===f?5e-324*u*h:u*Math.pow(2,f-1075)*(h+0x10000000000000)}t.writeDoubleLE=r.bind(null,e,0,4),t.writeDoubleBE=r.bind(null,n,4,0),t.readDoubleLE=s.bind(null,i,0,4),t.readDoubleBE=s.bind(null,o,4,0)}(),t}function e(t,r,e){r[e]=255&t,r[e+1]=t>>>8&255,r[e+2]=t>>>16&255,r[e+3]=t>>>24}function n(t,r,e){r[e]=t>>>24,r[e+1]=t>>>16&255,r[e+2]=t>>>8&255,r[e+3]=255&t}function i(t,r){return(t[r]|t[r+1]<<8|t[r+2]<<16|t[r+3]<<24)>>>0}function o(t,r){return(t[r]<<24|t[r+1]<<16|t[r+2]<<8|t[r+3])>>>0}t.exports=r(r)},1952:function(module){module.exports=inquire;function inquire(moduleName){try{var mod=eval("quire".replace(/^/,"re"))(moduleName);if(mod&&(mod.length||Object.keys(mod).length))return mod}catch(e){}return null}},3829:function(t){t.exports=r;function r(t,r,e){var n=e||8192,i=n>>>1,o=null,s=n;return function(e){if(e<1||e>i)return t(e);s+e>n&&(o=t(n),s=0);var u=r.call(o,s,s+=e);return 7&s&&(s=(7|s)+1),u}}},7800:function(t,r){var e=r;e.length=function(t){for(var r=0,e=0,n=0;n191&&n<224?o[s++]=(31&n)<<6|63&t[r++]:n>239&&n<365?(n=((7&n)<<18|(63&t[r++])<<12|(63&t[r++])<<6|63&t[r++])-65536,o[s++]=55296+(n>>10),o[s++]=56320+(1023&n)):o[s++]=(15&n)<<12|(63&t[r++])<<6|63&t[r++],s>8191&&((i||(i=[])).push(String.fromCharCode.apply(String,o)),s=0);return i?(s&&i.push(String.fromCharCode.apply(String,o.slice(0,s))),i.join("")):String.fromCharCode.apply(String,o.slice(0,s))},e.write=function(t,r,e){for(var n,i,o=e,s=0;s>6|192:((64512&n)==55296&&(64512&(i=t.charCodeAt(s+1)))==56320?(n=65536+((1023&n)<<10)+(1023&i),++s,r[e++]=n>>18|240,r[e++]=n>>12&63|128):r[e++]=n>>12|224,r[e++]=n>>6&63|128),r[e++]=63&n|128);return e-o}},1873:function(t,r,e){t.exports=e(233)},233:function(t,r,e){var n=r;function i(){n.util._configure(),n.Writer._configure(n.BufferWriter),n.Reader._configure(n.BufferReader)}n.build="minimal",n.Writer=e(8332),n.BufferWriter=e(1405),n.Reader=e(624),n.BufferReader=e(753),n.util=e(6339),n.rpc=e(7168),n.roots=e(9818),n.configure=i,i()},624:function(t,r,e){t.exports=f;var n,i=e(6339),o=i.LongBits,s=i.utf8;function u(t,r){return RangeError("index out of range: "+t.pos+" + "+(r||1)+" > "+t.len)}function f(t){this.buf=t,this.pos=0,this.len=t.length}var h="undefined"!=typeof Uint8Array?function(t){if(t instanceof Uint8Array||Array.isArray(t))return new f(t);throw Error("illegal buffer")}:function(t){if(Array.isArray(t))return new f(t);throw Error("illegal buffer")},l=function(){return i.Buffer?function(t){return(f.create=function(t){return i.Buffer.isBuffer(t)?new n(t):h(t)})(t)}:h};function a(){var t=new o(0,0),r=0;if(this.len-this.pos>4){for(;r<4;++r)if(t.lo=(t.lo|(127&this.buf[this.pos])<<7*r)>>>0,this.buf[this.pos++]<128)return t;if(t.lo=(t.lo|(127&this.buf[this.pos])<<28)>>>0,t.hi=(t.hi|(127&this.buf[this.pos])>>4)>>>0,this.buf[this.pos++]<128)return t;r=0}else{for(;r<3;++r){if(this.pos>=this.len)throw u(this);if(t.lo=(t.lo|(127&this.buf[this.pos])<<7*r)>>>0,this.buf[this.pos++]<128)return t}return t.lo=(t.lo|(127&this.buf[this.pos++])<<7*r)>>>0,t}if(this.len-this.pos>4){for(;r<5;++r)if(t.hi=(t.hi|(127&this.buf[this.pos])<<7*r+3)>>>0,this.buf[this.pos++]<128)return t}else for(;r<5;++r){if(this.pos>=this.len)throw u(this);if(t.hi=(t.hi|(127&this.buf[this.pos])<<7*r+3)>>>0,this.buf[this.pos++]<128)return t}throw Error("invalid varint encoding")}function c(t,r){return(t[r-4]|t[r-3]<<8|t[r-2]<<16|t[r-1]<<24)>>>0}function p(){if(this.pos+8>this.len)throw u(this,8);return new o(c(this.buf,this.pos+=4),c(this.buf,this.pos+=4))}f.create=l(),f.prototype._slice=i.Array.prototype.subarray||i.Array.prototype.slice,f.prototype.uint32=function(){var t=0xffffffff;return function(){if(t=(127&this.buf[this.pos])>>>0,this.buf[this.pos++]<128||(t=(t|(127&this.buf[this.pos])<<7)>>>0,this.buf[this.pos++]<128)||(t=(t|(127&this.buf[this.pos])<<14)>>>0,this.buf[this.pos++]<128)||(t=(t|(127&this.buf[this.pos])<<21)>>>0,this.buf[this.pos++]<128)||(t=(t|(15&this.buf[this.pos])<<28)>>>0,this.buf[this.pos++]<128))return t;if((this.pos+=5)>this.len)throw this.pos=this.len,u(this,10);return t}}(),f.prototype.int32=function(){return 0|this.uint32()},f.prototype.sint32=function(){var t=this.uint32();return t>>>1^-(1&t)},f.prototype.bool=function(){return 0!==this.uint32()},f.prototype.fixed32=function(){if(this.pos+4>this.len)throw u(this,4);return c(this.buf,this.pos+=4)},f.prototype.sfixed32=function(){if(this.pos+4>this.len)throw u(this,4);return 0|c(this.buf,this.pos+=4)},f.prototype.float=function(){if(this.pos+4>this.len)throw u(this,4);var t=i.float.readFloatLE(this.buf,this.pos);return this.pos+=4,t},f.prototype.double=function(){if(this.pos+8>this.len)throw u(this,4);var t=i.float.readDoubleLE(this.buf,this.pos);return this.pos+=8,t},f.prototype.bytes=function(){var t=this.uint32(),r=this.pos,e=this.pos+t;if(e>this.len)throw u(this,t);if(this.pos+=t,Array.isArray(this.buf))return this.buf.slice(r,e);if(r===e){var n=i.Buffer;return n?n.alloc(0):new this.buf.constructor(0)}return this._slice.call(this.buf,r,e)},f.prototype.string=function(){var t=this.bytes();return s.read(t,0,t.length)},f.prototype.skip=function(t){if("number"==typeof t){if(this.pos+t>this.len)throw u(this,t);this.pos+=t}else do if(this.pos>=this.len)throw u(this);while(128&this.buf[this.pos++]);return this},f.prototype.skipType=function(t){switch(t){case 0:this.skip();break;case 1:this.skip(8);break;case 2:this.skip(this.uint32());break;case 3:for(;4!=(t=7&this.uint32());)this.skipType(t);break;case 5:this.skip(4);break;default:throw Error("invalid wire type "+t+" at offset "+this.pos)}return this},f._configure=function(t){n=t,f.create=l(),n._configure();var r=i.Long?"toLong":"toNumber";i.merge(f.prototype,{int64:function(){return a.call(this)[r](!1)},uint64:function(){return a.call(this)[r](!0)},sint64:function(){return a.call(this).zzDecode()[r](!1)},fixed64:function(){return p.call(this)[r](!0)},sfixed64:function(){return p.call(this)[r](!1)}})}},753:function(t,r,e){t.exports=o;var n=e(624);(o.prototype=Object.create(n.prototype)).constructor=o;var i=e(6339);function o(t){n.call(this,t)}o._configure=function(){i.Buffer&&(o.prototype._slice=i.Buffer.prototype.slice)},o.prototype.string=function(){var t=this.uint32();return this.buf.utf8Slice?this.buf.utf8Slice(this.pos,this.pos=Math.min(this.pos+t,this.len)):this.buf.toString("utf-8",this.pos,this.pos=Math.min(this.pos+t,this.len))},o._configure()},9818:function(t){t.exports={}},7168:function(t,r,e){r.Service=e(6252)},6252:function(t,r,e){t.exports=i;var n=e(6339);function i(t,r,e){if("function"!=typeof t)throw TypeError("rpcImpl must be a function");n.EventEmitter.call(this),this.rpcImpl=t,this.requestDelimited=!!r,this.responseDelimited=!!e}(i.prototype=Object.create(n.EventEmitter.prototype)).constructor=i,i.prototype.rpcCall=function t(r,e,i,o,s){if(!o)throw TypeError("request must be specified");var u=this;if(!s)return n.asPromise(t,u,r,e,i,o);if(!u.rpcImpl)return void setTimeout(function(){s(Error("already ended"))},0);try{return u.rpcImpl(r,e[u.requestDelimited?"encodeDelimited":"encode"](o).finish(),function(t,e){if(t)return u.emit("error",t,r),s(t);if(null===e)return void u.end(!0);if(!(e instanceof i))try{e=i[u.responseDelimited?"decodeDelimited":"decode"](e)}catch(t){return u.emit("error",t,r),s(t)}return u.emit("data",e,r),s(null,e)})}catch(t){u.emit("error",t,r),setTimeout(function(){s(t)},0);return}},i.prototype.end=function(t){return this.rpcImpl&&(t||this.rpcImpl(null,null,null),this.rpcImpl=null,this.emit("end").off()),this}},8920:function(t,r,e){t.exports=i;var n=e(6339);function i(t,r){this.lo=t>>>0,this.hi=r>>>0}var o=i.zero=new i(0,0);o.toNumber=function(){return 0},o.zzEncode=o.zzDecode=function(){return this},o.length=function(){return 1};var s=i.zeroHash="\0\0\0\0\0\0\0\0";i.fromNumber=function(t){if(0===t)return o;var r=t<0;r&&(t=-t);var e=t>>>0,n=(t-e)/0x100000000>>>0;return r&&(n=~n>>>0,e=~e>>>0,++e>0xffffffff&&(e=0,++n>0xffffffff&&(n=0))),new i(e,n)},i.from=function(t){if("number"==typeof t)return i.fromNumber(t);if(n.isString(t))if(!n.Long)return i.fromNumber(parseInt(t,10));else t=n.Long.fromString(t);return t.low||t.high?new i(t.low>>>0,t.high>>>0):o},i.prototype.toNumber=function(t){if(!t&&this.hi>>>31){var r=~this.lo+1>>>0,e=~this.hi>>>0;return r||(e=e+1>>>0),-(r+0x100000000*e)}return this.lo+0x100000000*this.hi},i.prototype.toLong=function(t){return n.Long?new n.Long(0|this.lo,0|this.hi,!!t):{low:0|this.lo,high:0|this.hi,unsigned:!!t}};var u=String.prototype.charCodeAt;i.fromHash=function(t){return t===s?o:new i((u.call(t,0)|u.call(t,1)<<8|u.call(t,2)<<16|u.call(t,3)<<24)>>>0,(u.call(t,4)|u.call(t,5)<<8|u.call(t,6)<<16|u.call(t,7)<<24)>>>0)},i.prototype.toHash=function(){return String.fromCharCode(255&this.lo,this.lo>>>8&255,this.lo>>>16&255,this.lo>>>24,255&this.hi,this.hi>>>8&255,this.hi>>>16&255,this.hi>>>24)},i.prototype.zzEncode=function(){var t=this.hi>>31;return this.hi=((this.hi<<1|this.lo>>>31)^t)>>>0,this.lo=(this.lo<<1^t)>>>0,this},i.prototype.zzDecode=function(){var t=-(1&this.lo);return this.lo=((this.lo>>>1|this.hi<<31)^t)>>>0,this.hi=(this.hi>>>1^t)>>>0,this},i.prototype.length=function(){var t=this.lo,r=(this.lo>>>28|this.hi<<4)>>>0,e=this.hi>>>24;return 0===e?0===r?t<16384?t<128?1:2:t<2097152?3:4:r<16384?r<128?5:6:r<2097152?7:8:e<128?9:10}},6339:function(t,r,e){var n=r;function i(t,r,e){for(var n=Object.keys(r),i=0;i0)},n.Buffer=function(){try{var t=n.inquire("buffer").Buffer;return t.prototype.utf8Write?t:null}catch(t){return null}}(),n._Buffer_from=null,n._Buffer_allocUnsafe=null,n.newBuffer=function(t){return"number"==typeof t?n.Buffer?n._Buffer_allocUnsafe(t):new n.Array(t):n.Buffer?n._Buffer_from(t):"undefined"==typeof Uint8Array?t:new Uint8Array(t)},n.Array="undefined"!=typeof Uint8Array?Uint8Array:Array,n.Long=n.global.dcodeIO&&n.global.dcodeIO.Long||n.global.Long||n.inquire("long"),n.key2Re=/^true|false|0|1$/,n.key32Re=/^-?(?:0|[1-9][0-9]*)$/,n.key64Re=/^(?:[\\x00-\\xff]{8}|-?(?:0|[1-9][0-9]*))$/,n.longToHash=function(t){return t?n.LongBits.from(t).toHash():n.LongBits.zeroHash},n.longFromHash=function(t,r){var e=n.LongBits.fromHash(t);return n.Long?n.Long.fromBits(e.lo,e.hi,r):e.toNumber(!!r)},n.merge=i,n.lcFirst=function(t){return t.charAt(0).toLowerCase()+t.substring(1)},n.newError=o,n.ProtocolError=o("ProtocolError"),n.oneOfGetter=function(t){for(var r={},e=0;e-1;--e)if(1===r[t[e]]&&void 0!==this[t[e]]&&null!==this[t[e]])return t[e]}},n.oneOfSetter=function(t){return function(r){for(var e=0;e127;)r[e++]=127&t|128,t>>>=7;r[e]=t}function d(t,r){this.len=t,this.next=void 0,this.val=r}function b(t,r,e){for(;t.hi;)r[e++]=127&t.lo|128,t.lo=(t.lo>>>7|t.hi<<25)>>>0,t.hi>>>=7;for(;t.lo>127;)r[e++]=127&t.lo|128,t.lo=t.lo>>>7;r[e++]=t.lo}function g(t,r,e){r[e]=255&t,r[e+1]=t>>>8&255,r[e+2]=t>>>16&255,r[e+3]=t>>>24}a.create=c(),a.alloc=function(t){return new i.Array(t)},i.Array!==Array&&(a.alloc=i.pool(a.alloc,i.Array.prototype.subarray)),a.prototype._push=function(t,r,e){return this.tail=this.tail.next=new f(t,r,e),this.len+=r,this},d.prototype=Object.create(f.prototype),d.prototype.fn=y,a.prototype.uint32=function(t){return this.len+=(this.tail=this.tail.next=new d((t>>>=0)<128?1:t<16384?2:t<2097152?3:t<0x10000000?4:5,t)).len,this},a.prototype.int32=function(t){return t<0?this._push(b,10,o.fromNumber(t)):this.uint32(t)},a.prototype.sint32=function(t){return this.uint32((t<<1^t>>31)>>>0)},a.prototype.uint64=function(t){var r=o.from(t);return this._push(b,r.length(),r)},a.prototype.int64=a.prototype.uint64,a.prototype.sint64=function(t){var r=o.from(t).zzEncode();return this._push(b,r.length(),r)},a.prototype.bool=function(t){return this._push(p,1,+!!t)},a.prototype.fixed32=function(t){return this._push(g,4,t>>>0)},a.prototype.sfixed32=a.prototype.fixed32,a.prototype.fixed64=function(t){var r=o.from(t);return this._push(g,4,r.lo)._push(g,4,r.hi)},a.prototype.sfixed64=a.prototype.fixed64,a.prototype.float=function(t){return this._push(i.float.writeFloatLE,4,t)},a.prototype.double=function(t){return this._push(i.float.writeDoubleLE,8,t)};var v=i.Array.prototype.set?function(t,r,e){r.set(t,e)}:function(t,r,e){for(var n=0;n>>0;if(!r)return this._push(p,1,0);if(i.isString(t)){var e=a.alloc(r=s.length(t));s.decode(t,e,0),t=e}return this.uint32(r)._push(v,r,t)},a.prototype.string=function(t){var r=u.length(t);return r?this.uint32(r)._push(u.write,r,t):this._push(p,1,0)},a.prototype.fork=function(){return this.states=new l(this),this.head=this.tail=new f(h,0,0),this.len=0,this},a.prototype.reset=function(){return this.states?(this.head=this.states.head,this.tail=this.states.tail,this.len=this.states.len,this.states=this.states.next):(this.head=this.tail=new f(h,0,0),this.len=0),this},a.prototype.ldelim=function(){var t=this.head,r=this.tail,e=this.len;return this.reset().uint32(e),e&&(this.tail.next=t.next,this.tail=r,this.len+=e),this},a.prototype.finish=function(){for(var t=this.head.next,r=this.constructor.alloc(this.len),e=0;t;)t.fn(t.val,r,e),e+=t.len,t=t.next;return r},a._configure=function(t){n=t,a.create=c(),n._configure()}},1405:function(t,r,e){t.exports=o;var n=e(8332);(o.prototype=Object.create(n.prototype)).constructor=o;var i=e(6339);function o(){n.call(this)}function s(t,r,e){t.length<40?i.utf8.write(t,r,e):r.utf8Write?r.utf8Write(t,e):r.write(t,e)}o._configure=function(){o.alloc=i._Buffer_allocUnsafe,o.writeBytesBuffer=i.Buffer&&i.Buffer.prototype instanceof Uint8Array&&"set"===i.Buffer.prototype.set.name?function(t,r,e){r.set(t,e)}:function(t,r,e){if(t.copy)t.copy(r,e,0,t.length);else for(var n=0;n>>0;return this.uint32(r),r&&this._push(o.writeBytesBuffer,r,t),this},o.prototype.string=function(t){var r=i.Buffer.byteLength(t);return this.uint32(r),r&&this._push(s,r,t),this},o._configure()}},__webpack_module_cache__={};function __webpack_require__(t){var r=__webpack_module_cache__[t];if(void 0!==r)return r.exports;var e=__webpack_module_cache__[t]={exports:{}};return __webpack_modules__[t].call(e.exports,e,e.exports,__webpack_require__),e.exports}var __webpack_exports__=__webpack_require__(1873);module.exports=__webpack_exports__})(); \ No newline at end of file +(()=>{"use strict";var __webpack_modules__={"./@protobufjs/aspromise/index.js":function(t){t.exports=r;function r(t,r){for(var e=Array(arguments.length-1),i=0,n=2,o=!0;n1&&"="===t.charAt(r);)++e;return Math.ceil(3*t.length)/4-e};for(var i=Array(64),n=Array(123),o=0;o<64;)n[i[o]=o<26?o+65:o<52?o+71:o<62?o-4:o-59|43]=o++;e.encode=function(t,r,e){for(var n,o=null,s=[],u=0,f=0;r>2],n=(3&h)<<4,f=1;break;case 1:s[u++]=i[n|h>>4],n=(15&h)<<2,f=2;break;case 2:s[u++]=i[n|h>>6],s[u++]=i[63&h],f=0}u>8191&&((o||(o=[])).push(String.fromCharCode.apply(String,s)),u=0)}return(f&&(s[u++]=i[n],s[u++]=61,1===f&&(s[u++]=61)),o)?(u&&o.push(String.fromCharCode.apply(String,s.slice(0,u))),o.join("")):String.fromCharCode.apply(String,s.slice(0,u))};var s="invalid encoding";e.decode=function(t,r,e){for(var i,o=e,u=0,f=0;f1)break;if(void 0===(h=n[h]))throw Error(s);switch(u){case 0:i=h,u=1;break;case 1:r[e++]=i<<2|(48&h)>>4,i=h,u=2;break;case 2:r[e++]=(15&i)<<4|(60&h)>>2,i=h,u=3;break;case 3:r[e++]=(3&i)<<6|h,u=0}}if(1===u)throw Error(s);return e-o},e.test=function(t){return/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(t)}},"./@protobufjs/eventemitter/index.js":function(t){function r(){this._listeners={}}t.exports=r,r.prototype.on=function(t,r,e){return(this._listeners[t]||(this._listeners[t]=[])).push({fn:r,ctx:e||this}),this},r.prototype.off=function(t,r){if(void 0===t)this._listeners={};else if(void 0===r)this._listeners[t]=[];else for(var e=this._listeners[t],i=0;i0?0:0x80000000,e,i);else if(isNaN(r))t(0x7fc00000,e,i);else if(r>34028234663852886e22)t((n<<31|0x7f800000)>>>0,e,i);else if(r<11754943508222875e-54)t((n<<31|Math.round(r/1401298464324817e-60))>>>0,e,i);else{var o=Math.floor(Math.log(r)/Math.LN2),s=8388607&Math.round(r*Math.pow(2,-o)*8388608);t((n<<31|o+127<<23|s)>>>0,e,i)}}function s(t,r,e){var i=t(r,e),n=(i>>31)*2+1,o=i>>>23&255,s=8388607&i;return 255===o?s?NaN:1/0*n:0===o?1401298464324817e-60*n*s:n*Math.pow(2,o-150)*(s+8388608)}t.writeFloatLE=r.bind(null,e),t.writeFloatBE=r.bind(null,i),t.readFloatLE=s.bind(null,n),t.readFloatBE=s.bind(null,o)}(),"undefined"!=typeof Float64Array?!function(){var r=new Float64Array([-0]),e=new Uint8Array(r.buffer),i=128===e[7];function n(t,i,n){r[0]=t,i[n]=e[0],i[n+1]=e[1],i[n+2]=e[2],i[n+3]=e[3],i[n+4]=e[4],i[n+5]=e[5],i[n+6]=e[6],i[n+7]=e[7]}function o(t,i,n){r[0]=t,i[n]=e[7],i[n+1]=e[6],i[n+2]=e[5],i[n+3]=e[4],i[n+4]=e[3],i[n+5]=e[2],i[n+6]=e[1],i[n+7]=e[0]}function s(t,i){return e[0]=t[i],e[1]=t[i+1],e[2]=t[i+2],e[3]=t[i+3],e[4]=t[i+4],e[5]=t[i+5],e[6]=t[i+6],e[7]=t[i+7],r[0]}function u(t,i){return e[7]=t[i],e[6]=t[i+1],e[5]=t[i+2],e[4]=t[i+3],e[3]=t[i+4],e[2]=t[i+5],e[1]=t[i+6],e[0]=t[i+7],r[0]}t.writeDoubleLE=i?n:o,t.writeDoubleBE=i?o:n,t.readDoubleLE=i?s:u,t.readDoubleBE=i?u:s}():!function(){function r(t,r,e,i,n,o){var s,u=+(i<0);if(u&&(i=-i),0===i)t(0,n,o+r),t(1/i>0?0:0x80000000,n,o+e);else if(isNaN(i))t(0,n,o+r),t(0x7ff80000,n,o+e);else if(i>17976931348623157e292)t(0,n,o+r),t((u<<31|0x7ff00000)>>>0,n,o+e);else if(i<22250738585072014e-324)t((s=i/5e-324)>>>0,n,o+r),t((u<<31|s/0x100000000)>>>0,n,o+e);else{var f=Math.floor(Math.log(i)/Math.LN2);1024===f&&(f=1023),t(0x10000000000000*(s=i*Math.pow(2,-f))>>>0,n,o+r),t((u<<31|f+1023<<20|1048576*s&1048575)>>>0,n,o+e)}}function s(t,r,e,i,n){var o=t(i,n+r),s=t(i,n+e),u=(s>>31)*2+1,f=s>>>20&2047,h=0x100000000*(1048575&s)+o;return 2047===f?h?NaN:1/0*u:0===f?5e-324*u*h:u*Math.pow(2,f-1075)*(h+0x10000000000000)}t.writeDoubleLE=r.bind(null,e,0,4),t.writeDoubleBE=r.bind(null,i,4,0),t.readDoubleLE=s.bind(null,n,0,4),t.readDoubleBE=s.bind(null,o,4,0)}(),t}function e(t,r,e){r[e]=255&t,r[e+1]=t>>>8&255,r[e+2]=t>>>16&255,r[e+3]=t>>>24}function i(t,r,e){r[e]=t>>>24,r[e+1]=t>>>16&255,r[e+2]=t>>>8&255,r[e+3]=255&t}function n(t,r){return(t[r]|t[r+1]<<8|t[r+2]<<16|t[r+3]<<24)>>>0}function o(t,r){return(t[r]<<24|t[r+1]<<16|t[r+2]<<8|t[r+3])>>>0}t.exports=r(r)},"./@protobufjs/inquire/index.js":function(module){module.exports=inquire;function inquire(moduleName){try{var mod=eval("quire".replace(/^/,"re"))(moduleName);if(mod&&(mod.length||Object.keys(mod).length))return mod}catch(e){}return null}},"./@protobufjs/pool/index.js":function(t){t.exports=r;function r(t,r,e){var i=e||8192,n=i>>>1,o=null,s=i;return function(e){if(e<1||e>n)return t(e);s+e>i&&(o=t(i),s=0);var u=r.call(o,s,s+=e);return 7&s&&(s=(7|s)+1),u}}},"./@protobufjs/utf8/index.js":function(t,r){var e=r;e.length=function(t){for(var r=0,e=0,i=0;i191&&i<224?o[s++]=(31&i)<<6|63&t[r++]:i>239&&i<365?(i=((7&i)<<18|(63&t[r++])<<12|(63&t[r++])<<6|63&t[r++])-65536,o[s++]=55296+(i>>10),o[s++]=56320+(1023&i)):o[s++]=(15&i)<<12|(63&t[r++])<<6|63&t[r++],s>8191&&((n||(n=[])).push(String.fromCharCode.apply(String,o)),s=0);return n?(s&&n.push(String.fromCharCode.apply(String,o.slice(0,s))),n.join("")):String.fromCharCode.apply(String,o.slice(0,s))},e.write=function(t,r,e){for(var i,n,o=e,s=0;s>6|192:((64512&i)==55296&&(64512&(n=t.charCodeAt(s+1)))==56320?(i=65536+((1023&i)<<10)+(1023&n),++s,r[e++]=i>>18|240,r[e++]=i>>12&63|128):r[e++]=i>>12|224,r[e++]=i>>6&63|128),r[e++]=63&i|128);return e-o}},"./protobufjs/minimal.js":function(t,r,e){t.exports=e("./protobufjs/src/index-minimal.js")},"./protobufjs/src/index-minimal.js":function(t,r,e){var i=r;function n(){i.util._configure(),i.Writer._configure(i.BufferWriter),i.Reader._configure(i.BufferReader)}i.build="minimal",i.Writer=e("./protobufjs/src/writer.js"),i.BufferWriter=e("./protobufjs/src/writer_buffer.js"),i.Reader=e("./protobufjs/src/reader.js"),i.BufferReader=e("./protobufjs/src/reader_buffer.js"),i.util=e("./protobufjs/src/util/minimal.js"),i.rpc=e("./protobufjs/src/rpc.js"),i.roots=e("./protobufjs/src/roots.js"),i.configure=n,n()},"./protobufjs/src/reader.js":function(t,r,e){t.exports=f;var i,n=e("./protobufjs/src/util/minimal.js"),o=n.LongBits,s=n.utf8;function u(t,r){return RangeError("index out of range: "+t.pos+" + "+(r||1)+" > "+t.len)}function f(t){this.buf=t,this.pos=0,this.len=t.length}var h="undefined"!=typeof Uint8Array?function(t){if(t instanceof Uint8Array||Array.isArray(t))return new f(t);throw Error("illegal buffer")}:function(t){if(Array.isArray(t))return new f(t);throw Error("illegal buffer")},l=function(){return n.Buffer?function(t){return(f.create=function(t){return n.Buffer.isBuffer(t)?new i(t):h(t)})(t)}:h};function a(){var t=new o(0,0),r=0;if(this.len-this.pos>4){for(;r<4;++r)if(t.lo=(t.lo|(127&this.buf[this.pos])<<7*r)>>>0,this.buf[this.pos++]<128)return t;if(t.lo=(t.lo|(127&this.buf[this.pos])<<28)>>>0,t.hi=(t.hi|(127&this.buf[this.pos])>>4)>>>0,this.buf[this.pos++]<128)return t;r=0}else{for(;r<3;++r){if(this.pos>=this.len)throw u(this);if(t.lo=(t.lo|(127&this.buf[this.pos])<<7*r)>>>0,this.buf[this.pos++]<128)return t}return t.lo=(t.lo|(127&this.buf[this.pos++])<<7*r)>>>0,t}if(this.len-this.pos>4){for(;r<5;++r)if(t.hi=(t.hi|(127&this.buf[this.pos])<<7*r+3)>>>0,this.buf[this.pos++]<128)return t}else for(;r<5;++r){if(this.pos>=this.len)throw u(this);if(t.hi=(t.hi|(127&this.buf[this.pos])<<7*r+3)>>>0,this.buf[this.pos++]<128)return t}throw Error("invalid varint encoding")}function c(t,r){return(t[r-4]|t[r-3]<<8|t[r-2]<<16|t[r-1]<<24)>>>0}function p(){if(this.pos+8>this.len)throw u(this,8);return new o(c(this.buf,this.pos+=4),c(this.buf,this.pos+=4))}f.create=l(),f.prototype._slice=n.Array.prototype.subarray||n.Array.prototype.slice,f.prototype.uint32=function(){var t=0xffffffff;return function(){if(t=(127&this.buf[this.pos])>>>0,this.buf[this.pos++]<128||(t=(t|(127&this.buf[this.pos])<<7)>>>0,this.buf[this.pos++]<128)||(t=(t|(127&this.buf[this.pos])<<14)>>>0,this.buf[this.pos++]<128)||(t=(t|(127&this.buf[this.pos])<<21)>>>0,this.buf[this.pos++]<128)||(t=(t|(15&this.buf[this.pos])<<28)>>>0,this.buf[this.pos++]<128))return t;if((this.pos+=5)>this.len)throw this.pos=this.len,u(this,10);return t}}(),f.prototype.int32=function(){return 0|this.uint32()},f.prototype.sint32=function(){var t=this.uint32();return t>>>1^-(1&t)},f.prototype.bool=function(){return 0!==this.uint32()},f.prototype.fixed32=function(){if(this.pos+4>this.len)throw u(this,4);return c(this.buf,this.pos+=4)},f.prototype.sfixed32=function(){if(this.pos+4>this.len)throw u(this,4);return 0|c(this.buf,this.pos+=4)},f.prototype.float=function(){if(this.pos+4>this.len)throw u(this,4);var t=n.float.readFloatLE(this.buf,this.pos);return this.pos+=4,t},f.prototype.double=function(){if(this.pos+8>this.len)throw u(this,4);var t=n.float.readDoubleLE(this.buf,this.pos);return this.pos+=8,t},f.prototype.bytes=function(){var t=this.uint32(),r=this.pos,e=this.pos+t;if(e>this.len)throw u(this,t);if(this.pos+=t,Array.isArray(this.buf))return this.buf.slice(r,e);if(r===e){var i=n.Buffer;return i?i.alloc(0):new this.buf.constructor(0)}return this._slice.call(this.buf,r,e)},f.prototype.string=function(){var t=this.bytes();return s.read(t,0,t.length)},f.prototype.skip=function(t){if("number"==typeof t){if(this.pos+t>this.len)throw u(this,t);this.pos+=t}else do if(this.pos>=this.len)throw u(this);while(128&this.buf[this.pos++]);return this},f.prototype.skipType=function(t){switch(t){case 0:this.skip();break;case 1:this.skip(8);break;case 2:this.skip(this.uint32());break;case 3:for(;4!=(t=7&this.uint32());)this.skipType(t);break;case 5:this.skip(4);break;default:throw Error("invalid wire type "+t+" at offset "+this.pos)}return this},f._configure=function(t){i=t,f.create=l(),i._configure();var r=n.Long?"toLong":"toNumber";n.merge(f.prototype,{int64:function(){return a.call(this)[r](!1)},uint64:function(){return a.call(this)[r](!0)},sint64:function(){return a.call(this).zzDecode()[r](!1)},fixed64:function(){return p.call(this)[r](!0)},sfixed64:function(){return p.call(this)[r](!1)}})}},"./protobufjs/src/reader_buffer.js":function(t,r,e){t.exports=o;var i=e("./protobufjs/src/reader.js");(o.prototype=Object.create(i.prototype)).constructor=o;var n=e("./protobufjs/src/util/minimal.js");function o(t){i.call(this,t)}o._configure=function(){n.Buffer&&(o.prototype._slice=n.Buffer.prototype.slice)},o.prototype.string=function(){var t=this.uint32();return this.buf.utf8Slice?this.buf.utf8Slice(this.pos,this.pos=Math.min(this.pos+t,this.len)):this.buf.toString("utf-8",this.pos,this.pos=Math.min(this.pos+t,this.len))},o._configure()},"./protobufjs/src/roots.js":function(t){t.exports={}},"./protobufjs/src/rpc.js":function(t,r,e){r.Service=e("./protobufjs/src/rpc/service.js")},"./protobufjs/src/rpc/service.js":function(t,r,e){t.exports=n;var i=e("./protobufjs/src/util/minimal.js");function n(t,r,e){if("function"!=typeof t)throw TypeError("rpcImpl must be a function");i.EventEmitter.call(this),this.rpcImpl=t,this.requestDelimited=!!r,this.responseDelimited=!!e}(n.prototype=Object.create(i.EventEmitter.prototype)).constructor=n,n.prototype.rpcCall=function t(r,e,n,o,s){if(!o)throw TypeError("request must be specified");var u=this;if(!s)return i.asPromise(t,u,r,e,n,o);if(!u.rpcImpl)return void setTimeout(function(){s(Error("already ended"))},0);try{return u.rpcImpl(r,e[u.requestDelimited?"encodeDelimited":"encode"](o).finish(),function(t,e){if(t)return u.emit("error",t,r),s(t);if(null===e)return void u.end(!0);if(!(e instanceof n))try{e=n[u.responseDelimited?"decodeDelimited":"decode"](e)}catch(t){return u.emit("error",t,r),s(t)}return u.emit("data",e,r),s(null,e)})}catch(t){u.emit("error",t,r),setTimeout(function(){s(t)},0);return}},n.prototype.end=function(t){return this.rpcImpl&&(t||this.rpcImpl(null,null,null),this.rpcImpl=null,this.emit("end").off()),this}},"./protobufjs/src/util/longbits.js":function(t,r,e){t.exports=n;var i=e("./protobufjs/src/util/minimal.js");function n(t,r){this.lo=t>>>0,this.hi=r>>>0}var o=n.zero=new n(0,0);o.toNumber=function(){return 0},o.zzEncode=o.zzDecode=function(){return this},o.length=function(){return 1};var s=n.zeroHash="\0\0\0\0\0\0\0\0";n.fromNumber=function(t){if(0===t)return o;var r=t<0;r&&(t=-t);var e=t>>>0,i=(t-e)/0x100000000>>>0;return r&&(i=~i>>>0,e=~e>>>0,++e>0xffffffff&&(e=0,++i>0xffffffff&&(i=0))),new n(e,i)},n.from=function(t){if("number"==typeof t)return n.fromNumber(t);if(i.isString(t))if(!i.Long)return n.fromNumber(parseInt(t,10));else t=i.Long.fromString(t);return t.low||t.high?new n(t.low>>>0,t.high>>>0):o},n.prototype.toNumber=function(t){if(!t&&this.hi>>>31){var r=~this.lo+1>>>0,e=~this.hi>>>0;return r||(e=e+1>>>0),-(r+0x100000000*e)}return this.lo+0x100000000*this.hi},n.prototype.toLong=function(t){return i.Long?new i.Long(0|this.lo,0|this.hi,!!t):{low:0|this.lo,high:0|this.hi,unsigned:!!t}};var u=String.prototype.charCodeAt;n.fromHash=function(t){return t===s?o:new n((u.call(t,0)|u.call(t,1)<<8|u.call(t,2)<<16|u.call(t,3)<<24)>>>0,(u.call(t,4)|u.call(t,5)<<8|u.call(t,6)<<16|u.call(t,7)<<24)>>>0)},n.prototype.toHash=function(){return String.fromCharCode(255&this.lo,this.lo>>>8&255,this.lo>>>16&255,this.lo>>>24,255&this.hi,this.hi>>>8&255,this.hi>>>16&255,this.hi>>>24)},n.prototype.zzEncode=function(){var t=this.hi>>31;return this.hi=((this.hi<<1|this.lo>>>31)^t)>>>0,this.lo=(this.lo<<1^t)>>>0,this},n.prototype.zzDecode=function(){var t=-(1&this.lo);return this.lo=((this.lo>>>1|this.hi<<31)^t)>>>0,this.hi=(this.hi>>>1^t)>>>0,this},n.prototype.length=function(){var t=this.lo,r=(this.lo>>>28|this.hi<<4)>>>0,e=this.hi>>>24;return 0===e?0===r?t<16384?t<128?1:2:t<2097152?3:4:r<16384?r<128?5:6:r<2097152?7:8:e<128?9:10}},"./protobufjs/src/util/minimal.js":function(t,r,e){var i=r;function n(t,r,e){for(var i=Object.keys(r),n=0;n0)},i.Buffer=function(){try{var t=i.inquire("buffer").Buffer;return t.prototype.utf8Write?t:null}catch(t){return null}}(),i._Buffer_from=null,i._Buffer_allocUnsafe=null,i.newBuffer=function(t){return"number"==typeof t?i.Buffer?i._Buffer_allocUnsafe(t):new i.Array(t):i.Buffer?i._Buffer_from(t):"undefined"==typeof Uint8Array?t:new Uint8Array(t)},i.Array="undefined"!=typeof Uint8Array?Uint8Array:Array,i.Long=i.global.dcodeIO&&i.global.dcodeIO.Long||i.global.Long||i.inquire("long"),i.key2Re=/^true|false|0|1$/,i.key32Re=/^-?(?:0|[1-9][0-9]*)$/,i.key64Re=/^(?:[\\x00-\\xff]{8}|-?(?:0|[1-9][0-9]*))$/,i.longToHash=function(t){return t?i.LongBits.from(t).toHash():i.LongBits.zeroHash},i.longFromHash=function(t,r){var e=i.LongBits.fromHash(t);return i.Long?i.Long.fromBits(e.lo,e.hi,r):e.toNumber(!!r)},i.merge=n,i.lcFirst=function(t){return t.charAt(0).toLowerCase()+t.substring(1)},i.newError=o,i.ProtocolError=o("ProtocolError"),i.oneOfGetter=function(t){for(var r={},e=0;e-1;--e)if(1===r[t[e]]&&void 0!==this[t[e]]&&null!==this[t[e]])return t[e]}},i.oneOfSetter=function(t){return function(r){for(var e=0;e127;)r[e++]=127&t|128,t>>>=7;r[e]=t}function y(t,r){this.len=t,this.next=void 0,this.val=r}function d(t,r,e){for(;t.hi;)r[e++]=127&t.lo|128,t.lo=(t.lo>>>7|t.hi<<25)>>>0,t.hi>>>=7;for(;t.lo>127;)r[e++]=127&t.lo|128,t.lo=t.lo>>>7;r[e++]=t.lo}function g(t,r,e){r[e]=255&t,r[e+1]=t>>>8&255,r[e+2]=t>>>16&255,r[e+3]=t>>>24}a.create=c(),a.alloc=function(t){return new n.Array(t)},n.Array!==Array&&(a.alloc=n.pool(a.alloc,n.Array.prototype.subarray)),a.prototype._push=function(t,r,e){return this.tail=this.tail.next=new f(t,r,e),this.len+=r,this},y.prototype=Object.create(f.prototype),y.prototype.fn=b,a.prototype.uint32=function(t){return this.len+=(this.tail=this.tail.next=new y((t>>>=0)<128?1:t<16384?2:t<2097152?3:t<0x10000000?4:5,t)).len,this},a.prototype.int32=function(t){return t<0?this._push(d,10,o.fromNumber(t)):this.uint32(t)},a.prototype.sint32=function(t){return this.uint32((t<<1^t>>31)>>>0)},a.prototype.uint64=function(t){var r=o.from(t);return this._push(d,r.length(),r)},a.prototype.int64=a.prototype.uint64,a.prototype.sint64=function(t){var r=o.from(t).zzEncode();return this._push(d,r.length(),r)},a.prototype.bool=function(t){return this._push(p,1,+!!t)},a.prototype.fixed32=function(t){return this._push(g,4,t>>>0)},a.prototype.sfixed32=a.prototype.fixed32,a.prototype.fixed64=function(t){var r=o.from(t);return this._push(g,4,r.lo)._push(g,4,r.hi)},a.prototype.sfixed64=a.prototype.fixed64,a.prototype.float=function(t){return this._push(n.float.writeFloatLE,4,t)},a.prototype.double=function(t){return this._push(n.float.writeDoubleLE,8,t)};var m=n.Array.prototype.set?function(t,r,e){r.set(t,e)}:function(t,r,e){for(var i=0;i>>0;if(!r)return this._push(p,1,0);if(n.isString(t)){var e=a.alloc(r=s.length(t));s.decode(t,e,0),t=e}return this.uint32(r)._push(m,r,t)},a.prototype.string=function(t){var r=u.length(t);return r?this.uint32(r)._push(u.write,r,t):this._push(p,1,0)},a.prototype.fork=function(){return this.states=new l(this),this.head=this.tail=new f(h,0,0),this.len=0,this},a.prototype.reset=function(){return this.states?(this.head=this.states.head,this.tail=this.states.tail,this.len=this.states.len,this.states=this.states.next):(this.head=this.tail=new f(h,0,0),this.len=0),this},a.prototype.ldelim=function(){var t=this.head,r=this.tail,e=this.len;return this.reset().uint32(e),e&&(this.tail.next=t.next,this.tail=r,this.len+=e),this},a.prototype.finish=function(){for(var t=this.head.next,r=this.constructor.alloc(this.len),e=0;t;)t.fn(t.val,r,e),e+=t.len,t=t.next;return r},a._configure=function(t){i=t,a.create=c(),i._configure()}},"./protobufjs/src/writer_buffer.js":function(t,r,e){t.exports=o;var i=e("./protobufjs/src/writer.js");(o.prototype=Object.create(i.prototype)).constructor=o;var n=e("./protobufjs/src/util/minimal.js");function o(){i.call(this)}function s(t,r,e){t.length<40?n.utf8.write(t,r,e):r.utf8Write?r.utf8Write(t,e):r.write(t,e)}o._configure=function(){o.alloc=n._Buffer_allocUnsafe,o.writeBytesBuffer=n.Buffer&&n.Buffer.prototype instanceof Uint8Array&&"set"===n.Buffer.prototype.set.name?function(t,r,e){r.set(t,e)}:function(t,r,e){if(t.copy)t.copy(r,e,0,t.length);else for(var i=0;i>>0;return this.uint32(r),r&&this._push(o.writeBytesBuffer,r,t),this},o.prototype.string=function(t){var r=n.Buffer.byteLength(t);return this.uint32(r),r&&this._push(s,r,t),this},o._configure()}},__webpack_module_cache__={};function __webpack_require__(t){var r=__webpack_module_cache__[t];if(void 0!==r)return r.exports;var e=__webpack_module_cache__[t]={exports:{}};return __webpack_modules__[t].call(e.exports,e,e.exports,__webpack_require__),e.exports}var __webpack_exports__=__webpack_require__("./protobufjs/minimal.js");module.exports=__webpack_exports__})(); \ No newline at end of file diff --git a/packages/node_modules/retry/index.js b/packages/node_modules/retry/index.js index 878566b0304..be3d8f859f9 100644 --- a/packages/node_modules/retry/index.js +++ b/packages/node_modules/retry/index.js @@ -1 +1 @@ -(()=>{var t={7628:function(t,e,i){t.exports=i(6322)},6322:function(t,e,i){var r=i(1124);e.operation=function(t){return new r(e.timeouts(t),{forever:t&&(t.forever||t.retries===1/0),unref:t&&t.unref,maxRetryTime:t&&t.maxRetryTime})},e.timeouts=function(t){if(t instanceof Array)return[].concat(t);var e={retries:10,factor:2,minTimeout:1e3,maxTimeout:1/0,randomize:!1};for(var i in t)e[i]=t[i];if(e.minTimeout>e.maxTimeout)throw Error("minTimeout is greater than maxTimeout");for(var r=[],o=0;o=this._maxRetryTime)return this._errors.push(t),this._errors.unshift(Error("RetryOperation timeout occurred")),!1;this._errors.push(t);var i=this._timeouts.shift();if(void 0===i)if(!this._cachedTimeouts)return!1;else this._errors.splice(0,this._errors.length-1),i=this._cachedTimeouts.slice(-1);var r=this;return this._timer=setTimeout(function(){r._attempts++,r._operationTimeoutCb&&(r._timeout=setTimeout(function(){r._operationTimeoutCb(r._attempts)},r._operationTimeout),r._options.unref&&r._timeout.unref()),r._fn(r._attempts)},i),this._options.unref&&this._timer.unref(),!0},e.prototype.attempt=function(t,e){this._fn=t,e&&(e.timeout&&(this._operationTimeout=e.timeout),e.cb&&(this._operationTimeoutCb=e.cb));var i=this;this._operationTimeoutCb&&(this._timeout=setTimeout(function(){i._operationTimeoutCb()},i._operationTimeout)),this._operationStart=new Date().getTime(),this._fn(this._attempts)},e.prototype.try=function(t){console.log("Using RetryOperation.try() is deprecated"),this.attempt(t)},e.prototype.start=function(t){console.log("Using RetryOperation.start() is deprecated"),this.attempt(t)},e.prototype.start=e.prototype.try,e.prototype.errors=function(){return this._errors},e.prototype.attempts=function(){return this._attempts},e.prototype.mainError=function(){if(0===this._errors.length)return null;for(var t={},e=null,i=0,r=0;r=i&&(e=o,i=s)}return e}}},e={},i=function i(r){var o=e[r];if(void 0!==o)return o.exports;var n=e[r]={exports:{}};return t[r](n,n.exports,i),n.exports}(7628);module.exports=i})(); \ No newline at end of file +(()=>{var t={"./retry/index.js":function(t,e,r){t.exports=r("./retry/lib/retry.js")},"./retry/lib/retry.js":function(t,e,r){var i=r("./retry/lib/retry_operation.js");e.operation=function(t){return new i(e.timeouts(t),{forever:t&&(t.forever||t.retries===1/0),unref:t&&t.unref,maxRetryTime:t&&t.maxRetryTime})},e.timeouts=function(t){if(t instanceof Array)return[].concat(t);var e={retries:10,factor:2,minTimeout:1e3,maxTimeout:1/0,randomize:!1};for(var r in t)e[r]=t[r];if(e.minTimeout>e.maxTimeout)throw Error("minTimeout is greater than maxTimeout");for(var i=[],o=0;o=this._maxRetryTime)return this._errors.push(t),this._errors.unshift(Error("RetryOperation timeout occurred")),!1;this._errors.push(t);var r=this._timeouts.shift();if(void 0===r)if(!this._cachedTimeouts)return!1;else this._errors.splice(0,this._errors.length-1),r=this._cachedTimeouts.slice(-1);var i=this;return this._timer=setTimeout(function(){i._attempts++,i._operationTimeoutCb&&(i._timeout=setTimeout(function(){i._operationTimeoutCb(i._attempts)},i._operationTimeout),i._options.unref&&i._timeout.unref()),i._fn(i._attempts)},r),this._options.unref&&this._timer.unref(),!0},e.prototype.attempt=function(t,e){this._fn=t,e&&(e.timeout&&(this._operationTimeout=e.timeout),e.cb&&(this._operationTimeoutCb=e.cb));var r=this;this._operationTimeoutCb&&(this._timeout=setTimeout(function(){r._operationTimeoutCb()},r._operationTimeout)),this._operationStart=new Date().getTime(),this._fn(this._attempts)},e.prototype.try=function(t){console.log("Using RetryOperation.try() is deprecated"),this.attempt(t)},e.prototype.start=function(t){console.log("Using RetryOperation.start() is deprecated"),this.attempt(t)},e.prototype.start=e.prototype.try,e.prototype.errors=function(){return this._errors},e.prototype.attempts=function(){return this._attempts},e.prototype.mainError=function(){if(0===this._errors.length)return null;for(var t={},e=null,r=0,i=0;i=r&&(e=o,r=s)}return e}}},e={},r=function r(i){var o=e[i];if(void 0!==o)return o.exports;var n=e[i]={exports:{}};return t[i](n,n.exports,r),n.exports}("./retry/index.js");module.exports=r})(); \ No newline at end of file diff --git a/packages/node_modules/rfdc/index.js b/packages/node_modules/rfdc/index.js index 32f5c6c4908..375ad618e2a 100644 --- a/packages/node_modules/rfdc/index.js +++ b/packages/node_modules/rfdc/index.js @@ -1 +1 @@ -(()=>{"use strict";var t={6995:function(t){function e(t){return t instanceof Buffer?Buffer.from(t):new t.constructor(t.buffer.slice(),t.byteOffset,t.length)}t.exports=function(t){if((t=t||{}).circles)return function(t){let r=[],o=[],n=new Map;if(n.set(Date,t=>new Date(t)),n.set(Map,(t,e)=>new Map(u(Array.from(t),e))),n.set(Set,(t,e)=>new Set(u(Array.from(t),e))),t.constructorHandlers)for(let e of t.constructorHandlers)n.set(e[0],e[1]);let c=null;return t.proto?function t(f){if("object"!=typeof f||null===f)return f;if(Array.isArray(f))return u(f,t);if(f.constructor!==Object&&(c=n.get(f.constructor)))return c(f,t);let l={};for(let u in r.push(f),o.push(l),f){let s=f[u];if("object"!=typeof s||null===s)l[u]=s;else if(s.constructor!==Object&&(c=n.get(s.constructor)))l[u]=c(s,t);else if(ArrayBuffer.isView(s))l[u]=e(s);else{let e=r.indexOf(s);-1!==e?l[u]=o[e]:l[u]=t(s)}}return r.pop(),o.pop(),l}:function t(f){if("object"!=typeof f||null===f)return f;if(Array.isArray(f))return u(f,t);if(f.constructor!==Object&&(c=n.get(f.constructor)))return c(f,t);let l={};for(let u in r.push(f),o.push(l),f){if(!1===Object.hasOwnProperty.call(f,u))continue;let s=f[u];if("object"!=typeof s||null===s)l[u]=s;else if(s.constructor!==Object&&(c=n.get(s.constructor)))l[u]=c(s,t);else if(ArrayBuffer.isView(s))l[u]=e(s);else{let e=r.indexOf(s);-1!==e?l[u]=o[e]:l[u]=t(s)}}return r.pop(),o.pop(),l};function u(t,u){let f=Object.keys(t),l=Array(f.length);for(let s=0;snew Date(t)),r.set(Map,(t,e)=>new Map(n(Array.from(t),e))),r.set(Set,(t,e)=>new Set(n(Array.from(t),e))),t.constructorHandlers)for(let e of t.constructorHandlers)r.set(e[0],e[1]);let o=null;return t.proto?function t(c){if("object"!=typeof c||null===c)return c;if(Array.isArray(c))return n(c,t);if(c.constructor!==Object&&(o=r.get(c.constructor)))return o(c,t);let u={};for(let n in c){let f=c[n];"object"!=typeof f||null===f?u[n]=f:f.constructor!==Object&&(o=r.get(f.constructor))?u[n]=o(f,t):ArrayBuffer.isView(f)?u[n]=e(f):u[n]=t(f)}return u}:function t(c){if("object"!=typeof c||null===c)return c;if(Array.isArray(c))return n(c,t);if(c.constructor!==Object&&(o=r.get(c.constructor)))return o(c,t);let u={};for(let n in c){if(!1===Object.hasOwnProperty.call(c,n))continue;let f=c[n];"object"!=typeof f||null===f?u[n]=f:f.constructor!==Object&&(o=r.get(f.constructor))?u[n]=o(f,t):ArrayBuffer.isView(f)?u[n]=e(f):u[n]=t(f)}return u};function n(t,n){let c=Object.keys(t),u=Array(c.length);for(let f=0;f{"use strict";var t={"./rfdc/index.js":function(t){function e(t){return t instanceof Buffer?Buffer.from(t):new t.constructor(t.buffer.slice(),t.byteOffset,t.length)}t.exports=function(t){if((t=t||{}).circles)return function(t){let r=[],n=[],o=new Map;if(o.set(Date,t=>new Date(t)),o.set(Map,(t,e)=>new Map(f(Array.from(t),e))),o.set(Set,(t,e)=>new Set(f(Array.from(t),e))),t.constructorHandlers)for(let e of t.constructorHandlers)o.set(e[0],e[1]);let c=null;return t.proto?function t(u){if("object"!=typeof u||null===u)return u;if(Array.isArray(u))return f(u,t);if(u.constructor!==Object&&(c=o.get(u.constructor)))return c(u,t);let s={};for(let f in r.push(u),n.push(s),u){let l=u[f];if("object"!=typeof l||null===l)s[f]=l;else if(l.constructor!==Object&&(c=o.get(l.constructor)))s[f]=c(l,t);else if(ArrayBuffer.isView(l))s[f]=e(l);else{let e=r.indexOf(l);-1!==e?s[f]=n[e]:s[f]=t(l)}}return r.pop(),n.pop(),s}:function t(u){if("object"!=typeof u||null===u)return u;if(Array.isArray(u))return f(u,t);if(u.constructor!==Object&&(c=o.get(u.constructor)))return c(u,t);let s={};for(let f in r.push(u),n.push(s),u){if(!1===Object.hasOwnProperty.call(u,f))continue;let l=u[f];if("object"!=typeof l||null===l)s[f]=l;else if(l.constructor!==Object&&(c=o.get(l.constructor)))s[f]=c(l,t);else if(ArrayBuffer.isView(l))s[f]=e(l);else{let e=r.indexOf(l);-1!==e?s[f]=n[e]:s[f]=t(l)}}return r.pop(),n.pop(),s};function f(t,f){let u=Object.keys(t),s=Array(u.length);for(let l=0;lnew Date(t)),r.set(Map,(t,e)=>new Map(o(Array.from(t),e))),r.set(Set,(t,e)=>new Set(o(Array.from(t),e))),t.constructorHandlers)for(let e of t.constructorHandlers)r.set(e[0],e[1]);let n=null;return t.proto?function t(c){if("object"!=typeof c||null===c)return c;if(Array.isArray(c))return o(c,t);if(c.constructor!==Object&&(n=r.get(c.constructor)))return n(c,t);let f={};for(let o in c){let u=c[o];"object"!=typeof u||null===u?f[o]=u:u.constructor!==Object&&(n=r.get(u.constructor))?f[o]=n(u,t):ArrayBuffer.isView(u)?f[o]=e(u):f[o]=t(u)}return f}:function t(c){if("object"!=typeof c||null===c)return c;if(Array.isArray(c))return o(c,t);if(c.constructor!==Object&&(n=r.get(c.constructor)))return n(c,t);let f={};for(let o in c){if(!1===Object.hasOwnProperty.call(c,o))continue;let u=c[o];"object"!=typeof u||null===u?f[o]=u:u.constructor!==Object&&(n=r.get(u.constructor))?f[o]=n(u,t):ArrayBuffer.isView(u)?f[o]=e(u):f[o]=t(u)}return f};function o(t,o){let c=Object.keys(t),f=Array(c.length);for(let u=0;u{var t={4485:function(t){function e(t){return"latest"===t&&(t=">=0"),t.match(/^([^\d+]*)(\d.*)$/)||[null,"","*.*.*"]}function n(t,e){let n=t.slice(0);if(-1===t[e])return n;for(n[e++]++;e<3;e++)n[e]=0;return n}function r(t){return"x"===t||"X"===t||"*"===t||"latest"===t?-1:Number(t)}function u(t){return/^\d+$/.test(t)?Number(t):t}function i(t,e,n){return -1===n?"<"!==t:"="===t?e===n:">"===t?e>n:">="===t?e>=n:"<"===t?e"===e?(e=">=",l.push(0,0,0),l[f]++):""===e?l.push(0,0,0):l.push(-1,-1,-1),i)?[l.slice(0,3).concat(i.split(".").map(u)),e]:[l.slice(0,3),e]}t.exports=function(t,r){let[u]=l(t,"");for(let t of function(t){let r=[],u=[],i=t.trim().split(/\s+/);for(let t=0;t=~v^]+$/.test(f)&&t+1="}if("~"===p[0]){let t=s[2].split("-")[0].split(".").length;u.push([">=",h]),u.push(["<",1===t?n(h,0):n(h,1)])}else if("^"===p[0]){let t=0!==h[0]?0:0!==h[1]?1:2;u.push([">=",h]),u.push(["<",0===t?n(h,0):1===t?n(h,1):n(h,2)])}else u.push([p.replace("~","").replace("^",""),h])}return u.length&&r.push(u),r}(r))if(function(t,e){for(let[n,r]of t)if(!function(t,e,n){if(!i("=",t[0],e[0]))return i(n,t[0],e[0]);if(!i("=",t[1],e[1]))return i(n,t[1],e[1]);if(!i("=",t[2],e[2])||3===t.length&&3===e.length)return i(n,t[2],e[2]);if("<"===n[0]&&(3===e.length||3===t.length))return!1;if(">"===n[0]){if(3===t.length)return!0;if(3===e.length)return!1}for(let r=3;r{var t={"./semifies/index.js":function(t){function e(t){return"latest"===t&&(t=">=0"),t.match(/^([^\d+]*)(\d.*)$/)||[null,"","*.*.*"]}function n(t,e){let n=t.slice(0);if(-1===t[e])return n;for(n[e++]++;e<3;e++)n[e]=0;return n}function r(t){return"x"===t||"X"===t||"*"===t||"latest"===t?-1:Number(t)}function i(t){return/^\d+$/.test(t)?Number(t):t}function u(t,e,n){return -1===n?"<"!==t:"="===t?e===n:">"===t?e>n:">="===t?e>=n:"<"===t?e"===e?(e=">=",l.push(0,0,0),l[s]++):""===e?l.push(0,0,0):l.push(-1,-1,-1),u)?[l.slice(0,3).concat(u.split(".").map(i)),e]:[l.slice(0,3),e]}t.exports=function(t,r){let[i]=l(t,"");for(let t of function(t){let r=[],i=[],u=t.trim().split(/\s+/);for(let t=0;t=~v^]+$/.test(s)&&t+1="}if("~"===p[0]){let t=f[2].split("-")[0].split(".").length;i.push([">=",h]),i.push(["<",1===t?n(h,0):n(h,1)])}else if("^"===p[0]){let t=0!==h[0]?0:0!==h[1]?1:2;i.push([">=",h]),i.push(["<",0===t?n(h,0):1===t?n(h,1):n(h,2)])}else i.push([p.replace("~","").replace("^",""),h])}return i.length&&r.push(i),r}(r))if(function(t,e){for(let[n,r]of t)if(!function(t,e,n){if(!u("=",t[0],e[0]))return u(n,t[0],e[0]);if(!u("=",t[1],e[1]))return u(n,t[1],e[1]);if(!u("=",t[2],e[2])||3===t.length&&3===e.length)return u(n,t[2],e[2]);if("<"===n[0]&&(3===e.length||3===t.length))return!1;if(">"===n[0]){if(3===t.length)return!0;if(3===e.length)return!1}for(let r=3;r{"use strict";var t={9318:function(t){for(var e="(?:\\|\\||\\&\\&|;;|\\|\\&|\\<\\(|\\<\\<\\<|>>|>\\&|<\\&|[&;()|<>])",r=RegExp("^"+e+"$"),n="|&;()<> \\t",o=/^#$/,i="",s=0;s<4;s++)i+=(0x100000000*Math.random()).toString(16);var a=RegExp("^"+i);t.exports=function(t,s,c){var u=function(t,s,a){a||(a={});var c=a.escape||"\\",u=function(t,e){for(var r,n=e.lastIndex,o=[];r=e.exec(t);)o.push(r),e.lastIndex===r.index&&(e.lastIndex+=1);return e.lastIndex=n,o}(t,RegExp(["("+e+")","("+("(\\"+c+"['\""+n+"]|[^\\s'\""+n)+"])+|\"((\\\\\"|[^\"])*?)\"|'((\\\\'|[^'])*?)')+"].join("|"),"g"));if(0===u.length)return[];s||(s={});var f=!1;return u.map(function(e){var n,a=e[0];if(a&&!f){if(r.test(a))return{op:a};var u=!1,p=!1,l="",x=!1;for(n=0;n?@[\\\]^`{|}])/g,"$1\\$2")}).join(" ")}}},e={};function r(n){var o=e[n];if(void 0!==o)return o.exports;var i=e[n]={exports:{}};return t[n](i,i.exports,r),i.exports}var n={};n.quote=r(4257),n.parse=r(9318),module.exports=n})(); \ No newline at end of file +(()=>{"use strict";var e={"./shell-quote/parse.js":function(e){for(var t="(?:\\|\\||\\&\\&|;;|\\|\\&|\\<\\(|\\<\\<\\<|>>|>\\&|<\\&|[&;()|<>])",r=RegExp("^"+t+"$"),n="|&;()<> \\t",o=/^#$/,i="",s=0;s<4;s++)i+=(0x100000000*Math.random()).toString(16);var a=RegExp("^"+i);e.exports=function(e,s,u){var c=function(e,s,a){a||(a={});var u=a.escape||"\\",c=function(e,t){for(var r,n=t.lastIndex,o=[];r=t.exec(e);)o.push(r),t.lastIndex===r.index&&(t.lastIndex+=1);return t.lastIndex=n,o}(e,RegExp(["("+t+")","("+("(\\"+u+"['\""+n+"]|[^\\s'\""+n)+"])+|\"((\\\\\"|[^\"])*?)\"|'((\\\\'|[^'])*?)')+"].join("|"),"g"));if(0===c.length)return[];s||(s={});var f=!1;return c.map(function(t){var n,a=t[0];if(a&&!f){if(r.test(a))return{op:a};var c=!1,l=!1,p="",x=!1;for(n=0;n?@[\\\]^`{|}])/g,"$1\\$2")}).join(" ")}}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var i=t[n]={exports:{}};return e[n](i,i.exports,r),i.exports}var n={};n.quote=r("./shell-quote/quote.js"),n.parse=r("./shell-quote/parse.js"),module.exports=n})(); \ No newline at end of file diff --git a/packages/node_modules/source-map/index.js b/packages/node_modules/source-map/index.js index fdf542382bc..4533d5a5800 100644 --- a/packages/node_modules/source-map/index.js +++ b/packages/node_modules/source-map/index.js @@ -1 +1 @@ -(()=>{var e={6860:function(e,n){class t{constructor(){this._array=[],this._set=new Map}static fromArray(e,n){let r=new t;for(let t=0,o=e.length;t=0)return n;throw Error('"'+e+'" is not in the set.')}at(e){if(e>=0&&e>>=5)>0&&(n|=32),t+=r.encode(n);while(o>0);return t}},1853:function(e,n){let t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");n.encode=function(e){if(0<=e&&e0?r-a>1?e(a,r,o,i,s,l):l===n.LEAST_UPPER_BOUND?r1?e(t,a,o,i,s,l):l==n.LEAST_UPPER_BOUND?a:t<0?-1:t}(-1,t.length,e,t,r,o||n.GREATEST_LOWER_BOUND);if(i<0)return -1;for(;i-1>=0&&0===r(t[i],t[i-1],!0);)--i;return i}},3415:function(e,n,t){let r=t(8962);n.MappingList=class{constructor(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}unsortedForEach(e,n){this._array.forEach(e,n)}add(e){var n;let t,o,i,s;(n=this._last,t=n.generatedLine,o=e.generatedLine,i=n.generatedColumn,s=e.generatedColumn,o>t||o==t&&s>=i||0>=r.compareByGeneratedPositionsInflated(n,e))?this._last=e:this._sorted=!1,this._array.push(e)}toArray(){return this._sorted||(this._array.sort(r.compareByGeneratedPositionsInflated),this._sorted=!0),this._array}}},7551:function(e,n,t){"use strict";let r=t(9896),o=t(6928);e.exports=function(){return new Promise((e,n)=>{let t=o.join(__dirname,"mappings.wasm");r.readFile(t,null,(t,r)=>{t?n(t):e(r.buffer)})})},e.exports.initialize=e=>{console.debug("SourceMapConsumer.initialize is a no-op when running in node.js")}},2393:function(e,n,t){let r=t(8962),o=t(2456),i=t(6860).ArraySet;t(4722);let s=t(7551),l=t(7286),a=Symbol("smcInternal");class u{constructor(e,n){if(e==a)return Promise.resolve(this);return function(e,n){let t=e;return"string"==typeof e&&(t=r.parseSourceMapInput(e)),Promise.resolve(null!=t.sections?new g(t,n):new c(t,n))}(e,n)}static initialize(e){s.initialize(e["lib/mappings.wasm"])}static fromSourceMap(e,n){var t,r;return t=e,r=n,c.fromSourceMap(t,r)}static async with(e,n,t){let r=await new u(e,n);try{return await t(r)}finally{r.destroy()}}eachMapping(e,n,t){throw Error("Subclasses must implement eachMapping")}allGeneratedPositionsFor(e){throw Error("Subclasses must implement allGeneratedPositionsFor")}destroy(){throw Error("Subclasses must implement destroy")}}u.prototype._version=3,u.GENERATED_ORDER=1,u.ORIGINAL_ORDER=2,u.GREATEST_LOWER_BOUND=1,u.LEAST_UPPER_BOUND=2,n.SourceMapConsumer=u;class c extends u{constructor(e,n){return super(a).then(t=>{let o=e;"string"==typeof e&&(o=r.parseSourceMapInput(e));let s=r.getArg(o,"version"),a=r.getArg(o,"sources").map(String),u=r.getArg(o,"names",[]),c=r.getArg(o,"sourceRoot",null),g=r.getArg(o,"sourcesContent",null),h=r.getArg(o,"mappings"),m=r.getArg(o,"file",null),p=r.getArg(o,"x_google_ignoreList",null);if(s!=t._version)throw Error("Unsupported version: "+s);return t._sourceLookupCache=new Map,t._names=i.fromArray(u.map(String),!0),t._sources=i.fromArray(a,!0),t._absoluteSources=i.fromArray(t._sources.toArray().map(function(e){return r.computeSourceURL(c,e,n)}),!0),t.sourceRoot=c,t.sourcesContent=g,t._mappings=h,t._sourceMapURL=n,t.file=m,t.x_google_ignoreList=p,t._computedColumnSpans=!1,t._mappingsPtr=0,t._wasm=null,l().then(e=>(t._wasm=e,t))})}_findSourceIndex(e){let n=this._sourceLookupCache.get(e);if("number"==typeof n)return n;let t=r.computeSourceURL(null,e,this._sourceMapURL);if(this._absoluteSources.has(t)){let n=this._absoluteSources.indexOf(t);return this._sourceLookupCache.set(e,n),n}let o=r.computeSourceURL(this.sourceRoot,e,this._sourceMapURL);if(this._absoluteSources.has(o)){let n=this._absoluteSources.indexOf(o);return this._sourceLookupCache.set(e,n),n}return -1}static fromSourceMap(e,n){return new c(e.toString())}get sources(){return this._absoluteSources.toArray()}_getMappingsPtr(){return 0===this._mappingsPtr&&this._parseMappings(),this._mappingsPtr}_parseMappings(){let e=this._mappings,n=e.length,t=this._wasm.exports.allocate_mappings(n)>>>0,r=new Uint8Array(this._wasm.exports.memory.buffer,t,n);for(let t=0;t{null!==n.source&&(n.source=this._absoluteSources.at(n.source),null!==n.name&&(n.name=this._names.at(n.name))),this._computedColumnSpans&&null===n.lastGeneratedColumn&&(n.lastGeneratedColumn=1/0),e.call(r,n)},()=>{switch(o){case u.GENERATED_ORDER:this._wasm.exports.by_generated_location(this._getMappingsPtr());break;case u.ORIGINAL_ORDER:this._wasm.exports.by_original_location(this._getMappingsPtr());break;default:throw Error("Unknown order of iteration.")}})}allGeneratedPositionsFor(e){let n=r.getArg(e,"source"),t=r.getArg(e,"line"),o=e.column||0;if((n=this._findSourceIndex(n))<0)return[];if(t<1)throw Error("Line numbers must be >= 1");if(o<0)throw Error("Column numbers must be >= 0");let i=[];return this._wasm.withMappingCallback(e=>{let n=e.lastGeneratedColumn;this._computedColumnSpans&&null===n&&(n=1/0),i.push({line:e.generatedLine,column:e.generatedColumn,lastColumn:n})},()=>{this._wasm.exports.all_generated_locations_for(this._getMappingsPtr(),n,t-1,"column"in e,o)}),i}destroy(){0!==this._mappingsPtr&&(this._wasm.exports.free_mappings(this._mappingsPtr),this._mappingsPtr=0)}computeColumnSpans(){this._computedColumnSpans||(this._wasm.exports.compute_column_spans(this._getMappingsPtr()),this._computedColumnSpans=!0)}originalPositionFor(e){let n,t={generatedLine:r.getArg(e,"line"),generatedColumn:r.getArg(e,"column")};if(t.generatedLine<1)throw Error("Line numbers must be >= 1");if(t.generatedColumn<0)throw Error("Column numbers must be >= 0");let o=r.getArg(e,"bias",u.GREATEST_LOWER_BOUND);if(null==o&&(o=u.GREATEST_LOWER_BOUND),this._wasm.withMappingCallback(e=>n=e,()=>{this._wasm.exports.original_location_for(this._getMappingsPtr(),t.generatedLine-1,t.generatedColumn,o)}),n&&n.generatedLine===t.generatedLine){let e=r.getArg(n,"source",null);null!==e&&(e=this._absoluteSources.at(e));let t=r.getArg(n,"name",null);return null!==t&&(t=this._names.at(t)),{source:e,line:r.getArg(n,"originalLine",null),column:r.getArg(n,"originalColumn",null),name:t}}return{source:null,line:null,column:null,name:null}}hasContentsOfAllSources(){return!!this.sourcesContent&&this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(e){return null==e})}sourceContentFor(e,n){if(!this.sourcesContent)return null;let t=this._findSourceIndex(e);if(t>=0)return this.sourcesContent[t];if(n)return null;throw Error('"'+e+'" is not in the SourceMap.')}generatedPositionFor(e){let n,t=r.getArg(e,"source");if((t=this._findSourceIndex(t))<0)return{line:null,column:null,lastColumn:null};let o={source:t,originalLine:r.getArg(e,"line"),originalColumn:r.getArg(e,"column")};if(o.originalLine<1)throw Error("Line numbers must be >= 1");if(o.originalColumn<0)throw Error("Column numbers must be >= 0");let i=r.getArg(e,"bias",u.GREATEST_LOWER_BOUND);if(null==i&&(i=u.GREATEST_LOWER_BOUND),this._wasm.withMappingCallback(e=>n=e,()=>{this._wasm.exports.generated_location_for(this._getMappingsPtr(),o.source,o.originalLine-1,o.originalColumn,i)}),n&&n.source===o.source){let e=n.lastGeneratedColumn;return this._computedColumnSpans&&null===e&&(e=1/0),{line:r.getArg(n,"generatedLine",null),column:r.getArg(n,"generatedColumn",null),lastColumn:e}}return{line:null,column:null,lastColumn:null}}}c.prototype.consumer=u;class g extends u{constructor(e,n){return super(a).then(t=>{let o=e;"string"==typeof e&&(o=r.parseSourceMapInput(e));let i=r.getArg(o,"version"),s=r.getArg(o,"sections");if(i!=t._version)throw Error("Unsupported version: "+i);let l={line:-1,column:0};return Promise.all(s.map(e=>{if(e.url)throw Error("Support for url field in sections not implemented.");let t=r.getArg(e,"offset"),o=r.getArg(t,"line"),i=r.getArg(t,"column");if(o({generatedOffset:{generatedLine:o+1,generatedColumn:i+1},consumer:e}))})).then(e=>(t._sections=e,t))})}get sources(){let e=[];for(let n=0;n=0?this._sections[n]:null,o=n>=0&&n+1=0?this._sections[n]:null,o=n>=0&&n+1{let n=t.generatedOffset.generatedLine-1,r=t.generatedOffset.generatedColumn-1;return 1===e.line&&(e.column+=r,"number"==typeof e.lastColumn&&(e.lastColumn+=r)),e.lastColumn===1/0&&o&&e.line===o.generatedOffset.generatedLine&&(e.lastColumn=o.generatedOffset.generatedColumn-2),e.line+=n,e}):[]}eachMapping(e,n,t){this._sections.forEach((r,o)=>{let i=o+10?new i:this._sources,a=new i;this._mappings.unsortedForEach(function(n){if(n.source===r&&null!=n.originalLine){let r=e.originalPositionFor({line:n.originalLine,column:n.originalColumn});null!=r.source&&(n.source=r.source,null!=t&&(n.source=o.join(t,n.source)),null!=s&&(n.source=o.relative(s,n.source)),n.originalLine=r.line,n.originalColumn=r.column,null!=r.name&&(n.name=r.name))}let i=n.source;null==i||l.has(i)||l.add(i);let u=n.name;null==u||a.has(u)||a.add(u)},this),this._sources=l,this._names=a,e.sources.forEach(function(n){let r=e.sourceContentFor(n);null!=r&&(null!=t&&(n=o.join(t,n)),null!=s&&(n=o.relative(s,n)),this.setSourceContent(n,r))},this)}_validateMapping(e,n,t,r){if(n&&"number"!=typeof n.line&&"number"!=typeof n.column)throw Error("original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.");if(e&&"line"in e&&"column"in e&&e.line>0&&e.column>=0&&!n&&!t&&!r);else if(e&&"line"in e&&"column"in e&&n&&"line"in n&&"column"in n&&e.line>0&&e.column>=0&&n.line>0&&n.column>=0&&t);else throw Error("Invalid mapping: "+JSON.stringify({generated:e,source:t,original:n,name:r}))}_serializeMappings(){let e,n,t,i,s=0,l=1,a=0,u=0,c=0,g=0,h="",m=this._mappings.toArray();for(let p=0,d=m.length;p0){if(!o.compareByGeneratedPositionsInflated(n,m[p-1]))continue;e+=","}e+=r.encode(n.generatedColumn-s),s=n.generatedColumn,null!=n.source&&(i=this._sources.indexOf(n.source),e+=r.encode(i-g),g=i,e+=r.encode(n.originalLine-1-u),u=n.originalLine-1,e+=r.encode(n.originalColumn-a),a=n.originalColumn,null!=n.name&&(t=this._names.indexOf(n.name),e+=r.encode(t-c),c=t)),h+=e}return h}_generateSourcesContent(e,n){return e.map(function(e){if(!this._sourcesContents)return null;null!=n&&(e=o.relative(n,e));let t=o.toSetString(e);return Object.prototype.hasOwnProperty.call(this._sourcesContents,t)?this._sourcesContents[t]:null},this)}toJSON(){let e={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return null!=this._file&&(e.file=this._file),null!=this._sourceRoot&&(e.sourceRoot=this._sourceRoot),this._sourcesContents&&(e.sourcesContent=this._generateSourcesContent(e.sources,e.sourceRoot)),e}toString(){return JSON.stringify(this.toJSON())}}l.prototype._version=3,n.SourceMapGenerator=l},4812:function(e,n,t){let r=t(4488).SourceMapGenerator,o=t(8962),i=/(\r?\n)/,s="$$$isSourceNode$$$";class l{constructor(e,n,t,r,o){this.children=[],this.sourceContents={},this.line=null==e?null:e,this.column=null==n?null:n,this.source=null==t?null:t,this.name=null==o?null:o,this[s]=!0,null!=r&&this.add(r)}static fromStringWithSourceMap(e,n,t){let r,s=new l,a=e.split(i),u=0,c=function(){return e()+(e()||"");function e(){return u=0;n--)this.prepend(e[n]);else if(e[s]||"string"==typeof e)this.children.unshift(e);else throw TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e);return this}walk(e){let n;for(let t=0,r=this.children.length;t0){for(t=0,n=[];t=0;t--)if(36!==e.charCodeAt(t))return!1;return!0}function l(e,n){return e===n?0:null===e?1:null===n?-1:e>n?1:-1}n.toSetString=o?i:function(e){return s(e)?"$"+e:e},n.fromSetString=o?i:function(e){return s(e)?e.slice(1):e},n.compareByGeneratedPositionsInflated=function(e,n){let t=e.generatedLine-n.generatedLine;return 0!==t||0!=(t=e.generatedColumn-n.generatedColumn)||0!==(t=l(e.source,n.source))||0!=(t=e.originalLine-n.originalLine)||0!=(t=e.originalColumn-n.originalColumn)?t:l(e.name,n.name)},n.parseSourceMapInput=function(e){return JSON.parse(e.replace(/^\)]}'[^\n]*\n/,""))};let a="http:",u=`${a}//host`;function c(e){return n=>{let t=p(n),o=h(n),i=new r(n,o);e(i);let s=i.toString();return"absolute"===t?s:"scheme-relative"===t?s.slice(a.length):"path-absolute"===t?s.slice(u.length):d(o,s)}}function g(e,n){return new r(e,n).toString()}function h(e){let n=e.split("..").length-1,t=function(e,n){let t=0;for(;;){let e="p"+t++;if(-1===n.indexOf(e))return e}}(0,e),r=`${u}/`;for(let e=0;e0&&!o[o.length-1]&&o.pop();t.length>0&&o.length>0&&t[0]===o[0];)t.shift(),o.shift();return o.map(()=>"..").concat(t).join("/")+n.search+n.hash}let _=c(e=>{e.pathname=e.pathname.replace(/\/?$/,"/")}),f=c(e=>{e.href=new r(".",e.toString()).toString()}),C=c(e=>{});function S(e,n){let t=p(n),r=p(e);if(e=_(e),"absolute"===t)return g(n,void 0);if("absolute"===r)return g(n,e);if("scheme-relative"===t)return C(n);if("scheme-relative"===r)return g(n,g(e,u)).slice(a.length);if("path-absolute"===t)return C(n);if("path-absolute"===r)return g(n,g(e,u)).slice(u.length);let o=h(n+e),i=g(n,g(e,o));return d(o,i)}n.normalize=C,n.join=S,n.relative=function(e,n){let t=function(e,n){if(p(e)!==p(n))return null;let t=h(e+n),o=new r(e,t),i=new r(n,t);try{new r("",i.toString())}catch(e){return null}return i.protocol!==o.protocol||i.user!==o.user||i.password!==o.password||i.hostname!==o.hostname||i.port!==o.port?null:d(o,i)}(e,n);return"string"==typeof t?t:C(n)},n.computeSourceURL=function(e,n,t){e&&"path-absolute"===p(n)&&(n=n.replace(/^\//,""));let r=C(n||"");return e&&(r=S(e,r)),t&&(r=S(f(t),r)),r}},7286:function(e,n,t){let r=t(7551);function o(){this.generatedLine=0,this.generatedColumn=0,this.lastGeneratedColumn=null,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}let i=null;e.exports=function(){if(i)return i;let e=[];return i=r().then(n=>WebAssembly.instantiate(n,{env:{mapping_callback(n,t,r,i,s,l,a,u,c,g){let h=new o;h.generatedLine=n+1,h.generatedColumn=t,r&&(h.lastGeneratedColumn=i-1),s&&(h.source=l,h.originalLine=a+1,h.originalColumn=u,c&&(h.name=g)),e[e.length-1](h)},start_all_generated_locations_for(){console.time("all_generated_locations_for")},end_all_generated_locations_for(){console.timeEnd("all_generated_locations_for")},start_compute_column_spans(){console.time("compute_column_spans")},end_compute_column_spans(){console.timeEnd("compute_column_spans")},start_generated_location_for(){console.time("generated_location_for")},end_generated_location_for(){console.timeEnd("generated_location_for")},start_original_location_for(){console.time("original_location_for")},end_original_location_for(){console.timeEnd("original_location_for")},start_parse_mappings(){console.time("parse_mappings")},end_parse_mappings(){console.timeEnd("parse_mappings")},start_sort_by_generated_location(){console.time("sort_by_generated_location")},end_sort_by_generated_location(){console.timeEnd("sort_by_generated_location")},start_sort_by_original_location(){console.time("sort_by_original_location")},end_sort_by_original_location(){console.timeEnd("sort_by_original_location")}}})).then(n=>({exports:n.instance.exports,withMappingCallback:(n,t)=>{e.push(n);try{t()}finally{e.pop()}}})).then(null,e=>{throw i=null,e})}},9896:function(e){"use strict";e.exports=require("fs")},6928:function(e){"use strict";e.exports=require("path")},7016:function(e){"use strict";e.exports=require("url")}},n={};function t(r){var o=n[r];if(void 0!==o)return o.exports;var i=n[r]={exports:{}};return e[r](i,i.exports,t),i.exports}var r={};r.SourceMapGenerator=t(4488).SourceMapGenerator,r.SourceMapConsumer=t(2393).SourceMapConsumer,r.SourceNode=t(4812).SourceNode,module.exports=r})(); \ No newline at end of file +(()=>{var e={"./source-map/lib/array-set.js":function(e,n){class t{constructor(){this._array=[],this._set=new Map}static fromArray(e,n){let r=new t;for(let t=0,o=e.length;t=0)return n;throw Error('"'+e+'" is not in the set.')}at(e){if(e>=0&&e>>=5)>0&&(n|=32),t+=r.encode(n);while(o>0);return t}},"./source-map/lib/base64.js":function(e,n){let t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");n.encode=function(e){if(0<=e&&e0?r-a>1?e(a,r,o,s,i,l):l===n.LEAST_UPPER_BOUND?r1?e(t,a,o,s,i,l):l==n.LEAST_UPPER_BOUND?a:t<0?-1:t}(-1,t.length,e,t,r,o||n.GREATEST_LOWER_BOUND);if(s<0)return -1;for(;s-1>=0&&0===r(t[s],t[s-1],!0);)--s;return s}},"./source-map/lib/mapping-list.js":function(e,n,t){let r=t("./source-map/lib/util.js");n.MappingList=class{constructor(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}unsortedForEach(e,n){this._array.forEach(e,n)}add(e){var n;let t,o,s,i;(n=this._last,t=n.generatedLine,o=e.generatedLine,s=n.generatedColumn,i=e.generatedColumn,o>t||o==t&&i>=s||0>=r.compareByGeneratedPositionsInflated(n,e))?this._last=e:this._sorted=!1,this._array.push(e)}toArray(){return this._sorted||(this._array.sort(r.compareByGeneratedPositionsInflated),this._sorted=!0),this._array}}},"./source-map/lib/read-wasm.js":function(e,n,t){"use strict";let r=t("fs"),o=t("path");e.exports=function(){return new Promise((e,n)=>{let t=o.join(__dirname,"mappings.wasm");r.readFile(t,null,(t,r)=>{t?n(t):e(r.buffer)})})},e.exports.initialize=e=>{console.debug("SourceMapConsumer.initialize is a no-op when running in node.js")}},"./source-map/lib/source-map-consumer.js":function(e,n,t){let r=t("./source-map/lib/util.js"),o=t("./source-map/lib/binary-search.js"),s=t("./source-map/lib/array-set.js").ArraySet;t("./source-map/lib/base64-vlq.js");let i=t("./source-map/lib/read-wasm.js"),l=t("./source-map/lib/wasm.js"),a=Symbol("smcInternal");class u{constructor(e,n){if(e==a)return Promise.resolve(this);return function(e,n){let t=e;return"string"==typeof e&&(t=r.parseSourceMapInput(e)),Promise.resolve(null!=t.sections?new g(t,n):new c(t,n))}(e,n)}static initialize(e){i.initialize(e["lib/mappings.wasm"])}static fromSourceMap(e,n){var t,r;return t=e,r=n,c.fromSourceMap(t,r)}static async with(e,n,t){let r=await new u(e,n);try{return await t(r)}finally{r.destroy()}}eachMapping(e,n,t){throw Error("Subclasses must implement eachMapping")}allGeneratedPositionsFor(e){throw Error("Subclasses must implement allGeneratedPositionsFor")}destroy(){throw Error("Subclasses must implement destroy")}}u.prototype._version=3,u.GENERATED_ORDER=1,u.ORIGINAL_ORDER=2,u.GREATEST_LOWER_BOUND=1,u.LEAST_UPPER_BOUND=2,n.SourceMapConsumer=u;class c extends u{constructor(e,n){return super(a).then(t=>{let o=e;"string"==typeof e&&(o=r.parseSourceMapInput(e));let i=r.getArg(o,"version"),a=r.getArg(o,"sources").map(String),u=r.getArg(o,"names",[]),c=r.getArg(o,"sourceRoot",null),g=r.getArg(o,"sourcesContent",null),h=r.getArg(o,"mappings"),m=r.getArg(o,"file",null),p=r.getArg(o,"x_google_ignoreList",null);if(i!=t._version)throw Error("Unsupported version: "+i);return t._sourceLookupCache=new Map,t._names=s.fromArray(u.map(String),!0),t._sources=s.fromArray(a,!0),t._absoluteSources=s.fromArray(t._sources.toArray().map(function(e){return r.computeSourceURL(c,e,n)}),!0),t.sourceRoot=c,t.sourcesContent=g,t._mappings=h,t._sourceMapURL=n,t.file=m,t.x_google_ignoreList=p,t._computedColumnSpans=!1,t._mappingsPtr=0,t._wasm=null,l().then(e=>(t._wasm=e,t))})}_findSourceIndex(e){let n=this._sourceLookupCache.get(e);if("number"==typeof n)return n;let t=r.computeSourceURL(null,e,this._sourceMapURL);if(this._absoluteSources.has(t)){let n=this._absoluteSources.indexOf(t);return this._sourceLookupCache.set(e,n),n}let o=r.computeSourceURL(this.sourceRoot,e,this._sourceMapURL);if(this._absoluteSources.has(o)){let n=this._absoluteSources.indexOf(o);return this._sourceLookupCache.set(e,n),n}return -1}static fromSourceMap(e,n){return new c(e.toString())}get sources(){return this._absoluteSources.toArray()}_getMappingsPtr(){return 0===this._mappingsPtr&&this._parseMappings(),this._mappingsPtr}_parseMappings(){let e=this._mappings,n=e.length,t=this._wasm.exports.allocate_mappings(n)>>>0,r=new Uint8Array(this._wasm.exports.memory.buffer,t,n);for(let t=0;t{null!==n.source&&(n.source=this._absoluteSources.at(n.source),null!==n.name&&(n.name=this._names.at(n.name))),this._computedColumnSpans&&null===n.lastGeneratedColumn&&(n.lastGeneratedColumn=1/0),e.call(r,n)},()=>{switch(o){case u.GENERATED_ORDER:this._wasm.exports.by_generated_location(this._getMappingsPtr());break;case u.ORIGINAL_ORDER:this._wasm.exports.by_original_location(this._getMappingsPtr());break;default:throw Error("Unknown order of iteration.")}})}allGeneratedPositionsFor(e){let n=r.getArg(e,"source"),t=r.getArg(e,"line"),o=e.column||0;if((n=this._findSourceIndex(n))<0)return[];if(t<1)throw Error("Line numbers must be >= 1");if(o<0)throw Error("Column numbers must be >= 0");let s=[];return this._wasm.withMappingCallback(e=>{let n=e.lastGeneratedColumn;this._computedColumnSpans&&null===n&&(n=1/0),s.push({line:e.generatedLine,column:e.generatedColumn,lastColumn:n})},()=>{this._wasm.exports.all_generated_locations_for(this._getMappingsPtr(),n,t-1,"column"in e,o)}),s}destroy(){0!==this._mappingsPtr&&(this._wasm.exports.free_mappings(this._mappingsPtr),this._mappingsPtr=0)}computeColumnSpans(){this._computedColumnSpans||(this._wasm.exports.compute_column_spans(this._getMappingsPtr()),this._computedColumnSpans=!0)}originalPositionFor(e){let n,t={generatedLine:r.getArg(e,"line"),generatedColumn:r.getArg(e,"column")};if(t.generatedLine<1)throw Error("Line numbers must be >= 1");if(t.generatedColumn<0)throw Error("Column numbers must be >= 0");let o=r.getArg(e,"bias",u.GREATEST_LOWER_BOUND);if(null==o&&(o=u.GREATEST_LOWER_BOUND),this._wasm.withMappingCallback(e=>n=e,()=>{this._wasm.exports.original_location_for(this._getMappingsPtr(),t.generatedLine-1,t.generatedColumn,o)}),n&&n.generatedLine===t.generatedLine){let e=r.getArg(n,"source",null);null!==e&&(e=this._absoluteSources.at(e));let t=r.getArg(n,"name",null);return null!==t&&(t=this._names.at(t)),{source:e,line:r.getArg(n,"originalLine",null),column:r.getArg(n,"originalColumn",null),name:t}}return{source:null,line:null,column:null,name:null}}hasContentsOfAllSources(){return!!this.sourcesContent&&this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(e){return null==e})}sourceContentFor(e,n){if(!this.sourcesContent)return null;let t=this._findSourceIndex(e);if(t>=0)return this.sourcesContent[t];if(n)return null;throw Error('"'+e+'" is not in the SourceMap.')}generatedPositionFor(e){let n,t=r.getArg(e,"source");if((t=this._findSourceIndex(t))<0)return{line:null,column:null,lastColumn:null};let o={source:t,originalLine:r.getArg(e,"line"),originalColumn:r.getArg(e,"column")};if(o.originalLine<1)throw Error("Line numbers must be >= 1");if(o.originalColumn<0)throw Error("Column numbers must be >= 0");let s=r.getArg(e,"bias",u.GREATEST_LOWER_BOUND);if(null==s&&(s=u.GREATEST_LOWER_BOUND),this._wasm.withMappingCallback(e=>n=e,()=>{this._wasm.exports.generated_location_for(this._getMappingsPtr(),o.source,o.originalLine-1,o.originalColumn,s)}),n&&n.source===o.source){let e=n.lastGeneratedColumn;return this._computedColumnSpans&&null===e&&(e=1/0),{line:r.getArg(n,"generatedLine",null),column:r.getArg(n,"generatedColumn",null),lastColumn:e}}return{line:null,column:null,lastColumn:null}}}c.prototype.consumer=u;class g extends u{constructor(e,n){return super(a).then(t=>{let o=e;"string"==typeof e&&(o=r.parseSourceMapInput(e));let s=r.getArg(o,"version"),i=r.getArg(o,"sections");if(s!=t._version)throw Error("Unsupported version: "+s);let l={line:-1,column:0};return Promise.all(i.map(e=>{if(e.url)throw Error("Support for url field in sections not implemented.");let t=r.getArg(e,"offset"),o=r.getArg(t,"line"),s=r.getArg(t,"column");if(o({generatedOffset:{generatedLine:o+1,generatedColumn:s+1},consumer:e}))})).then(e=>(t._sections=e,t))})}get sources(){let e=[];for(let n=0;n=0?this._sections[n]:null,o=n>=0&&n+1=0?this._sections[n]:null,o=n>=0&&n+1{let n=t.generatedOffset.generatedLine-1,r=t.generatedOffset.generatedColumn-1;return 1===e.line&&(e.column+=r,"number"==typeof e.lastColumn&&(e.lastColumn+=r)),e.lastColumn===1/0&&o&&e.line===o.generatedOffset.generatedLine&&(e.lastColumn=o.generatedOffset.generatedColumn-2),e.line+=n,e}):[]}eachMapping(e,n,t){this._sections.forEach((r,o)=>{let s=o+10?new s:this._sources,a=new s;this._mappings.unsortedForEach(function(n){if(n.source===r&&null!=n.originalLine){let r=e.originalPositionFor({line:n.originalLine,column:n.originalColumn});null!=r.source&&(n.source=r.source,null!=t&&(n.source=o.join(t,n.source)),null!=i&&(n.source=o.relative(i,n.source)),n.originalLine=r.line,n.originalColumn=r.column,null!=r.name&&(n.name=r.name))}let s=n.source;null==s||l.has(s)||l.add(s);let u=n.name;null==u||a.has(u)||a.add(u)},this),this._sources=l,this._names=a,e.sources.forEach(function(n){let r=e.sourceContentFor(n);null!=r&&(null!=t&&(n=o.join(t,n)),null!=i&&(n=o.relative(i,n)),this.setSourceContent(n,r))},this)}_validateMapping(e,n,t,r){if(n&&"number"!=typeof n.line&&"number"!=typeof n.column)throw Error("original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.");if(e&&"line"in e&&"column"in e&&e.line>0&&e.column>=0&&!n&&!t&&!r);else if(e&&"line"in e&&"column"in e&&n&&"line"in n&&"column"in n&&e.line>0&&e.column>=0&&n.line>0&&n.column>=0&&t);else throw Error("Invalid mapping: "+JSON.stringify({generated:e,source:t,original:n,name:r}))}_serializeMappings(){let e,n,t,s,i=0,l=1,a=0,u=0,c=0,g=0,h="",m=this._mappings.toArray();for(let p=0,d=m.length;p0){if(!o.compareByGeneratedPositionsInflated(n,m[p-1]))continue;e+=","}e+=r.encode(n.generatedColumn-i),i=n.generatedColumn,null!=n.source&&(s=this._sources.indexOf(n.source),e+=r.encode(s-g),g=s,e+=r.encode(n.originalLine-1-u),u=n.originalLine-1,e+=r.encode(n.originalColumn-a),a=n.originalColumn,null!=n.name&&(t=this._names.indexOf(n.name),e+=r.encode(t-c),c=t)),h+=e}return h}_generateSourcesContent(e,n){return e.map(function(e){if(!this._sourcesContents)return null;null!=n&&(e=o.relative(n,e));let t=o.toSetString(e);return Object.prototype.hasOwnProperty.call(this._sourcesContents,t)?this._sourcesContents[t]:null},this)}toJSON(){let e={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return null!=this._file&&(e.file=this._file),null!=this._sourceRoot&&(e.sourceRoot=this._sourceRoot),this._sourcesContents&&(e.sourcesContent=this._generateSourcesContent(e.sources,e.sourceRoot)),e}toString(){return JSON.stringify(this.toJSON())}}l.prototype._version=3,n.SourceMapGenerator=l},"./source-map/lib/source-node.js":function(e,n,t){let r=t("./source-map/lib/source-map-generator.js").SourceMapGenerator,o=t("./source-map/lib/util.js"),s=/(\r?\n)/,i="$$$isSourceNode$$$";class l{constructor(e,n,t,r,o){this.children=[],this.sourceContents={},this.line=null==e?null:e,this.column=null==n?null:n,this.source=null==t?null:t,this.name=null==o?null:o,this[i]=!0,null!=r&&this.add(r)}static fromStringWithSourceMap(e,n,t){let r,i=new l,a=e.split(s),u=0,c=function(){return e()+(e()||"");function e(){return u=0;n--)this.prepend(e[n]);else if(e[i]||"string"==typeof e)this.children.unshift(e);else throw TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e);return this}walk(e){let n;for(let t=0,r=this.children.length;t0){for(t=0,n=[];t=0;t--)if(36!==e.charCodeAt(t))return!1;return!0}function l(e,n){return e===n?0:null===e?1:null===n?-1:e>n?1:-1}n.toSetString=o?s:function(e){return i(e)?"$"+e:e},n.fromSetString=o?s:function(e){return i(e)?e.slice(1):e},n.compareByGeneratedPositionsInflated=function(e,n){let t=e.generatedLine-n.generatedLine;return 0!==t||0!=(t=e.generatedColumn-n.generatedColumn)||0!==(t=l(e.source,n.source))||0!=(t=e.originalLine-n.originalLine)||0!=(t=e.originalColumn-n.originalColumn)?t:l(e.name,n.name)},n.parseSourceMapInput=function(e){return JSON.parse(e.replace(/^\)]}'[^\n]*\n/,""))};let a="http:",u=`${a}//host`;function c(e){return n=>{let t=p(n),o=h(n),s=new r(n,o);e(s);let i=s.toString();return"absolute"===t?i:"scheme-relative"===t?i.slice(a.length):"path-absolute"===t?i.slice(u.length):d(o,i)}}function g(e,n){return new r(e,n).toString()}function h(e){let n=e.split("..").length-1,t=function(e,n){let t=0;for(;;){let e="p"+t++;if(-1===n.indexOf(e))return e}}(0,e),r=`${u}/`;for(let e=0;e0&&!o[o.length-1]&&o.pop();t.length>0&&o.length>0&&t[0]===o[0];)t.shift(),o.shift();return o.map(()=>"..").concat(t).join("/")+n.search+n.hash}let _=c(e=>{e.pathname=e.pathname.replace(/\/?$/,"/")}),f=c(e=>{e.href=new r(".",e.toString()).toString()}),C=c(e=>{});function b(e,n){let t=p(n),r=p(e);if(e=_(e),"absolute"===t)return g(n,void 0);if("absolute"===r)return g(n,e);if("scheme-relative"===t)return C(n);if("scheme-relative"===r)return g(n,g(e,u)).slice(a.length);if("path-absolute"===t)return C(n);if("path-absolute"===r)return g(n,g(e,u)).slice(u.length);let o=h(n+e),s=g(n,g(e,o));return d(o,s)}n.normalize=C,n.join=b,n.relative=function(e,n){let t=function(e,n){if(p(e)!==p(n))return null;let t=h(e+n),o=new r(e,t),s=new r(n,t);try{new r("",s.toString())}catch(e){return null}return s.protocol!==o.protocol||s.user!==o.user||s.password!==o.password||s.hostname!==o.hostname||s.port!==o.port?null:d(o,s)}(e,n);return"string"==typeof t?t:C(n)},n.computeSourceURL=function(e,n,t){e&&"path-absolute"===p(n)&&(n=n.replace(/^\//,""));let r=C(n||"");return e&&(r=b(e,r)),t&&(r=b(f(t),r)),r}},"./source-map/lib/wasm.js":function(e,n,t){let r=t("./source-map/lib/read-wasm.js");function o(){this.generatedLine=0,this.generatedColumn=0,this.lastGeneratedColumn=null,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}let s=null;e.exports=function(){if(s)return s;let e=[];return s=r().then(n=>WebAssembly.instantiate(n,{env:{mapping_callback(n,t,r,s,i,l,a,u,c,g){let h=new o;h.generatedLine=n+1,h.generatedColumn=t,r&&(h.lastGeneratedColumn=s-1),i&&(h.source=l,h.originalLine=a+1,h.originalColumn=u,c&&(h.name=g)),e[e.length-1](h)},start_all_generated_locations_for(){console.time("all_generated_locations_for")},end_all_generated_locations_for(){console.timeEnd("all_generated_locations_for")},start_compute_column_spans(){console.time("compute_column_spans")},end_compute_column_spans(){console.timeEnd("compute_column_spans")},start_generated_location_for(){console.time("generated_location_for")},end_generated_location_for(){console.timeEnd("generated_location_for")},start_original_location_for(){console.time("original_location_for")},end_original_location_for(){console.timeEnd("original_location_for")},start_parse_mappings(){console.time("parse_mappings")},end_parse_mappings(){console.timeEnd("parse_mappings")},start_sort_by_generated_location(){console.time("sort_by_generated_location")},end_sort_by_generated_location(){console.timeEnd("sort_by_generated_location")},start_sort_by_original_location(){console.time("sort_by_original_location")},end_sort_by_original_location(){console.timeEnd("sort_by_original_location")}}})).then(n=>({exports:n.instance.exports,withMappingCallback:(n,t)=>{e.push(n);try{t()}finally{e.pop()}}})).then(null,e=>{throw s=null,e})}},fs:function(e){"use strict";e.exports=require("fs")},path:function(e){"use strict";e.exports=require("path")},url:function(e){"use strict";e.exports=require("url")}},n={};function t(r){var o=n[r];if(void 0!==o)return o.exports;var s=n[r]={exports:{}};return e[r](s,s.exports,t),s.exports}var r={};r.SourceMapGenerator=t("./source-map/lib/source-map-generator.js").SourceMapGenerator,r.SourceMapConsumer=t("./source-map/lib/source-map-consumer.js").SourceMapConsumer,r.SourceNode=t("./source-map/lib/source-node.js").SourceNode,module.exports=r})(); \ No newline at end of file diff --git a/packages/node_modules/source-map/lib/util/index.js b/packages/node_modules/source-map/lib/util/index.js index f2db96ba961..7759c2d8191 100644 --- a/packages/node_modules/source-map/lib/util/index.js +++ b/packages/node_modules/source-map/lib/util/index.js @@ -1 +1 @@ -(()=>{var e={921:function(e,t,r){"use strict";e.exports="function"==typeof URL?URL:r(7016).URL},7016:function(e){"use strict";e.exports=require("url")}},t={},r={};(()=>{let n=function r(n){var o=t[n];if(void 0!==o)return o.exports;var i=t[n]={exports:{}};return e[n](i,i.exports,r),i.exports}(921);r.getArg=function(e,t,r){if(t in e)return e[t];if(3==arguments.length)return r;throw Error('"'+t+'" is a required argument.')};let o=!("__proto__"in Object.create(null));function i(e){return e}function u(e){if(!e)return!1;let t=e.length;if(t<9||95!==e.charCodeAt(t-1)||95!==e.charCodeAt(t-2)||111!==e.charCodeAt(t-3)||116!==e.charCodeAt(t-4)||111!==e.charCodeAt(t-5)||114!==e.charCodeAt(t-6)||112!==e.charCodeAt(t-7)||95!==e.charCodeAt(t-8)||95!==e.charCodeAt(t-9))return!1;for(let r=t-10;r>=0;r--)if(36!==e.charCodeAt(r))return!1;return!0}function l(e,t){return e===t?0:null===e?1:null===t?-1:e>t?1:-1}r.toSetString=o?i:function(e){return u(e)?"$"+e:e},r.fromSetString=o?i:function(e){return u(e)?e.slice(1):e},r.compareByGeneratedPositionsInflated=function(e,t){let r=e.generatedLine-t.generatedLine;return 0!==r||0!=(r=e.generatedColumn-t.generatedColumn)||0!==(r=l(e.source,t.source))||0!=(r=e.originalLine-t.originalLine)||0!=(r=e.originalColumn-t.originalColumn)?r:l(e.name,t.name)},r.parseSourceMapInput=function(e){return JSON.parse(e.replace(/^\)]}'[^\n]*\n/,""))};let a="http:",c=`${a}//host`;function s(e){return t=>{let r=g(t),o=h(t),i=new n(t,o);e(i);let u=i.toString();return"absolute"===r?u:"scheme-relative"===r?u.slice(a.length):"path-absolute"===r?u.slice(c.length):d(o,u)}}function f(e,t){return new n(e,t).toString()}function h(e){let t=e.split("..").length-1,r=function(e,t){let r=0;for(;;){let e="p"+r++;if(-1===t.indexOf(e))return e}}(0,e),n=`${c}/`;for(let e=0;e0&&!o[o.length-1]&&o.pop();r.length>0&&o.length>0&&r[0]===o[0];)r.shift(),o.shift();return o.map(()=>"..").concat(r).join("/")+t.search+t.hash}let m=s(e=>{e.pathname=e.pathname.replace(/\/?$/,"/")}),C=s(e=>{e.href=new n(".",e.toString()).toString()}),A=s(e=>{});function S(e,t){let r=g(t),n=g(e);if(e=m(e),"absolute"===r)return f(t,void 0);if("absolute"===n)return f(t,e);if("scheme-relative"===r)return A(t);if("scheme-relative"===n)return f(t,f(e,c)).slice(a.length);if("path-absolute"===r)return A(t);if("path-absolute"===n)return f(t,f(e,c)).slice(c.length);let o=h(t+e),i=f(t,f(e,o));return d(o,i)}r.normalize=A,r.join=S,r.relative=function(e,t){let r=function(e,t){if(g(e)!==g(t))return null;let r=h(e+t),o=new n(e,r),i=new n(t,r);try{new n("",i.toString())}catch(e){return null}return i.protocol!==o.protocol||i.user!==o.user||i.password!==o.password||i.hostname!==o.hostname||i.port!==o.port?null:d(o,i)}(e,t);return"string"==typeof r?r:A(t)},r.computeSourceURL=function(e,t,r){e&&"path-absolute"===g(t)&&(t=t.replace(/^\//,""));let n=A(t||"");return e&&(n=S(e,n)),r&&(n=S(C(r),n)),n}})(),module.exports=r})(); \ No newline at end of file +(()=>{var e={"./source-map/lib/url.js":function(e,t,r){"use strict";e.exports="function"==typeof URL?URL:r("url").URL},url:function(e){"use strict";e.exports=require("url")}},t={},r={};(()=>{let n=function r(n){var o=t[n];if(void 0!==o)return o.exports;var u=t[n]={exports:{}};return e[n](u,u.exports,r),u.exports}("./source-map/lib/url.js");r.getArg=function(e,t,r){if(t in e)return e[t];if(3==arguments.length)return r;throw Error('"'+t+'" is a required argument.')};let o=!("__proto__"in Object.create(null));function u(e){return e}function i(e){if(!e)return!1;let t=e.length;if(t<9||95!==e.charCodeAt(t-1)||95!==e.charCodeAt(t-2)||111!==e.charCodeAt(t-3)||116!==e.charCodeAt(t-4)||111!==e.charCodeAt(t-5)||114!==e.charCodeAt(t-6)||112!==e.charCodeAt(t-7)||95!==e.charCodeAt(t-8)||95!==e.charCodeAt(t-9))return!1;for(let r=t-10;r>=0;r--)if(36!==e.charCodeAt(r))return!1;return!0}function l(e,t){return e===t?0:null===e?1:null===t?-1:e>t?1:-1}r.toSetString=o?u:function(e){return i(e)?"$"+e:e},r.fromSetString=o?u:function(e){return i(e)?e.slice(1):e},r.compareByGeneratedPositionsInflated=function(e,t){let r=e.generatedLine-t.generatedLine;return 0!==r||0!=(r=e.generatedColumn-t.generatedColumn)||0!==(r=l(e.source,t.source))||0!=(r=e.originalLine-t.originalLine)||0!=(r=e.originalColumn-t.originalColumn)?r:l(e.name,t.name)},r.parseSourceMapInput=function(e){return JSON.parse(e.replace(/^\)]}'[^\n]*\n/,""))};let a="http:",c=`${a}//host`;function s(e){return t=>{let r=g(t),o=h(t),u=new n(t,o);e(u);let i=u.toString();return"absolute"===r?i:"scheme-relative"===r?i.slice(a.length):"path-absolute"===r?i.slice(c.length):m(o,i)}}function f(e,t){return new n(e,t).toString()}function h(e){let t=e.split("..").length-1,r=function(e,t){let r=0;for(;;){let e="p"+r++;if(-1===t.indexOf(e))return e}}(0,e),n=`${c}/`;for(let e=0;e0&&!o[o.length-1]&&o.pop();r.length>0&&o.length>0&&r[0]===o[0];)r.shift(),o.shift();return o.map(()=>"..").concat(r).join("/")+t.search+t.hash}let d=s(e=>{e.pathname=e.pathname.replace(/\/?$/,"/")}),C=s(e=>{e.href=new n(".",e.toString()).toString()}),b=s(e=>{});function A(e,t){let r=g(t),n=g(e);if(e=d(e),"absolute"===r)return f(t,void 0);if("absolute"===n)return f(t,e);if("scheme-relative"===r)return b(t);if("scheme-relative"===n)return f(t,f(e,c)).slice(a.length);if("path-absolute"===r)return b(t);if("path-absolute"===n)return f(t,f(e,c)).slice(c.length);let o=h(t+e),u=f(t,f(e,o));return m(o,u)}r.normalize=b,r.join=A,r.relative=function(e,t){let r=function(e,t){if(g(e)!==g(t))return null;let r=h(e+t),o=new n(e,r),u=new n(t,r);try{new n("",u.toString())}catch(e){return null}return u.protocol!==o.protocol||u.user!==o.user||u.password!==o.password||u.hostname!==o.hostname||u.port!==o.port?null:m(o,u)}(e,t);return"string"==typeof r?r:b(t)},r.computeSourceURL=function(e,t,r){e&&"path-absolute"===g(t)&&(t=t.replace(/^\//,""));let n=b(t||"");return e&&(n=A(e,n)),r&&(n=A(C(r),n)),n}})(),module.exports=r})(); \ No newline at end of file diff --git a/packages/node_modules/tlhunter-sorted-set/index.js b/packages/node_modules/tlhunter-sorted-set/index.js index 9d90b7ee47d..5a2f601044b 100644 --- a/packages/node_modules/tlhunter-sorted-set/index.js +++ b/packages/node_modules/tlhunter-sorted-set/index.js @@ -1 +1 @@ -(()=>{var e={258:function(e){e.exports=function(e){let t,n,r,l,i,h,s;if(!e.length)return[];for(i=e.length-1;i>=0;i--){if(!e[i].length)return[];e[i]=e[i]._head.next[0].next}if(1===e.length)return e[0].toArray({field:"key"});if(2===e.length)return function(e,t){let n=Object.create(null),r=[];for(;e;e=e.next[0].next)n[e.key]=!0;for(;t;t=t.next[0].next)n[t.key]&&r.push(t.key);return r}(e[0],e[1]);if(3===e.length)return function(e,t,n){let r=Object.create(null),l=[];for(;e;e=e.next[0].next)r[e.key]=0;for(;t;t=t.next[0].next)0===r[t.key]&&(r[t.key]=1);for(;n;n=n.next[0].next)1===r[n.key]&&l.push(n.key);return l}(e[0],e[1],e[2]);for(r=Object.create(null),n=e.shift();n;n=n.next[0].next)r[n.key]=0;for(i=0,s=e.length-1;i=this._tail.value)return this.length;if(tthis._tail.value||t=0;n-=1)for(;r.next[n].next&&r.next[n].next.value<=t;)l+=r.next[n].span,r=r.next[n].next;return l&&l+1}del(e){return this.rem(e)}empty(){this.length=0,this._level=1,this._map=new Map,this._head=new u(32,null,0),this._tail=null;for(let e=0;e<32;e+=1)this._head.next[e]=new s(null,0)}get(e){return this.score(e)}has(e){return this._map.has(e)}incrBy(e,t){let n=this.score(t);return n?(this.add(t,n+e),n+e):(this.add(t,e),e)}intersect(){let e=l.call(arguments);return e.unshift(this),r.call(this,e)}intersectKeys(){let e=l.call(arguments);return e.unshift(this),intersectKeys.call(this,e)}keys(){let e;if(!this.length)return[];let t=Array(this.length),n=this._head.next[0].next;for(e=0;n;n=n.next[0].next)t[e]=n.key,e+=1;return t}range(e,t,n){let r;if(0===this.length||(null==e?e=0:e<0&&(e=Math.max(this.length+e,0)),null==t?t=this.length-1:t<0&&(t=this.length+t),e>t||e>=this.length))return[];t>=this.length&&(t=this.length-1),"object"!=typeof n&&(n={withScores:!1});let l=0,i=t-e+1;try{r=Array(i)}catch(n){throw console.log("start",e),console.log("stop",t),console.log("Invalid length",i),n}let h=e>0?this._get(e):this._head.next[0].next;if(n.withScores)for(;i--;h=h.next[0].next)r[l]=[h.key,h.value],l+=1;else for(;i--;h=h.next[0].next)r[l]=h.key,l+=1;return r}rangeByScore(e,t,n){if(!this.length)return[];if("object"!=typeof n&&(n={withScores:!1}),null==e&&(e=-1/0),null==t&&(t=1/0),e<=this._head.next[0].next.value&&t>=this._tail.value)return this.toArray({withScores:n.withScores});if(tthis._tail.value||t=0;t-=1){for(;(l=r.next[t].next)&&(l.valuet||e>=l))return 0;if(t>l&&(t=l),0===e&&t===l)return this.empty(),l;let i=this._head,h=Array(32),s=-1;for(n=this._level-1;n>=0;n-=1){for(;(r=i.next[n].next)&&s+i.next[n].span=this._tail.value)return l=this.length,this.empty(),l;let i=this._head,h=Array(32);for(r=this._level-1;r>=0;r-=1){for(;(n=i.next[r].next)&&n.value=0;r-=1)for(;(n=t.next[r].next)&&n.value=0;t-=1){for(;n.next[t].next&&r+n.next[t].span<=e;)r+=n.next[t].span,n=n.next[t].next;if(r===e)return n}return null}_insert(e,t){let n,r=Array(32),l=Array(32),h=this._head,a=null;for(n=this._level-1;n>=0;n-=1){for(l[n]=n===this._level-1?0:l[n+1];(a=h.next[n].next)&&a.value<=t;){if(a.value===t){if(this._unique)return null;if(a.key>=e)break}l[n]+=h.next[n].span,h=a}if(this._unique&&h.value===t)return null;r[n]=h}if(this._unique&&h.value===t)return null;let x=function(){let e=1;for(;Math.random()this._level){for(n=this._level;n=0;r-=1){for(;(n=t.next[r].next)&&n.value=0;n-=1){for(;(r=i.next[n].next)&&(r.value1&&!this._head.next[this._level-1].next;)this._level-=1}}function s(e,t){this.next=e,this.span=t}function u(e,t,n){this.key=t,this.value=n,this.next=Array(e),this.prev=null}e.exports=h}},t={},n=function n(r){var l=t[r];if(void 0!==l)return l.exports;var i=t[r]={exports:{}};return e[r](i,i.exports,n),i.exports}(4179);module.exports=n})(); \ No newline at end of file +(()=>{var e={"./tlhunter-sorted-set/lib/intersect.js":function(e){e.exports=function(e){let t,n,r,l,i,s,h;if(!e.length)return[];for(i=e.length-1;i>=0;i--){if(!e[i].length)return[];e[i]=e[i]._head.next[0].next}if(1===e.length)return e[0].toArray({field:"key"});if(2===e.length)return function(e,t){let n=Object.create(null),r=[];for(;e;e=e.next[0].next)n[e.key]=!0;for(;t;t=t.next[0].next)n[t.key]&&r.push(t.key);return r}(e[0],e[1]);if(3===e.length)return function(e,t,n){let r=Object.create(null),l=[];for(;e;e=e.next[0].next)r[e.key]=0;for(;t;t=t.next[0].next)0===r[t.key]&&(r[t.key]=1);for(;n;n=n.next[0].next)1===r[n.key]&&l.push(n.key);return l}(e[0],e[1],e[2]);for(r=Object.create(null),n=e.shift();n;n=n.next[0].next)r[n.key]=0;for(i=0,h=e.length-1;i=this._tail.value)return this.length;if(tthis._tail.value||t=0;n-=1)for(;r.next[n].next&&r.next[n].next.value<=t;)l+=r.next[n].span,r=r.next[n].next;return l&&l+1}del(e){return this.rem(e)}empty(){this.length=0,this._level=1,this._map=new Map,this._head=new u(32,null,0),this._tail=null;for(let e=0;e<32;e+=1)this._head.next[e]=new h(null,0)}get(e){return this.score(e)}has(e){return this._map.has(e)}incrBy(e,t){let n=this.score(t);return n?(this.add(t,n+e),n+e):(this.add(t,e),e)}intersect(){let e=l.call(arguments);return e.unshift(this),r.call(this,e)}intersectKeys(){let e=l.call(arguments);return e.unshift(this),intersectKeys.call(this,e)}keys(){let e;if(!this.length)return[];let t=Array(this.length),n=this._head.next[0].next;for(e=0;n;n=n.next[0].next)t[e]=n.key,e+=1;return t}range(e,t,n){let r;if(0===this.length||(null==e?e=0:e<0&&(e=Math.max(this.length+e,0)),null==t?t=this.length-1:t<0&&(t=this.length+t),e>t||e>=this.length))return[];t>=this.length&&(t=this.length-1),"object"!=typeof n&&(n={withScores:!1});let l=0,i=t-e+1;try{r=Array(i)}catch(n){throw console.log("start",e),console.log("stop",t),console.log("Invalid length",i),n}let s=e>0?this._get(e):this._head.next[0].next;if(n.withScores)for(;i--;s=s.next[0].next)r[l]=[s.key,s.value],l+=1;else for(;i--;s=s.next[0].next)r[l]=s.key,l+=1;return r}rangeByScore(e,t,n){if(!this.length)return[];if("object"!=typeof n&&(n={withScores:!1}),null==e&&(e=-1/0),null==t&&(t=1/0),e<=this._head.next[0].next.value&&t>=this._tail.value)return this.toArray({withScores:n.withScores});if(tthis._tail.value||t=0;t-=1){for(;(l=r.next[t].next)&&(l.valuet||e>=l))return 0;if(t>l&&(t=l),0===e&&t===l)return this.empty(),l;let i=this._head,s=Array(32),h=-1;for(n=this._level-1;n>=0;n-=1){for(;(r=i.next[n].next)&&h+i.next[n].span=this._tail.value)return l=this.length,this.empty(),l;let i=this._head,s=Array(32);for(r=this._level-1;r>=0;r-=1){for(;(n=i.next[r].next)&&n.value=0;r-=1)for(;(n=t.next[r].next)&&n.value=0;t-=1){for(;n.next[t].next&&r+n.next[t].span<=e;)r+=n.next[t].span,n=n.next[t].next;if(r===e)return n}return null}_insert(e,t){let n,r=Array(32),l=Array(32),s=this._head,a=null;for(n=this._level-1;n>=0;n-=1){for(l[n]=n===this._level-1?0:l[n+1];(a=s.next[n].next)&&a.value<=t;){if(a.value===t){if(this._unique)return null;if(a.key>=e)break}l[n]+=s.next[n].span,s=a}if(this._unique&&s.value===t)return null;r[n]=s}if(this._unique&&s.value===t)return null;let x=function(){let e=1;for(;Math.random()this._level){for(n=this._level;n=0;r-=1){for(;(n=t.next[r].next)&&n.value=0;n-=1){for(;(r=i.next[n].next)&&(r.value1&&!this._head.next[this._level-1].next;)this._level-=1}}function h(e,t){this.next=e,this.span=t}function u(e,t,n){this.key=t,this.value=n,this.next=Array(e),this.prev=null}e.exports=s}},t={},n=function n(r){var l=t[r];if(void 0!==l)return l.exports;var i=t[r]={exports:{}};return e[r](i,i.exports,n),i.exports}("./tlhunter-sorted-set/lib/set.js");module.exports=n})(); \ No newline at end of file diff --git a/packages/node_modules/ttl-set/index.js b/packages/node_modules/ttl-set/index.js index 137f3740c72..22ff141d24e 100644 --- a/packages/node_modules/ttl-set/index.js +++ b/packages/node_modules/ttl-set/index.js @@ -1 +1 @@ -(()=>{var t={4045:function(t){t.exports=class{constructor(t){if(!(t>0)||(t-1&t)!=0)throw Error("Max size for a FixedFIFO should be a power of two");this.buffer=Array(t),this.mask=t-1,this.top=0,this.btm=0,this.next=null}clear(){this.top=this.btm=0,this.next=null,this.buffer.fill(void 0)}push(t){return void 0===this.buffer[this.top]&&(this.buffer[this.top]=t,this.top=this.top+1&this.mask,!0)}shift(){let t=this.buffer[this.btm];if(void 0!==t)return this.buffer[this.btm]=void 0,this.btm=this.btm+1&this.mask,t}peek(){return this.buffer[this.btm]}isEmpty(){return void 0===this.buffer[this.btm]}}},369:function(t,i,s){let e=s(4045);t.exports=class{constructor(t){this.hwm=t||16,this.head=new e(this.hwm),this.tail=this.head,this.length=0}clear(){this.head=this.tail,this.head.clear(),this.length=0}push(t){if(this.length++,!this.head.push(t)){let i=this.head;this.head=i.next=new e(2*this.head.buffer.length),this.head.push(t)}}shift(){0!==this.length&&this.length--;let t=this.tail.shift();if(void 0===t&&this.tail.next){let t=this.tail.next;return this.tail.next=null,this.tail=t,this.tail.shift()}return t}peek(){let t=this.tail.peek();return void 0===t&&this.tail.next?this.tail.next.peek():t}isEmpty(){return 0===this.length}}},3811:function(t,i,s){"use strict";let e=s(369);t.exports=class{constructor(t){this._ttl=t,this._list=new e,this._index=new Set,this._timer=null}add(t){this._index.add(t),this._list.push([Date.now(),t]),null===this._timer&&(this._timer=setTimeout(this._prune.bind(this),this._ttl).unref())}clear(){this._list.clear(),this._index.clear(),clearTimeout(this._timer),this._timer=null}has(t){return this._index.has(t)}get size(){return this._index.size}_prune(){for(;;){let t=this._list.peek();if(void 0===t){this._timer=null;return}if(t[0]>Date.now()-this._ttl)break;let i=this._list.shift();this._index.delete(i[1])}this._timer=setTimeout(this._prune.bind(this),Date.now()-this._list.peek()[0]).unref()}}}},i={},s=function s(e){var h=i[e];if(void 0!==h)return h.exports;var r=i[e]={exports:{}};return t[e](r,r.exports,s),r.exports}(3811);module.exports=s})(); \ No newline at end of file +(()=>{var t={"./fast-fifo/fixed-size.js":function(t){t.exports=class{constructor(t){if(!(t>0)||(t-1&t)!=0)throw Error("Max size for a FixedFIFO should be a power of two");this.buffer=Array(t),this.mask=t-1,this.top=0,this.btm=0,this.next=null}clear(){this.top=this.btm=0,this.next=null,this.buffer.fill(void 0)}push(t){return void 0===this.buffer[this.top]&&(this.buffer[this.top]=t,this.top=this.top+1&this.mask,!0)}shift(){let t=this.buffer[this.btm];if(void 0!==t)return this.buffer[this.btm]=void 0,this.btm=this.btm+1&this.mask,t}peek(){return this.buffer[this.btm]}isEmpty(){return void 0===this.buffer[this.btm]}}},"./fast-fifo/index.js":function(t,i,s){let e=s("./fast-fifo/fixed-size.js");t.exports=class{constructor(t){this.hwm=t||16,this.head=new e(this.hwm),this.tail=this.head,this.length=0}clear(){this.head=this.tail,this.head.clear(),this.length=0}push(t){if(this.length++,!this.head.push(t)){let i=this.head;this.head=i.next=new e(2*this.head.buffer.length),this.head.push(t)}}shift(){0!==this.length&&this.length--;let t=this.tail.shift();if(void 0===t&&this.tail.next){let t=this.tail.next;return this.tail.next=null,this.tail=t,this.tail.shift()}return t}peek(){let t=this.tail.peek();return void 0===t&&this.tail.next?this.tail.next.peek():t}isEmpty(){return 0===this.length}}},"./ttl-set/index.js":function(t,i,s){"use strict";let e=s("./fast-fifo/index.js");t.exports=class{constructor(t){this._ttl=t,this._list=new e,this._index=new Set,this._timer=null}add(t){this._index.add(t),this._list.push([Date.now(),t]),null===this._timer&&(this._timer=setTimeout(this._prune.bind(this),this._ttl).unref())}clear(){this._list.clear(),this._index.clear(),clearTimeout(this._timer),this._timer=null}has(t){return this._index.has(t)}get size(){return this._index.size}_prune(){for(;;){let t=this._list.peek();if(void 0===t){this._timer=null;return}if(t[0]>Date.now()-this._ttl)break;let i=this._list.shift();this._index.delete(i[1])}this._timer=setTimeout(this._prune.bind(this),Date.now()-this._list.peek()[0]).unref()}}}},i={},s=function s(e){var h=i[e];if(void 0!==h)return h.exports;var r=i[e]={exports:{}};return t[e](r,r.exports,s),r.exports}("./ttl-set/index.js");module.exports=s})(); \ No newline at end of file diff --git a/vendor/rspack.config.js b/vendor/rspack.config.js index d7f24389eac..d09e067850c 100644 --- a/vendor/rspack.config.js +++ b/vendor/rspack.config.js @@ -22,6 +22,10 @@ module.exports = { mode: 'production', devtool: false, context: join(__dirname, 'node_modules'), + optimization: { + checkIds: 'named', + moduleIds: 'named', + }, externals: { '@opentelemetry/api': '@opentelemetry/api' }, From bb4bd1a438ace6e4b3cc523f9dc87e547ca353e6 Mon Sep 17 00:00:00 2001 From: Roch Devost Date: Wed, 3 Dec 2025 21:43:45 -0500 Subject: [PATCH 57/95] isolate graphql --- vendor/package.json | 1 - 1 file changed, 1 deletion(-) diff --git a/vendor/package.json b/vendor/package.json index 9068a783ff8..0c465f3cd96 100644 --- a/vendor/package.json +++ b/vendor/package.json @@ -12,7 +12,6 @@ "@opentelemetry/resources": ">=1.0.0 <1.31.0", "crypto-randomuuid": "^1.0.0", "escape-string-regexp": "^5.0.0", - "graphql": "^16.12.0", "ignore": "^7.0.5", "istanbul-lib-coverage": "^3.2.2", "jest-docblock": "^29.7.0", From da3eeb58a65d36b7da09e011130bbb2d5a30874a Mon Sep 17 00:00:00 2001 From: Roch Devost Date: Wed, 3 Dec 2025 21:48:09 -0500 Subject: [PATCH 58/95] frozen lockfile --- .github/workflows/platform.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/platform.yml b/.github/workflows/platform.yml index f42ad773ef6..f042083b13f 100644 --- a/.github/workflows/platform.yml +++ b/.github/workflows/platform.yml @@ -65,7 +65,7 @@ jobs: steps: - uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0 - uses: ./.github/actions/node/active-lts - - run: yarn + - run: yarn --frozen-lockfile working-directory: vendor - run: git diff --exit-code From fb21632adbfa7748e12d43b993563a76d24307ca Mon Sep 17 00:00:00 2001 From: Roch Devost Date: Wed, 3 Dec 2025 21:51:09 -0500 Subject: [PATCH 59/95] forgot to run yarn --- packages/node_modules/graphql/LICENSE | 21 ----- packages/node_modules/graphql/index.js | 121 ------------------------- vendor/yarn.lock | 5 - 3 files changed, 147 deletions(-) delete mode 100644 packages/node_modules/graphql/LICENSE delete mode 100644 packages/node_modules/graphql/index.js diff --git a/packages/node_modules/graphql/LICENSE b/packages/node_modules/graphql/LICENSE deleted file mode 100644 index 7bbf892a049..00000000000 --- a/packages/node_modules/graphql/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright (c) GraphQL Contributors - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/packages/node_modules/graphql/index.js b/packages/node_modules/graphql/index.js deleted file mode 100644 index 3d29c46fd32..00000000000 --- a/packages/node_modules/graphql/index.js +++ /dev/null @@ -1,121 +0,0 @@ -(()=>{"use strict";let e;var t,n,r,i,o,a,s,l,u,c,p,d,f,h,m,y={};y.d=(e,t)=>{for(var n in t)y.o(t,n)&&!y.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},y.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),y.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var E={};y.r(E),y.d(E,{VariablesAreInputTypesRule:()=>rP,SingleFieldSubscriptionsRule:()=>rb,UniqueVariableNamesRule:()=>rU,GraphQLDeprecatedDirective:()=>t4,GraphQLNonNull:()=>tc,__InputValue:()=>ns,createSourceEventStream:()=>ih,execute:()=>r1,isDefinitionNode:()=>nk,isInterfaceType:()=>eH,isRequiredArgument:()=>tw,isValidNameError:()=>iH,parseValue:()=>el,valueFromAST:()=>rm,NoUnusedVariablesRule:()=>n2,__DirectiveLocation:()=>ni,findDangerousChanges:()=>iZ,__TypeKind:()=>nu,isSchema:()=>nm,UniqueTypeNamesRule:()=>rV,NoSchemaIntrospectionCustomRule:()=>iE,defaultTypeResolver:()=>io,isType:()=>eQ,syntaxError:()=>$,version:()=>T,UniqueFragmentNamesRule:()=>r$,assertWrappingType:()=>td,getNullableType:()=>tm,isObjectType:()=>eX,visitWithTypeInfo:()=>nR,assertEnumValueName:()=>eY,printSchema:()=>ix,validate:()=>rX,BREAK:()=>eR,assertNonNullType:()=>e6,assertNullableType:()=>th,executeSync:()=>r2,isLeafType:()=>tr,resolveSchemaCoordinate:()=>i9,assertOutputType:()=>tn,buildASTSchema:()=>iS,astFromValue:()=>ne,Kind:()=>p,ProvidedRequiredArgumentsRule:()=>ra,UniqueDirectiveNamesRule:()=>rw,KnownDirectivesRule:()=>nq,DEFAULT_DEPRECATION_REASON:()=>t3,TypeKind:()=>f,assertInterfaceType:()=>eW,isValueNode:()=>nx,GraphQLSpecifiedByDirective:()=>t9,GraphQLFloat:()=>tQ,UniqueFieldDefinitionNamesRule:()=>rL,LoneAnonymousOperationRule:()=>nz,VariablesInAllowedPositionRule:()=>rG,assertInputType:()=>te,formatError:()=>L,assertInputObjectType:()=>e4,isOutputType:()=>tt,isWrappingType:()=>tp,assertLeafType:()=>ti,assertValidSchema:()=>nN,FragmentsOnCompositeTypesRule:()=>nB,graphql:()=>il,UniqueOperationTypesRule:()=>rC,parseSchemaCoordinate:()=>ep,UniqueEnumValueNamesRule:()=>rk,isNonNullType:()=>e8,isSelectionNode:()=>n$,printError:()=>k,specifiedDirectives:()=>t8,visit:()=>ek,GraphQLScalarType:()=>tI,assertEnumType:()=>e2,UniqueDirectivesPerLocationRule:()=>rR,assertName:()=>eB,getDirectiveValues:()=>rv,isConstValueNode:()=>function e(t){return nx(t)&&(t.kind===p.LIST?t.values.some(e):t.kind===p.OBJECT?t.fields.some(t=>e(t.value)):t.kind!==p.VARIABLE)},isEqualType:()=>tM,isNamedType:()=>ty,isTypeDefinitionNode:()=>nV,validateSchema:()=>nv,parse:()=>es,__Schema:()=>nn,isTypeSystemDefinitionNode:()=>nC,valueFromASTUntyped:()=>eG,LoneSchemaDefinitionRule:()=>nH,isTypeSubTypeOf:()=>tj,UniqueArgumentNamesRule:()=>rS,UniqueInputFieldNamesRule:()=>rx,locatedError:()=>rZ,typeFromAST:()=>nA,printLocation:()=>D,assertUnionType:()=>e0,separateOperations:()=>iJ,getVariableValues:()=>rE,Location:()=>x,GraphQLObjectType:()=>tg,UniqueArgumentDefinitionNamesRule:()=>rA,stripIgnoredCharacters:()=>iX,GRAPHQL_MAX_INT:()=>tG,visitInParallel:()=>eL,parseType:()=>ec,isTypeNode:()=>nF,PossibleTypeExtensionsRule:()=>ri,graphqlSync:()=>iu,isSchemaCoordinateNode:()=>nj,DirectiveLocation:()=>c,TypeNameMetaFieldDef:()=>nd,coerceInputValue:()=>rf,GraphQLInt:()=>tY,resolveObjMapThunk:()=>tN,GraphQLInterfaceType:()=>tR,UniqueOperationNamesRule:()=>rF,GraphQLSkipDirective:()=>t2,isEnumType:()=>e1,assertValidName:()=>iz,buildClientSchema:()=>ig,KnownArgumentNamesRule:()=>nY,ValuesOfCorrectTypeRule:()=>rM,isInputObjectType:()=>e3,GraphQLID:()=>tK,NoUnusedFragmentsRule:()=>n1,isUnionType:()=>eZ,isSpecifiedScalarType:()=>tz,getArgumentValues:()=>rT,printSourceLocation:()=>A,__EnumValue:()=>nl,getOperationAST:()=>iv,isExecutableDefinitionNode:()=>nL,isAbstractType:()=>ts,assertAbstractType:()=>tl,isTypeExtensionNode:()=>nM,GraphQLInputObjectType:()=>tC,getNamedType:()=>tT,parseConstValue:()=>eu,KnownFragmentNamesRule:()=>nJ,isListType:()=>e9,Lexer:()=>Q,isSpecifiedDirective:()=>t6,responsePathAsArray:()=>rd,isDirective:()=>tW,TypeInfo:()=>nS,assertScalarType:()=>eK,extendSchema:()=>i_,isIntrospectionType:()=>nh,print:()=>eF,getIntrospectionQuery:()=>iT,GraphQLBoolean:()=>tJ,KnownTypeNamesRule:()=>nK,assertListType:()=>e5,concatAST:()=>iq,NoDeprecatedCustomRule:()=>iy,defaultFieldResolver:()=>ia,GraphQLDirective:()=>t0,getLocation:()=>b,TypeMetaFieldDef:()=>np,GRAPHQL_MIN_INT:()=>tB,GraphQLIncludeDirective:()=>t1,ScalarLeafsRule:()=>ru,assertSchema:()=>ny,lexicographicSortSchema:()=>iR,GraphQLList:()=>tu,isTypeSystemExtensionNode:()=>nU,specifiedScalarTypes:()=>tX,BreakingChangeType:()=>h,ExecutableDefinitionsRule:()=>nP,assertDirective:()=>tZ,__Field:()=>na,getVisitFn:()=>ex,recommendedRules:()=>rB,SchemaMetaFieldDef:()=>nc,assertCompositeType:()=>ta,isRequiredInputField:()=>tU,Token:()=>F,specifiedRules:()=>rY,DangerousChangeType:()=>m,GraphQLUnionType:()=>tk,isCompositeType:()=>to,versionInfo:()=>v,FieldsOnCorrectTypeRule:()=>nG,GraphQLString:()=>tq,assertType:()=>eq,introspectionFromSchema:()=>iI,doTypesOverlap:()=>tP,GraphQLEnumType:()=>t$,resolveReadonlyArrayThunk:()=>tv,GraphQLOneOfDirective:()=>t5,NoFragmentCyclesRule:()=>nZ,findBreakingChanges:()=>iW,ValidationContext:()=>rK,OverlappingFieldsCanBeMergedRule:()=>n4,isScalarType:()=>eJ,MaxIntrospectionDepthRule:()=>nW,NoUndefinedVariablesRule:()=>n0,assertObjectType:()=>ez,getOperationRootType:()=>iN,printType:()=>iU,OperationTypeNode:()=>u,isInputType:()=>e7,__Directive:()=>nr,GraphQLSchema:()=>nE,Source:()=>ea,resolveASTSchemaCoordinate:()=>i5,GraphQLError:()=>w,assertNamedType:()=>tE,buildSchema:()=>iw,introspectionTypes:()=>nf,PossibleFragmentSpreadsRule:()=>rr,__Type:()=>no,getEnterLeaveForKind:()=>e$,TokenKind:()=>d,printIntrospectionSchema:()=>iF,isNullableType:()=>tf,subscribe:()=>id});let T="16.12.0",v=Object.freeze({major:16,minor:12,patch:0,preReleaseTag:null});function N(e,t){if(!e)throw Error(t)}function I(e){return"function"==typeof(null==e?void 0:e.then)}function g(e){return"object"==typeof e&&null!==e}function _(e,t){if(!e)throw Error(null!=t?t:"Unexpected invariant triggered.")}let O=/\r\n|[\n\r]/g;function b(e,t){let n=0,r=1;for(let i of e.body.matchAll(O)){if("number"==typeof i.index||_(!1),i.index>=t)break;n=i.index+i[0].length,r+=1}return{line:r,column:t+1-n}}function D(e){return A(e.source,b(e.source,e.start))}function A(e,t){let n=e.locationOffset.column-1,r="".padStart(n)+e.body,i=t.line-1,o=e.locationOffset.line-1,a=t.line+o,s=1===t.line?n:0,l=t.column+s,u=`${e.name}:${a}:${l} -`,c=r.split(/\r\n|[\n\r]/g),p=c[i];if(p.length>120){let e=Math.floor(l/80),t=[];for(let e=0;e["|",e]),["|","^".padStart(l%80)],["|",t[e+1]]])}return u+S([[`${a-1} |`,c[i-1]],[`${a} |`,p],["|","^".padStart(l)],[`${a+1} |`,c[i+1]]])}function S(e){let t=e.filter(([e,t])=>void 0!==t),n=Math.max(...t.map(([e])=>e.length));return t.map(([e,t])=>e.padStart(n)+(t?" "+t:"")).join("\n")}class w extends Error{constructor(e,...t){var n,r,i;const{nodes:o,source:a,positions:s,path:l,originalError:u,extensions:c}=function(e){let t=e[0];return null==t||"kind"in t||"length"in t?{nodes:t,source:e[1],positions:e[2],path:e[3],originalError:e[4],extensions:e[5]}:t}(t);super(e),this.name="GraphQLError",this.path=null!=l?l:void 0,this.originalError=null!=u?u:void 0,this.nodes=R(Array.isArray(o)?o:o?[o]:void 0);const p=R(null==(n=this.nodes)?void 0:n.map(e=>e.loc).filter(e=>null!=e));this.source=null!=a?a:null==p||null==(r=p[0])?void 0:r.source,this.positions=null!=s?s:null==p?void 0:p.map(e=>e.start),this.locations=s&&a?s.map(e=>b(a,e)):null==p?void 0:p.map(e=>b(e.source,e.start));const d=g(null==u?void 0:u.extensions)?null==u?void 0:u.extensions:void 0;this.extensions=null!=(i=null!=c?c:d)?i:Object.create(null),Object.defineProperties(this,{message:{writable:!0,enumerable:!0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),null!=u&&u.stack?Object.defineProperty(this,"stack",{value:u.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,w):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let e=this.message;if(this.nodes)for(let t of this.nodes)t.loc&&(e+="\n\n"+D(t.loc));else if(this.source&&this.locations)for(let t of this.locations)e+="\n\n"+A(this.source,t);return e}toJSON(){let e={message:this.message};return null!=this.locations&&(e.locations=this.locations),null!=this.path&&(e.path=this.path),null!=this.extensions&&Object.keys(this.extensions).length>0&&(e.extensions=this.extensions),e}}function R(e){return void 0===e||0===e.length?void 0:e}function k(e){return e.toString()}function L(e){return e.toJSON()}function $(e,t,n){return new w(`Syntax Error: ${n}`,{source:e,positions:[t]})}class x{constructor(e,t,n){this.start=e.start,this.end=t.end,this.startToken=e,this.endToken=t,this.source=n}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}}class F{constructor(e,t,n,r,i,o){this.kind=e,this.start=t,this.end=n,this.line=r,this.column=i,this.value=o,this.prev=null,this.next=null}get[Symbol.toStringTag](){return"Token"}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}}let C={Name:[],Document:["definitions"],OperationDefinition:["description","name","variableDefinitions","directives","selectionSet"],VariableDefinition:["description","variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["description","name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"],TypeCoordinate:["name"],MemberCoordinate:["name","memberName"],ArgumentCoordinate:["name","fieldName","argumentName"],DirectiveCoordinate:["name"],DirectiveArgumentCoordinate:["name","argumentName"]},V=new Set(Object.keys(C));function U(e){let t=null==e?void 0:e.kind;return"string"==typeof t&&V.has(t)}function M(e){return 9===e||32===e}function j(e){return e>=48&&e<=57}function P(e){return e>=97&&e<=122||e>=65&&e<=90}function G(e){return P(e)||95===e}function B(e){return P(e)||j(e)||95===e}function Y(e,t){let n=e.replace(/"""/g,'\\"""'),r=n.split(/\r\n|[\n\r]/g),i=1===r.length,o=r.length>1&&r.slice(1).every(e=>0===e.length||M(e.charCodeAt(0))),a=n.endsWith('\\"""'),s=e.endsWith('"')&&!a,l=e.endsWith("\\"),u=s||l,c=!(null!=t&&t.minimize)&&(!i||e.length>70||u||o||a),p="",d=i&&M(e.charCodeAt(0));return(c&&!d||o)&&(p+="\n"),p+=n,(c||u)&&(p+="\n"),'"""'+p+'"""'}(t=u||(u={})).QUERY="query",t.MUTATION="mutation",t.SUBSCRIPTION="subscription",(n=c||(c={})).QUERY="QUERY",n.MUTATION="MUTATION",n.SUBSCRIPTION="SUBSCRIPTION",n.FIELD="FIELD",n.FRAGMENT_DEFINITION="FRAGMENT_DEFINITION",n.FRAGMENT_SPREAD="FRAGMENT_SPREAD",n.INLINE_FRAGMENT="INLINE_FRAGMENT",n.VARIABLE_DEFINITION="VARIABLE_DEFINITION",n.SCHEMA="SCHEMA",n.SCALAR="SCALAR",n.OBJECT="OBJECT",n.FIELD_DEFINITION="FIELD_DEFINITION",n.ARGUMENT_DEFINITION="ARGUMENT_DEFINITION",n.INTERFACE="INTERFACE",n.UNION="UNION",n.ENUM="ENUM",n.ENUM_VALUE="ENUM_VALUE",n.INPUT_OBJECT="INPUT_OBJECT",n.INPUT_FIELD_DEFINITION="INPUT_FIELD_DEFINITION",(r=p||(p={})).NAME="Name",r.DOCUMENT="Document",r.OPERATION_DEFINITION="OperationDefinition",r.VARIABLE_DEFINITION="VariableDefinition",r.SELECTION_SET="SelectionSet",r.FIELD="Field",r.ARGUMENT="Argument",r.FRAGMENT_SPREAD="FragmentSpread",r.INLINE_FRAGMENT="InlineFragment",r.FRAGMENT_DEFINITION="FragmentDefinition",r.VARIABLE="Variable",r.INT="IntValue",r.FLOAT="FloatValue",r.STRING="StringValue",r.BOOLEAN="BooleanValue",r.NULL="NullValue",r.ENUM="EnumValue",r.LIST="ListValue",r.OBJECT="ObjectValue",r.OBJECT_FIELD="ObjectField",r.DIRECTIVE="Directive",r.NAMED_TYPE="NamedType",r.LIST_TYPE="ListType",r.NON_NULL_TYPE="NonNullType",r.SCHEMA_DEFINITION="SchemaDefinition",r.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",r.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",r.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",r.FIELD_DEFINITION="FieldDefinition",r.INPUT_VALUE_DEFINITION="InputValueDefinition",r.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",r.UNION_TYPE_DEFINITION="UnionTypeDefinition",r.ENUM_TYPE_DEFINITION="EnumTypeDefinition",r.ENUM_VALUE_DEFINITION="EnumValueDefinition",r.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",r.DIRECTIVE_DEFINITION="DirectiveDefinition",r.SCHEMA_EXTENSION="SchemaExtension",r.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",r.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",r.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",r.UNION_TYPE_EXTENSION="UnionTypeExtension",r.ENUM_TYPE_EXTENSION="EnumTypeExtension",r.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension",r.TYPE_COORDINATE="TypeCoordinate",r.MEMBER_COORDINATE="MemberCoordinate",r.ARGUMENT_COORDINATE="ArgumentCoordinate",r.DIRECTIVE_COORDINATE="DirectiveCoordinate",r.DIRECTIVE_ARGUMENT_COORDINATE="DirectiveArgumentCoordinate",(i=d||(d={})).SOF="",i.EOF="",i.BANG="!",i.DOLLAR="$",i.AMP="&",i.PAREN_L="(",i.PAREN_R=")",i.DOT=".",i.SPREAD="...",i.COLON=":",i.EQUALS="=",i.AT="@",i.BRACKET_L="[",i.BRACKET_R="]",i.BRACE_L="{",i.PIPE="|",i.BRACE_R="}",i.NAME="Name",i.INT="Int",i.FLOAT="Float",i.STRING="String",i.BLOCK_STRING="BlockString",i.COMMENT="Comment";class Q{constructor(e){const t=new F(d.SOF,0,0,0,0);this.source=e,this.lastToken=t,this.token=t,this.line=1,this.lineStart=0}get[Symbol.toStringTag](){return"Lexer"}advance(){return this.lastToken=this.token,this.token=this.lookahead()}lookahead(){let e=this.token;if(e.kind!==d.EOF)do if(e.next)e=e.next;else{let t=function(e,t){let n=e.source.body,r=n.length,i=t;for(;i0===t?e:e.slice(r)).slice(null!=(t=i)?t:0,o+1)})(l).join("\n"));return e.line+=l.length-1,e.lineStart=i,r}if(92===r&&34===n.charCodeAt(o+1)&&34===n.charCodeAt(o+2)&&34===n.charCodeAt(o+3)){s+=n.slice(a,o),a=o+1,o+=4;continue}if(10===r||13===r){s+=n.slice(a,o),l.push(s),13===r&&10===n.charCodeAt(o+1)?o+=2:++o,s="",a=o,i=o;continue}if(J(r))++o;else if(K(n,o))o+=2;else throw $(e.source,o,`Invalid character within String: ${H(e,o)}.`)}throw $(e.source,o,"Unterminated string.")}(e,i);return function(e,t){let n=e.source.body,r=n.length,i=t+1,o=i,a="";for(;i=0&&e<=55295||e>=57344&&e<=1114111}function K(e,t){return X(e.charCodeAt(t))&&z(e.charCodeAt(t+1))}function X(e){return e>=55296&&e<=56319}function z(e){return e>=56320&&e<=57343}function H(e,t){let n=e.source.body.codePointAt(t);if(void 0===n)return d.EOF;if(n>=32&&n<=126){let e=String.fromCodePoint(n);return'"'===e?"'\"'":`"${e}"`}return"U+"+n.toString(16).toUpperCase().padStart(4,"0")}function W(e,t,n,r,i){let o=e.line,a=1+n-e.lineStart;return new F(t,n,r,o,a,i)}function Z(e,t,n){if(!j(n))throw $(e.source,t,`Invalid number, expected digit but got: ${H(e,t)}.`);let r=e.source.body,i=t+1;for(;j(r.charCodeAt(i));)++i;return i}function ee(e,t){return et(e.charCodeAt(t))<<12|et(e.charCodeAt(t+1))<<8|et(e.charCodeAt(t+2))<<4|et(e.charCodeAt(t+3))}function et(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function en(e,t){let n=e.source.body,r=n.length,i=t+1;for(;i2)return"[Array]";let n=Math.min(10,s.length),r=s.length-n,u=[];for(let t=0;t1&&u.push(`... ${r} more items`),"["+u.join(", ")+"]"}return o=t,a=i,0===(r=Object.entries(o)).length?"{}":a.length>2?"["+function(e){let t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if("Object"===t&&"function"==typeof e.constructor){let t=e.constructor.name;if("string"==typeof t&&""!==t)return t}return t}(o)+"]":"{ "+r.map(([t,n])=>t+": "+e(n,a)).join(", ")+" }"}(t,n);default:return String(t)}}(e,[])}let eo=globalThis.process&&1?function(e,t){return e instanceof t}:function(e,t){if(e instanceof t)return!0;if("object"==typeof e&&null!==e){var n;let r=t.prototype[Symbol.toStringTag];if(r===(Symbol.toStringTag in e?e[Symbol.toStringTag]:null==(n=e.constructor)?void 0:n.name)){let t=ei(e);throw Error(`Cannot use ${r} "${t}" from another module or realm. - -Ensure that there is only one instance of "graphql" in the node_modules -directory. If different versions of "graphql" are the dependencies of other -relied on modules, use "resolutions" to ensure only one version is installed. - -https://yarnpkg.com/en/docs/selective-version-resolutions - -Duplicate "graphql" modules cannot be used at the same time since different -versions may have different capabilities and behavior. The data from one -version used in the function from another could produce confusing and -spurious results.`)}}return!1};class ea{constructor(e,t="GraphQL request",n={line:1,column:1}){"string"==typeof e||N(!1,`Body must be a string. Received: ${ei(e)}.`),this.body=e,this.name=t,this.locationOffset=n,this.locationOffset.line>0||N(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||N(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}}function es(e,t){let n=new ed(e,t),r=n.parseDocument();return Object.defineProperty(r,"tokenCount",{enumerable:!1,value:n.tokenCount}),r}function el(e,t){let n=new ed(e,t);n.expectToken(d.SOF);let r=n.parseValueLiteral(!1);return n.expectToken(d.EOF),r}function eu(e,t){let n=new ed(e,t);n.expectToken(d.SOF);let r=n.parseConstValueLiteral();return n.expectToken(d.EOF),r}function ec(e,t){let n=new ed(e,t);n.expectToken(d.SOF);let r=n.parseTypeReference();return n.expectToken(d.EOF),r}function ep(e){let t=new er(eo(e,ea)?e:new ea(e)),n=new ed(e,{lexer:t});n.expectToken(d.SOF);let r=n.parseSchemaCoordinate();return n.expectToken(d.EOF),r}class ed{constructor(e,t={}){const{lexer:n,...r}=t;if(n)this._lexer=n;else{const t=eo(e,ea)?e:new ea(e);this._lexer=new Q(t)}this._options=r,this._tokenCounter=0}get tokenCount(){return this._tokenCounter}parseName(){let e=this.expectToken(d.NAME);return this.node(e,{kind:p.NAME,value:e.value})}parseDocument(){return this.node(this._lexer.token,{kind:p.DOCUMENT,definitions:this.many(d.SOF,this.parseDefinition,d.EOF)})}parseDefinition(){if(this.peek(d.BRACE_L))return this.parseOperationDefinition();let e=this.peekDescription(),t=e?this._lexer.lookahead():this._lexer.token;if(e&&t.kind===d.BRACE_L)throw $(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are not supported on shorthand queries.");if(t.kind===d.NAME){switch(t.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}switch(t.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition()}if(e)throw $(this._lexer.source,this._lexer.token.start,"Unexpected description, only GraphQL definitions support descriptions.");if("extend"===t.value)return this.parseTypeSystemExtension()}throw this.unexpected(t)}parseOperationDefinition(){let e,t=this._lexer.token;if(this.peek(d.BRACE_L))return this.node(t,{kind:p.OPERATION_DEFINITION,operation:u.QUERY,description:void 0,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});let n=this.parseDescription(),r=this.parseOperationType();return this.peek(d.NAME)&&(e=this.parseName()),this.node(t,{kind:p.OPERATION_DEFINITION,operation:r,description:n,name:e,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){let e=this.expectToken(d.NAME);switch(e.value){case"query":return u.QUERY;case"mutation":return u.MUTATION;case"subscription":return u.SUBSCRIPTION}throw this.unexpected(e)}parseVariableDefinitions(){return this.optionalMany(d.PAREN_L,this.parseVariableDefinition,d.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:p.VARIABLE_DEFINITION,description:this.parseDescription(),variable:this.parseVariable(),type:(this.expectToken(d.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(d.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){let e=this._lexer.token;return this.expectToken(d.DOLLAR),this.node(e,{kind:p.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:p.SELECTION_SET,selections:this.many(d.BRACE_L,this.parseSelection,d.BRACE_R)})}parseSelection(){return this.peek(d.SPREAD)?this.parseFragment():this.parseField()}parseField(){let e,t,n=this._lexer.token,r=this.parseName();return this.expectOptionalToken(d.COLON)?(e=r,t=this.parseName()):t=r,this.node(n,{kind:p.FIELD,alias:e,name:t,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(d.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(e){let t=e?this.parseConstArgument:this.parseArgument;return this.optionalMany(d.PAREN_L,t,d.PAREN_R)}parseArgument(e=!1){let t=this._lexer.token,n=this.parseName();return this.expectToken(d.COLON),this.node(t,{kind:p.ARGUMENT,name:n,value:this.parseValueLiteral(e)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){let e=this._lexer.token;this.expectToken(d.SPREAD);let t=this.expectOptionalKeyword("on");return!t&&this.peek(d.NAME)?this.node(e,{kind:p.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(e,{kind:p.INLINE_FRAGMENT,typeCondition:t?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){let e=this._lexer.token,t=this.parseDescription();return(this.expectKeyword("fragment"),!0===this._options.allowLegacyFragmentVariables)?this.node(e,{kind:p.FRAGMENT_DEFINITION,description:t,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}):this.node(e,{kind:p.FRAGMENT_DEFINITION,description:t,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentName(){if("on"===this._lexer.token.value)throw this.unexpected();return this.parseName()}parseValueLiteral(e){let t=this._lexer.token;switch(t.kind){case d.BRACKET_L:return this.parseList(e);case d.BRACE_L:return this.parseObject(e);case d.INT:return this.advanceLexer(),this.node(t,{kind:p.INT,value:t.value});case d.FLOAT:return this.advanceLexer(),this.node(t,{kind:p.FLOAT,value:t.value});case d.STRING:case d.BLOCK_STRING:return this.parseStringLiteral();case d.NAME:switch(this.advanceLexer(),t.value){case"true":return this.node(t,{kind:p.BOOLEAN,value:!0});case"false":return this.node(t,{kind:p.BOOLEAN,value:!1});case"null":return this.node(t,{kind:p.NULL});default:return this.node(t,{kind:p.ENUM,value:t.value})}case d.DOLLAR:if(e){if(this.expectToken(d.DOLLAR),this._lexer.token.kind===d.NAME){let e=this._lexer.token.value;throw $(this._lexer.source,t.start,`Unexpected variable "$${e}" in constant value.`)}throw this.unexpected(t)}return this.parseVariable();default:throw this.unexpected()}}parseConstValueLiteral(){return this.parseValueLiteral(!0)}parseStringLiteral(){let e=this._lexer.token;return this.advanceLexer(),this.node(e,{kind:p.STRING,value:e.value,block:e.kind===d.BLOCK_STRING})}parseList(e){let t=()=>this.parseValueLiteral(e);return this.node(this._lexer.token,{kind:p.LIST,values:this.any(d.BRACKET_L,t,d.BRACKET_R)})}parseObject(e){let t=()=>this.parseObjectField(e);return this.node(this._lexer.token,{kind:p.OBJECT,fields:this.any(d.BRACE_L,t,d.BRACE_R)})}parseObjectField(e){let t=this._lexer.token,n=this.parseName();return this.expectToken(d.COLON),this.node(t,{kind:p.OBJECT_FIELD,name:n,value:this.parseValueLiteral(e)})}parseDirectives(e){let t=[];for(;this.peek(d.AT);)t.push(this.parseDirective(e));return t}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(e){let t=this._lexer.token;return this.expectToken(d.AT),this.node(t,{kind:p.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e)})}parseTypeReference(){let e,t=this._lexer.token;if(this.expectOptionalToken(d.BRACKET_L)){let n=this.parseTypeReference();this.expectToken(d.BRACKET_R),e=this.node(t,{kind:p.LIST_TYPE,type:n})}else e=this.parseNamedType();return this.expectOptionalToken(d.BANG)?this.node(t,{kind:p.NON_NULL_TYPE,type:e}):e}parseNamedType(){return this.node(this._lexer.token,{kind:p.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(d.STRING)||this.peek(d.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("schema");let n=this.parseConstDirectives(),r=this.many(d.BRACE_L,this.parseOperationTypeDefinition,d.BRACE_R);return this.node(e,{kind:p.SCHEMA_DEFINITION,description:t,directives:n,operationTypes:r})}parseOperationTypeDefinition(){let e=this._lexer.token,t=this.parseOperationType();this.expectToken(d.COLON);let n=this.parseNamedType();return this.node(e,{kind:p.OPERATION_TYPE_DEFINITION,operation:t,type:n})}parseScalarTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("scalar");let n=this.parseName(),r=this.parseConstDirectives();return this.node(e,{kind:p.SCALAR_TYPE_DEFINITION,description:t,name:n,directives:r})}parseObjectTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("type");let n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),o=this.parseFieldsDefinition();return this.node(e,{kind:p.OBJECT_TYPE_DEFINITION,description:t,name:n,interfaces:r,directives:i,fields:o})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(d.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(d.BRACE_L,this.parseFieldDefinition,d.BRACE_R)}parseFieldDefinition(){let e=this._lexer.token,t=this.parseDescription(),n=this.parseName(),r=this.parseArgumentDefs();this.expectToken(d.COLON);let i=this.parseTypeReference(),o=this.parseConstDirectives();return this.node(e,{kind:p.FIELD_DEFINITION,description:t,name:n,arguments:r,type:i,directives:o})}parseArgumentDefs(){return this.optionalMany(d.PAREN_L,this.parseInputValueDef,d.PAREN_R)}parseInputValueDef(){let e,t=this._lexer.token,n=this.parseDescription(),r=this.parseName();this.expectToken(d.COLON);let i=this.parseTypeReference();this.expectOptionalToken(d.EQUALS)&&(e=this.parseConstValueLiteral());let o=this.parseConstDirectives();return this.node(t,{kind:p.INPUT_VALUE_DEFINITION,description:n,name:r,type:i,defaultValue:e,directives:o})}parseInterfaceTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("interface");let n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),o=this.parseFieldsDefinition();return this.node(e,{kind:p.INTERFACE_TYPE_DEFINITION,description:t,name:n,interfaces:r,directives:i,fields:o})}parseUnionTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("union");let n=this.parseName(),r=this.parseConstDirectives(),i=this.parseUnionMemberTypes();return this.node(e,{kind:p.UNION_TYPE_DEFINITION,description:t,name:n,directives:r,types:i})}parseUnionMemberTypes(){return this.expectOptionalToken(d.EQUALS)?this.delimitedMany(d.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("enum");let n=this.parseName(),r=this.parseConstDirectives(),i=this.parseEnumValuesDefinition();return this.node(e,{kind:p.ENUM_TYPE_DEFINITION,description:t,name:n,directives:r,values:i})}parseEnumValuesDefinition(){return this.optionalMany(d.BRACE_L,this.parseEnumValueDefinition,d.BRACE_R)}parseEnumValueDefinition(){let e=this._lexer.token,t=this.parseDescription(),n=this.parseEnumValueName(),r=this.parseConstDirectives();return this.node(e,{kind:p.ENUM_VALUE_DEFINITION,description:t,name:n,directives:r})}parseEnumValueName(){if("true"===this._lexer.token.value||"false"===this._lexer.token.value||"null"===this._lexer.token.value)throw $(this._lexer.source,this._lexer.token.start,`${ef(this._lexer.token)} is reserved and cannot be used for an enum value.`);return this.parseName()}parseInputObjectTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("input");let n=this.parseName(),r=this.parseConstDirectives(),i=this.parseInputFieldsDefinition();return this.node(e,{kind:p.INPUT_OBJECT_TYPE_DEFINITION,description:t,name:n,directives:r,fields:i})}parseInputFieldsDefinition(){return this.optionalMany(d.BRACE_L,this.parseInputValueDef,d.BRACE_R)}parseTypeSystemExtension(){let e=this._lexer.lookahead();if(e.kind===d.NAME)switch(e.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(e)}parseSchemaExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");let t=this.parseConstDirectives(),n=this.optionalMany(d.BRACE_L,this.parseOperationTypeDefinition,d.BRACE_R);if(0===t.length&&0===n.length)throw this.unexpected();return this.node(e,{kind:p.SCHEMA_EXTENSION,directives:t,operationTypes:n})}parseScalarTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");let t=this.parseName(),n=this.parseConstDirectives();if(0===n.length)throw this.unexpected();return this.node(e,{kind:p.SCALAR_TYPE_EXTENSION,name:t,directives:n})}parseObjectTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");let t=this.parseName(),n=this.parseImplementsInterfaces(),r=this.parseConstDirectives(),i=this.parseFieldsDefinition();if(0===n.length&&0===r.length&&0===i.length)throw this.unexpected();return this.node(e,{kind:p.OBJECT_TYPE_EXTENSION,name:t,interfaces:n,directives:r,fields:i})}parseInterfaceTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");let t=this.parseName(),n=this.parseImplementsInterfaces(),r=this.parseConstDirectives(),i=this.parseFieldsDefinition();if(0===n.length&&0===r.length&&0===i.length)throw this.unexpected();return this.node(e,{kind:p.INTERFACE_TYPE_EXTENSION,name:t,interfaces:n,directives:r,fields:i})}parseUnionTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");let t=this.parseName(),n=this.parseConstDirectives(),r=this.parseUnionMemberTypes();if(0===n.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:p.UNION_TYPE_EXTENSION,name:t,directives:n,types:r})}parseEnumTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");let t=this.parseName(),n=this.parseConstDirectives(),r=this.parseEnumValuesDefinition();if(0===n.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:p.ENUM_TYPE_EXTENSION,name:t,directives:n,values:r})}parseInputObjectTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");let t=this.parseName(),n=this.parseConstDirectives(),r=this.parseInputFieldsDefinition();if(0===n.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:p.INPUT_OBJECT_TYPE_EXTENSION,name:t,directives:n,fields:r})}parseDirectiveDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("directive"),this.expectToken(d.AT);let n=this.parseName(),r=this.parseArgumentDefs(),i=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");let o=this.parseDirectiveLocations();return this.node(e,{kind:p.DIRECTIVE_DEFINITION,description:t,name:n,arguments:r,repeatable:i,locations:o})}parseDirectiveLocations(){return this.delimitedMany(d.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){let e=this._lexer.token,t=this.parseName();if(Object.prototype.hasOwnProperty.call(c,t.value))return t;throw this.unexpected(e)}parseSchemaCoordinate(){let e,t,n=this._lexer.token,r=this.expectOptionalToken(d.AT),i=this.parseName();return(!r&&this.expectOptionalToken(d.DOT)&&(e=this.parseName()),(r||e)&&this.expectOptionalToken(d.PAREN_L)&&(t=this.parseName(),this.expectToken(d.COLON),this.expectToken(d.PAREN_R)),r)?t?this.node(n,{kind:p.DIRECTIVE_ARGUMENT_COORDINATE,name:i,argumentName:t}):this.node(n,{kind:p.DIRECTIVE_COORDINATE,name:i}):e?t?this.node(n,{kind:p.ARGUMENT_COORDINATE,name:i,fieldName:e,argumentName:t}):this.node(n,{kind:p.MEMBER_COORDINATE,name:i,memberName:e}):this.node(n,{kind:p.TYPE_COORDINATE,name:i})}node(e,t){return!0!==this._options.noLocation&&(t.loc=new x(e,this._lexer.lastToken,this._lexer.source)),t}peek(e){return this._lexer.token.kind===e}expectToken(e){let t=this._lexer.token;if(t.kind===e)return this.advanceLexer(),t;throw $(this._lexer.source,t.start,`Expected ${eh(e)}, found ${ef(t)}.`)}expectOptionalToken(e){return this._lexer.token.kind===e&&(this.advanceLexer(),!0)}expectKeyword(e){let t=this._lexer.token;if(t.kind===d.NAME&&t.value===e)this.advanceLexer();else throw $(this._lexer.source,t.start,`Expected "${e}", found ${ef(t)}.`)}expectOptionalKeyword(e){let t=this._lexer.token;return t.kind===d.NAME&&t.value===e&&(this.advanceLexer(),!0)}unexpected(e){let t=null!=e?e:this._lexer.token;return $(this._lexer.source,t.start,`Unexpected ${ef(t)}.`)}any(e,t,n){this.expectToken(e);let r=[];for(;!this.expectOptionalToken(n);)r.push(t.call(this));return r}optionalMany(e,t,n){if(this.expectOptionalToken(e)){let e=[];do e.push(t.call(this));while(!this.expectOptionalToken(n));return e}return[]}many(e,t,n){this.expectToken(e);let r=[];do r.push(t.call(this));while(!this.expectOptionalToken(n));return r}delimitedMany(e,t){this.expectOptionalToken(e);let n=[];do n.push(t.call(this));while(this.expectOptionalToken(e));return n}advanceLexer(){let{maxTokens:e}=this._options,t=this._lexer.advance();if(t.kind!==d.EOF&&(++this._tokenCounter,void 0!==e&&this._tokenCounter>e))throw $(this._lexer.source,t.start,`Document contains more that ${e} tokens. Parsing aborted.`)}}function ef(e){let t=e.value;return eh(e.kind)+(null!=t?` "${t}"`:"")}function eh(e){return q(e)?`"${e}"`:e}function em(e,t){let[n,r]=t?[e,t]:[void 0,e],i=" Did you mean ";n&&(i+=n+" ");let o=r.map(e=>`"${e}"`);switch(o.length){case 0:return"";case 1:return i+o[0]+"?";case 2:return i+o[0]+" or "+o[1]+"?"}let a=o.slice(0,5),s=a.pop();return i+a.join(", ")+", or "+s+"?"}function ey(e){return e}function eE(e,t){let n=Object.create(null);for(let r of e)n[t(r)]=r;return n}function eT(e,t,n){let r=Object.create(null);for(let i of e)r[t(i)]=n(i);return r}function ev(e,t){let n=Object.create(null);for(let r of Object.keys(e))n[r]=t(e[r],r);return n}function eN(e,t){let n=0,r=0;for(;n0);let s=0;do++r,s=10*s+o-eI,o=t.charCodeAt(r);while(eg(o)&&s>0);if(as)return 1}else{if(io)return 1;++n,++r}}return e.length-t.length}let eI=48;function eg(e){return!isNaN(e)&&eI<=e&&e<=57}function e_(e,t){let n=Object.create(null),r=new eO(e),i=Math.floor(.4*e.length)+1;for(let e of t){let t=r.measure(e,i);void 0!==t&&(n[e]=t)}return Object.keys(n).sort((e,t)=>{let r=n[e]-n[t];return 0!==r?r:eN(e,t)})}class eO{constructor(e){this._input=e,this._inputLowerCase=e.toLowerCase(),this._inputArray=eb(this._inputLowerCase),this._rows=[Array(e.length+1).fill(0),Array(e.length+1).fill(0),Array(e.length+1).fill(0)]}measure(e,t){if(this._input===e)return 0;let n=e.toLowerCase();if(this._inputLowerCase===n)return 1;let r=eb(n),i=this._inputArray;if(r.lengtht)return;let s=this._rows;for(let e=0;e<=a;e++)s[0][e]=e;for(let e=1;e<=o;e++){let n=s[(e-1)%3],o=s[e%3],l=o[0]=e;for(let t=1;t<=a;t++){let a=+(r[e-1]!==i[t-1]),u=Math.min(n[t]+1,o[t-1]+1,n[t-1]+a);e>1&&t>1&&r[e-1]===i[t-2]&&r[e-2]===i[t-1]&&(u=Math.min(u,s[(e-2)%3][t-2]+1)),ut)return}let l=s[o%3][a];return l<=t?l:void 0}}function eb(e){let t=e.length,n=Array(t);for(let r=0;re.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>eV(e.definitions,"\n\n")},OperationDefinition:{leave(e){let t=eP(e.variableDefinitions)?eM("(\n",eV(e.variableDefinitions,"\n"),"\n)"):eM("(",eV(e.variableDefinitions,", "),")"),n=eM("",e.description,"\n")+eV([e.operation,eV([e.name,t]),eV(e.directives," ")]," ");return("query"===n?"":n+" ")+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:t,defaultValue:n,directives:r,description:i})=>eM("",i,"\n")+e+": "+t+eM(" = ",n)+eM(" ",eV(r," "))},SelectionSet:{leave:({selections:e})=>eU(e)},Field:{leave({alias:e,name:t,arguments:n,directives:r,selectionSet:i}){let o=eM("",e,": ")+t,a=o+eM("(",eV(n,", "),")");return a.length>80&&(a=o+eM("(\n",ej(eV(n,"\n")),"\n)")),eV([a,eV(r," "),i]," ")}},Argument:{leave:({name:e,value:t})=>e+": "+t},FragmentSpread:{leave:({name:e,directives:t})=>"..."+e+eM(" ",eV(t," "))},InlineFragment:{leave:({typeCondition:e,directives:t,selectionSet:n})=>eV(["...",eM("on ",e),eV(t," "),n]," ")},FragmentDefinition:{leave:({name:e,typeCondition:t,variableDefinitions:n,directives:r,selectionSet:i,description:o})=>eM("",o,"\n")+`fragment ${e}${eM("(",eV(n,", "),")")} `+`on ${t} ${eM("",eV(r," ")," ")}`+i},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e},StringValue:{leave:({value:e,block:t})=>t?Y(e):`"${e.replace(eA,eS)}"`},BooleanValue:{leave:({value:e})=>e?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>"["+eV(e,", ")+"]"},ObjectValue:{leave:({fields:e})=>"{"+eV(e,", ")+"}"},ObjectField:{leave:({name:e,value:t})=>e+": "+t},Directive:{leave:({name:e,arguments:t})=>"@"+e+eM("(",eV(t,", "),")")},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>"["+e+"]"},NonNullType:{leave:({type:e})=>e+"!"},SchemaDefinition:{leave:({description:e,directives:t,operationTypes:n})=>eM("",e,"\n")+eV(["schema",eV(t," "),eU(n)]," ")},OperationTypeDefinition:{leave:({operation:e,type:t})=>e+": "+t},ScalarTypeDefinition:{leave:({description:e,name:t,directives:n})=>eM("",e,"\n")+eV(["scalar",t,eV(n," ")]," ")},ObjectTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:r,fields:i})=>eM("",e,"\n")+eV(["type",t,eM("implements ",eV(n," & ")),eV(r," "),eU(i)]," ")},FieldDefinition:{leave:({description:e,name:t,arguments:n,type:r,directives:i})=>eM("",e,"\n")+t+(eP(n)?eM("(\n",ej(eV(n,"\n")),"\n)"):eM("(",eV(n,", "),")"))+": "+r+eM(" ",eV(i," "))},InputValueDefinition:{leave:({description:e,name:t,type:n,defaultValue:r,directives:i})=>eM("",e,"\n")+eV([t+": "+n,eM("= ",r),eV(i," ")]," ")},InterfaceTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:r,fields:i})=>eM("",e,"\n")+eV(["interface",t,eM("implements ",eV(n," & ")),eV(r," "),eU(i)]," ")},UnionTypeDefinition:{leave:({description:e,name:t,directives:n,types:r})=>eM("",e,"\n")+eV(["union",t,eV(n," "),eM("= ",eV(r," | "))]," ")},EnumTypeDefinition:{leave:({description:e,name:t,directives:n,values:r})=>eM("",e,"\n")+eV(["enum",t,eV(n," "),eU(r)]," ")},EnumValueDefinition:{leave:({description:e,name:t,directives:n})=>eM("",e,"\n")+eV([t,eV(n," ")]," ")},InputObjectTypeDefinition:{leave:({description:e,name:t,directives:n,fields:r})=>eM("",e,"\n")+eV(["input",t,eV(n," "),eU(r)]," ")},DirectiveDefinition:{leave:({description:e,name:t,arguments:n,repeatable:r,locations:i})=>eM("",e,"\n")+"directive @"+t+(eP(n)?eM("(\n",ej(eV(n,"\n")),"\n)"):eM("(",eV(n,", "),")"))+(r?" repeatable":"")+" on "+eV(i," | ")},SchemaExtension:{leave:({directives:e,operationTypes:t})=>eV(["extend schema",eV(e," "),eU(t)]," ")},ScalarTypeExtension:{leave:({name:e,directives:t})=>eV(["extend scalar",e,eV(t," ")]," ")},ObjectTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>eV(["extend type",e,eM("implements ",eV(t," & ")),eV(n," "),eU(r)]," ")},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>eV(["extend interface",e,eM("implements ",eV(t," & ")),eV(n," "),eU(r)]," ")},UnionTypeExtension:{leave:({name:e,directives:t,types:n})=>eV(["extend union",e,eV(t," "),eM("= ",eV(n," | "))]," ")},EnumTypeExtension:{leave:({name:e,directives:t,values:n})=>eV(["extend enum",e,eV(t," "),eU(n)]," ")},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:n})=>eV(["extend input",e,eV(t," "),eU(n)]," ")},TypeCoordinate:{leave:({name:e})=>e},MemberCoordinate:{leave:({name:e,memberName:t})=>eV([e,eM(".",t)])},ArgumentCoordinate:{leave:({name:e,fieldName:t,argumentName:n})=>eV([e,eM(".",t),eM("(",n,":)")])},DirectiveCoordinate:{leave:({name:e})=>eV(["@",e])},DirectiveArgumentCoordinate:{leave:({name:e,argumentName:t})=>eV(["@",e,eM("(",t,":)")])}};function eV(e,t=""){var n;return null!=(n=null==e?void 0:e.filter(e=>e).join(t))?n:""}function eU(e){return eM("{\n",ej(eV(e,"\n")),"\n}")}function eM(e,t,n=""){return null!=t&&""!==t?e+t+n:""}function ej(e){return eM(" ",e.replace(/\n/g,"\n "))}function eP(e){var t;return null!=(t=null==e?void 0:e.some(e=>e.includes("\n")))&&t}function eG(e,t){switch(e.kind){case p.NULL:return null;case p.INT:return parseInt(e.value,10);case p.FLOAT:return parseFloat(e.value);case p.STRING:case p.ENUM:case p.BOOLEAN:return e.value;case p.LIST:return e.values.map(e=>eG(e,t));case p.OBJECT:return eT(e.fields,e=>e.name.value,e=>eG(e.value,t));case p.VARIABLE:return null==t?void 0:t[e.name.value]}}function eB(e){if(null!=e||N(!1,"Must provide name."),"string"==typeof e||N(!1,"Expected name to be a string."),0===e.length)throw new w("Expected name to be a non-empty string.");for(let t=1;to(eG(e,t)),this.extensions=eD(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!=(i=e.extensionASTNodes)?i:[],null==e.specifiedByURL||"string"==typeof e.specifiedByURL||N(!1,`${this.name} must provide "specifiedByURL" as a string, but got: ${ei(e.specifiedByURL)}.`),null==e.serialize||"function"==typeof e.serialize||N(!1,`${this.name} must provide "serialize" function. If this custom Scalar is also used as an input type, ensure "parseValue" and "parseLiteral" functions are also provided.`),e.parseLiteral&&("function"==typeof e.parseValue&&"function"==typeof e.parseLiteral||N(!1,`${this.name} must provide both "parseValue" and "parseLiteral" functions.`))}get[Symbol.toStringTag](){return"GraphQLScalarType"}toConfig(){return{name:this.name,description:this.description,specifiedByURL:this.specifiedByURL,serialize:this.serialize,parseValue:this.parseValue,parseLiteral:this.parseLiteral,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}class tg{constructor(e){var t;this.name=eB(e.name),this.description=e.description,this.isTypeOf=e.isTypeOf,this.extensions=eD(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!=(t=e.extensionASTNodes)?t:[],this._fields=()=>tO(e),this._interfaces=()=>t_(e),null==e.isTypeOf||"function"==typeof e.isTypeOf||N(!1,`${this.name} must provide "isTypeOf" as a function, but got: ${ei(e.isTypeOf)}.`)}get[Symbol.toStringTag](){return"GraphQLObjectType"}getFields(){return"function"==typeof this._fields&&(this._fields=this._fields()),this._fields}getInterfaces(){return"function"==typeof this._interfaces&&(this._interfaces=this._interfaces()),this._interfaces}toConfig(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:tA(this.getFields()),isTypeOf:this.isTypeOf,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}function t_(e){var t;let n=tv(null!=(t=e.interfaces)?t:[]);return Array.isArray(n)||N(!1,`${e.name} interfaces must be an Array or a function which returns an Array.`),n}function tO(e){let t=tN(e.fields);return tD(t)||N(!1,`${e.name} fields must be an object with field names as keys or a function which returns such an object.`),ev(t,(t,n)=>{var r;tD(t)||N(!1,`${e.name}.${n} field config must be an object.`),null==t.resolve||"function"==typeof t.resolve||N(!1,`${e.name}.${n} field resolver must be a function if provided, but got: ${ei(t.resolve)}.`);let i=null!=(r=t.args)?r:{};return tD(i)||N(!1,`${e.name}.${n} args must be an object with argument names as keys.`),{name:eB(n),description:t.description,type:t.type,args:tb(i),resolve:t.resolve,subscribe:t.subscribe,deprecationReason:t.deprecationReason,extensions:eD(t.extensions),astNode:t.astNode}})}function tb(e){return Object.entries(e).map(([e,t])=>({name:eB(e),description:t.description,type:t.type,defaultValue:t.defaultValue,deprecationReason:t.deprecationReason,extensions:eD(t.extensions),astNode:t.astNode}))}function tD(e){return g(e)&&!Array.isArray(e)}function tA(e){return ev(e,e=>({description:e.description,type:e.type,args:tS(e.args),resolve:e.resolve,subscribe:e.subscribe,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode}))}function tS(e){return eT(e,e=>e.name,e=>({description:e.description,type:e.type,defaultValue:e.defaultValue,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode}))}function tw(e){return e8(e.type)&&void 0===e.defaultValue}class tR{constructor(e){var t;this.name=eB(e.name),this.description=e.description,this.resolveType=e.resolveType,this.extensions=eD(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!=(t=e.extensionASTNodes)?t:[],this._fields=tO.bind(void 0,e),this._interfaces=t_.bind(void 0,e),null==e.resolveType||"function"==typeof e.resolveType||N(!1,`${this.name} must provide "resolveType" as a function, but got: ${ei(e.resolveType)}.`)}get[Symbol.toStringTag](){return"GraphQLInterfaceType"}getFields(){return"function"==typeof this._fields&&(this._fields=this._fields()),this._fields}getInterfaces(){return"function"==typeof this._interfaces&&(this._interfaces=this._interfaces()),this._interfaces}toConfig(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:tA(this.getFields()),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}class tk{constructor(e){var t;this.name=eB(e.name),this.description=e.description,this.resolveType=e.resolveType,this.extensions=eD(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!=(t=e.extensionASTNodes)?t:[],this._types=tL.bind(void 0,e),null==e.resolveType||"function"==typeof e.resolveType||N(!1,`${this.name} must provide "resolveType" as a function, but got: ${ei(e.resolveType)}.`)}get[Symbol.toStringTag](){return"GraphQLUnionType"}getTypes(){return"function"==typeof this._types&&(this._types=this._types()),this._types}toConfig(){return{name:this.name,description:this.description,types:this.getTypes(),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}function tL(e){let t=tv(e.types);return Array.isArray(t)||N(!1,`Must provide Array of types or a function which returns such an array for Union ${e.name}.`),t}class t${constructor(e){var t;this.name=eB(e.name),this.description=e.description,this.extensions=eD(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!=(t=e.extensionASTNodes)?t:[],this._values="function"==typeof e.values?e.values:tF(this.name,e.values),this._valueLookup=null,this._nameLookup=null}get[Symbol.toStringTag](){return"GraphQLEnumType"}getValues(){return"function"==typeof this._values&&(this._values=tF(this.name,this._values())),this._values}getValue(e){return null===this._nameLookup&&(this._nameLookup=eE(this.getValues(),e=>e.name)),this._nameLookup[e]}serialize(e){null===this._valueLookup&&(this._valueLookup=new Map(this.getValues().map(e=>[e.value,e])));let t=this._valueLookup.get(e);if(void 0===t)throw new w(`Enum "${this.name}" cannot represent value: ${ei(e)}`);return t.name}parseValue(e){if("string"!=typeof e){let t=ei(e);throw new w(`Enum "${this.name}" cannot represent non-string value: ${t}.`+tx(this,t))}let t=this.getValue(e);if(null==t)throw new w(`Value "${e}" does not exist in "${this.name}" enum.`+tx(this,e));return t.value}parseLiteral(e,t){if(e.kind!==p.ENUM){let t=eF(e);throw new w(`Enum "${this.name}" cannot represent non-enum value: ${t}.`+tx(this,t),{nodes:e})}let n=this.getValue(e.value);if(null==n){let t=eF(e);throw new w(`Value "${t}" does not exist in "${this.name}" enum.`+tx(this,t),{nodes:e})}return n.value}toConfig(){let e=eT(this.getValues(),e=>e.name,e=>({description:e.description,value:e.value,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode}));return{name:this.name,description:this.description,values:e,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}function tx(e,t){return em("the enum value",e_(t,e.getValues().map(e=>e.name)))}function tF(e,t){return tD(t)||N(!1,`${e} values must be an object with value names as keys.`),Object.entries(t).map(([t,n])=>(tD(n)||N(!1,`${e}.${t} must refer to an object with a "value" key representing an internal value but got: ${ei(n)}.`),{name:eY(t),description:n.description,value:void 0!==n.value?n.value:t,deprecationReason:n.deprecationReason,extensions:eD(n.extensions),astNode:n.astNode}))}class tC{constructor(e){var t,n;this.name=eB(e.name),this.description=e.description,this.extensions=eD(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!=(t=e.extensionASTNodes)?t:[],this.isOneOf=null!=(n=e.isOneOf)&&n,this._fields=tV.bind(void 0,e)}get[Symbol.toStringTag](){return"GraphQLInputObjectType"}getFields(){return"function"==typeof this._fields&&(this._fields=this._fields()),this._fields}toConfig(){let e=ev(this.getFields(),e=>({description:e.description,type:e.type,defaultValue:e.defaultValue,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode}));return{name:this.name,description:this.description,fields:e,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes,isOneOf:this.isOneOf}}toString(){return this.name}toJSON(){return this.toString()}}function tV(e){let t=tN(e.fields);return tD(t)||N(!1,`${e.name} fields must be an object with field names as keys or a function which returns such an object.`),ev(t,(t,n)=>("resolve"in t&&N(!1,`${e.name}.${n} field has a resolve property, but Input Types cannot define resolvers.`),{name:eB(n),description:t.description,type:t.type,defaultValue:t.defaultValue,deprecationReason:t.deprecationReason,extensions:eD(t.extensions),astNode:t.astNode}))}function tU(e){return e8(e.type)&&void 0===e.defaultValue}function tM(e,t){return e===t||!!(e8(e)&&e8(t)||e9(e)&&e9(t))&&tM(e.ofType,t.ofType)}function tj(e,t,n){return t===n||(e8(n)?!!e8(t)&&tj(e,t.ofType,n.ofType):e8(t)?tj(e,t.ofType,n):e9(n)?!!e9(t)&&tj(e,t.ofType,n.ofType):!e9(t)&&ts(n)&&(eH(t)||eX(t))&&e.isSubType(n,t))}function tP(e,t,n){return t===n||(ts(t)?ts(n)?e.getPossibleTypes(t).some(t=>e.isSubType(n,t)):e.isSubType(t,n):!!ts(n)&&e.isSubType(n,t))}let tG=0x7fffffff,tB=-0x80000000,tY=new tI({name:"Int",description:"The `Int` scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.",serialize(e){let t=tH(e);if("boolean"==typeof t)return+!!t;let n=t;if("string"==typeof t&&""!==t&&(n=Number(t)),"number"!=typeof n||!Number.isInteger(n))throw new w(`Int cannot represent non-integer value: ${ei(t)}`);if(n>tG||ntG||etG||te.name===t)}function tH(e){if(g(e)){if("function"==typeof e.valueOf){let t=e.valueOf();if(!g(t))return t}if("function"==typeof e.toJSON)return e.toJSON()}return e}function tW(e){return eo(e,t0)}function tZ(e){if(!tW(e))throw Error(`Expected ${ei(e)} to be a GraphQL directive.`);return e}class t0{constructor(e){var t,n;this.name=eB(e.name),this.description=e.description,this.locations=e.locations,this.isRepeatable=null!=(t=e.isRepeatable)&&t,this.extensions=eD(e.extensions),this.astNode=e.astNode,Array.isArray(e.locations)||N(!1,`@${e.name} locations must be an Array.`);const r=null!=(n=e.args)?n:{};g(r)&&!Array.isArray(r)||N(!1,`@${e.name} args must be an object with argument names as keys.`),this.args=tb(r)}get[Symbol.toStringTag](){return"GraphQLDirective"}toConfig(){return{name:this.name,description:this.description,locations:this.locations,args:tS(this.args),isRepeatable:this.isRepeatable,extensions:this.extensions,astNode:this.astNode}}toString(){return"@"+this.name}toJSON(){return this.toString()}}let t1=new t0({name:"include",description:"Directs the executor to include this field or fragment only when the `if` argument is true.",locations:[c.FIELD,c.FRAGMENT_SPREAD,c.INLINE_FRAGMENT],args:{if:{type:new tc(tJ),description:"Included when true."}}}),t2=new t0({name:"skip",description:"Directs the executor to skip this field or fragment when the `if` argument is true.",locations:[c.FIELD,c.FRAGMENT_SPREAD,c.INLINE_FRAGMENT],args:{if:{type:new tc(tJ),description:"Skipped when true."}}}),t3="No longer supported",t4=new t0({name:"deprecated",description:"Marks an element of a GraphQL schema as no longer supported.",locations:[c.FIELD_DEFINITION,c.ARGUMENT_DEFINITION,c.INPUT_FIELD_DEFINITION,c.ENUM_VALUE],args:{reason:{type:tq,description:"Explains why this element was deprecated, usually also including a suggestion for how to access supported similar data. Formatted using the Markdown syntax, as specified by [CommonMark](https://commonmark.org/).",defaultValue:t3}}}),t9=new t0({name:"specifiedBy",description:"Exposes a URL that specifies the behavior of this scalar.",locations:[c.SCALAR],args:{url:{type:new tc(tq),description:"The URL that specifies the behavior of this scalar."}}}),t5=new t0({name:"oneOf",description:"Indicates exactly one field must be supplied and this field must not be `null`.",locations:[c.INPUT_OBJECT],args:{}}),t8=Object.freeze([t1,t2,t4,t9,t5]);function t6(e){return t8.some(({name:t})=>t===e.name)}function t7(e){return"object"==typeof e&&"function"==typeof(null==e?void 0:e[Symbol.iterator])}function ne(e,t){if(e8(t)){let n=ne(e,t.ofType);return(null==n?void 0:n.kind)===p.NULL?null:n}if(null===e)return{kind:p.NULL};if(void 0===e)return null;if(e9(t)){let n=t.ofType;if(t7(e)){let t=[];for(let r of e){let e=ne(r,n);null!=e&&t.push(e)}return{kind:p.LIST,values:t}}return ne(e,n)}if(e3(t)){if(!g(e))return null;let n=[];for(let r of Object.values(t.getFields())){let t=ne(e[r.name],r.type);t&&n.push({kind:p.OBJECT_FIELD,name:{kind:p.NAME,value:r.name},value:t})}return{kind:p.OBJECT,fields:n}}if(tr(t)){let n=t.serialize(e);if(null==n)return null;if("boolean"==typeof n)return{kind:p.BOOLEAN,value:n};if("number"==typeof n&&Number.isFinite(n)){let e=String(n);return nt.test(e)?{kind:p.INT,value:e}:{kind:p.FLOAT,value:e}}if("string"==typeof n)return e1(t)?{kind:p.ENUM,value:n}:t===tK&&nt.test(n)?{kind:p.INT,value:n}:{kind:p.STRING,value:n};throw TypeError(`Cannot convert value to AST: ${ei(n)}.`)}_(!1,"Unexpected input type: "+ei(t))}let nt=/^-?(?:0|[1-9][0-9]*)$/,nn=new tg({name:"__Schema",description:"A GraphQL Schema defines the capabilities of a GraphQL server. It exposes all available types and directives on the server, as well as the entry points for query, mutation, and subscription operations.",fields:()=>({description:{type:tq,resolve:e=>e.description},types:{description:"A list of all types supported by this server.",type:new tc(new tu(new tc(no))),resolve:e=>Object.values(e.getTypeMap())},queryType:{description:"The type that query operations will be rooted at.",type:new tc(no),resolve:e=>e.getQueryType()},mutationType:{description:"If this server supports mutation, the type that mutation operations will be rooted at.",type:no,resolve:e=>e.getMutationType()},subscriptionType:{description:"If this server support subscription, the type that subscription operations will be rooted at.",type:no,resolve:e=>e.getSubscriptionType()},directives:{description:"A list of all directives supported by this server.",type:new tc(new tu(new tc(nr))),resolve:e=>e.getDirectives()}})}),nr=new tg({name:"__Directive",description:"A Directive provides a way to describe alternate runtime execution and type validation behavior in a GraphQL document.\n\nIn some cases, you need to provide options to alter GraphQL's execution behavior in ways field arguments will not suffice, such as conditionally including or skipping a field. Directives provide this by describing additional information to the executor.",fields:()=>({name:{type:new tc(tq),resolve:e=>e.name},description:{type:tq,resolve:e=>e.description},isRepeatable:{type:new tc(tJ),resolve:e=>e.isRepeatable},locations:{type:new tc(new tu(new tc(ni))),resolve:e=>e.locations},args:{type:new tc(new tu(new tc(ns))),args:{includeDeprecated:{type:tJ,defaultValue:!1}},resolve:(e,{includeDeprecated:t})=>t?e.args:e.args.filter(e=>null==e.deprecationReason)}})}),ni=new t$({name:"__DirectiveLocation",description:"A Directive can be adjacent to many parts of the GraphQL language, a __DirectiveLocation describes one such possible adjacencies.",values:{QUERY:{value:c.QUERY,description:"Location adjacent to a query operation."},MUTATION:{value:c.MUTATION,description:"Location adjacent to a mutation operation."},SUBSCRIPTION:{value:c.SUBSCRIPTION,description:"Location adjacent to a subscription operation."},FIELD:{value:c.FIELD,description:"Location adjacent to a field."},FRAGMENT_DEFINITION:{value:c.FRAGMENT_DEFINITION,description:"Location adjacent to a fragment definition."},FRAGMENT_SPREAD:{value:c.FRAGMENT_SPREAD,description:"Location adjacent to a fragment spread."},INLINE_FRAGMENT:{value:c.INLINE_FRAGMENT,description:"Location adjacent to an inline fragment."},VARIABLE_DEFINITION:{value:c.VARIABLE_DEFINITION,description:"Location adjacent to a variable definition."},SCHEMA:{value:c.SCHEMA,description:"Location adjacent to a schema definition."},SCALAR:{value:c.SCALAR,description:"Location adjacent to a scalar definition."},OBJECT:{value:c.OBJECT,description:"Location adjacent to an object type definition."},FIELD_DEFINITION:{value:c.FIELD_DEFINITION,description:"Location adjacent to a field definition."},ARGUMENT_DEFINITION:{value:c.ARGUMENT_DEFINITION,description:"Location adjacent to an argument definition."},INTERFACE:{value:c.INTERFACE,description:"Location adjacent to an interface definition."},UNION:{value:c.UNION,description:"Location adjacent to a union definition."},ENUM:{value:c.ENUM,description:"Location adjacent to an enum definition."},ENUM_VALUE:{value:c.ENUM_VALUE,description:"Location adjacent to an enum value definition."},INPUT_OBJECT:{value:c.INPUT_OBJECT,description:"Location adjacent to an input object type definition."},INPUT_FIELD_DEFINITION:{value:c.INPUT_FIELD_DEFINITION,description:"Location adjacent to an input object field definition."}}}),no=new tg({name:"__Type",description:"The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum.\n\nDepending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name, description and optional `specifiedByURL`, while Enum types provide their values. Object and Interface types provide the fields they describe. Abstract types, Union and Interface, provide the Object types possible at runtime. List and NonNull types compose other types.",fields:()=>({kind:{type:new tc(nu),resolve:e=>eJ(e)?f.SCALAR:eX(e)?f.OBJECT:eH(e)?f.INTERFACE:eZ(e)?f.UNION:e1(e)?f.ENUM:e3(e)?f.INPUT_OBJECT:e9(e)?f.LIST:e8(e)?f.NON_NULL:void _(!1,`Unexpected type: "${ei(e)}".`)},name:{type:tq,resolve:e=>"name"in e?e.name:void 0},description:{type:tq,resolve:e=>"description"in e?e.description:void 0},specifiedByURL:{type:tq,resolve:e=>"specifiedByURL"in e?e.specifiedByURL:void 0},fields:{type:new tu(new tc(na)),args:{includeDeprecated:{type:tJ,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if(eX(e)||eH(e)){let n=Object.values(e.getFields());return t?n:n.filter(e=>null==e.deprecationReason)}}},interfaces:{type:new tu(new tc(no)),resolve(e){if(eX(e)||eH(e))return e.getInterfaces()}},possibleTypes:{type:new tu(new tc(no)),resolve(e,t,n,{schema:r}){if(ts(e))return r.getPossibleTypes(e)}},enumValues:{type:new tu(new tc(nl)),args:{includeDeprecated:{type:tJ,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if(e1(e)){let n=e.getValues();return t?n:n.filter(e=>null==e.deprecationReason)}}},inputFields:{type:new tu(new tc(ns)),args:{includeDeprecated:{type:tJ,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if(e3(e)){let n=Object.values(e.getFields());return t?n:n.filter(e=>null==e.deprecationReason)}}},ofType:{type:no,resolve:e=>"ofType"in e?e.ofType:void 0},isOneOf:{type:tJ,resolve:e=>{if(e3(e))return e.isOneOf}}})}),na=new tg({name:"__Field",description:"Object and Interface types are described by a list of Fields, each of which has a name, potentially a list of arguments, and a return type.",fields:()=>({name:{type:new tc(tq),resolve:e=>e.name},description:{type:tq,resolve:e=>e.description},args:{type:new tc(new tu(new tc(ns))),args:{includeDeprecated:{type:tJ,defaultValue:!1}},resolve:(e,{includeDeprecated:t})=>t?e.args:e.args.filter(e=>null==e.deprecationReason)},type:{type:new tc(no),resolve:e=>e.type},isDeprecated:{type:new tc(tJ),resolve:e=>null!=e.deprecationReason},deprecationReason:{type:tq,resolve:e=>e.deprecationReason}})}),ns=new tg({name:"__InputValue",description:"Arguments provided to Fields or Directives and the input fields of an InputObject are represented as Input Values which describe their type and optionally a default value.",fields:()=>({name:{type:new tc(tq),resolve:e=>e.name},description:{type:tq,resolve:e=>e.description},type:{type:new tc(no),resolve:e=>e.type},defaultValue:{type:tq,description:"A GraphQL-formatted string representing the default value for this input value.",resolve(e){let{type:t,defaultValue:n}=e,r=ne(n,t);return r?eF(r):null}},isDeprecated:{type:new tc(tJ),resolve:e=>null!=e.deprecationReason},deprecationReason:{type:tq,resolve:e=>e.deprecationReason}})}),nl=new tg({name:"__EnumValue",description:"One possible value for a given Enum. Enum values are unique values, not a placeholder for a string or numeric value. However an Enum value is returned in a JSON response as a string.",fields:()=>({name:{type:new tc(tq),resolve:e=>e.name},description:{type:tq,resolve:e=>e.description},isDeprecated:{type:new tc(tJ),resolve:e=>null!=e.deprecationReason},deprecationReason:{type:tq,resolve:e=>e.deprecationReason}})});(o=f||(f={})).SCALAR="SCALAR",o.OBJECT="OBJECT",o.INTERFACE="INTERFACE",o.UNION="UNION",o.ENUM="ENUM",o.INPUT_OBJECT="INPUT_OBJECT",o.LIST="LIST",o.NON_NULL="NON_NULL";let nu=new t$({name:"__TypeKind",description:"An enum describing what kind of type a given `__Type` is.",values:{SCALAR:{value:f.SCALAR,description:"Indicates this type is a scalar."},OBJECT:{value:f.OBJECT,description:"Indicates this type is an object. `fields` and `interfaces` are valid fields."},INTERFACE:{value:f.INTERFACE,description:"Indicates this type is an interface. `fields`, `interfaces`, and `possibleTypes` are valid fields."},UNION:{value:f.UNION,description:"Indicates this type is a union. `possibleTypes` is a valid field."},ENUM:{value:f.ENUM,description:"Indicates this type is an enum. `enumValues` is a valid field."},INPUT_OBJECT:{value:f.INPUT_OBJECT,description:"Indicates this type is an input object. `inputFields` is a valid field."},LIST:{value:f.LIST,description:"Indicates this type is a list. `ofType` is a valid field."},NON_NULL:{value:f.NON_NULL,description:"Indicates this type is a non-null. `ofType` is a valid field."}}}),nc={name:"__schema",type:new tc(nn),description:"Access the current type schema of this server.",args:[],resolve:(e,t,n,{schema:r})=>r,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0},np={name:"__type",type:no,description:"Request the type information of a single type.",args:[{name:"name",description:void 0,type:new tc(tq),defaultValue:void 0,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0}],resolve:(e,{name:t},n,{schema:r})=>r.getType(t),deprecationReason:void 0,extensions:Object.create(null),astNode:void 0},nd={name:"__typename",type:new tc(tq),description:"The name of the current Object type at runtime.",args:[],resolve:(e,t,n,{parentType:r})=>r.name,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0},nf=Object.freeze([nn,nr,ni,no,na,ns,nl,nu]);function nh(e){return nf.some(({name:t})=>e.name===t)}function nm(e){return eo(e,nE)}function ny(e){if(!nm(e))throw Error(`Expected ${ei(e)} to be a GraphQL schema.`);return e}class nE{constructor(e){var t,n;this.__validationErrors=!0===e.assumeValid?[]:void 0,g(e)||N(!1,"Must provide configuration object."),!e.types||Array.isArray(e.types)||N(!1,`"types" must be Array if provided but got: ${ei(e.types)}.`),!e.directives||Array.isArray(e.directives)||N(!1,`"directives" must be Array if provided but got: ${ei(e.directives)}.`),this.description=e.description,this.extensions=eD(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!=(t=e.extensionASTNodes)?t:[],this._queryType=e.query,this._mutationType=e.mutation,this._subscriptionType=e.subscription,this._directives=null!=(n=e.directives)?n:t8;const r=new Set(e.types);if(null!=e.types)for(const t of e.types)r.delete(t),nT(t,r);for(const e of(null!=this._queryType&&nT(this._queryType,r),null!=this._mutationType&&nT(this._mutationType,r),null!=this._subscriptionType&&nT(this._subscriptionType,r),this._directives))if(tW(e))for(const t of e.args)nT(t.type,r);for(const e of(nT(nn,r),this._typeMap=Object.create(null),this._subTypeMap=Object.create(null),this._implementationsMap=Object.create(null),r)){if(null==e)continue;const t=e.name;if(t||N(!1,"One of the provided types for building the Schema is missing a name."),void 0!==this._typeMap[t])throw Error(`Schema must contain uniquely named types but contains multiple types named "${t}".`);if(this._typeMap[t]=e,eH(e)){for(const t of e.getInterfaces())if(eH(t)){let n=this._implementationsMap[t.name];void 0===n&&(n=this._implementationsMap[t.name]={objects:[],interfaces:[]}),n.interfaces.push(e)}}else if(eX(e)){for(const t of e.getInterfaces())if(eH(t)){let n=this._implementationsMap[t.name];void 0===n&&(n=this._implementationsMap[t.name]={objects:[],interfaces:[]}),n.objects.push(e)}}}}get[Symbol.toStringTag](){return"GraphQLSchema"}getQueryType(){return this._queryType}getMutationType(){return this._mutationType}getSubscriptionType(){return this._subscriptionType}getRootType(e){switch(e){case u.QUERY:return this.getQueryType();case u.MUTATION:return this.getMutationType();case u.SUBSCRIPTION:return this.getSubscriptionType()}}getTypeMap(){return this._typeMap}getType(e){return this.getTypeMap()[e]}getPossibleTypes(e){return eZ(e)?e.getTypes():this.getImplementations(e).objects}getImplementations(e){let t=this._implementationsMap[e.name];return null!=t?t:{objects:[],interfaces:[]}}isSubType(e,t){let n=this._subTypeMap[e.name];if(void 0===n){if(n=Object.create(null),eZ(e))for(let t of e.getTypes())n[t.name]=!0;else{let t=this.getImplementations(e);for(let e of t.objects)n[e.name]=!0;for(let e of t.interfaces)n[e.name]=!0}this._subTypeMap[e.name]=n}return void 0!==n[t.name]}getDirectives(){return this._directives}getDirective(e){return this.getDirectives().find(t=>t.name===e)}toConfig(){return{description:this.description,query:this.getQueryType(),mutation:this.getMutationType(),subscription:this.getSubscriptionType(),types:Object.values(this.getTypeMap()),directives:this.getDirectives(),extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes,assumeValid:void 0!==this.__validationErrors}}}function nT(e,t){let n=tT(e);if(!t.has(n)){if(t.add(n),eZ(n))for(let e of n.getTypes())nT(e,t);else if(eX(n)||eH(n)){for(let e of n.getInterfaces())nT(e,t);for(let e of Object.values(n.getFields()))for(let n of(nT(e.type,t),e.args))nT(n.type,t)}else if(e3(n))for(let e of Object.values(n.getFields()))nT(e.type,t)}return t}function nv(e){var t,n,r,i;let o,a,s,l;if(ny(e),e.__validationErrors)return e.__validationErrors;let c=new nI(e);(a=(o=(t=c).schema).getQueryType())?eX(a)||t.reportError(`Query root type must be Object type, it cannot be ${ei(a)}.`,null!=(n=ng(o,u.QUERY))?n:a.astNode):t.reportError("Query root type must be provided.",o.astNode),(s=o.getMutationType())&&!eX(s)&&t.reportError(`Mutation root type must be Object type if provided, it cannot be ${ei(s)}.`,null!=(r=ng(o,u.MUTATION))?r:s.astNode),(l=o.getSubscriptionType())&&!eX(l)&&t.reportError(`Subscription root type must be Object type if provided, it cannot be ${ei(l)}.`,null!=(i=ng(o,u.SUBSCRIPTION))?i:l.astNode),function(e){for(let n of e.schema.getDirectives()){if(!tW(n)){e.reportError(`Expected directive but got: ${ei(n)}.`,null==n?void 0:n.astNode);continue}for(let r of(n_(e,n),0===n.locations.length&&e.reportError(`Directive @${n.name} must include 1 or more locations.`,n.astNode),n.args))if(n_(e,r),e7(r.type)||e.reportError(`The type of @${n.name}(${r.name}:) must be Input Type but got: ${ei(r.type)}.`,r.astNode),tw(r)&&null!=r.deprecationReason){var t;e.reportError(`Required argument @${n.name}(${r.name}:) cannot be deprecated.`,[nD(r.astNode),null==(t=r.astNode)?void 0:t.type])}}}(c),function(e){var t;let n,r,i,o=(t=e,n=Object.create(null),r=[],i=Object.create(null),function e(o){if(!n[o.name]){for(let a of(n[o.name]=!0,i[o.name]=r.length,Object.values(o.getFields())))if(e8(a.type)&&e3(a.type.ofType)){let n=a.type.ofType,o=i[n.name];if(r.push(a),void 0===o)e(n);else{let e=r.slice(o),i=e.map(e=>e.name).join(".");t.reportError(`Cannot reference Input Object "${n.name}" within itself through a series of non-null fields: "${i}".`,e.map(e=>e.astNode))}r.pop()}i[o.name]=void 0}});for(let t of Object.values(e.schema.getTypeMap())){if(!ty(t)){e.reportError(`Expected GraphQL named type but got: ${ei(t)}.`,t.astNode);continue}nh(t)||n_(e,t),eX(t)||eH(t)?(function(e,t){let n=Object.values(t.getFields());for(let a of(0===n.length&&e.reportError(`Type ${t.name} must define one or more fields.`,[t.astNode,...t.extensionASTNodes]),n)){var r,i,o;for(let n of(n_(e,a),tt(a.type)||e.reportError(`The type of ${t.name}.${a.name} must be Output Type but got: ${ei(a.type)}.`,null==(r=a.astNode)?void 0:r.type),a.args)){let r=n.name;n_(e,n),e7(n.type)||e.reportError(`The type of ${t.name}.${a.name}(${r}:) must be Input Type but got: ${ei(n.type)}.`,null==(i=n.astNode)?void 0:i.type),tw(n)&&null!=n.deprecationReason&&e.reportError(`Required argument ${t.name}.${a.name}(${r}:) cannot be deprecated.`,[nD(n.astNode),null==(o=n.astNode)?void 0:o.type])}}}(e,t),function(e,t){let n=Object.create(null);for(let r of t.getInterfaces()){if(!eH(r)){e.reportError(`Type ${ei(t)} must only implement Interface types, it cannot implement ${ei(r)}.`,nO(t,r));continue}if(t===r){e.reportError(`Type ${t.name} cannot implement itself because it would create a circular reference.`,nO(t,r));continue}if(n[r.name]){e.reportError(`Type ${t.name} can only implement ${r.name} once.`,nO(t,r));continue}n[r.name]=!0,function(e,t,n){let r=t.getInterfaces();for(let i of n.getInterfaces())r.includes(i)||e.reportError(i===t?`Type ${t.name} cannot implement ${n.name} because it would create a circular reference.`:`Type ${t.name} must implement ${i.name} because it is implemented by ${n.name}.`,[...nO(n,i),...nO(t,n)])}(e,t,r),function(e,t,n){let r=t.getFields();for(let l of Object.values(n.getFields())){var i,o,a,s;let u=l.name,c=r[u];if(!c){e.reportError(`Interface field ${n.name}.${u} expected but ${t.name} does not provide it.`,[l.astNode,t.astNode,...t.extensionASTNodes]);continue}for(let r of(tj(e.schema,c.type,l.type)||e.reportError(`Interface field ${n.name}.${u} expects type ${ei(l.type)} but ${t.name}.${u} is type ${ei(c.type)}.`,[null==(i=l.astNode)?void 0:i.type,null==(o=c.astNode)?void 0:o.type]),l.args)){let i=r.name,o=c.args.find(e=>e.name===i);if(!o){e.reportError(`Interface field argument ${n.name}.${u}(${i}:) expected but ${t.name}.${u} does not provide it.`,[r.astNode,c.astNode]);continue}tM(r.type,o.type)||e.reportError(`Interface field argument ${n.name}.${u}(${i}:) expects type ${ei(r.type)} but ${t.name}.${u}(${i}:) is type ${ei(o.type)}.`,[null==(a=r.astNode)?void 0:a.type,null==(s=o.astNode)?void 0:s.type])}for(let r of c.args){let i=r.name;!l.args.find(e=>e.name===i)&&tw(r)&&e.reportError(`Object field ${t.name}.${u} includes required argument ${i} that is missing from the Interface field ${n.name}.${u}.`,[r.astNode,l.astNode])}}}(e,t,r)}}(e,t)):eZ(t)?function(e,t){let n=t.getTypes();0===n.length&&e.reportError(`Union type ${t.name} must define one or more member types.`,[t.astNode,...t.extensionASTNodes]);let r=Object.create(null);for(let i of n){if(r[i.name]){e.reportError(`Union type ${t.name} can only include type ${i.name} once.`,nb(t,i.name));continue}r[i.name]=!0,eX(i)||e.reportError(`Union type ${t.name} can only include Object types, it cannot include ${ei(i)}.`,nb(t,String(i)))}}(e,t):e1(t)?function(e,t){let n=t.getValues();for(let r of(0===n.length&&e.reportError(`Enum type ${t.name} must define one or more values.`,[t.astNode,...t.extensionASTNodes]),n))n_(e,r)}(e,t):e3(t)&&(function(e,t){let n=Object.values(t.getFields());for(let o of(0===n.length&&e.reportError(`Input Object type ${t.name} must define one or more fields.`,[t.astNode,...t.extensionASTNodes]),n)){var r,i;n_(e,o),e7(o.type)||e.reportError(`The type of ${t.name}.${o.name} must be Input Type but got: ${ei(o.type)}.`,null==(r=o.astNode)?void 0:r.type),tU(o)&&null!=o.deprecationReason&&e.reportError(`Required input field ${t.name}.${o.name} cannot be deprecated.`,[nD(o.astNode),null==(i=o.astNode)?void 0:i.type]),t.isOneOf&&function(e,t,n){if(e8(t.type)){var r;n.reportError(`OneOf input field ${e.name}.${t.name} must be nullable.`,null==(r=t.astNode)?void 0:r.type)}void 0!==t.defaultValue&&n.reportError(`OneOf input field ${e.name}.${t.name} cannot have a default value.`,t.astNode)}(t,o,e)}}(e,t),o(t))}}(c);let p=c.getErrors();return e.__validationErrors=p,p}function nN(e){let t=nv(e);if(0!==t.length)throw Error(t.map(e=>e.message).join("\n\n"))}class nI{constructor(e){this._errors=[],this.schema=e}reportError(e,t){let n=Array.isArray(t)?t.filter(Boolean):t;this._errors.push(new w(e,{nodes:n}))}getErrors(){return this._errors}}function ng(e,t){var n;return null==(n=[e.astNode,...e.extensionASTNodes].flatMap(e=>{var t;return null!=(t=null==e?void 0:e.operationTypes)?t:[]}).find(e=>e.operation===t))?void 0:n.type}function n_(e,t){t.name.startsWith("__")&&e.reportError(`Name "${t.name}" must not begin with "__", which is reserved by GraphQL introspection.`,t.astNode)}function nO(e,t){let{astNode:n,extensionASTNodes:r}=e;return(null!=n?[n,...r]:r).flatMap(e=>{var t;return null!=(t=e.interfaces)?t:[]}).filter(e=>e.name.value===t.name)}function nb(e,t){let{astNode:n,extensionASTNodes:r}=e;return(null!=n?[n,...r]:r).flatMap(e=>{var t;return null!=(t=e.types)?t:[]}).filter(e=>e.name.value===t)}function nD(e){var t;return null==e||null==(t=e.directives)?void 0:t.find(e=>e.name.value===t4.name)}function nA(e,t){switch(t.kind){case p.LIST_TYPE:{let n=nA(e,t.type);return n&&new tu(n)}case p.NON_NULL_TYPE:{let n=nA(e,t.type);return n&&new tc(n)}case p.NAMED_TYPE:return e.getType(t.name.value)}}class nS{constructor(e,t,n){this._schema=e,this._typeStack=[],this._parentTypeStack=[],this._inputTypeStack=[],this._fieldDefStack=[],this._defaultValueStack=[],this._directive=null,this._argument=null,this._enumValue=null,this._getFieldDef=null!=n?n:nw,t&&(e7(t)&&this._inputTypeStack.push(t),to(t)&&this._parentTypeStack.push(t),tt(t)&&this._typeStack.push(t))}get[Symbol.toStringTag](){return"TypeInfo"}getType(){if(this._typeStack.length>0)return this._typeStack[this._typeStack.length-1]}getParentType(){if(this._parentTypeStack.length>0)return this._parentTypeStack[this._parentTypeStack.length-1]}getInputType(){if(this._inputTypeStack.length>0)return this._inputTypeStack[this._inputTypeStack.length-1]}getParentInputType(){if(this._inputTypeStack.length>1)return this._inputTypeStack[this._inputTypeStack.length-2]}getFieldDef(){if(this._fieldDefStack.length>0)return this._fieldDefStack[this._fieldDefStack.length-1]}getDefaultValue(){if(this._defaultValueStack.length>0)return this._defaultValueStack[this._defaultValueStack.length-1]}getDirective(){return this._directive}getArgument(){return this._argument}getEnumValue(){return this._enumValue}enter(e){let t=this._schema;switch(e.kind){case p.SELECTION_SET:{let e=tT(this.getType());this._parentTypeStack.push(to(e)?e:void 0);break}case p.FIELD:{let n,r,i=this.getParentType();i&&(n=this._getFieldDef(t,i,e))&&(r=n.type),this._fieldDefStack.push(n),this._typeStack.push(tt(r)?r:void 0);break}case p.DIRECTIVE:this._directive=t.getDirective(e.name.value);break;case p.OPERATION_DEFINITION:{let n=t.getRootType(e.operation);this._typeStack.push(eX(n)?n:void 0);break}case p.INLINE_FRAGMENT:case p.FRAGMENT_DEFINITION:{let n=e.typeCondition,r=n?nA(t,n):tT(this.getType());this._typeStack.push(tt(r)?r:void 0);break}case p.VARIABLE_DEFINITION:{let n=nA(t,e.type);this._inputTypeStack.push(e7(n)?n:void 0);break}case p.ARGUMENT:{var n;let t,r,i=null!=(n=this.getDirective())?n:this.getFieldDef();i&&(t=i.args.find(t=>t.name===e.name.value))&&(r=t.type),this._argument=t,this._defaultValueStack.push(t?t.defaultValue:void 0),this._inputTypeStack.push(e7(r)?r:void 0);break}case p.LIST:{let e=tm(this.getInputType()),t=e9(e)?e.ofType:e;this._defaultValueStack.push(void 0),this._inputTypeStack.push(e7(t)?t:void 0);break}case p.OBJECT_FIELD:{let t,n,r=tT(this.getInputType());e3(r)&&(n=r.getFields()[e.name.value])&&(t=n.type),this._defaultValueStack.push(n?n.defaultValue:void 0),this._inputTypeStack.push(e7(t)?t:void 0);break}case p.ENUM:{let t,n=tT(this.getInputType());e1(n)&&(t=n.getValue(e.value)),this._enumValue=t}}}leave(e){switch(e.kind){case p.SELECTION_SET:this._parentTypeStack.pop();break;case p.FIELD:this._fieldDefStack.pop(),this._typeStack.pop();break;case p.DIRECTIVE:this._directive=null;break;case p.OPERATION_DEFINITION:case p.INLINE_FRAGMENT:case p.FRAGMENT_DEFINITION:this._typeStack.pop();break;case p.VARIABLE_DEFINITION:this._inputTypeStack.pop();break;case p.ARGUMENT:this._argument=null,this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case p.LIST:case p.OBJECT_FIELD:this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case p.ENUM:this._enumValue=null}}}function nw(e,t,n){let r=n.name.value;return r===nc.name&&e.getQueryType()===t?nc:r===np.name&&e.getQueryType()===t?np:r===nd.name&&to(t)?nd:eX(t)||eH(t)?t.getFields()[r]:void 0}function nR(e,t){return{enter(...n){let r=n[0];e.enter(r);let i=e$(t,r.kind).enter;if(i){let o=i.apply(t,n);return void 0!==o&&(e.leave(r),U(o)&&e.enter(o)),o}},leave(...n){let r,i=n[0],o=e$(t,i.kind).leave;return o&&(r=o.apply(t,n)),e.leave(i),r}}}function nk(e){return nL(e)||nC(e)||nU(e)}function nL(e){return e.kind===p.OPERATION_DEFINITION||e.kind===p.FRAGMENT_DEFINITION}function n$(e){return e.kind===p.FIELD||e.kind===p.FRAGMENT_SPREAD||e.kind===p.INLINE_FRAGMENT}function nx(e){return e.kind===p.VARIABLE||e.kind===p.INT||e.kind===p.FLOAT||e.kind===p.STRING||e.kind===p.BOOLEAN||e.kind===p.NULL||e.kind===p.ENUM||e.kind===p.LIST||e.kind===p.OBJECT}function nF(e){return e.kind===p.NAMED_TYPE||e.kind===p.LIST_TYPE||e.kind===p.NON_NULL_TYPE}function nC(e){return e.kind===p.SCHEMA_DEFINITION||nV(e)||e.kind===p.DIRECTIVE_DEFINITION}function nV(e){return e.kind===p.SCALAR_TYPE_DEFINITION||e.kind===p.OBJECT_TYPE_DEFINITION||e.kind===p.INTERFACE_TYPE_DEFINITION||e.kind===p.UNION_TYPE_DEFINITION||e.kind===p.ENUM_TYPE_DEFINITION||e.kind===p.INPUT_OBJECT_TYPE_DEFINITION}function nU(e){return e.kind===p.SCHEMA_EXTENSION||nM(e)}function nM(e){return e.kind===p.SCALAR_TYPE_EXTENSION||e.kind===p.OBJECT_TYPE_EXTENSION||e.kind===p.INTERFACE_TYPE_EXTENSION||e.kind===p.UNION_TYPE_EXTENSION||e.kind===p.ENUM_TYPE_EXTENSION||e.kind===p.INPUT_OBJECT_TYPE_EXTENSION}function nj(e){return e.kind===p.TYPE_COORDINATE||e.kind===p.MEMBER_COORDINATE||e.kind===p.ARGUMENT_COORDINATE||e.kind===p.DIRECTIVE_COORDINATE||e.kind===p.DIRECTIVE_ARGUMENT_COORDINATE}function nP(e){return{Document(t){for(let n of t.definitions)if(!nL(n)){let t=n.kind===p.SCHEMA_DEFINITION||n.kind===p.SCHEMA_EXTENSION?"schema":'"'+n.name.value+'"';e.reportError(new w(`The ${t} definition is not executable.`,{nodes:n}))}return!1}}}function nG(e){return{Field(t){let n=e.getParentType();if(n&&!e.getFieldDef()){var r,i;let o=e.getSchema(),a=t.name.value,s=em("to use an inline fragment on",function(e,t,n){if(!ts(t))return[];let r=new Set,i=Object.create(null);for(let a of e.getPossibleTypes(t))if(a.getFields()[n])for(let e of(r.add(a),i[a.name]=1,a.getInterfaces())){var o;e.getFields()[n]&&(r.add(e),i[e.name]=(null!=(o=i[e.name])?o:0)+1)}return[...r].sort((t,n)=>{let r=i[n.name]-i[t.name];return 0!==r?r:eH(t)&&e.isSubType(t,n)?-1:eH(n)&&e.isSubType(n,t)?1:eN(t.name,n.name)}).map(e=>e.name)}(o,n,a));""===s&&(s=em((r=n,i=a,eX(r)||eH(r)?e_(i,Object.keys(r.getFields())):[]))),e.reportError(new w(`Cannot query field "${a}" on type "${n.name}".`+s,{nodes:t}))}}}}function nB(e){return{InlineFragment(t){let n=t.typeCondition;if(n){let t=nA(e.getSchema(),n);if(t&&!to(t)){let t=eF(n);e.reportError(new w(`Fragment cannot condition on non composite type "${t}".`,{nodes:n}))}}},FragmentDefinition(t){let n=nA(e.getSchema(),t.typeCondition);if(n&&!to(n)){let n=eF(t.typeCondition);e.reportError(new w(`Fragment "${t.name.value}" cannot condition on non composite type "${n}".`,{nodes:t.typeCondition}))}}}}function nY(e){return{...nQ(e),Argument(t){let n=e.getArgument(),r=e.getFieldDef(),i=e.getParentType();if(!n&&r&&i){let n=t.name.value,o=e_(n,r.args.map(e=>e.name));e.reportError(new w(`Unknown argument "${n}" on field "${i.name}.${r.name}".`+em(o),{nodes:t}))}}}}function nQ(e){let t=Object.create(null),n=e.getSchema();for(let e of n?n.getDirectives():t8)t[e.name]=e.args.map(e=>e.name);for(let n of e.getDocument().definitions)if(n.kind===p.DIRECTIVE_DEFINITION){var r;let e=null!=(r=n.arguments)?r:[];t[n.name.value]=e.map(e=>e.name.value)}return{Directive(n){let r=n.name.value,i=t[r];if(n.arguments&&i)for(let t of n.arguments){let n=t.name.value;if(!i.includes(n)){let o=e_(n,i);e.reportError(new w(`Unknown argument "${n}" on directive "@${r}".`+em(o),{nodes:t}))}}return!1}}}function nq(e){let t=Object.create(null),n=e.getSchema();for(let e of n?n.getDirectives():t8)t[e.name]=e.locations;for(let n of e.getDocument().definitions)n.kind===p.DIRECTIVE_DEFINITION&&(t[n.name.value]=n.locations.map(e=>e.value));return{Directive(n,r,i,o,a){let s=n.name.value,l=t[s];if(!l)return void e.reportError(new w(`Unknown directive "@${s}".`,{nodes:n}));let d=function(e){let t=e[e.length-1];switch("kind"in t||_(!1),t.kind){case p.OPERATION_DEFINITION:var n=t.operation;switch(n){case u.QUERY:return c.QUERY;case u.MUTATION:return c.MUTATION;case u.SUBSCRIPTION:return c.SUBSCRIPTION}return;case p.FIELD:return c.FIELD;case p.FRAGMENT_SPREAD:return c.FRAGMENT_SPREAD;case p.INLINE_FRAGMENT:return c.INLINE_FRAGMENT;case p.FRAGMENT_DEFINITION:return c.FRAGMENT_DEFINITION;case p.VARIABLE_DEFINITION:return c.VARIABLE_DEFINITION;case p.SCHEMA_DEFINITION:case p.SCHEMA_EXTENSION:return c.SCHEMA;case p.SCALAR_TYPE_DEFINITION:case p.SCALAR_TYPE_EXTENSION:return c.SCALAR;case p.OBJECT_TYPE_DEFINITION:case p.OBJECT_TYPE_EXTENSION:return c.OBJECT;case p.FIELD_DEFINITION:return c.FIELD_DEFINITION;case p.INTERFACE_TYPE_DEFINITION:case p.INTERFACE_TYPE_EXTENSION:return c.INTERFACE;case p.UNION_TYPE_DEFINITION:case p.UNION_TYPE_EXTENSION:return c.UNION;case p.ENUM_TYPE_DEFINITION:case p.ENUM_TYPE_EXTENSION:return c.ENUM;case p.ENUM_VALUE_DEFINITION:return c.ENUM_VALUE;case p.INPUT_OBJECT_TYPE_DEFINITION:case p.INPUT_OBJECT_TYPE_EXTENSION:return c.INPUT_OBJECT;case p.INPUT_VALUE_DEFINITION:{let t=e[e.length-3];return"kind"in t||_(!1),t.kind===p.INPUT_OBJECT_TYPE_DEFINITION?c.INPUT_FIELD_DEFINITION:c.ARGUMENT_DEFINITION}default:_(!1,"Unexpected kind: "+ei(t.kind))}}(a);d&&!l.includes(d)&&e.reportError(new w(`Directive "@${s}" may not be used on ${d}.`,{nodes:n}))}}}function nJ(e){return{FragmentSpread(t){let n=t.name.value;e.getFragment(n)||e.reportError(new w(`Unknown fragment "${n}".`,{nodes:t.name}))}}}function nK(e){let t=e.getSchema(),n=t?t.getTypeMap():Object.create(null),r=Object.create(null);for(let t of e.getDocument().definitions)nV(t)&&(r[t.name.value]=!0);let i=[...Object.keys(n),...Object.keys(r)];return{NamedType(t,o,a,s,l){let u=t.name.value;if(!n[u]&&!r[u]){var c,p;let n=null!=(c=l[2])?c:a,r=null!=n&&"kind"in(p=n)&&(nC(p)||nU(p));if(r&&nX.includes(u))return;let o=e_(u,r?nX.concat(i):i);e.reportError(new w(`Unknown type "${u}".`+em(o),{nodes:t}))}}}}let nX=[...tX,...nf].map(e=>e.name);function nz(e){let t=0;return{Document(e){t=e.definitions.filter(e=>e.kind===p.OPERATION_DEFINITION).length},OperationDefinition(n){!n.name&&t>1&&e.reportError(new w("This anonymous operation must be the only defined operation.",{nodes:n}))}}}function nH(e){var t,n,r;let i=e.getSchema(),o=null!=(t=null!=(n=null!=(r=null==i?void 0:i.astNode)?r:null==i?void 0:i.getQueryType())?n:null==i?void 0:i.getMutationType())?t:null==i?void 0:i.getSubscriptionType(),a=0;return{SchemaDefinition(t){o?e.reportError(new w("Cannot define a new schema within a schema extension.",{nodes:t})):(a>0&&e.reportError(new w("Must provide only one schema definition.",{nodes:t})),++a)}}}function nW(e){return{Field(t){if(("__schema"===t.name.value||"__type"===t.name.value)&&function t(n,r=Object.create(null),i=0){if(n.kind===p.FRAGMENT_SPREAD){let o=n.name.value;if(!0===r[o])return!1;let a=e.getFragment(o);if(!a)return!1;try{return r[o]=!0,t(a,r,i)}finally{r[o]=void 0}}if(n.kind===p.FIELD&&("fields"===n.name.value||"interfaces"===n.name.value||"possibleTypes"===n.name.value||"inputFields"===n.name.value)&&++i>=3)return!0;if("selectionSet"in n&&n.selectionSet){for(let e of n.selectionSet.selections)if(t(e,r,i))return!0}return!1}(t))return e.reportError(new w("Maximum introspection depth exceeded",{nodes:[t]})),!1}}}function nZ(e){let t=Object.create(null),n=[],r=Object.create(null);return{OperationDefinition:()=>!1,FragmentDefinition:i=>((function i(o){if(t[o.name.value])return;let a=o.name.value;t[a]=!0;let s=e.getFragmentSpreads(o.selectionSet);if(0!==s.length){for(let t of(r[a]=n.length,s)){let o=t.name.value,a=r[o];if(n.push(t),void 0===a){let t=e.getFragment(o);t&&i(t)}else{let t=n.slice(a),r=t.slice(0,-1).map(e=>'"'+e.name.value+'"').join(", ");e.reportError(new w(`Cannot spread fragment "${o}" within itself`+(""!==r?` via ${r}.`:"."),{nodes:t}))}n.pop()}r[a]=void 0}})(i),!1)}}function n0(e){let t=Object.create(null);return{OperationDefinition:{enter(){t=Object.create(null)},leave(n){for(let{node:r}of e.getRecursiveVariableUsages(n)){let i=r.name.value;!0!==t[i]&&e.reportError(new w(n.name?`Variable "$${i}" is not defined by operation "${n.name.value}".`:`Variable "$${i}" is not defined.`,{nodes:[r,n]}))}}},VariableDefinition(e){t[e.variable.name.value]=!0}}}function n1(e){let t=[],n=[];return{OperationDefinition:e=>(t.push(e),!1),FragmentDefinition:e=>(n.push(e),!1),Document:{leave(){let r=Object.create(null);for(let n of t)for(let t of e.getRecursivelyReferencedFragments(n))r[t.name.value]=!0;for(let t of n){let n=t.name.value;!0!==r[n]&&e.reportError(new w(`Fragment "${n}" is never used.`,{nodes:t}))}}}}}function n2(e){let t=[];return{OperationDefinition:{enter(){t=[]},leave(n){let r=Object.create(null);for(let{node:t}of e.getRecursiveVariableUsages(n))r[t.name.value]=!0;for(let i of t){let t=i.variable.name.value;!0!==r[t]&&e.reportError(new w(n.name?`Variable "$${t}" is never used in operation "${n.name.value}".`:`Variable "$${t}" is never used.`,{nodes:i}))}}},VariableDefinition(e){t.push(e)}}}function n3(e){switch(e.kind){case p.OBJECT:return{...e,fields:e.fields.map(e=>({...e,value:n3(e.value)})).sort((e,t)=>eN(e.name.value,t.name.value))};case p.LIST:return{...e,values:e.values.map(n3)};case p.INT:case p.FLOAT:case p.STRING:case p.BOOLEAN:case p.NULL:case p.ENUM:case p.VARIABLE:return e}}function n4(e){let t=new rt,n=new rn,r=new Map;return{SelectionSet(i){for(let[[o,a],s,l]of function(e,t,n,r,i,o){let a=[],[s,l]=n7(e,t,i,o);if(function(e,t,n,r,i,o){for(let[a,s]of Object.entries(o))if(s.length>1)for(let o=0;o`subfields "${t}" conflict because `+e(n)).join(" and "):t}(a);e.reportError(new w(`Fields "${o}" conflict because ${t}. Use different aliases on the fields to fetch both if this was intentional.`,{nodes:s.concat(l)}))}}}}function n9(e,t,n,r,i,o,a,s){if(r.has(a,s,o))return;r.add(a,s,o);let l=e.getFragment(s);if(!l)return;let[u,c]=re(e,n,l);if(a!==u)for(let s of(n8(e,t,n,r,i,o,a,u),c))n9(e,t,n,r,i,o,a,s)}function n5(e,t,n,r,i,o,a,s){if(a===s||i.has(a,s,o))return;i.add(a,s,o);let l=e.getFragment(a),u=e.getFragment(s);if(!l||!u)return;let[c,p]=re(e,n,l),[d,f]=re(e,n,u);for(let s of(n8(e,t,n,r,i,o,c,d),f))n5(e,t,n,r,i,o,a,s);for(let a of p)n5(e,t,n,r,i,o,a,s)}function n8(e,t,n,r,i,o,a,s){for(let[l,u]of Object.entries(a)){let a=s[l];if(a)for(let s of u)for(let u of a){let a=n6(e,n,r,i,o,l,s,u);a&&t.push(a)}}}function n6(e,t,n,r,i,o,a,s){let[l,u,c]=a,[p,d,f]=s,h=i||l!==p&&eX(l)&&eX(p);if(!h){let e=u.name.value,t=d.name.value;if(e!==t)return[[o,`"${e}" and "${t}" are different fields`],[u],[d]];if(!function(e,t){let n=e.arguments,r=t.arguments;if(void 0===n||0===n.length)return void 0===r||0===r.length;if(void 0===r||0===r.length||n.length!==r.length)return!1;let i=new Map(r.map(({name:e,value:t})=>[e.value,t]));return n.every(e=>{let t=e.value,n=i.get(e.name.value);return void 0!==n&&function(e){return eF(n3(e))}(t)===function(e){return eF(n3(e))}(n)})}(u,d))return[[o,"they have differing arguments"],[u],[d]]}let m=null==c?void 0:c.type,y=null==f?void 0:f.type;if(m&&y&&function e(t,n){return e9(t)?!e9(n)||e(t.ofType,n.ofType):!!e9(n)||(e8(t)?!e8(n)||e(t.ofType,n.ofType):!!e8(n)||!!(tr(t)||tr(n))&&t!==n)}(m,y))return[[o,`they return conflicting types "${ei(m)}" and "${ei(y)}"`],[u],[d]];let E=u.selectionSet,T=d.selectionSet;if(E&&T){var v=function(e,t,n,r,i,o,a,s,l){let u=[],[c,p]=n7(e,t,o,a),[d,f]=n7(e,t,s,l);for(let o of(n8(e,u,t,n,r,i,c,d),f))n9(e,u,t,n,r,i,c,o);for(let o of p)n9(e,u,t,n,r,i,d,o);for(let o of p)for(let a of f)n5(e,u,t,n,r,i,o,a);return u}(e,t,n,r,h,tT(m),E,tT(y),T),N=o,I=u,g=d;return v.length>0?[[N,v.map(([e])=>e)],[I,...v.map(([,e])=>e).flat()],[g,...v.map(([,,e])=>e).flat()]]:void 0}}function n7(e,t,n,r){let i=t.get(r);if(i)return i;let o=Object.create(null),a=Object.create(null);!function e(t,n,r,i,o){for(let a of r.selections)switch(a.kind){case p.FIELD:{let e,t=a.name.value;(eX(n)||eH(n))&&(e=n.getFields()[t]);let r=a.alias?a.alias.value:t;i[r]||(i[r]=[]),i[r].push([n,a,e]);break}case p.FRAGMENT_SPREAD:o[a.name.value]=!0;break;case p.INLINE_FRAGMENT:{let r=a.typeCondition,s=r?nA(t.getSchema(),r):n;e(t,s,a.selectionSet,i,o)}}}(e,n,r,o,a);let s=[o,Object.keys(a)];return t.set(r,s),s}function re(e,t,n){let r=t.get(n.selectionSet);if(r)return r;let i=nA(e.getSchema(),n.typeCondition);return n7(e,t,i,n.selectionSet)}class rt{constructor(){this._data=new Map}has(e,t,n){var r;let i=null==(r=this._data.get(e))?void 0:r.get(t);return void 0!==i&&(!!n||n===i)}add(e,t,n){let r=this._data.get(e);void 0===r?this._data.set(e,new Map([[t,n]])):r.set(t,n)}}class rn{constructor(){this._orderedPairSet=new rt}has(e,t,n){return ee.name.value));for(let n of r.args)if(!i.has(n.name)&&tw(n)){let i=ei(n.type);e.reportError(new w(`Field "${r.name}" argument "${n.name}" of type "${i}" is required, but it was not provided.`,{nodes:t}))}}}}}function rs(e){var t,n;let r=Object.create(null),i=e.getSchema();for(let e of null!=(t=null==i?void 0:i.getDirectives())?t:t8)r[e.name]=eE(e.args.filter(tw),e=>e.name);for(let t of e.getDocument().definitions)if(t.kind===p.DIRECTIVE_DEFINITION){let e=null!=(n=t.arguments)?n:[];r[t.name.value]=eE(e.filter(rl),e=>e.name.value)}return{Directive:{leave(t){let n=t.name.value,i=r[n];if(i){var o;let r=new Set((null!=(o=t.arguments)?o:[]).map(e=>e.name.value));for(let[o,a]of Object.entries(i))if(!r.has(o)){let r=eQ(a.type)?ei(a.type):eF(a.type);e.reportError(new w(`Directive "@${n}" argument "${o}" of type "${r}" is required, but it was not provided.`,{nodes:t}))}}}}}}function rl(e){return e.type.kind===p.NON_NULL_TYPE&&null==e.defaultValue}function ru(e){return{Field(t){let n=e.getType(),r=t.selectionSet;if(n)if(tr(tT(n))){if(r){let i=t.name.value,o=ei(n);e.reportError(new w(`Field "${i}" must not have a selection since type "${o}" has no subfields.`,{nodes:r}))}}else if(r){if(0===r.selections.length){let r=t.name.value,i=ei(n);e.reportError(new w(`Field "${r}" of type "${i}" must have at least one field selected.`,{nodes:t}))}}else{let r=t.name.value,i=ei(n);e.reportError(new w(`Field "${r}" of type "${i}" must have a selection of subfields. Did you mean "${r} { ... }"?`,{nodes:t}))}}}}function rc(e){return e.map(e=>"number"==typeof e?"["+e.toString()+"]":"."+e).join("")}function rp(e,t,n){return{prev:e,key:t,typename:n}}function rd(e){let t=[],n=e;for(;n;)t.push(n.key),n=n.prev;return t.reverse()}function rf(e,t,n=rh){return function e(t,n,r,i){if(e8(n))return null!=t?e(t,n.ofType,r,i):void r(rd(i),t,new w(`Expected non-nullable type "${ei(n)}" not to be null.`));if(null==t)return null;if(e9(n)){let o=n.ofType;return t7(t)?Array.from(t,(t,n)=>e(t,o,r,rp(i,n,void 0))):[e(t,o,r,i)]}if(e3(n)){if(!g(t)||Array.isArray(t))return void r(rd(i),t,new w(`Expected type "${n.name}" to be an object.`));let o={},a=n.getFields();for(let s of Object.values(a)){let a=t[s.name];if(void 0===a){if(void 0!==s.defaultValue)o[s.name]=s.defaultValue;else if(e8(s.type)){let e=ei(s.type);r(rd(i),t,new w(`Field "${s.name}" of required type "${e}" was not provided.`))}continue}o[s.name]=e(a,s.type,r,rp(i,s.name,n.name))}for(let e of Object.keys(t))if(!a[e]){let o=e_(e,Object.keys(n.getFields()));r(rd(i),t,new w(`Field "${e}" is not defined by type "${n.name}".`+em(o)))}if(n.isOneOf){let e=Object.keys(o);1!==e.length&&r(rd(i),t,new w(`Exactly one key must be specified for OneOf type "${n.name}".`));let a=e[0],s=o[a];null===s&&r(rd(i).concat(a),s,new w(`Field "${a}" must be non-null.`))}return o}if(tr(n)){let e;try{e=n.parseValue(t)}catch(e){e instanceof w?r(rd(i),t,e):r(rd(i),t,new w(`Expected type "${n.name}". `+e.message,{originalError:e}));return}return void 0===e&&r(rd(i),t,new w(`Expected type "${n.name}".`)),e}_(!1,"Unexpected input type: "+ei(n))}(e,t,n,void 0)}function rh(e,t,n){let r="Invalid value "+ei(t);throw e.length>0&&(r+=` at "value${rc(e)}"`),n.message=r+": "+n.message,n}function rm(e,t,n){if(e){if(e.kind===p.VARIABLE){let r=e.name.value;if(null==n||void 0===n[r])return;let i=n[r];if(null===i&&e8(t))return;return i}if(e8(t)){if(e.kind===p.NULL)return;return rm(e,t.ofType,n)}if(e.kind===p.NULL)return null;if(e9(t)){let r=t.ofType;if(e.kind===p.LIST){let t=[];for(let i of e.values)if(ry(i,n)){if(e8(r))return;t.push(null)}else{let e=rm(i,r,n);if(void 0===e)return;t.push(e)}return t}let i=rm(e,r,n);if(void 0===i)return;return[i]}if(e3(t)){if(e.kind!==p.OBJECT)return;let r=Object.create(null),i=eE(e.fields,e=>e.name.value);for(let e of Object.values(t.getFields())){let t=i[e.name];if(!t||ry(t.value,n)){if(void 0!==e.defaultValue)r[e.name]=e.defaultValue;else if(e8(e.type))return;continue}let o=rm(t.value,e.type,n);if(void 0===o)return;r[e.name]=o}if(t.isOneOf){let e=Object.keys(r);if(1!==e.length||null===r[e[0]])return}return r}if(tr(t)){let r;try{r=t.parseLiteral(e,n)}catch(e){return}if(void 0===r)return;return r}_(!1,"Unexpected input type: "+ei(t))}}function ry(e,t){return e.kind===p.VARIABLE&&(null==t||void 0===t[e.name.value])}function rE(e,t,n,r){let i=[],o=null==r?void 0:r.maxErrors;try{let r=function(e,t,n,r){let i={};for(let o of t){let t=o.variable.name.value,a=nA(e,o.type);if(!e7(a)){let e=eF(o.type);r(new w(`Variable "$${t}" expected value of type "${e}" which cannot be used as an input type.`,{nodes:o.type}));continue}if(!rN(n,t)){if(o.defaultValue)i[t]=rm(o.defaultValue,a);else if(e8(a)){let e=ei(a);r(new w(`Variable "$${t}" of required type "${e}" was not provided.`,{nodes:o}))}continue}let s=n[t];if(null===s&&e8(a)){let e=ei(a);r(new w(`Variable "$${t}" of non-null type "${e}" must not be null.`,{nodes:o}));continue}i[t]=rf(s,a,(e,n,i)=>{let a=`Variable "$${t}" got invalid value `+ei(n);e.length>0&&(a+=` at "${t}${rc(e)}"`),r(new w(a+"; "+i.message,{nodes:o,originalError:i}))})}return i}(e,t,n,e=>{if(null!=o&&i.length>=o)throw new w("Too many errors processing variables, error limit reached. Execution aborted.");i.push(e)});if(0===i.length)return{coerced:r}}catch(e){i.push(e)}return{errors:i}}function rT(e,t,n){var r;let i={},o=eE(null!=(r=t.arguments)?r:[],e=>e.name.value);for(let r of e.args){let e=r.name,a=r.type,s=o[e];if(!s){if(void 0!==r.defaultValue)i[e]=r.defaultValue;else if(e8(a))throw new w(`Argument "${e}" of required type "${ei(a)}" was not provided.`,{nodes:t});continue}let l=s.value,u=l.kind===p.NULL;if(l.kind===p.VARIABLE){let t=l.name.value;if(null==n||!rN(n,t)){if(void 0!==r.defaultValue)i[e]=r.defaultValue;else if(e8(a))throw new w(`Argument "${e}" of required type "${ei(a)}" was provided the variable "$${t}" which was not provided a runtime value.`,{nodes:l});continue}u=null==n[t]}if(u&&e8(a))throw new w(`Argument "${e}" of non-null type "${ei(a)}" must not be null.`,{nodes:l});let c=rm(l,a,n);if(void 0===c)throw new w(`Argument "${e}" has invalid value ${eF(l)}.`,{nodes:l});i[e]=c}return i}function rv(e,t,n){var r;let i=null==(r=t.directives)?void 0:r.find(t=>t.name.value===e.name);if(i)return rT(e,i,n)}function rN(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function rI(e,t,n,r,i){let o=new Map;return rg(e,t,n,r,i,o,new Set),o}function rg(e,t,n,r,i,o,a){for(let l of i.selections)switch(l.kind){case p.FIELD:{var s;if(!r_(n,l))continue;let e=(s=l).alias?s.alias.value:s.name.value,t=o.get(e);void 0!==t?t.push(l):o.set(e,[l]);break}case p.INLINE_FRAGMENT:if(!r_(n,l)||!rO(e,l,r))continue;rg(e,t,n,r,l.selectionSet,o,a);break;case p.FRAGMENT_SPREAD:{let i=l.name.value;if(a.has(i)||!r_(n,l))continue;a.add(i);let s=t[i];if(!s||!rO(e,s,r))continue;rg(e,t,n,r,s.selectionSet,o,a)}}}function r_(e,t){let n=rv(t2,t,e);if((null==n?void 0:n.if)===!0)return!1;let r=rv(t1,t,e);return(null==r?void 0:r.if)!==!1}function rO(e,t,n){let r=t.typeCondition;if(!r)return!0;let i=nA(e,r);return i===n||!!ts(i)&&e.isSubType(i,n)}function rb(e){return{OperationDefinition(t){if("subscription"===t.operation){let n=e.getSchema(),r=n.getSubscriptionType();if(r){let i=t.name?t.name.value:null,o=Object.create(null),a=e.getDocument(),s=Object.create(null);for(let e of a.definitions)e.kind===p.FRAGMENT_DEFINITION&&(s[e.name.value]=e);let l=rI(n,s,o,r,t.selectionSet);if(l.size>1){let t=[...l.values()].slice(1).flat();e.reportError(new w(null!=i?`Subscription "${i}" must select only one top level field.`:"Anonymous Subscription must select only one top level field.",{nodes:t}))}for(let t of l.values())t[0].name.value.startsWith("__")&&e.reportError(new w(null!=i?`Subscription "${i}" must not select an introspection top level field.`:"Anonymous Subscription must not select an introspection top level field.",{nodes:t}))}}}}}function rD(e,t){let n=new Map;for(let r of e){let e=t(r),i=n.get(e);void 0===i?n.set(e,[r]):i.push(r)}return n}function rA(e){return{DirectiveDefinition(e){var t;let r=null!=(t=e.arguments)?t:[];return n(`@${e.name.value}`,r)},InterfaceTypeDefinition:t,InterfaceTypeExtension:t,ObjectTypeDefinition:t,ObjectTypeExtension:t};function t(e){var t,r;let i=e.name.value;for(let o of null!=(t=e.fields)?t:[]){let e=o.name.value;n(`${i}.${e}`,null!=(r=o.arguments)?r:[])}return!1}function n(t,n){for(let[r,i]of rD(n,e=>e.name.value))i.length>1&&e.reportError(new w(`Argument "${t}(${r}:)" can only be defined once.`,{nodes:i.map(e=>e.name)}));return!1}}function rS(e){return{Field:t,Directive:t};function t(t){var n;for(let[r,i]of rD(null!=(n=t.arguments)?n:[],e=>e.name.value))i.length>1&&e.reportError(new w(`There can be only one argument named "${r}".`,{nodes:i.map(e=>e.name)}))}}function rw(e){let t=Object.create(null),n=e.getSchema();return{DirectiveDefinition(r){let i=r.name.value;return null!=n&&n.getDirective(i)?void e.reportError(new w(`Directive "@${i}" already exists in the schema. It cannot be redefined.`,{nodes:r.name})):(t[i]?e.reportError(new w(`There can be only one directive named "@${i}".`,{nodes:[t[i],r.name]})):t[i]=r.name,!1)}}}function rR(e){let t=Object.create(null),n=e.getSchema();for(let e of n?n.getDirectives():t8)t[e.name]=!e.isRepeatable;for(let n of e.getDocument().definitions)n.kind===p.DIRECTIVE_DEFINITION&&(t[n.name.value]=!n.repeatable);let r=Object.create(null),i=Object.create(null);return{enter(n){let o;if("directives"in n&&n.directives){if(n.kind===p.SCHEMA_DEFINITION||n.kind===p.SCHEMA_EXTENSION)o=r;else if(nV(n)||nM(n)){let e=n.name.value;void 0===(o=i[e])&&(i[e]=o=Object.create(null))}else o=Object.create(null);for(let r of n.directives){let n=r.name.value;t[n]&&(o[n]?e.reportError(new w(`The directive "@${n}" can only be used once at this location.`,{nodes:[o[n],r]})):o[n]=r)}}}}}function rk(e){let t=e.getSchema(),n=t?t.getTypeMap():Object.create(null),r=Object.create(null);return{EnumTypeDefinition:i,EnumTypeExtension:i};function i(t){var i;let o=t.name.value;r[o]||(r[o]=Object.create(null));let a=null!=(i=t.values)?i:[],s=r[o];for(let t of a){let r=t.name.value,i=n[o];e1(i)&&i.getValue(r)?e.reportError(new w(`Enum value "${o}.${r}" already exists in the schema. It cannot also be defined in this type extension.`,{nodes:t.name})):s[r]?e.reportError(new w(`Enum value "${o}.${r}" can only be defined once.`,{nodes:[s[r],t.name]})):s[r]=t.name}return!1}}function rL(e){let t=e.getSchema(),n=t?t.getTypeMap():Object.create(null),r=Object.create(null);return{InputObjectTypeDefinition:i,InputObjectTypeExtension:i,InterfaceTypeDefinition:i,InterfaceTypeExtension:i,ObjectTypeDefinition:i,ObjectTypeExtension:i};function i(t){var i,o,a;let s=t.name.value;r[s]||(r[s]=Object.create(null));let l=null!=(i=t.fields)?i:[],u=r[s];for(let t of l){let r=t.name.value;(o=n[s],a=r,(eX(o)||eH(o)||e3(o))&&null!=o.getFields()[a])?e.reportError(new w(`Field "${s}.${r}" already exists in the schema. It cannot also be defined in this type extension.`,{nodes:t.name})):u[r]?e.reportError(new w(`Field "${s}.${r}" can only be defined once.`,{nodes:[u[r],t.name]})):u[r]=t.name}return!1}}function r$(e){let t=Object.create(null);return{OperationDefinition:()=>!1,FragmentDefinition(n){let r=n.name.value;return t[r]?e.reportError(new w(`There can be only one fragment named "${r}".`,{nodes:[t[r],n.name]})):t[r]=n.name,!1}}}function rx(e){let t=[],n=Object.create(null);return{ObjectValue:{enter(){t.push(n),n=Object.create(null)},leave(){let e=t.pop();e||_(!1),n=e}},ObjectField(t){let r=t.name.value;n[r]?e.reportError(new w(`There can be only one input field named "${r}".`,{nodes:[n[r],t.name]})):n[r]=t.name}}}function rF(e){let t=Object.create(null);return{OperationDefinition(n){let r=n.name;return r&&(t[r.value]?e.reportError(new w(`There can be only one operation named "${r.value}".`,{nodes:[t[r.value],r]})):t[r.value]=r),!1},FragmentDefinition:()=>!1}}function rC(e){let t=e.getSchema(),n=Object.create(null),r=t?{query:t.getQueryType(),mutation:t.getMutationType(),subscription:t.getSubscriptionType()}:{};return{SchemaDefinition:i,SchemaExtension:i};function i(t){var i;for(let o of null!=(i=t.operationTypes)?i:[]){let t=o.operation,i=n[t];r[t]?e.reportError(new w(`Type for ${t} already defined in the schema. It cannot be redefined.`,{nodes:o})):i?e.reportError(new w(`There can be only one ${t} type in schema.`,{nodes:[i,o]})):n[t]=o}return!1}}function rV(e){let t=Object.create(null),n=e.getSchema();return{ScalarTypeDefinition:r,ObjectTypeDefinition:r,InterfaceTypeDefinition:r,UnionTypeDefinition:r,EnumTypeDefinition:r,InputObjectTypeDefinition:r};function r(r){let i=r.name.value;return null!=n&&n.getType(i)?void e.reportError(new w(`Type "${i}" already exists in the schema. It cannot also be defined in this type definition.`,{nodes:r.name})):(t[i]?e.reportError(new w(`There can be only one type named "${i}".`,{nodes:[t[i],r.name]})):t[i]=r.name,!1)}}function rU(e){return{OperationDefinition(t){var n;for(let[r,i]of rD(null!=(n=t.variableDefinitions)?n:[],e=>e.variable.name.value))i.length>1&&e.reportError(new w(`There can be only one variable named "$${r}".`,{nodes:i.map(e=>e.variable.name)}))}}}function rM(e){let t={};return{OperationDefinition:{enter(){t={}}},VariableDefinition(e){t[e.variable.name.value]=e},ListValue(t){if(!e9(tm(e.getParentInputType())))return rj(e,t),!1},ObjectValue(t){let n=tT(e.getInputType());if(!e3(n))return rj(e,t),!1;let r=eE(t.fields,e=>e.name.value);for(let i of Object.values(n.getFields()))if(!r[i.name]&&tU(i)){let r=ei(i.type);e.reportError(new w(`Field "${n.name}.${i.name}" of required type "${r}" was not provided.`,{nodes:t}))}n.isOneOf&&function(e,t,n,r){var i;let o=Object.keys(r);if(1!==o.length)return e.reportError(new w(`OneOf Input Object "${n.name}" must specify exactly one key.`,{nodes:[t]}));let a=null==(i=r[o[0]])?void 0:i.value;a&&a.kind!==p.NULL||e.reportError(new w(`Field "${n.name}.${o[0]}" must be non-null.`,{nodes:[t]}))}(e,t,n,r)},ObjectField(t){let n=tT(e.getParentInputType());if(!e.getInputType()&&e3(n)){let r=e_(t.name.value,Object.keys(n.getFields()));e.reportError(new w(`Field "${t.name.value}" is not defined by type "${n.name}".`+em(r),{nodes:t}))}},NullValue(t){let n=e.getInputType();e8(n)&&e.reportError(new w(`Expected value of type "${ei(n)}", found ${eF(t)}.`,{nodes:t}))},EnumValue:t=>rj(e,t),IntValue:t=>rj(e,t),FloatValue:t=>rj(e,t),StringValue:t=>rj(e,t),BooleanValue:t=>rj(e,t)}}function rj(e,t){let n=e.getInputType();if(!n)return;let r=tT(n);if(!tr(r)){let r=ei(n);e.reportError(new w(`Expected value of type "${r}", found ${eF(t)}.`,{nodes:t}));return}try{let i=r.parseLiteral(t,void 0);if(void 0===i){let r=ei(n);e.reportError(new w(`Expected value of type "${r}", found ${eF(t)}.`,{nodes:t}))}}catch(i){let r=ei(n);i instanceof w?e.reportError(i):e.reportError(new w(`Expected value of type "${r}", found ${eF(t)}; `+i.message,{nodes:t,originalError:i}))}}function rP(e){return{VariableDefinition(t){let n=nA(e.getSchema(),t.type);if(void 0!==n&&!e7(n)){let n=t.variable.name.value,r=eF(t.type);e.reportError(new w(`Variable "$${n}" cannot be non-input type "${r}".`,{nodes:t.type}))}}}}function rG(e){let t=Object.create(null);return{OperationDefinition:{enter(){t=Object.create(null)},leave(n){for(let{node:l,type:u,defaultValue:c,parentType:d}of e.getRecursiveVariableUsages(n)){let n=l.name.value,f=t[n];if(f&&u){var r,i,o,a,s;let t=e.getSchema(),h=nA(t,f.type);if(h&&(r=t,i=h,o=f.defaultValue,a=u,s=c,e8(a)&&!e8(i)?!((null!=o&&o.kind!==p.NULL||void 0!==s)&&tj(r,i,a.ofType)):!tj(r,i,a))){let t=ei(h),r=ei(u);e.reportError(new w(`Variable "$${n}" of type "${t}" used in position expecting type "${r}".`,{nodes:[f,l]}))}e3(d)&&d.isOneOf&&tf(h)&&e.reportError(new w(`Variable "$${n}" is of type "${h}" but must be non-nullable to be used for OneOf Input Object "${d}".`,{nodes:[f,l]}))}}}},VariableDefinition(e){t[e.variable.name.value]=e}}}let rB=Object.freeze([nW]),rY=Object.freeze([nP,rF,nz,rb,nK,nB,rP,ru,nG,r$,nJ,n1,rr,nZ,rU,n0,n2,nq,rR,nY,rS,rM,ra,rG,n4,rx,...rB]),rQ=Object.freeze([nH,rC,rV,rk,rL,rA,rw,nK,nq,rR,ri,nQ,rS,rx,rs]);class rq{constructor(e,t){this._ast=e,this._fragments=void 0,this._fragmentSpreads=new Map,this._recursivelyReferencedFragments=new Map,this._onError=t}get[Symbol.toStringTag](){return"ASTValidationContext"}reportError(e){this._onError(e)}getDocument(){return this._ast}getFragment(e){let t;if(this._fragments)t=this._fragments;else{for(let e of(t=Object.create(null),this.getDocument().definitions))e.kind===p.FRAGMENT_DEFINITION&&(t[e.name.value]=e);this._fragments=t}return t[e]}getFragmentSpreads(e){let t=this._fragmentSpreads.get(e);if(!t){let n;t=[];let r=[e];for(;n=r.pop();)for(let e of n.selections)e.kind===p.FRAGMENT_SPREAD?t.push(e):e.selectionSet&&r.push(e.selectionSet);this._fragmentSpreads.set(e,t)}return t}getRecursivelyReferencedFragments(e){let t=this._recursivelyReferencedFragments.get(e);if(!t){let n;t=[];let r=Object.create(null),i=[e.selectionSet];for(;n=i.pop();)for(let e of this.getFragmentSpreads(n)){let n=e.name.value;if(!0!==r[n]){r[n]=!0;let e=this.getFragment(n);e&&(t.push(e),i.push(e.selectionSet))}}this._recursivelyReferencedFragments.set(e,t)}return t}}class rJ extends rq{constructor(e,t,n){super(e,n),this._schema=t}get[Symbol.toStringTag](){return"SDLValidationContext"}getSchema(){return this._schema}}class rK extends rq{constructor(e,t,n,r){super(t,r),this._schema=e,this._typeInfo=n,this._variableUsages=new Map,this._recursiveVariableUsages=new Map}get[Symbol.toStringTag](){return"ValidationContext"}getSchema(){return this._schema}getVariableUsages(e){let t=this._variableUsages.get(e);if(!t){let n=[],r=new nS(this._schema);ek(e,nR(r,{VariableDefinition:()=>!1,Variable(e){n.push({node:e,type:r.getInputType(),defaultValue:r.getDefaultValue(),parentType:r.getParentInputType()})}})),t=n,this._variableUsages.set(e,t)}return t}getRecursiveVariableUsages(e){let t=this._recursiveVariableUsages.get(e);if(!t){for(let n of(t=this.getVariableUsages(e),this.getRecursivelyReferencedFragments(e)))t=t.concat(this.getVariableUsages(n));this._recursiveVariableUsages.set(e,t)}return t}getType(){return this._typeInfo.getType()}getParentType(){return this._typeInfo.getParentType()}getInputType(){return this._typeInfo.getInputType()}getParentInputType(){return this._typeInfo.getParentInputType()}getFieldDef(){return this._typeInfo.getFieldDef()}getDirective(){return this._typeInfo.getDirective()}getArgument(){return this._typeInfo.getArgument()}getEnumValue(){return this._typeInfo.getEnumValue()}}function rX(e,t,n=rY,r,i=new nS(e)){var o;let a=null!=(o=null==r?void 0:r.maxErrors)?o:100;t||N(!1,"Must provide document."),nN(e);let s=Object.freeze({}),l=[],u=new rK(e,t,i,e=>{if(l.length>=a)throw l.push(new w("Too many validation errors, error limit reached. Validation aborted.")),s;l.push(e)}),c=eL(n.map(e=>e(u)));try{ek(t,nR(i,c))}catch(e){if(e!==s)throw e}return l}function rz(e,t,n=rQ){let r=[],i=new rJ(e,t,e=>{r.push(e)});return ek(e,eL(n.map(e=>e(i)))),r}function rH(e){return Promise.all(Object.values(e)).then(t=>{let n=Object.create(null);for(let[r,i]of Object.keys(e).entries())n[i]=t[r];return n})}class rW extends Error{constructor(e){super("Unexpected error value: "+ei(e)),this.name="NonErrorThrown",this.thrownValue=e}}function rZ(e,t,n){var r;let i=e instanceof Error?e:new rW(e);return Array.isArray(i.path)?i:new w(i.message,{nodes:null!=(r=i.nodes)?r:t,source:i.source,positions:i.positions,path:n,originalError:i})}let r0=(a=(e,t,n)=>(function(e,t,n,r,i){let o=new Map,a=new Set;for(let s of i)s.selectionSet&&rg(e,t,n,r,s.selectionSet,o,a);return o})(e.schema,e.fragments,e.variableValues,t,n),function(t,n,r){void 0===e&&(e=new WeakMap);let i=e.get(t);void 0===i&&(i=new WeakMap,e.set(t,i));let o=i.get(n);void 0===o&&(o=new WeakMap,i.set(n,o));let s=o.get(r);return void 0===s&&(s=a(t,n,r),o.set(r,s)),s});function r1(e){arguments.length<2||N(!1,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");let{schema:t,document:n,variableValues:r,rootValue:i}=e;r4(t,n,r);let o=r9(e);if(!("schema"in o))return{errors:o};try{let{operation:e}=o,t=function(e,t,n){let r=e.schema.getRootType(t.operation);if(null==r)throw new w(`Schema is not configured to execute ${t.operation} operation.`,{nodes:t});let i=rI(e.schema,e.fragments,e.variableValues,r,t.selectionSet),o;switch(t.operation){case u.QUERY:return r5(e,r,n,o,i);case u.MUTATION:var a,s,l,c,p;return a=e,s=r,l=n,c=o,p=i,function(e,t,n){let r=n;for(let n of e)r=I(r)?r.then(e=>t(e,n)):t(r,n);return r}(p.entries(),(e,[t,n])=>{let r=rp(c,t,s.name),i=r8(a,s,l,n,r);return void 0===i?e:I(i)?i.then(n=>(e[t]=n,e)):(e[t]=i,e)},Object.create(null));case u.SUBSCRIPTION:return r5(e,r,n,o,i)}}(o,e,i);if(I(t))return t.then(e=>r3(e,o.errors),e=>(o.errors.push(e),r3(null,o.errors)));return r3(t,o.errors)}catch(e){return o.errors.push(e),r3(null,o.errors)}}function r2(e){let t=r1(e);if(I(t))throw Error("GraphQL execution failed to complete synchronously.");return t}function r3(e,t){return 0===t.length?{data:e}:{errors:t,data:e}}function r4(e,t,n){t||N(!1,"Must provide document."),nN(e),null==n||g(n)||N(!1,"Variables must be provided as an Object where each property is a variable value. Perhaps look to see if an unparsed JSON string was provided.")}function r9(e){var t,n,r;let i,{schema:o,document:a,rootValue:s,contextValue:l,variableValues:u,operationName:c,fieldResolver:d,typeResolver:f,subscribeFieldResolver:h,options:m}=e,y=Object.create(null);for(let e of a.definitions)switch(e.kind){case p.OPERATION_DEFINITION:if(null==c){if(void 0!==i)return[new w("Must provide operation name if query contains multiple operations.")];i=e}else(null==(t=e.name)?void 0:t.value)===c&&(i=e);break;case p.FRAGMENT_DEFINITION:y[e.name.value]=e}if(!i)return null!=c?[new w(`Unknown operation named "${c}".`)]:[new w("Must provide an operation.")];let E=rE(o,null!=(n=i.variableDefinitions)?n:[],null!=u?u:{},{maxErrors:null!=(r=null==m?void 0:m.maxCoercionErrors)?r:50});return E.errors?E.errors:{schema:o,fragments:y,rootValue:s,contextValue:l,operation:i,variableValues:E.coerced,fieldResolver:null!=d?d:ia,typeResolver:null!=f?f:io,subscribeFieldResolver:null!=h?h:ia,errors:[]}}function r5(e,t,n,r,i){let o=Object.create(null),a=!1;try{for(let[s,l]of i.entries()){let i=rp(r,s,t.name),u=r8(e,t,n,l,i);void 0!==u&&(o[s]=u,I(u)&&(a=!0))}}catch(e){if(a)return rH(o).finally(()=>{throw e});throw e}return a?rH(o):o}function r8(e,t,n,r,i){var o;let a=is(e.schema,t,r[0]);if(!a)return;let s=a.type,l=null!=(o=a.resolve)?o:e.fieldResolver,u=r6(e,a,r,t,i);try{let t,o=rT(a,r[0],e.variableValues),c=e.contextValue,p=l(n,o,c,u);if(t=I(p)?p.then(t=>ie(e,s,r,u,i,t)):ie(e,s,r,u,i,p),I(t))return t.then(void 0,t=>{let n=rZ(t,r,rd(i));return r7(n,s,e)});return t}catch(t){return r7(rZ(t,r,rd(i)),s,e)}}function r6(e,t,n,r,i){return{fieldName:t.name,fieldNodes:n,returnType:t.type,parentType:r,path:i,schema:e.schema,fragments:e.fragments,rootValue:e.rootValue,operation:e.operation,variableValues:e.variableValues}}function r7(e,t,n){if(e8(t))throw e;return n.errors.push(e),null}function ie(e,t,n,r,i,o){var a,s,l,u,c,p,d;let f;if(o instanceof Error)throw o;if(e8(t)){let a=ie(e,t.ofType,n,r,i,o);if(null===a)throw Error(`Cannot return null for non-nullable field ${r.parentType.name}.${r.fieldName}.`);return a}return null==o?null:e9(t)?function(e,t,n,r,i,o){if(!t7(o))throw new w(`Expected Iterable, but did not find one for field "${r.parentType.name}.${r.fieldName}".`);let a=t.ofType,s=!1,l=Array.from(o,(t,o)=>{let l=rp(i,o,void 0);try{let i;if(i=I(t)?t.then(t=>ie(e,a,n,r,l,t)):ie(e,a,n,r,l,t),I(i))return s=!0,i.then(void 0,t=>{let r=rZ(t,n,rd(l));return r7(r,a,e)});return i}catch(t){return r7(rZ(t,n,rd(l)),a,e)}});return s?Promise.all(l):l}(e,t,n,r,i,o):tr(t)?function(e,t){let n=e.serialize(t);if(null==n)throw Error(`Expected \`${ei(e)}.serialize(${ei(t)})\` to return non-nullable value, returned: ${ei(n)}`);return n}(t,o):ts(t)?(a=e,s=t,l=n,u=r,c=i,p=o,I(f=(null!=(d=s.resolveType)?d:a.typeResolver)(p,a.contextValue,u,s))?f.then(e=>ir(a,it(e,a,s,l,u,p),l,u,c,p)):ir(a,it(f,a,s,l,u,p),l,u,c,p)):eX(t)?ir(e,t,n,r,i,o):void _(!1,"Cannot complete value of unexpected output type: "+ei(t))}function it(e,t,n,r,i,o){if(null==e)throw new w(`Abstract type "${n.name}" must resolve to an Object type at runtime for field "${i.parentType.name}.${i.fieldName}". Either the "${n.name}" type should provide a "resolveType" function or each possible type should provide an "isTypeOf" function.`,r);if(eX(e))throw new w("Support for returning GraphQLObjectType from resolveType was removed in graphql-js@16.0.0 please return type name instead.");if("string"!=typeof e)throw new w(`Abstract type "${n.name}" must resolve to an Object type at runtime for field "${i.parentType.name}.${i.fieldName}" with value ${ei(o)}, received "${ei(e)}".`);let a=t.schema.getType(e);if(null==a)throw new w(`Abstract type "${n.name}" was resolved to a type "${e}" that does not exist inside the schema.`,{nodes:r});if(!eX(a))throw new w(`Abstract type "${n.name}" was resolved to a non-object type "${e}".`,{nodes:r});if(!t.schema.isSubType(n,a))throw new w(`Runtime Object type "${a.name}" is not a possible type for "${n.name}".`,{nodes:r});return a}function ir(e,t,n,r,i,o){let a=r0(e,t,n);if(t.isTypeOf){let s=t.isTypeOf(o,e.contextValue,r);if(I(s))return s.then(r=>{if(!r)throw ii(t,o,n);return r5(e,t,o,i,a)});if(!s)throw ii(t,o,n)}return r5(e,t,o,i,a)}function ii(e,t,n){return new w(`Expected value of type "${e.name}" but got: ${ei(t)}.`,{nodes:n})}let io=function(e,t,n,r){if(g(e)&&"string"==typeof e.__typename)return e.__typename;let i=n.schema.getPossibleTypes(r),o=[];for(let r=0;r{}),a.name}}if(o.length)return Promise.all(o).then(e=>{for(let t=0;tt(ic(e)))}function iu(e){let t=ic(e);if(I(t))throw Error("GraphQL execution failed to complete synchronously.");return t}function ic(e){let t;arguments.length<2||N(!1,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");let{schema:n,source:r,rootValue:i,contextValue:o,variableValues:a,operationName:s,fieldResolver:l,typeResolver:u}=e,c=nv(n);if(c.length>0)return{errors:c};try{t=es(r)}catch(e){return{errors:[e]}}let p=rX(n,t);return p.length>0?{errors:p}:r1({schema:n,document:t,rootValue:i,contextValue:o,variableValues:a,operationName:s,fieldResolver:l,typeResolver:u})}function ip(e){return"function"==typeof(null==e?void 0:e[Symbol.asyncIterator])}async function id(e){arguments.length<2||N(!1,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");let t=await ih(e);if(!ip(t))return t;let n=t[Symbol.asyncIterator]();async function r(t){if(t.done)return t;try{let n;return{value:await (n=t.value,r1({...e,rootValue:n})),done:!1}}catch(e){if("function"==typeof n.return)try{await n.return()}catch(e){}throw e}}return{next:async()=>r(await n.next()),return:async()=>"function"==typeof n.return?r(await n.return()):{value:void 0,done:!0},async throw(e){if("function"==typeof n.throw)return r(await n.throw(e));throw e},[Symbol.asyncIterator](){return this}}}async function ih(...e){let t,n=(t=e[0])&&"document"in t?t:{schema:t,document:e[1],rootValue:e[2],contextValue:e[3],variableValues:e[4],operationName:e[5],subscribeFieldResolver:e[6]},{schema:r,document:i,variableValues:o}=n;r4(r,i,o);let a=r9(n);if(!("schema"in a))return{errors:a};try{let e=await im(a);if(!ip(e))throw Error(`Subscription field must return Async Iterable. Received: ${ei(e)}.`);return e}catch(e){if(e instanceof w)return{errors:[e]};throw e}}async function im(e){let{schema:t,fragments:n,operation:r,variableValues:i,rootValue:o}=e,a=t.getSubscriptionType();if(null==a)throw new w("Schema is not configured to execute subscription operation.",{nodes:r});let[s,l]=[...rI(t,n,i,a,r.selectionSet).entries()][0],u=is(t,a,l[0]);if(!u){let e=l[0].name.value;throw new w(`The subscription field "${e}" is not defined.`,{nodes:l})}let c=rp(void 0,s,a.name),p=r6(e,u,l,a,c);try{var d;let t=rT(u,l[0],i),n=e.contextValue,r=null!=(d=u.subscribe)?d:e.subscribeFieldResolver,a=await r(o,t,n,p);if(a instanceof Error)throw a;return a}catch(e){throw rZ(e,l,rd(c))}}function iy(e){return{Field(t){let n=e.getFieldDef(),r=null==n?void 0:n.deprecationReason;if(n&&null!=r){let i=e.getParentType();null!=i||_(!1),e.reportError(new w(`The field ${i.name}.${n.name} is deprecated. ${r}`,{nodes:t}))}},Argument(t){let n=e.getArgument(),r=null==n?void 0:n.deprecationReason;if(n&&null!=r){let i=e.getDirective();if(null!=i)e.reportError(new w(`Directive "@${i.name}" argument "${n.name}" is deprecated. ${r}`,{nodes:t}));else{let i=e.getParentType(),o=e.getFieldDef();null!=i&&null!=o||_(!1),e.reportError(new w(`Field "${i.name}.${o.name}" argument "${n.name}" is deprecated. ${r}`,{nodes:t}))}}},ObjectField(t){let n=tT(e.getParentInputType());if(e3(n)){let r=n.getFields()[t.name.value],i=null==r?void 0:r.deprecationReason;null!=i&&e.reportError(new w(`The input field ${n.name}.${r.name} is deprecated. ${i}`,{nodes:t}))}},EnumValue(t){let n=e.getEnumValue(),r=null==n?void 0:n.deprecationReason;if(n&&null!=r){let i=tT(e.getInputType());null!=i||_(!1),e.reportError(new w(`The enum value "${i.name}.${n.name}" is deprecated. ${r}`,{nodes:t}))}}}}function iE(e){return{Field(t){let n=tT(e.getType());n&&nh(n)&&e.reportError(new w(`GraphQL introspection has been disabled, but the requested query contained the field "${t.name.value}".`,{nodes:t}))}}}function iT(e){let t={descriptions:!0,specifiedByUrl:!1,directiveIsRepeatable:!1,schemaDescription:!1,inputValueDeprecation:!1,oneOf:!1,...e},n=t.descriptions?"description":"",r=t.specifiedByUrl?"specifiedByURL":"",i=t.directiveIsRepeatable?"isRepeatable":"",o=t.schemaDescription?n:"";function a(e){return t.inputValueDeprecation?e:""}let s=t.oneOf?"isOneOf":"";return` - query IntrospectionQuery { - __schema { - ${o} - queryType { name kind } - mutationType { name kind } - subscriptionType { name kind } - types { - ...FullType - } - directives { - name - ${n} - ${i} - locations - args${a("(includeDeprecated: true)")} { - ...InputValue - } - } - } - } - - fragment FullType on __Type { - kind - name - ${n} - ${r} - ${s} - fields(includeDeprecated: true) { - name - ${n} - args${a("(includeDeprecated: true)")} { - ...InputValue - } - type { - ...TypeRef - } - isDeprecated - deprecationReason - } - inputFields${a("(includeDeprecated: true)")} { - ...InputValue - } - interfaces { - ...TypeRef - } - enumValues(includeDeprecated: true) { - name - ${n} - isDeprecated - deprecationReason - } - possibleTypes { - ...TypeRef - } - } - - fragment InputValue on __InputValue { - name - ${n} - type { ...TypeRef } - defaultValue - ${a("isDeprecated")} - ${a("deprecationReason")} - } - - fragment TypeRef on __Type { - kind - name - ofType { - kind - name - ofType { - kind - name - ofType { - kind - name - ofType { - kind - name - ofType { - kind - name - ofType { - kind - name - ofType { - kind - name - ofType { - kind - name - ofType { - kind - name - } - } - } - } - } - } - } - } - } - } - `}function iv(e,t){let n=null;for(let i of e.definitions)if(i.kind===p.OPERATION_DEFINITION){var r;if(null==t){if(n)return null;n=i}else if((null==(r=i.name)?void 0:r.value)===t)return i}return n}function iN(e,t){if("query"===t.operation){let n=e.getQueryType();if(!n)throw new w("Schema does not define the required query root type.",{nodes:t});return n}if("mutation"===t.operation){let n=e.getMutationType();if(!n)throw new w("Schema is not configured for mutations.",{nodes:t});return n}if("subscription"===t.operation){let n=e.getSubscriptionType();if(!n)throw new w("Schema is not configured for subscriptions.",{nodes:t});return n}throw new w("Can only have query, mutation and subscription operations.",{nodes:t})}function iI(e,t){let n=r2({schema:e,document:es(iT({specifiedByUrl:!0,directiveIsRepeatable:!0,schemaDescription:!0,inputValueDeprecation:!0,oneOf:!0,...t}))});return!n.errors&&n.data||_(!1),n.data}function ig(e,t){g(e)&&g(e.__schema)||N(!1,`Invalid or incomplete introspection result. Ensure that you are passing "data" property of introspection response and no "errors" was returned alongside: ${ei(e)}.`);let n=e.__schema,r=eT(n.types,e=>e.name,e=>(function(e){if(null!=e&&null!=e.name&&null!=e.kind)switch(e.kind){case f.SCALAR:return new tI({name:(t=e).name,description:t.description,specifiedByURL:t.specifiedByURL});case f.OBJECT:return new tg({name:(n=e).name,description:n.description,interfaces:()=>d(n),fields:()=>h(n)});case f.INTERFACE:return new tR({name:(r=e).name,description:r.description,interfaces:()=>d(r),fields:()=>h(r)});case f.UNION:var t,n,r,i=e;if(!i.possibleTypes){let e=ei(i);throw Error(`Introspection result missing possibleTypes: ${e}.`)}return new tk({name:i.name,description:i.description,types:()=>i.possibleTypes.map(c)});case f.ENUM:var o=e;if(!o.enumValues){let e=ei(o);throw Error(`Introspection result missing enumValues: ${e}.`)}return new t$({name:o.name,description:o.description,values:eT(o.enumValues,e=>e.name,e=>({description:e.description,deprecationReason:e.deprecationReason}))});case f.INPUT_OBJECT:var a=e;if(!a.inputFields){let e=ei(a);throw Error(`Introspection result missing inputFields: ${e}.`)}return new tC({name:a.name,description:a.description,fields:()=>y(a.inputFields),isOneOf:a.isOneOf})}let s=ei(e);throw Error(`Invalid or incomplete introspection result. Ensure that a full introspection query is used in order to build a client schema: ${s}.`)})(e));for(let e of[...tX,...nf])r[e.name]&&(r[e.name]=e);let i=n.queryType?c(n.queryType):null,o=n.mutationType?c(n.mutationType):null,a=n.subscriptionType?c(n.subscriptionType):null,s=n.directives?n.directives.map(function(e){if(!e.args){let t=ei(e);throw Error(`Introspection result missing directive args: ${t}.`)}if(!e.locations){let t=ei(e);throw Error(`Introspection result missing directive locations: ${t}.`)}return new t0({name:e.name,description:e.description,isRepeatable:e.isRepeatable,locations:e.locations.slice(),args:y(e.args)})}):[];return new nE({description:n.description,query:i,mutation:o,subscription:a,types:Object.values(r),directives:s,assumeValid:null==t?void 0:t.assumeValid});function l(e){if(e.kind===f.LIST){let t=e.ofType;if(!t)throw Error("Decorated type deeper than introspection query.");return new tu(l(t))}if(e.kind===f.NON_NULL){let t=e.ofType;if(!t)throw Error("Decorated type deeper than introspection query.");return new tc(th(l(t)))}return u(e)}function u(e){let t=e.name;if(!t)throw Error(`Unknown type reference: ${ei(e)}.`);let n=r[t];if(!n)throw Error(`Invalid or incomplete schema, unknown type: ${t}. Ensure that a full introspection query is used in order to build a client schema.`);return n}function c(e){return ez(u(e))}function p(e){return eW(u(e))}function d(e){if(null===e.interfaces&&e.kind===f.INTERFACE)return[];if(!e.interfaces){let t=ei(e);throw Error(`Introspection result missing interfaces: ${t}.`)}return e.interfaces.map(p)}function h(e){if(!e.fields)throw Error(`Introspection result missing fields: ${ei(e)}.`);return eT(e.fields,e=>e.name,m)}function m(e){let t=l(e.type);if(!tt(t)){let e=ei(t);throw Error(`Introspection must provide output type for fields, but received: ${e}.`)}if(!e.args){let t=ei(e);throw Error(`Introspection result missing field args: ${t}.`)}return{description:e.description,deprecationReason:e.deprecationReason,type:t,args:y(e.args)}}function y(e){return eT(e,e=>e.name,E)}function E(e){let t=l(e.type);if(!e7(t)){let e=ei(t);throw Error(`Introspection must provide input type for arguments, but received: ${e}.`)}let n=null!=e.defaultValue?rm(el(e.defaultValue),t):void 0;return{description:e.description,type:t,defaultValue:n,deprecationReason:e.deprecationReason}}}function i_(e,t,n){ny(e),null!=t&&t.kind===p.DOCUMENT||N(!1,"Must provide valid Document AST."),(null==n?void 0:n.assumeValid)!==!0&&(null==n?void 0:n.assumeValidSDL)!==!0&&function(e,t){let n=rz(e,t);if(0!==n.length)throw Error(n.map(e=>e.message).join("\n\n"))}(t,e);let r=e.toConfig(),i=iO(r,t,n);return r===i?e:new nE(i)}function iO(e,t,n){var r,i,o,a,s,l;let u,c=[],d=Object.create(null),f=[],h=[];for(let e of t.definitions)if(e.kind===p.SCHEMA_DEFINITION)u=e;else if(e.kind===p.SCHEMA_EXTENSION)h.push(e);else if(nV(e))c.push(e);else if(nM(e)){let t=e.name.value,n=d[t];d[t]=n?n.concat([e]):[e]}else e.kind===p.DIRECTIVE_DEFINITION&&f.push(e);if(0===Object.keys(d).length&&0===c.length&&0===f.length&&0===h.length&&null==u)return e;let m=Object.create(null);for(let t of e.types){m[t.name]=nh(l=t)||tz(l)?l:eJ(l)?function(e){var t,n;let r=e.toConfig(),i=null!=(t=d[r.name])?t:[],o=r.specifiedByURL;for(let e of i)o=null!=(n=iA(e))?n:o;return new tI({...r,specifiedByURL:o,extensionASTNodes:r.extensionASTNodes.concat(i)})}(l):eX(l)?function(e){var t;let n=e.toConfig(),r=null!=(t=d[n.name])?t:[];return new tg({...n,interfaces:()=>[...e.getInterfaces().map(T),...w(r)],fields:()=>({...ev(n.fields,v),...b(r)}),extensionASTNodes:n.extensionASTNodes.concat(r)})}(l):eH(l)?function(e){var t;let n=e.toConfig(),r=null!=(t=d[n.name])?t:[];return new tR({...n,interfaces:()=>[...e.getInterfaces().map(T),...w(r)],fields:()=>({...ev(n.fields,v),...b(r)}),extensionASTNodes:n.extensionASTNodes.concat(r)})}(l):eZ(l)?function(e){var t;let n=e.toConfig(),r=null!=(t=d[n.name])?t:[];return new tk({...n,types:()=>[...e.getTypes().map(T),...R(r)],extensionASTNodes:n.extensionASTNodes.concat(r)})}(l):e1(l)?function(e){var t;let n=e.toConfig(),r=null!=(t=d[e.name])?t:[];return new t$({...n,values:{...n.values,...S(r)},extensionASTNodes:n.extensionASTNodes.concat(r)})}(l):e3(l)?function(e){var t;let n=e.toConfig(),r=null!=(t=d[n.name])?t:[];return new tC({...n,fields:()=>({...ev(n.fields,e=>({...e,type:E(e.type)})),...A(r)}),extensionASTNodes:n.extensionASTNodes.concat(r)})}(l):void _(!1,"Unexpected type: "+ei(l))}for(let e of c){let t=e.name.value;m[t]=null!=(s=ib[t])?s:function(e){var t,n,r,i,o,a,s;let l=e.name.value,u=null!=(t=d[l])?t:[];switch(e.kind){case p.OBJECT_TYPE_DEFINITION:{let t=[e,...u];return new tg({name:l,description:null==(n=e.description)?void 0:n.value,interfaces:()=>w(t),fields:()=>b(t),astNode:e,extensionASTNodes:u})}case p.INTERFACE_TYPE_DEFINITION:{let t=[e,...u];return new tR({name:l,description:null==(r=e.description)?void 0:r.value,interfaces:()=>w(t),fields:()=>b(t),astNode:e,extensionASTNodes:u})}case p.ENUM_TYPE_DEFINITION:{let t=[e,...u];return new t$({name:l,description:null==(i=e.description)?void 0:i.value,values:S(t),astNode:e,extensionASTNodes:u})}case p.UNION_TYPE_DEFINITION:{let t=[e,...u];return new tk({name:l,description:null==(o=e.description)?void 0:o.value,types:()=>R(t),astNode:e,extensionASTNodes:u})}case p.SCALAR_TYPE_DEFINITION:return new tI({name:l,description:null==(a=e.description)?void 0:a.value,specifiedByURL:iA(e),astNode:e,extensionASTNodes:u});case p.INPUT_OBJECT_TYPE_DEFINITION:{let t=[e,...u];return new tC({name:l,description:null==(s=e.description)?void 0:s.value,fields:()=>A(t),astNode:e,extensionASTNodes:u,isOneOf:!!rv(t5,e)})}}}(e)}let y={query:e.query&&T(e.query),mutation:e.mutation&&T(e.mutation),subscription:e.subscription&&T(e.subscription),...u&&I([u]),...I(h)};return{description:null==(r=u)||null==(i=r.description)?void 0:i.value,...y,types:Object.values(m),directives:[...e.directives.map(function(e){let t=e.toConfig();return new t0({...t,args:ev(t.args,N)})}),...f.map(function(e){var t;return new t0({name:e.name.value,description:null==(t=e.description)?void 0:t.value,locations:e.locations.map(({value:e})=>e),isRepeatable:e.repeatable,args:D(e.arguments),astNode:e})})],extensions:Object.create(null),astNode:null!=(o=u)?o:e.astNode,extensionASTNodes:e.extensionASTNodes.concat(h),assumeValid:null!=(a=null==n?void 0:n.assumeValid)&&a};function E(e){return e9(e)?new tu(E(e.ofType)):e8(e)?new tc(E(e.ofType)):T(e)}function T(e){return m[e.name]}function v(e){return{...e,type:E(e.type),args:e.args&&ev(e.args,N)}}function N(e){return{...e,type:E(e.type)}}function I(e){let t={};for(let r of e){var n;for(let e of null!=(n=r.operationTypes)?n:[])t[e.operation]=g(e.type)}return t}function g(e){var t;let n=e.name.value,r=null!=(t=ib[n])?t:m[n];if(void 0===r)throw Error(`Unknown type: "${n}".`);return r}function O(e){return e.kind===p.LIST_TYPE?new tu(O(e.type)):e.kind===p.NON_NULL_TYPE?new tc(O(e.type)):g(e)}function b(e){let t=Object.create(null);for(let i of e){var n,r;for(let e of null!=(n=i.fields)?n:[])t[e.name.value]={type:O(e.type),description:null==(r=e.description)?void 0:r.value,args:D(e.arguments),deprecationReason:iD(e),astNode:e}}return t}function D(e){let t=Object.create(null);for(let r of null!=e?e:[]){var n;let e=O(r.type);t[r.name.value]={type:e,description:null==(n=r.description)?void 0:n.value,defaultValue:rm(r.defaultValue,e),deprecationReason:iD(r),astNode:r}}return t}function A(e){let t=Object.create(null);for(let i of e){var n,r;for(let e of null!=(n=i.fields)?n:[]){let n=O(e.type);t[e.name.value]={type:n,description:null==(r=e.description)?void 0:r.value,defaultValue:rm(e.defaultValue,n),deprecationReason:iD(e),astNode:e}}}return t}function S(e){let t=Object.create(null);for(let i of e){var n,r;for(let e of null!=(n=i.values)?n:[])t[e.name.value]={description:null==(r=e.description)?void 0:r.value,deprecationReason:iD(e),astNode:e}}return t}function w(e){return e.flatMap(e=>{var t,n;return null!=(t=null==(n=e.interfaces)?void 0:n.map(g))?t:[]})}function R(e){return e.flatMap(e=>{var t,n;return null!=(t=null==(n=e.types)?void 0:n.map(g))?t:[]})}}let ib=eE([...tX,...nf],e=>e.name);function iD(e){let t=rv(t4,e);return null==t?void 0:t.reason}function iA(e){let t=rv(t9,e);return null==t?void 0:t.url}function iS(e,t){null!=e&&e.kind===p.DOCUMENT||N(!1,"Must provide valid Document AST."),(null==t?void 0:t.assumeValid)!==!0&&(null==t?void 0:t.assumeValidSDL)!==!0&&function(e){let t=rz(e);if(0!==t.length)throw Error(t.map(e=>e.message).join("\n\n"))}(e);let n=iO({description:void 0,types:[],directives:[],extensions:Object.create(null),extensionASTNodes:[],assumeValid:!1},e,t);if(null==n.astNode)for(let e of n.types)switch(e.name){case"Query":n.query=e;break;case"Mutation":n.mutation=e;break;case"Subscription":n.subscription=e}let r=[...n.directives,...t8.filter(e=>n.directives.every(t=>t.name!==e.name))];return new nE({...n,directives:r})}function iw(e,t){return iS(es(e,{noLocation:null==t?void 0:t.noLocation,allowLegacyFragmentVariables:null==t?void 0:t.allowLegacyFragmentVariables}),{assumeValidSDL:null==t?void 0:t.assumeValidSDL,assumeValid:null==t?void 0:t.assumeValid})}function iR(e){var t,n,r;let i=e.toConfig(),o=eT(iL(i.types),e=>e.name,function(e){if(eJ(e)||nh(e))return e;if(eX(e)){let t=e.toConfig();return new tg({...t,interfaces:()=>c(t.interfaces),fields:()=>u(t.fields)})}if(eH(e)){let t=e.toConfig();return new tR({...t,interfaces:()=>c(t.interfaces),fields:()=>u(t.fields)})}if(eZ(e)){let t=e.toConfig();return new tk({...t,types:()=>c(t.types)})}if(e1(e)){let t=e.toConfig();return new t$({...t,values:ik(t.values,e=>e)})}if(e3(e)){let t=e.toConfig();return new tC({...t,fields:()=>ik(t.fields,e=>({...e,type:a(e.type)}))})}_(!1,"Unexpected type: "+ei(e))});return new nE({...i,types:Object.values(o),directives:iL(i.directives).map(function(e){let t=e.toConfig();return new t0({...t,locations:i$(t.locations,e=>e),args:l(t.args)})}),query:(t=i.query)&&s(t),mutation:(n=i.mutation)&&s(n),subscription:(r=i.subscription)&&s(r)});function a(e){return e9(e)?new tu(a(e.ofType)):e8(e)?new tc(a(e.ofType)):s(e)}function s(e){return o[e.name]}function l(e){return ik(e,e=>({...e,type:a(e.type)}))}function u(e){return ik(e,e=>({...e,type:a(e.type),args:e.args&&l(e.args)}))}function c(e){return iL(e).map(s)}}function ik(e,t){let n=Object.create(null);for(let r of Object.keys(e).sort(eN))n[r]=t(e[r]);return n}function iL(e){return i$(e,e=>e.name)}function i$(e,t){return e.slice().sort((e,n)=>eN(t(e),t(n)))}function ix(e){return iV(e,e=>!t6(e),iC)}function iF(e){return iV(e,t6,nh)}function iC(e){return!tz(e)&&!nh(e)}function iV(e,t,n){let r=e.getDirectives().filter(t),i=Object.values(e.getTypeMap()).filter(n);return[function(e){if(null==e.description&&function(e){let t=e.getQueryType();if(t&&"Query"!==t.name)return!1;let n=e.getMutationType();if(n&&"Mutation"!==n.name)return!1;let r=e.getSubscriptionType();return!r||"Subscription"===r.name}(e))return;let t=[],n=e.getQueryType();n&&t.push(` query: ${n.name}`);let r=e.getMutationType();r&&t.push(` mutation: ${r.name}`);let i=e.getSubscriptionType();return i&&t.push(` subscription: ${i.name}`),iQ(e)+`schema { -${t.join("\n")} -}`}(e),...r.map(e=>{var t;return iQ(t=e)+"directive @"+t.name+iG(t.args)+(t.isRepeatable?" repeatable":"")+" on "+t.locations.join(" | ")}),...i.map(e=>iU(e))].filter(Boolean).join("\n\n")}function iU(e){var t,n,r,i,o,a;let s,l,u,c;return eJ(e)?iQ(t=e)+`scalar ${t.name}`+function(e){if(null==e.specifiedByURL)return"";let t=eF({kind:p.STRING,value:e.specifiedByURL});return` @specifiedBy(url: ${t})`}(t):eX(e)?iQ(n=e)+`type ${n.name}`+iM(n)+ij(n):eH(e)?iQ(r=e)+`interface ${r.name}`+iM(r)+ij(r):eZ(e)?(l=(s=(i=e).getTypes()).length?" = "+s.join(" | "):"",iQ(i)+"union "+i.name+l):e1(e)?(u=(o=e).getValues().map((e,t)=>iQ(e," ",!t)+" "+e.name+iY(e.deprecationReason)),iQ(o)+`enum ${o.name}`+iP(u)):e3(e)?(c=Object.values((a=e).getFields()).map((e,t)=>iQ(e," ",!t)+" "+iB(e)),iQ(a)+`input ${a.name}`+(a.isOneOf?" @oneOf":"")+iP(c)):void _(!1,"Unexpected type: "+ei(e))}function iM(e){let t=e.getInterfaces();return t.length?" implements "+t.map(e=>e.name).join(" & "):""}function ij(e){return iP(Object.values(e.getFields()).map((e,t)=>iQ(e," ",!t)+" "+e.name+iG(e.args," ")+": "+String(e.type)+iY(e.deprecationReason)))}function iP(e){return 0!==e.length?" {\n"+e.join("\n")+"\n}":""}function iG(e,t=""){return 0===e.length?"":e.every(e=>!e.description)?"("+e.map(iB).join(", ")+")":"(\n"+e.map((e,n)=>iQ(e," "+t,!n)+" "+t+iB(e)).join("\n")+"\n"+t+")"}function iB(e){let t=ne(e.defaultValue,e.type),n=e.name+": "+String(e.type);return t&&(n+=` = ${eF(t)}`),n+iY(e.deprecationReason)}function iY(e){if(null==e)return"";if(e!==t3){let t=eF({kind:p.STRING,value:e});return` @deprecated(reason: ${t})`}return" @deprecated"}function iQ(e,t="",n=!0){let{description:r}=e;return null==r?"":(t&&!n?"\n"+t:t)+eF({kind:p.STRING,value:r,block:function(e){if(""===e)return!0;let t=!0,n=!1,r=!0,i=!1;for(let o=0;oe===i||e.kind===p.FRAGMENT_DEFINITION&&t.has(e.name.value))}}return r}function iK(e){let t=[];return ek(e,{FragmentSpread(e){t.push(e.name.value)}}),t}function iX(e){let t=eo(e,ea)?e:new ea(e),n=t.body,r=new Q(t),i="",o=!1;for(;r.advance().kind!==d.EOF;){let e=r.token,t=e.kind,a=!q(e.kind);o&&(a||e.kind===d.SPREAD)&&(i+=" ");let s=n.slice(e.start,e.end);t===d.BLOCK_STRING?i+=Y(e.value,{minimize:!0}):i+=s,o=a}return i}function iz(e){let t=iH(e);if(t)throw t;return e}function iH(e){if("string"==typeof e||N(!1,"Expected name to be a string."),e.startsWith("__"))return new w(`Name "${e}" must not begin with "__", which is reserved by GraphQL introspection.`);try{eB(e)}catch(e){return e}}function iW(e,t){return i0(e,t).filter(e=>e.type in h)}function iZ(e,t){return i0(e,t).filter(e=>e.type in m)}function i0(e,t){return[...function(e,t){let n=[],r=i4(Object.values(e.getTypeMap()),Object.values(t.getTypeMap()));for(let e of r.removed)n.push({type:h.TYPE_REMOVED,description:tz(e)?`Standard scalar ${e.name} was removed because it is not referenced anymore.`:`${e.name} was removed.`});for(let[e,t]of r.persisted)e1(e)&&e1(t)?n.push(...function(e,t){let n=[],r=i4(e.getValues(),t.getValues());for(let t of r.added)n.push({type:m.VALUE_ADDED_TO_ENUM,description:`${t.name} was added to enum type ${e.name}.`});for(let t of r.removed)n.push({type:h.VALUE_REMOVED_FROM_ENUM,description:`${t.name} was removed from enum type ${e.name}.`});return n}(e,t)):eZ(e)&&eZ(t)?n.push(...function(e,t){let n=[],r=i4(e.getTypes(),t.getTypes());for(let t of r.added)n.push({type:m.TYPE_ADDED_TO_UNION,description:`${t.name} was added to union type ${e.name}.`});for(let t of r.removed)n.push({type:h.TYPE_REMOVED_FROM_UNION,description:`${t.name} was removed from union type ${e.name}.`});return n}(e,t)):e3(e)&&e3(t)?n.push(...function(e,t){let n=[],r=i4(Object.values(e.getFields()),Object.values(t.getFields()));for(let t of r.added)tU(t)?n.push({type:h.REQUIRED_INPUT_FIELD_ADDED,description:`A required field ${t.name} on input type ${e.name} was added.`}):n.push({type:m.OPTIONAL_INPUT_FIELD_ADDED,description:`An optional field ${t.name} on input type ${e.name} was added.`});for(let t of r.removed)n.push({type:h.FIELD_REMOVED,description:`${e.name}.${t.name} was removed.`});for(let[t,i]of r.persisted)i1(t.type,i.type)||n.push({type:h.FIELD_CHANGED_KIND,description:`${e.name}.${t.name} changed type from ${String(t.type)} to ${String(i.type)}.`});return n}(e,t)):eX(e)&&eX(t)||eH(e)&&eH(t)?n.push(...function(e,t){let n=[],r=i4(Object.values(e.getFields()),Object.values(t.getFields()));for(let t of r.removed)n.push({type:h.FIELD_REMOVED,description:`${e.name}.${t.name} was removed.`});for(let[t,i]of r.persisted)n.push(...function(e,t,n){let r=[],i=i4(t.args,n.args);for(let n of i.removed)r.push({type:h.ARG_REMOVED,description:`${e.name}.${t.name} arg ${n.name} was removed.`});for(let[n,o]of i.persisted)if(i1(n.type,o.type)){if(void 0!==n.defaultValue)if(void 0===o.defaultValue)r.push({type:m.ARG_DEFAULT_VALUE_CHANGE,description:`${e.name}.${t.name} arg ${n.name} defaultValue was removed.`});else{let i=i3(n.defaultValue,n.type),a=i3(o.defaultValue,o.type);i!==a&&r.push({type:m.ARG_DEFAULT_VALUE_CHANGE,description:`${e.name}.${t.name} arg ${n.name} has changed defaultValue from ${i} to ${a}.`})}}else r.push({type:h.ARG_CHANGED_KIND,description:`${e.name}.${t.name} arg ${n.name} has changed type from ${String(n.type)} to ${String(o.type)}.`});for(let n of i.added)tw(n)?r.push({type:h.REQUIRED_ARG_ADDED,description:`A required arg ${n.name} on ${e.name}.${t.name} was added.`}):r.push({type:m.OPTIONAL_ARG_ADDED,description:`An optional arg ${n.name} on ${e.name}.${t.name} was added.`});return r}(e,t,i)),!function e(t,n){return e9(t)?e9(n)&&e(t.ofType,n.ofType)||e8(n)&&e(t,n.ofType):e8(t)?e8(n)&&e(t.ofType,n.ofType):ty(n)&&t.name===n.name||e8(n)&&e(t,n.ofType)}(t.type,i.type)&&n.push({type:h.FIELD_CHANGED_KIND,description:`${e.name}.${t.name} changed type from ${String(t.type)} to ${String(i.type)}.`});return n}(e,t),...function(e,t){let n=[],r=i4(e.getInterfaces(),t.getInterfaces());for(let t of r.added)n.push({type:m.IMPLEMENTED_INTERFACE_ADDED,description:`${t.name} added to interfaces implemented by ${e.name}.`});for(let t of r.removed)n.push({type:h.IMPLEMENTED_INTERFACE_REMOVED,description:`${e.name} no longer implements interface ${t.name}.`});return n}(e,t)):e.constructor!==t.constructor&&n.push({type:h.TYPE_CHANGED_KIND,description:`${e.name} changed from ${i2(e)} to ${i2(t)}.`});return n}(e,t),...function(e,t){let n=[],r=i4(e.getDirectives(),t.getDirectives());for(let e of r.removed)n.push({type:h.DIRECTIVE_REMOVED,description:`${e.name} was removed.`});for(let[e,t]of r.persisted){let r=i4(e.args,t.args);for(let t of r.added)tw(t)&&n.push({type:h.REQUIRED_DIRECTIVE_ARG_ADDED,description:`A required arg ${t.name} on directive ${e.name} was added.`});for(let t of r.removed)n.push({type:h.DIRECTIVE_ARG_REMOVED,description:`${t.name} was removed from ${e.name}.`});for(let r of(e.isRepeatable&&!t.isRepeatable&&n.push({type:h.DIRECTIVE_REPEATABLE_REMOVED,description:`Repeatable flag was removed from ${e.name}.`}),e.locations))t.locations.includes(r)||n.push({type:h.DIRECTIVE_LOCATION_REMOVED,description:`${r} was removed from ${e.name}.`})}return n}(e,t)]}(s=h||(h={})).TYPE_REMOVED="TYPE_REMOVED",s.TYPE_CHANGED_KIND="TYPE_CHANGED_KIND",s.TYPE_REMOVED_FROM_UNION="TYPE_REMOVED_FROM_UNION",s.VALUE_REMOVED_FROM_ENUM="VALUE_REMOVED_FROM_ENUM",s.REQUIRED_INPUT_FIELD_ADDED="REQUIRED_INPUT_FIELD_ADDED",s.IMPLEMENTED_INTERFACE_REMOVED="IMPLEMENTED_INTERFACE_REMOVED",s.FIELD_REMOVED="FIELD_REMOVED",s.FIELD_CHANGED_KIND="FIELD_CHANGED_KIND",s.REQUIRED_ARG_ADDED="REQUIRED_ARG_ADDED",s.ARG_REMOVED="ARG_REMOVED",s.ARG_CHANGED_KIND="ARG_CHANGED_KIND",s.DIRECTIVE_REMOVED="DIRECTIVE_REMOVED",s.DIRECTIVE_ARG_REMOVED="DIRECTIVE_ARG_REMOVED",s.REQUIRED_DIRECTIVE_ARG_ADDED="REQUIRED_DIRECTIVE_ARG_ADDED",s.DIRECTIVE_REPEATABLE_REMOVED="DIRECTIVE_REPEATABLE_REMOVED",s.DIRECTIVE_LOCATION_REMOVED="DIRECTIVE_LOCATION_REMOVED",(l=m||(m={})).VALUE_ADDED_TO_ENUM="VALUE_ADDED_TO_ENUM",l.TYPE_ADDED_TO_UNION="TYPE_ADDED_TO_UNION",l.OPTIONAL_INPUT_FIELD_ADDED="OPTIONAL_INPUT_FIELD_ADDED",l.OPTIONAL_ARG_ADDED="OPTIONAL_ARG_ADDED",l.IMPLEMENTED_INTERFACE_ADDED="IMPLEMENTED_INTERFACE_ADDED",l.ARG_DEFAULT_VALUE_CHANGE="ARG_DEFAULT_VALUE_CHANGE";function i1(e,t){return e9(e)?e9(t)&&i1(e.ofType,t.ofType):e8(e)?e8(t)&&i1(e.ofType,t.ofType)||!e8(t)&&i1(e.ofType,t):ty(t)&&e.name===t.name}function i2(e){return eJ(e)?"a Scalar type":eX(e)?"an Object type":eH(e)?"an Interface type":eZ(e)?"a Union type":e1(e)?"an Enum type":e3(e)?"an Input type":void _(!1,"Unexpected type: "+ei(e))}function i3(e,t){let n=ne(e,t);return null!=n||_(!1),eF(n3(n))}function i4(e,t){let n=[],r=[],i=[],o=eE(e,({name:e})=>e),a=eE(t,({name:e})=>e);for(let t of e){let e=a[t.name];void 0===e?r.push(t):i.push([t,e])}for(let e of t)void 0===o[e.name]&&n.push(e);return{added:n,persisted:i,removed:r}}function i9(e,t){return i5(e,ep(t))}function i5(e,t){switch(t.kind){case p.TYPE_COORDINATE:let n=t.name.value,r=e.getType(n);if(null!=r)return{kind:"NamedType",type:r};return;case p.MEMBER_COORDINATE:return function(e,t){let n=t.name.value,r=e.getType(n);if(!r)throw Error(`Expected ${ei(n)} to be defined as a type in the schema.`);if(!e1(r)&&!e3(r)&&!eX(r)&&!eH(r))throw Error(`Expected ${ei(n)} to be an Enum, Input Object, Object or Interface type.`);if(e1(r)){let e=t.memberName.value,n=r.getValue(e);if(null==n)return;return{kind:"EnumValue",type:r,enumValue:n}}if(e3(r)){let e=t.memberName.value,n=r.getFields()[e];if(null==n)return;return{kind:"InputField",type:r,inputField:n}}let i=t.memberName.value,o=r.getFields()[i];if(null!=o)return{kind:"Field",type:r,field:o}}(e,t);case p.ARGUMENT_COORDINATE:return function(e,t){let n=t.name.value,r=e.getType(n);if(null==r)throw Error(`Expected ${ei(n)} to be defined as a type in the schema.`);if(!eX(r)&&!eH(r))throw Error(`Expected ${ei(n)} to be an object type or interface type.`);let i=t.fieldName.value,o=r.getFields()[i];if(null==o)throw Error(`Expected ${ei(i)} to exist as a field of type ${ei(n)} in the schema.`);let a=t.argumentName.value,s=o.args.find(e=>e.name===a);if(null!=s)return{kind:"FieldArgument",type:r,field:o,fieldArgument:s}}(e,t);case p.DIRECTIVE_COORDINATE:let i=t.name.value,o=e.getDirective(i);if(o)return{kind:"Directive",directive:o};return;case p.DIRECTIVE_ARGUMENT_COORDINATE:return function(e,t){let n=t.name.value,r=e.getDirective(n);if(!r)throw Error(`Expected ${ei(n)} to be defined as a directive in the schema.`);let{argumentName:{value:i}}=t,o=r.args.find(e=>e.name===i);if(o)return{kind:"DirectiveArgument",directive:r,directiveArgument:o}}(e,t)}}module.exports=E})(); \ No newline at end of file diff --git a/vendor/yarn.lock b/vendor/yarn.lock index 7a953f1f114..cec19c94122 100644 --- a/vendor/yarn.lock +++ b/vendor/yarn.lock @@ -1039,11 +1039,6 @@ graceful-fs@^4.2.6: resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.2.11.tgz#4183e4e8bf08bb6e05bbb2f7d2e0c8f712ca40e3" integrity sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ== -graphql@^16.12.0: - version "16.12.0" - resolved "https://registry.yarnpkg.com/graphql/-/graphql-16.12.0.tgz#28cc2462435b1ac3fdc6976d030cef83a0c13ac7" - integrity sha512-DKKrynuQRne0PNpEbzuEdHlYOMksHSUI8Zc9Unei5gTsMNA2/vMpoMz/yKba50pejK56qj98qM0SjYxAKi13gQ== - gzip-size@^6.0.0: version "6.0.0" resolved "https://registry.yarnpkg.com/gzip-size/-/gzip-size-6.0.0.tgz#065367fd50c239c0671cbcbad5be3e2eeb10e462" From 3c35a8ac9c15a8728c8c202890b198db301924dd Mon Sep 17 00:00:00 2001 From: Roch Devost Date: Wed, 3 Dec 2025 21:53:21 -0500 Subject: [PATCH 60/95] add graphql back --- packages/node_modules/graphql/LICENSE | 21 +++++ packages/node_modules/graphql/index.js | 121 +++++++++++++++++++++++++ vendor/package.json | 1 + vendor/yarn.lock | 5 + 4 files changed, 148 insertions(+) create mode 100644 packages/node_modules/graphql/LICENSE create mode 100644 packages/node_modules/graphql/index.js diff --git a/packages/node_modules/graphql/LICENSE b/packages/node_modules/graphql/LICENSE new file mode 100644 index 00000000000..7bbf892a049 --- /dev/null +++ b/packages/node_modules/graphql/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) GraphQL Contributors + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/packages/node_modules/graphql/index.js b/packages/node_modules/graphql/index.js new file mode 100644 index 00000000000..3d29c46fd32 --- /dev/null +++ b/packages/node_modules/graphql/index.js @@ -0,0 +1,121 @@ +(()=>{"use strict";let e;var t,n,r,i,o,a,s,l,u,c,p,d,f,h,m,y={};y.d=(e,t)=>{for(var n in t)y.o(t,n)&&!y.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},y.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),y.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var E={};y.r(E),y.d(E,{VariablesAreInputTypesRule:()=>rP,SingleFieldSubscriptionsRule:()=>rb,UniqueVariableNamesRule:()=>rU,GraphQLDeprecatedDirective:()=>t4,GraphQLNonNull:()=>tc,__InputValue:()=>ns,createSourceEventStream:()=>ih,execute:()=>r1,isDefinitionNode:()=>nk,isInterfaceType:()=>eH,isRequiredArgument:()=>tw,isValidNameError:()=>iH,parseValue:()=>el,valueFromAST:()=>rm,NoUnusedVariablesRule:()=>n2,__DirectiveLocation:()=>ni,findDangerousChanges:()=>iZ,__TypeKind:()=>nu,isSchema:()=>nm,UniqueTypeNamesRule:()=>rV,NoSchemaIntrospectionCustomRule:()=>iE,defaultTypeResolver:()=>io,isType:()=>eQ,syntaxError:()=>$,version:()=>T,UniqueFragmentNamesRule:()=>r$,assertWrappingType:()=>td,getNullableType:()=>tm,isObjectType:()=>eX,visitWithTypeInfo:()=>nR,assertEnumValueName:()=>eY,printSchema:()=>ix,validate:()=>rX,BREAK:()=>eR,assertNonNullType:()=>e6,assertNullableType:()=>th,executeSync:()=>r2,isLeafType:()=>tr,resolveSchemaCoordinate:()=>i9,assertOutputType:()=>tn,buildASTSchema:()=>iS,astFromValue:()=>ne,Kind:()=>p,ProvidedRequiredArgumentsRule:()=>ra,UniqueDirectiveNamesRule:()=>rw,KnownDirectivesRule:()=>nq,DEFAULT_DEPRECATION_REASON:()=>t3,TypeKind:()=>f,assertInterfaceType:()=>eW,isValueNode:()=>nx,GraphQLSpecifiedByDirective:()=>t9,GraphQLFloat:()=>tQ,UniqueFieldDefinitionNamesRule:()=>rL,LoneAnonymousOperationRule:()=>nz,VariablesInAllowedPositionRule:()=>rG,assertInputType:()=>te,formatError:()=>L,assertInputObjectType:()=>e4,isOutputType:()=>tt,isWrappingType:()=>tp,assertLeafType:()=>ti,assertValidSchema:()=>nN,FragmentsOnCompositeTypesRule:()=>nB,graphql:()=>il,UniqueOperationTypesRule:()=>rC,parseSchemaCoordinate:()=>ep,UniqueEnumValueNamesRule:()=>rk,isNonNullType:()=>e8,isSelectionNode:()=>n$,printError:()=>k,specifiedDirectives:()=>t8,visit:()=>ek,GraphQLScalarType:()=>tI,assertEnumType:()=>e2,UniqueDirectivesPerLocationRule:()=>rR,assertName:()=>eB,getDirectiveValues:()=>rv,isConstValueNode:()=>function e(t){return nx(t)&&(t.kind===p.LIST?t.values.some(e):t.kind===p.OBJECT?t.fields.some(t=>e(t.value)):t.kind!==p.VARIABLE)},isEqualType:()=>tM,isNamedType:()=>ty,isTypeDefinitionNode:()=>nV,validateSchema:()=>nv,parse:()=>es,__Schema:()=>nn,isTypeSystemDefinitionNode:()=>nC,valueFromASTUntyped:()=>eG,LoneSchemaDefinitionRule:()=>nH,isTypeSubTypeOf:()=>tj,UniqueArgumentNamesRule:()=>rS,UniqueInputFieldNamesRule:()=>rx,locatedError:()=>rZ,typeFromAST:()=>nA,printLocation:()=>D,assertUnionType:()=>e0,separateOperations:()=>iJ,getVariableValues:()=>rE,Location:()=>x,GraphQLObjectType:()=>tg,UniqueArgumentDefinitionNamesRule:()=>rA,stripIgnoredCharacters:()=>iX,GRAPHQL_MAX_INT:()=>tG,visitInParallel:()=>eL,parseType:()=>ec,isTypeNode:()=>nF,PossibleTypeExtensionsRule:()=>ri,graphqlSync:()=>iu,isSchemaCoordinateNode:()=>nj,DirectiveLocation:()=>c,TypeNameMetaFieldDef:()=>nd,coerceInputValue:()=>rf,GraphQLInt:()=>tY,resolveObjMapThunk:()=>tN,GraphQLInterfaceType:()=>tR,UniqueOperationNamesRule:()=>rF,GraphQLSkipDirective:()=>t2,isEnumType:()=>e1,assertValidName:()=>iz,buildClientSchema:()=>ig,KnownArgumentNamesRule:()=>nY,ValuesOfCorrectTypeRule:()=>rM,isInputObjectType:()=>e3,GraphQLID:()=>tK,NoUnusedFragmentsRule:()=>n1,isUnionType:()=>eZ,isSpecifiedScalarType:()=>tz,getArgumentValues:()=>rT,printSourceLocation:()=>A,__EnumValue:()=>nl,getOperationAST:()=>iv,isExecutableDefinitionNode:()=>nL,isAbstractType:()=>ts,assertAbstractType:()=>tl,isTypeExtensionNode:()=>nM,GraphQLInputObjectType:()=>tC,getNamedType:()=>tT,parseConstValue:()=>eu,KnownFragmentNamesRule:()=>nJ,isListType:()=>e9,Lexer:()=>Q,isSpecifiedDirective:()=>t6,responsePathAsArray:()=>rd,isDirective:()=>tW,TypeInfo:()=>nS,assertScalarType:()=>eK,extendSchema:()=>i_,isIntrospectionType:()=>nh,print:()=>eF,getIntrospectionQuery:()=>iT,GraphQLBoolean:()=>tJ,KnownTypeNamesRule:()=>nK,assertListType:()=>e5,concatAST:()=>iq,NoDeprecatedCustomRule:()=>iy,defaultFieldResolver:()=>ia,GraphQLDirective:()=>t0,getLocation:()=>b,TypeMetaFieldDef:()=>np,GRAPHQL_MIN_INT:()=>tB,GraphQLIncludeDirective:()=>t1,ScalarLeafsRule:()=>ru,assertSchema:()=>ny,lexicographicSortSchema:()=>iR,GraphQLList:()=>tu,isTypeSystemExtensionNode:()=>nU,specifiedScalarTypes:()=>tX,BreakingChangeType:()=>h,ExecutableDefinitionsRule:()=>nP,assertDirective:()=>tZ,__Field:()=>na,getVisitFn:()=>ex,recommendedRules:()=>rB,SchemaMetaFieldDef:()=>nc,assertCompositeType:()=>ta,isRequiredInputField:()=>tU,Token:()=>F,specifiedRules:()=>rY,DangerousChangeType:()=>m,GraphQLUnionType:()=>tk,isCompositeType:()=>to,versionInfo:()=>v,FieldsOnCorrectTypeRule:()=>nG,GraphQLString:()=>tq,assertType:()=>eq,introspectionFromSchema:()=>iI,doTypesOverlap:()=>tP,GraphQLEnumType:()=>t$,resolveReadonlyArrayThunk:()=>tv,GraphQLOneOfDirective:()=>t5,NoFragmentCyclesRule:()=>nZ,findBreakingChanges:()=>iW,ValidationContext:()=>rK,OverlappingFieldsCanBeMergedRule:()=>n4,isScalarType:()=>eJ,MaxIntrospectionDepthRule:()=>nW,NoUndefinedVariablesRule:()=>n0,assertObjectType:()=>ez,getOperationRootType:()=>iN,printType:()=>iU,OperationTypeNode:()=>u,isInputType:()=>e7,__Directive:()=>nr,GraphQLSchema:()=>nE,Source:()=>ea,resolveASTSchemaCoordinate:()=>i5,GraphQLError:()=>w,assertNamedType:()=>tE,buildSchema:()=>iw,introspectionTypes:()=>nf,PossibleFragmentSpreadsRule:()=>rr,__Type:()=>no,getEnterLeaveForKind:()=>e$,TokenKind:()=>d,printIntrospectionSchema:()=>iF,isNullableType:()=>tf,subscribe:()=>id});let T="16.12.0",v=Object.freeze({major:16,minor:12,patch:0,preReleaseTag:null});function N(e,t){if(!e)throw Error(t)}function I(e){return"function"==typeof(null==e?void 0:e.then)}function g(e){return"object"==typeof e&&null!==e}function _(e,t){if(!e)throw Error(null!=t?t:"Unexpected invariant triggered.")}let O=/\r\n|[\n\r]/g;function b(e,t){let n=0,r=1;for(let i of e.body.matchAll(O)){if("number"==typeof i.index||_(!1),i.index>=t)break;n=i.index+i[0].length,r+=1}return{line:r,column:t+1-n}}function D(e){return A(e.source,b(e.source,e.start))}function A(e,t){let n=e.locationOffset.column-1,r="".padStart(n)+e.body,i=t.line-1,o=e.locationOffset.line-1,a=t.line+o,s=1===t.line?n:0,l=t.column+s,u=`${e.name}:${a}:${l} +`,c=r.split(/\r\n|[\n\r]/g),p=c[i];if(p.length>120){let e=Math.floor(l/80),t=[];for(let e=0;e["|",e]),["|","^".padStart(l%80)],["|",t[e+1]]])}return u+S([[`${a-1} |`,c[i-1]],[`${a} |`,p],["|","^".padStart(l)],[`${a+1} |`,c[i+1]]])}function S(e){let t=e.filter(([e,t])=>void 0!==t),n=Math.max(...t.map(([e])=>e.length));return t.map(([e,t])=>e.padStart(n)+(t?" "+t:"")).join("\n")}class w extends Error{constructor(e,...t){var n,r,i;const{nodes:o,source:a,positions:s,path:l,originalError:u,extensions:c}=function(e){let t=e[0];return null==t||"kind"in t||"length"in t?{nodes:t,source:e[1],positions:e[2],path:e[3],originalError:e[4],extensions:e[5]}:t}(t);super(e),this.name="GraphQLError",this.path=null!=l?l:void 0,this.originalError=null!=u?u:void 0,this.nodes=R(Array.isArray(o)?o:o?[o]:void 0);const p=R(null==(n=this.nodes)?void 0:n.map(e=>e.loc).filter(e=>null!=e));this.source=null!=a?a:null==p||null==(r=p[0])?void 0:r.source,this.positions=null!=s?s:null==p?void 0:p.map(e=>e.start),this.locations=s&&a?s.map(e=>b(a,e)):null==p?void 0:p.map(e=>b(e.source,e.start));const d=g(null==u?void 0:u.extensions)?null==u?void 0:u.extensions:void 0;this.extensions=null!=(i=null!=c?c:d)?i:Object.create(null),Object.defineProperties(this,{message:{writable:!0,enumerable:!0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),null!=u&&u.stack?Object.defineProperty(this,"stack",{value:u.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,w):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let e=this.message;if(this.nodes)for(let t of this.nodes)t.loc&&(e+="\n\n"+D(t.loc));else if(this.source&&this.locations)for(let t of this.locations)e+="\n\n"+A(this.source,t);return e}toJSON(){let e={message:this.message};return null!=this.locations&&(e.locations=this.locations),null!=this.path&&(e.path=this.path),null!=this.extensions&&Object.keys(this.extensions).length>0&&(e.extensions=this.extensions),e}}function R(e){return void 0===e||0===e.length?void 0:e}function k(e){return e.toString()}function L(e){return e.toJSON()}function $(e,t,n){return new w(`Syntax Error: ${n}`,{source:e,positions:[t]})}class x{constructor(e,t,n){this.start=e.start,this.end=t.end,this.startToken=e,this.endToken=t,this.source=n}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}}class F{constructor(e,t,n,r,i,o){this.kind=e,this.start=t,this.end=n,this.line=r,this.column=i,this.value=o,this.prev=null,this.next=null}get[Symbol.toStringTag](){return"Token"}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}}let C={Name:[],Document:["definitions"],OperationDefinition:["description","name","variableDefinitions","directives","selectionSet"],VariableDefinition:["description","variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["description","name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"],TypeCoordinate:["name"],MemberCoordinate:["name","memberName"],ArgumentCoordinate:["name","fieldName","argumentName"],DirectiveCoordinate:["name"],DirectiveArgumentCoordinate:["name","argumentName"]},V=new Set(Object.keys(C));function U(e){let t=null==e?void 0:e.kind;return"string"==typeof t&&V.has(t)}function M(e){return 9===e||32===e}function j(e){return e>=48&&e<=57}function P(e){return e>=97&&e<=122||e>=65&&e<=90}function G(e){return P(e)||95===e}function B(e){return P(e)||j(e)||95===e}function Y(e,t){let n=e.replace(/"""/g,'\\"""'),r=n.split(/\r\n|[\n\r]/g),i=1===r.length,o=r.length>1&&r.slice(1).every(e=>0===e.length||M(e.charCodeAt(0))),a=n.endsWith('\\"""'),s=e.endsWith('"')&&!a,l=e.endsWith("\\"),u=s||l,c=!(null!=t&&t.minimize)&&(!i||e.length>70||u||o||a),p="",d=i&&M(e.charCodeAt(0));return(c&&!d||o)&&(p+="\n"),p+=n,(c||u)&&(p+="\n"),'"""'+p+'"""'}(t=u||(u={})).QUERY="query",t.MUTATION="mutation",t.SUBSCRIPTION="subscription",(n=c||(c={})).QUERY="QUERY",n.MUTATION="MUTATION",n.SUBSCRIPTION="SUBSCRIPTION",n.FIELD="FIELD",n.FRAGMENT_DEFINITION="FRAGMENT_DEFINITION",n.FRAGMENT_SPREAD="FRAGMENT_SPREAD",n.INLINE_FRAGMENT="INLINE_FRAGMENT",n.VARIABLE_DEFINITION="VARIABLE_DEFINITION",n.SCHEMA="SCHEMA",n.SCALAR="SCALAR",n.OBJECT="OBJECT",n.FIELD_DEFINITION="FIELD_DEFINITION",n.ARGUMENT_DEFINITION="ARGUMENT_DEFINITION",n.INTERFACE="INTERFACE",n.UNION="UNION",n.ENUM="ENUM",n.ENUM_VALUE="ENUM_VALUE",n.INPUT_OBJECT="INPUT_OBJECT",n.INPUT_FIELD_DEFINITION="INPUT_FIELD_DEFINITION",(r=p||(p={})).NAME="Name",r.DOCUMENT="Document",r.OPERATION_DEFINITION="OperationDefinition",r.VARIABLE_DEFINITION="VariableDefinition",r.SELECTION_SET="SelectionSet",r.FIELD="Field",r.ARGUMENT="Argument",r.FRAGMENT_SPREAD="FragmentSpread",r.INLINE_FRAGMENT="InlineFragment",r.FRAGMENT_DEFINITION="FragmentDefinition",r.VARIABLE="Variable",r.INT="IntValue",r.FLOAT="FloatValue",r.STRING="StringValue",r.BOOLEAN="BooleanValue",r.NULL="NullValue",r.ENUM="EnumValue",r.LIST="ListValue",r.OBJECT="ObjectValue",r.OBJECT_FIELD="ObjectField",r.DIRECTIVE="Directive",r.NAMED_TYPE="NamedType",r.LIST_TYPE="ListType",r.NON_NULL_TYPE="NonNullType",r.SCHEMA_DEFINITION="SchemaDefinition",r.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",r.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",r.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",r.FIELD_DEFINITION="FieldDefinition",r.INPUT_VALUE_DEFINITION="InputValueDefinition",r.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",r.UNION_TYPE_DEFINITION="UnionTypeDefinition",r.ENUM_TYPE_DEFINITION="EnumTypeDefinition",r.ENUM_VALUE_DEFINITION="EnumValueDefinition",r.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",r.DIRECTIVE_DEFINITION="DirectiveDefinition",r.SCHEMA_EXTENSION="SchemaExtension",r.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",r.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",r.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",r.UNION_TYPE_EXTENSION="UnionTypeExtension",r.ENUM_TYPE_EXTENSION="EnumTypeExtension",r.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension",r.TYPE_COORDINATE="TypeCoordinate",r.MEMBER_COORDINATE="MemberCoordinate",r.ARGUMENT_COORDINATE="ArgumentCoordinate",r.DIRECTIVE_COORDINATE="DirectiveCoordinate",r.DIRECTIVE_ARGUMENT_COORDINATE="DirectiveArgumentCoordinate",(i=d||(d={})).SOF="",i.EOF="",i.BANG="!",i.DOLLAR="$",i.AMP="&",i.PAREN_L="(",i.PAREN_R=")",i.DOT=".",i.SPREAD="...",i.COLON=":",i.EQUALS="=",i.AT="@",i.BRACKET_L="[",i.BRACKET_R="]",i.BRACE_L="{",i.PIPE="|",i.BRACE_R="}",i.NAME="Name",i.INT="Int",i.FLOAT="Float",i.STRING="String",i.BLOCK_STRING="BlockString",i.COMMENT="Comment";class Q{constructor(e){const t=new F(d.SOF,0,0,0,0);this.source=e,this.lastToken=t,this.token=t,this.line=1,this.lineStart=0}get[Symbol.toStringTag](){return"Lexer"}advance(){return this.lastToken=this.token,this.token=this.lookahead()}lookahead(){let e=this.token;if(e.kind!==d.EOF)do if(e.next)e=e.next;else{let t=function(e,t){let n=e.source.body,r=n.length,i=t;for(;i0===t?e:e.slice(r)).slice(null!=(t=i)?t:0,o+1)})(l).join("\n"));return e.line+=l.length-1,e.lineStart=i,r}if(92===r&&34===n.charCodeAt(o+1)&&34===n.charCodeAt(o+2)&&34===n.charCodeAt(o+3)){s+=n.slice(a,o),a=o+1,o+=4;continue}if(10===r||13===r){s+=n.slice(a,o),l.push(s),13===r&&10===n.charCodeAt(o+1)?o+=2:++o,s="",a=o,i=o;continue}if(J(r))++o;else if(K(n,o))o+=2;else throw $(e.source,o,`Invalid character within String: ${H(e,o)}.`)}throw $(e.source,o,"Unterminated string.")}(e,i);return function(e,t){let n=e.source.body,r=n.length,i=t+1,o=i,a="";for(;i=0&&e<=55295||e>=57344&&e<=1114111}function K(e,t){return X(e.charCodeAt(t))&&z(e.charCodeAt(t+1))}function X(e){return e>=55296&&e<=56319}function z(e){return e>=56320&&e<=57343}function H(e,t){let n=e.source.body.codePointAt(t);if(void 0===n)return d.EOF;if(n>=32&&n<=126){let e=String.fromCodePoint(n);return'"'===e?"'\"'":`"${e}"`}return"U+"+n.toString(16).toUpperCase().padStart(4,"0")}function W(e,t,n,r,i){let o=e.line,a=1+n-e.lineStart;return new F(t,n,r,o,a,i)}function Z(e,t,n){if(!j(n))throw $(e.source,t,`Invalid number, expected digit but got: ${H(e,t)}.`);let r=e.source.body,i=t+1;for(;j(r.charCodeAt(i));)++i;return i}function ee(e,t){return et(e.charCodeAt(t))<<12|et(e.charCodeAt(t+1))<<8|et(e.charCodeAt(t+2))<<4|et(e.charCodeAt(t+3))}function et(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function en(e,t){let n=e.source.body,r=n.length,i=t+1;for(;i2)return"[Array]";let n=Math.min(10,s.length),r=s.length-n,u=[];for(let t=0;t1&&u.push(`... ${r} more items`),"["+u.join(", ")+"]"}return o=t,a=i,0===(r=Object.entries(o)).length?"{}":a.length>2?"["+function(e){let t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if("Object"===t&&"function"==typeof e.constructor){let t=e.constructor.name;if("string"==typeof t&&""!==t)return t}return t}(o)+"]":"{ "+r.map(([t,n])=>t+": "+e(n,a)).join(", ")+" }"}(t,n);default:return String(t)}}(e,[])}let eo=globalThis.process&&1?function(e,t){return e instanceof t}:function(e,t){if(e instanceof t)return!0;if("object"==typeof e&&null!==e){var n;let r=t.prototype[Symbol.toStringTag];if(r===(Symbol.toStringTag in e?e[Symbol.toStringTag]:null==(n=e.constructor)?void 0:n.name)){let t=ei(e);throw Error(`Cannot use ${r} "${t}" from another module or realm. + +Ensure that there is only one instance of "graphql" in the node_modules +directory. If different versions of "graphql" are the dependencies of other +relied on modules, use "resolutions" to ensure only one version is installed. + +https://yarnpkg.com/en/docs/selective-version-resolutions + +Duplicate "graphql" modules cannot be used at the same time since different +versions may have different capabilities and behavior. The data from one +version used in the function from another could produce confusing and +spurious results.`)}}return!1};class ea{constructor(e,t="GraphQL request",n={line:1,column:1}){"string"==typeof e||N(!1,`Body must be a string. Received: ${ei(e)}.`),this.body=e,this.name=t,this.locationOffset=n,this.locationOffset.line>0||N(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||N(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}}function es(e,t){let n=new ed(e,t),r=n.parseDocument();return Object.defineProperty(r,"tokenCount",{enumerable:!1,value:n.tokenCount}),r}function el(e,t){let n=new ed(e,t);n.expectToken(d.SOF);let r=n.parseValueLiteral(!1);return n.expectToken(d.EOF),r}function eu(e,t){let n=new ed(e,t);n.expectToken(d.SOF);let r=n.parseConstValueLiteral();return n.expectToken(d.EOF),r}function ec(e,t){let n=new ed(e,t);n.expectToken(d.SOF);let r=n.parseTypeReference();return n.expectToken(d.EOF),r}function ep(e){let t=new er(eo(e,ea)?e:new ea(e)),n=new ed(e,{lexer:t});n.expectToken(d.SOF);let r=n.parseSchemaCoordinate();return n.expectToken(d.EOF),r}class ed{constructor(e,t={}){const{lexer:n,...r}=t;if(n)this._lexer=n;else{const t=eo(e,ea)?e:new ea(e);this._lexer=new Q(t)}this._options=r,this._tokenCounter=0}get tokenCount(){return this._tokenCounter}parseName(){let e=this.expectToken(d.NAME);return this.node(e,{kind:p.NAME,value:e.value})}parseDocument(){return this.node(this._lexer.token,{kind:p.DOCUMENT,definitions:this.many(d.SOF,this.parseDefinition,d.EOF)})}parseDefinition(){if(this.peek(d.BRACE_L))return this.parseOperationDefinition();let e=this.peekDescription(),t=e?this._lexer.lookahead():this._lexer.token;if(e&&t.kind===d.BRACE_L)throw $(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are not supported on shorthand queries.");if(t.kind===d.NAME){switch(t.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}switch(t.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition()}if(e)throw $(this._lexer.source,this._lexer.token.start,"Unexpected description, only GraphQL definitions support descriptions.");if("extend"===t.value)return this.parseTypeSystemExtension()}throw this.unexpected(t)}parseOperationDefinition(){let e,t=this._lexer.token;if(this.peek(d.BRACE_L))return this.node(t,{kind:p.OPERATION_DEFINITION,operation:u.QUERY,description:void 0,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});let n=this.parseDescription(),r=this.parseOperationType();return this.peek(d.NAME)&&(e=this.parseName()),this.node(t,{kind:p.OPERATION_DEFINITION,operation:r,description:n,name:e,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){let e=this.expectToken(d.NAME);switch(e.value){case"query":return u.QUERY;case"mutation":return u.MUTATION;case"subscription":return u.SUBSCRIPTION}throw this.unexpected(e)}parseVariableDefinitions(){return this.optionalMany(d.PAREN_L,this.parseVariableDefinition,d.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:p.VARIABLE_DEFINITION,description:this.parseDescription(),variable:this.parseVariable(),type:(this.expectToken(d.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(d.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){let e=this._lexer.token;return this.expectToken(d.DOLLAR),this.node(e,{kind:p.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:p.SELECTION_SET,selections:this.many(d.BRACE_L,this.parseSelection,d.BRACE_R)})}parseSelection(){return this.peek(d.SPREAD)?this.parseFragment():this.parseField()}parseField(){let e,t,n=this._lexer.token,r=this.parseName();return this.expectOptionalToken(d.COLON)?(e=r,t=this.parseName()):t=r,this.node(n,{kind:p.FIELD,alias:e,name:t,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(d.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(e){let t=e?this.parseConstArgument:this.parseArgument;return this.optionalMany(d.PAREN_L,t,d.PAREN_R)}parseArgument(e=!1){let t=this._lexer.token,n=this.parseName();return this.expectToken(d.COLON),this.node(t,{kind:p.ARGUMENT,name:n,value:this.parseValueLiteral(e)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){let e=this._lexer.token;this.expectToken(d.SPREAD);let t=this.expectOptionalKeyword("on");return!t&&this.peek(d.NAME)?this.node(e,{kind:p.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(e,{kind:p.INLINE_FRAGMENT,typeCondition:t?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){let e=this._lexer.token,t=this.parseDescription();return(this.expectKeyword("fragment"),!0===this._options.allowLegacyFragmentVariables)?this.node(e,{kind:p.FRAGMENT_DEFINITION,description:t,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}):this.node(e,{kind:p.FRAGMENT_DEFINITION,description:t,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentName(){if("on"===this._lexer.token.value)throw this.unexpected();return this.parseName()}parseValueLiteral(e){let t=this._lexer.token;switch(t.kind){case d.BRACKET_L:return this.parseList(e);case d.BRACE_L:return this.parseObject(e);case d.INT:return this.advanceLexer(),this.node(t,{kind:p.INT,value:t.value});case d.FLOAT:return this.advanceLexer(),this.node(t,{kind:p.FLOAT,value:t.value});case d.STRING:case d.BLOCK_STRING:return this.parseStringLiteral();case d.NAME:switch(this.advanceLexer(),t.value){case"true":return this.node(t,{kind:p.BOOLEAN,value:!0});case"false":return this.node(t,{kind:p.BOOLEAN,value:!1});case"null":return this.node(t,{kind:p.NULL});default:return this.node(t,{kind:p.ENUM,value:t.value})}case d.DOLLAR:if(e){if(this.expectToken(d.DOLLAR),this._lexer.token.kind===d.NAME){let e=this._lexer.token.value;throw $(this._lexer.source,t.start,`Unexpected variable "$${e}" in constant value.`)}throw this.unexpected(t)}return this.parseVariable();default:throw this.unexpected()}}parseConstValueLiteral(){return this.parseValueLiteral(!0)}parseStringLiteral(){let e=this._lexer.token;return this.advanceLexer(),this.node(e,{kind:p.STRING,value:e.value,block:e.kind===d.BLOCK_STRING})}parseList(e){let t=()=>this.parseValueLiteral(e);return this.node(this._lexer.token,{kind:p.LIST,values:this.any(d.BRACKET_L,t,d.BRACKET_R)})}parseObject(e){let t=()=>this.parseObjectField(e);return this.node(this._lexer.token,{kind:p.OBJECT,fields:this.any(d.BRACE_L,t,d.BRACE_R)})}parseObjectField(e){let t=this._lexer.token,n=this.parseName();return this.expectToken(d.COLON),this.node(t,{kind:p.OBJECT_FIELD,name:n,value:this.parseValueLiteral(e)})}parseDirectives(e){let t=[];for(;this.peek(d.AT);)t.push(this.parseDirective(e));return t}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(e){let t=this._lexer.token;return this.expectToken(d.AT),this.node(t,{kind:p.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e)})}parseTypeReference(){let e,t=this._lexer.token;if(this.expectOptionalToken(d.BRACKET_L)){let n=this.parseTypeReference();this.expectToken(d.BRACKET_R),e=this.node(t,{kind:p.LIST_TYPE,type:n})}else e=this.parseNamedType();return this.expectOptionalToken(d.BANG)?this.node(t,{kind:p.NON_NULL_TYPE,type:e}):e}parseNamedType(){return this.node(this._lexer.token,{kind:p.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(d.STRING)||this.peek(d.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("schema");let n=this.parseConstDirectives(),r=this.many(d.BRACE_L,this.parseOperationTypeDefinition,d.BRACE_R);return this.node(e,{kind:p.SCHEMA_DEFINITION,description:t,directives:n,operationTypes:r})}parseOperationTypeDefinition(){let e=this._lexer.token,t=this.parseOperationType();this.expectToken(d.COLON);let n=this.parseNamedType();return this.node(e,{kind:p.OPERATION_TYPE_DEFINITION,operation:t,type:n})}parseScalarTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("scalar");let n=this.parseName(),r=this.parseConstDirectives();return this.node(e,{kind:p.SCALAR_TYPE_DEFINITION,description:t,name:n,directives:r})}parseObjectTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("type");let n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),o=this.parseFieldsDefinition();return this.node(e,{kind:p.OBJECT_TYPE_DEFINITION,description:t,name:n,interfaces:r,directives:i,fields:o})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(d.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(d.BRACE_L,this.parseFieldDefinition,d.BRACE_R)}parseFieldDefinition(){let e=this._lexer.token,t=this.parseDescription(),n=this.parseName(),r=this.parseArgumentDefs();this.expectToken(d.COLON);let i=this.parseTypeReference(),o=this.parseConstDirectives();return this.node(e,{kind:p.FIELD_DEFINITION,description:t,name:n,arguments:r,type:i,directives:o})}parseArgumentDefs(){return this.optionalMany(d.PAREN_L,this.parseInputValueDef,d.PAREN_R)}parseInputValueDef(){let e,t=this._lexer.token,n=this.parseDescription(),r=this.parseName();this.expectToken(d.COLON);let i=this.parseTypeReference();this.expectOptionalToken(d.EQUALS)&&(e=this.parseConstValueLiteral());let o=this.parseConstDirectives();return this.node(t,{kind:p.INPUT_VALUE_DEFINITION,description:n,name:r,type:i,defaultValue:e,directives:o})}parseInterfaceTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("interface");let n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),o=this.parseFieldsDefinition();return this.node(e,{kind:p.INTERFACE_TYPE_DEFINITION,description:t,name:n,interfaces:r,directives:i,fields:o})}parseUnionTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("union");let n=this.parseName(),r=this.parseConstDirectives(),i=this.parseUnionMemberTypes();return this.node(e,{kind:p.UNION_TYPE_DEFINITION,description:t,name:n,directives:r,types:i})}parseUnionMemberTypes(){return this.expectOptionalToken(d.EQUALS)?this.delimitedMany(d.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("enum");let n=this.parseName(),r=this.parseConstDirectives(),i=this.parseEnumValuesDefinition();return this.node(e,{kind:p.ENUM_TYPE_DEFINITION,description:t,name:n,directives:r,values:i})}parseEnumValuesDefinition(){return this.optionalMany(d.BRACE_L,this.parseEnumValueDefinition,d.BRACE_R)}parseEnumValueDefinition(){let e=this._lexer.token,t=this.parseDescription(),n=this.parseEnumValueName(),r=this.parseConstDirectives();return this.node(e,{kind:p.ENUM_VALUE_DEFINITION,description:t,name:n,directives:r})}parseEnumValueName(){if("true"===this._lexer.token.value||"false"===this._lexer.token.value||"null"===this._lexer.token.value)throw $(this._lexer.source,this._lexer.token.start,`${ef(this._lexer.token)} is reserved and cannot be used for an enum value.`);return this.parseName()}parseInputObjectTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("input");let n=this.parseName(),r=this.parseConstDirectives(),i=this.parseInputFieldsDefinition();return this.node(e,{kind:p.INPUT_OBJECT_TYPE_DEFINITION,description:t,name:n,directives:r,fields:i})}parseInputFieldsDefinition(){return this.optionalMany(d.BRACE_L,this.parseInputValueDef,d.BRACE_R)}parseTypeSystemExtension(){let e=this._lexer.lookahead();if(e.kind===d.NAME)switch(e.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(e)}parseSchemaExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");let t=this.parseConstDirectives(),n=this.optionalMany(d.BRACE_L,this.parseOperationTypeDefinition,d.BRACE_R);if(0===t.length&&0===n.length)throw this.unexpected();return this.node(e,{kind:p.SCHEMA_EXTENSION,directives:t,operationTypes:n})}parseScalarTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");let t=this.parseName(),n=this.parseConstDirectives();if(0===n.length)throw this.unexpected();return this.node(e,{kind:p.SCALAR_TYPE_EXTENSION,name:t,directives:n})}parseObjectTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");let t=this.parseName(),n=this.parseImplementsInterfaces(),r=this.parseConstDirectives(),i=this.parseFieldsDefinition();if(0===n.length&&0===r.length&&0===i.length)throw this.unexpected();return this.node(e,{kind:p.OBJECT_TYPE_EXTENSION,name:t,interfaces:n,directives:r,fields:i})}parseInterfaceTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");let t=this.parseName(),n=this.parseImplementsInterfaces(),r=this.parseConstDirectives(),i=this.parseFieldsDefinition();if(0===n.length&&0===r.length&&0===i.length)throw this.unexpected();return this.node(e,{kind:p.INTERFACE_TYPE_EXTENSION,name:t,interfaces:n,directives:r,fields:i})}parseUnionTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");let t=this.parseName(),n=this.parseConstDirectives(),r=this.parseUnionMemberTypes();if(0===n.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:p.UNION_TYPE_EXTENSION,name:t,directives:n,types:r})}parseEnumTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");let t=this.parseName(),n=this.parseConstDirectives(),r=this.parseEnumValuesDefinition();if(0===n.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:p.ENUM_TYPE_EXTENSION,name:t,directives:n,values:r})}parseInputObjectTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");let t=this.parseName(),n=this.parseConstDirectives(),r=this.parseInputFieldsDefinition();if(0===n.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:p.INPUT_OBJECT_TYPE_EXTENSION,name:t,directives:n,fields:r})}parseDirectiveDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("directive"),this.expectToken(d.AT);let n=this.parseName(),r=this.parseArgumentDefs(),i=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");let o=this.parseDirectiveLocations();return this.node(e,{kind:p.DIRECTIVE_DEFINITION,description:t,name:n,arguments:r,repeatable:i,locations:o})}parseDirectiveLocations(){return this.delimitedMany(d.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){let e=this._lexer.token,t=this.parseName();if(Object.prototype.hasOwnProperty.call(c,t.value))return t;throw this.unexpected(e)}parseSchemaCoordinate(){let e,t,n=this._lexer.token,r=this.expectOptionalToken(d.AT),i=this.parseName();return(!r&&this.expectOptionalToken(d.DOT)&&(e=this.parseName()),(r||e)&&this.expectOptionalToken(d.PAREN_L)&&(t=this.parseName(),this.expectToken(d.COLON),this.expectToken(d.PAREN_R)),r)?t?this.node(n,{kind:p.DIRECTIVE_ARGUMENT_COORDINATE,name:i,argumentName:t}):this.node(n,{kind:p.DIRECTIVE_COORDINATE,name:i}):e?t?this.node(n,{kind:p.ARGUMENT_COORDINATE,name:i,fieldName:e,argumentName:t}):this.node(n,{kind:p.MEMBER_COORDINATE,name:i,memberName:e}):this.node(n,{kind:p.TYPE_COORDINATE,name:i})}node(e,t){return!0!==this._options.noLocation&&(t.loc=new x(e,this._lexer.lastToken,this._lexer.source)),t}peek(e){return this._lexer.token.kind===e}expectToken(e){let t=this._lexer.token;if(t.kind===e)return this.advanceLexer(),t;throw $(this._lexer.source,t.start,`Expected ${eh(e)}, found ${ef(t)}.`)}expectOptionalToken(e){return this._lexer.token.kind===e&&(this.advanceLexer(),!0)}expectKeyword(e){let t=this._lexer.token;if(t.kind===d.NAME&&t.value===e)this.advanceLexer();else throw $(this._lexer.source,t.start,`Expected "${e}", found ${ef(t)}.`)}expectOptionalKeyword(e){let t=this._lexer.token;return t.kind===d.NAME&&t.value===e&&(this.advanceLexer(),!0)}unexpected(e){let t=null!=e?e:this._lexer.token;return $(this._lexer.source,t.start,`Unexpected ${ef(t)}.`)}any(e,t,n){this.expectToken(e);let r=[];for(;!this.expectOptionalToken(n);)r.push(t.call(this));return r}optionalMany(e,t,n){if(this.expectOptionalToken(e)){let e=[];do e.push(t.call(this));while(!this.expectOptionalToken(n));return e}return[]}many(e,t,n){this.expectToken(e);let r=[];do r.push(t.call(this));while(!this.expectOptionalToken(n));return r}delimitedMany(e,t){this.expectOptionalToken(e);let n=[];do n.push(t.call(this));while(this.expectOptionalToken(e));return n}advanceLexer(){let{maxTokens:e}=this._options,t=this._lexer.advance();if(t.kind!==d.EOF&&(++this._tokenCounter,void 0!==e&&this._tokenCounter>e))throw $(this._lexer.source,t.start,`Document contains more that ${e} tokens. Parsing aborted.`)}}function ef(e){let t=e.value;return eh(e.kind)+(null!=t?` "${t}"`:"")}function eh(e){return q(e)?`"${e}"`:e}function em(e,t){let[n,r]=t?[e,t]:[void 0,e],i=" Did you mean ";n&&(i+=n+" ");let o=r.map(e=>`"${e}"`);switch(o.length){case 0:return"";case 1:return i+o[0]+"?";case 2:return i+o[0]+" or "+o[1]+"?"}let a=o.slice(0,5),s=a.pop();return i+a.join(", ")+", or "+s+"?"}function ey(e){return e}function eE(e,t){let n=Object.create(null);for(let r of e)n[t(r)]=r;return n}function eT(e,t,n){let r=Object.create(null);for(let i of e)r[t(i)]=n(i);return r}function ev(e,t){let n=Object.create(null);for(let r of Object.keys(e))n[r]=t(e[r],r);return n}function eN(e,t){let n=0,r=0;for(;n0);let s=0;do++r,s=10*s+o-eI,o=t.charCodeAt(r);while(eg(o)&&s>0);if(as)return 1}else{if(io)return 1;++n,++r}}return e.length-t.length}let eI=48;function eg(e){return!isNaN(e)&&eI<=e&&e<=57}function e_(e,t){let n=Object.create(null),r=new eO(e),i=Math.floor(.4*e.length)+1;for(let e of t){let t=r.measure(e,i);void 0!==t&&(n[e]=t)}return Object.keys(n).sort((e,t)=>{let r=n[e]-n[t];return 0!==r?r:eN(e,t)})}class eO{constructor(e){this._input=e,this._inputLowerCase=e.toLowerCase(),this._inputArray=eb(this._inputLowerCase),this._rows=[Array(e.length+1).fill(0),Array(e.length+1).fill(0),Array(e.length+1).fill(0)]}measure(e,t){if(this._input===e)return 0;let n=e.toLowerCase();if(this._inputLowerCase===n)return 1;let r=eb(n),i=this._inputArray;if(r.lengtht)return;let s=this._rows;for(let e=0;e<=a;e++)s[0][e]=e;for(let e=1;e<=o;e++){let n=s[(e-1)%3],o=s[e%3],l=o[0]=e;for(let t=1;t<=a;t++){let a=+(r[e-1]!==i[t-1]),u=Math.min(n[t]+1,o[t-1]+1,n[t-1]+a);e>1&&t>1&&r[e-1]===i[t-2]&&r[e-2]===i[t-1]&&(u=Math.min(u,s[(e-2)%3][t-2]+1)),ut)return}let l=s[o%3][a];return l<=t?l:void 0}}function eb(e){let t=e.length,n=Array(t);for(let r=0;re.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>eV(e.definitions,"\n\n")},OperationDefinition:{leave(e){let t=eP(e.variableDefinitions)?eM("(\n",eV(e.variableDefinitions,"\n"),"\n)"):eM("(",eV(e.variableDefinitions,", "),")"),n=eM("",e.description,"\n")+eV([e.operation,eV([e.name,t]),eV(e.directives," ")]," ");return("query"===n?"":n+" ")+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:t,defaultValue:n,directives:r,description:i})=>eM("",i,"\n")+e+": "+t+eM(" = ",n)+eM(" ",eV(r," "))},SelectionSet:{leave:({selections:e})=>eU(e)},Field:{leave({alias:e,name:t,arguments:n,directives:r,selectionSet:i}){let o=eM("",e,": ")+t,a=o+eM("(",eV(n,", "),")");return a.length>80&&(a=o+eM("(\n",ej(eV(n,"\n")),"\n)")),eV([a,eV(r," "),i]," ")}},Argument:{leave:({name:e,value:t})=>e+": "+t},FragmentSpread:{leave:({name:e,directives:t})=>"..."+e+eM(" ",eV(t," "))},InlineFragment:{leave:({typeCondition:e,directives:t,selectionSet:n})=>eV(["...",eM("on ",e),eV(t," "),n]," ")},FragmentDefinition:{leave:({name:e,typeCondition:t,variableDefinitions:n,directives:r,selectionSet:i,description:o})=>eM("",o,"\n")+`fragment ${e}${eM("(",eV(n,", "),")")} `+`on ${t} ${eM("",eV(r," ")," ")}`+i},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e},StringValue:{leave:({value:e,block:t})=>t?Y(e):`"${e.replace(eA,eS)}"`},BooleanValue:{leave:({value:e})=>e?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>"["+eV(e,", ")+"]"},ObjectValue:{leave:({fields:e})=>"{"+eV(e,", ")+"}"},ObjectField:{leave:({name:e,value:t})=>e+": "+t},Directive:{leave:({name:e,arguments:t})=>"@"+e+eM("(",eV(t,", "),")")},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>"["+e+"]"},NonNullType:{leave:({type:e})=>e+"!"},SchemaDefinition:{leave:({description:e,directives:t,operationTypes:n})=>eM("",e,"\n")+eV(["schema",eV(t," "),eU(n)]," ")},OperationTypeDefinition:{leave:({operation:e,type:t})=>e+": "+t},ScalarTypeDefinition:{leave:({description:e,name:t,directives:n})=>eM("",e,"\n")+eV(["scalar",t,eV(n," ")]," ")},ObjectTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:r,fields:i})=>eM("",e,"\n")+eV(["type",t,eM("implements ",eV(n," & ")),eV(r," "),eU(i)]," ")},FieldDefinition:{leave:({description:e,name:t,arguments:n,type:r,directives:i})=>eM("",e,"\n")+t+(eP(n)?eM("(\n",ej(eV(n,"\n")),"\n)"):eM("(",eV(n,", "),")"))+": "+r+eM(" ",eV(i," "))},InputValueDefinition:{leave:({description:e,name:t,type:n,defaultValue:r,directives:i})=>eM("",e,"\n")+eV([t+": "+n,eM("= ",r),eV(i," ")]," ")},InterfaceTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:r,fields:i})=>eM("",e,"\n")+eV(["interface",t,eM("implements ",eV(n," & ")),eV(r," "),eU(i)]," ")},UnionTypeDefinition:{leave:({description:e,name:t,directives:n,types:r})=>eM("",e,"\n")+eV(["union",t,eV(n," "),eM("= ",eV(r," | "))]," ")},EnumTypeDefinition:{leave:({description:e,name:t,directives:n,values:r})=>eM("",e,"\n")+eV(["enum",t,eV(n," "),eU(r)]," ")},EnumValueDefinition:{leave:({description:e,name:t,directives:n})=>eM("",e,"\n")+eV([t,eV(n," ")]," ")},InputObjectTypeDefinition:{leave:({description:e,name:t,directives:n,fields:r})=>eM("",e,"\n")+eV(["input",t,eV(n," "),eU(r)]," ")},DirectiveDefinition:{leave:({description:e,name:t,arguments:n,repeatable:r,locations:i})=>eM("",e,"\n")+"directive @"+t+(eP(n)?eM("(\n",ej(eV(n,"\n")),"\n)"):eM("(",eV(n,", "),")"))+(r?" repeatable":"")+" on "+eV(i," | ")},SchemaExtension:{leave:({directives:e,operationTypes:t})=>eV(["extend schema",eV(e," "),eU(t)]," ")},ScalarTypeExtension:{leave:({name:e,directives:t})=>eV(["extend scalar",e,eV(t," ")]," ")},ObjectTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>eV(["extend type",e,eM("implements ",eV(t," & ")),eV(n," "),eU(r)]," ")},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>eV(["extend interface",e,eM("implements ",eV(t," & ")),eV(n," "),eU(r)]," ")},UnionTypeExtension:{leave:({name:e,directives:t,types:n})=>eV(["extend union",e,eV(t," "),eM("= ",eV(n," | "))]," ")},EnumTypeExtension:{leave:({name:e,directives:t,values:n})=>eV(["extend enum",e,eV(t," "),eU(n)]," ")},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:n})=>eV(["extend input",e,eV(t," "),eU(n)]," ")},TypeCoordinate:{leave:({name:e})=>e},MemberCoordinate:{leave:({name:e,memberName:t})=>eV([e,eM(".",t)])},ArgumentCoordinate:{leave:({name:e,fieldName:t,argumentName:n})=>eV([e,eM(".",t),eM("(",n,":)")])},DirectiveCoordinate:{leave:({name:e})=>eV(["@",e])},DirectiveArgumentCoordinate:{leave:({name:e,argumentName:t})=>eV(["@",e,eM("(",t,":)")])}};function eV(e,t=""){var n;return null!=(n=null==e?void 0:e.filter(e=>e).join(t))?n:""}function eU(e){return eM("{\n",ej(eV(e,"\n")),"\n}")}function eM(e,t,n=""){return null!=t&&""!==t?e+t+n:""}function ej(e){return eM(" ",e.replace(/\n/g,"\n "))}function eP(e){var t;return null!=(t=null==e?void 0:e.some(e=>e.includes("\n")))&&t}function eG(e,t){switch(e.kind){case p.NULL:return null;case p.INT:return parseInt(e.value,10);case p.FLOAT:return parseFloat(e.value);case p.STRING:case p.ENUM:case p.BOOLEAN:return e.value;case p.LIST:return e.values.map(e=>eG(e,t));case p.OBJECT:return eT(e.fields,e=>e.name.value,e=>eG(e.value,t));case p.VARIABLE:return null==t?void 0:t[e.name.value]}}function eB(e){if(null!=e||N(!1,"Must provide name."),"string"==typeof e||N(!1,"Expected name to be a string."),0===e.length)throw new w("Expected name to be a non-empty string.");for(let t=1;to(eG(e,t)),this.extensions=eD(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!=(i=e.extensionASTNodes)?i:[],null==e.specifiedByURL||"string"==typeof e.specifiedByURL||N(!1,`${this.name} must provide "specifiedByURL" as a string, but got: ${ei(e.specifiedByURL)}.`),null==e.serialize||"function"==typeof e.serialize||N(!1,`${this.name} must provide "serialize" function. If this custom Scalar is also used as an input type, ensure "parseValue" and "parseLiteral" functions are also provided.`),e.parseLiteral&&("function"==typeof e.parseValue&&"function"==typeof e.parseLiteral||N(!1,`${this.name} must provide both "parseValue" and "parseLiteral" functions.`))}get[Symbol.toStringTag](){return"GraphQLScalarType"}toConfig(){return{name:this.name,description:this.description,specifiedByURL:this.specifiedByURL,serialize:this.serialize,parseValue:this.parseValue,parseLiteral:this.parseLiteral,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}class tg{constructor(e){var t;this.name=eB(e.name),this.description=e.description,this.isTypeOf=e.isTypeOf,this.extensions=eD(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!=(t=e.extensionASTNodes)?t:[],this._fields=()=>tO(e),this._interfaces=()=>t_(e),null==e.isTypeOf||"function"==typeof e.isTypeOf||N(!1,`${this.name} must provide "isTypeOf" as a function, but got: ${ei(e.isTypeOf)}.`)}get[Symbol.toStringTag](){return"GraphQLObjectType"}getFields(){return"function"==typeof this._fields&&(this._fields=this._fields()),this._fields}getInterfaces(){return"function"==typeof this._interfaces&&(this._interfaces=this._interfaces()),this._interfaces}toConfig(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:tA(this.getFields()),isTypeOf:this.isTypeOf,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}function t_(e){var t;let n=tv(null!=(t=e.interfaces)?t:[]);return Array.isArray(n)||N(!1,`${e.name} interfaces must be an Array or a function which returns an Array.`),n}function tO(e){let t=tN(e.fields);return tD(t)||N(!1,`${e.name} fields must be an object with field names as keys or a function which returns such an object.`),ev(t,(t,n)=>{var r;tD(t)||N(!1,`${e.name}.${n} field config must be an object.`),null==t.resolve||"function"==typeof t.resolve||N(!1,`${e.name}.${n} field resolver must be a function if provided, but got: ${ei(t.resolve)}.`);let i=null!=(r=t.args)?r:{};return tD(i)||N(!1,`${e.name}.${n} args must be an object with argument names as keys.`),{name:eB(n),description:t.description,type:t.type,args:tb(i),resolve:t.resolve,subscribe:t.subscribe,deprecationReason:t.deprecationReason,extensions:eD(t.extensions),astNode:t.astNode}})}function tb(e){return Object.entries(e).map(([e,t])=>({name:eB(e),description:t.description,type:t.type,defaultValue:t.defaultValue,deprecationReason:t.deprecationReason,extensions:eD(t.extensions),astNode:t.astNode}))}function tD(e){return g(e)&&!Array.isArray(e)}function tA(e){return ev(e,e=>({description:e.description,type:e.type,args:tS(e.args),resolve:e.resolve,subscribe:e.subscribe,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode}))}function tS(e){return eT(e,e=>e.name,e=>({description:e.description,type:e.type,defaultValue:e.defaultValue,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode}))}function tw(e){return e8(e.type)&&void 0===e.defaultValue}class tR{constructor(e){var t;this.name=eB(e.name),this.description=e.description,this.resolveType=e.resolveType,this.extensions=eD(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!=(t=e.extensionASTNodes)?t:[],this._fields=tO.bind(void 0,e),this._interfaces=t_.bind(void 0,e),null==e.resolveType||"function"==typeof e.resolveType||N(!1,`${this.name} must provide "resolveType" as a function, but got: ${ei(e.resolveType)}.`)}get[Symbol.toStringTag](){return"GraphQLInterfaceType"}getFields(){return"function"==typeof this._fields&&(this._fields=this._fields()),this._fields}getInterfaces(){return"function"==typeof this._interfaces&&(this._interfaces=this._interfaces()),this._interfaces}toConfig(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:tA(this.getFields()),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}class tk{constructor(e){var t;this.name=eB(e.name),this.description=e.description,this.resolveType=e.resolveType,this.extensions=eD(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!=(t=e.extensionASTNodes)?t:[],this._types=tL.bind(void 0,e),null==e.resolveType||"function"==typeof e.resolveType||N(!1,`${this.name} must provide "resolveType" as a function, but got: ${ei(e.resolveType)}.`)}get[Symbol.toStringTag](){return"GraphQLUnionType"}getTypes(){return"function"==typeof this._types&&(this._types=this._types()),this._types}toConfig(){return{name:this.name,description:this.description,types:this.getTypes(),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}function tL(e){let t=tv(e.types);return Array.isArray(t)||N(!1,`Must provide Array of types or a function which returns such an array for Union ${e.name}.`),t}class t${constructor(e){var t;this.name=eB(e.name),this.description=e.description,this.extensions=eD(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!=(t=e.extensionASTNodes)?t:[],this._values="function"==typeof e.values?e.values:tF(this.name,e.values),this._valueLookup=null,this._nameLookup=null}get[Symbol.toStringTag](){return"GraphQLEnumType"}getValues(){return"function"==typeof this._values&&(this._values=tF(this.name,this._values())),this._values}getValue(e){return null===this._nameLookup&&(this._nameLookup=eE(this.getValues(),e=>e.name)),this._nameLookup[e]}serialize(e){null===this._valueLookup&&(this._valueLookup=new Map(this.getValues().map(e=>[e.value,e])));let t=this._valueLookup.get(e);if(void 0===t)throw new w(`Enum "${this.name}" cannot represent value: ${ei(e)}`);return t.name}parseValue(e){if("string"!=typeof e){let t=ei(e);throw new w(`Enum "${this.name}" cannot represent non-string value: ${t}.`+tx(this,t))}let t=this.getValue(e);if(null==t)throw new w(`Value "${e}" does not exist in "${this.name}" enum.`+tx(this,e));return t.value}parseLiteral(e,t){if(e.kind!==p.ENUM){let t=eF(e);throw new w(`Enum "${this.name}" cannot represent non-enum value: ${t}.`+tx(this,t),{nodes:e})}let n=this.getValue(e.value);if(null==n){let t=eF(e);throw new w(`Value "${t}" does not exist in "${this.name}" enum.`+tx(this,t),{nodes:e})}return n.value}toConfig(){let e=eT(this.getValues(),e=>e.name,e=>({description:e.description,value:e.value,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode}));return{name:this.name,description:this.description,values:e,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}function tx(e,t){return em("the enum value",e_(t,e.getValues().map(e=>e.name)))}function tF(e,t){return tD(t)||N(!1,`${e} values must be an object with value names as keys.`),Object.entries(t).map(([t,n])=>(tD(n)||N(!1,`${e}.${t} must refer to an object with a "value" key representing an internal value but got: ${ei(n)}.`),{name:eY(t),description:n.description,value:void 0!==n.value?n.value:t,deprecationReason:n.deprecationReason,extensions:eD(n.extensions),astNode:n.astNode}))}class tC{constructor(e){var t,n;this.name=eB(e.name),this.description=e.description,this.extensions=eD(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!=(t=e.extensionASTNodes)?t:[],this.isOneOf=null!=(n=e.isOneOf)&&n,this._fields=tV.bind(void 0,e)}get[Symbol.toStringTag](){return"GraphQLInputObjectType"}getFields(){return"function"==typeof this._fields&&(this._fields=this._fields()),this._fields}toConfig(){let e=ev(this.getFields(),e=>({description:e.description,type:e.type,defaultValue:e.defaultValue,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode}));return{name:this.name,description:this.description,fields:e,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes,isOneOf:this.isOneOf}}toString(){return this.name}toJSON(){return this.toString()}}function tV(e){let t=tN(e.fields);return tD(t)||N(!1,`${e.name} fields must be an object with field names as keys or a function which returns such an object.`),ev(t,(t,n)=>("resolve"in t&&N(!1,`${e.name}.${n} field has a resolve property, but Input Types cannot define resolvers.`),{name:eB(n),description:t.description,type:t.type,defaultValue:t.defaultValue,deprecationReason:t.deprecationReason,extensions:eD(t.extensions),astNode:t.astNode}))}function tU(e){return e8(e.type)&&void 0===e.defaultValue}function tM(e,t){return e===t||!!(e8(e)&&e8(t)||e9(e)&&e9(t))&&tM(e.ofType,t.ofType)}function tj(e,t,n){return t===n||(e8(n)?!!e8(t)&&tj(e,t.ofType,n.ofType):e8(t)?tj(e,t.ofType,n):e9(n)?!!e9(t)&&tj(e,t.ofType,n.ofType):!e9(t)&&ts(n)&&(eH(t)||eX(t))&&e.isSubType(n,t))}function tP(e,t,n){return t===n||(ts(t)?ts(n)?e.getPossibleTypes(t).some(t=>e.isSubType(n,t)):e.isSubType(t,n):!!ts(n)&&e.isSubType(n,t))}let tG=0x7fffffff,tB=-0x80000000,tY=new tI({name:"Int",description:"The `Int` scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.",serialize(e){let t=tH(e);if("boolean"==typeof t)return+!!t;let n=t;if("string"==typeof t&&""!==t&&(n=Number(t)),"number"!=typeof n||!Number.isInteger(n))throw new w(`Int cannot represent non-integer value: ${ei(t)}`);if(n>tG||ntG||etG||te.name===t)}function tH(e){if(g(e)){if("function"==typeof e.valueOf){let t=e.valueOf();if(!g(t))return t}if("function"==typeof e.toJSON)return e.toJSON()}return e}function tW(e){return eo(e,t0)}function tZ(e){if(!tW(e))throw Error(`Expected ${ei(e)} to be a GraphQL directive.`);return e}class t0{constructor(e){var t,n;this.name=eB(e.name),this.description=e.description,this.locations=e.locations,this.isRepeatable=null!=(t=e.isRepeatable)&&t,this.extensions=eD(e.extensions),this.astNode=e.astNode,Array.isArray(e.locations)||N(!1,`@${e.name} locations must be an Array.`);const r=null!=(n=e.args)?n:{};g(r)&&!Array.isArray(r)||N(!1,`@${e.name} args must be an object with argument names as keys.`),this.args=tb(r)}get[Symbol.toStringTag](){return"GraphQLDirective"}toConfig(){return{name:this.name,description:this.description,locations:this.locations,args:tS(this.args),isRepeatable:this.isRepeatable,extensions:this.extensions,astNode:this.astNode}}toString(){return"@"+this.name}toJSON(){return this.toString()}}let t1=new t0({name:"include",description:"Directs the executor to include this field or fragment only when the `if` argument is true.",locations:[c.FIELD,c.FRAGMENT_SPREAD,c.INLINE_FRAGMENT],args:{if:{type:new tc(tJ),description:"Included when true."}}}),t2=new t0({name:"skip",description:"Directs the executor to skip this field or fragment when the `if` argument is true.",locations:[c.FIELD,c.FRAGMENT_SPREAD,c.INLINE_FRAGMENT],args:{if:{type:new tc(tJ),description:"Skipped when true."}}}),t3="No longer supported",t4=new t0({name:"deprecated",description:"Marks an element of a GraphQL schema as no longer supported.",locations:[c.FIELD_DEFINITION,c.ARGUMENT_DEFINITION,c.INPUT_FIELD_DEFINITION,c.ENUM_VALUE],args:{reason:{type:tq,description:"Explains why this element was deprecated, usually also including a suggestion for how to access supported similar data. Formatted using the Markdown syntax, as specified by [CommonMark](https://commonmark.org/).",defaultValue:t3}}}),t9=new t0({name:"specifiedBy",description:"Exposes a URL that specifies the behavior of this scalar.",locations:[c.SCALAR],args:{url:{type:new tc(tq),description:"The URL that specifies the behavior of this scalar."}}}),t5=new t0({name:"oneOf",description:"Indicates exactly one field must be supplied and this field must not be `null`.",locations:[c.INPUT_OBJECT],args:{}}),t8=Object.freeze([t1,t2,t4,t9,t5]);function t6(e){return t8.some(({name:t})=>t===e.name)}function t7(e){return"object"==typeof e&&"function"==typeof(null==e?void 0:e[Symbol.iterator])}function ne(e,t){if(e8(t)){let n=ne(e,t.ofType);return(null==n?void 0:n.kind)===p.NULL?null:n}if(null===e)return{kind:p.NULL};if(void 0===e)return null;if(e9(t)){let n=t.ofType;if(t7(e)){let t=[];for(let r of e){let e=ne(r,n);null!=e&&t.push(e)}return{kind:p.LIST,values:t}}return ne(e,n)}if(e3(t)){if(!g(e))return null;let n=[];for(let r of Object.values(t.getFields())){let t=ne(e[r.name],r.type);t&&n.push({kind:p.OBJECT_FIELD,name:{kind:p.NAME,value:r.name},value:t})}return{kind:p.OBJECT,fields:n}}if(tr(t)){let n=t.serialize(e);if(null==n)return null;if("boolean"==typeof n)return{kind:p.BOOLEAN,value:n};if("number"==typeof n&&Number.isFinite(n)){let e=String(n);return nt.test(e)?{kind:p.INT,value:e}:{kind:p.FLOAT,value:e}}if("string"==typeof n)return e1(t)?{kind:p.ENUM,value:n}:t===tK&&nt.test(n)?{kind:p.INT,value:n}:{kind:p.STRING,value:n};throw TypeError(`Cannot convert value to AST: ${ei(n)}.`)}_(!1,"Unexpected input type: "+ei(t))}let nt=/^-?(?:0|[1-9][0-9]*)$/,nn=new tg({name:"__Schema",description:"A GraphQL Schema defines the capabilities of a GraphQL server. It exposes all available types and directives on the server, as well as the entry points for query, mutation, and subscription operations.",fields:()=>({description:{type:tq,resolve:e=>e.description},types:{description:"A list of all types supported by this server.",type:new tc(new tu(new tc(no))),resolve:e=>Object.values(e.getTypeMap())},queryType:{description:"The type that query operations will be rooted at.",type:new tc(no),resolve:e=>e.getQueryType()},mutationType:{description:"If this server supports mutation, the type that mutation operations will be rooted at.",type:no,resolve:e=>e.getMutationType()},subscriptionType:{description:"If this server support subscription, the type that subscription operations will be rooted at.",type:no,resolve:e=>e.getSubscriptionType()},directives:{description:"A list of all directives supported by this server.",type:new tc(new tu(new tc(nr))),resolve:e=>e.getDirectives()}})}),nr=new tg({name:"__Directive",description:"A Directive provides a way to describe alternate runtime execution and type validation behavior in a GraphQL document.\n\nIn some cases, you need to provide options to alter GraphQL's execution behavior in ways field arguments will not suffice, such as conditionally including or skipping a field. Directives provide this by describing additional information to the executor.",fields:()=>({name:{type:new tc(tq),resolve:e=>e.name},description:{type:tq,resolve:e=>e.description},isRepeatable:{type:new tc(tJ),resolve:e=>e.isRepeatable},locations:{type:new tc(new tu(new tc(ni))),resolve:e=>e.locations},args:{type:new tc(new tu(new tc(ns))),args:{includeDeprecated:{type:tJ,defaultValue:!1}},resolve:(e,{includeDeprecated:t})=>t?e.args:e.args.filter(e=>null==e.deprecationReason)}})}),ni=new t$({name:"__DirectiveLocation",description:"A Directive can be adjacent to many parts of the GraphQL language, a __DirectiveLocation describes one such possible adjacencies.",values:{QUERY:{value:c.QUERY,description:"Location adjacent to a query operation."},MUTATION:{value:c.MUTATION,description:"Location adjacent to a mutation operation."},SUBSCRIPTION:{value:c.SUBSCRIPTION,description:"Location adjacent to a subscription operation."},FIELD:{value:c.FIELD,description:"Location adjacent to a field."},FRAGMENT_DEFINITION:{value:c.FRAGMENT_DEFINITION,description:"Location adjacent to a fragment definition."},FRAGMENT_SPREAD:{value:c.FRAGMENT_SPREAD,description:"Location adjacent to a fragment spread."},INLINE_FRAGMENT:{value:c.INLINE_FRAGMENT,description:"Location adjacent to an inline fragment."},VARIABLE_DEFINITION:{value:c.VARIABLE_DEFINITION,description:"Location adjacent to a variable definition."},SCHEMA:{value:c.SCHEMA,description:"Location adjacent to a schema definition."},SCALAR:{value:c.SCALAR,description:"Location adjacent to a scalar definition."},OBJECT:{value:c.OBJECT,description:"Location adjacent to an object type definition."},FIELD_DEFINITION:{value:c.FIELD_DEFINITION,description:"Location adjacent to a field definition."},ARGUMENT_DEFINITION:{value:c.ARGUMENT_DEFINITION,description:"Location adjacent to an argument definition."},INTERFACE:{value:c.INTERFACE,description:"Location adjacent to an interface definition."},UNION:{value:c.UNION,description:"Location adjacent to a union definition."},ENUM:{value:c.ENUM,description:"Location adjacent to an enum definition."},ENUM_VALUE:{value:c.ENUM_VALUE,description:"Location adjacent to an enum value definition."},INPUT_OBJECT:{value:c.INPUT_OBJECT,description:"Location adjacent to an input object type definition."},INPUT_FIELD_DEFINITION:{value:c.INPUT_FIELD_DEFINITION,description:"Location adjacent to an input object field definition."}}}),no=new tg({name:"__Type",description:"The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum.\n\nDepending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name, description and optional `specifiedByURL`, while Enum types provide their values. Object and Interface types provide the fields they describe. Abstract types, Union and Interface, provide the Object types possible at runtime. List and NonNull types compose other types.",fields:()=>({kind:{type:new tc(nu),resolve:e=>eJ(e)?f.SCALAR:eX(e)?f.OBJECT:eH(e)?f.INTERFACE:eZ(e)?f.UNION:e1(e)?f.ENUM:e3(e)?f.INPUT_OBJECT:e9(e)?f.LIST:e8(e)?f.NON_NULL:void _(!1,`Unexpected type: "${ei(e)}".`)},name:{type:tq,resolve:e=>"name"in e?e.name:void 0},description:{type:tq,resolve:e=>"description"in e?e.description:void 0},specifiedByURL:{type:tq,resolve:e=>"specifiedByURL"in e?e.specifiedByURL:void 0},fields:{type:new tu(new tc(na)),args:{includeDeprecated:{type:tJ,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if(eX(e)||eH(e)){let n=Object.values(e.getFields());return t?n:n.filter(e=>null==e.deprecationReason)}}},interfaces:{type:new tu(new tc(no)),resolve(e){if(eX(e)||eH(e))return e.getInterfaces()}},possibleTypes:{type:new tu(new tc(no)),resolve(e,t,n,{schema:r}){if(ts(e))return r.getPossibleTypes(e)}},enumValues:{type:new tu(new tc(nl)),args:{includeDeprecated:{type:tJ,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if(e1(e)){let n=e.getValues();return t?n:n.filter(e=>null==e.deprecationReason)}}},inputFields:{type:new tu(new tc(ns)),args:{includeDeprecated:{type:tJ,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if(e3(e)){let n=Object.values(e.getFields());return t?n:n.filter(e=>null==e.deprecationReason)}}},ofType:{type:no,resolve:e=>"ofType"in e?e.ofType:void 0},isOneOf:{type:tJ,resolve:e=>{if(e3(e))return e.isOneOf}}})}),na=new tg({name:"__Field",description:"Object and Interface types are described by a list of Fields, each of which has a name, potentially a list of arguments, and a return type.",fields:()=>({name:{type:new tc(tq),resolve:e=>e.name},description:{type:tq,resolve:e=>e.description},args:{type:new tc(new tu(new tc(ns))),args:{includeDeprecated:{type:tJ,defaultValue:!1}},resolve:(e,{includeDeprecated:t})=>t?e.args:e.args.filter(e=>null==e.deprecationReason)},type:{type:new tc(no),resolve:e=>e.type},isDeprecated:{type:new tc(tJ),resolve:e=>null!=e.deprecationReason},deprecationReason:{type:tq,resolve:e=>e.deprecationReason}})}),ns=new tg({name:"__InputValue",description:"Arguments provided to Fields or Directives and the input fields of an InputObject are represented as Input Values which describe their type and optionally a default value.",fields:()=>({name:{type:new tc(tq),resolve:e=>e.name},description:{type:tq,resolve:e=>e.description},type:{type:new tc(no),resolve:e=>e.type},defaultValue:{type:tq,description:"A GraphQL-formatted string representing the default value for this input value.",resolve(e){let{type:t,defaultValue:n}=e,r=ne(n,t);return r?eF(r):null}},isDeprecated:{type:new tc(tJ),resolve:e=>null!=e.deprecationReason},deprecationReason:{type:tq,resolve:e=>e.deprecationReason}})}),nl=new tg({name:"__EnumValue",description:"One possible value for a given Enum. Enum values are unique values, not a placeholder for a string or numeric value. However an Enum value is returned in a JSON response as a string.",fields:()=>({name:{type:new tc(tq),resolve:e=>e.name},description:{type:tq,resolve:e=>e.description},isDeprecated:{type:new tc(tJ),resolve:e=>null!=e.deprecationReason},deprecationReason:{type:tq,resolve:e=>e.deprecationReason}})});(o=f||(f={})).SCALAR="SCALAR",o.OBJECT="OBJECT",o.INTERFACE="INTERFACE",o.UNION="UNION",o.ENUM="ENUM",o.INPUT_OBJECT="INPUT_OBJECT",o.LIST="LIST",o.NON_NULL="NON_NULL";let nu=new t$({name:"__TypeKind",description:"An enum describing what kind of type a given `__Type` is.",values:{SCALAR:{value:f.SCALAR,description:"Indicates this type is a scalar."},OBJECT:{value:f.OBJECT,description:"Indicates this type is an object. `fields` and `interfaces` are valid fields."},INTERFACE:{value:f.INTERFACE,description:"Indicates this type is an interface. `fields`, `interfaces`, and `possibleTypes` are valid fields."},UNION:{value:f.UNION,description:"Indicates this type is a union. `possibleTypes` is a valid field."},ENUM:{value:f.ENUM,description:"Indicates this type is an enum. `enumValues` is a valid field."},INPUT_OBJECT:{value:f.INPUT_OBJECT,description:"Indicates this type is an input object. `inputFields` is a valid field."},LIST:{value:f.LIST,description:"Indicates this type is a list. `ofType` is a valid field."},NON_NULL:{value:f.NON_NULL,description:"Indicates this type is a non-null. `ofType` is a valid field."}}}),nc={name:"__schema",type:new tc(nn),description:"Access the current type schema of this server.",args:[],resolve:(e,t,n,{schema:r})=>r,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0},np={name:"__type",type:no,description:"Request the type information of a single type.",args:[{name:"name",description:void 0,type:new tc(tq),defaultValue:void 0,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0}],resolve:(e,{name:t},n,{schema:r})=>r.getType(t),deprecationReason:void 0,extensions:Object.create(null),astNode:void 0},nd={name:"__typename",type:new tc(tq),description:"The name of the current Object type at runtime.",args:[],resolve:(e,t,n,{parentType:r})=>r.name,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0},nf=Object.freeze([nn,nr,ni,no,na,ns,nl,nu]);function nh(e){return nf.some(({name:t})=>e.name===t)}function nm(e){return eo(e,nE)}function ny(e){if(!nm(e))throw Error(`Expected ${ei(e)} to be a GraphQL schema.`);return e}class nE{constructor(e){var t,n;this.__validationErrors=!0===e.assumeValid?[]:void 0,g(e)||N(!1,"Must provide configuration object."),!e.types||Array.isArray(e.types)||N(!1,`"types" must be Array if provided but got: ${ei(e.types)}.`),!e.directives||Array.isArray(e.directives)||N(!1,`"directives" must be Array if provided but got: ${ei(e.directives)}.`),this.description=e.description,this.extensions=eD(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!=(t=e.extensionASTNodes)?t:[],this._queryType=e.query,this._mutationType=e.mutation,this._subscriptionType=e.subscription,this._directives=null!=(n=e.directives)?n:t8;const r=new Set(e.types);if(null!=e.types)for(const t of e.types)r.delete(t),nT(t,r);for(const e of(null!=this._queryType&&nT(this._queryType,r),null!=this._mutationType&&nT(this._mutationType,r),null!=this._subscriptionType&&nT(this._subscriptionType,r),this._directives))if(tW(e))for(const t of e.args)nT(t.type,r);for(const e of(nT(nn,r),this._typeMap=Object.create(null),this._subTypeMap=Object.create(null),this._implementationsMap=Object.create(null),r)){if(null==e)continue;const t=e.name;if(t||N(!1,"One of the provided types for building the Schema is missing a name."),void 0!==this._typeMap[t])throw Error(`Schema must contain uniquely named types but contains multiple types named "${t}".`);if(this._typeMap[t]=e,eH(e)){for(const t of e.getInterfaces())if(eH(t)){let n=this._implementationsMap[t.name];void 0===n&&(n=this._implementationsMap[t.name]={objects:[],interfaces:[]}),n.interfaces.push(e)}}else if(eX(e)){for(const t of e.getInterfaces())if(eH(t)){let n=this._implementationsMap[t.name];void 0===n&&(n=this._implementationsMap[t.name]={objects:[],interfaces:[]}),n.objects.push(e)}}}}get[Symbol.toStringTag](){return"GraphQLSchema"}getQueryType(){return this._queryType}getMutationType(){return this._mutationType}getSubscriptionType(){return this._subscriptionType}getRootType(e){switch(e){case u.QUERY:return this.getQueryType();case u.MUTATION:return this.getMutationType();case u.SUBSCRIPTION:return this.getSubscriptionType()}}getTypeMap(){return this._typeMap}getType(e){return this.getTypeMap()[e]}getPossibleTypes(e){return eZ(e)?e.getTypes():this.getImplementations(e).objects}getImplementations(e){let t=this._implementationsMap[e.name];return null!=t?t:{objects:[],interfaces:[]}}isSubType(e,t){let n=this._subTypeMap[e.name];if(void 0===n){if(n=Object.create(null),eZ(e))for(let t of e.getTypes())n[t.name]=!0;else{let t=this.getImplementations(e);for(let e of t.objects)n[e.name]=!0;for(let e of t.interfaces)n[e.name]=!0}this._subTypeMap[e.name]=n}return void 0!==n[t.name]}getDirectives(){return this._directives}getDirective(e){return this.getDirectives().find(t=>t.name===e)}toConfig(){return{description:this.description,query:this.getQueryType(),mutation:this.getMutationType(),subscription:this.getSubscriptionType(),types:Object.values(this.getTypeMap()),directives:this.getDirectives(),extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes,assumeValid:void 0!==this.__validationErrors}}}function nT(e,t){let n=tT(e);if(!t.has(n)){if(t.add(n),eZ(n))for(let e of n.getTypes())nT(e,t);else if(eX(n)||eH(n)){for(let e of n.getInterfaces())nT(e,t);for(let e of Object.values(n.getFields()))for(let n of(nT(e.type,t),e.args))nT(n.type,t)}else if(e3(n))for(let e of Object.values(n.getFields()))nT(e.type,t)}return t}function nv(e){var t,n,r,i;let o,a,s,l;if(ny(e),e.__validationErrors)return e.__validationErrors;let c=new nI(e);(a=(o=(t=c).schema).getQueryType())?eX(a)||t.reportError(`Query root type must be Object type, it cannot be ${ei(a)}.`,null!=(n=ng(o,u.QUERY))?n:a.astNode):t.reportError("Query root type must be provided.",o.astNode),(s=o.getMutationType())&&!eX(s)&&t.reportError(`Mutation root type must be Object type if provided, it cannot be ${ei(s)}.`,null!=(r=ng(o,u.MUTATION))?r:s.astNode),(l=o.getSubscriptionType())&&!eX(l)&&t.reportError(`Subscription root type must be Object type if provided, it cannot be ${ei(l)}.`,null!=(i=ng(o,u.SUBSCRIPTION))?i:l.astNode),function(e){for(let n of e.schema.getDirectives()){if(!tW(n)){e.reportError(`Expected directive but got: ${ei(n)}.`,null==n?void 0:n.astNode);continue}for(let r of(n_(e,n),0===n.locations.length&&e.reportError(`Directive @${n.name} must include 1 or more locations.`,n.astNode),n.args))if(n_(e,r),e7(r.type)||e.reportError(`The type of @${n.name}(${r.name}:) must be Input Type but got: ${ei(r.type)}.`,r.astNode),tw(r)&&null!=r.deprecationReason){var t;e.reportError(`Required argument @${n.name}(${r.name}:) cannot be deprecated.`,[nD(r.astNode),null==(t=r.astNode)?void 0:t.type])}}}(c),function(e){var t;let n,r,i,o=(t=e,n=Object.create(null),r=[],i=Object.create(null),function e(o){if(!n[o.name]){for(let a of(n[o.name]=!0,i[o.name]=r.length,Object.values(o.getFields())))if(e8(a.type)&&e3(a.type.ofType)){let n=a.type.ofType,o=i[n.name];if(r.push(a),void 0===o)e(n);else{let e=r.slice(o),i=e.map(e=>e.name).join(".");t.reportError(`Cannot reference Input Object "${n.name}" within itself through a series of non-null fields: "${i}".`,e.map(e=>e.astNode))}r.pop()}i[o.name]=void 0}});for(let t of Object.values(e.schema.getTypeMap())){if(!ty(t)){e.reportError(`Expected GraphQL named type but got: ${ei(t)}.`,t.astNode);continue}nh(t)||n_(e,t),eX(t)||eH(t)?(function(e,t){let n=Object.values(t.getFields());for(let a of(0===n.length&&e.reportError(`Type ${t.name} must define one or more fields.`,[t.astNode,...t.extensionASTNodes]),n)){var r,i,o;for(let n of(n_(e,a),tt(a.type)||e.reportError(`The type of ${t.name}.${a.name} must be Output Type but got: ${ei(a.type)}.`,null==(r=a.astNode)?void 0:r.type),a.args)){let r=n.name;n_(e,n),e7(n.type)||e.reportError(`The type of ${t.name}.${a.name}(${r}:) must be Input Type but got: ${ei(n.type)}.`,null==(i=n.astNode)?void 0:i.type),tw(n)&&null!=n.deprecationReason&&e.reportError(`Required argument ${t.name}.${a.name}(${r}:) cannot be deprecated.`,[nD(n.astNode),null==(o=n.astNode)?void 0:o.type])}}}(e,t),function(e,t){let n=Object.create(null);for(let r of t.getInterfaces()){if(!eH(r)){e.reportError(`Type ${ei(t)} must only implement Interface types, it cannot implement ${ei(r)}.`,nO(t,r));continue}if(t===r){e.reportError(`Type ${t.name} cannot implement itself because it would create a circular reference.`,nO(t,r));continue}if(n[r.name]){e.reportError(`Type ${t.name} can only implement ${r.name} once.`,nO(t,r));continue}n[r.name]=!0,function(e,t,n){let r=t.getInterfaces();for(let i of n.getInterfaces())r.includes(i)||e.reportError(i===t?`Type ${t.name} cannot implement ${n.name} because it would create a circular reference.`:`Type ${t.name} must implement ${i.name} because it is implemented by ${n.name}.`,[...nO(n,i),...nO(t,n)])}(e,t,r),function(e,t,n){let r=t.getFields();for(let l of Object.values(n.getFields())){var i,o,a,s;let u=l.name,c=r[u];if(!c){e.reportError(`Interface field ${n.name}.${u} expected but ${t.name} does not provide it.`,[l.astNode,t.astNode,...t.extensionASTNodes]);continue}for(let r of(tj(e.schema,c.type,l.type)||e.reportError(`Interface field ${n.name}.${u} expects type ${ei(l.type)} but ${t.name}.${u} is type ${ei(c.type)}.`,[null==(i=l.astNode)?void 0:i.type,null==(o=c.astNode)?void 0:o.type]),l.args)){let i=r.name,o=c.args.find(e=>e.name===i);if(!o){e.reportError(`Interface field argument ${n.name}.${u}(${i}:) expected but ${t.name}.${u} does not provide it.`,[r.astNode,c.astNode]);continue}tM(r.type,o.type)||e.reportError(`Interface field argument ${n.name}.${u}(${i}:) expects type ${ei(r.type)} but ${t.name}.${u}(${i}:) is type ${ei(o.type)}.`,[null==(a=r.astNode)?void 0:a.type,null==(s=o.astNode)?void 0:s.type])}for(let r of c.args){let i=r.name;!l.args.find(e=>e.name===i)&&tw(r)&&e.reportError(`Object field ${t.name}.${u} includes required argument ${i} that is missing from the Interface field ${n.name}.${u}.`,[r.astNode,l.astNode])}}}(e,t,r)}}(e,t)):eZ(t)?function(e,t){let n=t.getTypes();0===n.length&&e.reportError(`Union type ${t.name} must define one or more member types.`,[t.astNode,...t.extensionASTNodes]);let r=Object.create(null);for(let i of n){if(r[i.name]){e.reportError(`Union type ${t.name} can only include type ${i.name} once.`,nb(t,i.name));continue}r[i.name]=!0,eX(i)||e.reportError(`Union type ${t.name} can only include Object types, it cannot include ${ei(i)}.`,nb(t,String(i)))}}(e,t):e1(t)?function(e,t){let n=t.getValues();for(let r of(0===n.length&&e.reportError(`Enum type ${t.name} must define one or more values.`,[t.astNode,...t.extensionASTNodes]),n))n_(e,r)}(e,t):e3(t)&&(function(e,t){let n=Object.values(t.getFields());for(let o of(0===n.length&&e.reportError(`Input Object type ${t.name} must define one or more fields.`,[t.astNode,...t.extensionASTNodes]),n)){var r,i;n_(e,o),e7(o.type)||e.reportError(`The type of ${t.name}.${o.name} must be Input Type but got: ${ei(o.type)}.`,null==(r=o.astNode)?void 0:r.type),tU(o)&&null!=o.deprecationReason&&e.reportError(`Required input field ${t.name}.${o.name} cannot be deprecated.`,[nD(o.astNode),null==(i=o.astNode)?void 0:i.type]),t.isOneOf&&function(e,t,n){if(e8(t.type)){var r;n.reportError(`OneOf input field ${e.name}.${t.name} must be nullable.`,null==(r=t.astNode)?void 0:r.type)}void 0!==t.defaultValue&&n.reportError(`OneOf input field ${e.name}.${t.name} cannot have a default value.`,t.astNode)}(t,o,e)}}(e,t),o(t))}}(c);let p=c.getErrors();return e.__validationErrors=p,p}function nN(e){let t=nv(e);if(0!==t.length)throw Error(t.map(e=>e.message).join("\n\n"))}class nI{constructor(e){this._errors=[],this.schema=e}reportError(e,t){let n=Array.isArray(t)?t.filter(Boolean):t;this._errors.push(new w(e,{nodes:n}))}getErrors(){return this._errors}}function ng(e,t){var n;return null==(n=[e.astNode,...e.extensionASTNodes].flatMap(e=>{var t;return null!=(t=null==e?void 0:e.operationTypes)?t:[]}).find(e=>e.operation===t))?void 0:n.type}function n_(e,t){t.name.startsWith("__")&&e.reportError(`Name "${t.name}" must not begin with "__", which is reserved by GraphQL introspection.`,t.astNode)}function nO(e,t){let{astNode:n,extensionASTNodes:r}=e;return(null!=n?[n,...r]:r).flatMap(e=>{var t;return null!=(t=e.interfaces)?t:[]}).filter(e=>e.name.value===t.name)}function nb(e,t){let{astNode:n,extensionASTNodes:r}=e;return(null!=n?[n,...r]:r).flatMap(e=>{var t;return null!=(t=e.types)?t:[]}).filter(e=>e.name.value===t)}function nD(e){var t;return null==e||null==(t=e.directives)?void 0:t.find(e=>e.name.value===t4.name)}function nA(e,t){switch(t.kind){case p.LIST_TYPE:{let n=nA(e,t.type);return n&&new tu(n)}case p.NON_NULL_TYPE:{let n=nA(e,t.type);return n&&new tc(n)}case p.NAMED_TYPE:return e.getType(t.name.value)}}class nS{constructor(e,t,n){this._schema=e,this._typeStack=[],this._parentTypeStack=[],this._inputTypeStack=[],this._fieldDefStack=[],this._defaultValueStack=[],this._directive=null,this._argument=null,this._enumValue=null,this._getFieldDef=null!=n?n:nw,t&&(e7(t)&&this._inputTypeStack.push(t),to(t)&&this._parentTypeStack.push(t),tt(t)&&this._typeStack.push(t))}get[Symbol.toStringTag](){return"TypeInfo"}getType(){if(this._typeStack.length>0)return this._typeStack[this._typeStack.length-1]}getParentType(){if(this._parentTypeStack.length>0)return this._parentTypeStack[this._parentTypeStack.length-1]}getInputType(){if(this._inputTypeStack.length>0)return this._inputTypeStack[this._inputTypeStack.length-1]}getParentInputType(){if(this._inputTypeStack.length>1)return this._inputTypeStack[this._inputTypeStack.length-2]}getFieldDef(){if(this._fieldDefStack.length>0)return this._fieldDefStack[this._fieldDefStack.length-1]}getDefaultValue(){if(this._defaultValueStack.length>0)return this._defaultValueStack[this._defaultValueStack.length-1]}getDirective(){return this._directive}getArgument(){return this._argument}getEnumValue(){return this._enumValue}enter(e){let t=this._schema;switch(e.kind){case p.SELECTION_SET:{let e=tT(this.getType());this._parentTypeStack.push(to(e)?e:void 0);break}case p.FIELD:{let n,r,i=this.getParentType();i&&(n=this._getFieldDef(t,i,e))&&(r=n.type),this._fieldDefStack.push(n),this._typeStack.push(tt(r)?r:void 0);break}case p.DIRECTIVE:this._directive=t.getDirective(e.name.value);break;case p.OPERATION_DEFINITION:{let n=t.getRootType(e.operation);this._typeStack.push(eX(n)?n:void 0);break}case p.INLINE_FRAGMENT:case p.FRAGMENT_DEFINITION:{let n=e.typeCondition,r=n?nA(t,n):tT(this.getType());this._typeStack.push(tt(r)?r:void 0);break}case p.VARIABLE_DEFINITION:{let n=nA(t,e.type);this._inputTypeStack.push(e7(n)?n:void 0);break}case p.ARGUMENT:{var n;let t,r,i=null!=(n=this.getDirective())?n:this.getFieldDef();i&&(t=i.args.find(t=>t.name===e.name.value))&&(r=t.type),this._argument=t,this._defaultValueStack.push(t?t.defaultValue:void 0),this._inputTypeStack.push(e7(r)?r:void 0);break}case p.LIST:{let e=tm(this.getInputType()),t=e9(e)?e.ofType:e;this._defaultValueStack.push(void 0),this._inputTypeStack.push(e7(t)?t:void 0);break}case p.OBJECT_FIELD:{let t,n,r=tT(this.getInputType());e3(r)&&(n=r.getFields()[e.name.value])&&(t=n.type),this._defaultValueStack.push(n?n.defaultValue:void 0),this._inputTypeStack.push(e7(t)?t:void 0);break}case p.ENUM:{let t,n=tT(this.getInputType());e1(n)&&(t=n.getValue(e.value)),this._enumValue=t}}}leave(e){switch(e.kind){case p.SELECTION_SET:this._parentTypeStack.pop();break;case p.FIELD:this._fieldDefStack.pop(),this._typeStack.pop();break;case p.DIRECTIVE:this._directive=null;break;case p.OPERATION_DEFINITION:case p.INLINE_FRAGMENT:case p.FRAGMENT_DEFINITION:this._typeStack.pop();break;case p.VARIABLE_DEFINITION:this._inputTypeStack.pop();break;case p.ARGUMENT:this._argument=null,this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case p.LIST:case p.OBJECT_FIELD:this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case p.ENUM:this._enumValue=null}}}function nw(e,t,n){let r=n.name.value;return r===nc.name&&e.getQueryType()===t?nc:r===np.name&&e.getQueryType()===t?np:r===nd.name&&to(t)?nd:eX(t)||eH(t)?t.getFields()[r]:void 0}function nR(e,t){return{enter(...n){let r=n[0];e.enter(r);let i=e$(t,r.kind).enter;if(i){let o=i.apply(t,n);return void 0!==o&&(e.leave(r),U(o)&&e.enter(o)),o}},leave(...n){let r,i=n[0],o=e$(t,i.kind).leave;return o&&(r=o.apply(t,n)),e.leave(i),r}}}function nk(e){return nL(e)||nC(e)||nU(e)}function nL(e){return e.kind===p.OPERATION_DEFINITION||e.kind===p.FRAGMENT_DEFINITION}function n$(e){return e.kind===p.FIELD||e.kind===p.FRAGMENT_SPREAD||e.kind===p.INLINE_FRAGMENT}function nx(e){return e.kind===p.VARIABLE||e.kind===p.INT||e.kind===p.FLOAT||e.kind===p.STRING||e.kind===p.BOOLEAN||e.kind===p.NULL||e.kind===p.ENUM||e.kind===p.LIST||e.kind===p.OBJECT}function nF(e){return e.kind===p.NAMED_TYPE||e.kind===p.LIST_TYPE||e.kind===p.NON_NULL_TYPE}function nC(e){return e.kind===p.SCHEMA_DEFINITION||nV(e)||e.kind===p.DIRECTIVE_DEFINITION}function nV(e){return e.kind===p.SCALAR_TYPE_DEFINITION||e.kind===p.OBJECT_TYPE_DEFINITION||e.kind===p.INTERFACE_TYPE_DEFINITION||e.kind===p.UNION_TYPE_DEFINITION||e.kind===p.ENUM_TYPE_DEFINITION||e.kind===p.INPUT_OBJECT_TYPE_DEFINITION}function nU(e){return e.kind===p.SCHEMA_EXTENSION||nM(e)}function nM(e){return e.kind===p.SCALAR_TYPE_EXTENSION||e.kind===p.OBJECT_TYPE_EXTENSION||e.kind===p.INTERFACE_TYPE_EXTENSION||e.kind===p.UNION_TYPE_EXTENSION||e.kind===p.ENUM_TYPE_EXTENSION||e.kind===p.INPUT_OBJECT_TYPE_EXTENSION}function nj(e){return e.kind===p.TYPE_COORDINATE||e.kind===p.MEMBER_COORDINATE||e.kind===p.ARGUMENT_COORDINATE||e.kind===p.DIRECTIVE_COORDINATE||e.kind===p.DIRECTIVE_ARGUMENT_COORDINATE}function nP(e){return{Document(t){for(let n of t.definitions)if(!nL(n)){let t=n.kind===p.SCHEMA_DEFINITION||n.kind===p.SCHEMA_EXTENSION?"schema":'"'+n.name.value+'"';e.reportError(new w(`The ${t} definition is not executable.`,{nodes:n}))}return!1}}}function nG(e){return{Field(t){let n=e.getParentType();if(n&&!e.getFieldDef()){var r,i;let o=e.getSchema(),a=t.name.value,s=em("to use an inline fragment on",function(e,t,n){if(!ts(t))return[];let r=new Set,i=Object.create(null);for(let a of e.getPossibleTypes(t))if(a.getFields()[n])for(let e of(r.add(a),i[a.name]=1,a.getInterfaces())){var o;e.getFields()[n]&&(r.add(e),i[e.name]=(null!=(o=i[e.name])?o:0)+1)}return[...r].sort((t,n)=>{let r=i[n.name]-i[t.name];return 0!==r?r:eH(t)&&e.isSubType(t,n)?-1:eH(n)&&e.isSubType(n,t)?1:eN(t.name,n.name)}).map(e=>e.name)}(o,n,a));""===s&&(s=em((r=n,i=a,eX(r)||eH(r)?e_(i,Object.keys(r.getFields())):[]))),e.reportError(new w(`Cannot query field "${a}" on type "${n.name}".`+s,{nodes:t}))}}}}function nB(e){return{InlineFragment(t){let n=t.typeCondition;if(n){let t=nA(e.getSchema(),n);if(t&&!to(t)){let t=eF(n);e.reportError(new w(`Fragment cannot condition on non composite type "${t}".`,{nodes:n}))}}},FragmentDefinition(t){let n=nA(e.getSchema(),t.typeCondition);if(n&&!to(n)){let n=eF(t.typeCondition);e.reportError(new w(`Fragment "${t.name.value}" cannot condition on non composite type "${n}".`,{nodes:t.typeCondition}))}}}}function nY(e){return{...nQ(e),Argument(t){let n=e.getArgument(),r=e.getFieldDef(),i=e.getParentType();if(!n&&r&&i){let n=t.name.value,o=e_(n,r.args.map(e=>e.name));e.reportError(new w(`Unknown argument "${n}" on field "${i.name}.${r.name}".`+em(o),{nodes:t}))}}}}function nQ(e){let t=Object.create(null),n=e.getSchema();for(let e of n?n.getDirectives():t8)t[e.name]=e.args.map(e=>e.name);for(let n of e.getDocument().definitions)if(n.kind===p.DIRECTIVE_DEFINITION){var r;let e=null!=(r=n.arguments)?r:[];t[n.name.value]=e.map(e=>e.name.value)}return{Directive(n){let r=n.name.value,i=t[r];if(n.arguments&&i)for(let t of n.arguments){let n=t.name.value;if(!i.includes(n)){let o=e_(n,i);e.reportError(new w(`Unknown argument "${n}" on directive "@${r}".`+em(o),{nodes:t}))}}return!1}}}function nq(e){let t=Object.create(null),n=e.getSchema();for(let e of n?n.getDirectives():t8)t[e.name]=e.locations;for(let n of e.getDocument().definitions)n.kind===p.DIRECTIVE_DEFINITION&&(t[n.name.value]=n.locations.map(e=>e.value));return{Directive(n,r,i,o,a){let s=n.name.value,l=t[s];if(!l)return void e.reportError(new w(`Unknown directive "@${s}".`,{nodes:n}));let d=function(e){let t=e[e.length-1];switch("kind"in t||_(!1),t.kind){case p.OPERATION_DEFINITION:var n=t.operation;switch(n){case u.QUERY:return c.QUERY;case u.MUTATION:return c.MUTATION;case u.SUBSCRIPTION:return c.SUBSCRIPTION}return;case p.FIELD:return c.FIELD;case p.FRAGMENT_SPREAD:return c.FRAGMENT_SPREAD;case p.INLINE_FRAGMENT:return c.INLINE_FRAGMENT;case p.FRAGMENT_DEFINITION:return c.FRAGMENT_DEFINITION;case p.VARIABLE_DEFINITION:return c.VARIABLE_DEFINITION;case p.SCHEMA_DEFINITION:case p.SCHEMA_EXTENSION:return c.SCHEMA;case p.SCALAR_TYPE_DEFINITION:case p.SCALAR_TYPE_EXTENSION:return c.SCALAR;case p.OBJECT_TYPE_DEFINITION:case p.OBJECT_TYPE_EXTENSION:return c.OBJECT;case p.FIELD_DEFINITION:return c.FIELD_DEFINITION;case p.INTERFACE_TYPE_DEFINITION:case p.INTERFACE_TYPE_EXTENSION:return c.INTERFACE;case p.UNION_TYPE_DEFINITION:case p.UNION_TYPE_EXTENSION:return c.UNION;case p.ENUM_TYPE_DEFINITION:case p.ENUM_TYPE_EXTENSION:return c.ENUM;case p.ENUM_VALUE_DEFINITION:return c.ENUM_VALUE;case p.INPUT_OBJECT_TYPE_DEFINITION:case p.INPUT_OBJECT_TYPE_EXTENSION:return c.INPUT_OBJECT;case p.INPUT_VALUE_DEFINITION:{let t=e[e.length-3];return"kind"in t||_(!1),t.kind===p.INPUT_OBJECT_TYPE_DEFINITION?c.INPUT_FIELD_DEFINITION:c.ARGUMENT_DEFINITION}default:_(!1,"Unexpected kind: "+ei(t.kind))}}(a);d&&!l.includes(d)&&e.reportError(new w(`Directive "@${s}" may not be used on ${d}.`,{nodes:n}))}}}function nJ(e){return{FragmentSpread(t){let n=t.name.value;e.getFragment(n)||e.reportError(new w(`Unknown fragment "${n}".`,{nodes:t.name}))}}}function nK(e){let t=e.getSchema(),n=t?t.getTypeMap():Object.create(null),r=Object.create(null);for(let t of e.getDocument().definitions)nV(t)&&(r[t.name.value]=!0);let i=[...Object.keys(n),...Object.keys(r)];return{NamedType(t,o,a,s,l){let u=t.name.value;if(!n[u]&&!r[u]){var c,p;let n=null!=(c=l[2])?c:a,r=null!=n&&"kind"in(p=n)&&(nC(p)||nU(p));if(r&&nX.includes(u))return;let o=e_(u,r?nX.concat(i):i);e.reportError(new w(`Unknown type "${u}".`+em(o),{nodes:t}))}}}}let nX=[...tX,...nf].map(e=>e.name);function nz(e){let t=0;return{Document(e){t=e.definitions.filter(e=>e.kind===p.OPERATION_DEFINITION).length},OperationDefinition(n){!n.name&&t>1&&e.reportError(new w("This anonymous operation must be the only defined operation.",{nodes:n}))}}}function nH(e){var t,n,r;let i=e.getSchema(),o=null!=(t=null!=(n=null!=(r=null==i?void 0:i.astNode)?r:null==i?void 0:i.getQueryType())?n:null==i?void 0:i.getMutationType())?t:null==i?void 0:i.getSubscriptionType(),a=0;return{SchemaDefinition(t){o?e.reportError(new w("Cannot define a new schema within a schema extension.",{nodes:t})):(a>0&&e.reportError(new w("Must provide only one schema definition.",{nodes:t})),++a)}}}function nW(e){return{Field(t){if(("__schema"===t.name.value||"__type"===t.name.value)&&function t(n,r=Object.create(null),i=0){if(n.kind===p.FRAGMENT_SPREAD){let o=n.name.value;if(!0===r[o])return!1;let a=e.getFragment(o);if(!a)return!1;try{return r[o]=!0,t(a,r,i)}finally{r[o]=void 0}}if(n.kind===p.FIELD&&("fields"===n.name.value||"interfaces"===n.name.value||"possibleTypes"===n.name.value||"inputFields"===n.name.value)&&++i>=3)return!0;if("selectionSet"in n&&n.selectionSet){for(let e of n.selectionSet.selections)if(t(e,r,i))return!0}return!1}(t))return e.reportError(new w("Maximum introspection depth exceeded",{nodes:[t]})),!1}}}function nZ(e){let t=Object.create(null),n=[],r=Object.create(null);return{OperationDefinition:()=>!1,FragmentDefinition:i=>((function i(o){if(t[o.name.value])return;let a=o.name.value;t[a]=!0;let s=e.getFragmentSpreads(o.selectionSet);if(0!==s.length){for(let t of(r[a]=n.length,s)){let o=t.name.value,a=r[o];if(n.push(t),void 0===a){let t=e.getFragment(o);t&&i(t)}else{let t=n.slice(a),r=t.slice(0,-1).map(e=>'"'+e.name.value+'"').join(", ");e.reportError(new w(`Cannot spread fragment "${o}" within itself`+(""!==r?` via ${r}.`:"."),{nodes:t}))}n.pop()}r[a]=void 0}})(i),!1)}}function n0(e){let t=Object.create(null);return{OperationDefinition:{enter(){t=Object.create(null)},leave(n){for(let{node:r}of e.getRecursiveVariableUsages(n)){let i=r.name.value;!0!==t[i]&&e.reportError(new w(n.name?`Variable "$${i}" is not defined by operation "${n.name.value}".`:`Variable "$${i}" is not defined.`,{nodes:[r,n]}))}}},VariableDefinition(e){t[e.variable.name.value]=!0}}}function n1(e){let t=[],n=[];return{OperationDefinition:e=>(t.push(e),!1),FragmentDefinition:e=>(n.push(e),!1),Document:{leave(){let r=Object.create(null);for(let n of t)for(let t of e.getRecursivelyReferencedFragments(n))r[t.name.value]=!0;for(let t of n){let n=t.name.value;!0!==r[n]&&e.reportError(new w(`Fragment "${n}" is never used.`,{nodes:t}))}}}}}function n2(e){let t=[];return{OperationDefinition:{enter(){t=[]},leave(n){let r=Object.create(null);for(let{node:t}of e.getRecursiveVariableUsages(n))r[t.name.value]=!0;for(let i of t){let t=i.variable.name.value;!0!==r[t]&&e.reportError(new w(n.name?`Variable "$${t}" is never used in operation "${n.name.value}".`:`Variable "$${t}" is never used.`,{nodes:i}))}}},VariableDefinition(e){t.push(e)}}}function n3(e){switch(e.kind){case p.OBJECT:return{...e,fields:e.fields.map(e=>({...e,value:n3(e.value)})).sort((e,t)=>eN(e.name.value,t.name.value))};case p.LIST:return{...e,values:e.values.map(n3)};case p.INT:case p.FLOAT:case p.STRING:case p.BOOLEAN:case p.NULL:case p.ENUM:case p.VARIABLE:return e}}function n4(e){let t=new rt,n=new rn,r=new Map;return{SelectionSet(i){for(let[[o,a],s,l]of function(e,t,n,r,i,o){let a=[],[s,l]=n7(e,t,i,o);if(function(e,t,n,r,i,o){for(let[a,s]of Object.entries(o))if(s.length>1)for(let o=0;o`subfields "${t}" conflict because `+e(n)).join(" and "):t}(a);e.reportError(new w(`Fields "${o}" conflict because ${t}. Use different aliases on the fields to fetch both if this was intentional.`,{nodes:s.concat(l)}))}}}}function n9(e,t,n,r,i,o,a,s){if(r.has(a,s,o))return;r.add(a,s,o);let l=e.getFragment(s);if(!l)return;let[u,c]=re(e,n,l);if(a!==u)for(let s of(n8(e,t,n,r,i,o,a,u),c))n9(e,t,n,r,i,o,a,s)}function n5(e,t,n,r,i,o,a,s){if(a===s||i.has(a,s,o))return;i.add(a,s,o);let l=e.getFragment(a),u=e.getFragment(s);if(!l||!u)return;let[c,p]=re(e,n,l),[d,f]=re(e,n,u);for(let s of(n8(e,t,n,r,i,o,c,d),f))n5(e,t,n,r,i,o,a,s);for(let a of p)n5(e,t,n,r,i,o,a,s)}function n8(e,t,n,r,i,o,a,s){for(let[l,u]of Object.entries(a)){let a=s[l];if(a)for(let s of u)for(let u of a){let a=n6(e,n,r,i,o,l,s,u);a&&t.push(a)}}}function n6(e,t,n,r,i,o,a,s){let[l,u,c]=a,[p,d,f]=s,h=i||l!==p&&eX(l)&&eX(p);if(!h){let e=u.name.value,t=d.name.value;if(e!==t)return[[o,`"${e}" and "${t}" are different fields`],[u],[d]];if(!function(e,t){let n=e.arguments,r=t.arguments;if(void 0===n||0===n.length)return void 0===r||0===r.length;if(void 0===r||0===r.length||n.length!==r.length)return!1;let i=new Map(r.map(({name:e,value:t})=>[e.value,t]));return n.every(e=>{let t=e.value,n=i.get(e.name.value);return void 0!==n&&function(e){return eF(n3(e))}(t)===function(e){return eF(n3(e))}(n)})}(u,d))return[[o,"they have differing arguments"],[u],[d]]}let m=null==c?void 0:c.type,y=null==f?void 0:f.type;if(m&&y&&function e(t,n){return e9(t)?!e9(n)||e(t.ofType,n.ofType):!!e9(n)||(e8(t)?!e8(n)||e(t.ofType,n.ofType):!!e8(n)||!!(tr(t)||tr(n))&&t!==n)}(m,y))return[[o,`they return conflicting types "${ei(m)}" and "${ei(y)}"`],[u],[d]];let E=u.selectionSet,T=d.selectionSet;if(E&&T){var v=function(e,t,n,r,i,o,a,s,l){let u=[],[c,p]=n7(e,t,o,a),[d,f]=n7(e,t,s,l);for(let o of(n8(e,u,t,n,r,i,c,d),f))n9(e,u,t,n,r,i,c,o);for(let o of p)n9(e,u,t,n,r,i,d,o);for(let o of p)for(let a of f)n5(e,u,t,n,r,i,o,a);return u}(e,t,n,r,h,tT(m),E,tT(y),T),N=o,I=u,g=d;return v.length>0?[[N,v.map(([e])=>e)],[I,...v.map(([,e])=>e).flat()],[g,...v.map(([,,e])=>e).flat()]]:void 0}}function n7(e,t,n,r){let i=t.get(r);if(i)return i;let o=Object.create(null),a=Object.create(null);!function e(t,n,r,i,o){for(let a of r.selections)switch(a.kind){case p.FIELD:{let e,t=a.name.value;(eX(n)||eH(n))&&(e=n.getFields()[t]);let r=a.alias?a.alias.value:t;i[r]||(i[r]=[]),i[r].push([n,a,e]);break}case p.FRAGMENT_SPREAD:o[a.name.value]=!0;break;case p.INLINE_FRAGMENT:{let r=a.typeCondition,s=r?nA(t.getSchema(),r):n;e(t,s,a.selectionSet,i,o)}}}(e,n,r,o,a);let s=[o,Object.keys(a)];return t.set(r,s),s}function re(e,t,n){let r=t.get(n.selectionSet);if(r)return r;let i=nA(e.getSchema(),n.typeCondition);return n7(e,t,i,n.selectionSet)}class rt{constructor(){this._data=new Map}has(e,t,n){var r;let i=null==(r=this._data.get(e))?void 0:r.get(t);return void 0!==i&&(!!n||n===i)}add(e,t,n){let r=this._data.get(e);void 0===r?this._data.set(e,new Map([[t,n]])):r.set(t,n)}}class rn{constructor(){this._orderedPairSet=new rt}has(e,t,n){return ee.name.value));for(let n of r.args)if(!i.has(n.name)&&tw(n)){let i=ei(n.type);e.reportError(new w(`Field "${r.name}" argument "${n.name}" of type "${i}" is required, but it was not provided.`,{nodes:t}))}}}}}function rs(e){var t,n;let r=Object.create(null),i=e.getSchema();for(let e of null!=(t=null==i?void 0:i.getDirectives())?t:t8)r[e.name]=eE(e.args.filter(tw),e=>e.name);for(let t of e.getDocument().definitions)if(t.kind===p.DIRECTIVE_DEFINITION){let e=null!=(n=t.arguments)?n:[];r[t.name.value]=eE(e.filter(rl),e=>e.name.value)}return{Directive:{leave(t){let n=t.name.value,i=r[n];if(i){var o;let r=new Set((null!=(o=t.arguments)?o:[]).map(e=>e.name.value));for(let[o,a]of Object.entries(i))if(!r.has(o)){let r=eQ(a.type)?ei(a.type):eF(a.type);e.reportError(new w(`Directive "@${n}" argument "${o}" of type "${r}" is required, but it was not provided.`,{nodes:t}))}}}}}}function rl(e){return e.type.kind===p.NON_NULL_TYPE&&null==e.defaultValue}function ru(e){return{Field(t){let n=e.getType(),r=t.selectionSet;if(n)if(tr(tT(n))){if(r){let i=t.name.value,o=ei(n);e.reportError(new w(`Field "${i}" must not have a selection since type "${o}" has no subfields.`,{nodes:r}))}}else if(r){if(0===r.selections.length){let r=t.name.value,i=ei(n);e.reportError(new w(`Field "${r}" of type "${i}" must have at least one field selected.`,{nodes:t}))}}else{let r=t.name.value,i=ei(n);e.reportError(new w(`Field "${r}" of type "${i}" must have a selection of subfields. Did you mean "${r} { ... }"?`,{nodes:t}))}}}}function rc(e){return e.map(e=>"number"==typeof e?"["+e.toString()+"]":"."+e).join("")}function rp(e,t,n){return{prev:e,key:t,typename:n}}function rd(e){let t=[],n=e;for(;n;)t.push(n.key),n=n.prev;return t.reverse()}function rf(e,t,n=rh){return function e(t,n,r,i){if(e8(n))return null!=t?e(t,n.ofType,r,i):void r(rd(i),t,new w(`Expected non-nullable type "${ei(n)}" not to be null.`));if(null==t)return null;if(e9(n)){let o=n.ofType;return t7(t)?Array.from(t,(t,n)=>e(t,o,r,rp(i,n,void 0))):[e(t,o,r,i)]}if(e3(n)){if(!g(t)||Array.isArray(t))return void r(rd(i),t,new w(`Expected type "${n.name}" to be an object.`));let o={},a=n.getFields();for(let s of Object.values(a)){let a=t[s.name];if(void 0===a){if(void 0!==s.defaultValue)o[s.name]=s.defaultValue;else if(e8(s.type)){let e=ei(s.type);r(rd(i),t,new w(`Field "${s.name}" of required type "${e}" was not provided.`))}continue}o[s.name]=e(a,s.type,r,rp(i,s.name,n.name))}for(let e of Object.keys(t))if(!a[e]){let o=e_(e,Object.keys(n.getFields()));r(rd(i),t,new w(`Field "${e}" is not defined by type "${n.name}".`+em(o)))}if(n.isOneOf){let e=Object.keys(o);1!==e.length&&r(rd(i),t,new w(`Exactly one key must be specified for OneOf type "${n.name}".`));let a=e[0],s=o[a];null===s&&r(rd(i).concat(a),s,new w(`Field "${a}" must be non-null.`))}return o}if(tr(n)){let e;try{e=n.parseValue(t)}catch(e){e instanceof w?r(rd(i),t,e):r(rd(i),t,new w(`Expected type "${n.name}". `+e.message,{originalError:e}));return}return void 0===e&&r(rd(i),t,new w(`Expected type "${n.name}".`)),e}_(!1,"Unexpected input type: "+ei(n))}(e,t,n,void 0)}function rh(e,t,n){let r="Invalid value "+ei(t);throw e.length>0&&(r+=` at "value${rc(e)}"`),n.message=r+": "+n.message,n}function rm(e,t,n){if(e){if(e.kind===p.VARIABLE){let r=e.name.value;if(null==n||void 0===n[r])return;let i=n[r];if(null===i&&e8(t))return;return i}if(e8(t)){if(e.kind===p.NULL)return;return rm(e,t.ofType,n)}if(e.kind===p.NULL)return null;if(e9(t)){let r=t.ofType;if(e.kind===p.LIST){let t=[];for(let i of e.values)if(ry(i,n)){if(e8(r))return;t.push(null)}else{let e=rm(i,r,n);if(void 0===e)return;t.push(e)}return t}let i=rm(e,r,n);if(void 0===i)return;return[i]}if(e3(t)){if(e.kind!==p.OBJECT)return;let r=Object.create(null),i=eE(e.fields,e=>e.name.value);for(let e of Object.values(t.getFields())){let t=i[e.name];if(!t||ry(t.value,n)){if(void 0!==e.defaultValue)r[e.name]=e.defaultValue;else if(e8(e.type))return;continue}let o=rm(t.value,e.type,n);if(void 0===o)return;r[e.name]=o}if(t.isOneOf){let e=Object.keys(r);if(1!==e.length||null===r[e[0]])return}return r}if(tr(t)){let r;try{r=t.parseLiteral(e,n)}catch(e){return}if(void 0===r)return;return r}_(!1,"Unexpected input type: "+ei(t))}}function ry(e,t){return e.kind===p.VARIABLE&&(null==t||void 0===t[e.name.value])}function rE(e,t,n,r){let i=[],o=null==r?void 0:r.maxErrors;try{let r=function(e,t,n,r){let i={};for(let o of t){let t=o.variable.name.value,a=nA(e,o.type);if(!e7(a)){let e=eF(o.type);r(new w(`Variable "$${t}" expected value of type "${e}" which cannot be used as an input type.`,{nodes:o.type}));continue}if(!rN(n,t)){if(o.defaultValue)i[t]=rm(o.defaultValue,a);else if(e8(a)){let e=ei(a);r(new w(`Variable "$${t}" of required type "${e}" was not provided.`,{nodes:o}))}continue}let s=n[t];if(null===s&&e8(a)){let e=ei(a);r(new w(`Variable "$${t}" of non-null type "${e}" must not be null.`,{nodes:o}));continue}i[t]=rf(s,a,(e,n,i)=>{let a=`Variable "$${t}" got invalid value `+ei(n);e.length>0&&(a+=` at "${t}${rc(e)}"`),r(new w(a+"; "+i.message,{nodes:o,originalError:i}))})}return i}(e,t,n,e=>{if(null!=o&&i.length>=o)throw new w("Too many errors processing variables, error limit reached. Execution aborted.");i.push(e)});if(0===i.length)return{coerced:r}}catch(e){i.push(e)}return{errors:i}}function rT(e,t,n){var r;let i={},o=eE(null!=(r=t.arguments)?r:[],e=>e.name.value);for(let r of e.args){let e=r.name,a=r.type,s=o[e];if(!s){if(void 0!==r.defaultValue)i[e]=r.defaultValue;else if(e8(a))throw new w(`Argument "${e}" of required type "${ei(a)}" was not provided.`,{nodes:t});continue}let l=s.value,u=l.kind===p.NULL;if(l.kind===p.VARIABLE){let t=l.name.value;if(null==n||!rN(n,t)){if(void 0!==r.defaultValue)i[e]=r.defaultValue;else if(e8(a))throw new w(`Argument "${e}" of required type "${ei(a)}" was provided the variable "$${t}" which was not provided a runtime value.`,{nodes:l});continue}u=null==n[t]}if(u&&e8(a))throw new w(`Argument "${e}" of non-null type "${ei(a)}" must not be null.`,{nodes:l});let c=rm(l,a,n);if(void 0===c)throw new w(`Argument "${e}" has invalid value ${eF(l)}.`,{nodes:l});i[e]=c}return i}function rv(e,t,n){var r;let i=null==(r=t.directives)?void 0:r.find(t=>t.name.value===e.name);if(i)return rT(e,i,n)}function rN(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function rI(e,t,n,r,i){let o=new Map;return rg(e,t,n,r,i,o,new Set),o}function rg(e,t,n,r,i,o,a){for(let l of i.selections)switch(l.kind){case p.FIELD:{var s;if(!r_(n,l))continue;let e=(s=l).alias?s.alias.value:s.name.value,t=o.get(e);void 0!==t?t.push(l):o.set(e,[l]);break}case p.INLINE_FRAGMENT:if(!r_(n,l)||!rO(e,l,r))continue;rg(e,t,n,r,l.selectionSet,o,a);break;case p.FRAGMENT_SPREAD:{let i=l.name.value;if(a.has(i)||!r_(n,l))continue;a.add(i);let s=t[i];if(!s||!rO(e,s,r))continue;rg(e,t,n,r,s.selectionSet,o,a)}}}function r_(e,t){let n=rv(t2,t,e);if((null==n?void 0:n.if)===!0)return!1;let r=rv(t1,t,e);return(null==r?void 0:r.if)!==!1}function rO(e,t,n){let r=t.typeCondition;if(!r)return!0;let i=nA(e,r);return i===n||!!ts(i)&&e.isSubType(i,n)}function rb(e){return{OperationDefinition(t){if("subscription"===t.operation){let n=e.getSchema(),r=n.getSubscriptionType();if(r){let i=t.name?t.name.value:null,o=Object.create(null),a=e.getDocument(),s=Object.create(null);for(let e of a.definitions)e.kind===p.FRAGMENT_DEFINITION&&(s[e.name.value]=e);let l=rI(n,s,o,r,t.selectionSet);if(l.size>1){let t=[...l.values()].slice(1).flat();e.reportError(new w(null!=i?`Subscription "${i}" must select only one top level field.`:"Anonymous Subscription must select only one top level field.",{nodes:t}))}for(let t of l.values())t[0].name.value.startsWith("__")&&e.reportError(new w(null!=i?`Subscription "${i}" must not select an introspection top level field.`:"Anonymous Subscription must not select an introspection top level field.",{nodes:t}))}}}}}function rD(e,t){let n=new Map;for(let r of e){let e=t(r),i=n.get(e);void 0===i?n.set(e,[r]):i.push(r)}return n}function rA(e){return{DirectiveDefinition(e){var t;let r=null!=(t=e.arguments)?t:[];return n(`@${e.name.value}`,r)},InterfaceTypeDefinition:t,InterfaceTypeExtension:t,ObjectTypeDefinition:t,ObjectTypeExtension:t};function t(e){var t,r;let i=e.name.value;for(let o of null!=(t=e.fields)?t:[]){let e=o.name.value;n(`${i}.${e}`,null!=(r=o.arguments)?r:[])}return!1}function n(t,n){for(let[r,i]of rD(n,e=>e.name.value))i.length>1&&e.reportError(new w(`Argument "${t}(${r}:)" can only be defined once.`,{nodes:i.map(e=>e.name)}));return!1}}function rS(e){return{Field:t,Directive:t};function t(t){var n;for(let[r,i]of rD(null!=(n=t.arguments)?n:[],e=>e.name.value))i.length>1&&e.reportError(new w(`There can be only one argument named "${r}".`,{nodes:i.map(e=>e.name)}))}}function rw(e){let t=Object.create(null),n=e.getSchema();return{DirectiveDefinition(r){let i=r.name.value;return null!=n&&n.getDirective(i)?void e.reportError(new w(`Directive "@${i}" already exists in the schema. It cannot be redefined.`,{nodes:r.name})):(t[i]?e.reportError(new w(`There can be only one directive named "@${i}".`,{nodes:[t[i],r.name]})):t[i]=r.name,!1)}}}function rR(e){let t=Object.create(null),n=e.getSchema();for(let e of n?n.getDirectives():t8)t[e.name]=!e.isRepeatable;for(let n of e.getDocument().definitions)n.kind===p.DIRECTIVE_DEFINITION&&(t[n.name.value]=!n.repeatable);let r=Object.create(null),i=Object.create(null);return{enter(n){let o;if("directives"in n&&n.directives){if(n.kind===p.SCHEMA_DEFINITION||n.kind===p.SCHEMA_EXTENSION)o=r;else if(nV(n)||nM(n)){let e=n.name.value;void 0===(o=i[e])&&(i[e]=o=Object.create(null))}else o=Object.create(null);for(let r of n.directives){let n=r.name.value;t[n]&&(o[n]?e.reportError(new w(`The directive "@${n}" can only be used once at this location.`,{nodes:[o[n],r]})):o[n]=r)}}}}}function rk(e){let t=e.getSchema(),n=t?t.getTypeMap():Object.create(null),r=Object.create(null);return{EnumTypeDefinition:i,EnumTypeExtension:i};function i(t){var i;let o=t.name.value;r[o]||(r[o]=Object.create(null));let a=null!=(i=t.values)?i:[],s=r[o];for(let t of a){let r=t.name.value,i=n[o];e1(i)&&i.getValue(r)?e.reportError(new w(`Enum value "${o}.${r}" already exists in the schema. It cannot also be defined in this type extension.`,{nodes:t.name})):s[r]?e.reportError(new w(`Enum value "${o}.${r}" can only be defined once.`,{nodes:[s[r],t.name]})):s[r]=t.name}return!1}}function rL(e){let t=e.getSchema(),n=t?t.getTypeMap():Object.create(null),r=Object.create(null);return{InputObjectTypeDefinition:i,InputObjectTypeExtension:i,InterfaceTypeDefinition:i,InterfaceTypeExtension:i,ObjectTypeDefinition:i,ObjectTypeExtension:i};function i(t){var i,o,a;let s=t.name.value;r[s]||(r[s]=Object.create(null));let l=null!=(i=t.fields)?i:[],u=r[s];for(let t of l){let r=t.name.value;(o=n[s],a=r,(eX(o)||eH(o)||e3(o))&&null!=o.getFields()[a])?e.reportError(new w(`Field "${s}.${r}" already exists in the schema. It cannot also be defined in this type extension.`,{nodes:t.name})):u[r]?e.reportError(new w(`Field "${s}.${r}" can only be defined once.`,{nodes:[u[r],t.name]})):u[r]=t.name}return!1}}function r$(e){let t=Object.create(null);return{OperationDefinition:()=>!1,FragmentDefinition(n){let r=n.name.value;return t[r]?e.reportError(new w(`There can be only one fragment named "${r}".`,{nodes:[t[r],n.name]})):t[r]=n.name,!1}}}function rx(e){let t=[],n=Object.create(null);return{ObjectValue:{enter(){t.push(n),n=Object.create(null)},leave(){let e=t.pop();e||_(!1),n=e}},ObjectField(t){let r=t.name.value;n[r]?e.reportError(new w(`There can be only one input field named "${r}".`,{nodes:[n[r],t.name]})):n[r]=t.name}}}function rF(e){let t=Object.create(null);return{OperationDefinition(n){let r=n.name;return r&&(t[r.value]?e.reportError(new w(`There can be only one operation named "${r.value}".`,{nodes:[t[r.value],r]})):t[r.value]=r),!1},FragmentDefinition:()=>!1}}function rC(e){let t=e.getSchema(),n=Object.create(null),r=t?{query:t.getQueryType(),mutation:t.getMutationType(),subscription:t.getSubscriptionType()}:{};return{SchemaDefinition:i,SchemaExtension:i};function i(t){var i;for(let o of null!=(i=t.operationTypes)?i:[]){let t=o.operation,i=n[t];r[t]?e.reportError(new w(`Type for ${t} already defined in the schema. It cannot be redefined.`,{nodes:o})):i?e.reportError(new w(`There can be only one ${t} type in schema.`,{nodes:[i,o]})):n[t]=o}return!1}}function rV(e){let t=Object.create(null),n=e.getSchema();return{ScalarTypeDefinition:r,ObjectTypeDefinition:r,InterfaceTypeDefinition:r,UnionTypeDefinition:r,EnumTypeDefinition:r,InputObjectTypeDefinition:r};function r(r){let i=r.name.value;return null!=n&&n.getType(i)?void e.reportError(new w(`Type "${i}" already exists in the schema. It cannot also be defined in this type definition.`,{nodes:r.name})):(t[i]?e.reportError(new w(`There can be only one type named "${i}".`,{nodes:[t[i],r.name]})):t[i]=r.name,!1)}}function rU(e){return{OperationDefinition(t){var n;for(let[r,i]of rD(null!=(n=t.variableDefinitions)?n:[],e=>e.variable.name.value))i.length>1&&e.reportError(new w(`There can be only one variable named "$${r}".`,{nodes:i.map(e=>e.variable.name)}))}}}function rM(e){let t={};return{OperationDefinition:{enter(){t={}}},VariableDefinition(e){t[e.variable.name.value]=e},ListValue(t){if(!e9(tm(e.getParentInputType())))return rj(e,t),!1},ObjectValue(t){let n=tT(e.getInputType());if(!e3(n))return rj(e,t),!1;let r=eE(t.fields,e=>e.name.value);for(let i of Object.values(n.getFields()))if(!r[i.name]&&tU(i)){let r=ei(i.type);e.reportError(new w(`Field "${n.name}.${i.name}" of required type "${r}" was not provided.`,{nodes:t}))}n.isOneOf&&function(e,t,n,r){var i;let o=Object.keys(r);if(1!==o.length)return e.reportError(new w(`OneOf Input Object "${n.name}" must specify exactly one key.`,{nodes:[t]}));let a=null==(i=r[o[0]])?void 0:i.value;a&&a.kind!==p.NULL||e.reportError(new w(`Field "${n.name}.${o[0]}" must be non-null.`,{nodes:[t]}))}(e,t,n,r)},ObjectField(t){let n=tT(e.getParentInputType());if(!e.getInputType()&&e3(n)){let r=e_(t.name.value,Object.keys(n.getFields()));e.reportError(new w(`Field "${t.name.value}" is not defined by type "${n.name}".`+em(r),{nodes:t}))}},NullValue(t){let n=e.getInputType();e8(n)&&e.reportError(new w(`Expected value of type "${ei(n)}", found ${eF(t)}.`,{nodes:t}))},EnumValue:t=>rj(e,t),IntValue:t=>rj(e,t),FloatValue:t=>rj(e,t),StringValue:t=>rj(e,t),BooleanValue:t=>rj(e,t)}}function rj(e,t){let n=e.getInputType();if(!n)return;let r=tT(n);if(!tr(r)){let r=ei(n);e.reportError(new w(`Expected value of type "${r}", found ${eF(t)}.`,{nodes:t}));return}try{let i=r.parseLiteral(t,void 0);if(void 0===i){let r=ei(n);e.reportError(new w(`Expected value of type "${r}", found ${eF(t)}.`,{nodes:t}))}}catch(i){let r=ei(n);i instanceof w?e.reportError(i):e.reportError(new w(`Expected value of type "${r}", found ${eF(t)}; `+i.message,{nodes:t,originalError:i}))}}function rP(e){return{VariableDefinition(t){let n=nA(e.getSchema(),t.type);if(void 0!==n&&!e7(n)){let n=t.variable.name.value,r=eF(t.type);e.reportError(new w(`Variable "$${n}" cannot be non-input type "${r}".`,{nodes:t.type}))}}}}function rG(e){let t=Object.create(null);return{OperationDefinition:{enter(){t=Object.create(null)},leave(n){for(let{node:l,type:u,defaultValue:c,parentType:d}of e.getRecursiveVariableUsages(n)){let n=l.name.value,f=t[n];if(f&&u){var r,i,o,a,s;let t=e.getSchema(),h=nA(t,f.type);if(h&&(r=t,i=h,o=f.defaultValue,a=u,s=c,e8(a)&&!e8(i)?!((null!=o&&o.kind!==p.NULL||void 0!==s)&&tj(r,i,a.ofType)):!tj(r,i,a))){let t=ei(h),r=ei(u);e.reportError(new w(`Variable "$${n}" of type "${t}" used in position expecting type "${r}".`,{nodes:[f,l]}))}e3(d)&&d.isOneOf&&tf(h)&&e.reportError(new w(`Variable "$${n}" is of type "${h}" but must be non-nullable to be used for OneOf Input Object "${d}".`,{nodes:[f,l]}))}}}},VariableDefinition(e){t[e.variable.name.value]=e}}}let rB=Object.freeze([nW]),rY=Object.freeze([nP,rF,nz,rb,nK,nB,rP,ru,nG,r$,nJ,n1,rr,nZ,rU,n0,n2,nq,rR,nY,rS,rM,ra,rG,n4,rx,...rB]),rQ=Object.freeze([nH,rC,rV,rk,rL,rA,rw,nK,nq,rR,ri,nQ,rS,rx,rs]);class rq{constructor(e,t){this._ast=e,this._fragments=void 0,this._fragmentSpreads=new Map,this._recursivelyReferencedFragments=new Map,this._onError=t}get[Symbol.toStringTag](){return"ASTValidationContext"}reportError(e){this._onError(e)}getDocument(){return this._ast}getFragment(e){let t;if(this._fragments)t=this._fragments;else{for(let e of(t=Object.create(null),this.getDocument().definitions))e.kind===p.FRAGMENT_DEFINITION&&(t[e.name.value]=e);this._fragments=t}return t[e]}getFragmentSpreads(e){let t=this._fragmentSpreads.get(e);if(!t){let n;t=[];let r=[e];for(;n=r.pop();)for(let e of n.selections)e.kind===p.FRAGMENT_SPREAD?t.push(e):e.selectionSet&&r.push(e.selectionSet);this._fragmentSpreads.set(e,t)}return t}getRecursivelyReferencedFragments(e){let t=this._recursivelyReferencedFragments.get(e);if(!t){let n;t=[];let r=Object.create(null),i=[e.selectionSet];for(;n=i.pop();)for(let e of this.getFragmentSpreads(n)){let n=e.name.value;if(!0!==r[n]){r[n]=!0;let e=this.getFragment(n);e&&(t.push(e),i.push(e.selectionSet))}}this._recursivelyReferencedFragments.set(e,t)}return t}}class rJ extends rq{constructor(e,t,n){super(e,n),this._schema=t}get[Symbol.toStringTag](){return"SDLValidationContext"}getSchema(){return this._schema}}class rK extends rq{constructor(e,t,n,r){super(t,r),this._schema=e,this._typeInfo=n,this._variableUsages=new Map,this._recursiveVariableUsages=new Map}get[Symbol.toStringTag](){return"ValidationContext"}getSchema(){return this._schema}getVariableUsages(e){let t=this._variableUsages.get(e);if(!t){let n=[],r=new nS(this._schema);ek(e,nR(r,{VariableDefinition:()=>!1,Variable(e){n.push({node:e,type:r.getInputType(),defaultValue:r.getDefaultValue(),parentType:r.getParentInputType()})}})),t=n,this._variableUsages.set(e,t)}return t}getRecursiveVariableUsages(e){let t=this._recursiveVariableUsages.get(e);if(!t){for(let n of(t=this.getVariableUsages(e),this.getRecursivelyReferencedFragments(e)))t=t.concat(this.getVariableUsages(n));this._recursiveVariableUsages.set(e,t)}return t}getType(){return this._typeInfo.getType()}getParentType(){return this._typeInfo.getParentType()}getInputType(){return this._typeInfo.getInputType()}getParentInputType(){return this._typeInfo.getParentInputType()}getFieldDef(){return this._typeInfo.getFieldDef()}getDirective(){return this._typeInfo.getDirective()}getArgument(){return this._typeInfo.getArgument()}getEnumValue(){return this._typeInfo.getEnumValue()}}function rX(e,t,n=rY,r,i=new nS(e)){var o;let a=null!=(o=null==r?void 0:r.maxErrors)?o:100;t||N(!1,"Must provide document."),nN(e);let s=Object.freeze({}),l=[],u=new rK(e,t,i,e=>{if(l.length>=a)throw l.push(new w("Too many validation errors, error limit reached. Validation aborted.")),s;l.push(e)}),c=eL(n.map(e=>e(u)));try{ek(t,nR(i,c))}catch(e){if(e!==s)throw e}return l}function rz(e,t,n=rQ){let r=[],i=new rJ(e,t,e=>{r.push(e)});return ek(e,eL(n.map(e=>e(i)))),r}function rH(e){return Promise.all(Object.values(e)).then(t=>{let n=Object.create(null);for(let[r,i]of Object.keys(e).entries())n[i]=t[r];return n})}class rW extends Error{constructor(e){super("Unexpected error value: "+ei(e)),this.name="NonErrorThrown",this.thrownValue=e}}function rZ(e,t,n){var r;let i=e instanceof Error?e:new rW(e);return Array.isArray(i.path)?i:new w(i.message,{nodes:null!=(r=i.nodes)?r:t,source:i.source,positions:i.positions,path:n,originalError:i})}let r0=(a=(e,t,n)=>(function(e,t,n,r,i){let o=new Map,a=new Set;for(let s of i)s.selectionSet&&rg(e,t,n,r,s.selectionSet,o,a);return o})(e.schema,e.fragments,e.variableValues,t,n),function(t,n,r){void 0===e&&(e=new WeakMap);let i=e.get(t);void 0===i&&(i=new WeakMap,e.set(t,i));let o=i.get(n);void 0===o&&(o=new WeakMap,i.set(n,o));let s=o.get(r);return void 0===s&&(s=a(t,n,r),o.set(r,s)),s});function r1(e){arguments.length<2||N(!1,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");let{schema:t,document:n,variableValues:r,rootValue:i}=e;r4(t,n,r);let o=r9(e);if(!("schema"in o))return{errors:o};try{let{operation:e}=o,t=function(e,t,n){let r=e.schema.getRootType(t.operation);if(null==r)throw new w(`Schema is not configured to execute ${t.operation} operation.`,{nodes:t});let i=rI(e.schema,e.fragments,e.variableValues,r,t.selectionSet),o;switch(t.operation){case u.QUERY:return r5(e,r,n,o,i);case u.MUTATION:var a,s,l,c,p;return a=e,s=r,l=n,c=o,p=i,function(e,t,n){let r=n;for(let n of e)r=I(r)?r.then(e=>t(e,n)):t(r,n);return r}(p.entries(),(e,[t,n])=>{let r=rp(c,t,s.name),i=r8(a,s,l,n,r);return void 0===i?e:I(i)?i.then(n=>(e[t]=n,e)):(e[t]=i,e)},Object.create(null));case u.SUBSCRIPTION:return r5(e,r,n,o,i)}}(o,e,i);if(I(t))return t.then(e=>r3(e,o.errors),e=>(o.errors.push(e),r3(null,o.errors)));return r3(t,o.errors)}catch(e){return o.errors.push(e),r3(null,o.errors)}}function r2(e){let t=r1(e);if(I(t))throw Error("GraphQL execution failed to complete synchronously.");return t}function r3(e,t){return 0===t.length?{data:e}:{errors:t,data:e}}function r4(e,t,n){t||N(!1,"Must provide document."),nN(e),null==n||g(n)||N(!1,"Variables must be provided as an Object where each property is a variable value. Perhaps look to see if an unparsed JSON string was provided.")}function r9(e){var t,n,r;let i,{schema:o,document:a,rootValue:s,contextValue:l,variableValues:u,operationName:c,fieldResolver:d,typeResolver:f,subscribeFieldResolver:h,options:m}=e,y=Object.create(null);for(let e of a.definitions)switch(e.kind){case p.OPERATION_DEFINITION:if(null==c){if(void 0!==i)return[new w("Must provide operation name if query contains multiple operations.")];i=e}else(null==(t=e.name)?void 0:t.value)===c&&(i=e);break;case p.FRAGMENT_DEFINITION:y[e.name.value]=e}if(!i)return null!=c?[new w(`Unknown operation named "${c}".`)]:[new w("Must provide an operation.")];let E=rE(o,null!=(n=i.variableDefinitions)?n:[],null!=u?u:{},{maxErrors:null!=(r=null==m?void 0:m.maxCoercionErrors)?r:50});return E.errors?E.errors:{schema:o,fragments:y,rootValue:s,contextValue:l,operation:i,variableValues:E.coerced,fieldResolver:null!=d?d:ia,typeResolver:null!=f?f:io,subscribeFieldResolver:null!=h?h:ia,errors:[]}}function r5(e,t,n,r,i){let o=Object.create(null),a=!1;try{for(let[s,l]of i.entries()){let i=rp(r,s,t.name),u=r8(e,t,n,l,i);void 0!==u&&(o[s]=u,I(u)&&(a=!0))}}catch(e){if(a)return rH(o).finally(()=>{throw e});throw e}return a?rH(o):o}function r8(e,t,n,r,i){var o;let a=is(e.schema,t,r[0]);if(!a)return;let s=a.type,l=null!=(o=a.resolve)?o:e.fieldResolver,u=r6(e,a,r,t,i);try{let t,o=rT(a,r[0],e.variableValues),c=e.contextValue,p=l(n,o,c,u);if(t=I(p)?p.then(t=>ie(e,s,r,u,i,t)):ie(e,s,r,u,i,p),I(t))return t.then(void 0,t=>{let n=rZ(t,r,rd(i));return r7(n,s,e)});return t}catch(t){return r7(rZ(t,r,rd(i)),s,e)}}function r6(e,t,n,r,i){return{fieldName:t.name,fieldNodes:n,returnType:t.type,parentType:r,path:i,schema:e.schema,fragments:e.fragments,rootValue:e.rootValue,operation:e.operation,variableValues:e.variableValues}}function r7(e,t,n){if(e8(t))throw e;return n.errors.push(e),null}function ie(e,t,n,r,i,o){var a,s,l,u,c,p,d;let f;if(o instanceof Error)throw o;if(e8(t)){let a=ie(e,t.ofType,n,r,i,o);if(null===a)throw Error(`Cannot return null for non-nullable field ${r.parentType.name}.${r.fieldName}.`);return a}return null==o?null:e9(t)?function(e,t,n,r,i,o){if(!t7(o))throw new w(`Expected Iterable, but did not find one for field "${r.parentType.name}.${r.fieldName}".`);let a=t.ofType,s=!1,l=Array.from(o,(t,o)=>{let l=rp(i,o,void 0);try{let i;if(i=I(t)?t.then(t=>ie(e,a,n,r,l,t)):ie(e,a,n,r,l,t),I(i))return s=!0,i.then(void 0,t=>{let r=rZ(t,n,rd(l));return r7(r,a,e)});return i}catch(t){return r7(rZ(t,n,rd(l)),a,e)}});return s?Promise.all(l):l}(e,t,n,r,i,o):tr(t)?function(e,t){let n=e.serialize(t);if(null==n)throw Error(`Expected \`${ei(e)}.serialize(${ei(t)})\` to return non-nullable value, returned: ${ei(n)}`);return n}(t,o):ts(t)?(a=e,s=t,l=n,u=r,c=i,p=o,I(f=(null!=(d=s.resolveType)?d:a.typeResolver)(p,a.contextValue,u,s))?f.then(e=>ir(a,it(e,a,s,l,u,p),l,u,c,p)):ir(a,it(f,a,s,l,u,p),l,u,c,p)):eX(t)?ir(e,t,n,r,i,o):void _(!1,"Cannot complete value of unexpected output type: "+ei(t))}function it(e,t,n,r,i,o){if(null==e)throw new w(`Abstract type "${n.name}" must resolve to an Object type at runtime for field "${i.parentType.name}.${i.fieldName}". Either the "${n.name}" type should provide a "resolveType" function or each possible type should provide an "isTypeOf" function.`,r);if(eX(e))throw new w("Support for returning GraphQLObjectType from resolveType was removed in graphql-js@16.0.0 please return type name instead.");if("string"!=typeof e)throw new w(`Abstract type "${n.name}" must resolve to an Object type at runtime for field "${i.parentType.name}.${i.fieldName}" with value ${ei(o)}, received "${ei(e)}".`);let a=t.schema.getType(e);if(null==a)throw new w(`Abstract type "${n.name}" was resolved to a type "${e}" that does not exist inside the schema.`,{nodes:r});if(!eX(a))throw new w(`Abstract type "${n.name}" was resolved to a non-object type "${e}".`,{nodes:r});if(!t.schema.isSubType(n,a))throw new w(`Runtime Object type "${a.name}" is not a possible type for "${n.name}".`,{nodes:r});return a}function ir(e,t,n,r,i,o){let a=r0(e,t,n);if(t.isTypeOf){let s=t.isTypeOf(o,e.contextValue,r);if(I(s))return s.then(r=>{if(!r)throw ii(t,o,n);return r5(e,t,o,i,a)});if(!s)throw ii(t,o,n)}return r5(e,t,o,i,a)}function ii(e,t,n){return new w(`Expected value of type "${e.name}" but got: ${ei(t)}.`,{nodes:n})}let io=function(e,t,n,r){if(g(e)&&"string"==typeof e.__typename)return e.__typename;let i=n.schema.getPossibleTypes(r),o=[];for(let r=0;r{}),a.name}}if(o.length)return Promise.all(o).then(e=>{for(let t=0;tt(ic(e)))}function iu(e){let t=ic(e);if(I(t))throw Error("GraphQL execution failed to complete synchronously.");return t}function ic(e){let t;arguments.length<2||N(!1,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");let{schema:n,source:r,rootValue:i,contextValue:o,variableValues:a,operationName:s,fieldResolver:l,typeResolver:u}=e,c=nv(n);if(c.length>0)return{errors:c};try{t=es(r)}catch(e){return{errors:[e]}}let p=rX(n,t);return p.length>0?{errors:p}:r1({schema:n,document:t,rootValue:i,contextValue:o,variableValues:a,operationName:s,fieldResolver:l,typeResolver:u})}function ip(e){return"function"==typeof(null==e?void 0:e[Symbol.asyncIterator])}async function id(e){arguments.length<2||N(!1,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");let t=await ih(e);if(!ip(t))return t;let n=t[Symbol.asyncIterator]();async function r(t){if(t.done)return t;try{let n;return{value:await (n=t.value,r1({...e,rootValue:n})),done:!1}}catch(e){if("function"==typeof n.return)try{await n.return()}catch(e){}throw e}}return{next:async()=>r(await n.next()),return:async()=>"function"==typeof n.return?r(await n.return()):{value:void 0,done:!0},async throw(e){if("function"==typeof n.throw)return r(await n.throw(e));throw e},[Symbol.asyncIterator](){return this}}}async function ih(...e){let t,n=(t=e[0])&&"document"in t?t:{schema:t,document:e[1],rootValue:e[2],contextValue:e[3],variableValues:e[4],operationName:e[5],subscribeFieldResolver:e[6]},{schema:r,document:i,variableValues:o}=n;r4(r,i,o);let a=r9(n);if(!("schema"in a))return{errors:a};try{let e=await im(a);if(!ip(e))throw Error(`Subscription field must return Async Iterable. Received: ${ei(e)}.`);return e}catch(e){if(e instanceof w)return{errors:[e]};throw e}}async function im(e){let{schema:t,fragments:n,operation:r,variableValues:i,rootValue:o}=e,a=t.getSubscriptionType();if(null==a)throw new w("Schema is not configured to execute subscription operation.",{nodes:r});let[s,l]=[...rI(t,n,i,a,r.selectionSet).entries()][0],u=is(t,a,l[0]);if(!u){let e=l[0].name.value;throw new w(`The subscription field "${e}" is not defined.`,{nodes:l})}let c=rp(void 0,s,a.name),p=r6(e,u,l,a,c);try{var d;let t=rT(u,l[0],i),n=e.contextValue,r=null!=(d=u.subscribe)?d:e.subscribeFieldResolver,a=await r(o,t,n,p);if(a instanceof Error)throw a;return a}catch(e){throw rZ(e,l,rd(c))}}function iy(e){return{Field(t){let n=e.getFieldDef(),r=null==n?void 0:n.deprecationReason;if(n&&null!=r){let i=e.getParentType();null!=i||_(!1),e.reportError(new w(`The field ${i.name}.${n.name} is deprecated. ${r}`,{nodes:t}))}},Argument(t){let n=e.getArgument(),r=null==n?void 0:n.deprecationReason;if(n&&null!=r){let i=e.getDirective();if(null!=i)e.reportError(new w(`Directive "@${i.name}" argument "${n.name}" is deprecated. ${r}`,{nodes:t}));else{let i=e.getParentType(),o=e.getFieldDef();null!=i&&null!=o||_(!1),e.reportError(new w(`Field "${i.name}.${o.name}" argument "${n.name}" is deprecated. ${r}`,{nodes:t}))}}},ObjectField(t){let n=tT(e.getParentInputType());if(e3(n)){let r=n.getFields()[t.name.value],i=null==r?void 0:r.deprecationReason;null!=i&&e.reportError(new w(`The input field ${n.name}.${r.name} is deprecated. ${i}`,{nodes:t}))}},EnumValue(t){let n=e.getEnumValue(),r=null==n?void 0:n.deprecationReason;if(n&&null!=r){let i=tT(e.getInputType());null!=i||_(!1),e.reportError(new w(`The enum value "${i.name}.${n.name}" is deprecated. ${r}`,{nodes:t}))}}}}function iE(e){return{Field(t){let n=tT(e.getType());n&&nh(n)&&e.reportError(new w(`GraphQL introspection has been disabled, but the requested query contained the field "${t.name.value}".`,{nodes:t}))}}}function iT(e){let t={descriptions:!0,specifiedByUrl:!1,directiveIsRepeatable:!1,schemaDescription:!1,inputValueDeprecation:!1,oneOf:!1,...e},n=t.descriptions?"description":"",r=t.specifiedByUrl?"specifiedByURL":"",i=t.directiveIsRepeatable?"isRepeatable":"",o=t.schemaDescription?n:"";function a(e){return t.inputValueDeprecation?e:""}let s=t.oneOf?"isOneOf":"";return` + query IntrospectionQuery { + __schema { + ${o} + queryType { name kind } + mutationType { name kind } + subscriptionType { name kind } + types { + ...FullType + } + directives { + name + ${n} + ${i} + locations + args${a("(includeDeprecated: true)")} { + ...InputValue + } + } + } + } + + fragment FullType on __Type { + kind + name + ${n} + ${r} + ${s} + fields(includeDeprecated: true) { + name + ${n} + args${a("(includeDeprecated: true)")} { + ...InputValue + } + type { + ...TypeRef + } + isDeprecated + deprecationReason + } + inputFields${a("(includeDeprecated: true)")} { + ...InputValue + } + interfaces { + ...TypeRef + } + enumValues(includeDeprecated: true) { + name + ${n} + isDeprecated + deprecationReason + } + possibleTypes { + ...TypeRef + } + } + + fragment InputValue on __InputValue { + name + ${n} + type { ...TypeRef } + defaultValue + ${a("isDeprecated")} + ${a("deprecationReason")} + } + + fragment TypeRef on __Type { + kind + name + ofType { + kind + name + ofType { + kind + name + ofType { + kind + name + ofType { + kind + name + ofType { + kind + name + ofType { + kind + name + ofType { + kind + name + ofType { + kind + name + ofType { + kind + name + } + } + } + } + } + } + } + } + } + } + `}function iv(e,t){let n=null;for(let i of e.definitions)if(i.kind===p.OPERATION_DEFINITION){var r;if(null==t){if(n)return null;n=i}else if((null==(r=i.name)?void 0:r.value)===t)return i}return n}function iN(e,t){if("query"===t.operation){let n=e.getQueryType();if(!n)throw new w("Schema does not define the required query root type.",{nodes:t});return n}if("mutation"===t.operation){let n=e.getMutationType();if(!n)throw new w("Schema is not configured for mutations.",{nodes:t});return n}if("subscription"===t.operation){let n=e.getSubscriptionType();if(!n)throw new w("Schema is not configured for subscriptions.",{nodes:t});return n}throw new w("Can only have query, mutation and subscription operations.",{nodes:t})}function iI(e,t){let n=r2({schema:e,document:es(iT({specifiedByUrl:!0,directiveIsRepeatable:!0,schemaDescription:!0,inputValueDeprecation:!0,oneOf:!0,...t}))});return!n.errors&&n.data||_(!1),n.data}function ig(e,t){g(e)&&g(e.__schema)||N(!1,`Invalid or incomplete introspection result. Ensure that you are passing "data" property of introspection response and no "errors" was returned alongside: ${ei(e)}.`);let n=e.__schema,r=eT(n.types,e=>e.name,e=>(function(e){if(null!=e&&null!=e.name&&null!=e.kind)switch(e.kind){case f.SCALAR:return new tI({name:(t=e).name,description:t.description,specifiedByURL:t.specifiedByURL});case f.OBJECT:return new tg({name:(n=e).name,description:n.description,interfaces:()=>d(n),fields:()=>h(n)});case f.INTERFACE:return new tR({name:(r=e).name,description:r.description,interfaces:()=>d(r),fields:()=>h(r)});case f.UNION:var t,n,r,i=e;if(!i.possibleTypes){let e=ei(i);throw Error(`Introspection result missing possibleTypes: ${e}.`)}return new tk({name:i.name,description:i.description,types:()=>i.possibleTypes.map(c)});case f.ENUM:var o=e;if(!o.enumValues){let e=ei(o);throw Error(`Introspection result missing enumValues: ${e}.`)}return new t$({name:o.name,description:o.description,values:eT(o.enumValues,e=>e.name,e=>({description:e.description,deprecationReason:e.deprecationReason}))});case f.INPUT_OBJECT:var a=e;if(!a.inputFields){let e=ei(a);throw Error(`Introspection result missing inputFields: ${e}.`)}return new tC({name:a.name,description:a.description,fields:()=>y(a.inputFields),isOneOf:a.isOneOf})}let s=ei(e);throw Error(`Invalid or incomplete introspection result. Ensure that a full introspection query is used in order to build a client schema: ${s}.`)})(e));for(let e of[...tX,...nf])r[e.name]&&(r[e.name]=e);let i=n.queryType?c(n.queryType):null,o=n.mutationType?c(n.mutationType):null,a=n.subscriptionType?c(n.subscriptionType):null,s=n.directives?n.directives.map(function(e){if(!e.args){let t=ei(e);throw Error(`Introspection result missing directive args: ${t}.`)}if(!e.locations){let t=ei(e);throw Error(`Introspection result missing directive locations: ${t}.`)}return new t0({name:e.name,description:e.description,isRepeatable:e.isRepeatable,locations:e.locations.slice(),args:y(e.args)})}):[];return new nE({description:n.description,query:i,mutation:o,subscription:a,types:Object.values(r),directives:s,assumeValid:null==t?void 0:t.assumeValid});function l(e){if(e.kind===f.LIST){let t=e.ofType;if(!t)throw Error("Decorated type deeper than introspection query.");return new tu(l(t))}if(e.kind===f.NON_NULL){let t=e.ofType;if(!t)throw Error("Decorated type deeper than introspection query.");return new tc(th(l(t)))}return u(e)}function u(e){let t=e.name;if(!t)throw Error(`Unknown type reference: ${ei(e)}.`);let n=r[t];if(!n)throw Error(`Invalid or incomplete schema, unknown type: ${t}. Ensure that a full introspection query is used in order to build a client schema.`);return n}function c(e){return ez(u(e))}function p(e){return eW(u(e))}function d(e){if(null===e.interfaces&&e.kind===f.INTERFACE)return[];if(!e.interfaces){let t=ei(e);throw Error(`Introspection result missing interfaces: ${t}.`)}return e.interfaces.map(p)}function h(e){if(!e.fields)throw Error(`Introspection result missing fields: ${ei(e)}.`);return eT(e.fields,e=>e.name,m)}function m(e){let t=l(e.type);if(!tt(t)){let e=ei(t);throw Error(`Introspection must provide output type for fields, but received: ${e}.`)}if(!e.args){let t=ei(e);throw Error(`Introspection result missing field args: ${t}.`)}return{description:e.description,deprecationReason:e.deprecationReason,type:t,args:y(e.args)}}function y(e){return eT(e,e=>e.name,E)}function E(e){let t=l(e.type);if(!e7(t)){let e=ei(t);throw Error(`Introspection must provide input type for arguments, but received: ${e}.`)}let n=null!=e.defaultValue?rm(el(e.defaultValue),t):void 0;return{description:e.description,type:t,defaultValue:n,deprecationReason:e.deprecationReason}}}function i_(e,t,n){ny(e),null!=t&&t.kind===p.DOCUMENT||N(!1,"Must provide valid Document AST."),(null==n?void 0:n.assumeValid)!==!0&&(null==n?void 0:n.assumeValidSDL)!==!0&&function(e,t){let n=rz(e,t);if(0!==n.length)throw Error(n.map(e=>e.message).join("\n\n"))}(t,e);let r=e.toConfig(),i=iO(r,t,n);return r===i?e:new nE(i)}function iO(e,t,n){var r,i,o,a,s,l;let u,c=[],d=Object.create(null),f=[],h=[];for(let e of t.definitions)if(e.kind===p.SCHEMA_DEFINITION)u=e;else if(e.kind===p.SCHEMA_EXTENSION)h.push(e);else if(nV(e))c.push(e);else if(nM(e)){let t=e.name.value,n=d[t];d[t]=n?n.concat([e]):[e]}else e.kind===p.DIRECTIVE_DEFINITION&&f.push(e);if(0===Object.keys(d).length&&0===c.length&&0===f.length&&0===h.length&&null==u)return e;let m=Object.create(null);for(let t of e.types){m[t.name]=nh(l=t)||tz(l)?l:eJ(l)?function(e){var t,n;let r=e.toConfig(),i=null!=(t=d[r.name])?t:[],o=r.specifiedByURL;for(let e of i)o=null!=(n=iA(e))?n:o;return new tI({...r,specifiedByURL:o,extensionASTNodes:r.extensionASTNodes.concat(i)})}(l):eX(l)?function(e){var t;let n=e.toConfig(),r=null!=(t=d[n.name])?t:[];return new tg({...n,interfaces:()=>[...e.getInterfaces().map(T),...w(r)],fields:()=>({...ev(n.fields,v),...b(r)}),extensionASTNodes:n.extensionASTNodes.concat(r)})}(l):eH(l)?function(e){var t;let n=e.toConfig(),r=null!=(t=d[n.name])?t:[];return new tR({...n,interfaces:()=>[...e.getInterfaces().map(T),...w(r)],fields:()=>({...ev(n.fields,v),...b(r)}),extensionASTNodes:n.extensionASTNodes.concat(r)})}(l):eZ(l)?function(e){var t;let n=e.toConfig(),r=null!=(t=d[n.name])?t:[];return new tk({...n,types:()=>[...e.getTypes().map(T),...R(r)],extensionASTNodes:n.extensionASTNodes.concat(r)})}(l):e1(l)?function(e){var t;let n=e.toConfig(),r=null!=(t=d[e.name])?t:[];return new t$({...n,values:{...n.values,...S(r)},extensionASTNodes:n.extensionASTNodes.concat(r)})}(l):e3(l)?function(e){var t;let n=e.toConfig(),r=null!=(t=d[n.name])?t:[];return new tC({...n,fields:()=>({...ev(n.fields,e=>({...e,type:E(e.type)})),...A(r)}),extensionASTNodes:n.extensionASTNodes.concat(r)})}(l):void _(!1,"Unexpected type: "+ei(l))}for(let e of c){let t=e.name.value;m[t]=null!=(s=ib[t])?s:function(e){var t,n,r,i,o,a,s;let l=e.name.value,u=null!=(t=d[l])?t:[];switch(e.kind){case p.OBJECT_TYPE_DEFINITION:{let t=[e,...u];return new tg({name:l,description:null==(n=e.description)?void 0:n.value,interfaces:()=>w(t),fields:()=>b(t),astNode:e,extensionASTNodes:u})}case p.INTERFACE_TYPE_DEFINITION:{let t=[e,...u];return new tR({name:l,description:null==(r=e.description)?void 0:r.value,interfaces:()=>w(t),fields:()=>b(t),astNode:e,extensionASTNodes:u})}case p.ENUM_TYPE_DEFINITION:{let t=[e,...u];return new t$({name:l,description:null==(i=e.description)?void 0:i.value,values:S(t),astNode:e,extensionASTNodes:u})}case p.UNION_TYPE_DEFINITION:{let t=[e,...u];return new tk({name:l,description:null==(o=e.description)?void 0:o.value,types:()=>R(t),astNode:e,extensionASTNodes:u})}case p.SCALAR_TYPE_DEFINITION:return new tI({name:l,description:null==(a=e.description)?void 0:a.value,specifiedByURL:iA(e),astNode:e,extensionASTNodes:u});case p.INPUT_OBJECT_TYPE_DEFINITION:{let t=[e,...u];return new tC({name:l,description:null==(s=e.description)?void 0:s.value,fields:()=>A(t),astNode:e,extensionASTNodes:u,isOneOf:!!rv(t5,e)})}}}(e)}let y={query:e.query&&T(e.query),mutation:e.mutation&&T(e.mutation),subscription:e.subscription&&T(e.subscription),...u&&I([u]),...I(h)};return{description:null==(r=u)||null==(i=r.description)?void 0:i.value,...y,types:Object.values(m),directives:[...e.directives.map(function(e){let t=e.toConfig();return new t0({...t,args:ev(t.args,N)})}),...f.map(function(e){var t;return new t0({name:e.name.value,description:null==(t=e.description)?void 0:t.value,locations:e.locations.map(({value:e})=>e),isRepeatable:e.repeatable,args:D(e.arguments),astNode:e})})],extensions:Object.create(null),astNode:null!=(o=u)?o:e.astNode,extensionASTNodes:e.extensionASTNodes.concat(h),assumeValid:null!=(a=null==n?void 0:n.assumeValid)&&a};function E(e){return e9(e)?new tu(E(e.ofType)):e8(e)?new tc(E(e.ofType)):T(e)}function T(e){return m[e.name]}function v(e){return{...e,type:E(e.type),args:e.args&&ev(e.args,N)}}function N(e){return{...e,type:E(e.type)}}function I(e){let t={};for(let r of e){var n;for(let e of null!=(n=r.operationTypes)?n:[])t[e.operation]=g(e.type)}return t}function g(e){var t;let n=e.name.value,r=null!=(t=ib[n])?t:m[n];if(void 0===r)throw Error(`Unknown type: "${n}".`);return r}function O(e){return e.kind===p.LIST_TYPE?new tu(O(e.type)):e.kind===p.NON_NULL_TYPE?new tc(O(e.type)):g(e)}function b(e){let t=Object.create(null);for(let i of e){var n,r;for(let e of null!=(n=i.fields)?n:[])t[e.name.value]={type:O(e.type),description:null==(r=e.description)?void 0:r.value,args:D(e.arguments),deprecationReason:iD(e),astNode:e}}return t}function D(e){let t=Object.create(null);for(let r of null!=e?e:[]){var n;let e=O(r.type);t[r.name.value]={type:e,description:null==(n=r.description)?void 0:n.value,defaultValue:rm(r.defaultValue,e),deprecationReason:iD(r),astNode:r}}return t}function A(e){let t=Object.create(null);for(let i of e){var n,r;for(let e of null!=(n=i.fields)?n:[]){let n=O(e.type);t[e.name.value]={type:n,description:null==(r=e.description)?void 0:r.value,defaultValue:rm(e.defaultValue,n),deprecationReason:iD(e),astNode:e}}}return t}function S(e){let t=Object.create(null);for(let i of e){var n,r;for(let e of null!=(n=i.values)?n:[])t[e.name.value]={description:null==(r=e.description)?void 0:r.value,deprecationReason:iD(e),astNode:e}}return t}function w(e){return e.flatMap(e=>{var t,n;return null!=(t=null==(n=e.interfaces)?void 0:n.map(g))?t:[]})}function R(e){return e.flatMap(e=>{var t,n;return null!=(t=null==(n=e.types)?void 0:n.map(g))?t:[]})}}let ib=eE([...tX,...nf],e=>e.name);function iD(e){let t=rv(t4,e);return null==t?void 0:t.reason}function iA(e){let t=rv(t9,e);return null==t?void 0:t.url}function iS(e,t){null!=e&&e.kind===p.DOCUMENT||N(!1,"Must provide valid Document AST."),(null==t?void 0:t.assumeValid)!==!0&&(null==t?void 0:t.assumeValidSDL)!==!0&&function(e){let t=rz(e);if(0!==t.length)throw Error(t.map(e=>e.message).join("\n\n"))}(e);let n=iO({description:void 0,types:[],directives:[],extensions:Object.create(null),extensionASTNodes:[],assumeValid:!1},e,t);if(null==n.astNode)for(let e of n.types)switch(e.name){case"Query":n.query=e;break;case"Mutation":n.mutation=e;break;case"Subscription":n.subscription=e}let r=[...n.directives,...t8.filter(e=>n.directives.every(t=>t.name!==e.name))];return new nE({...n,directives:r})}function iw(e,t){return iS(es(e,{noLocation:null==t?void 0:t.noLocation,allowLegacyFragmentVariables:null==t?void 0:t.allowLegacyFragmentVariables}),{assumeValidSDL:null==t?void 0:t.assumeValidSDL,assumeValid:null==t?void 0:t.assumeValid})}function iR(e){var t,n,r;let i=e.toConfig(),o=eT(iL(i.types),e=>e.name,function(e){if(eJ(e)||nh(e))return e;if(eX(e)){let t=e.toConfig();return new tg({...t,interfaces:()=>c(t.interfaces),fields:()=>u(t.fields)})}if(eH(e)){let t=e.toConfig();return new tR({...t,interfaces:()=>c(t.interfaces),fields:()=>u(t.fields)})}if(eZ(e)){let t=e.toConfig();return new tk({...t,types:()=>c(t.types)})}if(e1(e)){let t=e.toConfig();return new t$({...t,values:ik(t.values,e=>e)})}if(e3(e)){let t=e.toConfig();return new tC({...t,fields:()=>ik(t.fields,e=>({...e,type:a(e.type)}))})}_(!1,"Unexpected type: "+ei(e))});return new nE({...i,types:Object.values(o),directives:iL(i.directives).map(function(e){let t=e.toConfig();return new t0({...t,locations:i$(t.locations,e=>e),args:l(t.args)})}),query:(t=i.query)&&s(t),mutation:(n=i.mutation)&&s(n),subscription:(r=i.subscription)&&s(r)});function a(e){return e9(e)?new tu(a(e.ofType)):e8(e)?new tc(a(e.ofType)):s(e)}function s(e){return o[e.name]}function l(e){return ik(e,e=>({...e,type:a(e.type)}))}function u(e){return ik(e,e=>({...e,type:a(e.type),args:e.args&&l(e.args)}))}function c(e){return iL(e).map(s)}}function ik(e,t){let n=Object.create(null);for(let r of Object.keys(e).sort(eN))n[r]=t(e[r]);return n}function iL(e){return i$(e,e=>e.name)}function i$(e,t){return e.slice().sort((e,n)=>eN(t(e),t(n)))}function ix(e){return iV(e,e=>!t6(e),iC)}function iF(e){return iV(e,t6,nh)}function iC(e){return!tz(e)&&!nh(e)}function iV(e,t,n){let r=e.getDirectives().filter(t),i=Object.values(e.getTypeMap()).filter(n);return[function(e){if(null==e.description&&function(e){let t=e.getQueryType();if(t&&"Query"!==t.name)return!1;let n=e.getMutationType();if(n&&"Mutation"!==n.name)return!1;let r=e.getSubscriptionType();return!r||"Subscription"===r.name}(e))return;let t=[],n=e.getQueryType();n&&t.push(` query: ${n.name}`);let r=e.getMutationType();r&&t.push(` mutation: ${r.name}`);let i=e.getSubscriptionType();return i&&t.push(` subscription: ${i.name}`),iQ(e)+`schema { +${t.join("\n")} +}`}(e),...r.map(e=>{var t;return iQ(t=e)+"directive @"+t.name+iG(t.args)+(t.isRepeatable?" repeatable":"")+" on "+t.locations.join(" | ")}),...i.map(e=>iU(e))].filter(Boolean).join("\n\n")}function iU(e){var t,n,r,i,o,a;let s,l,u,c;return eJ(e)?iQ(t=e)+`scalar ${t.name}`+function(e){if(null==e.specifiedByURL)return"";let t=eF({kind:p.STRING,value:e.specifiedByURL});return` @specifiedBy(url: ${t})`}(t):eX(e)?iQ(n=e)+`type ${n.name}`+iM(n)+ij(n):eH(e)?iQ(r=e)+`interface ${r.name}`+iM(r)+ij(r):eZ(e)?(l=(s=(i=e).getTypes()).length?" = "+s.join(" | "):"",iQ(i)+"union "+i.name+l):e1(e)?(u=(o=e).getValues().map((e,t)=>iQ(e," ",!t)+" "+e.name+iY(e.deprecationReason)),iQ(o)+`enum ${o.name}`+iP(u)):e3(e)?(c=Object.values((a=e).getFields()).map((e,t)=>iQ(e," ",!t)+" "+iB(e)),iQ(a)+`input ${a.name}`+(a.isOneOf?" @oneOf":"")+iP(c)):void _(!1,"Unexpected type: "+ei(e))}function iM(e){let t=e.getInterfaces();return t.length?" implements "+t.map(e=>e.name).join(" & "):""}function ij(e){return iP(Object.values(e.getFields()).map((e,t)=>iQ(e," ",!t)+" "+e.name+iG(e.args," ")+": "+String(e.type)+iY(e.deprecationReason)))}function iP(e){return 0!==e.length?" {\n"+e.join("\n")+"\n}":""}function iG(e,t=""){return 0===e.length?"":e.every(e=>!e.description)?"("+e.map(iB).join(", ")+")":"(\n"+e.map((e,n)=>iQ(e," "+t,!n)+" "+t+iB(e)).join("\n")+"\n"+t+")"}function iB(e){let t=ne(e.defaultValue,e.type),n=e.name+": "+String(e.type);return t&&(n+=` = ${eF(t)}`),n+iY(e.deprecationReason)}function iY(e){if(null==e)return"";if(e!==t3){let t=eF({kind:p.STRING,value:e});return` @deprecated(reason: ${t})`}return" @deprecated"}function iQ(e,t="",n=!0){let{description:r}=e;return null==r?"":(t&&!n?"\n"+t:t)+eF({kind:p.STRING,value:r,block:function(e){if(""===e)return!0;let t=!0,n=!1,r=!0,i=!1;for(let o=0;oe===i||e.kind===p.FRAGMENT_DEFINITION&&t.has(e.name.value))}}return r}function iK(e){let t=[];return ek(e,{FragmentSpread(e){t.push(e.name.value)}}),t}function iX(e){let t=eo(e,ea)?e:new ea(e),n=t.body,r=new Q(t),i="",o=!1;for(;r.advance().kind!==d.EOF;){let e=r.token,t=e.kind,a=!q(e.kind);o&&(a||e.kind===d.SPREAD)&&(i+=" ");let s=n.slice(e.start,e.end);t===d.BLOCK_STRING?i+=Y(e.value,{minimize:!0}):i+=s,o=a}return i}function iz(e){let t=iH(e);if(t)throw t;return e}function iH(e){if("string"==typeof e||N(!1,"Expected name to be a string."),e.startsWith("__"))return new w(`Name "${e}" must not begin with "__", which is reserved by GraphQL introspection.`);try{eB(e)}catch(e){return e}}function iW(e,t){return i0(e,t).filter(e=>e.type in h)}function iZ(e,t){return i0(e,t).filter(e=>e.type in m)}function i0(e,t){return[...function(e,t){let n=[],r=i4(Object.values(e.getTypeMap()),Object.values(t.getTypeMap()));for(let e of r.removed)n.push({type:h.TYPE_REMOVED,description:tz(e)?`Standard scalar ${e.name} was removed because it is not referenced anymore.`:`${e.name} was removed.`});for(let[e,t]of r.persisted)e1(e)&&e1(t)?n.push(...function(e,t){let n=[],r=i4(e.getValues(),t.getValues());for(let t of r.added)n.push({type:m.VALUE_ADDED_TO_ENUM,description:`${t.name} was added to enum type ${e.name}.`});for(let t of r.removed)n.push({type:h.VALUE_REMOVED_FROM_ENUM,description:`${t.name} was removed from enum type ${e.name}.`});return n}(e,t)):eZ(e)&&eZ(t)?n.push(...function(e,t){let n=[],r=i4(e.getTypes(),t.getTypes());for(let t of r.added)n.push({type:m.TYPE_ADDED_TO_UNION,description:`${t.name} was added to union type ${e.name}.`});for(let t of r.removed)n.push({type:h.TYPE_REMOVED_FROM_UNION,description:`${t.name} was removed from union type ${e.name}.`});return n}(e,t)):e3(e)&&e3(t)?n.push(...function(e,t){let n=[],r=i4(Object.values(e.getFields()),Object.values(t.getFields()));for(let t of r.added)tU(t)?n.push({type:h.REQUIRED_INPUT_FIELD_ADDED,description:`A required field ${t.name} on input type ${e.name} was added.`}):n.push({type:m.OPTIONAL_INPUT_FIELD_ADDED,description:`An optional field ${t.name} on input type ${e.name} was added.`});for(let t of r.removed)n.push({type:h.FIELD_REMOVED,description:`${e.name}.${t.name} was removed.`});for(let[t,i]of r.persisted)i1(t.type,i.type)||n.push({type:h.FIELD_CHANGED_KIND,description:`${e.name}.${t.name} changed type from ${String(t.type)} to ${String(i.type)}.`});return n}(e,t)):eX(e)&&eX(t)||eH(e)&&eH(t)?n.push(...function(e,t){let n=[],r=i4(Object.values(e.getFields()),Object.values(t.getFields()));for(let t of r.removed)n.push({type:h.FIELD_REMOVED,description:`${e.name}.${t.name} was removed.`});for(let[t,i]of r.persisted)n.push(...function(e,t,n){let r=[],i=i4(t.args,n.args);for(let n of i.removed)r.push({type:h.ARG_REMOVED,description:`${e.name}.${t.name} arg ${n.name} was removed.`});for(let[n,o]of i.persisted)if(i1(n.type,o.type)){if(void 0!==n.defaultValue)if(void 0===o.defaultValue)r.push({type:m.ARG_DEFAULT_VALUE_CHANGE,description:`${e.name}.${t.name} arg ${n.name} defaultValue was removed.`});else{let i=i3(n.defaultValue,n.type),a=i3(o.defaultValue,o.type);i!==a&&r.push({type:m.ARG_DEFAULT_VALUE_CHANGE,description:`${e.name}.${t.name} arg ${n.name} has changed defaultValue from ${i} to ${a}.`})}}else r.push({type:h.ARG_CHANGED_KIND,description:`${e.name}.${t.name} arg ${n.name} has changed type from ${String(n.type)} to ${String(o.type)}.`});for(let n of i.added)tw(n)?r.push({type:h.REQUIRED_ARG_ADDED,description:`A required arg ${n.name} on ${e.name}.${t.name} was added.`}):r.push({type:m.OPTIONAL_ARG_ADDED,description:`An optional arg ${n.name} on ${e.name}.${t.name} was added.`});return r}(e,t,i)),!function e(t,n){return e9(t)?e9(n)&&e(t.ofType,n.ofType)||e8(n)&&e(t,n.ofType):e8(t)?e8(n)&&e(t.ofType,n.ofType):ty(n)&&t.name===n.name||e8(n)&&e(t,n.ofType)}(t.type,i.type)&&n.push({type:h.FIELD_CHANGED_KIND,description:`${e.name}.${t.name} changed type from ${String(t.type)} to ${String(i.type)}.`});return n}(e,t),...function(e,t){let n=[],r=i4(e.getInterfaces(),t.getInterfaces());for(let t of r.added)n.push({type:m.IMPLEMENTED_INTERFACE_ADDED,description:`${t.name} added to interfaces implemented by ${e.name}.`});for(let t of r.removed)n.push({type:h.IMPLEMENTED_INTERFACE_REMOVED,description:`${e.name} no longer implements interface ${t.name}.`});return n}(e,t)):e.constructor!==t.constructor&&n.push({type:h.TYPE_CHANGED_KIND,description:`${e.name} changed from ${i2(e)} to ${i2(t)}.`});return n}(e,t),...function(e,t){let n=[],r=i4(e.getDirectives(),t.getDirectives());for(let e of r.removed)n.push({type:h.DIRECTIVE_REMOVED,description:`${e.name} was removed.`});for(let[e,t]of r.persisted){let r=i4(e.args,t.args);for(let t of r.added)tw(t)&&n.push({type:h.REQUIRED_DIRECTIVE_ARG_ADDED,description:`A required arg ${t.name} on directive ${e.name} was added.`});for(let t of r.removed)n.push({type:h.DIRECTIVE_ARG_REMOVED,description:`${t.name} was removed from ${e.name}.`});for(let r of(e.isRepeatable&&!t.isRepeatable&&n.push({type:h.DIRECTIVE_REPEATABLE_REMOVED,description:`Repeatable flag was removed from ${e.name}.`}),e.locations))t.locations.includes(r)||n.push({type:h.DIRECTIVE_LOCATION_REMOVED,description:`${r} was removed from ${e.name}.`})}return n}(e,t)]}(s=h||(h={})).TYPE_REMOVED="TYPE_REMOVED",s.TYPE_CHANGED_KIND="TYPE_CHANGED_KIND",s.TYPE_REMOVED_FROM_UNION="TYPE_REMOVED_FROM_UNION",s.VALUE_REMOVED_FROM_ENUM="VALUE_REMOVED_FROM_ENUM",s.REQUIRED_INPUT_FIELD_ADDED="REQUIRED_INPUT_FIELD_ADDED",s.IMPLEMENTED_INTERFACE_REMOVED="IMPLEMENTED_INTERFACE_REMOVED",s.FIELD_REMOVED="FIELD_REMOVED",s.FIELD_CHANGED_KIND="FIELD_CHANGED_KIND",s.REQUIRED_ARG_ADDED="REQUIRED_ARG_ADDED",s.ARG_REMOVED="ARG_REMOVED",s.ARG_CHANGED_KIND="ARG_CHANGED_KIND",s.DIRECTIVE_REMOVED="DIRECTIVE_REMOVED",s.DIRECTIVE_ARG_REMOVED="DIRECTIVE_ARG_REMOVED",s.REQUIRED_DIRECTIVE_ARG_ADDED="REQUIRED_DIRECTIVE_ARG_ADDED",s.DIRECTIVE_REPEATABLE_REMOVED="DIRECTIVE_REPEATABLE_REMOVED",s.DIRECTIVE_LOCATION_REMOVED="DIRECTIVE_LOCATION_REMOVED",(l=m||(m={})).VALUE_ADDED_TO_ENUM="VALUE_ADDED_TO_ENUM",l.TYPE_ADDED_TO_UNION="TYPE_ADDED_TO_UNION",l.OPTIONAL_INPUT_FIELD_ADDED="OPTIONAL_INPUT_FIELD_ADDED",l.OPTIONAL_ARG_ADDED="OPTIONAL_ARG_ADDED",l.IMPLEMENTED_INTERFACE_ADDED="IMPLEMENTED_INTERFACE_ADDED",l.ARG_DEFAULT_VALUE_CHANGE="ARG_DEFAULT_VALUE_CHANGE";function i1(e,t){return e9(e)?e9(t)&&i1(e.ofType,t.ofType):e8(e)?e8(t)&&i1(e.ofType,t.ofType)||!e8(t)&&i1(e.ofType,t):ty(t)&&e.name===t.name}function i2(e){return eJ(e)?"a Scalar type":eX(e)?"an Object type":eH(e)?"an Interface type":eZ(e)?"a Union type":e1(e)?"an Enum type":e3(e)?"an Input type":void _(!1,"Unexpected type: "+ei(e))}function i3(e,t){let n=ne(e,t);return null!=n||_(!1),eF(n3(n))}function i4(e,t){let n=[],r=[],i=[],o=eE(e,({name:e})=>e),a=eE(t,({name:e})=>e);for(let t of e){let e=a[t.name];void 0===e?r.push(t):i.push([t,e])}for(let e of t)void 0===o[e.name]&&n.push(e);return{added:n,persisted:i,removed:r}}function i9(e,t){return i5(e,ep(t))}function i5(e,t){switch(t.kind){case p.TYPE_COORDINATE:let n=t.name.value,r=e.getType(n);if(null!=r)return{kind:"NamedType",type:r};return;case p.MEMBER_COORDINATE:return function(e,t){let n=t.name.value,r=e.getType(n);if(!r)throw Error(`Expected ${ei(n)} to be defined as a type in the schema.`);if(!e1(r)&&!e3(r)&&!eX(r)&&!eH(r))throw Error(`Expected ${ei(n)} to be an Enum, Input Object, Object or Interface type.`);if(e1(r)){let e=t.memberName.value,n=r.getValue(e);if(null==n)return;return{kind:"EnumValue",type:r,enumValue:n}}if(e3(r)){let e=t.memberName.value,n=r.getFields()[e];if(null==n)return;return{kind:"InputField",type:r,inputField:n}}let i=t.memberName.value,o=r.getFields()[i];if(null!=o)return{kind:"Field",type:r,field:o}}(e,t);case p.ARGUMENT_COORDINATE:return function(e,t){let n=t.name.value,r=e.getType(n);if(null==r)throw Error(`Expected ${ei(n)} to be defined as a type in the schema.`);if(!eX(r)&&!eH(r))throw Error(`Expected ${ei(n)} to be an object type or interface type.`);let i=t.fieldName.value,o=r.getFields()[i];if(null==o)throw Error(`Expected ${ei(i)} to exist as a field of type ${ei(n)} in the schema.`);let a=t.argumentName.value,s=o.args.find(e=>e.name===a);if(null!=s)return{kind:"FieldArgument",type:r,field:o,fieldArgument:s}}(e,t);case p.DIRECTIVE_COORDINATE:let i=t.name.value,o=e.getDirective(i);if(o)return{kind:"Directive",directive:o};return;case p.DIRECTIVE_ARGUMENT_COORDINATE:return function(e,t){let n=t.name.value,r=e.getDirective(n);if(!r)throw Error(`Expected ${ei(n)} to be defined as a directive in the schema.`);let{argumentName:{value:i}}=t,o=r.args.find(e=>e.name===i);if(o)return{kind:"DirectiveArgument",directive:r,directiveArgument:o}}(e,t)}}module.exports=E})(); \ No newline at end of file diff --git a/vendor/package.json b/vendor/package.json index 0c465f3cd96..9068a783ff8 100644 --- a/vendor/package.json +++ b/vendor/package.json @@ -12,6 +12,7 @@ "@opentelemetry/resources": ">=1.0.0 <1.31.0", "crypto-randomuuid": "^1.0.0", "escape-string-regexp": "^5.0.0", + "graphql": "^16.12.0", "ignore": "^7.0.5", "istanbul-lib-coverage": "^3.2.2", "jest-docblock": "^29.7.0", diff --git a/vendor/yarn.lock b/vendor/yarn.lock index cec19c94122..7a953f1f114 100644 --- a/vendor/yarn.lock +++ b/vendor/yarn.lock @@ -1039,6 +1039,11 @@ graceful-fs@^4.2.6: resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.2.11.tgz#4183e4e8bf08bb6e05bbb2f7d2e0c8f712ca40e3" integrity sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ== +graphql@^16.12.0: + version "16.12.0" + resolved "https://registry.yarnpkg.com/graphql/-/graphql-16.12.0.tgz#28cc2462435b1ac3fdc6976d030cef83a0c13ac7" + integrity sha512-DKKrynuQRne0PNpEbzuEdHlYOMksHSUI8Zc9Unei5gTsMNA2/vMpoMz/yKba50pejK56qj98qM0SjYxAKi13gQ== + gzip-size@^6.0.0: version "6.0.0" resolved "https://registry.yarnpkg.com/gzip-size/-/gzip-size-6.0.0.tgz#065367fd50c239c0671cbcbad5be3e2eeb10e462" From 2f8e2a914f161b5822a804c23fa677385e8bb1d6 Mon Sep 17 00:00:00 2001 From: Roch Devost Date: Thu, 4 Dec 2025 11:59:17 -0500 Subject: [PATCH 61/95] remove dependency on graphql --- .../datadog-instrumentations/src/graphql.js | 20 +++ .../datadog-plugin-graphql/src/execute.js | 23 +++- .../src/tools/transforms.js | 17 +-- packages/node_modules/graphql/LICENSE | 21 --- packages/node_modules/graphql/index.js | 121 ------------------ vendor/package.json | 1 - vendor/yarn.lock | 5 - 7 files changed, 48 insertions(+), 160 deletions(-) delete mode 100644 packages/node_modules/graphql/LICENSE delete mode 100644 packages/node_modules/graphql/index.js diff --git a/packages/datadog-instrumentations/src/graphql.js b/packages/datadog-instrumentations/src/graphql.js index 2568661d4c7..53d8ad08a0c 100644 --- a/packages/datadog-instrumentations/src/graphql.js +++ b/packages/datadog-instrumentations/src/graphql.js @@ -15,6 +15,11 @@ const patchedTypes = new WeakSet() /** CHANNELS */ +// load channels +const visitorLoadCh = channel('apm:graphql:visitor:load') +const printerLoadCh = channel('apm:graphql:printer:load') +const utilitiesLoadCh = channel('apm:graphql:utilities:load') + // execute channels const startExecuteCh = channel('apm:graphql:execute:start') const finishExecuteCh = channel('apm:graphql:execute:finish') @@ -360,3 +365,18 @@ addHook({ name: 'graphql', file: 'validation/validate.js', versions: ['>=0.10'] return validate }) + +addHook({ name: 'graphql', file: 'language/printer.js', versions: ['>=0.10'] }, printer => { + printerLoadCh.publish(printer) + return printer +}) + +addHook({ name: 'graphql', file: 'language/visitor.js', versions: ['>=0.10'] }, visitor => { + visitorLoadCh.publish(visitor) + return visitor +}) + +addHook({ name: 'graphql', file: 'utilities/index.js', versions: ['>=0.10'] }, utilities => { + utilitiesLoadCh.publish(utilities) + return utilities +}) diff --git a/packages/datadog-plugin-graphql/src/execute.js b/packages/datadog-plugin-graphql/src/execute.js index ede87f96f2e..4cb3d9824b7 100644 --- a/packages/datadog-plugin-graphql/src/execute.js +++ b/packages/datadog-plugin-graphql/src/execute.js @@ -11,6 +11,22 @@ class GraphQLExecutePlugin extends TracingPlugin { static type = 'graphql' static kind = 'server' + constructor (...args) { + super(...args) + + this.addSub('apm:graphql:visitor:load', visitor => { + this._visitor = visitor + }) + + this.addSub('apm:graphql:printer:load', printer => { + this._printer = printer + }) + + this.addSub('apm:graphql:utilities:load', utilities => { + this._utilities = utilities + }) + } + bindStart (ctx) { const { operation, args, docSource } = ctx @@ -21,7 +37,7 @@ class GraphQLExecutePlugin extends TracingPlugin { const span = this.startSpan(this.operationName(), { service: this.config.service || this.serviceName(), - resource: getSignature(document, name, type, this.config.signature), + resource: getSignature(document, name, type, this.config.signature, this), kind: this.constructor.kind, type: this.constructor.type, meta: { @@ -66,10 +82,13 @@ function addVariableTags (config, span, variableValues) { span.addTags(tags) } -function getSignature (document, operationName, operationType, calculate) { +function getSignature (document, operationName, operationType, calculate, self) { if (calculate !== false && tools !== false) { try { try { + globalThis._dd_graphql_visitor = self._visitor + globalThis._dd_graphql_printer = self._printer + globalThis._dd_graphql_utilities = self._utilities tools = tools || require('./tools') } catch (e) { tools = false diff --git a/packages/datadog-plugin-graphql/src/tools/transforms.js b/packages/datadog-plugin-graphql/src/tools/transforms.js index b79712719fd..2d178498417 100644 --- a/packages/datadog-plugin-graphql/src/tools/transforms.js +++ b/packages/datadog-plugin-graphql/src/tools/transforms.js @@ -5,12 +5,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); -const visitor_1 = require("graphql"); -const printer_1 = require("graphql"); -const utilities_1 = require("graphql"); const lodash_sortby_1 = __importDefault(require("lodash.sortby")); function hideLiterals(ast) { - return visitor_1.visit(ast, { + return globalThis._dd_graphql_visitor.visit(ast, { IntValue(node) { return Object.assign({}, node, { value: "0" }); }, @@ -30,7 +27,7 @@ function hideLiterals(ast) { } exports.hideLiterals = hideLiterals; function hideStringAndNumericLiterals(ast) { - return visitor_1.visit(ast, { + return globalThis._dd_graphql_visitor.visit(ast, { IntValue(node) { return Object.assign({}, node, { value: "0" }); }, @@ -44,7 +41,7 @@ function hideStringAndNumericLiterals(ast) { } exports.hideStringAndNumericLiterals = hideStringAndNumericLiterals; function dropUnusedDefinitions(ast, operationName) { - const separated = utilities_1.separateOperations(ast)[operationName]; + const separated = globalThis._dd_graphql_utilities.separateOperations(ast)[operationName]; if (!separated) { return ast; } @@ -58,7 +55,7 @@ function sorted(items) { return undefined; } function sortAST(ast) { - return visitor_1.visit(ast, { + return globalThis._dd_graphql_visitor.visit(ast, { OperationDefinition(node) { return Object.assign({}, node, { variableDefinitions: sorted(node.variableDefinitions, "variable.name.value") }); }, @@ -84,7 +81,7 @@ function sortAST(ast) { } exports.sortAST = sortAST; function removeAliases(ast) { - return visitor_1.visit(ast, { + return globalThis._dd_graphql_visitor.visit(ast, { Field(node) { return Object.assign({}, node, { alias: undefined }); } @@ -92,12 +89,12 @@ function removeAliases(ast) { } exports.removeAliases = removeAliases; function printWithReducedWhitespace(ast) { - const sanitizedAST = visitor_1.visit(ast, { + const sanitizedAST = globalThis._dd_graphql_visitor.visit(ast, { StringValue(node) { return Object.assign({}, node, { value: Buffer.from(node.value, "utf8").toString("hex"), block: false }); } }); - const withWhitespace = printer_1.print(sanitizedAST); + const withWhitespace = globalThis._dd_graphql_printer.print(sanitizedAST); const minimizedButStillHex = withWhitespace .replace(/\s+/g, " ") .replace(/([^_a-zA-Z0-9]) /g, (_, c) => c) diff --git a/packages/node_modules/graphql/LICENSE b/packages/node_modules/graphql/LICENSE deleted file mode 100644 index 7bbf892a049..00000000000 --- a/packages/node_modules/graphql/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright (c) GraphQL Contributors - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/packages/node_modules/graphql/index.js b/packages/node_modules/graphql/index.js deleted file mode 100644 index 3d29c46fd32..00000000000 --- a/packages/node_modules/graphql/index.js +++ /dev/null @@ -1,121 +0,0 @@ -(()=>{"use strict";let e;var t,n,r,i,o,a,s,l,u,c,p,d,f,h,m,y={};y.d=(e,t)=>{for(var n in t)y.o(t,n)&&!y.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},y.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),y.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var E={};y.r(E),y.d(E,{VariablesAreInputTypesRule:()=>rP,SingleFieldSubscriptionsRule:()=>rb,UniqueVariableNamesRule:()=>rU,GraphQLDeprecatedDirective:()=>t4,GraphQLNonNull:()=>tc,__InputValue:()=>ns,createSourceEventStream:()=>ih,execute:()=>r1,isDefinitionNode:()=>nk,isInterfaceType:()=>eH,isRequiredArgument:()=>tw,isValidNameError:()=>iH,parseValue:()=>el,valueFromAST:()=>rm,NoUnusedVariablesRule:()=>n2,__DirectiveLocation:()=>ni,findDangerousChanges:()=>iZ,__TypeKind:()=>nu,isSchema:()=>nm,UniqueTypeNamesRule:()=>rV,NoSchemaIntrospectionCustomRule:()=>iE,defaultTypeResolver:()=>io,isType:()=>eQ,syntaxError:()=>$,version:()=>T,UniqueFragmentNamesRule:()=>r$,assertWrappingType:()=>td,getNullableType:()=>tm,isObjectType:()=>eX,visitWithTypeInfo:()=>nR,assertEnumValueName:()=>eY,printSchema:()=>ix,validate:()=>rX,BREAK:()=>eR,assertNonNullType:()=>e6,assertNullableType:()=>th,executeSync:()=>r2,isLeafType:()=>tr,resolveSchemaCoordinate:()=>i9,assertOutputType:()=>tn,buildASTSchema:()=>iS,astFromValue:()=>ne,Kind:()=>p,ProvidedRequiredArgumentsRule:()=>ra,UniqueDirectiveNamesRule:()=>rw,KnownDirectivesRule:()=>nq,DEFAULT_DEPRECATION_REASON:()=>t3,TypeKind:()=>f,assertInterfaceType:()=>eW,isValueNode:()=>nx,GraphQLSpecifiedByDirective:()=>t9,GraphQLFloat:()=>tQ,UniqueFieldDefinitionNamesRule:()=>rL,LoneAnonymousOperationRule:()=>nz,VariablesInAllowedPositionRule:()=>rG,assertInputType:()=>te,formatError:()=>L,assertInputObjectType:()=>e4,isOutputType:()=>tt,isWrappingType:()=>tp,assertLeafType:()=>ti,assertValidSchema:()=>nN,FragmentsOnCompositeTypesRule:()=>nB,graphql:()=>il,UniqueOperationTypesRule:()=>rC,parseSchemaCoordinate:()=>ep,UniqueEnumValueNamesRule:()=>rk,isNonNullType:()=>e8,isSelectionNode:()=>n$,printError:()=>k,specifiedDirectives:()=>t8,visit:()=>ek,GraphQLScalarType:()=>tI,assertEnumType:()=>e2,UniqueDirectivesPerLocationRule:()=>rR,assertName:()=>eB,getDirectiveValues:()=>rv,isConstValueNode:()=>function e(t){return nx(t)&&(t.kind===p.LIST?t.values.some(e):t.kind===p.OBJECT?t.fields.some(t=>e(t.value)):t.kind!==p.VARIABLE)},isEqualType:()=>tM,isNamedType:()=>ty,isTypeDefinitionNode:()=>nV,validateSchema:()=>nv,parse:()=>es,__Schema:()=>nn,isTypeSystemDefinitionNode:()=>nC,valueFromASTUntyped:()=>eG,LoneSchemaDefinitionRule:()=>nH,isTypeSubTypeOf:()=>tj,UniqueArgumentNamesRule:()=>rS,UniqueInputFieldNamesRule:()=>rx,locatedError:()=>rZ,typeFromAST:()=>nA,printLocation:()=>D,assertUnionType:()=>e0,separateOperations:()=>iJ,getVariableValues:()=>rE,Location:()=>x,GraphQLObjectType:()=>tg,UniqueArgumentDefinitionNamesRule:()=>rA,stripIgnoredCharacters:()=>iX,GRAPHQL_MAX_INT:()=>tG,visitInParallel:()=>eL,parseType:()=>ec,isTypeNode:()=>nF,PossibleTypeExtensionsRule:()=>ri,graphqlSync:()=>iu,isSchemaCoordinateNode:()=>nj,DirectiveLocation:()=>c,TypeNameMetaFieldDef:()=>nd,coerceInputValue:()=>rf,GraphQLInt:()=>tY,resolveObjMapThunk:()=>tN,GraphQLInterfaceType:()=>tR,UniqueOperationNamesRule:()=>rF,GraphQLSkipDirective:()=>t2,isEnumType:()=>e1,assertValidName:()=>iz,buildClientSchema:()=>ig,KnownArgumentNamesRule:()=>nY,ValuesOfCorrectTypeRule:()=>rM,isInputObjectType:()=>e3,GraphQLID:()=>tK,NoUnusedFragmentsRule:()=>n1,isUnionType:()=>eZ,isSpecifiedScalarType:()=>tz,getArgumentValues:()=>rT,printSourceLocation:()=>A,__EnumValue:()=>nl,getOperationAST:()=>iv,isExecutableDefinitionNode:()=>nL,isAbstractType:()=>ts,assertAbstractType:()=>tl,isTypeExtensionNode:()=>nM,GraphQLInputObjectType:()=>tC,getNamedType:()=>tT,parseConstValue:()=>eu,KnownFragmentNamesRule:()=>nJ,isListType:()=>e9,Lexer:()=>Q,isSpecifiedDirective:()=>t6,responsePathAsArray:()=>rd,isDirective:()=>tW,TypeInfo:()=>nS,assertScalarType:()=>eK,extendSchema:()=>i_,isIntrospectionType:()=>nh,print:()=>eF,getIntrospectionQuery:()=>iT,GraphQLBoolean:()=>tJ,KnownTypeNamesRule:()=>nK,assertListType:()=>e5,concatAST:()=>iq,NoDeprecatedCustomRule:()=>iy,defaultFieldResolver:()=>ia,GraphQLDirective:()=>t0,getLocation:()=>b,TypeMetaFieldDef:()=>np,GRAPHQL_MIN_INT:()=>tB,GraphQLIncludeDirective:()=>t1,ScalarLeafsRule:()=>ru,assertSchema:()=>ny,lexicographicSortSchema:()=>iR,GraphQLList:()=>tu,isTypeSystemExtensionNode:()=>nU,specifiedScalarTypes:()=>tX,BreakingChangeType:()=>h,ExecutableDefinitionsRule:()=>nP,assertDirective:()=>tZ,__Field:()=>na,getVisitFn:()=>ex,recommendedRules:()=>rB,SchemaMetaFieldDef:()=>nc,assertCompositeType:()=>ta,isRequiredInputField:()=>tU,Token:()=>F,specifiedRules:()=>rY,DangerousChangeType:()=>m,GraphQLUnionType:()=>tk,isCompositeType:()=>to,versionInfo:()=>v,FieldsOnCorrectTypeRule:()=>nG,GraphQLString:()=>tq,assertType:()=>eq,introspectionFromSchema:()=>iI,doTypesOverlap:()=>tP,GraphQLEnumType:()=>t$,resolveReadonlyArrayThunk:()=>tv,GraphQLOneOfDirective:()=>t5,NoFragmentCyclesRule:()=>nZ,findBreakingChanges:()=>iW,ValidationContext:()=>rK,OverlappingFieldsCanBeMergedRule:()=>n4,isScalarType:()=>eJ,MaxIntrospectionDepthRule:()=>nW,NoUndefinedVariablesRule:()=>n0,assertObjectType:()=>ez,getOperationRootType:()=>iN,printType:()=>iU,OperationTypeNode:()=>u,isInputType:()=>e7,__Directive:()=>nr,GraphQLSchema:()=>nE,Source:()=>ea,resolveASTSchemaCoordinate:()=>i5,GraphQLError:()=>w,assertNamedType:()=>tE,buildSchema:()=>iw,introspectionTypes:()=>nf,PossibleFragmentSpreadsRule:()=>rr,__Type:()=>no,getEnterLeaveForKind:()=>e$,TokenKind:()=>d,printIntrospectionSchema:()=>iF,isNullableType:()=>tf,subscribe:()=>id});let T="16.12.0",v=Object.freeze({major:16,minor:12,patch:0,preReleaseTag:null});function N(e,t){if(!e)throw Error(t)}function I(e){return"function"==typeof(null==e?void 0:e.then)}function g(e){return"object"==typeof e&&null!==e}function _(e,t){if(!e)throw Error(null!=t?t:"Unexpected invariant triggered.")}let O=/\r\n|[\n\r]/g;function b(e,t){let n=0,r=1;for(let i of e.body.matchAll(O)){if("number"==typeof i.index||_(!1),i.index>=t)break;n=i.index+i[0].length,r+=1}return{line:r,column:t+1-n}}function D(e){return A(e.source,b(e.source,e.start))}function A(e,t){let n=e.locationOffset.column-1,r="".padStart(n)+e.body,i=t.line-1,o=e.locationOffset.line-1,a=t.line+o,s=1===t.line?n:0,l=t.column+s,u=`${e.name}:${a}:${l} -`,c=r.split(/\r\n|[\n\r]/g),p=c[i];if(p.length>120){let e=Math.floor(l/80),t=[];for(let e=0;e["|",e]),["|","^".padStart(l%80)],["|",t[e+1]]])}return u+S([[`${a-1} |`,c[i-1]],[`${a} |`,p],["|","^".padStart(l)],[`${a+1} |`,c[i+1]]])}function S(e){let t=e.filter(([e,t])=>void 0!==t),n=Math.max(...t.map(([e])=>e.length));return t.map(([e,t])=>e.padStart(n)+(t?" "+t:"")).join("\n")}class w extends Error{constructor(e,...t){var n,r,i;const{nodes:o,source:a,positions:s,path:l,originalError:u,extensions:c}=function(e){let t=e[0];return null==t||"kind"in t||"length"in t?{nodes:t,source:e[1],positions:e[2],path:e[3],originalError:e[4],extensions:e[5]}:t}(t);super(e),this.name="GraphQLError",this.path=null!=l?l:void 0,this.originalError=null!=u?u:void 0,this.nodes=R(Array.isArray(o)?o:o?[o]:void 0);const p=R(null==(n=this.nodes)?void 0:n.map(e=>e.loc).filter(e=>null!=e));this.source=null!=a?a:null==p||null==(r=p[0])?void 0:r.source,this.positions=null!=s?s:null==p?void 0:p.map(e=>e.start),this.locations=s&&a?s.map(e=>b(a,e)):null==p?void 0:p.map(e=>b(e.source,e.start));const d=g(null==u?void 0:u.extensions)?null==u?void 0:u.extensions:void 0;this.extensions=null!=(i=null!=c?c:d)?i:Object.create(null),Object.defineProperties(this,{message:{writable:!0,enumerable:!0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),null!=u&&u.stack?Object.defineProperty(this,"stack",{value:u.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,w):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let e=this.message;if(this.nodes)for(let t of this.nodes)t.loc&&(e+="\n\n"+D(t.loc));else if(this.source&&this.locations)for(let t of this.locations)e+="\n\n"+A(this.source,t);return e}toJSON(){let e={message:this.message};return null!=this.locations&&(e.locations=this.locations),null!=this.path&&(e.path=this.path),null!=this.extensions&&Object.keys(this.extensions).length>0&&(e.extensions=this.extensions),e}}function R(e){return void 0===e||0===e.length?void 0:e}function k(e){return e.toString()}function L(e){return e.toJSON()}function $(e,t,n){return new w(`Syntax Error: ${n}`,{source:e,positions:[t]})}class x{constructor(e,t,n){this.start=e.start,this.end=t.end,this.startToken=e,this.endToken=t,this.source=n}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}}class F{constructor(e,t,n,r,i,o){this.kind=e,this.start=t,this.end=n,this.line=r,this.column=i,this.value=o,this.prev=null,this.next=null}get[Symbol.toStringTag](){return"Token"}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}}let C={Name:[],Document:["definitions"],OperationDefinition:["description","name","variableDefinitions","directives","selectionSet"],VariableDefinition:["description","variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["description","name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"],TypeCoordinate:["name"],MemberCoordinate:["name","memberName"],ArgumentCoordinate:["name","fieldName","argumentName"],DirectiveCoordinate:["name"],DirectiveArgumentCoordinate:["name","argumentName"]},V=new Set(Object.keys(C));function U(e){let t=null==e?void 0:e.kind;return"string"==typeof t&&V.has(t)}function M(e){return 9===e||32===e}function j(e){return e>=48&&e<=57}function P(e){return e>=97&&e<=122||e>=65&&e<=90}function G(e){return P(e)||95===e}function B(e){return P(e)||j(e)||95===e}function Y(e,t){let n=e.replace(/"""/g,'\\"""'),r=n.split(/\r\n|[\n\r]/g),i=1===r.length,o=r.length>1&&r.slice(1).every(e=>0===e.length||M(e.charCodeAt(0))),a=n.endsWith('\\"""'),s=e.endsWith('"')&&!a,l=e.endsWith("\\"),u=s||l,c=!(null!=t&&t.minimize)&&(!i||e.length>70||u||o||a),p="",d=i&&M(e.charCodeAt(0));return(c&&!d||o)&&(p+="\n"),p+=n,(c||u)&&(p+="\n"),'"""'+p+'"""'}(t=u||(u={})).QUERY="query",t.MUTATION="mutation",t.SUBSCRIPTION="subscription",(n=c||(c={})).QUERY="QUERY",n.MUTATION="MUTATION",n.SUBSCRIPTION="SUBSCRIPTION",n.FIELD="FIELD",n.FRAGMENT_DEFINITION="FRAGMENT_DEFINITION",n.FRAGMENT_SPREAD="FRAGMENT_SPREAD",n.INLINE_FRAGMENT="INLINE_FRAGMENT",n.VARIABLE_DEFINITION="VARIABLE_DEFINITION",n.SCHEMA="SCHEMA",n.SCALAR="SCALAR",n.OBJECT="OBJECT",n.FIELD_DEFINITION="FIELD_DEFINITION",n.ARGUMENT_DEFINITION="ARGUMENT_DEFINITION",n.INTERFACE="INTERFACE",n.UNION="UNION",n.ENUM="ENUM",n.ENUM_VALUE="ENUM_VALUE",n.INPUT_OBJECT="INPUT_OBJECT",n.INPUT_FIELD_DEFINITION="INPUT_FIELD_DEFINITION",(r=p||(p={})).NAME="Name",r.DOCUMENT="Document",r.OPERATION_DEFINITION="OperationDefinition",r.VARIABLE_DEFINITION="VariableDefinition",r.SELECTION_SET="SelectionSet",r.FIELD="Field",r.ARGUMENT="Argument",r.FRAGMENT_SPREAD="FragmentSpread",r.INLINE_FRAGMENT="InlineFragment",r.FRAGMENT_DEFINITION="FragmentDefinition",r.VARIABLE="Variable",r.INT="IntValue",r.FLOAT="FloatValue",r.STRING="StringValue",r.BOOLEAN="BooleanValue",r.NULL="NullValue",r.ENUM="EnumValue",r.LIST="ListValue",r.OBJECT="ObjectValue",r.OBJECT_FIELD="ObjectField",r.DIRECTIVE="Directive",r.NAMED_TYPE="NamedType",r.LIST_TYPE="ListType",r.NON_NULL_TYPE="NonNullType",r.SCHEMA_DEFINITION="SchemaDefinition",r.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",r.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",r.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",r.FIELD_DEFINITION="FieldDefinition",r.INPUT_VALUE_DEFINITION="InputValueDefinition",r.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",r.UNION_TYPE_DEFINITION="UnionTypeDefinition",r.ENUM_TYPE_DEFINITION="EnumTypeDefinition",r.ENUM_VALUE_DEFINITION="EnumValueDefinition",r.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",r.DIRECTIVE_DEFINITION="DirectiveDefinition",r.SCHEMA_EXTENSION="SchemaExtension",r.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",r.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",r.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",r.UNION_TYPE_EXTENSION="UnionTypeExtension",r.ENUM_TYPE_EXTENSION="EnumTypeExtension",r.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension",r.TYPE_COORDINATE="TypeCoordinate",r.MEMBER_COORDINATE="MemberCoordinate",r.ARGUMENT_COORDINATE="ArgumentCoordinate",r.DIRECTIVE_COORDINATE="DirectiveCoordinate",r.DIRECTIVE_ARGUMENT_COORDINATE="DirectiveArgumentCoordinate",(i=d||(d={})).SOF="",i.EOF="",i.BANG="!",i.DOLLAR="$",i.AMP="&",i.PAREN_L="(",i.PAREN_R=")",i.DOT=".",i.SPREAD="...",i.COLON=":",i.EQUALS="=",i.AT="@",i.BRACKET_L="[",i.BRACKET_R="]",i.BRACE_L="{",i.PIPE="|",i.BRACE_R="}",i.NAME="Name",i.INT="Int",i.FLOAT="Float",i.STRING="String",i.BLOCK_STRING="BlockString",i.COMMENT="Comment";class Q{constructor(e){const t=new F(d.SOF,0,0,0,0);this.source=e,this.lastToken=t,this.token=t,this.line=1,this.lineStart=0}get[Symbol.toStringTag](){return"Lexer"}advance(){return this.lastToken=this.token,this.token=this.lookahead()}lookahead(){let e=this.token;if(e.kind!==d.EOF)do if(e.next)e=e.next;else{let t=function(e,t){let n=e.source.body,r=n.length,i=t;for(;i0===t?e:e.slice(r)).slice(null!=(t=i)?t:0,o+1)})(l).join("\n"));return e.line+=l.length-1,e.lineStart=i,r}if(92===r&&34===n.charCodeAt(o+1)&&34===n.charCodeAt(o+2)&&34===n.charCodeAt(o+3)){s+=n.slice(a,o),a=o+1,o+=4;continue}if(10===r||13===r){s+=n.slice(a,o),l.push(s),13===r&&10===n.charCodeAt(o+1)?o+=2:++o,s="",a=o,i=o;continue}if(J(r))++o;else if(K(n,o))o+=2;else throw $(e.source,o,`Invalid character within String: ${H(e,o)}.`)}throw $(e.source,o,"Unterminated string.")}(e,i);return function(e,t){let n=e.source.body,r=n.length,i=t+1,o=i,a="";for(;i=0&&e<=55295||e>=57344&&e<=1114111}function K(e,t){return X(e.charCodeAt(t))&&z(e.charCodeAt(t+1))}function X(e){return e>=55296&&e<=56319}function z(e){return e>=56320&&e<=57343}function H(e,t){let n=e.source.body.codePointAt(t);if(void 0===n)return d.EOF;if(n>=32&&n<=126){let e=String.fromCodePoint(n);return'"'===e?"'\"'":`"${e}"`}return"U+"+n.toString(16).toUpperCase().padStart(4,"0")}function W(e,t,n,r,i){let o=e.line,a=1+n-e.lineStart;return new F(t,n,r,o,a,i)}function Z(e,t,n){if(!j(n))throw $(e.source,t,`Invalid number, expected digit but got: ${H(e,t)}.`);let r=e.source.body,i=t+1;for(;j(r.charCodeAt(i));)++i;return i}function ee(e,t){return et(e.charCodeAt(t))<<12|et(e.charCodeAt(t+1))<<8|et(e.charCodeAt(t+2))<<4|et(e.charCodeAt(t+3))}function et(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function en(e,t){let n=e.source.body,r=n.length,i=t+1;for(;i2)return"[Array]";let n=Math.min(10,s.length),r=s.length-n,u=[];for(let t=0;t1&&u.push(`... ${r} more items`),"["+u.join(", ")+"]"}return o=t,a=i,0===(r=Object.entries(o)).length?"{}":a.length>2?"["+function(e){let t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if("Object"===t&&"function"==typeof e.constructor){let t=e.constructor.name;if("string"==typeof t&&""!==t)return t}return t}(o)+"]":"{ "+r.map(([t,n])=>t+": "+e(n,a)).join(", ")+" }"}(t,n);default:return String(t)}}(e,[])}let eo=globalThis.process&&1?function(e,t){return e instanceof t}:function(e,t){if(e instanceof t)return!0;if("object"==typeof e&&null!==e){var n;let r=t.prototype[Symbol.toStringTag];if(r===(Symbol.toStringTag in e?e[Symbol.toStringTag]:null==(n=e.constructor)?void 0:n.name)){let t=ei(e);throw Error(`Cannot use ${r} "${t}" from another module or realm. - -Ensure that there is only one instance of "graphql" in the node_modules -directory. If different versions of "graphql" are the dependencies of other -relied on modules, use "resolutions" to ensure only one version is installed. - -https://yarnpkg.com/en/docs/selective-version-resolutions - -Duplicate "graphql" modules cannot be used at the same time since different -versions may have different capabilities and behavior. The data from one -version used in the function from another could produce confusing and -spurious results.`)}}return!1};class ea{constructor(e,t="GraphQL request",n={line:1,column:1}){"string"==typeof e||N(!1,`Body must be a string. Received: ${ei(e)}.`),this.body=e,this.name=t,this.locationOffset=n,this.locationOffset.line>0||N(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||N(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}}function es(e,t){let n=new ed(e,t),r=n.parseDocument();return Object.defineProperty(r,"tokenCount",{enumerable:!1,value:n.tokenCount}),r}function el(e,t){let n=new ed(e,t);n.expectToken(d.SOF);let r=n.parseValueLiteral(!1);return n.expectToken(d.EOF),r}function eu(e,t){let n=new ed(e,t);n.expectToken(d.SOF);let r=n.parseConstValueLiteral();return n.expectToken(d.EOF),r}function ec(e,t){let n=new ed(e,t);n.expectToken(d.SOF);let r=n.parseTypeReference();return n.expectToken(d.EOF),r}function ep(e){let t=new er(eo(e,ea)?e:new ea(e)),n=new ed(e,{lexer:t});n.expectToken(d.SOF);let r=n.parseSchemaCoordinate();return n.expectToken(d.EOF),r}class ed{constructor(e,t={}){const{lexer:n,...r}=t;if(n)this._lexer=n;else{const t=eo(e,ea)?e:new ea(e);this._lexer=new Q(t)}this._options=r,this._tokenCounter=0}get tokenCount(){return this._tokenCounter}parseName(){let e=this.expectToken(d.NAME);return this.node(e,{kind:p.NAME,value:e.value})}parseDocument(){return this.node(this._lexer.token,{kind:p.DOCUMENT,definitions:this.many(d.SOF,this.parseDefinition,d.EOF)})}parseDefinition(){if(this.peek(d.BRACE_L))return this.parseOperationDefinition();let e=this.peekDescription(),t=e?this._lexer.lookahead():this._lexer.token;if(e&&t.kind===d.BRACE_L)throw $(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are not supported on shorthand queries.");if(t.kind===d.NAME){switch(t.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}switch(t.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition()}if(e)throw $(this._lexer.source,this._lexer.token.start,"Unexpected description, only GraphQL definitions support descriptions.");if("extend"===t.value)return this.parseTypeSystemExtension()}throw this.unexpected(t)}parseOperationDefinition(){let e,t=this._lexer.token;if(this.peek(d.BRACE_L))return this.node(t,{kind:p.OPERATION_DEFINITION,operation:u.QUERY,description:void 0,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});let n=this.parseDescription(),r=this.parseOperationType();return this.peek(d.NAME)&&(e=this.parseName()),this.node(t,{kind:p.OPERATION_DEFINITION,operation:r,description:n,name:e,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){let e=this.expectToken(d.NAME);switch(e.value){case"query":return u.QUERY;case"mutation":return u.MUTATION;case"subscription":return u.SUBSCRIPTION}throw this.unexpected(e)}parseVariableDefinitions(){return this.optionalMany(d.PAREN_L,this.parseVariableDefinition,d.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:p.VARIABLE_DEFINITION,description:this.parseDescription(),variable:this.parseVariable(),type:(this.expectToken(d.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(d.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){let e=this._lexer.token;return this.expectToken(d.DOLLAR),this.node(e,{kind:p.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:p.SELECTION_SET,selections:this.many(d.BRACE_L,this.parseSelection,d.BRACE_R)})}parseSelection(){return this.peek(d.SPREAD)?this.parseFragment():this.parseField()}parseField(){let e,t,n=this._lexer.token,r=this.parseName();return this.expectOptionalToken(d.COLON)?(e=r,t=this.parseName()):t=r,this.node(n,{kind:p.FIELD,alias:e,name:t,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(d.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(e){let t=e?this.parseConstArgument:this.parseArgument;return this.optionalMany(d.PAREN_L,t,d.PAREN_R)}parseArgument(e=!1){let t=this._lexer.token,n=this.parseName();return this.expectToken(d.COLON),this.node(t,{kind:p.ARGUMENT,name:n,value:this.parseValueLiteral(e)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){let e=this._lexer.token;this.expectToken(d.SPREAD);let t=this.expectOptionalKeyword("on");return!t&&this.peek(d.NAME)?this.node(e,{kind:p.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(e,{kind:p.INLINE_FRAGMENT,typeCondition:t?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){let e=this._lexer.token,t=this.parseDescription();return(this.expectKeyword("fragment"),!0===this._options.allowLegacyFragmentVariables)?this.node(e,{kind:p.FRAGMENT_DEFINITION,description:t,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}):this.node(e,{kind:p.FRAGMENT_DEFINITION,description:t,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentName(){if("on"===this._lexer.token.value)throw this.unexpected();return this.parseName()}parseValueLiteral(e){let t=this._lexer.token;switch(t.kind){case d.BRACKET_L:return this.parseList(e);case d.BRACE_L:return this.parseObject(e);case d.INT:return this.advanceLexer(),this.node(t,{kind:p.INT,value:t.value});case d.FLOAT:return this.advanceLexer(),this.node(t,{kind:p.FLOAT,value:t.value});case d.STRING:case d.BLOCK_STRING:return this.parseStringLiteral();case d.NAME:switch(this.advanceLexer(),t.value){case"true":return this.node(t,{kind:p.BOOLEAN,value:!0});case"false":return this.node(t,{kind:p.BOOLEAN,value:!1});case"null":return this.node(t,{kind:p.NULL});default:return this.node(t,{kind:p.ENUM,value:t.value})}case d.DOLLAR:if(e){if(this.expectToken(d.DOLLAR),this._lexer.token.kind===d.NAME){let e=this._lexer.token.value;throw $(this._lexer.source,t.start,`Unexpected variable "$${e}" in constant value.`)}throw this.unexpected(t)}return this.parseVariable();default:throw this.unexpected()}}parseConstValueLiteral(){return this.parseValueLiteral(!0)}parseStringLiteral(){let e=this._lexer.token;return this.advanceLexer(),this.node(e,{kind:p.STRING,value:e.value,block:e.kind===d.BLOCK_STRING})}parseList(e){let t=()=>this.parseValueLiteral(e);return this.node(this._lexer.token,{kind:p.LIST,values:this.any(d.BRACKET_L,t,d.BRACKET_R)})}parseObject(e){let t=()=>this.parseObjectField(e);return this.node(this._lexer.token,{kind:p.OBJECT,fields:this.any(d.BRACE_L,t,d.BRACE_R)})}parseObjectField(e){let t=this._lexer.token,n=this.parseName();return this.expectToken(d.COLON),this.node(t,{kind:p.OBJECT_FIELD,name:n,value:this.parseValueLiteral(e)})}parseDirectives(e){let t=[];for(;this.peek(d.AT);)t.push(this.parseDirective(e));return t}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(e){let t=this._lexer.token;return this.expectToken(d.AT),this.node(t,{kind:p.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e)})}parseTypeReference(){let e,t=this._lexer.token;if(this.expectOptionalToken(d.BRACKET_L)){let n=this.parseTypeReference();this.expectToken(d.BRACKET_R),e=this.node(t,{kind:p.LIST_TYPE,type:n})}else e=this.parseNamedType();return this.expectOptionalToken(d.BANG)?this.node(t,{kind:p.NON_NULL_TYPE,type:e}):e}parseNamedType(){return this.node(this._lexer.token,{kind:p.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(d.STRING)||this.peek(d.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("schema");let n=this.parseConstDirectives(),r=this.many(d.BRACE_L,this.parseOperationTypeDefinition,d.BRACE_R);return this.node(e,{kind:p.SCHEMA_DEFINITION,description:t,directives:n,operationTypes:r})}parseOperationTypeDefinition(){let e=this._lexer.token,t=this.parseOperationType();this.expectToken(d.COLON);let n=this.parseNamedType();return this.node(e,{kind:p.OPERATION_TYPE_DEFINITION,operation:t,type:n})}parseScalarTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("scalar");let n=this.parseName(),r=this.parseConstDirectives();return this.node(e,{kind:p.SCALAR_TYPE_DEFINITION,description:t,name:n,directives:r})}parseObjectTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("type");let n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),o=this.parseFieldsDefinition();return this.node(e,{kind:p.OBJECT_TYPE_DEFINITION,description:t,name:n,interfaces:r,directives:i,fields:o})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(d.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(d.BRACE_L,this.parseFieldDefinition,d.BRACE_R)}parseFieldDefinition(){let e=this._lexer.token,t=this.parseDescription(),n=this.parseName(),r=this.parseArgumentDefs();this.expectToken(d.COLON);let i=this.parseTypeReference(),o=this.parseConstDirectives();return this.node(e,{kind:p.FIELD_DEFINITION,description:t,name:n,arguments:r,type:i,directives:o})}parseArgumentDefs(){return this.optionalMany(d.PAREN_L,this.parseInputValueDef,d.PAREN_R)}parseInputValueDef(){let e,t=this._lexer.token,n=this.parseDescription(),r=this.parseName();this.expectToken(d.COLON);let i=this.parseTypeReference();this.expectOptionalToken(d.EQUALS)&&(e=this.parseConstValueLiteral());let o=this.parseConstDirectives();return this.node(t,{kind:p.INPUT_VALUE_DEFINITION,description:n,name:r,type:i,defaultValue:e,directives:o})}parseInterfaceTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("interface");let n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),o=this.parseFieldsDefinition();return this.node(e,{kind:p.INTERFACE_TYPE_DEFINITION,description:t,name:n,interfaces:r,directives:i,fields:o})}parseUnionTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("union");let n=this.parseName(),r=this.parseConstDirectives(),i=this.parseUnionMemberTypes();return this.node(e,{kind:p.UNION_TYPE_DEFINITION,description:t,name:n,directives:r,types:i})}parseUnionMemberTypes(){return this.expectOptionalToken(d.EQUALS)?this.delimitedMany(d.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("enum");let n=this.parseName(),r=this.parseConstDirectives(),i=this.parseEnumValuesDefinition();return this.node(e,{kind:p.ENUM_TYPE_DEFINITION,description:t,name:n,directives:r,values:i})}parseEnumValuesDefinition(){return this.optionalMany(d.BRACE_L,this.parseEnumValueDefinition,d.BRACE_R)}parseEnumValueDefinition(){let e=this._lexer.token,t=this.parseDescription(),n=this.parseEnumValueName(),r=this.parseConstDirectives();return this.node(e,{kind:p.ENUM_VALUE_DEFINITION,description:t,name:n,directives:r})}parseEnumValueName(){if("true"===this._lexer.token.value||"false"===this._lexer.token.value||"null"===this._lexer.token.value)throw $(this._lexer.source,this._lexer.token.start,`${ef(this._lexer.token)} is reserved and cannot be used for an enum value.`);return this.parseName()}parseInputObjectTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("input");let n=this.parseName(),r=this.parseConstDirectives(),i=this.parseInputFieldsDefinition();return this.node(e,{kind:p.INPUT_OBJECT_TYPE_DEFINITION,description:t,name:n,directives:r,fields:i})}parseInputFieldsDefinition(){return this.optionalMany(d.BRACE_L,this.parseInputValueDef,d.BRACE_R)}parseTypeSystemExtension(){let e=this._lexer.lookahead();if(e.kind===d.NAME)switch(e.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(e)}parseSchemaExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");let t=this.parseConstDirectives(),n=this.optionalMany(d.BRACE_L,this.parseOperationTypeDefinition,d.BRACE_R);if(0===t.length&&0===n.length)throw this.unexpected();return this.node(e,{kind:p.SCHEMA_EXTENSION,directives:t,operationTypes:n})}parseScalarTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");let t=this.parseName(),n=this.parseConstDirectives();if(0===n.length)throw this.unexpected();return this.node(e,{kind:p.SCALAR_TYPE_EXTENSION,name:t,directives:n})}parseObjectTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");let t=this.parseName(),n=this.parseImplementsInterfaces(),r=this.parseConstDirectives(),i=this.parseFieldsDefinition();if(0===n.length&&0===r.length&&0===i.length)throw this.unexpected();return this.node(e,{kind:p.OBJECT_TYPE_EXTENSION,name:t,interfaces:n,directives:r,fields:i})}parseInterfaceTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");let t=this.parseName(),n=this.parseImplementsInterfaces(),r=this.parseConstDirectives(),i=this.parseFieldsDefinition();if(0===n.length&&0===r.length&&0===i.length)throw this.unexpected();return this.node(e,{kind:p.INTERFACE_TYPE_EXTENSION,name:t,interfaces:n,directives:r,fields:i})}parseUnionTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");let t=this.parseName(),n=this.parseConstDirectives(),r=this.parseUnionMemberTypes();if(0===n.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:p.UNION_TYPE_EXTENSION,name:t,directives:n,types:r})}parseEnumTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");let t=this.parseName(),n=this.parseConstDirectives(),r=this.parseEnumValuesDefinition();if(0===n.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:p.ENUM_TYPE_EXTENSION,name:t,directives:n,values:r})}parseInputObjectTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");let t=this.parseName(),n=this.parseConstDirectives(),r=this.parseInputFieldsDefinition();if(0===n.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:p.INPUT_OBJECT_TYPE_EXTENSION,name:t,directives:n,fields:r})}parseDirectiveDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("directive"),this.expectToken(d.AT);let n=this.parseName(),r=this.parseArgumentDefs(),i=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");let o=this.parseDirectiveLocations();return this.node(e,{kind:p.DIRECTIVE_DEFINITION,description:t,name:n,arguments:r,repeatable:i,locations:o})}parseDirectiveLocations(){return this.delimitedMany(d.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){let e=this._lexer.token,t=this.parseName();if(Object.prototype.hasOwnProperty.call(c,t.value))return t;throw this.unexpected(e)}parseSchemaCoordinate(){let e,t,n=this._lexer.token,r=this.expectOptionalToken(d.AT),i=this.parseName();return(!r&&this.expectOptionalToken(d.DOT)&&(e=this.parseName()),(r||e)&&this.expectOptionalToken(d.PAREN_L)&&(t=this.parseName(),this.expectToken(d.COLON),this.expectToken(d.PAREN_R)),r)?t?this.node(n,{kind:p.DIRECTIVE_ARGUMENT_COORDINATE,name:i,argumentName:t}):this.node(n,{kind:p.DIRECTIVE_COORDINATE,name:i}):e?t?this.node(n,{kind:p.ARGUMENT_COORDINATE,name:i,fieldName:e,argumentName:t}):this.node(n,{kind:p.MEMBER_COORDINATE,name:i,memberName:e}):this.node(n,{kind:p.TYPE_COORDINATE,name:i})}node(e,t){return!0!==this._options.noLocation&&(t.loc=new x(e,this._lexer.lastToken,this._lexer.source)),t}peek(e){return this._lexer.token.kind===e}expectToken(e){let t=this._lexer.token;if(t.kind===e)return this.advanceLexer(),t;throw $(this._lexer.source,t.start,`Expected ${eh(e)}, found ${ef(t)}.`)}expectOptionalToken(e){return this._lexer.token.kind===e&&(this.advanceLexer(),!0)}expectKeyword(e){let t=this._lexer.token;if(t.kind===d.NAME&&t.value===e)this.advanceLexer();else throw $(this._lexer.source,t.start,`Expected "${e}", found ${ef(t)}.`)}expectOptionalKeyword(e){let t=this._lexer.token;return t.kind===d.NAME&&t.value===e&&(this.advanceLexer(),!0)}unexpected(e){let t=null!=e?e:this._lexer.token;return $(this._lexer.source,t.start,`Unexpected ${ef(t)}.`)}any(e,t,n){this.expectToken(e);let r=[];for(;!this.expectOptionalToken(n);)r.push(t.call(this));return r}optionalMany(e,t,n){if(this.expectOptionalToken(e)){let e=[];do e.push(t.call(this));while(!this.expectOptionalToken(n));return e}return[]}many(e,t,n){this.expectToken(e);let r=[];do r.push(t.call(this));while(!this.expectOptionalToken(n));return r}delimitedMany(e,t){this.expectOptionalToken(e);let n=[];do n.push(t.call(this));while(this.expectOptionalToken(e));return n}advanceLexer(){let{maxTokens:e}=this._options,t=this._lexer.advance();if(t.kind!==d.EOF&&(++this._tokenCounter,void 0!==e&&this._tokenCounter>e))throw $(this._lexer.source,t.start,`Document contains more that ${e} tokens. Parsing aborted.`)}}function ef(e){let t=e.value;return eh(e.kind)+(null!=t?` "${t}"`:"")}function eh(e){return q(e)?`"${e}"`:e}function em(e,t){let[n,r]=t?[e,t]:[void 0,e],i=" Did you mean ";n&&(i+=n+" ");let o=r.map(e=>`"${e}"`);switch(o.length){case 0:return"";case 1:return i+o[0]+"?";case 2:return i+o[0]+" or "+o[1]+"?"}let a=o.slice(0,5),s=a.pop();return i+a.join(", ")+", or "+s+"?"}function ey(e){return e}function eE(e,t){let n=Object.create(null);for(let r of e)n[t(r)]=r;return n}function eT(e,t,n){let r=Object.create(null);for(let i of e)r[t(i)]=n(i);return r}function ev(e,t){let n=Object.create(null);for(let r of Object.keys(e))n[r]=t(e[r],r);return n}function eN(e,t){let n=0,r=0;for(;n0);let s=0;do++r,s=10*s+o-eI,o=t.charCodeAt(r);while(eg(o)&&s>0);if(as)return 1}else{if(io)return 1;++n,++r}}return e.length-t.length}let eI=48;function eg(e){return!isNaN(e)&&eI<=e&&e<=57}function e_(e,t){let n=Object.create(null),r=new eO(e),i=Math.floor(.4*e.length)+1;for(let e of t){let t=r.measure(e,i);void 0!==t&&(n[e]=t)}return Object.keys(n).sort((e,t)=>{let r=n[e]-n[t];return 0!==r?r:eN(e,t)})}class eO{constructor(e){this._input=e,this._inputLowerCase=e.toLowerCase(),this._inputArray=eb(this._inputLowerCase),this._rows=[Array(e.length+1).fill(0),Array(e.length+1).fill(0),Array(e.length+1).fill(0)]}measure(e,t){if(this._input===e)return 0;let n=e.toLowerCase();if(this._inputLowerCase===n)return 1;let r=eb(n),i=this._inputArray;if(r.lengtht)return;let s=this._rows;for(let e=0;e<=a;e++)s[0][e]=e;for(let e=1;e<=o;e++){let n=s[(e-1)%3],o=s[e%3],l=o[0]=e;for(let t=1;t<=a;t++){let a=+(r[e-1]!==i[t-1]),u=Math.min(n[t]+1,o[t-1]+1,n[t-1]+a);e>1&&t>1&&r[e-1]===i[t-2]&&r[e-2]===i[t-1]&&(u=Math.min(u,s[(e-2)%3][t-2]+1)),ut)return}let l=s[o%3][a];return l<=t?l:void 0}}function eb(e){let t=e.length,n=Array(t);for(let r=0;re.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>eV(e.definitions,"\n\n")},OperationDefinition:{leave(e){let t=eP(e.variableDefinitions)?eM("(\n",eV(e.variableDefinitions,"\n"),"\n)"):eM("(",eV(e.variableDefinitions,", "),")"),n=eM("",e.description,"\n")+eV([e.operation,eV([e.name,t]),eV(e.directives," ")]," ");return("query"===n?"":n+" ")+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:t,defaultValue:n,directives:r,description:i})=>eM("",i,"\n")+e+": "+t+eM(" = ",n)+eM(" ",eV(r," "))},SelectionSet:{leave:({selections:e})=>eU(e)},Field:{leave({alias:e,name:t,arguments:n,directives:r,selectionSet:i}){let o=eM("",e,": ")+t,a=o+eM("(",eV(n,", "),")");return a.length>80&&(a=o+eM("(\n",ej(eV(n,"\n")),"\n)")),eV([a,eV(r," "),i]," ")}},Argument:{leave:({name:e,value:t})=>e+": "+t},FragmentSpread:{leave:({name:e,directives:t})=>"..."+e+eM(" ",eV(t," "))},InlineFragment:{leave:({typeCondition:e,directives:t,selectionSet:n})=>eV(["...",eM("on ",e),eV(t," "),n]," ")},FragmentDefinition:{leave:({name:e,typeCondition:t,variableDefinitions:n,directives:r,selectionSet:i,description:o})=>eM("",o,"\n")+`fragment ${e}${eM("(",eV(n,", "),")")} `+`on ${t} ${eM("",eV(r," ")," ")}`+i},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e},StringValue:{leave:({value:e,block:t})=>t?Y(e):`"${e.replace(eA,eS)}"`},BooleanValue:{leave:({value:e})=>e?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>"["+eV(e,", ")+"]"},ObjectValue:{leave:({fields:e})=>"{"+eV(e,", ")+"}"},ObjectField:{leave:({name:e,value:t})=>e+": "+t},Directive:{leave:({name:e,arguments:t})=>"@"+e+eM("(",eV(t,", "),")")},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>"["+e+"]"},NonNullType:{leave:({type:e})=>e+"!"},SchemaDefinition:{leave:({description:e,directives:t,operationTypes:n})=>eM("",e,"\n")+eV(["schema",eV(t," "),eU(n)]," ")},OperationTypeDefinition:{leave:({operation:e,type:t})=>e+": "+t},ScalarTypeDefinition:{leave:({description:e,name:t,directives:n})=>eM("",e,"\n")+eV(["scalar",t,eV(n," ")]," ")},ObjectTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:r,fields:i})=>eM("",e,"\n")+eV(["type",t,eM("implements ",eV(n," & ")),eV(r," "),eU(i)]," ")},FieldDefinition:{leave:({description:e,name:t,arguments:n,type:r,directives:i})=>eM("",e,"\n")+t+(eP(n)?eM("(\n",ej(eV(n,"\n")),"\n)"):eM("(",eV(n,", "),")"))+": "+r+eM(" ",eV(i," "))},InputValueDefinition:{leave:({description:e,name:t,type:n,defaultValue:r,directives:i})=>eM("",e,"\n")+eV([t+": "+n,eM("= ",r),eV(i," ")]," ")},InterfaceTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:r,fields:i})=>eM("",e,"\n")+eV(["interface",t,eM("implements ",eV(n," & ")),eV(r," "),eU(i)]," ")},UnionTypeDefinition:{leave:({description:e,name:t,directives:n,types:r})=>eM("",e,"\n")+eV(["union",t,eV(n," "),eM("= ",eV(r," | "))]," ")},EnumTypeDefinition:{leave:({description:e,name:t,directives:n,values:r})=>eM("",e,"\n")+eV(["enum",t,eV(n," "),eU(r)]," ")},EnumValueDefinition:{leave:({description:e,name:t,directives:n})=>eM("",e,"\n")+eV([t,eV(n," ")]," ")},InputObjectTypeDefinition:{leave:({description:e,name:t,directives:n,fields:r})=>eM("",e,"\n")+eV(["input",t,eV(n," "),eU(r)]," ")},DirectiveDefinition:{leave:({description:e,name:t,arguments:n,repeatable:r,locations:i})=>eM("",e,"\n")+"directive @"+t+(eP(n)?eM("(\n",ej(eV(n,"\n")),"\n)"):eM("(",eV(n,", "),")"))+(r?" repeatable":"")+" on "+eV(i," | ")},SchemaExtension:{leave:({directives:e,operationTypes:t})=>eV(["extend schema",eV(e," "),eU(t)]," ")},ScalarTypeExtension:{leave:({name:e,directives:t})=>eV(["extend scalar",e,eV(t," ")]," ")},ObjectTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>eV(["extend type",e,eM("implements ",eV(t," & ")),eV(n," "),eU(r)]," ")},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>eV(["extend interface",e,eM("implements ",eV(t," & ")),eV(n," "),eU(r)]," ")},UnionTypeExtension:{leave:({name:e,directives:t,types:n})=>eV(["extend union",e,eV(t," "),eM("= ",eV(n," | "))]," ")},EnumTypeExtension:{leave:({name:e,directives:t,values:n})=>eV(["extend enum",e,eV(t," "),eU(n)]," ")},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:n})=>eV(["extend input",e,eV(t," "),eU(n)]," ")},TypeCoordinate:{leave:({name:e})=>e},MemberCoordinate:{leave:({name:e,memberName:t})=>eV([e,eM(".",t)])},ArgumentCoordinate:{leave:({name:e,fieldName:t,argumentName:n})=>eV([e,eM(".",t),eM("(",n,":)")])},DirectiveCoordinate:{leave:({name:e})=>eV(["@",e])},DirectiveArgumentCoordinate:{leave:({name:e,argumentName:t})=>eV(["@",e,eM("(",t,":)")])}};function eV(e,t=""){var n;return null!=(n=null==e?void 0:e.filter(e=>e).join(t))?n:""}function eU(e){return eM("{\n",ej(eV(e,"\n")),"\n}")}function eM(e,t,n=""){return null!=t&&""!==t?e+t+n:""}function ej(e){return eM(" ",e.replace(/\n/g,"\n "))}function eP(e){var t;return null!=(t=null==e?void 0:e.some(e=>e.includes("\n")))&&t}function eG(e,t){switch(e.kind){case p.NULL:return null;case p.INT:return parseInt(e.value,10);case p.FLOAT:return parseFloat(e.value);case p.STRING:case p.ENUM:case p.BOOLEAN:return e.value;case p.LIST:return e.values.map(e=>eG(e,t));case p.OBJECT:return eT(e.fields,e=>e.name.value,e=>eG(e.value,t));case p.VARIABLE:return null==t?void 0:t[e.name.value]}}function eB(e){if(null!=e||N(!1,"Must provide name."),"string"==typeof e||N(!1,"Expected name to be a string."),0===e.length)throw new w("Expected name to be a non-empty string.");for(let t=1;to(eG(e,t)),this.extensions=eD(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!=(i=e.extensionASTNodes)?i:[],null==e.specifiedByURL||"string"==typeof e.specifiedByURL||N(!1,`${this.name} must provide "specifiedByURL" as a string, but got: ${ei(e.specifiedByURL)}.`),null==e.serialize||"function"==typeof e.serialize||N(!1,`${this.name} must provide "serialize" function. If this custom Scalar is also used as an input type, ensure "parseValue" and "parseLiteral" functions are also provided.`),e.parseLiteral&&("function"==typeof e.parseValue&&"function"==typeof e.parseLiteral||N(!1,`${this.name} must provide both "parseValue" and "parseLiteral" functions.`))}get[Symbol.toStringTag](){return"GraphQLScalarType"}toConfig(){return{name:this.name,description:this.description,specifiedByURL:this.specifiedByURL,serialize:this.serialize,parseValue:this.parseValue,parseLiteral:this.parseLiteral,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}class tg{constructor(e){var t;this.name=eB(e.name),this.description=e.description,this.isTypeOf=e.isTypeOf,this.extensions=eD(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!=(t=e.extensionASTNodes)?t:[],this._fields=()=>tO(e),this._interfaces=()=>t_(e),null==e.isTypeOf||"function"==typeof e.isTypeOf||N(!1,`${this.name} must provide "isTypeOf" as a function, but got: ${ei(e.isTypeOf)}.`)}get[Symbol.toStringTag](){return"GraphQLObjectType"}getFields(){return"function"==typeof this._fields&&(this._fields=this._fields()),this._fields}getInterfaces(){return"function"==typeof this._interfaces&&(this._interfaces=this._interfaces()),this._interfaces}toConfig(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:tA(this.getFields()),isTypeOf:this.isTypeOf,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}function t_(e){var t;let n=tv(null!=(t=e.interfaces)?t:[]);return Array.isArray(n)||N(!1,`${e.name} interfaces must be an Array or a function which returns an Array.`),n}function tO(e){let t=tN(e.fields);return tD(t)||N(!1,`${e.name} fields must be an object with field names as keys or a function which returns such an object.`),ev(t,(t,n)=>{var r;tD(t)||N(!1,`${e.name}.${n} field config must be an object.`),null==t.resolve||"function"==typeof t.resolve||N(!1,`${e.name}.${n} field resolver must be a function if provided, but got: ${ei(t.resolve)}.`);let i=null!=(r=t.args)?r:{};return tD(i)||N(!1,`${e.name}.${n} args must be an object with argument names as keys.`),{name:eB(n),description:t.description,type:t.type,args:tb(i),resolve:t.resolve,subscribe:t.subscribe,deprecationReason:t.deprecationReason,extensions:eD(t.extensions),astNode:t.astNode}})}function tb(e){return Object.entries(e).map(([e,t])=>({name:eB(e),description:t.description,type:t.type,defaultValue:t.defaultValue,deprecationReason:t.deprecationReason,extensions:eD(t.extensions),astNode:t.astNode}))}function tD(e){return g(e)&&!Array.isArray(e)}function tA(e){return ev(e,e=>({description:e.description,type:e.type,args:tS(e.args),resolve:e.resolve,subscribe:e.subscribe,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode}))}function tS(e){return eT(e,e=>e.name,e=>({description:e.description,type:e.type,defaultValue:e.defaultValue,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode}))}function tw(e){return e8(e.type)&&void 0===e.defaultValue}class tR{constructor(e){var t;this.name=eB(e.name),this.description=e.description,this.resolveType=e.resolveType,this.extensions=eD(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!=(t=e.extensionASTNodes)?t:[],this._fields=tO.bind(void 0,e),this._interfaces=t_.bind(void 0,e),null==e.resolveType||"function"==typeof e.resolveType||N(!1,`${this.name} must provide "resolveType" as a function, but got: ${ei(e.resolveType)}.`)}get[Symbol.toStringTag](){return"GraphQLInterfaceType"}getFields(){return"function"==typeof this._fields&&(this._fields=this._fields()),this._fields}getInterfaces(){return"function"==typeof this._interfaces&&(this._interfaces=this._interfaces()),this._interfaces}toConfig(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:tA(this.getFields()),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}class tk{constructor(e){var t;this.name=eB(e.name),this.description=e.description,this.resolveType=e.resolveType,this.extensions=eD(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!=(t=e.extensionASTNodes)?t:[],this._types=tL.bind(void 0,e),null==e.resolveType||"function"==typeof e.resolveType||N(!1,`${this.name} must provide "resolveType" as a function, but got: ${ei(e.resolveType)}.`)}get[Symbol.toStringTag](){return"GraphQLUnionType"}getTypes(){return"function"==typeof this._types&&(this._types=this._types()),this._types}toConfig(){return{name:this.name,description:this.description,types:this.getTypes(),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}function tL(e){let t=tv(e.types);return Array.isArray(t)||N(!1,`Must provide Array of types or a function which returns such an array for Union ${e.name}.`),t}class t${constructor(e){var t;this.name=eB(e.name),this.description=e.description,this.extensions=eD(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!=(t=e.extensionASTNodes)?t:[],this._values="function"==typeof e.values?e.values:tF(this.name,e.values),this._valueLookup=null,this._nameLookup=null}get[Symbol.toStringTag](){return"GraphQLEnumType"}getValues(){return"function"==typeof this._values&&(this._values=tF(this.name,this._values())),this._values}getValue(e){return null===this._nameLookup&&(this._nameLookup=eE(this.getValues(),e=>e.name)),this._nameLookup[e]}serialize(e){null===this._valueLookup&&(this._valueLookup=new Map(this.getValues().map(e=>[e.value,e])));let t=this._valueLookup.get(e);if(void 0===t)throw new w(`Enum "${this.name}" cannot represent value: ${ei(e)}`);return t.name}parseValue(e){if("string"!=typeof e){let t=ei(e);throw new w(`Enum "${this.name}" cannot represent non-string value: ${t}.`+tx(this,t))}let t=this.getValue(e);if(null==t)throw new w(`Value "${e}" does not exist in "${this.name}" enum.`+tx(this,e));return t.value}parseLiteral(e,t){if(e.kind!==p.ENUM){let t=eF(e);throw new w(`Enum "${this.name}" cannot represent non-enum value: ${t}.`+tx(this,t),{nodes:e})}let n=this.getValue(e.value);if(null==n){let t=eF(e);throw new w(`Value "${t}" does not exist in "${this.name}" enum.`+tx(this,t),{nodes:e})}return n.value}toConfig(){let e=eT(this.getValues(),e=>e.name,e=>({description:e.description,value:e.value,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode}));return{name:this.name,description:this.description,values:e,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}function tx(e,t){return em("the enum value",e_(t,e.getValues().map(e=>e.name)))}function tF(e,t){return tD(t)||N(!1,`${e} values must be an object with value names as keys.`),Object.entries(t).map(([t,n])=>(tD(n)||N(!1,`${e}.${t} must refer to an object with a "value" key representing an internal value but got: ${ei(n)}.`),{name:eY(t),description:n.description,value:void 0!==n.value?n.value:t,deprecationReason:n.deprecationReason,extensions:eD(n.extensions),astNode:n.astNode}))}class tC{constructor(e){var t,n;this.name=eB(e.name),this.description=e.description,this.extensions=eD(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!=(t=e.extensionASTNodes)?t:[],this.isOneOf=null!=(n=e.isOneOf)&&n,this._fields=tV.bind(void 0,e)}get[Symbol.toStringTag](){return"GraphQLInputObjectType"}getFields(){return"function"==typeof this._fields&&(this._fields=this._fields()),this._fields}toConfig(){let e=ev(this.getFields(),e=>({description:e.description,type:e.type,defaultValue:e.defaultValue,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode}));return{name:this.name,description:this.description,fields:e,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes,isOneOf:this.isOneOf}}toString(){return this.name}toJSON(){return this.toString()}}function tV(e){let t=tN(e.fields);return tD(t)||N(!1,`${e.name} fields must be an object with field names as keys or a function which returns such an object.`),ev(t,(t,n)=>("resolve"in t&&N(!1,`${e.name}.${n} field has a resolve property, but Input Types cannot define resolvers.`),{name:eB(n),description:t.description,type:t.type,defaultValue:t.defaultValue,deprecationReason:t.deprecationReason,extensions:eD(t.extensions),astNode:t.astNode}))}function tU(e){return e8(e.type)&&void 0===e.defaultValue}function tM(e,t){return e===t||!!(e8(e)&&e8(t)||e9(e)&&e9(t))&&tM(e.ofType,t.ofType)}function tj(e,t,n){return t===n||(e8(n)?!!e8(t)&&tj(e,t.ofType,n.ofType):e8(t)?tj(e,t.ofType,n):e9(n)?!!e9(t)&&tj(e,t.ofType,n.ofType):!e9(t)&&ts(n)&&(eH(t)||eX(t))&&e.isSubType(n,t))}function tP(e,t,n){return t===n||(ts(t)?ts(n)?e.getPossibleTypes(t).some(t=>e.isSubType(n,t)):e.isSubType(t,n):!!ts(n)&&e.isSubType(n,t))}let tG=0x7fffffff,tB=-0x80000000,tY=new tI({name:"Int",description:"The `Int` scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.",serialize(e){let t=tH(e);if("boolean"==typeof t)return+!!t;let n=t;if("string"==typeof t&&""!==t&&(n=Number(t)),"number"!=typeof n||!Number.isInteger(n))throw new w(`Int cannot represent non-integer value: ${ei(t)}`);if(n>tG||ntG||etG||te.name===t)}function tH(e){if(g(e)){if("function"==typeof e.valueOf){let t=e.valueOf();if(!g(t))return t}if("function"==typeof e.toJSON)return e.toJSON()}return e}function tW(e){return eo(e,t0)}function tZ(e){if(!tW(e))throw Error(`Expected ${ei(e)} to be a GraphQL directive.`);return e}class t0{constructor(e){var t,n;this.name=eB(e.name),this.description=e.description,this.locations=e.locations,this.isRepeatable=null!=(t=e.isRepeatable)&&t,this.extensions=eD(e.extensions),this.astNode=e.astNode,Array.isArray(e.locations)||N(!1,`@${e.name} locations must be an Array.`);const r=null!=(n=e.args)?n:{};g(r)&&!Array.isArray(r)||N(!1,`@${e.name} args must be an object with argument names as keys.`),this.args=tb(r)}get[Symbol.toStringTag](){return"GraphQLDirective"}toConfig(){return{name:this.name,description:this.description,locations:this.locations,args:tS(this.args),isRepeatable:this.isRepeatable,extensions:this.extensions,astNode:this.astNode}}toString(){return"@"+this.name}toJSON(){return this.toString()}}let t1=new t0({name:"include",description:"Directs the executor to include this field or fragment only when the `if` argument is true.",locations:[c.FIELD,c.FRAGMENT_SPREAD,c.INLINE_FRAGMENT],args:{if:{type:new tc(tJ),description:"Included when true."}}}),t2=new t0({name:"skip",description:"Directs the executor to skip this field or fragment when the `if` argument is true.",locations:[c.FIELD,c.FRAGMENT_SPREAD,c.INLINE_FRAGMENT],args:{if:{type:new tc(tJ),description:"Skipped when true."}}}),t3="No longer supported",t4=new t0({name:"deprecated",description:"Marks an element of a GraphQL schema as no longer supported.",locations:[c.FIELD_DEFINITION,c.ARGUMENT_DEFINITION,c.INPUT_FIELD_DEFINITION,c.ENUM_VALUE],args:{reason:{type:tq,description:"Explains why this element was deprecated, usually also including a suggestion for how to access supported similar data. Formatted using the Markdown syntax, as specified by [CommonMark](https://commonmark.org/).",defaultValue:t3}}}),t9=new t0({name:"specifiedBy",description:"Exposes a URL that specifies the behavior of this scalar.",locations:[c.SCALAR],args:{url:{type:new tc(tq),description:"The URL that specifies the behavior of this scalar."}}}),t5=new t0({name:"oneOf",description:"Indicates exactly one field must be supplied and this field must not be `null`.",locations:[c.INPUT_OBJECT],args:{}}),t8=Object.freeze([t1,t2,t4,t9,t5]);function t6(e){return t8.some(({name:t})=>t===e.name)}function t7(e){return"object"==typeof e&&"function"==typeof(null==e?void 0:e[Symbol.iterator])}function ne(e,t){if(e8(t)){let n=ne(e,t.ofType);return(null==n?void 0:n.kind)===p.NULL?null:n}if(null===e)return{kind:p.NULL};if(void 0===e)return null;if(e9(t)){let n=t.ofType;if(t7(e)){let t=[];for(let r of e){let e=ne(r,n);null!=e&&t.push(e)}return{kind:p.LIST,values:t}}return ne(e,n)}if(e3(t)){if(!g(e))return null;let n=[];for(let r of Object.values(t.getFields())){let t=ne(e[r.name],r.type);t&&n.push({kind:p.OBJECT_FIELD,name:{kind:p.NAME,value:r.name},value:t})}return{kind:p.OBJECT,fields:n}}if(tr(t)){let n=t.serialize(e);if(null==n)return null;if("boolean"==typeof n)return{kind:p.BOOLEAN,value:n};if("number"==typeof n&&Number.isFinite(n)){let e=String(n);return nt.test(e)?{kind:p.INT,value:e}:{kind:p.FLOAT,value:e}}if("string"==typeof n)return e1(t)?{kind:p.ENUM,value:n}:t===tK&&nt.test(n)?{kind:p.INT,value:n}:{kind:p.STRING,value:n};throw TypeError(`Cannot convert value to AST: ${ei(n)}.`)}_(!1,"Unexpected input type: "+ei(t))}let nt=/^-?(?:0|[1-9][0-9]*)$/,nn=new tg({name:"__Schema",description:"A GraphQL Schema defines the capabilities of a GraphQL server. It exposes all available types and directives on the server, as well as the entry points for query, mutation, and subscription operations.",fields:()=>({description:{type:tq,resolve:e=>e.description},types:{description:"A list of all types supported by this server.",type:new tc(new tu(new tc(no))),resolve:e=>Object.values(e.getTypeMap())},queryType:{description:"The type that query operations will be rooted at.",type:new tc(no),resolve:e=>e.getQueryType()},mutationType:{description:"If this server supports mutation, the type that mutation operations will be rooted at.",type:no,resolve:e=>e.getMutationType()},subscriptionType:{description:"If this server support subscription, the type that subscription operations will be rooted at.",type:no,resolve:e=>e.getSubscriptionType()},directives:{description:"A list of all directives supported by this server.",type:new tc(new tu(new tc(nr))),resolve:e=>e.getDirectives()}})}),nr=new tg({name:"__Directive",description:"A Directive provides a way to describe alternate runtime execution and type validation behavior in a GraphQL document.\n\nIn some cases, you need to provide options to alter GraphQL's execution behavior in ways field arguments will not suffice, such as conditionally including or skipping a field. Directives provide this by describing additional information to the executor.",fields:()=>({name:{type:new tc(tq),resolve:e=>e.name},description:{type:tq,resolve:e=>e.description},isRepeatable:{type:new tc(tJ),resolve:e=>e.isRepeatable},locations:{type:new tc(new tu(new tc(ni))),resolve:e=>e.locations},args:{type:new tc(new tu(new tc(ns))),args:{includeDeprecated:{type:tJ,defaultValue:!1}},resolve:(e,{includeDeprecated:t})=>t?e.args:e.args.filter(e=>null==e.deprecationReason)}})}),ni=new t$({name:"__DirectiveLocation",description:"A Directive can be adjacent to many parts of the GraphQL language, a __DirectiveLocation describes one such possible adjacencies.",values:{QUERY:{value:c.QUERY,description:"Location adjacent to a query operation."},MUTATION:{value:c.MUTATION,description:"Location adjacent to a mutation operation."},SUBSCRIPTION:{value:c.SUBSCRIPTION,description:"Location adjacent to a subscription operation."},FIELD:{value:c.FIELD,description:"Location adjacent to a field."},FRAGMENT_DEFINITION:{value:c.FRAGMENT_DEFINITION,description:"Location adjacent to a fragment definition."},FRAGMENT_SPREAD:{value:c.FRAGMENT_SPREAD,description:"Location adjacent to a fragment spread."},INLINE_FRAGMENT:{value:c.INLINE_FRAGMENT,description:"Location adjacent to an inline fragment."},VARIABLE_DEFINITION:{value:c.VARIABLE_DEFINITION,description:"Location adjacent to a variable definition."},SCHEMA:{value:c.SCHEMA,description:"Location adjacent to a schema definition."},SCALAR:{value:c.SCALAR,description:"Location adjacent to a scalar definition."},OBJECT:{value:c.OBJECT,description:"Location adjacent to an object type definition."},FIELD_DEFINITION:{value:c.FIELD_DEFINITION,description:"Location adjacent to a field definition."},ARGUMENT_DEFINITION:{value:c.ARGUMENT_DEFINITION,description:"Location adjacent to an argument definition."},INTERFACE:{value:c.INTERFACE,description:"Location adjacent to an interface definition."},UNION:{value:c.UNION,description:"Location adjacent to a union definition."},ENUM:{value:c.ENUM,description:"Location adjacent to an enum definition."},ENUM_VALUE:{value:c.ENUM_VALUE,description:"Location adjacent to an enum value definition."},INPUT_OBJECT:{value:c.INPUT_OBJECT,description:"Location adjacent to an input object type definition."},INPUT_FIELD_DEFINITION:{value:c.INPUT_FIELD_DEFINITION,description:"Location adjacent to an input object field definition."}}}),no=new tg({name:"__Type",description:"The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum.\n\nDepending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name, description and optional `specifiedByURL`, while Enum types provide their values. Object and Interface types provide the fields they describe. Abstract types, Union and Interface, provide the Object types possible at runtime. List and NonNull types compose other types.",fields:()=>({kind:{type:new tc(nu),resolve:e=>eJ(e)?f.SCALAR:eX(e)?f.OBJECT:eH(e)?f.INTERFACE:eZ(e)?f.UNION:e1(e)?f.ENUM:e3(e)?f.INPUT_OBJECT:e9(e)?f.LIST:e8(e)?f.NON_NULL:void _(!1,`Unexpected type: "${ei(e)}".`)},name:{type:tq,resolve:e=>"name"in e?e.name:void 0},description:{type:tq,resolve:e=>"description"in e?e.description:void 0},specifiedByURL:{type:tq,resolve:e=>"specifiedByURL"in e?e.specifiedByURL:void 0},fields:{type:new tu(new tc(na)),args:{includeDeprecated:{type:tJ,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if(eX(e)||eH(e)){let n=Object.values(e.getFields());return t?n:n.filter(e=>null==e.deprecationReason)}}},interfaces:{type:new tu(new tc(no)),resolve(e){if(eX(e)||eH(e))return e.getInterfaces()}},possibleTypes:{type:new tu(new tc(no)),resolve(e,t,n,{schema:r}){if(ts(e))return r.getPossibleTypes(e)}},enumValues:{type:new tu(new tc(nl)),args:{includeDeprecated:{type:tJ,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if(e1(e)){let n=e.getValues();return t?n:n.filter(e=>null==e.deprecationReason)}}},inputFields:{type:new tu(new tc(ns)),args:{includeDeprecated:{type:tJ,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if(e3(e)){let n=Object.values(e.getFields());return t?n:n.filter(e=>null==e.deprecationReason)}}},ofType:{type:no,resolve:e=>"ofType"in e?e.ofType:void 0},isOneOf:{type:tJ,resolve:e=>{if(e3(e))return e.isOneOf}}})}),na=new tg({name:"__Field",description:"Object and Interface types are described by a list of Fields, each of which has a name, potentially a list of arguments, and a return type.",fields:()=>({name:{type:new tc(tq),resolve:e=>e.name},description:{type:tq,resolve:e=>e.description},args:{type:new tc(new tu(new tc(ns))),args:{includeDeprecated:{type:tJ,defaultValue:!1}},resolve:(e,{includeDeprecated:t})=>t?e.args:e.args.filter(e=>null==e.deprecationReason)},type:{type:new tc(no),resolve:e=>e.type},isDeprecated:{type:new tc(tJ),resolve:e=>null!=e.deprecationReason},deprecationReason:{type:tq,resolve:e=>e.deprecationReason}})}),ns=new tg({name:"__InputValue",description:"Arguments provided to Fields or Directives and the input fields of an InputObject are represented as Input Values which describe their type and optionally a default value.",fields:()=>({name:{type:new tc(tq),resolve:e=>e.name},description:{type:tq,resolve:e=>e.description},type:{type:new tc(no),resolve:e=>e.type},defaultValue:{type:tq,description:"A GraphQL-formatted string representing the default value for this input value.",resolve(e){let{type:t,defaultValue:n}=e,r=ne(n,t);return r?eF(r):null}},isDeprecated:{type:new tc(tJ),resolve:e=>null!=e.deprecationReason},deprecationReason:{type:tq,resolve:e=>e.deprecationReason}})}),nl=new tg({name:"__EnumValue",description:"One possible value for a given Enum. Enum values are unique values, not a placeholder for a string or numeric value. However an Enum value is returned in a JSON response as a string.",fields:()=>({name:{type:new tc(tq),resolve:e=>e.name},description:{type:tq,resolve:e=>e.description},isDeprecated:{type:new tc(tJ),resolve:e=>null!=e.deprecationReason},deprecationReason:{type:tq,resolve:e=>e.deprecationReason}})});(o=f||(f={})).SCALAR="SCALAR",o.OBJECT="OBJECT",o.INTERFACE="INTERFACE",o.UNION="UNION",o.ENUM="ENUM",o.INPUT_OBJECT="INPUT_OBJECT",o.LIST="LIST",o.NON_NULL="NON_NULL";let nu=new t$({name:"__TypeKind",description:"An enum describing what kind of type a given `__Type` is.",values:{SCALAR:{value:f.SCALAR,description:"Indicates this type is a scalar."},OBJECT:{value:f.OBJECT,description:"Indicates this type is an object. `fields` and `interfaces` are valid fields."},INTERFACE:{value:f.INTERFACE,description:"Indicates this type is an interface. `fields`, `interfaces`, and `possibleTypes` are valid fields."},UNION:{value:f.UNION,description:"Indicates this type is a union. `possibleTypes` is a valid field."},ENUM:{value:f.ENUM,description:"Indicates this type is an enum. `enumValues` is a valid field."},INPUT_OBJECT:{value:f.INPUT_OBJECT,description:"Indicates this type is an input object. `inputFields` is a valid field."},LIST:{value:f.LIST,description:"Indicates this type is a list. `ofType` is a valid field."},NON_NULL:{value:f.NON_NULL,description:"Indicates this type is a non-null. `ofType` is a valid field."}}}),nc={name:"__schema",type:new tc(nn),description:"Access the current type schema of this server.",args:[],resolve:(e,t,n,{schema:r})=>r,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0},np={name:"__type",type:no,description:"Request the type information of a single type.",args:[{name:"name",description:void 0,type:new tc(tq),defaultValue:void 0,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0}],resolve:(e,{name:t},n,{schema:r})=>r.getType(t),deprecationReason:void 0,extensions:Object.create(null),astNode:void 0},nd={name:"__typename",type:new tc(tq),description:"The name of the current Object type at runtime.",args:[],resolve:(e,t,n,{parentType:r})=>r.name,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0},nf=Object.freeze([nn,nr,ni,no,na,ns,nl,nu]);function nh(e){return nf.some(({name:t})=>e.name===t)}function nm(e){return eo(e,nE)}function ny(e){if(!nm(e))throw Error(`Expected ${ei(e)} to be a GraphQL schema.`);return e}class nE{constructor(e){var t,n;this.__validationErrors=!0===e.assumeValid?[]:void 0,g(e)||N(!1,"Must provide configuration object."),!e.types||Array.isArray(e.types)||N(!1,`"types" must be Array if provided but got: ${ei(e.types)}.`),!e.directives||Array.isArray(e.directives)||N(!1,`"directives" must be Array if provided but got: ${ei(e.directives)}.`),this.description=e.description,this.extensions=eD(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!=(t=e.extensionASTNodes)?t:[],this._queryType=e.query,this._mutationType=e.mutation,this._subscriptionType=e.subscription,this._directives=null!=(n=e.directives)?n:t8;const r=new Set(e.types);if(null!=e.types)for(const t of e.types)r.delete(t),nT(t,r);for(const e of(null!=this._queryType&&nT(this._queryType,r),null!=this._mutationType&&nT(this._mutationType,r),null!=this._subscriptionType&&nT(this._subscriptionType,r),this._directives))if(tW(e))for(const t of e.args)nT(t.type,r);for(const e of(nT(nn,r),this._typeMap=Object.create(null),this._subTypeMap=Object.create(null),this._implementationsMap=Object.create(null),r)){if(null==e)continue;const t=e.name;if(t||N(!1,"One of the provided types for building the Schema is missing a name."),void 0!==this._typeMap[t])throw Error(`Schema must contain uniquely named types but contains multiple types named "${t}".`);if(this._typeMap[t]=e,eH(e)){for(const t of e.getInterfaces())if(eH(t)){let n=this._implementationsMap[t.name];void 0===n&&(n=this._implementationsMap[t.name]={objects:[],interfaces:[]}),n.interfaces.push(e)}}else if(eX(e)){for(const t of e.getInterfaces())if(eH(t)){let n=this._implementationsMap[t.name];void 0===n&&(n=this._implementationsMap[t.name]={objects:[],interfaces:[]}),n.objects.push(e)}}}}get[Symbol.toStringTag](){return"GraphQLSchema"}getQueryType(){return this._queryType}getMutationType(){return this._mutationType}getSubscriptionType(){return this._subscriptionType}getRootType(e){switch(e){case u.QUERY:return this.getQueryType();case u.MUTATION:return this.getMutationType();case u.SUBSCRIPTION:return this.getSubscriptionType()}}getTypeMap(){return this._typeMap}getType(e){return this.getTypeMap()[e]}getPossibleTypes(e){return eZ(e)?e.getTypes():this.getImplementations(e).objects}getImplementations(e){let t=this._implementationsMap[e.name];return null!=t?t:{objects:[],interfaces:[]}}isSubType(e,t){let n=this._subTypeMap[e.name];if(void 0===n){if(n=Object.create(null),eZ(e))for(let t of e.getTypes())n[t.name]=!0;else{let t=this.getImplementations(e);for(let e of t.objects)n[e.name]=!0;for(let e of t.interfaces)n[e.name]=!0}this._subTypeMap[e.name]=n}return void 0!==n[t.name]}getDirectives(){return this._directives}getDirective(e){return this.getDirectives().find(t=>t.name===e)}toConfig(){return{description:this.description,query:this.getQueryType(),mutation:this.getMutationType(),subscription:this.getSubscriptionType(),types:Object.values(this.getTypeMap()),directives:this.getDirectives(),extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes,assumeValid:void 0!==this.__validationErrors}}}function nT(e,t){let n=tT(e);if(!t.has(n)){if(t.add(n),eZ(n))for(let e of n.getTypes())nT(e,t);else if(eX(n)||eH(n)){for(let e of n.getInterfaces())nT(e,t);for(let e of Object.values(n.getFields()))for(let n of(nT(e.type,t),e.args))nT(n.type,t)}else if(e3(n))for(let e of Object.values(n.getFields()))nT(e.type,t)}return t}function nv(e){var t,n,r,i;let o,a,s,l;if(ny(e),e.__validationErrors)return e.__validationErrors;let c=new nI(e);(a=(o=(t=c).schema).getQueryType())?eX(a)||t.reportError(`Query root type must be Object type, it cannot be ${ei(a)}.`,null!=(n=ng(o,u.QUERY))?n:a.astNode):t.reportError("Query root type must be provided.",o.astNode),(s=o.getMutationType())&&!eX(s)&&t.reportError(`Mutation root type must be Object type if provided, it cannot be ${ei(s)}.`,null!=(r=ng(o,u.MUTATION))?r:s.astNode),(l=o.getSubscriptionType())&&!eX(l)&&t.reportError(`Subscription root type must be Object type if provided, it cannot be ${ei(l)}.`,null!=(i=ng(o,u.SUBSCRIPTION))?i:l.astNode),function(e){for(let n of e.schema.getDirectives()){if(!tW(n)){e.reportError(`Expected directive but got: ${ei(n)}.`,null==n?void 0:n.astNode);continue}for(let r of(n_(e,n),0===n.locations.length&&e.reportError(`Directive @${n.name} must include 1 or more locations.`,n.astNode),n.args))if(n_(e,r),e7(r.type)||e.reportError(`The type of @${n.name}(${r.name}:) must be Input Type but got: ${ei(r.type)}.`,r.astNode),tw(r)&&null!=r.deprecationReason){var t;e.reportError(`Required argument @${n.name}(${r.name}:) cannot be deprecated.`,[nD(r.astNode),null==(t=r.astNode)?void 0:t.type])}}}(c),function(e){var t;let n,r,i,o=(t=e,n=Object.create(null),r=[],i=Object.create(null),function e(o){if(!n[o.name]){for(let a of(n[o.name]=!0,i[o.name]=r.length,Object.values(o.getFields())))if(e8(a.type)&&e3(a.type.ofType)){let n=a.type.ofType,o=i[n.name];if(r.push(a),void 0===o)e(n);else{let e=r.slice(o),i=e.map(e=>e.name).join(".");t.reportError(`Cannot reference Input Object "${n.name}" within itself through a series of non-null fields: "${i}".`,e.map(e=>e.astNode))}r.pop()}i[o.name]=void 0}});for(let t of Object.values(e.schema.getTypeMap())){if(!ty(t)){e.reportError(`Expected GraphQL named type but got: ${ei(t)}.`,t.astNode);continue}nh(t)||n_(e,t),eX(t)||eH(t)?(function(e,t){let n=Object.values(t.getFields());for(let a of(0===n.length&&e.reportError(`Type ${t.name} must define one or more fields.`,[t.astNode,...t.extensionASTNodes]),n)){var r,i,o;for(let n of(n_(e,a),tt(a.type)||e.reportError(`The type of ${t.name}.${a.name} must be Output Type but got: ${ei(a.type)}.`,null==(r=a.astNode)?void 0:r.type),a.args)){let r=n.name;n_(e,n),e7(n.type)||e.reportError(`The type of ${t.name}.${a.name}(${r}:) must be Input Type but got: ${ei(n.type)}.`,null==(i=n.astNode)?void 0:i.type),tw(n)&&null!=n.deprecationReason&&e.reportError(`Required argument ${t.name}.${a.name}(${r}:) cannot be deprecated.`,[nD(n.astNode),null==(o=n.astNode)?void 0:o.type])}}}(e,t),function(e,t){let n=Object.create(null);for(let r of t.getInterfaces()){if(!eH(r)){e.reportError(`Type ${ei(t)} must only implement Interface types, it cannot implement ${ei(r)}.`,nO(t,r));continue}if(t===r){e.reportError(`Type ${t.name} cannot implement itself because it would create a circular reference.`,nO(t,r));continue}if(n[r.name]){e.reportError(`Type ${t.name} can only implement ${r.name} once.`,nO(t,r));continue}n[r.name]=!0,function(e,t,n){let r=t.getInterfaces();for(let i of n.getInterfaces())r.includes(i)||e.reportError(i===t?`Type ${t.name} cannot implement ${n.name} because it would create a circular reference.`:`Type ${t.name} must implement ${i.name} because it is implemented by ${n.name}.`,[...nO(n,i),...nO(t,n)])}(e,t,r),function(e,t,n){let r=t.getFields();for(let l of Object.values(n.getFields())){var i,o,a,s;let u=l.name,c=r[u];if(!c){e.reportError(`Interface field ${n.name}.${u} expected but ${t.name} does not provide it.`,[l.astNode,t.astNode,...t.extensionASTNodes]);continue}for(let r of(tj(e.schema,c.type,l.type)||e.reportError(`Interface field ${n.name}.${u} expects type ${ei(l.type)} but ${t.name}.${u} is type ${ei(c.type)}.`,[null==(i=l.astNode)?void 0:i.type,null==(o=c.astNode)?void 0:o.type]),l.args)){let i=r.name,o=c.args.find(e=>e.name===i);if(!o){e.reportError(`Interface field argument ${n.name}.${u}(${i}:) expected but ${t.name}.${u} does not provide it.`,[r.astNode,c.astNode]);continue}tM(r.type,o.type)||e.reportError(`Interface field argument ${n.name}.${u}(${i}:) expects type ${ei(r.type)} but ${t.name}.${u}(${i}:) is type ${ei(o.type)}.`,[null==(a=r.astNode)?void 0:a.type,null==(s=o.astNode)?void 0:s.type])}for(let r of c.args){let i=r.name;!l.args.find(e=>e.name===i)&&tw(r)&&e.reportError(`Object field ${t.name}.${u} includes required argument ${i} that is missing from the Interface field ${n.name}.${u}.`,[r.astNode,l.astNode])}}}(e,t,r)}}(e,t)):eZ(t)?function(e,t){let n=t.getTypes();0===n.length&&e.reportError(`Union type ${t.name} must define one or more member types.`,[t.astNode,...t.extensionASTNodes]);let r=Object.create(null);for(let i of n){if(r[i.name]){e.reportError(`Union type ${t.name} can only include type ${i.name} once.`,nb(t,i.name));continue}r[i.name]=!0,eX(i)||e.reportError(`Union type ${t.name} can only include Object types, it cannot include ${ei(i)}.`,nb(t,String(i)))}}(e,t):e1(t)?function(e,t){let n=t.getValues();for(let r of(0===n.length&&e.reportError(`Enum type ${t.name} must define one or more values.`,[t.astNode,...t.extensionASTNodes]),n))n_(e,r)}(e,t):e3(t)&&(function(e,t){let n=Object.values(t.getFields());for(let o of(0===n.length&&e.reportError(`Input Object type ${t.name} must define one or more fields.`,[t.astNode,...t.extensionASTNodes]),n)){var r,i;n_(e,o),e7(o.type)||e.reportError(`The type of ${t.name}.${o.name} must be Input Type but got: ${ei(o.type)}.`,null==(r=o.astNode)?void 0:r.type),tU(o)&&null!=o.deprecationReason&&e.reportError(`Required input field ${t.name}.${o.name} cannot be deprecated.`,[nD(o.astNode),null==(i=o.astNode)?void 0:i.type]),t.isOneOf&&function(e,t,n){if(e8(t.type)){var r;n.reportError(`OneOf input field ${e.name}.${t.name} must be nullable.`,null==(r=t.astNode)?void 0:r.type)}void 0!==t.defaultValue&&n.reportError(`OneOf input field ${e.name}.${t.name} cannot have a default value.`,t.astNode)}(t,o,e)}}(e,t),o(t))}}(c);let p=c.getErrors();return e.__validationErrors=p,p}function nN(e){let t=nv(e);if(0!==t.length)throw Error(t.map(e=>e.message).join("\n\n"))}class nI{constructor(e){this._errors=[],this.schema=e}reportError(e,t){let n=Array.isArray(t)?t.filter(Boolean):t;this._errors.push(new w(e,{nodes:n}))}getErrors(){return this._errors}}function ng(e,t){var n;return null==(n=[e.astNode,...e.extensionASTNodes].flatMap(e=>{var t;return null!=(t=null==e?void 0:e.operationTypes)?t:[]}).find(e=>e.operation===t))?void 0:n.type}function n_(e,t){t.name.startsWith("__")&&e.reportError(`Name "${t.name}" must not begin with "__", which is reserved by GraphQL introspection.`,t.astNode)}function nO(e,t){let{astNode:n,extensionASTNodes:r}=e;return(null!=n?[n,...r]:r).flatMap(e=>{var t;return null!=(t=e.interfaces)?t:[]}).filter(e=>e.name.value===t.name)}function nb(e,t){let{astNode:n,extensionASTNodes:r}=e;return(null!=n?[n,...r]:r).flatMap(e=>{var t;return null!=(t=e.types)?t:[]}).filter(e=>e.name.value===t)}function nD(e){var t;return null==e||null==(t=e.directives)?void 0:t.find(e=>e.name.value===t4.name)}function nA(e,t){switch(t.kind){case p.LIST_TYPE:{let n=nA(e,t.type);return n&&new tu(n)}case p.NON_NULL_TYPE:{let n=nA(e,t.type);return n&&new tc(n)}case p.NAMED_TYPE:return e.getType(t.name.value)}}class nS{constructor(e,t,n){this._schema=e,this._typeStack=[],this._parentTypeStack=[],this._inputTypeStack=[],this._fieldDefStack=[],this._defaultValueStack=[],this._directive=null,this._argument=null,this._enumValue=null,this._getFieldDef=null!=n?n:nw,t&&(e7(t)&&this._inputTypeStack.push(t),to(t)&&this._parentTypeStack.push(t),tt(t)&&this._typeStack.push(t))}get[Symbol.toStringTag](){return"TypeInfo"}getType(){if(this._typeStack.length>0)return this._typeStack[this._typeStack.length-1]}getParentType(){if(this._parentTypeStack.length>0)return this._parentTypeStack[this._parentTypeStack.length-1]}getInputType(){if(this._inputTypeStack.length>0)return this._inputTypeStack[this._inputTypeStack.length-1]}getParentInputType(){if(this._inputTypeStack.length>1)return this._inputTypeStack[this._inputTypeStack.length-2]}getFieldDef(){if(this._fieldDefStack.length>0)return this._fieldDefStack[this._fieldDefStack.length-1]}getDefaultValue(){if(this._defaultValueStack.length>0)return this._defaultValueStack[this._defaultValueStack.length-1]}getDirective(){return this._directive}getArgument(){return this._argument}getEnumValue(){return this._enumValue}enter(e){let t=this._schema;switch(e.kind){case p.SELECTION_SET:{let e=tT(this.getType());this._parentTypeStack.push(to(e)?e:void 0);break}case p.FIELD:{let n,r,i=this.getParentType();i&&(n=this._getFieldDef(t,i,e))&&(r=n.type),this._fieldDefStack.push(n),this._typeStack.push(tt(r)?r:void 0);break}case p.DIRECTIVE:this._directive=t.getDirective(e.name.value);break;case p.OPERATION_DEFINITION:{let n=t.getRootType(e.operation);this._typeStack.push(eX(n)?n:void 0);break}case p.INLINE_FRAGMENT:case p.FRAGMENT_DEFINITION:{let n=e.typeCondition,r=n?nA(t,n):tT(this.getType());this._typeStack.push(tt(r)?r:void 0);break}case p.VARIABLE_DEFINITION:{let n=nA(t,e.type);this._inputTypeStack.push(e7(n)?n:void 0);break}case p.ARGUMENT:{var n;let t,r,i=null!=(n=this.getDirective())?n:this.getFieldDef();i&&(t=i.args.find(t=>t.name===e.name.value))&&(r=t.type),this._argument=t,this._defaultValueStack.push(t?t.defaultValue:void 0),this._inputTypeStack.push(e7(r)?r:void 0);break}case p.LIST:{let e=tm(this.getInputType()),t=e9(e)?e.ofType:e;this._defaultValueStack.push(void 0),this._inputTypeStack.push(e7(t)?t:void 0);break}case p.OBJECT_FIELD:{let t,n,r=tT(this.getInputType());e3(r)&&(n=r.getFields()[e.name.value])&&(t=n.type),this._defaultValueStack.push(n?n.defaultValue:void 0),this._inputTypeStack.push(e7(t)?t:void 0);break}case p.ENUM:{let t,n=tT(this.getInputType());e1(n)&&(t=n.getValue(e.value)),this._enumValue=t}}}leave(e){switch(e.kind){case p.SELECTION_SET:this._parentTypeStack.pop();break;case p.FIELD:this._fieldDefStack.pop(),this._typeStack.pop();break;case p.DIRECTIVE:this._directive=null;break;case p.OPERATION_DEFINITION:case p.INLINE_FRAGMENT:case p.FRAGMENT_DEFINITION:this._typeStack.pop();break;case p.VARIABLE_DEFINITION:this._inputTypeStack.pop();break;case p.ARGUMENT:this._argument=null,this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case p.LIST:case p.OBJECT_FIELD:this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case p.ENUM:this._enumValue=null}}}function nw(e,t,n){let r=n.name.value;return r===nc.name&&e.getQueryType()===t?nc:r===np.name&&e.getQueryType()===t?np:r===nd.name&&to(t)?nd:eX(t)||eH(t)?t.getFields()[r]:void 0}function nR(e,t){return{enter(...n){let r=n[0];e.enter(r);let i=e$(t,r.kind).enter;if(i){let o=i.apply(t,n);return void 0!==o&&(e.leave(r),U(o)&&e.enter(o)),o}},leave(...n){let r,i=n[0],o=e$(t,i.kind).leave;return o&&(r=o.apply(t,n)),e.leave(i),r}}}function nk(e){return nL(e)||nC(e)||nU(e)}function nL(e){return e.kind===p.OPERATION_DEFINITION||e.kind===p.FRAGMENT_DEFINITION}function n$(e){return e.kind===p.FIELD||e.kind===p.FRAGMENT_SPREAD||e.kind===p.INLINE_FRAGMENT}function nx(e){return e.kind===p.VARIABLE||e.kind===p.INT||e.kind===p.FLOAT||e.kind===p.STRING||e.kind===p.BOOLEAN||e.kind===p.NULL||e.kind===p.ENUM||e.kind===p.LIST||e.kind===p.OBJECT}function nF(e){return e.kind===p.NAMED_TYPE||e.kind===p.LIST_TYPE||e.kind===p.NON_NULL_TYPE}function nC(e){return e.kind===p.SCHEMA_DEFINITION||nV(e)||e.kind===p.DIRECTIVE_DEFINITION}function nV(e){return e.kind===p.SCALAR_TYPE_DEFINITION||e.kind===p.OBJECT_TYPE_DEFINITION||e.kind===p.INTERFACE_TYPE_DEFINITION||e.kind===p.UNION_TYPE_DEFINITION||e.kind===p.ENUM_TYPE_DEFINITION||e.kind===p.INPUT_OBJECT_TYPE_DEFINITION}function nU(e){return e.kind===p.SCHEMA_EXTENSION||nM(e)}function nM(e){return e.kind===p.SCALAR_TYPE_EXTENSION||e.kind===p.OBJECT_TYPE_EXTENSION||e.kind===p.INTERFACE_TYPE_EXTENSION||e.kind===p.UNION_TYPE_EXTENSION||e.kind===p.ENUM_TYPE_EXTENSION||e.kind===p.INPUT_OBJECT_TYPE_EXTENSION}function nj(e){return e.kind===p.TYPE_COORDINATE||e.kind===p.MEMBER_COORDINATE||e.kind===p.ARGUMENT_COORDINATE||e.kind===p.DIRECTIVE_COORDINATE||e.kind===p.DIRECTIVE_ARGUMENT_COORDINATE}function nP(e){return{Document(t){for(let n of t.definitions)if(!nL(n)){let t=n.kind===p.SCHEMA_DEFINITION||n.kind===p.SCHEMA_EXTENSION?"schema":'"'+n.name.value+'"';e.reportError(new w(`The ${t} definition is not executable.`,{nodes:n}))}return!1}}}function nG(e){return{Field(t){let n=e.getParentType();if(n&&!e.getFieldDef()){var r,i;let o=e.getSchema(),a=t.name.value,s=em("to use an inline fragment on",function(e,t,n){if(!ts(t))return[];let r=new Set,i=Object.create(null);for(let a of e.getPossibleTypes(t))if(a.getFields()[n])for(let e of(r.add(a),i[a.name]=1,a.getInterfaces())){var o;e.getFields()[n]&&(r.add(e),i[e.name]=(null!=(o=i[e.name])?o:0)+1)}return[...r].sort((t,n)=>{let r=i[n.name]-i[t.name];return 0!==r?r:eH(t)&&e.isSubType(t,n)?-1:eH(n)&&e.isSubType(n,t)?1:eN(t.name,n.name)}).map(e=>e.name)}(o,n,a));""===s&&(s=em((r=n,i=a,eX(r)||eH(r)?e_(i,Object.keys(r.getFields())):[]))),e.reportError(new w(`Cannot query field "${a}" on type "${n.name}".`+s,{nodes:t}))}}}}function nB(e){return{InlineFragment(t){let n=t.typeCondition;if(n){let t=nA(e.getSchema(),n);if(t&&!to(t)){let t=eF(n);e.reportError(new w(`Fragment cannot condition on non composite type "${t}".`,{nodes:n}))}}},FragmentDefinition(t){let n=nA(e.getSchema(),t.typeCondition);if(n&&!to(n)){let n=eF(t.typeCondition);e.reportError(new w(`Fragment "${t.name.value}" cannot condition on non composite type "${n}".`,{nodes:t.typeCondition}))}}}}function nY(e){return{...nQ(e),Argument(t){let n=e.getArgument(),r=e.getFieldDef(),i=e.getParentType();if(!n&&r&&i){let n=t.name.value,o=e_(n,r.args.map(e=>e.name));e.reportError(new w(`Unknown argument "${n}" on field "${i.name}.${r.name}".`+em(o),{nodes:t}))}}}}function nQ(e){let t=Object.create(null),n=e.getSchema();for(let e of n?n.getDirectives():t8)t[e.name]=e.args.map(e=>e.name);for(let n of e.getDocument().definitions)if(n.kind===p.DIRECTIVE_DEFINITION){var r;let e=null!=(r=n.arguments)?r:[];t[n.name.value]=e.map(e=>e.name.value)}return{Directive(n){let r=n.name.value,i=t[r];if(n.arguments&&i)for(let t of n.arguments){let n=t.name.value;if(!i.includes(n)){let o=e_(n,i);e.reportError(new w(`Unknown argument "${n}" on directive "@${r}".`+em(o),{nodes:t}))}}return!1}}}function nq(e){let t=Object.create(null),n=e.getSchema();for(let e of n?n.getDirectives():t8)t[e.name]=e.locations;for(let n of e.getDocument().definitions)n.kind===p.DIRECTIVE_DEFINITION&&(t[n.name.value]=n.locations.map(e=>e.value));return{Directive(n,r,i,o,a){let s=n.name.value,l=t[s];if(!l)return void e.reportError(new w(`Unknown directive "@${s}".`,{nodes:n}));let d=function(e){let t=e[e.length-1];switch("kind"in t||_(!1),t.kind){case p.OPERATION_DEFINITION:var n=t.operation;switch(n){case u.QUERY:return c.QUERY;case u.MUTATION:return c.MUTATION;case u.SUBSCRIPTION:return c.SUBSCRIPTION}return;case p.FIELD:return c.FIELD;case p.FRAGMENT_SPREAD:return c.FRAGMENT_SPREAD;case p.INLINE_FRAGMENT:return c.INLINE_FRAGMENT;case p.FRAGMENT_DEFINITION:return c.FRAGMENT_DEFINITION;case p.VARIABLE_DEFINITION:return c.VARIABLE_DEFINITION;case p.SCHEMA_DEFINITION:case p.SCHEMA_EXTENSION:return c.SCHEMA;case p.SCALAR_TYPE_DEFINITION:case p.SCALAR_TYPE_EXTENSION:return c.SCALAR;case p.OBJECT_TYPE_DEFINITION:case p.OBJECT_TYPE_EXTENSION:return c.OBJECT;case p.FIELD_DEFINITION:return c.FIELD_DEFINITION;case p.INTERFACE_TYPE_DEFINITION:case p.INTERFACE_TYPE_EXTENSION:return c.INTERFACE;case p.UNION_TYPE_DEFINITION:case p.UNION_TYPE_EXTENSION:return c.UNION;case p.ENUM_TYPE_DEFINITION:case p.ENUM_TYPE_EXTENSION:return c.ENUM;case p.ENUM_VALUE_DEFINITION:return c.ENUM_VALUE;case p.INPUT_OBJECT_TYPE_DEFINITION:case p.INPUT_OBJECT_TYPE_EXTENSION:return c.INPUT_OBJECT;case p.INPUT_VALUE_DEFINITION:{let t=e[e.length-3];return"kind"in t||_(!1),t.kind===p.INPUT_OBJECT_TYPE_DEFINITION?c.INPUT_FIELD_DEFINITION:c.ARGUMENT_DEFINITION}default:_(!1,"Unexpected kind: "+ei(t.kind))}}(a);d&&!l.includes(d)&&e.reportError(new w(`Directive "@${s}" may not be used on ${d}.`,{nodes:n}))}}}function nJ(e){return{FragmentSpread(t){let n=t.name.value;e.getFragment(n)||e.reportError(new w(`Unknown fragment "${n}".`,{nodes:t.name}))}}}function nK(e){let t=e.getSchema(),n=t?t.getTypeMap():Object.create(null),r=Object.create(null);for(let t of e.getDocument().definitions)nV(t)&&(r[t.name.value]=!0);let i=[...Object.keys(n),...Object.keys(r)];return{NamedType(t,o,a,s,l){let u=t.name.value;if(!n[u]&&!r[u]){var c,p;let n=null!=(c=l[2])?c:a,r=null!=n&&"kind"in(p=n)&&(nC(p)||nU(p));if(r&&nX.includes(u))return;let o=e_(u,r?nX.concat(i):i);e.reportError(new w(`Unknown type "${u}".`+em(o),{nodes:t}))}}}}let nX=[...tX,...nf].map(e=>e.name);function nz(e){let t=0;return{Document(e){t=e.definitions.filter(e=>e.kind===p.OPERATION_DEFINITION).length},OperationDefinition(n){!n.name&&t>1&&e.reportError(new w("This anonymous operation must be the only defined operation.",{nodes:n}))}}}function nH(e){var t,n,r;let i=e.getSchema(),o=null!=(t=null!=(n=null!=(r=null==i?void 0:i.astNode)?r:null==i?void 0:i.getQueryType())?n:null==i?void 0:i.getMutationType())?t:null==i?void 0:i.getSubscriptionType(),a=0;return{SchemaDefinition(t){o?e.reportError(new w("Cannot define a new schema within a schema extension.",{nodes:t})):(a>0&&e.reportError(new w("Must provide only one schema definition.",{nodes:t})),++a)}}}function nW(e){return{Field(t){if(("__schema"===t.name.value||"__type"===t.name.value)&&function t(n,r=Object.create(null),i=0){if(n.kind===p.FRAGMENT_SPREAD){let o=n.name.value;if(!0===r[o])return!1;let a=e.getFragment(o);if(!a)return!1;try{return r[o]=!0,t(a,r,i)}finally{r[o]=void 0}}if(n.kind===p.FIELD&&("fields"===n.name.value||"interfaces"===n.name.value||"possibleTypes"===n.name.value||"inputFields"===n.name.value)&&++i>=3)return!0;if("selectionSet"in n&&n.selectionSet){for(let e of n.selectionSet.selections)if(t(e,r,i))return!0}return!1}(t))return e.reportError(new w("Maximum introspection depth exceeded",{nodes:[t]})),!1}}}function nZ(e){let t=Object.create(null),n=[],r=Object.create(null);return{OperationDefinition:()=>!1,FragmentDefinition:i=>((function i(o){if(t[o.name.value])return;let a=o.name.value;t[a]=!0;let s=e.getFragmentSpreads(o.selectionSet);if(0!==s.length){for(let t of(r[a]=n.length,s)){let o=t.name.value,a=r[o];if(n.push(t),void 0===a){let t=e.getFragment(o);t&&i(t)}else{let t=n.slice(a),r=t.slice(0,-1).map(e=>'"'+e.name.value+'"').join(", ");e.reportError(new w(`Cannot spread fragment "${o}" within itself`+(""!==r?` via ${r}.`:"."),{nodes:t}))}n.pop()}r[a]=void 0}})(i),!1)}}function n0(e){let t=Object.create(null);return{OperationDefinition:{enter(){t=Object.create(null)},leave(n){for(let{node:r}of e.getRecursiveVariableUsages(n)){let i=r.name.value;!0!==t[i]&&e.reportError(new w(n.name?`Variable "$${i}" is not defined by operation "${n.name.value}".`:`Variable "$${i}" is not defined.`,{nodes:[r,n]}))}}},VariableDefinition(e){t[e.variable.name.value]=!0}}}function n1(e){let t=[],n=[];return{OperationDefinition:e=>(t.push(e),!1),FragmentDefinition:e=>(n.push(e),!1),Document:{leave(){let r=Object.create(null);for(let n of t)for(let t of e.getRecursivelyReferencedFragments(n))r[t.name.value]=!0;for(let t of n){let n=t.name.value;!0!==r[n]&&e.reportError(new w(`Fragment "${n}" is never used.`,{nodes:t}))}}}}}function n2(e){let t=[];return{OperationDefinition:{enter(){t=[]},leave(n){let r=Object.create(null);for(let{node:t}of e.getRecursiveVariableUsages(n))r[t.name.value]=!0;for(let i of t){let t=i.variable.name.value;!0!==r[t]&&e.reportError(new w(n.name?`Variable "$${t}" is never used in operation "${n.name.value}".`:`Variable "$${t}" is never used.`,{nodes:i}))}}},VariableDefinition(e){t.push(e)}}}function n3(e){switch(e.kind){case p.OBJECT:return{...e,fields:e.fields.map(e=>({...e,value:n3(e.value)})).sort((e,t)=>eN(e.name.value,t.name.value))};case p.LIST:return{...e,values:e.values.map(n3)};case p.INT:case p.FLOAT:case p.STRING:case p.BOOLEAN:case p.NULL:case p.ENUM:case p.VARIABLE:return e}}function n4(e){let t=new rt,n=new rn,r=new Map;return{SelectionSet(i){for(let[[o,a],s,l]of function(e,t,n,r,i,o){let a=[],[s,l]=n7(e,t,i,o);if(function(e,t,n,r,i,o){for(let[a,s]of Object.entries(o))if(s.length>1)for(let o=0;o`subfields "${t}" conflict because `+e(n)).join(" and "):t}(a);e.reportError(new w(`Fields "${o}" conflict because ${t}. Use different aliases on the fields to fetch both if this was intentional.`,{nodes:s.concat(l)}))}}}}function n9(e,t,n,r,i,o,a,s){if(r.has(a,s,o))return;r.add(a,s,o);let l=e.getFragment(s);if(!l)return;let[u,c]=re(e,n,l);if(a!==u)for(let s of(n8(e,t,n,r,i,o,a,u),c))n9(e,t,n,r,i,o,a,s)}function n5(e,t,n,r,i,o,a,s){if(a===s||i.has(a,s,o))return;i.add(a,s,o);let l=e.getFragment(a),u=e.getFragment(s);if(!l||!u)return;let[c,p]=re(e,n,l),[d,f]=re(e,n,u);for(let s of(n8(e,t,n,r,i,o,c,d),f))n5(e,t,n,r,i,o,a,s);for(let a of p)n5(e,t,n,r,i,o,a,s)}function n8(e,t,n,r,i,o,a,s){for(let[l,u]of Object.entries(a)){let a=s[l];if(a)for(let s of u)for(let u of a){let a=n6(e,n,r,i,o,l,s,u);a&&t.push(a)}}}function n6(e,t,n,r,i,o,a,s){let[l,u,c]=a,[p,d,f]=s,h=i||l!==p&&eX(l)&&eX(p);if(!h){let e=u.name.value,t=d.name.value;if(e!==t)return[[o,`"${e}" and "${t}" are different fields`],[u],[d]];if(!function(e,t){let n=e.arguments,r=t.arguments;if(void 0===n||0===n.length)return void 0===r||0===r.length;if(void 0===r||0===r.length||n.length!==r.length)return!1;let i=new Map(r.map(({name:e,value:t})=>[e.value,t]));return n.every(e=>{let t=e.value,n=i.get(e.name.value);return void 0!==n&&function(e){return eF(n3(e))}(t)===function(e){return eF(n3(e))}(n)})}(u,d))return[[o,"they have differing arguments"],[u],[d]]}let m=null==c?void 0:c.type,y=null==f?void 0:f.type;if(m&&y&&function e(t,n){return e9(t)?!e9(n)||e(t.ofType,n.ofType):!!e9(n)||(e8(t)?!e8(n)||e(t.ofType,n.ofType):!!e8(n)||!!(tr(t)||tr(n))&&t!==n)}(m,y))return[[o,`they return conflicting types "${ei(m)}" and "${ei(y)}"`],[u],[d]];let E=u.selectionSet,T=d.selectionSet;if(E&&T){var v=function(e,t,n,r,i,o,a,s,l){let u=[],[c,p]=n7(e,t,o,a),[d,f]=n7(e,t,s,l);for(let o of(n8(e,u,t,n,r,i,c,d),f))n9(e,u,t,n,r,i,c,o);for(let o of p)n9(e,u,t,n,r,i,d,o);for(let o of p)for(let a of f)n5(e,u,t,n,r,i,o,a);return u}(e,t,n,r,h,tT(m),E,tT(y),T),N=o,I=u,g=d;return v.length>0?[[N,v.map(([e])=>e)],[I,...v.map(([,e])=>e).flat()],[g,...v.map(([,,e])=>e).flat()]]:void 0}}function n7(e,t,n,r){let i=t.get(r);if(i)return i;let o=Object.create(null),a=Object.create(null);!function e(t,n,r,i,o){for(let a of r.selections)switch(a.kind){case p.FIELD:{let e,t=a.name.value;(eX(n)||eH(n))&&(e=n.getFields()[t]);let r=a.alias?a.alias.value:t;i[r]||(i[r]=[]),i[r].push([n,a,e]);break}case p.FRAGMENT_SPREAD:o[a.name.value]=!0;break;case p.INLINE_FRAGMENT:{let r=a.typeCondition,s=r?nA(t.getSchema(),r):n;e(t,s,a.selectionSet,i,o)}}}(e,n,r,o,a);let s=[o,Object.keys(a)];return t.set(r,s),s}function re(e,t,n){let r=t.get(n.selectionSet);if(r)return r;let i=nA(e.getSchema(),n.typeCondition);return n7(e,t,i,n.selectionSet)}class rt{constructor(){this._data=new Map}has(e,t,n){var r;let i=null==(r=this._data.get(e))?void 0:r.get(t);return void 0!==i&&(!!n||n===i)}add(e,t,n){let r=this._data.get(e);void 0===r?this._data.set(e,new Map([[t,n]])):r.set(t,n)}}class rn{constructor(){this._orderedPairSet=new rt}has(e,t,n){return ee.name.value));for(let n of r.args)if(!i.has(n.name)&&tw(n)){let i=ei(n.type);e.reportError(new w(`Field "${r.name}" argument "${n.name}" of type "${i}" is required, but it was not provided.`,{nodes:t}))}}}}}function rs(e){var t,n;let r=Object.create(null),i=e.getSchema();for(let e of null!=(t=null==i?void 0:i.getDirectives())?t:t8)r[e.name]=eE(e.args.filter(tw),e=>e.name);for(let t of e.getDocument().definitions)if(t.kind===p.DIRECTIVE_DEFINITION){let e=null!=(n=t.arguments)?n:[];r[t.name.value]=eE(e.filter(rl),e=>e.name.value)}return{Directive:{leave(t){let n=t.name.value,i=r[n];if(i){var o;let r=new Set((null!=(o=t.arguments)?o:[]).map(e=>e.name.value));for(let[o,a]of Object.entries(i))if(!r.has(o)){let r=eQ(a.type)?ei(a.type):eF(a.type);e.reportError(new w(`Directive "@${n}" argument "${o}" of type "${r}" is required, but it was not provided.`,{nodes:t}))}}}}}}function rl(e){return e.type.kind===p.NON_NULL_TYPE&&null==e.defaultValue}function ru(e){return{Field(t){let n=e.getType(),r=t.selectionSet;if(n)if(tr(tT(n))){if(r){let i=t.name.value,o=ei(n);e.reportError(new w(`Field "${i}" must not have a selection since type "${o}" has no subfields.`,{nodes:r}))}}else if(r){if(0===r.selections.length){let r=t.name.value,i=ei(n);e.reportError(new w(`Field "${r}" of type "${i}" must have at least one field selected.`,{nodes:t}))}}else{let r=t.name.value,i=ei(n);e.reportError(new w(`Field "${r}" of type "${i}" must have a selection of subfields. Did you mean "${r} { ... }"?`,{nodes:t}))}}}}function rc(e){return e.map(e=>"number"==typeof e?"["+e.toString()+"]":"."+e).join("")}function rp(e,t,n){return{prev:e,key:t,typename:n}}function rd(e){let t=[],n=e;for(;n;)t.push(n.key),n=n.prev;return t.reverse()}function rf(e,t,n=rh){return function e(t,n,r,i){if(e8(n))return null!=t?e(t,n.ofType,r,i):void r(rd(i),t,new w(`Expected non-nullable type "${ei(n)}" not to be null.`));if(null==t)return null;if(e9(n)){let o=n.ofType;return t7(t)?Array.from(t,(t,n)=>e(t,o,r,rp(i,n,void 0))):[e(t,o,r,i)]}if(e3(n)){if(!g(t)||Array.isArray(t))return void r(rd(i),t,new w(`Expected type "${n.name}" to be an object.`));let o={},a=n.getFields();for(let s of Object.values(a)){let a=t[s.name];if(void 0===a){if(void 0!==s.defaultValue)o[s.name]=s.defaultValue;else if(e8(s.type)){let e=ei(s.type);r(rd(i),t,new w(`Field "${s.name}" of required type "${e}" was not provided.`))}continue}o[s.name]=e(a,s.type,r,rp(i,s.name,n.name))}for(let e of Object.keys(t))if(!a[e]){let o=e_(e,Object.keys(n.getFields()));r(rd(i),t,new w(`Field "${e}" is not defined by type "${n.name}".`+em(o)))}if(n.isOneOf){let e=Object.keys(o);1!==e.length&&r(rd(i),t,new w(`Exactly one key must be specified for OneOf type "${n.name}".`));let a=e[0],s=o[a];null===s&&r(rd(i).concat(a),s,new w(`Field "${a}" must be non-null.`))}return o}if(tr(n)){let e;try{e=n.parseValue(t)}catch(e){e instanceof w?r(rd(i),t,e):r(rd(i),t,new w(`Expected type "${n.name}". `+e.message,{originalError:e}));return}return void 0===e&&r(rd(i),t,new w(`Expected type "${n.name}".`)),e}_(!1,"Unexpected input type: "+ei(n))}(e,t,n,void 0)}function rh(e,t,n){let r="Invalid value "+ei(t);throw e.length>0&&(r+=` at "value${rc(e)}"`),n.message=r+": "+n.message,n}function rm(e,t,n){if(e){if(e.kind===p.VARIABLE){let r=e.name.value;if(null==n||void 0===n[r])return;let i=n[r];if(null===i&&e8(t))return;return i}if(e8(t)){if(e.kind===p.NULL)return;return rm(e,t.ofType,n)}if(e.kind===p.NULL)return null;if(e9(t)){let r=t.ofType;if(e.kind===p.LIST){let t=[];for(let i of e.values)if(ry(i,n)){if(e8(r))return;t.push(null)}else{let e=rm(i,r,n);if(void 0===e)return;t.push(e)}return t}let i=rm(e,r,n);if(void 0===i)return;return[i]}if(e3(t)){if(e.kind!==p.OBJECT)return;let r=Object.create(null),i=eE(e.fields,e=>e.name.value);for(let e of Object.values(t.getFields())){let t=i[e.name];if(!t||ry(t.value,n)){if(void 0!==e.defaultValue)r[e.name]=e.defaultValue;else if(e8(e.type))return;continue}let o=rm(t.value,e.type,n);if(void 0===o)return;r[e.name]=o}if(t.isOneOf){let e=Object.keys(r);if(1!==e.length||null===r[e[0]])return}return r}if(tr(t)){let r;try{r=t.parseLiteral(e,n)}catch(e){return}if(void 0===r)return;return r}_(!1,"Unexpected input type: "+ei(t))}}function ry(e,t){return e.kind===p.VARIABLE&&(null==t||void 0===t[e.name.value])}function rE(e,t,n,r){let i=[],o=null==r?void 0:r.maxErrors;try{let r=function(e,t,n,r){let i={};for(let o of t){let t=o.variable.name.value,a=nA(e,o.type);if(!e7(a)){let e=eF(o.type);r(new w(`Variable "$${t}" expected value of type "${e}" which cannot be used as an input type.`,{nodes:o.type}));continue}if(!rN(n,t)){if(o.defaultValue)i[t]=rm(o.defaultValue,a);else if(e8(a)){let e=ei(a);r(new w(`Variable "$${t}" of required type "${e}" was not provided.`,{nodes:o}))}continue}let s=n[t];if(null===s&&e8(a)){let e=ei(a);r(new w(`Variable "$${t}" of non-null type "${e}" must not be null.`,{nodes:o}));continue}i[t]=rf(s,a,(e,n,i)=>{let a=`Variable "$${t}" got invalid value `+ei(n);e.length>0&&(a+=` at "${t}${rc(e)}"`),r(new w(a+"; "+i.message,{nodes:o,originalError:i}))})}return i}(e,t,n,e=>{if(null!=o&&i.length>=o)throw new w("Too many errors processing variables, error limit reached. Execution aborted.");i.push(e)});if(0===i.length)return{coerced:r}}catch(e){i.push(e)}return{errors:i}}function rT(e,t,n){var r;let i={},o=eE(null!=(r=t.arguments)?r:[],e=>e.name.value);for(let r of e.args){let e=r.name,a=r.type,s=o[e];if(!s){if(void 0!==r.defaultValue)i[e]=r.defaultValue;else if(e8(a))throw new w(`Argument "${e}" of required type "${ei(a)}" was not provided.`,{nodes:t});continue}let l=s.value,u=l.kind===p.NULL;if(l.kind===p.VARIABLE){let t=l.name.value;if(null==n||!rN(n,t)){if(void 0!==r.defaultValue)i[e]=r.defaultValue;else if(e8(a))throw new w(`Argument "${e}" of required type "${ei(a)}" was provided the variable "$${t}" which was not provided a runtime value.`,{nodes:l});continue}u=null==n[t]}if(u&&e8(a))throw new w(`Argument "${e}" of non-null type "${ei(a)}" must not be null.`,{nodes:l});let c=rm(l,a,n);if(void 0===c)throw new w(`Argument "${e}" has invalid value ${eF(l)}.`,{nodes:l});i[e]=c}return i}function rv(e,t,n){var r;let i=null==(r=t.directives)?void 0:r.find(t=>t.name.value===e.name);if(i)return rT(e,i,n)}function rN(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function rI(e,t,n,r,i){let o=new Map;return rg(e,t,n,r,i,o,new Set),o}function rg(e,t,n,r,i,o,a){for(let l of i.selections)switch(l.kind){case p.FIELD:{var s;if(!r_(n,l))continue;let e=(s=l).alias?s.alias.value:s.name.value,t=o.get(e);void 0!==t?t.push(l):o.set(e,[l]);break}case p.INLINE_FRAGMENT:if(!r_(n,l)||!rO(e,l,r))continue;rg(e,t,n,r,l.selectionSet,o,a);break;case p.FRAGMENT_SPREAD:{let i=l.name.value;if(a.has(i)||!r_(n,l))continue;a.add(i);let s=t[i];if(!s||!rO(e,s,r))continue;rg(e,t,n,r,s.selectionSet,o,a)}}}function r_(e,t){let n=rv(t2,t,e);if((null==n?void 0:n.if)===!0)return!1;let r=rv(t1,t,e);return(null==r?void 0:r.if)!==!1}function rO(e,t,n){let r=t.typeCondition;if(!r)return!0;let i=nA(e,r);return i===n||!!ts(i)&&e.isSubType(i,n)}function rb(e){return{OperationDefinition(t){if("subscription"===t.operation){let n=e.getSchema(),r=n.getSubscriptionType();if(r){let i=t.name?t.name.value:null,o=Object.create(null),a=e.getDocument(),s=Object.create(null);for(let e of a.definitions)e.kind===p.FRAGMENT_DEFINITION&&(s[e.name.value]=e);let l=rI(n,s,o,r,t.selectionSet);if(l.size>1){let t=[...l.values()].slice(1).flat();e.reportError(new w(null!=i?`Subscription "${i}" must select only one top level field.`:"Anonymous Subscription must select only one top level field.",{nodes:t}))}for(let t of l.values())t[0].name.value.startsWith("__")&&e.reportError(new w(null!=i?`Subscription "${i}" must not select an introspection top level field.`:"Anonymous Subscription must not select an introspection top level field.",{nodes:t}))}}}}}function rD(e,t){let n=new Map;for(let r of e){let e=t(r),i=n.get(e);void 0===i?n.set(e,[r]):i.push(r)}return n}function rA(e){return{DirectiveDefinition(e){var t;let r=null!=(t=e.arguments)?t:[];return n(`@${e.name.value}`,r)},InterfaceTypeDefinition:t,InterfaceTypeExtension:t,ObjectTypeDefinition:t,ObjectTypeExtension:t};function t(e){var t,r;let i=e.name.value;for(let o of null!=(t=e.fields)?t:[]){let e=o.name.value;n(`${i}.${e}`,null!=(r=o.arguments)?r:[])}return!1}function n(t,n){for(let[r,i]of rD(n,e=>e.name.value))i.length>1&&e.reportError(new w(`Argument "${t}(${r}:)" can only be defined once.`,{nodes:i.map(e=>e.name)}));return!1}}function rS(e){return{Field:t,Directive:t};function t(t){var n;for(let[r,i]of rD(null!=(n=t.arguments)?n:[],e=>e.name.value))i.length>1&&e.reportError(new w(`There can be only one argument named "${r}".`,{nodes:i.map(e=>e.name)}))}}function rw(e){let t=Object.create(null),n=e.getSchema();return{DirectiveDefinition(r){let i=r.name.value;return null!=n&&n.getDirective(i)?void e.reportError(new w(`Directive "@${i}" already exists in the schema. It cannot be redefined.`,{nodes:r.name})):(t[i]?e.reportError(new w(`There can be only one directive named "@${i}".`,{nodes:[t[i],r.name]})):t[i]=r.name,!1)}}}function rR(e){let t=Object.create(null),n=e.getSchema();for(let e of n?n.getDirectives():t8)t[e.name]=!e.isRepeatable;for(let n of e.getDocument().definitions)n.kind===p.DIRECTIVE_DEFINITION&&(t[n.name.value]=!n.repeatable);let r=Object.create(null),i=Object.create(null);return{enter(n){let o;if("directives"in n&&n.directives){if(n.kind===p.SCHEMA_DEFINITION||n.kind===p.SCHEMA_EXTENSION)o=r;else if(nV(n)||nM(n)){let e=n.name.value;void 0===(o=i[e])&&(i[e]=o=Object.create(null))}else o=Object.create(null);for(let r of n.directives){let n=r.name.value;t[n]&&(o[n]?e.reportError(new w(`The directive "@${n}" can only be used once at this location.`,{nodes:[o[n],r]})):o[n]=r)}}}}}function rk(e){let t=e.getSchema(),n=t?t.getTypeMap():Object.create(null),r=Object.create(null);return{EnumTypeDefinition:i,EnumTypeExtension:i};function i(t){var i;let o=t.name.value;r[o]||(r[o]=Object.create(null));let a=null!=(i=t.values)?i:[],s=r[o];for(let t of a){let r=t.name.value,i=n[o];e1(i)&&i.getValue(r)?e.reportError(new w(`Enum value "${o}.${r}" already exists in the schema. It cannot also be defined in this type extension.`,{nodes:t.name})):s[r]?e.reportError(new w(`Enum value "${o}.${r}" can only be defined once.`,{nodes:[s[r],t.name]})):s[r]=t.name}return!1}}function rL(e){let t=e.getSchema(),n=t?t.getTypeMap():Object.create(null),r=Object.create(null);return{InputObjectTypeDefinition:i,InputObjectTypeExtension:i,InterfaceTypeDefinition:i,InterfaceTypeExtension:i,ObjectTypeDefinition:i,ObjectTypeExtension:i};function i(t){var i,o,a;let s=t.name.value;r[s]||(r[s]=Object.create(null));let l=null!=(i=t.fields)?i:[],u=r[s];for(let t of l){let r=t.name.value;(o=n[s],a=r,(eX(o)||eH(o)||e3(o))&&null!=o.getFields()[a])?e.reportError(new w(`Field "${s}.${r}" already exists in the schema. It cannot also be defined in this type extension.`,{nodes:t.name})):u[r]?e.reportError(new w(`Field "${s}.${r}" can only be defined once.`,{nodes:[u[r],t.name]})):u[r]=t.name}return!1}}function r$(e){let t=Object.create(null);return{OperationDefinition:()=>!1,FragmentDefinition(n){let r=n.name.value;return t[r]?e.reportError(new w(`There can be only one fragment named "${r}".`,{nodes:[t[r],n.name]})):t[r]=n.name,!1}}}function rx(e){let t=[],n=Object.create(null);return{ObjectValue:{enter(){t.push(n),n=Object.create(null)},leave(){let e=t.pop();e||_(!1),n=e}},ObjectField(t){let r=t.name.value;n[r]?e.reportError(new w(`There can be only one input field named "${r}".`,{nodes:[n[r],t.name]})):n[r]=t.name}}}function rF(e){let t=Object.create(null);return{OperationDefinition(n){let r=n.name;return r&&(t[r.value]?e.reportError(new w(`There can be only one operation named "${r.value}".`,{nodes:[t[r.value],r]})):t[r.value]=r),!1},FragmentDefinition:()=>!1}}function rC(e){let t=e.getSchema(),n=Object.create(null),r=t?{query:t.getQueryType(),mutation:t.getMutationType(),subscription:t.getSubscriptionType()}:{};return{SchemaDefinition:i,SchemaExtension:i};function i(t){var i;for(let o of null!=(i=t.operationTypes)?i:[]){let t=o.operation,i=n[t];r[t]?e.reportError(new w(`Type for ${t} already defined in the schema. It cannot be redefined.`,{nodes:o})):i?e.reportError(new w(`There can be only one ${t} type in schema.`,{nodes:[i,o]})):n[t]=o}return!1}}function rV(e){let t=Object.create(null),n=e.getSchema();return{ScalarTypeDefinition:r,ObjectTypeDefinition:r,InterfaceTypeDefinition:r,UnionTypeDefinition:r,EnumTypeDefinition:r,InputObjectTypeDefinition:r};function r(r){let i=r.name.value;return null!=n&&n.getType(i)?void e.reportError(new w(`Type "${i}" already exists in the schema. It cannot also be defined in this type definition.`,{nodes:r.name})):(t[i]?e.reportError(new w(`There can be only one type named "${i}".`,{nodes:[t[i],r.name]})):t[i]=r.name,!1)}}function rU(e){return{OperationDefinition(t){var n;for(let[r,i]of rD(null!=(n=t.variableDefinitions)?n:[],e=>e.variable.name.value))i.length>1&&e.reportError(new w(`There can be only one variable named "$${r}".`,{nodes:i.map(e=>e.variable.name)}))}}}function rM(e){let t={};return{OperationDefinition:{enter(){t={}}},VariableDefinition(e){t[e.variable.name.value]=e},ListValue(t){if(!e9(tm(e.getParentInputType())))return rj(e,t),!1},ObjectValue(t){let n=tT(e.getInputType());if(!e3(n))return rj(e,t),!1;let r=eE(t.fields,e=>e.name.value);for(let i of Object.values(n.getFields()))if(!r[i.name]&&tU(i)){let r=ei(i.type);e.reportError(new w(`Field "${n.name}.${i.name}" of required type "${r}" was not provided.`,{nodes:t}))}n.isOneOf&&function(e,t,n,r){var i;let o=Object.keys(r);if(1!==o.length)return e.reportError(new w(`OneOf Input Object "${n.name}" must specify exactly one key.`,{nodes:[t]}));let a=null==(i=r[o[0]])?void 0:i.value;a&&a.kind!==p.NULL||e.reportError(new w(`Field "${n.name}.${o[0]}" must be non-null.`,{nodes:[t]}))}(e,t,n,r)},ObjectField(t){let n=tT(e.getParentInputType());if(!e.getInputType()&&e3(n)){let r=e_(t.name.value,Object.keys(n.getFields()));e.reportError(new w(`Field "${t.name.value}" is not defined by type "${n.name}".`+em(r),{nodes:t}))}},NullValue(t){let n=e.getInputType();e8(n)&&e.reportError(new w(`Expected value of type "${ei(n)}", found ${eF(t)}.`,{nodes:t}))},EnumValue:t=>rj(e,t),IntValue:t=>rj(e,t),FloatValue:t=>rj(e,t),StringValue:t=>rj(e,t),BooleanValue:t=>rj(e,t)}}function rj(e,t){let n=e.getInputType();if(!n)return;let r=tT(n);if(!tr(r)){let r=ei(n);e.reportError(new w(`Expected value of type "${r}", found ${eF(t)}.`,{nodes:t}));return}try{let i=r.parseLiteral(t,void 0);if(void 0===i){let r=ei(n);e.reportError(new w(`Expected value of type "${r}", found ${eF(t)}.`,{nodes:t}))}}catch(i){let r=ei(n);i instanceof w?e.reportError(i):e.reportError(new w(`Expected value of type "${r}", found ${eF(t)}; `+i.message,{nodes:t,originalError:i}))}}function rP(e){return{VariableDefinition(t){let n=nA(e.getSchema(),t.type);if(void 0!==n&&!e7(n)){let n=t.variable.name.value,r=eF(t.type);e.reportError(new w(`Variable "$${n}" cannot be non-input type "${r}".`,{nodes:t.type}))}}}}function rG(e){let t=Object.create(null);return{OperationDefinition:{enter(){t=Object.create(null)},leave(n){for(let{node:l,type:u,defaultValue:c,parentType:d}of e.getRecursiveVariableUsages(n)){let n=l.name.value,f=t[n];if(f&&u){var r,i,o,a,s;let t=e.getSchema(),h=nA(t,f.type);if(h&&(r=t,i=h,o=f.defaultValue,a=u,s=c,e8(a)&&!e8(i)?!((null!=o&&o.kind!==p.NULL||void 0!==s)&&tj(r,i,a.ofType)):!tj(r,i,a))){let t=ei(h),r=ei(u);e.reportError(new w(`Variable "$${n}" of type "${t}" used in position expecting type "${r}".`,{nodes:[f,l]}))}e3(d)&&d.isOneOf&&tf(h)&&e.reportError(new w(`Variable "$${n}" is of type "${h}" but must be non-nullable to be used for OneOf Input Object "${d}".`,{nodes:[f,l]}))}}}},VariableDefinition(e){t[e.variable.name.value]=e}}}let rB=Object.freeze([nW]),rY=Object.freeze([nP,rF,nz,rb,nK,nB,rP,ru,nG,r$,nJ,n1,rr,nZ,rU,n0,n2,nq,rR,nY,rS,rM,ra,rG,n4,rx,...rB]),rQ=Object.freeze([nH,rC,rV,rk,rL,rA,rw,nK,nq,rR,ri,nQ,rS,rx,rs]);class rq{constructor(e,t){this._ast=e,this._fragments=void 0,this._fragmentSpreads=new Map,this._recursivelyReferencedFragments=new Map,this._onError=t}get[Symbol.toStringTag](){return"ASTValidationContext"}reportError(e){this._onError(e)}getDocument(){return this._ast}getFragment(e){let t;if(this._fragments)t=this._fragments;else{for(let e of(t=Object.create(null),this.getDocument().definitions))e.kind===p.FRAGMENT_DEFINITION&&(t[e.name.value]=e);this._fragments=t}return t[e]}getFragmentSpreads(e){let t=this._fragmentSpreads.get(e);if(!t){let n;t=[];let r=[e];for(;n=r.pop();)for(let e of n.selections)e.kind===p.FRAGMENT_SPREAD?t.push(e):e.selectionSet&&r.push(e.selectionSet);this._fragmentSpreads.set(e,t)}return t}getRecursivelyReferencedFragments(e){let t=this._recursivelyReferencedFragments.get(e);if(!t){let n;t=[];let r=Object.create(null),i=[e.selectionSet];for(;n=i.pop();)for(let e of this.getFragmentSpreads(n)){let n=e.name.value;if(!0!==r[n]){r[n]=!0;let e=this.getFragment(n);e&&(t.push(e),i.push(e.selectionSet))}}this._recursivelyReferencedFragments.set(e,t)}return t}}class rJ extends rq{constructor(e,t,n){super(e,n),this._schema=t}get[Symbol.toStringTag](){return"SDLValidationContext"}getSchema(){return this._schema}}class rK extends rq{constructor(e,t,n,r){super(t,r),this._schema=e,this._typeInfo=n,this._variableUsages=new Map,this._recursiveVariableUsages=new Map}get[Symbol.toStringTag](){return"ValidationContext"}getSchema(){return this._schema}getVariableUsages(e){let t=this._variableUsages.get(e);if(!t){let n=[],r=new nS(this._schema);ek(e,nR(r,{VariableDefinition:()=>!1,Variable(e){n.push({node:e,type:r.getInputType(),defaultValue:r.getDefaultValue(),parentType:r.getParentInputType()})}})),t=n,this._variableUsages.set(e,t)}return t}getRecursiveVariableUsages(e){let t=this._recursiveVariableUsages.get(e);if(!t){for(let n of(t=this.getVariableUsages(e),this.getRecursivelyReferencedFragments(e)))t=t.concat(this.getVariableUsages(n));this._recursiveVariableUsages.set(e,t)}return t}getType(){return this._typeInfo.getType()}getParentType(){return this._typeInfo.getParentType()}getInputType(){return this._typeInfo.getInputType()}getParentInputType(){return this._typeInfo.getParentInputType()}getFieldDef(){return this._typeInfo.getFieldDef()}getDirective(){return this._typeInfo.getDirective()}getArgument(){return this._typeInfo.getArgument()}getEnumValue(){return this._typeInfo.getEnumValue()}}function rX(e,t,n=rY,r,i=new nS(e)){var o;let a=null!=(o=null==r?void 0:r.maxErrors)?o:100;t||N(!1,"Must provide document."),nN(e);let s=Object.freeze({}),l=[],u=new rK(e,t,i,e=>{if(l.length>=a)throw l.push(new w("Too many validation errors, error limit reached. Validation aborted.")),s;l.push(e)}),c=eL(n.map(e=>e(u)));try{ek(t,nR(i,c))}catch(e){if(e!==s)throw e}return l}function rz(e,t,n=rQ){let r=[],i=new rJ(e,t,e=>{r.push(e)});return ek(e,eL(n.map(e=>e(i)))),r}function rH(e){return Promise.all(Object.values(e)).then(t=>{let n=Object.create(null);for(let[r,i]of Object.keys(e).entries())n[i]=t[r];return n})}class rW extends Error{constructor(e){super("Unexpected error value: "+ei(e)),this.name="NonErrorThrown",this.thrownValue=e}}function rZ(e,t,n){var r;let i=e instanceof Error?e:new rW(e);return Array.isArray(i.path)?i:new w(i.message,{nodes:null!=(r=i.nodes)?r:t,source:i.source,positions:i.positions,path:n,originalError:i})}let r0=(a=(e,t,n)=>(function(e,t,n,r,i){let o=new Map,a=new Set;for(let s of i)s.selectionSet&&rg(e,t,n,r,s.selectionSet,o,a);return o})(e.schema,e.fragments,e.variableValues,t,n),function(t,n,r){void 0===e&&(e=new WeakMap);let i=e.get(t);void 0===i&&(i=new WeakMap,e.set(t,i));let o=i.get(n);void 0===o&&(o=new WeakMap,i.set(n,o));let s=o.get(r);return void 0===s&&(s=a(t,n,r),o.set(r,s)),s});function r1(e){arguments.length<2||N(!1,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");let{schema:t,document:n,variableValues:r,rootValue:i}=e;r4(t,n,r);let o=r9(e);if(!("schema"in o))return{errors:o};try{let{operation:e}=o,t=function(e,t,n){let r=e.schema.getRootType(t.operation);if(null==r)throw new w(`Schema is not configured to execute ${t.operation} operation.`,{nodes:t});let i=rI(e.schema,e.fragments,e.variableValues,r,t.selectionSet),o;switch(t.operation){case u.QUERY:return r5(e,r,n,o,i);case u.MUTATION:var a,s,l,c,p;return a=e,s=r,l=n,c=o,p=i,function(e,t,n){let r=n;for(let n of e)r=I(r)?r.then(e=>t(e,n)):t(r,n);return r}(p.entries(),(e,[t,n])=>{let r=rp(c,t,s.name),i=r8(a,s,l,n,r);return void 0===i?e:I(i)?i.then(n=>(e[t]=n,e)):(e[t]=i,e)},Object.create(null));case u.SUBSCRIPTION:return r5(e,r,n,o,i)}}(o,e,i);if(I(t))return t.then(e=>r3(e,o.errors),e=>(o.errors.push(e),r3(null,o.errors)));return r3(t,o.errors)}catch(e){return o.errors.push(e),r3(null,o.errors)}}function r2(e){let t=r1(e);if(I(t))throw Error("GraphQL execution failed to complete synchronously.");return t}function r3(e,t){return 0===t.length?{data:e}:{errors:t,data:e}}function r4(e,t,n){t||N(!1,"Must provide document."),nN(e),null==n||g(n)||N(!1,"Variables must be provided as an Object where each property is a variable value. Perhaps look to see if an unparsed JSON string was provided.")}function r9(e){var t,n,r;let i,{schema:o,document:a,rootValue:s,contextValue:l,variableValues:u,operationName:c,fieldResolver:d,typeResolver:f,subscribeFieldResolver:h,options:m}=e,y=Object.create(null);for(let e of a.definitions)switch(e.kind){case p.OPERATION_DEFINITION:if(null==c){if(void 0!==i)return[new w("Must provide operation name if query contains multiple operations.")];i=e}else(null==(t=e.name)?void 0:t.value)===c&&(i=e);break;case p.FRAGMENT_DEFINITION:y[e.name.value]=e}if(!i)return null!=c?[new w(`Unknown operation named "${c}".`)]:[new w("Must provide an operation.")];let E=rE(o,null!=(n=i.variableDefinitions)?n:[],null!=u?u:{},{maxErrors:null!=(r=null==m?void 0:m.maxCoercionErrors)?r:50});return E.errors?E.errors:{schema:o,fragments:y,rootValue:s,contextValue:l,operation:i,variableValues:E.coerced,fieldResolver:null!=d?d:ia,typeResolver:null!=f?f:io,subscribeFieldResolver:null!=h?h:ia,errors:[]}}function r5(e,t,n,r,i){let o=Object.create(null),a=!1;try{for(let[s,l]of i.entries()){let i=rp(r,s,t.name),u=r8(e,t,n,l,i);void 0!==u&&(o[s]=u,I(u)&&(a=!0))}}catch(e){if(a)return rH(o).finally(()=>{throw e});throw e}return a?rH(o):o}function r8(e,t,n,r,i){var o;let a=is(e.schema,t,r[0]);if(!a)return;let s=a.type,l=null!=(o=a.resolve)?o:e.fieldResolver,u=r6(e,a,r,t,i);try{let t,o=rT(a,r[0],e.variableValues),c=e.contextValue,p=l(n,o,c,u);if(t=I(p)?p.then(t=>ie(e,s,r,u,i,t)):ie(e,s,r,u,i,p),I(t))return t.then(void 0,t=>{let n=rZ(t,r,rd(i));return r7(n,s,e)});return t}catch(t){return r7(rZ(t,r,rd(i)),s,e)}}function r6(e,t,n,r,i){return{fieldName:t.name,fieldNodes:n,returnType:t.type,parentType:r,path:i,schema:e.schema,fragments:e.fragments,rootValue:e.rootValue,operation:e.operation,variableValues:e.variableValues}}function r7(e,t,n){if(e8(t))throw e;return n.errors.push(e),null}function ie(e,t,n,r,i,o){var a,s,l,u,c,p,d;let f;if(o instanceof Error)throw o;if(e8(t)){let a=ie(e,t.ofType,n,r,i,o);if(null===a)throw Error(`Cannot return null for non-nullable field ${r.parentType.name}.${r.fieldName}.`);return a}return null==o?null:e9(t)?function(e,t,n,r,i,o){if(!t7(o))throw new w(`Expected Iterable, but did not find one for field "${r.parentType.name}.${r.fieldName}".`);let a=t.ofType,s=!1,l=Array.from(o,(t,o)=>{let l=rp(i,o,void 0);try{let i;if(i=I(t)?t.then(t=>ie(e,a,n,r,l,t)):ie(e,a,n,r,l,t),I(i))return s=!0,i.then(void 0,t=>{let r=rZ(t,n,rd(l));return r7(r,a,e)});return i}catch(t){return r7(rZ(t,n,rd(l)),a,e)}});return s?Promise.all(l):l}(e,t,n,r,i,o):tr(t)?function(e,t){let n=e.serialize(t);if(null==n)throw Error(`Expected \`${ei(e)}.serialize(${ei(t)})\` to return non-nullable value, returned: ${ei(n)}`);return n}(t,o):ts(t)?(a=e,s=t,l=n,u=r,c=i,p=o,I(f=(null!=(d=s.resolveType)?d:a.typeResolver)(p,a.contextValue,u,s))?f.then(e=>ir(a,it(e,a,s,l,u,p),l,u,c,p)):ir(a,it(f,a,s,l,u,p),l,u,c,p)):eX(t)?ir(e,t,n,r,i,o):void _(!1,"Cannot complete value of unexpected output type: "+ei(t))}function it(e,t,n,r,i,o){if(null==e)throw new w(`Abstract type "${n.name}" must resolve to an Object type at runtime for field "${i.parentType.name}.${i.fieldName}". Either the "${n.name}" type should provide a "resolveType" function or each possible type should provide an "isTypeOf" function.`,r);if(eX(e))throw new w("Support for returning GraphQLObjectType from resolveType was removed in graphql-js@16.0.0 please return type name instead.");if("string"!=typeof e)throw new w(`Abstract type "${n.name}" must resolve to an Object type at runtime for field "${i.parentType.name}.${i.fieldName}" with value ${ei(o)}, received "${ei(e)}".`);let a=t.schema.getType(e);if(null==a)throw new w(`Abstract type "${n.name}" was resolved to a type "${e}" that does not exist inside the schema.`,{nodes:r});if(!eX(a))throw new w(`Abstract type "${n.name}" was resolved to a non-object type "${e}".`,{nodes:r});if(!t.schema.isSubType(n,a))throw new w(`Runtime Object type "${a.name}" is not a possible type for "${n.name}".`,{nodes:r});return a}function ir(e,t,n,r,i,o){let a=r0(e,t,n);if(t.isTypeOf){let s=t.isTypeOf(o,e.contextValue,r);if(I(s))return s.then(r=>{if(!r)throw ii(t,o,n);return r5(e,t,o,i,a)});if(!s)throw ii(t,o,n)}return r5(e,t,o,i,a)}function ii(e,t,n){return new w(`Expected value of type "${e.name}" but got: ${ei(t)}.`,{nodes:n})}let io=function(e,t,n,r){if(g(e)&&"string"==typeof e.__typename)return e.__typename;let i=n.schema.getPossibleTypes(r),o=[];for(let r=0;r{}),a.name}}if(o.length)return Promise.all(o).then(e=>{for(let t=0;tt(ic(e)))}function iu(e){let t=ic(e);if(I(t))throw Error("GraphQL execution failed to complete synchronously.");return t}function ic(e){let t;arguments.length<2||N(!1,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");let{schema:n,source:r,rootValue:i,contextValue:o,variableValues:a,operationName:s,fieldResolver:l,typeResolver:u}=e,c=nv(n);if(c.length>0)return{errors:c};try{t=es(r)}catch(e){return{errors:[e]}}let p=rX(n,t);return p.length>0?{errors:p}:r1({schema:n,document:t,rootValue:i,contextValue:o,variableValues:a,operationName:s,fieldResolver:l,typeResolver:u})}function ip(e){return"function"==typeof(null==e?void 0:e[Symbol.asyncIterator])}async function id(e){arguments.length<2||N(!1,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");let t=await ih(e);if(!ip(t))return t;let n=t[Symbol.asyncIterator]();async function r(t){if(t.done)return t;try{let n;return{value:await (n=t.value,r1({...e,rootValue:n})),done:!1}}catch(e){if("function"==typeof n.return)try{await n.return()}catch(e){}throw e}}return{next:async()=>r(await n.next()),return:async()=>"function"==typeof n.return?r(await n.return()):{value:void 0,done:!0},async throw(e){if("function"==typeof n.throw)return r(await n.throw(e));throw e},[Symbol.asyncIterator](){return this}}}async function ih(...e){let t,n=(t=e[0])&&"document"in t?t:{schema:t,document:e[1],rootValue:e[2],contextValue:e[3],variableValues:e[4],operationName:e[5],subscribeFieldResolver:e[6]},{schema:r,document:i,variableValues:o}=n;r4(r,i,o);let a=r9(n);if(!("schema"in a))return{errors:a};try{let e=await im(a);if(!ip(e))throw Error(`Subscription field must return Async Iterable. Received: ${ei(e)}.`);return e}catch(e){if(e instanceof w)return{errors:[e]};throw e}}async function im(e){let{schema:t,fragments:n,operation:r,variableValues:i,rootValue:o}=e,a=t.getSubscriptionType();if(null==a)throw new w("Schema is not configured to execute subscription operation.",{nodes:r});let[s,l]=[...rI(t,n,i,a,r.selectionSet).entries()][0],u=is(t,a,l[0]);if(!u){let e=l[0].name.value;throw new w(`The subscription field "${e}" is not defined.`,{nodes:l})}let c=rp(void 0,s,a.name),p=r6(e,u,l,a,c);try{var d;let t=rT(u,l[0],i),n=e.contextValue,r=null!=(d=u.subscribe)?d:e.subscribeFieldResolver,a=await r(o,t,n,p);if(a instanceof Error)throw a;return a}catch(e){throw rZ(e,l,rd(c))}}function iy(e){return{Field(t){let n=e.getFieldDef(),r=null==n?void 0:n.deprecationReason;if(n&&null!=r){let i=e.getParentType();null!=i||_(!1),e.reportError(new w(`The field ${i.name}.${n.name} is deprecated. ${r}`,{nodes:t}))}},Argument(t){let n=e.getArgument(),r=null==n?void 0:n.deprecationReason;if(n&&null!=r){let i=e.getDirective();if(null!=i)e.reportError(new w(`Directive "@${i.name}" argument "${n.name}" is deprecated. ${r}`,{nodes:t}));else{let i=e.getParentType(),o=e.getFieldDef();null!=i&&null!=o||_(!1),e.reportError(new w(`Field "${i.name}.${o.name}" argument "${n.name}" is deprecated. ${r}`,{nodes:t}))}}},ObjectField(t){let n=tT(e.getParentInputType());if(e3(n)){let r=n.getFields()[t.name.value],i=null==r?void 0:r.deprecationReason;null!=i&&e.reportError(new w(`The input field ${n.name}.${r.name} is deprecated. ${i}`,{nodes:t}))}},EnumValue(t){let n=e.getEnumValue(),r=null==n?void 0:n.deprecationReason;if(n&&null!=r){let i=tT(e.getInputType());null!=i||_(!1),e.reportError(new w(`The enum value "${i.name}.${n.name}" is deprecated. ${r}`,{nodes:t}))}}}}function iE(e){return{Field(t){let n=tT(e.getType());n&&nh(n)&&e.reportError(new w(`GraphQL introspection has been disabled, but the requested query contained the field "${t.name.value}".`,{nodes:t}))}}}function iT(e){let t={descriptions:!0,specifiedByUrl:!1,directiveIsRepeatable:!1,schemaDescription:!1,inputValueDeprecation:!1,oneOf:!1,...e},n=t.descriptions?"description":"",r=t.specifiedByUrl?"specifiedByURL":"",i=t.directiveIsRepeatable?"isRepeatable":"",o=t.schemaDescription?n:"";function a(e){return t.inputValueDeprecation?e:""}let s=t.oneOf?"isOneOf":"";return` - query IntrospectionQuery { - __schema { - ${o} - queryType { name kind } - mutationType { name kind } - subscriptionType { name kind } - types { - ...FullType - } - directives { - name - ${n} - ${i} - locations - args${a("(includeDeprecated: true)")} { - ...InputValue - } - } - } - } - - fragment FullType on __Type { - kind - name - ${n} - ${r} - ${s} - fields(includeDeprecated: true) { - name - ${n} - args${a("(includeDeprecated: true)")} { - ...InputValue - } - type { - ...TypeRef - } - isDeprecated - deprecationReason - } - inputFields${a("(includeDeprecated: true)")} { - ...InputValue - } - interfaces { - ...TypeRef - } - enumValues(includeDeprecated: true) { - name - ${n} - isDeprecated - deprecationReason - } - possibleTypes { - ...TypeRef - } - } - - fragment InputValue on __InputValue { - name - ${n} - type { ...TypeRef } - defaultValue - ${a("isDeprecated")} - ${a("deprecationReason")} - } - - fragment TypeRef on __Type { - kind - name - ofType { - kind - name - ofType { - kind - name - ofType { - kind - name - ofType { - kind - name - ofType { - kind - name - ofType { - kind - name - ofType { - kind - name - ofType { - kind - name - ofType { - kind - name - } - } - } - } - } - } - } - } - } - } - `}function iv(e,t){let n=null;for(let i of e.definitions)if(i.kind===p.OPERATION_DEFINITION){var r;if(null==t){if(n)return null;n=i}else if((null==(r=i.name)?void 0:r.value)===t)return i}return n}function iN(e,t){if("query"===t.operation){let n=e.getQueryType();if(!n)throw new w("Schema does not define the required query root type.",{nodes:t});return n}if("mutation"===t.operation){let n=e.getMutationType();if(!n)throw new w("Schema is not configured for mutations.",{nodes:t});return n}if("subscription"===t.operation){let n=e.getSubscriptionType();if(!n)throw new w("Schema is not configured for subscriptions.",{nodes:t});return n}throw new w("Can only have query, mutation and subscription operations.",{nodes:t})}function iI(e,t){let n=r2({schema:e,document:es(iT({specifiedByUrl:!0,directiveIsRepeatable:!0,schemaDescription:!0,inputValueDeprecation:!0,oneOf:!0,...t}))});return!n.errors&&n.data||_(!1),n.data}function ig(e,t){g(e)&&g(e.__schema)||N(!1,`Invalid or incomplete introspection result. Ensure that you are passing "data" property of introspection response and no "errors" was returned alongside: ${ei(e)}.`);let n=e.__schema,r=eT(n.types,e=>e.name,e=>(function(e){if(null!=e&&null!=e.name&&null!=e.kind)switch(e.kind){case f.SCALAR:return new tI({name:(t=e).name,description:t.description,specifiedByURL:t.specifiedByURL});case f.OBJECT:return new tg({name:(n=e).name,description:n.description,interfaces:()=>d(n),fields:()=>h(n)});case f.INTERFACE:return new tR({name:(r=e).name,description:r.description,interfaces:()=>d(r),fields:()=>h(r)});case f.UNION:var t,n,r,i=e;if(!i.possibleTypes){let e=ei(i);throw Error(`Introspection result missing possibleTypes: ${e}.`)}return new tk({name:i.name,description:i.description,types:()=>i.possibleTypes.map(c)});case f.ENUM:var o=e;if(!o.enumValues){let e=ei(o);throw Error(`Introspection result missing enumValues: ${e}.`)}return new t$({name:o.name,description:o.description,values:eT(o.enumValues,e=>e.name,e=>({description:e.description,deprecationReason:e.deprecationReason}))});case f.INPUT_OBJECT:var a=e;if(!a.inputFields){let e=ei(a);throw Error(`Introspection result missing inputFields: ${e}.`)}return new tC({name:a.name,description:a.description,fields:()=>y(a.inputFields),isOneOf:a.isOneOf})}let s=ei(e);throw Error(`Invalid or incomplete introspection result. Ensure that a full introspection query is used in order to build a client schema: ${s}.`)})(e));for(let e of[...tX,...nf])r[e.name]&&(r[e.name]=e);let i=n.queryType?c(n.queryType):null,o=n.mutationType?c(n.mutationType):null,a=n.subscriptionType?c(n.subscriptionType):null,s=n.directives?n.directives.map(function(e){if(!e.args){let t=ei(e);throw Error(`Introspection result missing directive args: ${t}.`)}if(!e.locations){let t=ei(e);throw Error(`Introspection result missing directive locations: ${t}.`)}return new t0({name:e.name,description:e.description,isRepeatable:e.isRepeatable,locations:e.locations.slice(),args:y(e.args)})}):[];return new nE({description:n.description,query:i,mutation:o,subscription:a,types:Object.values(r),directives:s,assumeValid:null==t?void 0:t.assumeValid});function l(e){if(e.kind===f.LIST){let t=e.ofType;if(!t)throw Error("Decorated type deeper than introspection query.");return new tu(l(t))}if(e.kind===f.NON_NULL){let t=e.ofType;if(!t)throw Error("Decorated type deeper than introspection query.");return new tc(th(l(t)))}return u(e)}function u(e){let t=e.name;if(!t)throw Error(`Unknown type reference: ${ei(e)}.`);let n=r[t];if(!n)throw Error(`Invalid or incomplete schema, unknown type: ${t}. Ensure that a full introspection query is used in order to build a client schema.`);return n}function c(e){return ez(u(e))}function p(e){return eW(u(e))}function d(e){if(null===e.interfaces&&e.kind===f.INTERFACE)return[];if(!e.interfaces){let t=ei(e);throw Error(`Introspection result missing interfaces: ${t}.`)}return e.interfaces.map(p)}function h(e){if(!e.fields)throw Error(`Introspection result missing fields: ${ei(e)}.`);return eT(e.fields,e=>e.name,m)}function m(e){let t=l(e.type);if(!tt(t)){let e=ei(t);throw Error(`Introspection must provide output type for fields, but received: ${e}.`)}if(!e.args){let t=ei(e);throw Error(`Introspection result missing field args: ${t}.`)}return{description:e.description,deprecationReason:e.deprecationReason,type:t,args:y(e.args)}}function y(e){return eT(e,e=>e.name,E)}function E(e){let t=l(e.type);if(!e7(t)){let e=ei(t);throw Error(`Introspection must provide input type for arguments, but received: ${e}.`)}let n=null!=e.defaultValue?rm(el(e.defaultValue),t):void 0;return{description:e.description,type:t,defaultValue:n,deprecationReason:e.deprecationReason}}}function i_(e,t,n){ny(e),null!=t&&t.kind===p.DOCUMENT||N(!1,"Must provide valid Document AST."),(null==n?void 0:n.assumeValid)!==!0&&(null==n?void 0:n.assumeValidSDL)!==!0&&function(e,t){let n=rz(e,t);if(0!==n.length)throw Error(n.map(e=>e.message).join("\n\n"))}(t,e);let r=e.toConfig(),i=iO(r,t,n);return r===i?e:new nE(i)}function iO(e,t,n){var r,i,o,a,s,l;let u,c=[],d=Object.create(null),f=[],h=[];for(let e of t.definitions)if(e.kind===p.SCHEMA_DEFINITION)u=e;else if(e.kind===p.SCHEMA_EXTENSION)h.push(e);else if(nV(e))c.push(e);else if(nM(e)){let t=e.name.value,n=d[t];d[t]=n?n.concat([e]):[e]}else e.kind===p.DIRECTIVE_DEFINITION&&f.push(e);if(0===Object.keys(d).length&&0===c.length&&0===f.length&&0===h.length&&null==u)return e;let m=Object.create(null);for(let t of e.types){m[t.name]=nh(l=t)||tz(l)?l:eJ(l)?function(e){var t,n;let r=e.toConfig(),i=null!=(t=d[r.name])?t:[],o=r.specifiedByURL;for(let e of i)o=null!=(n=iA(e))?n:o;return new tI({...r,specifiedByURL:o,extensionASTNodes:r.extensionASTNodes.concat(i)})}(l):eX(l)?function(e){var t;let n=e.toConfig(),r=null!=(t=d[n.name])?t:[];return new tg({...n,interfaces:()=>[...e.getInterfaces().map(T),...w(r)],fields:()=>({...ev(n.fields,v),...b(r)}),extensionASTNodes:n.extensionASTNodes.concat(r)})}(l):eH(l)?function(e){var t;let n=e.toConfig(),r=null!=(t=d[n.name])?t:[];return new tR({...n,interfaces:()=>[...e.getInterfaces().map(T),...w(r)],fields:()=>({...ev(n.fields,v),...b(r)}),extensionASTNodes:n.extensionASTNodes.concat(r)})}(l):eZ(l)?function(e){var t;let n=e.toConfig(),r=null!=(t=d[n.name])?t:[];return new tk({...n,types:()=>[...e.getTypes().map(T),...R(r)],extensionASTNodes:n.extensionASTNodes.concat(r)})}(l):e1(l)?function(e){var t;let n=e.toConfig(),r=null!=(t=d[e.name])?t:[];return new t$({...n,values:{...n.values,...S(r)},extensionASTNodes:n.extensionASTNodes.concat(r)})}(l):e3(l)?function(e){var t;let n=e.toConfig(),r=null!=(t=d[n.name])?t:[];return new tC({...n,fields:()=>({...ev(n.fields,e=>({...e,type:E(e.type)})),...A(r)}),extensionASTNodes:n.extensionASTNodes.concat(r)})}(l):void _(!1,"Unexpected type: "+ei(l))}for(let e of c){let t=e.name.value;m[t]=null!=(s=ib[t])?s:function(e){var t,n,r,i,o,a,s;let l=e.name.value,u=null!=(t=d[l])?t:[];switch(e.kind){case p.OBJECT_TYPE_DEFINITION:{let t=[e,...u];return new tg({name:l,description:null==(n=e.description)?void 0:n.value,interfaces:()=>w(t),fields:()=>b(t),astNode:e,extensionASTNodes:u})}case p.INTERFACE_TYPE_DEFINITION:{let t=[e,...u];return new tR({name:l,description:null==(r=e.description)?void 0:r.value,interfaces:()=>w(t),fields:()=>b(t),astNode:e,extensionASTNodes:u})}case p.ENUM_TYPE_DEFINITION:{let t=[e,...u];return new t$({name:l,description:null==(i=e.description)?void 0:i.value,values:S(t),astNode:e,extensionASTNodes:u})}case p.UNION_TYPE_DEFINITION:{let t=[e,...u];return new tk({name:l,description:null==(o=e.description)?void 0:o.value,types:()=>R(t),astNode:e,extensionASTNodes:u})}case p.SCALAR_TYPE_DEFINITION:return new tI({name:l,description:null==(a=e.description)?void 0:a.value,specifiedByURL:iA(e),astNode:e,extensionASTNodes:u});case p.INPUT_OBJECT_TYPE_DEFINITION:{let t=[e,...u];return new tC({name:l,description:null==(s=e.description)?void 0:s.value,fields:()=>A(t),astNode:e,extensionASTNodes:u,isOneOf:!!rv(t5,e)})}}}(e)}let y={query:e.query&&T(e.query),mutation:e.mutation&&T(e.mutation),subscription:e.subscription&&T(e.subscription),...u&&I([u]),...I(h)};return{description:null==(r=u)||null==(i=r.description)?void 0:i.value,...y,types:Object.values(m),directives:[...e.directives.map(function(e){let t=e.toConfig();return new t0({...t,args:ev(t.args,N)})}),...f.map(function(e){var t;return new t0({name:e.name.value,description:null==(t=e.description)?void 0:t.value,locations:e.locations.map(({value:e})=>e),isRepeatable:e.repeatable,args:D(e.arguments),astNode:e})})],extensions:Object.create(null),astNode:null!=(o=u)?o:e.astNode,extensionASTNodes:e.extensionASTNodes.concat(h),assumeValid:null!=(a=null==n?void 0:n.assumeValid)&&a};function E(e){return e9(e)?new tu(E(e.ofType)):e8(e)?new tc(E(e.ofType)):T(e)}function T(e){return m[e.name]}function v(e){return{...e,type:E(e.type),args:e.args&&ev(e.args,N)}}function N(e){return{...e,type:E(e.type)}}function I(e){let t={};for(let r of e){var n;for(let e of null!=(n=r.operationTypes)?n:[])t[e.operation]=g(e.type)}return t}function g(e){var t;let n=e.name.value,r=null!=(t=ib[n])?t:m[n];if(void 0===r)throw Error(`Unknown type: "${n}".`);return r}function O(e){return e.kind===p.LIST_TYPE?new tu(O(e.type)):e.kind===p.NON_NULL_TYPE?new tc(O(e.type)):g(e)}function b(e){let t=Object.create(null);for(let i of e){var n,r;for(let e of null!=(n=i.fields)?n:[])t[e.name.value]={type:O(e.type),description:null==(r=e.description)?void 0:r.value,args:D(e.arguments),deprecationReason:iD(e),astNode:e}}return t}function D(e){let t=Object.create(null);for(let r of null!=e?e:[]){var n;let e=O(r.type);t[r.name.value]={type:e,description:null==(n=r.description)?void 0:n.value,defaultValue:rm(r.defaultValue,e),deprecationReason:iD(r),astNode:r}}return t}function A(e){let t=Object.create(null);for(let i of e){var n,r;for(let e of null!=(n=i.fields)?n:[]){let n=O(e.type);t[e.name.value]={type:n,description:null==(r=e.description)?void 0:r.value,defaultValue:rm(e.defaultValue,n),deprecationReason:iD(e),astNode:e}}}return t}function S(e){let t=Object.create(null);for(let i of e){var n,r;for(let e of null!=(n=i.values)?n:[])t[e.name.value]={description:null==(r=e.description)?void 0:r.value,deprecationReason:iD(e),astNode:e}}return t}function w(e){return e.flatMap(e=>{var t,n;return null!=(t=null==(n=e.interfaces)?void 0:n.map(g))?t:[]})}function R(e){return e.flatMap(e=>{var t,n;return null!=(t=null==(n=e.types)?void 0:n.map(g))?t:[]})}}let ib=eE([...tX,...nf],e=>e.name);function iD(e){let t=rv(t4,e);return null==t?void 0:t.reason}function iA(e){let t=rv(t9,e);return null==t?void 0:t.url}function iS(e,t){null!=e&&e.kind===p.DOCUMENT||N(!1,"Must provide valid Document AST."),(null==t?void 0:t.assumeValid)!==!0&&(null==t?void 0:t.assumeValidSDL)!==!0&&function(e){let t=rz(e);if(0!==t.length)throw Error(t.map(e=>e.message).join("\n\n"))}(e);let n=iO({description:void 0,types:[],directives:[],extensions:Object.create(null),extensionASTNodes:[],assumeValid:!1},e,t);if(null==n.astNode)for(let e of n.types)switch(e.name){case"Query":n.query=e;break;case"Mutation":n.mutation=e;break;case"Subscription":n.subscription=e}let r=[...n.directives,...t8.filter(e=>n.directives.every(t=>t.name!==e.name))];return new nE({...n,directives:r})}function iw(e,t){return iS(es(e,{noLocation:null==t?void 0:t.noLocation,allowLegacyFragmentVariables:null==t?void 0:t.allowLegacyFragmentVariables}),{assumeValidSDL:null==t?void 0:t.assumeValidSDL,assumeValid:null==t?void 0:t.assumeValid})}function iR(e){var t,n,r;let i=e.toConfig(),o=eT(iL(i.types),e=>e.name,function(e){if(eJ(e)||nh(e))return e;if(eX(e)){let t=e.toConfig();return new tg({...t,interfaces:()=>c(t.interfaces),fields:()=>u(t.fields)})}if(eH(e)){let t=e.toConfig();return new tR({...t,interfaces:()=>c(t.interfaces),fields:()=>u(t.fields)})}if(eZ(e)){let t=e.toConfig();return new tk({...t,types:()=>c(t.types)})}if(e1(e)){let t=e.toConfig();return new t$({...t,values:ik(t.values,e=>e)})}if(e3(e)){let t=e.toConfig();return new tC({...t,fields:()=>ik(t.fields,e=>({...e,type:a(e.type)}))})}_(!1,"Unexpected type: "+ei(e))});return new nE({...i,types:Object.values(o),directives:iL(i.directives).map(function(e){let t=e.toConfig();return new t0({...t,locations:i$(t.locations,e=>e),args:l(t.args)})}),query:(t=i.query)&&s(t),mutation:(n=i.mutation)&&s(n),subscription:(r=i.subscription)&&s(r)});function a(e){return e9(e)?new tu(a(e.ofType)):e8(e)?new tc(a(e.ofType)):s(e)}function s(e){return o[e.name]}function l(e){return ik(e,e=>({...e,type:a(e.type)}))}function u(e){return ik(e,e=>({...e,type:a(e.type),args:e.args&&l(e.args)}))}function c(e){return iL(e).map(s)}}function ik(e,t){let n=Object.create(null);for(let r of Object.keys(e).sort(eN))n[r]=t(e[r]);return n}function iL(e){return i$(e,e=>e.name)}function i$(e,t){return e.slice().sort((e,n)=>eN(t(e),t(n)))}function ix(e){return iV(e,e=>!t6(e),iC)}function iF(e){return iV(e,t6,nh)}function iC(e){return!tz(e)&&!nh(e)}function iV(e,t,n){let r=e.getDirectives().filter(t),i=Object.values(e.getTypeMap()).filter(n);return[function(e){if(null==e.description&&function(e){let t=e.getQueryType();if(t&&"Query"!==t.name)return!1;let n=e.getMutationType();if(n&&"Mutation"!==n.name)return!1;let r=e.getSubscriptionType();return!r||"Subscription"===r.name}(e))return;let t=[],n=e.getQueryType();n&&t.push(` query: ${n.name}`);let r=e.getMutationType();r&&t.push(` mutation: ${r.name}`);let i=e.getSubscriptionType();return i&&t.push(` subscription: ${i.name}`),iQ(e)+`schema { -${t.join("\n")} -}`}(e),...r.map(e=>{var t;return iQ(t=e)+"directive @"+t.name+iG(t.args)+(t.isRepeatable?" repeatable":"")+" on "+t.locations.join(" | ")}),...i.map(e=>iU(e))].filter(Boolean).join("\n\n")}function iU(e){var t,n,r,i,o,a;let s,l,u,c;return eJ(e)?iQ(t=e)+`scalar ${t.name}`+function(e){if(null==e.specifiedByURL)return"";let t=eF({kind:p.STRING,value:e.specifiedByURL});return` @specifiedBy(url: ${t})`}(t):eX(e)?iQ(n=e)+`type ${n.name}`+iM(n)+ij(n):eH(e)?iQ(r=e)+`interface ${r.name}`+iM(r)+ij(r):eZ(e)?(l=(s=(i=e).getTypes()).length?" = "+s.join(" | "):"",iQ(i)+"union "+i.name+l):e1(e)?(u=(o=e).getValues().map((e,t)=>iQ(e," ",!t)+" "+e.name+iY(e.deprecationReason)),iQ(o)+`enum ${o.name}`+iP(u)):e3(e)?(c=Object.values((a=e).getFields()).map((e,t)=>iQ(e," ",!t)+" "+iB(e)),iQ(a)+`input ${a.name}`+(a.isOneOf?" @oneOf":"")+iP(c)):void _(!1,"Unexpected type: "+ei(e))}function iM(e){let t=e.getInterfaces();return t.length?" implements "+t.map(e=>e.name).join(" & "):""}function ij(e){return iP(Object.values(e.getFields()).map((e,t)=>iQ(e," ",!t)+" "+e.name+iG(e.args," ")+": "+String(e.type)+iY(e.deprecationReason)))}function iP(e){return 0!==e.length?" {\n"+e.join("\n")+"\n}":""}function iG(e,t=""){return 0===e.length?"":e.every(e=>!e.description)?"("+e.map(iB).join(", ")+")":"(\n"+e.map((e,n)=>iQ(e," "+t,!n)+" "+t+iB(e)).join("\n")+"\n"+t+")"}function iB(e){let t=ne(e.defaultValue,e.type),n=e.name+": "+String(e.type);return t&&(n+=` = ${eF(t)}`),n+iY(e.deprecationReason)}function iY(e){if(null==e)return"";if(e!==t3){let t=eF({kind:p.STRING,value:e});return` @deprecated(reason: ${t})`}return" @deprecated"}function iQ(e,t="",n=!0){let{description:r}=e;return null==r?"":(t&&!n?"\n"+t:t)+eF({kind:p.STRING,value:r,block:function(e){if(""===e)return!0;let t=!0,n=!1,r=!0,i=!1;for(let o=0;oe===i||e.kind===p.FRAGMENT_DEFINITION&&t.has(e.name.value))}}return r}function iK(e){let t=[];return ek(e,{FragmentSpread(e){t.push(e.name.value)}}),t}function iX(e){let t=eo(e,ea)?e:new ea(e),n=t.body,r=new Q(t),i="",o=!1;for(;r.advance().kind!==d.EOF;){let e=r.token,t=e.kind,a=!q(e.kind);o&&(a||e.kind===d.SPREAD)&&(i+=" ");let s=n.slice(e.start,e.end);t===d.BLOCK_STRING?i+=Y(e.value,{minimize:!0}):i+=s,o=a}return i}function iz(e){let t=iH(e);if(t)throw t;return e}function iH(e){if("string"==typeof e||N(!1,"Expected name to be a string."),e.startsWith("__"))return new w(`Name "${e}" must not begin with "__", which is reserved by GraphQL introspection.`);try{eB(e)}catch(e){return e}}function iW(e,t){return i0(e,t).filter(e=>e.type in h)}function iZ(e,t){return i0(e,t).filter(e=>e.type in m)}function i0(e,t){return[...function(e,t){let n=[],r=i4(Object.values(e.getTypeMap()),Object.values(t.getTypeMap()));for(let e of r.removed)n.push({type:h.TYPE_REMOVED,description:tz(e)?`Standard scalar ${e.name} was removed because it is not referenced anymore.`:`${e.name} was removed.`});for(let[e,t]of r.persisted)e1(e)&&e1(t)?n.push(...function(e,t){let n=[],r=i4(e.getValues(),t.getValues());for(let t of r.added)n.push({type:m.VALUE_ADDED_TO_ENUM,description:`${t.name} was added to enum type ${e.name}.`});for(let t of r.removed)n.push({type:h.VALUE_REMOVED_FROM_ENUM,description:`${t.name} was removed from enum type ${e.name}.`});return n}(e,t)):eZ(e)&&eZ(t)?n.push(...function(e,t){let n=[],r=i4(e.getTypes(),t.getTypes());for(let t of r.added)n.push({type:m.TYPE_ADDED_TO_UNION,description:`${t.name} was added to union type ${e.name}.`});for(let t of r.removed)n.push({type:h.TYPE_REMOVED_FROM_UNION,description:`${t.name} was removed from union type ${e.name}.`});return n}(e,t)):e3(e)&&e3(t)?n.push(...function(e,t){let n=[],r=i4(Object.values(e.getFields()),Object.values(t.getFields()));for(let t of r.added)tU(t)?n.push({type:h.REQUIRED_INPUT_FIELD_ADDED,description:`A required field ${t.name} on input type ${e.name} was added.`}):n.push({type:m.OPTIONAL_INPUT_FIELD_ADDED,description:`An optional field ${t.name} on input type ${e.name} was added.`});for(let t of r.removed)n.push({type:h.FIELD_REMOVED,description:`${e.name}.${t.name} was removed.`});for(let[t,i]of r.persisted)i1(t.type,i.type)||n.push({type:h.FIELD_CHANGED_KIND,description:`${e.name}.${t.name} changed type from ${String(t.type)} to ${String(i.type)}.`});return n}(e,t)):eX(e)&&eX(t)||eH(e)&&eH(t)?n.push(...function(e,t){let n=[],r=i4(Object.values(e.getFields()),Object.values(t.getFields()));for(let t of r.removed)n.push({type:h.FIELD_REMOVED,description:`${e.name}.${t.name} was removed.`});for(let[t,i]of r.persisted)n.push(...function(e,t,n){let r=[],i=i4(t.args,n.args);for(let n of i.removed)r.push({type:h.ARG_REMOVED,description:`${e.name}.${t.name} arg ${n.name} was removed.`});for(let[n,o]of i.persisted)if(i1(n.type,o.type)){if(void 0!==n.defaultValue)if(void 0===o.defaultValue)r.push({type:m.ARG_DEFAULT_VALUE_CHANGE,description:`${e.name}.${t.name} arg ${n.name} defaultValue was removed.`});else{let i=i3(n.defaultValue,n.type),a=i3(o.defaultValue,o.type);i!==a&&r.push({type:m.ARG_DEFAULT_VALUE_CHANGE,description:`${e.name}.${t.name} arg ${n.name} has changed defaultValue from ${i} to ${a}.`})}}else r.push({type:h.ARG_CHANGED_KIND,description:`${e.name}.${t.name} arg ${n.name} has changed type from ${String(n.type)} to ${String(o.type)}.`});for(let n of i.added)tw(n)?r.push({type:h.REQUIRED_ARG_ADDED,description:`A required arg ${n.name} on ${e.name}.${t.name} was added.`}):r.push({type:m.OPTIONAL_ARG_ADDED,description:`An optional arg ${n.name} on ${e.name}.${t.name} was added.`});return r}(e,t,i)),!function e(t,n){return e9(t)?e9(n)&&e(t.ofType,n.ofType)||e8(n)&&e(t,n.ofType):e8(t)?e8(n)&&e(t.ofType,n.ofType):ty(n)&&t.name===n.name||e8(n)&&e(t,n.ofType)}(t.type,i.type)&&n.push({type:h.FIELD_CHANGED_KIND,description:`${e.name}.${t.name} changed type from ${String(t.type)} to ${String(i.type)}.`});return n}(e,t),...function(e,t){let n=[],r=i4(e.getInterfaces(),t.getInterfaces());for(let t of r.added)n.push({type:m.IMPLEMENTED_INTERFACE_ADDED,description:`${t.name} added to interfaces implemented by ${e.name}.`});for(let t of r.removed)n.push({type:h.IMPLEMENTED_INTERFACE_REMOVED,description:`${e.name} no longer implements interface ${t.name}.`});return n}(e,t)):e.constructor!==t.constructor&&n.push({type:h.TYPE_CHANGED_KIND,description:`${e.name} changed from ${i2(e)} to ${i2(t)}.`});return n}(e,t),...function(e,t){let n=[],r=i4(e.getDirectives(),t.getDirectives());for(let e of r.removed)n.push({type:h.DIRECTIVE_REMOVED,description:`${e.name} was removed.`});for(let[e,t]of r.persisted){let r=i4(e.args,t.args);for(let t of r.added)tw(t)&&n.push({type:h.REQUIRED_DIRECTIVE_ARG_ADDED,description:`A required arg ${t.name} on directive ${e.name} was added.`});for(let t of r.removed)n.push({type:h.DIRECTIVE_ARG_REMOVED,description:`${t.name} was removed from ${e.name}.`});for(let r of(e.isRepeatable&&!t.isRepeatable&&n.push({type:h.DIRECTIVE_REPEATABLE_REMOVED,description:`Repeatable flag was removed from ${e.name}.`}),e.locations))t.locations.includes(r)||n.push({type:h.DIRECTIVE_LOCATION_REMOVED,description:`${r} was removed from ${e.name}.`})}return n}(e,t)]}(s=h||(h={})).TYPE_REMOVED="TYPE_REMOVED",s.TYPE_CHANGED_KIND="TYPE_CHANGED_KIND",s.TYPE_REMOVED_FROM_UNION="TYPE_REMOVED_FROM_UNION",s.VALUE_REMOVED_FROM_ENUM="VALUE_REMOVED_FROM_ENUM",s.REQUIRED_INPUT_FIELD_ADDED="REQUIRED_INPUT_FIELD_ADDED",s.IMPLEMENTED_INTERFACE_REMOVED="IMPLEMENTED_INTERFACE_REMOVED",s.FIELD_REMOVED="FIELD_REMOVED",s.FIELD_CHANGED_KIND="FIELD_CHANGED_KIND",s.REQUIRED_ARG_ADDED="REQUIRED_ARG_ADDED",s.ARG_REMOVED="ARG_REMOVED",s.ARG_CHANGED_KIND="ARG_CHANGED_KIND",s.DIRECTIVE_REMOVED="DIRECTIVE_REMOVED",s.DIRECTIVE_ARG_REMOVED="DIRECTIVE_ARG_REMOVED",s.REQUIRED_DIRECTIVE_ARG_ADDED="REQUIRED_DIRECTIVE_ARG_ADDED",s.DIRECTIVE_REPEATABLE_REMOVED="DIRECTIVE_REPEATABLE_REMOVED",s.DIRECTIVE_LOCATION_REMOVED="DIRECTIVE_LOCATION_REMOVED",(l=m||(m={})).VALUE_ADDED_TO_ENUM="VALUE_ADDED_TO_ENUM",l.TYPE_ADDED_TO_UNION="TYPE_ADDED_TO_UNION",l.OPTIONAL_INPUT_FIELD_ADDED="OPTIONAL_INPUT_FIELD_ADDED",l.OPTIONAL_ARG_ADDED="OPTIONAL_ARG_ADDED",l.IMPLEMENTED_INTERFACE_ADDED="IMPLEMENTED_INTERFACE_ADDED",l.ARG_DEFAULT_VALUE_CHANGE="ARG_DEFAULT_VALUE_CHANGE";function i1(e,t){return e9(e)?e9(t)&&i1(e.ofType,t.ofType):e8(e)?e8(t)&&i1(e.ofType,t.ofType)||!e8(t)&&i1(e.ofType,t):ty(t)&&e.name===t.name}function i2(e){return eJ(e)?"a Scalar type":eX(e)?"an Object type":eH(e)?"an Interface type":eZ(e)?"a Union type":e1(e)?"an Enum type":e3(e)?"an Input type":void _(!1,"Unexpected type: "+ei(e))}function i3(e,t){let n=ne(e,t);return null!=n||_(!1),eF(n3(n))}function i4(e,t){let n=[],r=[],i=[],o=eE(e,({name:e})=>e),a=eE(t,({name:e})=>e);for(let t of e){let e=a[t.name];void 0===e?r.push(t):i.push([t,e])}for(let e of t)void 0===o[e.name]&&n.push(e);return{added:n,persisted:i,removed:r}}function i9(e,t){return i5(e,ep(t))}function i5(e,t){switch(t.kind){case p.TYPE_COORDINATE:let n=t.name.value,r=e.getType(n);if(null!=r)return{kind:"NamedType",type:r};return;case p.MEMBER_COORDINATE:return function(e,t){let n=t.name.value,r=e.getType(n);if(!r)throw Error(`Expected ${ei(n)} to be defined as a type in the schema.`);if(!e1(r)&&!e3(r)&&!eX(r)&&!eH(r))throw Error(`Expected ${ei(n)} to be an Enum, Input Object, Object or Interface type.`);if(e1(r)){let e=t.memberName.value,n=r.getValue(e);if(null==n)return;return{kind:"EnumValue",type:r,enumValue:n}}if(e3(r)){let e=t.memberName.value,n=r.getFields()[e];if(null==n)return;return{kind:"InputField",type:r,inputField:n}}let i=t.memberName.value,o=r.getFields()[i];if(null!=o)return{kind:"Field",type:r,field:o}}(e,t);case p.ARGUMENT_COORDINATE:return function(e,t){let n=t.name.value,r=e.getType(n);if(null==r)throw Error(`Expected ${ei(n)} to be defined as a type in the schema.`);if(!eX(r)&&!eH(r))throw Error(`Expected ${ei(n)} to be an object type or interface type.`);let i=t.fieldName.value,o=r.getFields()[i];if(null==o)throw Error(`Expected ${ei(i)} to exist as a field of type ${ei(n)} in the schema.`);let a=t.argumentName.value,s=o.args.find(e=>e.name===a);if(null!=s)return{kind:"FieldArgument",type:r,field:o,fieldArgument:s}}(e,t);case p.DIRECTIVE_COORDINATE:let i=t.name.value,o=e.getDirective(i);if(o)return{kind:"Directive",directive:o};return;case p.DIRECTIVE_ARGUMENT_COORDINATE:return function(e,t){let n=t.name.value,r=e.getDirective(n);if(!r)throw Error(`Expected ${ei(n)} to be defined as a directive in the schema.`);let{argumentName:{value:i}}=t,o=r.args.find(e=>e.name===i);if(o)return{kind:"DirectiveArgument",directive:r,directiveArgument:o}}(e,t)}}module.exports=E})(); \ No newline at end of file diff --git a/vendor/package.json b/vendor/package.json index 9068a783ff8..0c465f3cd96 100644 --- a/vendor/package.json +++ b/vendor/package.json @@ -12,7 +12,6 @@ "@opentelemetry/resources": ">=1.0.0 <1.31.0", "crypto-randomuuid": "^1.0.0", "escape-string-regexp": "^5.0.0", - "graphql": "^16.12.0", "ignore": "^7.0.5", "istanbul-lib-coverage": "^3.2.2", "jest-docblock": "^29.7.0", diff --git a/vendor/yarn.lock b/vendor/yarn.lock index 7a953f1f114..cec19c94122 100644 --- a/vendor/yarn.lock +++ b/vendor/yarn.lock @@ -1039,11 +1039,6 @@ graceful-fs@^4.2.6: resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.2.11.tgz#4183e4e8bf08bb6e05bbb2f7d2e0c8f712ca40e3" integrity sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ== -graphql@^16.12.0: - version "16.12.0" - resolved "https://registry.yarnpkg.com/graphql/-/graphql-16.12.0.tgz#28cc2462435b1ac3fdc6976d030cef83a0c13ac7" - integrity sha512-DKKrynuQRne0PNpEbzuEdHlYOMksHSUI8Zc9Unei5gTsMNA2/vMpoMz/yKba50pejK56qj98qM0SjYxAKi13gQ== - gzip-size@^6.0.0: version "6.0.0" resolved "https://registry.yarnpkg.com/gzip-size/-/gzip-size-6.0.0.tgz#065367fd50c239c0671cbcbad5be3e2eeb10e462" From 5fdd51050247ad1295ec31f71b0e64af831a2436 Mon Sep 17 00:00:00 2001 From: rochdev Date: Thu, 4 Dec 2025 13:13:10 -0500 Subject: [PATCH 62/95] move openfeature core to a dependency --- package.json | 2 +- .../@datadog/openfeature-node-server/LICENSE | 2 +- .../@datadog/openfeature-node-server/index.js | 2 +- .../node_modules/@openfeature/core/LICENSE | 201 ------------------ .../node_modules/@openfeature/core/index.js | 1 - vendor/package.json | 1 - vendor/yarn.lock | 5 - yarn.lock | 5 +- 8 files changed, 7 insertions(+), 212 deletions(-) delete mode 100644 packages/node_modules/@openfeature/core/LICENSE delete mode 100644 packages/node_modules/@openfeature/core/index.js diff --git a/package.json b/package.json index 27d68ea7e49..5db2069e56a 100644 --- a/package.json +++ b/package.json @@ -123,6 +123,7 @@ "version.js" ], "dependencies": { + "@openfeature/core": "^1.8.1", "dc-polyfill": "^0.1.10", "import-in-the-middle": "^1.14.2" }, @@ -141,7 +142,6 @@ "@eslint/eslintrc": "^3.3.1", "@eslint/js": "^9.39.0", "@msgpack/msgpack": "^3.1.2", - "@openfeature/core": "^1.9.0", "@openfeature/server-sdk": "~1.20.0", "@stylistic/eslint-plugin": "^5.5.0", "@types/chai": "^4.3.16", diff --git a/packages/node_modules/@datadog/openfeature-node-server/LICENSE b/packages/node_modules/@datadog/openfeature-node-server/LICENSE index 261eeb9e9f8..4a0027eec4e 100644 --- a/packages/node_modules/@datadog/openfeature-node-server/LICENSE +++ b/packages/node_modules/@datadog/openfeature-node-server/LICENSE @@ -186,7 +186,7 @@ same "printed page" as the copyright notice for easier identification within third-party archives. - Copyright [yyyy] [name of copyright owner] + Copyright 2025 Datadog, Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/packages/node_modules/@datadog/openfeature-node-server/index.js b/packages/node_modules/@datadog/openfeature-node-server/index.js index 4aa71eb0d2f..25af0b3cb9d 100644 --- a/packages/node_modules/@datadog/openfeature-node-server/index.js +++ b/packages/node_modules/@datadog/openfeature-node-server/index.js @@ -1 +1 @@ -(()=>{var e={"./spark-md5/spark-md5.js":function(e){e.exports=function(e){"use strict";var t=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"];function r(e,t){var r=e[0],n=e[1],i=e[2],o=e[3];r+=(n&i|~n&o)+t[0]-0x28955b88|0,o+=((r=(r<<7|r>>>25)+n|0)&n|~r&i)+t[1]-0x173848aa|0,i+=((o=(o<<12|o>>>20)+r|0)&r|~o&n)+t[2]+0x242070db|0,n+=((i=(i<<17|i>>>15)+o|0)&o|~i&r)+t[3]-0x3e423112|0,r+=((n=(n<<22|n>>>10)+i|0)&i|~n&o)+t[4]-0xa83f051|0,o+=((r=(r<<7|r>>>25)+n|0)&n|~r&i)+t[5]+0x4787c62a|0,i+=((o=(o<<12|o>>>20)+r|0)&r|~o&n)+t[6]-0x57cfb9ed|0,n+=((i=(i<<17|i>>>15)+o|0)&o|~i&r)+t[7]-0x2b96aff|0,r+=((n=(n<<22|n>>>10)+i|0)&i|~n&o)+t[8]+0x698098d8|0,o+=((r=(r<<7|r>>>25)+n|0)&n|~r&i)+t[9]-0x74bb0851|0,i+=((o=(o<<12|o>>>20)+r|0)&r|~o&n)+t[10]-42063|0,n+=((i=(i<<17|i>>>15)+o|0)&o|~i&r)+t[11]-0x76a32842|0,r+=((n=(n<<22|n>>>10)+i|0)&i|~n&o)+t[12]+0x6b901122|0,o+=((r=(r<<7|r>>>25)+n|0)&n|~r&i)+t[13]-0x2678e6d|0,i+=((o=(o<<12|o>>>20)+r|0)&r|~o&n)+t[14]-0x5986bc72|0,n+=((i=(i<<17|i>>>15)+o|0)&o|~i&r)+t[15]+0x49b40821|0,r+=((n=(n<<22|n>>>10)+i|0)&o|i&~o)+t[1]-0x9e1da9e|0,o+=((r=(r<<5|r>>>27)+n|0)&i|n&~i)+t[6]-0x3fbf4cc0|0,i+=((o=(o<<9|o>>>23)+r|0)&n|r&~n)+t[11]+0x265e5a51|0,n+=((i=(i<<14|i>>>18)+o|0)&r|o&~r)+t[0]-0x16493856|0,r+=((n=(n<<20|n>>>12)+i|0)&o|i&~o)+t[5]-0x29d0efa3|0,o+=((r=(r<<5|r>>>27)+n|0)&i|n&~i)+t[10]+0x2441453|0,i+=((o=(o<<9|o>>>23)+r|0)&n|r&~n)+t[15]-0x275e197f|0,n+=((i=(i<<14|i>>>18)+o|0)&r|o&~r)+t[4]-0x182c0438|0,r+=((n=(n<<20|n>>>12)+i|0)&o|i&~o)+t[9]+0x21e1cde6|0,o+=((r=(r<<5|r>>>27)+n|0)&i|n&~i)+t[14]-0x3cc8f82a|0,i+=((o=(o<<9|o>>>23)+r|0)&n|r&~n)+t[3]-0xb2af279|0,n+=((i=(i<<14|i>>>18)+o|0)&r|o&~r)+t[8]+0x455a14ed|0,r+=((n=(n<<20|n>>>12)+i|0)&o|i&~o)+t[13]-0x561c16fb|0,o+=((r=(r<<5|r>>>27)+n|0)&i|n&~i)+t[2]-0x3105c08|0,i+=((o=(o<<9|o>>>23)+r|0)&n|r&~n)+t[7]+0x676f02d9|0,n+=((i=(i<<14|i>>>18)+o|0)&r|o&~r)+t[12]-0x72d5b376|0,r+=((n=(n<<20|n>>>12)+i|0)^i^o)+t[5]-378558|0,o+=((r=(r<<4|r>>>28)+n|0)^n^i)+t[8]-0x788e097f|0,i+=((o=(o<<11|o>>>21)+r|0)^r^n)+t[11]+0x6d9d6122|0,n+=((i=(i<<16|i>>>16)+o|0)^o^r)+t[14]-0x21ac7f4|0,r+=((n=(n<<23|n>>>9)+i|0)^i^o)+t[1]-0x5b4115bc|0,o+=((r=(r<<4|r>>>28)+n|0)^n^i)+t[4]+0x4bdecfa9|0,i+=((o=(o<<11|o>>>21)+r|0)^r^n)+t[7]-0x944b4a0|0,n+=((i=(i<<16|i>>>16)+o|0)^o^r)+t[10]-0x41404390|0,r+=((n=(n<<23|n>>>9)+i|0)^i^o)+t[13]+0x289b7ec6|0,o+=((r=(r<<4|r>>>28)+n|0)^n^i)+t[0]-0x155ed806|0,i+=((o=(o<<11|o>>>21)+r|0)^r^n)+t[3]-0x2b10cf7b|0,n+=((i=(i<<16|i>>>16)+o|0)^o^r)+t[6]+0x4881d05|0,r+=((n=(n<<23|n>>>9)+i|0)^i^o)+t[9]-0x262b2fc7|0,o+=((r=(r<<4|r>>>28)+n|0)^n^i)+t[12]-0x1924661b|0,i+=((o=(o<<11|o>>>21)+r|0)^r^n)+t[15]+0x1fa27cf8|0,n+=((i=(i<<16|i>>>16)+o|0)^o^r)+t[2]-0x3b53a99b|0,n=(n<<23|n>>>9)+i|0,r+=(i^(n|~o))+t[0]-0xbd6ddbc|0,r=(r<<6|r>>>26)+n|0,o+=(n^(r|~i))+t[7]+0x432aff97|0,o=(o<<10|o>>>22)+r|0,i+=(r^(o|~n))+t[14]-0x546bdc59|0,i=(i<<15|i>>>17)+o|0,n+=(o^(i|~r))+t[5]-0x36c5fc7|0,n=(n<<21|n>>>11)+i|0,r+=(i^(n|~o))+t[12]+0x655b59c3|0,r=(r<<6|r>>>26)+n|0,o+=(n^(r|~i))+t[3]-0x70f3336e|0,o=(o<<10|o>>>22)+r|0,i+=(r^(o|~n))+t[10]-1051523|0,i=(i<<15|i>>>17)+o|0,n+=(o^(i|~r))+t[1]-0x7a7ba22f|0,n=(n<<21|n>>>11)+i|0,r+=(i^(n|~o))+t[8]+0x6fa87e4f|0,r=(r<<6|r>>>26)+n|0,o+=(n^(r|~i))+t[15]-0x1d31920|0,o=(o<<10|o>>>22)+r|0,i+=(r^(o|~n))+t[6]-0x5cfebcec|0,i=(i<<15|i>>>17)+o|0,n+=(o^(i|~r))+t[13]+0x4e0811a1|0,n=(n<<21|n>>>11)+i|0,r+=(i^(n|~o))+t[4]-0x8ac817e|0,r=(r<<6|r>>>26)+n|0,o+=(n^(r|~i))+t[11]-0x42c50dcb|0,o=(o<<10|o>>>22)+r|0,i+=(r^(o|~n))+t[2]+0x2ad7d2bb|0,i=(i<<15|i>>>17)+o|0,n+=(o^(i|~r))+t[9]-0x14792c6f|0,n=(n<<21|n>>>11)+i|0,e[0]=r+e[0]|0,e[1]=n+e[1]|0,e[2]=i+e[2]|0,e[3]=o+e[3]|0}function n(e){var t,r=[];for(t=0;t<64;t+=4)r[t>>2]=e.charCodeAt(t)+(e.charCodeAt(t+1)<<8)+(e.charCodeAt(t+2)<<16)+(e.charCodeAt(t+3)<<24);return r}function i(e){var t,r=[];for(t=0;t<64;t+=4)r[t>>2]=e[t]+(e[t+1]<<8)+(e[t+2]<<16)+(e[t+3]<<24);return r}function o(e){var t,i,o,s,a,l,u=e.length,h=[0x67452301,-0x10325477,-0x67452302,0x10325476];for(t=64;t<=u;t+=64)r(h,n(e.substring(t-64,t)));for(i=(e=e.substring(t-64)).length,o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],t=0;t>2]|=e.charCodeAt(t)<<(t%4<<3);if(o[t>>2]|=128<<(t%4<<3),t>55)for(r(h,o),t=0;t<16;t+=1)o[t]=0;return a=parseInt((s=(s=8*u).toString(16).match(/(.*?)(.{0,8})$/))[2],16),l=parseInt(s[1],16)||0,o[14]=a,o[15]=l,r(h,o),h}function s(e){var r;for(r=0;r>8*r+4&15]+t[e>>8*r&15];return n}(e[r]);return e.join("")}function a(e){return/[\u0080-\uFFFF]/.test(e)&&(e=unescape(encodeURIComponent(e))),e}function l(e){var t,r=[],n=e.length;for(t=0;tu)?new ArrayBuffer(0):(o=new Uint8Array(i=new ArrayBuffer(n=u-l)),s=new Uint8Array(this,l,n),o.set(s),i)}}(),u.prototype.append=function(e){return this.appendBinary(a(e)),this},u.prototype.appendBinary=function(e){this._buff+=e,this._length+=e.length;var t,i=this._buff.length;for(t=64;t<=i;t+=64)r(this._hash,n(this._buff.substring(t-64,t)));return this._buff=this._buff.substring(t-64),this},u.prototype.end=function(e){var t,r,n=this._buff,i=n.length,o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(t=0;t>2]|=n.charCodeAt(t)<<(t%4<<3);return this._finish(o,i),r=s(this._hash),e&&(r=l(r)),this.reset(),r},u.prototype.reset=function(){return this._buff="",this._length=0,this._hash=[0x67452301,-0x10325477,-0x67452302,0x10325476],this},u.prototype.getState=function(){return{buff:this._buff,length:this._length,hash:this._hash.slice()}},u.prototype.setState=function(e){return this._buff=e.buff,this._length=e.length,this._hash=e.hash,this},u.prototype.destroy=function(){delete this._hash,delete this._buff,delete this._length},u.prototype._finish=function(e,t){var n,i,o,s=t;if(e[s>>2]|=128<<(s%4<<3),s>55)for(r(this._hash,e),s=0;s<16;s+=1)e[s]=0;i=parseInt((n=(n=8*this._length).toString(16).match(/(.*?)(.{0,8})$/))[2],16),o=parseInt(n[1],16)||0,e[14]=i,e[15]=o,r(this._hash,e)},u.hash=function(e,t){return u.hashBinary(a(e),t)},u.hashBinary=function(e,t){var r=s(o(e));return t?l(r):r},u.ArrayBuffer=function(){this.reset()},u.ArrayBuffer.prototype.append=function(e){var t,n,o,s=(t=this._buff.buffer,(n=new Uint8Array(t.byteLength+e.byteLength)).set(new Uint8Array(t)),n.set(new Uint8Array(e),t.byteLength),n),a=s.length;for(this._length+=e.byteLength,o=64;o<=a;o+=64)r(this._hash,i(s.subarray(o-64,o)));return this._buff=new Uint8Array(o-64>2]|=n[t]<<(t%4<<3);return this._finish(o,i),r=s(this._hash),e&&(r=l(r)),this.reset(),r},u.ArrayBuffer.prototype.reset=function(){return this._buff=new Uint8Array(0),this._length=0,this._hash=[0x67452301,-0x10325477,-0x67452302,0x10325476],this},u.ArrayBuffer.prototype.getState=function(){var e,t=u.prototype.getState.call(this);return e=t.buff,t.buff=String.fromCharCode.apply(null,new Uint8Array(e)),t},u.ArrayBuffer.prototype.setState=function(e){return e.buff=function(e,t){var r,n=e.length,i=new ArrayBuffer(n),o=new Uint8Array(i);for(r=0;r>2]|=e[t]<<(t%4<<3);if(o[t>>2]|=128<<(t%4<<3),t>55)for(r(h,o),t=0;t<16;t+=1)o[t]=0;return a=parseInt((s=(s=8*u).toString(16).match(/(.*?)(.{0,8})$/))[2],16),l=parseInt(s[1],16)||0,o[14]=a,o[15]=l,r(h,o),h}(new Uint8Array(e)));return t?l(n):n},u}()},"./@openfeature/core/dist/esm/index.js":function(e,t,r){"use strict";r.d(t,{ErrorCode:()=>E,GenericEventEmitter:()=>H,OpenFeatureCommonAPI:()=>V,ProviderFatalError:()=>O,ProviderNotReadyError:()=>A,ProviderWrapper:()=>F,SafeLogger:()=>k,ServerProviderEvents:()=>S,ServerProviderStatus:()=>T,StandardResolutionReasons:()=>p,instantiateErrorByErrorCode:()=>P,objectOrUndefined:()=>M,statusMatchesEvent:()=>D,stringOrUndefined:()=>j});var n,i,o,s,a=Object.defineProperty,l=Object.defineProperties,u=Object.getOwnPropertyDescriptors,h=Object.getOwnPropertySymbols,d=Object.prototype.hasOwnProperty,c=Object.prototype.propertyIsEnumerable,f=(e,t,r)=>t in e?a(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,v=(e,t)=>{for(var r in t||(t={}))d.call(t,r)&&f(e,r,t[r]);if(h)for(var r of h(t))c.call(t,r)&&f(e,r,t[r]);return e},g=(e,t,r)=>new Promise((n,i)=>{var o=e=>{try{a(r.next(e))}catch(e){i(e)}},s=e=>{try{a(r.throw(e))}catch(e){i(e)}},a=e=>e.done?n(e.value):Promise.resolve(e.value).then(o,s);a((r=r.apply(e,t)).next())}),p={STATIC:"STATIC",DEFAULT:"DEFAULT",TARGETING_MATCH:"TARGETING_MATCH",SPLIT:"SPLIT",CACHED:"CACHED",DISABLED:"DISABLED",UNKNOWN:"UNKNOWN",STALE:"STALE",ERROR:"ERROR"},E=((n=E||{}).PROVIDER_NOT_READY="PROVIDER_NOT_READY",n.PROVIDER_FATAL="PROVIDER_FATAL",n.FLAG_NOT_FOUND="FLAG_NOT_FOUND",n.PARSE_ERROR="PARSE_ERROR",n.TYPE_MISMATCH="TYPE_MISMATCH",n.TARGETING_KEY_MISSING="TARGETING_KEY_MISSING",n.INVALID_CONTEXT="INVALID_CONTEXT",n.GENERAL="GENERAL",n),_=class e extends Error{constructor(t,r){super(t),Object.setPrototypeOf(this,e.prototype),this.name="OpenFeatureError",this.cause=null==r?void 0:r.cause}},y=class e extends _{constructor(t,r){super(t,r),Object.setPrototypeOf(this,e.prototype),this.name="FlagNotFoundError",this.code="FLAG_NOT_FOUND"}},m=class e extends _{constructor(t,r){super(t,r),Object.setPrototypeOf(this,e.prototype),this.name="GeneralError",this.code="GENERAL"}},R=class e extends _{constructor(t,r){super(t,r),Object.setPrototypeOf(this,e.prototype),this.name="InvalidContextError",this.code="INVALID_CONTEXT"}},b=class e extends _{constructor(t,r){super(t,r),Object.setPrototypeOf(this,e.prototype),this.name="ParseError",this.code="PARSE_ERROR"}},O=class e extends _{constructor(t,r){super(t,r),Object.setPrototypeOf(this,e.prototype),this.name="ProviderFatalError",this.code="PROVIDER_FATAL"}},A=class e extends _{constructor(t,r){super(t,r),Object.setPrototypeOf(this,e.prototype),this.name="ProviderNotReadyError",this.code="PROVIDER_NOT_READY"}},x=class e extends _{constructor(t,r){super(t,r),Object.setPrototypeOf(this,e.prototype),this.name="TargetingKeyMissingError",this.code="TARGETING_KEY_MISSING"}},C=class e extends _{constructor(t,r){super(t,r),Object.setPrototypeOf(this,e.prototype),this.name="TypeMismatchError",this.code="TYPE_MISMATCH"}},P=(e,t)=>{switch(e){case"FLAG_NOT_FOUND":return new y(t);case"PARSE_ERROR":return new b(t);case"TYPE_MISMATCH":return new C(t);case"TARGETING_KEY_MISSING":return new x(t);case"INVALID_CONTEXT":return new R(t);case"PROVIDER_NOT_READY":return new A(t);case"PROVIDER_FATAL":return new O(t);default:return new m(t)}},T=((i=T||{}).NOT_READY="NOT_READY",i.READY="READY",i.ERROR="ERROR",i.STALE="STALE",i.FATAL="FATAL",i),S=((o=S||{}).Ready="PROVIDER_READY",o.Error="PROVIDER_ERROR",o.ConfigurationChanged="PROVIDER_CONFIGURATION_CHANGED",o.Stale="PROVIDER_STALE",o),N=((s=N||{}).Ready="PROVIDER_READY",s.Error="PROVIDER_ERROR",s.ConfigurationChanged="PROVIDER_CONFIGURATION_CHANGED",s.ContextChanged="PROVIDER_CONTEXT_CHANGED",s.Reconciling="PROVIDER_RECONCILING",s.Stale="PROVIDER_STALE",s),I={READY:"PROVIDER_READY",ERROR:"PROVIDER_ERROR",FATAL:"PROVIDER_ERROR",STALE:"PROVIDER_STALE",RECONCILING:"PROVIDER_RECONCILING",NOT_READY:void 0},D=(e,t)=>!t&&"PROVIDER_READY"===e||I[t]===e,w=class{error(...e){console.error(...e)}warn(...e){console.warn(...e)}info(){}debug(){}},L=["error","warn","info","debug"],k=class{constructor(e){this.fallbackLogger=new w;try{for(const t of L)if(!e[t]||"function"!=typeof e[t])throw Error(`The provided logger is missing the ${t} method.`);this.logger=e}catch(e){console.error(e),console.error("Falling back to the default logger."),this.logger=this.fallbackLogger}}error(...e){this.log("error",...e)}warn(...e){this.log("warn",...e)}info(...e){this.log("info",...e)}debug(...e){this.log("debug",...e)}log(e,...t){try{this.logger[e](...t)}catch(r){this.fallbackLogger[e](...t)}}},H=class{constructor(e){this.globalLogger=e,this._handlers={PROVIDER_CONFIGURATION_CHANGED:new WeakMap,PROVIDER_CONTEXT_CHANGED:new WeakMap,PROVIDER_READY:new WeakMap,PROVIDER_ERROR:new WeakMap,PROVIDER_STALE:new WeakMap,PROVIDER_RECONCILING:new WeakMap}}emit(e,t){this.eventEmitter.emit(e,t)}addHandler(e,t){let r=e=>g(this,null,function*(){var r;try{yield t(e)}catch(e){null==(r=this._logger)||r.error("Error running event handler:",e)}}),n=this._handlers[e].get(t);this._handlers[e].set(t,[...n||[],r]),this.eventEmitter.on(e,r)}removeHandler(e,t){let r=this._handlers[e].get(t);if(r){let t=r.pop();t&&this.eventEmitter.removeListener(e,t)}}removeAllHandlers(e){e?this.eventEmitter.removeAllListeners(e):this.eventEmitter.removeAllListeners()}getHandlers(e){return this.eventEmitter.listeners(e)}setLogger(e){return this._eventLogger=new k(e),this}get _logger(){var e,t;return null!=(t=this._eventLogger)?t:null==(e=this.globalLogger)?void 0:e.call(this)}};function j(e){return"string"==typeof e?e:void 0}function M(e){return"object"==typeof e?e:void 0}function G(e){return null!=e}var F=class{constructor(e,t,r){var n,i,o;this._provider=e,this._status=t,this._pendingContextChanges=0,null==(n=e.events)||n.addHandler("PROVIDER_READY",()=>{this._status=r.READY}),null==(i=e.events)||i.addHandler("PROVIDER_STALE",()=>{this._status=r.STALE}),null==(o=e.events)||o.addHandler("PROVIDER_ERROR",e=>{(null==e?void 0:e.errorCode)==="PROVIDER_FATAL"?this._status=r.FATAL:this._status=r.ERROR})}get provider(){return this._provider}set provider(e){this._provider=e}get status(){return this._status}set status(e){this._status=e}get allContextChangesSettled(){return 0===this._pendingContextChanges}incrementPendingContextChanges(){this._pendingContextChanges++}decrementPendingContextChanges(){this._pendingContextChanges--}},V=class{constructor(e){this._hooks=[],this._context={},this._logger=new w,this._clientEventHandlers=new Map,this._domainScopedContext=new Map,this._clientEvents=new Map,this._runsOn=e}addHooks(...e){return this._hooks=[...this._hooks,...e],this}getHooks(){return this._hooks}clearHooks(){return this._hooks=[],this}setLogger(e){return this._logger=new k(e),this}get providerMetadata(){return this.getProviderMetadata()}getProviderMetadata(e){return this.getProviderForClient(e).metadata}addHandler(e,t,r){[...new Map([[void 0,this._defaultProvider]]),...this._domainScopedProviders].forEach(r=>{var n;let i=r[0],o=r[1].provider;if(D(e,r[1].status))try{t({domain:i,providerName:o.metadata.name})}catch(e){null==(n=this._logger)||n.error("Error running event handler:",e)}}),this._apiEmitter.addHandler(e,t),(null==r?void 0:r.signal)&&"function"==typeof r.signal.addEventListener&&r.signal.addEventListener("abort",()=>{this.removeHandler(e,t)})}removeHandler(e,t){this._apiEmitter.removeHandler(e,t)}clearHandlers(){this._apiEmitter.removeAllHandlers()}getHandlers(e){return this._apiEmitter.getHandlers(e)}setAwaitableProvider(e,t){var r,n,i,o,s,a,l,u;let h,d=j(e),c=null!=(r=M(e))?r:M(t);if(!c)return void this._logger.debug("No provider defined, ignoring setProvider call");let f=this.getProviderForClient(d),v=c.metadata.name;if(f===c)return void this._logger.debug("Provider is already set, ignoring setProvider call");if(c.runsOn){if(c.runsOn!==this._runsOn)throw new m(`Provider '${c.metadata.name}' is intended for use on the ${c.runsOn}.`)}else this._logger.debug(`Provider '${c.metadata.name}' has not defined its intended use.`);let g=this.getAssociatedEventEmitters(d),p=new F(c,this._statusEnumType.NOT_READY,this._statusEnumType);return"function"!=typeof c.initialize||this.allProviders.includes(c)?(p.status=this._statusEnumType.READY,g.forEach(e=>{null==e||e.emit("PROVIDER_READY",{clientName:d,domain:d,providerName:v})}),null==(a=this._apiEmitter)||a.emit("PROVIDER_READY",{clientName:d,domain:d,providerName:v})):h=null==(s=null==(o=null==(i=c.initialize)?void 0:i.call(c,d&&null!=(n=this._domainScopedContext.get(d))?n:this._context))?void 0:o.then(()=>{var e;p.status=this._statusEnumType.READY,this.getAssociatedEventEmitters(d).forEach(e=>{null==e||e.emit("PROVIDER_READY",{clientName:d,domain:d,providerName:v})}),null==(e=this._apiEmitter)||e.emit("PROVIDER_READY",{clientName:d,domain:d,providerName:v})}))?void 0:s.catch(e=>{var t;throw(null==e?void 0:e.code)==="PROVIDER_FATAL"?p.status=this._statusEnumType.FATAL:p.status=this._statusEnumType.ERROR,this.getAssociatedEventEmitters(d).forEach(t=>{null==t||t.emit("PROVIDER_ERROR",{clientName:d,domain:d,providerName:v,message:null==e?void 0:e.message})}),null==(t=this._apiEmitter)||t.emit("PROVIDER_ERROR",{clientName:d,domain:d,providerName:v,message:null==e?void 0:e.message}),e}),d?this._domainScopedProviders.set(d,p):this._defaultProvider=p,this.transferListeners(f,c,d,g),this.allProviders.includes(f)||null==(u=null==(l=null==f?void 0:f.onClose)?void 0:l.call(f))||u.catch(e=>{this._logger.error(`error closing provider: ${null==e?void 0:e.message}, ${null==e?void 0:e.stack}`)}),h}getProviderForClient(e){var t,r;return e&&null!=(r=null==(t=this._domainScopedProviders.get(e))?void 0:t.provider)?r:this._defaultProvider.provider}buildAndCacheEventEmitterForClient(e){let t=this._clientEvents.get(e);if(t)return t;let r=this._createEventEmitter();this._clientEvents.set(e,r);let n=this.getProviderForClient(e);return Object.values(N).forEach(t=>{var i;return null==(i=n.events)?void 0:i.addHandler(t,i=>g(this,null,function*(){r.emit(t,l(v({},i),u({clientName:e,domain:e,providerName:n.metadata.name})))}))}),r}getUnboundEmitters(){let e=[...this._domainScopedProviders.keys()];return[...[...this._clientEvents.keys()].filter(G).filter(t=>!e.includes(t)).map(e=>this._clientEvents.get(e)),this._clientEvents.get(void 0)].filter(G)}getAssociatedEventEmitters(e){return e?[this.buildAndCacheEventEmitterForClient(e)]:this.getUnboundEmitters()}transferListeners(e,t,r,n){var i;null==(i=this._clientEventHandlers.get(r))||i.forEach(t=>{var r;return null==(r=e.events)?void 0:r.removeHandler(...t)});let o=Object.values(N).map(e=>{let i=i=>g(this,null,function*(){n.forEach(n=>{null==n||n.emit(e,l(v({},i),u({clientName:r,domain:r,providerName:t.metadata.name})))}),this._apiEmitter.emit(e,l(v({},i),u({clientName:r,domain:r,providerName:t.metadata.name})))});return[e,i]});this._clientEventHandlers.set(r,o),o.forEach(e=>{var r;return null==(r=t.events)?void 0:r.addHandler(...e)})}close(){return g(this,null,function*(){var e,t;try{yield null==(t=null==(e=this==null?void 0:this._defaultProvider.provider)?void 0:e.onClose)?void 0:t.call(e)}catch(e){this.handleShutdownError(this._defaultProvider.provider,e)}let r=Array.from(this._domainScopedProviders);yield Promise.all(r.map(e=>g(this,[e],function*([,e]){var t,r;try{yield null==(r=null==e?void 0:(t=e.provider).onClose)?void 0:r.call(t)}catch(t){this.handleShutdownError(null==e?void 0:e.provider,t)}})))})}clearProvidersAndSetDefault(e){return g(this,null,function*(){try{yield this.close()}catch(e){this._logger.error("Unable to cleanly close providers. Resetting to the default configuration.")}finally{this._domainScopedProviders.clear(),this._defaultProvider=new F(e,this._statusEnumType.NOT_READY,this._statusEnumType)}})}get allProviders(){return[...[...this._domainScopedProviders.values()].map(e=>e.provider),this._defaultProvider.provider]}handleShutdownError(e,t){this._logger.error(`Error during shutdown of provider ${e.metadata.name}: ${t}`),this._logger.error(null==t?void 0:t.stack)}}}},t={};function r(n){var i=t[n];if(void 0!==i)return i.exports;var o=t[n]={exports:{}};return e[n](o,o.exports,r),o.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};(()=>{"use strict";r.r(n),r.d(n,{DatadogNodeServerProvider:()=>w});var e,t,i=r("./spark-md5/spark-md5.js"),o=r.n(i);function s(e,t=""){return new(o())().append(t).append(e).end()}function a(e){return s(JSON.stringify({flag:{key:e.flag.key},subject:{id:e.subject.id,attributes:e.subject.attributes}}))}function l(e){return s(JSON.stringify(e))}class u{constructor(e){this.delegate=e}init(){return Promise.resolve()}has(e){return this.get(e)===l(e)}get(e){return this.delegate.get(a(e))}set(e){this.delegate.set(a(e),l(e))}entries(){return this.delegate.entries()}clear(){this.delegate.clear()}}class h{constructor(e){this.capacity=e,this.cache=new Map,this.size=this.cache.size}[(Symbol.toStringTag,Symbol.iterator)](){return this.cache[Symbol.iterator]()}forEach(e){this.cache.forEach(e)}entries(){return this.cache.entries()}clear(){this.cache.clear()}delete(e){return this.cache.delete(e)}keys(){return this.cache.keys()}values(){return this.cache.values()}has(e){return this.cache.has(e)}get(e){if(!this.has(e))return;let t=this.cache.get(e);return void 0!==t&&(this.delete(e),this.cache.set(e,t)),t}set(e,t){if(0===this.capacity)return this;if(this.cache.has(e))this.cache.delete(e);else if(this.cache.size>=this.capacity){let e=this.cache.keys().next().value;e&&this.delete(e)}return this.cache.set(e,t),this}}class d extends u{constructor(e){super(new h(e))}}var c=r("./@openfeature/core/dist/esm/index.js");let f=require("node:events");require("async_hooks");var v=Object.defineProperty,g=Object.defineProperties,p=Object.getOwnPropertyDescriptors,E=Object.getOwnPropertySymbols,_=Object.prototype.hasOwnProperty,y=Object.prototype.propertyIsEnumerable,m=(e,t,r)=>t in e?v(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,R=(e,t)=>{for(var r in t||(t={}))_.call(t,r)&&m(e,r,t[r]);if(E)for(var r of E(t))y.call(t,r)&&m(e,r,t[r]);return e},b=(e,t,r)=>new Promise((n,i)=>{var o=e=>{try{a(r.next(e))}catch(e){i(e)}},s=e=>{try{a(r.throw(e))}catch(e){i(e)}},a=e=>e.done?n(e.value):Promise.resolve(e.value).then(o,s);a((r=r.apply(e,t)).next())}),O=new class{constructor(){this.metadata={name:"No-op Provider"}}resolveBooleanEvaluation(e,t){return this.noOp(t)}resolveStringEvaluation(e,t){return this.noOp(t)}resolveNumberEvaluation(e,t){return this.noOp(t)}resolveObjectEvaluation(e,t){return this.noOp(t)}noOp(e){return Promise.resolve({value:e,reason:"No-op"})}},A=class{constructor(e,t,r,n,i,o,s,a,l={}){this.providerAccessor=e,this.providerStatusAccessor=t,this.emitterAccessor=r,this.apiContextAccessor=n,this.apiHooksAccessor=i,this.transactionContextAccessor=o,this.globalLogger=s,this.options=a,this._hooks=[],this._context=l}get metadata(){var e,t;return{name:null!=(e=this.options.domain)?e:this.options.name,domain:null!=(t=this.options.domain)?t:this.options.name,version:this.options.version,providerMetadata:this.providerAccessor().metadata}}get providerStatus(){return this.providerStatusAccessor()}addHandler(e,t,r){var n;if(this.emitterAccessor().addHandler(e,t),(0,c.statusMatchesEvent)(e,this._providerStatus))try{t({clientName:this.metadata.name,domain:this.metadata.domain,providerName:this._provider.metadata.name})}catch(e){null==(n=this._logger)||n.error("Error running event handler:",e)}(null==r?void 0:r.signal)&&"function"==typeof r.signal.addEventListener&&r.signal.addEventListener("abort",()=>{this.removeHandler(e,t)})}removeHandler(e,t){this.emitterAccessor().removeHandler(e,t)}getHandlers(e){return this.emitterAccessor().getHandlers(e)}setLogger(e){return this._clientLogger=new c.SafeLogger(e),this}setContext(e){return this._context=e,this}getContext(){return this._context}addHooks(...e){return this._hooks=[...this._hooks,...e],this}getHooks(){return this._hooks}clearHooks(){return this._hooks=[],this}getBooleanValue(e,t,r,n){return b(this,null,function*(){return(yield this.getBooleanDetails(e,t,r,n)).value})}getBooleanDetails(e,t,r,n){return this.evaluate(e,this._provider.resolveBooleanEvaluation,t,"boolean",r,n)}getStringValue(e,t,r,n){return b(this,null,function*(){return(yield this.getStringDetails(e,t,r,n)).value})}getStringDetails(e,t,r,n){return this.evaluate(e,this._provider.resolveStringEvaluation,t,"string",r,n)}getNumberValue(e,t,r,n){return b(this,null,function*(){return(yield this.getNumberDetails(e,t,r,n)).value})}getNumberDetails(e,t,r,n){return this.evaluate(e,this._provider.resolveNumberEvaluation,t,"number",r,n)}getObjectValue(e,t,r,n){return b(this,null,function*(){return(yield this.getObjectDetails(e,t,r,n)).value})}getObjectDetails(e,t,r,n){return this.evaluate(e,this._provider.resolveObjectEvaluation,t,"object",r,n)}track(e,t={},r={}){var n,i;try{if(this.shortCircuitIfNotReady(),"function"==typeof this._provider.track){let o=Object.freeze(this.mergeContexts(t));return null==(i=(n=this._provider).track)?void 0:i.call(n,e,o,r)}this._logger.debug("Provider does not support the track function; will no-op.")}catch(e){this._logger.debug("Error recording tracking event.",e)}}evaluate(e,t,r,n){return b(this,arguments,function*(e,t,r,n,i={},o={}){var s;let a,l=[...this.apiHooksAccessor(),...this.getHooks(),...o.hooks||[],...this._provider.hooks||[]],u=[...l].reverse(),h=this.mergeContexts(i),d={flagKey:e,defaultValue:r,flagValueType:n,clientMetadata:this.metadata,providerMetadata:this._provider.metadata,context:h,logger:this._logger};try{let n,i,h=yield this.beforeHooks(l,d,o);this.shortCircuitIfNotReady();let f=yield t.call(this._provider,e,r,h,this._logger),v=(n=R({},f),i={flagMetadata:Object.freeze(null!=(s=f.flagMetadata)?s:{}),flagKey:e},g(n,p(i)));if(v.errorCode){let t=(0,c.instantiateErrorByErrorCode)(v.errorCode,v.errorMessage);yield this.errorHooks(u,d,t,o),a=this.getErrorEvaluationDetails(e,r,t,v.flagMetadata)}else yield this.afterHooks(u,d,v,o),a=v}catch(t){yield this.errorHooks(u,d,t,o),a=this.getErrorEvaluationDetails(e,r,t)}return yield this.finallyHooks(u,d,a,o),a})}beforeHooks(e,t,r){return b(this,null,function*(){var n;for(let i of e)Object.freeze(t),Object.assign(t.context,R(R({},t.context),(yield null==(n=null==i?void 0:i.before)?void 0:n.call(i,t,Object.freeze(r.hookHints)))));return Object.freeze(t.context)})}afterHooks(e,t,r,n){return b(this,null,function*(){var i;for(let o of e)yield null==(i=null==o?void 0:o.after)?void 0:i.call(o,t,r,n.hookHints)})}errorHooks(e,t,r,n){return b(this,null,function*(){var i;for(let o of e)try{yield null==(i=null==o?void 0:o.error)?void 0:i.call(o,t,r,n.hookHints)}catch(e){this._logger.error(`Unhandled error during 'error' hook: ${e}`),e instanceof Error&&this._logger.error(e.stack),this._logger.error(null==e?void 0:e.stack)}})}finallyHooks(e,t,r,n){return b(this,null,function*(){var i;for(let o of e)try{yield null==(i=null==o?void 0:o.finally)?void 0:i.call(o,t,r,n.hookHints)}catch(e){this._logger.error(`Unhandled error during 'finally' hook: ${e}`),e instanceof Error&&this._logger.error(e.stack),this._logger.error(null==e?void 0:e.stack)}})}get _provider(){return this.providerAccessor()}get _providerStatus(){return this.providerStatusAccessor()}get _logger(){return this._clientLogger||this.globalLogger()}mergeContexts(e){return R(R(R(R({},this.apiContextAccessor()),this.transactionContextAccessor()),this._context),e)}shortCircuitIfNotReady(){if(this.providerStatus===c.ServerProviderStatus.NOT_READY)throw new c.ProviderNotReadyError("provider has not yet initialized");if(this.providerStatus===c.ServerProviderStatus.FATAL)throw new c.ProviderFatalError("provider is in an irrecoverable error state")}getErrorEvaluationDetails(e,t,r,n={}){let i=null==r?void 0:r.message;return{errorCode:(null==r?void 0:r.code)||c.ErrorCode.GENERAL,errorMessage:i,value:t,reason:c.StandardResolutionReasons.ERROR,flagMetadata:Object.freeze(n),flagKey:e}}},x=class extends c.GenericEventEmitter{constructor(){super(),this.eventEmitter=new f.EventEmitter({captureRejections:!0}),this.eventEmitter.on("error",e=>{var t;null==(t=this._logger)||t.error("Error running event handler:",e)})}},C=new class{getTransactionContext(){return{}}setTransactionContext(e,t,...r){t(...r)}},P=Symbol.for("@openfeature/js-sdk/api"),T=globalThis;(class e extends c.OpenFeatureCommonAPI{constructor(){super("server"),this._statusEnumType=c.ServerProviderStatus,this._apiEmitter=new x,this._defaultProvider=new c.ProviderWrapper(O,c.ServerProviderStatus.NOT_READY,this._statusEnumType),this._domainScopedProviders=new Map,this._createEventEmitter=()=>new x,this._transactionContextPropagator=C}static getInstance(){let t=T[P];if(t)return t;let r=new e;return T[P]=r,r}getProviderStatus(e){var t,r;return e&&null!=(r=null==(t=this._domainScopedProviders.get(e))?void 0:t.status)?r:this._defaultProvider.status}setProviderAndWait(e,t){return b(this,null,function*(){let r=(0,c.stringOrUndefined)(e),n=r?(0,c.objectOrUndefined)(t):(0,c.objectOrUndefined)(e);yield this.setAwaitableProvider(r,n)})}setProvider(e,t){let r=(0,c.stringOrUndefined)(e),n=r?(0,c.objectOrUndefined)(t):(0,c.objectOrUndefined)(e);return Promise.resolve(this.setAwaitableProvider(r,n)).catch(e=>{this._logger.error("Error during provider initialization:",e)}),this}getProvider(e){return this.getProviderForClient(e)}setContext(e){return this._context=e,this}getContext(){return this._context}getClient(e,t,r){var n,i;let o=(0,c.stringOrUndefined)(e);return new A(()=>this.getProviderForClient(o),()=>this.getProviderStatus(o),()=>this.buildAndCacheEventEmitterForClient(o),()=>this.getContext(),()=>this.getHooks(),()=>this.getTransactionContext(),()=>this._logger,{domain:o,version:(0,c.stringOrUndefined)(t)},null!=(i=null!=(n=(0,c.objectOrUndefined)(e))?n:(0,c.objectOrUndefined)(t))?i:(0,c.objectOrUndefined)(r))}clearProviders(){return super.clearProvidersAndSetDefault(O)}setTransactionContextPropagator(e){let t="Invalid TransactionContextPropagator, will not be set: ";return"function"!=typeof(null==e?void 0:e.getTransactionContext)?this._logger.error(`${t}: getTransactionContext is not a function.`):"function"!=typeof(null==e?void 0:e.setTransactionContext)?this._logger.error(`${t}: setTransactionContext is not a function.`):this._transactionContextPropagator=e,this}setTransactionContext(e,t,...r){this._transactionContextPropagator.setTransactionContext(e,t,...r)}getTransactionContext(){try{return this._transactionContextPropagator.getTransactionContext()}catch(e){return this._logger.error(`Error getting transaction context: ${null==e?void 0:e.message}, returning empty context.`),this._logger.error(null==e?void 0:e.stack),{}}}}).getInstance(),(e=t||(t={})).MATCHES="MATCHES",e.NOT_MATCHES="NOT_MATCHES",e.GTE="GTE",e.GT="GT",e.LTE="LTE",e.LT="LT",e.ONE_OF="ONE_OF",e.NOT_ONE_OF="NOT_ONE_OF",e.IS_NULL="IS_NULL";class S{}class N extends S{getShard(e,t){return parseInt(s(e).slice(0,8),16)%t}}function I(e,r,n,i,o,s){if(!e)return{value:i,reason:"ERROR",errorCode:c.ErrorCode.PROVIDER_NOT_READY};let{targetingKey:a,...l}=o;if(!a)return{value:i,reason:"ERROR",errorCode:c.ErrorCode.TARGETING_KEY_MISSING};let u={id:a,...l};try{return function(e,r,n,i,o,s){if(!(null==e?void 0:e.enabled))return s.debug("returning default assignment because flag is disabled",{flagKey:e?e.key:"undefined",subjectKey:n}),{value:o,reason:c.StandardResolutionReasons.DISABLED};if(!function(e,t){if("boolean"===e)return"BOOLEAN"===t;if("string"===e)return"STRING"===t;if("number"===e)return"INTEGER"===t||"NUMERIC"===t;if("object"===e)return"JSON"===t;throw Error(`Invalid expected type: ${e}`)}(r,e.variationType))return s.debug("variant value type mismatch, returning default value",{flagKey:e.key,subjectKey:n,expectedType:r,variantType:e.variationType}),{value:o,reason:c.StandardResolutionReasons.ERROR,errorCode:c.ErrorCode.TYPE_MISMATCH};let a=new Date;for(let r of e.allocations){if(r.startAt&&a=new Date(r.endAt)){s.debug("allocation after end date",{flagKey:e.key,subjectKey:n,allocationKey:r.key,endAt:r.endAt});continue}if(!function(e,r,n){return null==e||!e.length||(n.debug("evaluating rules",{rules:JSON.stringify(e),subjectAttributes:r}),e.some(e=>!(function(e,r){return r.map(r=>(function(e,r){var n,i,o;let s=e[r.attribute];if(r.operator===t.IS_NULL)return r.value?null==s:null!=s;if(null!=s)switch(r.operator){case t.GTE:case t.GT:case t.LTE:case t.LT:return n=s,i=r.value,((e,n)=>r.operator===t.GTE?e>=n:r.operator===t.GT?e>n:r.operator===t.LTE?e<=n:e{let o=function(e,t,r){var n,i;let o=new N().getShard((n=e.salt,i=t,`${n}-${i}`),e.totalShards);return e.ranges.some(e=>{var t,r;return t=o,(r=e).start<=t&&t{this.resolve=()=>{this.cleanup(),e()},this.reject=e=>{this.cleanup(),t(e)}}),new Promise(()=>{this.timeoutId=setTimeout(()=>{t()},e)})])}async wait(){try{await this.promise}finally{this.cleanup()}}complete(){this.resolve&&this.resolve()}fail(e){this.reject&&this.reject(e)}isInitializing(){return void 0!==this.resolve}cleanup(){this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=void 0),this.resolve=void 0,this.reject=void 0}}class w{constructor(e){this.options=e,this.metadata={name:"datadog-node-server"},this.runsOn="server",this.hooks=[],this.events=new x,this.exposureCache=new d(5e4)}getConfiguration(){return this.configuration}setConfiguration(e){var t,r,n;let i=null==(t=this.configuration)?void 0:t.createdAt,o=!!this.configuration;if(o&&this.configuration!==e){this.events.emit(c.ServerProviderEvents.ConfigurationChanged),i!==(null==e?void 0:e.createdAt)&&(null==(r=this.exposureCache)||r.clear()),this.configuration=e;return}this.configuration=e,(null==(n=this.initController)?void 0:n.isInitializing())?this.initController.complete():o||this.events.emit(c.ServerProviderEvents.Ready)}setError(e){var t;(null==(t=this.initController)?void 0:t.isInitializing())?this.initController.fail(e):this.events.emit(c.ServerProviderEvents.Error,{error:e})}async initialize(){var e,t;if(this.configuration)return;let r=null!=(e=this.options.initializationTimeoutMs)?e:3e4;this.initController=new D(r,()=>this.setError(Error(`Initialization timeout after ${r}ms`))),await this.initController.wait(),await (null==(t=this.exposureCache)?void 0:t.init())}async resolveBooleanEvaluation(e,t,r,n){let i=I(this.configuration,"boolean",e,t,r,n);return this.handleExposure(e,r,i),i}async resolveStringEvaluation(e,t,r,n){let i=I(this.configuration,"string",e,t,r,n);return this.handleExposure(e,r,i),i}async resolveNumberEvaluation(e,t,r,n){let i=I(this.configuration,"number",e,t,r,n);return this.handleExposure(e,r,i),i}async resolveObjectEvaluation(e,t,r,n){let i=I(this.configuration,"object",e,t,r,n);return this.handleExposure(e,r,i),i}handleExposure(e,t,r){var n,i,o;let s=Date.now(),a=function(e,t){var r,n;if(!(null==(r=t.flagMetadata)?void 0:r.doLog))return;let i=null==(n=t.flagMetadata)?void 0:n.allocationKey,o=t.variant;if(!i||!o)return;let{targetingKey:s="",...a}=e;return{allocation:{key:i},flag:{key:t.flagKey},variant:{key:o},subject:{id:s,attributes:a}}}(t,{...r,flagKey:e,flagMetadata:null!=(n=r.flagMetadata)?n:{}});!a||(null==(i=this.exposureCache)?void 0:i.has(a))||this.options.exposureChannel.hasSubscribers&&(this.options.exposureChannel.publish({...a,timestamp:s}),null==(o=this.exposureCache)||o.set(a))}}})(),module.exports=n})(); \ No newline at end of file +(()=>{var e={"./spark-md5/spark-md5.js":function(e){e.exports=function(e){"use strict";var t=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"];function r(e,t){var r=e[0],n=e[1],i=e[2],o=e[3];r+=(n&i|~n&o)+t[0]-0x28955b88|0,o+=((r=(r<<7|r>>>25)+n|0)&n|~r&i)+t[1]-0x173848aa|0,i+=((o=(o<<12|o>>>20)+r|0)&r|~o&n)+t[2]+0x242070db|0,n+=((i=(i<<17|i>>>15)+o|0)&o|~i&r)+t[3]-0x3e423112|0,r+=((n=(n<<22|n>>>10)+i|0)&i|~n&o)+t[4]-0xa83f051|0,o+=((r=(r<<7|r>>>25)+n|0)&n|~r&i)+t[5]+0x4787c62a|0,i+=((o=(o<<12|o>>>20)+r|0)&r|~o&n)+t[6]-0x57cfb9ed|0,n+=((i=(i<<17|i>>>15)+o|0)&o|~i&r)+t[7]-0x2b96aff|0,r+=((n=(n<<22|n>>>10)+i|0)&i|~n&o)+t[8]+0x698098d8|0,o+=((r=(r<<7|r>>>25)+n|0)&n|~r&i)+t[9]-0x74bb0851|0,i+=((o=(o<<12|o>>>20)+r|0)&r|~o&n)+t[10]-42063|0,n+=((i=(i<<17|i>>>15)+o|0)&o|~i&r)+t[11]-0x76a32842|0,r+=((n=(n<<22|n>>>10)+i|0)&i|~n&o)+t[12]+0x6b901122|0,o+=((r=(r<<7|r>>>25)+n|0)&n|~r&i)+t[13]-0x2678e6d|0,i+=((o=(o<<12|o>>>20)+r|0)&r|~o&n)+t[14]-0x5986bc72|0,n+=((i=(i<<17|i>>>15)+o|0)&o|~i&r)+t[15]+0x49b40821|0,r+=((n=(n<<22|n>>>10)+i|0)&o|i&~o)+t[1]-0x9e1da9e|0,o+=((r=(r<<5|r>>>27)+n|0)&i|n&~i)+t[6]-0x3fbf4cc0|0,i+=((o=(o<<9|o>>>23)+r|0)&n|r&~n)+t[11]+0x265e5a51|0,n+=((i=(i<<14|i>>>18)+o|0)&r|o&~r)+t[0]-0x16493856|0,r+=((n=(n<<20|n>>>12)+i|0)&o|i&~o)+t[5]-0x29d0efa3|0,o+=((r=(r<<5|r>>>27)+n|0)&i|n&~i)+t[10]+0x2441453|0,i+=((o=(o<<9|o>>>23)+r|0)&n|r&~n)+t[15]-0x275e197f|0,n+=((i=(i<<14|i>>>18)+o|0)&r|o&~r)+t[4]-0x182c0438|0,r+=((n=(n<<20|n>>>12)+i|0)&o|i&~o)+t[9]+0x21e1cde6|0,o+=((r=(r<<5|r>>>27)+n|0)&i|n&~i)+t[14]-0x3cc8f82a|0,i+=((o=(o<<9|o>>>23)+r|0)&n|r&~n)+t[3]-0xb2af279|0,n+=((i=(i<<14|i>>>18)+o|0)&r|o&~r)+t[8]+0x455a14ed|0,r+=((n=(n<<20|n>>>12)+i|0)&o|i&~o)+t[13]-0x561c16fb|0,o+=((r=(r<<5|r>>>27)+n|0)&i|n&~i)+t[2]-0x3105c08|0,i+=((o=(o<<9|o>>>23)+r|0)&n|r&~n)+t[7]+0x676f02d9|0,n+=((i=(i<<14|i>>>18)+o|0)&r|o&~r)+t[12]-0x72d5b376|0,r+=((n=(n<<20|n>>>12)+i|0)^i^o)+t[5]-378558|0,o+=((r=(r<<4|r>>>28)+n|0)^n^i)+t[8]-0x788e097f|0,i+=((o=(o<<11|o>>>21)+r|0)^r^n)+t[11]+0x6d9d6122|0,n+=((i=(i<<16|i>>>16)+o|0)^o^r)+t[14]-0x21ac7f4|0,r+=((n=(n<<23|n>>>9)+i|0)^i^o)+t[1]-0x5b4115bc|0,o+=((r=(r<<4|r>>>28)+n|0)^n^i)+t[4]+0x4bdecfa9|0,i+=((o=(o<<11|o>>>21)+r|0)^r^n)+t[7]-0x944b4a0|0,n+=((i=(i<<16|i>>>16)+o|0)^o^r)+t[10]-0x41404390|0,r+=((n=(n<<23|n>>>9)+i|0)^i^o)+t[13]+0x289b7ec6|0,o+=((r=(r<<4|r>>>28)+n|0)^n^i)+t[0]-0x155ed806|0,i+=((o=(o<<11|o>>>21)+r|0)^r^n)+t[3]-0x2b10cf7b|0,n+=((i=(i<<16|i>>>16)+o|0)^o^r)+t[6]+0x4881d05|0,r+=((n=(n<<23|n>>>9)+i|0)^i^o)+t[9]-0x262b2fc7|0,o+=((r=(r<<4|r>>>28)+n|0)^n^i)+t[12]-0x1924661b|0,i+=((o=(o<<11|o>>>21)+r|0)^r^n)+t[15]+0x1fa27cf8|0,n+=((i=(i<<16|i>>>16)+o|0)^o^r)+t[2]-0x3b53a99b|0,n=(n<<23|n>>>9)+i|0,r+=(i^(n|~o))+t[0]-0xbd6ddbc|0,r=(r<<6|r>>>26)+n|0,o+=(n^(r|~i))+t[7]+0x432aff97|0,o=(o<<10|o>>>22)+r|0,i+=(r^(o|~n))+t[14]-0x546bdc59|0,i=(i<<15|i>>>17)+o|0,n+=(o^(i|~r))+t[5]-0x36c5fc7|0,n=(n<<21|n>>>11)+i|0,r+=(i^(n|~o))+t[12]+0x655b59c3|0,r=(r<<6|r>>>26)+n|0,o+=(n^(r|~i))+t[3]-0x70f3336e|0,o=(o<<10|o>>>22)+r|0,i+=(r^(o|~n))+t[10]-1051523|0,i=(i<<15|i>>>17)+o|0,n+=(o^(i|~r))+t[1]-0x7a7ba22f|0,n=(n<<21|n>>>11)+i|0,r+=(i^(n|~o))+t[8]+0x6fa87e4f|0,r=(r<<6|r>>>26)+n|0,o+=(n^(r|~i))+t[15]-0x1d31920|0,o=(o<<10|o>>>22)+r|0,i+=(r^(o|~n))+t[6]-0x5cfebcec|0,i=(i<<15|i>>>17)+o|0,n+=(o^(i|~r))+t[13]+0x4e0811a1|0,n=(n<<21|n>>>11)+i|0,r+=(i^(n|~o))+t[4]-0x8ac817e|0,r=(r<<6|r>>>26)+n|0,o+=(n^(r|~i))+t[11]-0x42c50dcb|0,o=(o<<10|o>>>22)+r|0,i+=(r^(o|~n))+t[2]+0x2ad7d2bb|0,i=(i<<15|i>>>17)+o|0,n+=(o^(i|~r))+t[9]-0x14792c6f|0,n=(n<<21|n>>>11)+i|0,e[0]=r+e[0]|0,e[1]=n+e[1]|0,e[2]=i+e[2]|0,e[3]=o+e[3]|0}function n(e){var t,r=[];for(t=0;t<64;t+=4)r[t>>2]=e.charCodeAt(t)+(e.charCodeAt(t+1)<<8)+(e.charCodeAt(t+2)<<16)+(e.charCodeAt(t+3)<<24);return r}function i(e){var t,r=[];for(t=0;t<64;t+=4)r[t>>2]=e[t]+(e[t+1]<<8)+(e[t+2]<<16)+(e[t+3]<<24);return r}function o(e){var t,i,o,s,a,l,u=e.length,h=[0x67452301,-0x10325477,-0x67452302,0x10325476];for(t=64;t<=u;t+=64)r(h,n(e.substring(t-64,t)));for(i=(e=e.substring(t-64)).length,o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],t=0;t>2]|=e.charCodeAt(t)<<(t%4<<3);if(o[t>>2]|=128<<(t%4<<3),t>55)for(r(h,o),t=0;t<16;t+=1)o[t]=0;return a=parseInt((s=(s=8*u).toString(16).match(/(.*?)(.{0,8})$/))[2],16),l=parseInt(s[1],16)||0,o[14]=a,o[15]=l,r(h,o),h}function s(e){var r;for(r=0;r>8*r+4&15]+t[e>>8*r&15];return n}(e[r]);return e.join("")}function a(e){return/[\u0080-\uFFFF]/.test(e)&&(e=unescape(encodeURIComponent(e))),e}function l(e){var t,r=[],n=e.length;for(t=0;tu)?new ArrayBuffer(0):(o=new Uint8Array(i=new ArrayBuffer(n=u-l)),s=new Uint8Array(this,l,n),o.set(s),i)}}(),u.prototype.append=function(e){return this.appendBinary(a(e)),this},u.prototype.appendBinary=function(e){this._buff+=e,this._length+=e.length;var t,i=this._buff.length;for(t=64;t<=i;t+=64)r(this._hash,n(this._buff.substring(t-64,t)));return this._buff=this._buff.substring(t-64),this},u.prototype.end=function(e){var t,r,n=this._buff,i=n.length,o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(t=0;t>2]|=n.charCodeAt(t)<<(t%4<<3);return this._finish(o,i),r=s(this._hash),e&&(r=l(r)),this.reset(),r},u.prototype.reset=function(){return this._buff="",this._length=0,this._hash=[0x67452301,-0x10325477,-0x67452302,0x10325476],this},u.prototype.getState=function(){return{buff:this._buff,length:this._length,hash:this._hash.slice()}},u.prototype.setState=function(e){return this._buff=e.buff,this._length=e.length,this._hash=e.hash,this},u.prototype.destroy=function(){delete this._hash,delete this._buff,delete this._length},u.prototype._finish=function(e,t){var n,i,o,s=t;if(e[s>>2]|=128<<(s%4<<3),s>55)for(r(this._hash,e),s=0;s<16;s+=1)e[s]=0;i=parseInt((n=(n=8*this._length).toString(16).match(/(.*?)(.{0,8})$/))[2],16),o=parseInt(n[1],16)||0,e[14]=i,e[15]=o,r(this._hash,e)},u.hash=function(e,t){return u.hashBinary(a(e),t)},u.hashBinary=function(e,t){var r=s(o(e));return t?l(r):r},u.ArrayBuffer=function(){this.reset()},u.ArrayBuffer.prototype.append=function(e){var t,n,o,s=(t=this._buff.buffer,(n=new Uint8Array(t.byteLength+e.byteLength)).set(new Uint8Array(t)),n.set(new Uint8Array(e),t.byteLength),n),a=s.length;for(this._length+=e.byteLength,o=64;o<=a;o+=64)r(this._hash,i(s.subarray(o-64,o)));return this._buff=new Uint8Array(o-64>2]|=n[t]<<(t%4<<3);return this._finish(o,i),r=s(this._hash),e&&(r=l(r)),this.reset(),r},u.ArrayBuffer.prototype.reset=function(){return this._buff=new Uint8Array(0),this._length=0,this._hash=[0x67452301,-0x10325477,-0x67452302,0x10325476],this},u.ArrayBuffer.prototype.getState=function(){var e,t=u.prototype.getState.call(this);return e=t.buff,t.buff=String.fromCharCode.apply(null,new Uint8Array(e)),t},u.ArrayBuffer.prototype.setState=function(e){return e.buff=function(e,t){var r,n=e.length,i=new ArrayBuffer(n),o=new Uint8Array(i);for(r=0;r>2]|=e[t]<<(t%4<<3);if(o[t>>2]|=128<<(t%4<<3),t>55)for(r(h,o),t=0;t<16;t+=1)o[t]=0;return a=parseInt((s=(s=8*u).toString(16).match(/(.*?)(.{0,8})$/))[2],16),l=parseInt(s[1],16)||0,o[14]=a,o[15]=l,r(h,o),h}(new Uint8Array(e)));return t?l(n):n},u}()}},t={};function r(n){var i=t[n];if(void 0!==i)return i.exports;var o=t[n]={exports:{}};return e[n](o,o.exports,r),o.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};(()=>{"use strict";r.r(n),r.d(n,{DatadogNodeServerProvider:()=>ep});var e,t,i,o,s,a,l=r("./spark-md5/spark-md5.js"),u=r.n(l);function h(e,t=""){return new(u())().append(t).append(e).end()}function c(e){return h(JSON.stringify({flag:{key:e.flag.key},subject:{id:e.subject.id,attributes:e.subject.attributes}}))}function d(e){return h(JSON.stringify(e))}class f{constructor(e){this.delegate=e}init(){return Promise.resolve()}has(e){return this.get(e)===d(e)}get(e){return this.delegate.get(c(e))}set(e){this.delegate.set(c(e),d(e))}entries(){return this.delegate.entries()}clear(){this.delegate.clear()}}class g{constructor(e){this.capacity=e,this.cache=new Map,this.size=this.cache.size}[(Symbol.toStringTag,Symbol.iterator)](){return this.cache[Symbol.iterator]()}forEach(e){this.cache.forEach(e)}entries(){return this.cache.entries()}clear(){this.cache.clear()}delete(e){return this.cache.delete(e)}keys(){return this.cache.keys()}values(){return this.cache.values()}has(e){return this.cache.has(e)}get(e){if(!this.has(e))return;let t=this.cache.get(e);return void 0!==t&&(this.delete(e),this.cache.set(e,t)),t}set(e,t){if(0===this.capacity)return this;if(this.cache.has(e))this.cache.delete(e);else if(this.cache.size>=this.capacity){let e=this.cache.keys().next().value;e&&this.delete(e)}return this.cache.set(e,t),this}}class v extends f{constructor(e){super(new g(e))}}var p=Object.defineProperty,E=Object.defineProperties,_=Object.getOwnPropertyDescriptors,y=Object.getOwnPropertySymbols,m=Object.prototype.hasOwnProperty,R=Object.prototype.propertyIsEnumerable,b=(e,t,r)=>t in e?p(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,O=(e,t)=>{for(var r in t||(t={}))m.call(t,r)&&b(e,r,t[r]);if(y)for(var r of y(t))R.call(t,r)&&b(e,r,t[r]);return e},A=(e,t,r)=>new Promise((n,i)=>{var o=e=>{try{a(r.next(e))}catch(e){i(e)}},s=e=>{try{a(r.throw(e))}catch(e){i(e)}},a=e=>e.done?n(e.value):Promise.resolve(e.value).then(o,s);a((r=r.apply(e,t)).next())}),x="ERROR",T=((e=T||{}).PROVIDER_NOT_READY="PROVIDER_NOT_READY",e.PROVIDER_FATAL="PROVIDER_FATAL",e.FLAG_NOT_FOUND="FLAG_NOT_FOUND",e.PARSE_ERROR="PARSE_ERROR",e.TYPE_MISMATCH="TYPE_MISMATCH",e.TARGETING_KEY_MISSING="TARGETING_KEY_MISSING",e.INVALID_CONTEXT="INVALID_CONTEXT",e.GENERAL="GENERAL",e),C=class e extends Error{constructor(t,r){super(t),Object.setPrototypeOf(this,e.prototype),this.name="OpenFeatureError",this.cause=null==r?void 0:r.cause}},P=class e extends C{constructor(t,r){super(t,r),Object.setPrototypeOf(this,e.prototype),this.name="FlagNotFoundError",this.code="FLAG_NOT_FOUND"}},N=class e extends C{constructor(t,r){super(t,r),Object.setPrototypeOf(this,e.prototype),this.name="GeneralError",this.code="GENERAL"}},I=class e extends C{constructor(t,r){super(t,r),Object.setPrototypeOf(this,e.prototype),this.name="InvalidContextError",this.code="INVALID_CONTEXT"}},S=class e extends C{constructor(t,r){super(t,r),Object.setPrototypeOf(this,e.prototype),this.name="ParseError",this.code="PARSE_ERROR"}},w=class e extends C{constructor(t,r){super(t,r),Object.setPrototypeOf(this,e.prototype),this.name="ProviderFatalError",this.code="PROVIDER_FATAL"}},D=class e extends C{constructor(t,r){super(t,r),Object.setPrototypeOf(this,e.prototype),this.name="ProviderNotReadyError",this.code="PROVIDER_NOT_READY"}},k=class e extends C{constructor(t,r){super(t,r),Object.setPrototypeOf(this,e.prototype),this.name="TargetingKeyMissingError",this.code="TARGETING_KEY_MISSING"}},L=class e extends C{constructor(t,r){super(t,r),Object.setPrototypeOf(this,e.prototype),this.name="TypeMismatchError",this.code="TYPE_MISMATCH"}},H=((t=H||{}).NOT_READY="NOT_READY",t.READY="READY",t.ERROR="ERROR",t.STALE="STALE",t.FATAL="FATAL",t),j=((i=j||{}).Ready="PROVIDER_READY",i.Error="PROVIDER_ERROR",i.ConfigurationChanged="PROVIDER_CONFIGURATION_CHANGED",i.Stale="PROVIDER_STALE",i),M=((o=M||{}).Ready="PROVIDER_READY",o.Error="PROVIDER_ERROR",o.ConfigurationChanged="PROVIDER_CONFIGURATION_CHANGED",o.ContextChanged="PROVIDER_CONTEXT_CHANGED",o.Reconciling="PROVIDER_RECONCILING",o.Stale="PROVIDER_STALE",o),G={READY:"PROVIDER_READY",ERROR:"PROVIDER_ERROR",FATAL:"PROVIDER_ERROR",STALE:"PROVIDER_STALE",RECONCILING:"PROVIDER_RECONCILING",NOT_READY:void 0},V=(e,t)=>!t&&"PROVIDER_READY"===e||G[t]===e,F=class{error(...e){console.error(...e)}warn(...e){console.warn(...e)}info(){}debug(){}},Y=["error","warn","info","debug"],U=class{constructor(e){this.fallbackLogger=new F;try{for(const t of Y)if(!e[t]||"function"!=typeof e[t])throw Error(`The provided logger is missing the ${t} method.`);this.logger=e}catch(e){console.error(e),console.error("Falling back to the default logger."),this.logger=this.fallbackLogger}}error(...e){this.log("error",...e)}warn(...e){this.log("warn",...e)}info(...e){this.log("info",...e)}debug(...e){this.log("debug",...e)}log(e,...t){try{this.logger[e](...t)}catch(r){this.fallbackLogger[e](...t)}}},K=class{constructor(e){this.globalLogger=e,this._handlers={PROVIDER_CONFIGURATION_CHANGED:new WeakMap,PROVIDER_CONTEXT_CHANGED:new WeakMap,PROVIDER_READY:new WeakMap,PROVIDER_ERROR:new WeakMap,PROVIDER_STALE:new WeakMap,PROVIDER_RECONCILING:new WeakMap}}emit(e,t){this.eventEmitter.emit(e,t)}addHandler(e,t){let r=e=>A(this,null,function*(){var r;try{yield t(e)}catch(e){null==(r=this._logger)||r.error("Error running event handler:",e)}}),n=this._handlers[e].get(t);this._handlers[e].set(t,[...n||[],r]),this.eventEmitter.on(e,r)}removeHandler(e,t){let r=this._handlers[e].get(t);if(r){let t=r.pop();t&&this.eventEmitter.removeListener(e,t)}}removeAllHandlers(e){e?this.eventEmitter.removeAllListeners(e):this.eventEmitter.removeAllListeners()}getHandlers(e){return this.eventEmitter.listeners(e)}setLogger(e){return this._eventLogger=new U(e),this}get _logger(){var e,t;return null!=(t=this._eventLogger)?t:null==(e=this.globalLogger)?void 0:e.call(this)}};function B(e){return"string"==typeof e?e:void 0}function $(e){return"object"==typeof e?e:void 0}function z(e){return null!=e}var W=class{constructor(e,t,r){var n,i,o;this._provider=e,this._status=t,this._pendingContextChanges=0,null==(n=e.events)||n.addHandler("PROVIDER_READY",()=>{this._status=r.READY}),null==(i=e.events)||i.addHandler("PROVIDER_STALE",()=>{this._status=r.STALE}),null==(o=e.events)||o.addHandler("PROVIDER_ERROR",e=>{(null==e?void 0:e.errorCode)==="PROVIDER_FATAL"?this._status=r.FATAL:this._status=r.ERROR})}get provider(){return this._provider}set provider(e){this._provider=e}get status(){return this._status}set status(e){this._status=e}get allContextChangesSettled(){return 0===this._pendingContextChanges}incrementPendingContextChanges(){this._pendingContextChanges++}decrementPendingContextChanges(){this._pendingContextChanges--}},X=class{constructor(e){this._hooks=[],this._context={},this._logger=new F,this._clientEventHandlers=new Map,this._domainScopedContext=new Map,this._clientEvents=new Map,this._runsOn=e}addHooks(...e){return this._hooks=[...this._hooks,...e],this}getHooks(){return this._hooks}clearHooks(){return this._hooks=[],this}setLogger(e){return this._logger=new U(e),this}get providerMetadata(){return this.getProviderMetadata()}getProviderMetadata(e){return this.getProviderForClient(e).metadata}addHandler(e,t,r){[...new Map([[void 0,this._defaultProvider]]),...this._domainScopedProviders].forEach(r=>{var n;let i=r[0],o=r[1].provider;if(V(e,r[1].status))try{t({domain:i,providerName:o.metadata.name})}catch(e){null==(n=this._logger)||n.error("Error running event handler:",e)}}),this._apiEmitter.addHandler(e,t),(null==r?void 0:r.signal)&&"function"==typeof r.signal.addEventListener&&r.signal.addEventListener("abort",()=>{this.removeHandler(e,t)})}removeHandler(e,t){this._apiEmitter.removeHandler(e,t)}clearHandlers(){this._apiEmitter.removeAllHandlers()}getHandlers(e){return this._apiEmitter.getHandlers(e)}setAwaitableProvider(e,t){var r,n,i,o,s,a,l,u;let h,c=B(e),d=null!=(r=$(e))?r:$(t);if(!d)return void this._logger.debug("No provider defined, ignoring setProvider call");let f=this.getProviderForClient(c),g=d.metadata.name;if(f===d)return void this._logger.debug("Provider is already set, ignoring setProvider call");if(d.runsOn){if(d.runsOn!==this._runsOn)throw new N(`Provider '${d.metadata.name}' is intended for use on the ${d.runsOn}.`)}else this._logger.debug(`Provider '${d.metadata.name}' has not defined its intended use.`);let v=this.getAssociatedEventEmitters(c),p=new W(d,this._statusEnumType.NOT_READY,this._statusEnumType);return"function"!=typeof d.initialize||this.allProviders.includes(d)?(p.status=this._statusEnumType.READY,v.forEach(e=>{null==e||e.emit("PROVIDER_READY",{clientName:c,domain:c,providerName:g})}),null==(a=this._apiEmitter)||a.emit("PROVIDER_READY",{clientName:c,domain:c,providerName:g})):h=null==(s=null==(o=null==(i=d.initialize)?void 0:i.call(d,c&&null!=(n=this._domainScopedContext.get(c))?n:this._context))?void 0:o.then(()=>{var e;p.status=this._statusEnumType.READY,this.getAssociatedEventEmitters(c).forEach(e=>{null==e||e.emit("PROVIDER_READY",{clientName:c,domain:c,providerName:g})}),null==(e=this._apiEmitter)||e.emit("PROVIDER_READY",{clientName:c,domain:c,providerName:g})}))?void 0:s.catch(e=>{var t;throw(null==e?void 0:e.code)==="PROVIDER_FATAL"?p.status=this._statusEnumType.FATAL:p.status=this._statusEnumType.ERROR,this.getAssociatedEventEmitters(c).forEach(t=>{null==t||t.emit("PROVIDER_ERROR",{clientName:c,domain:c,providerName:g,message:null==e?void 0:e.message})}),null==(t=this._apiEmitter)||t.emit("PROVIDER_ERROR",{clientName:c,domain:c,providerName:g,message:null==e?void 0:e.message}),e}),c?this._domainScopedProviders.set(c,p):this._defaultProvider=p,this.transferListeners(f,d,c,v),this.allProviders.includes(f)||null==(u=null==(l=null==f?void 0:f.onClose)?void 0:l.call(f))||u.catch(e=>{this._logger.error(`error closing provider: ${null==e?void 0:e.message}, ${null==e?void 0:e.stack}`)}),h}getProviderForClient(e){var t,r;return e&&null!=(r=null==(t=this._domainScopedProviders.get(e))?void 0:t.provider)?r:this._defaultProvider.provider}buildAndCacheEventEmitterForClient(e){let t=this._clientEvents.get(e);if(t)return t;let r=this._createEventEmitter();this._clientEvents.set(e,r);let n=this.getProviderForClient(e);return Object.values(M).forEach(t=>{var i;return null==(i=n.events)?void 0:i.addHandler(t,i=>A(this,null,function*(){r.emit(t,E(O({},i),_({clientName:e,domain:e,providerName:n.metadata.name})))}))}),r}getUnboundEmitters(){let e=[...this._domainScopedProviders.keys()];return[...[...this._clientEvents.keys()].filter(z).filter(t=>!e.includes(t)).map(e=>this._clientEvents.get(e)),this._clientEvents.get(void 0)].filter(z)}getAssociatedEventEmitters(e){return e?[this.buildAndCacheEventEmitterForClient(e)]:this.getUnboundEmitters()}transferListeners(e,t,r,n){var i;null==(i=this._clientEventHandlers.get(r))||i.forEach(t=>{var r;return null==(r=e.events)?void 0:r.removeHandler(...t)});let o=Object.values(M).map(e=>{let i=i=>A(this,null,function*(){n.forEach(n=>{null==n||n.emit(e,E(O({},i),_({clientName:r,domain:r,providerName:t.metadata.name})))}),this._apiEmitter.emit(e,E(O({},i),_({clientName:r,domain:r,providerName:t.metadata.name})))});return[e,i]});this._clientEventHandlers.set(r,o),o.forEach(e=>{var r;return null==(r=t.events)?void 0:r.addHandler(...e)})}close(){return A(this,null,function*(){var e,t;try{yield null==(t=null==(e=this==null?void 0:this._defaultProvider.provider)?void 0:e.onClose)?void 0:t.call(e)}catch(e){this.handleShutdownError(this._defaultProvider.provider,e)}let r=Array.from(this._domainScopedProviders);yield Promise.all(r.map(e=>A(this,[e],function*([,e]){var t,r;try{yield null==(r=null==e?void 0:(t=e.provider).onClose)?void 0:r.call(t)}catch(t){this.handleShutdownError(null==e?void 0:e.provider,t)}})))})}clearProvidersAndSetDefault(e){return A(this,null,function*(){try{yield this.close()}catch(e){this._logger.error("Unable to cleanly close providers. Resetting to the default configuration.")}finally{this._domainScopedProviders.clear(),this._defaultProvider=new W(e,this._statusEnumType.NOT_READY,this._statusEnumType)}})}get allProviders(){return[...[...this._domainScopedProviders.values()].map(e=>e.provider),this._defaultProvider.provider]}handleShutdownError(e,t){this._logger.error(`Error during shutdown of provider ${e.metadata.name}: ${t}`),this._logger.error(null==t?void 0:t.stack)}};let J=require("node:events");require("async_hooks");var q=Object.defineProperty,Q=Object.defineProperties,Z=Object.getOwnPropertyDescriptors,ee=Object.getOwnPropertySymbols,et=Object.prototype.hasOwnProperty,er=Object.prototype.propertyIsEnumerable,en=(e,t,r)=>t in e?q(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,ei=(e,t)=>{for(var r in t||(t={}))et.call(t,r)&&en(e,r,t[r]);if(ee)for(var r of ee(t))er.call(t,r)&&en(e,r,t[r]);return e},eo=(e,t,r)=>new Promise((n,i)=>{var o=e=>{try{a(r.next(e))}catch(e){i(e)}},s=e=>{try{a(r.throw(e))}catch(e){i(e)}},a=e=>e.done?n(e.value):Promise.resolve(e.value).then(o,s);a((r=r.apply(e,t)).next())}),es=new class{constructor(){this.metadata={name:"No-op Provider"}}resolveBooleanEvaluation(e,t){return this.noOp(t)}resolveStringEvaluation(e,t){return this.noOp(t)}resolveNumberEvaluation(e,t){return this.noOp(t)}resolveObjectEvaluation(e,t){return this.noOp(t)}noOp(e){return Promise.resolve({value:e,reason:"No-op"})}},ea=class{constructor(e,t,r,n,i,o,s,a,l={}){this.providerAccessor=e,this.providerStatusAccessor=t,this.emitterAccessor=r,this.apiContextAccessor=n,this.apiHooksAccessor=i,this.transactionContextAccessor=o,this.globalLogger=s,this.options=a,this._hooks=[],this._context=l}get metadata(){var e,t;return{name:null!=(e=this.options.domain)?e:this.options.name,domain:null!=(t=this.options.domain)?t:this.options.name,version:this.options.version,providerMetadata:this.providerAccessor().metadata}}get providerStatus(){return this.providerStatusAccessor()}addHandler(e,t,r){var n;if(this.emitterAccessor().addHandler(e,t),V(e,this._providerStatus))try{t({clientName:this.metadata.name,domain:this.metadata.domain,providerName:this._provider.metadata.name})}catch(e){null==(n=this._logger)||n.error("Error running event handler:",e)}(null==r?void 0:r.signal)&&"function"==typeof r.signal.addEventListener&&r.signal.addEventListener("abort",()=>{this.removeHandler(e,t)})}removeHandler(e,t){this.emitterAccessor().removeHandler(e,t)}getHandlers(e){return this.emitterAccessor().getHandlers(e)}setLogger(e){return this._clientLogger=new U(e),this}setContext(e){return this._context=e,this}getContext(){return this._context}addHooks(...e){return this._hooks=[...this._hooks,...e],this}getHooks(){return this._hooks}clearHooks(){return this._hooks=[],this}getBooleanValue(e,t,r,n){return eo(this,null,function*(){return(yield this.getBooleanDetails(e,t,r,n)).value})}getBooleanDetails(e,t,r,n){return this.evaluate(e,this._provider.resolveBooleanEvaluation,t,"boolean",r,n)}getStringValue(e,t,r,n){return eo(this,null,function*(){return(yield this.getStringDetails(e,t,r,n)).value})}getStringDetails(e,t,r,n){return this.evaluate(e,this._provider.resolveStringEvaluation,t,"string",r,n)}getNumberValue(e,t,r,n){return eo(this,null,function*(){return(yield this.getNumberDetails(e,t,r,n)).value})}getNumberDetails(e,t,r,n){return this.evaluate(e,this._provider.resolveNumberEvaluation,t,"number",r,n)}getObjectValue(e,t,r,n){return eo(this,null,function*(){return(yield this.getObjectDetails(e,t,r,n)).value})}getObjectDetails(e,t,r,n){return this.evaluate(e,this._provider.resolveObjectEvaluation,t,"object",r,n)}track(e,t={},r={}){var n,i;try{if(this.shortCircuitIfNotReady(),"function"==typeof this._provider.track){let o=Object.freeze(this.mergeContexts(t));return null==(i=(n=this._provider).track)?void 0:i.call(n,e,o,r)}this._logger.debug("Provider does not support the track function; will no-op.")}catch(e){this._logger.debug("Error recording tracking event.",e)}}evaluate(e,t,r,n){return eo(this,arguments,function*(e,t,r,n,i={},o={}){var s;let a,l=[...this.apiHooksAccessor(),...this.getHooks(),...o.hooks||[],...this._provider.hooks||[]],u=[...l].reverse(),h=this.mergeContexts(i),c={flagKey:e,defaultValue:r,flagValueType:n,clientMetadata:this.metadata,providerMetadata:this._provider.metadata,context:h,logger:this._logger};try{let n,i,h=yield this.beforeHooks(l,c,o);this.shortCircuitIfNotReady();let d=yield t.call(this._provider,e,r,h,this._logger),f=(n=ei({},d),i={flagMetadata:Object.freeze(null!=(s=d.flagMetadata)?s:{}),flagKey:e},Q(n,Z(i)));if(f.errorCode){let t=((e,t)=>{switch(e){case"FLAG_NOT_FOUND":return new P(t);case"PARSE_ERROR":return new S(t);case"TYPE_MISMATCH":return new L(t);case"TARGETING_KEY_MISSING":return new k(t);case"INVALID_CONTEXT":return new I(t);case"PROVIDER_NOT_READY":return new D(t);case"PROVIDER_FATAL":return new w(t);default:return new N(t)}})(f.errorCode,f.errorMessage);yield this.errorHooks(u,c,t,o),a=this.getErrorEvaluationDetails(e,r,t,f.flagMetadata)}else yield this.afterHooks(u,c,f,o),a=f}catch(t){yield this.errorHooks(u,c,t,o),a=this.getErrorEvaluationDetails(e,r,t)}return yield this.finallyHooks(u,c,a,o),a})}beforeHooks(e,t,r){return eo(this,null,function*(){var n;for(let i of e)Object.freeze(t),Object.assign(t.context,ei(ei({},t.context),(yield null==(n=null==i?void 0:i.before)?void 0:n.call(i,t,Object.freeze(r.hookHints)))));return Object.freeze(t.context)})}afterHooks(e,t,r,n){return eo(this,null,function*(){var i;for(let o of e)yield null==(i=null==o?void 0:o.after)?void 0:i.call(o,t,r,n.hookHints)})}errorHooks(e,t,r,n){return eo(this,null,function*(){var i;for(let o of e)try{yield null==(i=null==o?void 0:o.error)?void 0:i.call(o,t,r,n.hookHints)}catch(e){this._logger.error(`Unhandled error during 'error' hook: ${e}`),e instanceof Error&&this._logger.error(e.stack),this._logger.error(null==e?void 0:e.stack)}})}finallyHooks(e,t,r,n){return eo(this,null,function*(){var i;for(let o of e)try{yield null==(i=null==o?void 0:o.finally)?void 0:i.call(o,t,r,n.hookHints)}catch(e){this._logger.error(`Unhandled error during 'finally' hook: ${e}`),e instanceof Error&&this._logger.error(e.stack),this._logger.error(null==e?void 0:e.stack)}})}get _provider(){return this.providerAccessor()}get _providerStatus(){return this.providerStatusAccessor()}get _logger(){return this._clientLogger||this.globalLogger()}mergeContexts(e){return ei(ei(ei(ei({},this.apiContextAccessor()),this.transactionContextAccessor()),this._context),e)}shortCircuitIfNotReady(){if(this.providerStatus===H.NOT_READY)throw new D("provider has not yet initialized");if(this.providerStatus===H.FATAL)throw new w("provider is in an irrecoverable error state")}getErrorEvaluationDetails(e,t,r,n={}){let i=null==r?void 0:r.message;return{errorCode:(null==r?void 0:r.code)||T.GENERAL,errorMessage:i,value:t,reason:x,flagMetadata:Object.freeze(n),flagKey:e}}},el=class extends K{constructor(){super(),this.eventEmitter=new J.EventEmitter({captureRejections:!0}),this.eventEmitter.on("error",e=>{var t;null==(t=this._logger)||t.error("Error running event handler:",e)})}},eu=new class{getTransactionContext(){return{}}setTransactionContext(e,t,...r){t(...r)}},eh=Symbol.for("@openfeature/js-sdk/api"),ec=globalThis;(class e extends X{constructor(){super("server"),this._statusEnumType=H,this._apiEmitter=new el,this._defaultProvider=new W(es,H.NOT_READY,this._statusEnumType),this._domainScopedProviders=new Map,this._createEventEmitter=()=>new el,this._transactionContextPropagator=eu}static getInstance(){let t=ec[eh];if(t)return t;let r=new e;return ec[eh]=r,r}getProviderStatus(e){var t,r;return e&&null!=(r=null==(t=this._domainScopedProviders.get(e))?void 0:t.status)?r:this._defaultProvider.status}setProviderAndWait(e,t){return eo(this,null,function*(){let r=B(e),n=r?$(t):$(e);yield this.setAwaitableProvider(r,n)})}setProvider(e,t){let r=B(e),n=r?$(t):$(e);return Promise.resolve(this.setAwaitableProvider(r,n)).catch(e=>{this._logger.error("Error during provider initialization:",e)}),this}getProvider(e){return this.getProviderForClient(e)}setContext(e){return this._context=e,this}getContext(){return this._context}getClient(e,t,r){var n,i;let o=B(e);return new ea(()=>this.getProviderForClient(o),()=>this.getProviderStatus(o),()=>this.buildAndCacheEventEmitterForClient(o),()=>this.getContext(),()=>this.getHooks(),()=>this.getTransactionContext(),()=>this._logger,{domain:o,version:B(t)},null!=(i=null!=(n=$(e))?n:$(t))?i:$(r))}clearProviders(){return super.clearProvidersAndSetDefault(es)}setTransactionContextPropagator(e){let t="Invalid TransactionContextPropagator, will not be set: ";return"function"!=typeof(null==e?void 0:e.getTransactionContext)?this._logger.error(`${t}: getTransactionContext is not a function.`):"function"!=typeof(null==e?void 0:e.setTransactionContext)?this._logger.error(`${t}: setTransactionContext is not a function.`):this._transactionContextPropagator=e,this}setTransactionContext(e,t,...r){this._transactionContextPropagator.setTransactionContext(e,t,...r)}getTransactionContext(){try{return this._transactionContextPropagator.getTransactionContext()}catch(e){return this._logger.error(`Error getting transaction context: ${null==e?void 0:e.message}, returning empty context.`),this._logger.error(null==e?void 0:e.stack),{}}}}).getInstance(),(s=a||(a={})).MATCHES="MATCHES",s.NOT_MATCHES="NOT_MATCHES",s.GTE="GTE",s.GT="GT",s.LTE="LTE",s.LT="LT",s.ONE_OF="ONE_OF",s.NOT_ONE_OF="NOT_ONE_OF",s.IS_NULL="IS_NULL";class ed{}class ef extends ed{getShard(e,t){return parseInt(h(e).slice(0,8),16)%t}}function eg(e,t,r,n,i,o){if(!e)return{value:n,reason:"ERROR",errorCode:T.PROVIDER_NOT_READY};let{targetingKey:s,...l}=i;if(!s)return{value:n,reason:"ERROR",errorCode:T.TARGETING_KEY_MISSING};let u={id:s,...l};try{return function(e,t,r,n,i,o){if(!(null==e?void 0:e.enabled))return o.debug("returning default assignment because flag is disabled",{flagKey:e?e.key:"undefined",subjectKey:r}),{value:i,reason:"DISABLED"};if(!function(e,t){if("boolean"===e)return"BOOLEAN"===t;if("string"===e)return"STRING"===t;if("number"===e)return"INTEGER"===t||"NUMERIC"===t;if("object"===e)return"JSON"===t;throw Error(`Invalid expected type: ${e}`)}(t,e.variationType))return o.debug("variant value type mismatch, returning default value",{flagKey:e.key,subjectKey:r,expectedType:t,variantType:e.variationType}),{value:i,reason:x,errorCode:T.TYPE_MISMATCH};let s=new Date;for(let t of e.allocations){if(t.startAt&&s=new Date(t.endAt)){o.debug("allocation after end date",{flagKey:e.key,subjectKey:r,allocationKey:t.key,endAt:t.endAt});continue}if(!function(e,t,r){return null==e||!e.length||(r.debug("evaluating rules",{rules:JSON.stringify(e),subjectAttributes:t}),e.some(e=>!(function(e,t){return t.map(t=>(function(e,t){var r,n,i;let o=e[t.attribute];if(t.operator===a.IS_NULL)return t.value?null==o:null!=o;if(null!=o)switch(t.operator){case a.GTE:case a.GT:case a.LTE:case a.LT:return r=o,n=t.value,((e,r)=>t.operator===a.GTE?e>=r:t.operator===a.GT?e>r:t.operator===a.LTE?e<=r:e{let o=function(e,t,r){var n,i;let o=new ef().getShard((n=e.salt,i=t,`${n}-${i}`),e.totalShards);return e.ranges.some(e=>{var t,r;return t=o,(r=e).start<=t&&t{this.resolve=()=>{this.cleanup(),e()},this.reject=e=>{this.cleanup(),t(e)}}),new Promise(()=>{this.timeoutId=setTimeout(()=>{t()},e)})])}async wait(){try{await this.promise}finally{this.cleanup()}}complete(){this.resolve&&this.resolve()}fail(e){this.reject&&this.reject(e)}isInitializing(){return void 0!==this.resolve}cleanup(){this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=void 0),this.resolve=void 0,this.reject=void 0}}class ep{constructor(e){this.options=e,this.metadata={name:"datadog-node-server"},this.runsOn="server",this.hooks=[],this.events=new el,this.exposureCache=new v(5e4)}getConfiguration(){return this.configuration}setConfiguration(e){var t,r,n;let i=null==(t=this.configuration)?void 0:t.createdAt,o=!!this.configuration;if(o&&this.configuration!==e){this.events.emit(j.ConfigurationChanged),i!==(null==e?void 0:e.createdAt)&&(null==(r=this.exposureCache)||r.clear()),this.configuration=e;return}this.configuration=e,(null==(n=this.initController)?void 0:n.isInitializing())?this.initController.complete():o||this.events.emit(j.Ready)}setError(e){var t;(null==(t=this.initController)?void 0:t.isInitializing())?this.initController.fail(e):this.events.emit(j.Error,{error:e})}async initialize(){var e,t;if(this.configuration)return;let r=null!=(e=this.options.initializationTimeoutMs)?e:3e4;this.initController=new ev(r,()=>this.setError(Error(`Initialization timeout after ${r}ms`))),await this.initController.wait(),await (null==(t=this.exposureCache)?void 0:t.init())}async resolveBooleanEvaluation(e,t,r,n){let i=eg(this.configuration,"boolean",e,t,r,n);return this.handleExposure(e,r,i),i}async resolveStringEvaluation(e,t,r,n){let i=eg(this.configuration,"string",e,t,r,n);return this.handleExposure(e,r,i),i}async resolveNumberEvaluation(e,t,r,n){let i=eg(this.configuration,"number",e,t,r,n);return this.handleExposure(e,r,i),i}async resolveObjectEvaluation(e,t,r,n){let i=eg(this.configuration,"object",e,t,r,n);return this.handleExposure(e,r,i),i}handleExposure(e,t,r){var n,i,o;let s=Date.now(),a=function(e,t){var r,n;if(!(null==(r=t.flagMetadata)?void 0:r.doLog))return;let i=null==(n=t.flagMetadata)?void 0:n.allocationKey,o=t.variant;if(!i||!o)return;let{targetingKey:s="",...a}=e;return{allocation:{key:i},flag:{key:t.flagKey},variant:{key:o},subject:{id:s,attributes:a}}}(t,{...r,flagKey:e,flagMetadata:null!=(n=r.flagMetadata)?n:{}});!a||(null==(i=this.exposureCache)?void 0:i.has(a))||this.options.exposureChannel.hasSubscribers&&(this.options.exposureChannel.publish({...a,timestamp:s}),null==(o=this.exposureCache)||o.set(a))}}})(),module.exports=n})(); \ No newline at end of file diff --git a/packages/node_modules/@openfeature/core/LICENSE b/packages/node_modules/@openfeature/core/LICENSE deleted file mode 100644 index 261eeb9e9f8..00000000000 --- a/packages/node_modules/@openfeature/core/LICENSE +++ /dev/null @@ -1,201 +0,0 @@ - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "[]" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright [yyyy] [name of copyright owner] - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. diff --git a/packages/node_modules/@openfeature/core/index.js b/packages/node_modules/@openfeature/core/index.js deleted file mode 100644 index 880d90e4780..00000000000 --- a/packages/node_modules/@openfeature/core/index.js +++ /dev/null @@ -1 +0,0 @@ -(()=>{"use strict";var e,t,r,n,i,s={};s.d=(e,t)=>{for(var r in t)s.o(t,r)&&!s.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),s.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};s.r(o),s.d(o,{AllProviderEvents:()=>V,AllProviderStatus:()=>S,ClientProviderEvents:()=>V,ClientProviderStatus:()=>S,DefaultLogger:()=>G,ErrorCode:()=>O,FlagNotFoundError:()=>A,GeneralError:()=>m,GenericEventEmitter:()=>H,InvalidContextError:()=>f,LOG_LEVELS:()=>F,MapHookData:()=>v,OpenFeatureCommonAPI:()=>B,OpenFeatureError:()=>p,ParseError:()=>P,ProviderFatalError:()=>T,ProviderNotReadyError:()=>I,ProviderWrapper:()=>$,SafeLogger:()=>M,ServerProviderEvents:()=>L,ServerProviderStatus:()=>y,StandardResolutionReasons:()=>g,TargetingKeyMissingError:()=>D,TelemetryAttribute:()=>Y,TelemetryFlagMetadata:()=>x,TypeMismatchError:()=>N,createEvaluationEvent:()=>j,instantiateErrorByErrorCode:()=>C,isObject:()=>K,isString:()=>k,objectOrUndefined:()=>W,statusMatchesEvent:()=>w,stringOrUndefined:()=>U});var a=Object.defineProperty,l=Object.defineProperties,d=Object.getOwnPropertyDescriptors,E=Object.getOwnPropertySymbols,u=Object.prototype.hasOwnProperty,h=Object.prototype.propertyIsEnumerable,R=(e,t,r)=>t in e?a(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,c=(e,t)=>{for(var r in t||(t={}))u.call(t,r)&&R(e,r,t[r]);if(E)for(var r of E(t))h.call(t,r)&&R(e,r,t[r]);return e},_=(e,t,r)=>new Promise((n,i)=>{var s=e=>{try{a(r.next(e))}catch(e){i(e)}},o=e=>{try{a(r.throw(e))}catch(e){i(e)}},a=e=>e.done?n(e.value):Promise.resolve(e.value).then(s,o);a((r=r.apply(e,t)).next())}),v=class{constructor(){this.data=new Map}set(e,t){this.data.set(e,t)}get(e){return this.data.get(e)}has(e){return this.data.has(e)}delete(e){return this.data.delete(e)}clear(){this.data.clear()}},g={STATIC:"STATIC",DEFAULT:"DEFAULT",TARGETING_MATCH:"TARGETING_MATCH",SPLIT:"SPLIT",CACHED:"CACHED",DISABLED:"DISABLED",UNKNOWN:"UNKNOWN",STALE:"STALE",ERROR:"ERROR"},O=((e=O||{}).PROVIDER_NOT_READY="PROVIDER_NOT_READY",e.PROVIDER_FATAL="PROVIDER_FATAL",e.FLAG_NOT_FOUND="FLAG_NOT_FOUND",e.PARSE_ERROR="PARSE_ERROR",e.TYPE_MISMATCH="TYPE_MISMATCH",e.TARGETING_KEY_MISSING="TARGETING_KEY_MISSING",e.INVALID_CONTEXT="INVALID_CONTEXT",e.GENERAL="GENERAL",e),p=class e extends Error{constructor(t,r){super(t),Object.setPrototypeOf(this,e.prototype),this.name="OpenFeatureError",this.cause=null==r?void 0:r.cause}},A=class e extends p{constructor(t,r){super(t,r),Object.setPrototypeOf(this,e.prototype),this.name="FlagNotFoundError",this.code="FLAG_NOT_FOUND"}},m=class e extends p{constructor(t,r){super(t,r),Object.setPrototypeOf(this,e.prototype),this.name="GeneralError",this.code="GENERAL"}},f=class e extends p{constructor(t,r){super(t,r),Object.setPrototypeOf(this,e.prototype),this.name="InvalidContextError",this.code="INVALID_CONTEXT"}},P=class e extends p{constructor(t,r){super(t,r),Object.setPrototypeOf(this,e.prototype),this.name="ParseError",this.code="PARSE_ERROR"}},T=class e extends p{constructor(t,r){super(t,r),Object.setPrototypeOf(this,e.prototype),this.name="ProviderFatalError",this.code="PROVIDER_FATAL"}},I=class e extends p{constructor(t,r){super(t,r),Object.setPrototypeOf(this,e.prototype),this.name="ProviderNotReadyError",this.code="PROVIDER_NOT_READY"}},D=class e extends p{constructor(t,r){super(t,r),Object.setPrototypeOf(this,e.prototype),this.name="TargetingKeyMissingError",this.code="TARGETING_KEY_MISSING"}},N=class e extends p{constructor(t,r){super(t,r),Object.setPrototypeOf(this,e.prototype),this.name="TypeMismatchError",this.code="TYPE_MISMATCH"}},C=(e,t)=>{switch(e){case"FLAG_NOT_FOUND":return new A(t);case"PARSE_ERROR":return new P(t);case"TYPE_MISMATCH":return new N(t);case"TARGETING_KEY_MISSING":return new D(t);case"INVALID_CONTEXT":return new f(t);case"PROVIDER_NOT_READY":return new I(t);case"PROVIDER_FATAL":return new T(t);default:return new m(t)}},y=((t=y||{}).NOT_READY="NOT_READY",t.READY="READY",t.ERROR="ERROR",t.STALE="STALE",t.FATAL="FATAL",t),S=((r=S||{}).NOT_READY="NOT_READY",r.READY="READY",r.ERROR="ERROR",r.STALE="STALE",r.FATAL="FATAL",r.RECONCILING="RECONCILING",r),L=((n=L||{}).Ready="PROVIDER_READY",n.Error="PROVIDER_ERROR",n.ConfigurationChanged="PROVIDER_CONFIGURATION_CHANGED",n.Stale="PROVIDER_STALE",n),V=((i=V||{}).Ready="PROVIDER_READY",i.Error="PROVIDER_ERROR",i.ConfigurationChanged="PROVIDER_CONFIGURATION_CHANGED",i.ContextChanged="PROVIDER_CONTEXT_CHANGED",i.Reconciling="PROVIDER_RECONCILING",i.Stale="PROVIDER_STALE",i),b={READY:"PROVIDER_READY",ERROR:"PROVIDER_ERROR",FATAL:"PROVIDER_ERROR",STALE:"PROVIDER_STALE",RECONCILING:"PROVIDER_RECONCILING",NOT_READY:void 0},w=(e,t)=>!t&&"PROVIDER_READY"===e||b[t]===e,G=class{error(...e){console.error(...e)}warn(...e){console.warn(...e)}info(){}debug(){}},F=["error","warn","info","debug"],M=class{constructor(e){this.fallbackLogger=new G;try{for(const t of F)if(!e[t]||"function"!=typeof e[t])throw Error(`The provided logger is missing the ${t} method.`);this.logger=e}catch(e){console.error(e),console.error("Falling back to the default logger."),this.logger=this.fallbackLogger}}error(...e){this.log("error",...e)}warn(...e){this.log("warn",...e)}info(...e){this.log("info",...e)}debug(...e){this.log("debug",...e)}log(e,...t){try{this.logger[e](...t)}catch(r){this.fallbackLogger[e](...t)}}},H=class{constructor(e){this.globalLogger=e,this._handlers={PROVIDER_CONFIGURATION_CHANGED:new WeakMap,PROVIDER_CONTEXT_CHANGED:new WeakMap,PROVIDER_READY:new WeakMap,PROVIDER_ERROR:new WeakMap,PROVIDER_STALE:new WeakMap,PROVIDER_RECONCILING:new WeakMap}}emit(e,t){this.eventEmitter.emit(e,t)}addHandler(e,t){let r=e=>_(this,null,function*(){var r;try{yield t(e)}catch(e){null==(r=this._logger)||r.error("Error running event handler:",e)}}),n=this._handlers[e].get(t);this._handlers[e].set(t,[...n||[],r]),this.eventEmitter.on(e,r)}removeHandler(e,t){let r=this._handlers[e].get(t);if(r){let t=r.pop();t&&this.eventEmitter.removeListener(e,t)}}removeAllHandlers(e){e?this.eventEmitter.removeAllListeners(e):this.eventEmitter.removeAllListeners()}getHandlers(e){return this.eventEmitter.listeners(e)}setLogger(e){return this._eventLogger=new M(e),this}get _logger(){var e,t;return null!=(t=this._eventLogger)?t:null==(e=this.globalLogger)?void 0:e.call(this)}},Y={KEY:"feature_flag.key",ERROR_CODE:"error.type",ERROR_MESSAGE:"error.message",VARIANT:"feature_flag.result.variant",VALUE:"feature_flag.result.value",CONTEXT_ID:"feature_flag.context.id",REASON:"feature_flag.result.reason",PROVIDER:"feature_flag.provider.name",FLAG_SET_ID:"feature_flag.set.id",VERSION:"feature_flag.version"},x={CONTEXT_ID:"contextId",FLAG_SET_ID:"flagSetId",VERSION:"version"};function j(e,t){var r,n,i;let s={[Y.KEY]:e.flagKey,[Y.PROVIDER]:e.providerMetadata.name,[Y.REASON]:(null!=(r=t.reason)?r:g.UNKNOWN).toLowerCase()};if(t.variant&&(s[Y.VARIANT]=t.variant),null!==t.value)if("object"!=typeof t.value)s[Y.VALUE]=t.value;else try{s[Y.VALUE]=JSON.stringify(t.value)}catch(e){}let o=null!=(n=t.flagMetadata[x.CONTEXT_ID])?n:e.context.targetingKey;o&&(s[Y.CONTEXT_ID]=o);let a=t.flagMetadata[x.FLAG_SET_ID];a&&(s[Y.FLAG_SET_ID]=a);let l=t.flagMetadata[x.VERSION];return l&&(s[Y.VERSION]=l),t.reason===g.ERROR&&(s[Y.ERROR_CODE]=(null!=(i=t.errorCode)?i:"GENERAL").toLowerCase(),t.errorMessage&&(s[Y.ERROR_MESSAGE]=t.errorMessage)),{name:"feature_flag.evaluation",attributes:s}}function k(e){return"string"==typeof e}function U(e){return k(e)?e:void 0}function K(e){return"object"==typeof e}function W(e){return K(e)?e:void 0}function X(e){return null!=e}var $=class{constructor(e,t,r){var n,i,s;this._provider=e,this._status=t,this._pendingContextChanges=0,null==(n=e.events)||n.addHandler("PROVIDER_READY",()=>{this._status=r.READY}),null==(i=e.events)||i.addHandler("PROVIDER_STALE",()=>{this._status=r.STALE}),null==(s=e.events)||s.addHandler("PROVIDER_ERROR",e=>{(null==e?void 0:e.errorCode)==="PROVIDER_FATAL"?this._status=r.FATAL:this._status=r.ERROR})}get provider(){return this._provider}set provider(e){this._provider=e}get status(){return this._status}set status(e){this._status=e}get allContextChangesSettled(){return 0===this._pendingContextChanges}incrementPendingContextChanges(){this._pendingContextChanges++}decrementPendingContextChanges(){this._pendingContextChanges--}},B=class{constructor(e){this._hooks=[],this._context={},this._logger=new G,this._clientEventHandlers=new Map,this._domainScopedContext=new Map,this._clientEvents=new Map,this._runsOn=e}addHooks(...e){return this._hooks=[...this._hooks,...e],this}getHooks(){return this._hooks}clearHooks(){return this._hooks=[],this}setLogger(e){return this._logger=new M(e),this}get providerMetadata(){return this.getProviderMetadata()}getProviderMetadata(e){return this.getProviderForClient(e).metadata}addHandler(e,t,r){[...new Map([[void 0,this._defaultProvider]]),...this._domainScopedProviders].forEach(r=>{var n;let i=r[0],s=r[1].provider;if(w(e,r[1].status))try{t({domain:i,providerName:s.metadata.name})}catch(e){null==(n=this._logger)||n.error("Error running event handler:",e)}}),this._apiEmitter.addHandler(e,t),(null==r?void 0:r.signal)&&"function"==typeof r.signal.addEventListener&&r.signal.addEventListener("abort",()=>{this.removeHandler(e,t)})}removeHandler(e,t){this._apiEmitter.removeHandler(e,t)}clearHandlers(){this._apiEmitter.removeAllHandlers()}getHandlers(e){return this._apiEmitter.getHandlers(e)}setAwaitableProvider(e,t){var r,n,i,s,o,a,l,d;let E,u=U(e),h=null!=(r=W(e))?r:W(t);if(!h)return void this._logger.debug("No provider defined, ignoring setProvider call");let R=this.getProviderForClient(u),c=h.metadata.name;if(R===h)return void this._logger.debug("Provider is already set, ignoring setProvider call");if(h.runsOn){if(h.runsOn!==this._runsOn)throw new m(`Provider '${h.metadata.name}' is intended for use on the ${h.runsOn}.`)}else this._logger.debug(`Provider '${h.metadata.name}' has not defined its intended use.`);let _=this.getAssociatedEventEmitters(u),v=new $(h,this._statusEnumType.NOT_READY,this._statusEnumType);return"function"!=typeof h.initialize||this.allProviders.includes(h)?(v.status=this._statusEnumType.READY,_.forEach(e=>{null==e||e.emit("PROVIDER_READY",{clientName:u,domain:u,providerName:c})}),null==(a=this._apiEmitter)||a.emit("PROVIDER_READY",{clientName:u,domain:u,providerName:c})):E=null==(o=null==(s=null==(i=h.initialize)?void 0:i.call(h,u&&null!=(n=this._domainScopedContext.get(u))?n:this._context))?void 0:s.then(()=>{var e;v.status=this._statusEnumType.READY,this.getAssociatedEventEmitters(u).forEach(e=>{null==e||e.emit("PROVIDER_READY",{clientName:u,domain:u,providerName:c})}),null==(e=this._apiEmitter)||e.emit("PROVIDER_READY",{clientName:u,domain:u,providerName:c})}))?void 0:o.catch(e=>{var t;throw(null==e?void 0:e.code)==="PROVIDER_FATAL"?v.status=this._statusEnumType.FATAL:v.status=this._statusEnumType.ERROR,this.getAssociatedEventEmitters(u).forEach(t=>{null==t||t.emit("PROVIDER_ERROR",{clientName:u,domain:u,providerName:c,message:null==e?void 0:e.message})}),null==(t=this._apiEmitter)||t.emit("PROVIDER_ERROR",{clientName:u,domain:u,providerName:c,message:null==e?void 0:e.message}),e}),u?this._domainScopedProviders.set(u,v):this._defaultProvider=v,this.transferListeners(R,h,u,_),this.allProviders.includes(R)||null==(d=null==(l=null==R?void 0:R.onClose)?void 0:l.call(R))||d.catch(e=>{this._logger.error(`error closing provider: ${null==e?void 0:e.message}, ${null==e?void 0:e.stack}`)}),E}getProviderForClient(e){var t,r;return e&&null!=(r=null==(t=this._domainScopedProviders.get(e))?void 0:t.provider)?r:this._defaultProvider.provider}buildAndCacheEventEmitterForClient(e){let t=this._clientEvents.get(e);if(t)return t;let r=this._createEventEmitter();this._clientEvents.set(e,r);let n=this.getProviderForClient(e);return Object.values(V).forEach(t=>{var i;return null==(i=n.events)?void 0:i.addHandler(t,i=>_(this,null,function*(){r.emit(t,l(c({},i),d({clientName:e,domain:e,providerName:n.metadata.name})))}))}),r}getUnboundEmitters(){let e=[...this._domainScopedProviders.keys()];return[...[...this._clientEvents.keys()].filter(X).filter(t=>!e.includes(t)).map(e=>this._clientEvents.get(e)),this._clientEvents.get(void 0)].filter(X)}getAssociatedEventEmitters(e){return e?[this.buildAndCacheEventEmitterForClient(e)]:this.getUnboundEmitters()}transferListeners(e,t,r,n){var i;null==(i=this._clientEventHandlers.get(r))||i.forEach(t=>{var r;return null==(r=e.events)?void 0:r.removeHandler(...t)});let s=Object.values(V).map(e=>{let i=i=>_(this,null,function*(){n.forEach(n=>{null==n||n.emit(e,l(c({},i),d({clientName:r,domain:r,providerName:t.metadata.name})))}),this._apiEmitter.emit(e,l(c({},i),d({clientName:r,domain:r,providerName:t.metadata.name})))});return[e,i]});this._clientEventHandlers.set(r,s),s.forEach(e=>{var r;return null==(r=t.events)?void 0:r.addHandler(...e)})}close(){return _(this,null,function*(){var e,t;try{yield null==(t=null==(e=this==null?void 0:this._defaultProvider.provider)?void 0:e.onClose)?void 0:t.call(e)}catch(e){this.handleShutdownError(this._defaultProvider.provider,e)}let r=Array.from(this._domainScopedProviders);yield Promise.all(r.map(e=>_(this,[e],function*([,e]){var t,r;try{yield null==(r=null==e?void 0:(t=e.provider).onClose)?void 0:r.call(t)}catch(t){this.handleShutdownError(null==e?void 0:e.provider,t)}})))})}clearProvidersAndSetDefault(e){return _(this,null,function*(){try{yield this.close()}catch(e){this._logger.error("Unable to cleanly close providers. Resetting to the default configuration.")}finally{this._domainScopedProviders.clear(),this._defaultProvider=new $(e,this._statusEnumType.NOT_READY,this._statusEnumType)}})}get allProviders(){return[...[...this._domainScopedProviders.values()].map(e=>e.provider),this._defaultProvider.provider]}handleShutdownError(e,t){this._logger.error(`Error during shutdown of provider ${e.metadata.name}: ${t}`),this._logger.error(null==t?void 0:t.stack)}};module.exports=o})(); \ No newline at end of file diff --git a/vendor/package.json b/vendor/package.json index 0c465f3cd96..e96536043d7 100644 --- a/vendor/package.json +++ b/vendor/package.json @@ -7,7 +7,6 @@ "@datadog/openfeature-node-server": "^0.2.0", "@datadog/sketches-js": "2.1.1", "@isaacs/ttlcache": "^2.0.1", - "@openfeature/core": "^1.9.0", "@opentelemetry/core": ">=1.14.0 <1.31.0", "@opentelemetry/resources": ">=1.0.0 <1.31.0", "crypto-randomuuid": "^1.0.0", diff --git a/vendor/yarn.lock b/vendor/yarn.lock index cec19c94122..c3579e49a9f 100644 --- a/vendor/yarn.lock +++ b/vendor/yarn.lock @@ -166,11 +166,6 @@ "@emnapi/runtime" "^1.5.0" "@tybys/wasm-util" "^0.10.1" -"@openfeature/core@^1.9.0": - version "1.9.1" - resolved "https://registry.yarnpkg.com/@openfeature/core/-/core-1.9.1.tgz#9925a04ed0745e92dd7b3793b35cff1ed89d54c1" - integrity sha512-YySPtH4s/rKKnHRU0xyFGrqMU8XA+OIPNWDrlEFxE6DCVWCIrxE5YpiB94YD2jMFn6SSdA0cwQ8vLkCkl8lm8A== - "@openfeature/server-sdk@~1.18.0": version "1.18.0" resolved "https://registry.yarnpkg.com/@openfeature/server-sdk/-/server-sdk-1.18.0.tgz#5fed5f1d0900b2535878db18a78295bbaebb997b" diff --git a/yarn.lock b/yarn.lock index f2b63dcb4c8..7ef12d34ce9 100644 --- a/yarn.lock +++ b/yarn.lock @@ -657,7 +657,7 @@ "@octokit/request-error" "^7.0.0" "@octokit/webhooks-methods" "^6.0.0" -"@openfeature/core@^1.9.0": +"@openfeature/core@^1.8.1": version "1.9.1" resolved "https://registry.yarnpkg.com/@openfeature/core/-/core-1.9.1.tgz#9925a04ed0745e92dd7b3793b35cff1ed89d54c1" integrity sha512-YySPtH4s/rKKnHRU0xyFGrqMU8XA+OIPNWDrlEFxE6DCVWCIrxE5YpiB94YD2jMFn6SSdA0cwQ8vLkCkl8lm8A== @@ -4404,6 +4404,7 @@ streamsearch@^1.1.0: integrity sha512-Mcc5wHehp9aXz1ax6bZUyY5afg9u2rv5cqQI3mRrYkGC8rW2hM02jWuwjtL++LS5qinSyhj2QfLyNsuc+VsExg== "string-width-cjs@npm:string-width@^4.2.0", string-width@^4.0.0, string-width@^4.1.0, string-width@^4.2.0, string-width@^4.2.2, string-width@^4.2.3: + name string-width-cjs version "4.2.3" resolved "https://registry.yarnpkg.com/string-width/-/string-width-4.2.3.tgz#269c7117d27b05ad2e536830a8ec895ef9c6d010" integrity sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g== @@ -4468,6 +4469,7 @@ string_decoder@~1.1.1: safe-buffer "~5.1.0" "strip-ansi-cjs@npm:strip-ansi@^6.0.1", strip-ansi@^6.0.0, strip-ansi@^6.0.1: + name strip-ansi-cjs version "6.0.1" resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-6.0.1.tgz#9e26c63d30f53443e9489495b2105d37b67a85d9" integrity sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A== @@ -4945,6 +4947,7 @@ workerpool@^9.2.0: integrity sha512-TmPRQYYSAnnDiEB0P/Ytip7bFGvqnSU6I2BcuSw7Hx+JSg/DsUi5ebYfc8GYaSdpuvOcEs6dXxPurOYpe9QFwg== "wrap-ansi-cjs@npm:wrap-ansi@^7.0.0", wrap-ansi@^7.0.0: + name wrap-ansi-cjs version "7.0.0" resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-7.0.0.tgz#67e145cff510a6a6984bdf1152911d69d2eb9e43" integrity sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q== From 937e4e81858bb631602c7cfa491e7f8d5c637845 Mon Sep 17 00:00:00 2001 From: rochdev Date: Thu, 4 Dec 2025 13:14:40 -0500 Subject: [PATCH 63/95] do not compare licenses --- .github/workflows/platform.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/platform.yml b/.github/workflows/platform.yml index f042083b13f..8eccc9a98b4 100644 --- a/.github/workflows/platform.yml +++ b/.github/workflows/platform.yml @@ -67,6 +67,8 @@ jobs: - uses: ./.github/actions/node/active-lts - run: yarn --frozen-lockfile working-directory: vendor + # Licenses are pulled from internet and not deterministic so revert them. + - run: git checkout packages/node_modules/**/*/LICENSE - run: git diff --exit-code core: From 7a0f44ba60e53533f0c2f517dd02fdda8d5a6de4 Mon Sep 17 00:00:00 2001 From: rochdev Date: Thu, 4 Dec 2025 13:22:01 -0500 Subject: [PATCH 64/95] fix merge issue --- .github/workflows/project.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/project.yml b/.github/workflows/project.yml index e379d0633de..c6ebb5bce89 100644 --- a/.github/workflows/project.yml +++ b/.github/workflows/project.yml @@ -65,7 +65,6 @@ jobs: - run: ls -lisa - name: Compute module size tree and report uses: qard/heaviest-objects-in-the-universe@1e02edbdda803a45537a808ede97866db47756d3 # Unreleased - working-directory: ./package with: github-token: ${{ secrets.GITHUB_TOKEN }} From 2262c8aaba516cf4a9c90f4a2368e21d074e6618 Mon Sep 17 00:00:00 2001 From: rochdev Date: Thu, 4 Dec 2025 13:26:06 -0500 Subject: [PATCH 65/95] mark openfeature core as external --- packages/node_modules/@datadog/openfeature-node-server/index.js | 2 +- vendor/rspack.config.js | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/node_modules/@datadog/openfeature-node-server/index.js b/packages/node_modules/@datadog/openfeature-node-server/index.js index 25af0b3cb9d..5b36b56ac2b 100644 --- a/packages/node_modules/@datadog/openfeature-node-server/index.js +++ b/packages/node_modules/@datadog/openfeature-node-server/index.js @@ -1 +1 @@ -(()=>{var e={"./spark-md5/spark-md5.js":function(e){e.exports=function(e){"use strict";var t=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"];function r(e,t){var r=e[0],n=e[1],i=e[2],o=e[3];r+=(n&i|~n&o)+t[0]-0x28955b88|0,o+=((r=(r<<7|r>>>25)+n|0)&n|~r&i)+t[1]-0x173848aa|0,i+=((o=(o<<12|o>>>20)+r|0)&r|~o&n)+t[2]+0x242070db|0,n+=((i=(i<<17|i>>>15)+o|0)&o|~i&r)+t[3]-0x3e423112|0,r+=((n=(n<<22|n>>>10)+i|0)&i|~n&o)+t[4]-0xa83f051|0,o+=((r=(r<<7|r>>>25)+n|0)&n|~r&i)+t[5]+0x4787c62a|0,i+=((o=(o<<12|o>>>20)+r|0)&r|~o&n)+t[6]-0x57cfb9ed|0,n+=((i=(i<<17|i>>>15)+o|0)&o|~i&r)+t[7]-0x2b96aff|0,r+=((n=(n<<22|n>>>10)+i|0)&i|~n&o)+t[8]+0x698098d8|0,o+=((r=(r<<7|r>>>25)+n|0)&n|~r&i)+t[9]-0x74bb0851|0,i+=((o=(o<<12|o>>>20)+r|0)&r|~o&n)+t[10]-42063|0,n+=((i=(i<<17|i>>>15)+o|0)&o|~i&r)+t[11]-0x76a32842|0,r+=((n=(n<<22|n>>>10)+i|0)&i|~n&o)+t[12]+0x6b901122|0,o+=((r=(r<<7|r>>>25)+n|0)&n|~r&i)+t[13]-0x2678e6d|0,i+=((o=(o<<12|o>>>20)+r|0)&r|~o&n)+t[14]-0x5986bc72|0,n+=((i=(i<<17|i>>>15)+o|0)&o|~i&r)+t[15]+0x49b40821|0,r+=((n=(n<<22|n>>>10)+i|0)&o|i&~o)+t[1]-0x9e1da9e|0,o+=((r=(r<<5|r>>>27)+n|0)&i|n&~i)+t[6]-0x3fbf4cc0|0,i+=((o=(o<<9|o>>>23)+r|0)&n|r&~n)+t[11]+0x265e5a51|0,n+=((i=(i<<14|i>>>18)+o|0)&r|o&~r)+t[0]-0x16493856|0,r+=((n=(n<<20|n>>>12)+i|0)&o|i&~o)+t[5]-0x29d0efa3|0,o+=((r=(r<<5|r>>>27)+n|0)&i|n&~i)+t[10]+0x2441453|0,i+=((o=(o<<9|o>>>23)+r|0)&n|r&~n)+t[15]-0x275e197f|0,n+=((i=(i<<14|i>>>18)+o|0)&r|o&~r)+t[4]-0x182c0438|0,r+=((n=(n<<20|n>>>12)+i|0)&o|i&~o)+t[9]+0x21e1cde6|0,o+=((r=(r<<5|r>>>27)+n|0)&i|n&~i)+t[14]-0x3cc8f82a|0,i+=((o=(o<<9|o>>>23)+r|0)&n|r&~n)+t[3]-0xb2af279|0,n+=((i=(i<<14|i>>>18)+o|0)&r|o&~r)+t[8]+0x455a14ed|0,r+=((n=(n<<20|n>>>12)+i|0)&o|i&~o)+t[13]-0x561c16fb|0,o+=((r=(r<<5|r>>>27)+n|0)&i|n&~i)+t[2]-0x3105c08|0,i+=((o=(o<<9|o>>>23)+r|0)&n|r&~n)+t[7]+0x676f02d9|0,n+=((i=(i<<14|i>>>18)+o|0)&r|o&~r)+t[12]-0x72d5b376|0,r+=((n=(n<<20|n>>>12)+i|0)^i^o)+t[5]-378558|0,o+=((r=(r<<4|r>>>28)+n|0)^n^i)+t[8]-0x788e097f|0,i+=((o=(o<<11|o>>>21)+r|0)^r^n)+t[11]+0x6d9d6122|0,n+=((i=(i<<16|i>>>16)+o|0)^o^r)+t[14]-0x21ac7f4|0,r+=((n=(n<<23|n>>>9)+i|0)^i^o)+t[1]-0x5b4115bc|0,o+=((r=(r<<4|r>>>28)+n|0)^n^i)+t[4]+0x4bdecfa9|0,i+=((o=(o<<11|o>>>21)+r|0)^r^n)+t[7]-0x944b4a0|0,n+=((i=(i<<16|i>>>16)+o|0)^o^r)+t[10]-0x41404390|0,r+=((n=(n<<23|n>>>9)+i|0)^i^o)+t[13]+0x289b7ec6|0,o+=((r=(r<<4|r>>>28)+n|0)^n^i)+t[0]-0x155ed806|0,i+=((o=(o<<11|o>>>21)+r|0)^r^n)+t[3]-0x2b10cf7b|0,n+=((i=(i<<16|i>>>16)+o|0)^o^r)+t[6]+0x4881d05|0,r+=((n=(n<<23|n>>>9)+i|0)^i^o)+t[9]-0x262b2fc7|0,o+=((r=(r<<4|r>>>28)+n|0)^n^i)+t[12]-0x1924661b|0,i+=((o=(o<<11|o>>>21)+r|0)^r^n)+t[15]+0x1fa27cf8|0,n+=((i=(i<<16|i>>>16)+o|0)^o^r)+t[2]-0x3b53a99b|0,n=(n<<23|n>>>9)+i|0,r+=(i^(n|~o))+t[0]-0xbd6ddbc|0,r=(r<<6|r>>>26)+n|0,o+=(n^(r|~i))+t[7]+0x432aff97|0,o=(o<<10|o>>>22)+r|0,i+=(r^(o|~n))+t[14]-0x546bdc59|0,i=(i<<15|i>>>17)+o|0,n+=(o^(i|~r))+t[5]-0x36c5fc7|0,n=(n<<21|n>>>11)+i|0,r+=(i^(n|~o))+t[12]+0x655b59c3|0,r=(r<<6|r>>>26)+n|0,o+=(n^(r|~i))+t[3]-0x70f3336e|0,o=(o<<10|o>>>22)+r|0,i+=(r^(o|~n))+t[10]-1051523|0,i=(i<<15|i>>>17)+o|0,n+=(o^(i|~r))+t[1]-0x7a7ba22f|0,n=(n<<21|n>>>11)+i|0,r+=(i^(n|~o))+t[8]+0x6fa87e4f|0,r=(r<<6|r>>>26)+n|0,o+=(n^(r|~i))+t[15]-0x1d31920|0,o=(o<<10|o>>>22)+r|0,i+=(r^(o|~n))+t[6]-0x5cfebcec|0,i=(i<<15|i>>>17)+o|0,n+=(o^(i|~r))+t[13]+0x4e0811a1|0,n=(n<<21|n>>>11)+i|0,r+=(i^(n|~o))+t[4]-0x8ac817e|0,r=(r<<6|r>>>26)+n|0,o+=(n^(r|~i))+t[11]-0x42c50dcb|0,o=(o<<10|o>>>22)+r|0,i+=(r^(o|~n))+t[2]+0x2ad7d2bb|0,i=(i<<15|i>>>17)+o|0,n+=(o^(i|~r))+t[9]-0x14792c6f|0,n=(n<<21|n>>>11)+i|0,e[0]=r+e[0]|0,e[1]=n+e[1]|0,e[2]=i+e[2]|0,e[3]=o+e[3]|0}function n(e){var t,r=[];for(t=0;t<64;t+=4)r[t>>2]=e.charCodeAt(t)+(e.charCodeAt(t+1)<<8)+(e.charCodeAt(t+2)<<16)+(e.charCodeAt(t+3)<<24);return r}function i(e){var t,r=[];for(t=0;t<64;t+=4)r[t>>2]=e[t]+(e[t+1]<<8)+(e[t+2]<<16)+(e[t+3]<<24);return r}function o(e){var t,i,o,s,a,l,u=e.length,h=[0x67452301,-0x10325477,-0x67452302,0x10325476];for(t=64;t<=u;t+=64)r(h,n(e.substring(t-64,t)));for(i=(e=e.substring(t-64)).length,o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],t=0;t>2]|=e.charCodeAt(t)<<(t%4<<3);if(o[t>>2]|=128<<(t%4<<3),t>55)for(r(h,o),t=0;t<16;t+=1)o[t]=0;return a=parseInt((s=(s=8*u).toString(16).match(/(.*?)(.{0,8})$/))[2],16),l=parseInt(s[1],16)||0,o[14]=a,o[15]=l,r(h,o),h}function s(e){var r;for(r=0;r>8*r+4&15]+t[e>>8*r&15];return n}(e[r]);return e.join("")}function a(e){return/[\u0080-\uFFFF]/.test(e)&&(e=unescape(encodeURIComponent(e))),e}function l(e){var t,r=[],n=e.length;for(t=0;tu)?new ArrayBuffer(0):(o=new Uint8Array(i=new ArrayBuffer(n=u-l)),s=new Uint8Array(this,l,n),o.set(s),i)}}(),u.prototype.append=function(e){return this.appendBinary(a(e)),this},u.prototype.appendBinary=function(e){this._buff+=e,this._length+=e.length;var t,i=this._buff.length;for(t=64;t<=i;t+=64)r(this._hash,n(this._buff.substring(t-64,t)));return this._buff=this._buff.substring(t-64),this},u.prototype.end=function(e){var t,r,n=this._buff,i=n.length,o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(t=0;t>2]|=n.charCodeAt(t)<<(t%4<<3);return this._finish(o,i),r=s(this._hash),e&&(r=l(r)),this.reset(),r},u.prototype.reset=function(){return this._buff="",this._length=0,this._hash=[0x67452301,-0x10325477,-0x67452302,0x10325476],this},u.prototype.getState=function(){return{buff:this._buff,length:this._length,hash:this._hash.slice()}},u.prototype.setState=function(e){return this._buff=e.buff,this._length=e.length,this._hash=e.hash,this},u.prototype.destroy=function(){delete this._hash,delete this._buff,delete this._length},u.prototype._finish=function(e,t){var n,i,o,s=t;if(e[s>>2]|=128<<(s%4<<3),s>55)for(r(this._hash,e),s=0;s<16;s+=1)e[s]=0;i=parseInt((n=(n=8*this._length).toString(16).match(/(.*?)(.{0,8})$/))[2],16),o=parseInt(n[1],16)||0,e[14]=i,e[15]=o,r(this._hash,e)},u.hash=function(e,t){return u.hashBinary(a(e),t)},u.hashBinary=function(e,t){var r=s(o(e));return t?l(r):r},u.ArrayBuffer=function(){this.reset()},u.ArrayBuffer.prototype.append=function(e){var t,n,o,s=(t=this._buff.buffer,(n=new Uint8Array(t.byteLength+e.byteLength)).set(new Uint8Array(t)),n.set(new Uint8Array(e),t.byteLength),n),a=s.length;for(this._length+=e.byteLength,o=64;o<=a;o+=64)r(this._hash,i(s.subarray(o-64,o)));return this._buff=new Uint8Array(o-64>2]|=n[t]<<(t%4<<3);return this._finish(o,i),r=s(this._hash),e&&(r=l(r)),this.reset(),r},u.ArrayBuffer.prototype.reset=function(){return this._buff=new Uint8Array(0),this._length=0,this._hash=[0x67452301,-0x10325477,-0x67452302,0x10325476],this},u.ArrayBuffer.prototype.getState=function(){var e,t=u.prototype.getState.call(this);return e=t.buff,t.buff=String.fromCharCode.apply(null,new Uint8Array(e)),t},u.ArrayBuffer.prototype.setState=function(e){return e.buff=function(e,t){var r,n=e.length,i=new ArrayBuffer(n),o=new Uint8Array(i);for(r=0;r>2]|=e[t]<<(t%4<<3);if(o[t>>2]|=128<<(t%4<<3),t>55)for(r(h,o),t=0;t<16;t+=1)o[t]=0;return a=parseInt((s=(s=8*u).toString(16).match(/(.*?)(.{0,8})$/))[2],16),l=parseInt(s[1],16)||0,o[14]=a,o[15]=l,r(h,o),h}(new Uint8Array(e)));return t?l(n):n},u}()}},t={};function r(n){var i=t[n];if(void 0!==i)return i.exports;var o=t[n]={exports:{}};return e[n](o,o.exports,r),o.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};(()=>{"use strict";r.r(n),r.d(n,{DatadogNodeServerProvider:()=>ep});var e,t,i,o,s,a,l=r("./spark-md5/spark-md5.js"),u=r.n(l);function h(e,t=""){return new(u())().append(t).append(e).end()}function c(e){return h(JSON.stringify({flag:{key:e.flag.key},subject:{id:e.subject.id,attributes:e.subject.attributes}}))}function d(e){return h(JSON.stringify(e))}class f{constructor(e){this.delegate=e}init(){return Promise.resolve()}has(e){return this.get(e)===d(e)}get(e){return this.delegate.get(c(e))}set(e){this.delegate.set(c(e),d(e))}entries(){return this.delegate.entries()}clear(){this.delegate.clear()}}class g{constructor(e){this.capacity=e,this.cache=new Map,this.size=this.cache.size}[(Symbol.toStringTag,Symbol.iterator)](){return this.cache[Symbol.iterator]()}forEach(e){this.cache.forEach(e)}entries(){return this.cache.entries()}clear(){this.cache.clear()}delete(e){return this.cache.delete(e)}keys(){return this.cache.keys()}values(){return this.cache.values()}has(e){return this.cache.has(e)}get(e){if(!this.has(e))return;let t=this.cache.get(e);return void 0!==t&&(this.delete(e),this.cache.set(e,t)),t}set(e,t){if(0===this.capacity)return this;if(this.cache.has(e))this.cache.delete(e);else if(this.cache.size>=this.capacity){let e=this.cache.keys().next().value;e&&this.delete(e)}return this.cache.set(e,t),this}}class v extends f{constructor(e){super(new g(e))}}var p=Object.defineProperty,E=Object.defineProperties,_=Object.getOwnPropertyDescriptors,y=Object.getOwnPropertySymbols,m=Object.prototype.hasOwnProperty,R=Object.prototype.propertyIsEnumerable,b=(e,t,r)=>t in e?p(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,O=(e,t)=>{for(var r in t||(t={}))m.call(t,r)&&b(e,r,t[r]);if(y)for(var r of y(t))R.call(t,r)&&b(e,r,t[r]);return e},A=(e,t,r)=>new Promise((n,i)=>{var o=e=>{try{a(r.next(e))}catch(e){i(e)}},s=e=>{try{a(r.throw(e))}catch(e){i(e)}},a=e=>e.done?n(e.value):Promise.resolve(e.value).then(o,s);a((r=r.apply(e,t)).next())}),x="ERROR",T=((e=T||{}).PROVIDER_NOT_READY="PROVIDER_NOT_READY",e.PROVIDER_FATAL="PROVIDER_FATAL",e.FLAG_NOT_FOUND="FLAG_NOT_FOUND",e.PARSE_ERROR="PARSE_ERROR",e.TYPE_MISMATCH="TYPE_MISMATCH",e.TARGETING_KEY_MISSING="TARGETING_KEY_MISSING",e.INVALID_CONTEXT="INVALID_CONTEXT",e.GENERAL="GENERAL",e),C=class e extends Error{constructor(t,r){super(t),Object.setPrototypeOf(this,e.prototype),this.name="OpenFeatureError",this.cause=null==r?void 0:r.cause}},P=class e extends C{constructor(t,r){super(t,r),Object.setPrototypeOf(this,e.prototype),this.name="FlagNotFoundError",this.code="FLAG_NOT_FOUND"}},N=class e extends C{constructor(t,r){super(t,r),Object.setPrototypeOf(this,e.prototype),this.name="GeneralError",this.code="GENERAL"}},I=class e extends C{constructor(t,r){super(t,r),Object.setPrototypeOf(this,e.prototype),this.name="InvalidContextError",this.code="INVALID_CONTEXT"}},S=class e extends C{constructor(t,r){super(t,r),Object.setPrototypeOf(this,e.prototype),this.name="ParseError",this.code="PARSE_ERROR"}},w=class e extends C{constructor(t,r){super(t,r),Object.setPrototypeOf(this,e.prototype),this.name="ProviderFatalError",this.code="PROVIDER_FATAL"}},D=class e extends C{constructor(t,r){super(t,r),Object.setPrototypeOf(this,e.prototype),this.name="ProviderNotReadyError",this.code="PROVIDER_NOT_READY"}},k=class e extends C{constructor(t,r){super(t,r),Object.setPrototypeOf(this,e.prototype),this.name="TargetingKeyMissingError",this.code="TARGETING_KEY_MISSING"}},L=class e extends C{constructor(t,r){super(t,r),Object.setPrototypeOf(this,e.prototype),this.name="TypeMismatchError",this.code="TYPE_MISMATCH"}},H=((t=H||{}).NOT_READY="NOT_READY",t.READY="READY",t.ERROR="ERROR",t.STALE="STALE",t.FATAL="FATAL",t),j=((i=j||{}).Ready="PROVIDER_READY",i.Error="PROVIDER_ERROR",i.ConfigurationChanged="PROVIDER_CONFIGURATION_CHANGED",i.Stale="PROVIDER_STALE",i),M=((o=M||{}).Ready="PROVIDER_READY",o.Error="PROVIDER_ERROR",o.ConfigurationChanged="PROVIDER_CONFIGURATION_CHANGED",o.ContextChanged="PROVIDER_CONTEXT_CHANGED",o.Reconciling="PROVIDER_RECONCILING",o.Stale="PROVIDER_STALE",o),G={READY:"PROVIDER_READY",ERROR:"PROVIDER_ERROR",FATAL:"PROVIDER_ERROR",STALE:"PROVIDER_STALE",RECONCILING:"PROVIDER_RECONCILING",NOT_READY:void 0},V=(e,t)=>!t&&"PROVIDER_READY"===e||G[t]===e,F=class{error(...e){console.error(...e)}warn(...e){console.warn(...e)}info(){}debug(){}},Y=["error","warn","info","debug"],U=class{constructor(e){this.fallbackLogger=new F;try{for(const t of Y)if(!e[t]||"function"!=typeof e[t])throw Error(`The provided logger is missing the ${t} method.`);this.logger=e}catch(e){console.error(e),console.error("Falling back to the default logger."),this.logger=this.fallbackLogger}}error(...e){this.log("error",...e)}warn(...e){this.log("warn",...e)}info(...e){this.log("info",...e)}debug(...e){this.log("debug",...e)}log(e,...t){try{this.logger[e](...t)}catch(r){this.fallbackLogger[e](...t)}}},K=class{constructor(e){this.globalLogger=e,this._handlers={PROVIDER_CONFIGURATION_CHANGED:new WeakMap,PROVIDER_CONTEXT_CHANGED:new WeakMap,PROVIDER_READY:new WeakMap,PROVIDER_ERROR:new WeakMap,PROVIDER_STALE:new WeakMap,PROVIDER_RECONCILING:new WeakMap}}emit(e,t){this.eventEmitter.emit(e,t)}addHandler(e,t){let r=e=>A(this,null,function*(){var r;try{yield t(e)}catch(e){null==(r=this._logger)||r.error("Error running event handler:",e)}}),n=this._handlers[e].get(t);this._handlers[e].set(t,[...n||[],r]),this.eventEmitter.on(e,r)}removeHandler(e,t){let r=this._handlers[e].get(t);if(r){let t=r.pop();t&&this.eventEmitter.removeListener(e,t)}}removeAllHandlers(e){e?this.eventEmitter.removeAllListeners(e):this.eventEmitter.removeAllListeners()}getHandlers(e){return this.eventEmitter.listeners(e)}setLogger(e){return this._eventLogger=new U(e),this}get _logger(){var e,t;return null!=(t=this._eventLogger)?t:null==(e=this.globalLogger)?void 0:e.call(this)}};function B(e){return"string"==typeof e?e:void 0}function $(e){return"object"==typeof e?e:void 0}function z(e){return null!=e}var W=class{constructor(e,t,r){var n,i,o;this._provider=e,this._status=t,this._pendingContextChanges=0,null==(n=e.events)||n.addHandler("PROVIDER_READY",()=>{this._status=r.READY}),null==(i=e.events)||i.addHandler("PROVIDER_STALE",()=>{this._status=r.STALE}),null==(o=e.events)||o.addHandler("PROVIDER_ERROR",e=>{(null==e?void 0:e.errorCode)==="PROVIDER_FATAL"?this._status=r.FATAL:this._status=r.ERROR})}get provider(){return this._provider}set provider(e){this._provider=e}get status(){return this._status}set status(e){this._status=e}get allContextChangesSettled(){return 0===this._pendingContextChanges}incrementPendingContextChanges(){this._pendingContextChanges++}decrementPendingContextChanges(){this._pendingContextChanges--}},X=class{constructor(e){this._hooks=[],this._context={},this._logger=new F,this._clientEventHandlers=new Map,this._domainScopedContext=new Map,this._clientEvents=new Map,this._runsOn=e}addHooks(...e){return this._hooks=[...this._hooks,...e],this}getHooks(){return this._hooks}clearHooks(){return this._hooks=[],this}setLogger(e){return this._logger=new U(e),this}get providerMetadata(){return this.getProviderMetadata()}getProviderMetadata(e){return this.getProviderForClient(e).metadata}addHandler(e,t,r){[...new Map([[void 0,this._defaultProvider]]),...this._domainScopedProviders].forEach(r=>{var n;let i=r[0],o=r[1].provider;if(V(e,r[1].status))try{t({domain:i,providerName:o.metadata.name})}catch(e){null==(n=this._logger)||n.error("Error running event handler:",e)}}),this._apiEmitter.addHandler(e,t),(null==r?void 0:r.signal)&&"function"==typeof r.signal.addEventListener&&r.signal.addEventListener("abort",()=>{this.removeHandler(e,t)})}removeHandler(e,t){this._apiEmitter.removeHandler(e,t)}clearHandlers(){this._apiEmitter.removeAllHandlers()}getHandlers(e){return this._apiEmitter.getHandlers(e)}setAwaitableProvider(e,t){var r,n,i,o,s,a,l,u;let h,c=B(e),d=null!=(r=$(e))?r:$(t);if(!d)return void this._logger.debug("No provider defined, ignoring setProvider call");let f=this.getProviderForClient(c),g=d.metadata.name;if(f===d)return void this._logger.debug("Provider is already set, ignoring setProvider call");if(d.runsOn){if(d.runsOn!==this._runsOn)throw new N(`Provider '${d.metadata.name}' is intended for use on the ${d.runsOn}.`)}else this._logger.debug(`Provider '${d.metadata.name}' has not defined its intended use.`);let v=this.getAssociatedEventEmitters(c),p=new W(d,this._statusEnumType.NOT_READY,this._statusEnumType);return"function"!=typeof d.initialize||this.allProviders.includes(d)?(p.status=this._statusEnumType.READY,v.forEach(e=>{null==e||e.emit("PROVIDER_READY",{clientName:c,domain:c,providerName:g})}),null==(a=this._apiEmitter)||a.emit("PROVIDER_READY",{clientName:c,domain:c,providerName:g})):h=null==(s=null==(o=null==(i=d.initialize)?void 0:i.call(d,c&&null!=(n=this._domainScopedContext.get(c))?n:this._context))?void 0:o.then(()=>{var e;p.status=this._statusEnumType.READY,this.getAssociatedEventEmitters(c).forEach(e=>{null==e||e.emit("PROVIDER_READY",{clientName:c,domain:c,providerName:g})}),null==(e=this._apiEmitter)||e.emit("PROVIDER_READY",{clientName:c,domain:c,providerName:g})}))?void 0:s.catch(e=>{var t;throw(null==e?void 0:e.code)==="PROVIDER_FATAL"?p.status=this._statusEnumType.FATAL:p.status=this._statusEnumType.ERROR,this.getAssociatedEventEmitters(c).forEach(t=>{null==t||t.emit("PROVIDER_ERROR",{clientName:c,domain:c,providerName:g,message:null==e?void 0:e.message})}),null==(t=this._apiEmitter)||t.emit("PROVIDER_ERROR",{clientName:c,domain:c,providerName:g,message:null==e?void 0:e.message}),e}),c?this._domainScopedProviders.set(c,p):this._defaultProvider=p,this.transferListeners(f,d,c,v),this.allProviders.includes(f)||null==(u=null==(l=null==f?void 0:f.onClose)?void 0:l.call(f))||u.catch(e=>{this._logger.error(`error closing provider: ${null==e?void 0:e.message}, ${null==e?void 0:e.stack}`)}),h}getProviderForClient(e){var t,r;return e&&null!=(r=null==(t=this._domainScopedProviders.get(e))?void 0:t.provider)?r:this._defaultProvider.provider}buildAndCacheEventEmitterForClient(e){let t=this._clientEvents.get(e);if(t)return t;let r=this._createEventEmitter();this._clientEvents.set(e,r);let n=this.getProviderForClient(e);return Object.values(M).forEach(t=>{var i;return null==(i=n.events)?void 0:i.addHandler(t,i=>A(this,null,function*(){r.emit(t,E(O({},i),_({clientName:e,domain:e,providerName:n.metadata.name})))}))}),r}getUnboundEmitters(){let e=[...this._domainScopedProviders.keys()];return[...[...this._clientEvents.keys()].filter(z).filter(t=>!e.includes(t)).map(e=>this._clientEvents.get(e)),this._clientEvents.get(void 0)].filter(z)}getAssociatedEventEmitters(e){return e?[this.buildAndCacheEventEmitterForClient(e)]:this.getUnboundEmitters()}transferListeners(e,t,r,n){var i;null==(i=this._clientEventHandlers.get(r))||i.forEach(t=>{var r;return null==(r=e.events)?void 0:r.removeHandler(...t)});let o=Object.values(M).map(e=>{let i=i=>A(this,null,function*(){n.forEach(n=>{null==n||n.emit(e,E(O({},i),_({clientName:r,domain:r,providerName:t.metadata.name})))}),this._apiEmitter.emit(e,E(O({},i),_({clientName:r,domain:r,providerName:t.metadata.name})))});return[e,i]});this._clientEventHandlers.set(r,o),o.forEach(e=>{var r;return null==(r=t.events)?void 0:r.addHandler(...e)})}close(){return A(this,null,function*(){var e,t;try{yield null==(t=null==(e=this==null?void 0:this._defaultProvider.provider)?void 0:e.onClose)?void 0:t.call(e)}catch(e){this.handleShutdownError(this._defaultProvider.provider,e)}let r=Array.from(this._domainScopedProviders);yield Promise.all(r.map(e=>A(this,[e],function*([,e]){var t,r;try{yield null==(r=null==e?void 0:(t=e.provider).onClose)?void 0:r.call(t)}catch(t){this.handleShutdownError(null==e?void 0:e.provider,t)}})))})}clearProvidersAndSetDefault(e){return A(this,null,function*(){try{yield this.close()}catch(e){this._logger.error("Unable to cleanly close providers. Resetting to the default configuration.")}finally{this._domainScopedProviders.clear(),this._defaultProvider=new W(e,this._statusEnumType.NOT_READY,this._statusEnumType)}})}get allProviders(){return[...[...this._domainScopedProviders.values()].map(e=>e.provider),this._defaultProvider.provider]}handleShutdownError(e,t){this._logger.error(`Error during shutdown of provider ${e.metadata.name}: ${t}`),this._logger.error(null==t?void 0:t.stack)}};let J=require("node:events");require("async_hooks");var q=Object.defineProperty,Q=Object.defineProperties,Z=Object.getOwnPropertyDescriptors,ee=Object.getOwnPropertySymbols,et=Object.prototype.hasOwnProperty,er=Object.prototype.propertyIsEnumerable,en=(e,t,r)=>t in e?q(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,ei=(e,t)=>{for(var r in t||(t={}))et.call(t,r)&&en(e,r,t[r]);if(ee)for(var r of ee(t))er.call(t,r)&&en(e,r,t[r]);return e},eo=(e,t,r)=>new Promise((n,i)=>{var o=e=>{try{a(r.next(e))}catch(e){i(e)}},s=e=>{try{a(r.throw(e))}catch(e){i(e)}},a=e=>e.done?n(e.value):Promise.resolve(e.value).then(o,s);a((r=r.apply(e,t)).next())}),es=new class{constructor(){this.metadata={name:"No-op Provider"}}resolveBooleanEvaluation(e,t){return this.noOp(t)}resolveStringEvaluation(e,t){return this.noOp(t)}resolveNumberEvaluation(e,t){return this.noOp(t)}resolveObjectEvaluation(e,t){return this.noOp(t)}noOp(e){return Promise.resolve({value:e,reason:"No-op"})}},ea=class{constructor(e,t,r,n,i,o,s,a,l={}){this.providerAccessor=e,this.providerStatusAccessor=t,this.emitterAccessor=r,this.apiContextAccessor=n,this.apiHooksAccessor=i,this.transactionContextAccessor=o,this.globalLogger=s,this.options=a,this._hooks=[],this._context=l}get metadata(){var e,t;return{name:null!=(e=this.options.domain)?e:this.options.name,domain:null!=(t=this.options.domain)?t:this.options.name,version:this.options.version,providerMetadata:this.providerAccessor().metadata}}get providerStatus(){return this.providerStatusAccessor()}addHandler(e,t,r){var n;if(this.emitterAccessor().addHandler(e,t),V(e,this._providerStatus))try{t({clientName:this.metadata.name,domain:this.metadata.domain,providerName:this._provider.metadata.name})}catch(e){null==(n=this._logger)||n.error("Error running event handler:",e)}(null==r?void 0:r.signal)&&"function"==typeof r.signal.addEventListener&&r.signal.addEventListener("abort",()=>{this.removeHandler(e,t)})}removeHandler(e,t){this.emitterAccessor().removeHandler(e,t)}getHandlers(e){return this.emitterAccessor().getHandlers(e)}setLogger(e){return this._clientLogger=new U(e),this}setContext(e){return this._context=e,this}getContext(){return this._context}addHooks(...e){return this._hooks=[...this._hooks,...e],this}getHooks(){return this._hooks}clearHooks(){return this._hooks=[],this}getBooleanValue(e,t,r,n){return eo(this,null,function*(){return(yield this.getBooleanDetails(e,t,r,n)).value})}getBooleanDetails(e,t,r,n){return this.evaluate(e,this._provider.resolveBooleanEvaluation,t,"boolean",r,n)}getStringValue(e,t,r,n){return eo(this,null,function*(){return(yield this.getStringDetails(e,t,r,n)).value})}getStringDetails(e,t,r,n){return this.evaluate(e,this._provider.resolveStringEvaluation,t,"string",r,n)}getNumberValue(e,t,r,n){return eo(this,null,function*(){return(yield this.getNumberDetails(e,t,r,n)).value})}getNumberDetails(e,t,r,n){return this.evaluate(e,this._provider.resolveNumberEvaluation,t,"number",r,n)}getObjectValue(e,t,r,n){return eo(this,null,function*(){return(yield this.getObjectDetails(e,t,r,n)).value})}getObjectDetails(e,t,r,n){return this.evaluate(e,this._provider.resolveObjectEvaluation,t,"object",r,n)}track(e,t={},r={}){var n,i;try{if(this.shortCircuitIfNotReady(),"function"==typeof this._provider.track){let o=Object.freeze(this.mergeContexts(t));return null==(i=(n=this._provider).track)?void 0:i.call(n,e,o,r)}this._logger.debug("Provider does not support the track function; will no-op.")}catch(e){this._logger.debug("Error recording tracking event.",e)}}evaluate(e,t,r,n){return eo(this,arguments,function*(e,t,r,n,i={},o={}){var s;let a,l=[...this.apiHooksAccessor(),...this.getHooks(),...o.hooks||[],...this._provider.hooks||[]],u=[...l].reverse(),h=this.mergeContexts(i),c={flagKey:e,defaultValue:r,flagValueType:n,clientMetadata:this.metadata,providerMetadata:this._provider.metadata,context:h,logger:this._logger};try{let n,i,h=yield this.beforeHooks(l,c,o);this.shortCircuitIfNotReady();let d=yield t.call(this._provider,e,r,h,this._logger),f=(n=ei({},d),i={flagMetadata:Object.freeze(null!=(s=d.flagMetadata)?s:{}),flagKey:e},Q(n,Z(i)));if(f.errorCode){let t=((e,t)=>{switch(e){case"FLAG_NOT_FOUND":return new P(t);case"PARSE_ERROR":return new S(t);case"TYPE_MISMATCH":return new L(t);case"TARGETING_KEY_MISSING":return new k(t);case"INVALID_CONTEXT":return new I(t);case"PROVIDER_NOT_READY":return new D(t);case"PROVIDER_FATAL":return new w(t);default:return new N(t)}})(f.errorCode,f.errorMessage);yield this.errorHooks(u,c,t,o),a=this.getErrorEvaluationDetails(e,r,t,f.flagMetadata)}else yield this.afterHooks(u,c,f,o),a=f}catch(t){yield this.errorHooks(u,c,t,o),a=this.getErrorEvaluationDetails(e,r,t)}return yield this.finallyHooks(u,c,a,o),a})}beforeHooks(e,t,r){return eo(this,null,function*(){var n;for(let i of e)Object.freeze(t),Object.assign(t.context,ei(ei({},t.context),(yield null==(n=null==i?void 0:i.before)?void 0:n.call(i,t,Object.freeze(r.hookHints)))));return Object.freeze(t.context)})}afterHooks(e,t,r,n){return eo(this,null,function*(){var i;for(let o of e)yield null==(i=null==o?void 0:o.after)?void 0:i.call(o,t,r,n.hookHints)})}errorHooks(e,t,r,n){return eo(this,null,function*(){var i;for(let o of e)try{yield null==(i=null==o?void 0:o.error)?void 0:i.call(o,t,r,n.hookHints)}catch(e){this._logger.error(`Unhandled error during 'error' hook: ${e}`),e instanceof Error&&this._logger.error(e.stack),this._logger.error(null==e?void 0:e.stack)}})}finallyHooks(e,t,r,n){return eo(this,null,function*(){var i;for(let o of e)try{yield null==(i=null==o?void 0:o.finally)?void 0:i.call(o,t,r,n.hookHints)}catch(e){this._logger.error(`Unhandled error during 'finally' hook: ${e}`),e instanceof Error&&this._logger.error(e.stack),this._logger.error(null==e?void 0:e.stack)}})}get _provider(){return this.providerAccessor()}get _providerStatus(){return this.providerStatusAccessor()}get _logger(){return this._clientLogger||this.globalLogger()}mergeContexts(e){return ei(ei(ei(ei({},this.apiContextAccessor()),this.transactionContextAccessor()),this._context),e)}shortCircuitIfNotReady(){if(this.providerStatus===H.NOT_READY)throw new D("provider has not yet initialized");if(this.providerStatus===H.FATAL)throw new w("provider is in an irrecoverable error state")}getErrorEvaluationDetails(e,t,r,n={}){let i=null==r?void 0:r.message;return{errorCode:(null==r?void 0:r.code)||T.GENERAL,errorMessage:i,value:t,reason:x,flagMetadata:Object.freeze(n),flagKey:e}}},el=class extends K{constructor(){super(),this.eventEmitter=new J.EventEmitter({captureRejections:!0}),this.eventEmitter.on("error",e=>{var t;null==(t=this._logger)||t.error("Error running event handler:",e)})}},eu=new class{getTransactionContext(){return{}}setTransactionContext(e,t,...r){t(...r)}},eh=Symbol.for("@openfeature/js-sdk/api"),ec=globalThis;(class e extends X{constructor(){super("server"),this._statusEnumType=H,this._apiEmitter=new el,this._defaultProvider=new W(es,H.NOT_READY,this._statusEnumType),this._domainScopedProviders=new Map,this._createEventEmitter=()=>new el,this._transactionContextPropagator=eu}static getInstance(){let t=ec[eh];if(t)return t;let r=new e;return ec[eh]=r,r}getProviderStatus(e){var t,r;return e&&null!=(r=null==(t=this._domainScopedProviders.get(e))?void 0:t.status)?r:this._defaultProvider.status}setProviderAndWait(e,t){return eo(this,null,function*(){let r=B(e),n=r?$(t):$(e);yield this.setAwaitableProvider(r,n)})}setProvider(e,t){let r=B(e),n=r?$(t):$(e);return Promise.resolve(this.setAwaitableProvider(r,n)).catch(e=>{this._logger.error("Error during provider initialization:",e)}),this}getProvider(e){return this.getProviderForClient(e)}setContext(e){return this._context=e,this}getContext(){return this._context}getClient(e,t,r){var n,i;let o=B(e);return new ea(()=>this.getProviderForClient(o),()=>this.getProviderStatus(o),()=>this.buildAndCacheEventEmitterForClient(o),()=>this.getContext(),()=>this.getHooks(),()=>this.getTransactionContext(),()=>this._logger,{domain:o,version:B(t)},null!=(i=null!=(n=$(e))?n:$(t))?i:$(r))}clearProviders(){return super.clearProvidersAndSetDefault(es)}setTransactionContextPropagator(e){let t="Invalid TransactionContextPropagator, will not be set: ";return"function"!=typeof(null==e?void 0:e.getTransactionContext)?this._logger.error(`${t}: getTransactionContext is not a function.`):"function"!=typeof(null==e?void 0:e.setTransactionContext)?this._logger.error(`${t}: setTransactionContext is not a function.`):this._transactionContextPropagator=e,this}setTransactionContext(e,t,...r){this._transactionContextPropagator.setTransactionContext(e,t,...r)}getTransactionContext(){try{return this._transactionContextPropagator.getTransactionContext()}catch(e){return this._logger.error(`Error getting transaction context: ${null==e?void 0:e.message}, returning empty context.`),this._logger.error(null==e?void 0:e.stack),{}}}}).getInstance(),(s=a||(a={})).MATCHES="MATCHES",s.NOT_MATCHES="NOT_MATCHES",s.GTE="GTE",s.GT="GT",s.LTE="LTE",s.LT="LT",s.ONE_OF="ONE_OF",s.NOT_ONE_OF="NOT_ONE_OF",s.IS_NULL="IS_NULL";class ed{}class ef extends ed{getShard(e,t){return parseInt(h(e).slice(0,8),16)%t}}function eg(e,t,r,n,i,o){if(!e)return{value:n,reason:"ERROR",errorCode:T.PROVIDER_NOT_READY};let{targetingKey:s,...l}=i;if(!s)return{value:n,reason:"ERROR",errorCode:T.TARGETING_KEY_MISSING};let u={id:s,...l};try{return function(e,t,r,n,i,o){if(!(null==e?void 0:e.enabled))return o.debug("returning default assignment because flag is disabled",{flagKey:e?e.key:"undefined",subjectKey:r}),{value:i,reason:"DISABLED"};if(!function(e,t){if("boolean"===e)return"BOOLEAN"===t;if("string"===e)return"STRING"===t;if("number"===e)return"INTEGER"===t||"NUMERIC"===t;if("object"===e)return"JSON"===t;throw Error(`Invalid expected type: ${e}`)}(t,e.variationType))return o.debug("variant value type mismatch, returning default value",{flagKey:e.key,subjectKey:r,expectedType:t,variantType:e.variationType}),{value:i,reason:x,errorCode:T.TYPE_MISMATCH};let s=new Date;for(let t of e.allocations){if(t.startAt&&s=new Date(t.endAt)){o.debug("allocation after end date",{flagKey:e.key,subjectKey:r,allocationKey:t.key,endAt:t.endAt});continue}if(!function(e,t,r){return null==e||!e.length||(r.debug("evaluating rules",{rules:JSON.stringify(e),subjectAttributes:t}),e.some(e=>!(function(e,t){return t.map(t=>(function(e,t){var r,n,i;let o=e[t.attribute];if(t.operator===a.IS_NULL)return t.value?null==o:null!=o;if(null!=o)switch(t.operator){case a.GTE:case a.GT:case a.LTE:case a.LT:return r=o,n=t.value,((e,r)=>t.operator===a.GTE?e>=r:t.operator===a.GT?e>r:t.operator===a.LTE?e<=r:e{let o=function(e,t,r){var n,i;let o=new ef().getShard((n=e.salt,i=t,`${n}-${i}`),e.totalShards);return e.ranges.some(e=>{var t,r;return t=o,(r=e).start<=t&&t{this.resolve=()=>{this.cleanup(),e()},this.reject=e=>{this.cleanup(),t(e)}}),new Promise(()=>{this.timeoutId=setTimeout(()=>{t()},e)})])}async wait(){try{await this.promise}finally{this.cleanup()}}complete(){this.resolve&&this.resolve()}fail(e){this.reject&&this.reject(e)}isInitializing(){return void 0!==this.resolve}cleanup(){this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=void 0),this.resolve=void 0,this.reject=void 0}}class ep{constructor(e){this.options=e,this.metadata={name:"datadog-node-server"},this.runsOn="server",this.hooks=[],this.events=new el,this.exposureCache=new v(5e4)}getConfiguration(){return this.configuration}setConfiguration(e){var t,r,n;let i=null==(t=this.configuration)?void 0:t.createdAt,o=!!this.configuration;if(o&&this.configuration!==e){this.events.emit(j.ConfigurationChanged),i!==(null==e?void 0:e.createdAt)&&(null==(r=this.exposureCache)||r.clear()),this.configuration=e;return}this.configuration=e,(null==(n=this.initController)?void 0:n.isInitializing())?this.initController.complete():o||this.events.emit(j.Ready)}setError(e){var t;(null==(t=this.initController)?void 0:t.isInitializing())?this.initController.fail(e):this.events.emit(j.Error,{error:e})}async initialize(){var e,t;if(this.configuration)return;let r=null!=(e=this.options.initializationTimeoutMs)?e:3e4;this.initController=new ev(r,()=>this.setError(Error(`Initialization timeout after ${r}ms`))),await this.initController.wait(),await (null==(t=this.exposureCache)?void 0:t.init())}async resolveBooleanEvaluation(e,t,r,n){let i=eg(this.configuration,"boolean",e,t,r,n);return this.handleExposure(e,r,i),i}async resolveStringEvaluation(e,t,r,n){let i=eg(this.configuration,"string",e,t,r,n);return this.handleExposure(e,r,i),i}async resolveNumberEvaluation(e,t,r,n){let i=eg(this.configuration,"number",e,t,r,n);return this.handleExposure(e,r,i),i}async resolveObjectEvaluation(e,t,r,n){let i=eg(this.configuration,"object",e,t,r,n);return this.handleExposure(e,r,i),i}handleExposure(e,t,r){var n,i,o;let s=Date.now(),a=function(e,t){var r,n;if(!(null==(r=t.flagMetadata)?void 0:r.doLog))return;let i=null==(n=t.flagMetadata)?void 0:n.allocationKey,o=t.variant;if(!i||!o)return;let{targetingKey:s="",...a}=e;return{allocation:{key:i},flag:{key:t.flagKey},variant:{key:o},subject:{id:s,attributes:a}}}(t,{...r,flagKey:e,flagMetadata:null!=(n=r.flagMetadata)?n:{}});!a||(null==(i=this.exposureCache)?void 0:i.has(a))||this.options.exposureChannel.hasSubscribers&&(this.options.exposureChannel.publish({...a,timestamp:s}),null==(o=this.exposureCache)||o.set(a))}}})(),module.exports=n})(); \ No newline at end of file +(()=>{var e={"./spark-md5/spark-md5.js":function(e){e.exports=function(e){"use strict";var t=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"];function r(e,t){var r=e[0],n=e[1],i=e[2],o=e[3];r+=(n&i|~n&o)+t[0]-0x28955b88|0,o+=((r=(r<<7|r>>>25)+n|0)&n|~r&i)+t[1]-0x173848aa|0,i+=((o=(o<<12|o>>>20)+r|0)&r|~o&n)+t[2]+0x242070db|0,n+=((i=(i<<17|i>>>15)+o|0)&o|~i&r)+t[3]-0x3e423112|0,r+=((n=(n<<22|n>>>10)+i|0)&i|~n&o)+t[4]-0xa83f051|0,o+=((r=(r<<7|r>>>25)+n|0)&n|~r&i)+t[5]+0x4787c62a|0,i+=((o=(o<<12|o>>>20)+r|0)&r|~o&n)+t[6]-0x57cfb9ed|0,n+=((i=(i<<17|i>>>15)+o|0)&o|~i&r)+t[7]-0x2b96aff|0,r+=((n=(n<<22|n>>>10)+i|0)&i|~n&o)+t[8]+0x698098d8|0,o+=((r=(r<<7|r>>>25)+n|0)&n|~r&i)+t[9]-0x74bb0851|0,i+=((o=(o<<12|o>>>20)+r|0)&r|~o&n)+t[10]-42063|0,n+=((i=(i<<17|i>>>15)+o|0)&o|~i&r)+t[11]-0x76a32842|0,r+=((n=(n<<22|n>>>10)+i|0)&i|~n&o)+t[12]+0x6b901122|0,o+=((r=(r<<7|r>>>25)+n|0)&n|~r&i)+t[13]-0x2678e6d|0,i+=((o=(o<<12|o>>>20)+r|0)&r|~o&n)+t[14]-0x5986bc72|0,n+=((i=(i<<17|i>>>15)+o|0)&o|~i&r)+t[15]+0x49b40821|0,r+=((n=(n<<22|n>>>10)+i|0)&o|i&~o)+t[1]-0x9e1da9e|0,o+=((r=(r<<5|r>>>27)+n|0)&i|n&~i)+t[6]-0x3fbf4cc0|0,i+=((o=(o<<9|o>>>23)+r|0)&n|r&~n)+t[11]+0x265e5a51|0,n+=((i=(i<<14|i>>>18)+o|0)&r|o&~r)+t[0]-0x16493856|0,r+=((n=(n<<20|n>>>12)+i|0)&o|i&~o)+t[5]-0x29d0efa3|0,o+=((r=(r<<5|r>>>27)+n|0)&i|n&~i)+t[10]+0x2441453|0,i+=((o=(o<<9|o>>>23)+r|0)&n|r&~n)+t[15]-0x275e197f|0,n+=((i=(i<<14|i>>>18)+o|0)&r|o&~r)+t[4]-0x182c0438|0,r+=((n=(n<<20|n>>>12)+i|0)&o|i&~o)+t[9]+0x21e1cde6|0,o+=((r=(r<<5|r>>>27)+n|0)&i|n&~i)+t[14]-0x3cc8f82a|0,i+=((o=(o<<9|o>>>23)+r|0)&n|r&~n)+t[3]-0xb2af279|0,n+=((i=(i<<14|i>>>18)+o|0)&r|o&~r)+t[8]+0x455a14ed|0,r+=((n=(n<<20|n>>>12)+i|0)&o|i&~o)+t[13]-0x561c16fb|0,o+=((r=(r<<5|r>>>27)+n|0)&i|n&~i)+t[2]-0x3105c08|0,i+=((o=(o<<9|o>>>23)+r|0)&n|r&~n)+t[7]+0x676f02d9|0,n+=((i=(i<<14|i>>>18)+o|0)&r|o&~r)+t[12]-0x72d5b376|0,r+=((n=(n<<20|n>>>12)+i|0)^i^o)+t[5]-378558|0,o+=((r=(r<<4|r>>>28)+n|0)^n^i)+t[8]-0x788e097f|0,i+=((o=(o<<11|o>>>21)+r|0)^r^n)+t[11]+0x6d9d6122|0,n+=((i=(i<<16|i>>>16)+o|0)^o^r)+t[14]-0x21ac7f4|0,r+=((n=(n<<23|n>>>9)+i|0)^i^o)+t[1]-0x5b4115bc|0,o+=((r=(r<<4|r>>>28)+n|0)^n^i)+t[4]+0x4bdecfa9|0,i+=((o=(o<<11|o>>>21)+r|0)^r^n)+t[7]-0x944b4a0|0,n+=((i=(i<<16|i>>>16)+o|0)^o^r)+t[10]-0x41404390|0,r+=((n=(n<<23|n>>>9)+i|0)^i^o)+t[13]+0x289b7ec6|0,o+=((r=(r<<4|r>>>28)+n|0)^n^i)+t[0]-0x155ed806|0,i+=((o=(o<<11|o>>>21)+r|0)^r^n)+t[3]-0x2b10cf7b|0,n+=((i=(i<<16|i>>>16)+o|0)^o^r)+t[6]+0x4881d05|0,r+=((n=(n<<23|n>>>9)+i|0)^i^o)+t[9]-0x262b2fc7|0,o+=((r=(r<<4|r>>>28)+n|0)^n^i)+t[12]-0x1924661b|0,i+=((o=(o<<11|o>>>21)+r|0)^r^n)+t[15]+0x1fa27cf8|0,n+=((i=(i<<16|i>>>16)+o|0)^o^r)+t[2]-0x3b53a99b|0,n=(n<<23|n>>>9)+i|0,r+=(i^(n|~o))+t[0]-0xbd6ddbc|0,r=(r<<6|r>>>26)+n|0,o+=(n^(r|~i))+t[7]+0x432aff97|0,o=(o<<10|o>>>22)+r|0,i+=(r^(o|~n))+t[14]-0x546bdc59|0,i=(i<<15|i>>>17)+o|0,n+=(o^(i|~r))+t[5]-0x36c5fc7|0,n=(n<<21|n>>>11)+i|0,r+=(i^(n|~o))+t[12]+0x655b59c3|0,r=(r<<6|r>>>26)+n|0,o+=(n^(r|~i))+t[3]-0x70f3336e|0,o=(o<<10|o>>>22)+r|0,i+=(r^(o|~n))+t[10]-1051523|0,i=(i<<15|i>>>17)+o|0,n+=(o^(i|~r))+t[1]-0x7a7ba22f|0,n=(n<<21|n>>>11)+i|0,r+=(i^(n|~o))+t[8]+0x6fa87e4f|0,r=(r<<6|r>>>26)+n|0,o+=(n^(r|~i))+t[15]-0x1d31920|0,o=(o<<10|o>>>22)+r|0,i+=(r^(o|~n))+t[6]-0x5cfebcec|0,i=(i<<15|i>>>17)+o|0,n+=(o^(i|~r))+t[13]+0x4e0811a1|0,n=(n<<21|n>>>11)+i|0,r+=(i^(n|~o))+t[4]-0x8ac817e|0,r=(r<<6|r>>>26)+n|0,o+=(n^(r|~i))+t[11]-0x42c50dcb|0,o=(o<<10|o>>>22)+r|0,i+=(r^(o|~n))+t[2]+0x2ad7d2bb|0,i=(i<<15|i>>>17)+o|0,n+=(o^(i|~r))+t[9]-0x14792c6f|0,n=(n<<21|n>>>11)+i|0,e[0]=r+e[0]|0,e[1]=n+e[1]|0,e[2]=i+e[2]|0,e[3]=o+e[3]|0}function n(e){var t,r=[];for(t=0;t<64;t+=4)r[t>>2]=e.charCodeAt(t)+(e.charCodeAt(t+1)<<8)+(e.charCodeAt(t+2)<<16)+(e.charCodeAt(t+3)<<24);return r}function i(e){var t,r=[];for(t=0;t<64;t+=4)r[t>>2]=e[t]+(e[t+1]<<8)+(e[t+2]<<16)+(e[t+3]<<24);return r}function o(e){var t,i,o,a,s,l,u=e.length,h=[0x67452301,-0x10325477,-0x67452302,0x10325476];for(t=64;t<=u;t+=64)r(h,n(e.substring(t-64,t)));for(i=(e=e.substring(t-64)).length,o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],t=0;t>2]|=e.charCodeAt(t)<<(t%4<<3);if(o[t>>2]|=128<<(t%4<<3),t>55)for(r(h,o),t=0;t<16;t+=1)o[t]=0;return s=parseInt((a=(a=8*u).toString(16).match(/(.*?)(.{0,8})$/))[2],16),l=parseInt(a[1],16)||0,o[14]=s,o[15]=l,r(h,o),h}function a(e){var r;for(r=0;r>8*r+4&15]+t[e>>8*r&15];return n}(e[r]);return e.join("")}function s(e){return/[\u0080-\uFFFF]/.test(e)&&(e=unescape(encodeURIComponent(e))),e}function l(e){var t,r=[],n=e.length;for(t=0;tu)?new ArrayBuffer(0):(o=new Uint8Array(i=new ArrayBuffer(n=u-l)),a=new Uint8Array(this,l,n),o.set(a),i)}}(),u.prototype.append=function(e){return this.appendBinary(s(e)),this},u.prototype.appendBinary=function(e){this._buff+=e,this._length+=e.length;var t,i=this._buff.length;for(t=64;t<=i;t+=64)r(this._hash,n(this._buff.substring(t-64,t)));return this._buff=this._buff.substring(t-64),this},u.prototype.end=function(e){var t,r,n=this._buff,i=n.length,o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(t=0;t>2]|=n.charCodeAt(t)<<(t%4<<3);return this._finish(o,i),r=a(this._hash),e&&(r=l(r)),this.reset(),r},u.prototype.reset=function(){return this._buff="",this._length=0,this._hash=[0x67452301,-0x10325477,-0x67452302,0x10325476],this},u.prototype.getState=function(){return{buff:this._buff,length:this._length,hash:this._hash.slice()}},u.prototype.setState=function(e){return this._buff=e.buff,this._length=e.length,this._hash=e.hash,this},u.prototype.destroy=function(){delete this._hash,delete this._buff,delete this._length},u.prototype._finish=function(e,t){var n,i,o,a=t;if(e[a>>2]|=128<<(a%4<<3),a>55)for(r(this._hash,e),a=0;a<16;a+=1)e[a]=0;i=parseInt((n=(n=8*this._length).toString(16).match(/(.*?)(.{0,8})$/))[2],16),o=parseInt(n[1],16)||0,e[14]=i,e[15]=o,r(this._hash,e)},u.hash=function(e,t){return u.hashBinary(s(e),t)},u.hashBinary=function(e,t){var r=a(o(e));return t?l(r):r},u.ArrayBuffer=function(){this.reset()},u.ArrayBuffer.prototype.append=function(e){var t,n,o,a=(t=this._buff.buffer,(n=new Uint8Array(t.byteLength+e.byteLength)).set(new Uint8Array(t)),n.set(new Uint8Array(e),t.byteLength),n),s=a.length;for(this._length+=e.byteLength,o=64;o<=s;o+=64)r(this._hash,i(a.subarray(o-64,o)));return this._buff=new Uint8Array(o-64>2]|=n[t]<<(t%4<<3);return this._finish(o,i),r=a(this._hash),e&&(r=l(r)),this.reset(),r},u.ArrayBuffer.prototype.reset=function(){return this._buff=new Uint8Array(0),this._length=0,this._hash=[0x67452301,-0x10325477,-0x67452302,0x10325476],this},u.ArrayBuffer.prototype.getState=function(){var e,t=u.prototype.getState.call(this);return e=t.buff,t.buff=String.fromCharCode.apply(null,new Uint8Array(e)),t},u.ArrayBuffer.prototype.setState=function(e){return e.buff=function(e,t){var r,n=e.length,i=new ArrayBuffer(n),o=new Uint8Array(i);for(r=0;r>2]|=e[t]<<(t%4<<3);if(o[t>>2]|=128<<(t%4<<3),t>55)for(r(h,o),t=0;t<16;t+=1)o[t]=0;return s=parseInt((a=(a=8*u).toString(16).match(/(.*?)(.{0,8})$/))[2],16),l=parseInt(a[1],16)||0,o[14]=s,o[15]=l,r(h,o),h}(new Uint8Array(e)));return t?l(n):n},u}()}},t={};function r(n){var i=t[n];if(void 0!==i)return i.exports;var o=t[n]={exports:{}};return e[n](o,o.exports,r),o.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};(()=>{"use strict";r.r(n),r.d(n,{DatadogNodeServerProvider:()=>j});var e,t,i=r("./spark-md5/spark-md5.js"),o=r.n(i);function a(e,t=""){return new(o())().append(t).append(e).end()}function s(e){return a(JSON.stringify({flag:{key:e.flag.key},subject:{id:e.subject.id,attributes:e.subject.attributes}}))}function l(e){return a(JSON.stringify(e))}class u{constructor(e){this.delegate=e}init(){return Promise.resolve()}has(e){return this.get(e)===l(e)}get(e){return this.delegate.get(s(e))}set(e){this.delegate.set(s(e),l(e))}entries(){return this.delegate.entries()}clear(){this.delegate.clear()}}class h{constructor(e){this.capacity=e,this.cache=new Map,this.size=this.cache.size}[(Symbol.toStringTag,Symbol.iterator)](){return this.cache[Symbol.iterator]()}forEach(e){this.cache.forEach(e)}entries(){return this.cache.entries()}clear(){this.cache.clear()}delete(e){return this.cache.delete(e)}keys(){return this.cache.keys()}values(){return this.cache.values()}has(e){return this.cache.has(e)}get(e){if(!this.has(e))return;let t=this.cache.get(e);return void 0!==t&&(this.delete(e),this.cache.set(e,t)),t}set(e,t){if(0===this.capacity)return this;if(this.cache.has(e))this.cache.delete(e);else if(this.cache.size>=this.capacity){let e=this.cache.keys().next().value;e&&this.delete(e)}return this.cache.set(e,t),this}}class c extends u{constructor(e){super(new h(e))}}let d=require("@openfeature/core"),f=require("node:events");require("async_hooks");var g=Object.defineProperty,v=Object.defineProperties,p=Object.getOwnPropertyDescriptors,y=Object.getOwnPropertySymbols,b=Object.prototype.hasOwnProperty,x=Object.prototype.propertyIsEnumerable,m=(e,t,r)=>t in e?g(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,_=(e,t)=>{for(var r in t||(t={}))b.call(t,r)&&m(e,r,t[r]);if(y)for(var r of y(t))x.call(t,r)&&m(e,r,t[r]);return e},E=(e,t,r)=>new Promise((n,i)=>{var o=e=>{try{s(r.next(e))}catch(e){i(e)}},a=e=>{try{s(r.throw(e))}catch(e){i(e)}},s=e=>e.done?n(e.value):Promise.resolve(e.value).then(o,a);s((r=r.apply(e,t)).next())}),C=new class{constructor(){this.metadata={name:"No-op Provider"}}resolveBooleanEvaluation(e,t){return this.noOp(t)}resolveStringEvaluation(e,t){return this.noOp(t)}resolveNumberEvaluation(e,t){return this.noOp(t)}resolveObjectEvaluation(e,t){return this.noOp(t)}noOp(e){return Promise.resolve({value:e,reason:"No-op"})}},S=class{constructor(e,t,r,n,i,o,a,s,l={}){this.providerAccessor=e,this.providerStatusAccessor=t,this.emitterAccessor=r,this.apiContextAccessor=n,this.apiHooksAccessor=i,this.transactionContextAccessor=o,this.globalLogger=a,this.options=s,this._hooks=[],this._context=l}get metadata(){var e,t;return{name:null!=(e=this.options.domain)?e:this.options.name,domain:null!=(t=this.options.domain)?t:this.options.name,version:this.options.version,providerMetadata:this.providerAccessor().metadata}}get providerStatus(){return this.providerStatusAccessor()}addHandler(e,t,r){var n;if(this.emitterAccessor().addHandler(e,t),(0,d.statusMatchesEvent)(e,this._providerStatus))try{t({clientName:this.metadata.name,domain:this.metadata.domain,providerName:this._provider.metadata.name})}catch(e){null==(n=this._logger)||n.error("Error running event handler:",e)}(null==r?void 0:r.signal)&&"function"==typeof r.signal.addEventListener&&r.signal.addEventListener("abort",()=>{this.removeHandler(e,t)})}removeHandler(e,t){this.emitterAccessor().removeHandler(e,t)}getHandlers(e){return this.emitterAccessor().getHandlers(e)}setLogger(e){return this._clientLogger=new d.SafeLogger(e),this}setContext(e){return this._context=e,this}getContext(){return this._context}addHooks(...e){return this._hooks=[...this._hooks,...e],this}getHooks(){return this._hooks}clearHooks(){return this._hooks=[],this}getBooleanValue(e,t,r,n){return E(this,null,function*(){return(yield this.getBooleanDetails(e,t,r,n)).value})}getBooleanDetails(e,t,r,n){return this.evaluate(e,this._provider.resolveBooleanEvaluation,t,"boolean",r,n)}getStringValue(e,t,r,n){return E(this,null,function*(){return(yield this.getStringDetails(e,t,r,n)).value})}getStringDetails(e,t,r,n){return this.evaluate(e,this._provider.resolveStringEvaluation,t,"string",r,n)}getNumberValue(e,t,r,n){return E(this,null,function*(){return(yield this.getNumberDetails(e,t,r,n)).value})}getNumberDetails(e,t,r,n){return this.evaluate(e,this._provider.resolveNumberEvaluation,t,"number",r,n)}getObjectValue(e,t,r,n){return E(this,null,function*(){return(yield this.getObjectDetails(e,t,r,n)).value})}getObjectDetails(e,t,r,n){return this.evaluate(e,this._provider.resolveObjectEvaluation,t,"object",r,n)}track(e,t={},r={}){var n,i;try{if(this.shortCircuitIfNotReady(),"function"==typeof this._provider.track){let o=Object.freeze(this.mergeContexts(t));return null==(i=(n=this._provider).track)?void 0:i.call(n,e,o,r)}this._logger.debug("Provider does not support the track function; will no-op.")}catch(e){this._logger.debug("Error recording tracking event.",e)}}evaluate(e,t,r,n){return E(this,arguments,function*(e,t,r,n,i={},o={}){var a;let s,l=[...this.apiHooksAccessor(),...this.getHooks(),...o.hooks||[],...this._provider.hooks||[]],u=[...l].reverse(),h=this.mergeContexts(i),c={flagKey:e,defaultValue:r,flagValueType:n,clientMetadata:this.metadata,providerMetadata:this._provider.metadata,context:h,logger:this._logger};try{let n,i,h=yield this.beforeHooks(l,c,o);this.shortCircuitIfNotReady();let f=yield t.call(this._provider,e,r,h,this._logger),g=(n=_({},f),i={flagMetadata:Object.freeze(null!=(a=f.flagMetadata)?a:{}),flagKey:e},v(n,p(i)));if(g.errorCode){let t=(0,d.instantiateErrorByErrorCode)(g.errorCode,g.errorMessage);yield this.errorHooks(u,c,t,o),s=this.getErrorEvaluationDetails(e,r,t,g.flagMetadata)}else yield this.afterHooks(u,c,g,o),s=g}catch(t){yield this.errorHooks(u,c,t,o),s=this.getErrorEvaluationDetails(e,r,t)}return yield this.finallyHooks(u,c,s,o),s})}beforeHooks(e,t,r){return E(this,null,function*(){var n;for(let i of e)Object.freeze(t),Object.assign(t.context,_(_({},t.context),(yield null==(n=null==i?void 0:i.before)?void 0:n.call(i,t,Object.freeze(r.hookHints)))));return Object.freeze(t.context)})}afterHooks(e,t,r,n){return E(this,null,function*(){var i;for(let o of e)yield null==(i=null==o?void 0:o.after)?void 0:i.call(o,t,r,n.hookHints)})}errorHooks(e,t,r,n){return E(this,null,function*(){var i;for(let o of e)try{yield null==(i=null==o?void 0:o.error)?void 0:i.call(o,t,r,n.hookHints)}catch(e){this._logger.error(`Unhandled error during 'error' hook: ${e}`),e instanceof Error&&this._logger.error(e.stack),this._logger.error(null==e?void 0:e.stack)}})}finallyHooks(e,t,r,n){return E(this,null,function*(){var i;for(let o of e)try{yield null==(i=null==o?void 0:o.finally)?void 0:i.call(o,t,r,n.hookHints)}catch(e){this._logger.error(`Unhandled error during 'finally' hook: ${e}`),e instanceof Error&&this._logger.error(e.stack),this._logger.error(null==e?void 0:e.stack)}})}get _provider(){return this.providerAccessor()}get _providerStatus(){return this.providerStatusAccessor()}get _logger(){return this._clientLogger||this.globalLogger()}mergeContexts(e){return _(_(_(_({},this.apiContextAccessor()),this.transactionContextAccessor()),this._context),e)}shortCircuitIfNotReady(){if(this.providerStatus===d.ServerProviderStatus.NOT_READY)throw new d.ProviderNotReadyError("provider has not yet initialized");if(this.providerStatus===d.ServerProviderStatus.FATAL)throw new d.ProviderFatalError("provider is in an irrecoverable error state")}getErrorEvaluationDetails(e,t,r,n={}){let i=null==r?void 0:r.message;return{errorCode:(null==r?void 0:r.code)||d.ErrorCode.GENERAL,errorMessage:i,value:t,reason:d.StandardResolutionReasons.ERROR,flagMetadata:Object.freeze(n),flagKey:e}}},A=class extends d.GenericEventEmitter{constructor(){super(),this.eventEmitter=new f.EventEmitter({captureRejections:!0}),this.eventEmitter.on("error",e=>{var t;null==(t=this._logger)||t.error("Error running event handler:",e)})}},O=new class{getTransactionContext(){return{}}setTransactionContext(e,t,...r){t(...r)}},T=Symbol.for("@openfeature/js-sdk/api"),k=globalThis;(class e extends d.OpenFeatureCommonAPI{constructor(){super("server"),this._statusEnumType=d.ServerProviderStatus,this._apiEmitter=new A,this._defaultProvider=new d.ProviderWrapper(C,d.ServerProviderStatus.NOT_READY,this._statusEnumType),this._domainScopedProviders=new Map,this._createEventEmitter=()=>new A,this._transactionContextPropagator=O}static getInstance(){let t=k[T];if(t)return t;let r=new e;return k[T]=r,r}getProviderStatus(e){var t,r;return e&&null!=(r=null==(t=this._domainScopedProviders.get(e))?void 0:t.status)?r:this._defaultProvider.status}setProviderAndWait(e,t){return E(this,null,function*(){let r=(0,d.stringOrUndefined)(e),n=r?(0,d.objectOrUndefined)(t):(0,d.objectOrUndefined)(e);yield this.setAwaitableProvider(r,n)})}setProvider(e,t){let r=(0,d.stringOrUndefined)(e),n=r?(0,d.objectOrUndefined)(t):(0,d.objectOrUndefined)(e);return Promise.resolve(this.setAwaitableProvider(r,n)).catch(e=>{this._logger.error("Error during provider initialization:",e)}),this}getProvider(e){return this.getProviderForClient(e)}setContext(e){return this._context=e,this}getContext(){return this._context}getClient(e,t,r){var n,i;let o=(0,d.stringOrUndefined)(e);return new S(()=>this.getProviderForClient(o),()=>this.getProviderStatus(o),()=>this.buildAndCacheEventEmitterForClient(o),()=>this.getContext(),()=>this.getHooks(),()=>this.getTransactionContext(),()=>this._logger,{domain:o,version:(0,d.stringOrUndefined)(t)},null!=(i=null!=(n=(0,d.objectOrUndefined)(e))?n:(0,d.objectOrUndefined)(t))?i:(0,d.objectOrUndefined)(r))}clearProviders(){return super.clearProvidersAndSetDefault(C)}setTransactionContextPropagator(e){let t="Invalid TransactionContextPropagator, will not be set: ";return"function"!=typeof(null==e?void 0:e.getTransactionContext)?this._logger.error(`${t}: getTransactionContext is not a function.`):"function"!=typeof(null==e?void 0:e.setTransactionContext)?this._logger.error(`${t}: setTransactionContext is not a function.`):this._transactionContextPropagator=e,this}setTransactionContext(e,t,...r){this._transactionContextPropagator.setTransactionContext(e,t,...r)}getTransactionContext(){try{return this._transactionContextPropagator.getTransactionContext()}catch(e){return this._logger.error(`Error getting transaction context: ${null==e?void 0:e.message}, returning empty context.`),this._logger.error(null==e?void 0:e.stack),{}}}}).getInstance(),(e=t||(t={})).MATCHES="MATCHES",e.NOT_MATCHES="NOT_MATCHES",e.GTE="GTE",e.GT="GT",e.LTE="LTE",e.LT="LT",e.ONE_OF="ONE_OF",e.NOT_ONE_OF="NOT_ONE_OF",e.IS_NULL="IS_NULL";class w{}class P extends w{getShard(e,t){return parseInt(a(e).slice(0,8),16)%t}}function N(e,r,n,i,o,a){if(!e)return{value:i,reason:"ERROR",errorCode:d.ErrorCode.PROVIDER_NOT_READY};let{targetingKey:s,...l}=o;if(!s)return{value:i,reason:"ERROR",errorCode:d.ErrorCode.TARGETING_KEY_MISSING};let u={id:s,...l};try{return function(e,r,n,i,o,a){if(!(null==e?void 0:e.enabled))return a.debug("returning default assignment because flag is disabled",{flagKey:e?e.key:"undefined",subjectKey:n}),{value:o,reason:d.StandardResolutionReasons.DISABLED};if(!function(e,t){if("boolean"===e)return"BOOLEAN"===t;if("string"===e)return"STRING"===t;if("number"===e)return"INTEGER"===t||"NUMERIC"===t;if("object"===e)return"JSON"===t;throw Error(`Invalid expected type: ${e}`)}(r,e.variationType))return a.debug("variant value type mismatch, returning default value",{flagKey:e.key,subjectKey:n,expectedType:r,variantType:e.variationType}),{value:o,reason:d.StandardResolutionReasons.ERROR,errorCode:d.ErrorCode.TYPE_MISMATCH};let s=new Date;for(let r of e.allocations){if(r.startAt&&s=new Date(r.endAt)){a.debug("allocation after end date",{flagKey:e.key,subjectKey:n,allocationKey:r.key,endAt:r.endAt});continue}if(!function(e,r,n){return null==e||!e.length||(n.debug("evaluating rules",{rules:JSON.stringify(e),subjectAttributes:r}),e.some(e=>!(function(e,r){return r.map(r=>(function(e,r){var n,i,o;let a=e[r.attribute];if(r.operator===t.IS_NULL)return r.value?null==a:null!=a;if(null!=a)switch(r.operator){case t.GTE:case t.GT:case t.LTE:case t.LT:return n=a,i=r.value,((e,n)=>r.operator===t.GTE?e>=n:r.operator===t.GT?e>n:r.operator===t.LTE?e<=n:e{let o=function(e,t,r){var n,i;let o=new P().getShard((n=e.salt,i=t,`${n}-${i}`),e.totalShards);return e.ranges.some(e=>{var t,r;return t=o,(r=e).start<=t&&t{this.resolve=()=>{this.cleanup(),e()},this.reject=e=>{this.cleanup(),t(e)}}),new Promise(()=>{this.timeoutId=setTimeout(()=>{t()},e)})])}async wait(){try{await this.promise}finally{this.cleanup()}}complete(){this.resolve&&this.resolve()}fail(e){this.reject&&this.reject(e)}isInitializing(){return void 0!==this.resolve}cleanup(){this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=void 0),this.resolve=void 0,this.reject=void 0}}class j{constructor(e){this.options=e,this.metadata={name:"datadog-node-server"},this.runsOn="server",this.hooks=[],this.events=new A,this.exposureCache=new c(5e4)}getConfiguration(){return this.configuration}setConfiguration(e){var t,r,n;let i=null==(t=this.configuration)?void 0:t.createdAt,o=!!this.configuration;if(o&&this.configuration!==e){this.events.emit(d.ServerProviderEvents.ConfigurationChanged),i!==(null==e?void 0:e.createdAt)&&(null==(r=this.exposureCache)||r.clear()),this.configuration=e;return}this.configuration=e,(null==(n=this.initController)?void 0:n.isInitializing())?this.initController.complete():o||this.events.emit(d.ServerProviderEvents.Ready)}setError(e){var t;(null==(t=this.initController)?void 0:t.isInitializing())?this.initController.fail(e):this.events.emit(d.ServerProviderEvents.Error,{error:e})}async initialize(){var e,t;if(this.configuration)return;let r=null!=(e=this.options.initializationTimeoutMs)?e:3e4;this.initController=new R(r,()=>this.setError(Error(`Initialization timeout after ${r}ms`))),await this.initController.wait(),await (null==(t=this.exposureCache)?void 0:t.init())}async resolveBooleanEvaluation(e,t,r,n){let i=N(this.configuration,"boolean",e,t,r,n);return this.handleExposure(e,r,i),i}async resolveStringEvaluation(e,t,r,n){let i=N(this.configuration,"string",e,t,r,n);return this.handleExposure(e,r,i),i}async resolveNumberEvaluation(e,t,r,n){let i=N(this.configuration,"number",e,t,r,n);return this.handleExposure(e,r,i),i}async resolveObjectEvaluation(e,t,r,n){let i=N(this.configuration,"object",e,t,r,n);return this.handleExposure(e,r,i),i}handleExposure(e,t,r){var n,i,o;let a=Date.now(),s=function(e,t){var r,n;if(!(null==(r=t.flagMetadata)?void 0:r.doLog))return;let i=null==(n=t.flagMetadata)?void 0:n.allocationKey,o=t.variant;if(!i||!o)return;let{targetingKey:a="",...s}=e;return{allocation:{key:i},flag:{key:t.flagKey},variant:{key:o},subject:{id:a,attributes:s}}}(t,{...r,flagKey:e,flagMetadata:null!=(n=r.flagMetadata)?n:{}});!s||(null==(i=this.exposureCache)?void 0:i.has(s))||this.options.exposureChannel.hasSubscribers&&(this.options.exposureChannel.publish({...s,timestamp:a}),null==(o=this.exposureCache)||o.set(s))}}})(),module.exports=n})(); \ No newline at end of file diff --git a/vendor/rspack.config.js b/vendor/rspack.config.js index d09e067850c..0c538039373 100644 --- a/vendor/rspack.config.js +++ b/vendor/rspack.config.js @@ -27,6 +27,7 @@ module.exports = { moduleIds: 'named', }, externals: { + '@openfeature/core': '@openfeature/core', '@opentelemetry/api': '@opentelemetry/api' }, plugins: [ From 3c8f89cde0a58bc6c5a228911e15755cefd64430 Mon Sep 17 00:00:00 2001 From: rochdev Date: Thu, 4 Dec 2025 15:01:08 -0500 Subject: [PATCH 66/95] add todos --- vendor/rspack.config.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/vendor/rspack.config.js b/vendor/rspack.config.js index 0c538039373..08e764bac42 100644 --- a/vendor/rspack.config.js +++ b/vendor/rspack.config.js @@ -1,5 +1,13 @@ 'use strict' +// TODO: Stop depending on `@opentelemetry/api` and instead intercept the user +// version with an instrumentation. +// TODO: Stop depending on `@openfeature/server-sdk` and `@openfeature/core` and +// instead intercept the user version with an instrumentation. +// TODO: Fix `import-in-the-middle` so that it doesn't interfere with the global +// object or switch to our own internal loader and remove the dependency. +// TODO: Vendor `dc-polyfill` and figure out why it fails the tests. + const { CopyRspackPlugin } = require('@rspack/core') const { LicenseWebpackPlugin } = require('license-webpack-plugin') const { join } = require('path') From 7d7061c7357a59a18c170089644e23490aa52d96 Mon Sep 17 00:00:00 2001 From: rochdev Date: Thu, 4 Dec 2025 15:03:11 -0500 Subject: [PATCH 67/95] move datadog openfeature to a dependency --- package.json | 2 +- .../@datadog/openfeature-node-server/LICENSE | 201 ------------------ .../@datadog/openfeature-node-server/index.js | 1 - vendor/package.json | 1 - vendor/yarn.lock | 25 --- yarn.lock | 28 ++- 6 files changed, 25 insertions(+), 233 deletions(-) delete mode 100644 packages/node_modules/@datadog/openfeature-node-server/LICENSE delete mode 100644 packages/node_modules/@datadog/openfeature-node-server/index.js diff --git a/package.json b/package.json index 5db2069e56a..679f157e915 100644 --- a/package.json +++ b/package.json @@ -123,7 +123,7 @@ "version.js" ], "dependencies": { - "@openfeature/core": "^1.8.1", + "@datadog/openfeature-node-server": "^0.2.0", "dc-polyfill": "^0.1.10", "import-in-the-middle": "^1.14.2" }, diff --git a/packages/node_modules/@datadog/openfeature-node-server/LICENSE b/packages/node_modules/@datadog/openfeature-node-server/LICENSE deleted file mode 100644 index 4a0027eec4e..00000000000 --- a/packages/node_modules/@datadog/openfeature-node-server/LICENSE +++ /dev/null @@ -1,201 +0,0 @@ - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "[]" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright 2025 Datadog, Inc. - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. diff --git a/packages/node_modules/@datadog/openfeature-node-server/index.js b/packages/node_modules/@datadog/openfeature-node-server/index.js deleted file mode 100644 index 5b36b56ac2b..00000000000 --- a/packages/node_modules/@datadog/openfeature-node-server/index.js +++ /dev/null @@ -1 +0,0 @@ -(()=>{var e={"./spark-md5/spark-md5.js":function(e){e.exports=function(e){"use strict";var t=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"];function r(e,t){var r=e[0],n=e[1],i=e[2],o=e[3];r+=(n&i|~n&o)+t[0]-0x28955b88|0,o+=((r=(r<<7|r>>>25)+n|0)&n|~r&i)+t[1]-0x173848aa|0,i+=((o=(o<<12|o>>>20)+r|0)&r|~o&n)+t[2]+0x242070db|0,n+=((i=(i<<17|i>>>15)+o|0)&o|~i&r)+t[3]-0x3e423112|0,r+=((n=(n<<22|n>>>10)+i|0)&i|~n&o)+t[4]-0xa83f051|0,o+=((r=(r<<7|r>>>25)+n|0)&n|~r&i)+t[5]+0x4787c62a|0,i+=((o=(o<<12|o>>>20)+r|0)&r|~o&n)+t[6]-0x57cfb9ed|0,n+=((i=(i<<17|i>>>15)+o|0)&o|~i&r)+t[7]-0x2b96aff|0,r+=((n=(n<<22|n>>>10)+i|0)&i|~n&o)+t[8]+0x698098d8|0,o+=((r=(r<<7|r>>>25)+n|0)&n|~r&i)+t[9]-0x74bb0851|0,i+=((o=(o<<12|o>>>20)+r|0)&r|~o&n)+t[10]-42063|0,n+=((i=(i<<17|i>>>15)+o|0)&o|~i&r)+t[11]-0x76a32842|0,r+=((n=(n<<22|n>>>10)+i|0)&i|~n&o)+t[12]+0x6b901122|0,o+=((r=(r<<7|r>>>25)+n|0)&n|~r&i)+t[13]-0x2678e6d|0,i+=((o=(o<<12|o>>>20)+r|0)&r|~o&n)+t[14]-0x5986bc72|0,n+=((i=(i<<17|i>>>15)+o|0)&o|~i&r)+t[15]+0x49b40821|0,r+=((n=(n<<22|n>>>10)+i|0)&o|i&~o)+t[1]-0x9e1da9e|0,o+=((r=(r<<5|r>>>27)+n|0)&i|n&~i)+t[6]-0x3fbf4cc0|0,i+=((o=(o<<9|o>>>23)+r|0)&n|r&~n)+t[11]+0x265e5a51|0,n+=((i=(i<<14|i>>>18)+o|0)&r|o&~r)+t[0]-0x16493856|0,r+=((n=(n<<20|n>>>12)+i|0)&o|i&~o)+t[5]-0x29d0efa3|0,o+=((r=(r<<5|r>>>27)+n|0)&i|n&~i)+t[10]+0x2441453|0,i+=((o=(o<<9|o>>>23)+r|0)&n|r&~n)+t[15]-0x275e197f|0,n+=((i=(i<<14|i>>>18)+o|0)&r|o&~r)+t[4]-0x182c0438|0,r+=((n=(n<<20|n>>>12)+i|0)&o|i&~o)+t[9]+0x21e1cde6|0,o+=((r=(r<<5|r>>>27)+n|0)&i|n&~i)+t[14]-0x3cc8f82a|0,i+=((o=(o<<9|o>>>23)+r|0)&n|r&~n)+t[3]-0xb2af279|0,n+=((i=(i<<14|i>>>18)+o|0)&r|o&~r)+t[8]+0x455a14ed|0,r+=((n=(n<<20|n>>>12)+i|0)&o|i&~o)+t[13]-0x561c16fb|0,o+=((r=(r<<5|r>>>27)+n|0)&i|n&~i)+t[2]-0x3105c08|0,i+=((o=(o<<9|o>>>23)+r|0)&n|r&~n)+t[7]+0x676f02d9|0,n+=((i=(i<<14|i>>>18)+o|0)&r|o&~r)+t[12]-0x72d5b376|0,r+=((n=(n<<20|n>>>12)+i|0)^i^o)+t[5]-378558|0,o+=((r=(r<<4|r>>>28)+n|0)^n^i)+t[8]-0x788e097f|0,i+=((o=(o<<11|o>>>21)+r|0)^r^n)+t[11]+0x6d9d6122|0,n+=((i=(i<<16|i>>>16)+o|0)^o^r)+t[14]-0x21ac7f4|0,r+=((n=(n<<23|n>>>9)+i|0)^i^o)+t[1]-0x5b4115bc|0,o+=((r=(r<<4|r>>>28)+n|0)^n^i)+t[4]+0x4bdecfa9|0,i+=((o=(o<<11|o>>>21)+r|0)^r^n)+t[7]-0x944b4a0|0,n+=((i=(i<<16|i>>>16)+o|0)^o^r)+t[10]-0x41404390|0,r+=((n=(n<<23|n>>>9)+i|0)^i^o)+t[13]+0x289b7ec6|0,o+=((r=(r<<4|r>>>28)+n|0)^n^i)+t[0]-0x155ed806|0,i+=((o=(o<<11|o>>>21)+r|0)^r^n)+t[3]-0x2b10cf7b|0,n+=((i=(i<<16|i>>>16)+o|0)^o^r)+t[6]+0x4881d05|0,r+=((n=(n<<23|n>>>9)+i|0)^i^o)+t[9]-0x262b2fc7|0,o+=((r=(r<<4|r>>>28)+n|0)^n^i)+t[12]-0x1924661b|0,i+=((o=(o<<11|o>>>21)+r|0)^r^n)+t[15]+0x1fa27cf8|0,n+=((i=(i<<16|i>>>16)+o|0)^o^r)+t[2]-0x3b53a99b|0,n=(n<<23|n>>>9)+i|0,r+=(i^(n|~o))+t[0]-0xbd6ddbc|0,r=(r<<6|r>>>26)+n|0,o+=(n^(r|~i))+t[7]+0x432aff97|0,o=(o<<10|o>>>22)+r|0,i+=(r^(o|~n))+t[14]-0x546bdc59|0,i=(i<<15|i>>>17)+o|0,n+=(o^(i|~r))+t[5]-0x36c5fc7|0,n=(n<<21|n>>>11)+i|0,r+=(i^(n|~o))+t[12]+0x655b59c3|0,r=(r<<6|r>>>26)+n|0,o+=(n^(r|~i))+t[3]-0x70f3336e|0,o=(o<<10|o>>>22)+r|0,i+=(r^(o|~n))+t[10]-1051523|0,i=(i<<15|i>>>17)+o|0,n+=(o^(i|~r))+t[1]-0x7a7ba22f|0,n=(n<<21|n>>>11)+i|0,r+=(i^(n|~o))+t[8]+0x6fa87e4f|0,r=(r<<6|r>>>26)+n|0,o+=(n^(r|~i))+t[15]-0x1d31920|0,o=(o<<10|o>>>22)+r|0,i+=(r^(o|~n))+t[6]-0x5cfebcec|0,i=(i<<15|i>>>17)+o|0,n+=(o^(i|~r))+t[13]+0x4e0811a1|0,n=(n<<21|n>>>11)+i|0,r+=(i^(n|~o))+t[4]-0x8ac817e|0,r=(r<<6|r>>>26)+n|0,o+=(n^(r|~i))+t[11]-0x42c50dcb|0,o=(o<<10|o>>>22)+r|0,i+=(r^(o|~n))+t[2]+0x2ad7d2bb|0,i=(i<<15|i>>>17)+o|0,n+=(o^(i|~r))+t[9]-0x14792c6f|0,n=(n<<21|n>>>11)+i|0,e[0]=r+e[0]|0,e[1]=n+e[1]|0,e[2]=i+e[2]|0,e[3]=o+e[3]|0}function n(e){var t,r=[];for(t=0;t<64;t+=4)r[t>>2]=e.charCodeAt(t)+(e.charCodeAt(t+1)<<8)+(e.charCodeAt(t+2)<<16)+(e.charCodeAt(t+3)<<24);return r}function i(e){var t,r=[];for(t=0;t<64;t+=4)r[t>>2]=e[t]+(e[t+1]<<8)+(e[t+2]<<16)+(e[t+3]<<24);return r}function o(e){var t,i,o,a,s,l,u=e.length,h=[0x67452301,-0x10325477,-0x67452302,0x10325476];for(t=64;t<=u;t+=64)r(h,n(e.substring(t-64,t)));for(i=(e=e.substring(t-64)).length,o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],t=0;t>2]|=e.charCodeAt(t)<<(t%4<<3);if(o[t>>2]|=128<<(t%4<<3),t>55)for(r(h,o),t=0;t<16;t+=1)o[t]=0;return s=parseInt((a=(a=8*u).toString(16).match(/(.*?)(.{0,8})$/))[2],16),l=parseInt(a[1],16)||0,o[14]=s,o[15]=l,r(h,o),h}function a(e){var r;for(r=0;r>8*r+4&15]+t[e>>8*r&15];return n}(e[r]);return e.join("")}function s(e){return/[\u0080-\uFFFF]/.test(e)&&(e=unescape(encodeURIComponent(e))),e}function l(e){var t,r=[],n=e.length;for(t=0;tu)?new ArrayBuffer(0):(o=new Uint8Array(i=new ArrayBuffer(n=u-l)),a=new Uint8Array(this,l,n),o.set(a),i)}}(),u.prototype.append=function(e){return this.appendBinary(s(e)),this},u.prototype.appendBinary=function(e){this._buff+=e,this._length+=e.length;var t,i=this._buff.length;for(t=64;t<=i;t+=64)r(this._hash,n(this._buff.substring(t-64,t)));return this._buff=this._buff.substring(t-64),this},u.prototype.end=function(e){var t,r,n=this._buff,i=n.length,o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(t=0;t>2]|=n.charCodeAt(t)<<(t%4<<3);return this._finish(o,i),r=a(this._hash),e&&(r=l(r)),this.reset(),r},u.prototype.reset=function(){return this._buff="",this._length=0,this._hash=[0x67452301,-0x10325477,-0x67452302,0x10325476],this},u.prototype.getState=function(){return{buff:this._buff,length:this._length,hash:this._hash.slice()}},u.prototype.setState=function(e){return this._buff=e.buff,this._length=e.length,this._hash=e.hash,this},u.prototype.destroy=function(){delete this._hash,delete this._buff,delete this._length},u.prototype._finish=function(e,t){var n,i,o,a=t;if(e[a>>2]|=128<<(a%4<<3),a>55)for(r(this._hash,e),a=0;a<16;a+=1)e[a]=0;i=parseInt((n=(n=8*this._length).toString(16).match(/(.*?)(.{0,8})$/))[2],16),o=parseInt(n[1],16)||0,e[14]=i,e[15]=o,r(this._hash,e)},u.hash=function(e,t){return u.hashBinary(s(e),t)},u.hashBinary=function(e,t){var r=a(o(e));return t?l(r):r},u.ArrayBuffer=function(){this.reset()},u.ArrayBuffer.prototype.append=function(e){var t,n,o,a=(t=this._buff.buffer,(n=new Uint8Array(t.byteLength+e.byteLength)).set(new Uint8Array(t)),n.set(new Uint8Array(e),t.byteLength),n),s=a.length;for(this._length+=e.byteLength,o=64;o<=s;o+=64)r(this._hash,i(a.subarray(o-64,o)));return this._buff=new Uint8Array(o-64>2]|=n[t]<<(t%4<<3);return this._finish(o,i),r=a(this._hash),e&&(r=l(r)),this.reset(),r},u.ArrayBuffer.prototype.reset=function(){return this._buff=new Uint8Array(0),this._length=0,this._hash=[0x67452301,-0x10325477,-0x67452302,0x10325476],this},u.ArrayBuffer.prototype.getState=function(){var e,t=u.prototype.getState.call(this);return e=t.buff,t.buff=String.fromCharCode.apply(null,new Uint8Array(e)),t},u.ArrayBuffer.prototype.setState=function(e){return e.buff=function(e,t){var r,n=e.length,i=new ArrayBuffer(n),o=new Uint8Array(i);for(r=0;r>2]|=e[t]<<(t%4<<3);if(o[t>>2]|=128<<(t%4<<3),t>55)for(r(h,o),t=0;t<16;t+=1)o[t]=0;return s=parseInt((a=(a=8*u).toString(16).match(/(.*?)(.{0,8})$/))[2],16),l=parseInt(a[1],16)||0,o[14]=s,o[15]=l,r(h,o),h}(new Uint8Array(e)));return t?l(n):n},u}()}},t={};function r(n){var i=t[n];if(void 0!==i)return i.exports;var o=t[n]={exports:{}};return e[n](o,o.exports,r),o.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};(()=>{"use strict";r.r(n),r.d(n,{DatadogNodeServerProvider:()=>j});var e,t,i=r("./spark-md5/spark-md5.js"),o=r.n(i);function a(e,t=""){return new(o())().append(t).append(e).end()}function s(e){return a(JSON.stringify({flag:{key:e.flag.key},subject:{id:e.subject.id,attributes:e.subject.attributes}}))}function l(e){return a(JSON.stringify(e))}class u{constructor(e){this.delegate=e}init(){return Promise.resolve()}has(e){return this.get(e)===l(e)}get(e){return this.delegate.get(s(e))}set(e){this.delegate.set(s(e),l(e))}entries(){return this.delegate.entries()}clear(){this.delegate.clear()}}class h{constructor(e){this.capacity=e,this.cache=new Map,this.size=this.cache.size}[(Symbol.toStringTag,Symbol.iterator)](){return this.cache[Symbol.iterator]()}forEach(e){this.cache.forEach(e)}entries(){return this.cache.entries()}clear(){this.cache.clear()}delete(e){return this.cache.delete(e)}keys(){return this.cache.keys()}values(){return this.cache.values()}has(e){return this.cache.has(e)}get(e){if(!this.has(e))return;let t=this.cache.get(e);return void 0!==t&&(this.delete(e),this.cache.set(e,t)),t}set(e,t){if(0===this.capacity)return this;if(this.cache.has(e))this.cache.delete(e);else if(this.cache.size>=this.capacity){let e=this.cache.keys().next().value;e&&this.delete(e)}return this.cache.set(e,t),this}}class c extends u{constructor(e){super(new h(e))}}let d=require("@openfeature/core"),f=require("node:events");require("async_hooks");var g=Object.defineProperty,v=Object.defineProperties,p=Object.getOwnPropertyDescriptors,y=Object.getOwnPropertySymbols,b=Object.prototype.hasOwnProperty,x=Object.prototype.propertyIsEnumerable,m=(e,t,r)=>t in e?g(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,_=(e,t)=>{for(var r in t||(t={}))b.call(t,r)&&m(e,r,t[r]);if(y)for(var r of y(t))x.call(t,r)&&m(e,r,t[r]);return e},E=(e,t,r)=>new Promise((n,i)=>{var o=e=>{try{s(r.next(e))}catch(e){i(e)}},a=e=>{try{s(r.throw(e))}catch(e){i(e)}},s=e=>e.done?n(e.value):Promise.resolve(e.value).then(o,a);s((r=r.apply(e,t)).next())}),C=new class{constructor(){this.metadata={name:"No-op Provider"}}resolveBooleanEvaluation(e,t){return this.noOp(t)}resolveStringEvaluation(e,t){return this.noOp(t)}resolveNumberEvaluation(e,t){return this.noOp(t)}resolveObjectEvaluation(e,t){return this.noOp(t)}noOp(e){return Promise.resolve({value:e,reason:"No-op"})}},S=class{constructor(e,t,r,n,i,o,a,s,l={}){this.providerAccessor=e,this.providerStatusAccessor=t,this.emitterAccessor=r,this.apiContextAccessor=n,this.apiHooksAccessor=i,this.transactionContextAccessor=o,this.globalLogger=a,this.options=s,this._hooks=[],this._context=l}get metadata(){var e,t;return{name:null!=(e=this.options.domain)?e:this.options.name,domain:null!=(t=this.options.domain)?t:this.options.name,version:this.options.version,providerMetadata:this.providerAccessor().metadata}}get providerStatus(){return this.providerStatusAccessor()}addHandler(e,t,r){var n;if(this.emitterAccessor().addHandler(e,t),(0,d.statusMatchesEvent)(e,this._providerStatus))try{t({clientName:this.metadata.name,domain:this.metadata.domain,providerName:this._provider.metadata.name})}catch(e){null==(n=this._logger)||n.error("Error running event handler:",e)}(null==r?void 0:r.signal)&&"function"==typeof r.signal.addEventListener&&r.signal.addEventListener("abort",()=>{this.removeHandler(e,t)})}removeHandler(e,t){this.emitterAccessor().removeHandler(e,t)}getHandlers(e){return this.emitterAccessor().getHandlers(e)}setLogger(e){return this._clientLogger=new d.SafeLogger(e),this}setContext(e){return this._context=e,this}getContext(){return this._context}addHooks(...e){return this._hooks=[...this._hooks,...e],this}getHooks(){return this._hooks}clearHooks(){return this._hooks=[],this}getBooleanValue(e,t,r,n){return E(this,null,function*(){return(yield this.getBooleanDetails(e,t,r,n)).value})}getBooleanDetails(e,t,r,n){return this.evaluate(e,this._provider.resolveBooleanEvaluation,t,"boolean",r,n)}getStringValue(e,t,r,n){return E(this,null,function*(){return(yield this.getStringDetails(e,t,r,n)).value})}getStringDetails(e,t,r,n){return this.evaluate(e,this._provider.resolveStringEvaluation,t,"string",r,n)}getNumberValue(e,t,r,n){return E(this,null,function*(){return(yield this.getNumberDetails(e,t,r,n)).value})}getNumberDetails(e,t,r,n){return this.evaluate(e,this._provider.resolveNumberEvaluation,t,"number",r,n)}getObjectValue(e,t,r,n){return E(this,null,function*(){return(yield this.getObjectDetails(e,t,r,n)).value})}getObjectDetails(e,t,r,n){return this.evaluate(e,this._provider.resolveObjectEvaluation,t,"object",r,n)}track(e,t={},r={}){var n,i;try{if(this.shortCircuitIfNotReady(),"function"==typeof this._provider.track){let o=Object.freeze(this.mergeContexts(t));return null==(i=(n=this._provider).track)?void 0:i.call(n,e,o,r)}this._logger.debug("Provider does not support the track function; will no-op.")}catch(e){this._logger.debug("Error recording tracking event.",e)}}evaluate(e,t,r,n){return E(this,arguments,function*(e,t,r,n,i={},o={}){var a;let s,l=[...this.apiHooksAccessor(),...this.getHooks(),...o.hooks||[],...this._provider.hooks||[]],u=[...l].reverse(),h=this.mergeContexts(i),c={flagKey:e,defaultValue:r,flagValueType:n,clientMetadata:this.metadata,providerMetadata:this._provider.metadata,context:h,logger:this._logger};try{let n,i,h=yield this.beforeHooks(l,c,o);this.shortCircuitIfNotReady();let f=yield t.call(this._provider,e,r,h,this._logger),g=(n=_({},f),i={flagMetadata:Object.freeze(null!=(a=f.flagMetadata)?a:{}),flagKey:e},v(n,p(i)));if(g.errorCode){let t=(0,d.instantiateErrorByErrorCode)(g.errorCode,g.errorMessage);yield this.errorHooks(u,c,t,o),s=this.getErrorEvaluationDetails(e,r,t,g.flagMetadata)}else yield this.afterHooks(u,c,g,o),s=g}catch(t){yield this.errorHooks(u,c,t,o),s=this.getErrorEvaluationDetails(e,r,t)}return yield this.finallyHooks(u,c,s,o),s})}beforeHooks(e,t,r){return E(this,null,function*(){var n;for(let i of e)Object.freeze(t),Object.assign(t.context,_(_({},t.context),(yield null==(n=null==i?void 0:i.before)?void 0:n.call(i,t,Object.freeze(r.hookHints)))));return Object.freeze(t.context)})}afterHooks(e,t,r,n){return E(this,null,function*(){var i;for(let o of e)yield null==(i=null==o?void 0:o.after)?void 0:i.call(o,t,r,n.hookHints)})}errorHooks(e,t,r,n){return E(this,null,function*(){var i;for(let o of e)try{yield null==(i=null==o?void 0:o.error)?void 0:i.call(o,t,r,n.hookHints)}catch(e){this._logger.error(`Unhandled error during 'error' hook: ${e}`),e instanceof Error&&this._logger.error(e.stack),this._logger.error(null==e?void 0:e.stack)}})}finallyHooks(e,t,r,n){return E(this,null,function*(){var i;for(let o of e)try{yield null==(i=null==o?void 0:o.finally)?void 0:i.call(o,t,r,n.hookHints)}catch(e){this._logger.error(`Unhandled error during 'finally' hook: ${e}`),e instanceof Error&&this._logger.error(e.stack),this._logger.error(null==e?void 0:e.stack)}})}get _provider(){return this.providerAccessor()}get _providerStatus(){return this.providerStatusAccessor()}get _logger(){return this._clientLogger||this.globalLogger()}mergeContexts(e){return _(_(_(_({},this.apiContextAccessor()),this.transactionContextAccessor()),this._context),e)}shortCircuitIfNotReady(){if(this.providerStatus===d.ServerProviderStatus.NOT_READY)throw new d.ProviderNotReadyError("provider has not yet initialized");if(this.providerStatus===d.ServerProviderStatus.FATAL)throw new d.ProviderFatalError("provider is in an irrecoverable error state")}getErrorEvaluationDetails(e,t,r,n={}){let i=null==r?void 0:r.message;return{errorCode:(null==r?void 0:r.code)||d.ErrorCode.GENERAL,errorMessage:i,value:t,reason:d.StandardResolutionReasons.ERROR,flagMetadata:Object.freeze(n),flagKey:e}}},A=class extends d.GenericEventEmitter{constructor(){super(),this.eventEmitter=new f.EventEmitter({captureRejections:!0}),this.eventEmitter.on("error",e=>{var t;null==(t=this._logger)||t.error("Error running event handler:",e)})}},O=new class{getTransactionContext(){return{}}setTransactionContext(e,t,...r){t(...r)}},T=Symbol.for("@openfeature/js-sdk/api"),k=globalThis;(class e extends d.OpenFeatureCommonAPI{constructor(){super("server"),this._statusEnumType=d.ServerProviderStatus,this._apiEmitter=new A,this._defaultProvider=new d.ProviderWrapper(C,d.ServerProviderStatus.NOT_READY,this._statusEnumType),this._domainScopedProviders=new Map,this._createEventEmitter=()=>new A,this._transactionContextPropagator=O}static getInstance(){let t=k[T];if(t)return t;let r=new e;return k[T]=r,r}getProviderStatus(e){var t,r;return e&&null!=(r=null==(t=this._domainScopedProviders.get(e))?void 0:t.status)?r:this._defaultProvider.status}setProviderAndWait(e,t){return E(this,null,function*(){let r=(0,d.stringOrUndefined)(e),n=r?(0,d.objectOrUndefined)(t):(0,d.objectOrUndefined)(e);yield this.setAwaitableProvider(r,n)})}setProvider(e,t){let r=(0,d.stringOrUndefined)(e),n=r?(0,d.objectOrUndefined)(t):(0,d.objectOrUndefined)(e);return Promise.resolve(this.setAwaitableProvider(r,n)).catch(e=>{this._logger.error("Error during provider initialization:",e)}),this}getProvider(e){return this.getProviderForClient(e)}setContext(e){return this._context=e,this}getContext(){return this._context}getClient(e,t,r){var n,i;let o=(0,d.stringOrUndefined)(e);return new S(()=>this.getProviderForClient(o),()=>this.getProviderStatus(o),()=>this.buildAndCacheEventEmitterForClient(o),()=>this.getContext(),()=>this.getHooks(),()=>this.getTransactionContext(),()=>this._logger,{domain:o,version:(0,d.stringOrUndefined)(t)},null!=(i=null!=(n=(0,d.objectOrUndefined)(e))?n:(0,d.objectOrUndefined)(t))?i:(0,d.objectOrUndefined)(r))}clearProviders(){return super.clearProvidersAndSetDefault(C)}setTransactionContextPropagator(e){let t="Invalid TransactionContextPropagator, will not be set: ";return"function"!=typeof(null==e?void 0:e.getTransactionContext)?this._logger.error(`${t}: getTransactionContext is not a function.`):"function"!=typeof(null==e?void 0:e.setTransactionContext)?this._logger.error(`${t}: setTransactionContext is not a function.`):this._transactionContextPropagator=e,this}setTransactionContext(e,t,...r){this._transactionContextPropagator.setTransactionContext(e,t,...r)}getTransactionContext(){try{return this._transactionContextPropagator.getTransactionContext()}catch(e){return this._logger.error(`Error getting transaction context: ${null==e?void 0:e.message}, returning empty context.`),this._logger.error(null==e?void 0:e.stack),{}}}}).getInstance(),(e=t||(t={})).MATCHES="MATCHES",e.NOT_MATCHES="NOT_MATCHES",e.GTE="GTE",e.GT="GT",e.LTE="LTE",e.LT="LT",e.ONE_OF="ONE_OF",e.NOT_ONE_OF="NOT_ONE_OF",e.IS_NULL="IS_NULL";class w{}class P extends w{getShard(e,t){return parseInt(a(e).slice(0,8),16)%t}}function N(e,r,n,i,o,a){if(!e)return{value:i,reason:"ERROR",errorCode:d.ErrorCode.PROVIDER_NOT_READY};let{targetingKey:s,...l}=o;if(!s)return{value:i,reason:"ERROR",errorCode:d.ErrorCode.TARGETING_KEY_MISSING};let u={id:s,...l};try{return function(e,r,n,i,o,a){if(!(null==e?void 0:e.enabled))return a.debug("returning default assignment because flag is disabled",{flagKey:e?e.key:"undefined",subjectKey:n}),{value:o,reason:d.StandardResolutionReasons.DISABLED};if(!function(e,t){if("boolean"===e)return"BOOLEAN"===t;if("string"===e)return"STRING"===t;if("number"===e)return"INTEGER"===t||"NUMERIC"===t;if("object"===e)return"JSON"===t;throw Error(`Invalid expected type: ${e}`)}(r,e.variationType))return a.debug("variant value type mismatch, returning default value",{flagKey:e.key,subjectKey:n,expectedType:r,variantType:e.variationType}),{value:o,reason:d.StandardResolutionReasons.ERROR,errorCode:d.ErrorCode.TYPE_MISMATCH};let s=new Date;for(let r of e.allocations){if(r.startAt&&s=new Date(r.endAt)){a.debug("allocation after end date",{flagKey:e.key,subjectKey:n,allocationKey:r.key,endAt:r.endAt});continue}if(!function(e,r,n){return null==e||!e.length||(n.debug("evaluating rules",{rules:JSON.stringify(e),subjectAttributes:r}),e.some(e=>!(function(e,r){return r.map(r=>(function(e,r){var n,i,o;let a=e[r.attribute];if(r.operator===t.IS_NULL)return r.value?null==a:null!=a;if(null!=a)switch(r.operator){case t.GTE:case t.GT:case t.LTE:case t.LT:return n=a,i=r.value,((e,n)=>r.operator===t.GTE?e>=n:r.operator===t.GT?e>n:r.operator===t.LTE?e<=n:e{let o=function(e,t,r){var n,i;let o=new P().getShard((n=e.salt,i=t,`${n}-${i}`),e.totalShards);return e.ranges.some(e=>{var t,r;return t=o,(r=e).start<=t&&t{this.resolve=()=>{this.cleanup(),e()},this.reject=e=>{this.cleanup(),t(e)}}),new Promise(()=>{this.timeoutId=setTimeout(()=>{t()},e)})])}async wait(){try{await this.promise}finally{this.cleanup()}}complete(){this.resolve&&this.resolve()}fail(e){this.reject&&this.reject(e)}isInitializing(){return void 0!==this.resolve}cleanup(){this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=void 0),this.resolve=void 0,this.reject=void 0}}class j{constructor(e){this.options=e,this.metadata={name:"datadog-node-server"},this.runsOn="server",this.hooks=[],this.events=new A,this.exposureCache=new c(5e4)}getConfiguration(){return this.configuration}setConfiguration(e){var t,r,n;let i=null==(t=this.configuration)?void 0:t.createdAt,o=!!this.configuration;if(o&&this.configuration!==e){this.events.emit(d.ServerProviderEvents.ConfigurationChanged),i!==(null==e?void 0:e.createdAt)&&(null==(r=this.exposureCache)||r.clear()),this.configuration=e;return}this.configuration=e,(null==(n=this.initController)?void 0:n.isInitializing())?this.initController.complete():o||this.events.emit(d.ServerProviderEvents.Ready)}setError(e){var t;(null==(t=this.initController)?void 0:t.isInitializing())?this.initController.fail(e):this.events.emit(d.ServerProviderEvents.Error,{error:e})}async initialize(){var e,t;if(this.configuration)return;let r=null!=(e=this.options.initializationTimeoutMs)?e:3e4;this.initController=new R(r,()=>this.setError(Error(`Initialization timeout after ${r}ms`))),await this.initController.wait(),await (null==(t=this.exposureCache)?void 0:t.init())}async resolveBooleanEvaluation(e,t,r,n){let i=N(this.configuration,"boolean",e,t,r,n);return this.handleExposure(e,r,i),i}async resolveStringEvaluation(e,t,r,n){let i=N(this.configuration,"string",e,t,r,n);return this.handleExposure(e,r,i),i}async resolveNumberEvaluation(e,t,r,n){let i=N(this.configuration,"number",e,t,r,n);return this.handleExposure(e,r,i),i}async resolveObjectEvaluation(e,t,r,n){let i=N(this.configuration,"object",e,t,r,n);return this.handleExposure(e,r,i),i}handleExposure(e,t,r){var n,i,o;let a=Date.now(),s=function(e,t){var r,n;if(!(null==(r=t.flagMetadata)?void 0:r.doLog))return;let i=null==(n=t.flagMetadata)?void 0:n.allocationKey,o=t.variant;if(!i||!o)return;let{targetingKey:a="",...s}=e;return{allocation:{key:i},flag:{key:t.flagKey},variant:{key:o},subject:{id:a,attributes:s}}}(t,{...r,flagKey:e,flagMetadata:null!=(n=r.flagMetadata)?n:{}});!s||(null==(i=this.exposureCache)?void 0:i.has(s))||this.options.exposureChannel.hasSubscribers&&(this.options.exposureChannel.publish({...s,timestamp:a}),null==(o=this.exposureCache)||o.set(s))}}})(),module.exports=n})(); \ No newline at end of file diff --git a/vendor/package.json b/vendor/package.json index e96536043d7..1a04cbcef78 100644 --- a/vendor/package.json +++ b/vendor/package.json @@ -4,7 +4,6 @@ "postinstall": "rspack" }, "dependencies": { - "@datadog/openfeature-node-server": "^0.2.0", "@datadog/sketches-js": "2.1.1", "@isaacs/ttlcache": "^2.0.1", "@opentelemetry/core": ">=1.14.0 <1.31.0", diff --git a/vendor/yarn.lock b/vendor/yarn.lock index c3579e49a9f..f7afbd04ea1 100644 --- a/vendor/yarn.lock +++ b/vendor/yarn.lock @@ -2,21 +2,6 @@ # yarn lockfile v1 -"@datadog/flagging-core@0.2.0": - version "0.2.0" - resolved "https://registry.yarnpkg.com/@datadog/flagging-core/-/flagging-core-0.2.0.tgz#d29d81486068b870c41cebb2524721a71184eb16" - integrity sha512-DocYjr8NFJZfsnqzu3MuBUNqgbJquq1doimkKEXI5UImLmz/tR0LO09dd651pBhoz1Pa4SKcnPaxWFLTqxWtsA== - dependencies: - spark-md5 "^3.0.2" - -"@datadog/openfeature-node-server@^0.2.0": - version "0.2.0" - resolved "https://registry.yarnpkg.com/@datadog/openfeature-node-server/-/openfeature-node-server-0.2.0.tgz#905032cc6d7d1eb1d6620aabe323ed552366d65a" - integrity sha512-Jn8lShFyqNji0tiKntLcCRwu3xrhg93fTTJS3gHSPKMfBDBKxjB9uF8Hu5Ayn2k0QuwJexx5atN9GSiWX0h5qg== - dependencies: - "@datadog/flagging-core" "0.2.0" - "@openfeature/server-sdk" "~1.18.0" - "@datadog/sketches-js@2.1.1": version "2.1.1" resolved "https://registry.yarnpkg.com/@datadog/sketches-js/-/sketches-js-2.1.1.tgz#9ec2251b3c932b4f43e1d164461fa6cb6f28b7d0" @@ -166,11 +151,6 @@ "@emnapi/runtime" "^1.5.0" "@tybys/wasm-util" "^0.10.1" -"@openfeature/server-sdk@~1.18.0": - version "1.18.0" - resolved "https://registry.yarnpkg.com/@openfeature/server-sdk/-/server-sdk-1.18.0.tgz#5fed5f1d0900b2535878db18a78295bbaebb997b" - integrity sha512-uP8nqEGBS58s3iWXx6d8vnJ6ZVt3DACJL4PWADOAuwIS4xXpID91783e9f6zQ0i1ijQpj3yx+3ZuCB2LfQMUMA== - "@opentelemetry/core@1.30.1", "@opentelemetry/core@>=1.14.0 <1.31.0": version "1.30.1" resolved "https://registry.yarnpkg.com/@opentelemetry/core/-/core-1.30.1.tgz#a0b468bb396358df801881709ea38299fc30ab27" @@ -1765,11 +1745,6 @@ source-map@^0.7.4: resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.7.6.tgz#a3658ab87e5b6429c8a1f3ba0083d4c61ca3ef02" integrity sha512-i5uvt8C3ikiWeNZSVZNWcfZPItFQOsYTUAOkcUPGd8DqDy1uOUikjt5dG+uRlwyvR108Fb9DOd4GvXfT0N2/uQ== -spark-md5@^3.0.2: - version "3.0.2" - resolved "https://registry.yarnpkg.com/spark-md5/-/spark-md5-3.0.2.tgz#7952c4a30784347abcee73268e473b9c0167e3fc" - integrity sha512-wcFzz9cDfbuqe0FZzfi2or1sgyIrsDwmPwfZC4hiNidPdPINjeUwNfv5kldczoEAcjl9Y1L3SM7Uz2PUEQzxQw== - spdy-transport@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/spdy-transport/-/spdy-transport-3.0.0.tgz#00d4863a6400ad75df93361a1608605e5dcdcf31" diff --git a/yarn.lock b/yarn.lock index 7ef12d34ce9..140ee58d903 100644 --- a/yarn.lock +++ b/yarn.lock @@ -204,6 +204,13 @@ "@babel/helper-string-parser" "^7.27.1" "@babel/helper-validator-identifier" "^7.28.5" +"@datadog/flagging-core@0.2.0": + version "0.2.0" + resolved "https://registry.yarnpkg.com/@datadog/flagging-core/-/flagging-core-0.2.0.tgz#d29d81486068b870c41cebb2524721a71184eb16" + integrity sha512-DocYjr8NFJZfsnqzu3MuBUNqgbJquq1doimkKEXI5UImLmz/tR0LO09dd651pBhoz1Pa4SKcnPaxWFLTqxWtsA== + dependencies: + spark-md5 "^3.0.2" + "@datadog/libdatadog@0.7.0": version "0.7.0" resolved "https://registry.yarnpkg.com/@datadog/libdatadog/-/libdatadog-0.7.0.tgz#81e07d3040c628892db697ccd01ae3c4d2a76315" @@ -231,6 +238,14 @@ node-addon-api "^6.1.0" node-gyp-build "^3.9.0" +"@datadog/openfeature-node-server@^0.2.0": + version "0.2.0" + resolved "https://registry.yarnpkg.com/@datadog/openfeature-node-server/-/openfeature-node-server-0.2.0.tgz#905032cc6d7d1eb1d6620aabe323ed552366d65a" + integrity sha512-Jn8lShFyqNji0tiKntLcCRwu3xrhg93fTTJS3gHSPKMfBDBKxjB9uF8Hu5Ayn2k0QuwJexx5atN9GSiWX0h5qg== + dependencies: + "@datadog/flagging-core" "0.2.0" + "@openfeature/server-sdk" "~1.18.0" + "@datadog/pprof@5.12.0": version "5.12.0" resolved "https://registry.yarnpkg.com/@datadog/pprof/-/pprof-5.12.0.tgz#1f0a592aec5ea3a48ad795d069e8a925d21667db" @@ -657,10 +672,10 @@ "@octokit/request-error" "^7.0.0" "@octokit/webhooks-methods" "^6.0.0" -"@openfeature/core@^1.8.1": - version "1.9.1" - resolved "https://registry.yarnpkg.com/@openfeature/core/-/core-1.9.1.tgz#9925a04ed0745e92dd7b3793b35cff1ed89d54c1" - integrity sha512-YySPtH4s/rKKnHRU0xyFGrqMU8XA+OIPNWDrlEFxE6DCVWCIrxE5YpiB94YD2jMFn6SSdA0cwQ8vLkCkl8lm8A== +"@openfeature/server-sdk@~1.18.0": + version "1.18.0" + resolved "https://registry.yarnpkg.com/@openfeature/server-sdk/-/server-sdk-1.18.0.tgz#5fed5f1d0900b2535878db18a78295bbaebb997b" + integrity sha512-uP8nqEGBS58s3iWXx6d8vnJ6ZVt3DACJL4PWADOAuwIS4xXpID91783e9f6zQ0i1ijQpj3yx+3ZuCB2LfQMUMA== "@openfeature/server-sdk@~1.20.0": version "1.20.0" @@ -4343,6 +4358,11 @@ source-map@^0.7.4: resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.7.6.tgz#a3658ab87e5b6429c8a1f3ba0083d4c61ca3ef02" integrity sha512-i5uvt8C3ikiWeNZSVZNWcfZPItFQOsYTUAOkcUPGd8DqDy1uOUikjt5dG+uRlwyvR108Fb9DOd4GvXfT0N2/uQ== +spark-md5@^3.0.2: + version "3.0.2" + resolved "https://registry.yarnpkg.com/spark-md5/-/spark-md5-3.0.2.tgz#7952c4a30784347abcee73268e473b9c0167e3fc" + integrity sha512-wcFzz9cDfbuqe0FZzfi2or1sgyIrsDwmPwfZC4hiNidPdPINjeUwNfv5kldczoEAcjl9Y1L3SM7Uz2PUEQzxQw== + spawn-wrap@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/spawn-wrap/-/spawn-wrap-2.0.0.tgz#103685b8b8f9b79771318827aa78650a610d457e" From 99a87b03e0e9934895bf103979e553388d55a1cb Mon Sep 17 00:00:00 2001 From: rochdev Date: Thu, 4 Dec 2025 17:35:20 -0500 Subject: [PATCH 68/95] fix apollo --- .../datadog-instrumentations/src/graphql.js | 9 ++- .../datadog-plugin-apollo/test/index.spec.js | 78 ++++++++++--------- .../datadog-plugin-graphql/src/execute.js | 19 ----- 3 files changed, 48 insertions(+), 58 deletions(-) diff --git a/packages/datadog-instrumentations/src/graphql.js b/packages/datadog-instrumentations/src/graphql.js index 53d8ad08a0c..f47f3c3dc56 100644 --- a/packages/datadog-instrumentations/src/graphql.js +++ b/packages/datadog-instrumentations/src/graphql.js @@ -367,16 +367,19 @@ addHook({ name: 'graphql', file: 'validation/validate.js', versions: ['>=0.10'] }) addHook({ name: 'graphql', file: 'language/printer.js', versions: ['>=0.10'] }, printer => { - printerLoadCh.publish(printer) + // HACK: It's possible `graphql` is loaded before `@apollo/gateway` so we + // can't use a channel as the latter plugin would load after the publish + // happened. Not sure how to handle this so for now use a global. + globalThis._dd_graphql_printer = printer return printer }) addHook({ name: 'graphql', file: 'language/visitor.js', versions: ['>=0.10'] }, visitor => { - visitorLoadCh.publish(visitor) + globalThis._dd_graphql_visitor = visitor return visitor }) addHook({ name: 'graphql', file: 'utilities/index.js', versions: ['>=0.10'] }, utilities => { - utilitiesLoadCh.publish(utilities) + globalThis._dd_graphql_utilities = utilities return utilities }) diff --git a/packages/datadog-plugin-apollo/test/index.spec.js b/packages/datadog-plugin-apollo/test/index.spec.js index 13ff234ffb2..3e8a1ca6609 100644 --- a/packages/datadog-plugin-apollo/test/index.spec.js +++ b/packages/datadog-plugin-apollo/test/index.spec.js @@ -10,26 +10,9 @@ const agent = require('../../dd-trace/test/plugins/agent.js') const { withNamingSchema, withVersions } = require('../../dd-trace/test/setup/mocha') const accounts = require('./fixtures.js') const { expectedSchema, rawExpectedSchema } = require('./naming.js') -const graphqlTag = require('../../../versions/graphql-tag/index.js').get() -const gql = graphqlTag.gql -accounts.typeDefs = gql(accounts.typeDefs) const fixtures = [accounts] - -async function execute (executor, source, variables, operationName) { - const resp = await executor({ - source, - document: gql(source), - request: { - variables - }, - operationName, - queryHash: 'hashed', - context: null, - cache: {} - }) - return resp -} +const typeDefs = accounts.typeDefs describe('Plugin', () => { let ApolloGateway @@ -37,6 +20,22 @@ describe('Plugin', () => { let buildSubgraphSchema let ApolloServer let startStandaloneServer + let gql + + function setupFixtures () { + const graphqlTag = require('../../../versions/graphql-tag/index.js').get() + gql = graphqlTag.gql + accounts.typeDefs = gql(typeDefs) + } + + function setupApollo (version) { + require('../../dd-trace/index.js') + const apollo = require(`../../../versions/@apollo/gateway@${version}`).get() + const subgraph = require('../../../versions/@apollo/subgraph').get() + buildSubgraphSchema = subgraph.buildSubgraphSchema + ApolloGateway = apollo.ApolloGateway + LocalGraphQLDataSource = apollo.LocalGraphQLDataSource + } function setupGateway () { const localDataSources = Object.fromEntries( @@ -55,20 +54,27 @@ describe('Plugin', () => { return gateway } + async function execute (executor, source, variables, operationName) { + const resp = await executor({ + source, + document: gql(source), + request: { + variables + }, + operationName, + queryHash: 'hashed', + context: null, + cache: {} + }) + return resp + } + function gateway () { return setupGateway().load().then((res) => res) } describe('@apollo/gateway', () => { withVersions('apollo', '@apollo/gateway', version => { - before(() => { - require('../../dd-trace/index.js') - const apollo = require(`../../../versions/@apollo/gateway@${version}`).get() - const subgraph = require('../../../versions/@apollo/subgraph').get() - buildSubgraphSchema = subgraph.buildSubgraphSchema - ApolloGateway = apollo.ApolloGateway - LocalGraphQLDataSource = apollo.LocalGraphQLDataSource - }) after(() => { return agent.close({ ritmReset: false }) }) @@ -77,6 +83,10 @@ describe('Plugin', () => { let server let port + before(() => agent.load('apollo')) + before(() => setupFixtures()) + before(() => setupApollo(version)) + before(() => { ApolloServer = require('../../../versions/@apollo/server/index.js').get().ApolloServer startStandaloneServer = @@ -95,10 +105,6 @@ describe('Plugin', () => { }) }) - before(() => { - return agent.load('apollo') - }) - after(() => { server.stop() }) @@ -132,9 +138,9 @@ describe('Plugin', () => { }) describe('without configuration', () => { - before(() => { - return agent.load('apollo') - }) + before(() => agent.load('apollo')) + before(() => setupFixtures()) + before(() => setupApollo(version)) it('should instrument apollo/gateway', done => { const operationName = 'MyQuery' @@ -462,9 +468,9 @@ describe('Plugin', () => { ) describe('with configuration', () => { - before(() => { - return agent.load('apollo', { service: 'custom', source: true, signature: false }) - }) + before(() => agent.load('apollo', { service: 'custom', source: true, signature: false })) + before(() => setupFixtures()) + before(() => setupApollo(version)) it('should be configured with the correct values', done => { const operationName = 'MyQuery' diff --git a/packages/datadog-plugin-graphql/src/execute.js b/packages/datadog-plugin-graphql/src/execute.js index 4cb3d9824b7..013b3cec5d8 100644 --- a/packages/datadog-plugin-graphql/src/execute.js +++ b/packages/datadog-plugin-graphql/src/execute.js @@ -11,22 +11,6 @@ class GraphQLExecutePlugin extends TracingPlugin { static type = 'graphql' static kind = 'server' - constructor (...args) { - super(...args) - - this.addSub('apm:graphql:visitor:load', visitor => { - this._visitor = visitor - }) - - this.addSub('apm:graphql:printer:load', printer => { - this._printer = printer - }) - - this.addSub('apm:graphql:utilities:load', utilities => { - this._utilities = utilities - }) - } - bindStart (ctx) { const { operation, args, docSource } = ctx @@ -86,9 +70,6 @@ function getSignature (document, operationName, operationType, calculate, self) if (calculate !== false && tools !== false) { try { try { - globalThis._dd_graphql_visitor = self._visitor - globalThis._dd_graphql_printer = self._printer - globalThis._dd_graphql_utilities = self._utilities tools = tools || require('./tools') } catch (e) { tools = false From 7775e18e7487d10f4ab0e4290bc851d5eb890699 Mon Sep 17 00:00:00 2001 From: rochdev Date: Thu, 4 Dec 2025 17:40:37 -0500 Subject: [PATCH 69/95] fix missing openfeature core in tests --- package.json | 1 + yarn.lock | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/package.json b/package.json index 679f157e915..c018c630998 100644 --- a/package.json +++ b/package.json @@ -142,6 +142,7 @@ "@eslint/eslintrc": "^3.3.1", "@eslint/js": "^9.39.0", "@msgpack/msgpack": "^3.1.2", + "@openfeature/core": "^1.9.0", "@openfeature/server-sdk": "~1.20.0", "@stylistic/eslint-plugin": "^5.5.0", "@types/chai": "^4.3.16", diff --git a/yarn.lock b/yarn.lock index 140ee58d903..d0c24e8e49a 100644 --- a/yarn.lock +++ b/yarn.lock @@ -672,6 +672,11 @@ "@octokit/request-error" "^7.0.0" "@octokit/webhooks-methods" "^6.0.0" +"@openfeature/core@^1.9.0": + version "1.9.1" + resolved "https://registry.yarnpkg.com/@openfeature/core/-/core-1.9.1.tgz#9925a04ed0745e92dd7b3793b35cff1ed89d54c1" + integrity sha512-YySPtH4s/rKKnHRU0xyFGrqMU8XA+OIPNWDrlEFxE6DCVWCIrxE5YpiB94YD2jMFn6SSdA0cwQ8vLkCkl8lm8A== + "@openfeature/server-sdk@~1.18.0": version "1.18.0" resolved "https://registry.yarnpkg.com/@openfeature/server-sdk/-/server-sdk-1.18.0.tgz#5fed5f1d0900b2535878db18a78295bbaebb997b" From bf15638414dc818eff3343589096c8fdf6919c16 Mon Sep 17 00:00:00 2001 From: rochdev Date: Thu, 4 Dec 2025 17:40:59 -0500 Subject: [PATCH 70/95] code cleanup --- packages/datadog-instrumentations/src/graphql.js | 5 ----- 1 file changed, 5 deletions(-) diff --git a/packages/datadog-instrumentations/src/graphql.js b/packages/datadog-instrumentations/src/graphql.js index f47f3c3dc56..43280d687a2 100644 --- a/packages/datadog-instrumentations/src/graphql.js +++ b/packages/datadog-instrumentations/src/graphql.js @@ -15,11 +15,6 @@ const patchedTypes = new WeakSet() /** CHANNELS */ -// load channels -const visitorLoadCh = channel('apm:graphql:visitor:load') -const printerLoadCh = channel('apm:graphql:printer:load') -const utilitiesLoadCh = channel('apm:graphql:utilities:load') - // execute channels const startExecuteCh = channel('apm:graphql:execute:start') const finishExecuteCh = channel('apm:graphql:execute:finish') From 3f4f5110e8ca94d968cb560129107e7263058819 Mon Sep 17 00:00:00 2001 From: rochdev Date: Fri, 5 Dec 2025 11:21:06 -0500 Subject: [PATCH 71/95] add support for vendor folder to license check --- scripts/check_licenses.js | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/scripts/check_licenses.js b/scripts/check_licenses.js index 5325ca1fe0e..7d86a14c366 100644 --- a/scripts/check_licenses.js +++ b/scripts/check_licenses.js @@ -55,12 +55,31 @@ function getProdDeps () { } } + addProdDeps(deps, process.cwd()) + addProdDeps(deps, join(process.cwd(), 'vendor')) + // Add vendored dependencies addVendoredDeps(deps) return deps } +function addProdDeps (deps, cwd) { + const stdout = execSync('yarn list --production --json', { + encoding: 'utf8', + stdio: ['ignore', 'pipe', 'inherit'], + cwd + }) + + for (const line of stdout.split('\n')) { + if (!line) continue + const parsed = JSON.parse(line) + if (parsed.type === 'tree' && parsed.data && Array.isArray(parsed.data.trees)) { + collectFromTrees(parsed.data.trees, deps) + } + } +} + function collectFromTrees (trees, deps) { for (const node of trees) { if (typeof node?.name !== 'string') continue From 11f6ae4a86dd7ae96fdd9aad65869c7c9e3e4001 Mon Sep 17 00:00:00 2001 From: rochdev Date: Fri, 5 Dec 2025 14:42:52 -0500 Subject: [PATCH 72/95] move openfeature-node-server to vendors and add source maps --- package.json | 8 +- .../@datadog/openfeature-node-server/LICENSE | 201 ++++++++++++++++++ .../@datadog/openfeature-node-server/index.js | 1 + .../openfeature-node-server/index.js.map | 1 + .../@datadog/sketches-js/index.js.map | 1 + .../@isaacs/ttlcache/index.js.map | 1 + .../@opentelemetry/core/index.js.map | 1 + .../@opentelemetry/resources/index.js.map | 1 + .../crypto-randomuuid/index.js.map | 1 + .../escape-string-regexp/index.js.map | 1 + packages/node_modules/ignore/index.js.map | 1 + .../istanbul-lib-coverage/index.js.map | 1 + .../node_modules/jest-docblock/index.js.map | 1 + .../node_modules/jsonpath-plus/index.js.map | 1 + packages/node_modules/limiter/index.js.map | 1 + .../node_modules/lodash.sortby/index.js.map | 1 + packages/node_modules/lru-cache/index.js.map | 1 + .../module-details-from-path/index.js.map | 1 + .../mutexify/promise/index.js.map | 1 + .../node_modules/opentracing/index.js.map | 1 + .../node_modules/path-to-regexp/index.js.map | 1 + .../node_modules/pprof-format/index.js.map | 1 + packages/node_modules/protobufjs/index.js.map | 1 + .../protobufjs/minimal/index.js.map | 1 + packages/node_modules/retry/index.js.map | 1 + packages/node_modules/rfdc/index.js.map | 1 + packages/node_modules/semifies/index.js.map | 1 + .../node_modules/shell-quote/index.js.map | 1 + packages/node_modules/source-map/index.js.map | 1 + .../source-map/lib/util/index.js.map | 1 + .../tlhunter-sorted-set/index.js.map | 1 + packages/node_modules/ttl-set/index.js.map | 1 + vendor/package.json | 1 + vendor/rspack.config.js | 5 +- vendor/yarn.lock | 25 +++ yarn.lock | 27 +-- 36 files changed, 265 insertions(+), 32 deletions(-) create mode 100644 packages/node_modules/@datadog/openfeature-node-server/LICENSE create mode 100644 packages/node_modules/@datadog/openfeature-node-server/index.js create mode 100644 packages/node_modules/@datadog/openfeature-node-server/index.js.map create mode 100644 packages/node_modules/@datadog/sketches-js/index.js.map create mode 100644 packages/node_modules/@isaacs/ttlcache/index.js.map create mode 100644 packages/node_modules/@opentelemetry/core/index.js.map create mode 100644 packages/node_modules/@opentelemetry/resources/index.js.map create mode 100644 packages/node_modules/crypto-randomuuid/index.js.map create mode 100644 packages/node_modules/escape-string-regexp/index.js.map create mode 100644 packages/node_modules/ignore/index.js.map create mode 100644 packages/node_modules/istanbul-lib-coverage/index.js.map create mode 100644 packages/node_modules/jest-docblock/index.js.map create mode 100644 packages/node_modules/jsonpath-plus/index.js.map create mode 100644 packages/node_modules/limiter/index.js.map create mode 100644 packages/node_modules/lodash.sortby/index.js.map create mode 100644 packages/node_modules/lru-cache/index.js.map create mode 100644 packages/node_modules/module-details-from-path/index.js.map create mode 100644 packages/node_modules/mutexify/promise/index.js.map create mode 100644 packages/node_modules/opentracing/index.js.map create mode 100644 packages/node_modules/path-to-regexp/index.js.map create mode 100644 packages/node_modules/pprof-format/index.js.map create mode 100644 packages/node_modules/protobufjs/index.js.map create mode 100644 packages/node_modules/protobufjs/minimal/index.js.map create mode 100644 packages/node_modules/retry/index.js.map create mode 100644 packages/node_modules/rfdc/index.js.map create mode 100644 packages/node_modules/semifies/index.js.map create mode 100644 packages/node_modules/shell-quote/index.js.map create mode 100644 packages/node_modules/source-map/index.js.map create mode 100644 packages/node_modules/source-map/lib/util/index.js.map create mode 100644 packages/node_modules/tlhunter-sorted-set/index.js.map create mode 100644 packages/node_modules/ttl-set/index.js.map diff --git a/package.json b/package.json index c018c630998..acea7181305 100644 --- a/package.json +++ b/package.json @@ -115,7 +115,8 @@ "packages/*/index.js", "packages/*/lib/**/*", "packages/*/src/**/*", - "packages/node_modules/**/*", + "packages/node_modules/**/*.js", + "packages/node_modules/**/LICENSE", "packages/datadog-instrumentations/orchestrion.yml", "README.md", "register.js", @@ -123,7 +124,6 @@ "version.js" ], "dependencies": { - "@datadog/openfeature-node-server": "^0.2.0", "dc-polyfill": "^0.1.10", "import-in-the-middle": "^1.14.2" }, @@ -134,6 +134,8 @@ "@datadog/native-metrics": "3.1.1", "@datadog/pprof": "5.12.0", "@datadog/wasm-js-rewriter": "5.0.1", + "@openfeature/core": "^1.8.1", + "@openfeature/server-sdk": "~1.20.0", "@opentelemetry/api": ">=1.0.0 <1.10.0", "@opentelemetry/api-logs": "<1.0.0" }, @@ -142,8 +144,6 @@ "@eslint/eslintrc": "^3.3.1", "@eslint/js": "^9.39.0", "@msgpack/msgpack": "^3.1.2", - "@openfeature/core": "^1.9.0", - "@openfeature/server-sdk": "~1.20.0", "@stylistic/eslint-plugin": "^5.5.0", "@types/chai": "^4.3.16", "@types/mocha": "^10.0.10", diff --git a/packages/node_modules/@datadog/openfeature-node-server/LICENSE b/packages/node_modules/@datadog/openfeature-node-server/LICENSE new file mode 100644 index 00000000000..4a0027eec4e --- /dev/null +++ b/packages/node_modules/@datadog/openfeature-node-server/LICENSE @@ -0,0 +1,201 @@ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright 2025 Datadog, Inc. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/packages/node_modules/@datadog/openfeature-node-server/index.js b/packages/node_modules/@datadog/openfeature-node-server/index.js new file mode 100644 index 00000000000..3dd941155a0 --- /dev/null +++ b/packages/node_modules/@datadog/openfeature-node-server/index.js @@ -0,0 +1 @@ +(()=>{var e={"./spark-md5/spark-md5.js":function(e){e.exports=function(e){"use strict";var t=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"];function r(e,t){var r=e[0],n=e[1],a=e[2],i=e[3];r+=(n&a|~n&i)+t[0]-0x28955b88|0,i+=((r=(r<<7|r>>>25)+n|0)&n|~r&a)+t[1]-0x173848aa|0,a+=((i=(i<<12|i>>>20)+r|0)&r|~i&n)+t[2]+0x242070db|0,n+=((a=(a<<17|a>>>15)+i|0)&i|~a&r)+t[3]-0x3e423112|0,r+=((n=(n<<22|n>>>10)+a|0)&a|~n&i)+t[4]-0xa83f051|0,i+=((r=(r<<7|r>>>25)+n|0)&n|~r&a)+t[5]+0x4787c62a|0,a+=((i=(i<<12|i>>>20)+r|0)&r|~i&n)+t[6]-0x57cfb9ed|0,n+=((a=(a<<17|a>>>15)+i|0)&i|~a&r)+t[7]-0x2b96aff|0,r+=((n=(n<<22|n>>>10)+a|0)&a|~n&i)+t[8]+0x698098d8|0,i+=((r=(r<<7|r>>>25)+n|0)&n|~r&a)+t[9]-0x74bb0851|0,a+=((i=(i<<12|i>>>20)+r|0)&r|~i&n)+t[10]-42063|0,n+=((a=(a<<17|a>>>15)+i|0)&i|~a&r)+t[11]-0x76a32842|0,r+=((n=(n<<22|n>>>10)+a|0)&a|~n&i)+t[12]+0x6b901122|0,i+=((r=(r<<7|r>>>25)+n|0)&n|~r&a)+t[13]-0x2678e6d|0,a+=((i=(i<<12|i>>>20)+r|0)&r|~i&n)+t[14]-0x5986bc72|0,n+=((a=(a<<17|a>>>15)+i|0)&i|~a&r)+t[15]+0x49b40821|0,r+=((n=(n<<22|n>>>10)+a|0)&i|a&~i)+t[1]-0x9e1da9e|0,i+=((r=(r<<5|r>>>27)+n|0)&a|n&~a)+t[6]-0x3fbf4cc0|0,a+=((i=(i<<9|i>>>23)+r|0)&n|r&~n)+t[11]+0x265e5a51|0,n+=((a=(a<<14|a>>>18)+i|0)&r|i&~r)+t[0]-0x16493856|0,r+=((n=(n<<20|n>>>12)+a|0)&i|a&~i)+t[5]-0x29d0efa3|0,i+=((r=(r<<5|r>>>27)+n|0)&a|n&~a)+t[10]+0x2441453|0,a+=((i=(i<<9|i>>>23)+r|0)&n|r&~n)+t[15]-0x275e197f|0,n+=((a=(a<<14|a>>>18)+i|0)&r|i&~r)+t[4]-0x182c0438|0,r+=((n=(n<<20|n>>>12)+a|0)&i|a&~i)+t[9]+0x21e1cde6|0,i+=((r=(r<<5|r>>>27)+n|0)&a|n&~a)+t[14]-0x3cc8f82a|0,a+=((i=(i<<9|i>>>23)+r|0)&n|r&~n)+t[3]-0xb2af279|0,n+=((a=(a<<14|a>>>18)+i|0)&r|i&~r)+t[8]+0x455a14ed|0,r+=((n=(n<<20|n>>>12)+a|0)&i|a&~i)+t[13]-0x561c16fb|0,i+=((r=(r<<5|r>>>27)+n|0)&a|n&~a)+t[2]-0x3105c08|0,a+=((i=(i<<9|i>>>23)+r|0)&n|r&~n)+t[7]+0x676f02d9|0,n+=((a=(a<<14|a>>>18)+i|0)&r|i&~r)+t[12]-0x72d5b376|0,r+=((n=(n<<20|n>>>12)+a|0)^a^i)+t[5]-378558|0,i+=((r=(r<<4|r>>>28)+n|0)^n^a)+t[8]-0x788e097f|0,a+=((i=(i<<11|i>>>21)+r|0)^r^n)+t[11]+0x6d9d6122|0,n+=((a=(a<<16|a>>>16)+i|0)^i^r)+t[14]-0x21ac7f4|0,r+=((n=(n<<23|n>>>9)+a|0)^a^i)+t[1]-0x5b4115bc|0,i+=((r=(r<<4|r>>>28)+n|0)^n^a)+t[4]+0x4bdecfa9|0,a+=((i=(i<<11|i>>>21)+r|0)^r^n)+t[7]-0x944b4a0|0,n+=((a=(a<<16|a>>>16)+i|0)^i^r)+t[10]-0x41404390|0,r+=((n=(n<<23|n>>>9)+a|0)^a^i)+t[13]+0x289b7ec6|0,i+=((r=(r<<4|r>>>28)+n|0)^n^a)+t[0]-0x155ed806|0,a+=((i=(i<<11|i>>>21)+r|0)^r^n)+t[3]-0x2b10cf7b|0,n+=((a=(a<<16|a>>>16)+i|0)^i^r)+t[6]+0x4881d05|0,r+=((n=(n<<23|n>>>9)+a|0)^a^i)+t[9]-0x262b2fc7|0,i+=((r=(r<<4|r>>>28)+n|0)^n^a)+t[12]-0x1924661b|0,a+=((i=(i<<11|i>>>21)+r|0)^r^n)+t[15]+0x1fa27cf8|0,n+=((a=(a<<16|a>>>16)+i|0)^i^r)+t[2]-0x3b53a99b|0,n=(n<<23|n>>>9)+a|0,r+=(a^(n|~i))+t[0]-0xbd6ddbc|0,r=(r<<6|r>>>26)+n|0,i+=(n^(r|~a))+t[7]+0x432aff97|0,i=(i<<10|i>>>22)+r|0,a+=(r^(i|~n))+t[14]-0x546bdc59|0,a=(a<<15|a>>>17)+i|0,n+=(i^(a|~r))+t[5]-0x36c5fc7|0,n=(n<<21|n>>>11)+a|0,r+=(a^(n|~i))+t[12]+0x655b59c3|0,r=(r<<6|r>>>26)+n|0,i+=(n^(r|~a))+t[3]-0x70f3336e|0,i=(i<<10|i>>>22)+r|0,a+=(r^(i|~n))+t[10]-1051523|0,a=(a<<15|a>>>17)+i|0,n+=(i^(a|~r))+t[1]-0x7a7ba22f|0,n=(n<<21|n>>>11)+a|0,r+=(a^(n|~i))+t[8]+0x6fa87e4f|0,r=(r<<6|r>>>26)+n|0,i+=(n^(r|~a))+t[15]-0x1d31920|0,i=(i<<10|i>>>22)+r|0,a+=(r^(i|~n))+t[6]-0x5cfebcec|0,a=(a<<15|a>>>17)+i|0,n+=(i^(a|~r))+t[13]+0x4e0811a1|0,n=(n<<21|n>>>11)+a|0,r+=(a^(n|~i))+t[4]-0x8ac817e|0,r=(r<<6|r>>>26)+n|0,i+=(n^(r|~a))+t[11]-0x42c50dcb|0,i=(i<<10|i>>>22)+r|0,a+=(r^(i|~n))+t[2]+0x2ad7d2bb|0,a=(a<<15|a>>>17)+i|0,n+=(i^(a|~r))+t[9]-0x14792c6f|0,n=(n<<21|n>>>11)+a|0,e[0]=r+e[0]|0,e[1]=n+e[1]|0,e[2]=a+e[2]|0,e[3]=i+e[3]|0}function n(e){var t,r=[];for(t=0;t<64;t+=4)r[t>>2]=e.charCodeAt(t)+(e.charCodeAt(t+1)<<8)+(e.charCodeAt(t+2)<<16)+(e.charCodeAt(t+3)<<24);return r}function a(e){var t,r=[];for(t=0;t<64;t+=4)r[t>>2]=e[t]+(e[t+1]<<8)+(e[t+2]<<16)+(e[t+3]<<24);return r}function i(e){var t,a,i,s,o,u,l=e.length,h=[0x67452301,-0x10325477,-0x67452302,0x10325476];for(t=64;t<=l;t+=64)r(h,n(e.substring(t-64,t)));for(a=(e=e.substring(t-64)).length,i=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],t=0;t>2]|=e.charCodeAt(t)<<(t%4<<3);if(i[t>>2]|=128<<(t%4<<3),t>55)for(r(h,i),t=0;t<16;t+=1)i[t]=0;return o=parseInt((s=(s=8*l).toString(16).match(/(.*?)(.{0,8})$/))[2],16),u=parseInt(s[1],16)||0,i[14]=o,i[15]=u,r(h,i),h}function s(e){var r;for(r=0;r>8*r+4&15]+t[e>>8*r&15];return n}(e[r]);return e.join("")}function o(e){return/[\u0080-\uFFFF]/.test(e)&&(e=unescape(encodeURIComponent(e))),e}function u(e){var t,r=[],n=e.length;for(t=0;tl)?new ArrayBuffer(0):(i=new Uint8Array(a=new ArrayBuffer(n=l-u)),s=new Uint8Array(this,u,n),i.set(s),a)}}(),l.prototype.append=function(e){return this.appendBinary(o(e)),this},l.prototype.appendBinary=function(e){this._buff+=e,this._length+=e.length;var t,a=this._buff.length;for(t=64;t<=a;t+=64)r(this._hash,n(this._buff.substring(t-64,t)));return this._buff=this._buff.substring(t-64),this},l.prototype.end=function(e){var t,r,n=this._buff,a=n.length,i=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(t=0;t>2]|=n.charCodeAt(t)<<(t%4<<3);return this._finish(i,a),r=s(this._hash),e&&(r=u(r)),this.reset(),r},l.prototype.reset=function(){return this._buff="",this._length=0,this._hash=[0x67452301,-0x10325477,-0x67452302,0x10325476],this},l.prototype.getState=function(){return{buff:this._buff,length:this._length,hash:this._hash.slice()}},l.prototype.setState=function(e){return this._buff=e.buff,this._length=e.length,this._hash=e.hash,this},l.prototype.destroy=function(){delete this._hash,delete this._buff,delete this._length},l.prototype._finish=function(e,t){var n,a,i,s=t;if(e[s>>2]|=128<<(s%4<<3),s>55)for(r(this._hash,e),s=0;s<16;s+=1)e[s]=0;a=parseInt((n=(n=8*this._length).toString(16).match(/(.*?)(.{0,8})$/))[2],16),i=parseInt(n[1],16)||0,e[14]=a,e[15]=i,r(this._hash,e)},l.hash=function(e,t){return l.hashBinary(o(e),t)},l.hashBinary=function(e,t){var r=s(i(e));return t?u(r):r},l.ArrayBuffer=function(){this.reset()},l.ArrayBuffer.prototype.append=function(e){var t,n,i,s=(t=this._buff.buffer,(n=new Uint8Array(t.byteLength+e.byteLength)).set(new Uint8Array(t)),n.set(new Uint8Array(e),t.byteLength),n),o=s.length;for(this._length+=e.byteLength,i=64;i<=o;i+=64)r(this._hash,a(s.subarray(i-64,i)));return this._buff=new Uint8Array(i-64>2]|=n[t]<<(t%4<<3);return this._finish(i,a),r=s(this._hash),e&&(r=u(r)),this.reset(),r},l.ArrayBuffer.prototype.reset=function(){return this._buff=new Uint8Array(0),this._length=0,this._hash=[0x67452301,-0x10325477,-0x67452302,0x10325476],this},l.ArrayBuffer.prototype.getState=function(){var e,t=l.prototype.getState.call(this);return e=t.buff,t.buff=String.fromCharCode.apply(null,new Uint8Array(e)),t},l.ArrayBuffer.prototype.setState=function(e){return e.buff=function(e,t){var r,n=e.length,a=new ArrayBuffer(n),i=new Uint8Array(a);for(r=0;r>2]|=e[t]<<(t%4<<3);if(i[t>>2]|=128<<(t%4<<3),t>55)for(r(h,i),t=0;t<16;t+=1)i[t]=0;return o=parseInt((s=(s=8*l).toString(16).match(/(.*?)(.{0,8})$/))[2],16),u=parseInt(s[1],16)||0,i[14]=o,i[15]=u,r(h,i),h}(new Uint8Array(e)));return t?u(n):n},l}()}},t={};function r(n){var a=t[n];if(void 0!==a)return a.exports;var i=t[n]={exports:{}};return e[n](i,i.exports,r),i.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};(()=>{"use strict";r.r(n),r.d(n,{DatadogNodeServerProvider:()=>v});var e,t,a=r("./spark-md5/spark-md5.js"),i=r.n(a);function s(e,t=""){return new(i())().append(t).append(e).end()}function o(e){return s(JSON.stringify({flag:{key:e.flag.key},subject:{id:e.subject.id,attributes:e.subject.attributes}}))}function u(e){return s(JSON.stringify(e))}class l{constructor(e){this.delegate=e}init(){return Promise.resolve()}has(e){return this.get(e)===u(e)}get(e){return this.delegate.get(o(e))}set(e){this.delegate.set(o(e),u(e))}entries(){return this.delegate.entries()}clear(){this.delegate.clear()}}class h{constructor(e){this.capacity=e,this.cache=new Map,this.size=this.cache.size}[(Symbol.toStringTag,Symbol.iterator)](){return this.cache[Symbol.iterator]()}forEach(e){this.cache.forEach(e)}entries(){return this.cache.entries()}clear(){this.cache.clear()}delete(e){return this.cache.delete(e)}keys(){return this.cache.keys()}values(){return this.cache.values()}has(e){return this.cache.has(e)}get(e){if(!this.has(e))return;let t=this.cache.get(e);return void 0!==t&&(this.delete(e),this.cache.set(e,t)),t}set(e,t){if(0===this.capacity)return this;if(this.cache.has(e))this.cache.delete(e);else if(this.cache.size>=this.capacity){let e=this.cache.keys().next().value;e&&this.delete(e)}return this.cache.set(e,t),this}}class f extends l{constructor(e){super(new h(e))}}let c=require("@openfeature/server-sdk");(e=t||(t={})).MATCHES="MATCHES",e.NOT_MATCHES="NOT_MATCHES",e.GTE="GTE",e.GT="GT",e.LTE="LTE",e.LT="LT",e.ONE_OF="ONE_OF",e.NOT_ONE_OF="NOT_ONE_OF",e.IS_NULL="IS_NULL";class d{}class g extends d{getShard(e,t){return parseInt(s(e).slice(0,8),16)%t}}function y(e,r,n,a,i,s){if(!e)return{value:a,reason:"ERROR",errorCode:c.ErrorCode.PROVIDER_NOT_READY};let{targetingKey:o,...u}=i;if(!o)return{value:a,reason:"ERROR",errorCode:c.ErrorCode.TARGETING_KEY_MISSING};let l={id:o,...u};try{return function(e,r,n,a,i,s){if(!(null==e?void 0:e.enabled))return s.debug("returning default assignment because flag is disabled",{flagKey:e?e.key:"undefined",subjectKey:n}),{value:i,reason:c.StandardResolutionReasons.DISABLED};if(!function(e,t){if("boolean"===e)return"BOOLEAN"===t;if("string"===e)return"STRING"===t;if("number"===e)return"INTEGER"===t||"NUMERIC"===t;if("object"===e)return"JSON"===t;throw Error(`Invalid expected type: ${e}`)}(r,e.variationType))return s.debug("variant value type mismatch, returning default value",{flagKey:e.key,subjectKey:n,expectedType:r,variantType:e.variationType}),{value:i,reason:c.StandardResolutionReasons.ERROR,errorCode:c.ErrorCode.TYPE_MISMATCH};let o=new Date;for(let r of e.allocations){if(r.startAt&&o=new Date(r.endAt)){s.debug("allocation after end date",{flagKey:e.key,subjectKey:n,allocationKey:r.key,endAt:r.endAt});continue}if(!function(e,r,n){return null==e||!e.length||(n.debug("evaluating rules",{rules:JSON.stringify(e),subjectAttributes:r}),e.some(e=>!(function(e,r){return r.map(r=>(function(e,r){var n,a,i;let s=e[r.attribute];if(r.operator===t.IS_NULL)return r.value?null==s:null!=s;if(null!=s)switch(r.operator){case t.GTE:case t.GT:case t.LTE:case t.LT:return n=s,a=r.value,((e,n)=>r.operator===t.GTE?e>=n:r.operator===t.GT?e>n:r.operator===t.LTE?e<=n:e{let i=function(e,t,r){var n,a;let i=new g().getShard((n=e.salt,a=t,`${n}-${a}`),e.totalShards);return e.ranges.some(e=>{var t,r;return t=i,(r=e).start<=t&&t{this.resolve=()=>{this.cleanup(),e()},this.reject=e=>{this.cleanup(),t(e)}}),new Promise(()=>{this.timeoutId=setTimeout(()=>{t()},e)})])}async wait(){try{await this.promise}finally{this.cleanup()}}complete(){this.resolve&&this.resolve()}fail(e){this.reject&&this.reject(e)}isInitializing(){return void 0!==this.resolve}cleanup(){this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=void 0),this.resolve=void 0,this.reject=void 0}}class v{constructor(e){this.options=e,this.metadata={name:"datadog-node-server"},this.runsOn="server",this.hooks=[],this.events=new c.OpenFeatureEventEmitter,this.exposureCache=new f(5e4)}getConfiguration(){return this.configuration}setConfiguration(e){var t,r,n;let a=null==(t=this.configuration)?void 0:t.createdAt,i=!!this.configuration;if(i&&this.configuration!==e){this.events.emit(c.ProviderEvents.ConfigurationChanged),a!==(null==e?void 0:e.createdAt)&&(null==(r=this.exposureCache)||r.clear()),this.configuration=e;return}this.configuration=e,(null==(n=this.initController)?void 0:n.isInitializing())?this.initController.complete():i||this.events.emit(c.ProviderEvents.Ready)}setError(e){var t;(null==(t=this.initController)?void 0:t.isInitializing())?this.initController.fail(e):this.events.emit(c.ProviderEvents.Error,{error:e})}async initialize(){var e,t;if(this.configuration)return;let r=null!=(e=this.options.initializationTimeoutMs)?e:3e4;this.initController=new p(r,()=>this.setError(Error(`Initialization timeout after ${r}ms`))),await this.initController.wait(),await (null==(t=this.exposureCache)?void 0:t.init())}async resolveBooleanEvaluation(e,t,r,n){let a=y(this.configuration,"boolean",e,t,r,n);return this.handleExposure(e,r,a),a}async resolveStringEvaluation(e,t,r,n){let a=y(this.configuration,"string",e,t,r,n);return this.handleExposure(e,r,a),a}async resolveNumberEvaluation(e,t,r,n){let a=y(this.configuration,"number",e,t,r,n);return this.handleExposure(e,r,a),a}async resolveObjectEvaluation(e,t,r,n){let a=y(this.configuration,"object",e,t,r,n);return this.handleExposure(e,r,a),a}handleExposure(e,t,r){var n,a,i;let s=Date.now(),o=function(e,t){var r,n;if(!(null==(r=t.flagMetadata)?void 0:r.doLog))return;let a=null==(n=t.flagMetadata)?void 0:n.allocationKey,i=t.variant;if(!a||!i)return;let{targetingKey:s="",...o}=e;return{allocation:{key:a},flag:{key:t.flagKey},variant:{key:i},subject:{id:s,attributes:o}}}(t,{...r,flagKey:e,flagMetadata:null!=(n=r.flagMetadata)?n:{}});!o||(null==(a=this.exposureCache)?void 0:a.has(o))||this.options.exposureChannel.hasSubscribers&&(this.options.exposureChannel.publish({...o,timestamp:s}),null==(i=this.exposureCache)||i.set(o))}}})(),module.exports=n})(); \ No newline at end of file diff --git a/packages/node_modules/@datadog/openfeature-node-server/index.js.map b/packages/node_modules/@datadog/openfeature-node-server/index.js.map new file mode 100644 index 00000000000..3515d535486 --- /dev/null +++ b/packages/node_modules/@datadog/openfeature-node-server/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"@datadog/openfeature-node-server/index.js","sources":["webpack:///./spark-md5/spark-md5.js","webpack:///webpack/runtime/compat_get_default_export","webpack:///webpack/runtime/define_property_getters","webpack:///webpack/runtime/has_own_property","webpack:///webpack/runtime/make_namespace_object","webpack:///./@datadog/openfeature-node-server/esm/rules/rules.js","webpack:///./@datadog/flagging-core/esm/obfuscation.js","webpack:///./@datadog/flagging-core/esm/cache/abstract-assignment-cache.js","webpack:///./@datadog/flagging-core/esm/cache/lru-cache.js","webpack:///./@datadog/flagging-core/esm/cache/lru-in-memory-assignment-cache.js","webpack:///./@datadog/openfeature-node-server/esm/shards/sharders.js","webpack:///./@datadog/openfeature-node-server/esm/configuration/evaluation.js","webpack:///./@datadog/openfeature-node-server/esm/configuration/evaluateForSubject.js","webpack:///./@datadog/openfeature-node-server/esm/shards/matchesShard.js","webpack:///./@datadog/openfeature-node-server/esm/configuration/ufc-v1.js","webpack:///./@datadog/openfeature-node-server/esm/initialization-controller.js","webpack:///./@datadog/openfeature-node-server/esm/provider.js","webpack:///./@datadog/flagging-core/esm/configuration/exposureEvent.js"],"sourcesContent":["(function (factory) {\n if (typeof exports === 'object') {\n // Node/CommonJS\n module.exports = factory();\n } else if (typeof define === 'function' && define.amd) {\n // AMD\n define(factory);\n } else {\n // Browser globals (with support for web workers)\n var glob;\n\n try {\n glob = window;\n } catch (e) {\n glob = self;\n }\n\n glob.SparkMD5 = factory();\n }\n}(function (undefined) {\n\n 'use strict';\n\n /*\n * Fastest md5 implementation around (JKM md5).\n * Credits: Joseph Myers\n *\n * @see http://www.myersdaily.org/joseph/javascript/md5-text.html\n * @see http://jsperf.com/md5-shootout/7\n */\n\n /* this function is much faster,\n so if possible we use it. Some IEs\n are the only ones I know of that\n need the idiotic second function,\n generated by an if clause. */\n var add32 = function (a, b) {\n return (a + b) & 0xFFFFFFFF;\n },\n hex_chr = ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'a', 'b', 'c', 'd', 'e', 'f'];\n\n\n function cmn(q, a, b, x, s, t) {\n a = add32(add32(a, q), add32(x, t));\n return add32((a << s) | (a >>> (32 - s)), b);\n }\n\n function md5cycle(x, k) {\n var a = x[0],\n b = x[1],\n c = x[2],\n d = x[3];\n\n a += (b & c | ~b & d) + k[0] - 680876936 | 0;\n a = (a << 7 | a >>> 25) + b | 0;\n d += (a & b | ~a & c) + k[1] - 389564586 | 0;\n d = (d << 12 | d >>> 20) + a | 0;\n c += (d & a | ~d & b) + k[2] + 606105819 | 0;\n c = (c << 17 | c >>> 15) + d | 0;\n b += (c & d | ~c & a) + k[3] - 1044525330 | 0;\n b = (b << 22 | b >>> 10) + c | 0;\n a += (b & c | ~b & d) + k[4] - 176418897 | 0;\n a = (a << 7 | a >>> 25) + b | 0;\n d += (a & b | ~a & c) + k[5] + 1200080426 | 0;\n d = (d << 12 | d >>> 20) + a | 0;\n c += (d & a | ~d & b) + k[6] - 1473231341 | 0;\n c = (c << 17 | c >>> 15) + d | 0;\n b += (c & d | ~c & a) + k[7] - 45705983 | 0;\n b = (b << 22 | b >>> 10) + c | 0;\n a += (b & c | ~b & d) + k[8] + 1770035416 | 0;\n a = (a << 7 | a >>> 25) + b | 0;\n d += (a & b | ~a & c) + k[9] - 1958414417 | 0;\n d = (d << 12 | d >>> 20) + a | 0;\n c += (d & a | ~d & b) + k[10] - 42063 | 0;\n c = (c << 17 | c >>> 15) + d | 0;\n b += (c & d | ~c & a) + k[11] - 1990404162 | 0;\n b = (b << 22 | b >>> 10) + c | 0;\n a += (b & c | ~b & d) + k[12] + 1804603682 | 0;\n a = (a << 7 | a >>> 25) + b | 0;\n d += (a & b | ~a & c) + k[13] - 40341101 | 0;\n d = (d << 12 | d >>> 20) + a | 0;\n c += (d & a | ~d & b) + k[14] - 1502002290 | 0;\n c = (c << 17 | c >>> 15) + d | 0;\n b += (c & d | ~c & a) + k[15] + 1236535329 | 0;\n b = (b << 22 | b >>> 10) + c | 0;\n\n a += (b & d | c & ~d) + k[1] - 165796510 | 0;\n a = (a << 5 | a >>> 27) + b | 0;\n d += (a & c | b & ~c) + k[6] - 1069501632 | 0;\n d = (d << 9 | d >>> 23) + a | 0;\n c += (d & b | a & ~b) + k[11] + 643717713 | 0;\n c = (c << 14 | c >>> 18) + d | 0;\n b += (c & a | d & ~a) + k[0] - 373897302 | 0;\n b = (b << 20 | b >>> 12) + c | 0;\n a += (b & d | c & ~d) + k[5] - 701558691 | 0;\n a = (a << 5 | a >>> 27) + b | 0;\n d += (a & c | b & ~c) + k[10] + 38016083 | 0;\n d = (d << 9 | d >>> 23) + a | 0;\n c += (d & b | a & ~b) + k[15] - 660478335 | 0;\n c = (c << 14 | c >>> 18) + d | 0;\n b += (c & a | d & ~a) + k[4] - 405537848 | 0;\n b = (b << 20 | b >>> 12) + c | 0;\n a += (b & d | c & ~d) + k[9] + 568446438 | 0;\n a = (a << 5 | a >>> 27) + b | 0;\n d += (a & c | b & ~c) + k[14] - 1019803690 | 0;\n d = (d << 9 | d >>> 23) + a | 0;\n c += (d & b | a & ~b) + k[3] - 187363961 | 0;\n c = (c << 14 | c >>> 18) + d | 0;\n b += (c & a | d & ~a) + k[8] + 1163531501 | 0;\n b = (b << 20 | b >>> 12) + c | 0;\n a += (b & d | c & ~d) + k[13] - 1444681467 | 0;\n a = (a << 5 | a >>> 27) + b | 0;\n d += (a & c | b & ~c) + k[2] - 51403784 | 0;\n d = (d << 9 | d >>> 23) + a | 0;\n c += (d & b | a & ~b) + k[7] + 1735328473 | 0;\n c = (c << 14 | c >>> 18) + d | 0;\n b += (c & a | d & ~a) + k[12] - 1926607734 | 0;\n b = (b << 20 | b >>> 12) + c | 0;\n\n a += (b ^ c ^ d) + k[5] - 378558 | 0;\n a = (a << 4 | a >>> 28) + b | 0;\n d += (a ^ b ^ c) + k[8] - 2022574463 | 0;\n d = (d << 11 | d >>> 21) + a | 0;\n c += (d ^ a ^ b) + k[11] + 1839030562 | 0;\n c = (c << 16 | c >>> 16) + d | 0;\n b += (c ^ d ^ a) + k[14] - 35309556 | 0;\n b = (b << 23 | b >>> 9) + c | 0;\n a += (b ^ c ^ d) + k[1] - 1530992060 | 0;\n a = (a << 4 | a >>> 28) + b | 0;\n d += (a ^ b ^ c) + k[4] + 1272893353 | 0;\n d = (d << 11 | d >>> 21) + a | 0;\n c += (d ^ a ^ b) + k[7] - 155497632 | 0;\n c = (c << 16 | c >>> 16) + d | 0;\n b += (c ^ d ^ a) + k[10] - 1094730640 | 0;\n b = (b << 23 | b >>> 9) + c | 0;\n a += (b ^ c ^ d) + k[13] + 681279174 | 0;\n a = (a << 4 | a >>> 28) + b | 0;\n d += (a ^ b ^ c) + k[0] - 358537222 | 0;\n d = (d << 11 | d >>> 21) + a | 0;\n c += (d ^ a ^ b) + k[3] - 722521979 | 0;\n c = (c << 16 | c >>> 16) + d | 0;\n b += (c ^ d ^ a) + k[6] + 76029189 | 0;\n b = (b << 23 | b >>> 9) + c | 0;\n a += (b ^ c ^ d) + k[9] - 640364487 | 0;\n a = (a << 4 | a >>> 28) + b | 0;\n d += (a ^ b ^ c) + k[12] - 421815835 | 0;\n d = (d << 11 | d >>> 21) + a | 0;\n c += (d ^ a ^ b) + k[15] + 530742520 | 0;\n c = (c << 16 | c >>> 16) + d | 0;\n b += (c ^ d ^ a) + k[2] - 995338651 | 0;\n b = (b << 23 | b >>> 9) + c | 0;\n\n a += (c ^ (b | ~d)) + k[0] - 198630844 | 0;\n a = (a << 6 | a >>> 26) + b | 0;\n d += (b ^ (a | ~c)) + k[7] + 1126891415 | 0;\n d = (d << 10 | d >>> 22) + a | 0;\n c += (a ^ (d | ~b)) + k[14] - 1416354905 | 0;\n c = (c << 15 | c >>> 17) + d | 0;\n b += (d ^ (c | ~a)) + k[5] - 57434055 | 0;\n b = (b << 21 |b >>> 11) + c | 0;\n a += (c ^ (b | ~d)) + k[12] + 1700485571 | 0;\n a = (a << 6 | a >>> 26) + b | 0;\n d += (b ^ (a | ~c)) + k[3] - 1894986606 | 0;\n d = (d << 10 | d >>> 22) + a | 0;\n c += (a ^ (d | ~b)) + k[10] - 1051523 | 0;\n c = (c << 15 | c >>> 17) + d | 0;\n b += (d ^ (c | ~a)) + k[1] - 2054922799 | 0;\n b = (b << 21 |b >>> 11) + c | 0;\n a += (c ^ (b | ~d)) + k[8] + 1873313359 | 0;\n a = (a << 6 | a >>> 26) + b | 0;\n d += (b ^ (a | ~c)) + k[15] - 30611744 | 0;\n d = (d << 10 | d >>> 22) + a | 0;\n c += (a ^ (d | ~b)) + k[6] - 1560198380 | 0;\n c = (c << 15 | c >>> 17) + d | 0;\n b += (d ^ (c | ~a)) + k[13] + 1309151649 | 0;\n b = (b << 21 |b >>> 11) + c | 0;\n a += (c ^ (b | ~d)) + k[4] - 145523070 | 0;\n a = (a << 6 | a >>> 26) + b | 0;\n d += (b ^ (a | ~c)) + k[11] - 1120210379 | 0;\n d = (d << 10 | d >>> 22) + a | 0;\n c += (a ^ (d | ~b)) + k[2] + 718787259 | 0;\n c = (c << 15 | c >>> 17) + d | 0;\n b += (d ^ (c | ~a)) + k[9] - 343485551 | 0;\n b = (b << 21 | b >>> 11) + c | 0;\n\n x[0] = a + x[0] | 0;\n x[1] = b + x[1] | 0;\n x[2] = c + x[2] | 0;\n x[3] = d + x[3] | 0;\n }\n\n function md5blk(s) {\n var md5blks = [],\n i; /* Andy King said do it this way. */\n\n for (i = 0; i < 64; i += 4) {\n md5blks[i >> 2] = s.charCodeAt(i) + (s.charCodeAt(i + 1) << 8) + (s.charCodeAt(i + 2) << 16) + (s.charCodeAt(i + 3) << 24);\n }\n return md5blks;\n }\n\n function md5blk_array(a) {\n var md5blks = [],\n i; /* Andy King said do it this way. */\n\n for (i = 0; i < 64; i += 4) {\n md5blks[i >> 2] = a[i] + (a[i + 1] << 8) + (a[i + 2] << 16) + (a[i + 3] << 24);\n }\n return md5blks;\n }\n\n function md51(s) {\n var n = s.length,\n state = [1732584193, -271733879, -1732584194, 271733878],\n i,\n length,\n tail,\n tmp,\n lo,\n hi;\n\n for (i = 64; i <= n; i += 64) {\n md5cycle(state, md5blk(s.substring(i - 64, i)));\n }\n s = s.substring(i - 64);\n length = s.length;\n tail = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];\n for (i = 0; i < length; i += 1) {\n tail[i >> 2] |= s.charCodeAt(i) << ((i % 4) << 3);\n }\n tail[i >> 2] |= 0x80 << ((i % 4) << 3);\n if (i > 55) {\n md5cycle(state, tail);\n for (i = 0; i < 16; i += 1) {\n tail[i] = 0;\n }\n }\n\n // Beware that the final length might not fit in 32 bits so we take care of that\n tmp = n * 8;\n tmp = tmp.toString(16).match(/(.*?)(.{0,8})$/);\n lo = parseInt(tmp[2], 16);\n hi = parseInt(tmp[1], 16) || 0;\n\n tail[14] = lo;\n tail[15] = hi;\n\n md5cycle(state, tail);\n return state;\n }\n\n function md51_array(a) {\n var n = a.length,\n state = [1732584193, -271733879, -1732584194, 271733878],\n i,\n length,\n tail,\n tmp,\n lo,\n hi;\n\n for (i = 64; i <= n; i += 64) {\n md5cycle(state, md5blk_array(a.subarray(i - 64, i)));\n }\n\n // Not sure if it is a bug, however IE10 will always produce a sub array of length 1\n // containing the last element of the parent array if the sub array specified starts\n // beyond the length of the parent array - weird.\n // https://connect.microsoft.com/IE/feedback/details/771452/typed-array-subarray-issue\n a = (i - 64) < n ? a.subarray(i - 64) : new Uint8Array(0);\n\n length = a.length;\n tail = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];\n for (i = 0; i < length; i += 1) {\n tail[i >> 2] |= a[i] << ((i % 4) << 3);\n }\n\n tail[i >> 2] |= 0x80 << ((i % 4) << 3);\n if (i > 55) {\n md5cycle(state, tail);\n for (i = 0; i < 16; i += 1) {\n tail[i] = 0;\n }\n }\n\n // Beware that the final length might not fit in 32 bits so we take care of that\n tmp = n * 8;\n tmp = tmp.toString(16).match(/(.*?)(.{0,8})$/);\n lo = parseInt(tmp[2], 16);\n hi = parseInt(tmp[1], 16) || 0;\n\n tail[14] = lo;\n tail[15] = hi;\n\n md5cycle(state, tail);\n\n return state;\n }\n\n function rhex(n) {\n var s = '',\n j;\n for (j = 0; j < 4; j += 1) {\n s += hex_chr[(n >> (j * 8 + 4)) & 0x0F] + hex_chr[(n >> (j * 8)) & 0x0F];\n }\n return s;\n }\n\n function hex(x) {\n var i;\n for (i = 0; i < x.length; i += 1) {\n x[i] = rhex(x[i]);\n }\n return x.join('');\n }\n\n // In some cases the fast add32 function cannot be used..\n if (hex(md51('hello')) !== '5d41402abc4b2a76b9719d911017c592') {\n add32 = function (x, y) {\n var lsw = (x & 0xFFFF) + (y & 0xFFFF),\n msw = (x >> 16) + (y >> 16) + (lsw >> 16);\n return (msw << 16) | (lsw & 0xFFFF);\n };\n }\n\n // ---------------------------------------------------\n\n /**\n * ArrayBuffer slice polyfill.\n *\n * @see https://github.com/ttaubert/node-arraybuffer-slice\n */\n\n if (typeof ArrayBuffer !== 'undefined' && !ArrayBuffer.prototype.slice) {\n (function () {\n function clamp(val, length) {\n val = (val | 0) || 0;\n\n if (val < 0) {\n return Math.max(val + length, 0);\n }\n\n return Math.min(val, length);\n }\n\n ArrayBuffer.prototype.slice = function (from, to) {\n var length = this.byteLength,\n begin = clamp(from, length),\n end = length,\n num,\n target,\n targetArray,\n sourceArray;\n\n if (to !== undefined) {\n end = clamp(to, length);\n }\n\n if (begin > end) {\n return new ArrayBuffer(0);\n }\n\n num = end - begin;\n target = new ArrayBuffer(num);\n targetArray = new Uint8Array(target);\n\n sourceArray = new Uint8Array(this, begin, num);\n targetArray.set(sourceArray);\n\n return target;\n };\n })();\n }\n\n // ---------------------------------------------------\n\n /**\n * Helpers.\n */\n\n function toUtf8(str) {\n if (/[\\u0080-\\uFFFF]/.test(str)) {\n str = unescape(encodeURIComponent(str));\n }\n\n return str;\n }\n\n function utf8Str2ArrayBuffer(str, returnUInt8Array) {\n var length = str.length,\n buff = new ArrayBuffer(length),\n arr = new Uint8Array(buff),\n i;\n\n for (i = 0; i < length; i += 1) {\n arr[i] = str.charCodeAt(i);\n }\n\n return returnUInt8Array ? arr : buff;\n }\n\n function arrayBuffer2Utf8Str(buff) {\n return String.fromCharCode.apply(null, new Uint8Array(buff));\n }\n\n function concatenateArrayBuffers(first, second, returnUInt8Array) {\n var result = new Uint8Array(first.byteLength + second.byteLength);\n\n result.set(new Uint8Array(first));\n result.set(new Uint8Array(second), first.byteLength);\n\n return returnUInt8Array ? result : result.buffer;\n }\n\n function hexToBinaryString(hex) {\n var bytes = [],\n length = hex.length,\n x;\n\n for (x = 0; x < length - 1; x += 2) {\n bytes.push(parseInt(hex.substr(x, 2), 16));\n }\n\n return String.fromCharCode.apply(String, bytes);\n }\n\n // ---------------------------------------------------\n\n /**\n * SparkMD5 OOP implementation.\n *\n * Use this class to perform an incremental md5, otherwise use the\n * static methods instead.\n */\n\n function SparkMD5() {\n // call reset to init the instance\n this.reset();\n }\n\n /**\n * Appends a string.\n * A conversion will be applied if an utf8 string is detected.\n *\n * @param {String} str The string to be appended\n *\n * @return {SparkMD5} The instance itself\n */\n SparkMD5.prototype.append = function (str) {\n // Converts the string to utf8 bytes if necessary\n // Then append as binary\n this.appendBinary(toUtf8(str));\n\n return this;\n };\n\n /**\n * Appends a binary string.\n *\n * @param {String} contents The binary string to be appended\n *\n * @return {SparkMD5} The instance itself\n */\n SparkMD5.prototype.appendBinary = function (contents) {\n this._buff += contents;\n this._length += contents.length;\n\n var length = this._buff.length,\n i;\n\n for (i = 64; i <= length; i += 64) {\n md5cycle(this._hash, md5blk(this._buff.substring(i - 64, i)));\n }\n\n this._buff = this._buff.substring(i - 64);\n\n return this;\n };\n\n /**\n * Finishes the incremental computation, reseting the internal state and\n * returning the result.\n *\n * @param {Boolean} raw True to get the raw string, false to get the hex string\n *\n * @return {String} The result\n */\n SparkMD5.prototype.end = function (raw) {\n var buff = this._buff,\n length = buff.length,\n i,\n tail = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],\n ret;\n\n for (i = 0; i < length; i += 1) {\n tail[i >> 2] |= buff.charCodeAt(i) << ((i % 4) << 3);\n }\n\n this._finish(tail, length);\n ret = hex(this._hash);\n\n if (raw) {\n ret = hexToBinaryString(ret);\n }\n\n this.reset();\n\n return ret;\n };\n\n /**\n * Resets the internal state of the computation.\n *\n * @return {SparkMD5} The instance itself\n */\n SparkMD5.prototype.reset = function () {\n this._buff = '';\n this._length = 0;\n this._hash = [1732584193, -271733879, -1732584194, 271733878];\n\n return this;\n };\n\n /**\n * Gets the internal state of the computation.\n *\n * @return {Object} The state\n */\n SparkMD5.prototype.getState = function () {\n return {\n buff: this._buff,\n length: this._length,\n hash: this._hash.slice()\n };\n };\n\n /**\n * Gets the internal state of the computation.\n *\n * @param {Object} state The state\n *\n * @return {SparkMD5} The instance itself\n */\n SparkMD5.prototype.setState = function (state) {\n this._buff = state.buff;\n this._length = state.length;\n this._hash = state.hash;\n\n return this;\n };\n\n /**\n * Releases memory used by the incremental buffer and other additional\n * resources. If you plan to use the instance again, use reset instead.\n */\n SparkMD5.prototype.destroy = function () {\n delete this._hash;\n delete this._buff;\n delete this._length;\n };\n\n /**\n * Finish the final calculation based on the tail.\n *\n * @param {Array} tail The tail (will be modified)\n * @param {Number} length The length of the remaining buffer\n */\n SparkMD5.prototype._finish = function (tail, length) {\n var i = length,\n tmp,\n lo,\n hi;\n\n tail[i >> 2] |= 0x80 << ((i % 4) << 3);\n if (i > 55) {\n md5cycle(this._hash, tail);\n for (i = 0; i < 16; i += 1) {\n tail[i] = 0;\n }\n }\n\n // Do the final computation based on the tail and length\n // Beware that the final length may not fit in 32 bits so we take care of that\n tmp = this._length * 8;\n tmp = tmp.toString(16).match(/(.*?)(.{0,8})$/);\n lo = parseInt(tmp[2], 16);\n hi = parseInt(tmp[1], 16) || 0;\n\n tail[14] = lo;\n tail[15] = hi;\n md5cycle(this._hash, tail);\n };\n\n /**\n * Performs the md5 hash on a string.\n * A conversion will be applied if utf8 string is detected.\n *\n * @param {String} str The string\n * @param {Boolean} [raw] True to get the raw string, false to get the hex string\n *\n * @return {String} The result\n */\n SparkMD5.hash = function (str, raw) {\n // Converts the string to utf8 bytes if necessary\n // Then compute it using the binary function\n return SparkMD5.hashBinary(toUtf8(str), raw);\n };\n\n /**\n * Performs the md5 hash on a binary string.\n *\n * @param {String} content The binary string\n * @param {Boolean} [raw] True to get the raw string, false to get the hex string\n *\n * @return {String} The result\n */\n SparkMD5.hashBinary = function (content, raw) {\n var hash = md51(content),\n ret = hex(hash);\n\n return raw ? hexToBinaryString(ret) : ret;\n };\n\n // ---------------------------------------------------\n\n /**\n * SparkMD5 OOP implementation for array buffers.\n *\n * Use this class to perform an incremental md5 ONLY for array buffers.\n */\n SparkMD5.ArrayBuffer = function () {\n // call reset to init the instance\n this.reset();\n };\n\n /**\n * Appends an array buffer.\n *\n * @param {ArrayBuffer} arr The array to be appended\n *\n * @return {SparkMD5.ArrayBuffer} The instance itself\n */\n SparkMD5.ArrayBuffer.prototype.append = function (arr) {\n var buff = concatenateArrayBuffers(this._buff.buffer, arr, true),\n length = buff.length,\n i;\n\n this._length += arr.byteLength;\n\n for (i = 64; i <= length; i += 64) {\n md5cycle(this._hash, md5blk_array(buff.subarray(i - 64, i)));\n }\n\n this._buff = (i - 64) < length ? new Uint8Array(buff.buffer.slice(i - 64)) : new Uint8Array(0);\n\n return this;\n };\n\n /**\n * Finishes the incremental computation, reseting the internal state and\n * returning the result.\n *\n * @param {Boolean} raw True to get the raw string, false to get the hex string\n *\n * @return {String} The result\n */\n SparkMD5.ArrayBuffer.prototype.end = function (raw) {\n var buff = this._buff,\n length = buff.length,\n tail = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],\n i,\n ret;\n\n for (i = 0; i < length; i += 1) {\n tail[i >> 2] |= buff[i] << ((i % 4) << 3);\n }\n\n this._finish(tail, length);\n ret = hex(this._hash);\n\n if (raw) {\n ret = hexToBinaryString(ret);\n }\n\n this.reset();\n\n return ret;\n };\n\n /**\n * Resets the internal state of the computation.\n *\n * @return {SparkMD5.ArrayBuffer} The instance itself\n */\n SparkMD5.ArrayBuffer.prototype.reset = function () {\n this._buff = new Uint8Array(0);\n this._length = 0;\n this._hash = [1732584193, -271733879, -1732584194, 271733878];\n\n return this;\n };\n\n /**\n * Gets the internal state of the computation.\n *\n * @return {Object} The state\n */\n SparkMD5.ArrayBuffer.prototype.getState = function () {\n var state = SparkMD5.prototype.getState.call(this);\n\n // Convert buffer to a string\n state.buff = arrayBuffer2Utf8Str(state.buff);\n\n return state;\n };\n\n /**\n * Gets the internal state of the computation.\n *\n * @param {Object} state The state\n *\n * @return {SparkMD5.ArrayBuffer} The instance itself\n */\n SparkMD5.ArrayBuffer.prototype.setState = function (state) {\n // Convert string to buffer\n state.buff = utf8Str2ArrayBuffer(state.buff, true);\n\n return SparkMD5.prototype.setState.call(this, state);\n };\n\n SparkMD5.ArrayBuffer.prototype.destroy = SparkMD5.prototype.destroy;\n\n SparkMD5.ArrayBuffer.prototype._finish = SparkMD5.prototype._finish;\n\n /**\n * Performs the md5 hash on an array buffer.\n *\n * @param {ArrayBuffer} arr The array buffer\n * @param {Boolean} [raw] True to get the raw string, false to get the hex one\n *\n * @return {String} The result\n */\n SparkMD5.ArrayBuffer.hash = function (arr, raw) {\n var hash = md51_array(new Uint8Array(arr)),\n ret = hex(hash);\n\n return raw ? hexToBinaryString(ret) : ret;\n };\n\n return SparkMD5;\n}));\n","// getDefaultExport function for compatibility with non-ESM modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};\n","__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n }\n }\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","export var OperatorType;\n(function (OperatorType) {\n OperatorType[\"MATCHES\"] = \"MATCHES\";\n OperatorType[\"NOT_MATCHES\"] = \"NOT_MATCHES\";\n OperatorType[\"GTE\"] = \"GTE\";\n OperatorType[\"GT\"] = \"GT\";\n OperatorType[\"LTE\"] = \"LTE\";\n OperatorType[\"LT\"] = \"LT\";\n OperatorType[\"ONE_OF\"] = \"ONE_OF\";\n OperatorType[\"NOT_ONE_OF\"] = \"NOT_ONE_OF\";\n OperatorType[\"IS_NULL\"] = \"IS_NULL\";\n})(OperatorType || (OperatorType = {}));\nexport function matchesRule(rule, subjectAttributes) {\n const conditionEvaluations = evaluateRuleConditions(subjectAttributes, rule.conditions);\n // TODO: short-circuit return when false condition is found\n return !conditionEvaluations.includes(false);\n}\nfunction evaluateRuleConditions(subjectAttributes, conditions) {\n return conditions.map((condition) => evaluateCondition(subjectAttributes, condition));\n}\nfunction evaluateCondition(subjectAttributes, condition) {\n const value = subjectAttributes[condition.attribute];\n if (condition.operator === OperatorType.IS_NULL) {\n if (condition.value) {\n return value === null || value === undefined;\n }\n return value !== null && value !== undefined;\n }\n if (value !== null && value !== undefined) {\n switch (condition.operator) {\n case OperatorType.GTE:\n case OperatorType.GT:\n case OperatorType.LTE:\n case OperatorType.LT: {\n const comparator = (a, b) => condition.operator === OperatorType.GTE\n ? a >= b\n : condition.operator === OperatorType.GT\n ? a > b\n : condition.operator === OperatorType.LTE\n ? a <= b\n : a < b;\n return compareNumber(value, condition.value, comparator);\n }\n case OperatorType.MATCHES:\n // ReDoS mitigation should happen on user input to avoid event loop saturation (https://datadoghq.atlassian.net/browse/FFL-1060)\n return new RegExp(condition.value).test(String(value)); // dd-iac-scan ignore-line\n case OperatorType.NOT_MATCHES:\n // ReDoS mitigation should happen on user input to avoid event loop saturation (https://datadoghq.atlassian.net/browse/FFL-1060)\n return !new RegExp(condition.value).test(String(value)); // dd-iac-scan ignore-line\n case OperatorType.ONE_OF:\n return isOneOf(value.toString(), condition.value);\n case OperatorType.NOT_ONE_OF:\n return isNotOneOf(value.toString(), condition.value);\n }\n }\n return false;\n}\nfunction isOneOf(attributeValue, conditionValues) {\n return conditionValues.includes(attributeValue);\n}\nfunction isNotOneOf(attributeValue, conditionValues) {\n return !isOneOf(attributeValue, conditionValues);\n}\nfunction compareNumber(attributeValue, conditionValue, compareFn) {\n return compareFn(Number(attributeValue), Number(conditionValue));\n}\n//# sourceMappingURL=rules.js.map","import SparkMD5 from 'spark-md5';\nexport function getMD5Hash(input, salt = '') {\n return new SparkMD5().append(salt).append(input).end();\n}\n/**\n * Builds a storage key suffix from an API key.\n * @param apiKey - The API key to build the suffix from\n * @returns A string suffix for storage keys\n * @public\n */\nexport function buildStorageKeySuffix(apiKey) {\n // Note that we hash the API key and use the first 16 characters of the digest.\n const hashed = getMD5Hash(apiKey);\n return hashed.slice(0, 16);\n}\n//# sourceMappingURL=obfuscation.js.map","import { getMD5Hash } from '../obfuscation';\n/** Converts an {@link AssignmentCacheKey} to a string. */\nexport function assignmentCacheKeyToString(exposureEvent) {\n const key = {\n flag: {\n key: exposureEvent.flag.key,\n },\n subject: {\n id: exposureEvent.subject.id,\n attributes: exposureEvent.subject.attributes,\n },\n };\n return getMD5Hash(JSON.stringify(key));\n}\n/** Converts an {@link AssignmentCacheValue} to a string. */\nexport function assignmentCacheValueToString(cacheValue) {\n return getMD5Hash(JSON.stringify(cacheValue));\n}\nexport class AbstractAssignmentCache {\n // key -> variation value hash\n constructor(delegate) {\n this.delegate = delegate;\n }\n init() {\n return Promise.resolve();\n }\n /** Returns whether the provided {@link AssignmentCacheEntry} is present in the cache. */\n has(entry) {\n return this.get(entry) === assignmentCacheValueToString(entry);\n }\n get(key) {\n return this.delegate.get(assignmentCacheKeyToString(key));\n }\n /**\n * Stores the provided {@link AssignmentCacheEntry} in the cache. If the key already exists, it\n * will be overwritten.\n */\n set(entry) {\n this.delegate.set(assignmentCacheKeyToString(entry), assignmentCacheValueToString(entry));\n }\n /**\n * Returns an array with all {@link AssignmentCacheEntry} entries in the cache as an array of\n * {@link string}s.\n */\n entries() {\n return this.delegate.entries();\n }\n /** Clears all entries from the cache. */\n clear() {\n this.delegate.clear();\n }\n}\n//# sourceMappingURL=abstract-assignment-cache.js.map","/**\n * LRUCache is a simple implementation of a Least Recently Used (LRU) cache.\n *\n * Old items are evicted when the cache reaches its capacity.\n *\n * The cache is implemented as a Map, which maintains insertion order:\n * ```\n * Iteration happens in insertion order, which corresponds to the order in which each key-value pair\n * was first inserted into the map by the set() method (that is, there wasn't a key with the same\n * value already in the map when set() was called).\n * ```\n * Source: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map\n */\nexport class LRUCache {\n constructor(capacity) {\n this.capacity = capacity;\n this.cache = new Map();\n this.size = this.cache.size;\n }\n [(Symbol.toStringTag, Symbol.iterator)]() {\n return this.cache[Symbol.iterator]();\n }\n forEach(callbackFn) {\n this.cache.forEach(callbackFn);\n }\n entries() {\n return this.cache.entries();\n }\n clear() {\n this.cache.clear();\n }\n delete(key) {\n return this.cache.delete(key);\n }\n keys() {\n return this.cache.keys();\n }\n values() {\n return this.cache.values();\n }\n has(key) {\n return this.cache.has(key);\n }\n get(key) {\n if (!this.has(key)) {\n return undefined;\n }\n const value = this.cache.get(key);\n if (value !== undefined) {\n // the delete and set operations are used together to ensure that the most recently accessed\n // or added item is always considered the \"newest\" in terms of access order.\n // This is crucial for maintaining the correct order of elements in the cache,\n // which directly impacts which item is considered the least recently used (LRU) and\n // thus eligible for eviction when the cache reaches its capacity.\n this.delete(key);\n this.cache.set(key, value);\n }\n return value;\n }\n set(key, value) {\n if (this.capacity === 0) {\n return this;\n }\n if (this.cache.has(key)) {\n this.cache.delete(key);\n }\n else if (this.cache.size >= this.capacity) {\n // To evict the least recently used (LRU) item, we retrieve the first key in the Map.\n // This is possible because the Map object in JavaScript maintains the insertion order of the keys.\n // Therefore, the first key represents the oldest entry, which is the least recently used item in our cache.\n // We use Map.prototype.keys().next().value to obtain this oldest key and then delete it from the cache.\n const oldestKey = this.cache.keys().next().value;\n if (oldestKey) {\n this.delete(oldestKey);\n }\n }\n this.cache.set(key, value);\n return this;\n }\n}\n//# sourceMappingURL=lru-cache.js.map","import { AbstractAssignmentCache } from './abstract-assignment-cache';\nimport { LRUCache } from './lru-cache';\n/**\n * A cache that uses the LRU algorithm to evict the least recently used items.\n *\n * It is used to limit the size of the cache.\n *\n * The primary use case is for server-side SDKs, where the cache is shared across\n * multiple users. In this case, the cache size should be set to the maximum number\n * of users that can be active at the same time.\n * @param {number} maxSize - Maximum cache size\n */\nexport class LRUInMemoryAssignmentCache extends AbstractAssignmentCache {\n constructor(maxSize) {\n super(new LRUCache(maxSize));\n }\n}\n//# sourceMappingURL=lru-in-memory-assignment-cache.js.map","import { getMD5Hash } from '@datadog/flagging-core';\nexport class Sharder {\n}\nexport class MD5Sharder extends Sharder {\n getShard(input, totalShards) {\n const hashOutput = getMD5Hash(input);\n // get the first 4 bytes of the md5 hex string and parse it using base 16\n // (8 hex characters represent 4 bytes, e.g. 0xffffffff represents the max 4-byte integer)\n const intFromHash = parseInt(hashOutput.slice(0, 8), 16);\n return intFromHash % totalShards;\n }\n}\nexport class DeterministicSharder extends Sharder {\n constructor(lookup) {\n super();\n this.lookup = lookup;\n }\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n getShard(input, _totalShards) {\n var _a;\n return (_a = this.lookup[input]) !== null && _a !== void 0 ? _a : 0;\n }\n}\n//# sourceMappingURL=sharders.js.map","import { ErrorCode, StandardResolutionReasons, } from '@openfeature/server-sdk';\nimport { evaluateForSubject } from './evaluateForSubject';\nexport function evaluate(config, type, flagKey, defaultValue, context, logger) {\n if (!config) {\n return {\n value: defaultValue,\n reason: 'ERROR',\n errorCode: ErrorCode.PROVIDER_NOT_READY,\n };\n }\n const { targetingKey: subjectKey, ...remainingContext } = context;\n if (!subjectKey) {\n return {\n value: defaultValue,\n reason: 'ERROR',\n errorCode: ErrorCode.TARGETING_KEY_MISSING,\n };\n }\n // Include the subjectKey as an \"id\" attribute for rule matching\n const subjectAttributes = {\n id: subjectKey,\n ...remainingContext,\n };\n try {\n const resultWithDetails = evaluateForSubject(config.flags[flagKey], type, subjectKey, subjectAttributes, defaultValue, logger);\n return resultWithDetails;\n }\n catch (error) {\n logger.error('Error evaluating flag', { error });\n return {\n value: defaultValue,\n reason: StandardResolutionReasons.ERROR,\n errorCode: ErrorCode.GENERAL,\n };\n }\n}\n//# sourceMappingURL=evaluation.js.map","import { ErrorCode, StandardResolutionReasons, } from '@openfeature/server-sdk';\nimport { matchesRule } from '../rules/rules';\nimport { matchesShard } from '../shards/matchesShard';\nimport { variantTypeToFlagValueType } from './ufc-v1';\nexport function evaluateForSubject(flag, type, subjectKey, subjectAttributes, defaultValue, logger) {\n if (!(flag === null || flag === void 0 ? void 0 : flag.enabled)) {\n logger.debug(`returning default assignment because flag is disabled`, {\n flagKey: flag ? flag.key : 'undefined',\n subjectKey,\n });\n return {\n value: defaultValue,\n reason: StandardResolutionReasons.DISABLED,\n };\n }\n const isValid = validateTypeMatch(type, flag.variationType);\n if (!isValid) {\n logger.debug(`variant value type mismatch, returning default value`, {\n flagKey: flag.key,\n subjectKey,\n expectedType: type,\n variantType: flag.variationType,\n });\n return {\n value: defaultValue,\n reason: StandardResolutionReasons.ERROR,\n errorCode: ErrorCode.TYPE_MISMATCH,\n };\n }\n const now = new Date();\n for (const allocation of flag.allocations) {\n if (allocation.startAt && now < new Date(allocation.startAt)) {\n logger.debug(`allocation before start date`, {\n flagKey: flag.key,\n subjectKey,\n allocationKey: allocation.key,\n startAt: allocation.startAt,\n });\n continue;\n }\n if (allocation.endAt && now >= new Date(allocation.endAt)) {\n logger.debug(`allocation after end date`, {\n flagKey: flag.key,\n subjectKey,\n allocationKey: allocation.key,\n endAt: allocation.endAt,\n });\n continue;\n }\n const matched = containsMatchingRule(allocation.rules, subjectAttributes, logger);\n if (!matched) {\n continue;\n }\n const selectedSplit = selectSplitUsingSharding(allocation.splits, subjectKey, flag.key, logger);\n if (selectedSplit) {\n const variant = flag.variations[selectedSplit.variationKey];\n if (variant) {\n logger.debug(`evaluated a flag`, {\n flagKey: flag.key,\n subjectKey,\n assignment: variant.value,\n });\n return {\n value: variant.value,\n reason: StandardResolutionReasons.TARGETING_MATCH,\n variant: variant.key,\n flagMetadata: {\n allocationKey: allocation.key,\n variationType: variantTypeToFlagValueType(flag.variationType),\n doLog: !!allocation.doLog,\n },\n };\n }\n }\n else {\n logger.debug(`no matching split found for subject`, {\n flagKey: flag.key,\n subjectKey,\n allocationKey: allocation.key,\n });\n }\n }\n // This shouldn't happen since a default allocation is generated by the server\n logger.debug(`returning default assignment because no allocation matched`, {\n flagKey: flag.key,\n subjectKey,\n });\n return {\n value: defaultValue,\n reason: StandardResolutionReasons.DEFAULT,\n };\n}\nfunction validateTypeMatch(expectedType, variantType) {\n if (expectedType === 'boolean') {\n return variantType === 'BOOLEAN';\n }\n if (expectedType === 'string') {\n return variantType === 'STRING';\n }\n if (expectedType === 'number') {\n return variantType === 'INTEGER' || variantType === 'NUMERIC';\n }\n if (expectedType === 'object') {\n return variantType === 'JSON';\n }\n throw new Error(`Invalid expected type: ${expectedType}`);\n}\nexport function containsMatchingRule(rules, subjectAttributes, logger) {\n if (!(rules === null || rules === void 0 ? void 0 : rules.length)) {\n return true;\n }\n logger.debug(`evaluating rules`, {\n rules: JSON.stringify(rules),\n subjectAttributes,\n });\n return rules.some((rule) => matchesRule(rule, subjectAttributes));\n}\nfunction selectSplitUsingSharding(splits, subjectKey, flagKey, logger) {\n if (!splits || splits.length === 0) {\n return null;\n }\n for (const split of splits) {\n logger.debug(`evaluating split sharding`, {\n flagKey,\n subjectKey,\n variationKey: split.variationKey,\n shards: split.shards,\n });\n const matches = split.shards.every((shard) => {\n const shardMatches = matchesShard(shard, subjectKey);\n logger.debug(`shard match result`, {\n flagKey,\n subjectKey,\n variationKey: split.variationKey,\n shard: shard,\n matches: shardMatches,\n });\n return shardMatches;\n });\n if (matches) {\n logger.debug(`subject matches split`, {\n flagKey,\n subjectKey,\n variationKey: split.variationKey,\n });\n return split;\n }\n }\n logger.debug(`subject matches no splits`, {\n flagKey,\n subjectKey,\n });\n return null;\n}\n//# sourceMappingURL=evaluateForSubject.js.map","import { MD5Sharder } from './sharders';\nexport function matchesShard(shard, subjectKey, customSharder) {\n const sharder = customSharder !== null && customSharder !== void 0 ? customSharder : new MD5Sharder();\n const assignedShard = sharder.getShard(hashKey(shard.salt, subjectKey), shard.totalShards);\n return shard.ranges.some((range) => isInShardRange(assignedShard, range));\n}\nfunction isInShardRange(shard, range) {\n return range.start <= shard && shard < range.end;\n}\nfunction hashKey(salt, subjectKey) {\n return `${salt}-${subjectKey}`;\n}\n//# sourceMappingURL=matchesShard.js.map","export function variantTypeToFlagValueType(variantType) {\n if (variantType === 'BOOLEAN') {\n return 'boolean';\n }\n if (variantType === 'STRING') {\n return 'string';\n }\n if (variantType === 'INTEGER' || variantType === 'NUMERIC') {\n return 'number';\n }\n if (variantType === 'JSON') {\n return 'object';\n }\n throw new Error(`Cannot convert variant type to flag value type: ${variantType}`);\n}\n//# sourceMappingURL=ufc-v1.js.map","/**\n * Manages deferred initialization with timeout support.\n * Encapsulates the pattern of waiting for external resolution/rejection\n * with automatic timeout handling and cleanup.\n */\nexport class InitializationController {\n constructor(timeoutMs, onTimeout) {\n this.promise = Promise.race([\n // Deferred promise - resolved/rejected externally\n new Promise((resolve, reject) => {\n this.resolve = () => {\n this.cleanup();\n resolve();\n };\n this.reject = (reason) => {\n this.cleanup();\n reject(reason);\n };\n }),\n // Timeout promise\n new Promise(() => {\n this.timeoutId = setTimeout(() => {\n onTimeout();\n }, timeoutMs);\n }),\n ]);\n }\n /**\n * Wait for initialization to complete (or timeout)\n */\n async wait() {\n try {\n await this.promise;\n }\n finally {\n this.cleanup();\n }\n }\n /**\n * Complete initialization successfully\n */\n complete() {\n if (this.resolve) {\n this.resolve();\n }\n }\n /**\n * Fail initialization with an error\n */\n fail(error) {\n if (this.reject) {\n this.reject(error);\n }\n }\n /**\n * Check if initialization is still in progress\n */\n isInitializing() {\n return this.resolve !== undefined;\n }\n cleanup() {\n if (this.timeoutId) {\n clearTimeout(this.timeoutId);\n this.timeoutId = undefined;\n }\n this.resolve = undefined;\n this.reject = undefined;\n }\n}\n//# sourceMappingURL=initialization-controller.js.map","import { createExposureEvent, LRUInMemoryAssignmentCache, } from '@datadog/flagging-core';\nimport { OpenFeatureEventEmitter, ProviderEvents } from '@openfeature/server-sdk';\nimport { evaluate } from './configuration/evaluation';\nimport { InitializationController } from './initialization-controller';\n/**\n * Default timeout in milliseconds for provider initialization.\n */\nconst DEFAULT_INITIALIZATION_TIMEOUT_MS = 30000;\nexport class DatadogNodeServerProvider {\n constructor(options) {\n this.options = options;\n this.metadata = {\n name: 'datadog-node-server',\n };\n this.runsOn = 'server';\n this.hooks = [];\n this.events = new OpenFeatureEventEmitter();\n this.exposureCache = new LRUInMemoryAssignmentCache(50000);\n }\n /**\n * Used by dd-source-js\n */\n getConfiguration() {\n return this.configuration;\n }\n /**\n * Used by dd-source-js\n */\n setConfiguration(configuration) {\n var _a, _b, _c;\n const prevCreatedAt = (_a = this.configuration) === null || _a === void 0 ? void 0 : _a.createdAt;\n const hadConfiguration = !!this.configuration;\n if (hadConfiguration && this.configuration !== configuration) {\n this.events.emit(ProviderEvents.ConfigurationChanged);\n const newCreatedAt = configuration === null || configuration === void 0 ? void 0 : configuration.createdAt;\n if (prevCreatedAt !== newCreatedAt) {\n (_b = this.exposureCache) === null || _b === void 0 ? void 0 : _b.clear();\n }\n this.configuration = configuration;\n return;\n }\n this.configuration = configuration;\n if ((_c = this.initController) === null || _c === void 0 ? void 0 : _c.isInitializing()) {\n // First configuration during initialization - resolve the initialization promise\n // This will cause OpenFeature SDK to emit PROVIDER_READY\n this.initController.complete();\n }\n else if (!hadConfiguration) {\n // Configuration is being set after initialization completed/failed (e.g., after timeout)\n // Emit PROVIDER_READY to signal recovery from error state\n this.events.emit(ProviderEvents.Ready);\n }\n }\n /**\n * Used by dd-source-js\n */\n setError(error) {\n var _a;\n if ((_a = this.initController) === null || _a === void 0 ? void 0 : _a.isInitializing()) {\n this.initController.fail(error);\n }\n else {\n this.events.emit(ProviderEvents.Error, { error });\n }\n }\n /**\n * Used by the OpenFeature SDK to set the status based on initialization.\n * Status of 'PROVIDER_READY' is emitted with a resolved promise.\n * Status of 'PROVIDER_ERROR' is emitted with a rejected promise.\n *\n * Since we aren't loading the configuration in this Provider, we will simulate\n * loading functionality via InitializationController.\n * See setConfiguration and setError for more details.\n */\n async initialize() {\n var _a, _b;\n if (this.configuration) {\n return;\n }\n const timeoutMs = (_a = this.options.initializationTimeoutMs) !== null && _a !== void 0 ? _a : DEFAULT_INITIALIZATION_TIMEOUT_MS;\n this.initController = new InitializationController(timeoutMs, () => this.setError(new Error(`Initialization timeout after ${timeoutMs}ms`)));\n await this.initController.wait();\n await ((_b = this.exposureCache) === null || _b === void 0 ? void 0 : _b.init());\n }\n async resolveBooleanEvaluation(flagKey, defaultValue, context, _logger) {\n const resolutionDetails = evaluate(this.configuration, 'boolean', flagKey, defaultValue, context, _logger);\n this.handleExposure(flagKey, context, resolutionDetails);\n return resolutionDetails;\n }\n async resolveStringEvaluation(flagKey, defaultValue, context, _logger) {\n const resolutionDetails = evaluate(this.configuration, 'string', flagKey, defaultValue, context, _logger);\n this.handleExposure(flagKey, context, resolutionDetails);\n return resolutionDetails;\n }\n async resolveNumberEvaluation(flagKey, defaultValue, context, _logger) {\n const resolutionDetails = evaluate(this.configuration, 'number', flagKey, defaultValue, context, _logger);\n this.handleExposure(flagKey, context, resolutionDetails);\n return resolutionDetails;\n }\n async resolveObjectEvaluation(flagKey, defaultValue, context, _logger) {\n // type safety: OpenFeature interface requires us to return a\n // specific T for *any* value of T (which could be any subtype of\n // JsonValue). We can't even theoretically implement it in a\n // type-sound way because there's no runtime information passed to\n // learn what type the user expects. So it's up to the user to\n // make sure they pass the appropriate type.\n const resolutionDetails = evaluate(this.configuration, 'object', flagKey, defaultValue, context, _logger);\n this.handleExposure(flagKey, context, resolutionDetails);\n return resolutionDetails;\n }\n handleExposure(flagKey, context, resolutionDetails) {\n var _a, _b, _c;\n const timestamp = Date.now();\n const evalutationDetails = {\n ...resolutionDetails,\n flagKey: flagKey,\n flagMetadata: (_a = resolutionDetails.flagMetadata) !== null && _a !== void 0 ? _a : {},\n };\n const exposureEvent = createExposureEvent(context, evalutationDetails);\n if (!exposureEvent) {\n return;\n }\n const hasLoggedAssignment = (_b = this.exposureCache) === null || _b === void 0 ? void 0 : _b.has(exposureEvent);\n if (hasLoggedAssignment) {\n return;\n }\n if (this.options.exposureChannel.hasSubscribers) {\n this.options.exposureChannel.publish({ ...exposureEvent, timestamp });\n (_c = this.exposureCache) === null || _c === void 0 ? void 0 : _c.set(exposureEvent);\n }\n }\n}\n//# sourceMappingURL=provider.js.map","export function createExposureEvent(context, details) {\n var _a, _b;\n // Only log if doLog flag is true\n if (!((_a = details.flagMetadata) === null || _a === void 0 ? void 0 : _a.doLog)) {\n return;\n }\n // Skip logging if allocation key or variant is missing (this should never happen)\n const allocationKey = (_b = details.flagMetadata) === null || _b === void 0 ? void 0 : _b.allocationKey;\n const variantKey = details.variant;\n if (!allocationKey || !variantKey) {\n return;\n }\n const { targetingKey: id = '', ...attributes } = context;\n return {\n allocation: {\n key: allocationKey,\n },\n flag: {\n key: details.flagKey,\n },\n variant: {\n key: variantKey,\n },\n subject: {\n id,\n attributes,\n },\n };\n}\n//# sourceMappingURL=exposureEvent.js.map"],"names":["parseInt","unescape","encodeURIComponent","String","ArrayBuffer","Math","n","s","Uint8Array","r","i","e","Object","Symbol","JSON","Promise","Map","t","Error","Date","Number","RegExp","setTimeout","clearTimeout","a"],"mappings":"oDAGQ,EAAO,OAAO,CAAG,AAgBvB,SAAU,CAAS,EAEjB,aAeA,IAGI,EAAU,CAAC,IAAK,IAAK,IAAK,IAAK,IAAK,IAAK,IAAK,IAAK,IAAK,IAAK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D,GAAwC,EAAG,GAAG,CAAC,GAE9E,CACJ,C"} \ No newline at end of file diff --git a/packages/node_modules/@datadog/sketches-js/index.js.map b/packages/node_modules/@datadog/sketches-js/index.js.map new file mode 100644 index 00000000000..a2ca27abc7a --- /dev/null +++ b/packages/node_modules/@datadog/sketches-js/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"@datadog/sketches-js/index.js","sources":["webpack:///./@datadog/sketches-js/dist/ddsketch/DDSketch.js","webpack:///./@datadog/sketches-js/dist/ddsketch/index.js","webpack:///./@datadog/sketches-js/dist/ddsketch/mapping/CubicallyInterpolatedMapping.js","webpack:///./@datadog/sketches-js/dist/ddsketch/mapping/KeyMapping.js","webpack:///./@datadog/sketches-js/dist/ddsketch/mapping/LinearlyInterpolatedMapping.js","webpack:///./@datadog/sketches-js/dist/ddsketch/mapping/LogarithmicMapping.js","webpack:///./@datadog/sketches-js/dist/ddsketch/mapping/index.js","webpack:///./@datadog/sketches-js/dist/ddsketch/math.js","webpack:///./@datadog/sketches-js/dist/ddsketch/proto/compiled.js","webpack:///./@datadog/sketches-js/dist/ddsketch/store/CollapsingHighestDenseStore.js","webpack:///./@datadog/sketches-js/dist/ddsketch/store/CollapsingLowestDenseStore.js","webpack:///./@datadog/sketches-js/dist/ddsketch/store/DenseStore.js","webpack:///./@datadog/sketches-js/dist/ddsketch/store/index.js","webpack:///./@datadog/sketches-js/dist/ddsketch/store/util.js","webpack:///./@datadog/sketches-js/dist/index.js","webpack:///./@protobufjs/aspromise/index.js","webpack:///./@protobufjs/base64/index.js","webpack:///./@protobufjs/eventemitter/index.js","webpack:///./@protobufjs/float/index.js","webpack:///./@protobufjs/inquire/index.js","webpack:///./@protobufjs/pool/index.js","webpack:///./@protobufjs/utf8/index.js","webpack:///./protobufjs/minimal.js","webpack:///./protobufjs/src/index-minimal.js","webpack:///./protobufjs/src/reader.js","webpack:///./protobufjs/src/reader_buffer.js","webpack:///./protobufjs/src/roots.js","webpack:///./protobufjs/src/rpc.js","webpack:///./protobufjs/src/rpc/service.js","webpack:///./protobufjs/src/util/longbits.js","webpack:///./protobufjs/src/util/minimal.js","webpack:///./protobufjs/src/writer.js","webpack:///./protobufjs/src/writer_buffer.js"],"sourcesContent":["\"use strict\";\n/*\n * Unless explicitly stated otherwise all files in this repository are licensed\n * under the Apache 2.0 license (see LICENSE).\n * This product includes software developed at Datadog (https://www.datadoghq.com/).\n * Copyright 2020 Datadog, Inc.\n */\nvar __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n return function (d, b) {\n if (typeof b !== \"function\" && b !== null)\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n})();\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.LogCollapsingHighestDenseDDSketch = exports.LogCollapsingLowestDenseDDSketch = exports.DDSketch = void 0;\nvar store_1 = require(\"./store\");\nvar mapping_1 = require(\"./mapping\");\nvar DEFAULT_RELATIVE_ACCURACY = 0.01;\nvar DEFAULT_BIN_LIMIT = 2048;\n/** Base class for DDSketch*/\nvar BaseDDSketch = /** @class */ (function () {\n function BaseDDSketch(_a) {\n var mapping = _a.mapping, store = _a.store, negativeStore = _a.negativeStore, zeroCount = _a.zeroCount;\n this.mapping = mapping;\n this.store = store;\n this.negativeStore = negativeStore;\n this.zeroCount = zeroCount;\n this.count =\n this.negativeStore.count + this.zeroCount + this.store.count;\n this.min = Infinity;\n this.max = -Infinity;\n this.sum = 0;\n }\n /**\n * Add a value to the sketch\n *\n * @param value The value to be added\n * @param weight The amount to weight the value (default 1.0)\n *\n * @throws Error if `weight` is 0 or negative\n */\n BaseDDSketch.prototype.accept = function (value, weight) {\n if (weight === void 0) { weight = 1; }\n if (weight <= 0) {\n throw Error('Weight must be a positive number');\n }\n if (value > this.mapping.minPossible) {\n var key = this.mapping.key(value);\n this.store.add(key, weight);\n }\n else if (value < -this.mapping.minPossible) {\n var key = this.mapping.key(-value);\n this.negativeStore.add(key, weight);\n }\n else {\n this.zeroCount += weight;\n }\n /* Keep track of summary stats */\n this.count += weight;\n this.sum += value * weight;\n if (value < this.min) {\n this.min = value;\n }\n if (value > this.max) {\n this.max = value;\n }\n };\n /**\n * Retrieve a value from the sketch at the quantile\n *\n * @param quantile A number between `0` and `1` (inclusive)\n */\n BaseDDSketch.prototype.getValueAtQuantile = function (quantile) {\n if (quantile < 0 || quantile > 1 || this.count === 0) {\n return NaN;\n }\n var rank = quantile * (this.count - 1);\n var quantileValue = 0;\n if (rank < this.negativeStore.count) {\n var reversedRank = this.negativeStore.count - rank - 1;\n var key = this.negativeStore.keyAtRank(reversedRank, false);\n quantileValue = -this.mapping.value(key);\n }\n else if (rank < this.zeroCount + this.negativeStore.count) {\n return 0;\n }\n else {\n var key = this.store.keyAtRank(rank - this.zeroCount - this.negativeStore.count);\n quantileValue = this.mapping.value(key);\n }\n return quantileValue;\n };\n /**\n * Merge the contents of the parameter `sketch` into this sketch\n *\n * @param sketch The sketch to merge into the caller sketch\n * @throws Error if the sketches were initialized with different `relativeAccuracy` values\n */\n BaseDDSketch.prototype.merge = function (sketch) {\n if (!this.mergeable(sketch)) {\n throw new Error('Cannot merge two DDSketches with different `relativeAccuracy` parameters');\n }\n if (sketch.count === 0) {\n return;\n }\n if (this.count === 0) {\n this._copy(sketch);\n return;\n }\n this.store.merge(sketch.store);\n /* Merge summary stats */\n this.zeroCount += sketch.zeroCount;\n this.count += sketch.count;\n this.sum += sketch.sum;\n if (sketch.min < this.min) {\n this.min = sketch.min;\n }\n if (sketch.max > this.max) {\n this.max = sketch.max;\n }\n };\n /**\n * Determine whether two sketches can be merged\n *\n * @param sketch The sketch to be merged into the caller sketch\n */\n BaseDDSketch.prototype.mergeable = function (sketch) {\n return this.mapping.gamma === sketch.mapping.gamma;\n };\n /**\n * Helper method to copy the contents of the parameter `store` into this store\n * @see DDSketch.merge to merge two sketches safely\n *\n * @param store The store to be copied into the caller store\n */\n BaseDDSketch.prototype._copy = function (sketch) {\n this.store.copy(sketch.store);\n this.negativeStore.copy(sketch.negativeStore);\n this.zeroCount = sketch.zeroCount;\n this.min = sketch.min;\n this.max = sketch.max;\n this.count = sketch.count;\n this.sum = sketch.sum;\n };\n /** Serialize a DDSketch to protobuf format */\n BaseDDSketch.prototype.toProto = function () {\n var ProtoDDSketch = require('./proto/compiled').DDSketch;\n var message = ProtoDDSketch.create({\n mapping: this.mapping.toProto(),\n positiveValues: this.store.toProto(),\n negativeValues: this.negativeStore.toProto(),\n zeroCount: this.zeroCount\n });\n return ProtoDDSketch.encode(message).finish();\n };\n /**\n * Deserialize a DDSketch from protobuf data\n *\n * Note: `fromProto` currently loses summary statistics for the original\n * sketch (i.e. `min`, `max`)\n *\n * @param buffer Byte array containing DDSketch in protobuf format (from DDSketch.toProto)\n */\n BaseDDSketch.fromProto = function (buffer) {\n var ProtoDDSketch = require('./proto/compiled').DDSketch;\n var decoded = ProtoDDSketch.decode(buffer);\n var mapping = mapping_1.KeyMapping.fromProto(decoded.mapping);\n var store = store_1.DenseStore.fromProto(decoded.positiveValues);\n var negativeStore = store_1.DenseStore.fromProto(decoded.negativeValues);\n var zeroCount = decoded.zeroCount;\n return new BaseDDSketch({ mapping: mapping, store: store, negativeStore: negativeStore, zeroCount: zeroCount });\n };\n return BaseDDSketch;\n}());\nvar defaultConfig = {\n relativeAccuracy: DEFAULT_RELATIVE_ACCURACY\n};\n/** A quantile sketch with relative-error guarantees */\nvar DDSketch = /** @class */ (function (_super) {\n __extends(DDSketch, _super);\n /**\n * Initialize a new DDSketch\n *\n * @param relativeAccuracy The accuracy guarantee of the sketch (default 0.01)\n */\n function DDSketch(_a) {\n var _b = _a === void 0 ? defaultConfig : _a, _c = _b.relativeAccuracy, relativeAccuracy = _c === void 0 ? DEFAULT_RELATIVE_ACCURACY : _c;\n var mapping = new mapping_1.LogarithmicMapping(relativeAccuracy);\n var store = new store_1.DenseStore();\n var negativeStore = new store_1.DenseStore();\n return _super.call(this, { mapping: mapping, store: store, negativeStore: negativeStore, zeroCount: 0 }) || this;\n }\n return DDSketch;\n}(BaseDDSketch));\nexports.DDSketch = DDSketch;\nvar LogCollapsingLowestDenseDDSketch = /** @class */ (function (_super) {\n __extends(LogCollapsingLowestDenseDDSketch, _super);\n /**\n * Initialize a new LogCollapsingLowestDenseDDSketch\n *\n * @param relativeAccuracy The accuracy guarantee of the sketch (default 0.01)\n * @param binLimit Number of bins before lowest indices are collapsed (default 2048)\n */\n function LogCollapsingLowestDenseDDSketch(_a) {\n var _b = _a === void 0 ? defaultConfig : _a, _c = _b.relativeAccuracy, relativeAccuracy = _c === void 0 ? DEFAULT_RELATIVE_ACCURACY : _c, _d = _b.binLimit, binLimit = _d === void 0 ? DEFAULT_BIN_LIMIT : _d;\n var mapping = new mapping_1.LogarithmicMapping(relativeAccuracy);\n var store = new store_1.CollapsingLowestDenseStore(binLimit);\n var negativeStore = new store_1.CollapsingLowestDenseStore(binLimit);\n return _super.call(this, { mapping: mapping, store: store, negativeStore: negativeStore, zeroCount: 0 }) || this;\n }\n return LogCollapsingLowestDenseDDSketch;\n}(BaseDDSketch));\nexports.LogCollapsingLowestDenseDDSketch = LogCollapsingLowestDenseDDSketch;\nvar LogCollapsingHighestDenseDDSketch = /** @class */ (function (_super) {\n __extends(LogCollapsingHighestDenseDDSketch, _super);\n /**\n * Initialize a new LogCollapsingHighestDenseDDSketch\n *\n * @param relativeAccuracy The accuracy guarantee of the sketch (default 0.01)\n * @param binLimit Number of bins before highest indices are collapsed (default 2048)\n */\n function LogCollapsingHighestDenseDDSketch(_a) {\n var _b = _a === void 0 ? defaultConfig : _a, _c = _b.relativeAccuracy, relativeAccuracy = _c === void 0 ? DEFAULT_RELATIVE_ACCURACY : _c, _d = _b.binLimit, binLimit = _d === void 0 ? DEFAULT_BIN_LIMIT : _d;\n var mapping = new mapping_1.LogarithmicMapping(relativeAccuracy);\n var store = new store_1.CollapsingHighestDenseStore(binLimit);\n var negativeStore = new store_1.CollapsingHighestDenseStore(binLimit);\n return _super.call(this, { mapping: mapping, store: store, negativeStore: negativeStore, zeroCount: 0 }) || this;\n }\n return LogCollapsingHighestDenseDDSketch;\n}(BaseDDSketch));\nexports.LogCollapsingHighestDenseDDSketch = LogCollapsingHighestDenseDDSketch;\n","\"use strict\";\n/*\n * Unless explicitly stated otherwise all files in this repository are licensed\n * under the Apache 2.0 license (see LICENSE).\n * This product includes software developed at Datadog (https://www.datadoghq.com/).\n * Copyright 2020 Datadog, Inc.\n */\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n var desc = Object.getOwnPropertyDescriptor(m, k);\n if (!desc || (\"get\" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\n desc = { enumerable: true, get: function() { return m[k]; } };\n }\n Object.defineProperty(o, k2, desc);\n}) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n}));\nvar __exportStar = (this && this.__exportStar) || function(m, exports) {\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\n__exportStar(require(\"./DDSketch\"), exports);\n","\"use strict\";\n/*\n * Unless explicitly stated otherwise all files in this repository are licensed\n * under the Apache 2.0 license (see LICENSE).\n * This product includes software developed at Datadog (https://www.datadoghq.com/).\n * Copyright 2020 Datadog, Inc.\n */\nvar __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n return function (d, b) {\n if (typeof b !== \"function\" && b !== null)\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n})();\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.CubicallyInterpolatedMapping = void 0;\nvar KeyMapping_1 = require(\"./KeyMapping\");\nvar math_1 = require(\"../math\");\n/**\n * A fast KeyMapping that approximates the memory-optimal LogarithmicMapping by\n * extracting the floor value of the logarithm to the base 2 from the binary\n * representations of floating-point values and cubically interpolating the\n * logarithm in-between.\n *\n * More detailed documentation of this method can be found in:\n * sketches-java\n */\nvar CubicallyInterpolatedMapping = /** @class */ (function (_super) {\n __extends(CubicallyInterpolatedMapping, _super);\n function CubicallyInterpolatedMapping(relativeAccuracy, offset) {\n if (offset === void 0) { offset = 0; }\n var _this = _super.call(this, relativeAccuracy, offset) || this;\n _this.A = 6 / 35;\n _this.B = -3 / 5;\n _this.C = 10 / 7;\n _this._multiplier /= _this.C;\n return _this;\n }\n /** Approximates log2 using a cubic polynomial */\n CubicallyInterpolatedMapping.prototype._cubicLog2Approx = function (value) {\n var _a = (0, math_1.frexp)(value), mantissa = _a[0], exponent = _a[1];\n var significand = 2 * mantissa - 1;\n return (((this.A * significand + this.B) * significand + this.C) *\n significand +\n (exponent - 1));\n };\n /** Derived from Cardano's formula */\n CubicallyInterpolatedMapping.prototype._cubicExp2Approx = function (value) {\n var exponent = Math.floor(value);\n var delta0 = this.B * this.B - 3 * this.A * this.C;\n var delta1 = 2 * this.B * this.B * this.B -\n 9 * this.A * this.B * this.C -\n 27 * this.A * this.A * (value - exponent);\n var cardano = Math.cbrt((delta1 -\n Math.sqrt(delta1 * delta1 - 4 * delta0 * delta0 * delta0)) /\n 2);\n var significandPlusOne = -(this.B + cardano + delta0 / cardano) / (3 * this.A) + 1;\n var mantissa = significandPlusOne / 2;\n return (0, math_1.ldexp)(mantissa, exponent + 1);\n };\n CubicallyInterpolatedMapping.prototype._logGamma = function (value) {\n return this._cubicLog2Approx(value) * this._multiplier;\n };\n CubicallyInterpolatedMapping.prototype._powGamma = function (value) {\n return this._cubicExp2Approx(value / this._multiplier);\n };\n CubicallyInterpolatedMapping.prototype._protoInterpolation = function () {\n var Interpolation = require('../proto/compiled').IndexMapping.Interpolation;\n return Interpolation.CUBIC;\n };\n return CubicallyInterpolatedMapping;\n}(KeyMapping_1.KeyMapping));\nexports.CubicallyInterpolatedMapping = CubicallyInterpolatedMapping;\n","\"use strict\";\n/*\n * Unless explicitly stated otherwise all files in this repository are licensed\n * under the Apache 2.0 license (see LICENSE).\n * This product includes software developed at Datadog (https://www.datadoghq.com/).\n * Copyright 2020 Datadog, Inc.\n */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.KeyMapping = void 0;\nvar index_1 = require(\"./index\");\n// 1.1125369292536007e-308\nvar MIN_SAFE_FLOAT = Math.pow(2, -1023);\nvar MAX_SAFE_FLOAT = Number.MAX_VALUE;\n/**\n * A mapping between values and integer indices that imposes relative accuracy\n * guarantees. Specifically, for any value `minPossible() < value <\n * maxPossible` implementations of `KeyMapping` must be such that\n * `value(key(v))` is close to `v` with a relative error that is less than\n * `relativeAccuracy`.\n *\n * In implementations of KeyMapping, there is generally a trade-off between the\n * cost of computing the key and the number of keys that are required to cover a\n * given range of values (memory optimality). The most memory-optimal mapping is\n * the LogarithmicMapping, but it requires the costly evaluation of the logarithm\n * when computing the index. Other mappings can approximate the logarithmic\n * mapping, while being less computationally costly.\n */\nvar KeyMapping = /** @class */ (function () {\n function KeyMapping(relativeAccuracy, offset) {\n if (offset === void 0) { offset = 0; }\n if (relativeAccuracy <= 0 || relativeAccuracy >= 1) {\n throw Error('Relative accuracy must be between 0 and 1 when initializing a KeyMapping');\n }\n this.relativeAccuracy = relativeAccuracy;\n this._offset = offset;\n var gammaMantissa = (2 * relativeAccuracy) / (1 - relativeAccuracy);\n this.gamma = 1 + gammaMantissa;\n this._multiplier = 1 / Math.log1p(gammaMantissa);\n this.minPossible = MIN_SAFE_FLOAT * this.gamma;\n this.maxPossible = MAX_SAFE_FLOAT / this.gamma;\n }\n KeyMapping.fromGammaOffset = function (gamma, indexOffset) {\n var relativeAccuracy = (gamma - 1) / (gamma + 1);\n return new this(relativeAccuracy, indexOffset);\n };\n /** Retrieve the key specifying the bucket for a `value` */\n KeyMapping.prototype.key = function (value) {\n return Math.ceil(this._logGamma(value)) + this._offset;\n };\n /** Retrieve the value represented by the bucket at `key` */\n KeyMapping.prototype.value = function (key) {\n return this._powGamma(key - this._offset) * (2 / (1 + this.gamma));\n };\n KeyMapping.prototype.toProto = function () {\n var ProtoIndexMapping = require('../proto/compiled').IndexMapping;\n return ProtoIndexMapping.create({\n gamma: this.gamma,\n indexOffset: this._offset,\n interpolation: this._protoInterpolation()\n });\n };\n KeyMapping.fromProto = function (protoMapping) {\n if (!protoMapping ||\n /* Double equals (==) is intentional here to check for\n * `null` | `undefined` without including `0` */\n protoMapping.gamma == null ||\n protoMapping.indexOffset == null) {\n throw Error('Failed to decode mapping from protobuf');\n }\n var Interpolation = require('../proto/compiled').IndexMapping.Interpolation;\n var interpolation = protoMapping.interpolation, gamma = protoMapping.gamma, indexOffset = protoMapping.indexOffset;\n switch (interpolation) {\n case Interpolation.NONE:\n return index_1.LogarithmicMapping.fromGammaOffset(gamma, indexOffset);\n case Interpolation.LINEAR:\n return index_1.LinearlyInterpolatedMapping.fromGammaOffset(gamma, indexOffset);\n case Interpolation.CUBIC:\n return index_1.CubicallyInterpolatedMapping.fromGammaOffset(gamma, indexOffset);\n default:\n throw Error('Unrecognized mapping when decoding from protobuf');\n }\n };\n /** Return (an approximation of) the logarithm of the value base gamma */\n KeyMapping.prototype._logGamma = function (value) {\n return Math.log2(value) * this._multiplier;\n };\n /** Return (an approximation of) gamma to the power value */\n KeyMapping.prototype._powGamma = function (value) {\n return Math.pow(2, value / this._multiplier);\n };\n KeyMapping.prototype._protoInterpolation = function () {\n var Interpolation = require('../proto/compiled').IndexMapping.Interpolation;\n return Interpolation.NONE;\n };\n return KeyMapping;\n}());\nexports.KeyMapping = KeyMapping;\n","\"use strict\";\n/*\n * Unless explicitly stated otherwise all files in this repository are licensed\n * under the Apache 2.0 license (see LICENSE).\n * This product includes software developed at Datadog (https://www.datadoghq.com/).\n * Copyright 2020 Datadog, Inc.\n */\nvar __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n return function (d, b) {\n if (typeof b !== \"function\" && b !== null)\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n})();\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.LinearlyInterpolatedMapping = void 0;\nvar KeyMapping_1 = require(\"./KeyMapping\");\nvar math_1 = require(\"../math\");\n/**\n * A fast KeyMapping that approximates the memory-optimal one\n * (LogarithmicMapping) by extracting the floor value of the logarithm to the\n * base 2 from the binary representations of floating-point values and\n * linearly interpolating the logarithm in-between.\n */\nvar LinearlyInterpolatedMapping = /** @class */ (function (_super) {\n __extends(LinearlyInterpolatedMapping, _super);\n function LinearlyInterpolatedMapping(relativeAccuracy, offset) {\n if (offset === void 0) { offset = 0; }\n return _super.call(this, relativeAccuracy, offset) || this;\n }\n /**\n * Approximates log2 by s + f\n * where v = (s+1) * 2 ** f for s in [0, 1)\n *\n * frexp(v) returns m and e s.t.\n * v = m * 2 ** e ; (m in [0.5, 1) or 0.0)\n * so we adjust m and e accordingly\n */\n LinearlyInterpolatedMapping.prototype._log2Approx = function (value) {\n var _a = (0, math_1.frexp)(value), mantissa = _a[0], exponent = _a[1];\n var significand = 2 * mantissa - 1;\n return significand + (exponent - 1);\n };\n /** Inverse of _log2Approx */\n LinearlyInterpolatedMapping.prototype._exp2Approx = function (value) {\n var exponent = Math.floor(value) + 1;\n var mantissa = (value - exponent + 2) / 2;\n return (0, math_1.ldexp)(mantissa, exponent);\n };\n LinearlyInterpolatedMapping.prototype._logGamma = function (value) {\n return Math.log2(value) * this._multiplier;\n };\n LinearlyInterpolatedMapping.prototype._powGamma = function (value) {\n return Math.pow(2, value / this._multiplier);\n };\n LinearlyInterpolatedMapping.prototype._protoInterpolation = function () {\n var Interpolation = require('../proto/compiled').IndexMapping.Interpolation;\n return Interpolation.LINEAR;\n };\n return LinearlyInterpolatedMapping;\n}(KeyMapping_1.KeyMapping));\nexports.LinearlyInterpolatedMapping = LinearlyInterpolatedMapping;\n","\"use strict\";\n/*\n * Unless explicitly stated otherwise all files in this repository are licensed\n * under the Apache 2.0 license (see LICENSE).\n * This product includes software developed at Datadog (https://www.datadoghq.com/).\n * Copyright 2020 Datadog, Inc.\n */\nvar __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n return function (d, b) {\n if (typeof b !== \"function\" && b !== null)\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n})();\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.LogarithmicMapping = void 0;\nvar KeyMapping_1 = require(\"./KeyMapping\");\n/**\n * A memory-optimal KeyMapping, i.e., given a targeted relative accuracy, it\n * requires the least number of keys to cover a given range of values. This is\n * done by logarithmically mapping floating-point values to integers.\n */\nvar LogarithmicMapping = /** @class */ (function (_super) {\n __extends(LogarithmicMapping, _super);\n function LogarithmicMapping(relativeAccuracy, offset) {\n if (offset === void 0) { offset = 0; }\n var _this = _super.call(this, relativeAccuracy, offset) || this;\n _this._multiplier *= Math.log(2);\n return _this;\n }\n LogarithmicMapping.prototype._logGamma = function (value) {\n return Math.log2(value) * this._multiplier;\n };\n LogarithmicMapping.prototype._powGamma = function (value) {\n return Math.pow(2, value / this._multiplier);\n };\n LogarithmicMapping.prototype._protoInterpolation = function () {\n var Interpolation = require('../proto/compiled').IndexMapping.Interpolation;\n return Interpolation.NONE;\n };\n return LogarithmicMapping;\n}(KeyMapping_1.KeyMapping));\nexports.LogarithmicMapping = LogarithmicMapping;\n","\"use strict\";\n/*\n * Unless explicitly stated otherwise all files in this repository are licensed\n * under the Apache 2.0 license (see LICENSE).\n * This product includes software developed at Datadog (https://www.datadoghq.com/).\n * Copyright 2020 Datadog, Inc.\n */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.CubicallyInterpolatedMapping = exports.LinearlyInterpolatedMapping = exports.LogarithmicMapping = exports.KeyMapping = void 0;\nvar KeyMapping_1 = require(\"./KeyMapping\");\nObject.defineProperty(exports, \"KeyMapping\", { enumerable: true, get: function () { return KeyMapping_1.KeyMapping; } });\nvar LogarithmicMapping_1 = require(\"./LogarithmicMapping\");\nObject.defineProperty(exports, \"LogarithmicMapping\", { enumerable: true, get: function () { return LogarithmicMapping_1.LogarithmicMapping; } });\nvar LinearlyInterpolatedMapping_1 = require(\"./LinearlyInterpolatedMapping\");\nObject.defineProperty(exports, \"LinearlyInterpolatedMapping\", { enumerable: true, get: function () { return LinearlyInterpolatedMapping_1.LinearlyInterpolatedMapping; } });\nvar CubicallyInterpolatedMapping_1 = require(\"./CubicallyInterpolatedMapping\");\nObject.defineProperty(exports, \"CubicallyInterpolatedMapping\", { enumerable: true, get: function () { return CubicallyInterpolatedMapping_1.CubicallyInterpolatedMapping; } });\n","\"use strict\";\n/*\n * Unless explicitly stated otherwise all files in this repository are licensed\n * under the Apache 2.0 license (see LICENSE).\n * This product includes software developed at Datadog (https://www.datadoghq.com/).\n * Copyright 2020 Datadog, Inc.\n */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.ldexp = exports.frexp = void 0;\n/**\n * Splits a double-precision floating-point number into a normalized fraction\n * and an integer power of two.\n */\nfunction frexp(value) {\n if (value === 0 || !Number.isFinite(value))\n return [value, 0];\n var absValue = Math.abs(value);\n var exponent = Math.max(-1023, Math.floor(Math.log2(absValue)) + 1);\n var mantissa = absValue * Math.pow(2, -exponent);\n while (mantissa < 0.5) {\n mantissa *= 2;\n exponent--;\n }\n while (mantissa >= 1) {\n mantissa *= 0.5;\n exponent++;\n }\n if (value < 0) {\n mantissa = -mantissa;\n }\n return [mantissa, exponent];\n}\nexports.frexp = frexp;\n/**\n * Multiplies a double-precision floating-point number by an integer power of\n * two; i.e., x = frac * 2^exp.\n */\nfunction ldexp(mantissa, exponent) {\n var iterations = Math.min(3, Math.ceil(Math.abs(exponent) / 1023));\n var result = mantissa;\n for (var i = 0; i < iterations; i++) {\n result *= Math.pow(2, Math.floor((exponent + i) / iterations));\n }\n return result;\n}\nexports.ldexp = ldexp;\n","/*eslint-disable block-scoped-var, id-length, no-control-regex, no-magic-numbers, no-prototype-builtins, no-redeclare, no-shadow, no-var, sort-vars*/\n\"use strict\";\nvar $protobuf = require(\"protobufjs/minimal\");\n// Common aliases\nvar $Reader = $protobuf.Reader, $Writer = $protobuf.Writer, $util = $protobuf.util;\n// Exported root namespace\nvar $root = $protobuf.roots[\"default\"] || ($protobuf.roots[\"default\"] = {});\n$root.DDSketch = (function () {\n /**\n * Properties of a DDSketch.\n * @exports IDDSketch\n * @interface IDDSketch\n * @property {IIndexMapping|null} [mapping] DDSketch mapping\n * @property {IStore|null} [positiveValues] DDSketch positiveValues\n * @property {IStore|null} [negativeValues] DDSketch negativeValues\n * @property {number|null} [zeroCount] DDSketch zeroCount\n */\n /**\n * Constructs a new DDSketch.\n * @exports DDSketch\n * @classdesc Represents a DDSketch.\n * @implements IDDSketch\n * @constructor\n * @param {IDDSketch=} [properties] Properties to set\n */\n function DDSketch(properties) {\n if (properties)\n for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)\n if (properties[keys[i]] != null)\n this[keys[i]] = properties[keys[i]];\n }\n /**\n * DDSketch mapping.\n * @member {IIndexMapping|null|undefined} mapping\n * @memberof DDSketch\n * @instance\n */\n DDSketch.prototype.mapping = null;\n /**\n * DDSketch positiveValues.\n * @member {IStore|null|undefined} positiveValues\n * @memberof DDSketch\n * @instance\n */\n DDSketch.prototype.positiveValues = null;\n /**\n * DDSketch negativeValues.\n * @member {IStore|null|undefined} negativeValues\n * @memberof DDSketch\n * @instance\n */\n DDSketch.prototype.negativeValues = null;\n /**\n * DDSketch zeroCount.\n * @member {number} zeroCount\n * @memberof DDSketch\n * @instance\n */\n DDSketch.prototype.zeroCount = 0;\n /**\n * Creates a new DDSketch instance using the specified properties.\n * @function create\n * @memberof DDSketch\n * @static\n * @param {IDDSketch=} [properties] Properties to set\n * @returns {DDSketch} DDSketch instance\n */\n DDSketch.create = function create(properties) {\n return new DDSketch(properties);\n };\n /**\n * Encodes the specified DDSketch message. Does not implicitly {@link DDSketch.verify|verify} messages.\n * @function encode\n * @memberof DDSketch\n * @static\n * @param {IDDSketch} message DDSketch message or plain object to encode\n * @param {$protobuf.Writer} [writer] Writer to encode to\n * @returns {$protobuf.Writer} Writer\n */\n DDSketch.encode = function encode(message, writer) {\n if (!writer)\n writer = $Writer.create();\n if (message.mapping != null && Object.hasOwnProperty.call(message, \"mapping\"))\n $root.IndexMapping.encode(message.mapping, writer.uint32(/* id 1, wireType 2 =*/ 10).fork()).ldelim();\n if (message.positiveValues != null && Object.hasOwnProperty.call(message, \"positiveValues\"))\n $root.Store.encode(message.positiveValues, writer.uint32(/* id 2, wireType 2 =*/ 18).fork()).ldelim();\n if (message.negativeValues != null && Object.hasOwnProperty.call(message, \"negativeValues\"))\n $root.Store.encode(message.negativeValues, writer.uint32(/* id 3, wireType 2 =*/ 26).fork()).ldelim();\n if (message.zeroCount != null && Object.hasOwnProperty.call(message, \"zeroCount\"))\n writer.uint32(/* id 4, wireType 1 =*/ 33).double(message.zeroCount);\n return writer;\n };\n /**\n * Encodes the specified DDSketch message, length delimited. Does not implicitly {@link DDSketch.verify|verify} messages.\n * @function encodeDelimited\n * @memberof DDSketch\n * @static\n * @param {IDDSketch} message DDSketch message or plain object to encode\n * @param {$protobuf.Writer} [writer] Writer to encode to\n * @returns {$protobuf.Writer} Writer\n */\n DDSketch.encodeDelimited = function encodeDelimited(message, writer) {\n return this.encode(message, writer).ldelim();\n };\n /**\n * Decodes a DDSketch message from the specified reader or buffer.\n * @function decode\n * @memberof DDSketch\n * @static\n * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from\n * @param {number} [length] Message length if known beforehand\n * @returns {DDSketch} DDSketch\n * @throws {Error} If the payload is not a reader or valid buffer\n * @throws {$protobuf.util.ProtocolError} If required fields are missing\n */\n DDSketch.decode = function decode(reader, length) {\n if (!(reader instanceof $Reader))\n reader = $Reader.create(reader);\n var end = length === undefined ? reader.len : reader.pos + length, message = new $root.DDSketch();\n while (reader.pos < end) {\n var tag = reader.uint32();\n switch (tag >>> 3) {\n case 1:\n message.mapping = $root.IndexMapping.decode(reader, reader.uint32());\n break;\n case 2:\n message.positiveValues = $root.Store.decode(reader, reader.uint32());\n break;\n case 3:\n message.negativeValues = $root.Store.decode(reader, reader.uint32());\n break;\n case 4:\n message.zeroCount = reader.double();\n break;\n default:\n reader.skipType(tag & 7);\n break;\n }\n }\n return message;\n };\n /**\n * Decodes a DDSketch message from the specified reader or buffer, length delimited.\n * @function decodeDelimited\n * @memberof DDSketch\n * @static\n * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from\n * @returns {DDSketch} DDSketch\n * @throws {Error} If the payload is not a reader or valid buffer\n * @throws {$protobuf.util.ProtocolError} If required fields are missing\n */\n DDSketch.decodeDelimited = function decodeDelimited(reader) {\n if (!(reader instanceof $Reader))\n reader = new $Reader(reader);\n return this.decode(reader, reader.uint32());\n };\n /**\n * Verifies a DDSketch message.\n * @function verify\n * @memberof DDSketch\n * @static\n * @param {Object.} message Plain object to verify\n * @returns {string|null} `null` if valid, otherwise the reason why it is not\n */\n DDSketch.verify = function verify(message) {\n if (typeof message !== \"object\" || message === null)\n return \"object expected\";\n if (message.mapping != null && message.hasOwnProperty(\"mapping\")) {\n var error = $root.IndexMapping.verify(message.mapping);\n if (error)\n return \"mapping.\" + error;\n }\n if (message.positiveValues != null && message.hasOwnProperty(\"positiveValues\")) {\n var error = $root.Store.verify(message.positiveValues);\n if (error)\n return \"positiveValues.\" + error;\n }\n if (message.negativeValues != null && message.hasOwnProperty(\"negativeValues\")) {\n var error = $root.Store.verify(message.negativeValues);\n if (error)\n return \"negativeValues.\" + error;\n }\n if (message.zeroCount != null && message.hasOwnProperty(\"zeroCount\"))\n if (typeof message.zeroCount !== \"number\")\n return \"zeroCount: number expected\";\n return null;\n };\n /**\n * Creates a DDSketch message from a plain object. Also converts values to their respective internal types.\n * @function fromObject\n * @memberof DDSketch\n * @static\n * @param {Object.} object Plain object\n * @returns {DDSketch} DDSketch\n */\n DDSketch.fromObject = function fromObject(object) {\n if (object instanceof $root.DDSketch)\n return object;\n var message = new $root.DDSketch();\n if (object.mapping != null) {\n if (typeof object.mapping !== \"object\")\n throw TypeError(\".DDSketch.mapping: object expected\");\n message.mapping = $root.IndexMapping.fromObject(object.mapping);\n }\n if (object.positiveValues != null) {\n if (typeof object.positiveValues !== \"object\")\n throw TypeError(\".DDSketch.positiveValues: object expected\");\n message.positiveValues = $root.Store.fromObject(object.positiveValues);\n }\n if (object.negativeValues != null) {\n if (typeof object.negativeValues !== \"object\")\n throw TypeError(\".DDSketch.negativeValues: object expected\");\n message.negativeValues = $root.Store.fromObject(object.negativeValues);\n }\n if (object.zeroCount != null)\n message.zeroCount = Number(object.zeroCount);\n return message;\n };\n /**\n * Creates a plain object from a DDSketch message. Also converts values to other types if specified.\n * @function toObject\n * @memberof DDSketch\n * @static\n * @param {DDSketch} message DDSketch\n * @param {$protobuf.IConversionOptions} [options] Conversion options\n * @returns {Object.} Plain object\n */\n DDSketch.toObject = function toObject(message, options) {\n if (!options)\n options = {};\n var object = {};\n if (options.defaults) {\n object.mapping = null;\n object.positiveValues = null;\n object.negativeValues = null;\n object.zeroCount = 0;\n }\n if (message.mapping != null && message.hasOwnProperty(\"mapping\"))\n object.mapping = $root.IndexMapping.toObject(message.mapping, options);\n if (message.positiveValues != null && message.hasOwnProperty(\"positiveValues\"))\n object.positiveValues = $root.Store.toObject(message.positiveValues, options);\n if (message.negativeValues != null && message.hasOwnProperty(\"negativeValues\"))\n object.negativeValues = $root.Store.toObject(message.negativeValues, options);\n if (message.zeroCount != null && message.hasOwnProperty(\"zeroCount\"))\n object.zeroCount = options.json && !isFinite(message.zeroCount) ? String(message.zeroCount) : message.zeroCount;\n return object;\n };\n /**\n * Converts this DDSketch to JSON.\n * @function toJSON\n * @memberof DDSketch\n * @instance\n * @returns {Object.} JSON object\n */\n DDSketch.prototype.toJSON = function toJSON() {\n return this.constructor.toObject(this, $protobuf.util.toJSONOptions);\n };\n return DDSketch;\n})();\n$root.IndexMapping = (function () {\n /**\n * Properties of an IndexMapping.\n * @exports IIndexMapping\n * @interface IIndexMapping\n * @property {number|null} [gamma] IndexMapping gamma\n * @property {number|null} [indexOffset] IndexMapping indexOffset\n * @property {IndexMapping.Interpolation|null} [interpolation] IndexMapping interpolation\n */\n /**\n * Constructs a new IndexMapping.\n * @exports IndexMapping\n * @classdesc Represents an IndexMapping.\n * @implements IIndexMapping\n * @constructor\n * @param {IIndexMapping=} [properties] Properties to set\n */\n function IndexMapping(properties) {\n if (properties)\n for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)\n if (properties[keys[i]] != null)\n this[keys[i]] = properties[keys[i]];\n }\n /**\n * IndexMapping gamma.\n * @member {number} gamma\n * @memberof IndexMapping\n * @instance\n */\n IndexMapping.prototype.gamma = 0;\n /**\n * IndexMapping indexOffset.\n * @member {number} indexOffset\n * @memberof IndexMapping\n * @instance\n */\n IndexMapping.prototype.indexOffset = 0;\n /**\n * IndexMapping interpolation.\n * @member {IndexMapping.Interpolation} interpolation\n * @memberof IndexMapping\n * @instance\n */\n IndexMapping.prototype.interpolation = 0;\n /**\n * Creates a new IndexMapping instance using the specified properties.\n * @function create\n * @memberof IndexMapping\n * @static\n * @param {IIndexMapping=} [properties] Properties to set\n * @returns {IndexMapping} IndexMapping instance\n */\n IndexMapping.create = function create(properties) {\n return new IndexMapping(properties);\n };\n /**\n * Encodes the specified IndexMapping message. Does not implicitly {@link IndexMapping.verify|verify} messages.\n * @function encode\n * @memberof IndexMapping\n * @static\n * @param {IIndexMapping} message IndexMapping message or plain object to encode\n * @param {$protobuf.Writer} [writer] Writer to encode to\n * @returns {$protobuf.Writer} Writer\n */\n IndexMapping.encode = function encode(message, writer) {\n if (!writer)\n writer = $Writer.create();\n if (message.gamma != null && Object.hasOwnProperty.call(message, \"gamma\"))\n writer.uint32(/* id 1, wireType 1 =*/ 9).double(message.gamma);\n if (message.indexOffset != null && Object.hasOwnProperty.call(message, \"indexOffset\"))\n writer.uint32(/* id 2, wireType 1 =*/ 17).double(message.indexOffset);\n if (message.interpolation != null && Object.hasOwnProperty.call(message, \"interpolation\"))\n writer.uint32(/* id 3, wireType 0 =*/ 24).int32(message.interpolation);\n return writer;\n };\n /**\n * Encodes the specified IndexMapping message, length delimited. Does not implicitly {@link IndexMapping.verify|verify} messages.\n * @function encodeDelimited\n * @memberof IndexMapping\n * @static\n * @param {IIndexMapping} message IndexMapping message or plain object to encode\n * @param {$protobuf.Writer} [writer] Writer to encode to\n * @returns {$protobuf.Writer} Writer\n */\n IndexMapping.encodeDelimited = function encodeDelimited(message, writer) {\n return this.encode(message, writer).ldelim();\n };\n /**\n * Decodes an IndexMapping message from the specified reader or buffer.\n * @function decode\n * @memberof IndexMapping\n * @static\n * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from\n * @param {number} [length] Message length if known beforehand\n * @returns {IndexMapping} IndexMapping\n * @throws {Error} If the payload is not a reader or valid buffer\n * @throws {$protobuf.util.ProtocolError} If required fields are missing\n */\n IndexMapping.decode = function decode(reader, length) {\n if (!(reader instanceof $Reader))\n reader = $Reader.create(reader);\n var end = length === undefined ? reader.len : reader.pos + length, message = new $root.IndexMapping();\n while (reader.pos < end) {\n var tag = reader.uint32();\n switch (tag >>> 3) {\n case 1:\n message.gamma = reader.double();\n break;\n case 2:\n message.indexOffset = reader.double();\n break;\n case 3:\n message.interpolation = reader.int32();\n break;\n default:\n reader.skipType(tag & 7);\n break;\n }\n }\n return message;\n };\n /**\n * Decodes an IndexMapping message from the specified reader or buffer, length delimited.\n * @function decodeDelimited\n * @memberof IndexMapping\n * @static\n * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from\n * @returns {IndexMapping} IndexMapping\n * @throws {Error} If the payload is not a reader or valid buffer\n * @throws {$protobuf.util.ProtocolError} If required fields are missing\n */\n IndexMapping.decodeDelimited = function decodeDelimited(reader) {\n if (!(reader instanceof $Reader))\n reader = new $Reader(reader);\n return this.decode(reader, reader.uint32());\n };\n /**\n * Verifies an IndexMapping message.\n * @function verify\n * @memberof IndexMapping\n * @static\n * @param {Object.} message Plain object to verify\n * @returns {string|null} `null` if valid, otherwise the reason why it is not\n */\n IndexMapping.verify = function verify(message) {\n if (typeof message !== \"object\" || message === null)\n return \"object expected\";\n if (message.gamma != null && message.hasOwnProperty(\"gamma\"))\n if (typeof message.gamma !== \"number\")\n return \"gamma: number expected\";\n if (message.indexOffset != null && message.hasOwnProperty(\"indexOffset\"))\n if (typeof message.indexOffset !== \"number\")\n return \"indexOffset: number expected\";\n if (message.interpolation != null && message.hasOwnProperty(\"interpolation\"))\n switch (message.interpolation) {\n default:\n return \"interpolation: enum value expected\";\n case 0:\n case 1:\n case 2:\n case 3:\n break;\n }\n return null;\n };\n /**\n * Creates an IndexMapping message from a plain object. Also converts values to their respective internal types.\n * @function fromObject\n * @memberof IndexMapping\n * @static\n * @param {Object.} object Plain object\n * @returns {IndexMapping} IndexMapping\n */\n IndexMapping.fromObject = function fromObject(object) {\n if (object instanceof $root.IndexMapping)\n return object;\n var message = new $root.IndexMapping();\n if (object.gamma != null)\n message.gamma = Number(object.gamma);\n if (object.indexOffset != null)\n message.indexOffset = Number(object.indexOffset);\n switch (object.interpolation) {\n case \"NONE\":\n case 0:\n message.interpolation = 0;\n break;\n case \"LINEAR\":\n case 1:\n message.interpolation = 1;\n break;\n case \"QUADRATIC\":\n case 2:\n message.interpolation = 2;\n break;\n case \"CUBIC\":\n case 3:\n message.interpolation = 3;\n break;\n }\n return message;\n };\n /**\n * Creates a plain object from an IndexMapping message. Also converts values to other types if specified.\n * @function toObject\n * @memberof IndexMapping\n * @static\n * @param {IndexMapping} message IndexMapping\n * @param {$protobuf.IConversionOptions} [options] Conversion options\n * @returns {Object.} Plain object\n */\n IndexMapping.toObject = function toObject(message, options) {\n if (!options)\n options = {};\n var object = {};\n if (options.defaults) {\n object.gamma = 0;\n object.indexOffset = 0;\n object.interpolation = options.enums === String ? \"NONE\" : 0;\n }\n if (message.gamma != null && message.hasOwnProperty(\"gamma\"))\n object.gamma = options.json && !isFinite(message.gamma) ? String(message.gamma) : message.gamma;\n if (message.indexOffset != null && message.hasOwnProperty(\"indexOffset\"))\n object.indexOffset = options.json && !isFinite(message.indexOffset) ? String(message.indexOffset) : message.indexOffset;\n if (message.interpolation != null && message.hasOwnProperty(\"interpolation\"))\n object.interpolation = options.enums === String ? $root.IndexMapping.Interpolation[message.interpolation] : message.interpolation;\n return object;\n };\n /**\n * Converts this IndexMapping to JSON.\n * @function toJSON\n * @memberof IndexMapping\n * @instance\n * @returns {Object.} JSON object\n */\n IndexMapping.prototype.toJSON = function toJSON() {\n return this.constructor.toObject(this, $protobuf.util.toJSONOptions);\n };\n /**\n * Interpolation enum.\n * @name IndexMapping.Interpolation\n * @enum {number}\n * @property {number} NONE=0 NONE value\n * @property {number} LINEAR=1 LINEAR value\n * @property {number} QUADRATIC=2 QUADRATIC value\n * @property {number} CUBIC=3 CUBIC value\n */\n IndexMapping.Interpolation = (function () {\n var valuesById = {}, values = Object.create(valuesById);\n values[valuesById[0] = \"NONE\"] = 0;\n values[valuesById[1] = \"LINEAR\"] = 1;\n values[valuesById[2] = \"QUADRATIC\"] = 2;\n values[valuesById[3] = \"CUBIC\"] = 3;\n return values;\n })();\n return IndexMapping;\n})();\n$root.Store = (function () {\n /**\n * Properties of a Store.\n * @exports IStore\n * @interface IStore\n * @property {Object.|null} [binCounts] Store binCounts\n * @property {Array.|null} [contiguousBinCounts] Store contiguousBinCounts\n * @property {number|null} [contiguousBinIndexOffset] Store contiguousBinIndexOffset\n */\n /**\n * Constructs a new Store.\n * @exports Store\n * @classdesc Represents a Store.\n * @implements IStore\n * @constructor\n * @param {IStore=} [properties] Properties to set\n */\n function Store(properties) {\n this.binCounts = {};\n this.contiguousBinCounts = [];\n if (properties)\n for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)\n if (properties[keys[i]] != null)\n this[keys[i]] = properties[keys[i]];\n }\n /**\n * Store binCounts.\n * @member {Object.} binCounts\n * @memberof Store\n * @instance\n */\n Store.prototype.binCounts = $util.emptyObject;\n /**\n * Store contiguousBinCounts.\n * @member {Array.} contiguousBinCounts\n * @memberof Store\n * @instance\n */\n Store.prototype.contiguousBinCounts = $util.emptyArray;\n /**\n * Store contiguousBinIndexOffset.\n * @member {number} contiguousBinIndexOffset\n * @memberof Store\n * @instance\n */\n Store.prototype.contiguousBinIndexOffset = 0;\n /**\n * Creates a new Store instance using the specified properties.\n * @function create\n * @memberof Store\n * @static\n * @param {IStore=} [properties] Properties to set\n * @returns {Store} Store instance\n */\n Store.create = function create(properties) {\n return new Store(properties);\n };\n /**\n * Encodes the specified Store message. Does not implicitly {@link Store.verify|verify} messages.\n * @function encode\n * @memberof Store\n * @static\n * @param {IStore} message Store message or plain object to encode\n * @param {$protobuf.Writer} [writer] Writer to encode to\n * @returns {$protobuf.Writer} Writer\n */\n Store.encode = function encode(message, writer) {\n if (!writer)\n writer = $Writer.create();\n if (message.binCounts != null && Object.hasOwnProperty.call(message, \"binCounts\"))\n for (var keys = Object.keys(message.binCounts), i = 0; i < keys.length; ++i)\n writer.uint32(/* id 1, wireType 2 =*/ 10).fork().uint32(/* id 1, wireType 0 =*/ 8).sint32(keys[i]).uint32(/* id 2, wireType 1 =*/ 17).double(message.binCounts[keys[i]]).ldelim();\n if (message.contiguousBinCounts != null && message.contiguousBinCounts.length) {\n writer.uint32(/* id 2, wireType 2 =*/ 18).fork();\n for (var i = 0; i < message.contiguousBinCounts.length; ++i)\n writer.double(message.contiguousBinCounts[i]);\n writer.ldelim();\n }\n if (message.contiguousBinIndexOffset != null && Object.hasOwnProperty.call(message, \"contiguousBinIndexOffset\"))\n writer.uint32(/* id 3, wireType 0 =*/ 24).sint32(message.contiguousBinIndexOffset);\n return writer;\n };\n /**\n * Encodes the specified Store message, length delimited. Does not implicitly {@link Store.verify|verify} messages.\n * @function encodeDelimited\n * @memberof Store\n * @static\n * @param {IStore} message Store message or plain object to encode\n * @param {$protobuf.Writer} [writer] Writer to encode to\n * @returns {$protobuf.Writer} Writer\n */\n Store.encodeDelimited = function encodeDelimited(message, writer) {\n return this.encode(message, writer).ldelim();\n };\n /**\n * Decodes a Store message from the specified reader or buffer.\n * @function decode\n * @memberof Store\n * @static\n * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from\n * @param {number} [length] Message length if known beforehand\n * @returns {Store} Store\n * @throws {Error} If the payload is not a reader or valid buffer\n * @throws {$protobuf.util.ProtocolError} If required fields are missing\n */\n Store.decode = function decode(reader, length) {\n if (!(reader instanceof $Reader))\n reader = $Reader.create(reader);\n var end = length === undefined ? reader.len : reader.pos + length, message = new $root.Store(), key, value;\n while (reader.pos < end) {\n var tag = reader.uint32();\n switch (tag >>> 3) {\n case 1:\n if (message.binCounts === $util.emptyObject)\n message.binCounts = {};\n var end2 = reader.uint32() + reader.pos;\n key = 0;\n value = 0;\n while (reader.pos < end2) {\n var tag2 = reader.uint32();\n switch (tag2 >>> 3) {\n case 1:\n key = reader.sint32();\n break;\n case 2:\n value = reader.double();\n break;\n default:\n reader.skipType(tag2 & 7);\n break;\n }\n }\n message.binCounts[key] = value;\n break;\n case 2:\n if (!(message.contiguousBinCounts && message.contiguousBinCounts.length))\n message.contiguousBinCounts = [];\n if ((tag & 7) === 2) {\n var end2 = reader.uint32() + reader.pos;\n while (reader.pos < end2)\n message.contiguousBinCounts.push(reader.double());\n }\n else\n message.contiguousBinCounts.push(reader.double());\n break;\n case 3:\n message.contiguousBinIndexOffset = reader.sint32();\n break;\n default:\n reader.skipType(tag & 7);\n break;\n }\n }\n return message;\n };\n /**\n * Decodes a Store message from the specified reader or buffer, length delimited.\n * @function decodeDelimited\n * @memberof Store\n * @static\n * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from\n * @returns {Store} Store\n * @throws {Error} If the payload is not a reader or valid buffer\n * @throws {$protobuf.util.ProtocolError} If required fields are missing\n */\n Store.decodeDelimited = function decodeDelimited(reader) {\n if (!(reader instanceof $Reader))\n reader = new $Reader(reader);\n return this.decode(reader, reader.uint32());\n };\n /**\n * Verifies a Store message.\n * @function verify\n * @memberof Store\n * @static\n * @param {Object.} message Plain object to verify\n * @returns {string|null} `null` if valid, otherwise the reason why it is not\n */\n Store.verify = function verify(message) {\n if (typeof message !== \"object\" || message === null)\n return \"object expected\";\n if (message.binCounts != null && message.hasOwnProperty(\"binCounts\")) {\n if (!$util.isObject(message.binCounts))\n return \"binCounts: object expected\";\n var key = Object.keys(message.binCounts);\n for (var i = 0; i < key.length; ++i) {\n if (!$util.key32Re.test(key[i]))\n return \"binCounts: integer key{k:sint32} expected\";\n if (typeof message.binCounts[key[i]] !== \"number\")\n return \"binCounts: number{k:sint32} expected\";\n }\n }\n if (message.contiguousBinCounts != null && message.hasOwnProperty(\"contiguousBinCounts\")) {\n if (!Array.isArray(message.contiguousBinCounts))\n return \"contiguousBinCounts: array expected\";\n for (var i = 0; i < message.contiguousBinCounts.length; ++i)\n if (typeof message.contiguousBinCounts[i] !== \"number\")\n return \"contiguousBinCounts: number[] expected\";\n }\n if (message.contiguousBinIndexOffset != null && message.hasOwnProperty(\"contiguousBinIndexOffset\"))\n if (!$util.isInteger(message.contiguousBinIndexOffset))\n return \"contiguousBinIndexOffset: integer expected\";\n return null;\n };\n /**\n * Creates a Store message from a plain object. Also converts values to their respective internal types.\n * @function fromObject\n * @memberof Store\n * @static\n * @param {Object.} object Plain object\n * @returns {Store} Store\n */\n Store.fromObject = function fromObject(object) {\n if (object instanceof $root.Store)\n return object;\n var message = new $root.Store();\n if (object.binCounts) {\n if (typeof object.binCounts !== \"object\")\n throw TypeError(\".Store.binCounts: object expected\");\n message.binCounts = {};\n for (var keys = Object.keys(object.binCounts), i = 0; i < keys.length; ++i)\n message.binCounts[keys[i]] = Number(object.binCounts[keys[i]]);\n }\n if (object.contiguousBinCounts) {\n if (!Array.isArray(object.contiguousBinCounts))\n throw TypeError(\".Store.contiguousBinCounts: array expected\");\n message.contiguousBinCounts = [];\n for (var i = 0; i < object.contiguousBinCounts.length; ++i)\n message.contiguousBinCounts[i] = Number(object.contiguousBinCounts[i]);\n }\n if (object.contiguousBinIndexOffset != null)\n message.contiguousBinIndexOffset = object.contiguousBinIndexOffset | 0;\n return message;\n };\n /**\n * Creates a plain object from a Store message. Also converts values to other types if specified.\n * @function toObject\n * @memberof Store\n * @static\n * @param {Store} message Store\n * @param {$protobuf.IConversionOptions} [options] Conversion options\n * @returns {Object.} Plain object\n */\n Store.toObject = function toObject(message, options) {\n if (!options)\n options = {};\n var object = {};\n if (options.arrays || options.defaults)\n object.contiguousBinCounts = [];\n if (options.objects || options.defaults)\n object.binCounts = {};\n if (options.defaults)\n object.contiguousBinIndexOffset = 0;\n var keys2;\n if (message.binCounts && (keys2 = Object.keys(message.binCounts)).length) {\n object.binCounts = {};\n for (var j = 0; j < keys2.length; ++j)\n object.binCounts[keys2[j]] = options.json && !isFinite(message.binCounts[keys2[j]]) ? String(message.binCounts[keys2[j]]) : message.binCounts[keys2[j]];\n }\n if (message.contiguousBinCounts && message.contiguousBinCounts.length) {\n object.contiguousBinCounts = [];\n for (var j = 0; j < message.contiguousBinCounts.length; ++j)\n object.contiguousBinCounts[j] = options.json && !isFinite(message.contiguousBinCounts[j]) ? String(message.contiguousBinCounts[j]) : message.contiguousBinCounts[j];\n }\n if (message.contiguousBinIndexOffset != null && message.hasOwnProperty(\"contiguousBinIndexOffset\"))\n object.contiguousBinIndexOffset = message.contiguousBinIndexOffset;\n return object;\n };\n /**\n * Converts this Store to JSON.\n * @function toJSON\n * @memberof Store\n * @instance\n * @returns {Object.} JSON object\n */\n Store.prototype.toJSON = function toJSON() {\n return this.constructor.toObject(this, $protobuf.util.toJSONOptions);\n };\n return Store;\n})();\nmodule.exports = $root;\n","\"use strict\";\n/*\n * Unless explicitly stated otherwise all files in this repository are licensed\n * under the Apache 2.0 license (see LICENSE).\n * This product includes software developed at Datadog (https://www.datadoghq.com/).\n * Copyright 2020 Datadog, Inc.\n */\nvar __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n return function (d, b) {\n if (typeof b !== \"function\" && b !== null)\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n})();\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.CollapsingHighestDenseStore = void 0;\nvar DenseStore_1 = require(\"./DenseStore\");\nvar util_1 = require(\"./util\");\n/**\n * `CollapsingHighestDenseStore` is a dense store that keeps all the bins between\n * the bin for the `minKey` and the `maxKey`, but collapsing the left-most bins\n * if the number of bins exceeds `binLimit`\n */\nvar CollapsingHighestDenseStore = /** @class */ (function (_super) {\n __extends(CollapsingHighestDenseStore, _super);\n /**\n * Initialize a new CollapsingHighestDenseStore\n *\n * @param binLimit The maximum number of bins\n * @param chunkSize The number of bins to add each time the bins grow (default 128)\n */\n function CollapsingHighestDenseStore(binLimit, chunkSize) {\n var _this = _super.call(this, chunkSize) || this;\n _this.binLimit = binLimit;\n _this.isCollapsed = false;\n return _this;\n }\n /**\n * Merge the contents of the parameter `store` into this store\n *\n * @param store The store to merge into the caller store\n */\n CollapsingHighestDenseStore.prototype.merge = function (store) {\n if (store.count === 0) {\n return;\n }\n if (this.count === 0) {\n this.copy(store);\n return;\n }\n if (store.minKey < this.minKey || store.maxKey > this.maxKey) {\n this._extendRange(store.minKey, store.maxKey);\n }\n var collapseEndIndex = store.maxKey - store.offset + 1;\n var collapseStartIndex = Math.max(this.maxKey + 1, store.minKey) - store.offset;\n if (collapseEndIndex > collapseStartIndex) {\n var collapseCount = (0, util_1.sumOfRange)(store.bins, collapseStartIndex, collapseEndIndex);\n this.bins[this.length() - 1] += collapseCount;\n }\n else {\n collapseStartIndex = collapseEndIndex;\n }\n for (var key = store.minKey; key < collapseStartIndex + store.offset; key++) {\n this.bins[key - this.offset] += store.bins[key - store.offset];\n }\n this.count += store.count;\n };\n /**\n * Directly clone the contents of the parameter `store` into this store\n *\n * @param store The store to be copied into the caller store\n */\n CollapsingHighestDenseStore.prototype.copy = function (store) {\n _super.prototype.copy.call(this, store);\n this.isCollapsed = store.isCollapsed;\n };\n CollapsingHighestDenseStore.prototype._getNewLength = function (newMinKey, newMaxKey) {\n var desiredLength = newMaxKey - newMinKey + 1;\n return Math.min(this.chunkSize * Math.ceil(desiredLength / this.chunkSize), this.binLimit);\n };\n /**\n * Adjust the `bins`, the `offset`, the `minKey`, and the `maxKey`\n * without resizing the bins, in order to try to make it fit the specified range.\n * Collapse to the left if necessary\n */\n CollapsingHighestDenseStore.prototype._adjust = function (newMinKey, newMaxKey) {\n if (newMaxKey - newMinKey + 1 > this.length()) {\n // The range of keys is too wide, the lowest bins need to be collapsed\n newMaxKey = newMinKey + this.length() + 1;\n if (newMaxKey <= this.minKey) {\n // Put everything in the first bin\n this.offset = newMinKey;\n this.maxKey = newMaxKey;\n this.bins.fill(0);\n this.bins[this.length() - 1] = this.count;\n }\n else {\n var shift = this.offset - newMinKey;\n if (shift > 0) {\n var collapseStartIndex = newMaxKey - this.offset + 1;\n var collapseEndIndex = this.maxKey - this.offset + 1;\n var collapsedCount = (0, util_1.sumOfRange)(this.bins, collapseStartIndex, collapseEndIndex);\n this.bins.fill(0, collapseStartIndex, collapseEndIndex);\n this.bins[collapseStartIndex - 1] += collapsedCount;\n this.maxKey = newMaxKey;\n this._shiftBins(shift);\n }\n else {\n this.maxKey = newMaxKey;\n // Shift the buckets to make room for newMinKey\n this._shiftBins(shift);\n }\n this.minKey = newMinKey;\n this.isCollapsed = true;\n }\n }\n else {\n this._centerBins(newMinKey, newMaxKey);\n this.minKey = newMinKey;\n this.maxKey = newMaxKey;\n }\n };\n /** Calculate the bin index for the key, extending the range if necessary */\n CollapsingHighestDenseStore.prototype._getIndex = function (key) {\n if (key < this.minKey) {\n if (this.isCollapsed) {\n return this.length() - 1;\n }\n this._extendRange(key);\n if (this.isCollapsed) {\n return this.length() - 1;\n }\n }\n else if (key > this.maxKey) {\n this._extendRange(key);\n }\n return key - this.offset;\n };\n return CollapsingHighestDenseStore;\n}(DenseStore_1.DenseStore));\nexports.CollapsingHighestDenseStore = CollapsingHighestDenseStore;\n","\"use strict\";\n/*\n * Unless explicitly stated otherwise all files in this repository are licensed\n * under the Apache 2.0 license (see LICENSE).\n * This product includes software developed at Datadog (https://www.datadoghq.com/).\n * Copyright 2020 Datadog, Inc.\n */\nvar __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n return function (d, b) {\n if (typeof b !== \"function\" && b !== null)\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n})();\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.CollapsingLowestDenseStore = void 0;\nvar DenseStore_1 = require(\"./DenseStore\");\nvar util_1 = require(\"./util\");\n/**\n * `CollapsingLowestDenseStore` is a dense store that keeps all the bins between\n * the bin for the `minKey` and the `maxKey`, but collapsing the left-most bins\n * if the number of bins exceeds `binLimit`\n */\nvar CollapsingLowestDenseStore = /** @class */ (function (_super) {\n __extends(CollapsingLowestDenseStore, _super);\n /**\n * Initialize a new CollapsingLowestDenseStore\n *\n * @param binLimit The maximum number of bins\n * @param chunkSize The number of bins to add each time the bins grow (default 128)\n */\n function CollapsingLowestDenseStore(binLimit, chunkSize) {\n var _this = _super.call(this, chunkSize) || this;\n _this.binLimit = binLimit;\n _this.isCollapsed = false;\n return _this;\n }\n /**\n * Merge the contents of the parameter `store` into this store\n *\n * @param store The store to merge into the caller store\n */\n CollapsingLowestDenseStore.prototype.merge = function (store) {\n if (store.count === 0) {\n return;\n }\n if (this.count === 0) {\n this.copy(store);\n return;\n }\n if (store.minKey < this.minKey || store.maxKey > this.maxKey) {\n this._extendRange(store.minKey, store.maxKey);\n }\n var collapseStartIndex = store.minKey - store.offset;\n var collapseEndIndex = Math.min(this.minKey, store.maxKey + 1) - store.offset;\n if (collapseEndIndex > collapseStartIndex) {\n var collapseCount = (0, util_1.sumOfRange)(store.bins, collapseStartIndex, collapseEndIndex);\n this.bins[0] += collapseCount;\n }\n else {\n collapseEndIndex = collapseStartIndex;\n }\n for (var key = collapseEndIndex + store.offset; key < store.maxKey + 1; key++) {\n this.bins[key - this.offset] += store.bins[key - store.offset];\n }\n this.count += store.count;\n };\n /**\n * Directly clone the contents of the parameter `store` into this store\n *\n * @param store The store to be copied into the caller store\n */\n CollapsingLowestDenseStore.prototype.copy = function (store) {\n _super.prototype.copy.call(this, store);\n this.isCollapsed = store.isCollapsed;\n };\n CollapsingLowestDenseStore.prototype._getNewLength = function (newMinKey, newMaxKey) {\n var desiredLength = newMaxKey - newMinKey + 1;\n return Math.min(this.chunkSize * Math.ceil(desiredLength / this.chunkSize), this.binLimit);\n };\n /**\n * Adjust the `bins`, the `offset`, the `minKey`, and the `maxKey`\n * without resizing the bins, in order to try to make it fit the specified range.\n * Collapse to the left if necessary\n */\n CollapsingLowestDenseStore.prototype._adjust = function (newMinKey, newMaxKey) {\n if (newMaxKey - newMinKey + 1 > this.length()) {\n // The range of keys is too wide, the lowest bins need to be collapsed\n newMinKey = newMaxKey - this.length() + 1;\n if (newMinKey >= this.maxKey) {\n // Put everything in the first bin\n this.offset = newMinKey;\n this.minKey = newMinKey;\n this.bins.fill(0);\n this.bins[0] = this.count;\n }\n else {\n var shift = this.offset - newMinKey;\n if (shift < 0) {\n var collapseStartIndex = this.minKey - this.offset;\n var collapseEndIndex = newMinKey - this.offset;\n var collapsedCount = (0, util_1.sumOfRange)(this.bins, collapseStartIndex, collapseEndIndex);\n this.bins.fill(0, collapseStartIndex, collapseEndIndex);\n this.bins[collapseEndIndex] += collapsedCount;\n this.minKey = newMinKey;\n this._shiftBins(shift);\n }\n else {\n this.minKey = newMinKey;\n // Shift the buckets to make room for newMinKey\n this._shiftBins(shift);\n }\n }\n this.maxKey = newMaxKey;\n this.isCollapsed = true;\n }\n else {\n this._centerBins(newMinKey, newMaxKey);\n this.minKey = newMinKey;\n this.maxKey = newMaxKey;\n }\n };\n /** Calculate the bin index for the key, extending the range if necessary */\n CollapsingLowestDenseStore.prototype._getIndex = function (key) {\n if (key < this.minKey) {\n if (this.isCollapsed) {\n return 0;\n }\n this._extendRange(key);\n if (this.isCollapsed) {\n return 0;\n }\n }\n else if (key > this.maxKey) {\n this._extendRange(key);\n }\n return key - this.offset;\n };\n return CollapsingLowestDenseStore;\n}(DenseStore_1.DenseStore));\nexports.CollapsingLowestDenseStore = CollapsingLowestDenseStore;\n","\"use strict\";\n/*\n * Unless explicitly stated otherwise all files in this repository are licensed\n * under the Apache 2.0 license (see LICENSE).\n * This product includes software developed at Datadog (https://www.datadoghq.com/).\n * Copyright 2020 Datadog, Inc.\n */\nvar __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\n if (ar || !(i in from)) {\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\n ar[i] = from[i];\n }\n }\n return to.concat(ar || Array.prototype.slice.call(from));\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.DenseStore = void 0;\nvar util_1 = require(\"./util\");\n/** The default number of bins to grow when necessary */\nvar CHUNK_SIZE = 128;\n/**\n * `DenseStore` is a store that keeps all the bins between\n * the bin for the `minKey` and the `maxKey`.\n */\nvar DenseStore = /** @class */ (function () {\n /**\n * Initialize a new DenseStore\n *\n * @param chunkSize The number of bins to add each time the bins grow (default 128)\n */\n function DenseStore(chunkSize) {\n if (chunkSize === void 0) { chunkSize = CHUNK_SIZE; }\n this.chunkSize = chunkSize;\n this.bins = [];\n this.count = 0;\n this.minKey = Infinity;\n this.maxKey = -Infinity;\n this.offset = 0;\n }\n /**\n * Update the counter at the specified index key, growing the number of bins if necessary\n *\n * @param key The key of the index to update\n * @param weight The amount to weight the key (default 1.0)\n */\n DenseStore.prototype.add = function (key, weight) {\n if (weight === void 0) { weight = 1; }\n var index = this._getIndex(key);\n this.bins[index] += weight;\n this.count += weight;\n };\n /**\n * Return the key for the value at the given rank\n *\n * E.g., if the non-zero bins are [1, 1] for keys a, b with no offset\n *\n * if lower = True:\n * keyAtRank(x) = a for x in [0, 1)\n * keyAtRank(x) = b for x in [1, 2)\n * if lower = False:\n * keyAtRank(x) = a for x in (-1, 0]\n * keyAtRank(x) = b for x in (0, 1]\n *\n * @param rank The rank at which to retrieve the key\n */\n DenseStore.prototype.keyAtRank = function (rank, lower) {\n if (lower === void 0) { lower = true; }\n var runningCount = 0;\n for (var i = 0; i < this.length(); i++) {\n var bin = this.bins[i];\n runningCount += bin;\n if ((lower && runningCount > rank) ||\n (!lower && runningCount >= rank + 1)) {\n return i + this.offset;\n }\n }\n return this.maxKey;\n };\n /**\n * Merge the contents of the parameter `store` into this store\n *\n * @param store The store to merge into the caller store\n */\n DenseStore.prototype.merge = function (store) {\n if (store.count === 0) {\n return;\n }\n if (this.count === 0) {\n this.copy(store);\n return;\n }\n if (store.minKey < this.minKey || store.maxKey > this.maxKey) {\n this._extendRange(store.minKey, store.maxKey);\n }\n var collapseStartIndex = store.minKey - store.offset;\n var collapseEndIndex = Math.min(this.minKey, store.maxKey + 1) - store.offset;\n if (collapseEndIndex > collapseStartIndex) {\n var collapseCount = (0, util_1.sumOfRange)(store.bins, collapseStartIndex, collapseEndIndex);\n this.bins[0] += collapseCount;\n }\n else {\n collapseEndIndex = collapseStartIndex;\n }\n for (var key = collapseEndIndex + store.offset; key < store.maxKey + 1; key++) {\n this.bins[key - this.offset] += store.bins[key - store.offset];\n }\n this.count += store.count;\n };\n /**\n * Directly clone the contents of the parameter `store` into this store\n *\n * @param store The store to be copied into the caller store\n */\n DenseStore.prototype.copy = function (store) {\n this.bins = __spreadArray([], store.bins, true);\n this.count = store.count;\n this.minKey = store.minKey;\n this.maxKey = store.maxKey;\n this.offset = store.offset;\n };\n /**\n * Return the length of the underlying storage (`bins`)\n */\n DenseStore.prototype.length = function () {\n return this.bins.length;\n };\n DenseStore.prototype._getNewLength = function (newMinKey, newMaxKey) {\n var desiredLength = newMaxKey - newMinKey + 1;\n return this.chunkSize * Math.ceil(desiredLength / this.chunkSize);\n };\n /**\n * Adjust the `bins`, the `offset`, the `minKey`, and the `maxKey`\n * without resizing the bins, in order to try to make it fit the specified range.\n * Collapse to the left if necessary\n */\n DenseStore.prototype._adjust = function (newMinKey, newMaxKey) {\n this._centerBins(newMinKey, newMaxKey);\n this.minKey = newMinKey;\n this.maxKey = newMaxKey;\n };\n /** Shift the bins by `shift`. This changes the `offset` */\n DenseStore.prototype._shiftBins = function (shift) {\n var _a, _b;\n if (shift > 0) {\n this.bins = this.bins.slice(0, -shift);\n (_a = this.bins).unshift.apply(_a, new Array(shift).fill(0));\n }\n else {\n this.bins = this.bins.slice(Math.abs(shift));\n (_b = this.bins).push.apply(_b, new Array(Math.abs(shift)).fill(0));\n }\n this.offset -= shift;\n };\n /** Center the bins. This changes the `offset` */\n DenseStore.prototype._centerBins = function (newMinKey, newMaxKey) {\n var middleKey = newMinKey + Math.floor((newMaxKey - newMinKey + 1) / 2);\n this._shiftBins(Math.floor(this.offset + this.length() / 2) - middleKey);\n };\n /** Grow the bins as necessary, and call _adjust */\n DenseStore.prototype._extendRange = function (key, secondKey) {\n var _a;\n secondKey = secondKey || key;\n var newMinKey = Math.min(key, secondKey, this.minKey);\n var newMaxKey = Math.max(key, secondKey, this.maxKey);\n if (this.length() === 0) {\n this.bins = new Array(this._getNewLength(newMinKey, newMaxKey)).fill(0);\n this.offset = newMinKey;\n this._adjust(newMinKey, newMaxKey);\n }\n else if (newMinKey >= this.minKey &&\n newMaxKey < this.offset + this.length()) {\n // No need to change the range, just update the min and max keys\n this.minKey = newMinKey;\n this.maxKey = newMaxKey;\n }\n else {\n // Grow the bins\n var newLength = this._getNewLength(newMinKey, newMaxKey);\n if (newLength > this.length()) {\n (_a = this.bins).push.apply(_a, new Array(newLength - this.length()).fill(0));\n }\n this._adjust(newMinKey, newMaxKey);\n }\n };\n /** Calculate the bin index for the key, extending the range if necessary */\n DenseStore.prototype._getIndex = function (key) {\n if (key < this.minKey) {\n this._extendRange(key);\n }\n else if (key > this.maxKey) {\n this._extendRange(key);\n }\n return key - this.offset;\n };\n DenseStore.prototype.toProto = function () {\n var ProtoStore = require('../proto/compiled').Store;\n return ProtoStore.create({\n contiguousBinCounts: this.bins,\n contiguousBinIndexOffset: this.offset\n });\n };\n DenseStore.fromProto = function (protoStore) {\n if (!protoStore ||\n /* Double equals (==) is intentional here to check for\n * `null` | `undefined` without including `0` */\n protoStore.contiguousBinCounts == null ||\n protoStore.contiguousBinIndexOffset == null) {\n throw Error('Failed to decode store from protobuf');\n }\n var store = new this();\n var index = protoStore.contiguousBinIndexOffset;\n store.offset = index;\n for (var _i = 0, _a = protoStore.contiguousBinCounts; _i < _a.length; _i++) {\n var count = _a[_i];\n store.add(index, count);\n index += 1;\n }\n return store;\n };\n return DenseStore;\n}());\nexports.DenseStore = DenseStore;\n","\"use strict\";\n/*\n * Unless explicitly stated otherwise all files in this repository are licensed\n * under the Apache 2.0 license (see LICENSE).\n * This product includes software developed at Datadog (https://www.datadoghq.com/).\n * Copyright 2020 Datadog, Inc.\n */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.CollapsingHighestDenseStore = exports.CollapsingLowestDenseStore = exports.DenseStore = void 0;\nvar DenseStore_1 = require(\"./DenseStore\");\nObject.defineProperty(exports, \"DenseStore\", { enumerable: true, get: function () { return DenseStore_1.DenseStore; } });\nvar CollapsingLowestDenseStore_1 = require(\"./CollapsingLowestDenseStore\");\nObject.defineProperty(exports, \"CollapsingLowestDenseStore\", { enumerable: true, get: function () { return CollapsingLowestDenseStore_1.CollapsingLowestDenseStore; } });\nvar CollapsingHighestDenseStore_1 = require(\"./CollapsingHighestDenseStore\");\nObject.defineProperty(exports, \"CollapsingHighestDenseStore\", { enumerable: true, get: function () { return CollapsingHighestDenseStore_1.CollapsingHighestDenseStore; } });\n","\"use strict\";\n/*\n * Unless explicitly stated otherwise all files in this repository are licensed\n * under the Apache 2.0 license (see LICENSE).\n * This product includes software developed at Datadog (https://www.datadoghq.com/).\n * Copyright 2020 Datadog, Inc.\n */\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.sumOfRange = void 0;\n/**\n * Return the sum of the values from range `start` to `end` in `array`\n */\nvar sumOfRange = function (array, start, end) {\n var sum = 0;\n for (var i = start; i <= end; i++) {\n sum += array[i];\n }\n return sum;\n};\nexports.sumOfRange = sumOfRange;\n","\"use strict\";\n/*\n * Unless explicitly stated otherwise all files in this repository are licensed\n * under the Apache 2.0 license (see LICENSE).\n * This product includes software developed at Datadog (https://www.datadoghq.com/).\n * Copyright 2020 Datadog, Inc.\n */\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n var desc = Object.getOwnPropertyDescriptor(m, k);\n if (!desc || (\"get\" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\n desc = { enumerable: true, get: function() { return m[k]; } };\n }\n Object.defineProperty(o, k2, desc);\n}) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n}));\nvar __exportStar = (this && this.__exportStar) || function(m, exports) {\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\n__exportStar(require(\"./ddsketch\"), exports);\n","\"use strict\";\r\nmodule.exports = asPromise;\r\n\r\n/**\r\n * Callback as used by {@link util.asPromise}.\r\n * @typedef asPromiseCallback\r\n * @type {function}\r\n * @param {Error|null} error Error, if any\r\n * @param {...*} params Additional arguments\r\n * @returns {undefined}\r\n */\r\n\r\n/**\r\n * Returns a promise from a node-style callback function.\r\n * @memberof util\r\n * @param {asPromiseCallback} fn Function to call\r\n * @param {*} ctx Function context\r\n * @param {...*} params Function arguments\r\n * @returns {Promise<*>} Promisified function\r\n */\r\nfunction asPromise(fn, ctx/*, varargs */) {\r\n var params = new Array(arguments.length - 1),\r\n offset = 0,\r\n index = 2,\r\n pending = true;\r\n while (index < arguments.length)\r\n params[offset++] = arguments[index++];\r\n return new Promise(function executor(resolve, reject) {\r\n params[offset] = function callback(err/*, varargs */) {\r\n if (pending) {\r\n pending = false;\r\n if (err)\r\n reject(err);\r\n else {\r\n var params = new Array(arguments.length - 1),\r\n offset = 0;\r\n while (offset < params.length)\r\n params[offset++] = arguments[offset];\r\n resolve.apply(null, params);\r\n }\r\n }\r\n };\r\n try {\r\n fn.apply(ctx || null, params);\r\n } catch (err) {\r\n if (pending) {\r\n pending = false;\r\n reject(err);\r\n }\r\n }\r\n });\r\n}\r\n","\"use strict\";\r\n\r\n/**\r\n * A minimal base64 implementation for number arrays.\r\n * @memberof util\r\n * @namespace\r\n */\r\nvar base64 = exports;\r\n\r\n/**\r\n * Calculates the byte length of a base64 encoded string.\r\n * @param {string} string Base64 encoded string\r\n * @returns {number} Byte length\r\n */\r\nbase64.length = function length(string) {\r\n var p = string.length;\r\n if (!p)\r\n return 0;\r\n var n = 0;\r\n while (--p % 4 > 1 && string.charAt(p) === \"=\")\r\n ++n;\r\n return Math.ceil(string.length * 3) / 4 - n;\r\n};\r\n\r\n// Base64 encoding table\r\nvar b64 = new Array(64);\r\n\r\n// Base64 decoding table\r\nvar s64 = new Array(123);\r\n\r\n// 65..90, 97..122, 48..57, 43, 47\r\nfor (var i = 0; i < 64;)\r\n s64[b64[i] = i < 26 ? i + 65 : i < 52 ? i + 71 : i < 62 ? i - 4 : i - 59 | 43] = i++;\r\n\r\n/**\r\n * Encodes a buffer to a base64 encoded string.\r\n * @param {Uint8Array} buffer Source buffer\r\n * @param {number} start Source start\r\n * @param {number} end Source end\r\n * @returns {string} Base64 encoded string\r\n */\r\nbase64.encode = function encode(buffer, start, end) {\r\n var parts = null,\r\n chunk = [];\r\n var i = 0, // output index\r\n j = 0, // goto index\r\n t; // temporary\r\n while (start < end) {\r\n var b = buffer[start++];\r\n switch (j) {\r\n case 0:\r\n chunk[i++] = b64[b >> 2];\r\n t = (b & 3) << 4;\r\n j = 1;\r\n break;\r\n case 1:\r\n chunk[i++] = b64[t | b >> 4];\r\n t = (b & 15) << 2;\r\n j = 2;\r\n break;\r\n case 2:\r\n chunk[i++] = b64[t | b >> 6];\r\n chunk[i++] = b64[b & 63];\r\n j = 0;\r\n break;\r\n }\r\n if (i > 8191) {\r\n (parts || (parts = [])).push(String.fromCharCode.apply(String, chunk));\r\n i = 0;\r\n }\r\n }\r\n if (j) {\r\n chunk[i++] = b64[t];\r\n chunk[i++] = 61;\r\n if (j === 1)\r\n chunk[i++] = 61;\r\n }\r\n if (parts) {\r\n if (i)\r\n parts.push(String.fromCharCode.apply(String, chunk.slice(0, i)));\r\n return parts.join(\"\");\r\n }\r\n return String.fromCharCode.apply(String, chunk.slice(0, i));\r\n};\r\n\r\nvar invalidEncoding = \"invalid encoding\";\r\n\r\n/**\r\n * Decodes a base64 encoded string to a buffer.\r\n * @param {string} string Source string\r\n * @param {Uint8Array} buffer Destination buffer\r\n * @param {number} offset Destination offset\r\n * @returns {number} Number of bytes written\r\n * @throws {Error} If encoding is invalid\r\n */\r\nbase64.decode = function decode(string, buffer, offset) {\r\n var start = offset;\r\n var j = 0, // goto index\r\n t; // temporary\r\n for (var i = 0; i < string.length;) {\r\n var c = string.charCodeAt(i++);\r\n if (c === 61 && j > 1)\r\n break;\r\n if ((c = s64[c]) === undefined)\r\n throw Error(invalidEncoding);\r\n switch (j) {\r\n case 0:\r\n t = c;\r\n j = 1;\r\n break;\r\n case 1:\r\n buffer[offset++] = t << 2 | (c & 48) >> 4;\r\n t = c;\r\n j = 2;\r\n break;\r\n case 2:\r\n buffer[offset++] = (t & 15) << 4 | (c & 60) >> 2;\r\n t = c;\r\n j = 3;\r\n break;\r\n case 3:\r\n buffer[offset++] = (t & 3) << 6 | c;\r\n j = 0;\r\n break;\r\n }\r\n }\r\n if (j === 1)\r\n throw Error(invalidEncoding);\r\n return offset - start;\r\n};\r\n\r\n/**\r\n * Tests if the specified string appears to be base64 encoded.\r\n * @param {string} string String to test\r\n * @returns {boolean} `true` if probably base64 encoded, otherwise false\r\n */\r\nbase64.test = function test(string) {\r\n return /^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(string);\r\n};\r\n","\"use strict\";\r\nmodule.exports = EventEmitter;\r\n\r\n/**\r\n * Constructs a new event emitter instance.\r\n * @classdesc A minimal event emitter.\r\n * @memberof util\r\n * @constructor\r\n */\r\nfunction EventEmitter() {\r\n\r\n /**\r\n * Registered listeners.\r\n * @type {Object.}\r\n * @private\r\n */\r\n this._listeners = {};\r\n}\r\n\r\n/**\r\n * Registers an event listener.\r\n * @param {string} evt Event name\r\n * @param {function} fn Listener\r\n * @param {*} [ctx] Listener context\r\n * @returns {util.EventEmitter} `this`\r\n */\r\nEventEmitter.prototype.on = function on(evt, fn, ctx) {\r\n (this._listeners[evt] || (this._listeners[evt] = [])).push({\r\n fn : fn,\r\n ctx : ctx || this\r\n });\r\n return this;\r\n};\r\n\r\n/**\r\n * Removes an event listener or any matching listeners if arguments are omitted.\r\n * @param {string} [evt] Event name. Removes all listeners if omitted.\r\n * @param {function} [fn] Listener to remove. Removes all listeners of `evt` if omitted.\r\n * @returns {util.EventEmitter} `this`\r\n */\r\nEventEmitter.prototype.off = function off(evt, fn) {\r\n if (evt === undefined)\r\n this._listeners = {};\r\n else {\r\n if (fn === undefined)\r\n this._listeners[evt] = [];\r\n else {\r\n var listeners = this._listeners[evt];\r\n for (var i = 0; i < listeners.length;)\r\n if (listeners[i].fn === fn)\r\n listeners.splice(i, 1);\r\n else\r\n ++i;\r\n }\r\n }\r\n return this;\r\n};\r\n\r\n/**\r\n * Emits an event by calling its listeners with the specified arguments.\r\n * @param {string} evt Event name\r\n * @param {...*} args Arguments\r\n * @returns {util.EventEmitter} `this`\r\n */\r\nEventEmitter.prototype.emit = function emit(evt) {\r\n var listeners = this._listeners[evt];\r\n if (listeners) {\r\n var args = [],\r\n i = 1;\r\n for (; i < arguments.length;)\r\n args.push(arguments[i++]);\r\n for (i = 0; i < listeners.length;)\r\n listeners[i].fn.apply(listeners[i++].ctx, args);\r\n }\r\n return this;\r\n};\r\n","\"use strict\";\r\n\r\nmodule.exports = factory(factory);\r\n\r\n/**\r\n * Reads / writes floats / doubles from / to buffers.\r\n * @name util.float\r\n * @namespace\r\n */\r\n\r\n/**\r\n * Writes a 32 bit float to a buffer using little endian byte order.\r\n * @name util.float.writeFloatLE\r\n * @function\r\n * @param {number} val Value to write\r\n * @param {Uint8Array} buf Target buffer\r\n * @param {number} pos Target buffer offset\r\n * @returns {undefined}\r\n */\r\n\r\n/**\r\n * Writes a 32 bit float to a buffer using big endian byte order.\r\n * @name util.float.writeFloatBE\r\n * @function\r\n * @param {number} val Value to write\r\n * @param {Uint8Array} buf Target buffer\r\n * @param {number} pos Target buffer offset\r\n * @returns {undefined}\r\n */\r\n\r\n/**\r\n * Reads a 32 bit float from a buffer using little endian byte order.\r\n * @name util.float.readFloatLE\r\n * @function\r\n * @param {Uint8Array} buf Source buffer\r\n * @param {number} pos Source buffer offset\r\n * @returns {number} Value read\r\n */\r\n\r\n/**\r\n * Reads a 32 bit float from a buffer using big endian byte order.\r\n * @name util.float.readFloatBE\r\n * @function\r\n * @param {Uint8Array} buf Source buffer\r\n * @param {number} pos Source buffer offset\r\n * @returns {number} Value read\r\n */\r\n\r\n/**\r\n * Writes a 64 bit double to a buffer using little endian byte order.\r\n * @name util.float.writeDoubleLE\r\n * @function\r\n * @param {number} val Value to write\r\n * @param {Uint8Array} buf Target buffer\r\n * @param {number} pos Target buffer offset\r\n * @returns {undefined}\r\n */\r\n\r\n/**\r\n * Writes a 64 bit double to a buffer using big endian byte order.\r\n * @name util.float.writeDoubleBE\r\n * @function\r\n * @param {number} val Value to write\r\n * @param {Uint8Array} buf Target buffer\r\n * @param {number} pos Target buffer offset\r\n * @returns {undefined}\r\n */\r\n\r\n/**\r\n * Reads a 64 bit double from a buffer using little endian byte order.\r\n * @name util.float.readDoubleLE\r\n * @function\r\n * @param {Uint8Array} buf Source buffer\r\n * @param {number} pos Source buffer offset\r\n * @returns {number} Value read\r\n */\r\n\r\n/**\r\n * Reads a 64 bit double from a buffer using big endian byte order.\r\n * @name util.float.readDoubleBE\r\n * @function\r\n * @param {Uint8Array} buf Source buffer\r\n * @param {number} pos Source buffer offset\r\n * @returns {number} Value read\r\n */\r\n\r\n// Factory function for the purpose of node-based testing in modified global environments\r\nfunction factory(exports) {\r\n\r\n // float: typed array\r\n if (typeof Float32Array !== \"undefined\") (function() {\r\n\r\n var f32 = new Float32Array([ -0 ]),\r\n f8b = new Uint8Array(f32.buffer),\r\n le = f8b[3] === 128;\r\n\r\n function writeFloat_f32_cpy(val, buf, pos) {\r\n f32[0] = val;\r\n buf[pos ] = f8b[0];\r\n buf[pos + 1] = f8b[1];\r\n buf[pos + 2] = f8b[2];\r\n buf[pos + 3] = f8b[3];\r\n }\r\n\r\n function writeFloat_f32_rev(val, buf, pos) {\r\n f32[0] = val;\r\n buf[pos ] = f8b[3];\r\n buf[pos + 1] = f8b[2];\r\n buf[pos + 2] = f8b[1];\r\n buf[pos + 3] = f8b[0];\r\n }\r\n\r\n /* istanbul ignore next */\r\n exports.writeFloatLE = le ? writeFloat_f32_cpy : writeFloat_f32_rev;\r\n /* istanbul ignore next */\r\n exports.writeFloatBE = le ? writeFloat_f32_rev : writeFloat_f32_cpy;\r\n\r\n function readFloat_f32_cpy(buf, pos) {\r\n f8b[0] = buf[pos ];\r\n f8b[1] = buf[pos + 1];\r\n f8b[2] = buf[pos + 2];\r\n f8b[3] = buf[pos + 3];\r\n return f32[0];\r\n }\r\n\r\n function readFloat_f32_rev(buf, pos) {\r\n f8b[3] = buf[pos ];\r\n f8b[2] = buf[pos + 1];\r\n f8b[1] = buf[pos + 2];\r\n f8b[0] = buf[pos + 3];\r\n return f32[0];\r\n }\r\n\r\n /* istanbul ignore next */\r\n exports.readFloatLE = le ? readFloat_f32_cpy : readFloat_f32_rev;\r\n /* istanbul ignore next */\r\n exports.readFloatBE = le ? readFloat_f32_rev : readFloat_f32_cpy;\r\n\r\n // float: ieee754\r\n })(); else (function() {\r\n\r\n function writeFloat_ieee754(writeUint, val, buf, pos) {\r\n var sign = val < 0 ? 1 : 0;\r\n if (sign)\r\n val = -val;\r\n if (val === 0)\r\n writeUint(1 / val > 0 ? /* positive */ 0 : /* negative 0 */ 2147483648, buf, pos);\r\n else if (isNaN(val))\r\n writeUint(2143289344, buf, pos);\r\n else if (val > 3.4028234663852886e+38) // +-Infinity\r\n writeUint((sign << 31 | 2139095040) >>> 0, buf, pos);\r\n else if (val < 1.1754943508222875e-38) // denormal\r\n writeUint((sign << 31 | Math.round(val / 1.401298464324817e-45)) >>> 0, buf, pos);\r\n else {\r\n var exponent = Math.floor(Math.log(val) / Math.LN2),\r\n mantissa = Math.round(val * Math.pow(2, -exponent) * 8388608) & 8388607;\r\n writeUint((sign << 31 | exponent + 127 << 23 | mantissa) >>> 0, buf, pos);\r\n }\r\n }\r\n\r\n exports.writeFloatLE = writeFloat_ieee754.bind(null, writeUintLE);\r\n exports.writeFloatBE = writeFloat_ieee754.bind(null, writeUintBE);\r\n\r\n function readFloat_ieee754(readUint, buf, pos) {\r\n var uint = readUint(buf, pos),\r\n sign = (uint >> 31) * 2 + 1,\r\n exponent = uint >>> 23 & 255,\r\n mantissa = uint & 8388607;\r\n return exponent === 255\r\n ? mantissa\r\n ? NaN\r\n : sign * Infinity\r\n : exponent === 0 // denormal\r\n ? sign * 1.401298464324817e-45 * mantissa\r\n : sign * Math.pow(2, exponent - 150) * (mantissa + 8388608);\r\n }\r\n\r\n exports.readFloatLE = readFloat_ieee754.bind(null, readUintLE);\r\n exports.readFloatBE = readFloat_ieee754.bind(null, readUintBE);\r\n\r\n })();\r\n\r\n // double: typed array\r\n if (typeof Float64Array !== \"undefined\") (function() {\r\n\r\n var f64 = new Float64Array([-0]),\r\n f8b = new Uint8Array(f64.buffer),\r\n le = f8b[7] === 128;\r\n\r\n function writeDouble_f64_cpy(val, buf, pos) {\r\n f64[0] = val;\r\n buf[pos ] = f8b[0];\r\n buf[pos + 1] = f8b[1];\r\n buf[pos + 2] = f8b[2];\r\n buf[pos + 3] = f8b[3];\r\n buf[pos + 4] = f8b[4];\r\n buf[pos + 5] = f8b[5];\r\n buf[pos + 6] = f8b[6];\r\n buf[pos + 7] = f8b[7];\r\n }\r\n\r\n function writeDouble_f64_rev(val, buf, pos) {\r\n f64[0] = val;\r\n buf[pos ] = f8b[7];\r\n buf[pos + 1] = f8b[6];\r\n buf[pos + 2] = f8b[5];\r\n buf[pos + 3] = f8b[4];\r\n buf[pos + 4] = f8b[3];\r\n buf[pos + 5] = f8b[2];\r\n buf[pos + 6] = f8b[1];\r\n buf[pos + 7] = f8b[0];\r\n }\r\n\r\n /* istanbul ignore next */\r\n exports.writeDoubleLE = le ? writeDouble_f64_cpy : writeDouble_f64_rev;\r\n /* istanbul ignore next */\r\n exports.writeDoubleBE = le ? writeDouble_f64_rev : writeDouble_f64_cpy;\r\n\r\n function readDouble_f64_cpy(buf, pos) {\r\n f8b[0] = buf[pos ];\r\n f8b[1] = buf[pos + 1];\r\n f8b[2] = buf[pos + 2];\r\n f8b[3] = buf[pos + 3];\r\n f8b[4] = buf[pos + 4];\r\n f8b[5] = buf[pos + 5];\r\n f8b[6] = buf[pos + 6];\r\n f8b[7] = buf[pos + 7];\r\n return f64[0];\r\n }\r\n\r\n function readDouble_f64_rev(buf, pos) {\r\n f8b[7] = buf[pos ];\r\n f8b[6] = buf[pos + 1];\r\n f8b[5] = buf[pos + 2];\r\n f8b[4] = buf[pos + 3];\r\n f8b[3] = buf[pos + 4];\r\n f8b[2] = buf[pos + 5];\r\n f8b[1] = buf[pos + 6];\r\n f8b[0] = buf[pos + 7];\r\n return f64[0];\r\n }\r\n\r\n /* istanbul ignore next */\r\n exports.readDoubleLE = le ? readDouble_f64_cpy : readDouble_f64_rev;\r\n /* istanbul ignore next */\r\n exports.readDoubleBE = le ? readDouble_f64_rev : readDouble_f64_cpy;\r\n\r\n // double: ieee754\r\n })(); else (function() {\r\n\r\n function writeDouble_ieee754(writeUint, off0, off1, val, buf, pos) {\r\n var sign = val < 0 ? 1 : 0;\r\n if (sign)\r\n val = -val;\r\n if (val === 0) {\r\n writeUint(0, buf, pos + off0);\r\n writeUint(1 / val > 0 ? /* positive */ 0 : /* negative 0 */ 2147483648, buf, pos + off1);\r\n } else if (isNaN(val)) {\r\n writeUint(0, buf, pos + off0);\r\n writeUint(2146959360, buf, pos + off1);\r\n } else if (val > 1.7976931348623157e+308) { // +-Infinity\r\n writeUint(0, buf, pos + off0);\r\n writeUint((sign << 31 | 2146435072) >>> 0, buf, pos + off1);\r\n } else {\r\n var mantissa;\r\n if (val < 2.2250738585072014e-308) { // denormal\r\n mantissa = val / 5e-324;\r\n writeUint(mantissa >>> 0, buf, pos + off0);\r\n writeUint((sign << 31 | mantissa / 4294967296) >>> 0, buf, pos + off1);\r\n } else {\r\n var exponent = Math.floor(Math.log(val) / Math.LN2);\r\n if (exponent === 1024)\r\n exponent = 1023;\r\n mantissa = val * Math.pow(2, -exponent);\r\n writeUint(mantissa * 4503599627370496 >>> 0, buf, pos + off0);\r\n writeUint((sign << 31 | exponent + 1023 << 20 | mantissa * 1048576 & 1048575) >>> 0, buf, pos + off1);\r\n }\r\n }\r\n }\r\n\r\n exports.writeDoubleLE = writeDouble_ieee754.bind(null, writeUintLE, 0, 4);\r\n exports.writeDoubleBE = writeDouble_ieee754.bind(null, writeUintBE, 4, 0);\r\n\r\n function readDouble_ieee754(readUint, off0, off1, buf, pos) {\r\n var lo = readUint(buf, pos + off0),\r\n hi = readUint(buf, pos + off1);\r\n var sign = (hi >> 31) * 2 + 1,\r\n exponent = hi >>> 20 & 2047,\r\n mantissa = 4294967296 * (hi & 1048575) + lo;\r\n return exponent === 2047\r\n ? mantissa\r\n ? NaN\r\n : sign * Infinity\r\n : exponent === 0 // denormal\r\n ? sign * 5e-324 * mantissa\r\n : sign * Math.pow(2, exponent - 1075) * (mantissa + 4503599627370496);\r\n }\r\n\r\n exports.readDoubleLE = readDouble_ieee754.bind(null, readUintLE, 0, 4);\r\n exports.readDoubleBE = readDouble_ieee754.bind(null, readUintBE, 4, 0);\r\n\r\n })();\r\n\r\n return exports;\r\n}\r\n\r\n// uint helpers\r\n\r\nfunction writeUintLE(val, buf, pos) {\r\n buf[pos ] = val & 255;\r\n buf[pos + 1] = val >>> 8 & 255;\r\n buf[pos + 2] = val >>> 16 & 255;\r\n buf[pos + 3] = val >>> 24;\r\n}\r\n\r\nfunction writeUintBE(val, buf, pos) {\r\n buf[pos ] = val >>> 24;\r\n buf[pos + 1] = val >>> 16 & 255;\r\n buf[pos + 2] = val >>> 8 & 255;\r\n buf[pos + 3] = val & 255;\r\n}\r\n\r\nfunction readUintLE(buf, pos) {\r\n return (buf[pos ]\r\n | buf[pos + 1] << 8\r\n | buf[pos + 2] << 16\r\n | buf[pos + 3] << 24) >>> 0;\r\n}\r\n\r\nfunction readUintBE(buf, pos) {\r\n return (buf[pos ] << 24\r\n | buf[pos + 1] << 16\r\n | buf[pos + 2] << 8\r\n | buf[pos + 3]) >>> 0;\r\n}\r\n","\"use strict\";\r\nmodule.exports = inquire;\r\n\r\n/**\r\n * Requires a module only if available.\r\n * @memberof util\r\n * @param {string} moduleName Module to require\r\n * @returns {?Object} Required module if available and not empty, otherwise `null`\r\n */\r\nfunction inquire(moduleName) {\r\n try {\r\n var mod = eval(\"quire\".replace(/^/,\"re\"))(moduleName); // eslint-disable-line no-eval\r\n if (mod && (mod.length || Object.keys(mod).length))\r\n return mod;\r\n } catch (e) {} // eslint-disable-line no-empty\r\n return null;\r\n}\r\n","\"use strict\";\r\nmodule.exports = pool;\r\n\r\n/**\r\n * An allocator as used by {@link util.pool}.\r\n * @typedef PoolAllocator\r\n * @type {function}\r\n * @param {number} size Buffer size\r\n * @returns {Uint8Array} Buffer\r\n */\r\n\r\n/**\r\n * A slicer as used by {@link util.pool}.\r\n * @typedef PoolSlicer\r\n * @type {function}\r\n * @param {number} start Start offset\r\n * @param {number} end End offset\r\n * @returns {Uint8Array} Buffer slice\r\n * @this {Uint8Array}\r\n */\r\n\r\n/**\r\n * A general purpose buffer pool.\r\n * @memberof util\r\n * @function\r\n * @param {PoolAllocator} alloc Allocator\r\n * @param {PoolSlicer} slice Slicer\r\n * @param {number} [size=8192] Slab size\r\n * @returns {PoolAllocator} Pooled allocator\r\n */\r\nfunction pool(alloc, slice, size) {\r\n var SIZE = size || 8192;\r\n var MAX = SIZE >>> 1;\r\n var slab = null;\r\n var offset = SIZE;\r\n return function pool_alloc(size) {\r\n if (size < 1 || size > MAX)\r\n return alloc(size);\r\n if (offset + size > SIZE) {\r\n slab = alloc(SIZE);\r\n offset = 0;\r\n }\r\n var buf = slice.call(slab, offset, offset += size);\r\n if (offset & 7) // align to 32 bit\r\n offset = (offset | 7) + 1;\r\n return buf;\r\n };\r\n}\r\n","\"use strict\";\r\n\r\n/**\r\n * A minimal UTF8 implementation for number arrays.\r\n * @memberof util\r\n * @namespace\r\n */\r\nvar utf8 = exports;\r\n\r\n/**\r\n * Calculates the UTF8 byte length of a string.\r\n * @param {string} string String\r\n * @returns {number} Byte length\r\n */\r\nutf8.length = function utf8_length(string) {\r\n var len = 0,\r\n c = 0;\r\n for (var i = 0; i < string.length; ++i) {\r\n c = string.charCodeAt(i);\r\n if (c < 128)\r\n len += 1;\r\n else if (c < 2048)\r\n len += 2;\r\n else if ((c & 0xFC00) === 0xD800 && (string.charCodeAt(i + 1) & 0xFC00) === 0xDC00) {\r\n ++i;\r\n len += 4;\r\n } else\r\n len += 3;\r\n }\r\n return len;\r\n};\r\n\r\n/**\r\n * Reads UTF8 bytes as a string.\r\n * @param {Uint8Array} buffer Source buffer\r\n * @param {number} start Source start\r\n * @param {number} end Source end\r\n * @returns {string} String read\r\n */\r\nutf8.read = function utf8_read(buffer, start, end) {\r\n var len = end - start;\r\n if (len < 1)\r\n return \"\";\r\n var parts = null,\r\n chunk = [],\r\n i = 0, // char offset\r\n t; // temporary\r\n while (start < end) {\r\n t = buffer[start++];\r\n if (t < 128)\r\n chunk[i++] = t;\r\n else if (t > 191 && t < 224)\r\n chunk[i++] = (t & 31) << 6 | buffer[start++] & 63;\r\n else if (t > 239 && t < 365) {\r\n t = ((t & 7) << 18 | (buffer[start++] & 63) << 12 | (buffer[start++] & 63) << 6 | buffer[start++] & 63) - 0x10000;\r\n chunk[i++] = 0xD800 + (t >> 10);\r\n chunk[i++] = 0xDC00 + (t & 1023);\r\n } else\r\n chunk[i++] = (t & 15) << 12 | (buffer[start++] & 63) << 6 | buffer[start++] & 63;\r\n if (i > 8191) {\r\n (parts || (parts = [])).push(String.fromCharCode.apply(String, chunk));\r\n i = 0;\r\n }\r\n }\r\n if (parts) {\r\n if (i)\r\n parts.push(String.fromCharCode.apply(String, chunk.slice(0, i)));\r\n return parts.join(\"\");\r\n }\r\n return String.fromCharCode.apply(String, chunk.slice(0, i));\r\n};\r\n\r\n/**\r\n * Writes a string as UTF8 bytes.\r\n * @param {string} string Source string\r\n * @param {Uint8Array} buffer Destination buffer\r\n * @param {number} offset Destination offset\r\n * @returns {number} Bytes written\r\n */\r\nutf8.write = function utf8_write(string, buffer, offset) {\r\n var start = offset,\r\n c1, // character 1\r\n c2; // character 2\r\n for (var i = 0; i < string.length; ++i) {\r\n c1 = string.charCodeAt(i);\r\n if (c1 < 128) {\r\n buffer[offset++] = c1;\r\n } else if (c1 < 2048) {\r\n buffer[offset++] = c1 >> 6 | 192;\r\n buffer[offset++] = c1 & 63 | 128;\r\n } else if ((c1 & 0xFC00) === 0xD800 && ((c2 = string.charCodeAt(i + 1)) & 0xFC00) === 0xDC00) {\r\n c1 = 0x10000 + ((c1 & 0x03FF) << 10) + (c2 & 0x03FF);\r\n ++i;\r\n buffer[offset++] = c1 >> 18 | 240;\r\n buffer[offset++] = c1 >> 12 & 63 | 128;\r\n buffer[offset++] = c1 >> 6 & 63 | 128;\r\n buffer[offset++] = c1 & 63 | 128;\r\n } else {\r\n buffer[offset++] = c1 >> 12 | 224;\r\n buffer[offset++] = c1 >> 6 & 63 | 128;\r\n buffer[offset++] = c1 & 63 | 128;\r\n }\r\n }\r\n return offset - start;\r\n};\r\n","// minimal library entry point.\n\n\"use strict\";\nmodule.exports = require(\"./src/index-minimal\");\n","\"use strict\";\nvar protobuf = exports;\n\n/**\n * Build type, one of `\"full\"`, `\"light\"` or `\"minimal\"`.\n * @name build\n * @type {string}\n * @const\n */\nprotobuf.build = \"minimal\";\n\n// Serialization\nprotobuf.Writer = require(\"./writer\");\nprotobuf.BufferWriter = require(\"./writer_buffer\");\nprotobuf.Reader = require(\"./reader\");\nprotobuf.BufferReader = require(\"./reader_buffer\");\n\n// Utility\nprotobuf.util = require(\"./util/minimal\");\nprotobuf.rpc = require(\"./rpc\");\nprotobuf.roots = require(\"./roots\");\nprotobuf.configure = configure;\n\n/* istanbul ignore next */\n/**\n * Reconfigures the library according to the environment.\n * @returns {undefined}\n */\nfunction configure() {\n protobuf.util._configure();\n protobuf.Writer._configure(protobuf.BufferWriter);\n protobuf.Reader._configure(protobuf.BufferReader);\n}\n\n// Set up buffer utility according to the environment\nconfigure();\n","\"use strict\";\nmodule.exports = Reader;\n\nvar util = require(\"./util/minimal\");\n\nvar BufferReader; // cyclic\n\nvar LongBits = util.LongBits,\n utf8 = util.utf8;\n\n/* istanbul ignore next */\nfunction indexOutOfRange(reader, writeLength) {\n return RangeError(\"index out of range: \" + reader.pos + \" + \" + (writeLength || 1) + \" > \" + reader.len);\n}\n\n/**\n * Constructs a new reader instance using the specified buffer.\n * @classdesc Wire format reader using `Uint8Array` if available, otherwise `Array`.\n * @constructor\n * @param {Uint8Array} buffer Buffer to read from\n */\nfunction Reader(buffer) {\n\n /**\n * Read buffer.\n * @type {Uint8Array}\n */\n this.buf = buffer;\n\n /**\n * Read buffer position.\n * @type {number}\n */\n this.pos = 0;\n\n /**\n * Read buffer length.\n * @type {number}\n */\n this.len = buffer.length;\n}\n\nvar create_array = typeof Uint8Array !== \"undefined\"\n ? function create_typed_array(buffer) {\n if (buffer instanceof Uint8Array || Array.isArray(buffer))\n return new Reader(buffer);\n throw Error(\"illegal buffer\");\n }\n /* istanbul ignore next */\n : function create_array(buffer) {\n if (Array.isArray(buffer))\n return new Reader(buffer);\n throw Error(\"illegal buffer\");\n };\n\nvar create = function create() {\n return util.Buffer\n ? function create_buffer_setup(buffer) {\n return (Reader.create = function create_buffer(buffer) {\n return util.Buffer.isBuffer(buffer)\n ? new BufferReader(buffer)\n /* istanbul ignore next */\n : create_array(buffer);\n })(buffer);\n }\n /* istanbul ignore next */\n : create_array;\n};\n\n/**\n * Creates a new reader using the specified buffer.\n * @function\n * @param {Uint8Array|Buffer} buffer Buffer to read from\n * @returns {Reader|BufferReader} A {@link BufferReader} if `buffer` is a Buffer, otherwise a {@link Reader}\n * @throws {Error} If `buffer` is not a valid buffer\n */\nReader.create = create();\n\nReader.prototype._slice = util.Array.prototype.subarray || /* istanbul ignore next */ util.Array.prototype.slice;\n\n/**\n * Reads a varint as an unsigned 32 bit value.\n * @function\n * @returns {number} Value read\n */\nReader.prototype.uint32 = (function read_uint32_setup() {\n var value = 4294967295; // optimizer type-hint, tends to deopt otherwise (?!)\n return function read_uint32() {\n value = ( this.buf[this.pos] & 127 ) >>> 0; if (this.buf[this.pos++] < 128) return value;\n value = (value | (this.buf[this.pos] & 127) << 7) >>> 0; if (this.buf[this.pos++] < 128) return value;\n value = (value | (this.buf[this.pos] & 127) << 14) >>> 0; if (this.buf[this.pos++] < 128) return value;\n value = (value | (this.buf[this.pos] & 127) << 21) >>> 0; if (this.buf[this.pos++] < 128) return value;\n value = (value | (this.buf[this.pos] & 15) << 28) >>> 0; if (this.buf[this.pos++] < 128) return value;\n\n /* istanbul ignore if */\n if ((this.pos += 5) > this.len) {\n this.pos = this.len;\n throw indexOutOfRange(this, 10);\n }\n return value;\n };\n})();\n\n/**\n * Reads a varint as a signed 32 bit value.\n * @returns {number} Value read\n */\nReader.prototype.int32 = function read_int32() {\n return this.uint32() | 0;\n};\n\n/**\n * Reads a zig-zag encoded varint as a signed 32 bit value.\n * @returns {number} Value read\n */\nReader.prototype.sint32 = function read_sint32() {\n var value = this.uint32();\n return value >>> 1 ^ -(value & 1) | 0;\n};\n\n/* eslint-disable no-invalid-this */\n\nfunction readLongVarint() {\n // tends to deopt with local vars for octet etc.\n var bits = new LongBits(0, 0);\n var i = 0;\n if (this.len - this.pos > 4) { // fast route (lo)\n for (; i < 4; ++i) {\n // 1st..4th\n bits.lo = (bits.lo | (this.buf[this.pos] & 127) << i * 7) >>> 0;\n if (this.buf[this.pos++] < 128)\n return bits;\n }\n // 5th\n bits.lo = (bits.lo | (this.buf[this.pos] & 127) << 28) >>> 0;\n bits.hi = (bits.hi | (this.buf[this.pos] & 127) >> 4) >>> 0;\n if (this.buf[this.pos++] < 128)\n return bits;\n i = 0;\n } else {\n for (; i < 3; ++i) {\n /* istanbul ignore if */\n if (this.pos >= this.len)\n throw indexOutOfRange(this);\n // 1st..3th\n bits.lo = (bits.lo | (this.buf[this.pos] & 127) << i * 7) >>> 0;\n if (this.buf[this.pos++] < 128)\n return bits;\n }\n // 4th\n bits.lo = (bits.lo | (this.buf[this.pos++] & 127) << i * 7) >>> 0;\n return bits;\n }\n if (this.len - this.pos > 4) { // fast route (hi)\n for (; i < 5; ++i) {\n // 6th..10th\n bits.hi = (bits.hi | (this.buf[this.pos] & 127) << i * 7 + 3) >>> 0;\n if (this.buf[this.pos++] < 128)\n return bits;\n }\n } else {\n for (; i < 5; ++i) {\n /* istanbul ignore if */\n if (this.pos >= this.len)\n throw indexOutOfRange(this);\n // 6th..10th\n bits.hi = (bits.hi | (this.buf[this.pos] & 127) << i * 7 + 3) >>> 0;\n if (this.buf[this.pos++] < 128)\n return bits;\n }\n }\n /* istanbul ignore next */\n throw Error(\"invalid varint encoding\");\n}\n\n/* eslint-enable no-invalid-this */\n\n/**\n * Reads a varint as a signed 64 bit value.\n * @name Reader#int64\n * @function\n * @returns {Long} Value read\n */\n\n/**\n * Reads a varint as an unsigned 64 bit value.\n * @name Reader#uint64\n * @function\n * @returns {Long} Value read\n */\n\n/**\n * Reads a zig-zag encoded varint as a signed 64 bit value.\n * @name Reader#sint64\n * @function\n * @returns {Long} Value read\n */\n\n/**\n * Reads a varint as a boolean.\n * @returns {boolean} Value read\n */\nReader.prototype.bool = function read_bool() {\n return this.uint32() !== 0;\n};\n\nfunction readFixed32_end(buf, end) { // note that this uses `end`, not `pos`\n return (buf[end - 4]\n | buf[end - 3] << 8\n | buf[end - 2] << 16\n | buf[end - 1] << 24) >>> 0;\n}\n\n/**\n * Reads fixed 32 bits as an unsigned 32 bit integer.\n * @returns {number} Value read\n */\nReader.prototype.fixed32 = function read_fixed32() {\n\n /* istanbul ignore if */\n if (this.pos + 4 > this.len)\n throw indexOutOfRange(this, 4);\n\n return readFixed32_end(this.buf, this.pos += 4);\n};\n\n/**\n * Reads fixed 32 bits as a signed 32 bit integer.\n * @returns {number} Value read\n */\nReader.prototype.sfixed32 = function read_sfixed32() {\n\n /* istanbul ignore if */\n if (this.pos + 4 > this.len)\n throw indexOutOfRange(this, 4);\n\n return readFixed32_end(this.buf, this.pos += 4) | 0;\n};\n\n/* eslint-disable no-invalid-this */\n\nfunction readFixed64(/* this: Reader */) {\n\n /* istanbul ignore if */\n if (this.pos + 8 > this.len)\n throw indexOutOfRange(this, 8);\n\n return new LongBits(readFixed32_end(this.buf, this.pos += 4), readFixed32_end(this.buf, this.pos += 4));\n}\n\n/* eslint-enable no-invalid-this */\n\n/**\n * Reads fixed 64 bits.\n * @name Reader#fixed64\n * @function\n * @returns {Long} Value read\n */\n\n/**\n * Reads zig-zag encoded fixed 64 bits.\n * @name Reader#sfixed64\n * @function\n * @returns {Long} Value read\n */\n\n/**\n * Reads a float (32 bit) as a number.\n * @function\n * @returns {number} Value read\n */\nReader.prototype.float = function read_float() {\n\n /* istanbul ignore if */\n if (this.pos + 4 > this.len)\n throw indexOutOfRange(this, 4);\n\n var value = util.float.readFloatLE(this.buf, this.pos);\n this.pos += 4;\n return value;\n};\n\n/**\n * Reads a double (64 bit float) as a number.\n * @function\n * @returns {number} Value read\n */\nReader.prototype.double = function read_double() {\n\n /* istanbul ignore if */\n if (this.pos + 8 > this.len)\n throw indexOutOfRange(this, 4);\n\n var value = util.float.readDoubleLE(this.buf, this.pos);\n this.pos += 8;\n return value;\n};\n\n/**\n * Reads a sequence of bytes preceeded by its length as a varint.\n * @returns {Uint8Array} Value read\n */\nReader.prototype.bytes = function read_bytes() {\n var length = this.uint32(),\n start = this.pos,\n end = this.pos + length;\n\n /* istanbul ignore if */\n if (end > this.len)\n throw indexOutOfRange(this, length);\n\n this.pos += length;\n if (Array.isArray(this.buf)) // plain array\n return this.buf.slice(start, end);\n\n if (start === end) { // fix for IE 10/Win8 and others' subarray returning array of size 1\n var nativeBuffer = util.Buffer;\n return nativeBuffer\n ? nativeBuffer.alloc(0)\n : new this.buf.constructor(0);\n }\n return this._slice.call(this.buf, start, end);\n};\n\n/**\n * Reads a string preceeded by its byte length as a varint.\n * @returns {string} Value read\n */\nReader.prototype.string = function read_string() {\n var bytes = this.bytes();\n return utf8.read(bytes, 0, bytes.length);\n};\n\n/**\n * Skips the specified number of bytes if specified, otherwise skips a varint.\n * @param {number} [length] Length if known, otherwise a varint is assumed\n * @returns {Reader} `this`\n */\nReader.prototype.skip = function skip(length) {\n if (typeof length === \"number\") {\n /* istanbul ignore if */\n if (this.pos + length > this.len)\n throw indexOutOfRange(this, length);\n this.pos += length;\n } else {\n do {\n /* istanbul ignore if */\n if (this.pos >= this.len)\n throw indexOutOfRange(this);\n } while (this.buf[this.pos++] & 128);\n }\n return this;\n};\n\n/**\n * Skips the next element of the specified wire type.\n * @param {number} wireType Wire type received\n * @returns {Reader} `this`\n */\nReader.prototype.skipType = function(wireType) {\n switch (wireType) {\n case 0:\n this.skip();\n break;\n case 1:\n this.skip(8);\n break;\n case 2:\n this.skip(this.uint32());\n break;\n case 3:\n while ((wireType = this.uint32() & 7) !== 4) {\n this.skipType(wireType);\n }\n break;\n case 5:\n this.skip(4);\n break;\n\n /* istanbul ignore next */\n default:\n throw Error(\"invalid wire type \" + wireType + \" at offset \" + this.pos);\n }\n return this;\n};\n\nReader._configure = function(BufferReader_) {\n BufferReader = BufferReader_;\n Reader.create = create();\n BufferReader._configure();\n\n var fn = util.Long ? \"toLong\" : /* istanbul ignore next */ \"toNumber\";\n util.merge(Reader.prototype, {\n\n int64: function read_int64() {\n return readLongVarint.call(this)[fn](false);\n },\n\n uint64: function read_uint64() {\n return readLongVarint.call(this)[fn](true);\n },\n\n sint64: function read_sint64() {\n return readLongVarint.call(this).zzDecode()[fn](false);\n },\n\n fixed64: function read_fixed64() {\n return readFixed64.call(this)[fn](true);\n },\n\n sfixed64: function read_sfixed64() {\n return readFixed64.call(this)[fn](false);\n }\n\n });\n};\n","\"use strict\";\nmodule.exports = BufferReader;\n\n// extends Reader\nvar Reader = require(\"./reader\");\n(BufferReader.prototype = Object.create(Reader.prototype)).constructor = BufferReader;\n\nvar util = require(\"./util/minimal\");\n\n/**\n * Constructs a new buffer reader instance.\n * @classdesc Wire format reader using node buffers.\n * @extends Reader\n * @constructor\n * @param {Buffer} buffer Buffer to read from\n */\nfunction BufferReader(buffer) {\n Reader.call(this, buffer);\n\n /**\n * Read buffer.\n * @name BufferReader#buf\n * @type {Buffer}\n */\n}\n\nBufferReader._configure = function () {\n /* istanbul ignore else */\n if (util.Buffer)\n BufferReader.prototype._slice = util.Buffer.prototype.slice;\n};\n\n\n/**\n * @override\n */\nBufferReader.prototype.string = function read_string_buffer() {\n var len = this.uint32(); // modifies pos\n return this.buf.utf8Slice\n ? this.buf.utf8Slice(this.pos, this.pos = Math.min(this.pos + len, this.len))\n : this.buf.toString(\"utf-8\", this.pos, this.pos = Math.min(this.pos + len, this.len));\n};\n\n/**\n * Reads a sequence of bytes preceeded by its length as a varint.\n * @name BufferReader#bytes\n * @function\n * @returns {Buffer} Value read\n */\n\nBufferReader._configure();\n","\"use strict\";\nmodule.exports = {};\n\n/**\n * Named roots.\n * This is where pbjs stores generated structures (the option `-r, --root` specifies a name).\n * Can also be used manually to make roots available across modules.\n * @name roots\n * @type {Object.}\n * @example\n * // pbjs -r myroot -o compiled.js ...\n *\n * // in another module:\n * require(\"./compiled.js\");\n *\n * // in any subsequent module:\n * var root = protobuf.roots[\"myroot\"];\n */\n","\"use strict\";\n\n/**\n * Streaming RPC helpers.\n * @namespace\n */\nvar rpc = exports;\n\n/**\n * RPC implementation passed to {@link Service#create} performing a service request on network level, i.e. by utilizing http requests or websockets.\n * @typedef RPCImpl\n * @type {function}\n * @param {Method|rpc.ServiceMethod,Message<{}>>} method Reflected or static method being called\n * @param {Uint8Array} requestData Request data\n * @param {RPCImplCallback} callback Callback function\n * @returns {undefined}\n * @example\n * function rpcImpl(method, requestData, callback) {\n * if (protobuf.util.lcFirst(method.name) !== \"myMethod\") // compatible with static code\n * throw Error(\"no such method\");\n * asynchronouslyObtainAResponse(requestData, function(err, responseData) {\n * callback(err, responseData);\n * });\n * }\n */\n\n/**\n * Node-style callback as used by {@link RPCImpl}.\n * @typedef RPCImplCallback\n * @type {function}\n * @param {Error|null} error Error, if any, otherwise `null`\n * @param {Uint8Array|null} [response] Response data or `null` to signal end of stream, if there hasn't been an error\n * @returns {undefined}\n */\n\nrpc.Service = require(\"./rpc/service\");\n","\"use strict\";\nmodule.exports = Service;\n\nvar util = require(\"../util/minimal\");\n\n// Extends EventEmitter\n(Service.prototype = Object.create(util.EventEmitter.prototype)).constructor = Service;\n\n/**\n * A service method callback as used by {@link rpc.ServiceMethod|ServiceMethod}.\n *\n * Differs from {@link RPCImplCallback} in that it is an actual callback of a service method which may not return `response = null`.\n * @typedef rpc.ServiceMethodCallback\n * @template TRes extends Message\n * @type {function}\n * @param {Error|null} error Error, if any\n * @param {TRes} [response] Response message\n * @returns {undefined}\n */\n\n/**\n * A service method part of a {@link rpc.Service} as created by {@link Service.create}.\n * @typedef rpc.ServiceMethod\n * @template TReq extends Message\n * @template TRes extends Message\n * @type {function}\n * @param {TReq|Properties} request Request message or plain object\n * @param {rpc.ServiceMethodCallback} [callback] Node-style callback called with the error, if any, and the response message\n * @returns {Promise>} Promise if `callback` has been omitted, otherwise `undefined`\n */\n\n/**\n * Constructs a new RPC service instance.\n * @classdesc An RPC service as returned by {@link Service#create}.\n * @exports rpc.Service\n * @extends util.EventEmitter\n * @constructor\n * @param {RPCImpl} rpcImpl RPC implementation\n * @param {boolean} [requestDelimited=false] Whether requests are length-delimited\n * @param {boolean} [responseDelimited=false] Whether responses are length-delimited\n */\nfunction Service(rpcImpl, requestDelimited, responseDelimited) {\n\n if (typeof rpcImpl !== \"function\")\n throw TypeError(\"rpcImpl must be a function\");\n\n util.EventEmitter.call(this);\n\n /**\n * RPC implementation. Becomes `null` once the service is ended.\n * @type {RPCImpl|null}\n */\n this.rpcImpl = rpcImpl;\n\n /**\n * Whether requests are length-delimited.\n * @type {boolean}\n */\n this.requestDelimited = Boolean(requestDelimited);\n\n /**\n * Whether responses are length-delimited.\n * @type {boolean}\n */\n this.responseDelimited = Boolean(responseDelimited);\n}\n\n/**\n * Calls a service method through {@link rpc.Service#rpcImpl|rpcImpl}.\n * @param {Method|rpc.ServiceMethod} method Reflected or static method\n * @param {Constructor} requestCtor Request constructor\n * @param {Constructor} responseCtor Response constructor\n * @param {TReq|Properties} request Request message or plain object\n * @param {rpc.ServiceMethodCallback} callback Service callback\n * @returns {undefined}\n * @template TReq extends Message\n * @template TRes extends Message\n */\nService.prototype.rpcCall = function rpcCall(method, requestCtor, responseCtor, request, callback) {\n\n if (!request)\n throw TypeError(\"request must be specified\");\n\n var self = this;\n if (!callback)\n return util.asPromise(rpcCall, self, method, requestCtor, responseCtor, request);\n\n if (!self.rpcImpl) {\n setTimeout(function() { callback(Error(\"already ended\")); }, 0);\n return undefined;\n }\n\n try {\n return self.rpcImpl(\n method,\n requestCtor[self.requestDelimited ? \"encodeDelimited\" : \"encode\"](request).finish(),\n function rpcCallback(err, response) {\n\n if (err) {\n self.emit(\"error\", err, method);\n return callback(err);\n }\n\n if (response === null) {\n self.end(/* endedByRPC */ true);\n return undefined;\n }\n\n if (!(response instanceof responseCtor)) {\n try {\n response = responseCtor[self.responseDelimited ? \"decodeDelimited\" : \"decode\"](response);\n } catch (err) {\n self.emit(\"error\", err, method);\n return callback(err);\n }\n }\n\n self.emit(\"data\", response, method);\n return callback(null, response);\n }\n );\n } catch (err) {\n self.emit(\"error\", err, method);\n setTimeout(function() { callback(err); }, 0);\n return undefined;\n }\n};\n\n/**\n * Ends this service and emits the `end` event.\n * @param {boolean} [endedByRPC=false] Whether the service has been ended by the RPC implementation.\n * @returns {rpc.Service} `this`\n */\nService.prototype.end = function end(endedByRPC) {\n if (this.rpcImpl) {\n if (!endedByRPC) // signal end to rpcImpl\n this.rpcImpl(null, null, null);\n this.rpcImpl = null;\n this.emit(\"end\").off();\n }\n return this;\n};\n","\"use strict\";\nmodule.exports = LongBits;\n\nvar util = require(\"../util/minimal\");\n\n/**\n * Constructs new long bits.\n * @classdesc Helper class for working with the low and high bits of a 64 bit value.\n * @memberof util\n * @constructor\n * @param {number} lo Low 32 bits, unsigned\n * @param {number} hi High 32 bits, unsigned\n */\nfunction LongBits(lo, hi) {\n\n // note that the casts below are theoretically unnecessary as of today, but older statically\n // generated converter code might still call the ctor with signed 32bits. kept for compat.\n\n /**\n * Low bits.\n * @type {number}\n */\n this.lo = lo >>> 0;\n\n /**\n * High bits.\n * @type {number}\n */\n this.hi = hi >>> 0;\n}\n\n/**\n * Zero bits.\n * @memberof util.LongBits\n * @type {util.LongBits}\n */\nvar zero = LongBits.zero = new LongBits(0, 0);\n\nzero.toNumber = function() { return 0; };\nzero.zzEncode = zero.zzDecode = function() { return this; };\nzero.length = function() { return 1; };\n\n/**\n * Zero hash.\n * @memberof util.LongBits\n * @type {string}\n */\nvar zeroHash = LongBits.zeroHash = \"\\0\\0\\0\\0\\0\\0\\0\\0\";\n\n/**\n * Constructs new long bits from the specified number.\n * @param {number} value Value\n * @returns {util.LongBits} Instance\n */\nLongBits.fromNumber = function fromNumber(value) {\n if (value === 0)\n return zero;\n var sign = value < 0;\n if (sign)\n value = -value;\n var lo = value >>> 0,\n hi = (value - lo) / 4294967296 >>> 0;\n if (sign) {\n hi = ~hi >>> 0;\n lo = ~lo >>> 0;\n if (++lo > 4294967295) {\n lo = 0;\n if (++hi > 4294967295)\n hi = 0;\n }\n }\n return new LongBits(lo, hi);\n};\n\n/**\n * Constructs new long bits from a number, long or string.\n * @param {Long|number|string} value Value\n * @returns {util.LongBits} Instance\n */\nLongBits.from = function from(value) {\n if (typeof value === \"number\")\n return LongBits.fromNumber(value);\n if (util.isString(value)) {\n /* istanbul ignore else */\n if (util.Long)\n value = util.Long.fromString(value);\n else\n return LongBits.fromNumber(parseInt(value, 10));\n }\n return value.low || value.high ? new LongBits(value.low >>> 0, value.high >>> 0) : zero;\n};\n\n/**\n * Converts this long bits to a possibly unsafe JavaScript number.\n * @param {boolean} [unsigned=false] Whether unsigned or not\n * @returns {number} Possibly unsafe number\n */\nLongBits.prototype.toNumber = function toNumber(unsigned) {\n if (!unsigned && this.hi >>> 31) {\n var lo = ~this.lo + 1 >>> 0,\n hi = ~this.hi >>> 0;\n if (!lo)\n hi = hi + 1 >>> 0;\n return -(lo + hi * 4294967296);\n }\n return this.lo + this.hi * 4294967296;\n};\n\n/**\n * Converts this long bits to a long.\n * @param {boolean} [unsigned=false] Whether unsigned or not\n * @returns {Long} Long\n */\nLongBits.prototype.toLong = function toLong(unsigned) {\n return util.Long\n ? new util.Long(this.lo | 0, this.hi | 0, Boolean(unsigned))\n /* istanbul ignore next */\n : { low: this.lo | 0, high: this.hi | 0, unsigned: Boolean(unsigned) };\n};\n\nvar charCodeAt = String.prototype.charCodeAt;\n\n/**\n * Constructs new long bits from the specified 8 characters long hash.\n * @param {string} hash Hash\n * @returns {util.LongBits} Bits\n */\nLongBits.fromHash = function fromHash(hash) {\n if (hash === zeroHash)\n return zero;\n return new LongBits(\n ( charCodeAt.call(hash, 0)\n | charCodeAt.call(hash, 1) << 8\n | charCodeAt.call(hash, 2) << 16\n | charCodeAt.call(hash, 3) << 24) >>> 0\n ,\n ( charCodeAt.call(hash, 4)\n | charCodeAt.call(hash, 5) << 8\n | charCodeAt.call(hash, 6) << 16\n | charCodeAt.call(hash, 7) << 24) >>> 0\n );\n};\n\n/**\n * Converts this long bits to a 8 characters long hash.\n * @returns {string} Hash\n */\nLongBits.prototype.toHash = function toHash() {\n return String.fromCharCode(\n this.lo & 255,\n this.lo >>> 8 & 255,\n this.lo >>> 16 & 255,\n this.lo >>> 24 ,\n this.hi & 255,\n this.hi >>> 8 & 255,\n this.hi >>> 16 & 255,\n this.hi >>> 24\n );\n};\n\n/**\n * Zig-zag encodes this long bits.\n * @returns {util.LongBits} `this`\n */\nLongBits.prototype.zzEncode = function zzEncode() {\n var mask = this.hi >> 31;\n this.hi = ((this.hi << 1 | this.lo >>> 31) ^ mask) >>> 0;\n this.lo = ( this.lo << 1 ^ mask) >>> 0;\n return this;\n};\n\n/**\n * Zig-zag decodes this long bits.\n * @returns {util.LongBits} `this`\n */\nLongBits.prototype.zzDecode = function zzDecode() {\n var mask = -(this.lo & 1);\n this.lo = ((this.lo >>> 1 | this.hi << 31) ^ mask) >>> 0;\n this.hi = ( this.hi >>> 1 ^ mask) >>> 0;\n return this;\n};\n\n/**\n * Calculates the length of this longbits when encoded as a varint.\n * @returns {number} Length\n */\nLongBits.prototype.length = function length() {\n var part0 = this.lo,\n part1 = (this.lo >>> 28 | this.hi << 4) >>> 0,\n part2 = this.hi >>> 24;\n return part2 === 0\n ? part1 === 0\n ? part0 < 16384\n ? part0 < 128 ? 1 : 2\n : part0 < 2097152 ? 3 : 4\n : part1 < 16384\n ? part1 < 128 ? 5 : 6\n : part1 < 2097152 ? 7 : 8\n : part2 < 128 ? 9 : 10;\n};\n","\"use strict\";\nvar util = exports;\n\n// used to return a Promise where callback is omitted\nutil.asPromise = require(\"@protobufjs/aspromise\");\n\n// converts to / from base64 encoded strings\nutil.base64 = require(\"@protobufjs/base64\");\n\n// base class of rpc.Service\nutil.EventEmitter = require(\"@protobufjs/eventemitter\");\n\n// float handling accross browsers\nutil.float = require(\"@protobufjs/float\");\n\n// requires modules optionally and hides the call from bundlers\nutil.inquire = require(\"@protobufjs/inquire\");\n\n// converts to / from utf8 encoded strings\nutil.utf8 = require(\"@protobufjs/utf8\");\n\n// provides a node-like buffer pool in the browser\nutil.pool = require(\"@protobufjs/pool\");\n\n// utility to work with the low and high bits of a 64 bit value\nutil.LongBits = require(\"./longbits\");\n\n/**\n * Whether running within node or not.\n * @memberof util\n * @type {boolean}\n */\nutil.isNode = Boolean(typeof global !== \"undefined\"\n && global\n && global.process\n && global.process.versions\n && global.process.versions.node);\n\n/**\n * Global object reference.\n * @memberof util\n * @type {Object}\n */\nutil.global = util.isNode && global\n || typeof window !== \"undefined\" && window\n || typeof self !== \"undefined\" && self\n || this; // eslint-disable-line no-invalid-this\n\n/**\n * An immuable empty array.\n * @memberof util\n * @type {Array.<*>}\n * @const\n */\nutil.emptyArray = Object.freeze ? Object.freeze([]) : /* istanbul ignore next */ []; // used on prototypes\n\n/**\n * An immutable empty object.\n * @type {Object}\n * @const\n */\nutil.emptyObject = Object.freeze ? Object.freeze({}) : /* istanbul ignore next */ {}; // used on prototypes\n\n/**\n * Tests if the specified value is an integer.\n * @function\n * @param {*} value Value to test\n * @returns {boolean} `true` if the value is an integer\n */\nutil.isInteger = Number.isInteger || /* istanbul ignore next */ function isInteger(value) {\n return typeof value === \"number\" && isFinite(value) && Math.floor(value) === value;\n};\n\n/**\n * Tests if the specified value is a string.\n * @param {*} value Value to test\n * @returns {boolean} `true` if the value is a string\n */\nutil.isString = function isString(value) {\n return typeof value === \"string\" || value instanceof String;\n};\n\n/**\n * Tests if the specified value is a non-null object.\n * @param {*} value Value to test\n * @returns {boolean} `true` if the value is a non-null object\n */\nutil.isObject = function isObject(value) {\n return value && typeof value === \"object\";\n};\n\n/**\n * Checks if a property on a message is considered to be present.\n * This is an alias of {@link util.isSet}.\n * @function\n * @param {Object} obj Plain object or message instance\n * @param {string} prop Property name\n * @returns {boolean} `true` if considered to be present, otherwise `false`\n */\nutil.isset =\n\n/**\n * Checks if a property on a message is considered to be present.\n * @param {Object} obj Plain object or message instance\n * @param {string} prop Property name\n * @returns {boolean} `true` if considered to be present, otherwise `false`\n */\nutil.isSet = function isSet(obj, prop) {\n var value = obj[prop];\n if (value != null && obj.hasOwnProperty(prop)) // eslint-disable-line eqeqeq, no-prototype-builtins\n return typeof value !== \"object\" || (Array.isArray(value) ? value.length : Object.keys(value).length) > 0;\n return false;\n};\n\n/**\n * Any compatible Buffer instance.\n * This is a minimal stand-alone definition of a Buffer instance. The actual type is that exported by node's typings.\n * @interface Buffer\n * @extends Uint8Array\n */\n\n/**\n * Node's Buffer class if available.\n * @type {Constructor}\n */\nutil.Buffer = (function() {\n try {\n var Buffer = util.inquire(\"buffer\").Buffer;\n // refuse to use non-node buffers if not explicitly assigned (perf reasons):\n return Buffer.prototype.utf8Write ? Buffer : /* istanbul ignore next */ null;\n } catch (e) {\n /* istanbul ignore next */\n return null;\n }\n})();\n\n// Internal alias of or polyfull for Buffer.from.\nutil._Buffer_from = null;\n\n// Internal alias of or polyfill for Buffer.allocUnsafe.\nutil._Buffer_allocUnsafe = null;\n\n/**\n * Creates a new buffer of whatever type supported by the environment.\n * @param {number|number[]} [sizeOrArray=0] Buffer size or number array\n * @returns {Uint8Array|Buffer} Buffer\n */\nutil.newBuffer = function newBuffer(sizeOrArray) {\n /* istanbul ignore next */\n return typeof sizeOrArray === \"number\"\n ? util.Buffer\n ? util._Buffer_allocUnsafe(sizeOrArray)\n : new util.Array(sizeOrArray)\n : util.Buffer\n ? util._Buffer_from(sizeOrArray)\n : typeof Uint8Array === \"undefined\"\n ? sizeOrArray\n : new Uint8Array(sizeOrArray);\n};\n\n/**\n * Array implementation used in the browser. `Uint8Array` if supported, otherwise `Array`.\n * @type {Constructor}\n */\nutil.Array = typeof Uint8Array !== \"undefined\" ? Uint8Array /* istanbul ignore next */ : Array;\n\n/**\n * Any compatible Long instance.\n * This is a minimal stand-alone definition of a Long instance. The actual type is that exported by long.js.\n * @interface Long\n * @property {number} low Low bits\n * @property {number} high High bits\n * @property {boolean} unsigned Whether unsigned or not\n */\n\n/**\n * Long.js's Long class if available.\n * @type {Constructor}\n */\nutil.Long = /* istanbul ignore next */ util.global.dcodeIO && /* istanbul ignore next */ util.global.dcodeIO.Long\n || /* istanbul ignore next */ util.global.Long\n || util.inquire(\"long\");\n\n/**\n * Regular expression used to verify 2 bit (`bool`) map keys.\n * @type {RegExp}\n * @const\n */\nutil.key2Re = /^true|false|0|1$/;\n\n/**\n * Regular expression used to verify 32 bit (`int32` etc.) map keys.\n * @type {RegExp}\n * @const\n */\nutil.key32Re = /^-?(?:0|[1-9][0-9]*)$/;\n\n/**\n * Regular expression used to verify 64 bit (`int64` etc.) map keys.\n * @type {RegExp}\n * @const\n */\nutil.key64Re = /^(?:[\\\\x00-\\\\xff]{8}|-?(?:0|[1-9][0-9]*))$/;\n\n/**\n * Converts a number or long to an 8 characters long hash string.\n * @param {Long|number} value Value to convert\n * @returns {string} Hash\n */\nutil.longToHash = function longToHash(value) {\n return value\n ? util.LongBits.from(value).toHash()\n : util.LongBits.zeroHash;\n};\n\n/**\n * Converts an 8 characters long hash string to a long or number.\n * @param {string} hash Hash\n * @param {boolean} [unsigned=false] Whether unsigned or not\n * @returns {Long|number} Original value\n */\nutil.longFromHash = function longFromHash(hash, unsigned) {\n var bits = util.LongBits.fromHash(hash);\n if (util.Long)\n return util.Long.fromBits(bits.lo, bits.hi, unsigned);\n return bits.toNumber(Boolean(unsigned));\n};\n\n/**\n * Merges the properties of the source object into the destination object.\n * @memberof util\n * @param {Object.} dst Destination object\n * @param {Object.} src Source object\n * @param {boolean} [ifNotSet=false] Merges only if the key is not already set\n * @returns {Object.} Destination object\n */\nfunction merge(dst, src, ifNotSet) { // used by converters\n for (var keys = Object.keys(src), i = 0; i < keys.length; ++i)\n if (dst[keys[i]] === undefined || !ifNotSet)\n dst[keys[i]] = src[keys[i]];\n return dst;\n}\n\nutil.merge = merge;\n\n/**\n * Converts the first character of a string to lower case.\n * @param {string} str String to convert\n * @returns {string} Converted string\n */\nutil.lcFirst = function lcFirst(str) {\n return str.charAt(0).toLowerCase() + str.substring(1);\n};\n\n/**\n * Creates a custom error constructor.\n * @memberof util\n * @param {string} name Error name\n * @returns {Constructor} Custom error constructor\n */\nfunction newError(name) {\n\n function CustomError(message, properties) {\n\n if (!(this instanceof CustomError))\n return new CustomError(message, properties);\n\n // Error.call(this, message);\n // ^ just returns a new error instance because the ctor can be called as a function\n\n Object.defineProperty(this, \"message\", { get: function() { return message; } });\n\n /* istanbul ignore next */\n if (Error.captureStackTrace) // node\n Error.captureStackTrace(this, CustomError);\n else\n Object.defineProperty(this, \"stack\", { value: new Error().stack || \"\" });\n\n if (properties)\n merge(this, properties);\n }\n\n CustomError.prototype = Object.create(Error.prototype, {\n constructor: {\n value: CustomError,\n writable: true,\n enumerable: false,\n configurable: true,\n },\n name: {\n get: function get() { return name; },\n set: undefined,\n enumerable: false,\n // configurable: false would accurately preserve the behavior of\n // the original, but I'm guessing that was not intentional.\n // For an actual error subclass, this property would\n // be configurable.\n configurable: true,\n },\n toString: {\n value: function value() { return this.name + \": \" + this.message; },\n writable: true,\n enumerable: false,\n configurable: true,\n },\n });\n\n return CustomError;\n}\n\nutil.newError = newError;\n\n/**\n * Constructs a new protocol error.\n * @classdesc Error subclass indicating a protocol specifc error.\n * @memberof util\n * @extends Error\n * @template T extends Message\n * @constructor\n * @param {string} message Error message\n * @param {Object.} [properties] Additional properties\n * @example\n * try {\n * MyMessage.decode(someBuffer); // throws if required fields are missing\n * } catch (e) {\n * if (e instanceof ProtocolError && e.instance)\n * console.log(\"decoded so far: \" + JSON.stringify(e.instance));\n * }\n */\nutil.ProtocolError = newError(\"ProtocolError\");\n\n/**\n * So far decoded message instance.\n * @name util.ProtocolError#instance\n * @type {Message}\n */\n\n/**\n * A OneOf getter as returned by {@link util.oneOfGetter}.\n * @typedef OneOfGetter\n * @type {function}\n * @returns {string|undefined} Set field name, if any\n */\n\n/**\n * Builds a getter for a oneof's present field name.\n * @param {string[]} fieldNames Field names\n * @returns {OneOfGetter} Unbound getter\n */\nutil.oneOfGetter = function getOneOf(fieldNames) {\n var fieldMap = {};\n for (var i = 0; i < fieldNames.length; ++i)\n fieldMap[fieldNames[i]] = 1;\n\n /**\n * @returns {string|undefined} Set field name, if any\n * @this Object\n * @ignore\n */\n return function() { // eslint-disable-line consistent-return\n for (var keys = Object.keys(this), i = keys.length - 1; i > -1; --i)\n if (fieldMap[keys[i]] === 1 && this[keys[i]] !== undefined && this[keys[i]] !== null)\n return keys[i];\n };\n};\n\n/**\n * A OneOf setter as returned by {@link util.oneOfSetter}.\n * @typedef OneOfSetter\n * @type {function}\n * @param {string|undefined} value Field name\n * @returns {undefined}\n */\n\n/**\n * Builds a setter for a oneof's present field name.\n * @param {string[]} fieldNames Field names\n * @returns {OneOfSetter} Unbound setter\n */\nutil.oneOfSetter = function setOneOf(fieldNames) {\n\n /**\n * @param {string} name Field name\n * @returns {undefined}\n * @this Object\n * @ignore\n */\n return function(name) {\n for (var i = 0; i < fieldNames.length; ++i)\n if (fieldNames[i] !== name)\n delete this[fieldNames[i]];\n };\n};\n\n/**\n * Default conversion options used for {@link Message#toJSON} implementations.\n *\n * These options are close to proto3's JSON mapping with the exception that internal types like Any are handled just like messages. More precisely:\n *\n * - Longs become strings\n * - Enums become string keys\n * - Bytes become base64 encoded strings\n * - (Sub-)Messages become plain objects\n * - Maps become plain objects with all string keys\n * - Repeated fields become arrays\n * - NaN and Infinity for float and double fields become strings\n *\n * @type {IConversionOptions}\n * @see https://developers.google.com/protocol-buffers/docs/proto3?hl=en#json\n */\nutil.toJSONOptions = {\n longs: String,\n enums: String,\n bytes: String,\n json: true\n};\n\n// Sets up buffer utility according to the environment (called in index-minimal)\nutil._configure = function() {\n var Buffer = util.Buffer;\n /* istanbul ignore if */\n if (!Buffer) {\n util._Buffer_from = util._Buffer_allocUnsafe = null;\n return;\n }\n // because node 4.x buffers are incompatible & immutable\n // see: https://github.com/dcodeIO/protobuf.js/pull/665\n util._Buffer_from = Buffer.from !== Uint8Array.from && Buffer.from ||\n /* istanbul ignore next */\n function Buffer_from(value, encoding) {\n return new Buffer(value, encoding);\n };\n util._Buffer_allocUnsafe = Buffer.allocUnsafe ||\n /* istanbul ignore next */\n function Buffer_allocUnsafe(size) {\n return new Buffer(size);\n };\n};\n","\"use strict\";\nmodule.exports = Writer;\n\nvar util = require(\"./util/minimal\");\n\nvar BufferWriter; // cyclic\n\nvar LongBits = util.LongBits,\n base64 = util.base64,\n utf8 = util.utf8;\n\n/**\n * Constructs a new writer operation instance.\n * @classdesc Scheduled writer operation.\n * @constructor\n * @param {function(*, Uint8Array, number)} fn Function to call\n * @param {number} len Value byte length\n * @param {*} val Value to write\n * @ignore\n */\nfunction Op(fn, len, val) {\n\n /**\n * Function to call.\n * @type {function(Uint8Array, number, *)}\n */\n this.fn = fn;\n\n /**\n * Value byte length.\n * @type {number}\n */\n this.len = len;\n\n /**\n * Next operation.\n * @type {Writer.Op|undefined}\n */\n this.next = undefined;\n\n /**\n * Value to write.\n * @type {*}\n */\n this.val = val; // type varies\n}\n\n/* istanbul ignore next */\nfunction noop() {} // eslint-disable-line no-empty-function\n\n/**\n * Constructs a new writer state instance.\n * @classdesc Copied writer state.\n * @memberof Writer\n * @constructor\n * @param {Writer} writer Writer to copy state from\n * @ignore\n */\nfunction State(writer) {\n\n /**\n * Current head.\n * @type {Writer.Op}\n */\n this.head = writer.head;\n\n /**\n * Current tail.\n * @type {Writer.Op}\n */\n this.tail = writer.tail;\n\n /**\n * Current buffer length.\n * @type {number}\n */\n this.len = writer.len;\n\n /**\n * Next state.\n * @type {State|null}\n */\n this.next = writer.states;\n}\n\n/**\n * Constructs a new writer instance.\n * @classdesc Wire format writer using `Uint8Array` if available, otherwise `Array`.\n * @constructor\n */\nfunction Writer() {\n\n /**\n * Current length.\n * @type {number}\n */\n this.len = 0;\n\n /**\n * Operations head.\n * @type {Object}\n */\n this.head = new Op(noop, 0, 0);\n\n /**\n * Operations tail\n * @type {Object}\n */\n this.tail = this.head;\n\n /**\n * Linked forked states.\n * @type {Object|null}\n */\n this.states = null;\n\n // When a value is written, the writer calculates its byte length and puts it into a linked\n // list of operations to perform when finish() is called. This both allows us to allocate\n // buffers of the exact required size and reduces the amount of work we have to do compared\n // to first calculating over objects and then encoding over objects. In our case, the encoding\n // part is just a linked list walk calling operations with already prepared values.\n}\n\nvar create = function create() {\n return util.Buffer\n ? function create_buffer_setup() {\n return (Writer.create = function create_buffer() {\n return new BufferWriter();\n })();\n }\n /* istanbul ignore next */\n : function create_array() {\n return new Writer();\n };\n};\n\n/**\n * Creates a new writer.\n * @function\n * @returns {BufferWriter|Writer} A {@link BufferWriter} when Buffers are supported, otherwise a {@link Writer}\n */\nWriter.create = create();\n\n/**\n * Allocates a buffer of the specified size.\n * @param {number} size Buffer size\n * @returns {Uint8Array} Buffer\n */\nWriter.alloc = function alloc(size) {\n return new util.Array(size);\n};\n\n// Use Uint8Array buffer pool in the browser, just like node does with buffers\n/* istanbul ignore else */\nif (util.Array !== Array)\n Writer.alloc = util.pool(Writer.alloc, util.Array.prototype.subarray);\n\n/**\n * Pushes a new operation to the queue.\n * @param {function(Uint8Array, number, *)} fn Function to call\n * @param {number} len Value byte length\n * @param {number} val Value to write\n * @returns {Writer} `this`\n * @private\n */\nWriter.prototype._push = function push(fn, len, val) {\n this.tail = this.tail.next = new Op(fn, len, val);\n this.len += len;\n return this;\n};\n\nfunction writeByte(val, buf, pos) {\n buf[pos] = val & 255;\n}\n\nfunction writeVarint32(val, buf, pos) {\n while (val > 127) {\n buf[pos++] = val & 127 | 128;\n val >>>= 7;\n }\n buf[pos] = val;\n}\n\n/**\n * Constructs a new varint writer operation instance.\n * @classdesc Scheduled varint writer operation.\n * @extends Op\n * @constructor\n * @param {number} len Value byte length\n * @param {number} val Value to write\n * @ignore\n */\nfunction VarintOp(len, val) {\n this.len = len;\n this.next = undefined;\n this.val = val;\n}\n\nVarintOp.prototype = Object.create(Op.prototype);\nVarintOp.prototype.fn = writeVarint32;\n\n/**\n * Writes an unsigned 32 bit value as a varint.\n * @param {number} value Value to write\n * @returns {Writer} `this`\n */\nWriter.prototype.uint32 = function write_uint32(value) {\n // here, the call to this.push has been inlined and a varint specific Op subclass is used.\n // uint32 is by far the most frequently used operation and benefits significantly from this.\n this.len += (this.tail = this.tail.next = new VarintOp(\n (value = value >>> 0)\n < 128 ? 1\n : value < 16384 ? 2\n : value < 2097152 ? 3\n : value < 268435456 ? 4\n : 5,\n value)).len;\n return this;\n};\n\n/**\n * Writes a signed 32 bit value as a varint.\n * @function\n * @param {number} value Value to write\n * @returns {Writer} `this`\n */\nWriter.prototype.int32 = function write_int32(value) {\n return value < 0\n ? this._push(writeVarint64, 10, LongBits.fromNumber(value)) // 10 bytes per spec\n : this.uint32(value);\n};\n\n/**\n * Writes a 32 bit value as a varint, zig-zag encoded.\n * @param {number} value Value to write\n * @returns {Writer} `this`\n */\nWriter.prototype.sint32 = function write_sint32(value) {\n return this.uint32((value << 1 ^ value >> 31) >>> 0);\n};\n\nfunction writeVarint64(val, buf, pos) {\n while (val.hi) {\n buf[pos++] = val.lo & 127 | 128;\n val.lo = (val.lo >>> 7 | val.hi << 25) >>> 0;\n val.hi >>>= 7;\n }\n while (val.lo > 127) {\n buf[pos++] = val.lo & 127 | 128;\n val.lo = val.lo >>> 7;\n }\n buf[pos++] = val.lo;\n}\n\n/**\n * Writes an unsigned 64 bit value as a varint.\n * @param {Long|number|string} value Value to write\n * @returns {Writer} `this`\n * @throws {TypeError} If `value` is a string and no long library is present.\n */\nWriter.prototype.uint64 = function write_uint64(value) {\n var bits = LongBits.from(value);\n return this._push(writeVarint64, bits.length(), bits);\n};\n\n/**\n * Writes a signed 64 bit value as a varint.\n * @function\n * @param {Long|number|string} value Value to write\n * @returns {Writer} `this`\n * @throws {TypeError} If `value` is a string and no long library is present.\n */\nWriter.prototype.int64 = Writer.prototype.uint64;\n\n/**\n * Writes a signed 64 bit value as a varint, zig-zag encoded.\n * @param {Long|number|string} value Value to write\n * @returns {Writer} `this`\n * @throws {TypeError} If `value` is a string and no long library is present.\n */\nWriter.prototype.sint64 = function write_sint64(value) {\n var bits = LongBits.from(value).zzEncode();\n return this._push(writeVarint64, bits.length(), bits);\n};\n\n/**\n * Writes a boolish value as a varint.\n * @param {boolean} value Value to write\n * @returns {Writer} `this`\n */\nWriter.prototype.bool = function write_bool(value) {\n return this._push(writeByte, 1, value ? 1 : 0);\n};\n\nfunction writeFixed32(val, buf, pos) {\n buf[pos ] = val & 255;\n buf[pos + 1] = val >>> 8 & 255;\n buf[pos + 2] = val >>> 16 & 255;\n buf[pos + 3] = val >>> 24;\n}\n\n/**\n * Writes an unsigned 32 bit value as fixed 32 bits.\n * @param {number} value Value to write\n * @returns {Writer} `this`\n */\nWriter.prototype.fixed32 = function write_fixed32(value) {\n return this._push(writeFixed32, 4, value >>> 0);\n};\n\n/**\n * Writes a signed 32 bit value as fixed 32 bits.\n * @function\n * @param {number} value Value to write\n * @returns {Writer} `this`\n */\nWriter.prototype.sfixed32 = Writer.prototype.fixed32;\n\n/**\n * Writes an unsigned 64 bit value as fixed 64 bits.\n * @param {Long|number|string} value Value to write\n * @returns {Writer} `this`\n * @throws {TypeError} If `value` is a string and no long library is present.\n */\nWriter.prototype.fixed64 = function write_fixed64(value) {\n var bits = LongBits.from(value);\n return this._push(writeFixed32, 4, bits.lo)._push(writeFixed32, 4, bits.hi);\n};\n\n/**\n * Writes a signed 64 bit value as fixed 64 bits.\n * @function\n * @param {Long|number|string} value Value to write\n * @returns {Writer} `this`\n * @throws {TypeError} If `value` is a string and no long library is present.\n */\nWriter.prototype.sfixed64 = Writer.prototype.fixed64;\n\n/**\n * Writes a float (32 bit).\n * @function\n * @param {number} value Value to write\n * @returns {Writer} `this`\n */\nWriter.prototype.float = function write_float(value) {\n return this._push(util.float.writeFloatLE, 4, value);\n};\n\n/**\n * Writes a double (64 bit float).\n * @function\n * @param {number} value Value to write\n * @returns {Writer} `this`\n */\nWriter.prototype.double = function write_double(value) {\n return this._push(util.float.writeDoubleLE, 8, value);\n};\n\nvar writeBytes = util.Array.prototype.set\n ? function writeBytes_set(val, buf, pos) {\n buf.set(val, pos); // also works for plain array values\n }\n /* istanbul ignore next */\n : function writeBytes_for(val, buf, pos) {\n for (var i = 0; i < val.length; ++i)\n buf[pos + i] = val[i];\n };\n\n/**\n * Writes a sequence of bytes.\n * @param {Uint8Array|string} value Buffer or base64 encoded string to write\n * @returns {Writer} `this`\n */\nWriter.prototype.bytes = function write_bytes(value) {\n var len = value.length >>> 0;\n if (!len)\n return this._push(writeByte, 1, 0);\n if (util.isString(value)) {\n var buf = Writer.alloc(len = base64.length(value));\n base64.decode(value, buf, 0);\n value = buf;\n }\n return this.uint32(len)._push(writeBytes, len, value);\n};\n\n/**\n * Writes a string.\n * @param {string} value Value to write\n * @returns {Writer} `this`\n */\nWriter.prototype.string = function write_string(value) {\n var len = utf8.length(value);\n return len\n ? this.uint32(len)._push(utf8.write, len, value)\n : this._push(writeByte, 1, 0);\n};\n\n/**\n * Forks this writer's state by pushing it to a stack.\n * Calling {@link Writer#reset|reset} or {@link Writer#ldelim|ldelim} resets the writer to the previous state.\n * @returns {Writer} `this`\n */\nWriter.prototype.fork = function fork() {\n this.states = new State(this);\n this.head = this.tail = new Op(noop, 0, 0);\n this.len = 0;\n return this;\n};\n\n/**\n * Resets this instance to the last state.\n * @returns {Writer} `this`\n */\nWriter.prototype.reset = function reset() {\n if (this.states) {\n this.head = this.states.head;\n this.tail = this.states.tail;\n this.len = this.states.len;\n this.states = this.states.next;\n } else {\n this.head = this.tail = new Op(noop, 0, 0);\n this.len = 0;\n }\n return this;\n};\n\n/**\n * Resets to the last state and appends the fork state's current write length as a varint followed by its operations.\n * @returns {Writer} `this`\n */\nWriter.prototype.ldelim = function ldelim() {\n var head = this.head,\n tail = this.tail,\n len = this.len;\n this.reset().uint32(len);\n if (len) {\n this.tail.next = head.next; // skip noop\n this.tail = tail;\n this.len += len;\n }\n return this;\n};\n\n/**\n * Finishes the write operation.\n * @returns {Uint8Array} Finished buffer\n */\nWriter.prototype.finish = function finish() {\n var head = this.head.next, // skip noop\n buf = this.constructor.alloc(this.len),\n pos = 0;\n while (head) {\n head.fn(head.val, buf, pos);\n pos += head.len;\n head = head.next;\n }\n // this.head = this.tail = null;\n return buf;\n};\n\nWriter._configure = function(BufferWriter_) {\n BufferWriter = BufferWriter_;\n Writer.create = create();\n BufferWriter._configure();\n};\n","\"use strict\";\nmodule.exports = BufferWriter;\n\n// extends Writer\nvar Writer = require(\"./writer\");\n(BufferWriter.prototype = Object.create(Writer.prototype)).constructor = BufferWriter;\n\nvar util = require(\"./util/minimal\");\n\n/**\n * Constructs a new buffer writer instance.\n * @classdesc Wire format writer using node buffers.\n * @extends Writer\n * @constructor\n */\nfunction BufferWriter() {\n Writer.call(this);\n}\n\nBufferWriter._configure = function () {\n /**\n * Allocates a buffer of the specified size.\n * @function\n * @param {number} size Buffer size\n * @returns {Buffer} Buffer\n */\n BufferWriter.alloc = util._Buffer_allocUnsafe;\n\n BufferWriter.writeBytesBuffer = util.Buffer && util.Buffer.prototype instanceof Uint8Array && util.Buffer.prototype.set.name === \"set\"\n ? function writeBytesBuffer_set(val, buf, pos) {\n buf.set(val, pos); // faster than copy (requires node >= 4 where Buffers extend Uint8Array and set is properly inherited)\n // also works for plain array values\n }\n /* istanbul ignore next */\n : function writeBytesBuffer_copy(val, buf, pos) {\n if (val.copy) // Buffer values\n val.copy(buf, pos, 0, val.length);\n else for (var i = 0; i < val.length;) // plain array values\n buf[pos++] = val[i++];\n };\n};\n\n\n/**\n * @override\n */\nBufferWriter.prototype.bytes = function write_bytes_buffer(value) {\n if (util.isString(value))\n value = util._Buffer_from(value, \"base64\");\n var len = value.length >>> 0;\n this.uint32(len);\n if (len)\n this._push(BufferWriter.writeBytesBuffer, len, value);\n return this;\n};\n\nfunction writeStringBuffer(val, buf, pos) {\n if (val.length < 40) // plain js is faster for short strings (probably due to redundant assertions)\n util.utf8.write(val, buf, pos);\n else if (buf.utf8Write)\n buf.utf8Write(val, pos);\n else\n buf.write(val, pos);\n}\n\n/**\n * @override\n */\nBufferWriter.prototype.string = function write_string_buffer(value) {\n var len = util.Buffer.byteLength(value);\n this.uint32(len);\n if (len)\n this._push(writeStringBuffer, len, value);\n return this;\n};\n\n\n/**\n * Finishes the write operation.\n * @name BufferWriter#finish\n * @function\n * @returns {Buffer} Finished buffer\n */\n\nBufferWriter._configure();\n"],"names":["Object","Array","TypeError","String","e","Error","NaN","Math","i","Number","isFinite","t","arguments","Promise","n","Float32Array","Uint8Array","isNaN","r","Float64Array","module","inquire","moduleName","mod","eval","RangeError","c","setTimeout","parseInt","global","window","self","u"],"mappings":"+GAOA,IAAI,EAAY,AAAC,IAAI,EAAI,IAAI,CAAC,SAAS,EAAK,AAAC,WACzC,IAAI,EAAgB,SAAU,CAAC,CAAE,CAAC,EAI9B,MAAO,AAHP,GAAgBA,OAAO,cAAc,EAChC,EAAE,UAAW,EAAE,AAAC,aAAaC,OAAS,SAAU,CAAC,CAAE,CAAC,EAAI,EAAE,SAAS,CAAG,CAAG,GAC1E,SAAU,CAAC,CAAE,CAAC,EAAI,IAAK,IAAI,KAAK,EAAOD,OAAO,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,EAAG,IAAI,EAAC,CAAC,EAAE,CAAG,CAAC,CAAC,EAAE,AAAD,CAAG,GAC/E,EAAG,EAC5B,EACA,OAAO,SAAU,CAAC,CAAE,CAAC,EACjB,GAAI,AAAa,YAAb,OAAO,GAAoB,AAAM,OAAN,EAC3B,MAAM,AAAIE,UAAU,uBAAyBC,OAAO,GAAK,iCAE7D,SAAS,IAAO,IAAI,CAAC,WAAW,CAAG,CAAG,CADtC,EAAc,EAAG,GAEjB,EAAE,SAAS,CAAG,AAAM,OAAN,EAAaH,OAAO,M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AAC,SAAS,YAAYgB,YAAc,AAAmC,QAAnC,EAAK,MAAM,CAAC,SAAS,CAAC,GAAG,CAAC,IAAI,CACtH,SAA8B,CAAG,CAAE,CAAG,CAAE,CAAG,EAC3C,EAAI,GAAG,CAAC,EAAK,EAEf,EAEE,SAA+B,CAAG,CAAE,CAAG,CAAE,CAAG,EAC5C,GAAI,EAAI,IAAI,CACV,EAAI,IAAI,CAAC,EAAK,EAAK,EAAG,EAAI,MAAM,OAC7B,IAAK,IAAIR,EAAI,EAAGA,EAAI,EAAI,MAAM,EACjC,CAAG,CAAC,IAAM,CAAG,CAAG,CAACA,IAAI,AACzB,CACR,EAMA,EAAa,SAAS,CAAC,KAAK,CAAG,SAA4B,CAAK,EACxD,EAAK,QAAQ,CAAC,IACd,GAAQ,EAAK,YAAY,CAAC,EAAO,SAAQ,EAC7C,IAAI,EAAM,EAAM,MAAM,GAAK,EAI3B,OAHA,IAAI,CAAC,MAAM,CAAC,GACR,GACA,IAAI,CAAC,KAAK,CAAC,EAAa,gBAAgB,CAAE,EAAK,GAC5C,IAAI,AACf,EAcA,EAAa,SAAS,CAAC,MAAM,CAAG,SAA6B,CAAK,EAC9D,IAAI,EAAM,EAAK,MAAM,CAAC,UAAU,CAAC,GAIjC,OAHA,IAAI,CAAC,MAAM,CAAC,GACR,GACA,IAAI,CAAC,KAAK,CAAC,EAAmB,EAAK,GAChC,IAAI,AACf,EAUA,EAAa,UAAU,E"} \ No newline at end of file diff --git a/packages/node_modules/@isaacs/ttlcache/index.js.map b/packages/node_modules/@isaacs/ttlcache/index.js.map new file mode 100644 index 00000000000..1eb34d81eb7 --- /dev/null +++ b/packages/node_modules/@isaacs/ttlcache/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"@isaacs/ttlcache/index.js","sources":["webpack:///webpack/runtime/define_property_getters","webpack:///webpack/runtime/has_own_property","webpack:///webpack/runtime/make_namespace_object","webpack:///./@isaacs/ttlcache/dist/esm/index.js"],"sourcesContent":["__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n }\n }\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","// A simple TTL cache with max capacity option, ms resolution,\n// autopurge, and reasonably optimized performance\n// Relies on the fact that integer Object keys are kept sorted,\n// and managed very efficiently by V8.\n/* c8 ignore start */\nconst perf = typeof performance === 'object' &&\n performance &&\n typeof performance.now === 'function'\n ? performance\n : Date;\n/* c8 ignore stop */\nconst now = () => perf.now();\nconst isPosInt = (n) => !!n && n === Math.floor(n) && n > 0 && isFinite(n);\nconst isPosIntOrInf = (n) => n === Infinity || isPosInt(n);\nexport class TTLCache {\n expirations = Object.create(null);\n data = new Map();\n expirationMap = new Map();\n ttl;\n max;\n updateAgeOnGet;\n updateAgeOnHas;\n noUpdateTTL;\n noDisposeOnSet;\n checkAgeOnGet;\n checkAgeOnHas;\n dispose;\n timer;\n timerExpiration;\n immortalKeys = new Set();\n constructor({ max = Infinity, ttl, updateAgeOnGet = false, checkAgeOnGet = false, updateAgeOnHas = false, checkAgeOnHas = false, noUpdateTTL = false, dispose, noDisposeOnSet = false, } = {}) {\n if (ttl !== undefined && !isPosIntOrInf(ttl)) {\n throw new TypeError('ttl must be positive integer or Infinity if set');\n }\n if (!isPosIntOrInf(max)) {\n throw new TypeError('max must be positive integer or Infinity');\n }\n this.ttl = ttl;\n this.max = max;\n this.updateAgeOnGet = !!updateAgeOnGet;\n this.checkAgeOnGet = !!checkAgeOnGet;\n this.updateAgeOnHas = !!updateAgeOnHas;\n this.checkAgeOnHas = !!checkAgeOnHas;\n this.noUpdateTTL = !!noUpdateTTL;\n this.noDisposeOnSet = !!noDisposeOnSet;\n if (dispose !== undefined) {\n if (typeof dispose !== 'function') {\n throw new TypeError('dispose must be function if set');\n }\n this.dispose = dispose;\n }\n else {\n this.dispose = (_, __, ___) => { };\n }\n this.timer = undefined;\n this.timerExpiration = undefined;\n }\n setTimer(expiration, ttl) {\n if (this.timerExpiration && this.timerExpiration < expiration) {\n return;\n }\n if (this.timer) {\n clearTimeout(this.timer);\n }\n const t = setTimeout(() => {\n this.timer = undefined;\n this.timerExpiration = undefined;\n this.purgeStale();\n for (const exp in this.expirations) {\n const e = Number(exp);\n this.setTimer(e, e - now());\n break;\n }\n }, Math.max(0, ttl));\n /* c8 ignore start - affordance for non-node envs */\n if (t.unref)\n t.unref();\n /* c8 ignore stop */\n this.timerExpiration = expiration;\n this.timer = t;\n }\n // hang onto the timer so we can clearTimeout if all items\n // are deleted. Deno doesn't have Timer.unref(), so it\n // hangs otherwise.\n cancelTimer() {\n if (this.timer) {\n clearTimeout(this.timer);\n this.timerExpiration = undefined;\n this.timer = undefined;\n }\n }\n /* c8 ignore start */\n cancelTimers() {\n process.emitWarning('TTLCache.cancelTimers has been renamed to ' +\n 'TTLCache.cancelTimer (no \"s\"), and will be removed in the next ' +\n 'major version update');\n return this.cancelTimer();\n }\n /* c8 ignore stop */\n clear() {\n const entries = this.dispose !== TTLCache.prototype.dispose ? [...this] : [];\n this.data.clear();\n this.expirationMap.clear();\n // no need for any purging now\n this.cancelTimer();\n this.expirations = Object.create(null);\n for (const [key, val] of entries) {\n this.dispose(val, key, 'delete');\n }\n }\n setTTL(key, ttl = this.ttl) {\n const current = this.expirationMap.get(key);\n if (current !== undefined) {\n // remove from the expirations list, so it isn't purged\n const exp = this.expirations[current];\n if (!exp || exp.length <= 1) {\n delete this.expirations[current];\n }\n else {\n this.expirations[current] = exp.filter(k => k !== key);\n }\n }\n if (ttl && ttl !== Infinity) {\n this.immortalKeys.delete(key);\n const expiration = Math.floor(now() + ttl);\n this.expirationMap.set(key, expiration);\n if (!this.expirations[expiration]) {\n this.expirations[expiration] = [];\n this.setTimer(expiration, ttl);\n }\n this.expirations[expiration].push(key);\n }\n else {\n this.immortalKeys.add(key);\n this.expirationMap.set(key, Infinity);\n }\n }\n set(key, val, { ttl = this.ttl, noUpdateTTL = this.noUpdateTTL, noDisposeOnSet = this.noDisposeOnSet, } = {}) {\n if (!isPosIntOrInf(ttl)) {\n throw new TypeError('ttl must be positive integer or Infinity');\n }\n if (this.expirationMap.has(key)) {\n if (!noUpdateTTL) {\n this.setTTL(key, ttl);\n }\n // has old value\n const oldValue = this.data.get(key);\n const disp = !noDisposeOnSet && this.data.has(key);\n if (oldValue !== val) {\n this.data.set(key, val);\n if (disp) {\n this.dispose(oldValue, key, 'set');\n }\n }\n }\n else {\n this.setTTL(key, ttl);\n this.data.set(key, val);\n }\n while (this.size > this.max) {\n this.purgeToCapacity();\n }\n return this;\n }\n has(key, { checkAgeOnHas = this.checkAgeOnHas, ttl = this.ttl, updateAgeOnHas = this.updateAgeOnHas, } = {}) {\n if (this.data.has(key)) {\n if (checkAgeOnHas && this.getRemainingTTL(key) === 0) {\n this.delete(key);\n return false;\n }\n if (updateAgeOnHas) {\n this.setTTL(key, ttl);\n }\n return true;\n }\n return false;\n }\n getRemainingTTL(key) {\n const expiration = this.expirationMap.get(key);\n return expiration === Infinity\n ? expiration\n : expiration !== undefined\n ? Math.max(0, Math.ceil(expiration - now()))\n : 0;\n }\n get(key, { updateAgeOnGet = this.updateAgeOnGet, ttl = this.ttl, checkAgeOnGet = this.checkAgeOnGet, } = {}) {\n const val = this.data.get(key);\n if (checkAgeOnGet && this.getRemainingTTL(key) === 0) {\n this.delete(key);\n return undefined;\n }\n if (updateAgeOnGet) {\n this.setTTL(key, ttl);\n }\n return val;\n }\n delete(key) {\n const current = this.expirationMap.get(key);\n if (current !== undefined) {\n const value = this.data.get(key);\n this.data.delete(key);\n this.expirationMap.delete(key);\n this.immortalKeys.delete(key);\n const exp = this.expirations[current];\n if (exp) {\n if (exp.length <= 1) {\n delete this.expirations[current];\n }\n else {\n this.expirations[current] = exp.filter(k => k !== key);\n }\n }\n this.dispose(value, key, 'delete');\n if (this.size === 0) {\n this.cancelTimer();\n }\n return true;\n }\n return false;\n }\n purgeToCapacity() {\n for (const exp in this.expirations) {\n const keys = this.expirations[exp];\n if (this.size - keys.length >= this.max) {\n delete this.expirations[exp];\n const entries = [];\n for (const key of keys) {\n entries.push([key, this.data.get(key)]);\n this.data.delete(key);\n this.expirationMap.delete(key);\n }\n for (const [key, val] of entries) {\n this.dispose(val, key, 'evict');\n }\n }\n else {\n const s = this.size - this.max;\n const entries = [];\n for (const key of keys.splice(0, s)) {\n entries.push([key, this.data.get(key)]);\n this.data.delete(key);\n this.expirationMap.delete(key);\n }\n for (const [key, val] of entries) {\n this.dispose(val, key, 'evict');\n }\n return;\n }\n }\n }\n get size() {\n return this.data.size;\n }\n purgeStale() {\n const n = Math.ceil(now());\n for (const exp in this.expirations) {\n if (exp === 'Infinity' || Number(exp) > n) {\n return;\n }\n /* c8 ignore start\n * mysterious need for a guard here?\n * https://github.com/isaacs/ttlcache/issues/26 */\n const keys = [...(this.expirations[exp] || [])];\n /* c8 ignore stop */\n const entries = [];\n delete this.expirations[exp];\n for (const key of keys) {\n entries.push([key, this.data.get(key)]);\n this.data.delete(key);\n this.expirationMap.delete(key);\n }\n for (const [key, val] of entries) {\n this.dispose(val, key, 'stale');\n }\n }\n if (this.size === 0) {\n this.cancelTimer();\n }\n }\n *entries() {\n for (const exp in this.expirations) {\n for (const key of this.expirations[exp]) {\n yield [key, this.data.get(key)];\n }\n }\n for (const key of this.immortalKeys) {\n yield [key, this.data.get(key)];\n }\n }\n *keys() {\n for (const exp in this.expirations) {\n for (const key of this.expirations[exp]) {\n yield key;\n }\n }\n for (const key of this.immortalKeys) {\n yield key;\n }\n }\n *values() {\n for (const exp in this.expirations) {\n for (const key of this.expirations[exp]) {\n yield this.data.get(key);\n }\n }\n for (const key of this.immortalKeys) {\n yield this.data.get(key);\n }\n }\n [Symbol.iterator]() {\n return this.entries();\n }\n}\n//# sourceMappingURL=index.js.map"],"names":["e","Object","Symbol","performance","Date","Math","isFinite","Map","Set","TypeError","clearTimeout","setTimeout","Number","process"],"mappings":"2BAAA,GAAoB,CAAC,CAAG,CAACA,EAAS,KACjC,IAAI,IAAI,KAAO,EACL,EAAoB,CAAC,CAAC,EAAY,IAAQ,CAAC,EAAoB,CAAC,CAACA,EAAS,IACzEC,OAAO,cAAc,CAACD,EAAS,EAAK,CAAE,WAAY,GAAM,IAAK,CAAU,CAAC,EAAI,AAAC,EAGzF,ECNA,EAAoB,CAAC,CAAG,CAAC,EAAK,IAAUC,OAAO,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,EAAK,GCClF,EAAoB,CAAC,CAAG,AAAC,IACrB,AAAkB,aAAlB,OAAOC,QAA0BA,OAAO,WAAW,EACrDD,OAAO,cAAc,CAAC,EAASC,OAAO,WAAW,CAAE,CAAE,MAAO,QAAS,GAEtED,OAAO,cAAc,CAAC,EAAS,aAAc,CAAE,MAAO,EAAK,EAC5D,E,wCCDA,IAAM,EAAO,AAAuB,UAAvB,OAAOE,aAChBA,aACA,AAA2B,YAA3B,OAAOA,YAAY,GAAG,CACpBA,YACAC,KAEA,EAAM,IAAM,EAAK,GAAG,GAEpB,EAAgB,AAAC,GAAM,IAAM,KADX,CAAC,CAC+B,GADzB,AACyB,IADnBC,KAAK,KAAK,CACS,IADF,AACE,EADE,GAAKC,SACP,EACjD,OAAM,EACT,YAAcL,OAAO,MAAM,CAAC,KAAM,AAClC,MAAO,IAAIM,GAAM,AACjB,eAAgB,IAAIA,GAAM,AAC1B,IAAI,AACJ,IAAI,AACJ,eAAe,AACf,eAAe,AACf,YAAY,AACZ,eAAe,AACf,cAAc,AACd,cAAc,AACd,QAAQ,AACR,MAAM,AACN,gBAAgB,AAChB,cAAe,IAAIC,GAAM,AACzB,aAAY,CAAE,MAAM,GAAQ,CAAE,KAAG,CA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AI,CAAC,OAAO,EACvB,CACJ,C"} \ No newline at end of file diff --git a/packages/node_modules/@opentelemetry/core/index.js.map b/packages/node_modules/@opentelemetry/core/index.js.map new file mode 100644 index 00000000000..2c193e3d7c7 --- /dev/null +++ b/packages/node_modules/@opentelemetry/core/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"@opentelemetry/core/index.js","sources":["webpack:///./@opentelemetry/core/build/esm/utils/lodash.merge.js","webpack:///./@opentelemetry/core/build/esm/ExportResult.js","webpack:///./@opentelemetry/core/build/esm/utils/sampling.js","webpack:///./@opentelemetry/core/build/esm/utils/timeout.js","webpack:///./@opentelemetry/core/build/esm/platform/node/sdk-info.js","webpack:///./@opentelemetry/core/build/esm/trace/rpc-metadata.js","webpack:///webpack/runtime/define_property_getters","webpack:///webpack/runtime/has_own_property","webpack:///webpack/runtime/make_namespace_object","webpack:///./@opentelemetry/core/build/esm/trace/suppress-tracing.js","webpack:///./@opentelemetry/core/build/esm/baggage/constants.js","webpack:///./@opentelemetry/core/build/esm/baggage/utils.js","webpack:///./@opentelemetry/core/build/esm/baggage/propagation/W3CBaggagePropagator.js","webpack:///./@opentelemetry/core/build/esm/common/anchored-clock.js","webpack:///./@opentelemetry/core/build/esm/common/attributes.js","webpack:///./@opentelemetry/core/build/esm/common/logging-error-handler.js","webpack:///./@opentelemetry/core/build/esm/common/global-error-handler.js","webpack:///./@opentelemetry/core/build/esm/platform/node/performance.js","webpack:///./@opentelemetry/core/build/esm/common/time.js","webpack:///./@opentelemetry/core/build/esm/common/hex-to-binary.js","webpack:///./@opentelemetry/core/build/esm/platform/node/RandomIdGenerator.js","webpack:///./@opentelemetry/core/build/esm/version.js","webpack:///./@opentelemetry/semantic-conventions/build/esm/resource/SemanticResourceAttributes.js","webpack:///./@opentelemetry/core/build/esm/platform/node/globalThis.js","webpack:///./@opentelemetry/core/build/esm/utils/environment.js","webpack:///./@opentelemetry/core/build/esm/platform/node/environment.js","webpack:///./@opentelemetry/core/build/esm/platform/node/hex-to-base64.js","webpack:///./@opentelemetry/core/build/esm/platform/node/timer-util.js","webpack:///./@opentelemetry/core/build/esm/propagation/composite.js","webpack:///./@opentelemetry/core/build/esm/internal/validators.js","webpack:///./@opentelemetry/core/build/esm/trace/TraceState.js","webpack:///./@opentelemetry/core/build/esm/trace/W3CTraceContextPropagator.js","webpack:///./@opentelemetry/core/build/esm/trace/sampler/AlwaysOffSampler.js","webpack:///./@opentelemetry/core/build/esm/trace/sampler/AlwaysOnSampler.js","webpack:///./@opentelemetry/core/build/esm/trace/sampler/ParentBasedSampler.js","webpack:///./@opentelemetry/core/build/esm/trace/sampler/TraceIdRatioBasedSampler.js","webpack:///./@opentelemetry/core/build/esm/utils/merge.js","webpack:///./@opentelemetry/core/build/esm/utils/url.js","webpack:///./@opentelemetry/core/build/esm/utils/wrap.js","webpack:///./@opentelemetry/core/build/esm/utils/promise.js","webpack:///./@opentelemetry/core/build/esm/utils/callback.js","webpack:///./@opentelemetry/core/build/esm/index.js","webpack:///./@opentelemetry/core/build/esm/internal/exporter.js"],"sourcesContent":["/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n/* eslint-disable @typescript-eslint/no-explicit-any */\n/**\n * based on lodash in order to support esm builds without esModuleInterop.\n * lodash is using MIT License.\n **/\nvar objectTag = '[object Object]';\nvar nullTag = '[object Null]';\nvar undefinedTag = '[object Undefined]';\nvar funcProto = Function.prototype;\nvar funcToString = funcProto.toString;\nvar objectCtorString = funcToString.call(Object);\nvar getPrototype = overArg(Object.getPrototypeOf, Object);\nvar objectProto = Object.prototype;\nvar hasOwnProperty = objectProto.hasOwnProperty;\nvar symToStringTag = Symbol ? Symbol.toStringTag : undefined;\nvar nativeObjectToString = objectProto.toString;\n/**\n * Creates a unary function that invokes `func` with its argument transformed.\n *\n * @private\n * @param {Function} func The function to wrap.\n * @param {Function} transform The argument transform.\n * @returns {Function} Returns the new function.\n */\nfunction overArg(func, transform) {\n return function (arg) {\n return func(transform(arg));\n };\n}\n/**\n * Checks if `value` is a plain object, that is, an object created by the\n * `Object` constructor or one with a `[[Prototype]]` of `null`.\n *\n * @static\n * @memberOf _\n * @since 0.8.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a plain object, else `false`.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * }\n *\n * _.isPlainObject(new Foo);\n * // => false\n *\n * _.isPlainObject([1, 2, 3]);\n * // => false\n *\n * _.isPlainObject({ 'x': 0, 'y': 0 });\n * // => true\n *\n * _.isPlainObject(Object.create(null));\n * // => true\n */\nexport function isPlainObject(value) {\n if (!isObjectLike(value) || baseGetTag(value) !== objectTag) {\n return false;\n }\n var proto = getPrototype(value);\n if (proto === null) {\n return true;\n }\n var Ctor = hasOwnProperty.call(proto, 'constructor') && proto.constructor;\n return (typeof Ctor == 'function' &&\n Ctor instanceof Ctor &&\n funcToString.call(Ctor) === objectCtorString);\n}\n/**\n * Checks if `value` is object-like. A value is object-like if it's not `null`\n * and has a `typeof` result of \"object\".\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is object-like, else `false`.\n * @example\n *\n * _.isObjectLike({});\n * // => true\n *\n * _.isObjectLike([1, 2, 3]);\n * // => true\n *\n * _.isObjectLike(_.noop);\n * // => false\n *\n * _.isObjectLike(null);\n * // => false\n */\nfunction isObjectLike(value) {\n return value != null && typeof value == 'object';\n}\n/**\n * The base implementation of `getTag` without fallbacks for buggy environments.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the `toStringTag`.\n */\nfunction baseGetTag(value) {\n if (value == null) {\n return value === undefined ? undefinedTag : nullTag;\n }\n return symToStringTag && symToStringTag in Object(value)\n ? getRawTag(value)\n : objectToString(value);\n}\n/**\n * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the raw `toStringTag`.\n */\nfunction getRawTag(value) {\n var isOwn = hasOwnProperty.call(value, symToStringTag), tag = value[symToStringTag];\n var unmasked = false;\n try {\n value[symToStringTag] = undefined;\n unmasked = true;\n }\n catch (e) {\n // silence\n }\n var result = nativeObjectToString.call(value);\n if (unmasked) {\n if (isOwn) {\n value[symToStringTag] = tag;\n }\n else {\n delete value[symToStringTag];\n }\n }\n return result;\n}\n/**\n * Converts `value` to a string using `Object.prototype.toString`.\n *\n * @private\n * @param {*} value The value to convert.\n * @returns {string} Returns the converted string.\n */\nfunction objectToString(value) {\n return nativeObjectToString.call(value);\n}\n//# sourceMappingURL=lodash.merge.js.map","/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nexport var ExportResultCode;\n(function (ExportResultCode) {\n ExportResultCode[ExportResultCode[\"SUCCESS\"] = 0] = \"SUCCESS\";\n ExportResultCode[ExportResultCode[\"FAILED\"] = 1] = \"FAILED\";\n})(ExportResultCode || (ExportResultCode = {}));\n//# sourceMappingURL=ExportResult.js.map","/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nexport var TracesSamplerValues;\n(function (TracesSamplerValues) {\n TracesSamplerValues[\"AlwaysOff\"] = \"always_off\";\n TracesSamplerValues[\"AlwaysOn\"] = \"always_on\";\n TracesSamplerValues[\"ParentBasedAlwaysOff\"] = \"parentbased_always_off\";\n TracesSamplerValues[\"ParentBasedAlwaysOn\"] = \"parentbased_always_on\";\n TracesSamplerValues[\"ParentBasedTraceIdRatio\"] = \"parentbased_traceidratio\";\n TracesSamplerValues[\"TraceIdRatio\"] = \"traceidratio\";\n})(TracesSamplerValues || (TracesSamplerValues = {}));\n//# sourceMappingURL=sampling.js.map","/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nvar __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n return function (d, b) {\n if (typeof b !== \"function\" && b !== null)\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n})();\n/**\n * Error that is thrown on timeouts.\n */\nvar TimeoutError = /** @class */ (function (_super) {\n __extends(TimeoutError, _super);\n function TimeoutError(message) {\n var _this = _super.call(this, message) || this;\n // manually adjust prototype to retain `instanceof` functionality when targeting ES5, see:\n // https://github.com/Microsoft/TypeScript-wiki/blob/main/Breaking-Changes.md#extending-built-ins-like-error-array-and-map-may-no-longer-work\n Object.setPrototypeOf(_this, TimeoutError.prototype);\n return _this;\n }\n return TimeoutError;\n}(Error));\nexport { TimeoutError };\n/**\n * Adds a timeout to a promise and rejects if the specified timeout has elapsed. Also rejects if the specified promise\n * rejects, and resolves if the specified promise resolves.\n *\n *

          NOTE: this operation will continue even after it throws a {@link TimeoutError}.\n *\n * @param promise promise to use with timeout.\n * @param timeout the timeout in milliseconds until the returned promise is rejected.\n */\nexport function callWithTimeout(promise, timeout) {\n var timeoutHandle;\n var timeoutPromise = new Promise(function timeoutFunction(_resolve, reject) {\n timeoutHandle = setTimeout(function timeoutHandler() {\n reject(new TimeoutError('Operation timed out.'));\n }, timeout);\n });\n return Promise.race([promise, timeoutPromise]).then(function (result) {\n clearTimeout(timeoutHandle);\n return result;\n }, function (reason) {\n clearTimeout(timeoutHandle);\n throw reason;\n });\n}\n//# sourceMappingURL=timeout.js.map","/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nvar _a;\nimport { VERSION } from '../../version';\nimport { SEMRESATTRS_TELEMETRY_SDK_NAME, SEMRESATTRS_PROCESS_RUNTIME_NAME, SEMRESATTRS_TELEMETRY_SDK_LANGUAGE, TELEMETRYSDKLANGUAGEVALUES_NODEJS, SEMRESATTRS_TELEMETRY_SDK_VERSION, } from '@opentelemetry/semantic-conventions';\n/** Constants describing the SDK in use */\nexport var SDK_INFO = (_a = {},\n _a[SEMRESATTRS_TELEMETRY_SDK_NAME] = 'opentelemetry',\n _a[SEMRESATTRS_PROCESS_RUNTIME_NAME] = 'node',\n _a[SEMRESATTRS_TELEMETRY_SDK_LANGUAGE] = TELEMETRYSDKLANGUAGEVALUES_NODEJS,\n _a[SEMRESATTRS_TELEMETRY_SDK_VERSION] = VERSION,\n _a);\n//# sourceMappingURL=sdk-info.js.map","/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport { createContextKey } from '@opentelemetry/api';\nvar RPC_METADATA_KEY = createContextKey('OpenTelemetry SDK Context Key RPC_METADATA');\nexport var RPCType;\n(function (RPCType) {\n RPCType[\"HTTP\"] = \"http\";\n})(RPCType || (RPCType = {}));\nexport function setRPCMetadata(context, meta) {\n return context.setValue(RPC_METADATA_KEY, meta);\n}\nexport function deleteRPCMetadata(context) {\n return context.deleteValue(RPC_METADATA_KEY);\n}\nexport function getRPCMetadata(context) {\n return context.getValue(RPC_METADATA_KEY);\n}\n//# sourceMappingURL=rpc-metadata.js.map","__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n }\n }\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport { createContextKey } from '@opentelemetry/api';\nvar SUPPRESS_TRACING_KEY = createContextKey('OpenTelemetry SDK Context Key SUPPRESS_TRACING');\nexport function suppressTracing(context) {\n return context.setValue(SUPPRESS_TRACING_KEY, true);\n}\nexport function unsuppressTracing(context) {\n return context.deleteValue(SUPPRESS_TRACING_KEY);\n}\nexport function isTracingSuppressed(context) {\n return context.getValue(SUPPRESS_TRACING_KEY) === true;\n}\n//# sourceMappingURL=suppress-tracing.js.map","/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nexport var BAGGAGE_KEY_PAIR_SEPARATOR = '=';\nexport var BAGGAGE_PROPERTIES_SEPARATOR = ';';\nexport var BAGGAGE_ITEMS_SEPARATOR = ',';\n// Name of the http header used to propagate the baggage\nexport var BAGGAGE_HEADER = 'baggage';\n// Maximum number of name-value pairs allowed by w3c spec\nexport var BAGGAGE_MAX_NAME_VALUE_PAIRS = 180;\n// Maximum number of bytes per a single name-value pair allowed by w3c spec\nexport var BAGGAGE_MAX_PER_NAME_VALUE_PAIRS = 4096;\n// Maximum total length of all name-value pairs allowed by w3c spec\nexport var BAGGAGE_MAX_TOTAL_LENGTH = 8192;\n//# sourceMappingURL=constants.js.map","var __read = (this && this.__read) || function (o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o), r, ar = [], e;\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\n }\n catch (error) { e = { error: error }; }\n finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n }\n finally { if (e) throw e.error; }\n }\n return ar;\n};\n/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport { baggageEntryMetadataFromString, } from '@opentelemetry/api';\nimport { BAGGAGE_ITEMS_SEPARATOR, BAGGAGE_PROPERTIES_SEPARATOR, BAGGAGE_KEY_PAIR_SEPARATOR, BAGGAGE_MAX_TOTAL_LENGTH, } from './constants';\nexport function serializeKeyPairs(keyPairs) {\n return keyPairs.reduce(function (hValue, current) {\n var value = \"\" + hValue + (hValue !== '' ? BAGGAGE_ITEMS_SEPARATOR : '') + current;\n return value.length > BAGGAGE_MAX_TOTAL_LENGTH ? hValue : value;\n }, '');\n}\nexport function getKeyPairs(baggage) {\n return baggage.getAllEntries().map(function (_a) {\n var _b = __read(_a, 2), key = _b[0], value = _b[1];\n var entry = encodeURIComponent(key) + \"=\" + encodeURIComponent(value.value);\n // include opaque metadata if provided\n // NOTE: we intentionally don't URI-encode the metadata - that responsibility falls on the metadata implementation\n if (value.metadata !== undefined) {\n entry += BAGGAGE_PROPERTIES_SEPARATOR + value.metadata.toString();\n }\n return entry;\n });\n}\nexport function parsePairKeyValue(entry) {\n var valueProps = entry.split(BAGGAGE_PROPERTIES_SEPARATOR);\n if (valueProps.length <= 0)\n return;\n var keyPairPart = valueProps.shift();\n if (!keyPairPart)\n return;\n var separatorIndex = keyPairPart.indexOf(BAGGAGE_KEY_PAIR_SEPARATOR);\n if (separatorIndex <= 0)\n return;\n var key = decodeURIComponent(keyPairPart.substring(0, separatorIndex).trim());\n var value = decodeURIComponent(keyPairPart.substring(separatorIndex + 1).trim());\n var metadata;\n if (valueProps.length > 0) {\n metadata = baggageEntryMetadataFromString(valueProps.join(BAGGAGE_PROPERTIES_SEPARATOR));\n }\n return { key: key, value: value, metadata: metadata };\n}\n/**\n * Parse a string serialized in the baggage HTTP Format (without metadata):\n * https://github.com/w3c/baggage/blob/master/baggage/HTTP_HEADER_FORMAT.md\n */\nexport function parseKeyPairsIntoRecord(value) {\n if (typeof value !== 'string' || value.length === 0)\n return {};\n return value\n .split(BAGGAGE_ITEMS_SEPARATOR)\n .map(function (entry) {\n return parsePairKeyValue(entry);\n })\n .filter(function (keyPair) { return keyPair !== undefined && keyPair.value.length > 0; })\n .reduce(function (headers, keyPair) {\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n headers[keyPair.key] = keyPair.value;\n return headers;\n }, {});\n}\n//# sourceMappingURL=utils.js.map","/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport { propagation, } from '@opentelemetry/api';\nimport { isTracingSuppressed } from '../../trace/suppress-tracing';\nimport { BAGGAGE_HEADER, BAGGAGE_ITEMS_SEPARATOR, BAGGAGE_MAX_NAME_VALUE_PAIRS, BAGGAGE_MAX_PER_NAME_VALUE_PAIRS, } from '../constants';\nimport { getKeyPairs, parsePairKeyValue, serializeKeyPairs } from '../utils';\n/**\n * Propagates {@link Baggage} through Context format propagation.\n *\n * Based on the Baggage specification:\n * https://w3c.github.io/baggage/\n */\nvar W3CBaggagePropagator = /** @class */ (function () {\n function W3CBaggagePropagator() {\n }\n W3CBaggagePropagator.prototype.inject = function (context, carrier, setter) {\n var baggage = propagation.getBaggage(context);\n if (!baggage || isTracingSuppressed(context))\n return;\n var keyPairs = getKeyPairs(baggage)\n .filter(function (pair) {\n return pair.length <= BAGGAGE_MAX_PER_NAME_VALUE_PAIRS;\n })\n .slice(0, BAGGAGE_MAX_NAME_VALUE_PAIRS);\n var headerValue = serializeKeyPairs(keyPairs);\n if (headerValue.length > 0) {\n setter.set(carrier, BAGGAGE_HEADER, headerValue);\n }\n };\n W3CBaggagePropagator.prototype.extract = function (context, carrier, getter) {\n var headerValue = getter.get(carrier, BAGGAGE_HEADER);\n var baggageString = Array.isArray(headerValue)\n ? headerValue.join(BAGGAGE_ITEMS_SEPARATOR)\n : headerValue;\n if (!baggageString)\n return context;\n var baggage = {};\n if (baggageString.length === 0) {\n return context;\n }\n var pairs = baggageString.split(BAGGAGE_ITEMS_SEPARATOR);\n pairs.forEach(function (entry) {\n var keyPair = parsePairKeyValue(entry);\n if (keyPair) {\n var baggageEntry = { value: keyPair.value };\n if (keyPair.metadata) {\n baggageEntry.metadata = keyPair.metadata;\n }\n baggage[keyPair.key] = baggageEntry;\n }\n });\n if (Object.entries(baggage).length === 0) {\n return context;\n }\n return propagation.setBaggage(context, propagation.createBaggage(baggage));\n };\n W3CBaggagePropagator.prototype.fields = function () {\n return [BAGGAGE_HEADER];\n };\n return W3CBaggagePropagator;\n}());\nexport { W3CBaggagePropagator };\n//# sourceMappingURL=W3CBaggagePropagator.js.map","/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n/**\n * A utility for returning wall times anchored to a given point in time. Wall time measurements will\n * not be taken from the system, but instead are computed by adding a monotonic clock time\n * to the anchor point.\n *\n * This is needed because the system time can change and result in unexpected situations like\n * spans ending before they are started. Creating an anchored clock for each local root span\n * ensures that span timings and durations are accurate while preventing span times from drifting\n * too far from the system clock.\n *\n * Only creating an anchored clock once per local trace ensures span times are correct relative\n * to each other. For example, a child span will never have a start time before its parent even\n * if the system clock is corrected during the local trace.\n *\n * Heavily inspired by the OTel Java anchored clock\n * https://github.com/open-telemetry/opentelemetry-java/blob/main/sdk/trace/src/main/java/io/opentelemetry/sdk/trace/AnchoredClock.java\n */\nvar AnchoredClock = /** @class */ (function () {\n /**\n * Create a new AnchoredClock anchored to the current time returned by systemClock.\n *\n * @param systemClock should be a clock that returns the number of milliseconds since January 1 1970 such as Date\n * @param monotonicClock should be a clock that counts milliseconds monotonically such as window.performance or perf_hooks.performance\n */\n function AnchoredClock(systemClock, monotonicClock) {\n this._monotonicClock = monotonicClock;\n this._epochMillis = systemClock.now();\n this._performanceMillis = monotonicClock.now();\n }\n /**\n * Returns the current time by adding the number of milliseconds since the\n * AnchoredClock was created to the creation epoch time\n */\n AnchoredClock.prototype.now = function () {\n var delta = this._monotonicClock.now() - this._performanceMillis;\n return this._epochMillis + delta;\n };\n return AnchoredClock;\n}());\nexport { AnchoredClock };\n//# sourceMappingURL=anchored-clock.js.map","/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nvar __values = (this && this.__values) || function(o) {\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\n if (m) return m.call(o);\n if (o && typeof o.length === \"number\") return {\n next: function () {\n if (o && i >= o.length) o = void 0;\n return { value: o && o[i++], done: !o };\n }\n };\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\n};\nvar __read = (this && this.__read) || function (o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o), r, ar = [], e;\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\n }\n catch (error) { e = { error: error }; }\n finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n }\n finally { if (e) throw e.error; }\n }\n return ar;\n};\nimport { diag } from '@opentelemetry/api';\nexport function sanitizeAttributes(attributes) {\n var e_1, _a;\n var out = {};\n if (typeof attributes !== 'object' || attributes == null) {\n return out;\n }\n try {\n for (var _b = __values(Object.entries(attributes)), _c = _b.next(); !_c.done; _c = _b.next()) {\n var _d = __read(_c.value, 2), key = _d[0], val = _d[1];\n if (!isAttributeKey(key)) {\n diag.warn(\"Invalid attribute key: \" + key);\n continue;\n }\n if (!isAttributeValue(val)) {\n diag.warn(\"Invalid attribute value set for key: \" + key);\n continue;\n }\n if (Array.isArray(val)) {\n out[key] = val.slice();\n }\n else {\n out[key] = val;\n }\n }\n }\n catch (e_1_1) { e_1 = { error: e_1_1 }; }\n finally {\n try {\n if (_c && !_c.done && (_a = _b.return)) _a.call(_b);\n }\n finally { if (e_1) throw e_1.error; }\n }\n return out;\n}\nexport function isAttributeKey(key) {\n return typeof key === 'string' && key.length > 0;\n}\nexport function isAttributeValue(val) {\n if (val == null) {\n return true;\n }\n if (Array.isArray(val)) {\n return isHomogeneousAttributeValueArray(val);\n }\n return isValidPrimitiveAttributeValue(val);\n}\nfunction isHomogeneousAttributeValueArray(arr) {\n var e_2, _a;\n var type;\n try {\n for (var arr_1 = __values(arr), arr_1_1 = arr_1.next(); !arr_1_1.done; arr_1_1 = arr_1.next()) {\n var element = arr_1_1.value;\n // null/undefined elements are allowed\n if (element == null)\n continue;\n if (!type) {\n if (isValidPrimitiveAttributeValue(element)) {\n type = typeof element;\n continue;\n }\n // encountered an invalid primitive\n return false;\n }\n if (typeof element === type) {\n continue;\n }\n return false;\n }\n }\n catch (e_2_1) { e_2 = { error: e_2_1 }; }\n finally {\n try {\n if (arr_1_1 && !arr_1_1.done && (_a = arr_1.return)) _a.call(arr_1);\n }\n finally { if (e_2) throw e_2.error; }\n }\n return true;\n}\nfunction isValidPrimitiveAttributeValue(val) {\n switch (typeof val) {\n case 'number':\n case 'boolean':\n case 'string':\n return true;\n }\n return false;\n}\n//# sourceMappingURL=attributes.js.map","/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport { diag } from '@opentelemetry/api';\n/**\n * Returns a function that logs an error using the provided logger, or a\n * console logger if one was not provided.\n */\nexport function loggingErrorHandler() {\n return function (ex) {\n diag.error(stringifyException(ex));\n };\n}\n/**\n * Converts an exception into a string representation\n * @param {Exception} ex\n */\nfunction stringifyException(ex) {\n if (typeof ex === 'string') {\n return ex;\n }\n else {\n return JSON.stringify(flattenException(ex));\n }\n}\n/**\n * Flattens an exception into key-value pairs by traversing the prototype chain\n * and coercing values to strings. Duplicate properties will not be overwritten;\n * the first insert wins.\n */\nfunction flattenException(ex) {\n var result = {};\n var current = ex;\n while (current !== null) {\n Object.getOwnPropertyNames(current).forEach(function (propertyName) {\n if (result[propertyName])\n return;\n var value = current[propertyName];\n if (value) {\n result[propertyName] = String(value);\n }\n });\n current = Object.getPrototypeOf(current);\n }\n return result;\n}\n//# sourceMappingURL=logging-error-handler.js.map","/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport { loggingErrorHandler } from './logging-error-handler';\n/** The global error handler delegate */\nvar delegateHandler = loggingErrorHandler();\n/**\n * Set the global error handler\n * @param {ErrorHandler} handler\n */\nexport function setGlobalErrorHandler(handler) {\n delegateHandler = handler;\n}\n/**\n * Return the global error handler\n * @param {Exception} ex\n */\nexport function globalErrorHandler(ex) {\n try {\n delegateHandler(ex);\n }\n catch (_a) { } // eslint-disable-line no-empty\n}\n//# sourceMappingURL=global-error-handler.js.map","/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport { performance } from 'perf_hooks';\nexport var otperformance = performance;\n//# sourceMappingURL=performance.js.map","/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport { otperformance as performance } from '../platform';\nvar NANOSECOND_DIGITS = 9;\nvar NANOSECOND_DIGITS_IN_MILLIS = 6;\nvar MILLISECONDS_TO_NANOSECONDS = Math.pow(10, NANOSECOND_DIGITS_IN_MILLIS);\nvar SECOND_TO_NANOSECONDS = Math.pow(10, NANOSECOND_DIGITS);\n/**\n * Converts a number of milliseconds from epoch to HrTime([seconds, remainder in nanoseconds]).\n * @param epochMillis\n */\nexport function millisToHrTime(epochMillis) {\n var epochSeconds = epochMillis / 1000;\n // Decimals only.\n var seconds = Math.trunc(epochSeconds);\n // Round sub-nanosecond accuracy to nanosecond.\n var nanos = Math.round((epochMillis % 1000) * MILLISECONDS_TO_NANOSECONDS);\n return [seconds, nanos];\n}\nexport function getTimeOrigin() {\n var timeOrigin = performance.timeOrigin;\n if (typeof timeOrigin !== 'number') {\n var perf = performance;\n timeOrigin = perf.timing && perf.timing.fetchStart;\n }\n return timeOrigin;\n}\n/**\n * Returns an hrtime calculated via performance component.\n * @param performanceNow\n */\nexport function hrTime(performanceNow) {\n var timeOrigin = millisToHrTime(getTimeOrigin());\n var now = millisToHrTime(typeof performanceNow === 'number' ? performanceNow : performance.now());\n return addHrTimes(timeOrigin, now);\n}\n/**\n *\n * Converts a TimeInput to an HrTime, defaults to _hrtime().\n * @param time\n */\nexport function timeInputToHrTime(time) {\n // process.hrtime\n if (isTimeInputHrTime(time)) {\n return time;\n }\n else if (typeof time === 'number') {\n // Must be a performance.now() if it's smaller than process start time.\n if (time < getTimeOrigin()) {\n return hrTime(time);\n }\n else {\n // epoch milliseconds or performance.timeOrigin\n return millisToHrTime(time);\n }\n }\n else if (time instanceof Date) {\n return millisToHrTime(time.getTime());\n }\n else {\n throw TypeError('Invalid input type');\n }\n}\n/**\n * Returns a duration of two hrTime.\n * @param startTime\n * @param endTime\n */\nexport function hrTimeDuration(startTime, endTime) {\n var seconds = endTime[0] - startTime[0];\n var nanos = endTime[1] - startTime[1];\n // overflow\n if (nanos < 0) {\n seconds -= 1;\n // negate\n nanos += SECOND_TO_NANOSECONDS;\n }\n return [seconds, nanos];\n}\n/**\n * Convert hrTime to timestamp, for example \"2019-05-14T17:00:00.000123456Z\"\n * @param time\n */\nexport function hrTimeToTimeStamp(time) {\n var precision = NANOSECOND_DIGITS;\n var tmp = \"\" + '0'.repeat(precision) + time[1] + \"Z\";\n var nanoString = tmp.substring(tmp.length - precision - 1);\n var date = new Date(time[0] * 1000).toISOString();\n return date.replace('000Z', nanoString);\n}\n/**\n * Convert hrTime to nanoseconds.\n * @param time\n */\nexport function hrTimeToNanoseconds(time) {\n return time[0] * SECOND_TO_NANOSECONDS + time[1];\n}\n/**\n * Convert hrTime to milliseconds.\n * @param time\n */\nexport function hrTimeToMilliseconds(time) {\n return time[0] * 1e3 + time[1] / 1e6;\n}\n/**\n * Convert hrTime to microseconds.\n * @param time\n */\nexport function hrTimeToMicroseconds(time) {\n return time[0] * 1e6 + time[1] / 1e3;\n}\n/**\n * check if time is HrTime\n * @param value\n */\nexport function isTimeInputHrTime(value) {\n return (Array.isArray(value) &&\n value.length === 2 &&\n typeof value[0] === 'number' &&\n typeof value[1] === 'number');\n}\n/**\n * check if input value is a correct types.TimeInput\n * @param value\n */\nexport function isTimeInput(value) {\n return (isTimeInputHrTime(value) ||\n typeof value === 'number' ||\n value instanceof Date);\n}\n/**\n * Given 2 HrTime formatted times, return their sum as an HrTime.\n */\nexport function addHrTimes(time1, time2) {\n var out = [time1[0] + time2[0], time1[1] + time2[1]];\n // Nanoseconds\n if (out[1] >= SECOND_TO_NANOSECONDS) {\n out[1] -= SECOND_TO_NANOSECONDS;\n out[0] += 1;\n }\n return out;\n}\n//# sourceMappingURL=time.js.map","/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nfunction intValue(charCode) {\n // 0-9\n if (charCode >= 48 && charCode <= 57) {\n return charCode - 48;\n }\n // a-f\n if (charCode >= 97 && charCode <= 102) {\n return charCode - 87;\n }\n // A-F\n return charCode - 55;\n}\nexport function hexToBinary(hexStr) {\n var buf = new Uint8Array(hexStr.length / 2);\n var offset = 0;\n for (var i = 0; i < hexStr.length; i += 2) {\n var hi = intValue(hexStr.charCodeAt(i));\n var lo = intValue(hexStr.charCodeAt(i + 1));\n buf[offset++] = (hi << 4) | lo;\n }\n return buf;\n}\n//# sourceMappingURL=hex-to-binary.js.map","/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nvar SPAN_ID_BYTES = 8;\nvar TRACE_ID_BYTES = 16;\n/**\n * @deprecated Use the one defined in @opentelemetry/sdk-trace-base instead.\n */\nvar RandomIdGenerator = /** @class */ (function () {\n function RandomIdGenerator() {\n /**\n * Returns a random 16-byte trace ID formatted/encoded as a 32 lowercase hex\n * characters corresponding to 128 bits.\n */\n this.generateTraceId = getIdGenerator(TRACE_ID_BYTES);\n /**\n * Returns a random 8-byte span ID formatted/encoded as a 16 lowercase hex\n * characters corresponding to 64 bits.\n */\n this.generateSpanId = getIdGenerator(SPAN_ID_BYTES);\n }\n return RandomIdGenerator;\n}());\nexport { RandomIdGenerator };\nvar SHARED_BUFFER = Buffer.allocUnsafe(TRACE_ID_BYTES);\nfunction getIdGenerator(bytes) {\n return function generateId() {\n for (var i = 0; i < bytes / 4; i++) {\n // unsigned right shift drops decimal part of the number\n // it is required because if a number between 2**32 and 2**32 - 1 is generated, an out of range error is thrown by writeUInt32BE\n SHARED_BUFFER.writeUInt32BE((Math.random() * Math.pow(2, 32)) >>> 0, i * 4);\n }\n // If buffer is all 0, set the last byte to 1 to guarantee a valid w3c id is generated\n for (var i = 0; i < bytes; i++) {\n if (SHARED_BUFFER[i] > 0) {\n break;\n }\n else if (i === bytes - 1) {\n SHARED_BUFFER[bytes - 1] = 1;\n }\n }\n return SHARED_BUFFER.toString('hex', 0, bytes);\n };\n}\n//# sourceMappingURL=RandomIdGenerator.js.map","/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n// this is autogenerated file, see scripts/version-update.js\nexport var VERSION = '1.30.1';\n//# sourceMappingURL=version.js.map","/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport { createConstMap } from '../internal/utils';\n//----------------------------------------------------------------------------------------------------------\n// DO NOT EDIT, this is an Auto-generated file from scripts/semconv/templates//templates/SemanticAttributes.ts.j2\n//----------------------------------------------------------------------------------------------------------\n//----------------------------------------------------------------------------------------------------------\n// Constant values for SemanticResourceAttributes\n//----------------------------------------------------------------------------------------------------------\n// Temporary local constants to assign to the individual exports and the namespaced version\n// Required to avoid the namespace exports using the unminifiable export names for some package types\nvar TMP_CLOUD_PROVIDER = 'cloud.provider';\nvar TMP_CLOUD_ACCOUNT_ID = 'cloud.account.id';\nvar TMP_CLOUD_REGION = 'cloud.region';\nvar TMP_CLOUD_AVAILABILITY_ZONE = 'cloud.availability_zone';\nvar TMP_CLOUD_PLATFORM = 'cloud.platform';\nvar TMP_AWS_ECS_CONTAINER_ARN = 'aws.ecs.container.arn';\nvar TMP_AWS_ECS_CLUSTER_ARN = 'aws.ecs.cluster.arn';\nvar TMP_AWS_ECS_LAUNCHTYPE = 'aws.ecs.launchtype';\nvar TMP_AWS_ECS_TASK_ARN = 'aws.ecs.task.arn';\nvar TMP_AWS_ECS_TASK_FAMILY = 'aws.ecs.task.family';\nvar TMP_AWS_ECS_TASK_REVISION = 'aws.ecs.task.revision';\nvar TMP_AWS_EKS_CLUSTER_ARN = 'aws.eks.cluster.arn';\nvar TMP_AWS_LOG_GROUP_NAMES = 'aws.log.group.names';\nvar TMP_AWS_LOG_GROUP_ARNS = 'aws.log.group.arns';\nvar TMP_AWS_LOG_STREAM_NAMES = 'aws.log.stream.names';\nvar TMP_AWS_LOG_STREAM_ARNS = 'aws.log.stream.arns';\nvar TMP_CONTAINER_NAME = 'container.name';\nvar TMP_CONTAINER_ID = 'container.id';\nvar TMP_CONTAINER_RUNTIME = 'container.runtime';\nvar TMP_CONTAINER_IMAGE_NAME = 'container.image.name';\nvar TMP_CONTAINER_IMAGE_TAG = 'container.image.tag';\nvar TMP_DEPLOYMENT_ENVIRONMENT = 'deployment.environment';\nvar TMP_DEVICE_ID = 'device.id';\nvar TMP_DEVICE_MODEL_IDENTIFIER = 'device.model.identifier';\nvar TMP_DEVICE_MODEL_NAME = 'device.model.name';\nvar TMP_FAAS_NAME = 'faas.name';\nvar TMP_FAAS_ID = 'faas.id';\nvar TMP_FAAS_VERSION = 'faas.version';\nvar TMP_FAAS_INSTANCE = 'faas.instance';\nvar TMP_FAAS_MAX_MEMORY = 'faas.max_memory';\nvar TMP_HOST_ID = 'host.id';\nvar TMP_HOST_NAME = 'host.name';\nvar TMP_HOST_TYPE = 'host.type';\nvar TMP_HOST_ARCH = 'host.arch';\nvar TMP_HOST_IMAGE_NAME = 'host.image.name';\nvar TMP_HOST_IMAGE_ID = 'host.image.id';\nvar TMP_HOST_IMAGE_VERSION = 'host.image.version';\nvar TMP_K8S_CLUSTER_NAME = 'k8s.cluster.name';\nvar TMP_K8S_NODE_NAME = 'k8s.node.name';\nvar TMP_K8S_NODE_UID = 'k8s.node.uid';\nvar TMP_K8S_NAMESPACE_NAME = 'k8s.namespace.name';\nvar TMP_K8S_POD_UID = 'k8s.pod.uid';\nvar TMP_K8S_POD_NAME = 'k8s.pod.name';\nvar TMP_K8S_CONTAINER_NAME = 'k8s.container.name';\nvar TMP_K8S_REPLICASET_UID = 'k8s.replicaset.uid';\nvar TMP_K8S_REPLICASET_NAME = 'k8s.replicaset.name';\nvar TMP_K8S_DEPLOYMENT_UID = 'k8s.deployment.uid';\nvar TMP_K8S_DEPLOYMENT_NAME = 'k8s.deployment.name';\nvar TMP_K8S_STATEFULSET_UID = 'k8s.statefulset.uid';\nvar TMP_K8S_STATEFULSET_NAME = 'k8s.statefulset.name';\nvar TMP_K8S_DAEMONSET_UID = 'k8s.daemonset.uid';\nvar TMP_K8S_DAEMONSET_NAME = 'k8s.daemonset.name';\nvar TMP_K8S_JOB_UID = 'k8s.job.uid';\nvar TMP_K8S_JOB_NAME = 'k8s.job.name';\nvar TMP_K8S_CRONJOB_UID = 'k8s.cronjob.uid';\nvar TMP_K8S_CRONJOB_NAME = 'k8s.cronjob.name';\nvar TMP_OS_TYPE = 'os.type';\nvar TMP_OS_DESCRIPTION = 'os.description';\nvar TMP_OS_NAME = 'os.name';\nvar TMP_OS_VERSION = 'os.version';\nvar TMP_PROCESS_PID = 'process.pid';\nvar TMP_PROCESS_EXECUTABLE_NAME = 'process.executable.name';\nvar TMP_PROCESS_EXECUTABLE_PATH = 'process.executable.path';\nvar TMP_PROCESS_COMMAND = 'process.command';\nvar TMP_PROCESS_COMMAND_LINE = 'process.command_line';\nvar TMP_PROCESS_COMMAND_ARGS = 'process.command_args';\nvar TMP_PROCESS_OWNER = 'process.owner';\nvar TMP_PROCESS_RUNTIME_NAME = 'process.runtime.name';\nvar TMP_PROCESS_RUNTIME_VERSION = 'process.runtime.version';\nvar TMP_PROCESS_RUNTIME_DESCRIPTION = 'process.runtime.description';\nvar TMP_SERVICE_NAME = 'service.name';\nvar TMP_SERVICE_NAMESPACE = 'service.namespace';\nvar TMP_SERVICE_INSTANCE_ID = 'service.instance.id';\nvar TMP_SERVICE_VERSION = 'service.version';\nvar TMP_TELEMETRY_SDK_NAME = 'telemetry.sdk.name';\nvar TMP_TELEMETRY_SDK_LANGUAGE = 'telemetry.sdk.language';\nvar TMP_TELEMETRY_SDK_VERSION = 'telemetry.sdk.version';\nvar TMP_TELEMETRY_AUTO_VERSION = 'telemetry.auto.version';\nvar TMP_WEBENGINE_NAME = 'webengine.name';\nvar TMP_WEBENGINE_VERSION = 'webengine.version';\nvar TMP_WEBENGINE_DESCRIPTION = 'webengine.description';\n/**\n * Name of the cloud provider.\n *\n * @deprecated Use ATTR_CLOUD_PROVIDER in [incubating entry-point]({@link https://github.com/open-telemetry/opentelemetry-js/blob/main/semantic-conventions/README.md#unstable-semconv}).\n */\nexport var SEMRESATTRS_CLOUD_PROVIDER = TMP_CLOUD_PROVIDER;\n/**\n * The cloud account ID the resource is assigned to.\n *\n * @deprecated Use ATTR_CLOUD_ACCOUNT_ID in [incubating entry-point]({@link https://github.com/open-telemetry/opentelemetry-js/blob/main/semantic-conventions/README.md#unstable-semconv}).\n */\nexport var SEMRESATTRS_CLOUD_ACCOUNT_ID = TMP_CLOUD_ACCOUNT_ID;\n/**\n * The geographical region the resource is running. Refer to your provider's docs to see the available regions, for example [Alibaba Cloud regions](https://www.alibabacloud.com/help/doc-detail/40654.htm), [AWS regions](https://aws.amazon.com/about-aws/global-infrastructure/regions_az/), [Azure regions](https://azure.microsoft.com/en-us/global-infrastructure/geographies/), or [Google Cloud regions](https://cloud.google.com/about/locations).\n *\n * @deprecated Use ATTR_CLOUD_REGION in [incubating entry-point]({@link https://github.com/open-telemetry/opentelemetry-js/blob/main/semantic-conventions/README.md#unstable-semconv}).\n */\nexport var SEMRESATTRS_CLOUD_REGION = TMP_CLOUD_REGION;\n/**\n * Cloud regions often have multiple, isolated locations known as zones to increase availability. Availability zone represents the zone where the resource is running.\n *\n * Note: Availability zones are called "zones" on Alibaba Cloud and Google Cloud.\n *\n * @deprecated Use ATTR_CLOUD_AVAILABILITY_ZONE in [incubating entry-point]({@link https://github.com/open-telemetry/opentelemetry-js/blob/main/semantic-conventions/README.md#unstable-semconv}).\n */\nexport var SEMRESATTRS_CLOUD_AVAILABILITY_ZONE = TMP_CLOUD_AVAILABILITY_ZONE;\n/**\n * The cloud platform in use.\n *\n * Note: The prefix of the service SHOULD match the one specified in `cloud.provider`.\n *\n * @deprecated Use ATTR_CLOUD_PLATFORM in [incubating entry-point]({@link https://github.com/open-telemetry/opentelemetry-js/blob/main/semantic-conventions/README.md#unstable-semconv}).\n */\nexport var SEMRESATTRS_CLOUD_PLATFORM = TMP_CLOUD_PLATFORM;\n/**\n * The Amazon Resource Name (ARN) of an [ECS container instance](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ECS_instances.html).\n *\n * @deprecated Use ATTR_AWS_ECS_CONTAINER_ARN in [incubating entry-point]({@link https://github.com/open-telemetry/opentelemetry-js/blob/main/semantic-conventions/README.md#unstable-semconv}).\n */\nexport var SEMRESATTRS_AWS_ECS_CONTAINER_ARN = TMP_AWS_ECS_CONTAINER_ARN;\n/**\n * The ARN of an [ECS cluster](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/clusters.html).\n *\n * @deprecated Use ATTR_AWS_ECS_CLUSTER_ARN in [incubating entry-point]({@link https://github.com/open-telemetry/opentelemetry-js/blob/main/semantic-conventions/README.md#unstable-semconv}).\n */\nexport var SEMRESATTRS_AWS_ECS_CLUSTER_ARN = TMP_AWS_ECS_CLUSTER_ARN;\n/**\n * The [launch type](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/launch_types.html) for an ECS task.\n *\n * @deprecated Use ATTR_AWS_ECS_LAUNCHTYPE in [incubating entry-point]({@link https://github.com/open-telemetry/opentelemetry-js/blob/main/semantic-conventions/README.md#unstable-semconv}).\n */\nexport var SEMRESATTRS_AWS_ECS_LAUNCHTYPE = TMP_AWS_ECS_LAUNCHTYPE;\n/**\n * The ARN of an [ECS task definition](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task_definitions.html).\n *\n * @deprecated Use ATTR_AWS_ECS_TASK_ARN in [incubating entry-point]({@link https://github.com/open-telemetry/opentelemetry-js/blob/main/semantic-conventions/README.md#unstable-semconv}).\n */\nexport var SEMRESATTRS_AWS_ECS_TASK_ARN = TMP_AWS_ECS_TASK_ARN;\n/**\n * The task definition family this task definition is a member of.\n *\n * @deprecated Use ATTR_AWS_ECS_TASK_FAMILY in [incubating entry-point]({@link https://github.com/open-telemetry/opentelemetry-js/blob/main/semantic-conventions/README.md#unstable-semconv}).\n */\nexport var SEMRESATTRS_AWS_ECS_TASK_FAMILY = TMP_AWS_ECS_TASK_FAMILY;\n/**\n * The revision for this task definition.\n *\n * @deprecated Use ATTR_AWS_ECS_TASK_REVISION in [incubating entry-point]({@link https://github.com/open-telemetry/opentelemetry-js/blob/main/semantic-conventions/README.md#unstable-semconv}).\n */\nexport var SEMRESATTRS_AWS_ECS_TASK_REVISION = TMP_AWS_ECS_TASK_REVISION;\n/**\n * The ARN of an EKS cluster.\n *\n * @deprecated Use ATTR_AWS_EKS_CLUSTER_ARN in [incubating entry-point]({@link https://github.com/open-telemetry/opentelemetry-js/blob/main/semantic-conventions/README.md#unstable-semconv}).\n */\nexport var SEMRESATTRS_AWS_EKS_CLUSTER_ARN = TMP_AWS_EKS_CLUSTER_ARN;\n/**\n * The name(s) of the AWS log group(s) an application is writing to.\n *\n * Note: Multiple log groups must be supported for cases like multi-container applications, where a single application has sidecar containers, and each write to their own log group.\n *\n * @deprecated Use ATTR_AWS_LOG_GROUP_NAMES in [incubating entry-point]({@link https://github.com/open-telemetry/opentelemetry-js/blob/main/semantic-conventions/README.md#unstable-semconv}).\n */\nexport var SEMRESATTRS_AWS_LOG_GROUP_NAMES = TMP_AWS_LOG_GROUP_NAMES;\n/**\n * The Amazon Resource Name(s) (ARN) of the AWS log group(s).\n *\n * Note: See the [log group ARN format documentation](https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/iam-access-control-overview-cwl.html#CWL_ARN_Format).\n *\n * @deprecated Use ATTR_AWS_LOG_GROUP_ARNS in [incubating entry-point]({@link https://github.com/open-telemetry/opentelemetry-js/blob/main/semantic-conventions/README.md#unstable-semconv}).\n */\nexport var SEMRESATTRS_AWS_LOG_GROUP_ARNS = TMP_AWS_LOG_GROUP_ARNS;\n/**\n * The name(s) of the AWS log stream(s) an application is writing to.\n *\n * @deprecated Use ATTR_AWS_LOG_STREAM_NAMES in [incubating entry-point]({@link https://github.com/open-telemetry/opentelemetry-js/blob/main/semantic-conventions/README.md#unstable-semconv}).\n */\nexport var SEMRESATTRS_AWS_LOG_STREAM_NAMES = TMP_AWS_LOG_STREAM_NAMES;\n/**\n * The ARN(s) of the AWS log stream(s).\n *\n * Note: See the [log stream ARN format documentation](https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/iam-access-control-overview-cwl.html#CWL_ARN_Format). One log group can contain several log streams, so these ARNs necessarily identify both a log group and a log stream.\n *\n * @deprecated Use ATTR_AWS_LOG_STREAM_ARNS in [incubating entry-point]({@link https://github.com/open-telemetry/opentelemetry-js/blob/main/semantic-conventions/README.md#unstable-semconv}).\n */\nexport var SEMRESATTRS_AWS_LOG_STREAM_ARNS = TMP_AWS_LOG_STREAM_ARNS;\n/**\n * Container name.\n *\n * @deprecated Use ATTR_CONTAINER_NAME in [incubating entry-point]({@link https://github.com/open-telemetry/opentelemetry-js/blob/main/semantic-conventions/README.md#unstable-semconv}).\n */\nexport var SEMRESATTRS_CONTAINER_NAME = TMP_CONTAINER_NAME;\n/**\n * Container ID. Usually a UUID, as for example used to [identify Docker containers](https://docs.docker.com/engine/reference/run/#container-identification). The UUID might be abbreviated.\n *\n * @deprecated Use ATTR_CONTAINER_ID in [incubating entry-point]({@link https://github.com/open-telemetry/opentelemetry-js/blob/main/semantic-conventions/README.md#unstable-semconv}).\n */\nexport var SEMRESATTRS_CONTAINER_ID = TMP_CONTAINER_ID;\n/**\n * The container runtime managing this container.\n *\n * @deprecated Use ATTR_CONTAINER_RUNTIME in [incubating entry-point]({@link https://github.com/open-telemetry/opentelemetry-js/blob/main/semantic-conventions/README.md#unstable-semconv}).\n */\nexport var SEMRESATTRS_CONTAINER_RUNTIME = TMP_CONTAINER_RUNTIME;\n/**\n * Name of the image the container was built on.\n *\n * @deprecated Use ATTR_CONTAINER_IMAGE_NAME in [incubating entry-point]({@link https://github.com/open-telemetry/opentelemetry-js/blob/main/semantic-conventions/README.md#unstable-semconv}).\n */\nexport var SEMRESATTRS_CONTAINER_IMAGE_NAME = TMP_CONTAINER_IMAGE_NAME;\n/**\n * Container image tag.\n *\n * @deprecated Use ATTR_CONTAINER_IMAGE_TAGS in [incubating entry-point]({@link https://github.com/open-telemetry/opentelemetry-js/blob/main/semantic-conventions/README.md#unstable-semconv}).\n */\nexport var SEMRESATTRS_CONTAINER_IMAGE_TAG = TMP_CONTAINER_IMAGE_TAG;\n/**\n * Name of the [deployment environment](https://en.wikipedia.org/wiki/Deployment_environment) (aka deployment tier).\n *\n * @deprecated Use ATTR_DEPLOYMENT_ENVIRONMENT in [incubating entry-point]({@link https://github.com/open-telemetry/opentelemetry-js/blob/main/semantic-conventions/README.md#unstable-semconv}).\n */\nexport var SEMRESATTRS_DEPLOYMENT_ENVIRONMENT = TMP_DEPLOYMENT_ENVIRONMENT;\n/**\n * A unique identifier representing the device.\n *\n * Note: The device identifier MUST only be defined using the values outlined below. This value is not an advertising identifier and MUST NOT be used as such. On iOS (Swift or Objective-C), this value MUST be equal to the [vendor identifier](https://developer.apple.com/documentation/uikit/uidevice/1620059-identifierforvendor). On Android (Java or Kotlin), this value MUST be equal to the Firebase Installation ID or a globally unique UUID which is persisted across sessions in your application. More information can be found [here](https://developer.android.com/training/articles/user-data-ids) on best practices and exact implementation details. Caution should be taken when storing personal data or anything which can identify a user. GDPR and data protection laws may apply, ensure you do your own due diligence.\n *\n * @deprecated Use ATTR_DEVICE_ID in [incubating entry-point]({@link https://github.com/open-telemetry/opentelemetry-js/blob/main/semantic-conventions/README.md#unstable-semconv}).\n */\nexport var SEMRESATTRS_DEVICE_ID = TMP_DEVICE_ID;\n/**\n * The model identifier for the device.\n *\n * Note: It's recommended this value represents a machine readable version of the model identifier rather than the market or consumer-friendly name of the device.\n *\n * @deprecated Use ATTR_DEVICE_MODEL_IDENTIFIER in [incubating entry-point]({@link https://github.com/open-telemetry/opentelemetry-js/blob/main/semantic-conventions/README.md#unstable-semconv}).\n */\nexport var SEMRESATTRS_DEVICE_MODEL_IDENTIFIER = TMP_DEVICE_MODEL_IDENTIFIER;\n/**\n * The marketing name for the device model.\n *\n * Note: It's recommended this value represents a human readable version of the device model rather than a machine readable alternative.\n *\n * @deprecated Use ATTR_DEVICE_MODEL_NAME in [incubating entry-point]({@link https://github.com/open-telemetry/opentelemetry-js/blob/main/semantic-conventions/README.md#unstable-semconv}).\n */\nexport var SEMRESATTRS_DEVICE_MODEL_NAME = TMP_DEVICE_MODEL_NAME;\n/**\n * The name of the single function that this runtime instance executes.\n *\n * Note: This is the name of the function as configured/deployed on the FaaS platform and is usually different from the name of the callback function (which may be stored in the [`code.namespace`/`code.function`](../../trace/semantic_conventions/span-general.md#source-code-attributes) span attributes).\n *\n * @deprecated Use ATTR_FAAS_NAME in [incubating entry-point]({@link https://github.com/open-telemetry/opentelemetry-js/blob/main/semantic-conventions/README.md#unstable-semconv}).\n */\nexport var SEMRESATTRS_FAAS_NAME = TMP_FAAS_NAME;\n/**\n* The unique ID of the single function that this runtime instance executes.\n*\n* Note: Depending on the cloud provider, use:\n\n* **AWS Lambda:** The function [ARN](https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html).\nTake care not to use the "invoked ARN" directly but replace any\n[alias suffix](https://docs.aws.amazon.com/lambda/latest/dg/configuration-aliases.html) with the resolved function version, as the same runtime instance may be invokable with multiple\ndifferent aliases.\n* **GCP:** The [URI of the resource](https://cloud.google.com/iam/docs/full-resource-names)\n* **Azure:** The [Fully Qualified Resource ID](https://docs.microsoft.com/en-us/rest/api/resources/resources/get-by-id).\n\nOn some providers, it may not be possible to determine the full ID at startup,\nwhich is why this field cannot be made required. For example, on AWS the account ID\npart of the ARN is not available without calling another AWS API\nwhich may be deemed too slow for a short-running lambda function.\nAs an alternative, consider setting `faas.id` as a span attribute instead.\n*\n* @deprecated Use ATTR_CLOUD_RESOURCE_ID in [incubating entry-point]({@link https://github.com/open-telemetry/opentelemetry-js/blob/main/semantic-conventions/README.md#unstable-semconv}).\n*/\nexport var SEMRESATTRS_FAAS_ID = TMP_FAAS_ID;\n/**\n* The immutable version of the function being executed.\n*\n* Note: Depending on the cloud provider and platform, use:\n\n* **AWS Lambda:** The [function version](https://docs.aws.amazon.com/lambda/latest/dg/configuration-versions.html)\n (an integer represented as a decimal string).\n* **Google Cloud Run:** The [revision](https://cloud.google.com/run/docs/managing/revisions)\n (i.e., the function name plus the revision suffix).\n* **Google Cloud Functions:** The value of the\n [`K_REVISION` environment variable](https://cloud.google.com/functions/docs/env-var#runtime_environment_variables_set_automatically).\n* **Azure Functions:** Not applicable. Do not set this attribute.\n*\n* @deprecated Use ATTR_FAAS_VERSION in [incubating entry-point]({@link https://github.com/open-telemetry/opentelemetry-js/blob/main/semantic-conventions/README.md#unstable-semconv}).\n*/\nexport var SEMRESATTRS_FAAS_VERSION = TMP_FAAS_VERSION;\n/**\n * The execution environment ID as a string, that will be potentially reused for other invocations to the same function/function version.\n *\n * Note: * **AWS Lambda:** Use the (full) log stream name.\n *\n * @deprecated Use ATTR_FAAS_INSTANCE in [incubating entry-point]({@link https://github.com/open-telemetry/opentelemetry-js/blob/main/semantic-conventions/README.md#unstable-semconv}).\n */\nexport var SEMRESATTRS_FAAS_INSTANCE = TMP_FAAS_INSTANCE;\n/**\n * The amount of memory available to the serverless function in MiB.\n *\n * Note: It's recommended to set this attribute since e.g. too little memory can easily stop a Java AWS Lambda function from working correctly. On AWS Lambda, the environment variable `AWS_LAMBDA_FUNCTION_MEMORY_SIZE` provides this information.\n *\n * @deprecated Use ATTR_FAAS_MAX_MEMORY in [incubating entry-point]({@link https://github.com/open-telemetry/opentelemetry-js/blob/main/semantic-conventions/README.md#unstable-semconv}).\n */\nexport var SEMRESATTRS_FAAS_MAX_MEMORY = TMP_FAAS_MAX_MEMORY;\n/**\n * Unique host ID. For Cloud, this must be the instance_id assigned by the cloud provider.\n *\n * @deprecated Use ATTR_HOST_ID in [incubating entry-point]({@link https://github.com/open-telemetry/opentelemetry-js/blob/main/semantic-conventions/README.md#unstable-semconv}).\n */\nexport var SEMRESATTRS_HOST_ID = TMP_HOST_ID;\n/**\n * Name of the host. On Unix systems, it may contain what the hostname command returns, or the fully qualified hostname, or another name specified by the user.\n *\n * @deprecated Use ATTR_HOST_NAME in [incubating entry-point]({@link https://github.com/open-telemetry/opentelemetry-js/blob/main/semantic-conventions/README.md#unstable-semconv}).\n */\nexport var SEMRESATTRS_HOST_NAME = TMP_HOST_NAME;\n/**\n * Type of host. For Cloud, this must be the machine type.\n *\n * @deprecated Use ATTR_HOST_TYPE in [incubating entry-point]({@link https://github.com/open-telemetry/opentelemetry-js/blob/main/semantic-conventions/README.md#unstable-semconv}).\n */\nexport var SEMRESATTRS_HOST_TYPE = TMP_HOST_TYPE;\n/**\n * The CPU architecture the host system is running on.\n *\n * @deprecated Use ATTR_HOST_ARCH in [incubating entry-point]({@link https://github.com/open-telemetry/opentelemetry-js/blob/main/semantic-conventions/README.md#unstable-semconv}).\n */\nexport var SEMRESATTRS_HOST_ARCH = TMP_HOST_ARCH;\n/**\n * Name of the VM image or OS install the host was instantiated from.\n *\n * @deprecated Use ATTR_HOST_IMAGE_NAME in [incubating entry-point]({@link https://github.com/open-telemetry/opentelemetry-js/blob/main/semantic-conventions/README.md#unstable-semconv}).\n */\nexport var SEMRESATTRS_HOST_IMAGE_NAME = TMP_HOST_IMAGE_NAME;\n/**\n * VM image ID. For Cloud, this value is from the provider.\n *\n * @deprecated Use ATTR_HOST_IMAGE_ID in [incubating entry-point]({@link https://github.com/open-telemetry/opentelemetry-js/blob/main/semantic-conventions/README.md#unstable-semconv}).\n */\nexport var SEMRESATTRS_HOST_IMAGE_ID = TMP_HOST_IMAGE_ID;\n/**\n * The version string of the VM image as defined in [Version Attributes](README.md#version-attributes).\n *\n * @deprecated Use ATTR_HOST_IMAGE_VERSION in [incubating entry-point]({@link https://github.com/open-telemetry/opentelemetry-js/blob/main/semantic-conventions/README.md#unstable-semconv}).\n */\nexport var SEMRESATTRS_HOST_IMAGE_VERSION = TMP_HOST_IMAGE_VERSION;\n/**\n * The name of the cluster.\n *\n * @deprecated Use ATTR_K8S_CLUSTER_NAME in [incubating entry-point]({@link https://github.com/open-telemetry/opentelemetry-js/blob/main/semantic-conventions/README.md#unstable-semconv}).\n */\nexport var SEMRESATTRS_K8S_CLUSTER_NAME = TMP_K8S_CLUSTER_NAME;\n/**\n * The name of the Node.\n *\n * @deprecated Use ATTR_K8S_NODE_NAME in [incubating entry-point]({@link https://github.com/open-telemetry/opentelemetry-js/blob/main/semantic-conventions/README.md#unstable-semconv}).\n */\nexport var SEMRESATTRS_K8S_NODE_NAME = TMP_K8S_NODE_NAME;\n/**\n * The UID of the Node.\n *\n * @deprecated Use ATTR_K8S_NODE_UID in [incubating entry-point]({@link https://github.com/open-telemetry/opentelemetry-js/blob/main/semantic-conventions/README.md#unstable-semconv}).\n */\nexport var SEMRESATTRS_K8S_NODE_UID = TMP_K8S_NODE_UID;\n/**\n * The name of the namespace that the pod is running in.\n *\n * @deprecated Use ATTR_K8S_NAMESPACE_NAME in [incubating entry-point]({@link https://github.com/open-telemetry/opentelemetry-js/blob/main/semantic-conventions/README.md#unstable-semconv}).\n */\nexport var SEMRESATTRS_K8S_NAMESPACE_NAME = TMP_K8S_NAMESPACE_NAME;\n/**\n * The UID of the Pod.\n *\n * @deprecated Use ATTR_K8S_POD_UID in [incubating entry-point]({@link https://github.com/open-telemetry/opentelemetry-js/blob/main/semantic-conventions/README.md#unstable-semconv}).\n */\nexport var SEMRESATTRS_K8S_POD_UID = TMP_K8S_POD_UID;\n/**\n * The name of the Pod.\n *\n * @deprecated Use ATTR_K8S_POD_NAME in [incubating entry-point]({@link https://github.com/open-telemetry/opentelemetry-js/blob/main/semantic-conventions/README.md#unstable-semconv}).\n */\nexport var SEMRESATTRS_K8S_POD_NAME = TMP_K8S_POD_NAME;\n/**\n * The name of the Container in a Pod template.\n *\n * @deprecated Use ATTR_K8S_CONTAINER_NAME in [incubating entry-point]({@link https://github.com/open-telemetry/opentelemetry-js/blob/main/semantic-conventions/README.md#unstable-semconv}).\n */\nexport var SEMRESATTRS_K8S_CONTAINER_NAME = TMP_K8S_CONTAINER_NAME;\n/**\n * The UID of the ReplicaSet.\n *\n * @deprecated Use ATTR_K8S_REPLICASET_UID in [incubating entry-point]({@link https://github.com/open-telemetry/opentelemetry-js/blob/main/semantic-conventions/README.md#unstable-semconv}).\n */\nexport var SEMRESATTRS_K8S_REPLICASET_UID = TMP_K8S_REPLICASET_UID;\n/**\n * The name of the ReplicaSet.\n *\n * @deprecated Use ATTR_K8S_REPLICASET_NAME in [incubating entry-point]({@link https://github.com/open-telemetry/opentelemetry-js/blob/main/semantic-conventions/README.md#unstable-semconv}).\n */\nexport var SEMRESATTRS_K8S_REPLICASET_NAME = TMP_K8S_REPLICASET_NAME;\n/**\n * The UID of the Deployment.\n *\n * @deprecated Use ATTR_K8S_DEPLOYMENT_UID in [incubating entry-point]({@link https://github.com/open-telemetry/opentelemetry-js/blob/main/semantic-conventions/README.md#unstable-semconv}).\n */\nexport var SEMRESATTRS_K8S_DEPLOYMENT_UID = TMP_K8S_DEPLOYMENT_UID;\n/**\n * The name of the Deployment.\n *\n * @deprecated Use ATTR_K8S_DEPLOYMENT_NAME in [incubating entry-point]({@link https://github.com/open-telemetry/opentelemetry-js/blob/main/semantic-conventions/README.md#unstable-semconv}).\n */\nexport var SEMRESATTRS_K8S_DEPLOYMENT_NAME = TMP_K8S_DEPLOYMENT_NAME;\n/**\n * The UID of the StatefulSet.\n *\n * @deprecated Use ATTR_K8S_STATEFULSET_UID in [incubating entry-point]({@link https://github.com/open-telemetry/opentelemetry-js/blob/main/semantic-conventions/README.md#unstable-semconv}).\n */\nexport var SEMRESATTRS_K8S_STATEFULSET_UID = TMP_K8S_STATEFULSET_UID;\n/**\n * The name of the StatefulSet.\n *\n * @deprecated Use ATTR_K8S_STATEFULSET_NAME in [incubating entry-point]({@link https://github.com/open-telemetry/opentelemetry-js/blob/main/semantic-conventions/README.md#unstable-semconv}).\n */\nexport var SEMRESATTRS_K8S_STATEFULSET_NAME = TMP_K8S_STATEFULSET_NAME;\n/**\n * The UID of the DaemonSet.\n *\n * @deprecated Use ATTR_K8S_DAEMONSET_UID in [incubating entry-point]({@link https://github.com/open-telemetry/opentelemetry-js/blob/main/semantic-conventions/README.md#unstable-semconv}).\n */\nexport var SEMRESATTRS_K8S_DAEMONSET_UID = TMP_K8S_DAEMONSET_UID;\n/**\n * The name of the DaemonSet.\n *\n * @deprecated Use ATTR_K8S_DAEMONSET_NAME in [incubating entry-point]({@link https://github.com/open-telemetry/opentelemetry-js/blob/main/semantic-conventions/README.md#unstable-semconv}).\n */\nexport var SEMRESATTRS_K8S_DAEMONSET_NAME = TMP_K8S_DAEMONSET_NAME;\n/**\n * The UID of the Job.\n *\n * @deprecated Use ATTR_K8S_JOB_UID in [incubating entry-point]({@link https://github.com/open-telemetry/opentelemetry-js/blob/main/semantic-conventions/README.md#unstable-semconv}).\n */\nexport var SEMRESATTRS_K8S_JOB_UID = TMP_K8S_JOB_UID;\n/**\n * The name of the Job.\n *\n * @deprecated Use ATTR_K8S_JOB_NAME in [incubating entry-point]({@link https://github.com/open-telemetry/opentelemetry-js/blob/main/semantic-conventions/README.md#unstable-semconv}).\n */\nexport var SEMRESATTRS_K8S_JOB_NAME = TMP_K8S_JOB_NAME;\n/**\n * The UID of the CronJob.\n *\n * @deprecated Use ATTR_K8S_CRONJOB_UID in [incubating entry-point]({@link https://github.com/open-telemetry/opentelemetry-js/blob/main/semantic-conventions/README.md#unstable-semconv}).\n */\nexport var SEMRESATTRS_K8S_CRONJOB_UID = TMP_K8S_CRONJOB_UID;\n/**\n * The name of the CronJob.\n *\n * @deprecated Use ATTR_K8S_CRONJOB_NAME in [incubating entry-point]({@link https://github.com/open-telemetry/opentelemetry-js/blob/main/semantic-conventions/README.md#unstable-semconv}).\n */\nexport var SEMRESATTRS_K8S_CRONJOB_NAME = TMP_K8S_CRONJOB_NAME;\n/**\n * The operating system type.\n *\n * @deprecated Use ATTR_OS_TYPE in [incubating entry-point]({@link https://github.com/open-telemetry/opentelemetry-js/blob/main/semantic-conventions/README.md#unstable-semconv}).\n */\nexport var SEMRESATTRS_OS_TYPE = TMP_OS_TYPE;\n/**\n * Human readable (not intended to be parsed) OS version information, like e.g. reported by `ver` or `lsb_release -a` commands.\n *\n * @deprecated Use ATTR_OS_DESCRIPTION in [incubating entry-point]({@link https://github.com/open-telemetry/opentelemetry-js/blob/main/semantic-conventions/README.md#unstable-semconv}).\n */\nexport var SEMRESATTRS_OS_DESCRIPTION = TMP_OS_DESCRIPTION;\n/**\n * Human readable operating system name.\n *\n * @deprecated Use ATTR_OS_NAME in [incubating entry-point]({@link https://github.com/open-telemetry/opentelemetry-js/blob/main/semantic-conventions/README.md#unstable-semconv}).\n */\nexport var SEMRESATTRS_OS_NAME = TMP_OS_NAME;\n/**\n * The version string of the operating system as defined in [Version Attributes](../../resource/semantic_conventions/README.md#version-attributes).\n *\n * @deprecated Use ATTR_OS_VERSION in [incubating entry-point]({@link https://github.com/open-telemetry/opentelemetry-js/blob/main/semantic-conventions/README.md#unstable-semconv}).\n */\nexport var SEMRESATTRS_OS_VERSION = TMP_OS_VERSION;\n/**\n * Process identifier (PID).\n *\n * @deprecated Use ATTR_PROCESS_PID in [incubating entry-point]({@link https://github.com/open-telemetry/opentelemetry-js/blob/main/semantic-conventions/README.md#unstable-semconv}).\n */\nexport var SEMRESATTRS_PROCESS_PID = TMP_PROCESS_PID;\n/**\n * The name of the process executable. On Linux based systems, can be set to the `Name` in `proc/[pid]/status`. On Windows, can be set to the base name of `GetProcessImageFileNameW`.\n *\n * @deprecated Use ATTR_PROCESS_EXECUTABLE_NAME in [incubating entry-point]({@link https://github.com/open-telemetry/opentelemetry-js/blob/main/semantic-conventions/README.md#unstable-semconv}).\n */\nexport var SEMRESATTRS_PROCESS_EXECUTABLE_NAME = TMP_PROCESS_EXECUTABLE_NAME;\n/**\n * The full path to the process executable. On Linux based systems, can be set to the target of `proc/[pid]/exe`. On Windows, can be set to the result of `GetProcessImageFileNameW`.\n *\n * @deprecated Use ATTR_PROCESS_EXECUTABLE_PATH in [incubating entry-point]({@link https://github.com/open-telemetry/opentelemetry-js/blob/main/semantic-conventions/README.md#unstable-semconv}).\n */\nexport var SEMRESATTRS_PROCESS_EXECUTABLE_PATH = TMP_PROCESS_EXECUTABLE_PATH;\n/**\n * The command used to launch the process (i.e. the command name). On Linux based systems, can be set to the zeroth string in `proc/[pid]/cmdline`. On Windows, can be set to the first parameter extracted from `GetCommandLineW`.\n *\n * @deprecated Use ATTR_PROCESS_COMMAND in [incubating entry-point]({@link https://github.com/open-telemetry/opentelemetry-js/blob/main/semantic-conventions/README.md#unstable-semconv}).\n */\nexport var SEMRESATTRS_PROCESS_COMMAND = TMP_PROCESS_COMMAND;\n/**\n * The full command used to launch the process as a single string representing the full command. On Windows, can be set to the result of `GetCommandLineW`. Do not set this if you have to assemble it just for monitoring; use `process.command_args` instead.\n *\n * @deprecated Use ATTR_PROCESS_COMMAND_LINE in [incubating entry-point]({@link https://github.com/open-telemetry/opentelemetry-js/blob/main/semantic-conventions/README.md#unstable-semconv}).\n */\nexport var SEMRESATTRS_PROCESS_COMMAND_LINE = TMP_PROCESS_COMMAND_LINE;\n/**\n * All the command arguments (including the command/executable itself) as received by the process. On Linux-based systems (and some other Unixoid systems supporting procfs), can be set according to the list of null-delimited strings extracted from `proc/[pid]/cmdline`. For libc-based executables, this would be the full argv vector passed to `main`.\n *\n * @deprecated Use ATTR_PROCESS_COMMAND_ARGS in [incubating entry-point]({@link https://github.com/open-telemetry/opentelemetry-js/blob/main/semantic-conventions/README.md#unstable-semconv}).\n */\nexport var SEMRESATTRS_PROCESS_COMMAND_ARGS = TMP_PROCESS_COMMAND_ARGS;\n/**\n * The username of the user that owns the process.\n *\n * @deprecated Use ATTR_PROCESS_OWNER in [incubating entry-point]({@link https://github.com/open-telemetry/opentelemetry-js/blob/main/semantic-conventions/README.md#unstable-semconv}).\n */\nexport var SEMRESATTRS_PROCESS_OWNER = TMP_PROCESS_OWNER;\n/**\n * The name of the runtime of this process. For compiled native binaries, this SHOULD be the name of the compiler.\n *\n * @deprecated Use ATTR_PROCESS_RUNTIME_NAME in [incubating entry-point]({@link https://github.com/open-telemetry/opentelemetry-js/blob/main/semantic-conventions/README.md#unstable-semconv}).\n */\nexport var SEMRESATTRS_PROCESS_RUNTIME_NAME = TMP_PROCESS_RUNTIME_NAME;\n/**\n * The version of the runtime of this process, as returned by the runtime without modification.\n *\n * @deprecated Use ATTR_PROCESS_RUNTIME_VERSION in [incubating entry-point]({@link https://github.com/open-telemetry/opentelemetry-js/blob/main/semantic-conventions/README.md#unstable-semconv}).\n */\nexport var SEMRESATTRS_PROCESS_RUNTIME_VERSION = TMP_PROCESS_RUNTIME_VERSION;\n/**\n * An additional description about the runtime of the process, for example a specific vendor customization of the runtime environment.\n *\n * @deprecated Use ATTR_PROCESS_RUNTIME_DESCRIPTION in [incubating entry-point]({@link https://github.com/open-telemetry/opentelemetry-js/blob/main/semantic-conventions/README.md#unstable-semconv}).\n */\nexport var SEMRESATTRS_PROCESS_RUNTIME_DESCRIPTION = TMP_PROCESS_RUNTIME_DESCRIPTION;\n/**\n * Logical name of the service.\n *\n * Note: MUST be the same for all instances of horizontally scaled services. If the value was not specified, SDKs MUST fallback to `unknown_service:` concatenated with [`process.executable.name`](process.md#process), e.g. `unknown_service:bash`. If `process.executable.name` is not available, the value MUST be set to `unknown_service`.\n *\n * @deprecated Use ATTR_SERVICE_NAME.\n */\nexport var SEMRESATTRS_SERVICE_NAME = TMP_SERVICE_NAME;\n/**\n * A namespace for `service.name`.\n *\n * Note: A string value having a meaning that helps to distinguish a group of services, for example the team name that owns a group of services. `service.name` is expected to be unique within the same namespace. If `service.namespace` is not specified in the Resource then `service.name` is expected to be unique for all services that have no explicit namespace defined (so the empty/unspecified namespace is simply one more valid namespace). Zero-length namespace string is assumed equal to unspecified namespace.\n *\n * @deprecated Use ATTR_SERVICE_NAMESPACE in [incubating entry-point]({@link https://github.com/open-telemetry/opentelemetry-js/blob/main/semantic-conventions/README.md#unstable-semconv}).\n */\nexport var SEMRESATTRS_SERVICE_NAMESPACE = TMP_SERVICE_NAMESPACE;\n/**\n * The string ID of the service instance.\n *\n * Note: MUST be unique for each instance of the same `service.namespace,service.name` pair (in other words `service.namespace,service.name,service.instance.id` triplet MUST be globally unique). The ID helps to distinguish instances of the same service that exist at the same time (e.g. instances of a horizontally scaled service). It is preferable for the ID to be persistent and stay the same for the lifetime of the service instance, however it is acceptable that the ID is ephemeral and changes during important lifetime events for the service (e.g. service restarts). If the service has no inherent unique ID that can be used as the value of this attribute it is recommended to generate a random Version 1 or Version 4 RFC 4122 UUID (services aiming for reproducible UUIDs may also use Version 5, see RFC 4122 for more recommendations).\n *\n * @deprecated Use ATTR_SERVICE_INSTANCE_ID in [incubating entry-point]({@link https://github.com/open-telemetry/opentelemetry-js/blob/main/semantic-conventions/README.md#unstable-semconv}).\n */\nexport var SEMRESATTRS_SERVICE_INSTANCE_ID = TMP_SERVICE_INSTANCE_ID;\n/**\n * The version string of the service API or implementation.\n *\n * @deprecated Use ATTR_SERVICE_VERSION.\n */\nexport var SEMRESATTRS_SERVICE_VERSION = TMP_SERVICE_VERSION;\n/**\n * The name of the telemetry SDK as defined above.\n *\n * @deprecated Use ATTR_TELEMETRY_SDK_NAME.\n */\nexport var SEMRESATTRS_TELEMETRY_SDK_NAME = TMP_TELEMETRY_SDK_NAME;\n/**\n * The language of the telemetry SDK.\n *\n * @deprecated Use ATTR_TELEMETRY_SDK_LANGUAGE.\n */\nexport var SEMRESATTRS_TELEMETRY_SDK_LANGUAGE = TMP_TELEMETRY_SDK_LANGUAGE;\n/**\n * The version string of the telemetry SDK.\n *\n * @deprecated Use ATTR_TELEMETRY_SDK_VERSION.\n */\nexport var SEMRESATTRS_TELEMETRY_SDK_VERSION = TMP_TELEMETRY_SDK_VERSION;\n/**\n * The version string of the auto instrumentation agent, if used.\n *\n * @deprecated Use ATTR_TELEMETRY_DISTRO_VERSION in [incubating entry-point]({@link https://github.com/open-telemetry/opentelemetry-js/blob/main/semantic-conventions/README.md#unstable-semconv}).\n */\nexport var SEMRESATTRS_TELEMETRY_AUTO_VERSION = TMP_TELEMETRY_AUTO_VERSION;\n/**\n * The name of the web engine.\n *\n * @deprecated Use ATTR_WEBENGINE_NAME in [incubating entry-point]({@link https://github.com/open-telemetry/opentelemetry-js/blob/main/semantic-conventions/README.md#unstable-semconv}).\n */\nexport var SEMRESATTRS_WEBENGINE_NAME = TMP_WEBENGINE_NAME;\n/**\n * The version of the web engine.\n *\n * @deprecated Use ATTR_WEBENGINE_VERSION in [incubating entry-point]({@link https://github.com/open-telemetry/opentelemetry-js/blob/main/semantic-conventions/README.md#unstable-semconv}).\n */\nexport var SEMRESATTRS_WEBENGINE_VERSION = TMP_WEBENGINE_VERSION;\n/**\n * Additional description of the web engine (e.g. detailed version and edition information).\n *\n * @deprecated Use ATTR_WEBENGINE_DESCRIPTION in [incubating entry-point]({@link https://github.com/open-telemetry/opentelemetry-js/blob/main/semantic-conventions/README.md#unstable-semconv}).\n */\nexport var SEMRESATTRS_WEBENGINE_DESCRIPTION = TMP_WEBENGINE_DESCRIPTION;\n/**\n * Create exported Value Map for SemanticResourceAttributes values\n * @deprecated Use the SEMRESATTRS_XXXXX constants rather than the SemanticResourceAttributes.XXXXX for bundle minification\n */\nexport var SemanticResourceAttributes = \n/*#__PURE__*/ createConstMap([\n TMP_CLOUD_PROVIDER,\n TMP_CLOUD_ACCOUNT_ID,\n TMP_CLOUD_REGION,\n TMP_CLOUD_AVAILABILITY_ZONE,\n TMP_CLOUD_PLATFORM,\n TMP_AWS_ECS_CONTAINER_ARN,\n TMP_AWS_ECS_CLUSTER_ARN,\n TMP_AWS_ECS_LAUNCHTYPE,\n TMP_AWS_ECS_TASK_ARN,\n TMP_AWS_ECS_TASK_FAMILY,\n TMP_AWS_ECS_TASK_REVISION,\n TMP_AWS_EKS_CLUSTER_ARN,\n TMP_AWS_LOG_GROUP_NAMES,\n TMP_AWS_LOG_GROUP_ARNS,\n TMP_AWS_LOG_STREAM_NAMES,\n TMP_AWS_LOG_STREAM_ARNS,\n TMP_CONTAINER_NAME,\n TMP_CONTAINER_ID,\n TMP_CONTAINER_RUNTIME,\n TMP_CONTAINER_IMAGE_NAME,\n TMP_CONTAINER_IMAGE_TAG,\n TMP_DEPLOYMENT_ENVIRONMENT,\n TMP_DEVICE_ID,\n TMP_DEVICE_MODEL_IDENTIFIER,\n TMP_DEVICE_MODEL_NAME,\n TMP_FAAS_NAME,\n TMP_FAAS_ID,\n TMP_FAAS_VERSION,\n TMP_FAAS_INSTANCE,\n TMP_FAAS_MAX_MEMORY,\n TMP_HOST_ID,\n TMP_HOST_NAME,\n TMP_HOST_TYPE,\n TMP_HOST_ARCH,\n TMP_HOST_IMAGE_NAME,\n TMP_HOST_IMAGE_ID,\n TMP_HOST_IMAGE_VERSION,\n TMP_K8S_CLUSTER_NAME,\n TMP_K8S_NODE_NAME,\n TMP_K8S_NODE_UID,\n TMP_K8S_NAMESPACE_NAME,\n TMP_K8S_POD_UID,\n TMP_K8S_POD_NAME,\n TMP_K8S_CONTAINER_NAME,\n TMP_K8S_REPLICASET_UID,\n TMP_K8S_REPLICASET_NAME,\n TMP_K8S_DEPLOYMENT_UID,\n TMP_K8S_DEPLOYMENT_NAME,\n TMP_K8S_STATEFULSET_UID,\n TMP_K8S_STATEFULSET_NAME,\n TMP_K8S_DAEMONSET_UID,\n TMP_K8S_DAEMONSET_NAME,\n TMP_K8S_JOB_UID,\n TMP_K8S_JOB_NAME,\n TMP_K8S_CRONJOB_UID,\n TMP_K8S_CRONJOB_NAME,\n TMP_OS_TYPE,\n TMP_OS_DESCRIPTION,\n TMP_OS_NAME,\n TMP_OS_VERSION,\n TMP_PROCESS_PID,\n TMP_PROCESS_EXECUTABLE_NAME,\n TMP_PROCESS_EXECUTABLE_PATH,\n TMP_PROCESS_COMMAND,\n TMP_PROCESS_COMMAND_LINE,\n TMP_PROCESS_COMMAND_ARGS,\n TMP_PROCESS_OWNER,\n TMP_PROCESS_RUNTIME_NAME,\n TMP_PROCESS_RUNTIME_VERSION,\n TMP_PROCESS_RUNTIME_DESCRIPTION,\n TMP_SERVICE_NAME,\n TMP_SERVICE_NAMESPACE,\n TMP_SERVICE_INSTANCE_ID,\n TMP_SERVICE_VERSION,\n TMP_TELEMETRY_SDK_NAME,\n TMP_TELEMETRY_SDK_LANGUAGE,\n TMP_TELEMETRY_SDK_VERSION,\n TMP_TELEMETRY_AUTO_VERSION,\n TMP_WEBENGINE_NAME,\n TMP_WEBENGINE_VERSION,\n TMP_WEBENGINE_DESCRIPTION,\n]);\n/* ----------------------------------------------------------------------------------------------------------\n * Constant values for CloudProviderValues enum definition\n *\n * Name of the cloud provider.\n * ---------------------------------------------------------------------------------------------------------- */\n// Temporary local constants to assign to the individual exports and the namespaced version\n// Required to avoid the namespace exports using the unminifiable export names for some package types\nvar TMP_CLOUDPROVIDERVALUES_ALIBABA_CLOUD = 'alibaba_cloud';\nvar TMP_CLOUDPROVIDERVALUES_AWS = 'aws';\nvar TMP_CLOUDPROVIDERVALUES_AZURE = 'azure';\nvar TMP_CLOUDPROVIDERVALUES_GCP = 'gcp';\n/**\n * Name of the cloud provider.\n *\n * @deprecated Use CLOUD_PROVIDER_VALUE_ALIBABA_CLOUD in [incubating entry-point]({@link https://github.com/open-telemetry/opentelemetry-js/blob/main/semantic-conventions/README.md#unstable-semconv}).\n */\nexport var CLOUDPROVIDERVALUES_ALIBABA_CLOUD = TMP_CLOUDPROVIDERVALUES_ALIBABA_CLOUD;\n/**\n * Name of the cloud provider.\n *\n * @deprecated Use CLOUD_PROVIDER_VALUE_AWS in [incubating entry-point]({@link https://github.com/open-telemetry/opentelemetry-js/blob/main/semantic-conventions/README.md#unstable-semconv}).\n */\nexport var CLOUDPROVIDERVALUES_AWS = TMP_CLOUDPROVIDERVALUES_AWS;\n/**\n * Name of the cloud provider.\n *\n * @deprecated Use CLOUD_PROVIDER_VALUE_AZURE in [incubating entry-point]({@link https://github.com/open-telemetry/opentelemetry-js/blob/main/semantic-conventions/README.md#unstable-semconv}).\n */\nexport var CLOUDPROVIDERVALUES_AZURE = TMP_CLOUDPROVIDERVALUES_AZURE;\n/**\n * Name of the cloud provider.\n *\n * @deprecated Use CLOUD_PROVIDER_VALUE_GCP in [incubating entry-point]({@link https://github.com/open-telemetry/opentelemetry-js/blob/main/semantic-conventions/README.md#unstable-semconv}).\n */\nexport var CLOUDPROVIDERVALUES_GCP = TMP_CLOUDPROVIDERVALUES_GCP;\n/**\n * The constant map of values for CloudProviderValues.\n * @deprecated Use the CLOUDPROVIDERVALUES_XXXXX constants rather than the CloudProviderValues.XXXXX for bundle minification.\n */\nexport var CloudProviderValues = \n/*#__PURE__*/ createConstMap([\n TMP_CLOUDPROVIDERVALUES_ALIBABA_CLOUD,\n TMP_CLOUDPROVIDERVALUES_AWS,\n TMP_CLOUDPROVIDERVALUES_AZURE,\n TMP_CLOUDPROVIDERVALUES_GCP,\n]);\n/* ----------------------------------------------------------------------------------------------------------\n * Constant values for CloudPlatformValues enum definition\n *\n * The cloud platform in use.\n *\n * Note: The prefix of the service SHOULD match the one specified in `cloud.provider`.\n * ---------------------------------------------------------------------------------------------------------- */\n// Temporary local constants to assign to the individual exports and the namespaced version\n// Required to avoid the namespace exports using the unminifiable export names for some package types\nvar TMP_CLOUDPLATFORMVALUES_ALIBABA_CLOUD_ECS = 'alibaba_cloud_ecs';\nvar TMP_CLOUDPLATFORMVALUES_ALIBABA_CLOUD_FC = 'alibaba_cloud_fc';\nvar TMP_CLOUDPLATFORMVALUES_AWS_EC2 = 'aws_ec2';\nvar TMP_CLOUDPLATFORMVALUES_AWS_ECS = 'aws_ecs';\nvar TMP_CLOUDPLATFORMVALUES_AWS_EKS = 'aws_eks';\nvar TMP_CLOUDPLATFORMVALUES_AWS_LAMBDA = 'aws_lambda';\nvar TMP_CLOUDPLATFORMVALUES_AWS_ELASTIC_BEANSTALK = 'aws_elastic_beanstalk';\nvar TMP_CLOUDPLATFORMVALUES_AZURE_VM = 'azure_vm';\nvar TMP_CLOUDPLATFORMVALUES_AZURE_CONTAINER_INSTANCES = 'azure_container_instances';\nvar TMP_CLOUDPLATFORMVALUES_AZURE_AKS = 'azure_aks';\nvar TMP_CLOUDPLATFORMVALUES_AZURE_FUNCTIONS = 'azure_functions';\nvar TMP_CLOUDPLATFORMVALUES_AZURE_APP_SERVICE = 'azure_app_service';\nvar TMP_CLOUDPLATFORMVALUES_GCP_COMPUTE_ENGINE = 'gcp_compute_engine';\nvar TMP_CLOUDPLATFORMVALUES_GCP_CLOUD_RUN = 'gcp_cloud_run';\nvar TMP_CLOUDPLATFORMVALUES_GCP_KUBERNETES_ENGINE = 'gcp_kubernetes_engine';\nvar TMP_CLOUDPLATFORMVALUES_GCP_CLOUD_FUNCTIONS = 'gcp_cloud_functions';\nvar TMP_CLOUDPLATFORMVALUES_GCP_APP_ENGINE = 'gcp_app_engine';\n/**\n * The cloud platform in use.\n *\n * Note: The prefix of the service SHOULD match the one specified in `cloud.provider`.\n *\n * @deprecated Use CLOUD_PLATFORM_VALUE_ALIBABA_CLOUD_ECS in [incubating entry-point]({@link https://github.com/open-telemetry/opentelemetry-js/blob/main/semantic-conventions/README.md#unstable-semconv}).\n */\nexport var CLOUDPLATFORMVALUES_ALIBABA_CLOUD_ECS = TMP_CLOUDPLATFORMVALUES_ALIBABA_CLOUD_ECS;\n/**\n * The cloud platform in use.\n *\n * Note: The prefix of the service SHOULD match the one specified in `cloud.provider`.\n *\n * @deprecated Use CLOUD_PLATFORM_VALUE_ALIBABA_CLOUD_FC in [incubating entry-point]({@link https://github.com/open-telemetry/opentelemetry-js/blob/main/semantic-conventions/README.md#unstable-semconv}).\n */\nexport var CLOUDPLATFORMVALUES_ALIBABA_CLOUD_FC = TMP_CLOUDPLATFORMVALUES_ALIBABA_CLOUD_FC;\n/**\n * The cloud platform in use.\n *\n * Note: The prefix of the service SHOULD match the one specified in `cloud.provider`.\n *\n * @deprecated Use CLOUD_PLATFORM_VALUE_AWS_EC2 in [incubating entry-point]({@link https://github.com/open-telemetry/opentelemetry-js/blob/main/semantic-conventions/README.md#unstable-semconv}).\n */\nexport var CLOUDPLATFORMVALUES_AWS_EC2 = TMP_CLOUDPLATFORMVALUES_AWS_EC2;\n/**\n * The cloud platform in use.\n *\n * Note: The prefix of the service SHOULD match the one specified in `cloud.provider`.\n *\n * @deprecated Use CLOUD_PLATFORM_VALUE_AWS_ECS in [incubating entry-point]({@link https://github.com/open-telemetry/opentelemetry-js/blob/main/semantic-conventions/README.md#unstable-semconv}).\n */\nexport var CLOUDPLATFORMVALUES_AWS_ECS = TMP_CLOUDPLATFORMVALUES_AWS_ECS;\n/**\n * The cloud platform in use.\n *\n * Note: The prefix of the service SHOULD match the one specified in `cloud.provider`.\n *\n * @deprecated Use CLOUD_PLATFORM_VALUE_AWS_EKS in [incubating entry-point]({@link https://github.com/open-telemetry/opentelemetry-js/blob/main/semantic-conventions/README.md#unstable-semconv}).\n */\nexport var CLOUDPLATFORMVALUES_AWS_EKS = TMP_CLOUDPLATFORMVALUES_AWS_EKS;\n/**\n * The cloud platform in use.\n *\n * Note: The prefix of the service SHOULD match the one specified in `cloud.provider`.\n *\n * @deprecated Use CLOUD_PLATFORM_VALUE_AWS_LAMBDA in [incubating entry-point]({@link https://github.com/open-telemetry/opentelemetry-js/blob/main/semantic-conventions/README.md#unstable-semconv}).\n */\nexport var CLOUDPLATFORMVALUES_AWS_LAMBDA = TMP_CLOUDPLATFORMVALUES_AWS_LAMBDA;\n/**\n * The cloud platform in use.\n *\n * Note: The prefix of the service SHOULD match the one specified in `cloud.provider`.\n *\n * @deprecated Use CLOUD_PLATFORM_VALUE_AWS_ELASTIC_BEANSTALK in [incubating entry-point]({@link https://github.com/open-telemetry/opentelemetry-js/blob/main/semantic-conventions/README.md#unstable-semconv}).\n */\nexport var CLOUDPLATFORMVALUES_AWS_ELASTIC_BEANSTALK = TMP_CLOUDPLATFORMVALUES_AWS_ELASTIC_BEANSTALK;\n/**\n * The cloud platform in use.\n *\n * Note: The prefix of the service SHOULD match the one specified in `cloud.provider`.\n *\n * @deprecated Use CLOUD_PLATFORM_VALUE_AZURE_VM in [incubating entry-point]({@link https://github.com/open-telemetry/opentelemetry-js/blob/main/semantic-conventions/README.md#unstable-semconv}).\n */\nexport var CLOUDPLATFORMVALUES_AZURE_VM = TMP_CLOUDPLATFORMVALUES_AZURE_VM;\n/**\n * The cloud platform in use.\n *\n * Note: The prefix of the service SHOULD match the one specified in `cloud.provider`.\n *\n * @deprecated Use CLOUD_PLATFORM_VALUE_AZURE_CONTAINER_INSTANCES in [incubating entry-point]({@link https://github.com/open-telemetry/opentelemetry-js/blob/main/semantic-conventions/README.md#unstable-semconv}).\n */\nexport var CLOUDPLATFORMVALUES_AZURE_CONTAINER_INSTANCES = TMP_CLOUDPLATFORMVALUES_AZURE_CONTAINER_INSTANCES;\n/**\n * The cloud platform in use.\n *\n * Note: The prefix of the service SHOULD match the one specified in `cloud.provider`.\n *\n * @deprecated Use CLOUD_PLATFORM_VALUE_AZURE_AKS in [incubating entry-point]({@link https://github.com/open-telemetry/opentelemetry-js/blob/main/semantic-conventions/README.md#unstable-semconv}).\n */\nexport var CLOUDPLATFORMVALUES_AZURE_AKS = TMP_CLOUDPLATFORMVALUES_AZURE_AKS;\n/**\n * The cloud platform in use.\n *\n * Note: The prefix of the service SHOULD match the one specified in `cloud.provider`.\n *\n * @deprecated Use CLOUD_PLATFORM_VALUE_AZURE_FUNCTIONS in [incubating entry-point]({@link https://github.com/open-telemetry/opentelemetry-js/blob/main/semantic-conventions/README.md#unstable-semconv}).\n */\nexport var CLOUDPLATFORMVALUES_AZURE_FUNCTIONS = TMP_CLOUDPLATFORMVALUES_AZURE_FUNCTIONS;\n/**\n * The cloud platform in use.\n *\n * Note: The prefix of the service SHOULD match the one specified in `cloud.provider`.\n *\n * @deprecated Use CLOUD_PLATFORM_VALUE_AZURE_APP_SERVICE in [incubating entry-point]({@link https://github.com/open-telemetry/opentelemetry-js/blob/main/semantic-conventions/README.md#unstable-semconv}).\n */\nexport var CLOUDPLATFORMVALUES_AZURE_APP_SERVICE = TMP_CLOUDPLATFORMVALUES_AZURE_APP_SERVICE;\n/**\n * The cloud platform in use.\n *\n * Note: The prefix of the service SHOULD match the one specified in `cloud.provider`.\n *\n * @deprecated Use CLOUD_PLATFORM_VALUE_GCP_COMPUTE_ENGINE in [incubating entry-point]({@link https://github.com/open-telemetry/opentelemetry-js/blob/main/semantic-conventions/README.md#unstable-semconv}).\n */\nexport var CLOUDPLATFORMVALUES_GCP_COMPUTE_ENGINE = TMP_CLOUDPLATFORMVALUES_GCP_COMPUTE_ENGINE;\n/**\n * The cloud platform in use.\n *\n * Note: The prefix of the service SHOULD match the one specified in `cloud.provider`.\n *\n * @deprecated Use CLOUD_PLATFORM_VALUE_GCP_CLOUD_RUN in [incubating entry-point]({@link https://github.com/open-telemetry/opentelemetry-js/blob/main/semantic-conventions/README.md#unstable-semconv}).\n */\nexport var CLOUDPLATFORMVALUES_GCP_CLOUD_RUN = TMP_CLOUDPLATFORMVALUES_GCP_CLOUD_RUN;\n/**\n * The cloud platform in use.\n *\n * Note: The prefix of the service SHOULD match the one specified in `cloud.provider`.\n *\n * @deprecated Use CLOUD_PLATFORM_VALUE_GCP_KUBERNETES_ENGINE in [incubating entry-point]({@link https://github.com/open-telemetry/opentelemetry-js/blob/main/semantic-conventions/README.md#unstable-semconv}).\n */\nexport var CLOUDPLATFORMVALUES_GCP_KUBERNETES_ENGINE = TMP_CLOUDPLATFORMVALUES_GCP_KUBERNETES_ENGINE;\n/**\n * The cloud platform in use.\n *\n * Note: The prefix of the service SHOULD match the one specified in `cloud.provider`.\n *\n * @deprecated Use CLOUD_PLATFORM_VALUE_GCP_CLOUD_FUNCTIONS in [incubating entry-point]({@link https://github.com/open-telemetry/opentelemetry-js/blob/main/semantic-conventions/README.md#unstable-semconv}).\n */\nexport var CLOUDPLATFORMVALUES_GCP_CLOUD_FUNCTIONS = TMP_CLOUDPLATFORMVALUES_GCP_CLOUD_FUNCTIONS;\n/**\n * The cloud platform in use.\n *\n * Note: The prefix of the service SHOULD match the one specified in `cloud.provider`.\n *\n * @deprecated Use CLOUD_PLATFORM_VALUE_GCP_APP_ENGINE in [incubating entry-point]({@link https://github.com/open-telemetry/opentelemetry-js/blob/main/semantic-conventions/README.md#unstable-semconv}).\n */\nexport var CLOUDPLATFORMVALUES_GCP_APP_ENGINE = TMP_CLOUDPLATFORMVALUES_GCP_APP_ENGINE;\n/**\n * The constant map of values for CloudPlatformValues.\n * @deprecated Use the CLOUDPLATFORMVALUES_XXXXX constants rather than the CloudPlatformValues.XXXXX for bundle minification.\n */\nexport var CloudPlatformValues = \n/*#__PURE__*/ createConstMap([\n TMP_CLOUDPLATFORMVALUES_ALIBABA_CLOUD_ECS,\n TMP_CLOUDPLATFORMVALUES_ALIBABA_CLOUD_FC,\n TMP_CLOUDPLATFORMVALUES_AWS_EC2,\n TMP_CLOUDPLATFORMVALUES_AWS_ECS,\n TMP_CLOUDPLATFORMVALUES_AWS_EKS,\n TMP_CLOUDPLATFORMVALUES_AWS_LAMBDA,\n TMP_CLOUDPLATFORMVALUES_AWS_ELASTIC_BEANSTALK,\n TMP_CLOUDPLATFORMVALUES_AZURE_VM,\n TMP_CLOUDPLATFORMVALUES_AZURE_CONTAINER_INSTANCES,\n TMP_CLOUDPLATFORMVALUES_AZURE_AKS,\n TMP_CLOUDPLATFORMVALUES_AZURE_FUNCTIONS,\n TMP_CLOUDPLATFORMVALUES_AZURE_APP_SERVICE,\n TMP_CLOUDPLATFORMVALUES_GCP_COMPUTE_ENGINE,\n TMP_CLOUDPLATFORMVALUES_GCP_CLOUD_RUN,\n TMP_CLOUDPLATFORMVALUES_GCP_KUBERNETES_ENGINE,\n TMP_CLOUDPLATFORMVALUES_GCP_CLOUD_FUNCTIONS,\n TMP_CLOUDPLATFORMVALUES_GCP_APP_ENGINE,\n]);\n/* ----------------------------------------------------------------------------------------------------------\n * Constant values for AwsEcsLaunchtypeValues enum definition\n *\n * The [launch type](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/launch_types.html) for an ECS task.\n * ---------------------------------------------------------------------------------------------------------- */\n// Temporary local constants to assign to the individual exports and the namespaced version\n// Required to avoid the namespace exports using the unminifiable export names for some package types\nvar TMP_AWSECSLAUNCHTYPEVALUES_EC2 = 'ec2';\nvar TMP_AWSECSLAUNCHTYPEVALUES_FARGATE = 'fargate';\n/**\n * The [launch type](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/launch_types.html) for an ECS task.\n *\n * @deprecated Use AWS_ECS_LAUNCHTYPE_VALUE_EC2 in [incubating entry-point]({@link https://github.com/open-telemetry/opentelemetry-js/blob/main/semantic-conventions/README.md#unstable-semconv}).\n */\nexport var AWSECSLAUNCHTYPEVALUES_EC2 = TMP_AWSECSLAUNCHTYPEVALUES_EC2;\n/**\n * The [launch type](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/launch_types.html) for an ECS task.\n *\n * @deprecated Use AWS_ECS_LAUNCHTYPE_VALUE_FARGATE in [incubating entry-point]({@link https://github.com/open-telemetry/opentelemetry-js/blob/main/semantic-conventions/README.md#unstable-semconv}).\n */\nexport var AWSECSLAUNCHTYPEVALUES_FARGATE = TMP_AWSECSLAUNCHTYPEVALUES_FARGATE;\n/**\n * The constant map of values for AwsEcsLaunchtypeValues.\n * @deprecated Use the AWSECSLAUNCHTYPEVALUES_XXXXX constants rather than the AwsEcsLaunchtypeValues.XXXXX for bundle minification.\n */\nexport var AwsEcsLaunchtypeValues = \n/*#__PURE__*/ createConstMap([\n TMP_AWSECSLAUNCHTYPEVALUES_EC2,\n TMP_AWSECSLAUNCHTYPEVALUES_FARGATE,\n]);\n/* ----------------------------------------------------------------------------------------------------------\n * Constant values for HostArchValues enum definition\n *\n * The CPU architecture the host system is running on.\n * ---------------------------------------------------------------------------------------------------------- */\n// Temporary local constants to assign to the individual exports and the namespaced version\n// Required to avoid the namespace exports using the unminifiable export names for some package types\nvar TMP_HOSTARCHVALUES_AMD64 = 'amd64';\nvar TMP_HOSTARCHVALUES_ARM32 = 'arm32';\nvar TMP_HOSTARCHVALUES_ARM64 = 'arm64';\nvar TMP_HOSTARCHVALUES_IA64 = 'ia64';\nvar TMP_HOSTARCHVALUES_PPC32 = 'ppc32';\nvar TMP_HOSTARCHVALUES_PPC64 = 'ppc64';\nvar TMP_HOSTARCHVALUES_X86 = 'x86';\n/**\n * The CPU architecture the host system is running on.\n *\n * @deprecated Use HOST_ARCH_VALUE_AMD64 in [incubating entry-point]({@link https://github.com/open-telemetry/opentelemetry-js/blob/main/semantic-conventions/README.md#unstable-semconv}).\n */\nexport var HOSTARCHVALUES_AMD64 = TMP_HOSTARCHVALUES_AMD64;\n/**\n * The CPU architecture the host system is running on.\n *\n * @deprecated Use HOST_ARCH_VALUE_ARM32 in [incubating entry-point]({@link https://github.com/open-telemetry/opentelemetry-js/blob/main/semantic-conventions/README.md#unstable-semconv}).\n */\nexport var HOSTARCHVALUES_ARM32 = TMP_HOSTARCHVALUES_ARM32;\n/**\n * The CPU architecture the host system is running on.\n *\n * @deprecated Use HOST_ARCH_VALUE_ARM64 in [incubating entry-point]({@link https://github.com/open-telemetry/opentelemetry-js/blob/main/semantic-conventions/README.md#unstable-semconv}).\n */\nexport var HOSTARCHVALUES_ARM64 = TMP_HOSTARCHVALUES_ARM64;\n/**\n * The CPU architecture the host system is running on.\n *\n * @deprecated Use HOST_ARCH_VALUE_IA64 in [incubating entry-point]({@link https://github.com/open-telemetry/opentelemetry-js/blob/main/semantic-conventions/README.md#unstable-semconv}).\n */\nexport var HOSTARCHVALUES_IA64 = TMP_HOSTARCHVALUES_IA64;\n/**\n * The CPU architecture the host system is running on.\n *\n * @deprecated Use HOST_ARCH_VALUE_PPC32 in [incubating entry-point]({@link https://github.com/open-telemetry/opentelemetry-js/blob/main/semantic-conventions/README.md#unstable-semconv}).\n */\nexport var HOSTARCHVALUES_PPC32 = TMP_HOSTARCHVALUES_PPC32;\n/**\n * The CPU architecture the host system is running on.\n *\n * @deprecated Use HOST_ARCH_VALUE_PPC64 in [incubating entry-point]({@link https://github.com/open-telemetry/opentelemetry-js/blob/main/semantic-conventions/README.md#unstable-semconv}).\n */\nexport var HOSTARCHVALUES_PPC64 = TMP_HOSTARCHVALUES_PPC64;\n/**\n * The CPU architecture the host system is running on.\n *\n * @deprecated Use HOST_ARCH_VALUE_X86 in [incubating entry-point]({@link https://github.com/open-telemetry/opentelemetry-js/blob/main/semantic-conventions/README.md#unstable-semconv}).\n */\nexport var HOSTARCHVALUES_X86 = TMP_HOSTARCHVALUES_X86;\n/**\n * The constant map of values for HostArchValues.\n * @deprecated Use the HOSTARCHVALUES_XXXXX constants rather than the HostArchValues.XXXXX for bundle minification.\n */\nexport var HostArchValues = \n/*#__PURE__*/ createConstMap([\n TMP_HOSTARCHVALUES_AMD64,\n TMP_HOSTARCHVALUES_ARM32,\n TMP_HOSTARCHVALUES_ARM64,\n TMP_HOSTARCHVALUES_IA64,\n TMP_HOSTARCHVALUES_PPC32,\n TMP_HOSTARCHVALUES_PPC64,\n TMP_HOSTARCHVALUES_X86,\n]);\n/* ----------------------------------------------------------------------------------------------------------\n * Constant values for OsTypeValues enum definition\n *\n * The operating system type.\n * ---------------------------------------------------------------------------------------------------------- */\n// Temporary local constants to assign to the individual exports and the namespaced version\n// Required to avoid the namespace exports using the unminifiable export names for some package types\nvar TMP_OSTYPEVALUES_WINDOWS = 'windows';\nvar TMP_OSTYPEVALUES_LINUX = 'linux';\nvar TMP_OSTYPEVALUES_DARWIN = 'darwin';\nvar TMP_OSTYPEVALUES_FREEBSD = 'freebsd';\nvar TMP_OSTYPEVALUES_NETBSD = 'netbsd';\nvar TMP_OSTYPEVALUES_OPENBSD = 'openbsd';\nvar TMP_OSTYPEVALUES_DRAGONFLYBSD = 'dragonflybsd';\nvar TMP_OSTYPEVALUES_HPUX = 'hpux';\nvar TMP_OSTYPEVALUES_AIX = 'aix';\nvar TMP_OSTYPEVALUES_SOLARIS = 'solaris';\nvar TMP_OSTYPEVALUES_Z_OS = 'z_os';\n/**\n * The operating system type.\n *\n * @deprecated Use OS_TYPE_VALUE_WINDOWS in [incubating entry-point]({@link https://github.com/open-telemetry/opentelemetry-js/blob/main/semantic-conventions/README.md#unstable-semconv}).\n */\nexport var OSTYPEVALUES_WINDOWS = TMP_OSTYPEVALUES_WINDOWS;\n/**\n * The operating system type.\n *\n * @deprecated Use OS_TYPE_VALUE_LINUX in [incubating entry-point]({@link https://github.com/open-telemetry/opentelemetry-js/blob/main/semantic-conventions/README.md#unstable-semconv}).\n */\nexport var OSTYPEVALUES_LINUX = TMP_OSTYPEVALUES_LINUX;\n/**\n * The operating system type.\n *\n * @deprecated Use OS_TYPE_VALUE_DARWIN in [incubating entry-point]({@link https://github.com/open-telemetry/opentelemetry-js/blob/main/semantic-conventions/README.md#unstable-semconv}).\n */\nexport var OSTYPEVALUES_DARWIN = TMP_OSTYPEVALUES_DARWIN;\n/**\n * The operating system type.\n *\n * @deprecated Use OS_TYPE_VALUE_FREEBSD in [incubating entry-point]({@link https://github.com/open-telemetry/opentelemetry-js/blob/main/semantic-conventions/README.md#unstable-semconv}).\n */\nexport var OSTYPEVALUES_FREEBSD = TMP_OSTYPEVALUES_FREEBSD;\n/**\n * The operating system type.\n *\n * @deprecated Use OS_TYPE_VALUE_NETBSD in [incubating entry-point]({@link https://github.com/open-telemetry/opentelemetry-js/blob/main/semantic-conventions/README.md#unstable-semconv}).\n */\nexport var OSTYPEVALUES_NETBSD = TMP_OSTYPEVALUES_NETBSD;\n/**\n * The operating system type.\n *\n * @deprecated Use OS_TYPE_VALUE_OPENBSD in [incubating entry-point]({@link https://github.com/open-telemetry/opentelemetry-js/blob/main/semantic-conventions/README.md#unstable-semconv}).\n */\nexport var OSTYPEVALUES_OPENBSD = TMP_OSTYPEVALUES_OPENBSD;\n/**\n * The operating system type.\n *\n * @deprecated Use OS_TYPE_VALUE_DRAGONFLYBSD in [incubating entry-point]({@link https://github.com/open-telemetry/opentelemetry-js/blob/main/semantic-conventions/README.md#unstable-semconv}).\n */\nexport var OSTYPEVALUES_DRAGONFLYBSD = TMP_OSTYPEVALUES_DRAGONFLYBSD;\n/**\n * The operating system type.\n *\n * @deprecated Use OS_TYPE_VALUE_HPUX in [incubating entry-point]({@link https://github.com/open-telemetry/opentelemetry-js/blob/main/semantic-conventions/README.md#unstable-semconv}).\n */\nexport var OSTYPEVALUES_HPUX = TMP_OSTYPEVALUES_HPUX;\n/**\n * The operating system type.\n *\n * @deprecated Use OS_TYPE_VALUE_AIX in [incubating entry-point]({@link https://github.com/open-telemetry/opentelemetry-js/blob/main/semantic-conventions/README.md#unstable-semconv}).\n */\nexport var OSTYPEVALUES_AIX = TMP_OSTYPEVALUES_AIX;\n/**\n * The operating system type.\n *\n * @deprecated Use OS_TYPE_VALUE_SOLARIS in [incubating entry-point]({@link https://github.com/open-telemetry/opentelemetry-js/blob/main/semantic-conventions/README.md#unstable-semconv}).\n */\nexport var OSTYPEVALUES_SOLARIS = TMP_OSTYPEVALUES_SOLARIS;\n/**\n * The operating system type.\n *\n * @deprecated Use OS_TYPE_VALUE_Z_OS in [incubating entry-point]({@link https://github.com/open-telemetry/opentelemetry-js/blob/main/semantic-conventions/README.md#unstable-semconv}).\n */\nexport var OSTYPEVALUES_Z_OS = TMP_OSTYPEVALUES_Z_OS;\n/**\n * The constant map of values for OsTypeValues.\n * @deprecated Use the OSTYPEVALUES_XXXXX constants rather than the OsTypeValues.XXXXX for bundle minification.\n */\nexport var OsTypeValues = \n/*#__PURE__*/ createConstMap([\n TMP_OSTYPEVALUES_WINDOWS,\n TMP_OSTYPEVALUES_LINUX,\n TMP_OSTYPEVALUES_DARWIN,\n TMP_OSTYPEVALUES_FREEBSD,\n TMP_OSTYPEVALUES_NETBSD,\n TMP_OSTYPEVALUES_OPENBSD,\n TMP_OSTYPEVALUES_DRAGONFLYBSD,\n TMP_OSTYPEVALUES_HPUX,\n TMP_OSTYPEVALUES_AIX,\n TMP_OSTYPEVALUES_SOLARIS,\n TMP_OSTYPEVALUES_Z_OS,\n]);\n/* ----------------------------------------------------------------------------------------------------------\n * Constant values for TelemetrySdkLanguageValues enum definition\n *\n * The language of the telemetry SDK.\n * ---------------------------------------------------------------------------------------------------------- */\n// Temporary local constants to assign to the individual exports and the namespaced version\n// Required to avoid the namespace exports using the unminifiable export names for some package types\nvar TMP_TELEMETRYSDKLANGUAGEVALUES_CPP = 'cpp';\nvar TMP_TELEMETRYSDKLANGUAGEVALUES_DOTNET = 'dotnet';\nvar TMP_TELEMETRYSDKLANGUAGEVALUES_ERLANG = 'erlang';\nvar TMP_TELEMETRYSDKLANGUAGEVALUES_GO = 'go';\nvar TMP_TELEMETRYSDKLANGUAGEVALUES_JAVA = 'java';\nvar TMP_TELEMETRYSDKLANGUAGEVALUES_NODEJS = 'nodejs';\nvar TMP_TELEMETRYSDKLANGUAGEVALUES_PHP = 'php';\nvar TMP_TELEMETRYSDKLANGUAGEVALUES_PYTHON = 'python';\nvar TMP_TELEMETRYSDKLANGUAGEVALUES_RUBY = 'ruby';\nvar TMP_TELEMETRYSDKLANGUAGEVALUES_WEBJS = 'webjs';\n/**\n * The language of the telemetry SDK.\n *\n * @deprecated Use TELEMETRY_SDK_LANGUAGE_VALUE_CPP.\n */\nexport var TELEMETRYSDKLANGUAGEVALUES_CPP = TMP_TELEMETRYSDKLANGUAGEVALUES_CPP;\n/**\n * The language of the telemetry SDK.\n *\n * @deprecated Use TELEMETRY_SDK_LANGUAGE_VALUE_DOTNET.\n */\nexport var TELEMETRYSDKLANGUAGEVALUES_DOTNET = TMP_TELEMETRYSDKLANGUAGEVALUES_DOTNET;\n/**\n * The language of the telemetry SDK.\n *\n * @deprecated Use TELEMETRY_SDK_LANGUAGE_VALUE_ERLANG.\n */\nexport var TELEMETRYSDKLANGUAGEVALUES_ERLANG = TMP_TELEMETRYSDKLANGUAGEVALUES_ERLANG;\n/**\n * The language of the telemetry SDK.\n *\n * @deprecated Use TELEMETRY_SDK_LANGUAGE_VALUE_GO.\n */\nexport var TELEMETRYSDKLANGUAGEVALUES_GO = TMP_TELEMETRYSDKLANGUAGEVALUES_GO;\n/**\n * The language of the telemetry SDK.\n *\n * @deprecated Use TELEMETRY_SDK_LANGUAGE_VALUE_JAVA.\n */\nexport var TELEMETRYSDKLANGUAGEVALUES_JAVA = TMP_TELEMETRYSDKLANGUAGEVALUES_JAVA;\n/**\n * The language of the telemetry SDK.\n *\n * @deprecated Use TELEMETRY_SDK_LANGUAGE_VALUE_NODEJS.\n */\nexport var TELEMETRYSDKLANGUAGEVALUES_NODEJS = TMP_TELEMETRYSDKLANGUAGEVALUES_NODEJS;\n/**\n * The language of the telemetry SDK.\n *\n * @deprecated Use TELEMETRY_SDK_LANGUAGE_VALUE_PHP.\n */\nexport var TELEMETRYSDKLANGUAGEVALUES_PHP = TMP_TELEMETRYSDKLANGUAGEVALUES_PHP;\n/**\n * The language of the telemetry SDK.\n *\n * @deprecated Use TELEMETRY_SDK_LANGUAGE_VALUE_PYTHON.\n */\nexport var TELEMETRYSDKLANGUAGEVALUES_PYTHON = TMP_TELEMETRYSDKLANGUAGEVALUES_PYTHON;\n/**\n * The language of the telemetry SDK.\n *\n * @deprecated Use TELEMETRY_SDK_LANGUAGE_VALUE_RUBY.\n */\nexport var TELEMETRYSDKLANGUAGEVALUES_RUBY = TMP_TELEMETRYSDKLANGUAGEVALUES_RUBY;\n/**\n * The language of the telemetry SDK.\n *\n * @deprecated Use TELEMETRY_SDK_LANGUAGE_VALUE_WEBJS.\n */\nexport var TELEMETRYSDKLANGUAGEVALUES_WEBJS = TMP_TELEMETRYSDKLANGUAGEVALUES_WEBJS;\n/**\n * The constant map of values for TelemetrySdkLanguageValues.\n * @deprecated Use the TELEMETRYSDKLANGUAGEVALUES_XXXXX constants rather than the TelemetrySdkLanguageValues.XXXXX for bundle minification.\n */\nexport var TelemetrySdkLanguageValues = \n/*#__PURE__*/ createConstMap([\n TMP_TELEMETRYSDKLANGUAGEVALUES_CPP,\n TMP_TELEMETRYSDKLANGUAGEVALUES_DOTNET,\n TMP_TELEMETRYSDKLANGUAGEVALUES_ERLANG,\n TMP_TELEMETRYSDKLANGUAGEVALUES_GO,\n TMP_TELEMETRYSDKLANGUAGEVALUES_JAVA,\n TMP_TELEMETRYSDKLANGUAGEVALUES_NODEJS,\n TMP_TELEMETRYSDKLANGUAGEVALUES_PHP,\n TMP_TELEMETRYSDKLANGUAGEVALUES_PYTHON,\n TMP_TELEMETRYSDKLANGUAGEVALUES_RUBY,\n TMP_TELEMETRYSDKLANGUAGEVALUES_WEBJS,\n]);\n//# sourceMappingURL=SemanticResourceAttributes.js.map","/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n/** only globals that common to node and browsers are allowed */\n// eslint-disable-next-line node/no-unsupported-features/es-builtins\nexport var _globalThis = typeof globalThis === 'object' ? globalThis : global;\n//# sourceMappingURL=globalThis.js.map","/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport { DiagLogLevel } from '@opentelemetry/api';\nimport { TracesSamplerValues } from './sampling';\nvar DEFAULT_LIST_SEPARATOR = ',';\n/**\n * Environment interface to define all names\n */\nvar ENVIRONMENT_BOOLEAN_KEYS = ['OTEL_SDK_DISABLED'];\nfunction isEnvVarABoolean(key) {\n return (ENVIRONMENT_BOOLEAN_KEYS.indexOf(key) > -1);\n}\nvar ENVIRONMENT_NUMBERS_KEYS = [\n 'OTEL_BSP_EXPORT_TIMEOUT',\n 'OTEL_BSP_MAX_EXPORT_BATCH_SIZE',\n 'OTEL_BSP_MAX_QUEUE_SIZE',\n 'OTEL_BSP_SCHEDULE_DELAY',\n 'OTEL_BLRP_EXPORT_TIMEOUT',\n 'OTEL_BLRP_MAX_EXPORT_BATCH_SIZE',\n 'OTEL_BLRP_MAX_QUEUE_SIZE',\n 'OTEL_BLRP_SCHEDULE_DELAY',\n 'OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT',\n 'OTEL_ATTRIBUTE_COUNT_LIMIT',\n 'OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT',\n 'OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT',\n 'OTEL_LOGRECORD_ATTRIBUTE_VALUE_LENGTH_LIMIT',\n 'OTEL_LOGRECORD_ATTRIBUTE_COUNT_LIMIT',\n 'OTEL_SPAN_EVENT_COUNT_LIMIT',\n 'OTEL_SPAN_LINK_COUNT_LIMIT',\n 'OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT',\n 'OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT',\n 'OTEL_EXPORTER_OTLP_TIMEOUT',\n 'OTEL_EXPORTER_OTLP_TRACES_TIMEOUT',\n 'OTEL_EXPORTER_OTLP_METRICS_TIMEOUT',\n 'OTEL_EXPORTER_OTLP_LOGS_TIMEOUT',\n 'OTEL_EXPORTER_JAEGER_AGENT_PORT',\n];\nfunction isEnvVarANumber(key) {\n return (ENVIRONMENT_NUMBERS_KEYS.indexOf(key) > -1);\n}\nvar ENVIRONMENT_LISTS_KEYS = [\n 'OTEL_NO_PATCH_MODULES',\n 'OTEL_PROPAGATORS',\n 'OTEL_SEMCONV_STABILITY_OPT_IN',\n];\nfunction isEnvVarAList(key) {\n return ENVIRONMENT_LISTS_KEYS.indexOf(key) > -1;\n}\nexport var DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT = Infinity;\nexport var DEFAULT_ATTRIBUTE_COUNT_LIMIT = 128;\nexport var DEFAULT_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT = 128;\nexport var DEFAULT_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT = 128;\n/**\n * Default environment variables\n */\nexport var DEFAULT_ENVIRONMENT = {\n OTEL_SDK_DISABLED: false,\n CONTAINER_NAME: '',\n ECS_CONTAINER_METADATA_URI_V4: '',\n ECS_CONTAINER_METADATA_URI: '',\n HOSTNAME: '',\n KUBERNETES_SERVICE_HOST: '',\n NAMESPACE: '',\n OTEL_BSP_EXPORT_TIMEOUT: 30000,\n OTEL_BSP_MAX_EXPORT_BATCH_SIZE: 512,\n OTEL_BSP_MAX_QUEUE_SIZE: 2048,\n OTEL_BSP_SCHEDULE_DELAY: 5000,\n OTEL_BLRP_EXPORT_TIMEOUT: 30000,\n OTEL_BLRP_MAX_EXPORT_BATCH_SIZE: 512,\n OTEL_BLRP_MAX_QUEUE_SIZE: 2048,\n OTEL_BLRP_SCHEDULE_DELAY: 5000,\n OTEL_EXPORTER_JAEGER_AGENT_HOST: '',\n OTEL_EXPORTER_JAEGER_AGENT_PORT: 6832,\n OTEL_EXPORTER_JAEGER_ENDPOINT: '',\n OTEL_EXPORTER_JAEGER_PASSWORD: '',\n OTEL_EXPORTER_JAEGER_USER: '',\n OTEL_EXPORTER_OTLP_ENDPOINT: '',\n OTEL_EXPORTER_OTLP_TRACES_ENDPOINT: '',\n OTEL_EXPORTER_OTLP_METRICS_ENDPOINT: '',\n OTEL_EXPORTER_OTLP_LOGS_ENDPOINT: '',\n OTEL_EXPORTER_OTLP_HEADERS: '',\n OTEL_EXPORTER_OTLP_TRACES_HEADERS: '',\n OTEL_EXPORTER_OTLP_METRICS_HEADERS: '',\n OTEL_EXPORTER_OTLP_LOGS_HEADERS: '',\n OTEL_EXPORTER_OTLP_TIMEOUT: 10000,\n OTEL_EXPORTER_OTLP_TRACES_TIMEOUT: 10000,\n OTEL_EXPORTER_OTLP_METRICS_TIMEOUT: 10000,\n OTEL_EXPORTER_OTLP_LOGS_TIMEOUT: 10000,\n OTEL_EXPORTER_ZIPKIN_ENDPOINT: 'http://localhost:9411/api/v2/spans',\n OTEL_LOG_LEVEL: DiagLogLevel.INFO,\n OTEL_NO_PATCH_MODULES: [],\n OTEL_PROPAGATORS: ['tracecontext', 'baggage'],\n OTEL_RESOURCE_ATTRIBUTES: '',\n OTEL_SERVICE_NAME: '',\n OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT: DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT,\n OTEL_ATTRIBUTE_COUNT_LIMIT: DEFAULT_ATTRIBUTE_COUNT_LIMIT,\n OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT: DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT,\n OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT: DEFAULT_ATTRIBUTE_COUNT_LIMIT,\n OTEL_LOGRECORD_ATTRIBUTE_VALUE_LENGTH_LIMIT: DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT,\n OTEL_LOGRECORD_ATTRIBUTE_COUNT_LIMIT: DEFAULT_ATTRIBUTE_COUNT_LIMIT,\n OTEL_SPAN_EVENT_COUNT_LIMIT: 128,\n OTEL_SPAN_LINK_COUNT_LIMIT: 128,\n OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT: DEFAULT_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT,\n OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT: DEFAULT_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT,\n OTEL_TRACES_EXPORTER: '',\n OTEL_TRACES_SAMPLER: TracesSamplerValues.ParentBasedAlwaysOn,\n OTEL_TRACES_SAMPLER_ARG: '',\n OTEL_LOGS_EXPORTER: '',\n OTEL_EXPORTER_OTLP_INSECURE: '',\n OTEL_EXPORTER_OTLP_TRACES_INSECURE: '',\n OTEL_EXPORTER_OTLP_METRICS_INSECURE: '',\n OTEL_EXPORTER_OTLP_LOGS_INSECURE: '',\n OTEL_EXPORTER_OTLP_CERTIFICATE: '',\n OTEL_EXPORTER_OTLP_TRACES_CERTIFICATE: '',\n OTEL_EXPORTER_OTLP_METRICS_CERTIFICATE: '',\n OTEL_EXPORTER_OTLP_LOGS_CERTIFICATE: '',\n OTEL_EXPORTER_OTLP_COMPRESSION: '',\n OTEL_EXPORTER_OTLP_TRACES_COMPRESSION: '',\n OTEL_EXPORTER_OTLP_METRICS_COMPRESSION: '',\n OTEL_EXPORTER_OTLP_LOGS_COMPRESSION: '',\n OTEL_EXPORTER_OTLP_CLIENT_KEY: '',\n OTEL_EXPORTER_OTLP_TRACES_CLIENT_KEY: '',\n OTEL_EXPORTER_OTLP_METRICS_CLIENT_KEY: '',\n OTEL_EXPORTER_OTLP_LOGS_CLIENT_KEY: '',\n OTEL_EXPORTER_OTLP_CLIENT_CERTIFICATE: '',\n OTEL_EXPORTER_OTLP_TRACES_CLIENT_CERTIFICATE: '',\n OTEL_EXPORTER_OTLP_METRICS_CLIENT_CERTIFICATE: '',\n OTEL_EXPORTER_OTLP_LOGS_CLIENT_CERTIFICATE: '',\n OTEL_EXPORTER_OTLP_PROTOCOL: 'http/protobuf',\n OTEL_EXPORTER_OTLP_TRACES_PROTOCOL: 'http/protobuf',\n OTEL_EXPORTER_OTLP_METRICS_PROTOCOL: 'http/protobuf',\n OTEL_EXPORTER_OTLP_LOGS_PROTOCOL: 'http/protobuf',\n OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE: 'cumulative',\n OTEL_SEMCONV_STABILITY_OPT_IN: [],\n};\n/**\n * @param key\n * @param environment\n * @param values\n */\nfunction parseBoolean(key, environment, values) {\n if (typeof values[key] === 'undefined') {\n return;\n }\n var value = String(values[key]);\n // support case-insensitive \"true\"\n environment[key] = value.toLowerCase() === 'true';\n}\n/**\n * Parses a variable as number with number validation\n * @param name\n * @param environment\n * @param values\n * @param min\n * @param max\n */\nfunction parseNumber(name, environment, values, min, max) {\n if (min === void 0) { min = -Infinity; }\n if (max === void 0) { max = Infinity; }\n if (typeof values[name] !== 'undefined') {\n var value = Number(values[name]);\n if (!isNaN(value)) {\n if (value < min) {\n environment[name] = min;\n }\n else if (value > max) {\n environment[name] = max;\n }\n else {\n environment[name] = value;\n }\n }\n }\n}\n/**\n * Parses list-like strings from input into output.\n * @param name\n * @param environment\n * @param values\n * @param separator\n */\nfunction parseStringList(name, output, input, separator) {\n if (separator === void 0) { separator = DEFAULT_LIST_SEPARATOR; }\n var givenValue = input[name];\n if (typeof givenValue === 'string') {\n output[name] = givenValue.split(separator).map(function (v) { return v.trim(); });\n }\n}\n// The support string -> DiagLogLevel mappings\nvar logLevelMap = {\n ALL: DiagLogLevel.ALL,\n VERBOSE: DiagLogLevel.VERBOSE,\n DEBUG: DiagLogLevel.DEBUG,\n INFO: DiagLogLevel.INFO,\n WARN: DiagLogLevel.WARN,\n ERROR: DiagLogLevel.ERROR,\n NONE: DiagLogLevel.NONE,\n};\n/**\n * Environmentally sets log level if valid log level string is provided\n * @param key\n * @param environment\n * @param values\n */\nfunction setLogLevelFromEnv(key, environment, values) {\n var value = values[key];\n if (typeof value === 'string') {\n var theLevel = logLevelMap[value.toUpperCase()];\n if (theLevel != null) {\n environment[key] = theLevel;\n }\n }\n}\n/**\n * Parses environment values\n * @param values\n */\nexport function parseEnvironment(values) {\n var environment = {};\n for (var env in DEFAULT_ENVIRONMENT) {\n var key = env;\n switch (key) {\n case 'OTEL_LOG_LEVEL':\n setLogLevelFromEnv(key, environment, values);\n break;\n default:\n if (isEnvVarABoolean(key)) {\n parseBoolean(key, environment, values);\n }\n else if (isEnvVarANumber(key)) {\n parseNumber(key, environment, values);\n }\n else if (isEnvVarAList(key)) {\n parseStringList(key, environment, values);\n }\n else {\n var value = values[key];\n if (typeof value !== 'undefined' && value !== null) {\n environment[key] = String(value);\n }\n }\n }\n }\n return environment;\n}\n//# sourceMappingURL=environment.js.map","/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport { DEFAULT_ENVIRONMENT, parseEnvironment, } from '../../utils/environment';\n/**\n * Gets the environment variables\n */\nexport function getEnv() {\n var processEnv = parseEnvironment(process.env);\n return Object.assign({}, DEFAULT_ENVIRONMENT, processEnv);\n}\nexport function getEnvWithoutDefaults() {\n return parseEnvironment(process.env);\n}\n//# sourceMappingURL=environment.js.map","/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport { hexToBinary } from '../../common/hex-to-binary';\nexport function hexToBase64(hexStr) {\n return Buffer.from(hexToBinary(hexStr)).toString('base64');\n}\n//# sourceMappingURL=hex-to-base64.js.map","/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nexport function unrefTimer(timer) {\n timer.unref();\n}\n//# sourceMappingURL=timer-util.js.map","/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nvar __values = (this && this.__values) || function(o) {\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\n if (m) return m.call(o);\n if (o && typeof o.length === \"number\") return {\n next: function () {\n if (o && i >= o.length) o = void 0;\n return { value: o && o[i++], done: !o };\n }\n };\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\n};\nimport { diag, } from '@opentelemetry/api';\n/** Combines multiple propagators into a single propagator. */\nvar CompositePropagator = /** @class */ (function () {\n /**\n * Construct a composite propagator from a list of propagators.\n *\n * @param [config] Configuration object for composite propagator\n */\n function CompositePropagator(config) {\n if (config === void 0) { config = {}; }\n var _a;\n this._propagators = (_a = config.propagators) !== null && _a !== void 0 ? _a : [];\n this._fields = Array.from(new Set(this._propagators\n // older propagators may not have fields function, null check to be sure\n .map(function (p) { return (typeof p.fields === 'function' ? p.fields() : []); })\n .reduce(function (x, y) { return x.concat(y); }, [])));\n }\n /**\n * Run each of the configured propagators with the given context and carrier.\n * Propagators are run in the order they are configured, so if multiple\n * propagators write the same carrier key, the propagator later in the list\n * will \"win\".\n *\n * @param context Context to inject\n * @param carrier Carrier into which context will be injected\n */\n CompositePropagator.prototype.inject = function (context, carrier, setter) {\n var e_1, _a;\n try {\n for (var _b = __values(this._propagators), _c = _b.next(); !_c.done; _c = _b.next()) {\n var propagator = _c.value;\n try {\n propagator.inject(context, carrier, setter);\n }\n catch (err) {\n diag.warn(\"Failed to inject with \" + propagator.constructor.name + \". Err: \" + err.message);\n }\n }\n }\n catch (e_1_1) { e_1 = { error: e_1_1 }; }\n finally {\n try {\n if (_c && !_c.done && (_a = _b.return)) _a.call(_b);\n }\n finally { if (e_1) throw e_1.error; }\n }\n };\n /**\n * Run each of the configured propagators with the given context and carrier.\n * Propagators are run in the order they are configured, so if multiple\n * propagators write the same context key, the propagator later in the list\n * will \"win\".\n *\n * @param context Context to add values to\n * @param carrier Carrier from which to extract context\n */\n CompositePropagator.prototype.extract = function (context, carrier, getter) {\n return this._propagators.reduce(function (ctx, propagator) {\n try {\n return propagator.extract(ctx, carrier, getter);\n }\n catch (err) {\n diag.warn(\"Failed to extract with \" + propagator.constructor.name + \". Err: \" + err.message);\n }\n return ctx;\n }, context);\n };\n CompositePropagator.prototype.fields = function () {\n // return a new array so our fields cannot be modified\n return this._fields.slice();\n };\n return CompositePropagator;\n}());\nexport { CompositePropagator };\n//# sourceMappingURL=composite.js.map","/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nvar VALID_KEY_CHAR_RANGE = '[_0-9a-z-*/]';\nvar VALID_KEY = \"[a-z]\" + VALID_KEY_CHAR_RANGE + \"{0,255}\";\nvar VALID_VENDOR_KEY = \"[a-z0-9]\" + VALID_KEY_CHAR_RANGE + \"{0,240}@[a-z]\" + VALID_KEY_CHAR_RANGE + \"{0,13}\";\nvar VALID_KEY_REGEX = new RegExp(\"^(?:\" + VALID_KEY + \"|\" + VALID_VENDOR_KEY + \")$\");\nvar VALID_VALUE_BASE_REGEX = /^[ -~]{0,255}[!-~]$/;\nvar INVALID_VALUE_COMMA_EQUAL_REGEX = /,|=/;\n/**\n * Key is opaque string up to 256 characters printable. It MUST begin with a\n * lowercase letter, and can only contain lowercase letters a-z, digits 0-9,\n * underscores _, dashes -, asterisks *, and forward slashes /.\n * For multi-tenant vendor scenarios, an at sign (@) can be used to prefix the\n * vendor name. Vendors SHOULD set the tenant ID at the beginning of the key.\n * see https://www.w3.org/TR/trace-context/#key\n */\nexport function validateKey(key) {\n return VALID_KEY_REGEX.test(key);\n}\n/**\n * Value is opaque string up to 256 characters printable ASCII RFC0020\n * characters (i.e., the range 0x20 to 0x7E) except comma , and =.\n */\nexport function validateValue(value) {\n return (VALID_VALUE_BASE_REGEX.test(value) &&\n !INVALID_VALUE_COMMA_EQUAL_REGEX.test(value));\n}\n//# sourceMappingURL=validators.js.map","/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport { validateKey, validateValue } from '../internal/validators';\nvar MAX_TRACE_STATE_ITEMS = 32;\nvar MAX_TRACE_STATE_LEN = 512;\nvar LIST_MEMBERS_SEPARATOR = ',';\nvar LIST_MEMBER_KEY_VALUE_SPLITTER = '=';\n/**\n * TraceState must be a class and not a simple object type because of the spec\n * requirement (https://www.w3.org/TR/trace-context/#tracestate-field).\n *\n * Here is the list of allowed mutations:\n * - New key-value pair should be added into the beginning of the list\n * - The value of any key can be updated. Modified keys MUST be moved to the\n * beginning of the list.\n */\nvar TraceState = /** @class */ (function () {\n function TraceState(rawTraceState) {\n this._internalState = new Map();\n if (rawTraceState)\n this._parse(rawTraceState);\n }\n TraceState.prototype.set = function (key, value) {\n // TODO: Benchmark the different approaches(map vs list) and\n // use the faster one.\n var traceState = this._clone();\n if (traceState._internalState.has(key)) {\n traceState._internalState.delete(key);\n }\n traceState._internalState.set(key, value);\n return traceState;\n };\n TraceState.prototype.unset = function (key) {\n var traceState = this._clone();\n traceState._internalState.delete(key);\n return traceState;\n };\n TraceState.prototype.get = function (key) {\n return this._internalState.get(key);\n };\n TraceState.prototype.serialize = function () {\n var _this = this;\n return this._keys()\n .reduce(function (agg, key) {\n agg.push(key + LIST_MEMBER_KEY_VALUE_SPLITTER + _this.get(key));\n return agg;\n }, [])\n .join(LIST_MEMBERS_SEPARATOR);\n };\n TraceState.prototype._parse = function (rawTraceState) {\n if (rawTraceState.length > MAX_TRACE_STATE_LEN)\n return;\n this._internalState = rawTraceState\n .split(LIST_MEMBERS_SEPARATOR)\n .reverse() // Store in reverse so new keys (.set(...)) will be placed at the beginning\n .reduce(function (agg, part) {\n var listMember = part.trim(); // Optional Whitespace (OWS) handling\n var i = listMember.indexOf(LIST_MEMBER_KEY_VALUE_SPLITTER);\n if (i !== -1) {\n var key = listMember.slice(0, i);\n var value = listMember.slice(i + 1, part.length);\n if (validateKey(key) && validateValue(value)) {\n agg.set(key, value);\n }\n else {\n // TODO: Consider to add warning log\n }\n }\n return agg;\n }, new Map());\n // Because of the reverse() requirement, trunc must be done after map is created\n if (this._internalState.size > MAX_TRACE_STATE_ITEMS) {\n this._internalState = new Map(Array.from(this._internalState.entries())\n .reverse() // Use reverse same as original tracestate parse chain\n .slice(0, MAX_TRACE_STATE_ITEMS));\n }\n };\n TraceState.prototype._keys = function () {\n return Array.from(this._internalState.keys()).reverse();\n };\n TraceState.prototype._clone = function () {\n var traceState = new TraceState();\n traceState._internalState = new Map(this._internalState);\n return traceState;\n };\n return TraceState;\n}());\nexport { TraceState };\n//# sourceMappingURL=TraceState.js.map","/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport { isSpanContextValid, trace, TraceFlags, } from '@opentelemetry/api';\nimport { isTracingSuppressed } from './suppress-tracing';\nimport { TraceState } from './TraceState';\nexport var TRACE_PARENT_HEADER = 'traceparent';\nexport var TRACE_STATE_HEADER = 'tracestate';\nvar VERSION = '00';\nvar VERSION_PART = '(?!ff)[\\\\da-f]{2}';\nvar TRACE_ID_PART = '(?![0]{32})[\\\\da-f]{32}';\nvar PARENT_ID_PART = '(?![0]{16})[\\\\da-f]{16}';\nvar FLAGS_PART = '[\\\\da-f]{2}';\nvar TRACE_PARENT_REGEX = new RegExp(\"^\\\\s?(\" + VERSION_PART + \")-(\" + TRACE_ID_PART + \")-(\" + PARENT_ID_PART + \")-(\" + FLAGS_PART + \")(-.*)?\\\\s?$\");\n/**\n * Parses information from the [traceparent] span tag and converts it into {@link SpanContext}\n * @param traceParent - A meta property that comes from server.\n * It should be dynamically generated server side to have the server's request trace Id,\n * a parent span Id that was set on the server's request span,\n * and the trace flags to indicate the server's sampling decision\n * (01 = sampled, 00 = not sampled).\n * for example: '{version}-{traceId}-{spanId}-{sampleDecision}'\n * For more information see {@link https://www.w3.org/TR/trace-context/}\n */\nexport function parseTraceParent(traceParent) {\n var match = TRACE_PARENT_REGEX.exec(traceParent);\n if (!match)\n return null;\n // According to the specification the implementation should be compatible\n // with future versions. If there are more parts, we only reject it if it's using version 00\n // See https://www.w3.org/TR/trace-context/#versioning-of-traceparent\n if (match[1] === '00' && match[5])\n return null;\n return {\n traceId: match[2],\n spanId: match[3],\n traceFlags: parseInt(match[4], 16),\n };\n}\n/**\n * Propagates {@link SpanContext} through Trace Context format propagation.\n *\n * Based on the Trace Context specification:\n * https://www.w3.org/TR/trace-context/\n */\nvar W3CTraceContextPropagator = /** @class */ (function () {\n function W3CTraceContextPropagator() {\n }\n W3CTraceContextPropagator.prototype.inject = function (context, carrier, setter) {\n var spanContext = trace.getSpanContext(context);\n if (!spanContext ||\n isTracingSuppressed(context) ||\n !isSpanContextValid(spanContext))\n return;\n var traceParent = VERSION + \"-\" + spanContext.traceId + \"-\" + spanContext.spanId + \"-0\" + Number(spanContext.traceFlags || TraceFlags.NONE).toString(16);\n setter.set(carrier, TRACE_PARENT_HEADER, traceParent);\n if (spanContext.traceState) {\n setter.set(carrier, TRACE_STATE_HEADER, spanContext.traceState.serialize());\n }\n };\n W3CTraceContextPropagator.prototype.extract = function (context, carrier, getter) {\n var traceParentHeader = getter.get(carrier, TRACE_PARENT_HEADER);\n if (!traceParentHeader)\n return context;\n var traceParent = Array.isArray(traceParentHeader)\n ? traceParentHeader[0]\n : traceParentHeader;\n if (typeof traceParent !== 'string')\n return context;\n var spanContext = parseTraceParent(traceParent);\n if (!spanContext)\n return context;\n spanContext.isRemote = true;\n var traceStateHeader = getter.get(carrier, TRACE_STATE_HEADER);\n if (traceStateHeader) {\n // If more than one `tracestate` header is found, we merge them into a\n // single header.\n var state = Array.isArray(traceStateHeader)\n ? traceStateHeader.join(',')\n : traceStateHeader;\n spanContext.traceState = new TraceState(typeof state === 'string' ? state : undefined);\n }\n return trace.setSpanContext(context, spanContext);\n };\n W3CTraceContextPropagator.prototype.fields = function () {\n return [TRACE_PARENT_HEADER, TRACE_STATE_HEADER];\n };\n return W3CTraceContextPropagator;\n}());\nexport { W3CTraceContextPropagator };\n//# sourceMappingURL=W3CTraceContextPropagator.js.map","/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport { SamplingDecision } from '@opentelemetry/api';\n/**\n * @deprecated Use the one defined in @opentelemetry/sdk-trace-base instead.\n * Sampler that samples no traces.\n */\nvar AlwaysOffSampler = /** @class */ (function () {\n function AlwaysOffSampler() {\n }\n AlwaysOffSampler.prototype.shouldSample = function () {\n return {\n decision: SamplingDecision.NOT_RECORD,\n };\n };\n AlwaysOffSampler.prototype.toString = function () {\n return 'AlwaysOffSampler';\n };\n return AlwaysOffSampler;\n}());\nexport { AlwaysOffSampler };\n//# sourceMappingURL=AlwaysOffSampler.js.map","/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport { SamplingDecision } from '@opentelemetry/api';\n/**\n * @deprecated Use the one defined in @opentelemetry/sdk-trace-base instead.\n * Sampler that samples all traces.\n */\nvar AlwaysOnSampler = /** @class */ (function () {\n function AlwaysOnSampler() {\n }\n AlwaysOnSampler.prototype.shouldSample = function () {\n return {\n decision: SamplingDecision.RECORD_AND_SAMPLED,\n };\n };\n AlwaysOnSampler.prototype.toString = function () {\n return 'AlwaysOnSampler';\n };\n return AlwaysOnSampler;\n}());\nexport { AlwaysOnSampler };\n//# sourceMappingURL=AlwaysOnSampler.js.map","/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport { isSpanContextValid, TraceFlags, trace, } from '@opentelemetry/api';\nimport { globalErrorHandler } from '../../common/global-error-handler';\nimport { AlwaysOffSampler } from './AlwaysOffSampler';\nimport { AlwaysOnSampler } from './AlwaysOnSampler';\n/**\n * @deprecated Use the one defined in @opentelemetry/sdk-trace-base instead.\n * A composite sampler that either respects the parent span's sampling decision\n * or delegates to `delegateSampler` for root spans.\n */\nvar ParentBasedSampler = /** @class */ (function () {\n function ParentBasedSampler(config) {\n var _a, _b, _c, _d;\n this._root = config.root;\n if (!this._root) {\n globalErrorHandler(new Error('ParentBasedSampler must have a root sampler configured'));\n this._root = new AlwaysOnSampler();\n }\n this._remoteParentSampled =\n (_a = config.remoteParentSampled) !== null && _a !== void 0 ? _a : new AlwaysOnSampler();\n this._remoteParentNotSampled =\n (_b = config.remoteParentNotSampled) !== null && _b !== void 0 ? _b : new AlwaysOffSampler();\n this._localParentSampled =\n (_c = config.localParentSampled) !== null && _c !== void 0 ? _c : new AlwaysOnSampler();\n this._localParentNotSampled =\n (_d = config.localParentNotSampled) !== null && _d !== void 0 ? _d : new AlwaysOffSampler();\n }\n ParentBasedSampler.prototype.shouldSample = function (context, traceId, spanName, spanKind, attributes, links) {\n var parentContext = trace.getSpanContext(context);\n if (!parentContext || !isSpanContextValid(parentContext)) {\n return this._root.shouldSample(context, traceId, spanName, spanKind, attributes, links);\n }\n if (parentContext.isRemote) {\n if (parentContext.traceFlags & TraceFlags.SAMPLED) {\n return this._remoteParentSampled.shouldSample(context, traceId, spanName, spanKind, attributes, links);\n }\n return this._remoteParentNotSampled.shouldSample(context, traceId, spanName, spanKind, attributes, links);\n }\n if (parentContext.traceFlags & TraceFlags.SAMPLED) {\n return this._localParentSampled.shouldSample(context, traceId, spanName, spanKind, attributes, links);\n }\n return this._localParentNotSampled.shouldSample(context, traceId, spanName, spanKind, attributes, links);\n };\n ParentBasedSampler.prototype.toString = function () {\n return \"ParentBased{root=\" + this._root.toString() + \", remoteParentSampled=\" + this._remoteParentSampled.toString() + \", remoteParentNotSampled=\" + this._remoteParentNotSampled.toString() + \", localParentSampled=\" + this._localParentSampled.toString() + \", localParentNotSampled=\" + this._localParentNotSampled.toString() + \"}\";\n };\n return ParentBasedSampler;\n}());\nexport { ParentBasedSampler };\n//# sourceMappingURL=ParentBasedSampler.js.map","/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport { SamplingDecision, isValidTraceId, } from '@opentelemetry/api';\n/**\n * @deprecated Use the one defined in @opentelemetry/sdk-trace-base instead.\n * Sampler that samples a given fraction of traces based of trace id deterministically.\n */\nvar TraceIdRatioBasedSampler = /** @class */ (function () {\n function TraceIdRatioBasedSampler(_ratio) {\n if (_ratio === void 0) { _ratio = 0; }\n this._ratio = _ratio;\n this._ratio = this._normalize(_ratio);\n this._upperBound = Math.floor(this._ratio * 0xffffffff);\n }\n TraceIdRatioBasedSampler.prototype.shouldSample = function (context, traceId) {\n return {\n decision: isValidTraceId(traceId) && this._accumulate(traceId) < this._upperBound\n ? SamplingDecision.RECORD_AND_SAMPLED\n : SamplingDecision.NOT_RECORD,\n };\n };\n TraceIdRatioBasedSampler.prototype.toString = function () {\n return \"TraceIdRatioBased{\" + this._ratio + \"}\";\n };\n TraceIdRatioBasedSampler.prototype._normalize = function (ratio) {\n if (typeof ratio !== 'number' || isNaN(ratio))\n return 0;\n return ratio >= 1 ? 1 : ratio <= 0 ? 0 : ratio;\n };\n TraceIdRatioBasedSampler.prototype._accumulate = function (traceId) {\n var accumulation = 0;\n for (var i = 0; i < traceId.length / 8; i++) {\n var pos = i * 8;\n var part = parseInt(traceId.slice(pos, pos + 8), 16);\n accumulation = (accumulation ^ part) >>> 0;\n }\n return accumulation;\n };\n return TraceIdRatioBasedSampler;\n}());\nexport { TraceIdRatioBasedSampler };\n//# sourceMappingURL=TraceIdRatioBasedSampler.js.map","/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n/* eslint-disable @typescript-eslint/no-explicit-any */\nimport { isPlainObject } from './lodash.merge';\nvar MAX_LEVEL = 20;\n/**\n * Merges objects together\n * @param args - objects / values to be merged\n */\nexport function merge() {\n var args = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n args[_i] = arguments[_i];\n }\n var result = args.shift();\n var objects = new WeakMap();\n while (args.length > 0) {\n result = mergeTwoObjects(result, args.shift(), 0, objects);\n }\n return result;\n}\nfunction takeValue(value) {\n if (isArray(value)) {\n return value.slice();\n }\n return value;\n}\n/**\n * Merges two objects\n * @param one - first object\n * @param two - second object\n * @param level - current deep level\n * @param objects - objects holder that has been already referenced - to prevent\n * cyclic dependency\n */\nfunction mergeTwoObjects(one, two, level, objects) {\n if (level === void 0) { level = 0; }\n var result;\n if (level > MAX_LEVEL) {\n return undefined;\n }\n level++;\n if (isPrimitive(one) || isPrimitive(two) || isFunction(two)) {\n result = takeValue(two);\n }\n else if (isArray(one)) {\n result = one.slice();\n if (isArray(two)) {\n for (var i = 0, j = two.length; i < j; i++) {\n result.push(takeValue(two[i]));\n }\n }\n else if (isObject(two)) {\n var keys = Object.keys(two);\n for (var i = 0, j = keys.length; i < j; i++) {\n var key = keys[i];\n result[key] = takeValue(two[key]);\n }\n }\n }\n else if (isObject(one)) {\n if (isObject(two)) {\n if (!shouldMerge(one, two)) {\n return two;\n }\n result = Object.assign({}, one);\n var keys = Object.keys(two);\n for (var i = 0, j = keys.length; i < j; i++) {\n var key = keys[i];\n var twoValue = two[key];\n if (isPrimitive(twoValue)) {\n if (typeof twoValue === 'undefined') {\n delete result[key];\n }\n else {\n // result[key] = takeValue(twoValue);\n result[key] = twoValue;\n }\n }\n else {\n var obj1 = result[key];\n var obj2 = twoValue;\n if (wasObjectReferenced(one, key, objects) ||\n wasObjectReferenced(two, key, objects)) {\n delete result[key];\n }\n else {\n if (isObject(obj1) && isObject(obj2)) {\n var arr1 = objects.get(obj1) || [];\n var arr2 = objects.get(obj2) || [];\n arr1.push({ obj: one, key: key });\n arr2.push({ obj: two, key: key });\n objects.set(obj1, arr1);\n objects.set(obj2, arr2);\n }\n result[key] = mergeTwoObjects(result[key], twoValue, level, objects);\n }\n }\n }\n }\n else {\n result = two;\n }\n }\n return result;\n}\n/**\n * Function to check if object has been already reference\n * @param obj\n * @param key\n * @param objects\n */\nfunction wasObjectReferenced(obj, key, objects) {\n var arr = objects.get(obj[key]) || [];\n for (var i = 0, j = arr.length; i < j; i++) {\n var info = arr[i];\n if (info.key === key && info.obj === obj) {\n return true;\n }\n }\n return false;\n}\nfunction isArray(value) {\n return Array.isArray(value);\n}\nfunction isFunction(value) {\n return typeof value === 'function';\n}\nfunction isObject(value) {\n return (!isPrimitive(value) &&\n !isArray(value) &&\n !isFunction(value) &&\n typeof value === 'object');\n}\nfunction isPrimitive(value) {\n return (typeof value === 'string' ||\n typeof value === 'number' ||\n typeof value === 'boolean' ||\n typeof value === 'undefined' ||\n value instanceof Date ||\n value instanceof RegExp ||\n value === null);\n}\nfunction shouldMerge(one, two) {\n if (!isPlainObject(one) || !isPlainObject(two)) {\n return false;\n }\n return true;\n}\n//# sourceMappingURL=merge.js.map","var __values = (this && this.__values) || function(o) {\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\n if (m) return m.call(o);\n if (o && typeof o.length === \"number\") return {\n next: function () {\n if (o && i >= o.length) o = void 0;\n return { value: o && o[i++], done: !o };\n }\n };\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\n};\n/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nexport function urlMatches(url, urlToMatch) {\n if (typeof urlToMatch === 'string') {\n return url === urlToMatch;\n }\n else {\n return !!url.match(urlToMatch);\n }\n}\n/**\n * Check if {@param url} should be ignored when comparing against {@param ignoredUrls}\n * @param url\n * @param ignoredUrls\n */\nexport function isUrlIgnored(url, ignoredUrls) {\n var e_1, _a;\n if (!ignoredUrls) {\n return false;\n }\n try {\n for (var ignoredUrls_1 = __values(ignoredUrls), ignoredUrls_1_1 = ignoredUrls_1.next(); !ignoredUrls_1_1.done; ignoredUrls_1_1 = ignoredUrls_1.next()) {\n var ignoreUrl = ignoredUrls_1_1.value;\n if (urlMatches(url, ignoreUrl)) {\n return true;\n }\n }\n }\n catch (e_1_1) { e_1 = { error: e_1_1 }; }\n finally {\n try {\n if (ignoredUrls_1_1 && !ignoredUrls_1_1.done && (_a = ignoredUrls_1.return)) _a.call(ignoredUrls_1);\n }\n finally { if (e_1) throw e_1.error; }\n }\n return false;\n}\n//# sourceMappingURL=url.js.map","/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n/**\n * Checks if certain function has been already wrapped\n * @param func\n */\nexport function isWrapped(func) {\n return (typeof func === 'function' &&\n typeof func.__original === 'function' &&\n typeof func.__unwrap === 'function' &&\n func.__wrapped === true);\n}\n//# sourceMappingURL=wrap.js.map","/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nvar Deferred = /** @class */ (function () {\n function Deferred() {\n var _this = this;\n this._promise = new Promise(function (resolve, reject) {\n _this._resolve = resolve;\n _this._reject = reject;\n });\n }\n Object.defineProperty(Deferred.prototype, \"promise\", {\n get: function () {\n return this._promise;\n },\n enumerable: false,\n configurable: true\n });\n Deferred.prototype.resolve = function (val) {\n this._resolve(val);\n };\n Deferred.prototype.reject = function (err) {\n this._reject(err);\n };\n return Deferred;\n}());\nexport { Deferred };\n//# sourceMappingURL=promise.js.map","/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nvar __read = (this && this.__read) || function (o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o), r, ar = [], e;\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\n }\n catch (error) { e = { error: error }; }\n finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n }\n finally { if (e) throw e.error; }\n }\n return ar;\n};\nvar __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\n if (ar || !(i in from)) {\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\n ar[i] = from[i];\n }\n }\n return to.concat(ar || Array.prototype.slice.call(from));\n};\nimport { Deferred } from './promise';\n/**\n * Bind the callback and only invoke the callback once regardless how many times `BindOnceFuture.call` is invoked.\n */\nvar BindOnceFuture = /** @class */ (function () {\n function BindOnceFuture(_callback, _that) {\n this._callback = _callback;\n this._that = _that;\n this._isCalled = false;\n this._deferred = new Deferred();\n }\n Object.defineProperty(BindOnceFuture.prototype, \"isCalled\", {\n get: function () {\n return this._isCalled;\n },\n enumerable: false,\n configurable: true\n });\n Object.defineProperty(BindOnceFuture.prototype, \"promise\", {\n get: function () {\n return this._deferred.promise;\n },\n enumerable: false,\n configurable: true\n });\n BindOnceFuture.prototype.call = function () {\n var _a;\n var _this = this;\n var args = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n args[_i] = arguments[_i];\n }\n if (!this._isCalled) {\n this._isCalled = true;\n try {\n Promise.resolve((_a = this._callback).call.apply(_a, __spreadArray([this._that], __read(args), false))).then(function (val) { return _this._deferred.resolve(val); }, function (err) { return _this._deferred.reject(err); });\n }\n catch (err) {\n this._deferred.reject(err);\n }\n }\n return this._deferred.promise;\n };\n return BindOnceFuture;\n}());\nexport { BindOnceFuture };\n//# sourceMappingURL=callback.js.map","/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nexport { W3CBaggagePropagator } from './baggage/propagation/W3CBaggagePropagator';\nexport { AnchoredClock } from './common/anchored-clock';\nexport { isAttributeKey, isAttributeValue, sanitizeAttributes, } from './common/attributes';\nexport { globalErrorHandler, setGlobalErrorHandler, } from './common/global-error-handler';\nexport { loggingErrorHandler } from './common/logging-error-handler';\nexport { addHrTimes, getTimeOrigin, hrTime, hrTimeDuration, hrTimeToMicroseconds, hrTimeToMilliseconds, hrTimeToNanoseconds, hrTimeToTimeStamp, isTimeInput, isTimeInputHrTime, millisToHrTime, timeInputToHrTime, } from './common/time';\nexport { hexToBinary } from './common/hex-to-binary';\nexport { ExportResultCode } from './ExportResult';\nimport { getKeyPairs, serializeKeyPairs, parseKeyPairsIntoRecord, parsePairKeyValue, } from './baggage/utils';\nexport var baggageUtils = {\n getKeyPairs: getKeyPairs,\n serializeKeyPairs: serializeKeyPairs,\n parseKeyPairsIntoRecord: parseKeyPairsIntoRecord,\n parsePairKeyValue: parsePairKeyValue,\n};\nexport { RandomIdGenerator, SDK_INFO, _globalThis, getEnv, getEnvWithoutDefaults, hexToBase64, otperformance, unrefTimer, } from './platform';\nexport { CompositePropagator, } from './propagation/composite';\nexport { TRACE_PARENT_HEADER, TRACE_STATE_HEADER, W3CTraceContextPropagator, parseTraceParent, } from './trace/W3CTraceContextPropagator';\nexport { RPCType, deleteRPCMetadata, getRPCMetadata, setRPCMetadata, } from './trace/rpc-metadata';\nexport { AlwaysOffSampler } from './trace/sampler/AlwaysOffSampler';\nexport { AlwaysOnSampler } from './trace/sampler/AlwaysOnSampler';\nexport { ParentBasedSampler } from './trace/sampler/ParentBasedSampler';\nexport { TraceIdRatioBasedSampler } from './trace/sampler/TraceIdRatioBasedSampler';\nexport { isTracingSuppressed, suppressTracing, unsuppressTracing, } from './trace/suppress-tracing';\nexport { TraceState } from './trace/TraceState';\nexport { DEFAULT_ATTRIBUTE_COUNT_LIMIT, DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT, DEFAULT_ENVIRONMENT, DEFAULT_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT, DEFAULT_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT, parseEnvironment, } from './utils/environment';\nexport { merge } from './utils/merge';\nexport { TracesSamplerValues } from './utils/sampling';\nexport { TimeoutError, callWithTimeout } from './utils/timeout';\nexport { isUrlIgnored, urlMatches } from './utils/url';\nexport { isWrapped } from './utils/wrap';\nexport { BindOnceFuture } from './utils/callback';\nexport { VERSION } from './version';\nimport { _export } from './internal/exporter';\nexport var internal = {\n _export: _export,\n};\n//# sourceMappingURL=index.js.map","/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport { context } from '@opentelemetry/api';\nimport { suppressTracing } from '../trace/suppress-tracing';\n/**\n * @internal\n * Shared functionality used by Exporters while exporting data, including suppression of Traces.\n */\nexport function _export(exporter, arg) {\n return new Promise(function (resolve) {\n // prevent downstream exporter calls from generating spans\n context.with(suppressTracing(context.active()), function () {\n exporter.export(arg, function (result) {\n resolve(result);\n });\n });\n });\n}\n//# sourceMappingURL=exporter.js.map"],"names":["t","e","Object","Symbol","i","a","encodeURIComponent","decodeURIComponent","Array","TypeError","JSON","String","Math","Date","n","Uint8Array","Buffer","globalThis","global","Number","isNaN","process","Set","RegExp","Map","parseInt","Error","Function","arguments","r","WeakMap","o","Promise","setTimeout","clearTimeout"],"mappings":"uBAuCiB,EAAMA,ECvBZ,ECAA,ECAH,EFDG,EGAP,EFAO,EGEA,E,ICjBX,GAAoB,CAAC,CAAG,CAACC,EAAS,KACjC,IAAI,IAAI,KAA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B,GAAG,CAAC,SAAUA,CAAK,EACpB,OAAO,EAAkBA,EAC7B,GACK,MAAM,CAAC,SAAU,CAAO,EAAI,OAAO,AAAY,SAAZ,GAAyB,EAAQ,KAAK,CAAC,MAAM,CAAG,CAAG,GACtF,MAAM,CAAC,SAAU,CAAO,CAAE,CAAO,EAGlC,OADA,CAAO,CAAC,EAAQ,GAAG,CAAC,CAAG,EAAQ,KAAK,CAC7B,CACX,EAAG,CAAC,EACR,E8B3DI,kBAAmB,CACvB,EAoBW,GAAW,CAClB,QC7BG,SAAiBA,CAAQ,CAAE,CAAG,EACjC,OAAO,IAAI+B,QAAQ,SAAUH,CAAO,EAEhC,cAAY,CAAC,EAAgB,gBAAc,IAAK,WAC5C5B,EAAS,MAAM,CAAC,EAAK,SAAU,CAAM,EACjC4B,EAAQ,EACZ,EACJ,EACJ,EACJ,CDqBA,C"} \ No newline at end of file diff --git a/packages/node_modules/@opentelemetry/resources/index.js.map b/packages/node_modules/@opentelemetry/resources/index.js.map new file mode 100644 index 00000000000..45e912f6e72 --- /dev/null +++ b/packages/node_modules/@opentelemetry/resources/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"@opentelemetry/resources/index.js","sources":["webpack:///./@opentelemetry/resources/build/esm/detectors/platform/node/machine-id/execAsync.js","webpack:///./@opentelemetry/resources/build/esm/detectors/platform/node/machine-id/getMachineId-bsd.js","webpack:///./@opentelemetry/resources/build/esm/detectors/platform/node/machine-id/getMachineId-darwin.js","webpack:///./@opentelemetry/resources/build/esm/detectors/platform/node/machine-id/getMachineId-linux.js","webpack:///./@opentelemetry/resources/build/esm/detectors/platform/node/machine-id/getMachineId-unsupported.js","webpack:///./@opentelemetry/resources/build/esm/detectors/platform/node/machine-id/getMachineId-win.js","webpack:///webpack/runtime/compat_get_default_export","webpack:///webpack/runtime/define_property_getters","webpack:///webpack/runtime/has_own_property","webpack:///webpack/runtime/make_namespace_object","webpack:///./@opentelemetry/core/build/esm/utils/sampling.js","webpack:///./@opentelemetry/core/build/esm/platform/node/sdk-info.js","webpack:///./@opentelemetry/resources/build/esm/detectors/platform/node/machine-id/getMachineId.js","webpack:///./@opentelemetry/semantic-conventions/build/esm/resource/SemanticResourceAttributes.js","webpack:///./@opentelemetry/core/build/esm/version.js","webpack:///./@opentelemetry/resources/build/esm/platform/node/default-service-name.js","webpack:///./@opentelemetry/resources/build/esm/Resource.js","webpack:///./@opentelemetry/resources/build/esm/detectors/BrowserDetectorSync.js","webpack:///./@opentelemetry/resources/build/esm/detectors/BrowserDetector.js","webpack:///./@opentelemetry/core/build/esm/utils/environment.js","webpack:///./@opentelemetry/resources/build/esm/detectors/EnvDetectorSync.js","webpack:///./@opentelemetry/core/build/esm/platform/node/environment.js","webpack:///./@opentelemetry/resources/build/esm/detectors/EnvDetector.js","webpack:///./@opentelemetry/resources/build/esm/detectors/platform/node/utils.js","webpack:///./@opentelemetry/resources/build/esm/detectors/platform/node/HostDetectorSync.js","webpack:///./@opentelemetry/resources/build/esm/detectors/platform/node/HostDetector.js","webpack:///./@opentelemetry/resources/build/esm/detectors/platform/node/OSDetectorSync.js","webpack:///./@opentelemetry/resources/build/esm/detectors/platform/node/OSDetector.js","webpack:///./@opentelemetry/resources/build/esm/detectors/platform/node/ProcessDetectorSync.js","webpack:///./@opentelemetry/resources/build/esm/detectors/platform/node/ProcessDetector.js","webpack:///./@opentelemetry/resources/build/esm/detectors/platform/node/ServiceInstanceIdDetectorSync.js","webpack:///./@opentelemetry/resources/build/esm/detect-resources.js","webpack:///./@opentelemetry/resources/build/esm/utils.js"],"sourcesContent":["/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport * as child_process from 'child_process';\nimport * as util from 'util';\nexport var execAsync = util.promisify(child_process.exec);\n//# sourceMappingURL=execAsync.js.map","/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nvar __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nvar __generator = (this && this.__generator) || function (thisArg, body) {\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\n function verb(n) { return function (v) { return step([n, v]); }; }\n function step(op) {\n if (f) throw new TypeError(\"Generator is already executing.\");\n while (_) try {\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\n if (y = 0, t) op = [op[0] & 2, t.value];\n switch (op[0]) {\n case 0: case 1: t = op; break;\n case 4: _.label++; return { value: op[1], done: false };\n case 5: _.label++; y = op[1]; op = [0]; continue;\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\n default:\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\n if (t[2]) _.ops.pop();\n _.trys.pop(); continue;\n }\n op = body.call(thisArg, _);\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\n }\n};\nimport { promises as fs } from 'fs';\nimport { execAsync } from './execAsync';\nimport { diag } from '@opentelemetry/api';\nexport function getMachineId() {\n return __awaiter(this, void 0, void 0, function () {\n var result, e_1, result, e_2;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n _a.trys.push([0, 2, , 3]);\n return [4 /*yield*/, fs.readFile('/etc/hostid', { encoding: 'utf8' })];\n case 1:\n result = _a.sent();\n return [2 /*return*/, result.trim()];\n case 2:\n e_1 = _a.sent();\n diag.debug(\"error reading machine id: \" + e_1);\n return [3 /*break*/, 3];\n case 3:\n _a.trys.push([3, 5, , 6]);\n return [4 /*yield*/, execAsync('kenv -q smbios.system.uuid')];\n case 4:\n result = _a.sent();\n return [2 /*return*/, result.stdout.trim()];\n case 5:\n e_2 = _a.sent();\n diag.debug(\"error reading machine id: \" + e_2);\n return [3 /*break*/, 6];\n case 6: return [2 /*return*/, ''];\n }\n });\n });\n}\n//# sourceMappingURL=getMachineId-bsd.js.map","/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nvar __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nvar __generator = (this && this.__generator) || function (thisArg, body) {\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\n function verb(n) { return function (v) { return step([n, v]); }; }\n function step(op) {\n if (f) throw new TypeError(\"Generator is already executing.\");\n while (_) try {\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\n if (y = 0, t) op = [op[0] & 2, t.value];\n switch (op[0]) {\n case 0: case 1: t = op; break;\n case 4: _.label++; return { value: op[1], done: false };\n case 5: _.label++; y = op[1]; op = [0]; continue;\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\n default:\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\n if (t[2]) _.ops.pop();\n _.trys.pop(); continue;\n }\n op = body.call(thisArg, _);\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\n }\n};\nimport { execAsync } from './execAsync';\nimport { diag } from '@opentelemetry/api';\nexport function getMachineId() {\n return __awaiter(this, void 0, void 0, function () {\n var result, idLine, parts, e_1;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n _a.trys.push([0, 2, , 3]);\n return [4 /*yield*/, execAsync('ioreg -rd1 -c \"IOPlatformExpertDevice\"')];\n case 1:\n result = _a.sent();\n idLine = result.stdout\n .split('\\n')\n .find(function (line) { return line.includes('IOPlatformUUID'); });\n if (!idLine) {\n return [2 /*return*/, ''];\n }\n parts = idLine.split('\" = \"');\n if (parts.length === 2) {\n return [2 /*return*/, parts[1].slice(0, -1)];\n }\n return [3 /*break*/, 3];\n case 2:\n e_1 = _a.sent();\n diag.debug(\"error reading machine id: \" + e_1);\n return [3 /*break*/, 3];\n case 3: return [2 /*return*/, ''];\n }\n });\n });\n}\n//# sourceMappingURL=getMachineId-darwin.js.map","var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nvar __generator = (this && this.__generator) || function (thisArg, body) {\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\n function verb(n) { return function (v) { return step([n, v]); }; }\n function step(op) {\n if (f) throw new TypeError(\"Generator is already executing.\");\n while (_) try {\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\n if (y = 0, t) op = [op[0] & 2, t.value];\n switch (op[0]) {\n case 0: case 1: t = op; break;\n case 4: _.label++; return { value: op[1], done: false };\n case 5: _.label++; y = op[1]; op = [0]; continue;\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\n default:\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\n if (t[2]) _.ops.pop();\n _.trys.pop(); continue;\n }\n op = body.call(thisArg, _);\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\n }\n};\nvar __values = (this && this.__values) || function(o) {\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\n if (m) return m.call(o);\n if (o && typeof o.length === \"number\") return {\n next: function () {\n if (o && i >= o.length) o = void 0;\n return { value: o && o[i++], done: !o };\n }\n };\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\n};\n/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport { promises as fs } from 'fs';\nimport { diag } from '@opentelemetry/api';\nexport function getMachineId() {\n return __awaiter(this, void 0, void 0, function () {\n var paths, paths_1, paths_1_1, path, result, e_1, e_2_1;\n var e_2, _a;\n return __generator(this, function (_b) {\n switch (_b.label) {\n case 0:\n paths = ['/etc/machine-id', '/var/lib/dbus/machine-id'];\n _b.label = 1;\n case 1:\n _b.trys.push([1, 8, 9, 10]);\n paths_1 = __values(paths), paths_1_1 = paths_1.next();\n _b.label = 2;\n case 2:\n if (!!paths_1_1.done) return [3 /*break*/, 7];\n path = paths_1_1.value;\n _b.label = 3;\n case 3:\n _b.trys.push([3, 5, , 6]);\n return [4 /*yield*/, fs.readFile(path, { encoding: 'utf8' })];\n case 4:\n result = _b.sent();\n return [2 /*return*/, result.trim()];\n case 5:\n e_1 = _b.sent();\n diag.debug(\"error reading machine id: \" + e_1);\n return [3 /*break*/, 6];\n case 6:\n paths_1_1 = paths_1.next();\n return [3 /*break*/, 2];\n case 7: return [3 /*break*/, 10];\n case 8:\n e_2_1 = _b.sent();\n e_2 = { error: e_2_1 };\n return [3 /*break*/, 10];\n case 9:\n try {\n if (paths_1_1 && !paths_1_1.done && (_a = paths_1.return)) _a.call(paths_1);\n }\n finally { if (e_2) throw e_2.error; }\n return [7 /*endfinally*/];\n case 10: return [2 /*return*/, ''];\n }\n });\n });\n}\n//# sourceMappingURL=getMachineId-linux.js.map","/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nvar __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nvar __generator = (this && this.__generator) || function (thisArg, body) {\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\n function verb(n) { return function (v) { return step([n, v]); }; }\n function step(op) {\n if (f) throw new TypeError(\"Generator is already executing.\");\n while (_) try {\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\n if (y = 0, t) op = [op[0] & 2, t.value];\n switch (op[0]) {\n case 0: case 1: t = op; break;\n case 4: _.label++; return { value: op[1], done: false };\n case 5: _.label++; y = op[1]; op = [0]; continue;\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\n default:\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\n if (t[2]) _.ops.pop();\n _.trys.pop(); continue;\n }\n op = body.call(thisArg, _);\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\n }\n};\nimport { diag } from '@opentelemetry/api';\nexport function getMachineId() {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n diag.debug('could not read machine-id: unsupported platform');\n return [2 /*return*/, ''];\n });\n });\n}\n//# sourceMappingURL=getMachineId-unsupported.js.map","/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nvar __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nvar __generator = (this && this.__generator) || function (thisArg, body) {\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\n function verb(n) { return function (v) { return step([n, v]); }; }\n function step(op) {\n if (f) throw new TypeError(\"Generator is already executing.\");\n while (_) try {\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\n if (y = 0, t) op = [op[0] & 2, t.value];\n switch (op[0]) {\n case 0: case 1: t = op; break;\n case 4: _.label++; return { value: op[1], done: false };\n case 5: _.label++; y = op[1]; op = [0]; continue;\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\n default:\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\n if (t[2]) _.ops.pop();\n _.trys.pop(); continue;\n }\n op = body.call(thisArg, _);\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\n }\n};\nimport * as process from 'process';\nimport { execAsync } from './execAsync';\nimport { diag } from '@opentelemetry/api';\nexport function getMachineId() {\n return __awaiter(this, void 0, void 0, function () {\n var args, command, result, parts, e_1;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n args = 'QUERY HKEY_LOCAL_MACHINE\\\\SOFTWARE\\\\Microsoft\\\\Cryptography /v MachineGuid';\n command = '%windir%\\\\System32\\\\REG.exe';\n if (process.arch === 'ia32' && 'PROCESSOR_ARCHITEW6432' in process.env) {\n command = '%windir%\\\\sysnative\\\\cmd.exe /c ' + command;\n }\n _a.label = 1;\n case 1:\n _a.trys.push([1, 3, , 4]);\n return [4 /*yield*/, execAsync(command + \" \" + args)];\n case 2:\n result = _a.sent();\n parts = result.stdout.split('REG_SZ');\n if (parts.length === 2) {\n return [2 /*return*/, parts[1].trim()];\n }\n return [3 /*break*/, 4];\n case 3:\n e_1 = _a.sent();\n diag.debug(\"error reading machine id: \" + e_1);\n return [3 /*break*/, 4];\n case 4: return [2 /*return*/, ''];\n }\n });\n });\n}\n//# sourceMappingURL=getMachineId-win.js.map","// getDefaultExport function for compatibility with non-ESM modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};\n","__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n }\n }\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nexport var TracesSamplerValues;\n(function (TracesSamplerValues) {\n TracesSamplerValues[\"AlwaysOff\"] = \"always_off\";\n TracesSamplerValues[\"AlwaysOn\"] = \"always_on\";\n TracesSamplerValues[\"ParentBasedAlwaysOff\"] = \"parentbased_always_off\";\n TracesSamplerValues[\"ParentBasedAlwaysOn\"] = \"parentbased_always_on\";\n TracesSamplerValues[\"ParentBasedTraceIdRatio\"] = \"parentbased_traceidratio\";\n TracesSamplerValues[\"TraceIdRatio\"] = \"traceidratio\";\n})(TracesSamplerValues || (TracesSamplerValues = {}));\n//# sourceMappingURL=sampling.js.map","/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nvar _a;\nimport { VERSION } from '../../version';\nimport { SEMRESATTRS_TELEMETRY_SDK_NAME, SEMRESATTRS_PROCESS_RUNTIME_NAME, SEMRESATTRS_TELEMETRY_SDK_LANGUAGE, TELEMETRYSDKLANGUAGEVALUES_NODEJS, SEMRESATTRS_TELEMETRY_SDK_VERSION, } from '@opentelemetry/semantic-conventions';\n/** Constants describing the SDK in use */\nexport var SDK_INFO = (_a = {},\n _a[SEMRESATTRS_TELEMETRY_SDK_NAME] = 'opentelemetry',\n _a[SEMRESATTRS_PROCESS_RUNTIME_NAME] = 'node',\n _a[SEMRESATTRS_TELEMETRY_SDK_LANGUAGE] = TELEMETRYSDKLANGUAGEVALUES_NODEJS,\n _a[SEMRESATTRS_TELEMETRY_SDK_VERSION] = VERSION,\n _a);\n//# sourceMappingURL=sdk-info.js.map","/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport * as process from 'process';\nvar getMachineId;\nswitch (process.platform) {\n case 'darwin':\n (getMachineId = require('./getMachineId-darwin').getMachineId);\n break;\n case 'linux':\n (getMachineId = require('./getMachineId-linux').getMachineId);\n break;\n case 'freebsd':\n (getMachineId = require('./getMachineId-bsd').getMachineId);\n break;\n case 'win32':\n (getMachineId = require('./getMachineId-win').getMachineId);\n break;\n default:\n (getMachineId = require('./getMachineId-unsupported').getMachineId);\n}\nexport { getMachineId };\n//# sourceMappingURL=getMachineId.js.map","/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport { createConstMap } from '../internal/utils';\n//----------------------------------------------------------------------------------------------------------\n// DO NOT EDIT, this is an Auto-generated file from scripts/semconv/templates//templates/SemanticAttributes.ts.j2\n//----------------------------------------------------------------------------------------------------------\n//----------------------------------------------------------------------------------------------------------\n// Constant values for SemanticResourceAttributes\n//----------------------------------------------------------------------------------------------------------\n// Temporary local constants to assign to the individual exports and the namespaced version\n// Required to avoid the namespace exports using the unminifiable export names for some package types\nvar TMP_CLOUD_PROVIDER = 'cloud.provider';\nvar TMP_CLOUD_ACCOUNT_ID = 'cloud.account.id';\nvar TMP_CLOUD_REGION = 'cloud.region';\nvar TMP_CLOUD_AVAILABILITY_ZONE = 'cloud.availability_zone';\nvar TMP_CLOUD_PLATFORM = 'cloud.platform';\nvar TMP_AWS_ECS_CONTAINER_ARN = 'aws.ecs.container.arn';\nvar TMP_AWS_ECS_CLUSTER_ARN = 'aws.ecs.cluster.arn';\nvar TMP_AWS_ECS_LAUNCHTYPE = 'aws.ecs.launchtype';\nvar TMP_AWS_ECS_TASK_ARN = 'aws.ecs.task.arn';\nvar TMP_AWS_ECS_TASK_FAMILY = 'aws.ecs.task.family';\nvar TMP_AWS_ECS_TASK_REVISION = 'aws.ecs.task.revision';\nvar TMP_AWS_EKS_CLUSTER_ARN = 'aws.eks.cluster.arn';\nvar TMP_AWS_LOG_GROUP_NAMES = 'aws.log.group.names';\nvar TMP_AWS_LOG_GROUP_ARNS = 'aws.log.group.arns';\nvar TMP_AWS_LOG_STREAM_NAMES = 'aws.log.stream.names';\nvar TMP_AWS_LOG_STREAM_ARNS = 'aws.log.stream.arns';\nvar TMP_CONTAINER_NAME = 'container.name';\nvar TMP_CONTAINER_ID = 'container.id';\nvar TMP_CONTAINER_RUNTIME = 'container.runtime';\nvar TMP_CONTAINER_IMAGE_NAME = 'container.image.name';\nvar TMP_CONTAINER_IMAGE_TAG = 'container.image.tag';\nvar TMP_DEPLOYMENT_ENVIRONMENT = 'deployment.environment';\nvar TMP_DEVICE_ID = 'device.id';\nvar TMP_DEVICE_MODEL_IDENTIFIER = 'device.model.identifier';\nvar TMP_DEVICE_MODEL_NAME = 'device.model.name';\nvar TMP_FAAS_NAME = 'faas.name';\nvar TMP_FAAS_ID = 'faas.id';\nvar TMP_FAAS_VERSION = 'faas.version';\nvar TMP_FAAS_INSTANCE = 'faas.instance';\nvar TMP_FAAS_MAX_MEMORY = 'faas.max_memory';\nvar TMP_HOST_ID = 'host.id';\nvar TMP_HOST_NAME = 'host.name';\nvar TMP_HOST_TYPE = 'host.type';\nvar TMP_HOST_ARCH = 'host.arch';\nvar TMP_HOST_IMAGE_NAME = 'host.image.name';\nvar TMP_HOST_IMAGE_ID = 'host.image.id';\nvar TMP_HOST_IMAGE_VERSION = 'host.image.version';\nvar TMP_K8S_CLUSTER_NAME = 'k8s.cluster.name';\nvar TMP_K8S_NODE_NAME = 'k8s.node.name';\nvar TMP_K8S_NODE_UID = 'k8s.node.uid';\nvar TMP_K8S_NAMESPACE_NAME = 'k8s.namespace.name';\nvar TMP_K8S_POD_UID = 'k8s.pod.uid';\nvar TMP_K8S_POD_NAME = 'k8s.pod.name';\nvar TMP_K8S_CONTAINER_NAME = 'k8s.container.name';\nvar TMP_K8S_REPLICASET_UID = 'k8s.replicaset.uid';\nvar TMP_K8S_REPLICASET_NAME = 'k8s.replicaset.name';\nvar TMP_K8S_DEPLOYMENT_UID = 'k8s.deployment.uid';\nvar TMP_K8S_DEPLOYMENT_NAME = 'k8s.deployment.name';\nvar TMP_K8S_STATEFULSET_UID = 'k8s.statefulset.uid';\nvar TMP_K8S_STATEFULSET_NAME = 'k8s.statefulset.name';\nvar TMP_K8S_DAEMONSET_UID = 'k8s.daemonset.uid';\nvar TMP_K8S_DAEMONSET_NAME = 'k8s.daemonset.name';\nvar TMP_K8S_JOB_UID = 'k8s.job.uid';\nvar TMP_K8S_JOB_NAME = 'k8s.job.name';\nvar TMP_K8S_CRONJOB_UID = 'k8s.cronjob.uid';\nvar TMP_K8S_CRONJOB_NAME = 'k8s.cronjob.name';\nvar TMP_OS_TYPE = 'os.type';\nvar TMP_OS_DESCRIPTION = 'os.description';\nvar TMP_OS_NAME = 'os.name';\nvar TMP_OS_VERSION = 'os.version';\nvar TMP_PROCESS_PID = 'process.pid';\nvar TMP_PROCESS_EXECUTABLE_NAME = 'process.executable.name';\nvar TMP_PROCESS_EXECUTABLE_PATH = 'process.executable.path';\nvar TMP_PROCESS_COMMAND = 'process.command';\nvar TMP_PROCESS_COMMAND_LINE = 'process.command_line';\nvar TMP_PROCESS_COMMAND_ARGS = 'process.command_args';\nvar TMP_PROCESS_OWNER = 'process.owner';\nvar TMP_PROCESS_RUNTIME_NAME = 'process.runtime.name';\nvar TMP_PROCESS_RUNTIME_VERSION = 'process.runtime.version';\nvar TMP_PROCESS_RUNTIME_DESCRIPTION = 'process.runtime.description';\nvar TMP_SERVICE_NAME = 'service.name';\nvar TMP_SERVICE_NAMESPACE = 'service.namespace';\nvar TMP_SERVICE_INSTANCE_ID = 'service.instance.id';\nvar TMP_SERVICE_VERSION = 'service.version';\nvar TMP_TELEMETRY_SDK_NAME = 'telemetry.sdk.name';\nvar TMP_TELEMETRY_SDK_LANGUAGE = 'telemetry.sdk.language';\nvar TMP_TELEMETRY_SDK_VERSION = 'telemetry.sdk.version';\nvar TMP_TELEMETRY_AUTO_VERSION = 'telemetry.auto.version';\nvar TMP_WEBENGINE_NAME = 'webengine.name';\nvar TMP_WEBENGINE_VERSION = 'webengine.version';\nvar TMP_WEBENGINE_DESCRIPTION = 'webengine.description';\n/**\n * Name of the cloud provider.\n *\n * @deprecated Use ATTR_CLOUD_PROVIDER in [incubating entry-point]({@link https://github.com/open-telemetry/opentelemetry-js/blob/main/semantic-conventions/README.md#unstable-semconv}).\n */\nexport var SEMRESATTRS_CLOUD_PROVIDER = TMP_CLOUD_PROVIDER;\n/**\n * The cloud account ID the resource is assigned to.\n *\n * @deprecated Use ATTR_CLOUD_ACCOUNT_ID in [incubating entry-point]({@link https://github.com/open-telemetry/opentelemetry-js/blob/main/semantic-conventions/README.md#unstable-semconv}).\n */\nexport var SEMRESATTRS_CLOUD_ACCOUNT_ID = TMP_CLOUD_ACCOUNT_ID;\n/**\n * The geographical region the resource is running. Refer to your provider's docs to see the available regions, for example [Alibaba Cloud regions](https://www.alibabacloud.com/help/doc-detail/40654.htm), [AWS regions](https://aws.amazon.com/about-aws/global-infrastructure/regions_az/), [Azure regions](https://azure.microsoft.com/en-us/global-infrastructure/geographies/), or [Google Cloud regions](https://cloud.google.com/about/locations).\n *\n * @deprecated Use ATTR_CLOUD_REGION in [incubating entry-point]({@link https://github.com/open-telemetry/opentelemetry-js/blob/main/semantic-conventions/README.md#unstable-semconv}).\n */\nexport var SEMRESATTRS_CLOUD_REGION = TMP_CLOUD_REGION;\n/**\n * Cloud regions often have multiple, isolated locations known as zones to increase availability. Availability zone represents the zone where the resource is running.\n *\n * Note: Availability zones are called "zones" on Alibaba Cloud and Google Cloud.\n *\n * @deprecated Use ATTR_CLOUD_AVAILABILITY_ZONE in [incubating entry-point]({@link https://github.com/open-telemetry/opentelemetry-js/blob/main/semantic-conventions/README.md#unstable-semconv}).\n */\nexport var SEMRESATTRS_CLOUD_AVAILABILITY_ZONE = TMP_CLOUD_AVAILABILITY_ZONE;\n/**\n * The cloud platform in use.\n *\n * Note: The prefix of the service SHOULD match the one specified in `cloud.provider`.\n *\n * @deprecated Use ATTR_CLOUD_PLATFORM in [incubating entry-point]({@link https://github.com/open-telemetry/opentelemetry-js/blob/main/semantic-conventions/README.md#unstable-semconv}).\n */\nexport var SEMRESATTRS_CLOUD_PLATFORM = TMP_CLOUD_PLATFORM;\n/**\n * The Amazon Resource Name (ARN) of an [ECS container instance](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ECS_instances.html).\n *\n * @deprecated Use ATTR_AWS_ECS_CONTAINER_ARN in [incubating entry-point]({@link https://github.com/open-telemetry/opentelemetry-js/blob/main/semantic-conventions/README.md#unstable-semconv}).\n */\nexport var SEMRESATTRS_AWS_ECS_CONTAINER_ARN = TMP_AWS_ECS_CONTAINER_ARN;\n/**\n * The ARN of an [ECS cluster](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/clusters.html).\n *\n * @deprecated Use ATTR_AWS_ECS_CLUSTER_ARN in [incubating entry-point]({@link https://github.com/open-telemetry/opentelemetry-js/blob/main/semantic-conventions/README.md#unstable-semconv}).\n */\nexport var SEMRESATTRS_AWS_ECS_CLUSTER_ARN = TMP_AWS_ECS_CLUSTER_ARN;\n/**\n * The [launch type](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/launch_types.html) for an ECS task.\n *\n * @deprecated Use ATTR_AWS_ECS_LAUNCHTYPE in [incubating entry-point]({@link https://github.com/open-telemetry/opentelemetry-js/blob/main/semantic-conventions/README.md#unstable-semconv}).\n */\nexport var SEMRESATTRS_AWS_ECS_LAUNCHTYPE = TMP_AWS_ECS_LAUNCHTYPE;\n/**\n * The ARN of an [ECS task definition](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task_definitions.html).\n *\n * @deprecated Use ATTR_AWS_ECS_TASK_ARN in [incubating entry-point]({@link https://github.com/open-telemetry/opentelemetry-js/blob/main/semantic-conventions/README.md#unstable-semconv}).\n */\nexport var SEMRESATTRS_AWS_ECS_TASK_ARN = TMP_AWS_ECS_TASK_ARN;\n/**\n * The task definition family this task definition is a member of.\n *\n * @deprecated Use ATTR_AWS_ECS_TASK_FAMILY in [incubating entry-point]({@link https://github.com/open-telemetry/opentelemetry-js/blob/main/semantic-conventions/README.md#unstable-semconv}).\n */\nexport var SEMRESATTRS_AWS_ECS_TASK_FAMILY = TMP_AWS_ECS_TASK_FAMILY;\n/**\n * The revision for this task definition.\n *\n * @deprecated Use ATTR_AWS_ECS_TASK_REVISION in [incubating entry-point]({@link https://github.com/open-telemetry/opentelemetry-js/blob/main/semantic-conventions/README.md#unstable-semconv}).\n */\nexport var SEMRESATTRS_AWS_ECS_TASK_REVISION = TMP_AWS_ECS_TASK_REVISION;\n/**\n * The ARN of an EKS cluster.\n *\n * @deprecated Use ATTR_AWS_EKS_CLUSTER_ARN in [incubating entry-point]({@link https://github.com/open-telemetry/opentelemetry-js/blob/main/semantic-conventions/README.md#unstable-semconv}).\n */\nexport var SEMRESATTRS_AWS_EKS_CLUSTER_ARN = TMP_AWS_EKS_CLUSTER_ARN;\n/**\n * The name(s) of the AWS log group(s) an application is writing to.\n *\n * Note: Multiple log groups must be supported for cases like multi-container applications, where a single application has sidecar containers, and each write to their own log group.\n *\n * @deprecated Use ATTR_AWS_LOG_GROUP_NAMES in [incubating entry-point]({@link https://github.com/open-telemetry/opentelemetry-js/blob/main/semantic-conventions/README.md#unstable-semconv}).\n */\nexport var SEMRESATTRS_AWS_LOG_GROUP_NAMES = TMP_AWS_LOG_GROUP_NAMES;\n/**\n * The Amazon Resource Name(s) (ARN) of the AWS log group(s).\n *\n * Note: See the [log group ARN format documentation](https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/iam-access-control-overview-cwl.html#CWL_ARN_Format).\n *\n * @deprecated Use ATTR_AWS_LOG_GROUP_ARNS in [incubating entry-point]({@link https://github.com/open-telemetry/opentelemetry-js/blob/main/semantic-conventions/README.md#unstable-semconv}).\n */\nexport var SEMRESATTRS_AWS_LOG_GROUP_ARNS = TMP_AWS_LOG_GROUP_ARNS;\n/**\n * The name(s) of the AWS log stream(s) an application is writing to.\n *\n * @deprecated Use ATTR_AWS_LOG_STREAM_NAMES in [incubating entry-point]({@link https://github.com/open-telemetry/opentelemetry-js/blob/main/semantic-conventions/README.md#unstable-semconv}).\n */\nexport var SEMRESATTRS_AWS_LOG_STREAM_NAMES = TMP_AWS_LOG_STREAM_NAMES;\n/**\n * The ARN(s) of the AWS log stream(s).\n *\n * Note: See the [log stream ARN format documentation](https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/iam-access-control-overview-cwl.html#CWL_ARN_Format). One log group can contain several log streams, so these ARNs necessarily identify both a log group and a log stream.\n *\n * @deprecated Use ATTR_AWS_LOG_STREAM_ARNS in [incubating entry-point]({@link https://github.com/open-telemetry/opentelemetry-js/blob/main/semantic-conventions/README.md#unstable-semconv}).\n */\nexport var SEMRESATTRS_AWS_LOG_STREAM_ARNS = TMP_AWS_LOG_STREAM_ARNS;\n/**\n * Container name.\n *\n * @deprecated Use ATTR_CONTAINER_NAME in [incubating entry-point]({@link https://github.com/open-telemetry/opentelemetry-js/blob/main/semantic-conventions/README.md#unstable-semconv}).\n */\nexport var SEMRESATTRS_CONTAINER_NAME = TMP_CONTAINER_NAME;\n/**\n * Container ID. Usually a UUID, as for example used to [identify Docker containers](https://docs.docker.com/engine/reference/run/#container-identification). The UUID might be abbreviated.\n *\n * @deprecated Use ATTR_CONTAINER_ID in [incubating entry-point]({@link https://github.com/open-telemetry/opentelemetry-js/blob/main/semantic-conventions/README.md#unstable-semconv}).\n */\nexport var SEMRESATTRS_CONTAINER_ID = TMP_CONTAINER_ID;\n/**\n * The container runtime managing this container.\n *\n * @deprecated Use ATTR_CONTAINER_RUNTIME in [incubating entry-point]({@link https://github.com/open-telemetry/opentelemetry-js/blob/main/semantic-conventions/README.md#unstable-semconv}).\n */\nexport var SEMRESATTRS_CONTAINER_RUNTIME = TMP_CONTAINER_RUNTIME;\n/**\n * Name of the image the container was built on.\n *\n * @deprecated Use ATTR_CONTAINER_IMAGE_NAME in [incubating entry-point]({@link https://github.com/open-telemetry/opentelemetry-js/blob/main/semantic-conventions/README.md#unstable-semconv}).\n */\nexport var SEMRESATTRS_CONTAINER_IMAGE_NAME = TMP_CONTAINER_IMAGE_NAME;\n/**\n * Container image tag.\n *\n * @deprecated Use ATTR_CONTAINER_IMAGE_TAGS in [incubating entry-point]({@link https://github.com/open-telemetry/opentelemetry-js/blob/main/semantic-conventions/README.md#unstable-semconv}).\n */\nexport var SEMRESATTRS_CONTAINER_IMAGE_TAG = TMP_CONTAINER_IMAGE_TAG;\n/**\n * Name of the [deployment environment](https://en.wikipedia.org/wiki/Deployment_environment) (aka deployment tier).\n *\n * @deprecated Use ATTR_DEPLOYMENT_ENVIRONMENT in [incubating entry-point]({@link https://github.com/open-telemetry/opentelemetry-js/blob/main/semantic-conventions/README.md#unstable-semconv}).\n */\nexport var SEMRESATTRS_DEPLOYMENT_ENVIRONMENT = TMP_DEPLOYMENT_ENVIRONMENT;\n/**\n * A unique identifier representing the device.\n *\n * Note: The device identifier MUST only be defined using the values outlined below. This value is not an advertising identifier and MUST NOT be used as such. On iOS (Swift or Objective-C), this value MUST be equal to the [vendor identifier](https://developer.apple.com/documentation/uikit/uidevice/1620059-identifierforvendor). On Android (Java or Kotlin), this value MUST be equal to the Firebase Installation ID or a globally unique UUID which is persisted across sessions in your application. More information can be found [here](https://developer.android.com/training/articles/user-data-ids) on best practices and exact implementation details. Caution should be taken when storing personal data or anything which can identify a user. GDPR and data protection laws may apply, ensure you do your own due diligence.\n *\n * @deprecated Use ATTR_DEVICE_ID in [incubating entry-point]({@link https://github.com/open-telemetry/opentelemetry-js/blob/main/semantic-conventions/README.md#unstable-semconv}).\n */\nexport var SEMRESATTRS_DEVICE_ID = TMP_DEVICE_ID;\n/**\n * The model identifier for the device.\n *\n * Note: It's recommended this value represents a machine readable version of the model identifier rather than the market or consumer-friendly name of the device.\n *\n * @deprecated Use ATTR_DEVICE_MODEL_IDENTIFIER in [incubating entry-point]({@link https://github.com/open-telemetry/opentelemetry-js/blob/main/semantic-conventions/README.md#unstable-semconv}).\n */\nexport var SEMRESATTRS_DEVICE_MODEL_IDENTIFIER = TMP_DEVICE_MODEL_IDENTIFIER;\n/**\n * The marketing name for the device model.\n *\n * Note: It's recommended this value represents a human readable version of the device model rather than a machine readable alternative.\n *\n * @deprecated Use ATTR_DEVICE_MODEL_NAME in [incubating entry-point]({@link https://github.com/open-telemetry/opentelemetry-js/blob/main/semantic-conventions/README.md#unstable-semconv}).\n */\nexport var SEMRESATTRS_DEVICE_MODEL_NAME = TMP_DEVICE_MODEL_NAME;\n/**\n * The name of the single function that this runtime instance executes.\n *\n * Note: This is the name of the function as configured/deployed on the FaaS platform and is usually different from the name of the callback function (which may be stored in the [`code.namespace`/`code.function`](../../trace/semantic_conventions/span-general.md#source-code-attributes) span attributes).\n *\n * @deprecated Use ATTR_FAAS_NAME in [incubating entry-point]({@link https://github.com/open-telemetry/opentelemetry-js/blob/main/semantic-conventions/README.md#unstable-semconv}).\n */\nexport var SEMRESATTRS_FAAS_NAME = TMP_FAAS_NAME;\n/**\n* The unique ID of the single function that this runtime instance executes.\n*\n* Note: Depending on the cloud provider, use:\n\n* **AWS Lambda:** The function [ARN](https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html).\nTake care not to use the "invoked ARN" directly but replace any\n[alias suffix](https://docs.aws.amazon.com/lambda/latest/dg/configuration-aliases.html) with the resolved function version, as the same runtime instance may be invokable with multiple\ndifferent aliases.\n* **GCP:** The [URI of the resource](https://cloud.google.com/iam/docs/full-resource-names)\n* **Azure:** The [Fully Qualified Resource ID](https://docs.microsoft.com/en-us/rest/api/resources/resources/get-by-id).\n\nOn some providers, it may not be possible to determine the full ID at startup,\nwhich is why this field cannot be made required. For example, on AWS the account ID\npart of the ARN is not available without calling another AWS API\nwhich may be deemed too slow for a short-running lambda function.\nAs an alternative, consider setting `faas.id` as a span attribute instead.\n*\n* @deprecated Use ATTR_CLOUD_RESOURCE_ID in [incubating entry-point]({@link https://github.com/open-telemetry/opentelemetry-js/blob/main/semantic-conventions/README.md#unstable-semconv}).\n*/\nexport var SEMRESATTRS_FAAS_ID = TMP_FAAS_ID;\n/**\n* The immutable version of the function being executed.\n*\n* Note: Depending on the cloud provider and platform, use:\n\n* **AWS Lambda:** The [function version](https://docs.aws.amazon.com/lambda/latest/dg/configuration-versions.html)\n (an integer represented as a decimal string).\n* **Google Cloud Run:** The [revision](https://cloud.google.com/run/docs/managing/revisions)\n (i.e., the function name plus the revision suffix).\n* **Google Cloud Functions:** The value of the\n [`K_REVISION` environment variable](https://cloud.google.com/functions/docs/env-var#runtime_environment_variables_set_automatically).\n* **Azure Functions:** Not applicable. Do not set this attribute.\n*\n* @deprecated Use ATTR_FAAS_VERSION in [incubating entry-point]({@link https://github.com/open-telemetry/opentelemetry-js/blob/main/semantic-conventions/README.md#unstable-semconv}).\n*/\nexport var SEMRESATTRS_FAAS_VERSION = TMP_FAAS_VERSION;\n/**\n * The execution environment ID as a string, that will be potentially reused for other invocations to the same function/function version.\n *\n * Note: * **AWS Lambda:** Use the (full) log stream name.\n *\n * @deprecated Use ATTR_FAAS_INSTANCE in [incubating entry-point]({@link https://github.com/open-telemetry/opentelemetry-js/blob/main/semantic-conventions/README.md#unstable-semconv}).\n */\nexport var SEMRESATTRS_FAAS_INSTANCE = TMP_FAAS_INSTANCE;\n/**\n * The amount of memory available to the serverless function in MiB.\n *\n * Note: It's recommended to set this attribute since e.g. too little memory can easily stop a Java AWS Lambda function from working correctly. On AWS Lambda, the environment variable `AWS_LAMBDA_FUNCTION_MEMORY_SIZE` provides this information.\n *\n * @deprecated Use ATTR_FAAS_MAX_MEMORY in [incubating entry-point]({@link https://github.com/open-telemetry/opentelemetry-js/blob/main/semantic-conventions/README.md#unstable-semconv}).\n */\nexport var SEMRESATTRS_FAAS_MAX_MEMORY = TMP_FAAS_MAX_MEMORY;\n/**\n * Unique host ID. For Cloud, this must be the instance_id assigned by the cloud provider.\n *\n * @deprecated Use ATTR_HOST_ID in [incubating entry-point]({@link https://github.com/open-telemetry/opentelemetry-js/blob/main/semantic-conventions/README.md#unstable-semconv}).\n */\nexport var SEMRESATTRS_HOST_ID = TMP_HOST_ID;\n/**\n * Name of the host. On Unix systems, it may contain what the hostname command returns, or the fully qualified hostname, or another name specified by the user.\n *\n * @deprecated Use ATTR_HOST_NAME in [incubating entry-point]({@link https://github.com/open-telemetry/opentelemetry-js/blob/main/semantic-conventions/README.md#unstable-semconv}).\n */\nexport var SEMRESATTRS_HOST_NAME = TMP_HOST_NAME;\n/**\n * Type of host. For Cloud, this must be the machine type.\n *\n * @deprecated Use ATTR_HOST_TYPE in [incubating entry-point]({@link https://github.com/open-telemetry/opentelemetry-js/blob/main/semantic-conventions/README.md#unstable-semconv}).\n */\nexport var SEMRESATTRS_HOST_TYPE = TMP_HOST_TYPE;\n/**\n * The CPU architecture the host system is running on.\n *\n * @deprecated Use ATTR_HOST_ARCH in [incubating entry-point]({@link https://github.com/open-telemetry/opentelemetry-js/blob/main/semantic-conventions/README.md#unstable-semconv}).\n */\nexport var SEMRESATTRS_HOST_ARCH = TMP_HOST_ARCH;\n/**\n * Name of the VM image or OS install the host was instantiated from.\n *\n * @deprecated Use ATTR_HOST_IMAGE_NAME in [incubating entry-point]({@link https://github.com/open-telemetry/opentelemetry-js/blob/main/semantic-conventions/README.md#unstable-semconv}).\n */\nexport var SEMRESATTRS_HOST_IMAGE_NAME = TMP_HOST_IMAGE_NAME;\n/**\n * VM image ID. For Cloud, this value is from the provider.\n *\n * @deprecated Use ATTR_HOST_IMAGE_ID in [incubating entry-point]({@link https://github.com/open-telemetry/opentelemetry-js/blob/main/semantic-conventions/README.md#unstable-semconv}).\n */\nexport var SEMRESATTRS_HOST_IMAGE_ID = TMP_HOST_IMAGE_ID;\n/**\n * The version string of the VM image as defined in [Version Attributes](README.md#version-attributes).\n *\n * @deprecated Use ATTR_HOST_IMAGE_VERSION in [incubating entry-point]({@link https://github.com/open-telemetry/opentelemetry-js/blob/main/semantic-conventions/README.md#unstable-semconv}).\n */\nexport var SEMRESATTRS_HOST_IMAGE_VERSION = TMP_HOST_IMAGE_VERSION;\n/**\n * The name of the cluster.\n *\n * @deprecated Use ATTR_K8S_CLUSTER_NAME in [incubating entry-point]({@link https://github.com/open-telemetry/opentelemetry-js/blob/main/semantic-conventions/README.md#unstable-semconv}).\n */\nexport var SEMRESATTRS_K8S_CLUSTER_NAME = TMP_K8S_CLUSTER_NAME;\n/**\n * The name of the Node.\n *\n * @deprecated Use ATTR_K8S_NODE_NAME in [incubating entry-point]({@link https://github.com/open-telemetry/opentelemetry-js/blob/main/semantic-conventions/README.md#unstable-semconv}).\n */\nexport var SEMRESATTRS_K8S_NODE_NAME = TMP_K8S_NODE_NAME;\n/**\n * The UID of the Node.\n *\n * @deprecated Use ATTR_K8S_NODE_UID in [incubating entry-point]({@link https://github.com/open-telemetry/opentelemetry-js/blob/main/semantic-conventions/README.md#unstable-semconv}).\n */\nexport var SEMRESATTRS_K8S_NODE_UID = TMP_K8S_NODE_UID;\n/**\n * The name of the namespace that the pod is running in.\n *\n * @deprecated Use ATTR_K8S_NAMESPACE_NAME in [incubating entry-point]({@link https://github.com/open-telemetry/opentelemetry-js/blob/main/semantic-conventions/README.md#unstable-semconv}).\n */\nexport var SEMRESATTRS_K8S_NAMESPACE_NAME = TMP_K8S_NAMESPACE_NAME;\n/**\n * The UID of the Pod.\n *\n * @deprecated Use ATTR_K8S_POD_UID in [incubating entry-point]({@link https://github.com/open-telemetry/opentelemetry-js/blob/main/semantic-conventions/README.md#unstable-semconv}).\n */\nexport var SEMRESATTRS_K8S_POD_UID = TMP_K8S_POD_UID;\n/**\n * The name of the Pod.\n *\n * @deprecated Use ATTR_K8S_POD_NAME in [incubating entry-point]({@link https://github.com/open-telemetry/opentelemetry-js/blob/main/semantic-conventions/README.md#unstable-semconv}).\n */\nexport var SEMRESATTRS_K8S_POD_NAME = TMP_K8S_POD_NAME;\n/**\n * The name of the Container in a Pod template.\n *\n * @deprecated Use ATTR_K8S_CONTAINER_NAME in [incubating entry-point]({@link https://github.com/open-telemetry/opentelemetry-js/blob/main/semantic-conventions/README.md#unstable-semconv}).\n */\nexport var SEMRESATTRS_K8S_CONTAINER_NAME = TMP_K8S_CONTAINER_NAME;\n/**\n * The UID of the ReplicaSet.\n *\n * @deprecated Use ATTR_K8S_REPLICASET_UID in [incubating entry-point]({@link https://github.com/open-telemetry/opentelemetry-js/blob/main/semantic-conventions/README.md#unstable-semconv}).\n */\nexport var SEMRESATTRS_K8S_REPLICASET_UID = TMP_K8S_REPLICASET_UID;\n/**\n * The name of the ReplicaSet.\n *\n * @deprecated Use ATTR_K8S_REPLICASET_NAME in [incubating entry-point]({@link https://github.com/open-telemetry/opentelemetry-js/blob/main/semantic-conventions/README.md#unstable-semconv}).\n */\nexport var SEMRESATTRS_K8S_REPLICASET_NAME = TMP_K8S_REPLICASET_NAME;\n/**\n * The UID of the Deployment.\n *\n * @deprecated Use ATTR_K8S_DEPLOYMENT_UID in [incubating entry-point]({@link https://github.com/open-telemetry/opentelemetry-js/blob/main/semantic-conventions/README.md#unstable-semconv}).\n */\nexport var SEMRESATTRS_K8S_DEPLOYMENT_UID = TMP_K8S_DEPLOYMENT_UID;\n/**\n * The name of the Deployment.\n *\n * @deprecated Use ATTR_K8S_DEPLOYMENT_NAME in [incubating entry-point]({@link https://github.com/open-telemetry/opentelemetry-js/blob/main/semantic-conventions/README.md#unstable-semconv}).\n */\nexport var SEMRESATTRS_K8S_DEPLOYMENT_NAME = TMP_K8S_DEPLOYMENT_NAME;\n/**\n * The UID of the StatefulSet.\n *\n * @deprecated Use ATTR_K8S_STATEFULSET_UID in [incubating entry-point]({@link https://github.com/open-telemetry/opentelemetry-js/blob/main/semantic-conventions/README.md#unstable-semconv}).\n */\nexport var SEMRESATTRS_K8S_STATEFULSET_UID = TMP_K8S_STATEFULSET_UID;\n/**\n * The name of the StatefulSet.\n *\n * @deprecated Use ATTR_K8S_STATEFULSET_NAME in [incubating entry-point]({@link https://github.com/open-telemetry/opentelemetry-js/blob/main/semantic-conventions/README.md#unstable-semconv}).\n */\nexport var SEMRESATTRS_K8S_STATEFULSET_NAME = TMP_K8S_STATEFULSET_NAME;\n/**\n * The UID of the DaemonSet.\n *\n * @deprecated Use ATTR_K8S_DAEMONSET_UID in [incubating entry-point]({@link https://github.com/open-telemetry/opentelemetry-js/blob/main/semantic-conventions/README.md#unstable-semconv}).\n */\nexport var SEMRESATTRS_K8S_DAEMONSET_UID = TMP_K8S_DAEMONSET_UID;\n/**\n * The name of the DaemonSet.\n *\n * @deprecated Use ATTR_K8S_DAEMONSET_NAME in [incubating entry-point]({@link https://github.com/open-telemetry/opentelemetry-js/blob/main/semantic-conventions/README.md#unstable-semconv}).\n */\nexport var SEMRESATTRS_K8S_DAEMONSET_NAME = TMP_K8S_DAEMONSET_NAME;\n/**\n * The UID of the Job.\n *\n * @deprecated Use ATTR_K8S_JOB_UID in [incubating entry-point]({@link https://github.com/open-telemetry/opentelemetry-js/blob/main/semantic-conventions/README.md#unstable-semconv}).\n */\nexport var SEMRESATTRS_K8S_JOB_UID = TMP_K8S_JOB_UID;\n/**\n * The name of the Job.\n *\n * @deprecated Use ATTR_K8S_JOB_NAME in [incubating entry-point]({@link https://github.com/open-telemetry/opentelemetry-js/blob/main/semantic-conventions/README.md#unstable-semconv}).\n */\nexport var SEMRESATTRS_K8S_JOB_NAME = TMP_K8S_JOB_NAME;\n/**\n * The UID of the CronJob.\n *\n * @deprecated Use ATTR_K8S_CRONJOB_UID in [incubating entry-point]({@link https://github.com/open-telemetry/opentelemetry-js/blob/main/semantic-conventions/README.md#unstable-semconv}).\n */\nexport var SEMRESATTRS_K8S_CRONJOB_UID = TMP_K8S_CRONJOB_UID;\n/**\n * The name of the CronJob.\n *\n * @deprecated Use ATTR_K8S_CRONJOB_NAME in [incubating entry-point]({@link https://github.com/open-telemetry/opentelemetry-js/blob/main/semantic-conventions/README.md#unstable-semconv}).\n */\nexport var SEMRESATTRS_K8S_CRONJOB_NAME = TMP_K8S_CRONJOB_NAME;\n/**\n * The operating system type.\n *\n * @deprecated Use ATTR_OS_TYPE in [incubating entry-point]({@link https://github.com/open-telemetry/opentelemetry-js/blob/main/semantic-conventions/README.md#unstable-semconv}).\n */\nexport var SEMRESATTRS_OS_TYPE = TMP_OS_TYPE;\n/**\n * Human readable (not intended to be parsed) OS version information, like e.g. reported by `ver` or `lsb_release -a` commands.\n *\n * @deprecated Use ATTR_OS_DESCRIPTION in [incubating entry-point]({@link https://github.com/open-telemetry/opentelemetry-js/blob/main/semantic-conventions/README.md#unstable-semconv}).\n */\nexport var SEMRESATTRS_OS_DESCRIPTION = TMP_OS_DESCRIPTION;\n/**\n * Human readable operating system name.\n *\n * @deprecated Use ATTR_OS_NAME in [incubating entry-point]({@link https://github.com/open-telemetry/opentelemetry-js/blob/main/semantic-conventions/README.md#unstable-semconv}).\n */\nexport var SEMRESATTRS_OS_NAME = TMP_OS_NAME;\n/**\n * The version string of the operating system as defined in [Version Attributes](../../resource/semantic_conventions/README.md#version-attributes).\n *\n * @deprecated Use ATTR_OS_VERSION in [incubating entry-point]({@link https://github.com/open-telemetry/opentelemetry-js/blob/main/semantic-conventions/README.md#unstable-semconv}).\n */\nexport var SEMRESATTRS_OS_VERSION = TMP_OS_VERSION;\n/**\n * Process identifier (PID).\n *\n * @deprecated Use ATTR_PROCESS_PID in [incubating entry-point]({@link https://github.com/open-telemetry/opentelemetry-js/blob/main/semantic-conventions/README.md#unstable-semconv}).\n */\nexport var SEMRESATTRS_PROCESS_PID = TMP_PROCESS_PID;\n/**\n * The name of the process executable. On Linux based systems, can be set to the `Name` in `proc/[pid]/status`. On Windows, can be set to the base name of `GetProcessImageFileNameW`.\n *\n * @deprecated Use ATTR_PROCESS_EXECUTABLE_NAME in [incubating entry-point]({@link https://github.com/open-telemetry/opentelemetry-js/blob/main/semantic-conventions/README.md#unstable-semconv}).\n */\nexport var SEMRESATTRS_PROCESS_EXECUTABLE_NAME = TMP_PROCESS_EXECUTABLE_NAME;\n/**\n * The full path to the process executable. On Linux based systems, can be set to the target of `proc/[pid]/exe`. On Windows, can be set to the result of `GetProcessImageFileNameW`.\n *\n * @deprecated Use ATTR_PROCESS_EXECUTABLE_PATH in [incubating entry-point]({@link https://github.com/open-telemetry/opentelemetry-js/blob/main/semantic-conventions/README.md#unstable-semconv}).\n */\nexport var SEMRESATTRS_PROCESS_EXECUTABLE_PATH = TMP_PROCESS_EXECUTABLE_PATH;\n/**\n * The command used to launch the process (i.e. the command name). On Linux based systems, can be set to the zeroth string in `proc/[pid]/cmdline`. On Windows, can be set to the first parameter extracted from `GetCommandLineW`.\n *\n * @deprecated Use ATTR_PROCESS_COMMAND in [incubating entry-point]({@link https://github.com/open-telemetry/opentelemetry-js/blob/main/semantic-conventions/README.md#unstable-semconv}).\n */\nexport var SEMRESATTRS_PROCESS_COMMAND = TMP_PROCESS_COMMAND;\n/**\n * The full command used to launch the process as a single string representing the full command. On Windows, can be set to the result of `GetCommandLineW`. Do not set this if you have to assemble it just for monitoring; use `process.command_args` instead.\n *\n * @deprecated Use ATTR_PROCESS_COMMAND_LINE in [incubating entry-point]({@link https://github.com/open-telemetry/opentelemetry-js/blob/main/semantic-conventions/README.md#unstable-semconv}).\n */\nexport var SEMRESATTRS_PROCESS_COMMAND_LINE = TMP_PROCESS_COMMAND_LINE;\n/**\n * All the command arguments (including the command/executable itself) as received by the process. On Linux-based systems (and some other Unixoid systems supporting procfs), can be set according to the list of null-delimited strings extracted from `proc/[pid]/cmdline`. For libc-based executables, this would be the full argv vector passed to `main`.\n *\n * @deprecated Use ATTR_PROCESS_COMMAND_ARGS in [incubating entry-point]({@link https://github.com/open-telemetry/opentelemetry-js/blob/main/semantic-conventions/README.md#unstable-semconv}).\n */\nexport var SEMRESATTRS_PROCESS_COMMAND_ARGS = TMP_PROCESS_COMMAND_ARGS;\n/**\n * The username of the user that owns the process.\n *\n * @deprecated Use ATTR_PROCESS_OWNER in [incubating entry-point]({@link https://github.com/open-telemetry/opentelemetry-js/blob/main/semantic-conventions/README.md#unstable-semconv}).\n */\nexport var SEMRESATTRS_PROCESS_OWNER = TMP_PROCESS_OWNER;\n/**\n * The name of the runtime of this process. For compiled native binaries, this SHOULD be the name of the compiler.\n *\n * @deprecated Use ATTR_PROCESS_RUNTIME_NAME in [incubating entry-point]({@link https://github.com/open-telemetry/opentelemetry-js/blob/main/semantic-conventions/README.md#unstable-semconv}).\n */\nexport var SEMRESATTRS_PROCESS_RUNTIME_NAME = TMP_PROCESS_RUNTIME_NAME;\n/**\n * The version of the runtime of this process, as returned by the runtime without modification.\n *\n * @deprecated Use ATTR_PROCESS_RUNTIME_VERSION in [incubating entry-point]({@link https://github.com/open-telemetry/opentelemetry-js/blob/main/semantic-conventions/README.md#unstable-semconv}).\n */\nexport var SEMRESATTRS_PROCESS_RUNTIME_VERSION = TMP_PROCESS_RUNTIME_VERSION;\n/**\n * An additional description about the runtime of the process, for example a specific vendor customization of the runtime environment.\n *\n * @deprecated Use ATTR_PROCESS_RUNTIME_DESCRIPTION in [incubating entry-point]({@link https://github.com/open-telemetry/opentelemetry-js/blob/main/semantic-conventions/README.md#unstable-semconv}).\n */\nexport var SEMRESATTRS_PROCESS_RUNTIME_DESCRIPTION = TMP_PROCESS_RUNTIME_DESCRIPTION;\n/**\n * Logical name of the service.\n *\n * Note: MUST be the same for all instances of horizontally scaled services. If the value was not specified, SDKs MUST fallback to `unknown_service:` concatenated with [`process.executable.name`](process.md#process), e.g. `unknown_service:bash`. If `process.executable.name` is not available, the value MUST be set to `unknown_service`.\n *\n * @deprecated Use ATTR_SERVICE_NAME.\n */\nexport var SEMRESATTRS_SERVICE_NAME = TMP_SERVICE_NAME;\n/**\n * A namespace for `service.name`.\n *\n * Note: A string value having a meaning that helps to distinguish a group of services, for example the team name that owns a group of services. `service.name` is expected to be unique within the same namespace. If `service.namespace` is not specified in the Resource then `service.name` is expected to be unique for all services that have no explicit namespace defined (so the empty/unspecified namespace is simply one more valid namespace). Zero-length namespace string is assumed equal to unspecified namespace.\n *\n * @deprecated Use ATTR_SERVICE_NAMESPACE in [incubating entry-point]({@link https://github.com/open-telemetry/opentelemetry-js/blob/main/semantic-conventions/README.md#unstable-semconv}).\n */\nexport var SEMRESATTRS_SERVICE_NAMESPACE = TMP_SERVICE_NAMESPACE;\n/**\n * The string ID of the service instance.\n *\n * Note: MUST be unique for each instance of the same `service.namespace,service.name` pair (in other words `service.namespace,service.name,service.instance.id` triplet MUST be globally unique). The ID helps to distinguish instances of the same service that exist at the same time (e.g. instances of a horizontally scaled service). It is preferable for the ID to be persistent and stay the same for the lifetime of the service instance, however it is acceptable that the ID is ephemeral and changes during important lifetime events for the service (e.g. service restarts). If the service has no inherent unique ID that can be used as the value of this attribute it is recommended to generate a random Version 1 or Version 4 RFC 4122 UUID (services aiming for reproducible UUIDs may also use Version 5, see RFC 4122 for more recommendations).\n *\n * @deprecated Use ATTR_SERVICE_INSTANCE_ID in [incubating entry-point]({@link https://github.com/open-telemetry/opentelemetry-js/blob/main/semantic-conventions/README.md#unstable-semconv}).\n */\nexport var SEMRESATTRS_SERVICE_INSTANCE_ID = TMP_SERVICE_INSTANCE_ID;\n/**\n * The version string of the service API or implementation.\n *\n * @deprecated Use ATTR_SERVICE_VERSION.\n */\nexport var SEMRESATTRS_SERVICE_VERSION = TMP_SERVICE_VERSION;\n/**\n * The name of the telemetry SDK as defined above.\n *\n * @deprecated Use ATTR_TELEMETRY_SDK_NAME.\n */\nexport var SEMRESATTRS_TELEMETRY_SDK_NAME = TMP_TELEMETRY_SDK_NAME;\n/**\n * The language of the telemetry SDK.\n *\n * @deprecated Use ATTR_TELEMETRY_SDK_LANGUAGE.\n */\nexport var SEMRESATTRS_TELEMETRY_SDK_LANGUAGE = TMP_TELEMETRY_SDK_LANGUAGE;\n/**\n * The version string of the telemetry SDK.\n *\n * @deprecated Use ATTR_TELEMETRY_SDK_VERSION.\n */\nexport var SEMRESATTRS_TELEMETRY_SDK_VERSION = TMP_TELEMETRY_SDK_VERSION;\n/**\n * The version string of the auto instrumentation agent, if used.\n *\n * @deprecated Use ATTR_TELEMETRY_DISTRO_VERSION in [incubating entry-point]({@link https://github.com/open-telemetry/opentelemetry-js/blob/main/semantic-conventions/README.md#unstable-semconv}).\n */\nexport var SEMRESATTRS_TELEMETRY_AUTO_VERSION = TMP_TELEMETRY_AUTO_VERSION;\n/**\n * The name of the web engine.\n *\n * @deprecated Use ATTR_WEBENGINE_NAME in [incubating entry-point]({@link https://github.com/open-telemetry/opentelemetry-js/blob/main/semantic-conventions/README.md#unstable-semconv}).\n */\nexport var SEMRESATTRS_WEBENGINE_NAME = TMP_WEBENGINE_NAME;\n/**\n * The version of the web engine.\n *\n * @deprecated Use ATTR_WEBENGINE_VERSION in [incubating entry-point]({@link https://github.com/open-telemetry/opentelemetry-js/blob/main/semantic-conventions/README.md#unstable-semconv}).\n */\nexport var SEMRESATTRS_WEBENGINE_VERSION = TMP_WEBENGINE_VERSION;\n/**\n * Additional description of the web engine (e.g. detailed version and edition information).\n *\n * @deprecated Use ATTR_WEBENGINE_DESCRIPTION in [incubating entry-point]({@link https://github.com/open-telemetry/opentelemetry-js/blob/main/semantic-conventions/README.md#unstable-semconv}).\n */\nexport var SEMRESATTRS_WEBENGINE_DESCRIPTION = TMP_WEBENGINE_DESCRIPTION;\n/**\n * Create exported Value Map for SemanticResourceAttributes values\n * @deprecated Use the SEMRESATTRS_XXXXX constants rather than the SemanticResourceAttributes.XXXXX for bundle minification\n */\nexport var SemanticResourceAttributes = \n/*#__PURE__*/ createConstMap([\n TMP_CLOUD_PROVIDER,\n TMP_CLOUD_ACCOUNT_ID,\n TMP_CLOUD_REGION,\n TMP_CLOUD_AVAILABILITY_ZONE,\n TMP_CLOUD_PLATFORM,\n TMP_AWS_ECS_CONTAINER_ARN,\n TMP_AWS_ECS_CLUSTER_ARN,\n TMP_AWS_ECS_LAUNCHTYPE,\n TMP_AWS_ECS_TASK_ARN,\n TMP_AWS_ECS_TASK_FAMILY,\n TMP_AWS_ECS_TASK_REVISION,\n TMP_AWS_EKS_CLUSTER_ARN,\n TMP_AWS_LOG_GROUP_NAMES,\n TMP_AWS_LOG_GROUP_ARNS,\n TMP_AWS_LOG_STREAM_NAMES,\n TMP_AWS_LOG_STREAM_ARNS,\n TMP_CONTAINER_NAME,\n TMP_CONTAINER_ID,\n TMP_CONTAINER_RUNTIME,\n TMP_CONTAINER_IMAGE_NAME,\n TMP_CONTAINER_IMAGE_TAG,\n TMP_DEPLOYMENT_ENVIRONMENT,\n TMP_DEVICE_ID,\n TMP_DEVICE_MODEL_IDENTIFIER,\n TMP_DEVICE_MODEL_NAME,\n TMP_FAAS_NAME,\n TMP_FAAS_ID,\n TMP_FAAS_VERSION,\n TMP_FAAS_INSTANCE,\n TMP_FAAS_MAX_MEMORY,\n TMP_HOST_ID,\n TMP_HOST_NAME,\n TMP_HOST_TYPE,\n TMP_HOST_ARCH,\n TMP_HOST_IMAGE_NAME,\n TMP_HOST_IMAGE_ID,\n TMP_HOST_IMAGE_VERSION,\n TMP_K8S_CLUSTER_NAME,\n TMP_K8S_NODE_NAME,\n TMP_K8S_NODE_UID,\n TMP_K8S_NAMESPACE_NAME,\n TMP_K8S_POD_UID,\n TMP_K8S_POD_NAME,\n TMP_K8S_CONTAINER_NAME,\n TMP_K8S_REPLICASET_UID,\n TMP_K8S_REPLICASET_NAME,\n TMP_K8S_DEPLOYMENT_UID,\n TMP_K8S_DEPLOYMENT_NAME,\n TMP_K8S_STATEFULSET_UID,\n TMP_K8S_STATEFULSET_NAME,\n TMP_K8S_DAEMONSET_UID,\n TMP_K8S_DAEMONSET_NAME,\n TMP_K8S_JOB_UID,\n TMP_K8S_JOB_NAME,\n TMP_K8S_CRONJOB_UID,\n TMP_K8S_CRONJOB_NAME,\n TMP_OS_TYPE,\n TMP_OS_DESCRIPTION,\n TMP_OS_NAME,\n TMP_OS_VERSION,\n TMP_PROCESS_PID,\n TMP_PROCESS_EXECUTABLE_NAME,\n TMP_PROCESS_EXECUTABLE_PATH,\n TMP_PROCESS_COMMAND,\n TMP_PROCESS_COMMAND_LINE,\n TMP_PROCESS_COMMAND_ARGS,\n TMP_PROCESS_OWNER,\n TMP_PROCESS_RUNTIME_NAME,\n TMP_PROCESS_RUNTIME_VERSION,\n TMP_PROCESS_RUNTIME_DESCRIPTION,\n TMP_SERVICE_NAME,\n TMP_SERVICE_NAMESPACE,\n TMP_SERVICE_INSTANCE_ID,\n TMP_SERVICE_VERSION,\n TMP_TELEMETRY_SDK_NAME,\n TMP_TELEMETRY_SDK_LANGUAGE,\n TMP_TELEMETRY_SDK_VERSION,\n TMP_TELEMETRY_AUTO_VERSION,\n TMP_WEBENGINE_NAME,\n TMP_WEBENGINE_VERSION,\n TMP_WEBENGINE_DESCRIPTION,\n]);\n/* ----------------------------------------------------------------------------------------------------------\n * Constant values for CloudProviderValues enum definition\n *\n * Name of the cloud provider.\n * ---------------------------------------------------------------------------------------------------------- */\n// Temporary local constants to assign to the individual exports and the namespaced version\n// Required to avoid the namespace exports using the unminifiable export names for some package types\nvar TMP_CLOUDPROVIDERVALUES_ALIBABA_CLOUD = 'alibaba_cloud';\nvar TMP_CLOUDPROVIDERVALUES_AWS = 'aws';\nvar TMP_CLOUDPROVIDERVALUES_AZURE = 'azure';\nvar TMP_CLOUDPROVIDERVALUES_GCP = 'gcp';\n/**\n * Name of the cloud provider.\n *\n * @deprecated Use CLOUD_PROVIDER_VALUE_ALIBABA_CLOUD in [incubating entry-point]({@link https://github.com/open-telemetry/opentelemetry-js/blob/main/semantic-conventions/README.md#unstable-semconv}).\n */\nexport var CLOUDPROVIDERVALUES_ALIBABA_CLOUD = TMP_CLOUDPROVIDERVALUES_ALIBABA_CLOUD;\n/**\n * Name of the cloud provider.\n *\n * @deprecated Use CLOUD_PROVIDER_VALUE_AWS in [incubating entry-point]({@link https://github.com/open-telemetry/opentelemetry-js/blob/main/semantic-conventions/README.md#unstable-semconv}).\n */\nexport var CLOUDPROVIDERVALUES_AWS = TMP_CLOUDPROVIDERVALUES_AWS;\n/**\n * Name of the cloud provider.\n *\n * @deprecated Use CLOUD_PROVIDER_VALUE_AZURE in [incubating entry-point]({@link https://github.com/open-telemetry/opentelemetry-js/blob/main/semantic-conventions/README.md#unstable-semconv}).\n */\nexport var CLOUDPROVIDERVALUES_AZURE = TMP_CLOUDPROVIDERVALUES_AZURE;\n/**\n * Name of the cloud provider.\n *\n * @deprecated Use CLOUD_PROVIDER_VALUE_GCP in [incubating entry-point]({@link https://github.com/open-telemetry/opentelemetry-js/blob/main/semantic-conventions/README.md#unstable-semconv}).\n */\nexport var CLOUDPROVIDERVALUES_GCP = TMP_CLOUDPROVIDERVALUES_GCP;\n/**\n * The constant map of values for CloudProviderValues.\n * @deprecated Use the CLOUDPROVIDERVALUES_XXXXX constants rather than the CloudProviderValues.XXXXX for bundle minification.\n */\nexport var CloudProviderValues = \n/*#__PURE__*/ createConstMap([\n TMP_CLOUDPROVIDERVALUES_ALIBABA_CLOUD,\n TMP_CLOUDPROVIDERVALUES_AWS,\n TMP_CLOUDPROVIDERVALUES_AZURE,\n TMP_CLOUDPROVIDERVALUES_GCP,\n]);\n/* ----------------------------------------------------------------------------------------------------------\n * Constant values for CloudPlatformValues enum definition\n *\n * The cloud platform in use.\n *\n * Note: The prefix of the service SHOULD match the one specified in `cloud.provider`.\n * ---------------------------------------------------------------------------------------------------------- */\n// Temporary local constants to assign to the individual exports and the namespaced version\n// Required to avoid the namespace exports using the unminifiable export names for some package types\nvar TMP_CLOUDPLATFORMVALUES_ALIBABA_CLOUD_ECS = 'alibaba_cloud_ecs';\nvar TMP_CLOUDPLATFORMVALUES_ALIBABA_CLOUD_FC = 'alibaba_cloud_fc';\nvar TMP_CLOUDPLATFORMVALUES_AWS_EC2 = 'aws_ec2';\nvar TMP_CLOUDPLATFORMVALUES_AWS_ECS = 'aws_ecs';\nvar TMP_CLOUDPLATFORMVALUES_AWS_EKS = 'aws_eks';\nvar TMP_CLOUDPLATFORMVALUES_AWS_LAMBDA = 'aws_lambda';\nvar TMP_CLOUDPLATFORMVALUES_AWS_ELASTIC_BEANSTALK = 'aws_elastic_beanstalk';\nvar TMP_CLOUDPLATFORMVALUES_AZURE_VM = 'azure_vm';\nvar TMP_CLOUDPLATFORMVALUES_AZURE_CONTAINER_INSTANCES = 'azure_container_instances';\nvar TMP_CLOUDPLATFORMVALUES_AZURE_AKS = 'azure_aks';\nvar TMP_CLOUDPLATFORMVALUES_AZURE_FUNCTIONS = 'azure_functions';\nvar TMP_CLOUDPLATFORMVALUES_AZURE_APP_SERVICE = 'azure_app_service';\nvar TMP_CLOUDPLATFORMVALUES_GCP_COMPUTE_ENGINE = 'gcp_compute_engine';\nvar TMP_CLOUDPLATFORMVALUES_GCP_CLOUD_RUN = 'gcp_cloud_run';\nvar TMP_CLOUDPLATFORMVALUES_GCP_KUBERNETES_ENGINE = 'gcp_kubernetes_engine';\nvar TMP_CLOUDPLATFORMVALUES_GCP_CLOUD_FUNCTIONS = 'gcp_cloud_functions';\nvar TMP_CLOUDPLATFORMVALUES_GCP_APP_ENGINE = 'gcp_app_engine';\n/**\n * The cloud platform in use.\n *\n * Note: The prefix of the service SHOULD match the one specified in `cloud.provider`.\n *\n * @deprecated Use CLOUD_PLATFORM_VALUE_ALIBABA_CLOUD_ECS in [incubating entry-point]({@link https://github.com/open-telemetry/opentelemetry-js/blob/main/semantic-conventions/README.md#unstable-semconv}).\n */\nexport var CLOUDPLATFORMVALUES_ALIBABA_CLOUD_ECS = TMP_CLOUDPLATFORMVALUES_ALIBABA_CLOUD_ECS;\n/**\n * The cloud platform in use.\n *\n * Note: The prefix of the service SHOULD match the one specified in `cloud.provider`.\n *\n * @deprecated Use CLOUD_PLATFORM_VALUE_ALIBABA_CLOUD_FC in [incubating entry-point]({@link https://github.com/open-telemetry/opentelemetry-js/blob/main/semantic-conventions/README.md#unstable-semconv}).\n */\nexport var CLOUDPLATFORMVALUES_ALIBABA_CLOUD_FC = TMP_CLOUDPLATFORMVALUES_ALIBABA_CLOUD_FC;\n/**\n * The cloud platform in use.\n *\n * Note: The prefix of the service SHOULD match the one specified in `cloud.provider`.\n *\n * @deprecated Use CLOUD_PLATFORM_VALUE_AWS_EC2 in [incubating entry-point]({@link https://github.com/open-telemetry/opentelemetry-js/blob/main/semantic-conventions/README.md#unstable-semconv}).\n */\nexport var CLOUDPLATFORMVALUES_AWS_EC2 = TMP_CLOUDPLATFORMVALUES_AWS_EC2;\n/**\n * The cloud platform in use.\n *\n * Note: The prefix of the service SHOULD match the one specified in `cloud.provider`.\n *\n * @deprecated Use CLOUD_PLATFORM_VALUE_AWS_ECS in [incubating entry-point]({@link https://github.com/open-telemetry/opentelemetry-js/blob/main/semantic-conventions/README.md#unstable-semconv}).\n */\nexport var CLOUDPLATFORMVALUES_AWS_ECS = TMP_CLOUDPLATFORMVALUES_AWS_ECS;\n/**\n * The cloud platform in use.\n *\n * Note: The prefix of the service SHOULD match the one specified in `cloud.provider`.\n *\n * @deprecated Use CLOUD_PLATFORM_VALUE_AWS_EKS in [incubating entry-point]({@link https://github.com/open-telemetry/opentelemetry-js/blob/main/semantic-conventions/README.md#unstable-semconv}).\n */\nexport var CLOUDPLATFORMVALUES_AWS_EKS = TMP_CLOUDPLATFORMVALUES_AWS_EKS;\n/**\n * The cloud platform in use.\n *\n * Note: The prefix of the service SHOULD match the one specified in `cloud.provider`.\n *\n * @deprecated Use CLOUD_PLATFORM_VALUE_AWS_LAMBDA in [incubating entry-point]({@link https://github.com/open-telemetry/opentelemetry-js/blob/main/semantic-conventions/README.md#unstable-semconv}).\n */\nexport var CLOUDPLATFORMVALUES_AWS_LAMBDA = TMP_CLOUDPLATFORMVALUES_AWS_LAMBDA;\n/**\n * The cloud platform in use.\n *\n * Note: The prefix of the service SHOULD match the one specified in `cloud.provider`.\n *\n * @deprecated Use CLOUD_PLATFORM_VALUE_AWS_ELASTIC_BEANSTALK in [incubating entry-point]({@link https://github.com/open-telemetry/opentelemetry-js/blob/main/semantic-conventions/README.md#unstable-semconv}).\n */\nexport var CLOUDPLATFORMVALUES_AWS_ELASTIC_BEANSTALK = TMP_CLOUDPLATFORMVALUES_AWS_ELASTIC_BEANSTALK;\n/**\n * The cloud platform in use.\n *\n * Note: The prefix of the service SHOULD match the one specified in `cloud.provider`.\n *\n * @deprecated Use CLOUD_PLATFORM_VALUE_AZURE_VM in [incubating entry-point]({@link https://github.com/open-telemetry/opentelemetry-js/blob/main/semantic-conventions/README.md#unstable-semconv}).\n */\nexport var CLOUDPLATFORMVALUES_AZURE_VM = TMP_CLOUDPLATFORMVALUES_AZURE_VM;\n/**\n * The cloud platform in use.\n *\n * Note: The prefix of the service SHOULD match the one specified in `cloud.provider`.\n *\n * @deprecated Use CLOUD_PLATFORM_VALUE_AZURE_CONTAINER_INSTANCES in [incubating entry-point]({@link https://github.com/open-telemetry/opentelemetry-js/blob/main/semantic-conventions/README.md#unstable-semconv}).\n */\nexport var CLOUDPLATFORMVALUES_AZURE_CONTAINER_INSTANCES = TMP_CLOUDPLATFORMVALUES_AZURE_CONTAINER_INSTANCES;\n/**\n * The cloud platform in use.\n *\n * Note: The prefix of the service SHOULD match the one specified in `cloud.provider`.\n *\n * @deprecated Use CLOUD_PLATFORM_VALUE_AZURE_AKS in [incubating entry-point]({@link https://github.com/open-telemetry/opentelemetry-js/blob/main/semantic-conventions/README.md#unstable-semconv}).\n */\nexport var CLOUDPLATFORMVALUES_AZURE_AKS = TMP_CLOUDPLATFORMVALUES_AZURE_AKS;\n/**\n * The cloud platform in use.\n *\n * Note: The prefix of the service SHOULD match the one specified in `cloud.provider`.\n *\n * @deprecated Use CLOUD_PLATFORM_VALUE_AZURE_FUNCTIONS in [incubating entry-point]({@link https://github.com/open-telemetry/opentelemetry-js/blob/main/semantic-conventions/README.md#unstable-semconv}).\n */\nexport var CLOUDPLATFORMVALUES_AZURE_FUNCTIONS = TMP_CLOUDPLATFORMVALUES_AZURE_FUNCTIONS;\n/**\n * The cloud platform in use.\n *\n * Note: The prefix of the service SHOULD match the one specified in `cloud.provider`.\n *\n * @deprecated Use CLOUD_PLATFORM_VALUE_AZURE_APP_SERVICE in [incubating entry-point]({@link https://github.com/open-telemetry/opentelemetry-js/blob/main/semantic-conventions/README.md#unstable-semconv}).\n */\nexport var CLOUDPLATFORMVALUES_AZURE_APP_SERVICE = TMP_CLOUDPLATFORMVALUES_AZURE_APP_SERVICE;\n/**\n * The cloud platform in use.\n *\n * Note: The prefix of the service SHOULD match the one specified in `cloud.provider`.\n *\n * @deprecated Use CLOUD_PLATFORM_VALUE_GCP_COMPUTE_ENGINE in [incubating entry-point]({@link https://github.com/open-telemetry/opentelemetry-js/blob/main/semantic-conventions/README.md#unstable-semconv}).\n */\nexport var CLOUDPLATFORMVALUES_GCP_COMPUTE_ENGINE = TMP_CLOUDPLATFORMVALUES_GCP_COMPUTE_ENGINE;\n/**\n * The cloud platform in use.\n *\n * Note: The prefix of the service SHOULD match the one specified in `cloud.provider`.\n *\n * @deprecated Use CLOUD_PLATFORM_VALUE_GCP_CLOUD_RUN in [incubating entry-point]({@link https://github.com/open-telemetry/opentelemetry-js/blob/main/semantic-conventions/README.md#unstable-semconv}).\n */\nexport var CLOUDPLATFORMVALUES_GCP_CLOUD_RUN = TMP_CLOUDPLATFORMVALUES_GCP_CLOUD_RUN;\n/**\n * The cloud platform in use.\n *\n * Note: The prefix of the service SHOULD match the one specified in `cloud.provider`.\n *\n * @deprecated Use CLOUD_PLATFORM_VALUE_GCP_KUBERNETES_ENGINE in [incubating entry-point]({@link https://github.com/open-telemetry/opentelemetry-js/blob/main/semantic-conventions/README.md#unstable-semconv}).\n */\nexport var CLOUDPLATFORMVALUES_GCP_KUBERNETES_ENGINE = TMP_CLOUDPLATFORMVALUES_GCP_KUBERNETES_ENGINE;\n/**\n * The cloud platform in use.\n *\n * Note: The prefix of the service SHOULD match the one specified in `cloud.provider`.\n *\n * @deprecated Use CLOUD_PLATFORM_VALUE_GCP_CLOUD_FUNCTIONS in [incubating entry-point]({@link https://github.com/open-telemetry/opentelemetry-js/blob/main/semantic-conventions/README.md#unstable-semconv}).\n */\nexport var CLOUDPLATFORMVALUES_GCP_CLOUD_FUNCTIONS = TMP_CLOUDPLATFORMVALUES_GCP_CLOUD_FUNCTIONS;\n/**\n * The cloud platform in use.\n *\n * Note: The prefix of the service SHOULD match the one specified in `cloud.provider`.\n *\n * @deprecated Use CLOUD_PLATFORM_VALUE_GCP_APP_ENGINE in [incubating entry-point]({@link https://github.com/open-telemetry/opentelemetry-js/blob/main/semantic-conventions/README.md#unstable-semconv}).\n */\nexport var CLOUDPLATFORMVALUES_GCP_APP_ENGINE = TMP_CLOUDPLATFORMVALUES_GCP_APP_ENGINE;\n/**\n * The constant map of values for CloudPlatformValues.\n * @deprecated Use the CLOUDPLATFORMVALUES_XXXXX constants rather than the CloudPlatformValues.XXXXX for bundle minification.\n */\nexport var CloudPlatformValues = \n/*#__PURE__*/ createConstMap([\n TMP_CLOUDPLATFORMVALUES_ALIBABA_CLOUD_ECS,\n TMP_CLOUDPLATFORMVALUES_ALIBABA_CLOUD_FC,\n TMP_CLOUDPLATFORMVALUES_AWS_EC2,\n TMP_CLOUDPLATFORMVALUES_AWS_ECS,\n TMP_CLOUDPLATFORMVALUES_AWS_EKS,\n TMP_CLOUDPLATFORMVALUES_AWS_LAMBDA,\n TMP_CLOUDPLATFORMVALUES_AWS_ELASTIC_BEANSTALK,\n TMP_CLOUDPLATFORMVALUES_AZURE_VM,\n TMP_CLOUDPLATFORMVALUES_AZURE_CONTAINER_INSTANCES,\n TMP_CLOUDPLATFORMVALUES_AZURE_AKS,\n TMP_CLOUDPLATFORMVALUES_AZURE_FUNCTIONS,\n TMP_CLOUDPLATFORMVALUES_AZURE_APP_SERVICE,\n TMP_CLOUDPLATFORMVALUES_GCP_COMPUTE_ENGINE,\n TMP_CLOUDPLATFORMVALUES_GCP_CLOUD_RUN,\n TMP_CLOUDPLATFORMVALUES_GCP_KUBERNETES_ENGINE,\n TMP_CLOUDPLATFORMVALUES_GCP_CLOUD_FUNCTIONS,\n TMP_CLOUDPLATFORMVALUES_GCP_APP_ENGINE,\n]);\n/* ----------------------------------------------------------------------------------------------------------\n * Constant values for AwsEcsLaunchtypeValues enum definition\n *\n * The [launch type](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/launch_types.html) for an ECS task.\n * ---------------------------------------------------------------------------------------------------------- */\n// Temporary local constants to assign to the individual exports and the namespaced version\n// Required to avoid the namespace exports using the unminifiable export names for some package types\nvar TMP_AWSECSLAUNCHTYPEVALUES_EC2 = 'ec2';\nvar TMP_AWSECSLAUNCHTYPEVALUES_FARGATE = 'fargate';\n/**\n * The [launch type](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/launch_types.html) for an ECS task.\n *\n * @deprecated Use AWS_ECS_LAUNCHTYPE_VALUE_EC2 in [incubating entry-point]({@link https://github.com/open-telemetry/opentelemetry-js/blob/main/semantic-conventions/README.md#unstable-semconv}).\n */\nexport var AWSECSLAUNCHTYPEVALUES_EC2 = TMP_AWSECSLAUNCHTYPEVALUES_EC2;\n/**\n * The [launch type](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/launch_types.html) for an ECS task.\n *\n * @deprecated Use AWS_ECS_LAUNCHTYPE_VALUE_FARGATE in [incubating entry-point]({@link https://github.com/open-telemetry/opentelemetry-js/blob/main/semantic-conventions/README.md#unstable-semconv}).\n */\nexport var AWSECSLAUNCHTYPEVALUES_FARGATE = TMP_AWSECSLAUNCHTYPEVALUES_FARGATE;\n/**\n * The constant map of values for AwsEcsLaunchtypeValues.\n * @deprecated Use the AWSECSLAUNCHTYPEVALUES_XXXXX constants rather than the AwsEcsLaunchtypeValues.XXXXX for bundle minification.\n */\nexport var AwsEcsLaunchtypeValues = \n/*#__PURE__*/ createConstMap([\n TMP_AWSECSLAUNCHTYPEVALUES_EC2,\n TMP_AWSECSLAUNCHTYPEVALUES_FARGATE,\n]);\n/* ----------------------------------------------------------------------------------------------------------\n * Constant values for HostArchValues enum definition\n *\n * The CPU architecture the host system is running on.\n * ---------------------------------------------------------------------------------------------------------- */\n// Temporary local constants to assign to the individual exports and the namespaced version\n// Required to avoid the namespace exports using the unminifiable export names for some package types\nvar TMP_HOSTARCHVALUES_AMD64 = 'amd64';\nvar TMP_HOSTARCHVALUES_ARM32 = 'arm32';\nvar TMP_HOSTARCHVALUES_ARM64 = 'arm64';\nvar TMP_HOSTARCHVALUES_IA64 = 'ia64';\nvar TMP_HOSTARCHVALUES_PPC32 = 'ppc32';\nvar TMP_HOSTARCHVALUES_PPC64 = 'ppc64';\nvar TMP_HOSTARCHVALUES_X86 = 'x86';\n/**\n * The CPU architecture the host system is running on.\n *\n * @deprecated Use HOST_ARCH_VALUE_AMD64 in [incubating entry-point]({@link https://github.com/open-telemetry/opentelemetry-js/blob/main/semantic-conventions/README.md#unstable-semconv}).\n */\nexport var HOSTARCHVALUES_AMD64 = TMP_HOSTARCHVALUES_AMD64;\n/**\n * The CPU architecture the host system is running on.\n *\n * @deprecated Use HOST_ARCH_VALUE_ARM32 in [incubating entry-point]({@link https://github.com/open-telemetry/opentelemetry-js/blob/main/semantic-conventions/README.md#unstable-semconv}).\n */\nexport var HOSTARCHVALUES_ARM32 = TMP_HOSTARCHVALUES_ARM32;\n/**\n * The CPU architecture the host system is running on.\n *\n * @deprecated Use HOST_ARCH_VALUE_ARM64 in [incubating entry-point]({@link https://github.com/open-telemetry/opentelemetry-js/blob/main/semantic-conventions/README.md#unstable-semconv}).\n */\nexport var HOSTARCHVALUES_ARM64 = TMP_HOSTARCHVALUES_ARM64;\n/**\n * The CPU architecture the host system is running on.\n *\n * @deprecated Use HOST_ARCH_VALUE_IA64 in [incubating entry-point]({@link https://github.com/open-telemetry/opentelemetry-js/blob/main/semantic-conventions/README.md#unstable-semconv}).\n */\nexport var HOSTARCHVALUES_IA64 = TMP_HOSTARCHVALUES_IA64;\n/**\n * The CPU architecture the host system is running on.\n *\n * @deprecated Use HOST_ARCH_VALUE_PPC32 in [incubating entry-point]({@link https://github.com/open-telemetry/opentelemetry-js/blob/main/semantic-conventions/README.md#unstable-semconv}).\n */\nexport var HOSTARCHVALUES_PPC32 = TMP_HOSTARCHVALUES_PPC32;\n/**\n * The CPU architecture the host system is running on.\n *\n * @deprecated Use HOST_ARCH_VALUE_PPC64 in [incubating entry-point]({@link https://github.com/open-telemetry/opentelemetry-js/blob/main/semantic-conventions/README.md#unstable-semconv}).\n */\nexport var HOSTARCHVALUES_PPC64 = TMP_HOSTARCHVALUES_PPC64;\n/**\n * The CPU architecture the host system is running on.\n *\n * @deprecated Use HOST_ARCH_VALUE_X86 in [incubating entry-point]({@link https://github.com/open-telemetry/opentelemetry-js/blob/main/semantic-conventions/README.md#unstable-semconv}).\n */\nexport var HOSTARCHVALUES_X86 = TMP_HOSTARCHVALUES_X86;\n/**\n * The constant map of values for HostArchValues.\n * @deprecated Use the HOSTARCHVALUES_XXXXX constants rather than the HostArchValues.XXXXX for bundle minification.\n */\nexport var HostArchValues = \n/*#__PURE__*/ createConstMap([\n TMP_HOSTARCHVALUES_AMD64,\n TMP_HOSTARCHVALUES_ARM32,\n TMP_HOSTARCHVALUES_ARM64,\n TMP_HOSTARCHVALUES_IA64,\n TMP_HOSTARCHVALUES_PPC32,\n TMP_HOSTARCHVALUES_PPC64,\n TMP_HOSTARCHVALUES_X86,\n]);\n/* ----------------------------------------------------------------------------------------------------------\n * Constant values for OsTypeValues enum definition\n *\n * The operating system type.\n * ---------------------------------------------------------------------------------------------------------- */\n// Temporary local constants to assign to the individual exports and the namespaced version\n// Required to avoid the namespace exports using the unminifiable export names for some package types\nvar TMP_OSTYPEVALUES_WINDOWS = 'windows';\nvar TMP_OSTYPEVALUES_LINUX = 'linux';\nvar TMP_OSTYPEVALUES_DARWIN = 'darwin';\nvar TMP_OSTYPEVALUES_FREEBSD = 'freebsd';\nvar TMP_OSTYPEVALUES_NETBSD = 'netbsd';\nvar TMP_OSTYPEVALUES_OPENBSD = 'openbsd';\nvar TMP_OSTYPEVALUES_DRAGONFLYBSD = 'dragonflybsd';\nvar TMP_OSTYPEVALUES_HPUX = 'hpux';\nvar TMP_OSTYPEVALUES_AIX = 'aix';\nvar TMP_OSTYPEVALUES_SOLARIS = 'solaris';\nvar TMP_OSTYPEVALUES_Z_OS = 'z_os';\n/**\n * The operating system type.\n *\n * @deprecated Use OS_TYPE_VALUE_WINDOWS in [incubating entry-point]({@link https://github.com/open-telemetry/opentelemetry-js/blob/main/semantic-conventions/README.md#unstable-semconv}).\n */\nexport var OSTYPEVALUES_WINDOWS = TMP_OSTYPEVALUES_WINDOWS;\n/**\n * The operating system type.\n *\n * @deprecated Use OS_TYPE_VALUE_LINUX in [incubating entry-point]({@link https://github.com/open-telemetry/opentelemetry-js/blob/main/semantic-conventions/README.md#unstable-semconv}).\n */\nexport var OSTYPEVALUES_LINUX = TMP_OSTYPEVALUES_LINUX;\n/**\n * The operating system type.\n *\n * @deprecated Use OS_TYPE_VALUE_DARWIN in [incubating entry-point]({@link https://github.com/open-telemetry/opentelemetry-js/blob/main/semantic-conventions/README.md#unstable-semconv}).\n */\nexport var OSTYPEVALUES_DARWIN = TMP_OSTYPEVALUES_DARWIN;\n/**\n * The operating system type.\n *\n * @deprecated Use OS_TYPE_VALUE_FREEBSD in [incubating entry-point]({@link https://github.com/open-telemetry/opentelemetry-js/blob/main/semantic-conventions/README.md#unstable-semconv}).\n */\nexport var OSTYPEVALUES_FREEBSD = TMP_OSTYPEVALUES_FREEBSD;\n/**\n * The operating system type.\n *\n * @deprecated Use OS_TYPE_VALUE_NETBSD in [incubating entry-point]({@link https://github.com/open-telemetry/opentelemetry-js/blob/main/semantic-conventions/README.md#unstable-semconv}).\n */\nexport var OSTYPEVALUES_NETBSD = TMP_OSTYPEVALUES_NETBSD;\n/**\n * The operating system type.\n *\n * @deprecated Use OS_TYPE_VALUE_OPENBSD in [incubating entry-point]({@link https://github.com/open-telemetry/opentelemetry-js/blob/main/semantic-conventions/README.md#unstable-semconv}).\n */\nexport var OSTYPEVALUES_OPENBSD = TMP_OSTYPEVALUES_OPENBSD;\n/**\n * The operating system type.\n *\n * @deprecated Use OS_TYPE_VALUE_DRAGONFLYBSD in [incubating entry-point]({@link https://github.com/open-telemetry/opentelemetry-js/blob/main/semantic-conventions/README.md#unstable-semconv}).\n */\nexport var OSTYPEVALUES_DRAGONFLYBSD = TMP_OSTYPEVALUES_DRAGONFLYBSD;\n/**\n * The operating system type.\n *\n * @deprecated Use OS_TYPE_VALUE_HPUX in [incubating entry-point]({@link https://github.com/open-telemetry/opentelemetry-js/blob/main/semantic-conventions/README.md#unstable-semconv}).\n */\nexport var OSTYPEVALUES_HPUX = TMP_OSTYPEVALUES_HPUX;\n/**\n * The operating system type.\n *\n * @deprecated Use OS_TYPE_VALUE_AIX in [incubating entry-point]({@link https://github.com/open-telemetry/opentelemetry-js/blob/main/semantic-conventions/README.md#unstable-semconv}).\n */\nexport var OSTYPEVALUES_AIX = TMP_OSTYPEVALUES_AIX;\n/**\n * The operating system type.\n *\n * @deprecated Use OS_TYPE_VALUE_SOLARIS in [incubating entry-point]({@link https://github.com/open-telemetry/opentelemetry-js/blob/main/semantic-conventions/README.md#unstable-semconv}).\n */\nexport var OSTYPEVALUES_SOLARIS = TMP_OSTYPEVALUES_SOLARIS;\n/**\n * The operating system type.\n *\n * @deprecated Use OS_TYPE_VALUE_Z_OS in [incubating entry-point]({@link https://github.com/open-telemetry/opentelemetry-js/blob/main/semantic-conventions/README.md#unstable-semconv}).\n */\nexport var OSTYPEVALUES_Z_OS = TMP_OSTYPEVALUES_Z_OS;\n/**\n * The constant map of values for OsTypeValues.\n * @deprecated Use the OSTYPEVALUES_XXXXX constants rather than the OsTypeValues.XXXXX for bundle minification.\n */\nexport var OsTypeValues = \n/*#__PURE__*/ createConstMap([\n TMP_OSTYPEVALUES_WINDOWS,\n TMP_OSTYPEVALUES_LINUX,\n TMP_OSTYPEVALUES_DARWIN,\n TMP_OSTYPEVALUES_FREEBSD,\n TMP_OSTYPEVALUES_NETBSD,\n TMP_OSTYPEVALUES_OPENBSD,\n TMP_OSTYPEVALUES_DRAGONFLYBSD,\n TMP_OSTYPEVALUES_HPUX,\n TMP_OSTYPEVALUES_AIX,\n TMP_OSTYPEVALUES_SOLARIS,\n TMP_OSTYPEVALUES_Z_OS,\n]);\n/* ----------------------------------------------------------------------------------------------------------\n * Constant values for TelemetrySdkLanguageValues enum definition\n *\n * The language of the telemetry SDK.\n * ---------------------------------------------------------------------------------------------------------- */\n// Temporary local constants to assign to the individual exports and the namespaced version\n// Required to avoid the namespace exports using the unminifiable export names for some package types\nvar TMP_TELEMETRYSDKLANGUAGEVALUES_CPP = 'cpp';\nvar TMP_TELEMETRYSDKLANGUAGEVALUES_DOTNET = 'dotnet';\nvar TMP_TELEMETRYSDKLANGUAGEVALUES_ERLANG = 'erlang';\nvar TMP_TELEMETRYSDKLANGUAGEVALUES_GO = 'go';\nvar TMP_TELEMETRYSDKLANGUAGEVALUES_JAVA = 'java';\nvar TMP_TELEMETRYSDKLANGUAGEVALUES_NODEJS = 'nodejs';\nvar TMP_TELEMETRYSDKLANGUAGEVALUES_PHP = 'php';\nvar TMP_TELEMETRYSDKLANGUAGEVALUES_PYTHON = 'python';\nvar TMP_TELEMETRYSDKLANGUAGEVALUES_RUBY = 'ruby';\nvar TMP_TELEMETRYSDKLANGUAGEVALUES_WEBJS = 'webjs';\n/**\n * The language of the telemetry SDK.\n *\n * @deprecated Use TELEMETRY_SDK_LANGUAGE_VALUE_CPP.\n */\nexport var TELEMETRYSDKLANGUAGEVALUES_CPP = TMP_TELEMETRYSDKLANGUAGEVALUES_CPP;\n/**\n * The language of the telemetry SDK.\n *\n * @deprecated Use TELEMETRY_SDK_LANGUAGE_VALUE_DOTNET.\n */\nexport var TELEMETRYSDKLANGUAGEVALUES_DOTNET = TMP_TELEMETRYSDKLANGUAGEVALUES_DOTNET;\n/**\n * The language of the telemetry SDK.\n *\n * @deprecated Use TELEMETRY_SDK_LANGUAGE_VALUE_ERLANG.\n */\nexport var TELEMETRYSDKLANGUAGEVALUES_ERLANG = TMP_TELEMETRYSDKLANGUAGEVALUES_ERLANG;\n/**\n * The language of the telemetry SDK.\n *\n * @deprecated Use TELEMETRY_SDK_LANGUAGE_VALUE_GO.\n */\nexport var TELEMETRYSDKLANGUAGEVALUES_GO = TMP_TELEMETRYSDKLANGUAGEVALUES_GO;\n/**\n * The language of the telemetry SDK.\n *\n * @deprecated Use TELEMETRY_SDK_LANGUAGE_VALUE_JAVA.\n */\nexport var TELEMETRYSDKLANGUAGEVALUES_JAVA = TMP_TELEMETRYSDKLANGUAGEVALUES_JAVA;\n/**\n * The language of the telemetry SDK.\n *\n * @deprecated Use TELEMETRY_SDK_LANGUAGE_VALUE_NODEJS.\n */\nexport var TELEMETRYSDKLANGUAGEVALUES_NODEJS = TMP_TELEMETRYSDKLANGUAGEVALUES_NODEJS;\n/**\n * The language of the telemetry SDK.\n *\n * @deprecated Use TELEMETRY_SDK_LANGUAGE_VALUE_PHP.\n */\nexport var TELEMETRYSDKLANGUAGEVALUES_PHP = TMP_TELEMETRYSDKLANGUAGEVALUES_PHP;\n/**\n * The language of the telemetry SDK.\n *\n * @deprecated Use TELEMETRY_SDK_LANGUAGE_VALUE_PYTHON.\n */\nexport var TELEMETRYSDKLANGUAGEVALUES_PYTHON = TMP_TELEMETRYSDKLANGUAGEVALUES_PYTHON;\n/**\n * The language of the telemetry SDK.\n *\n * @deprecated Use TELEMETRY_SDK_LANGUAGE_VALUE_RUBY.\n */\nexport var TELEMETRYSDKLANGUAGEVALUES_RUBY = TMP_TELEMETRYSDKLANGUAGEVALUES_RUBY;\n/**\n * The language of the telemetry SDK.\n *\n * @deprecated Use TELEMETRY_SDK_LANGUAGE_VALUE_WEBJS.\n */\nexport var TELEMETRYSDKLANGUAGEVALUES_WEBJS = TMP_TELEMETRYSDKLANGUAGEVALUES_WEBJS;\n/**\n * The constant map of values for TelemetrySdkLanguageValues.\n * @deprecated Use the TELEMETRYSDKLANGUAGEVALUES_XXXXX constants rather than the TelemetrySdkLanguageValues.XXXXX for bundle minification.\n */\nexport var TelemetrySdkLanguageValues = \n/*#__PURE__*/ createConstMap([\n TMP_TELEMETRYSDKLANGUAGEVALUES_CPP,\n TMP_TELEMETRYSDKLANGUAGEVALUES_DOTNET,\n TMP_TELEMETRYSDKLANGUAGEVALUES_ERLANG,\n TMP_TELEMETRYSDKLANGUAGEVALUES_GO,\n TMP_TELEMETRYSDKLANGUAGEVALUES_JAVA,\n TMP_TELEMETRYSDKLANGUAGEVALUES_NODEJS,\n TMP_TELEMETRYSDKLANGUAGEVALUES_PHP,\n TMP_TELEMETRYSDKLANGUAGEVALUES_PYTHON,\n TMP_TELEMETRYSDKLANGUAGEVALUES_RUBY,\n TMP_TELEMETRYSDKLANGUAGEVALUES_WEBJS,\n]);\n//# sourceMappingURL=SemanticResourceAttributes.js.map","/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n// this is autogenerated file, see scripts/version-update.js\nexport var VERSION = '1.30.1';\n//# sourceMappingURL=version.js.map","/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nexport function defaultServiceName() {\n return \"unknown_service:\" + process.argv0;\n}\n//# sourceMappingURL=default-service-name.js.map","/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nvar __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nvar __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nvar __generator = (this && this.__generator) || function (thisArg, body) {\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\n function verb(n) { return function (v) { return step([n, v]); }; }\n function step(op) {\n if (f) throw new TypeError(\"Generator is already executing.\");\n while (_) try {\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\n if (y = 0, t) op = [op[0] & 2, t.value];\n switch (op[0]) {\n case 0: case 1: t = op; break;\n case 4: _.label++; return { value: op[1], done: false };\n case 5: _.label++; y = op[1]; op = [0]; continue;\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\n default:\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\n if (t[2]) _.ops.pop();\n _.trys.pop(); continue;\n }\n op = body.call(thisArg, _);\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\n }\n};\nvar __read = (this && this.__read) || function (o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o), r, ar = [], e;\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\n }\n catch (error) { e = { error: error }; }\n finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n }\n finally { if (e) throw e.error; }\n }\n return ar;\n};\nimport { diag } from '@opentelemetry/api';\nimport { SEMRESATTRS_SERVICE_NAME, SEMRESATTRS_TELEMETRY_SDK_LANGUAGE, SEMRESATTRS_TELEMETRY_SDK_NAME, SEMRESATTRS_TELEMETRY_SDK_VERSION, } from '@opentelemetry/semantic-conventions';\nimport { SDK_INFO } from '@opentelemetry/core';\nimport { defaultServiceName } from './platform';\n/**\n * A Resource describes the entity for which a signals (metrics or trace) are\n * collected.\n */\nvar Resource = /** @class */ (function () {\n function Resource(\n /**\n * A dictionary of attributes with string keys and values that provide\n * information about the entity as numbers, strings or booleans\n * TODO: Consider to add check/validation on attributes.\n */\n attributes, asyncAttributesPromise) {\n var _this = this;\n var _a;\n this._attributes = attributes;\n this.asyncAttributesPending = asyncAttributesPromise != null;\n this._syncAttributes = (_a = this._attributes) !== null && _a !== void 0 ? _a : {};\n this._asyncAttributesPromise = asyncAttributesPromise === null || asyncAttributesPromise === void 0 ? void 0 : asyncAttributesPromise.then(function (asyncAttributes) {\n _this._attributes = Object.assign({}, _this._attributes, asyncAttributes);\n _this.asyncAttributesPending = false;\n return asyncAttributes;\n }, function (err) {\n diag.debug(\"a resource's async attributes promise rejected: %s\", err);\n _this.asyncAttributesPending = false;\n return {};\n });\n }\n /**\n * Returns an empty Resource\n */\n Resource.empty = function () {\n return Resource.EMPTY;\n };\n /**\n * Returns a Resource that identifies the SDK in use.\n */\n Resource.default = function () {\n var _a;\n return new Resource((_a = {},\n _a[SEMRESATTRS_SERVICE_NAME] = defaultServiceName(),\n _a[SEMRESATTRS_TELEMETRY_SDK_LANGUAGE] = SDK_INFO[SEMRESATTRS_TELEMETRY_SDK_LANGUAGE],\n _a[SEMRESATTRS_TELEMETRY_SDK_NAME] = SDK_INFO[SEMRESATTRS_TELEMETRY_SDK_NAME],\n _a[SEMRESATTRS_TELEMETRY_SDK_VERSION] = SDK_INFO[SEMRESATTRS_TELEMETRY_SDK_VERSION],\n _a));\n };\n Object.defineProperty(Resource.prototype, \"attributes\", {\n get: function () {\n var _a;\n if (this.asyncAttributesPending) {\n diag.error('Accessing resource attributes before async attributes settled');\n }\n return (_a = this._attributes) !== null && _a !== void 0 ? _a : {};\n },\n enumerable: false,\n configurable: true\n });\n /**\n * Returns a promise that will never be rejected. Resolves when all async attributes have finished being added to\n * this Resource's attributes. This is useful in exporters to block until resource detection\n * has finished.\n */\n Resource.prototype.waitForAsyncAttributes = function () {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n if (!this.asyncAttributesPending) return [3 /*break*/, 2];\n return [4 /*yield*/, this._asyncAttributesPromise];\n case 1:\n _a.sent();\n _a.label = 2;\n case 2: return [2 /*return*/];\n }\n });\n });\n };\n /**\n * Returns a new, merged {@link Resource} by merging the current Resource\n * with the other Resource. In case of a collision, other Resource takes\n * precedence.\n *\n * @param other the Resource that will be merged with this.\n * @returns the newly merged Resource.\n */\n Resource.prototype.merge = function (other) {\n var _this = this;\n var _a;\n if (!other)\n return this;\n // SpanAttributes from other resource overwrite attributes from this resource.\n var mergedSyncAttributes = __assign(__assign({}, this._syncAttributes), ((_a = other._syncAttributes) !== null && _a !== void 0 ? _a : other.attributes));\n if (!this._asyncAttributesPromise &&\n !other._asyncAttributesPromise) {\n return new Resource(mergedSyncAttributes);\n }\n var mergedAttributesPromise = Promise.all([\n this._asyncAttributesPromise,\n other._asyncAttributesPromise,\n ]).then(function (_a) {\n var _b;\n var _c = __read(_a, 2), thisAsyncAttributes = _c[0], otherAsyncAttributes = _c[1];\n return __assign(__assign(__assign(__assign({}, _this._syncAttributes), thisAsyncAttributes), ((_b = other._syncAttributes) !== null && _b !== void 0 ? _b : other.attributes)), otherAsyncAttributes);\n });\n return new Resource(mergedSyncAttributes, mergedAttributesPromise);\n };\n Resource.EMPTY = new Resource({});\n return Resource;\n}());\nexport { Resource };\n//# sourceMappingURL=Resource.js.map","/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nvar __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nimport { SEMRESATTRS_PROCESS_RUNTIME_DESCRIPTION, SEMRESATTRS_PROCESS_RUNTIME_NAME, SEMRESATTRS_PROCESS_RUNTIME_VERSION, } from '@opentelemetry/semantic-conventions';\nimport { diag } from '@opentelemetry/api';\nimport { Resource } from '../Resource';\n/**\n * BrowserDetectorSync will be used to detect the resources related to browser.\n */\nvar BrowserDetectorSync = /** @class */ (function () {\n function BrowserDetectorSync() {\n }\n BrowserDetectorSync.prototype.detect = function (config) {\n var _a;\n var _b, _c, _d;\n var isBrowser = typeof navigator !== 'undefined' &&\n ((_c = (_b = global.process) === null || _b === void 0 ? void 0 : _b.versions) === null || _c === void 0 ? void 0 : _c.node) === undefined && // Node.js v21 adds `navigator`\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore don't have Bun types\n ((_d = global.Bun) === null || _d === void 0 ? void 0 : _d.version) === undefined; // Bun (bun.sh) defines `navigator`\n if (!isBrowser) {\n return Resource.empty();\n }\n var browserResource = (_a = {},\n _a[SEMRESATTRS_PROCESS_RUNTIME_NAME] = 'browser',\n _a[SEMRESATTRS_PROCESS_RUNTIME_DESCRIPTION] = 'Web Browser',\n _a[SEMRESATTRS_PROCESS_RUNTIME_VERSION] = navigator.userAgent,\n _a);\n return this._getResourceAttributes(browserResource, config);\n };\n /**\n * Validates process resource attribute map from process variables\n *\n * @param browserResource The un-sanitized resource attributes from process as key/value pairs.\n * @param config: Config\n * @returns The sanitized resource attributes.\n */\n BrowserDetectorSync.prototype._getResourceAttributes = function (browserResource, _config) {\n if (browserResource[SEMRESATTRS_PROCESS_RUNTIME_VERSION] === '') {\n diag.debug('BrowserDetector failed: Unable to find required browser resources. ');\n return Resource.empty();\n }\n else {\n return new Resource(__assign({}, browserResource));\n }\n };\n return BrowserDetectorSync;\n}());\nexport var browserDetectorSync = new BrowserDetectorSync();\n//# sourceMappingURL=BrowserDetectorSync.js.map","/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport { browserDetectorSync } from './BrowserDetectorSync';\n/**\n * BrowserDetector will be used to detect the resources related to browser.\n */\nvar BrowserDetector = /** @class */ (function () {\n function BrowserDetector() {\n }\n BrowserDetector.prototype.detect = function (config) {\n return Promise.resolve(browserDetectorSync.detect(config));\n };\n return BrowserDetector;\n}());\nexport var browserDetector = new BrowserDetector();\n//# sourceMappingURL=BrowserDetector.js.map","/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport { DiagLogLevel } from '@opentelemetry/api';\nimport { TracesSamplerValues } from './sampling';\nvar DEFAULT_LIST_SEPARATOR = ',';\n/**\n * Environment interface to define all names\n */\nvar ENVIRONMENT_BOOLEAN_KEYS = ['OTEL_SDK_DISABLED'];\nfunction isEnvVarABoolean(key) {\n return (ENVIRONMENT_BOOLEAN_KEYS.indexOf(key) > -1);\n}\nvar ENVIRONMENT_NUMBERS_KEYS = [\n 'OTEL_BSP_EXPORT_TIMEOUT',\n 'OTEL_BSP_MAX_EXPORT_BATCH_SIZE',\n 'OTEL_BSP_MAX_QUEUE_SIZE',\n 'OTEL_BSP_SCHEDULE_DELAY',\n 'OTEL_BLRP_EXPORT_TIMEOUT',\n 'OTEL_BLRP_MAX_EXPORT_BATCH_SIZE',\n 'OTEL_BLRP_MAX_QUEUE_SIZE',\n 'OTEL_BLRP_SCHEDULE_DELAY',\n 'OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT',\n 'OTEL_ATTRIBUTE_COUNT_LIMIT',\n 'OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT',\n 'OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT',\n 'OTEL_LOGRECORD_ATTRIBUTE_VALUE_LENGTH_LIMIT',\n 'OTEL_LOGRECORD_ATTRIBUTE_COUNT_LIMIT',\n 'OTEL_SPAN_EVENT_COUNT_LIMIT',\n 'OTEL_SPAN_LINK_COUNT_LIMIT',\n 'OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT',\n 'OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT',\n 'OTEL_EXPORTER_OTLP_TIMEOUT',\n 'OTEL_EXPORTER_OTLP_TRACES_TIMEOUT',\n 'OTEL_EXPORTER_OTLP_METRICS_TIMEOUT',\n 'OTEL_EXPORTER_OTLP_LOGS_TIMEOUT',\n 'OTEL_EXPORTER_JAEGER_AGENT_PORT',\n];\nfunction isEnvVarANumber(key) {\n return (ENVIRONMENT_NUMBERS_KEYS.indexOf(key) > -1);\n}\nvar ENVIRONMENT_LISTS_KEYS = [\n 'OTEL_NO_PATCH_MODULES',\n 'OTEL_PROPAGATORS',\n 'OTEL_SEMCONV_STABILITY_OPT_IN',\n];\nfunction isEnvVarAList(key) {\n return ENVIRONMENT_LISTS_KEYS.indexOf(key) > -1;\n}\nexport var DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT = Infinity;\nexport var DEFAULT_ATTRIBUTE_COUNT_LIMIT = 128;\nexport var DEFAULT_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT = 128;\nexport var DEFAULT_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT = 128;\n/**\n * Default environment variables\n */\nexport var DEFAULT_ENVIRONMENT = {\n OTEL_SDK_DISABLED: false,\n CONTAINER_NAME: '',\n ECS_CONTAINER_METADATA_URI_V4: '',\n ECS_CONTAINER_METADATA_URI: '',\n HOSTNAME: '',\n KUBERNETES_SERVICE_HOST: '',\n NAMESPACE: '',\n OTEL_BSP_EXPORT_TIMEOUT: 30000,\n OTEL_BSP_MAX_EXPORT_BATCH_SIZE: 512,\n OTEL_BSP_MAX_QUEUE_SIZE: 2048,\n OTEL_BSP_SCHEDULE_DELAY: 5000,\n OTEL_BLRP_EXPORT_TIMEOUT: 30000,\n OTEL_BLRP_MAX_EXPORT_BATCH_SIZE: 512,\n OTEL_BLRP_MAX_QUEUE_SIZE: 2048,\n OTEL_BLRP_SCHEDULE_DELAY: 5000,\n OTEL_EXPORTER_JAEGER_AGENT_HOST: '',\n OTEL_EXPORTER_JAEGER_AGENT_PORT: 6832,\n OTEL_EXPORTER_JAEGER_ENDPOINT: '',\n OTEL_EXPORTER_JAEGER_PASSWORD: '',\n OTEL_EXPORTER_JAEGER_USER: '',\n OTEL_EXPORTER_OTLP_ENDPOINT: '',\n OTEL_EXPORTER_OTLP_TRACES_ENDPOINT: '',\n OTEL_EXPORTER_OTLP_METRICS_ENDPOINT: '',\n OTEL_EXPORTER_OTLP_LOGS_ENDPOINT: '',\n OTEL_EXPORTER_OTLP_HEADERS: '',\n OTEL_EXPORTER_OTLP_TRACES_HEADERS: '',\n OTEL_EXPORTER_OTLP_METRICS_HEADERS: '',\n OTEL_EXPORTER_OTLP_LOGS_HEADERS: '',\n OTEL_EXPORTER_OTLP_TIMEOUT: 10000,\n OTEL_EXPORTER_OTLP_TRACES_TIMEOUT: 10000,\n OTEL_EXPORTER_OTLP_METRICS_TIMEOUT: 10000,\n OTEL_EXPORTER_OTLP_LOGS_TIMEOUT: 10000,\n OTEL_EXPORTER_ZIPKIN_ENDPOINT: 'http://localhost:9411/api/v2/spans',\n OTEL_LOG_LEVEL: DiagLogLevel.INFO,\n OTEL_NO_PATCH_MODULES: [],\n OTEL_PROPAGATORS: ['tracecontext', 'baggage'],\n OTEL_RESOURCE_ATTRIBUTES: '',\n OTEL_SERVICE_NAME: '',\n OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT: DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT,\n OTEL_ATTRIBUTE_COUNT_LIMIT: DEFAULT_ATTRIBUTE_COUNT_LIMIT,\n OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT: DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT,\n OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT: DEFAULT_ATTRIBUTE_COUNT_LIMIT,\n OTEL_LOGRECORD_ATTRIBUTE_VALUE_LENGTH_LIMIT: DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT,\n OTEL_LOGRECORD_ATTRIBUTE_COUNT_LIMIT: DEFAULT_ATTRIBUTE_COUNT_LIMIT,\n OTEL_SPAN_EVENT_COUNT_LIMIT: 128,\n OTEL_SPAN_LINK_COUNT_LIMIT: 128,\n OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT: DEFAULT_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT,\n OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT: DEFAULT_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT,\n OTEL_TRACES_EXPORTER: '',\n OTEL_TRACES_SAMPLER: TracesSamplerValues.ParentBasedAlwaysOn,\n OTEL_TRACES_SAMPLER_ARG: '',\n OTEL_LOGS_EXPORTER: '',\n OTEL_EXPORTER_OTLP_INSECURE: '',\n OTEL_EXPORTER_OTLP_TRACES_INSECURE: '',\n OTEL_EXPORTER_OTLP_METRICS_INSECURE: '',\n OTEL_EXPORTER_OTLP_LOGS_INSECURE: '',\n OTEL_EXPORTER_OTLP_CERTIFICATE: '',\n OTEL_EXPORTER_OTLP_TRACES_CERTIFICATE: '',\n OTEL_EXPORTER_OTLP_METRICS_CERTIFICATE: '',\n OTEL_EXPORTER_OTLP_LOGS_CERTIFICATE: '',\n OTEL_EXPORTER_OTLP_COMPRESSION: '',\n OTEL_EXPORTER_OTLP_TRACES_COMPRESSION: '',\n OTEL_EXPORTER_OTLP_METRICS_COMPRESSION: '',\n OTEL_EXPORTER_OTLP_LOGS_COMPRESSION: '',\n OTEL_EXPORTER_OTLP_CLIENT_KEY: '',\n OTEL_EXPORTER_OTLP_TRACES_CLIENT_KEY: '',\n OTEL_EXPORTER_OTLP_METRICS_CLIENT_KEY: '',\n OTEL_EXPORTER_OTLP_LOGS_CLIENT_KEY: '',\n OTEL_EXPORTER_OTLP_CLIENT_CERTIFICATE: '',\n OTEL_EXPORTER_OTLP_TRACES_CLIENT_CERTIFICATE: '',\n OTEL_EXPORTER_OTLP_METRICS_CLIENT_CERTIFICATE: '',\n OTEL_EXPORTER_OTLP_LOGS_CLIENT_CERTIFICATE: '',\n OTEL_EXPORTER_OTLP_PROTOCOL: 'http/protobuf',\n OTEL_EXPORTER_OTLP_TRACES_PROTOCOL: 'http/protobuf',\n OTEL_EXPORTER_OTLP_METRICS_PROTOCOL: 'http/protobuf',\n OTEL_EXPORTER_OTLP_LOGS_PROTOCOL: 'http/protobuf',\n OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE: 'cumulative',\n OTEL_SEMCONV_STABILITY_OPT_IN: [],\n};\n/**\n * @param key\n * @param environment\n * @param values\n */\nfunction parseBoolean(key, environment, values) {\n if (typeof values[key] === 'undefined') {\n return;\n }\n var value = String(values[key]);\n // support case-insensitive \"true\"\n environment[key] = value.toLowerCase() === 'true';\n}\n/**\n * Parses a variable as number with number validation\n * @param name\n * @param environment\n * @param values\n * @param min\n * @param max\n */\nfunction parseNumber(name, environment, values, min, max) {\n if (min === void 0) { min = -Infinity; }\n if (max === void 0) { max = Infinity; }\n if (typeof values[name] !== 'undefined') {\n var value = Number(values[name]);\n if (!isNaN(value)) {\n if (value < min) {\n environment[name] = min;\n }\n else if (value > max) {\n environment[name] = max;\n }\n else {\n environment[name] = value;\n }\n }\n }\n}\n/**\n * Parses list-like strings from input into output.\n * @param name\n * @param environment\n * @param values\n * @param separator\n */\nfunction parseStringList(name, output, input, separator) {\n if (separator === void 0) { separator = DEFAULT_LIST_SEPARATOR; }\n var givenValue = input[name];\n if (typeof givenValue === 'string') {\n output[name] = givenValue.split(separator).map(function (v) { return v.trim(); });\n }\n}\n// The support string -> DiagLogLevel mappings\nvar logLevelMap = {\n ALL: DiagLogLevel.ALL,\n VERBOSE: DiagLogLevel.VERBOSE,\n DEBUG: DiagLogLevel.DEBUG,\n INFO: DiagLogLevel.INFO,\n WARN: DiagLogLevel.WARN,\n ERROR: DiagLogLevel.ERROR,\n NONE: DiagLogLevel.NONE,\n};\n/**\n * Environmentally sets log level if valid log level string is provided\n * @param key\n * @param environment\n * @param values\n */\nfunction setLogLevelFromEnv(key, environment, values) {\n var value = values[key];\n if (typeof value === 'string') {\n var theLevel = logLevelMap[value.toUpperCase()];\n if (theLevel != null) {\n environment[key] = theLevel;\n }\n }\n}\n/**\n * Parses environment values\n * @param values\n */\nexport function parseEnvironment(values) {\n var environment = {};\n for (var env in DEFAULT_ENVIRONMENT) {\n var key = env;\n switch (key) {\n case 'OTEL_LOG_LEVEL':\n setLogLevelFromEnv(key, environment, values);\n break;\n default:\n if (isEnvVarABoolean(key)) {\n parseBoolean(key, environment, values);\n }\n else if (isEnvVarANumber(key)) {\n parseNumber(key, environment, values);\n }\n else if (isEnvVarAList(key)) {\n parseStringList(key, environment, values);\n }\n else {\n var value = values[key];\n if (typeof value !== 'undefined' && value !== null) {\n environment[key] = String(value);\n }\n }\n }\n }\n return environment;\n}\n//# sourceMappingURL=environment.js.map","/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nvar __values = (this && this.__values) || function(o) {\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\n if (m) return m.call(o);\n if (o && typeof o.length === \"number\") return {\n next: function () {\n if (o && i >= o.length) o = void 0;\n return { value: o && o[i++], done: !o };\n }\n };\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\n};\nvar __read = (this && this.__read) || function (o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o), r, ar = [], e;\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\n }\n catch (error) { e = { error: error }; }\n finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n }\n finally { if (e) throw e.error; }\n }\n return ar;\n};\nimport { diag } from '@opentelemetry/api';\nimport { getEnv } from '@opentelemetry/core';\nimport { SEMRESATTRS_SERVICE_NAME } from '@opentelemetry/semantic-conventions';\nimport { Resource } from '../Resource';\n/**\n * EnvDetectorSync can be used to detect the presence of and create a Resource\n * from the OTEL_RESOURCE_ATTRIBUTES environment variable.\n */\nvar EnvDetectorSync = /** @class */ (function () {\n function EnvDetectorSync() {\n // Type, attribute keys, and attribute values should not exceed 256 characters.\n this._MAX_LENGTH = 255;\n // OTEL_RESOURCE_ATTRIBUTES is a comma-separated list of attributes.\n this._COMMA_SEPARATOR = ',';\n // OTEL_RESOURCE_ATTRIBUTES contains key value pair separated by '='.\n this._LABEL_KEY_VALUE_SPLITTER = '=';\n this._ERROR_MESSAGE_INVALID_CHARS = 'should be a ASCII string with a length greater than 0 and not exceed ' +\n this._MAX_LENGTH +\n ' characters.';\n this._ERROR_MESSAGE_INVALID_VALUE = 'should be a ASCII string with a length not exceed ' +\n this._MAX_LENGTH +\n ' characters.';\n }\n /**\n * Returns a {@link Resource} populated with attributes from the\n * OTEL_RESOURCE_ATTRIBUTES environment variable. Note this is an async\n * function to conform to the Detector interface.\n *\n * @param config The resource detection config\n */\n EnvDetectorSync.prototype.detect = function (_config) {\n var attributes = {};\n var env = getEnv();\n var rawAttributes = env.OTEL_RESOURCE_ATTRIBUTES;\n var serviceName = env.OTEL_SERVICE_NAME;\n if (rawAttributes) {\n try {\n var parsedAttributes = this._parseResourceAttributes(rawAttributes);\n Object.assign(attributes, parsedAttributes);\n }\n catch (e) {\n diag.debug(\"EnvDetector failed: \" + e.message);\n }\n }\n if (serviceName) {\n attributes[SEMRESATTRS_SERVICE_NAME] = serviceName;\n }\n return new Resource(attributes);\n };\n /**\n * Creates an attribute map from the OTEL_RESOURCE_ATTRIBUTES environment\n * variable.\n *\n * OTEL_RESOURCE_ATTRIBUTES: A comma-separated list of attributes describing\n * the source in more detail, e.g. “key1=val1,key2=val2”. Domain names and\n * paths are accepted as attribute keys. Values may be quoted or unquoted in\n * general. If a value contains whitespace, =, or \" characters, it must\n * always be quoted.\n *\n * @param rawEnvAttributes The resource attributes as a comma-separated list\n * of key/value pairs.\n * @returns The sanitized resource attributes.\n */\n EnvDetectorSync.prototype._parseResourceAttributes = function (rawEnvAttributes) {\n var e_1, _a;\n if (!rawEnvAttributes)\n return {};\n var attributes = {};\n var rawAttributes = rawEnvAttributes.split(this._COMMA_SEPARATOR, -1);\n try {\n for (var rawAttributes_1 = __values(rawAttributes), rawAttributes_1_1 = rawAttributes_1.next(); !rawAttributes_1_1.done; rawAttributes_1_1 = rawAttributes_1.next()) {\n var rawAttribute = rawAttributes_1_1.value;\n var keyValuePair = rawAttribute.split(this._LABEL_KEY_VALUE_SPLITTER, -1);\n if (keyValuePair.length !== 2) {\n continue;\n }\n var _b = __read(keyValuePair, 2), key = _b[0], value = _b[1];\n // Leading and trailing whitespaces are trimmed.\n key = key.trim();\n value = value.trim().split(/^\"|\"$/).join('');\n if (!this._isValidAndNotEmpty(key)) {\n throw new Error(\"Attribute key \" + this._ERROR_MESSAGE_INVALID_CHARS);\n }\n if (!this._isValid(value)) {\n throw new Error(\"Attribute value \" + this._ERROR_MESSAGE_INVALID_VALUE);\n }\n attributes[key] = decodeURIComponent(value);\n }\n }\n catch (e_1_1) { e_1 = { error: e_1_1 }; }\n finally {\n try {\n if (rawAttributes_1_1 && !rawAttributes_1_1.done && (_a = rawAttributes_1.return)) _a.call(rawAttributes_1);\n }\n finally { if (e_1) throw e_1.error; }\n }\n return attributes;\n };\n /**\n * Determines whether the given String is a valid printable ASCII string with\n * a length not exceed _MAX_LENGTH characters.\n *\n * @param str The String to be validated.\n * @returns Whether the String is valid.\n */\n EnvDetectorSync.prototype._isValid = function (name) {\n return name.length <= this._MAX_LENGTH && this._isBaggageOctetString(name);\n };\n // https://www.w3.org/TR/baggage/#definition\n EnvDetectorSync.prototype._isBaggageOctetString = function (str) {\n for (var i = 0; i < str.length; i++) {\n var ch = str.charCodeAt(i);\n if (ch < 0x21 || ch === 0x2c || ch === 0x3b || ch === 0x5c || ch > 0x7e) {\n return false;\n }\n }\n return true;\n };\n /**\n * Determines whether the given String is a valid printable ASCII string with\n * a length greater than 0 and not exceed _MAX_LENGTH characters.\n *\n * @param str The String to be validated.\n * @returns Whether the String is valid and not empty.\n */\n EnvDetectorSync.prototype._isValidAndNotEmpty = function (str) {\n return str.length > 0 && this._isValid(str);\n };\n return EnvDetectorSync;\n}());\nexport var envDetectorSync = new EnvDetectorSync();\n//# sourceMappingURL=EnvDetectorSync.js.map","/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport { DEFAULT_ENVIRONMENT, parseEnvironment, } from '../../utils/environment';\n/**\n * Gets the environment variables\n */\nexport function getEnv() {\n var processEnv = parseEnvironment(process.env);\n return Object.assign({}, DEFAULT_ENVIRONMENT, processEnv);\n}\nexport function getEnvWithoutDefaults() {\n return parseEnvironment(process.env);\n}\n//# sourceMappingURL=environment.js.map","/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport { envDetectorSync } from './EnvDetectorSync';\n/**\n * EnvDetector can be used to detect the presence of and create a Resource\n * from the OTEL_RESOURCE_ATTRIBUTES environment variable.\n */\nvar EnvDetector = /** @class */ (function () {\n function EnvDetector() {\n }\n /**\n * Returns a {@link Resource} populated with attributes from the\n * OTEL_RESOURCE_ATTRIBUTES environment variable. Note this is an async\n * function to conform to the Detector interface.\n *\n * @param config The resource detection config\n */\n EnvDetector.prototype.detect = function (config) {\n return Promise.resolve(envDetectorSync.detect(config));\n };\n return EnvDetector;\n}());\nexport var envDetector = new EnvDetector();\n//# sourceMappingURL=EnvDetector.js.map","/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nexport var normalizeArch = function (nodeArchString) {\n // Maps from https://nodejs.org/api/os.html#osarch to arch values in spec:\n // https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/resource/semantic_conventions/host.md\n switch (nodeArchString) {\n case 'arm':\n return 'arm32';\n case 'ppc':\n return 'ppc32';\n case 'x64':\n return 'amd64';\n default:\n return nodeArchString;\n }\n};\nexport var normalizeType = function (nodePlatform) {\n // Maps from https://nodejs.org/api/os.html#osplatform to arch values in spec:\n // https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/resource/semantic_conventions/os.md\n switch (nodePlatform) {\n case 'sunos':\n return 'solaris';\n case 'win32':\n return 'windows';\n default:\n return nodePlatform;\n }\n};\n//# sourceMappingURL=utils.js.map","/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport { SEMRESATTRS_HOST_ARCH, SEMRESATTRS_HOST_ID, SEMRESATTRS_HOST_NAME, } from '@opentelemetry/semantic-conventions';\nimport { Resource } from '../../../Resource';\nimport { arch, hostname } from 'os';\nimport { normalizeArch } from './utils';\nimport { getMachineId } from './machine-id/getMachineId';\n/**\n * HostDetectorSync detects the resources related to the host current process is\n * running on. Currently only non-cloud-based attributes are included.\n */\nvar HostDetectorSync = /** @class */ (function () {\n function HostDetectorSync() {\n }\n HostDetectorSync.prototype.detect = function (_config) {\n var _a;\n var attributes = (_a = {},\n _a[SEMRESATTRS_HOST_NAME] = hostname(),\n _a[SEMRESATTRS_HOST_ARCH] = normalizeArch(arch()),\n _a);\n return new Resource(attributes, this._getAsyncAttributes());\n };\n HostDetectorSync.prototype._getAsyncAttributes = function () {\n return getMachineId().then(function (machineId) {\n var attributes = {};\n if (machineId) {\n attributes[SEMRESATTRS_HOST_ID] = machineId;\n }\n return attributes;\n });\n };\n return HostDetectorSync;\n}());\nexport var hostDetectorSync = new HostDetectorSync();\n//# sourceMappingURL=HostDetectorSync.js.map","/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport { hostDetectorSync } from './HostDetectorSync';\n/**\n * HostDetector detects the resources related to the host current process is\n * running on. Currently only non-cloud-based attributes are included.\n */\nvar HostDetector = /** @class */ (function () {\n function HostDetector() {\n }\n HostDetector.prototype.detect = function (_config) {\n return Promise.resolve(hostDetectorSync.detect(_config));\n };\n return HostDetector;\n}());\nexport var hostDetector = new HostDetector();\n//# sourceMappingURL=HostDetector.js.map","/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport { SEMRESATTRS_OS_TYPE, SEMRESATTRS_OS_VERSION, } from '@opentelemetry/semantic-conventions';\nimport { Resource } from '../../../Resource';\nimport { platform, release } from 'os';\nimport { normalizeType } from './utils';\n/**\n * OSDetectorSync detects the resources related to the operating system (OS) on\n * which the process represented by this resource is running.\n */\nvar OSDetectorSync = /** @class */ (function () {\n function OSDetectorSync() {\n }\n OSDetectorSync.prototype.detect = function (_config) {\n var _a;\n var attributes = (_a = {},\n _a[SEMRESATTRS_OS_TYPE] = normalizeType(platform()),\n _a[SEMRESATTRS_OS_VERSION] = release(),\n _a);\n return new Resource(attributes);\n };\n return OSDetectorSync;\n}());\nexport var osDetectorSync = new OSDetectorSync();\n//# sourceMappingURL=OSDetectorSync.js.map","/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport { osDetectorSync } from './OSDetectorSync';\n/**\n * OSDetector detects the resources related to the operating system (OS) on\n * which the process represented by this resource is running.\n */\nvar OSDetector = /** @class */ (function () {\n function OSDetector() {\n }\n OSDetector.prototype.detect = function (_config) {\n return Promise.resolve(osDetectorSync.detect(_config));\n };\n return OSDetector;\n}());\nexport var osDetector = new OSDetector();\n//# sourceMappingURL=OSDetector.js.map","/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nvar __read = (this && this.__read) || function (o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o), r, ar = [], e;\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\n }\n catch (error) { e = { error: error }; }\n finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n }\n finally { if (e) throw e.error; }\n }\n return ar;\n};\nvar __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\n if (ar || !(i in from)) {\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\n ar[i] = from[i];\n }\n }\n return to.concat(ar || Array.prototype.slice.call(from));\n};\nimport { diag } from '@opentelemetry/api';\nimport { SEMRESATTRS_PROCESS_COMMAND, SEMRESATTRS_PROCESS_COMMAND_ARGS, SEMRESATTRS_PROCESS_EXECUTABLE_NAME, SEMRESATTRS_PROCESS_EXECUTABLE_PATH, SEMRESATTRS_PROCESS_OWNER, SEMRESATTRS_PROCESS_PID, SEMRESATTRS_PROCESS_RUNTIME_DESCRIPTION, SEMRESATTRS_PROCESS_RUNTIME_NAME, SEMRESATTRS_PROCESS_RUNTIME_VERSION, } from '@opentelemetry/semantic-conventions';\nimport { Resource } from '../../../Resource';\nimport * as os from 'os';\n/**\n * ProcessDetectorSync will be used to detect the resources related current process running\n * and being instrumented from the NodeJS Process module.\n */\nvar ProcessDetectorSync = /** @class */ (function () {\n function ProcessDetectorSync() {\n }\n ProcessDetectorSync.prototype.detect = function (_config) {\n var _a;\n var attributes = (_a = {},\n _a[SEMRESATTRS_PROCESS_PID] = process.pid,\n _a[SEMRESATTRS_PROCESS_EXECUTABLE_NAME] = process.title,\n _a[SEMRESATTRS_PROCESS_EXECUTABLE_PATH] = process.execPath,\n _a[SEMRESATTRS_PROCESS_COMMAND_ARGS] = __spreadArray(__spreadArray([\n process.argv[0]\n ], __read(process.execArgv), false), __read(process.argv.slice(1)), false),\n _a[SEMRESATTRS_PROCESS_RUNTIME_VERSION] = process.versions.node,\n _a[SEMRESATTRS_PROCESS_RUNTIME_NAME] = 'nodejs',\n _a[SEMRESATTRS_PROCESS_RUNTIME_DESCRIPTION] = 'Node.js',\n _a);\n if (process.argv.length > 1) {\n attributes[SEMRESATTRS_PROCESS_COMMAND] = process.argv[1];\n }\n try {\n var userInfo = os.userInfo();\n attributes[SEMRESATTRS_PROCESS_OWNER] = userInfo.username;\n }\n catch (e) {\n diag.debug(\"error obtaining process owner: \" + e);\n }\n return new Resource(attributes);\n };\n return ProcessDetectorSync;\n}());\nexport var processDetectorSync = new ProcessDetectorSync();\n//# sourceMappingURL=ProcessDetectorSync.js.map","/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport { processDetectorSync } from './ProcessDetectorSync';\n/**\n * ProcessDetector will be used to detect the resources related current process running\n * and being instrumented from the NodeJS Process module.\n */\nvar ProcessDetector = /** @class */ (function () {\n function ProcessDetector() {\n }\n ProcessDetector.prototype.detect = function (config) {\n return Promise.resolve(processDetectorSync.detect(config));\n };\n return ProcessDetector;\n}());\nexport var processDetector = new ProcessDetector();\n//# sourceMappingURL=ProcessDetector.js.map","/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport { SEMRESATTRS_SERVICE_INSTANCE_ID } from '@opentelemetry/semantic-conventions';\nimport { Resource } from '../../../Resource';\nimport { randomUUID } from 'crypto';\n/**\n * ServiceInstanceIdDetectorSync detects the resources related to the service instance ID.\n */\nvar ServiceInstanceIdDetectorSync = /** @class */ (function () {\n function ServiceInstanceIdDetectorSync() {\n }\n ServiceInstanceIdDetectorSync.prototype.detect = function (_config) {\n var _a;\n var attributes = (_a = {},\n _a[SEMRESATTRS_SERVICE_INSTANCE_ID] = randomUUID(),\n _a);\n return new Resource(attributes);\n };\n return ServiceInstanceIdDetectorSync;\n}());\n/**\n * @experimental\n */\nexport var serviceInstanceIdDetectorSync = new ServiceInstanceIdDetectorSync();\n//# sourceMappingURL=ServiceInstanceIdDetectorSync.js.map","/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nvar __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nvar __generator = (this && this.__generator) || function (thisArg, body) {\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\n function verb(n) { return function (v) { return step([n, v]); }; }\n function step(op) {\n if (f) throw new TypeError(\"Generator is already executing.\");\n while (_) try {\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\n if (y = 0, t) op = [op[0] & 2, t.value];\n switch (op[0]) {\n case 0: case 1: t = op; break;\n case 4: _.label++; return { value: op[1], done: false };\n case 5: _.label++; y = op[1]; op = [0]; continue;\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\n default:\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\n if (t[2]) _.ops.pop();\n _.trys.pop(); continue;\n }\n op = body.call(thisArg, _);\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\n }\n};\nimport { Resource } from './Resource';\nimport { diag } from '@opentelemetry/api';\nimport { isPromiseLike } from './utils';\n/**\n * Runs all resource detectors and returns the results merged into a single Resource. Promise\n * does not resolve until all the underlying detectors have resolved, unlike\n * detectResourcesSync.\n *\n * @deprecated use detectResourcesSync() instead.\n * @param config Configuration for resource detection\n */\nexport var detectResources = function (config) {\n if (config === void 0) { config = {}; }\n return __awaiter(void 0, void 0, void 0, function () {\n var resources;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, Promise.all((config.detectors || []).map(function (d) { return __awaiter(void 0, void 0, void 0, function () {\n var resource, e_1;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n _a.trys.push([0, 2, , 3]);\n return [4 /*yield*/, d.detect(config)];\n case 1:\n resource = _a.sent();\n diag.debug(d.constructor.name + \" found resource.\", resource);\n return [2 /*return*/, resource];\n case 2:\n e_1 = _a.sent();\n diag.debug(d.constructor.name + \" failed: \" + e_1.message);\n return [2 /*return*/, Resource.empty()];\n case 3: return [2 /*return*/];\n }\n });\n }); }))];\n case 1:\n resources = _a.sent();\n // Future check if verbose logging is enabled issue #1903\n logResources(resources);\n return [2 /*return*/, resources.reduce(function (acc, resource) { return acc.merge(resource); }, Resource.empty())];\n }\n });\n });\n};\n/**\n * Runs all resource detectors synchronously, merging their results. In case of attribute collision later resources will take precedence.\n *\n * @param config Configuration for resource detection\n */\nexport var detectResourcesSync = function (config) {\n var _a;\n if (config === void 0) { config = {}; }\n var resources = ((_a = config.detectors) !== null && _a !== void 0 ? _a : []).map(function (d) {\n try {\n var resourceOrPromise_1 = d.detect(config);\n var resource_1;\n if (isPromiseLike(resourceOrPromise_1)) {\n var createPromise = function () { return __awaiter(void 0, void 0, void 0, function () {\n var resolvedResource;\n var _a;\n return __generator(this, function (_b) {\n switch (_b.label) {\n case 0: return [4 /*yield*/, resourceOrPromise_1];\n case 1:\n resolvedResource = _b.sent();\n return [4 /*yield*/, ((_a = resolvedResource.waitForAsyncAttributes) === null || _a === void 0 ? void 0 : _a.call(resolvedResource))];\n case 2:\n _b.sent();\n return [2 /*return*/, resolvedResource.attributes];\n }\n });\n }); };\n resource_1 = new Resource({}, createPromise());\n }\n else {\n resource_1 = resourceOrPromise_1;\n }\n if (resource_1.waitForAsyncAttributes) {\n void resource_1\n .waitForAsyncAttributes()\n .then(function () {\n return diag.debug(d.constructor.name + \" found resource.\", resource_1);\n });\n }\n else {\n diag.debug(d.constructor.name + \" found resource.\", resource_1);\n }\n return resource_1;\n }\n catch (e) {\n diag.error(d.constructor.name + \" failed: \" + e.message);\n return Resource.empty();\n }\n });\n var mergedResources = resources.reduce(function (acc, resource) { return acc.merge(resource); }, Resource.empty());\n if (mergedResources.waitForAsyncAttributes) {\n void mergedResources.waitForAsyncAttributes().then(function () {\n // Future check if verbose logging is enabled issue #1903\n logResources(resources);\n });\n }\n return mergedResources;\n};\n/**\n * Writes debug information about the detected resources to the logger defined in the resource detection config, if one is provided.\n *\n * @param resources The array of {@link Resource} that should be logged. Empty entries will be ignored.\n */\nvar logResources = function (resources) {\n resources.forEach(function (resource) {\n // Print only populated resources\n if (Object.keys(resource.attributes).length > 0) {\n var resourceDebugString = JSON.stringify(resource.attributes, null, 4);\n diag.verbose(resourceDebugString);\n }\n });\n};\n//# sourceMappingURL=detect-resources.js.map","/*\n * Copyright The OpenTelemetry Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nexport var isPromiseLike = function (val) {\n return (val !== null && typeof val === 'object' && typeof val.then === 'function');\n};\n//# sourceMappingURL=utils.js.map"],"names":["Symbol","TypeError","e","Promise","Object","d","process","n","arguments","i","a","navigator","global","b","String","Number","isNaN","Error","decodeURIComponent","r","Array","JSON"],"mappings":"iLAiBO,IAAI,EAAY,A,gBAAA,SAAc,CAAC,MAAkB,C,qQCOpD,EAA4C,SAAU,CAAO,CAAE,CAAI,EACnE,IAAsG,EAAG,EAAG,EAAG,EAA3G,EAAI,CAAE,MAAO,EAAG,KAAM,WAAa,GAAI,AAAO,EAAP,CAAC,CAAC,EAAE,CAAM,MAAM,CAAC,CAAC,EAAE,CAAE,OAAO,CAAC,CAAC,EAAE,AAAE,EAAG,KAAM,EAAE,CAAE,IAAK,EAAE,AAAC,EACnG,OAAO,EAAI,CAAE,KAAM,EAAK,GAAI,MAAS,EAAK,GAAI,OAAU,EAAK,EAAG,EAAG,AAAkB,YAAlB,OAAOA,QAA0B,EAAC,CAACA,OAAO,QAAQ,CAAC,CAAG,WAAa,OAAO,IAAI,AAAE,GAAI,EACvJ,SAAS,EAAK,CAAC,EAAI,OAAO,SAAU,CAAC,MACvB,EADuC,CAAC,EAAG,EAAE,CAEvD,GAAI,EAAG,MAAM,AAAIC,UAAU,mCAC3B,KAAO,GAAG,GAAI,CACV,GAAI,EAAI,EAAG,GAAM,GAAI,AAAQ,EAAR,CAAE,CAAC,EAAE,CAAO,EAAE,MAAS,CAAG,CAAE,CAAC,EAAE,CAAG,EAAE,KAAQ,EAAK,CAAC,GAAI,EAAE,MAAS,AAAD,GAAM,EAAE,IAAI,CAAC,GAAI,GAAK,EAAE,IAAI,AAAD,G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AU,CAAC,EAAE,WAAW,CAAC,IAAI,CAAG,YAAcA,EAAE,OAAO,EAChD,OAAc,EACzB,CACJ,GACI,EAAkBiB,EAAU,MAAM,CAAC,SAAU,CAAG,CAAE,CAAQ,EAAI,OAAO,EAAI,KAAK,CAAC,EAAW,EAAG,OAAc,IAO/G,OANI,EAAgB,sBAAsB,EACjC,EAAgB,sBAAsB,GAAG,IAAI,CAAC,WAE/C,EAAaA,EACjB,GAEG,CACX,EAMI,EAAe,SAAU,CAAS,EAClC,EAAU,OAAO,CAAC,SAAU,CAAQ,EAEhC,GAAIf,OAAO,IAAI,CAAC,EAAS,UAAU,EAAE,MAAM,CAAG,EAAG,CAC7C,IAAI,EAAsBiB,KAAK,SAAS,CAAC,EAAS,UAAU,CAAE,KAAM,GACpE,cAAY,CAAC,EACjB,CACJ,EACJ,C"} \ No newline at end of file diff --git a/packages/node_modules/crypto-randomuuid/index.js.map b/packages/node_modules/crypto-randomuuid/index.js.map new file mode 100644 index 00000000000..e95a5f64c67 --- /dev/null +++ b/packages/node_modules/crypto-randomuuid/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"crypto-randomuuid/index.js","sources":["webpack:///./crypto-randomuuid/index.js","webpack:///./crypto-randomuuid/polyfill.js","webpack:///./crypto-randomuuid/validators.js"],"sourcesContent":["'use strict';\n\nconst crypto = require('crypto');\n\nmodule.exports = typeof crypto.randomUUID === 'function'\n ? crypto.randomUUID\n : require('./polyfill');\n","'use strict';\n\nconst crypto = require('crypto');\n\nconst {\n validateBoolean,\n validateObject,\n codes: {\n ERR_OPERATION_FAILED\n }\n} = require('./validators');\n\nconst { randomFillSync } = crypto;\n\n// This is a non-cryptographically secure replacement for the native version\n// of the `secureBuffer` function used in Node.js core. This means `randomUUID`\n// should not be used where cryptographically secure uuids are important.\n//\n// Node.js core uses a native version which uses `OPENSSL_secure_malloc`\n// rather than `randomFillSync`.\nfunction secureBuffer (size) {\n const buf = Buffer.alloc(size);\n return randomFillSync(buf);\n}\n\n// Implements an RFC 4122 version 4 random UUID.\n// To improve performance, random data is generated in batches\n// large enough to cover kBatchSize UUID's at a time. The uuidData\n// buffer is reused. Each call to randomUUID() consumes 16 bytes\n// from the buffer.\n\nconst kBatchSize = 128;\nlet uuidData;\nlet uuidNotBuffered;\nlet uuidBatch = 0;\n\nlet hexBytesCache;\nfunction getHexBytes () {\n if (hexBytesCache === undefined) {\n hexBytesCache = new Array(256);\n for (let i = 0; i < hexBytesCache.length; i++) {\n const hex = i.toString(16);\n hexBytesCache[i] = hex.padStart(2, '0');\n }\n }\n return hexBytesCache;\n}\n\nfunction serializeUUID (buf, offset = 0) {\n const kHexBytes = getHexBytes();\n // xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx\n return kHexBytes[buf[offset]] +\n kHexBytes[buf[offset + 1]] +\n kHexBytes[buf[offset + 2]] +\n kHexBytes[buf[offset + 3]] +\n '-' +\n kHexBytes[buf[offset + 4]] +\n kHexBytes[buf[offset + 5]] +\n '-' +\n kHexBytes[(buf[offset + 6] & 0x0f) | 0x40] +\n kHexBytes[buf[offset + 7]] +\n '-' +\n kHexBytes[(buf[offset + 8] & 0x3f) | 0x80] +\n kHexBytes[buf[offset + 9]] +\n '-' +\n kHexBytes[buf[offset + 10]] +\n kHexBytes[buf[offset + 11]] +\n kHexBytes[buf[offset + 12]] +\n kHexBytes[buf[offset + 13]] +\n kHexBytes[buf[offset + 14]] +\n kHexBytes[buf[offset + 15]];\n}\n\nfunction getBufferedUUID () {\n if (!uuidData) uuidData = secureBuffer(16 * kBatchSize);\n if (uuidData === undefined)\n throw new ERR_OPERATION_FAILED('Out of memory');\n\n if (uuidBatch === 0) randomFillSync(uuidData);\n uuidBatch = (uuidBatch + 1) % kBatchSize;\n return serializeUUID(uuidData, uuidBatch * 16);\n}\n\nfunction getUnbufferedUUID () {\n if (!uuidNotBuffered) uuidNotBuffered = secureBuffer(16 * kBatchSize);\n if (uuidNotBuffered === undefined)\n throw new ERR_OPERATION_FAILED('Out of memory');\n randomFillSync(uuidNotBuffered);\n return serializeUUID(uuidNotBuffered);\n}\n\nfunction randomUUID (options) {\n if (options !== undefined)\n validateObject(options, 'options');\n const {\n disableEntropyCache = false,\n } = options || {};\n\n validateBoolean(disableEntropyCache, 'options.disableEntropyCache');\n\n return disableEntropyCache ? getUnbufferedUUID() : getBufferedUUID();\n}\n\nmodule.exports = randomUUID;\n","'use strict';\n\n// Polyfill relevant Node.js core validators and error types\n\nconst assert = require('assert');\nconst util = require('util');\n\n// Sorted by a rough estimate on most frequently used entries.\nconst kTypes = [\n 'string',\n 'function',\n 'number',\n 'object',\n // Accept 'Function' and 'Object' as alternative to the lower cased version.\n 'Function',\n 'Object',\n 'boolean',\n 'bigint',\n 'symbol',\n];\n\nclass ERR_OPERATION_FAILED extends TypeError {\n constructor(message) {\n super(`Operation failed: ${message}`);\n this.code = this.constructor.name;\n\n Object.defineProperties(this, {\n toString: {\n value () {\n return `${this.name} [${this.code}]: ${this.message}`;\n },\n enumerable: false,\n writable: true,\n configurable: true,\n },\n });\n }\n}\n\nclass ERR_INVALID_ARG_TYPE extends TypeError {\n constructor(name, expected, actual) {\n super();\n\n assert(typeof name === 'string', \"'name' must be a string\");\n if (!Array.isArray(expected)) {\n expected = [expected];\n }\n\n let msg = 'The ';\n if (name.endsWith(' argument')) {\n // For cases like 'first argument'\n msg += `${name} `;\n } else {\n const type = name.includes('.') ? 'property' : 'argument';\n msg += `\"${name}\" ${type} `;\n }\n msg += 'must be ';\n\n const types = [];\n const instances = [];\n const other = [];\n\n for (const value of expected) {\n assert(typeof value === 'string',\n 'All expected entries have to be of type string');\n if (kTypes.includes(value)) {\n types.push(value.toLowerCase());\n } else if (classRegExp.test(value)) {\n instances.push(value);\n } else {\n assert(value !== 'object',\n 'The value \"object\" should be written as \"Object\"');\n other.push(value);\n }\n }\n\n // Special handle `object` in case other instances are allowed to outline\n // the differences between each other.\n if (instances.length > 0) {\n const pos = types.indexOf('object');\n if (pos !== -1) {\n types.splice(pos, 1);\n instances.push('Object');\n }\n }\n\n if (types.length > 0) {\n if (types.length > 2) {\n const last = types.pop();\n msg += `one of type ${types.join(', ')}, or ${last}`;\n } else if (types.length === 2) {\n msg += `one of type ${types[0]} or ${types[1]}`;\n } else {\n msg += `of type ${types[0]}`;\n }\n if (instances.length > 0 || other.length > 0)\n msg += ' or ';\n }\n\n if (instances.length > 0) {\n if (instances.length > 2) {\n const last = instances.pop();\n msg +=\n `an instance of ${instances.join(', ')}, or ${last}`;\n } else {\n msg += `an instance of ${instances[0]}`;\n if (instances.length === 2) {\n msg += ` or ${instances[1]}`;\n }\n }\n if (other.length > 0)\n msg += ' or ';\n }\n\n if (other.length > 0) {\n if (other.length > 2) {\n const last = other.pop();\n msg += `one of ${other.join(', ')}, or ${last}`;\n } else if (other.length === 2) {\n msg += `one of ${other[0]} or ${other[1]}`;\n } else {\n if (other[0].toLowerCase() !== other[0])\n msg += 'an ';\n msg += `${other[0]}`;\n }\n }\n\n if (actual == null) {\n msg += `. Received ${actual}`;\n } else if (typeof actual === 'function' && actual.name) {\n msg += `. Received function ${actual.name}`;\n } else if (typeof actual === 'object') {\n if (actual.constructor && actual.constructor.name) {\n msg += `. Received an instance of ${actual.constructor.name}`;\n } else {\n const inspected = util.inspect(actual, { depth: -1 });\n msg += `. Received ${inspected}`;\n }\n } else {\n let inspected = util.inspect(actual, { colors: false });\n if (inspected.length > 25) {\n inspected = `${inspected.slice(0, 25)}...`;\n }\n msg += `. Received type ${typeof actual} (${inspected})`;\n }\n\n this.code = this.constructor.name;\n\n Object.defineProperties(this, {\n message: {\n value: msg,\n enumerable: false,\n writable: true,\n configurable: true,\n },\n toString: {\n value() {\n return `${this.name} [${this.code}]: ${this.message}`;\n },\n enumerable: false,\n writable: true,\n configurable: true,\n },\n });\n }\n}\n\nfunction validateBoolean(value, name) {\n if (typeof value !== 'boolean')\n throw new ERR_INVALID_ARG_TYPE(name, 'boolean', value);\n}\n\nfunction validateObject(value, name, {\n nullable = false,\n allowArray = false,\n allowFunction = false,\n} = {}) {\n if ((!nullable && value === null) ||\n (!allowArray && Array.isArray(value)) ||\n (typeof value !== 'object' && (\n !allowFunction || typeof value !== 'function'\n ))) {\n throw new ERR_INVALID_ARG_TYPE(name, 'Object', value);\n }\n};\n\nmodule.exports = {\n validateBoolean,\n validateObject,\n codes: {\n ERR_OPERATION_FAILED\n }\n};\n"],"names":["Buffer","Array","TypeError","Object","t","classRegExp"],"mappings":"yEAEA,IAAM,EAAS,EAAQ,SAEvB,GAAO,OAAO,CAAG,AAA6B,YAA7B,OAAO,EAAO,UAAU,CACrC,EAAO,UAAU,CACjB,EAAQ,kC,oDCJZ,IA8BI,EACA,EAGA,EAlCE,EAAS,EAAQ,UAEjB,CACJ,iBAAe,CACf,gBAAc,CACd,MAAO,CACL,sBAAoB,CACrB,CACF,CAAG,EAAQ,qCAEN,CAAE,gBAAc,CAAE,CAAG,EAQ3B,SAAS,EAAc,CAAI,EAEzB,OAAO,EADKA,OAAO,KAAK,CAAC,GAE3B,CAWA,IAAI,EAAY,EAchB,SAAS,EAAe,CAAG,CAAE,EAAS,CAAC,EACrC,IAAM,EAAY,AAZpB,WACE,GAAI,AAAkB,SAAlB,EAA6B,CAC/B,EAAgB,AAAIC,MAAM,KAC1B,IAAK,IAAI,EAAI,EAAG,EAAI,EAAc,MAAM,CAAE,IAAK,CAC7C,IAAM,EAAM,EAAE,QAAQ,CAAC,GACvB,EAAa,CAAC,EAAE,CAAG,EAAI,QAAQ,CAAC,EAAG,IACrC,CACF,CACA,OAAO,CACT,IAKE,OAAO,CAAS,CAAC,CAAG,CAAC,EAAO,CAAC,CAC3B,CAAS,CAAC,CAAG,CAAC,EAAS,EAAE,CAAC,CAC1B,CAAS,CAAC,CAAG,CAAC,EAAS,EAAE,CAAC,CAC1B,CAAS,CAAC,CAAG,CAAC,EAAS,EAAE,CAAC,CAC1B,IACA,CAAS,CAAC,CAAG,CAAC,EAAS,EAAE,CAAC,CAC1B,CAAS,CAAC,CAAG,CA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AM,UAAW,EACpD,EAkBE,eAhBF,SAAwB,CAAK,CAAE,CAAI,CAAE,CACnC,WAAW,EAAK,CAChB,aAAa,EAAK,CAClB,gBAAgB,EAAK,CACtB,CAAG,CAAC,CAAC,EACJ,GAAI,AAAC,CAAC,GAAY,AAAU,OAAV,GACf,CAAC,GAAcF,MAAM,OAAO,CAAC,IAC7B,AAAiB,UAAjB,OAAO,GACN,EAAC,GAAiB,AAAiB,YAAjB,OAAO,CAAmB,EAE9C,MAAM,IAAI,EAAqB,EAAM,SAAU,EAEnD,EAKE,MAAO,CACL,sBACF,CACF,C"} \ No newline at end of file diff --git a/packages/node_modules/escape-string-regexp/index.js.map b/packages/node_modules/escape-string-regexp/index.js.map new file mode 100644 index 00000000000..f87c78e1d55 --- /dev/null +++ b/packages/node_modules/escape-string-regexp/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"escape-string-regexp/index.js","sources":["webpack:///webpack/runtime/define_property_getters","webpack:///webpack/runtime/has_own_property","webpack:///webpack/runtime/make_namespace_object","webpack:///./escape-string-regexp/index.js"],"sourcesContent":["__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n }\n }\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","export default function escapeStringRegexp(string) {\n\tif (typeof string !== 'string') {\n\t\tthrow new TypeError('Expected a string');\n\t}\n\n\t// Escape characters with special meaning either inside or outside character sets.\n\t// Use a simple backslash escape when it’s always valid, and a `\\xnn` escape when the simpler form would be disallowed by Unicode patterns’ stricter grammar.\n\treturn string\n\t\t.replace(/[|\\\\{}()[\\]^$+*?.]/g, '\\\\$&')\n\t\t.replace(/-/g, '\\\\x2d');\n}\n"],"names":["Object","e","Symbol","TypeError"],"mappings":"2BAAA,GAAoB,CAAC,CAAG,CAAC,EAAS,KACjC,IAAI,IAAI,KAAO,EACL,EAAoB,CAAC,CAAC,EAAY,IAAQ,CAAC,EAAoB,CAAC,CAAC,EAAS,IACzEA,OAAO,cAAc,CAAC,EAAS,EAAK,CAAE,WAAY,GAAM,IAAK,CAAU,CAAC,EAAI,AAAC,EAGzF,ECNA,EAAoB,CAAC,CAAG,CAAC,EAAK,IAAUA,OAAO,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,EAAK,GCClF,EAAoB,CAAC,CAAG,AAACC,IACrB,AAAkB,aAAlB,OAAOC,QAA0BA,OAAO,WAAW,EACrDF,OAAO,cAAc,CAACC,EAASC,OAAO,WAAW,CAAE,CAAE,MAAO,QAAS,GAEtEF,OAAO,cAAc,CAACC,EAAS,aAAc,CAAE,MAAO,EAAK,EAC5D,E,SCNe,SAAS,EAAmB,CAAM,EAChD,GAAI,AAAkB,UAAlB,OAAO,EACV,MAAM,AAAIE,UAAU,qBAKrB,OAAO,EACL,OAAO,CAAC,sBAAuB,QAC/B,OAAO,CAAC,KAAM,QACjB,C"} \ No newline at end of file diff --git a/packages/node_modules/ignore/index.js.map b/packages/node_modules/ignore/index.js.map new file mode 100644 index 00000000000..7dea0140b74 --- /dev/null +++ b/packages/node_modules/ignore/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"ignore/index.js","sources":["webpack:///./ignore/index.js"],"sourcesContent":["// A simple implementation of make-array\nfunction makeArray (subject) {\n return Array.isArray(subject)\n ? subject\n : [subject]\n}\n\nconst UNDEFINED = undefined\nconst EMPTY = ''\nconst SPACE = ' '\nconst ESCAPE = '\\\\'\nconst REGEX_TEST_BLANK_LINE = /^\\s+$/\nconst REGEX_INVALID_TRAILING_BACKSLASH = /(?:[^\\\\]|^)\\\\$/\nconst REGEX_REPLACE_LEADING_EXCAPED_EXCLAMATION = /^\\\\!/\nconst REGEX_REPLACE_LEADING_EXCAPED_HASH = /^\\\\#/\nconst REGEX_SPLITALL_CRLF = /\\r?\\n/g\n\n// Invalid:\n// - /foo,\n// - ./foo,\n// - ../foo,\n// - .\n// - ..\n// Valid:\n// - .foo\nconst REGEX_TEST_INVALID_PATH = /^\\.{0,2}\\/|^\\.{1,2}$/\n\nconst REGEX_TEST_TRAILING_SLASH = /\\/$/\n\nconst SLASH = '/'\n\n// Do not use ternary expression here, since \"istanbul ignore next\" is buggy\nlet TMP_KEY_IGNORE = 'node-ignore'\n/* istanbul ignore else */\nif (typeof Symbol !== 'undefined') {\n TMP_KEY_IGNORE = Symbol.for('node-ignore')\n}\nconst KEY_IGNORE = TMP_KEY_IGNORE\n\nconst define = (object, key, value) => {\n Object.defineProperty(object, key, {value})\n return value\n}\n\nconst REGEX_REGEXP_RANGE = /([0-z])-([0-z])/g\n\nconst RETURN_FALSE = () => false\n\n// Sanitize the range of a regular expression\n// The cases are complicated, see test cases for details\nconst sanitizeRange = range => range.replace(\n REGEX_REGEXP_RANGE,\n (match, from, to) => from.charCodeAt(0) <= to.charCodeAt(0)\n ? match\n // Invalid range (out of order) which is ok for gitignore rules but\n // fatal for JavaScript regular expression, so eliminate it.\n : EMPTY\n)\n\n// See fixtures #59\nconst cleanRangeBackSlash = slashes => {\n const {length} = slashes\n return slashes.slice(0, length - length % 2)\n}\n\n// > If the pattern ends with a slash,\n// > it is removed for the purpose of the following description,\n// > but it would only find a match with a directory.\n// > In other words, foo/ will match a directory foo and paths underneath it,\n// > but will not match a regular file or a symbolic link foo\n// > (this is consistent with the way how pathspec works in general in Git).\n// '`foo/`' will not match regular file '`foo`' or symbolic link '`foo`'\n// -> ignore-rules will not deal with it, because it costs extra `fs.stat` call\n// you could use option `mark: true` with `glob`\n\n// '`foo/`' should not continue with the '`..`'\nconst REPLACERS = [\n\n [\n // Remove BOM\n // TODO:\n // Other similar zero-width characters?\n /^\\uFEFF/,\n () => EMPTY\n ],\n\n // > Trailing spaces are ignored unless they are quoted with backslash (\"\\\")\n [\n // (a\\ ) -> (a )\n // (a ) -> (a)\n // (a ) -> (a)\n // (a \\ ) -> (a )\n /((?:\\\\\\\\)*?)(\\\\?\\s+)$/,\n (_, m1, m2) => m1 + (\n m2.indexOf('\\\\') === 0\n ? SPACE\n : EMPTY\n )\n ],\n\n // Replace (\\ ) with ' '\n // (\\ ) -> ' '\n // (\\\\ ) -> '\\\\ '\n // (\\\\\\ ) -> '\\\\ '\n [\n /(\\\\+?)\\s/g,\n (_, m1) => {\n const {length} = m1\n return m1.slice(0, length - length % 2) + SPACE\n }\n ],\n\n // Escape metacharacters\n // which is written down by users but means special for regular expressions.\n\n // > There are 12 characters with special meanings:\n // > - the backslash \\,\n // > - the caret ^,\n // > - the dollar sign $,\n // > - the period or dot .,\n // > - the vertical bar or pipe symbol |,\n // > - the question mark ?,\n // > - the asterisk or star *,\n // > - the plus sign +,\n // > - the opening parenthesis (,\n // > - the closing parenthesis ),\n // > - and the opening square bracket [,\n // > - the opening curly brace {,\n // > These special characters are often called \"metacharacters\".\n [\n /[\\\\$.|*+(){^]/g,\n match => `\\\\${match}`\n ],\n\n [\n // > a question mark (?) matches a single character\n /(?!\\\\)\\?/g,\n () => '[^/]'\n ],\n\n // leading slash\n [\n\n // > A leading slash matches the beginning of the pathname.\n // > For example, \"/*.c\" matches \"cat-file.c\" but not \"mozilla-sha1/sha1.c\".\n // A leading slash matches the beginning of the pathname\n /^\\//,\n () => '^'\n ],\n\n // replace special metacharacter slash after the leading slash\n [\n /\\//g,\n () => '\\\\/'\n ],\n\n [\n // > A leading \"**\" followed by a slash means match in all directories.\n // > For example, \"**/foo\" matches file or directory \"foo\" anywhere,\n // > the same as pattern \"foo\".\n // > \"**/foo/bar\" matches file or directory \"bar\" anywhere that is directly\n // > under directory \"foo\".\n // Notice that the '*'s have been replaced as '\\\\*'\n /^\\^*\\\\\\*\\\\\\*\\\\\\//,\n\n // '**/foo' <-> 'foo'\n () => '^(?:.*\\\\/)?'\n ],\n\n // starting\n [\n // there will be no leading '/'\n // (which has been replaced by section \"leading slash\")\n // If starts with '**', adding a '^' to the regular expression also works\n /^(?=[^^])/,\n function startingReplacer () {\n // If has a slash `/` at the beginning or middle\n return !/\\/(?!$)/.test(this)\n // > Prior to 2.22.1\n // > If the pattern does not contain a slash /,\n // > Git treats it as a shell glob pattern\n // Actually, if there is only a trailing slash,\n // git also treats it as a shell glob pattern\n\n // After 2.22.1 (compatible but clearer)\n // > If there is a separator at the beginning or middle (or both)\n // > of the pattern, then the pattern is relative to the directory\n // > level of the particular .gitignore file itself.\n // > Otherwise the pattern may also match at any level below\n // > the .gitignore level.\n ? '(?:^|\\\\/)'\n\n // > Otherwise, Git treats the pattern as a shell glob suitable for\n // > consumption by fnmatch(3)\n : '^'\n }\n ],\n\n // two globstars\n [\n // Use lookahead assertions so that we could match more than one `'/**'`\n /\\\\\\/\\\\\\*\\\\\\*(?=\\\\\\/|$)/g,\n\n // Zero, one or several directories\n // should not use '*', or it will be replaced by the next replacer\n\n // Check if it is not the last `'/**'`\n (_, index, str) => index + 6 < str.length\n\n // case: /**/\n // > A slash followed by two consecutive asterisks then a slash matches\n // > zero or more directories.\n // > For example, \"a/**/b\" matches \"a/b\", \"a/x/b\", \"a/x/y/b\" and so on.\n // '/**/'\n ? '(?:\\\\/[^\\\\/]+)*'\n\n // case: /**\n // > A trailing `\"/**\"` matches everything inside.\n\n // #21: everything inside but it should not include the current folder\n : '\\\\/.+'\n ],\n\n // normal intermediate wildcards\n [\n // Never replace escaped '*'\n // ignore rule '\\*' will match the path '*'\n\n // 'abc.*/' -> go\n // 'abc.*' -> skip this rule,\n // coz trailing single wildcard will be handed by [trailing wildcard]\n /(^|[^\\\\]+)(\\\\\\*)+(?=.+)/g,\n\n // '*.js' matches '.js'\n // '*.js' doesn't match 'abc'\n (_, p1, p2) => {\n // 1.\n // > An asterisk \"*\" matches anything except a slash.\n // 2.\n // > Other consecutive asterisks are considered regular asterisks\n // > and will match according to the previous rules.\n const unescaped = p2.replace(/\\\\\\*/g, '[^\\\\/]*')\n return p1 + unescaped\n }\n ],\n\n [\n // unescape, revert step 3 except for back slash\n // For example, if a user escape a '\\\\*',\n // after step 3, the result will be '\\\\\\\\\\\\*'\n /\\\\\\\\\\\\(?=[$.|*+(){^])/g,\n () => ESCAPE\n ],\n\n [\n // '\\\\\\\\' -> '\\\\'\n /\\\\\\\\/g,\n () => ESCAPE\n ],\n\n [\n // > The range notation, e.g. [a-zA-Z],\n // > can be used to match one of the characters in a range.\n\n // `\\` is escaped by step 3\n /(\\\\)?\\[([^\\]/]*?)(\\\\*)($|\\])/g,\n (match, leadEscape, range, endEscape, close) => leadEscape === ESCAPE\n // '\\\\[bar]' -> '\\\\\\\\[bar\\\\]'\n ? `\\\\[${range}${cleanRangeBackSlash(endEscape)}${close}`\n : close === ']'\n ? endEscape.length % 2 === 0\n // A normal case, and it is a range notation\n // '[bar]'\n // '[bar\\\\\\\\]'\n ? `[${sanitizeRange(range)}${endEscape}]`\n // Invalid range notaton\n // '[bar\\\\]' -> '[bar\\\\\\\\]'\n : '[]'\n : '[]'\n ],\n\n // ending\n [\n // 'js' will not match 'js.'\n // 'ab' will not match 'abc'\n /(?:[^*])$/,\n\n // WTF!\n // https://git-scm.com/docs/gitignore\n // changes in [2.22.1](https://git-scm.com/docs/gitignore/2.22.1)\n // which re-fixes #24, #38\n\n // > If there is a separator at the end of the pattern then the pattern\n // > will only match directories, otherwise the pattern can match both\n // > files and directories.\n\n // 'js*' will not match 'a.js'\n // 'js/' will not match 'a.js'\n // 'js' will match 'a.js' and 'a.js/'\n match => /\\/$/.test(match)\n // foo/ will not match 'foo'\n ? `${match}$`\n // foo matches 'foo' and 'foo/'\n : `${match}(?=$|\\\\/$)`\n ]\n]\n\nconst REGEX_REPLACE_TRAILING_WILDCARD = /(^|\\\\\\/)?\\\\\\*$/\nconst MODE_IGNORE = 'regex'\nconst MODE_CHECK_IGNORE = 'checkRegex'\nconst UNDERSCORE = '_'\n\nconst TRAILING_WILD_CARD_REPLACERS = {\n [MODE_IGNORE] (_, p1) {\n const prefix = p1\n // '\\^':\n // '/*' does not match EMPTY\n // '/*' does not match everything\n\n // '\\\\\\/':\n // 'abc/*' does not match 'abc/'\n ? `${p1}[^/]+`\n\n // 'a*' matches 'a'\n // 'a*' matches 'aa'\n : '[^/]*'\n\n return `${prefix}(?=$|\\\\/$)`\n },\n\n [MODE_CHECK_IGNORE] (_, p1) {\n // When doing `git check-ignore`\n const prefix = p1\n // '\\\\\\/':\n // 'abc/*' DOES match 'abc/' !\n ? `${p1}[^/]*`\n\n // 'a*' matches 'a'\n // 'a*' matches 'aa'\n : '[^/]*'\n\n return `${prefix}(?=$|\\\\/$)`\n }\n}\n\n// @param {pattern}\nconst makeRegexPrefix = pattern => REPLACERS.reduce(\n (prev, [matcher, replacer]) =>\n prev.replace(matcher, replacer.bind(pattern)),\n pattern\n)\n\nconst isString = subject => typeof subject === 'string'\n\n// > A blank line matches no files, so it can serve as a separator for readability.\nconst checkPattern = pattern => pattern\n && isString(pattern)\n && !REGEX_TEST_BLANK_LINE.test(pattern)\n && !REGEX_INVALID_TRAILING_BACKSLASH.test(pattern)\n\n // > A line starting with # serves as a comment.\n && pattern.indexOf('#') !== 0\n\nconst splitPattern = pattern => pattern\n.split(REGEX_SPLITALL_CRLF)\n.filter(Boolean)\n\nclass IgnoreRule {\n constructor (\n pattern,\n mark,\n body,\n ignoreCase,\n negative,\n prefix\n ) {\n this.pattern = pattern\n this.mark = mark\n this.negative = negative\n\n define(this, 'body', body)\n define(this, 'ignoreCase', ignoreCase)\n define(this, 'regexPrefix', prefix)\n }\n\n get regex () {\n const key = UNDERSCORE + MODE_IGNORE\n\n if (this[key]) {\n return this[key]\n }\n\n return this._make(MODE_IGNORE, key)\n }\n\n get checkRegex () {\n const key = UNDERSCORE + MODE_CHECK_IGNORE\n\n if (this[key]) {\n return this[key]\n }\n\n return this._make(MODE_CHECK_IGNORE, key)\n }\n\n _make (mode, key) {\n const str = this.regexPrefix.replace(\n REGEX_REPLACE_TRAILING_WILDCARD,\n\n // It does not need to bind pattern\n TRAILING_WILD_CARD_REPLACERS[mode]\n )\n\n const regex = this.ignoreCase\n ? new RegExp(str, 'i')\n : new RegExp(str)\n\n return define(this, key, regex)\n }\n}\n\nconst createRule = ({\n pattern,\n mark\n}, ignoreCase) => {\n let negative = false\n let body = pattern\n\n // > An optional prefix \"!\" which negates the pattern;\n if (body.indexOf('!') === 0) {\n negative = true\n body = body.substr(1)\n }\n\n body = body\n // > Put a backslash (\"\\\") in front of the first \"!\" for patterns that\n // > begin with a literal \"!\", for example, `\"\\!important!.txt\"`.\n .replace(REGEX_REPLACE_LEADING_EXCAPED_EXCLAMATION, '!')\n // > Put a backslash (\"\\\") in front of the first hash for patterns that\n // > begin with a hash.\n .replace(REGEX_REPLACE_LEADING_EXCAPED_HASH, '#')\n\n const regexPrefix = makeRegexPrefix(body)\n\n return new IgnoreRule(\n pattern,\n mark,\n body,\n ignoreCase,\n negative,\n regexPrefix\n )\n}\n\nclass RuleManager {\n constructor (ignoreCase) {\n this._ignoreCase = ignoreCase\n this._rules = []\n }\n\n _add (pattern) {\n // #32\n if (pattern && pattern[KEY_IGNORE]) {\n this._rules = this._rules.concat(pattern._rules._rules)\n this._added = true\n return\n }\n\n if (isString(pattern)) {\n pattern = {\n pattern\n }\n }\n\n if (checkPattern(pattern.pattern)) {\n const rule = createRule(pattern, this._ignoreCase)\n this._added = true\n this._rules.push(rule)\n }\n }\n\n // @param {Array | string | Ignore} pattern\n add (pattern) {\n this._added = false\n\n makeArray(\n isString(pattern)\n ? splitPattern(pattern)\n : pattern\n ).forEach(this._add, this)\n\n return this._added\n }\n\n // Test one single path without recursively checking parent directories\n //\n // - checkUnignored `boolean` whether should check if the path is unignored,\n // setting `checkUnignored` to `false` could reduce additional\n // path matching.\n // - check `string` either `MODE_IGNORE` or `MODE_CHECK_IGNORE`\n\n // @returns {TestResult} true if a file is ignored\n test (path, checkUnignored, mode) {\n let ignored = false\n let unignored = false\n let matchedRule\n\n this._rules.forEach(rule => {\n const {negative} = rule\n\n // | ignored : unignored\n // -------- | ---------------------------------------\n // negative | 0:0 | 0:1 | 1:0 | 1:1\n // -------- | ------- | ------- | ------- | --------\n // 0 | TEST | TEST | SKIP | X\n // 1 | TESTIF | SKIP | TEST | X\n\n // - SKIP: always skip\n // - TEST: always test\n // - TESTIF: only test if checkUnignored\n // - X: that never happen\n if (\n unignored === negative && ignored !== unignored\n || negative && !ignored && !unignored && !checkUnignored\n ) {\n return\n }\n\n const matched = rule[mode].test(path)\n\n if (!matched) {\n return\n }\n\n ignored = !negative\n unignored = negative\n\n matchedRule = negative\n ? UNDEFINED\n : rule\n })\n\n const ret = {\n ignored,\n unignored\n }\n\n if (matchedRule) {\n ret.rule = matchedRule\n }\n\n return ret\n }\n}\n\nconst throwError = (message, Ctor) => {\n throw new Ctor(message)\n}\n\nconst checkPath = (path, originalPath, doThrow) => {\n if (!isString(path)) {\n return doThrow(\n `path must be a string, but got \\`${originalPath}\\``,\n TypeError\n )\n }\n\n // We don't know if we should ignore EMPTY, so throw\n if (!path) {\n return doThrow(`path must not be empty`, TypeError)\n }\n\n // Check if it is a relative path\n if (checkPath.isNotRelative(path)) {\n const r = '`path.relative()`d'\n return doThrow(\n `path should be a ${r} string, but got \"${originalPath}\"`,\n RangeError\n )\n }\n\n return true\n}\n\nconst isNotRelative = path => REGEX_TEST_INVALID_PATH.test(path)\n\ncheckPath.isNotRelative = isNotRelative\n\n// On windows, the following function will be replaced\n/* istanbul ignore next */\ncheckPath.convert = p => p\n\n\nclass Ignore {\n constructor ({\n ignorecase = true,\n ignoreCase = ignorecase,\n allowRelativePaths = false\n } = {}) {\n define(this, KEY_IGNORE, true)\n\n this._rules = new RuleManager(ignoreCase)\n this._strictPathCheck = !allowRelativePaths\n this._initCache()\n }\n\n _initCache () {\n // A cache for the result of `.ignores()`\n this._ignoreCache = Object.create(null)\n\n // A cache for the result of `.test()`\n this._testCache = Object.create(null)\n }\n\n add (pattern) {\n if (this._rules.add(pattern)) {\n // Some rules have just added to the ignore,\n // making the behavior changed,\n // so we need to re-initialize the result cache\n this._initCache()\n }\n\n return this\n }\n\n // legacy\n addPattern (pattern) {\n return this.add(pattern)\n }\n\n // @returns {TestResult}\n _test (originalPath, cache, checkUnignored, slices) {\n const path = originalPath\n // Supports nullable path\n && checkPath.convert(originalPath)\n\n checkPath(\n path,\n originalPath,\n this._strictPathCheck\n ? throwError\n : RETURN_FALSE\n )\n\n return this._t(path, cache, checkUnignored, slices)\n }\n\n checkIgnore (path) {\n // If the path doest not end with a slash, `.ignores()` is much equivalent\n // to `git check-ignore`\n if (!REGEX_TEST_TRAILING_SLASH.test(path)) {\n return this.test(path)\n }\n\n const slices = path.split(SLASH).filter(Boolean)\n slices.pop()\n\n if (slices.length) {\n const parent = this._t(\n slices.join(SLASH) + SLASH,\n this._testCache,\n true,\n slices\n )\n\n if (parent.ignored) {\n return parent\n }\n }\n\n return this._rules.test(path, false, MODE_CHECK_IGNORE)\n }\n\n _t (\n // The path to be tested\n path,\n\n // The cache for the result of a certain checking\n cache,\n\n // Whether should check if the path is unignored\n checkUnignored,\n\n // The path slices\n slices\n ) {\n if (path in cache) {\n return cache[path]\n }\n\n if (!slices) {\n // path/to/a.js\n // ['path', 'to', 'a.js']\n slices = path.split(SLASH).filter(Boolean)\n }\n\n slices.pop()\n\n // If the path has no parent directory, just test it\n if (!slices.length) {\n return cache[path] = this._rules.test(path, checkUnignored, MODE_IGNORE)\n }\n\n const parent = this._t(\n slices.join(SLASH) + SLASH,\n cache,\n checkUnignored,\n slices\n )\n\n // If the path contains a parent directory, check the parent first\n return cache[path] = parent.ignored\n // > It is not possible to re-include a file if a parent directory of\n // > that file is excluded.\n ? parent\n : this._rules.test(path, checkUnignored, MODE_IGNORE)\n }\n\n ignores (path) {\n return this._test(path, this._ignoreCache, false).ignored\n }\n\n createFilter () {\n return path => !this.ignores(path)\n }\n\n filter (paths) {\n return makeArray(paths).filter(this.createFilter())\n }\n\n // @returns {TestResult}\n test (path) {\n return this._test(path, this._testCache, true)\n }\n}\n\nconst factory = options => new Ignore(options)\n\nconst isPathValid = path =>\n checkPath(path && checkPath.convert(path), path, RETURN_FALSE)\n\n/* istanbul ignore next */\nconst setupWindows = () => {\n /* eslint no-control-regex: \"off\" */\n const makePosix = str => /^\\\\\\\\\\?\\\\/.test(str)\n || /[\"<>|\\u0000-\\u001F]+/u.test(str)\n ? str\n : str.replace(/\\\\/g, '/')\n\n checkPath.convert = makePosix\n\n // 'C:\\\\foo' <- 'C:\\\\foo' has been converted to 'C:/'\n // 'd:\\\\foo'\n const REGEX_TEST_WINDOWS_PATH_ABSOLUTE = /^[a-z]:\\//i\n checkPath.isNotRelative = path =>\n REGEX_TEST_WINDOWS_PATH_ABSOLUTE.test(path)\n || isNotRelative(path)\n}\n\n\n// Windows\n// --------------------------------------------------------------\n/* istanbul ignore next */\nif (\n // Detect `process` so that it can run in browsers.\n typeof process !== 'undefined'\n && process.platform === 'win32'\n) {\n setupWindows()\n}\n\n// COMMONJS_EXPORTS ////////////////////////////////////////////////////////////\n\nmodule.exports = factory\n\n// Although it is an anti-pattern,\n// it is still widely misused by a lot of libraries in github\n// Ref: https://github.com/search?q=ignore.default%28%29&type=code\nfactory.default = factory\n\nmodule.exports.isPathValid = isPathValid\n\n// For testing purposes\ndefine(module.exports, Symbol.for('setupWindows'), setupWindows)\n"],"names":["Array","Symbol","d","Object","r","RegExp","Boolean","TypeError","RangeError","s","process"],"mappings":"6CACA,SAAS,EAAW,CAAO,EACzB,OAAOA,MAAM,OAAO,CAAC,GACjB,EACA,CAAC,EAAQ,AACf,CAEA,IAAM,EAIA,EAAwB,QACxB,EAAmC,iBACnC,EAA4C,OAC5C,EAAqC,OACrC,EAAsB,SAUtB,EAA0B,uBAE1B,EAA4B,MAK9B,EAAiB,aAEjB,AAAkB,cAAlB,OAAOC,QACT,GAAiBA,OAAO,GA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BAAiB,E"} \ No newline at end of file diff --git a/packages/node_modules/istanbul-lib-coverage/index.js.map b/packages/node_modules/istanbul-lib-coverage/index.js.map new file mode 100644 index 00000000000..74fbcb24e38 --- /dev/null +++ b/packages/node_modules/istanbul-lib-coverage/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"istanbul-lib-coverage/index.js","sources":["webpack:///./istanbul-lib-coverage/index.js","webpack:///./istanbul-lib-coverage/lib/coverage-map.js","webpack:///./istanbul-lib-coverage/lib/coverage-summary.js","webpack:///./istanbul-lib-coverage/lib/data-properties.js","webpack:///./istanbul-lib-coverage/lib/file-coverage.js","webpack:///./istanbul-lib-coverage/lib/percent.js"],"sourcesContent":["/*\n Copyright 2012-2015, Yahoo Inc.\n Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms.\n */\n'use strict';\n\n/**\n * istanbul-lib-coverage exports an API that allows you to create and manipulate\n * file coverage, coverage maps (a set of file coverage objects) and summary\n * coverage objects. File coverage for the same file can be merged as can\n * entire coverage maps.\n *\n * @module Exports\n */\nconst { FileCoverage } = require('./lib/file-coverage');\nconst { CoverageMap } = require('./lib/coverage-map');\nconst { CoverageSummary } = require('./lib/coverage-summary');\n\nmodule.exports = {\n /**\n * creates a coverage summary object\n * @param {Object} obj an argument with the same semantics\n * as the one passed to the `CoverageSummary` constructor\n * @returns {CoverageSummary}\n */\n createCoverageSummary(obj) {\n if (obj && obj instanceof CoverageSummary) {\n return obj;\n }\n return new CoverageSummary(obj);\n },\n /**\n * creates a CoverageMap object\n * @param {Object} obj optional - an argument with the same semantics\n * as the one passed to the CoverageMap constructor.\n * @returns {CoverageMap}\n */\n createCoverageMap(obj) {\n if (obj && obj instanceof CoverageMap) {\n return obj;\n }\n return new CoverageMap(obj);\n },\n /**\n * creates a FileCoverage object\n * @param {Object} obj optional - an argument with the same semantics\n * as the one passed to the FileCoverage constructor.\n * @returns {FileCoverage}\n */\n createFileCoverage(obj) {\n if (obj && obj instanceof FileCoverage) {\n return obj;\n }\n return new FileCoverage(obj);\n }\n};\n\n/** classes exported for reuse */\nmodule.exports.classes = {\n /**\n * the file coverage constructor\n */\n FileCoverage\n};\n","/*\n Copyright 2012-2015, Yahoo Inc.\n Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms.\n */\n'use strict';\n\nconst { FileCoverage } = require('./file-coverage');\nconst { CoverageSummary } = require('./coverage-summary');\n\nfunction maybeConstruct(obj, klass) {\n if (obj instanceof klass) {\n return obj;\n }\n\n return new klass(obj);\n}\n\nfunction loadMap(source) {\n const data = Object.create(null);\n if (!source) {\n return data;\n }\n\n Object.entries(source).forEach(([k, cov]) => {\n data[k] = maybeConstruct(cov, FileCoverage);\n });\n\n return data;\n}\n\n/** CoverageMap is a map of `FileCoverage` objects keyed by file paths. */\nclass CoverageMap {\n /**\n * @constructor\n * @param {Object} [obj=undefined] obj A coverage map from which to initialize this\n * map's contents. This can be the raw global coverage object.\n */\n constructor(obj) {\n if (obj instanceof CoverageMap) {\n this.data = obj.data;\n } else {\n this.data = loadMap(obj);\n }\n }\n\n /**\n * merges a second coverage map into this one\n * @param {CoverageMap} obj - a CoverageMap or its raw data. Coverage is merged\n * correctly for the same files and additional file coverage keys are created\n * as needed.\n */\n merge(obj) {\n const other = maybeConstruct(obj, CoverageMap);\n Object.values(other.data).forEach(fc => {\n this.addFileCoverage(fc);\n });\n }\n\n /**\n * filter the coveragemap based on the callback provided\n * @param {Function (filename)} callback - Returns true if the path\n * should be included in the coveragemap. False if it should be\n * removed.\n */\n filter(callback) {\n Object.keys(this.data).forEach(k => {\n if (!callback(k)) {\n delete this.data[k];\n }\n });\n }\n\n /**\n * returns a JSON-serializable POJO for this coverage map\n * @returns {Object}\n */\n toJSON() {\n return this.data;\n }\n\n /**\n * returns an array for file paths for which this map has coverage\n * @returns {Array{string}} - array of files\n */\n files() {\n return Object.keys(this.data);\n }\n\n /**\n * returns the file coverage for the specified file.\n * @param {String} file\n * @returns {FileCoverage}\n */\n fileCoverageFor(file) {\n const fc = this.data[file];\n if (!fc) {\n throw new Error(`No file coverage available for: ${file}`);\n }\n return fc;\n }\n\n /**\n * adds a file coverage object to this map. If the path for the object,\n * already exists in the map, it is merged with the existing coverage\n * otherwise a new key is added to the map.\n * @param {FileCoverage} fc the file coverage to add\n */\n addFileCoverage(fc) {\n const cov = new FileCoverage(fc);\n const { path } = cov;\n if (this.data[path]) {\n this.data[path].merge(cov);\n } else {\n this.data[path] = cov;\n }\n }\n\n /**\n * returns the coverage summary for all the file coverage objects in this map.\n * @returns {CoverageSummary}\n */\n getCoverageSummary() {\n const ret = new CoverageSummary();\n Object.values(this.data).forEach(fc => {\n ret.merge(fc.toSummary());\n });\n\n return ret;\n }\n}\n\nmodule.exports = {\n CoverageMap\n};\n","/*\n Copyright 2012-2015, Yahoo Inc.\n Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms.\n */\n'use strict';\n\nconst percent = require('./percent');\nconst dataProperties = require('./data-properties');\n\nfunction blankSummary() {\n const empty = () => ({\n total: 0,\n covered: 0,\n skipped: 0,\n pct: 'Unknown'\n });\n\n return {\n lines: empty(),\n statements: empty(),\n functions: empty(),\n branches: empty(),\n branchesTrue: empty()\n };\n}\n\n// asserts that a data object \"looks like\" a summary coverage object\nfunction assertValidSummary(obj) {\n const valid =\n obj && obj.lines && obj.statements && obj.functions && obj.branches;\n if (!valid) {\n throw new Error(\n 'Invalid summary coverage object, missing keys, found:' +\n Object.keys(obj).join(',')\n );\n }\n}\n\n/**\n * CoverageSummary provides a summary of code coverage . It exposes 4 properties,\n * `lines`, `statements`, `branches`, and `functions`. Each of these properties\n * is an object that has 4 keys `total`, `covered`, `skipped` and `pct`.\n * `pct` is a percentage number (0-100).\n */\nclass CoverageSummary {\n /**\n * @constructor\n * @param {Object|CoverageSummary} [obj=undefined] an optional data object or\n * another coverage summary to initialize this object with.\n */\n constructor(obj) {\n if (!obj) {\n this.data = blankSummary();\n } else if (obj instanceof CoverageSummary) {\n this.data = obj.data;\n } else {\n this.data = obj;\n }\n assertValidSummary(this.data);\n }\n\n /**\n * merges a second summary coverage object into this one\n * @param {CoverageSummary} obj - another coverage summary object\n */\n merge(obj) {\n const keys = [\n 'lines',\n 'statements',\n 'branches',\n 'functions',\n 'branchesTrue'\n ];\n keys.forEach(key => {\n if (obj[key]) {\n this[key].total += obj[key].total;\n this[key].covered += obj[key].covered;\n this[key].skipped += obj[key].skipped;\n this[key].pct = percent(this[key].covered, this[key].total);\n }\n });\n\n return this;\n }\n\n /**\n * returns a POJO that is JSON serializable. May be used to get the raw\n * summary object.\n */\n toJSON() {\n return this.data;\n }\n\n /**\n * return true if summary has no lines of code\n */\n isEmpty() {\n return this.lines.total === 0;\n }\n}\n\ndataProperties(CoverageSummary, [\n 'lines',\n 'statements',\n 'functions',\n 'branches',\n 'branchesTrue'\n]);\n\nmodule.exports = {\n CoverageSummary\n};\n","'use strict';\n\nmodule.exports = function dataProperties(klass, properties) {\n properties.forEach(p => {\n Object.defineProperty(klass.prototype, p, {\n enumerable: true,\n get() {\n return this.data[p];\n }\n });\n });\n};\n","/*\n Copyright 2012-2015, Yahoo Inc.\n Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms.\n */\n'use strict';\n\nconst percent = require('./percent');\nconst dataProperties = require('./data-properties');\nconst { CoverageSummary } = require('./coverage-summary');\n\n// returns a data object that represents empty coverage\nfunction emptyCoverage(filePath, reportLogic) {\n const cov = {\n path: filePath,\n statementMap: {},\n fnMap: {},\n branchMap: {},\n s: {},\n f: {},\n b: {}\n };\n if (reportLogic) cov.bT = {};\n return cov;\n}\n\n// asserts that a data object \"looks like\" a coverage object\nfunction assertValidObject(obj) {\n const valid =\n obj &&\n obj.path &&\n obj.statementMap &&\n obj.fnMap &&\n obj.branchMap &&\n obj.s &&\n obj.f &&\n obj.b;\n if (!valid) {\n throw new Error(\n 'Invalid file coverage object, missing keys, found:' +\n Object.keys(obj).join(',')\n );\n }\n}\n\nconst keyFromLoc = ({ start, end }) =>\n `${start.line}|${start.column}|${end.line}|${end.column}`;\n\nconst isObj = o => !!o && typeof o === 'object';\nconst isLineCol = o =>\n isObj(o) && typeof o.line === 'number' && typeof o.column === 'number';\nconst isLoc = o => isObj(o) && isLineCol(o.start) && isLineCol(o.end);\nconst getLoc = o => (isLoc(o) ? o : isLoc(o.loc) ? o.loc : null);\n\n// When merging, we can have a case where two ranges cover\n// the same block of code with `hits=1`, and each carve out a\n// different range with `hits=0` to indicate it's uncovered.\n// Find the nearest container so that we can properly indicate\n// that both sections are hit.\n// Returns null if no containing item is found.\nconst findNearestContainer = (item, map) => {\n const itemLoc = getLoc(item);\n if (!itemLoc) return null;\n // the B item is not an identified range in the A set, BUT\n // it may be contained by an identified A range. If so, then\n // any hit of that containing A range counts as a hit of this\n // B range as well. We have to find the *narrowest* containing\n // range to be accurate, since ranges can be hit and un-hit\n // in a nested fashion.\n let nearestContainingItem = null;\n let containerDistance = null;\n let containerKey = null;\n for (const [i, mapItem] of Object.entries(map)) {\n const mapLoc = getLoc(mapItem);\n if (!mapLoc) continue;\n // contained if all of line distances are > 0\n // or line distance is 0 and col dist is >= 0\n const distance = [\n itemLoc.start.line - mapLoc.start.line,\n itemLoc.start.column - mapLoc.start.column,\n mapLoc.end.line - itemLoc.end.line,\n mapLoc.end.column - itemLoc.end.column\n ];\n if (\n distance[0] < 0 ||\n distance[2] < 0 ||\n (distance[0] === 0 && distance[1] < 0) ||\n (distance[2] === 0 && distance[3] < 0)\n ) {\n continue;\n }\n if (nearestContainingItem === null) {\n containerDistance = distance;\n nearestContainingItem = mapItem;\n containerKey = i;\n continue;\n }\n // closer line more relevant than closer column\n const closerBefore =\n distance[0] < containerDistance[0] ||\n (distance[0] === 0 && distance[1] < containerDistance[1]);\n const closerAfter =\n distance[2] < containerDistance[2] ||\n (distance[2] === 0 && distance[3] < containerDistance[3]);\n if (closerBefore || closerAfter) {\n // closer\n containerDistance = distance;\n nearestContainingItem = mapItem;\n containerKey = i;\n }\n }\n return containerKey;\n};\n\n// either add two numbers, or all matching entries in a number[]\nconst addHits = (aHits, bHits) => {\n if (typeof aHits === 'number' && typeof bHits === 'number') {\n return aHits + bHits;\n } else if (Array.isArray(aHits) && Array.isArray(bHits)) {\n return aHits.map((a, i) => (a || 0) + (bHits[i] || 0));\n }\n return null;\n};\n\nconst addNearestContainerHits = (item, itemHits, map, mapHits) => {\n const container = findNearestContainer(item, map);\n if (container) {\n return addHits(itemHits, mapHits[container]);\n } else {\n return itemHits;\n }\n};\n\nconst mergeProp = (aHits, aMap, bHits, bMap, itemKey = keyFromLoc) => {\n const aItems = {};\n for (const [key, itemHits] of Object.entries(aHits)) {\n const item = aMap[key];\n aItems[itemKey(item)] = [itemHits, item];\n }\n const bItems = {};\n for (const [key, itemHits] of Object.entries(bHits)) {\n const item = bMap[key];\n bItems[itemKey(item)] = [itemHits, item];\n }\n const mergedItems = {};\n for (const [key, aValue] of Object.entries(aItems)) {\n let aItemHits = aValue[0];\n const aItem = aValue[1];\n const bValue = bItems[key];\n if (!bValue) {\n // not an identified range in b, but might be contained by one\n aItemHits = addNearestContainerHits(aItem, aItemHits, bMap, bHits);\n } else {\n // is an identified range in b, so add the hits together\n aItemHits = addHits(aItemHits, bValue[0]);\n }\n mergedItems[key] = [aItemHits, aItem];\n }\n // now find the items in b that are not in a. already added matches.\n for (const [key, bValue] of Object.entries(bItems)) {\n let bItemHits = bValue[0];\n const bItem = bValue[1];\n if (mergedItems[key]) continue;\n // not an identified range in b, but might be contained by one\n bItemHits = addNearestContainerHits(bItem, bItemHits, aMap, aHits);\n mergedItems[key] = [bItemHits, bItem];\n }\n\n const hits = {};\n const map = {};\n\n Object.values(mergedItems).forEach(([itemHits, item], i) => {\n hits[i] = itemHits;\n map[i] = item;\n });\n\n return [hits, map];\n};\n\n/**\n * provides a read-only view of coverage for a single file.\n * The deep structure of this object is documented elsewhere. It has the following\n * properties:\n *\n * * `path` - the file path for which coverage is being tracked\n * * `statementMap` - map of statement locations keyed by statement index\n * * `fnMap` - map of function metadata keyed by function index\n * * `branchMap` - map of branch metadata keyed by branch index\n * * `s` - hit counts for statements\n * * `f` - hit count for functions\n * * `b` - hit count for branches\n */\nclass FileCoverage {\n /**\n * @constructor\n * @param {Object|FileCoverage|String} pathOrObj is a string that initializes\n * and empty coverage object with the specified file path or a data object that\n * has all the required properties for a file coverage object.\n */\n constructor(pathOrObj, reportLogic = false) {\n if (!pathOrObj) {\n throw new Error(\n 'Coverage must be initialized with a path or an object'\n );\n }\n if (typeof pathOrObj === 'string') {\n this.data = emptyCoverage(pathOrObj, reportLogic);\n } else if (pathOrObj instanceof FileCoverage) {\n this.data = pathOrObj.data;\n } else if (typeof pathOrObj === 'object') {\n this.data = pathOrObj;\n } else {\n throw new Error('Invalid argument to coverage constructor');\n }\n assertValidObject(this.data);\n }\n\n /**\n * returns computed line coverage from statement coverage.\n * This is a map of hits keyed by line number in the source.\n */\n getLineCoverage() {\n const statementMap = this.data.statementMap;\n const statements = this.data.s;\n const lineMap = Object.create(null);\n\n Object.entries(statements).forEach(([st, count]) => {\n /* istanbul ignore if: is this even possible? */\n if (!statementMap[st]) {\n return;\n }\n const { line } = statementMap[st].start;\n const prevVal = lineMap[line];\n if (prevVal === undefined || prevVal < count) {\n lineMap[line] = count;\n }\n });\n return lineMap;\n }\n\n /**\n * returns an array of uncovered line numbers.\n * @returns {Array} an array of line numbers for which no hits have been\n * collected.\n */\n getUncoveredLines() {\n const lc = this.getLineCoverage();\n const ret = [];\n Object.entries(lc).forEach(([l, hits]) => {\n if (hits === 0) {\n ret.push(l);\n }\n });\n return ret;\n }\n\n /**\n * returns a map of branch coverage by source line number.\n * @returns {Object} an object keyed by line number. Each object\n * has a `covered`, `total` and `coverage` (percentage) property.\n */\n getBranchCoverageByLine() {\n const branchMap = this.branchMap;\n const branches = this.b;\n const ret = {};\n Object.entries(branchMap).forEach(([k, map]) => {\n const line = map.line || map.loc.start.line;\n const branchData = branches[k];\n ret[line] = ret[line] || [];\n ret[line].push(...branchData);\n });\n Object.entries(ret).forEach(([k, dataArray]) => {\n const covered = dataArray.filter(item => item > 0);\n const coverage = (covered.length / dataArray.length) * 100;\n ret[k] = {\n covered: covered.length,\n total: dataArray.length,\n coverage\n };\n });\n return ret;\n }\n\n /**\n * return a JSON-serializable POJO for this file coverage object\n */\n toJSON() {\n return this.data;\n }\n\n /**\n * merges a second coverage object into this one, updating hit counts\n * @param {FileCoverage} other - the coverage object to be merged into this one.\n * Note that the other object should have the same structure as this one (same file).\n */\n merge(other) {\n if (other.all === true) {\n return;\n }\n\n if (this.all === true) {\n this.data = other.data;\n return;\n }\n\n let [hits, map] = mergeProp(\n this.s,\n this.statementMap,\n other.s,\n other.statementMap\n );\n this.data.s = hits;\n this.data.statementMap = map;\n\n const keyFromLocProp = x => keyFromLoc(x.loc);\n const keyFromLocationsProp = x => keyFromLoc(x.locations[0]);\n\n [hits, map] = mergeProp(\n this.f,\n this.fnMap,\n other.f,\n other.fnMap,\n keyFromLocProp\n );\n this.data.f = hits;\n this.data.fnMap = map;\n\n [hits, map] = mergeProp(\n this.b,\n this.branchMap,\n other.b,\n other.branchMap,\n keyFromLocationsProp\n );\n this.data.b = hits;\n this.data.branchMap = map;\n\n // Tracking additional information about branch truthiness\n // can be optionally enabled:\n if (this.bT && other.bT) {\n [hits, map] = mergeProp(\n this.bT,\n this.branchMap,\n other.bT,\n other.branchMap,\n keyFromLocationsProp\n );\n this.data.bT = hits;\n }\n }\n\n computeSimpleTotals(property) {\n let stats = this[property];\n\n if (typeof stats === 'function') {\n stats = stats.call(this);\n }\n\n const ret = {\n total: Object.keys(stats).length,\n covered: Object.values(stats).filter(v => !!v).length,\n skipped: 0\n };\n ret.pct = percent(ret.covered, ret.total);\n return ret;\n }\n\n computeBranchTotals(property) {\n const stats = this[property];\n const ret = { total: 0, covered: 0, skipped: 0 };\n\n Object.values(stats).forEach(branches => {\n ret.covered += branches.filter(hits => hits > 0).length;\n ret.total += branches.length;\n });\n ret.pct = percent(ret.covered, ret.total);\n return ret;\n }\n\n /**\n * resets hit counts for all statements, functions and branches\n * in this coverage object resulting in zero coverage.\n */\n resetHits() {\n const statements = this.s;\n const functions = this.f;\n const branches = this.b;\n const branchesTrue = this.bT;\n Object.keys(statements).forEach(s => {\n statements[s] = 0;\n });\n Object.keys(functions).forEach(f => {\n functions[f] = 0;\n });\n Object.keys(branches).forEach(b => {\n branches[b].fill(0);\n });\n // Tracking additional information about branch truthiness\n // can be optionally enabled:\n if (branchesTrue) {\n Object.keys(branchesTrue).forEach(bT => {\n branchesTrue[bT].fill(0);\n });\n }\n }\n\n /**\n * returns a CoverageSummary for this file coverage object\n * @returns {CoverageSummary}\n */\n toSummary() {\n const ret = {};\n ret.lines = this.computeSimpleTotals('getLineCoverage');\n ret.functions = this.computeSimpleTotals('f', 'fnMap');\n ret.statements = this.computeSimpleTotals('s', 'statementMap');\n ret.branches = this.computeBranchTotals('b');\n // Tracking additional information about branch truthiness\n // can be optionally enabled:\n if (this.bT) {\n ret.branchesTrue = this.computeBranchTotals('bT');\n }\n return new CoverageSummary(ret);\n }\n}\n\n// expose coverage data attributes\ndataProperties(FileCoverage, [\n 'path',\n 'statementMap',\n 'fnMap',\n 'branchMap',\n 's',\n 'f',\n 'b',\n 'bT',\n 'all'\n]);\n\nmodule.exports = {\n FileCoverage,\n // exported for testing\n findNearestContainer,\n addHits,\n addNearestContainerHits\n};\n","/*\n Copyright 2012-2015, Yahoo Inc.\n Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms.\n */\n'use strict';\n\nmodule.exports = function percent(covered, total) {\n let tmp;\n if (total > 0) {\n tmp = (1000 * 100 * covered) / total;\n return Math.floor(tmp / 10) / 100;\n } else {\n return 100.0;\n }\n};\n"],"names":["Object","Error","e","c","Array","t","Math"],"mappings":"6EAcA,GAAM,CAAE,cAAY,CAAE,CAAG,EAAQ,gDAC3B,CAAE,aAAW,CAAE,CAAG,EAAQ,+CAC1B,CAAE,iBAAe,CAAE,CAAG,EAAQ,kDAEpC,GAAO,OAAO,CAAG,CAOb,sBAAsB,GAClB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AC,EAUb,OATA,EAAI,KAAK,CAAG,IAAI,CAAC,mBAAmB,CAAC,mBACrC,EAAI,SAAS,CAAG,IAAI,CAAC,mBAAmB,CAAC,IAAK,SAC9C,EAAI,UAAU,CAAG,IAAI,CAAC,mBAAmB,CAAC,IAAK,gBAC/C,EAAI,QAAQ,CAAG,IAAI,CAAC,mBAAmB,CAAC,KAGpC,IAAI,CAAC,EAAE,EACP,GAAI,YAAY,CAAG,IAAI,CAAC,mBAAmB,CAAC,KAAI,EAE7C,IAAI,EAAgB,EAC/B,CACJ,CAGA,EAAe,EAAc,CACzB,OACA,eACA,QACA,YACA,IACA,IACA,IACA,KACA,MACH,EAED,EAAO,OAAO,CAAG,CACb,eAEA,uBACA,UACA,yBACJ,C,uDCrbA,EAAO,OAAO,CAAG,SAAiB,CAAO,CAAEK,CAAK,SAE5C,AAAIA,EAAQ,EAEDC,KAAK,KAAK,CAAC,AADX,IAAa,EAAWD,EACP,IAAM,IAEvB,GAEf,C"} \ No newline at end of file diff --git a/packages/node_modules/jest-docblock/index.js.map b/packages/node_modules/jest-docblock/index.js.map new file mode 100644 index 00000000000..119798a1ab3 --- /dev/null +++ b/packages/node_modules/jest-docblock/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"jest-docblock/index.js","sources":["webpack:///./detect-newline/index.js","webpack:///./jest-docblock/build/index.js"],"sourcesContent":["'use strict';\n\nconst detectNewline = string => {\n\tif (typeof string !== 'string') {\n\t\tthrow new TypeError('Expected a string');\n\t}\n\n\tconst newlines = string.match(/(?:\\r?\\n)/g) || [];\n\n\tif (newlines.length === 0) {\n\t\treturn;\n\t}\n\n\tconst crlf = newlines.filter(newline => newline === '\\r\\n').length;\n\tconst lf = newlines.length - crlf;\n\n\treturn crlf > lf ? '\\r\\n' : '\\n';\n};\n\nmodule.exports = detectNewline;\nmodule.exports.graceful = string => (typeof string === 'string' && detectNewline(string)) || '\\n';\n","'use strict';\n\nObject.defineProperty(exports, '__esModule', {\n value: true\n});\nexports.extract = extract;\nexports.parse = parse;\nexports.parseWithComments = parseWithComments;\nexports.print = print;\nexports.strip = strip;\nfunction _os() {\n const data = require('os');\n _os = function () {\n return data;\n };\n return data;\n}\nfunction _detectNewline() {\n const data = _interopRequireDefault(require('detect-newline'));\n _detectNewline = function () {\n return data;\n };\n return data;\n}\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {default: obj};\n}\n/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nconst commentEndRe = /\\*\\/$/;\nconst commentStartRe = /^\\/\\*\\*?/;\nconst docblockRe = /^\\s*(\\/\\*\\*?(.|\\r?\\n)*?\\*\\/)/;\nconst lineCommentRe = /(^|\\s+)\\/\\/([^\\r\\n]*)/g;\nconst ltrimNewlineRe = /^(\\r?\\n)+/;\nconst multilineRe =\n /(?:^|\\r?\\n) *(@[^\\r\\n]*?) *\\r?\\n *(?![^@\\r\\n]*\\/\\/[^]*)([^@\\r\\n\\s][^@\\r\\n]+?) *\\r?\\n/g;\nconst propertyRe = /(?:^|\\r?\\n) *@(\\S+) *([^\\r\\n]*)/g;\nconst stringStartRe = /(\\r?\\n|^) *\\* ?/g;\nconst STRING_ARRAY = [];\nfunction extract(contents) {\n const match = contents.match(docblockRe);\n return match ? match[0].trimLeft() : '';\n}\nfunction strip(contents) {\n const match = contents.match(docblockRe);\n return match && match[0] ? contents.substring(match[0].length) : contents;\n}\nfunction parse(docblock) {\n return parseWithComments(docblock).pragmas;\n}\nfunction parseWithComments(docblock) {\n const line = (0, _detectNewline().default)(docblock) ?? _os().EOL;\n docblock = docblock\n .replace(commentStartRe, '')\n .replace(commentEndRe, '')\n .replace(stringStartRe, '$1');\n\n // Normalize multi-line directives\n let prev = '';\n while (prev !== docblock) {\n prev = docblock;\n docblock = docblock.replace(multilineRe, `${line}$1 $2${line}`);\n }\n docblock = docblock.replace(ltrimNewlineRe, '').trimRight();\n const result = Object.create(null);\n const comments = docblock\n .replace(propertyRe, '')\n .replace(ltrimNewlineRe, '')\n .trimRight();\n let match;\n while ((match = propertyRe.exec(docblock))) {\n // strip linecomments from pragmas\n const nextPragma = match[2].replace(lineCommentRe, '');\n if (\n typeof result[match[1]] === 'string' ||\n Array.isArray(result[match[1]])\n ) {\n result[match[1]] = STRING_ARRAY.concat(result[match[1]], nextPragma);\n } else {\n result[match[1]] = nextPragma;\n }\n }\n return {\n comments,\n pragmas: result\n };\n}\nfunction print({comments = '', pragmas = {}}) {\n const line = (0, _detectNewline().default)(comments) ?? _os().EOL;\n const head = '/**';\n const start = ' *';\n const tail = ' */';\n const keys = Object.keys(pragmas);\n const printedObject = keys\n .flatMap(key => printKeyValues(key, pragmas[key]))\n .map(keyValue => `${start} ${keyValue}${line}`)\n .join('');\n if (!comments) {\n if (keys.length === 0) {\n return '';\n }\n if (keys.length === 1 && !Array.isArray(pragmas[keys[0]])) {\n const value = pragmas[keys[0]];\n return `${head} ${printKeyValues(keys[0], value)[0]}${tail}`;\n }\n }\n const printedComments =\n comments\n .split(line)\n .map(textLine => `${start} ${textLine}`)\n .join(line) + line;\n return (\n head +\n line +\n (comments ? printedComments : '') +\n (comments && keys.length ? start + line : '') +\n printedObject +\n tail\n );\n}\nfunction printKeyValues(key, valueOrArray) {\n return STRING_ARRAY.concat(valueOrArray).map(value =>\n `@${key} ${value}`.trim()\n );\n}\n"],"names":["TypeError","Object","Array"],"mappings":"kEAEA,IAAM,EAAgB,IACrB,GAAI,AAAkB,UAAlB,OAAO,EACV,MAAM,AAAIA,UAAU,qBAGrB,IAAM,EAAW,EAAO,KAAK,CAAC,eAAiB,EAAE,CAEjD,GAAI,AAAoB,IAApB,EAAS,MAAM,CAClB,OAGD,IAAM,EAAO,EAAS,MAAM,CAAC,GAAW,AAAY,SAAZ,GAAoB,MAAM,CAC5D,EAAK,EAAS,MAAM,CAAG,EAE7B,OAAO,EAAO,EAAK,OAAS,IAC7B,CAEA,GAAO,OAAO,CA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BC,MAAM,OAAO,CAAC,CAAM,CAAC,CAAK,CAAC,EAAE,CAAC,EAE9B,CAAM,CAAC,CAAK,CAAC,EAAE,CAAC,CAAG,EAAa,MAAM,CAAC,CAAM,CAAC,CAAK,CAAC,EAAE,CAAC,CAAE,GAEzD,CAAM,CAAC,CAAK,CAAC,EAAE,CAAC,CAAG,CAEvB,CACA,MAAO,CACL,WACA,QAAS,CACX,CACF,CAkCA,SAAS,EAAe,CAAG,CAAE,CAAY,EACvC,OAAO,EAAa,MAAM,CAAC,GAAc,GAAG,CAAC,GAC3C,CAAC,CAAC,EAAE,EAAI,CAAC,EAAE,EAAM,CAAC,CAAC,IAAI,GAE3B,C"} \ No newline at end of file diff --git a/packages/node_modules/jsonpath-plus/index.js.map b/packages/node_modules/jsonpath-plus/index.js.map new file mode 100644 index 00000000000..73327fb2ea8 --- /dev/null +++ b/packages/node_modules/jsonpath-plus/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"jsonpath-plus/index.js","sources":["webpack:///webpack/runtime/define_property_getters","webpack:///webpack/runtime/has_own_property","webpack:///webpack/runtime/make_namespace_object","webpack:///./jsonpath-plus/dist/index-node-esm.js"],"sourcesContent":["__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n }\n }\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","import vm from 'vm';\n\n/**\n * @implements {IHooks}\n */\nclass Hooks {\n /**\n * @callback HookCallback\n * @this {*|Jsep} this\n * @param {Jsep} env\n * @returns: void\n */\n /**\n * Adds the given callback to the list of callbacks for the given hook.\n *\n * The callback will be invoked when the hook it is registered for is run.\n *\n * One callback function can be registered to multiple hooks and the same hook multiple times.\n *\n * @param {string|object} name The name of the hook, or an object of callbacks keyed by name\n * @param {HookCallback|boolean} callback The callback function which is given environment variables.\n * @param {?boolean} [first=false] Will add the hook to the top of the list (defaults to the bottom)\n * @public\n */\n add(name, callback, first) {\n if (typeof arguments[0] != 'string') {\n // Multiple hook callbacks, keyed by name\n for (let name in arguments[0]) {\n this.add(name, arguments[0][name], arguments[1]);\n }\n } else {\n (Array.isArray(name) ? name : [name]).forEach(function (name) {\n this[name] = this[name] || [];\n if (callback) {\n this[name][first ? 'unshift' : 'push'](callback);\n }\n }, this);\n }\n }\n\n /**\n * Runs a hook invoking all registered callbacks with the given environment variables.\n *\n * Callbacks will be invoked synchronously and in the order in which they were registered.\n *\n * @param {string} name The name of the hook.\n * @param {Object} env The environment variables of the hook passed to all callbacks registered.\n * @public\n */\n run(name, env) {\n this[name] = this[name] || [];\n this[name].forEach(function (callback) {\n callback.call(env && env.context ? env.context : env, env);\n });\n }\n}\n\n/**\n * @implements {IPlugins}\n */\nclass Plugins {\n constructor(jsep) {\n this.jsep = jsep;\n this.registered = {};\n }\n\n /**\n * @callback PluginSetup\n * @this {Jsep} jsep\n * @returns: void\n */\n /**\n * Adds the given plugin(s) to the registry\n *\n * @param {object} plugins\n * @param {string} plugins.name The name of the plugin\n * @param {PluginSetup} plugins.init The init function\n * @public\n */\n register(...plugins) {\n plugins.forEach(plugin => {\n if (typeof plugin !== 'object' || !plugin.name || !plugin.init) {\n throw new Error('Invalid JSEP plugin format');\n }\n if (this.registered[plugin.name]) {\n // already registered. Ignore.\n return;\n }\n plugin.init(this.jsep);\n this.registered[plugin.name] = plugin;\n });\n }\n}\n\n// JavaScript Expression Parser (JSEP) 1.4.0\n\nclass Jsep {\n /**\n * @returns {string}\n */\n static get version() {\n // To be filled in by the template\n return '1.4.0';\n }\n\n /**\n * @returns {string}\n */\n static toString() {\n return 'JavaScript Expression Parser (JSEP) v' + Jsep.version;\n }\n // ==================== CONFIG ================================\n /**\n * @method addUnaryOp\n * @param {string} op_name The name of the unary op to add\n * @returns {Jsep}\n */\n static addUnaryOp(op_name) {\n Jsep.max_unop_len = Math.max(op_name.length, Jsep.max_unop_len);\n Jsep.unary_ops[op_name] = 1;\n return Jsep;\n }\n\n /**\n * @method jsep.addBinaryOp\n * @param {string} op_name The name of the binary op to add\n * @param {number} precedence The precedence of the binary op (can be a float). Higher number = higher precedence\n * @param {boolean} [isRightAssociative=false] whether operator is right-associative\n * @returns {Jsep}\n */\n static addBinaryOp(op_name, precedence, isRightAssociative) {\n Jsep.max_binop_len = Math.max(op_name.length, Jsep.max_binop_len);\n Jsep.binary_ops[op_name] = precedence;\n if (isRightAssociative) {\n Jsep.right_associative.add(op_name);\n } else {\n Jsep.right_associative.delete(op_name);\n }\n return Jsep;\n }\n\n /**\n * @method addIdentifierChar\n * @param {string} char The additional character to treat as a valid part of an identifier\n * @returns {Jsep}\n */\n static addIdentifierChar(char) {\n Jsep.additional_identifier_chars.add(char);\n return Jsep;\n }\n\n /**\n * @method addLiteral\n * @param {string} literal_name The name of the literal to add\n * @param {*} literal_value The value of the literal\n * @returns {Jsep}\n */\n static addLiteral(literal_name, literal_value) {\n Jsep.literals[literal_name] = literal_value;\n return Jsep;\n }\n\n /**\n * @method removeUnaryOp\n * @param {string} op_name The name of the unary op to remove\n * @returns {Jsep}\n */\n static removeUnaryOp(op_name) {\n delete Jsep.unary_ops[op_name];\n if (op_name.length === Jsep.max_unop_len) {\n Jsep.max_unop_len = Jsep.getMaxKeyLen(Jsep.unary_ops);\n }\n return Jsep;\n }\n\n /**\n * @method removeAllUnaryOps\n * @returns {Jsep}\n */\n static removeAllUnaryOps() {\n Jsep.unary_ops = {};\n Jsep.max_unop_len = 0;\n return Jsep;\n }\n\n /**\n * @method removeIdentifierChar\n * @param {string} char The additional character to stop treating as a valid part of an identifier\n * @returns {Jsep}\n */\n static removeIdentifierChar(char) {\n Jsep.additional_identifier_chars.delete(char);\n return Jsep;\n }\n\n /**\n * @method removeBinaryOp\n * @param {string} op_name The name of the binary op to remove\n * @returns {Jsep}\n */\n static removeBinaryOp(op_name) {\n delete Jsep.binary_ops[op_name];\n if (op_name.length === Jsep.max_binop_len) {\n Jsep.max_binop_len = Jsep.getMaxKeyLen(Jsep.binary_ops);\n }\n Jsep.right_associative.delete(op_name);\n return Jsep;\n }\n\n /**\n * @method removeAllBinaryOps\n * @returns {Jsep}\n */\n static removeAllBinaryOps() {\n Jsep.binary_ops = {};\n Jsep.max_binop_len = 0;\n return Jsep;\n }\n\n /**\n * @method removeLiteral\n * @param {string} literal_name The name of the literal to remove\n * @returns {Jsep}\n */\n static removeLiteral(literal_name) {\n delete Jsep.literals[literal_name];\n return Jsep;\n }\n\n /**\n * @method removeAllLiterals\n * @returns {Jsep}\n */\n static removeAllLiterals() {\n Jsep.literals = {};\n return Jsep;\n }\n // ==================== END CONFIG ============================\n\n /**\n * @returns {string}\n */\n get char() {\n return this.expr.charAt(this.index);\n }\n\n /**\n * @returns {number}\n */\n get code() {\n return this.expr.charCodeAt(this.index);\n }\n /**\n * @param {string} expr a string with the passed in express\n * @returns Jsep\n */\n constructor(expr) {\n // `index` stores the character number we are currently at\n // All of the gobbles below will modify `index` as we move along\n this.expr = expr;\n this.index = 0;\n }\n\n /**\n * static top-level parser\n * @returns {jsep.Expression}\n */\n static parse(expr) {\n return new Jsep(expr).parse();\n }\n\n /**\n * Get the longest key length of any object\n * @param {object} obj\n * @returns {number}\n */\n static getMaxKeyLen(obj) {\n return Math.max(0, ...Object.keys(obj).map(k => k.length));\n }\n\n /**\n * `ch` is a character code in the next three functions\n * @param {number} ch\n * @returns {boolean}\n */\n static isDecimalDigit(ch) {\n return ch >= 48 && ch <= 57; // 0...9\n }\n\n /**\n * Returns the precedence of a binary operator or `0` if it isn't a binary operator. Can be float.\n * @param {string} op_val\n * @returns {number}\n */\n static binaryPrecedence(op_val) {\n return Jsep.binary_ops[op_val] || 0;\n }\n\n /**\n * Looks for start of identifier\n * @param {number} ch\n * @returns {boolean}\n */\n static isIdentifierStart(ch) {\n return ch >= 65 && ch <= 90 ||\n // A...Z\n ch >= 97 && ch <= 122 ||\n // a...z\n ch >= 128 && !Jsep.binary_ops[String.fromCharCode(ch)] ||\n // any non-ASCII that is not an operator\n Jsep.additional_identifier_chars.has(String.fromCharCode(ch)); // additional characters\n }\n\n /**\n * @param {number} ch\n * @returns {boolean}\n */\n static isIdentifierPart(ch) {\n return Jsep.isIdentifierStart(ch) || Jsep.isDecimalDigit(ch);\n }\n\n /**\n * throw error at index of the expression\n * @param {string} message\n * @throws\n */\n throwError(message) {\n const error = new Error(message + ' at character ' + this.index);\n error.index = this.index;\n error.description = message;\n throw error;\n }\n\n /**\n * Run a given hook\n * @param {string} name\n * @param {jsep.Expression|false} [node]\n * @returns {?jsep.Expression}\n */\n runHook(name, node) {\n if (Jsep.hooks[name]) {\n const env = {\n context: this,\n node\n };\n Jsep.hooks.run(name, env);\n return env.node;\n }\n return node;\n }\n\n /**\n * Runs a given hook until one returns a node\n * @param {string} name\n * @returns {?jsep.Expression}\n */\n searchHook(name) {\n if (Jsep.hooks[name]) {\n const env = {\n context: this\n };\n Jsep.hooks[name].find(function (callback) {\n callback.call(env.context, env);\n return env.node;\n });\n return env.node;\n }\n }\n\n /**\n * Push `index` up to the next non-space character\n */\n gobbleSpaces() {\n let ch = this.code;\n // Whitespace\n while (ch === Jsep.SPACE_CODE || ch === Jsep.TAB_CODE || ch === Jsep.LF_CODE || ch === Jsep.CR_CODE) {\n ch = this.expr.charCodeAt(++this.index);\n }\n this.runHook('gobble-spaces');\n }\n\n /**\n * Top-level method to parse all expressions and returns compound or single node\n * @returns {jsep.Expression}\n */\n parse() {\n this.runHook('before-all');\n const nodes = this.gobbleExpressions();\n\n // If there's only one expression just try returning the expression\n const node = nodes.length === 1 ? nodes[0] : {\n type: Jsep.COMPOUND,\n body: nodes\n };\n return this.runHook('after-all', node);\n }\n\n /**\n * top-level parser (but can be reused within as well)\n * @param {number} [untilICode]\n * @returns {jsep.Expression[]}\n */\n gobbleExpressions(untilICode) {\n let nodes = [],\n ch_i,\n node;\n while (this.index < this.expr.length) {\n ch_i = this.code;\n\n // Expressions can be separated by semicolons, commas, or just inferred without any\n // separators\n if (ch_i === Jsep.SEMCOL_CODE || ch_i === Jsep.COMMA_CODE) {\n this.index++; // ignore separators\n } else {\n // Try to gobble each expression individually\n if (node = this.gobbleExpression()) {\n nodes.push(node);\n // If we weren't able to find a binary expression and are out of room, then\n // the expression passed in probably has too much\n } else if (this.index < this.expr.length) {\n if (ch_i === untilICode) {\n break;\n }\n this.throwError('Unexpected \"' + this.char + '\"');\n }\n }\n }\n return nodes;\n }\n\n /**\n * The main parsing function.\n * @returns {?jsep.Expression}\n */\n gobbleExpression() {\n const node = this.searchHook('gobble-expression') || this.gobbleBinaryExpression();\n this.gobbleSpaces();\n return this.runHook('after-expression', node);\n }\n\n /**\n * Search for the operation portion of the string (e.g. `+`, `===`)\n * Start by taking the longest possible binary operations (3 characters: `===`, `!==`, `>>>`)\n * and move down from 3 to 2 to 1 character until a matching binary operation is found\n * then, return that binary operation\n * @returns {string|boolean}\n */\n gobbleBinaryOp() {\n this.gobbleSpaces();\n let to_check = this.expr.substr(this.index, Jsep.max_binop_len);\n let tc_len = to_check.length;\n while (tc_len > 0) {\n // Don't accept a binary op when it is an identifier.\n // Binary ops that start with a identifier-valid character must be followed\n // by a non identifier-part valid character\n if (Jsep.binary_ops.hasOwnProperty(to_check) && (!Jsep.isIdentifierStart(this.code) || this.index + to_check.length < this.expr.length && !Jsep.isIdentifierPart(this.expr.charCodeAt(this.index + to_check.length)))) {\n this.index += tc_len;\n return to_check;\n }\n to_check = to_check.substr(0, --tc_len);\n }\n return false;\n }\n\n /**\n * This function is responsible for gobbling an individual expression,\n * e.g. `1`, `1+2`, `a+(b*2)-Math.sqrt(2)`\n * @returns {?jsep.BinaryExpression}\n */\n gobbleBinaryExpression() {\n let node, biop, prec, stack, biop_info, left, right, i, cur_biop;\n\n // First, try to get the leftmost thing\n // Then, check to see if there's a binary operator operating on that leftmost thing\n // Don't gobbleBinaryOp without a left-hand-side\n left = this.gobbleToken();\n if (!left) {\n return left;\n }\n biop = this.gobbleBinaryOp();\n\n // If there wasn't a binary operator, just return the leftmost node\n if (!biop) {\n return left;\n }\n\n // Otherwise, we need to start a stack to properly place the binary operations in their\n // precedence structure\n biop_info = {\n value: biop,\n prec: Jsep.binaryPrecedence(biop),\n right_a: Jsep.right_associative.has(biop)\n };\n right = this.gobbleToken();\n if (!right) {\n this.throwError(\"Expected expression after \" + biop);\n }\n stack = [left, biop_info, right];\n\n // Properly deal with precedence using [recursive descent](http://www.engr.mun.ca/~theo/Misc/exp_parsing.htm)\n while (biop = this.gobbleBinaryOp()) {\n prec = Jsep.binaryPrecedence(biop);\n if (prec === 0) {\n this.index -= biop.length;\n break;\n }\n biop_info = {\n value: biop,\n prec,\n right_a: Jsep.right_associative.has(biop)\n };\n cur_biop = biop;\n\n // Reduce: make a binary expression from the three topmost entries.\n const comparePrev = prev => biop_info.right_a && prev.right_a ? prec > prev.prec : prec <= prev.prec;\n while (stack.length > 2 && comparePrev(stack[stack.length - 2])) {\n right = stack.pop();\n biop = stack.pop().value;\n left = stack.pop();\n node = {\n type: Jsep.BINARY_EXP,\n operator: biop,\n left,\n right\n };\n stack.push(node);\n }\n node = this.gobbleToken();\n if (!node) {\n this.throwError(\"Expected expression after \" + cur_biop);\n }\n stack.push(biop_info, node);\n }\n i = stack.length - 1;\n node = stack[i];\n while (i > 1) {\n node = {\n type: Jsep.BINARY_EXP,\n operator: stack[i - 1].value,\n left: stack[i - 2],\n right: node\n };\n i -= 2;\n }\n return node;\n }\n\n /**\n * An individual part of a binary expression:\n * e.g. `foo.bar(baz)`, `1`, `\"abc\"`, `(a % 2)` (because it's in parenthesis)\n * @returns {boolean|jsep.Expression}\n */\n gobbleToken() {\n let ch, to_check, tc_len, node;\n this.gobbleSpaces();\n node = this.searchHook('gobble-token');\n if (node) {\n return this.runHook('after-token', node);\n }\n ch = this.code;\n if (Jsep.isDecimalDigit(ch) || ch === Jsep.PERIOD_CODE) {\n // Char code 46 is a dot `.` which can start off a numeric literal\n return this.gobbleNumericLiteral();\n }\n if (ch === Jsep.SQUOTE_CODE || ch === Jsep.DQUOTE_CODE) {\n // Single or double quotes\n node = this.gobbleStringLiteral();\n } else if (ch === Jsep.OBRACK_CODE) {\n node = this.gobbleArray();\n } else {\n to_check = this.expr.substr(this.index, Jsep.max_unop_len);\n tc_len = to_check.length;\n while (tc_len > 0) {\n // Don't accept an unary op when it is an identifier.\n // Unary ops that start with a identifier-valid character must be followed\n // by a non identifier-part valid character\n if (Jsep.unary_ops.hasOwnProperty(to_check) && (!Jsep.isIdentifierStart(this.code) || this.index + to_check.length < this.expr.length && !Jsep.isIdentifierPart(this.expr.charCodeAt(this.index + to_check.length)))) {\n this.index += tc_len;\n const argument = this.gobbleToken();\n if (!argument) {\n this.throwError('missing unaryOp argument');\n }\n return this.runHook('after-token', {\n type: Jsep.UNARY_EXP,\n operator: to_check,\n argument,\n prefix: true\n });\n }\n to_check = to_check.substr(0, --tc_len);\n }\n if (Jsep.isIdentifierStart(ch)) {\n node = this.gobbleIdentifier();\n if (Jsep.literals.hasOwnProperty(node.name)) {\n node = {\n type: Jsep.LITERAL,\n value: Jsep.literals[node.name],\n raw: node.name\n };\n } else if (node.name === Jsep.this_str) {\n node = {\n type: Jsep.THIS_EXP\n };\n }\n } else if (ch === Jsep.OPAREN_CODE) {\n // open parenthesis\n node = this.gobbleGroup();\n }\n }\n if (!node) {\n return this.runHook('after-token', false);\n }\n node = this.gobbleTokenProperty(node);\n return this.runHook('after-token', node);\n }\n\n /**\n * Gobble properties of of identifiers/strings/arrays/groups.\n * e.g. `foo`, `bar.baz`, `foo['bar'].baz`\n * It also gobbles function calls:\n * e.g. `Math.acos(obj.angle)`\n * @param {jsep.Expression} node\n * @returns {jsep.Expression}\n */\n gobbleTokenProperty(node) {\n this.gobbleSpaces();\n let ch = this.code;\n while (ch === Jsep.PERIOD_CODE || ch === Jsep.OBRACK_CODE || ch === Jsep.OPAREN_CODE || ch === Jsep.QUMARK_CODE) {\n let optional;\n if (ch === Jsep.QUMARK_CODE) {\n if (this.expr.charCodeAt(this.index + 1) !== Jsep.PERIOD_CODE) {\n break;\n }\n optional = true;\n this.index += 2;\n this.gobbleSpaces();\n ch = this.code;\n }\n this.index++;\n if (ch === Jsep.OBRACK_CODE) {\n node = {\n type: Jsep.MEMBER_EXP,\n computed: true,\n object: node,\n property: this.gobbleExpression()\n };\n if (!node.property) {\n this.throwError('Unexpected \"' + this.char + '\"');\n }\n this.gobbleSpaces();\n ch = this.code;\n if (ch !== Jsep.CBRACK_CODE) {\n this.throwError('Unclosed [');\n }\n this.index++;\n } else if (ch === Jsep.OPAREN_CODE) {\n // A function call is being made; gobble all the arguments\n node = {\n type: Jsep.CALL_EXP,\n 'arguments': this.gobbleArguments(Jsep.CPAREN_CODE),\n callee: node\n };\n } else if (ch === Jsep.PERIOD_CODE || optional) {\n if (optional) {\n this.index--;\n }\n this.gobbleSpaces();\n node = {\n type: Jsep.MEMBER_EXP,\n computed: false,\n object: node,\n property: this.gobbleIdentifier()\n };\n }\n if (optional) {\n node.optional = true;\n } // else leave undefined for compatibility with esprima\n\n this.gobbleSpaces();\n ch = this.code;\n }\n return node;\n }\n\n /**\n * Parse simple numeric literals: `12`, `3.4`, `.5`. Do this by using a string to\n * keep track of everything in the numeric literal and then calling `parseFloat` on that string\n * @returns {jsep.Literal}\n */\n gobbleNumericLiteral() {\n let number = '',\n ch,\n chCode;\n while (Jsep.isDecimalDigit(this.code)) {\n number += this.expr.charAt(this.index++);\n }\n if (this.code === Jsep.PERIOD_CODE) {\n // can start with a decimal marker\n number += this.expr.charAt(this.index++);\n while (Jsep.isDecimalDigit(this.code)) {\n number += this.expr.charAt(this.index++);\n }\n }\n ch = this.char;\n if (ch === 'e' || ch === 'E') {\n // exponent marker\n number += this.expr.charAt(this.index++);\n ch = this.char;\n if (ch === '+' || ch === '-') {\n // exponent sign\n number += this.expr.charAt(this.index++);\n }\n while (Jsep.isDecimalDigit(this.code)) {\n // exponent itself\n number += this.expr.charAt(this.index++);\n }\n if (!Jsep.isDecimalDigit(this.expr.charCodeAt(this.index - 1))) {\n this.throwError('Expected exponent (' + number + this.char + ')');\n }\n }\n chCode = this.code;\n\n // Check to make sure this isn't a variable name that start with a number (123abc)\n if (Jsep.isIdentifierStart(chCode)) {\n this.throwError('Variable names cannot start with a number (' + number + this.char + ')');\n } else if (chCode === Jsep.PERIOD_CODE || number.length === 1 && number.charCodeAt(0) === Jsep.PERIOD_CODE) {\n this.throwError('Unexpected period');\n }\n return {\n type: Jsep.LITERAL,\n value: parseFloat(number),\n raw: number\n };\n }\n\n /**\n * Parses a string literal, staring with single or double quotes with basic support for escape codes\n * e.g. `\"hello world\"`, `'this is\\nJSEP'`\n * @returns {jsep.Literal}\n */\n gobbleStringLiteral() {\n let str = '';\n const startIndex = this.index;\n const quote = this.expr.charAt(this.index++);\n let closed = false;\n while (this.index < this.expr.length) {\n let ch = this.expr.charAt(this.index++);\n if (ch === quote) {\n closed = true;\n break;\n } else if (ch === '\\\\') {\n // Check for all of the common escape codes\n ch = this.expr.charAt(this.index++);\n switch (ch) {\n case 'n':\n str += '\\n';\n break;\n case 'r':\n str += '\\r';\n break;\n case 't':\n str += '\\t';\n break;\n case 'b':\n str += '\\b';\n break;\n case 'f':\n str += '\\f';\n break;\n case 'v':\n str += '\\x0B';\n break;\n default:\n str += ch;\n }\n } else {\n str += ch;\n }\n }\n if (!closed) {\n this.throwError('Unclosed quote after \"' + str + '\"');\n }\n return {\n type: Jsep.LITERAL,\n value: str,\n raw: this.expr.substring(startIndex, this.index)\n };\n }\n\n /**\n * Gobbles only identifiers\n * e.g.: `foo`, `_value`, `$x1`\n * Also, this function checks if that identifier is a literal:\n * (e.g. `true`, `false`, `null`) or `this`\n * @returns {jsep.Identifier}\n */\n gobbleIdentifier() {\n let ch = this.code,\n start = this.index;\n if (Jsep.isIdentifierStart(ch)) {\n this.index++;\n } else {\n this.throwError('Unexpected ' + this.char);\n }\n while (this.index < this.expr.length) {\n ch = this.code;\n if (Jsep.isIdentifierPart(ch)) {\n this.index++;\n } else {\n break;\n }\n }\n return {\n type: Jsep.IDENTIFIER,\n name: this.expr.slice(start, this.index)\n };\n }\n\n /**\n * Gobbles a list of arguments within the context of a function call\n * or array literal. This function also assumes that the opening character\n * `(` or `[` has already been gobbled, and gobbles expressions and commas\n * until the terminator character `)` or `]` is encountered.\n * e.g. `foo(bar, baz)`, `my_func()`, or `[bar, baz]`\n * @param {number} termination\n * @returns {jsep.Expression[]}\n */\n gobbleArguments(termination) {\n const args = [];\n let closed = false;\n let separator_count = 0;\n while (this.index < this.expr.length) {\n this.gobbleSpaces();\n let ch_i = this.code;\n if (ch_i === termination) {\n // done parsing\n closed = true;\n this.index++;\n if (termination === Jsep.CPAREN_CODE && separator_count && separator_count >= args.length) {\n this.throwError('Unexpected token ' + String.fromCharCode(termination));\n }\n break;\n } else if (ch_i === Jsep.COMMA_CODE) {\n // between expressions\n this.index++;\n separator_count++;\n if (separator_count !== args.length) {\n // missing argument\n if (termination === Jsep.CPAREN_CODE) {\n this.throwError('Unexpected token ,');\n } else if (termination === Jsep.CBRACK_CODE) {\n for (let arg = args.length; arg < separator_count; arg++) {\n args.push(null);\n }\n }\n }\n } else if (args.length !== separator_count && separator_count !== 0) {\n // NOTE: `&& separator_count !== 0` allows for either all commas, or all spaces as arguments\n this.throwError('Expected comma');\n } else {\n const node = this.gobbleExpression();\n if (!node || node.type === Jsep.COMPOUND) {\n this.throwError('Expected comma');\n }\n args.push(node);\n }\n }\n if (!closed) {\n this.throwError('Expected ' + String.fromCharCode(termination));\n }\n return args;\n }\n\n /**\n * Responsible for parsing a group of things within parentheses `()`\n * that have no identifier in front (so not a function call)\n * This function assumes that it needs to gobble the opening parenthesis\n * and then tries to gobble everything within that parenthesis, assuming\n * that the next thing it should see is the close parenthesis. If not,\n * then the expression probably doesn't have a `)`\n * @returns {boolean|jsep.Expression}\n */\n gobbleGroup() {\n this.index++;\n let nodes = this.gobbleExpressions(Jsep.CPAREN_CODE);\n if (this.code === Jsep.CPAREN_CODE) {\n this.index++;\n if (nodes.length === 1) {\n return nodes[0];\n } else if (!nodes.length) {\n return false;\n } else {\n return {\n type: Jsep.SEQUENCE_EXP,\n expressions: nodes\n };\n }\n } else {\n this.throwError('Unclosed (');\n }\n }\n\n /**\n * Responsible for parsing Array literals `[1, 2, 3]`\n * This function assumes that it needs to gobble the opening bracket\n * and then tries to gobble the expressions as arguments.\n * @returns {jsep.ArrayExpression}\n */\n gobbleArray() {\n this.index++;\n return {\n type: Jsep.ARRAY_EXP,\n elements: this.gobbleArguments(Jsep.CBRACK_CODE)\n };\n }\n}\n\n// Static fields:\nconst hooks = new Hooks();\nObject.assign(Jsep, {\n hooks,\n plugins: new Plugins(Jsep),\n // Node Types\n // ----------\n // This is the full set of types that any JSEP node can be.\n // Store them here to save space when minified\n COMPOUND: 'Compound',\n SEQUENCE_EXP: 'SequenceExpression',\n IDENTIFIER: 'Identifier',\n MEMBER_EXP: 'MemberExpression',\n LITERAL: 'Literal',\n THIS_EXP: 'ThisExpression',\n CALL_EXP: 'CallExpression',\n UNARY_EXP: 'UnaryExpression',\n BINARY_EXP: 'BinaryExpression',\n ARRAY_EXP: 'ArrayExpression',\n TAB_CODE: 9,\n LF_CODE: 10,\n CR_CODE: 13,\n SPACE_CODE: 32,\n PERIOD_CODE: 46,\n // '.'\n COMMA_CODE: 44,\n // ','\n SQUOTE_CODE: 39,\n // single quote\n DQUOTE_CODE: 34,\n // double quotes\n OPAREN_CODE: 40,\n // (\n CPAREN_CODE: 41,\n // )\n OBRACK_CODE: 91,\n // [\n CBRACK_CODE: 93,\n // ]\n QUMARK_CODE: 63,\n // ?\n SEMCOL_CODE: 59,\n // ;\n COLON_CODE: 58,\n // :\n\n // Operations\n // ----------\n // Use a quickly-accessible map to store all of the unary operators\n // Values are set to `1` (it really doesn't matter)\n unary_ops: {\n '-': 1,\n '!': 1,\n '~': 1,\n '+': 1\n },\n // Also use a map for the binary operations but set their values to their\n // binary precedence for quick reference (higher number = higher precedence)\n // see [Order of operations](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Operator_Precedence)\n binary_ops: {\n '||': 1,\n '??': 1,\n '&&': 2,\n '|': 3,\n '^': 4,\n '&': 5,\n '==': 6,\n '!=': 6,\n '===': 6,\n '!==': 6,\n '<': 7,\n '>': 7,\n '<=': 7,\n '>=': 7,\n '<<': 8,\n '>>': 8,\n '>>>': 8,\n '+': 9,\n '-': 9,\n '*': 10,\n '/': 10,\n '%': 10,\n '**': 11\n },\n // sets specific binary_ops as right-associative\n right_associative: new Set(['**']),\n // Additional valid identifier chars, apart from a-z, A-Z and 0-9 (except on the starting char)\n additional_identifier_chars: new Set(['$', '_']),\n // Literals\n // ----------\n // Store the values to return for the various literals we may encounter\n literals: {\n 'true': true,\n 'false': false,\n 'null': null\n },\n // Except for `this`, which is special. This could be changed to something like `'self'` as well\n this_str: 'this'\n});\nJsep.max_unop_len = Jsep.getMaxKeyLen(Jsep.unary_ops);\nJsep.max_binop_len = Jsep.getMaxKeyLen(Jsep.binary_ops);\n\n// Backward Compatibility:\nconst jsep = expr => new Jsep(expr).parse();\nconst stdClassProps = Object.getOwnPropertyNames(class Test {});\nObject.getOwnPropertyNames(Jsep).filter(prop => !stdClassProps.includes(prop) && jsep[prop] === undefined).forEach(m => {\n jsep[m] = Jsep[m];\n});\njsep.Jsep = Jsep; // allows for const { Jsep } = require('jsep');\n\nconst CONDITIONAL_EXP = 'ConditionalExpression';\nvar ternary = {\n name: 'ternary',\n init(jsep) {\n // Ternary expression: test ? consequent : alternate\n jsep.hooks.add('after-expression', function gobbleTernary(env) {\n if (env.node && this.code === jsep.QUMARK_CODE) {\n this.index++;\n const test = env.node;\n const consequent = this.gobbleExpression();\n if (!consequent) {\n this.throwError('Expected expression');\n }\n this.gobbleSpaces();\n if (this.code === jsep.COLON_CODE) {\n this.index++;\n const alternate = this.gobbleExpression();\n if (!alternate) {\n this.throwError('Expected expression');\n }\n env.node = {\n type: CONDITIONAL_EXP,\n test,\n consequent,\n alternate\n };\n\n // check for operators of higher priority than ternary (i.e. assignment)\n // jsep sets || at 1, and assignment at 0.9, and conditional should be between them\n if (test.operator && jsep.binary_ops[test.operator] <= 0.9) {\n let newTest = test;\n while (newTest.right.operator && jsep.binary_ops[newTest.right.operator] <= 0.9) {\n newTest = newTest.right;\n }\n env.node.test = newTest.right;\n newTest.right = env.node;\n env.node = test;\n }\n } else {\n this.throwError('Expected :');\n }\n }\n });\n }\n};\n\n// Add default plugins:\n\njsep.plugins.register(ternary);\n\nconst FSLASH_CODE = 47; // '/'\nconst BSLASH_CODE = 92; // '\\\\'\n\nvar index = {\n name: 'regex',\n init(jsep) {\n // Regex literal: /abc123/ig\n jsep.hooks.add('gobble-token', function gobbleRegexLiteral(env) {\n if (this.code === FSLASH_CODE) {\n const patternIndex = ++this.index;\n let inCharSet = false;\n while (this.index < this.expr.length) {\n if (this.code === FSLASH_CODE && !inCharSet) {\n const pattern = this.expr.slice(patternIndex, this.index);\n let flags = '';\n while (++this.index < this.expr.length) {\n const code = this.code;\n if (code >= 97 && code <= 122 // a...z\n || code >= 65 && code <= 90 // A...Z\n || code >= 48 && code <= 57) {\n // 0-9\n flags += this.char;\n } else {\n break;\n }\n }\n let value;\n try {\n value = new RegExp(pattern, flags);\n } catch (e) {\n this.throwError(e.message);\n }\n env.node = {\n type: jsep.LITERAL,\n value,\n raw: this.expr.slice(patternIndex - 1, this.index)\n };\n\n // allow . [] and () after regex: /regex/.test(a)\n env.node = this.gobbleTokenProperty(env.node);\n return env.node;\n }\n if (this.code === jsep.OBRACK_CODE) {\n inCharSet = true;\n } else if (inCharSet && this.code === jsep.CBRACK_CODE) {\n inCharSet = false;\n }\n this.index += this.code === BSLASH_CODE ? 2 : 1;\n }\n this.throwError('Unclosed Regex');\n }\n });\n }\n};\n\nconst PLUS_CODE = 43; // +\nconst MINUS_CODE = 45; // -\n\nconst plugin = {\n name: 'assignment',\n assignmentOperators: new Set(['=', '*=', '**=', '/=', '%=', '+=', '-=', '<<=', '>>=', '>>>=', '&=', '^=', '|=', '||=', '&&=', '??=']),\n updateOperators: [PLUS_CODE, MINUS_CODE],\n assignmentPrecedence: 0.9,\n init(jsep) {\n const updateNodeTypes = [jsep.IDENTIFIER, jsep.MEMBER_EXP];\n plugin.assignmentOperators.forEach(op => jsep.addBinaryOp(op, plugin.assignmentPrecedence, true));\n jsep.hooks.add('gobble-token', function gobbleUpdatePrefix(env) {\n const code = this.code;\n if (plugin.updateOperators.some(c => c === code && c === this.expr.charCodeAt(this.index + 1))) {\n this.index += 2;\n env.node = {\n type: 'UpdateExpression',\n operator: code === PLUS_CODE ? '++' : '--',\n argument: this.gobbleTokenProperty(this.gobbleIdentifier()),\n prefix: true\n };\n if (!env.node.argument || !updateNodeTypes.includes(env.node.argument.type)) {\n this.throwError(`Unexpected ${env.node.operator}`);\n }\n }\n });\n jsep.hooks.add('after-token', function gobbleUpdatePostfix(env) {\n if (env.node) {\n const code = this.code;\n if (plugin.updateOperators.some(c => c === code && c === this.expr.charCodeAt(this.index + 1))) {\n if (!updateNodeTypes.includes(env.node.type)) {\n this.throwError(`Unexpected ${env.node.operator}`);\n }\n this.index += 2;\n env.node = {\n type: 'UpdateExpression',\n operator: code === PLUS_CODE ? '++' : '--',\n argument: env.node,\n prefix: false\n };\n }\n }\n });\n jsep.hooks.add('after-expression', function gobbleAssignment(env) {\n if (env.node) {\n // Note: Binaries can be chained in a single expression to respect\n // operator precedence (i.e. a = b = 1 + 2 + 3)\n // Update all binary assignment nodes in the tree\n updateBinariesToAssignments(env.node);\n }\n });\n function updateBinariesToAssignments(node) {\n if (plugin.assignmentOperators.has(node.operator)) {\n node.type = 'AssignmentExpression';\n updateBinariesToAssignments(node.left);\n updateBinariesToAssignments(node.right);\n } else if (!node.operator) {\n Object.values(node).forEach(val => {\n if (val && typeof val === 'object') {\n updateBinariesToAssignments(val);\n }\n });\n }\n }\n }\n};\n\n/* eslint-disable no-bitwise -- Convenient */\n\n// register plugins\njsep.plugins.register(index, plugin);\njsep.addUnaryOp('typeof');\njsep.addLiteral('null', null);\njsep.addLiteral('undefined', undefined);\nconst BLOCKED_PROTO_PROPERTIES = new Set(['constructor', '__proto__', '__defineGetter__', '__defineSetter__']);\nconst SafeEval = {\n /**\n * @param {jsep.Expression} ast\n * @param {Record} subs\n */\n evalAst(ast, subs) {\n switch (ast.type) {\n case 'BinaryExpression':\n case 'LogicalExpression':\n return SafeEval.evalBinaryExpression(ast, subs);\n case 'Compound':\n return SafeEval.evalCompound(ast, subs);\n case 'ConditionalExpression':\n return SafeEval.evalConditionalExpression(ast, subs);\n case 'Identifier':\n return SafeEval.evalIdentifier(ast, subs);\n case 'Literal':\n return SafeEval.evalLiteral(ast, subs);\n case 'MemberExpression':\n return SafeEval.evalMemberExpression(ast, subs);\n case 'UnaryExpression':\n return SafeEval.evalUnaryExpression(ast, subs);\n case 'ArrayExpression':\n return SafeEval.evalArrayExpression(ast, subs);\n case 'CallExpression':\n return SafeEval.evalCallExpression(ast, subs);\n case 'AssignmentExpression':\n return SafeEval.evalAssignmentExpression(ast, subs);\n default:\n throw SyntaxError('Unexpected expression', ast);\n }\n },\n evalBinaryExpression(ast, subs) {\n const result = {\n '||': (a, b) => a || b(),\n '&&': (a, b) => a && b(),\n '|': (a, b) => a | b(),\n '^': (a, b) => a ^ b(),\n '&': (a, b) => a & b(),\n // eslint-disable-next-line eqeqeq -- API\n '==': (a, b) => a == b(),\n // eslint-disable-next-line eqeqeq -- API\n '!=': (a, b) => a != b(),\n '===': (a, b) => a === b(),\n '!==': (a, b) => a !== b(),\n '<': (a, b) => a < b(),\n '>': (a, b) => a > b(),\n '<=': (a, b) => a <= b(),\n '>=': (a, b) => a >= b(),\n '<<': (a, b) => a << b(),\n '>>': (a, b) => a >> b(),\n '>>>': (a, b) => a >>> b(),\n '+': (a, b) => a + b(),\n '-': (a, b) => a - b(),\n '*': (a, b) => a * b(),\n '/': (a, b) => a / b(),\n '%': (a, b) => a % b()\n }[ast.operator](SafeEval.evalAst(ast.left, subs), () => SafeEval.evalAst(ast.right, subs));\n return result;\n },\n evalCompound(ast, subs) {\n let last;\n for (let i = 0; i < ast.body.length; i++) {\n if (ast.body[i].type === 'Identifier' && ['var', 'let', 'const'].includes(ast.body[i].name) && ast.body[i + 1] && ast.body[i + 1].type === 'AssignmentExpression') {\n // var x=2; is detected as\n // [{Identifier var}, {AssignmentExpression x=2}]\n // eslint-disable-next-line @stylistic/max-len -- Long\n // eslint-disable-next-line sonarjs/updated-loop-counter -- Convenient\n i += 1;\n }\n const expr = ast.body[i];\n last = SafeEval.evalAst(expr, subs);\n }\n return last;\n },\n evalConditionalExpression(ast, subs) {\n if (SafeEval.evalAst(ast.test, subs)) {\n return SafeEval.evalAst(ast.consequent, subs);\n }\n return SafeEval.evalAst(ast.alternate, subs);\n },\n evalIdentifier(ast, subs) {\n if (Object.hasOwn(subs, ast.name)) {\n return subs[ast.name];\n }\n throw ReferenceError(`${ast.name} is not defined`);\n },\n evalLiteral(ast) {\n return ast.value;\n },\n evalMemberExpression(ast, subs) {\n const prop = String(\n // NOTE: `String(value)` throws error when\n // value has overwritten the toString method to return non-string\n // i.e. `value = {toString: () => []}`\n ast.computed ? SafeEval.evalAst(ast.property) // `object[property]`\n : ast.property.name // `object.property` property is Identifier\n );\n const obj = SafeEval.evalAst(ast.object, subs);\n if (obj === undefined || obj === null) {\n throw TypeError(`Cannot read properties of ${obj} (reading '${prop}')`);\n }\n if (!Object.hasOwn(obj, prop) && BLOCKED_PROTO_PROPERTIES.has(prop)) {\n throw TypeError(`Cannot read properties of ${obj} (reading '${prop}')`);\n }\n const result = obj[prop];\n if (typeof result === 'function') {\n return result.bind(obj); // arrow functions aren't affected by bind.\n }\n return result;\n },\n evalUnaryExpression(ast, subs) {\n const result = {\n '-': a => -SafeEval.evalAst(a, subs),\n '!': a => !SafeEval.evalAst(a, subs),\n '~': a => ~SafeEval.evalAst(a, subs),\n // eslint-disable-next-line no-implicit-coercion -- API\n '+': a => +SafeEval.evalAst(a, subs),\n typeof: a => typeof SafeEval.evalAst(a, subs)\n }[ast.operator](ast.argument);\n return result;\n },\n evalArrayExpression(ast, subs) {\n return ast.elements.map(el => SafeEval.evalAst(el, subs));\n },\n evalCallExpression(ast, subs) {\n const args = ast.arguments.map(arg => SafeEval.evalAst(arg, subs));\n const func = SafeEval.evalAst(ast.callee, subs);\n // if (func === Function) {\n // throw new Error('Function constructor is disabled');\n // }\n return func(...args);\n },\n evalAssignmentExpression(ast, subs) {\n if (ast.left.type !== 'Identifier') {\n throw SyntaxError('Invalid left-hand side in assignment');\n }\n const id = ast.left.name;\n const value = SafeEval.evalAst(ast.right, subs);\n subs[id] = value;\n return subs[id];\n }\n};\n\n/**\n * A replacement for NodeJS' VM.Script which is also {@link https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP | Content Security Policy} friendly.\n */\nclass SafeScript {\n /**\n * @param {string} expr Expression to evaluate\n */\n constructor(expr) {\n this.code = expr;\n this.ast = jsep(this.code);\n }\n\n /**\n * @param {object} context Object whose items will be added\n * to evaluation\n * @returns {EvaluatedResult} Result of evaluated code\n */\n runInNewContext(context) {\n // `Object.create(null)` creates a prototypeless object\n const keyMap = Object.assign(Object.create(null), context);\n return SafeEval.evalAst(this.ast, keyMap);\n }\n}\n\n/* eslint-disable camelcase -- Convenient for escaping */\n\n\n/**\n * @typedef {null|boolean|number|string|object|GenericArray} JSONObject\n */\n\n/**\n * @typedef {any} AnyItem\n */\n\n/**\n * @typedef {any} AnyResult\n */\n\n/**\n * Copies array and then pushes item into it.\n * @param {GenericArray} arr Array to copy and into which to push\n * @param {AnyItem} item Array item to add (to end)\n * @returns {GenericArray} Copy of the original array\n */\nfunction push(arr, item) {\n arr = arr.slice();\n arr.push(item);\n return arr;\n}\n/**\n * Copies array and then unshifts item into it.\n * @param {AnyItem} item Array item to add (to beginning)\n * @param {GenericArray} arr Array to copy and into which to unshift\n * @returns {GenericArray} Copy of the original array\n */\nfunction unshift(item, arr) {\n arr = arr.slice();\n arr.unshift(item);\n return arr;\n}\n\n/**\n * Caught when JSONPath is used without `new` but rethrown if with `new`\n * @extends Error\n */\nclass NewError extends Error {\n /**\n * @param {AnyResult} value The evaluated scalar value\n */\n constructor(value) {\n super('JSONPath should not be called with \"new\" (it prevents return ' + 'of (unwrapped) scalar values)');\n this.avoidNew = true;\n this.value = value;\n this.name = 'NewError';\n }\n}\n\n/**\n* @typedef {object} ReturnObject\n* @property {string} path\n* @property {JSONObject} value\n* @property {object|GenericArray} parent\n* @property {string} parentProperty\n*/\n\n/**\n* @callback JSONPathCallback\n* @param {string|object} preferredOutput\n* @param {\"value\"|\"property\"} type\n* @param {ReturnObject} fullRetObj\n* @returns {void}\n*/\n\n/**\n* @callback OtherTypeCallback\n* @param {JSONObject} val\n* @param {string} path\n* @param {object|GenericArray} parent\n* @param {string} parentPropName\n* @returns {boolean}\n*/\n\n/**\n * @typedef {any} ContextItem\n */\n\n/**\n * @typedef {any} EvaluatedResult\n */\n\n/**\n* @callback EvalCallback\n* @param {string} code\n* @param {ContextItem} context\n* @returns {EvaluatedResult}\n*/\n\n/**\n * @typedef {typeof SafeScript} EvalClass\n */\n\n/**\n * @typedef {object} JSONPathOptions\n * @property {JSON} json\n * @property {string|string[]} path\n * @property {\"value\"|\"path\"|\"pointer\"|\"parent\"|\"parentProperty\"|\n * \"all\"} [resultType=\"value\"]\n * @property {boolean} [flatten=false]\n * @property {boolean} [wrap=true]\n * @property {object} [sandbox={}]\n * @property {EvalCallback|EvalClass|'safe'|'native'|\n * boolean} [eval = 'safe']\n * @property {object|GenericArray|null} [parent=null]\n * @property {string|null} [parentProperty=null]\n * @property {JSONPathCallback} [callback]\n * @property {OtherTypeCallback} [otherTypeCallback] Defaults to\n * function which throws on encountering `@other`\n * @property {boolean} [autostart=true]\n */\n\n/**\n * @param {string|JSONPathOptions} opts If a string, will be treated as `expr`\n * @param {string} [expr] JSON path to evaluate\n * @param {JSON} [obj] JSON object to evaluate against\n * @param {JSONPathCallback} [callback] Passed 3 arguments: 1) desired payload\n * per `resultType`, 2) `\"value\"|\"property\"`, 3) Full returned object with\n * all payloads\n * @param {OtherTypeCallback} [otherTypeCallback] If `@other()` is at the end\n * of one's query, this will be invoked with the value of the item, its\n * path, its parent, and its parent's property name, and it should return\n * a boolean indicating whether the supplied value belongs to the \"other\"\n * type or not (or it may handle transformations and return `false`).\n * @returns {JSONPath}\n * @class\n */\nfunction JSONPath(opts, expr, obj, callback, otherTypeCallback) {\n // eslint-disable-next-line no-restricted-syntax -- Allow for pseudo-class\n if (!(this instanceof JSONPath)) {\n try {\n return new JSONPath(opts, expr, obj, callback, otherTypeCallback);\n } catch (e) {\n if (!e.avoidNew) {\n throw e;\n }\n return e.value;\n }\n }\n if (typeof opts === 'string') {\n otherTypeCallback = callback;\n callback = obj;\n obj = expr;\n expr = opts;\n opts = null;\n }\n const optObj = opts && typeof opts === 'object';\n opts = opts || {};\n this.json = opts.json || obj;\n this.path = opts.path || expr;\n this.resultType = opts.resultType || 'value';\n this.flatten = opts.flatten || false;\n this.wrap = Object.hasOwn(opts, 'wrap') ? opts.wrap : true;\n this.sandbox = opts.sandbox || {};\n this.eval = opts.eval === undefined ? 'safe' : opts.eval;\n this.ignoreEvalErrors = typeof opts.ignoreEvalErrors === 'undefined' ? false : opts.ignoreEvalErrors;\n this.parent = opts.parent || null;\n this.parentProperty = opts.parentProperty || null;\n this.callback = opts.callback || callback || null;\n this.otherTypeCallback = opts.otherTypeCallback || otherTypeCallback || function () {\n throw new TypeError('You must supply an otherTypeCallback callback option ' + 'with the @other() operator.');\n };\n if (opts.autostart !== false) {\n const args = {\n path: optObj ? opts.path : expr\n };\n if (!optObj) {\n args.json = obj;\n } else if ('json' in opts) {\n args.json = opts.json;\n }\n const ret = this.evaluate(args);\n if (!ret || typeof ret !== 'object') {\n throw new NewError(ret);\n }\n return ret;\n }\n}\n\n// PUBLIC METHODS\nJSONPath.prototype.evaluate = function (expr, json, callback, otherTypeCallback) {\n let currParent = this.parent,\n currParentProperty = this.parentProperty;\n let {\n flatten,\n wrap\n } = this;\n this.currResultType = this.resultType;\n this.currEval = this.eval;\n this.currSandbox = this.sandbox;\n callback = callback || this.callback;\n this.currOtherTypeCallback = otherTypeCallback || this.otherTypeCallback;\n json = json || this.json;\n expr = expr || this.path;\n if (expr && typeof expr === 'object' && !Array.isArray(expr)) {\n if (!expr.path && expr.path !== '') {\n throw new TypeError('You must supply a \"path\" property when providing an object ' + 'argument to JSONPath.evaluate().');\n }\n if (!Object.hasOwn(expr, 'json')) {\n throw new TypeError('You must supply a \"json\" property when providing an object ' + 'argument to JSONPath.evaluate().');\n }\n ({\n json\n } = expr);\n flatten = Object.hasOwn(expr, 'flatten') ? expr.flatten : flatten;\n this.currResultType = Object.hasOwn(expr, 'resultType') ? expr.resultType : this.currResultType;\n this.currSandbox = Object.hasOwn(expr, 'sandbox') ? expr.sandbox : this.currSandbox;\n wrap = Object.hasOwn(expr, 'wrap') ? expr.wrap : wrap;\n this.currEval = Object.hasOwn(expr, 'eval') ? expr.eval : this.currEval;\n callback = Object.hasOwn(expr, 'callback') ? expr.callback : callback;\n this.currOtherTypeCallback = Object.hasOwn(expr, 'otherTypeCallback') ? expr.otherTypeCallback : this.currOtherTypeCallback;\n currParent = Object.hasOwn(expr, 'parent') ? expr.parent : currParent;\n currParentProperty = Object.hasOwn(expr, 'parentProperty') ? expr.parentProperty : currParentProperty;\n expr = expr.path;\n }\n currParent = currParent || null;\n currParentProperty = currParentProperty || null;\n if (Array.isArray(expr)) {\n expr = JSONPath.toPathString(expr);\n }\n if (!expr && expr !== '' || !json) {\n return undefined;\n }\n const exprList = JSONPath.toPathArray(expr);\n if (exprList[0] === '$' && exprList.length > 1) {\n exprList.shift();\n }\n this._hasParentSelector = null;\n const result = this._trace(exprList, json, ['$'], currParent, currParentProperty, callback).filter(function (ea) {\n return ea && !ea.isParentSelector;\n });\n if (!result.length) {\n return wrap ? [] : undefined;\n }\n if (!wrap && result.length === 1 && !result[0].hasArrExpr) {\n return this._getPreferredOutput(result[0]);\n }\n return result.reduce((rslt, ea) => {\n const valOrPath = this._getPreferredOutput(ea);\n if (flatten && Array.isArray(valOrPath)) {\n rslt = rslt.concat(valOrPath);\n } else {\n rslt.push(valOrPath);\n }\n return rslt;\n }, []);\n};\n\n// PRIVATE METHODS\n\nJSONPath.prototype._getPreferredOutput = function (ea) {\n const resultType = this.currResultType;\n switch (resultType) {\n case 'all':\n {\n const path = Array.isArray(ea.path) ? ea.path : JSONPath.toPathArray(ea.path);\n ea.pointer = JSONPath.toPointer(path);\n ea.path = typeof ea.path === 'string' ? ea.path : JSONPath.toPathString(ea.path);\n return ea;\n }\n case 'value':\n case 'parent':\n case 'parentProperty':\n return ea[resultType];\n case 'path':\n return JSONPath.toPathString(ea[resultType]);\n case 'pointer':\n return JSONPath.toPointer(ea.path);\n default:\n throw new TypeError('Unknown result type');\n }\n};\nJSONPath.prototype._handleCallback = function (fullRetObj, callback, type) {\n if (callback) {\n const preferredOutput = this._getPreferredOutput(fullRetObj);\n fullRetObj.path = typeof fullRetObj.path === 'string' ? fullRetObj.path : JSONPath.toPathString(fullRetObj.path);\n // eslint-disable-next-line n/callback-return -- No need to return\n callback(preferredOutput, type, fullRetObj);\n }\n};\n\n/**\n *\n * @param {string} expr\n * @param {JSONObject} val\n * @param {string} path\n * @param {object|GenericArray} parent\n * @param {string} parentPropName\n * @param {JSONPathCallback} callback\n * @param {boolean} hasArrExpr\n * @param {boolean} literalPriority\n * @returns {ReturnObject|ReturnObject[]}\n */\nJSONPath.prototype._trace = function (expr, val, path, parent, parentPropName, callback, hasArrExpr, literalPriority) {\n // No expr to follow? return path and value as the result of\n // this trace branch\n let retObj;\n if (!expr.length) {\n retObj = {\n path,\n value: val,\n parent,\n parentProperty: parentPropName,\n hasArrExpr\n };\n this._handleCallback(retObj, callback, 'value');\n return retObj;\n }\n const loc = expr[0],\n x = expr.slice(1);\n\n // We need to gather the return value of recursive trace calls in order to\n // do the parent sel computation.\n const ret = [];\n /**\n *\n * @param {ReturnObject|ReturnObject[]} elems\n * @returns {void}\n */\n function addRet(elems) {\n if (Array.isArray(elems)) {\n // This was causing excessive stack size in Node (with or\n // without Babel) against our performance test:\n // `ret.push(...elems);`\n elems.forEach(t => {\n ret.push(t);\n });\n } else {\n ret.push(elems);\n }\n }\n if ((typeof loc !== 'string' || literalPriority) && val && Object.hasOwn(val, loc)) {\n // simple case--directly follow property\n addRet(this._trace(x, val[loc], push(path, loc), val, loc, callback, hasArrExpr));\n // eslint-disable-next-line unicorn/prefer-switch -- Part of larger `if`\n } else if (loc === '*') {\n // all child properties\n this._walk(val, m => {\n addRet(this._trace(x, val[m], push(path, m), val, m, callback, true, true));\n });\n } else if (loc === '..') {\n // all descendent parent properties\n // Check remaining expression with val's immediate children\n addRet(this._trace(x, val, path, parent, parentPropName, callback, hasArrExpr));\n this._walk(val, m => {\n // We don't join m and x here because we only want parents,\n // not scalar values\n if (typeof val[m] === 'object') {\n // Keep going with recursive descent on val's\n // object children\n addRet(this._trace(expr.slice(), val[m], push(path, m), val, m, callback, true));\n }\n });\n // The parent sel computation is handled in the frame above using the\n // ancestor object of val\n } else if (loc === '^') {\n // This is not a final endpoint, so we do not invoke the callback here\n this._hasParentSelector = true;\n return {\n path: path.slice(0, -1),\n expr: x,\n isParentSelector: true\n };\n } else if (loc === '~') {\n // property name\n retObj = {\n path: push(path, loc),\n value: parentPropName,\n parent,\n parentProperty: null\n };\n this._handleCallback(retObj, callback, 'property');\n return retObj;\n } else if (loc === '$') {\n // root only\n addRet(this._trace(x, val, path, null, null, callback, hasArrExpr));\n } else if (/^(-?\\d*):(-?\\d*):?(\\d*)$/u.test(loc)) {\n // [start:end:step] Python slice syntax\n addRet(this._slice(loc, x, val, path, parent, parentPropName, callback));\n } else if (loc.indexOf('?(') === 0) {\n // [?(expr)] (filtering)\n if (this.currEval === false) {\n throw new Error('Eval [?(expr)] prevented in JSONPath expression.');\n }\n const safeLoc = loc.replace(/^\\?\\((.*?)\\)$/u, '$1');\n // check for a nested filter expression\n const nested = /@.?([^?]*)[['](\\??\\(.*?\\))(?!.\\)\\])[\\]']/gu.exec(safeLoc);\n if (nested) {\n // find if there are matches in the nested expression\n // add them to the result set if there is at least one match\n this._walk(val, m => {\n const npath = [nested[2]];\n const nvalue = nested[1] ? val[m][nested[1]] : val[m];\n const filterResults = this._trace(npath, nvalue, path, parent, parentPropName, callback, true);\n if (filterResults.length > 0) {\n addRet(this._trace(x, val[m], push(path, m), val, m, callback, true));\n }\n });\n } else {\n this._walk(val, m => {\n if (this._eval(safeLoc, val[m], m, path, parent, parentPropName)) {\n addRet(this._trace(x, val[m], push(path, m), val, m, callback, true));\n }\n });\n }\n } else if (loc[0] === '(') {\n // [(expr)] (dynamic property/index)\n if (this.currEval === false) {\n throw new Error('Eval [(expr)] prevented in JSONPath expression.');\n }\n // As this will resolve to a property name (but we don't know it\n // yet), property and parent information is relative to the\n // parent of the property to which this expression will resolve\n addRet(this._trace(unshift(this._eval(loc, val, path.at(-1), path.slice(0, -1), parent, parentPropName), x), val, path, parent, parentPropName, callback, hasArrExpr));\n } else if (loc[0] === '@') {\n // value type: @boolean(), etc.\n let addType = false;\n const valueType = loc.slice(1, -2);\n switch (valueType) {\n case 'scalar':\n if (!val || !['object', 'function'].includes(typeof val)) {\n addType = true;\n }\n break;\n case 'boolean':\n case 'string':\n case 'undefined':\n case 'function':\n if (typeof val === valueType) {\n addType = true;\n }\n break;\n case 'integer':\n if (Number.isFinite(val) && !(val % 1)) {\n addType = true;\n }\n break;\n case 'number':\n if (Number.isFinite(val)) {\n addType = true;\n }\n break;\n case 'nonFinite':\n if (typeof val === 'number' && !Number.isFinite(val)) {\n addType = true;\n }\n break;\n case 'object':\n if (val && typeof val === valueType) {\n addType = true;\n }\n break;\n case 'array':\n if (Array.isArray(val)) {\n addType = true;\n }\n break;\n case 'other':\n addType = this.currOtherTypeCallback(val, path, parent, parentPropName);\n break;\n case 'null':\n if (val === null) {\n addType = true;\n }\n break;\n /* c8 ignore next 2 */\n default:\n throw new TypeError('Unknown value type ' + valueType);\n }\n if (addType) {\n retObj = {\n path,\n value: val,\n parent,\n parentProperty: parentPropName\n };\n this._handleCallback(retObj, callback, 'value');\n return retObj;\n }\n // `-escaped property\n } else if (loc[0] === '`' && val && Object.hasOwn(val, loc.slice(1))) {\n const locProp = loc.slice(1);\n addRet(this._trace(x, val[locProp], push(path, locProp), val, locProp, callback, hasArrExpr, true));\n } else if (loc.includes(',')) {\n // [name1,name2,...]\n const parts = loc.split(',');\n for (const part of parts) {\n addRet(this._trace(unshift(part, x), val, path, parent, parentPropName, callback, true));\n }\n // simple case--directly follow property\n } else if (!literalPriority && val && Object.hasOwn(val, loc)) {\n addRet(this._trace(x, val[loc], push(path, loc), val, loc, callback, hasArrExpr, true));\n }\n\n // We check the resulting values for parent selections. For parent\n // selections we discard the value object and continue the trace with the\n // current val object\n if (this._hasParentSelector) {\n for (let t = 0; t < ret.length; t++) {\n const rett = ret[t];\n if (rett && rett.isParentSelector) {\n const tmp = this._trace(rett.expr, val, rett.path, parent, parentPropName, callback, hasArrExpr);\n if (Array.isArray(tmp)) {\n ret[t] = tmp[0];\n const tl = tmp.length;\n for (let tt = 1; tt < tl; tt++) {\n // eslint-disable-next-line @stylistic/max-len -- Long\n // eslint-disable-next-line sonarjs/updated-loop-counter -- Convenient\n t++;\n ret.splice(t, 0, tmp[tt]);\n }\n } else {\n ret[t] = tmp;\n }\n }\n }\n }\n return ret;\n};\nJSONPath.prototype._walk = function (val, f) {\n if (Array.isArray(val)) {\n const n = val.length;\n for (let i = 0; i < n; i++) {\n f(i);\n }\n } else if (val && typeof val === 'object') {\n Object.keys(val).forEach(m => {\n f(m);\n });\n }\n};\nJSONPath.prototype._slice = function (loc, expr, val, path, parent, parentPropName, callback) {\n if (!Array.isArray(val)) {\n return undefined;\n }\n const len = val.length,\n parts = loc.split(':'),\n step = parts[2] && Number.parseInt(parts[2]) || 1;\n let start = parts[0] && Number.parseInt(parts[0]) || 0,\n end = parts[1] && Number.parseInt(parts[1]) || len;\n start = start < 0 ? Math.max(0, start + len) : Math.min(len, start);\n end = end < 0 ? Math.max(0, end + len) : Math.min(len, end);\n const ret = [];\n for (let i = start; i < end; i += step) {\n const tmp = this._trace(unshift(i, expr), val, path, parent, parentPropName, callback, true);\n // Should only be possible to be an array here since first part of\n // ``unshift(i, expr)` passed in above would not be empty, nor `~`,\n // nor begin with `@` (as could return objects)\n // This was causing excessive stack size in Node (with or\n // without Babel) against our performance test: `ret.push(...tmp);`\n tmp.forEach(t => {\n ret.push(t);\n });\n }\n return ret;\n};\nJSONPath.prototype._eval = function (code, _v, _vname, path, parent, parentPropName) {\n this.currSandbox._$_parentProperty = parentPropName;\n this.currSandbox._$_parent = parent;\n this.currSandbox._$_property = _vname;\n this.currSandbox._$_root = this.json;\n this.currSandbox._$_v = _v;\n const containsPath = code.includes('@path');\n if (containsPath) {\n this.currSandbox._$_path = JSONPath.toPathString(path.concat([_vname]));\n }\n const scriptCacheKey = this.currEval + 'Script:' + code;\n if (!JSONPath.cache[scriptCacheKey]) {\n let script = code.replaceAll('@parentProperty', '_$_parentProperty').replaceAll('@parent', '_$_parent').replaceAll('@property', '_$_property').replaceAll('@root', '_$_root').replaceAll(/@([.\\s)[])/gu, '_$_v$1');\n if (containsPath) {\n script = script.replaceAll('@path', '_$_path');\n }\n if (this.currEval === 'safe' || this.currEval === true || this.currEval === undefined) {\n JSONPath.cache[scriptCacheKey] = new this.safeVm.Script(script);\n } else if (this.currEval === 'native') {\n JSONPath.cache[scriptCacheKey] = new this.vm.Script(script);\n } else if (typeof this.currEval === 'function' && this.currEval.prototype && Object.hasOwn(this.currEval.prototype, 'runInNewContext')) {\n const CurrEval = this.currEval;\n JSONPath.cache[scriptCacheKey] = new CurrEval(script);\n } else if (typeof this.currEval === 'function') {\n JSONPath.cache[scriptCacheKey] = {\n runInNewContext: context => this.currEval(script, context)\n };\n } else {\n throw new TypeError(`Unknown \"eval\" property \"${this.currEval}\"`);\n }\n }\n try {\n return JSONPath.cache[scriptCacheKey].runInNewContext(this.currSandbox);\n } catch (e) {\n if (this.ignoreEvalErrors) {\n return false;\n }\n throw new Error('jsonPath: ' + e.message + ': ' + code);\n }\n};\n\n// PUBLIC CLASS PROPERTIES AND METHODS\n\n// Could store the cache object itself\nJSONPath.cache = {};\n\n/**\n * @param {string[]} pathArr Array to convert\n * @returns {string} The path string\n */\nJSONPath.toPathString = function (pathArr) {\n const x = pathArr,\n n = x.length;\n let p = '$';\n for (let i = 1; i < n; i++) {\n if (!/^(~|\\^|@.*?\\(\\))$/u.test(x[i])) {\n p += /^[0-9*]+$/u.test(x[i]) ? '[' + x[i] + ']' : \"['\" + x[i] + \"']\";\n }\n }\n return p;\n};\n\n/**\n * @param {string} pointer JSON Path\n * @returns {string} JSON Pointer\n */\nJSONPath.toPointer = function (pointer) {\n const x = pointer,\n n = x.length;\n let p = '';\n for (let i = 1; i < n; i++) {\n if (!/^(~|\\^|@.*?\\(\\))$/u.test(x[i])) {\n p += '/' + x[i].toString().replaceAll('~', '~0').replaceAll('/', '~1');\n }\n }\n return p;\n};\n\n/**\n * @param {string} expr Expression to convert\n * @returns {string[]}\n */\nJSONPath.toPathArray = function (expr) {\n const {\n cache\n } = JSONPath;\n if (cache[expr]) {\n return cache[expr].concat();\n }\n const subx = [];\n const normalized = expr\n // Properties\n .replaceAll(/@(?:null|boolean|number|string|integer|undefined|nonFinite|scalar|array|object|function|other)\\(\\)/gu, ';$&;')\n // Parenthetical evaluations (filtering and otherwise), directly\n // within brackets or single quotes\n .replaceAll(/[['](\\??\\(.*?\\))[\\]'](?!.\\])/gu, function ($0, $1) {\n return '[#' + (subx.push($1) - 1) + ']';\n })\n // Escape periods and tildes within properties\n .replaceAll(/\\[['\"]([^'\\]]*)['\"]\\]/gu, function ($0, prop) {\n return \"['\" + prop.replaceAll('.', '%@%').replaceAll('~', '%%@@%%') + \"']\";\n })\n // Properties operator\n .replaceAll('~', ';~;')\n // Split by property boundaries\n .replaceAll(/['\"]?\\.['\"]?(?![^[]*\\])|\\[['\"]?/gu, ';')\n // Reinsert periods within properties\n .replaceAll('%@%', '.')\n // Reinsert tildes within properties\n .replaceAll('%%@@%%', '~')\n // Parent\n .replaceAll(/(?:;)?(\\^+)(?:;)?/gu, function ($0, ups) {\n return ';' + ups.split('').join(';') + ';';\n })\n // Descendents\n .replaceAll(/;;;|;;/gu, ';..;')\n // Remove trailing\n .replaceAll(/;$|'?\\]|'$/gu, '');\n const exprList = normalized.split(';').map(function (exp) {\n const match = exp.match(/#(\\d+)/u);\n return !match || !match[1] ? exp : subx[match[1]];\n });\n cache[expr] = exprList;\n return cache[expr].concat();\n};\nJSONPath.prototype.safeVm = {\n Script: SafeScript\n};\n\nJSONPath.prototype.vm = vm;\n\nexport { JSONPath };\n"],"names":["Object","e","Symbol","Math","String","Error","t","s","parseFloat","arguments","Array","Set","i","RegExp","SyntaxError","ReferenceError","TypeError","Number","r"],"mappings":"2BAAA,GAAoB,CAAC,CAAG,CAAC,EAAS,KACjC,IAAI,IAAI,KAAO,EACL,EAAoB,CAAC,CAAC,EAAY,IAAQ,CAAC,EAAoB,CAAC,CAAC,EAAS,IACzEA,OAAO,cAAc,CAAC,EAAS,EAAK,CAAE,WAAY,GAAM,IAAK,CAAU,CAAC,EAAI,AAAC,EAGzF,ECNA,EAAoB,CAAC,CAAG,CAAC,EAAK,IAAUA,OAAO,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,EAAK,GCClF,EAAoB,CAAC,CAAG,AAACC,IACrB,AAAkB,aAAlB,OAAOC,QAA0BA,OAAO,WAAW,EACrDF,OAAO,cAAc,CAACC,EAASC,OAAO,WAAW,CAAE,CAAE,MAAO,QAAS,GAEtEF,OAAO,cAAc,CAACC,EAAS,aAAc,CAAE,MA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AC,GAAU,CAAK,CAAC,EAAE,CAAS,CAAI,CAAC,CAAK,CAAC,EAAE,CAAC,CAApBA,CAC/B,GAEA,OADA,CAAK,CAACA,EAAK,CAAG,EACP,CAAK,CAACA,EAAK,CAAC,MAAM,EAC3B,EACA,EAAS,SAAS,CAAC,MAAM,CAAG,CAC1B,OApsBF,MAIE,YAAYA,CAAI,CAAE,CAChB,IAAI,CAAC,IAAI,CAAGA,EACZ,IAAI,CAAC,GAAG,CAAG,EAAK,IAAI,CAAC,IAAI,CAC3B,CAOA,gBAAgB,CAAO,CAAE,CAEvB,IAAM,EAASD,OAAO,MAAM,CAACA,OAAO,MAAM,CAAC,MAAO,GAClD,OAAO,EAAS,OAAO,CAAC,IAAI,CAAC,GAAG,CAAE,EACpC,CACF,CAkrBA,EAEA,EAAS,SAAS,CAAC,EAAE,CAAG,E"} \ No newline at end of file diff --git a/packages/node_modules/limiter/index.js.map b/packages/node_modules/limiter/index.js.map new file mode 100644 index 00000000000..1daad04b2c9 --- /dev/null +++ b/packages/node_modules/limiter/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"limiter/index.js","sources":["webpack:///./limiter/lib/clock.js","webpack:///./limiter/lib/rateLimiter.js","webpack:///./limiter/lib/tokenBucket.js","webpack:///./limiter/index.js"],"sourcesContent":["var getMilliseconds = function() {\r\n if (typeof process !== 'undefined' && process.hrtime) {\r\n var hrtime = process.hrtime();\r\n var seconds = hrtime[0];\r\n var nanoseconds = hrtime[1];\r\n\r\n return seconds * 1e3 + Math.floor(nanoseconds / 1e6);\r\n }\r\n\r\n return new Date().getTime();\r\n}\r\n\r\nmodule.exports = getMilliseconds;\r\n","var TokenBucket = require('./tokenBucket');\r\nvar getMilliseconds = require('./clock');\r\n\r\n/**\r\n * A generic rate limiter. Underneath the hood, this uses a token bucket plus\r\n * an additional check to limit how many tokens we can remove each interval.\r\n * @author John Hurliman \r\n *\r\n * @param {Number} tokensPerInterval Maximum number of tokens that can be\r\n * removed at any given moment and over the course of one interval.\r\n * @param {String|Number} interval The interval length in milliseconds, or as\r\n * one of the following strings: 'second', 'minute', 'hour', day'.\r\n * @param {Boolean} fireImmediately Optional. Whether or not the callback\r\n * will fire immediately when rate limiting is in effect (default is false).\r\n */\r\nvar RateLimiter = function(tokensPerInterval, interval, fireImmediately) {\r\n this.tokenBucket = new TokenBucket(tokensPerInterval, tokensPerInterval,\r\n interval, null);\r\n\r\n // Fill the token bucket to start\r\n this.tokenBucket.content = tokensPerInterval;\r\n\r\n this.curIntervalStart = getMilliseconds();\r\n this.tokensThisInterval = 0;\r\n this.fireImmediately = fireImmediately;\r\n};\r\n\r\nRateLimiter.prototype = {\r\n tokenBucket: null,\r\n curIntervalStart: 0,\r\n tokensThisInterval: 0,\r\n fireImmediately: false,\r\n\r\n /**\r\n * Remove the requested number of tokens and fire the given callback. If the\r\n * rate limiter contains enough tokens and we haven't spent too many tokens\r\n * in this interval already, this will happen immediately. Otherwise, the\r\n * removal and callback will happen when enough tokens become available.\r\n * @param {Number} count The number of tokens to remove.\r\n * @param {Function} callback(err, remainingTokens)\r\n * @returns {Boolean} True if the callback was fired immediately, otherwise\r\n * false.\r\n */\r\n removeTokens: function(count, callback) {\r\n // Make sure the request isn't for more than we can handle\r\n if (count > this.tokenBucket.bucketSize) {\r\n process.nextTick(callback.bind(null, 'Requested tokens ' + count +\r\n ' exceeds maximum tokens per interval ' + this.tokenBucket.bucketSize,\r\n null));\r\n return false;\r\n }\r\n\r\n var self = this;\r\n var now = getMilliseconds();\r\n\r\n // Advance the current interval and reset the current interval token count\r\n // if needed\r\n if (now < this.curIntervalStart\r\n || now - this.curIntervalStart >= this.tokenBucket.interval) {\r\n this.curIntervalStart = now;\r\n this.tokensThisInterval = 0;\r\n }\r\n\r\n // If we don't have enough tokens left in this interval, wait until the\r\n // next interval\r\n if (count > this.tokenBucket.tokensPerInterval - this.tokensThisInterval) {\r\n if (this.fireImmediately) {\r\n process.nextTick(callback.bind(null, null, -1));\r\n } else {\r\n var waitInterval = Math.ceil(\r\n this.curIntervalStart + this.tokenBucket.interval - now);\r\n\r\n setTimeout(function() {\r\n self.tokenBucket.removeTokens(count, afterTokensRemoved);\r\n }, waitInterval);\r\n }\r\n return false;\r\n }\r\n\r\n // Remove the requested number of tokens from the token bucket\r\n return this.tokenBucket.removeTokens(count, afterTokensRemoved);\r\n\r\n function afterTokensRemoved(err, tokensRemaining) {\r\n if (err) return callback(err, null);\r\n\r\n self.tokensThisInterval += count;\r\n callback(null, tokensRemaining);\r\n }\r\n },\r\n\r\n /**\r\n * Attempt to remove the requested number of tokens and return immediately.\r\n * If the bucket (and any parent buckets) contains enough tokens and we\r\n * haven't spent too many tokens in this interval already, this will return\r\n * true. Otherwise, false is returned.\r\n * @param {Number} count The number of tokens to remove.\r\n * @param {Boolean} True if the tokens were successfully removed, otherwise\r\n * false.\r\n */\r\n tryRemoveTokens: function(count) {\r\n // Make sure the request isn't for more than we can handle\r\n if (count > this.tokenBucket.bucketSize)\r\n return false;\r\n\r\n var now = getMilliseconds();\r\n\r\n // Advance the current interval and reset the current interval token count\r\n // if needed\r\n if (now < this.curIntervalStart\r\n || now - this.curIntervalStart >= this.tokenBucket.interval) {\r\n this.curIntervalStart = now;\r\n this.tokensThisInterval = 0;\r\n }\r\n\r\n // If we don't have enough tokens left in this interval, return false\r\n if (count > this.tokenBucket.tokensPerInterval - this.tokensThisInterval)\r\n return false;\r\n\r\n // Try to remove the requested number of tokens from the token bucket\r\n var removed = this.tokenBucket.tryRemoveTokens(count);\r\n if (removed) {\r\n this.tokensThisInterval += count;\r\n }\r\n return removed;\r\n },\r\n\r\n /**\r\n * Returns the number of tokens remaining in the TokenBucket.\r\n * @returns {Number} The number of tokens remaining.\r\n */\r\n getTokensRemaining: function () {\r\n this.tokenBucket.drip();\r\n return this.tokenBucket.content;\r\n }\r\n};\r\n\r\nmodule.exports = RateLimiter;\r\n","\r\n/**\r\n * A hierarchical token bucket for rate limiting. See\r\n * http://en.wikipedia.org/wiki/Token_bucket for more information.\r\n * @author John Hurliman \r\n *\r\n * @param {Number} bucketSize Maximum number of tokens to hold in the bucket.\r\n * Also known as the burst rate.\r\n * @param {Number} tokensPerInterval Number of tokens to drip into the bucket\r\n * over the course of one interval.\r\n * @param {String|Number} interval The interval length in milliseconds, or as\r\n * one of the following strings: 'second', 'minute', 'hour', day'.\r\n * @param {TokenBucket} parentBucket Optional. A token bucket that will act as\r\n * the parent of this bucket.\r\n */\r\nvar TokenBucket = function(bucketSize, tokensPerInterval, interval, parentBucket) {\r\n this.bucketSize = bucketSize;\r\n this.tokensPerInterval = tokensPerInterval;\r\n\r\n if (typeof interval === 'string') {\r\n switch (interval) {\r\n case 'sec': case 'second':\r\n this.interval = 1000; break;\r\n case 'min': case 'minute':\r\n this.interval = 1000 * 60; break;\r\n case 'hr': case 'hour':\r\n this.interval = 1000 * 60 * 60; break;\r\n case 'day':\r\n this.interval = 1000 * 60 * 60 * 24; break;\r\n default:\r\n throw new Error('Invaid interval ' + interval);\r\n }\r\n } else {\r\n this.interval = interval;\r\n }\r\n\r\n this.parentBucket = parentBucket;\r\n this.content = 0;\r\n this.lastDrip = +new Date();\r\n};\r\n\r\nTokenBucket.prototype = {\r\n bucketSize: 1,\r\n tokensPerInterval: 1,\r\n interval: 1000,\r\n parentBucket: null,\r\n content: 0,\r\n lastDrip: 0,\r\n\r\n /**\r\n * Remove the requested number of tokens and fire the given callback. If the\r\n * bucket (and any parent buckets) contains enough tokens this will happen\r\n * immediately. Otherwise, the removal and callback will happen when enough\r\n * tokens become available.\r\n * @param {Number} count The number of tokens to remove.\r\n * @param {Function} callback(err, remainingTokens)\r\n * @returns {Boolean} True if the callback was fired immediately, otherwise\r\n * false.\r\n */\r\n removeTokens: function(count, callback) {\r\n var self = this;\r\n\r\n // Is this an infinite size bucket?\r\n if (!this.bucketSize) {\r\n process.nextTick(callback.bind(null, null, count, Number.POSITIVE_INFINITY));\r\n return true;\r\n }\r\n\r\n // Make sure the bucket can hold the requested number of tokens\r\n if (count > this.bucketSize) {\r\n process.nextTick(callback.bind(null, 'Requested tokens ' + count + ' exceeds bucket size ' +\r\n this.bucketSize, null));\r\n return false;\r\n }\r\n\r\n // Drip new tokens into this bucket\r\n this.drip();\r\n\r\n // If we don't have enough tokens in this bucket, come back later\r\n if (count > this.content)\r\n return comeBackLater();\r\n\r\n if (this.parentBucket) {\r\n // Remove the requested from the parent bucket first\r\n return this.parentBucket.removeTokens(count, function(err, remainingTokens) {\r\n if (err) return callback(err, null);\r\n\r\n // Check that we still have enough tokens in this bucket\r\n if (count > self.content)\r\n return comeBackLater();\r\n\r\n // Tokens were removed from the parent bucket, now remove them from\r\n // this bucket and fire the callback. Note that we look at the current\r\n // bucket and parent bucket's remaining tokens and return the smaller\r\n // of the two values\r\n self.content -= count;\r\n callback(null, Math.min(remainingTokens, self.content));\r\n });\r\n } else {\r\n // Remove the requested tokens from this bucket and fire the callback\r\n this.content -= count;\r\n process.nextTick(callback.bind(null, null, this.content));\r\n return true;\r\n }\r\n\r\n function comeBackLater() {\r\n // How long do we need to wait to make up the difference in tokens?\r\n var waitInterval = Math.ceil(\r\n (count - self.content) * (self.interval / self.tokensPerInterval));\r\n setTimeout(function() { self.removeTokens(count, callback); }, waitInterval);\r\n return false;\r\n }\r\n },\r\n\r\n /**\r\n * Attempt to remove the requested number of tokens and return immediately.\r\n * If the bucket (and any parent buckets) contains enough tokens this will\r\n * return true, otherwise false is returned.\r\n * @param {Number} count The number of tokens to remove.\r\n * @param {Boolean} True if the tokens were successfully removed, otherwise\r\n * false.\r\n */\r\n tryRemoveTokens: function(count) {\r\n // Is this an infinite size bucket?\r\n if (!this.bucketSize)\r\n return true;\r\n\r\n // Make sure the bucket can hold the requested number of tokens\r\n if (count > this.bucketSize)\r\n return false;\r\n\r\n // Drip new tokens into this bucket\r\n this.drip();\r\n\r\n // If we don't have enough tokens in this bucket, return false\r\n if (count > this.content)\r\n return false;\r\n\r\n // Try to remove the requested tokens from the parent bucket\r\n if (this.parentBucket && !this.parentBucket.tryRemoveTokens(count))\r\n return false;\r\n\r\n // Remove the requested tokens from this bucket and return\r\n this.content -= count;\r\n return true;\r\n },\r\n\r\n /**\r\n * Add any new tokens to the bucket since the last drip.\r\n * @returns {Boolean} True if new tokens were added, otherwise false.\r\n */\r\n drip: function() {\r\n if (!this.tokensPerInterval) {\r\n this.content = this.bucketSize;\r\n return;\r\n }\r\n\r\n var now = +new Date();\r\n var deltaMS = Math.max(now - this.lastDrip, 0);\r\n this.lastDrip = now;\r\n\r\n var dripAmount = deltaMS * (this.tokensPerInterval / this.interval);\r\n this.content = Math.min(this.content + dripAmount, this.bucketSize);\r\n }\r\n};\r\n\r\nmodule.exports = TokenBucket;\r\n","\r\nexports.RateLimiter = require('./lib/rateLimiter');\r\nexports.TokenBucket = require('./lib/tokenBucket');\r\n"],"names":["process","Math","Date","t","setTimeout","Error"],"mappings":"kDAYA,EAAO,OAAO,CAZQ,WACpB,GAAI,AAAmB,aAAnB,OAAOA,SAA2BA,QAAQ,MAAM,CAAE,CACpD,IAAI,EAASA,QAAQ,MAAM,GAI3B,OAAO,AAAU,IAHH,CAAM,CAAC,EAAE,CAGCC,KAAK,KAAK,CAAC,AAFjB,CAAM,CAAC,EAAE,CAEsB,IACnD,CAEA,OAAO,IAAIC,OAAO,OAAO,EAC3B,C,iDCVA,IAAI,EAAc,EAAQ,gCACtB,EAAkB,EAAQ,0BAc1B,EAAc,SAASC,CAAiB,CAAE,CAAQ,CAAE,CAAe,EACrE,IAAI,CAAC,WAAW,CAAG,IAAI,EAAYA,EAAmBA,EACpD,EAAU,MAGZ,IAAI,CAAC,WAAW,CAAC,OAAO,CAAGA,EAE3B,IAAI,CAAC,gBAAgB,CAAG,IACxB,IAAI,CAAC,kBAAkB,CAAG,EAC1B,IAAI,CAAC,eAAe,CAAG,CACzB,CAEA,GAAY,SAAS,CAAG,CACtB,YAAa,KACb,iBAAkB,EAClB,mBAAoB,EACpB,gBAAiB,GAYjB,aAAc,SAAS,CAAK,CAAE,CAAQ,E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EAAa,EAAW,KAAI,CAAC,iBAAiB,CAAG,IAAI,CAAC,QAAQ,AAAD,CACjE,KAAI,CAAC,OAAO,CAAGA,KAAK,GAAG,CAAC,IAAI,CAAC,OAAO,CAAG,EAAY,IAAI,CAAC,UAAU,CACpE,CACF,EAEA,EAAO,OAAO,CAAG,C,qICrKjB,C,EAAQ,WAAW,CAAG,EAAtB,gCACA,A,EAAQ,WAAW,CAAG,EAAtB,gC"} \ No newline at end of file diff --git a/packages/node_modules/lodash.sortby/index.js.map b/packages/node_modules/lodash.sortby/index.js.map new file mode 100644 index 00000000000..c795ae27220 --- /dev/null +++ b/packages/node_modules/lodash.sortby/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"lodash.sortby/index.js","sources":["webpack:///./lodash.sortby/index.js","webpack:///webpack/runtime/node_module_decorator"],"sourcesContent":["/**\n * lodash (Custom Build) \n * Build: `lodash modularize exports=\"npm\" -o ./`\n * Copyright jQuery Foundation and other contributors \n * Released under MIT license \n * Based on Underscore.js 1.8.3 \n * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors\n */\n\n/** Used as the size to enable large array optimizations. */\nvar LARGE_ARRAY_SIZE = 200;\n\n/** Used as the `TypeError` message for \"Functions\" methods. */\nvar FUNC_ERROR_TEXT = 'Expected a function';\n\n/** Used to stand-in for `undefined` hash values. */\nvar HASH_UNDEFINED = '__lodash_hash_undefined__';\n\n/** Used to compose bitmasks for comparison styles. */\nvar UNORDERED_COMPARE_FLAG = 1,\n PARTIAL_COMPARE_FLAG = 2;\n\n/** Used as references for various `Number` constants. */\nvar INFINITY = 1 / 0,\n MAX_SAFE_INTEGER = 9007199254740991;\n\n/** `Object#toString` result references. */\nvar argsTag = '[object Arguments]',\n arrayTag = '[object Array]',\n boolTag = '[object Boolean]',\n dateTag = '[object Date]',\n errorTag = '[object Error]',\n funcTag = '[object Function]',\n genTag = '[object GeneratorFunction]',\n mapTag = '[object Map]',\n numberTag = '[object Number]',\n objectTag = '[object Object]',\n promiseTag = '[object Promise]',\n regexpTag = '[object RegExp]',\n setTag = '[object Set]',\n stringTag = '[object String]',\n symbolTag = '[object Symbol]',\n weakMapTag = '[object WeakMap]';\n\nvar arrayBufferTag = '[object ArrayBuffer]',\n dataViewTag = '[object DataView]',\n float32Tag = '[object Float32Array]',\n float64Tag = '[object Float64Array]',\n int8Tag = '[object Int8Array]',\n int16Tag = '[object Int16Array]',\n int32Tag = '[object Int32Array]',\n uint8Tag = '[object Uint8Array]',\n uint8ClampedTag = '[object Uint8ClampedArray]',\n uint16Tag = '[object Uint16Array]',\n uint32Tag = '[object Uint32Array]';\n\n/** Used to match property names within property paths. */\nvar reIsDeepProp = /\\.|\\[(?:[^[\\]]*|([\"'])(?:(?!\\1)[^\\\\]|\\\\.)*?\\1)\\]/,\n reIsPlainProp = /^\\w*$/,\n reLeadingDot = /^\\./,\n rePropName = /[^.[\\]]+|\\[(?:(-?\\d+(?:\\.\\d+)?)|([\"'])((?:(?!\\2)[^\\\\]|\\\\.)*?)\\2)\\]|(?=(?:\\.|\\[\\])(?:\\.|\\[\\]|$))/g;\n\n/**\n * Used to match `RegExp`\n * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).\n */\nvar reRegExpChar = /[\\\\^$.*+?()[\\]{}|]/g;\n\n/** Used to match backslashes in property paths. */\nvar reEscapeChar = /\\\\(\\\\)?/g;\n\n/** Used to detect host constructors (Safari). */\nvar reIsHostCtor = /^\\[object .+?Constructor\\]$/;\n\n/** Used to detect unsigned integer values. */\nvar reIsUint = /^(?:0|[1-9]\\d*)$/;\n\n/** Used to identify `toStringTag` values of typed arrays. */\nvar typedArrayTags = {};\ntypedArrayTags[float32Tag] = typedArrayTags[float64Tag] =\ntypedArrayTags[int8Tag] = typedArrayTags[int16Tag] =\ntypedArrayTags[int32Tag] = typedArrayTags[uint8Tag] =\ntypedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] =\ntypedArrayTags[uint32Tag] = true;\ntypedArrayTags[argsTag] = typedArrayTags[arrayTag] =\ntypedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] =\ntypedArrayTags[dataViewTag] = typedArrayTags[dateTag] =\ntypedArrayTags[errorTag] = typedArrayTags[funcTag] =\ntypedArrayTags[mapTag] = typedArrayTags[numberTag] =\ntypedArrayTags[objectTag] = typedArrayTags[regexpTag] =\ntypedArrayTags[setTag] = typedArrayTags[stringTag] =\ntypedArrayTags[weakMapTag] = false;\n\n/** Detect free variable `global` from Node.js. */\nvar freeGlobal = typeof global == 'object' && global && global.Object === Object && global;\n\n/** Detect free variable `self`. */\nvar freeSelf = typeof self == 'object' && self && self.Object === Object && self;\n\n/** Used as a reference to the global object. */\nvar root = freeGlobal || freeSelf || Function('return this')();\n\n/** Detect free variable `exports`. */\nvar freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports;\n\n/** Detect free variable `module`. */\nvar freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;\n\n/** Detect the popular CommonJS extension `module.exports`. */\nvar moduleExports = freeModule && freeModule.exports === freeExports;\n\n/** Detect free variable `process` from Node.js. */\nvar freeProcess = moduleExports && freeGlobal.process;\n\n/** Used to access faster Node.js helpers. */\nvar nodeUtil = (function() {\n try {\n return freeProcess && freeProcess.binding('util');\n } catch (e) {}\n}());\n\n/* Node.js helper references. */\nvar nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;\n\n/**\n * A faster alternative to `Function#apply`, this function invokes `func`\n * with the `this` binding of `thisArg` and the arguments of `args`.\n *\n * @private\n * @param {Function} func The function to invoke.\n * @param {*} thisArg The `this` binding of `func`.\n * @param {Array} args The arguments to invoke `func` with.\n * @returns {*} Returns the result of `func`.\n */\nfunction apply(func, thisArg, args) {\n switch (args.length) {\n case 0: return func.call(thisArg);\n case 1: return func.call(thisArg, args[0]);\n case 2: return func.call(thisArg, args[0], args[1]);\n case 3: return func.call(thisArg, args[0], args[1], args[2]);\n }\n return func.apply(thisArg, args);\n}\n\n/**\n * A specialized version of `_.map` for arrays without support for iteratee\n * shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns the new mapped array.\n */\nfunction arrayMap(array, iteratee) {\n var index = -1,\n length = array ? array.length : 0,\n result = Array(length);\n\n while (++index < length) {\n result[index] = iteratee(array[index], index, array);\n }\n return result;\n}\n\n/**\n * Appends the elements of `values` to `array`.\n *\n * @private\n * @param {Array} array The array to modify.\n * @param {Array} values The values to append.\n * @returns {Array} Returns `array`.\n */\nfunction arrayPush(array, values) {\n var index = -1,\n length = values.length,\n offset = array.length;\n\n while (++index < length) {\n array[offset + index] = values[index];\n }\n return array;\n}\n\n/**\n * A specialized version of `_.some` for arrays without support for iteratee\n * shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} predicate The function invoked per iteration.\n * @returns {boolean} Returns `true` if any element passes the predicate check,\n * else `false`.\n */\nfunction arraySome(array, predicate) {\n var index = -1,\n length = array ? array.length : 0;\n\n while (++index < length) {\n if (predicate(array[index], index, array)) {\n return true;\n }\n }\n return false;\n}\n\n/**\n * The base implementation of `_.property` without support for deep paths.\n *\n * @private\n * @param {string} key The key of the property to get.\n * @returns {Function} Returns the new accessor function.\n */\nfunction baseProperty(key) {\n return function(object) {\n return object == null ? undefined : object[key];\n };\n}\n\n/**\n * The base implementation of `_.sortBy` which uses `comparer` to define the\n * sort order of `array` and replaces criteria objects with their corresponding\n * values.\n *\n * @private\n * @param {Array} array The array to sort.\n * @param {Function} comparer The function to define sort order.\n * @returns {Array} Returns `array`.\n */\nfunction baseSortBy(array, comparer) {\n var length = array.length;\n\n array.sort(comparer);\n while (length--) {\n array[length] = array[length].value;\n }\n return array;\n}\n\n/**\n * The base implementation of `_.times` without support for iteratee shorthands\n * or max array length checks.\n *\n * @private\n * @param {number} n The number of times to invoke `iteratee`.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns the array of results.\n */\nfunction baseTimes(n, iteratee) {\n var index = -1,\n result = Array(n);\n\n while (++index < n) {\n result[index] = iteratee(index);\n }\n return result;\n}\n\n/**\n * The base implementation of `_.unary` without support for storing metadata.\n *\n * @private\n * @param {Function} func The function to cap arguments for.\n * @returns {Function} Returns the new capped function.\n */\nfunction baseUnary(func) {\n return function(value) {\n return func(value);\n };\n}\n\n/**\n * Gets the value at `key` of `object`.\n *\n * @private\n * @param {Object} [object] The object to query.\n * @param {string} key The key of the property to get.\n * @returns {*} Returns the property value.\n */\nfunction getValue(object, key) {\n return object == null ? undefined : object[key];\n}\n\n/**\n * Checks if `value` is a host object in IE < 9.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a host object, else `false`.\n */\nfunction isHostObject(value) {\n // Many host objects are `Object` objects that can coerce to strings\n // despite having improperly defined `toString` methods.\n var result = false;\n if (value != null && typeof value.toString != 'function') {\n try {\n result = !!(value + '');\n } catch (e) {}\n }\n return result;\n}\n\n/**\n * Converts `map` to its key-value pairs.\n *\n * @private\n * @param {Object} map The map to convert.\n * @returns {Array} Returns the key-value pairs.\n */\nfunction mapToArray(map) {\n var index = -1,\n result = Array(map.size);\n\n map.forEach(function(value, key) {\n result[++index] = [key, value];\n });\n return result;\n}\n\n/**\n * Creates a unary function that invokes `func` with its argument transformed.\n *\n * @private\n * @param {Function} func The function to wrap.\n * @param {Function} transform The argument transform.\n * @returns {Function} Returns the new function.\n */\nfunction overArg(func, transform) {\n return function(arg) {\n return func(transform(arg));\n };\n}\n\n/**\n * Converts `set` to an array of its values.\n *\n * @private\n * @param {Object} set The set to convert.\n * @returns {Array} Returns the values.\n */\nfunction setToArray(set) {\n var index = -1,\n result = Array(set.size);\n\n set.forEach(function(value) {\n result[++index] = value;\n });\n return result;\n}\n\n/** Used for built-in method references. */\nvar arrayProto = Array.prototype,\n funcProto = Function.prototype,\n objectProto = Object.prototype;\n\n/** Used to detect overreaching core-js shims. */\nvar coreJsData = root['__core-js_shared__'];\n\n/** Used to detect methods masquerading as native. */\nvar maskSrcKey = (function() {\n var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || '');\n return uid ? ('Symbol(src)_1.' + uid) : '';\n}());\n\n/** Used to resolve the decompiled source of functions. */\nvar funcToString = funcProto.toString;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\nvar objectToString = objectProto.toString;\n\n/** Used to detect if a method is native. */\nvar reIsNative = RegExp('^' +\n funcToString.call(hasOwnProperty).replace(reRegExpChar, '\\\\$&')\n .replace(/hasOwnProperty|(function).*?(?=\\\\\\()| for .+?(?=\\\\\\])/g, '$1.*?') + '$'\n);\n\n/** Built-in value references. */\nvar Symbol = root.Symbol,\n Uint8Array = root.Uint8Array,\n propertyIsEnumerable = objectProto.propertyIsEnumerable,\n splice = arrayProto.splice,\n spreadableSymbol = Symbol ? Symbol.isConcatSpreadable : undefined;\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeKeys = overArg(Object.keys, Object),\n nativeMax = Math.max;\n\n/* Built-in method references that are verified to be native. */\nvar DataView = getNative(root, 'DataView'),\n Map = getNative(root, 'Map'),\n Promise = getNative(root, 'Promise'),\n Set = getNative(root, 'Set'),\n WeakMap = getNative(root, 'WeakMap'),\n nativeCreate = getNative(Object, 'create');\n\n/** Used to detect maps, sets, and weakmaps. */\nvar dataViewCtorString = toSource(DataView),\n mapCtorString = toSource(Map),\n promiseCtorString = toSource(Promise),\n setCtorString = toSource(Set),\n weakMapCtorString = toSource(WeakMap);\n\n/** Used to convert symbols to primitives and strings. */\nvar symbolProto = Symbol ? Symbol.prototype : undefined,\n symbolValueOf = symbolProto ? symbolProto.valueOf : undefined,\n symbolToString = symbolProto ? symbolProto.toString : undefined;\n\n/**\n * Creates a hash object.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\nfunction Hash(entries) {\n var index = -1,\n length = entries ? entries.length : 0;\n\n this.clear();\n while (++index < length) {\n var entry = entries[index];\n this.set(entry[0], entry[1]);\n }\n}\n\n/**\n * Removes all key-value entries from the hash.\n *\n * @private\n * @name clear\n * @memberOf Hash\n */\nfunction hashClear() {\n this.__data__ = nativeCreate ? nativeCreate(null) : {};\n}\n\n/**\n * Removes `key` and its value from the hash.\n *\n * @private\n * @name delete\n * @memberOf Hash\n * @param {Object} hash The hash to modify.\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\nfunction hashDelete(key) {\n return this.has(key) && delete this.__data__[key];\n}\n\n/**\n * Gets the hash value for `key`.\n *\n * @private\n * @name get\n * @memberOf Hash\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\nfunction hashGet(key) {\n var data = this.__data__;\n if (nativeCreate) {\n var result = data[key];\n return result === HASH_UNDEFINED ? undefined : result;\n }\n return hasOwnProperty.call(data, key) ? data[key] : undefined;\n}\n\n/**\n * Checks if a hash value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf Hash\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\nfunction hashHas(key) {\n var data = this.__data__;\n return nativeCreate ? data[key] !== undefined : hasOwnProperty.call(data, key);\n}\n\n/**\n * Sets the hash `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf Hash\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the hash instance.\n */\nfunction hashSet(key, value) {\n var data = this.__data__;\n data[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED : value;\n return this;\n}\n\n// Add methods to `Hash`.\nHash.prototype.clear = hashClear;\nHash.prototype['delete'] = hashDelete;\nHash.prototype.get = hashGet;\nHash.prototype.has = hashHas;\nHash.prototype.set = hashSet;\n\n/**\n * Creates an list cache object.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\nfunction ListCache(entries) {\n var index = -1,\n length = entries ? entries.length : 0;\n\n this.clear();\n while (++index < length) {\n var entry = entries[index];\n this.set(entry[0], entry[1]);\n }\n}\n\n/**\n * Removes all key-value entries from the list cache.\n *\n * @private\n * @name clear\n * @memberOf ListCache\n */\nfunction listCacheClear() {\n this.__data__ = [];\n}\n\n/**\n * Removes `key` and its value from the list cache.\n *\n * @private\n * @name delete\n * @memberOf ListCache\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\nfunction listCacheDelete(key) {\n var data = this.__data__,\n index = assocIndexOf(data, key);\n\n if (index < 0) {\n return false;\n }\n var lastIndex = data.length - 1;\n if (index == lastIndex) {\n data.pop();\n } else {\n splice.call(data, index, 1);\n }\n return true;\n}\n\n/**\n * Gets the list cache value for `key`.\n *\n * @private\n * @name get\n * @memberOf ListCache\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\nfunction listCacheGet(key) {\n var data = this.__data__,\n index = assocIndexOf(data, key);\n\n return index < 0 ? undefined : data[index][1];\n}\n\n/**\n * Checks if a list cache value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf ListCache\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\nfunction listCacheHas(key) {\n return assocIndexOf(this.__data__, key) > -1;\n}\n\n/**\n * Sets the list cache `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf ListCache\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the list cache instance.\n */\nfunction listCacheSet(key, value) {\n var data = this.__data__,\n index = assocIndexOf(data, key);\n\n if (index < 0) {\n data.push([key, value]);\n } else {\n data[index][1] = value;\n }\n return this;\n}\n\n// Add methods to `ListCache`.\nListCache.prototype.clear = listCacheClear;\nListCache.prototype['delete'] = listCacheDelete;\nListCache.prototype.get = listCacheGet;\nListCache.prototype.has = listCacheHas;\nListCache.prototype.set = listCacheSet;\n\n/**\n * Creates a map cache object to store key-value pairs.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\nfunction MapCache(entries) {\n var index = -1,\n length = entries ? entries.length : 0;\n\n this.clear();\n while (++index < length) {\n var entry = entries[index];\n this.set(entry[0], entry[1]);\n }\n}\n\n/**\n * Removes all key-value entries from the map.\n *\n * @private\n * @name clear\n * @memberOf MapCache\n */\nfunction mapCacheClear() {\n this.__data__ = {\n 'hash': new Hash,\n 'map': new (Map || ListCache),\n 'string': new Hash\n };\n}\n\n/**\n * Removes `key` and its value from the map.\n *\n * @private\n * @name delete\n * @memberOf MapCache\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\nfunction mapCacheDelete(key) {\n return getMapData(this, key)['delete'](key);\n}\n\n/**\n * Gets the map value for `key`.\n *\n * @private\n * @name get\n * @memberOf MapCache\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\nfunction mapCacheGet(key) {\n return getMapData(this, key).get(key);\n}\n\n/**\n * Checks if a map value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf MapCache\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\nfunction mapCacheHas(key) {\n return getMapData(this, key).has(key);\n}\n\n/**\n * Sets the map `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf MapCache\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the map cache instance.\n */\nfunction mapCacheSet(key, value) {\n getMapData(this, key).set(key, value);\n return this;\n}\n\n// Add methods to `MapCache`.\nMapCache.prototype.clear = mapCacheClear;\nMapCache.prototype['delete'] = mapCacheDelete;\nMapCache.prototype.get = mapCacheGet;\nMapCache.prototype.has = mapCacheHas;\nMapCache.prototype.set = mapCacheSet;\n\n/**\n *\n * Creates an array cache object to store unique values.\n *\n * @private\n * @constructor\n * @param {Array} [values] The values to cache.\n */\nfunction SetCache(values) {\n var index = -1,\n length = values ? values.length : 0;\n\n this.__data__ = new MapCache;\n while (++index < length) {\n this.add(values[index]);\n }\n}\n\n/**\n * Adds `value` to the array cache.\n *\n * @private\n * @name add\n * @memberOf SetCache\n * @alias push\n * @param {*} value The value to cache.\n * @returns {Object} Returns the cache instance.\n */\nfunction setCacheAdd(value) {\n this.__data__.set(value, HASH_UNDEFINED);\n return this;\n}\n\n/**\n * Checks if `value` is in the array cache.\n *\n * @private\n * @name has\n * @memberOf SetCache\n * @param {*} value The value to search for.\n * @returns {number} Returns `true` if `value` is found, else `false`.\n */\nfunction setCacheHas(value) {\n return this.__data__.has(value);\n}\n\n// Add methods to `SetCache`.\nSetCache.prototype.add = SetCache.prototype.push = setCacheAdd;\nSetCache.prototype.has = setCacheHas;\n\n/**\n * Creates a stack cache object to store key-value pairs.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\nfunction Stack(entries) {\n this.__data__ = new ListCache(entries);\n}\n\n/**\n * Removes all key-value entries from the stack.\n *\n * @private\n * @name clear\n * @memberOf Stack\n */\nfunction stackClear() {\n this.__data__ = new ListCache;\n}\n\n/**\n * Removes `key` and its value from the stack.\n *\n * @private\n * @name delete\n * @memberOf Stack\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\nfunction stackDelete(key) {\n return this.__data__['delete'](key);\n}\n\n/**\n * Gets the stack value for `key`.\n *\n * @private\n * @name get\n * @memberOf Stack\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\nfunction stackGet(key) {\n return this.__data__.get(key);\n}\n\n/**\n * Checks if a stack value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf Stack\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\nfunction stackHas(key) {\n return this.__data__.has(key);\n}\n\n/**\n * Sets the stack `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf Stack\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the stack cache instance.\n */\nfunction stackSet(key, value) {\n var cache = this.__data__;\n if (cache instanceof ListCache) {\n var pairs = cache.__data__;\n if (!Map || (pairs.length < LARGE_ARRAY_SIZE - 1)) {\n pairs.push([key, value]);\n return this;\n }\n cache = this.__data__ = new MapCache(pairs);\n }\n cache.set(key, value);\n return this;\n}\n\n// Add methods to `Stack`.\nStack.prototype.clear = stackClear;\nStack.prototype['delete'] = stackDelete;\nStack.prototype.get = stackGet;\nStack.prototype.has = stackHas;\nStack.prototype.set = stackSet;\n\n/**\n * Creates an array of the enumerable property names of the array-like `value`.\n *\n * @private\n * @param {*} value The value to query.\n * @param {boolean} inherited Specify returning inherited property names.\n * @returns {Array} Returns the array of property names.\n */\nfunction arrayLikeKeys(value, inherited) {\n // Safari 8.1 makes `arguments.callee` enumerable in strict mode.\n // Safari 9 makes `arguments.length` enumerable in strict mode.\n var result = (isArray(value) || isArguments(value))\n ? baseTimes(value.length, String)\n : [];\n\n var length = result.length,\n skipIndexes = !!length;\n\n for (var key in value) {\n if ((inherited || hasOwnProperty.call(value, key)) &&\n !(skipIndexes && (key == 'length' || isIndex(key, length)))) {\n result.push(key);\n }\n }\n return result;\n}\n\n/**\n * Gets the index at which the `key` is found in `array` of key-value pairs.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {*} key The key to search for.\n * @returns {number} Returns the index of the matched value, else `-1`.\n */\nfunction assocIndexOf(array, key) {\n var length = array.length;\n while (length--) {\n if (eq(array[length][0], key)) {\n return length;\n }\n }\n return -1;\n}\n\n/**\n * The base implementation of `_.forEach` without support for iteratee shorthands.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array|Object} Returns `collection`.\n */\nvar baseEach = createBaseEach(baseForOwn);\n\n/**\n * The base implementation of `_.flatten` with support for restricting flattening.\n *\n * @private\n * @param {Array} array The array to flatten.\n * @param {number} depth The maximum recursion depth.\n * @param {boolean} [predicate=isFlattenable] The function invoked per iteration.\n * @param {boolean} [isStrict] Restrict to values that pass `predicate` checks.\n * @param {Array} [result=[]] The initial result value.\n * @returns {Array} Returns the new flattened array.\n */\nfunction baseFlatten(array, depth, predicate, isStrict, result) {\n var index = -1,\n length = array.length;\n\n predicate || (predicate = isFlattenable);\n result || (result = []);\n\n while (++index < length) {\n var value = array[index];\n if (depth > 0 && predicate(value)) {\n if (depth > 1) {\n // Recursively flatten arrays (susceptible to call stack limits).\n baseFlatten(value, depth - 1, predicate, isStrict, result);\n } else {\n arrayPush(result, value);\n }\n } else if (!isStrict) {\n result[result.length] = value;\n }\n }\n return result;\n}\n\n/**\n * The base implementation of `baseForOwn` which iterates over `object`\n * properties returned by `keysFunc` and invokes `iteratee` for each property.\n * Iteratee functions may exit iteration early by explicitly returning `false`.\n *\n * @private\n * @param {Object} object The object to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @param {Function} keysFunc The function to get the keys of `object`.\n * @returns {Object} Returns `object`.\n */\nvar baseFor = createBaseFor();\n\n/**\n * The base implementation of `_.forOwn` without support for iteratee shorthands.\n *\n * @private\n * @param {Object} object The object to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Object} Returns `object`.\n */\nfunction baseForOwn(object, iteratee) {\n return object && baseFor(object, iteratee, keys);\n}\n\n/**\n * The base implementation of `_.get` without support for default values.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {Array|string} path The path of the property to get.\n * @returns {*} Returns the resolved value.\n */\nfunction baseGet(object, path) {\n path = isKey(path, object) ? [path] : castPath(path);\n\n var index = 0,\n length = path.length;\n\n while (object != null && index < length) {\n object = object[toKey(path[index++])];\n }\n return (index && index == length) ? object : undefined;\n}\n\n/**\n * The base implementation of `getTag`.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the `toStringTag`.\n */\nfunction baseGetTag(value) {\n return objectToString.call(value);\n}\n\n/**\n * The base implementation of `_.hasIn` without support for deep paths.\n *\n * @private\n * @param {Object} [object] The object to query.\n * @param {Array|string} key The key to check.\n * @returns {boolean} Returns `true` if `key` exists, else `false`.\n */\nfunction baseHasIn(object, key) {\n return object != null && key in Object(object);\n}\n\n/**\n * The base implementation of `_.isEqual` which supports partial comparisons\n * and tracks traversed objects.\n *\n * @private\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @param {Function} [customizer] The function to customize comparisons.\n * @param {boolean} [bitmask] The bitmask of comparison flags.\n * The bitmask may be composed of the following flags:\n * 1 - Unordered comparison\n * 2 - Partial comparison\n * @param {Object} [stack] Tracks traversed `value` and `other` objects.\n * @returns {boolean} Returns `true` if the values are equivalent, else `false`.\n */\nfunction baseIsEqual(value, other, customizer, bitmask, stack) {\n if (value === other) {\n return true;\n }\n if (value == null || other == null || (!isObject(value) && !isObjectLike(other))) {\n return value !== value && other !== other;\n }\n return baseIsEqualDeep(value, other, baseIsEqual, customizer, bitmask, stack);\n}\n\n/**\n * A specialized version of `baseIsEqual` for arrays and objects which performs\n * deep comparisons and tracks traversed objects enabling objects with circular\n * references to be compared.\n *\n * @private\n * @param {Object} object The object to compare.\n * @param {Object} other The other object to compare.\n * @param {Function} equalFunc The function to determine equivalents of values.\n * @param {Function} [customizer] The function to customize comparisons.\n * @param {number} [bitmask] The bitmask of comparison flags. See `baseIsEqual`\n * for more details.\n * @param {Object} [stack] Tracks traversed `object` and `other` objects.\n * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.\n */\nfunction baseIsEqualDeep(object, other, equalFunc, customizer, bitmask, stack) {\n var objIsArr = isArray(object),\n othIsArr = isArray(other),\n objTag = arrayTag,\n othTag = arrayTag;\n\n if (!objIsArr) {\n objTag = getTag(object);\n objTag = objTag == argsTag ? objectTag : objTag;\n }\n if (!othIsArr) {\n othTag = getTag(other);\n othTag = othTag == argsTag ? objectTag : othTag;\n }\n var objIsObj = objTag == objectTag && !isHostObject(object),\n othIsObj = othTag == objectTag && !isHostObject(other),\n isSameTag = objTag == othTag;\n\n if (isSameTag && !objIsObj) {\n stack || (stack = new Stack);\n return (objIsArr || isTypedArray(object))\n ? equalArrays(object, other, equalFunc, customizer, bitmask, stack)\n : equalByTag(object, other, objTag, equalFunc, customizer, bitmask, stack);\n }\n if (!(bitmask & PARTIAL_COMPARE_FLAG)) {\n var objIsWrapped = objIsObj && hasOwnProperty.call(object, '__wrapped__'),\n othIsWrapped = othIsObj && hasOwnProperty.call(other, '__wrapped__');\n\n if (objIsWrapped || othIsWrapped) {\n var objUnwrapped = objIsWrapped ? object.value() : object,\n othUnwrapped = othIsWrapped ? other.value() : other;\n\n stack || (stack = new Stack);\n return equalFunc(objUnwrapped, othUnwrapped, customizer, bitmask, stack);\n }\n }\n if (!isSameTag) {\n return false;\n }\n stack || (stack = new Stack);\n return equalObjects(object, other, equalFunc, customizer, bitmask, stack);\n}\n\n/**\n * The base implementation of `_.isMatch` without support for iteratee shorthands.\n *\n * @private\n * @param {Object} object The object to inspect.\n * @param {Object} source The object of property values to match.\n * @param {Array} matchData The property names, values, and compare flags to match.\n * @param {Function} [customizer] The function to customize comparisons.\n * @returns {boolean} Returns `true` if `object` is a match, else `false`.\n */\nfunction baseIsMatch(object, source, matchData, customizer) {\n var index = matchData.length,\n length = index,\n noCustomizer = !customizer;\n\n if (object == null) {\n return !length;\n }\n object = Object(object);\n while (index--) {\n var data = matchData[index];\n if ((noCustomizer && data[2])\n ? data[1] !== object[data[0]]\n : !(data[0] in object)\n ) {\n return false;\n }\n }\n while (++index < length) {\n data = matchData[index];\n var key = data[0],\n objValue = object[key],\n srcValue = data[1];\n\n if (noCustomizer && data[2]) {\n if (objValue === undefined && !(key in object)) {\n return false;\n }\n } else {\n var stack = new Stack;\n if (customizer) {\n var result = customizer(objValue, srcValue, key, object, source, stack);\n }\n if (!(result === undefined\n ? baseIsEqual(srcValue, objValue, customizer, UNORDERED_COMPARE_FLAG | PARTIAL_COMPARE_FLAG, stack)\n : result\n )) {\n return false;\n }\n }\n }\n return true;\n}\n\n/**\n * The base implementation of `_.isNative` without bad shim checks.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a native function,\n * else `false`.\n */\nfunction baseIsNative(value) {\n if (!isObject(value) || isMasked(value)) {\n return false;\n }\n var pattern = (isFunction(value) || isHostObject(value)) ? reIsNative : reIsHostCtor;\n return pattern.test(toSource(value));\n}\n\n/**\n * The base implementation of `_.isTypedArray` without Node.js optimizations.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.\n */\nfunction baseIsTypedArray(value) {\n return isObjectLike(value) &&\n isLength(value.length) && !!typedArrayTags[objectToString.call(value)];\n}\n\n/**\n * The base implementation of `_.iteratee`.\n *\n * @private\n * @param {*} [value=_.identity] The value to convert to an iteratee.\n * @returns {Function} Returns the iteratee.\n */\nfunction baseIteratee(value) {\n // Don't store the `typeof` result in a variable to avoid a JIT bug in Safari 9.\n // See https://bugs.webkit.org/show_bug.cgi?id=156034 for more details.\n if (typeof value == 'function') {\n return value;\n }\n if (value == null) {\n return identity;\n }\n if (typeof value == 'object') {\n return isArray(value)\n ? baseMatchesProperty(value[0], value[1])\n : baseMatches(value);\n }\n return property(value);\n}\n\n/**\n * The base implementation of `_.keys` which doesn't treat sparse arrays as dense.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n */\nfunction baseKeys(object) {\n if (!isPrototype(object)) {\n return nativeKeys(object);\n }\n var result = [];\n for (var key in Object(object)) {\n if (hasOwnProperty.call(object, key) && key != 'constructor') {\n result.push(key);\n }\n }\n return result;\n}\n\n/**\n * The base implementation of `_.map` without support for iteratee shorthands.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns the new mapped array.\n */\nfunction baseMap(collection, iteratee) {\n var index = -1,\n result = isArrayLike(collection) ? Array(collection.length) : [];\n\n baseEach(collection, function(value, key, collection) {\n result[++index] = iteratee(value, key, collection);\n });\n return result;\n}\n\n/**\n * The base implementation of `_.matches` which doesn't clone `source`.\n *\n * @private\n * @param {Object} source The object of property values to match.\n * @returns {Function} Returns the new spec function.\n */\nfunction baseMatches(source) {\n var matchData = getMatchData(source);\n if (matchData.length == 1 && matchData[0][2]) {\n return matchesStrictComparable(matchData[0][0], matchData[0][1]);\n }\n return function(object) {\n return object === source || baseIsMatch(object, source, matchData);\n };\n}\n\n/**\n * The base implementation of `_.matchesProperty` which doesn't clone `srcValue`.\n *\n * @private\n * @param {string} path The path of the property to get.\n * @param {*} srcValue The value to match.\n * @returns {Function} Returns the new spec function.\n */\nfunction baseMatchesProperty(path, srcValue) {\n if (isKey(path) && isStrictComparable(srcValue)) {\n return matchesStrictComparable(toKey(path), srcValue);\n }\n return function(object) {\n var objValue = get(object, path);\n return (objValue === undefined && objValue === srcValue)\n ? hasIn(object, path)\n : baseIsEqual(srcValue, objValue, undefined, UNORDERED_COMPARE_FLAG | PARTIAL_COMPARE_FLAG);\n };\n}\n\n/**\n * The base implementation of `_.orderBy` without param guards.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function[]|Object[]|string[]} iteratees The iteratees to sort by.\n * @param {string[]} orders The sort orders of `iteratees`.\n * @returns {Array} Returns the new sorted array.\n */\nfunction baseOrderBy(collection, iteratees, orders) {\n var index = -1;\n iteratees = arrayMap(iteratees.length ? iteratees : [identity], baseUnary(baseIteratee));\n\n var result = baseMap(collection, function(value, key, collection) {\n var criteria = arrayMap(iteratees, function(iteratee) {\n return iteratee(value);\n });\n return { 'criteria': criteria, 'index': ++index, 'value': value };\n });\n\n return baseSortBy(result, function(object, other) {\n return compareMultiple(object, other, orders);\n });\n}\n\n/**\n * A specialized version of `baseProperty` which supports deep paths.\n *\n * @private\n * @param {Array|string} path The path of the property to get.\n * @returns {Function} Returns the new accessor function.\n */\nfunction basePropertyDeep(path) {\n return function(object) {\n return baseGet(object, path);\n };\n}\n\n/**\n * The base implementation of `_.rest` which doesn't validate or coerce arguments.\n *\n * @private\n * @param {Function} func The function to apply a rest parameter to.\n * @param {number} [start=func.length-1] The start position of the rest parameter.\n * @returns {Function} Returns the new function.\n */\nfunction baseRest(func, start) {\n start = nativeMax(start === undefined ? (func.length - 1) : start, 0);\n return function() {\n var args = arguments,\n index = -1,\n length = nativeMax(args.length - start, 0),\n array = Array(length);\n\n while (++index < length) {\n array[index] = args[start + index];\n }\n index = -1;\n var otherArgs = Array(start + 1);\n while (++index < start) {\n otherArgs[index] = args[index];\n }\n otherArgs[start] = array;\n return apply(func, this, otherArgs);\n };\n}\n\n/**\n * The base implementation of `_.toString` which doesn't convert nullish\n * values to empty strings.\n *\n * @private\n * @param {*} value The value to process.\n * @returns {string} Returns the string.\n */\nfunction baseToString(value) {\n // Exit early for strings to avoid a performance hit in some environments.\n if (typeof value == 'string') {\n return value;\n }\n if (isSymbol(value)) {\n return symbolToString ? symbolToString.call(value) : '';\n }\n var result = (value + '');\n return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;\n}\n\n/**\n * Casts `value` to a path array if it's not one.\n *\n * @private\n * @param {*} value The value to inspect.\n * @returns {Array} Returns the cast property path array.\n */\nfunction castPath(value) {\n return isArray(value) ? value : stringToPath(value);\n}\n\n/**\n * Compares values to sort them in ascending order.\n *\n * @private\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {number} Returns the sort order indicator for `value`.\n */\nfunction compareAscending(value, other) {\n if (value !== other) {\n var valIsDefined = value !== undefined,\n valIsNull = value === null,\n valIsReflexive = value === value,\n valIsSymbol = isSymbol(value);\n\n var othIsDefined = other !== undefined,\n othIsNull = other === null,\n othIsReflexive = other === other,\n othIsSymbol = isSymbol(other);\n\n if ((!othIsNull && !othIsSymbol && !valIsSymbol && value > other) ||\n (valIsSymbol && othIsDefined && othIsReflexive && !othIsNull && !othIsSymbol) ||\n (valIsNull && othIsDefined && othIsReflexive) ||\n (!valIsDefined && othIsReflexive) ||\n !valIsReflexive) {\n return 1;\n }\n if ((!valIsNull && !valIsSymbol && !othIsSymbol && value < other) ||\n (othIsSymbol && valIsDefined && valIsReflexive && !valIsNull && !valIsSymbol) ||\n (othIsNull && valIsDefined && valIsReflexive) ||\n (!othIsDefined && valIsReflexive) ||\n !othIsReflexive) {\n return -1;\n }\n }\n return 0;\n}\n\n/**\n * Used by `_.orderBy` to compare multiple properties of a value to another\n * and stable sort them.\n *\n * If `orders` is unspecified, all values are sorted in ascending order. Otherwise,\n * specify an order of \"desc\" for descending or \"asc\" for ascending sort order\n * of corresponding values.\n *\n * @private\n * @param {Object} object The object to compare.\n * @param {Object} other The other object to compare.\n * @param {boolean[]|string[]} orders The order to sort by for each property.\n * @returns {number} Returns the sort order indicator for `object`.\n */\nfunction compareMultiple(object, other, orders) {\n var index = -1,\n objCriteria = object.criteria,\n othCriteria = other.criteria,\n length = objCriteria.length,\n ordersLength = orders.length;\n\n while (++index < length) {\n var result = compareAscending(objCriteria[index], othCriteria[index]);\n if (result) {\n if (index >= ordersLength) {\n return result;\n }\n var order = orders[index];\n return result * (order == 'desc' ? -1 : 1);\n }\n }\n // Fixes an `Array#sort` bug in the JS engine embedded in Adobe applications\n // that causes it, under certain circumstances, to provide the same value for\n // `object` and `other`. See https://github.com/jashkenas/underscore/pull/1247\n // for more details.\n //\n // This also ensures a stable sort in V8 and other engines.\n // See https://bugs.chromium.org/p/v8/issues/detail?id=90 for more details.\n return object.index - other.index;\n}\n\n/**\n * Creates a `baseEach` or `baseEachRight` function.\n *\n * @private\n * @param {Function} eachFunc The function to iterate over a collection.\n * @param {boolean} [fromRight] Specify iterating from right to left.\n * @returns {Function} Returns the new base function.\n */\nfunction createBaseEach(eachFunc, fromRight) {\n return function(collection, iteratee) {\n if (collection == null) {\n return collection;\n }\n if (!isArrayLike(collection)) {\n return eachFunc(collection, iteratee);\n }\n var length = collection.length,\n index = fromRight ? length : -1,\n iterable = Object(collection);\n\n while ((fromRight ? index-- : ++index < length)) {\n if (iteratee(iterable[index], index, iterable) === false) {\n break;\n }\n }\n return collection;\n };\n}\n\n/**\n * Creates a base function for methods like `_.forIn` and `_.forOwn`.\n *\n * @private\n * @param {boolean} [fromRight] Specify iterating from right to left.\n * @returns {Function} Returns the new base function.\n */\nfunction createBaseFor(fromRight) {\n return function(object, iteratee, keysFunc) {\n var index = -1,\n iterable = Object(object),\n props = keysFunc(object),\n length = props.length;\n\n while (length--) {\n var key = props[fromRight ? length : ++index];\n if (iteratee(iterable[key], key, iterable) === false) {\n break;\n }\n }\n return object;\n };\n}\n\n/**\n * A specialized version of `baseIsEqualDeep` for arrays with support for\n * partial deep comparisons.\n *\n * @private\n * @param {Array} array The array to compare.\n * @param {Array} other The other array to compare.\n * @param {Function} equalFunc The function to determine equivalents of values.\n * @param {Function} customizer The function to customize comparisons.\n * @param {number} bitmask The bitmask of comparison flags. See `baseIsEqual`\n * for more details.\n * @param {Object} stack Tracks traversed `array` and `other` objects.\n * @returns {boolean} Returns `true` if the arrays are equivalent, else `false`.\n */\nfunction equalArrays(array, other, equalFunc, customizer, bitmask, stack) {\n var isPartial = bitmask & PARTIAL_COMPARE_FLAG,\n arrLength = array.length,\n othLength = other.length;\n\n if (arrLength != othLength && !(isPartial && othLength > arrLength)) {\n return false;\n }\n // Assume cyclic values are equal.\n var stacked = stack.get(array);\n if (stacked && stack.get(other)) {\n return stacked == other;\n }\n var index = -1,\n result = true,\n seen = (bitmask & UNORDERED_COMPARE_FLAG) ? new SetCache : undefined;\n\n stack.set(array, other);\n stack.set(other, array);\n\n // Ignore non-index properties.\n while (++index < arrLength) {\n var arrValue = array[index],\n othValue = other[index];\n\n if (customizer) {\n var compared = isPartial\n ? customizer(othValue, arrValue, index, other, array, stack)\n : customizer(arrValue, othValue, index, array, other, stack);\n }\n if (compared !== undefined) {\n if (compared) {\n continue;\n }\n result = false;\n break;\n }\n // Recursively compare arrays (susceptible to call stack limits).\n if (seen) {\n if (!arraySome(other, function(othValue, othIndex) {\n if (!seen.has(othIndex) &&\n (arrValue === othValue || equalFunc(arrValue, othValue, customizer, bitmask, stack))) {\n return seen.add(othIndex);\n }\n })) {\n result = false;\n break;\n }\n } else if (!(\n arrValue === othValue ||\n equalFunc(arrValue, othValue, customizer, bitmask, stack)\n )) {\n result = false;\n break;\n }\n }\n stack['delete'](array);\n stack['delete'](other);\n return result;\n}\n\n/**\n * A specialized version of `baseIsEqualDeep` for comparing objects of\n * the same `toStringTag`.\n *\n * **Note:** This function only supports comparing values with tags of\n * `Boolean`, `Date`, `Error`, `Number`, `RegExp`, or `String`.\n *\n * @private\n * @param {Object} object The object to compare.\n * @param {Object} other The other object to compare.\n * @param {string} tag The `toStringTag` of the objects to compare.\n * @param {Function} equalFunc The function to determine equivalents of values.\n * @param {Function} customizer The function to customize comparisons.\n * @param {number} bitmask The bitmask of comparison flags. See `baseIsEqual`\n * for more details.\n * @param {Object} stack Tracks traversed `object` and `other` objects.\n * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.\n */\nfunction equalByTag(object, other, tag, equalFunc, customizer, bitmask, stack) {\n switch (tag) {\n case dataViewTag:\n if ((object.byteLength != other.byteLength) ||\n (object.byteOffset != other.byteOffset)) {\n return false;\n }\n object = object.buffer;\n other = other.buffer;\n\n case arrayBufferTag:\n if ((object.byteLength != other.byteLength) ||\n !equalFunc(new Uint8Array(object), new Uint8Array(other))) {\n return false;\n }\n return true;\n\n case boolTag:\n case dateTag:\n case numberTag:\n // Coerce booleans to `1` or `0` and dates to milliseconds.\n // Invalid dates are coerced to `NaN`.\n return eq(+object, +other);\n\n case errorTag:\n return object.name == other.name && object.message == other.message;\n\n case regexpTag:\n case stringTag:\n // Coerce regexes to strings and treat strings, primitives and objects,\n // as equal. See http://www.ecma-international.org/ecma-262/7.0/#sec-regexp.prototype.tostring\n // for more details.\n return object == (other + '');\n\n case mapTag:\n var convert = mapToArray;\n\n case setTag:\n var isPartial = bitmask & PARTIAL_COMPARE_FLAG;\n convert || (convert = setToArray);\n\n if (object.size != other.size && !isPartial) {\n return false;\n }\n // Assume cyclic values are equal.\n var stacked = stack.get(object);\n if (stacked) {\n return stacked == other;\n }\n bitmask |= UNORDERED_COMPARE_FLAG;\n\n // Recursively compare objects (susceptible to call stack limits).\n stack.set(object, other);\n var result = equalArrays(convert(object), convert(other), equalFunc, customizer, bitmask, stack);\n stack['delete'](object);\n return result;\n\n case symbolTag:\n if (symbolValueOf) {\n return symbolValueOf.call(object) == symbolValueOf.call(other);\n }\n }\n return false;\n}\n\n/**\n * A specialized version of `baseIsEqualDeep` for objects with support for\n * partial deep comparisons.\n *\n * @private\n * @param {Object} object The object to compare.\n * @param {Object} other The other object to compare.\n * @param {Function} equalFunc The function to determine equivalents of values.\n * @param {Function} customizer The function to customize comparisons.\n * @param {number} bitmask The bitmask of comparison flags. See `baseIsEqual`\n * for more details.\n * @param {Object} stack Tracks traversed `object` and `other` objects.\n * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.\n */\nfunction equalObjects(object, other, equalFunc, customizer, bitmask, stack) {\n var isPartial = bitmask & PARTIAL_COMPARE_FLAG,\n objProps = keys(object),\n objLength = objProps.length,\n othProps = keys(other),\n othLength = othProps.length;\n\n if (objLength != othLength && !isPartial) {\n return false;\n }\n var index = objLength;\n while (index--) {\n var key = objProps[index];\n if (!(isPartial ? key in other : hasOwnProperty.call(other, key))) {\n return false;\n }\n }\n // Assume cyclic values are equal.\n var stacked = stack.get(object);\n if (stacked && stack.get(other)) {\n return stacked == other;\n }\n var result = true;\n stack.set(object, other);\n stack.set(other, object);\n\n var skipCtor = isPartial;\n while (++index < objLength) {\n key = objProps[index];\n var objValue = object[key],\n othValue = other[key];\n\n if (customizer) {\n var compared = isPartial\n ? customizer(othValue, objValue, key, other, object, stack)\n : customizer(objValue, othValue, key, object, other, stack);\n }\n // Recursively compare objects (susceptible to call stack limits).\n if (!(compared === undefined\n ? (objValue === othValue || equalFunc(objValue, othValue, customizer, bitmask, stack))\n : compared\n )) {\n result = false;\n break;\n }\n skipCtor || (skipCtor = key == 'constructor');\n }\n if (result && !skipCtor) {\n var objCtor = object.constructor,\n othCtor = other.constructor;\n\n // Non `Object` object instances with different constructors are not equal.\n if (objCtor != othCtor &&\n ('constructor' in object && 'constructor' in other) &&\n !(typeof objCtor == 'function' && objCtor instanceof objCtor &&\n typeof othCtor == 'function' && othCtor instanceof othCtor)) {\n result = false;\n }\n }\n stack['delete'](object);\n stack['delete'](other);\n return result;\n}\n\n/**\n * Gets the data for `map`.\n *\n * @private\n * @param {Object} map The map to query.\n * @param {string} key The reference key.\n * @returns {*} Returns the map data.\n */\nfunction getMapData(map, key) {\n var data = map.__data__;\n return isKeyable(key)\n ? data[typeof key == 'string' ? 'string' : 'hash']\n : data.map;\n}\n\n/**\n * Gets the property names, values, and compare flags of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the match data of `object`.\n */\nfunction getMatchData(object) {\n var result = keys(object),\n length = result.length;\n\n while (length--) {\n var key = result[length],\n value = object[key];\n\n result[length] = [key, value, isStrictComparable(value)];\n }\n return result;\n}\n\n/**\n * Gets the native function at `key` of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {string} key The key of the method to get.\n * @returns {*} Returns the function if it's native, else `undefined`.\n */\nfunction getNative(object, key) {\n var value = getValue(object, key);\n return baseIsNative(value) ? value : undefined;\n}\n\n/**\n * Gets the `toStringTag` of `value`.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the `toStringTag`.\n */\nvar getTag = baseGetTag;\n\n// Fallback for data views, maps, sets, and weak maps in IE 11,\n// for data views in Edge < 14, and promises in Node.js.\nif ((DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag) ||\n (Map && getTag(new Map) != mapTag) ||\n (Promise && getTag(Promise.resolve()) != promiseTag) ||\n (Set && getTag(new Set) != setTag) ||\n (WeakMap && getTag(new WeakMap) != weakMapTag)) {\n getTag = function(value) {\n var result = objectToString.call(value),\n Ctor = result == objectTag ? value.constructor : undefined,\n ctorString = Ctor ? toSource(Ctor) : undefined;\n\n if (ctorString) {\n switch (ctorString) {\n case dataViewCtorString: return dataViewTag;\n case mapCtorString: return mapTag;\n case promiseCtorString: return promiseTag;\n case setCtorString: return setTag;\n case weakMapCtorString: return weakMapTag;\n }\n }\n return result;\n };\n}\n\n/**\n * Checks if `path` exists on `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {Array|string} path The path to check.\n * @param {Function} hasFunc The function to check properties.\n * @returns {boolean} Returns `true` if `path` exists, else `false`.\n */\nfunction hasPath(object, path, hasFunc) {\n path = isKey(path, object) ? [path] : castPath(path);\n\n var result,\n index = -1,\n length = path.length;\n\n while (++index < length) {\n var key = toKey(path[index]);\n if (!(result = object != null && hasFunc(object, key))) {\n break;\n }\n object = object[key];\n }\n if (result) {\n return result;\n }\n var length = object ? object.length : 0;\n return !!length && isLength(length) && isIndex(key, length) &&\n (isArray(object) || isArguments(object));\n}\n\n/**\n * Checks if `value` is a flattenable `arguments` object or array.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is flattenable, else `false`.\n */\nfunction isFlattenable(value) {\n return isArray(value) || isArguments(value) ||\n !!(spreadableSymbol && value && value[spreadableSymbol]);\n}\n\n/**\n * Checks if `value` is a valid array-like index.\n *\n * @private\n * @param {*} value The value to check.\n * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.\n * @returns {boolean} Returns `true` if `value` is a valid index, else `false`.\n */\nfunction isIndex(value, length) {\n length = length == null ? MAX_SAFE_INTEGER : length;\n return !!length &&\n (typeof value == 'number' || reIsUint.test(value)) &&\n (value > -1 && value % 1 == 0 && value < length);\n}\n\n/**\n * Checks if the given arguments are from an iteratee call.\n *\n * @private\n * @param {*} value The potential iteratee value argument.\n * @param {*} index The potential iteratee index or key argument.\n * @param {*} object The potential iteratee object argument.\n * @returns {boolean} Returns `true` if the arguments are from an iteratee call,\n * else `false`.\n */\nfunction isIterateeCall(value, index, object) {\n if (!isObject(object)) {\n return false;\n }\n var type = typeof index;\n if (type == 'number'\n ? (isArrayLike(object) && isIndex(index, object.length))\n : (type == 'string' && index in object)\n ) {\n return eq(object[index], value);\n }\n return false;\n}\n\n/**\n * Checks if `value` is a property name and not a property path.\n *\n * @private\n * @param {*} value The value to check.\n * @param {Object} [object] The object to query keys on.\n * @returns {boolean} Returns `true` if `value` is a property name, else `false`.\n */\nfunction isKey(value, object) {\n if (isArray(value)) {\n return false;\n }\n var type = typeof value;\n if (type == 'number' || type == 'symbol' || type == 'boolean' ||\n value == null || isSymbol(value)) {\n return true;\n }\n return reIsPlainProp.test(value) || !reIsDeepProp.test(value) ||\n (object != null && value in Object(object));\n}\n\n/**\n * Checks if `value` is suitable for use as unique object key.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is suitable, else `false`.\n */\nfunction isKeyable(value) {\n var type = typeof value;\n return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean')\n ? (value !== '__proto__')\n : (value === null);\n}\n\n/**\n * Checks if `func` has its source masked.\n *\n * @private\n * @param {Function} func The function to check.\n * @returns {boolean} Returns `true` if `func` is masked, else `false`.\n */\nfunction isMasked(func) {\n return !!maskSrcKey && (maskSrcKey in func);\n}\n\n/**\n * Checks if `value` is likely a prototype object.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a prototype, else `false`.\n */\nfunction isPrototype(value) {\n var Ctor = value && value.constructor,\n proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto;\n\n return value === proto;\n}\n\n/**\n * Checks if `value` is suitable for strict equality comparisons, i.e. `===`.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` if suitable for strict\n * equality comparisons, else `false`.\n */\nfunction isStrictComparable(value) {\n return value === value && !isObject(value);\n}\n\n/**\n * A specialized version of `matchesProperty` for source values suitable\n * for strict equality comparisons, i.e. `===`.\n *\n * @private\n * @param {string} key The key of the property to get.\n * @param {*} srcValue The value to match.\n * @returns {Function} Returns the new spec function.\n */\nfunction matchesStrictComparable(key, srcValue) {\n return function(object) {\n if (object == null) {\n return false;\n }\n return object[key] === srcValue &&\n (srcValue !== undefined || (key in Object(object)));\n };\n}\n\n/**\n * Converts `string` to a property path array.\n *\n * @private\n * @param {string} string The string to convert.\n * @returns {Array} Returns the property path array.\n */\nvar stringToPath = memoize(function(string) {\n string = toString(string);\n\n var result = [];\n if (reLeadingDot.test(string)) {\n result.push('');\n }\n string.replace(rePropName, function(match, number, quote, string) {\n result.push(quote ? string.replace(reEscapeChar, '$1') : (number || match));\n });\n return result;\n});\n\n/**\n * Converts `value` to a string key if it's not a string or symbol.\n *\n * @private\n * @param {*} value The value to inspect.\n * @returns {string|symbol} Returns the key.\n */\nfunction toKey(value) {\n if (typeof value == 'string' || isSymbol(value)) {\n return value;\n }\n var result = (value + '');\n return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;\n}\n\n/**\n * Converts `func` to its source code.\n *\n * @private\n * @param {Function} func The function to process.\n * @returns {string} Returns the source code.\n */\nfunction toSource(func) {\n if (func != null) {\n try {\n return funcToString.call(func);\n } catch (e) {}\n try {\n return (func + '');\n } catch (e) {}\n }\n return '';\n}\n\n/**\n * Creates an array of elements, sorted in ascending order by the results of\n * running each element in a collection thru each iteratee. This method\n * performs a stable sort, that is, it preserves the original sort order of\n * equal elements. The iteratees are invoked with one argument: (value).\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {...(Function|Function[])} [iteratees=[_.identity]]\n * The iteratees to sort by.\n * @returns {Array} Returns the new sorted array.\n * @example\n *\n * var users = [\n * { 'user': 'fred', 'age': 48 },\n * { 'user': 'barney', 'age': 36 },\n * { 'user': 'fred', 'age': 40 },\n * { 'user': 'barney', 'age': 34 }\n * ];\n *\n * _.sortBy(users, function(o) { return o.user; });\n * // => objects for [['barney', 36], ['barney', 34], ['fred', 48], ['fred', 40]]\n *\n * _.sortBy(users, ['user', 'age']);\n * // => objects for [['barney', 34], ['barney', 36], ['fred', 40], ['fred', 48]]\n *\n * _.sortBy(users, 'user', function(o) {\n * return Math.floor(o.age / 10);\n * });\n * // => objects for [['barney', 36], ['barney', 34], ['fred', 48], ['fred', 40]]\n */\nvar sortBy = baseRest(function(collection, iteratees) {\n if (collection == null) {\n return [];\n }\n var length = iteratees.length;\n if (length > 1 && isIterateeCall(collection, iteratees[0], iteratees[1])) {\n iteratees = [];\n } else if (length > 2 && isIterateeCall(iteratees[0], iteratees[1], iteratees[2])) {\n iteratees = [iteratees[0]];\n }\n return baseOrderBy(collection, baseFlatten(iteratees, 1), []);\n});\n\n/**\n * Creates a function that memoizes the result of `func`. If `resolver` is\n * provided, it determines the cache key for storing the result based on the\n * arguments provided to the memoized function. By default, the first argument\n * provided to the memoized function is used as the map cache key. The `func`\n * is invoked with the `this` binding of the memoized function.\n *\n * **Note:** The cache is exposed as the `cache` property on the memoized\n * function. Its creation may be customized by replacing the `_.memoize.Cache`\n * constructor with one whose instances implement the\n * [`Map`](http://ecma-international.org/ecma-262/7.0/#sec-properties-of-the-map-prototype-object)\n * method interface of `delete`, `get`, `has`, and `set`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to have its output memoized.\n * @param {Function} [resolver] The function to resolve the cache key.\n * @returns {Function} Returns the new memoized function.\n * @example\n *\n * var object = { 'a': 1, 'b': 2 };\n * var other = { 'c': 3, 'd': 4 };\n *\n * var values = _.memoize(_.values);\n * values(object);\n * // => [1, 2]\n *\n * values(other);\n * // => [3, 4]\n *\n * object.a = 2;\n * values(object);\n * // => [1, 2]\n *\n * // Modify the result cache.\n * values.cache.set(object, ['a', 'b']);\n * values(object);\n * // => ['a', 'b']\n *\n * // Replace `_.memoize.Cache`.\n * _.memoize.Cache = WeakMap;\n */\nfunction memoize(func, resolver) {\n if (typeof func != 'function' || (resolver && typeof resolver != 'function')) {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n var memoized = function() {\n var args = arguments,\n key = resolver ? resolver.apply(this, args) : args[0],\n cache = memoized.cache;\n\n if (cache.has(key)) {\n return cache.get(key);\n }\n var result = func.apply(this, args);\n memoized.cache = cache.set(key, result);\n return result;\n };\n memoized.cache = new (memoize.Cache || MapCache);\n return memoized;\n}\n\n// Assign cache to `_.memoize`.\nmemoize.Cache = MapCache;\n\n/**\n * Performs a\n * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * comparison between two values to determine if they are equivalent.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {boolean} Returns `true` if the values are equivalent, else `false`.\n * @example\n *\n * var object = { 'a': 1 };\n * var other = { 'a': 1 };\n *\n * _.eq(object, object);\n * // => true\n *\n * _.eq(object, other);\n * // => false\n *\n * _.eq('a', 'a');\n * // => true\n *\n * _.eq('a', Object('a'));\n * // => false\n *\n * _.eq(NaN, NaN);\n * // => true\n */\nfunction eq(value, other) {\n return value === other || (value !== value && other !== other);\n}\n\n/**\n * Checks if `value` is likely an `arguments` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an `arguments` object,\n * else `false`.\n * @example\n *\n * _.isArguments(function() { return arguments; }());\n * // => true\n *\n * _.isArguments([1, 2, 3]);\n * // => false\n */\nfunction isArguments(value) {\n // Safari 8.1 makes `arguments.callee` enumerable in strict mode.\n return isArrayLikeObject(value) && hasOwnProperty.call(value, 'callee') &&\n (!propertyIsEnumerable.call(value, 'callee') || objectToString.call(value) == argsTag);\n}\n\n/**\n * Checks if `value` is classified as an `Array` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an array, else `false`.\n * @example\n *\n * _.isArray([1, 2, 3]);\n * // => true\n *\n * _.isArray(document.body.children);\n * // => false\n *\n * _.isArray('abc');\n * // => false\n *\n * _.isArray(_.noop);\n * // => false\n */\nvar isArray = Array.isArray;\n\n/**\n * Checks if `value` is array-like. A value is considered array-like if it's\n * not a function and has a `value.length` that's an integer greater than or\n * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is array-like, else `false`.\n * @example\n *\n * _.isArrayLike([1, 2, 3]);\n * // => true\n *\n * _.isArrayLike(document.body.children);\n * // => true\n *\n * _.isArrayLike('abc');\n * // => true\n *\n * _.isArrayLike(_.noop);\n * // => false\n */\nfunction isArrayLike(value) {\n return value != null && isLength(value.length) && !isFunction(value);\n}\n\n/**\n * This method is like `_.isArrayLike` except that it also checks if `value`\n * is an object.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an array-like object,\n * else `false`.\n * @example\n *\n * _.isArrayLikeObject([1, 2, 3]);\n * // => true\n *\n * _.isArrayLikeObject(document.body.children);\n * // => true\n *\n * _.isArrayLikeObject('abc');\n * // => false\n *\n * _.isArrayLikeObject(_.noop);\n * // => false\n */\nfunction isArrayLikeObject(value) {\n return isObjectLike(value) && isArrayLike(value);\n}\n\n/**\n * Checks if `value` is classified as a `Function` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a function, else `false`.\n * @example\n *\n * _.isFunction(_);\n * // => true\n *\n * _.isFunction(/abc/);\n * // => false\n */\nfunction isFunction(value) {\n // The use of `Object#toString` avoids issues with the `typeof` operator\n // in Safari 8-9 which returns 'object' for typed array and other constructors.\n var tag = isObject(value) ? objectToString.call(value) : '';\n return tag == funcTag || tag == genTag;\n}\n\n/**\n * Checks if `value` is a valid array-like length.\n *\n * **Note:** This method is loosely based on\n * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.\n * @example\n *\n * _.isLength(3);\n * // => true\n *\n * _.isLength(Number.MIN_VALUE);\n * // => false\n *\n * _.isLength(Infinity);\n * // => false\n *\n * _.isLength('3');\n * // => false\n */\nfunction isLength(value) {\n return typeof value == 'number' &&\n value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;\n}\n\n/**\n * Checks if `value` is the\n * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)\n * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an object, else `false`.\n * @example\n *\n * _.isObject({});\n * // => true\n *\n * _.isObject([1, 2, 3]);\n * // => true\n *\n * _.isObject(_.noop);\n * // => true\n *\n * _.isObject(null);\n * // => false\n */\nfunction isObject(value) {\n var type = typeof value;\n return !!value && (type == 'object' || type == 'function');\n}\n\n/**\n * Checks if `value` is object-like. A value is object-like if it's not `null`\n * and has a `typeof` result of \"object\".\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is object-like, else `false`.\n * @example\n *\n * _.isObjectLike({});\n * // => true\n *\n * _.isObjectLike([1, 2, 3]);\n * // => true\n *\n * _.isObjectLike(_.noop);\n * // => false\n *\n * _.isObjectLike(null);\n * // => false\n */\nfunction isObjectLike(value) {\n return !!value && typeof value == 'object';\n}\n\n/**\n * Checks if `value` is classified as a `Symbol` primitive or object.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.\n * @example\n *\n * _.isSymbol(Symbol.iterator);\n * // => true\n *\n * _.isSymbol('abc');\n * // => false\n */\nfunction isSymbol(value) {\n return typeof value == 'symbol' ||\n (isObjectLike(value) && objectToString.call(value) == symbolTag);\n}\n\n/**\n * Checks if `value` is classified as a typed array.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.\n * @example\n *\n * _.isTypedArray(new Uint8Array);\n * // => true\n *\n * _.isTypedArray([]);\n * // => false\n */\nvar isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;\n\n/**\n * Converts `value` to a string. An empty string is returned for `null`\n * and `undefined` values. The sign of `-0` is preserved.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to process.\n * @returns {string} Returns the string.\n * @example\n *\n * _.toString(null);\n * // => ''\n *\n * _.toString(-0);\n * // => '-0'\n *\n * _.toString([1, 2, 3]);\n * // => '1,2,3'\n */\nfunction toString(value) {\n return value == null ? '' : baseToString(value);\n}\n\n/**\n * Gets the value at `path` of `object`. If the resolved value is\n * `undefined`, the `defaultValue` is returned in its place.\n *\n * @static\n * @memberOf _\n * @since 3.7.0\n * @category Object\n * @param {Object} object The object to query.\n * @param {Array|string} path The path of the property to get.\n * @param {*} [defaultValue] The value returned for `undefined` resolved values.\n * @returns {*} Returns the resolved value.\n * @example\n *\n * var object = { 'a': [{ 'b': { 'c': 3 } }] };\n *\n * _.get(object, 'a[0].b.c');\n * // => 3\n *\n * _.get(object, ['a', '0', 'b', 'c']);\n * // => 3\n *\n * _.get(object, 'a.b.c', 'default');\n * // => 'default'\n */\nfunction get(object, path, defaultValue) {\n var result = object == null ? undefined : baseGet(object, path);\n return result === undefined ? defaultValue : result;\n}\n\n/**\n * Checks if `path` is a direct or inherited property of `object`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Object\n * @param {Object} object The object to query.\n * @param {Array|string} path The path to check.\n * @returns {boolean} Returns `true` if `path` exists, else `false`.\n * @example\n *\n * var object = _.create({ 'a': _.create({ 'b': 2 }) });\n *\n * _.hasIn(object, 'a');\n * // => true\n *\n * _.hasIn(object, 'a.b');\n * // => true\n *\n * _.hasIn(object, ['a', 'b']);\n * // => true\n *\n * _.hasIn(object, 'b');\n * // => false\n */\nfunction hasIn(object, path) {\n return object != null && hasPath(object, path, baseHasIn);\n}\n\n/**\n * Creates an array of the own enumerable property names of `object`.\n *\n * **Note:** Non-object values are coerced to objects. See the\n * [ES spec](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)\n * for more details.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Object\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.keys(new Foo);\n * // => ['a', 'b'] (iteration order is not guaranteed)\n *\n * _.keys('hi');\n * // => ['0', '1']\n */\nfunction keys(object) {\n return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object);\n}\n\n/**\n * This method returns the first argument it receives.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Util\n * @param {*} value Any value.\n * @returns {*} Returns `value`.\n * @example\n *\n * var object = { 'a': 1 };\n *\n * console.log(_.identity(object) === object);\n * // => true\n */\nfunction identity(value) {\n return value;\n}\n\n/**\n * Creates a function that returns the value at `path` of a given object.\n *\n * @static\n * @memberOf _\n * @since 2.4.0\n * @category Util\n * @param {Array|string} path The path of the property to get.\n * @returns {Function} Returns the new accessor function.\n * @example\n *\n * var objects = [\n * { 'a': { 'b': 2 } },\n * { 'a': { 'b': 1 } }\n * ];\n *\n * _.map(objects, _.property('a.b'));\n * // => [2, 1]\n *\n * _.map(_.sortBy(objects, _.property(['a', 'b'])), 'a.b');\n * // => [1, 2]\n */\nfunction property(path) {\n return isKey(path) ? baseProperty(toKey(path)) : basePropertyDeep(path);\n}\n\nmodule.exports = sortBy;\n","__webpack_require__.nmd = (module) => {\n module.paths = [];\n if (!module.children) module.children = [];\n return module;\n};"],"names":["e","global","Object","self","Function","Array","r","RegExp","Math","s","ArrayBuffer","o","arguments","TypeError","String"],"mappings":"mEAgBA,IAy6CwBA,EAllClB,EAjCW,EAAM,EAw+BL,EAAM,EA9xCpB,EAAiB,4BAOjB,EAAW,EAAI,EAIf,EAAU,qBACV,EAAW,iBACX,EAAU,mBACV,EAAU,gBACV,EAAW,iBACX,EAAU,oBAEV,EAAS,eACT,EAAY,kBACZ,EAAY,kBACZ,EAAa,mBACb,EAAY,kBACZ,EAAS,eACT,EAAY,kBACZ,EAAY,kBACZ,EAAa,mBAEb,EAAiB,uBACjB,EAAc,oBAYd,EAAe,mDACf,EAAgB,QAChB,EAAe,MACf,EAAa,mGASb,EAAe,WAGf,EAAe,8BAGf,EAAW,mBAGX,EAAiB,CAAC,CACtB,EAAc,CAjCG,wBAiCS,CAAG,CAAc,CAhC1B,wBAgCsC,CACvD,CAAc,CAhCA,qBAgCS,CAAG,CAAc,CA/BzB,sBA+BmC,CAClD,CAAc,CA/BC,sBA+BS,CAAG,CAAc,CA9B1B,sBA8BoC,CACnD,CAAc,CA9BQ,6BA8BS,CAAG,CAAc,CA7BhC,uBA6B2C,CAC3D,CAAc,CA7BE,uBA6BS,CAAG,GAC5B,CAAc,CAAC,EAAQ,CAAG,CAAc,CAAC,EAAS,CAClD,CAAc,CAAC,EAAe,CAAG,CAAc,CAAC,EAAQ,CACxD,CAAc,CAAC,EAAY,CAAG,CAAc,CAAC,EAAQ,CACrD,CAAc,CAAC,EAAS,CAAG,CAAc,CAAC,EAAQ,CAClD,CAAc,CAAC,EAAO,CAAG,CAAc,CAAC,EAAU,CAClD,CAAc,CAAC,EAAU,CAAG,CAAc,CAAC,EAAU,CACrD,CAAc,CAAC,EAAO,CAAG,CAAc,CAAC,EAAU,CAClD,CAAc,CAAC,EAAW,CAAG,GAG7B,IAAI,EAAa,AAAiB,UAAjB,OAAOC,QAAsBA,QAAUA,OAAO,MAAM,GAAKC,QAAUD,OAGhF,EAAW,AAAe,UAA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nBN,SAAmB,CAAC,CAAE,CAAQ,EAI5B,IAHA,IAAI,EAAQ,GACR,EAASA,MAAM,GAEZ,EAAE,EAAQ,GACf,CAAM,CAAC,EAAM,CAAG,EAAS,GAE3B,OAAO,CACT,EAwmBgB,EAAM,MAAM,CAAES,QACxB,EAAE,CAEF,EAAS,EAAO,MAAM,CACtB,EAAc,CAAC,CAAC,EAEpB,IAAK,IAAI,KAAO,EACV,AAAc,GAAe,IAAI,CAAC,EAAO,IACzC,CAAE,IAAgB,CAAO,UAAP,GAAmB,GAAQ,EAAK,EAAM,CAAC,GAC3D,EAAO,IAAI,CAAC,GAGhB,OAAO,CACT,EAgqD6C,GAAU,AAx1CvD,SAAkB,CAAM,EACtB,GA+uBI,EAAO,CADQ,EA9uBF,IA+uBG,EAAM,WAAW,CAG9B,IAFK,CAAgB,YAAf,OAAO,GAAsB,EAAK,SAAS,EAAK,CAAU,EA/uBrE,OAAO,GAAW,GAEpB,IA2uBmB,EACf,EA5uBA,EAAS,EAAE,CACf,IAAK,IAAI,KAAOZ,OAAO,GACjB,GAAe,IAAI,CAAC,EAAQ,IAAQ,AAAO,eAAP,GACtC,EAAO,IAAI,CAAC,GAGhB,OAAO,CACT,EA60CgE,EAChE,CAkBA,SAAS,GAAS,CAAK,EACrB,OAAO,CACT,CA4BA,EAAO,OAAO,CAAG,E,wJCrkFjB,EAAoB,GAAG,CAAG,AAAC,IACzB,EAAO,KAAK,CAAG,EAAE,CACb,AAAC,EAAO,QAAQ,EAAE,GAAO,QAAQ,CAAG,EAAE,AAAD,EAClC,G"} \ No newline at end of file diff --git a/packages/node_modules/lru-cache/index.js.map b/packages/node_modules/lru-cache/index.js.map new file mode 100644 index 00000000000..2118bb12476 --- /dev/null +++ b/packages/node_modules/lru-cache/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"lru-cache/index.js","sources":["webpack:///webpack/runtime/define_property_getters","webpack:///webpack/runtime/has_own_property","webpack:///webpack/runtime/make_namespace_object","webpack:///./lru-cache/dist/esm/index.js"],"sourcesContent":["__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n }\n }\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","/**\n * @module LRUCache\n */\nconst perf = typeof performance === 'object' &&\n performance &&\n typeof performance.now === 'function'\n ? performance\n : Date;\nconst warned = new Set();\n/* c8 ignore start */\nconst PROCESS = (typeof process === 'object' && !!process ? process : {});\n/* c8 ignore start */\nconst emitWarning = (msg, type, code, fn) => {\n typeof PROCESS.emitWarning === 'function'\n ? PROCESS.emitWarning(msg, type, code, fn)\n : console.error(`[${code}] ${type}: ${msg}`);\n};\nlet AC = globalThis.AbortController;\nlet AS = globalThis.AbortSignal;\n/* c8 ignore start */\nif (typeof AC === 'undefined') {\n //@ts-ignore\n AS = class AbortSignal {\n onabort;\n _onabort = [];\n reason;\n aborted = false;\n addEventListener(_, fn) {\n this._onabort.push(fn);\n }\n };\n //@ts-ignore\n AC = class AbortController {\n constructor() {\n warnACPolyfill();\n }\n signal = new AS();\n abort(reason) {\n if (this.signal.aborted)\n return;\n //@ts-ignore\n this.signal.reason = reason;\n //@ts-ignore\n this.signal.aborted = true;\n //@ts-ignore\n for (const fn of this.signal._onabort) {\n fn(reason);\n }\n this.signal.onabort?.(reason);\n }\n };\n let printACPolyfillWarning = PROCESS.env?.LRU_CACHE_IGNORE_AC_WARNING !== '1';\n const warnACPolyfill = () => {\n if (!printACPolyfillWarning)\n return;\n printACPolyfillWarning = false;\n emitWarning('AbortController is not defined. If using lru-cache in ' +\n 'node 14, load an AbortController polyfill from the ' +\n '`node-abort-controller` package. A minimal polyfill is ' +\n 'provided for use by LRUCache.fetch(), but it should not be ' +\n 'relied upon in other contexts (eg, passing it to other APIs that ' +\n 'use AbortController/AbortSignal might have undesirable effects). ' +\n 'You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.', 'NO_ABORT_CONTROLLER', 'ENOTSUP', warnACPolyfill);\n };\n}\n/* c8 ignore stop */\nconst shouldWarn = (code) => !warned.has(code);\nconst TYPE = Symbol('type');\nconst isPosInt = (n) => n && n === Math.floor(n) && n > 0 && isFinite(n);\n/* c8 ignore start */\n// This is a little bit ridiculous, tbh.\n// The maximum array length is 2^32-1 or thereabouts on most JS impls.\n// And well before that point, you're caching the entire world, I mean,\n// that's ~32GB of just integers for the next/prev links, plus whatever\n// else to hold that many keys and values. Just filling the memory with\n// zeroes at init time is brutal when you get that big.\n// But why not be complete?\n// Maybe in the future, these limits will have expanded.\nconst getUintArray = (max) => !isPosInt(max)\n ? null\n : max <= Math.pow(2, 8)\n ? Uint8Array\n : max <= Math.pow(2, 16)\n ? Uint16Array\n : max <= Math.pow(2, 32)\n ? Uint32Array\n : max <= Number.MAX_SAFE_INTEGER\n ? ZeroArray\n : null;\n/* c8 ignore stop */\nclass ZeroArray extends Array {\n constructor(size) {\n super(size);\n this.fill(0);\n }\n}\nclass Stack {\n heap;\n length;\n // private constructor\n static #constructing = false;\n static create(max) {\n const HeapCls = getUintArray(max);\n if (!HeapCls)\n return [];\n Stack.#constructing = true;\n const s = new Stack(max, HeapCls);\n Stack.#constructing = false;\n return s;\n }\n constructor(max, HeapCls) {\n /* c8 ignore start */\n if (!Stack.#constructing) {\n throw new TypeError('instantiate Stack using Stack.create(n)');\n }\n /* c8 ignore stop */\n this.heap = new HeapCls(max);\n this.length = 0;\n }\n push(n) {\n this.heap[this.length++] = n;\n }\n pop() {\n return this.heap[--this.length];\n }\n}\n/**\n * Default export, the thing you're using this module to get.\n *\n * The `K` and `V` types define the key and value types, respectively. The\n * optional `FC` type defines the type of the `context` object passed to\n * `cache.fetch()` and `cache.memo()`.\n *\n * Keys and values **must not** be `null` or `undefined`.\n *\n * All properties from the options object (with the exception of `max`,\n * `maxSize`, `fetchMethod`, `memoMethod`, `dispose` and `disposeAfter`) are\n * added as normal public members. (The listed options are read-only getters.)\n *\n * Changing any of these will alter the defaults for subsequent method calls.\n */\nexport class LRUCache {\n // options that cannot be changed without disaster\n #max;\n #maxSize;\n #dispose;\n #disposeAfter;\n #fetchMethod;\n #memoMethod;\n /**\n * {@link LRUCache.OptionsBase.ttl}\n */\n ttl;\n /**\n * {@link LRUCache.OptionsBase.ttlResolution}\n */\n ttlResolution;\n /**\n * {@link LRUCache.OptionsBase.ttlAutopurge}\n */\n ttlAutopurge;\n /**\n * {@link LRUCache.OptionsBase.updateAgeOnGet}\n */\n updateAgeOnGet;\n /**\n * {@link LRUCache.OptionsBase.updateAgeOnHas}\n */\n updateAgeOnHas;\n /**\n * {@link LRUCache.OptionsBase.allowStale}\n */\n allowStale;\n /**\n * {@link LRUCache.OptionsBase.noDisposeOnSet}\n */\n noDisposeOnSet;\n /**\n * {@link LRUCache.OptionsBase.noUpdateTTL}\n */\n noUpdateTTL;\n /**\n * {@link LRUCache.OptionsBase.maxEntrySize}\n */\n maxEntrySize;\n /**\n * {@link LRUCache.OptionsBase.sizeCalculation}\n */\n sizeCalculation;\n /**\n * {@link LRUCache.OptionsBase.noDeleteOnFetchRejection}\n */\n noDeleteOnFetchRejection;\n /**\n * {@link LRUCache.OptionsBase.noDeleteOnStaleGet}\n */\n noDeleteOnStaleGet;\n /**\n * {@link LRUCache.OptionsBase.allowStaleOnFetchAbort}\n */\n allowStaleOnFetchAbort;\n /**\n * {@link LRUCache.OptionsBase.allowStaleOnFetchRejection}\n */\n allowStaleOnFetchRejection;\n /**\n * {@link LRUCache.OptionsBase.ignoreFetchAbort}\n */\n ignoreFetchAbort;\n // computed properties\n #size;\n #calculatedSize;\n #keyMap;\n #keyList;\n #valList;\n #next;\n #prev;\n #head;\n #tail;\n #free;\n #disposed;\n #sizes;\n #starts;\n #ttls;\n #hasDispose;\n #hasFetchMethod;\n #hasDisposeAfter;\n /**\n * Do not call this method unless you need to inspect the\n * inner workings of the cache. If anything returned by this\n * object is modified in any way, strange breakage may occur.\n *\n * These fields are private for a reason!\n *\n * @internal\n */\n static unsafeExposeInternals(c) {\n return {\n // properties\n starts: c.#starts,\n ttls: c.#ttls,\n sizes: c.#sizes,\n keyMap: c.#keyMap,\n keyList: c.#keyList,\n valList: c.#valList,\n next: c.#next,\n prev: c.#prev,\n get head() {\n return c.#head;\n },\n get tail() {\n return c.#tail;\n },\n free: c.#free,\n // methods\n isBackgroundFetch: (p) => c.#isBackgroundFetch(p),\n backgroundFetch: (k, index, options, context) => c.#backgroundFetch(k, index, options, context),\n moveToTail: (index) => c.#moveToTail(index),\n indexes: (options) => c.#indexes(options),\n rindexes: (options) => c.#rindexes(options),\n isStale: (index) => c.#isStale(index),\n };\n }\n // Protected read-only members\n /**\n * {@link LRUCache.OptionsBase.max} (read-only)\n */\n get max() {\n return this.#max;\n }\n /**\n * {@link LRUCache.OptionsBase.maxSize} (read-only)\n */\n get maxSize() {\n return this.#maxSize;\n }\n /**\n * The total computed size of items in the cache (read-only)\n */\n get calculatedSize() {\n return this.#calculatedSize;\n }\n /**\n * The number of items stored in the cache (read-only)\n */\n get size() {\n return this.#size;\n }\n /**\n * {@link LRUCache.OptionsBase.fetchMethod} (read-only)\n */\n get fetchMethod() {\n return this.#fetchMethod;\n }\n get memoMethod() {\n return this.#memoMethod;\n }\n /**\n * {@link LRUCache.OptionsBase.dispose} (read-only)\n */\n get dispose() {\n return this.#dispose;\n }\n /**\n * {@link LRUCache.OptionsBase.disposeAfter} (read-only)\n */\n get disposeAfter() {\n return this.#disposeAfter;\n }\n constructor(options) {\n const { max = 0, ttl, ttlResolution = 1, ttlAutopurge, updateAgeOnGet, updateAgeOnHas, allowStale, dispose, disposeAfter, noDisposeOnSet, noUpdateTTL, maxSize = 0, maxEntrySize = 0, sizeCalculation, fetchMethod, memoMethod, noDeleteOnFetchRejection, noDeleteOnStaleGet, allowStaleOnFetchRejection, allowStaleOnFetchAbort, ignoreFetchAbort, } = options;\n if (max !== 0 && !isPosInt(max)) {\n throw new TypeError('max option must be a nonnegative integer');\n }\n const UintArray = max ? getUintArray(max) : Array;\n if (!UintArray) {\n throw new Error('invalid max value: ' + max);\n }\n this.#max = max;\n this.#maxSize = maxSize;\n this.maxEntrySize = maxEntrySize || this.#maxSize;\n this.sizeCalculation = sizeCalculation;\n if (this.sizeCalculation) {\n if (!this.#maxSize && !this.maxEntrySize) {\n throw new TypeError('cannot set sizeCalculation without setting maxSize or maxEntrySize');\n }\n if (typeof this.sizeCalculation !== 'function') {\n throw new TypeError('sizeCalculation set to non-function');\n }\n }\n if (memoMethod !== undefined &&\n typeof memoMethod !== 'function') {\n throw new TypeError('memoMethod must be a function if defined');\n }\n this.#memoMethod = memoMethod;\n if (fetchMethod !== undefined &&\n typeof fetchMethod !== 'function') {\n throw new TypeError('fetchMethod must be a function if specified');\n }\n this.#fetchMethod = fetchMethod;\n this.#hasFetchMethod = !!fetchMethod;\n this.#keyMap = new Map();\n this.#keyList = new Array(max).fill(undefined);\n this.#valList = new Array(max).fill(undefined);\n this.#next = new UintArray(max);\n this.#prev = new UintArray(max);\n this.#head = 0;\n this.#tail = 0;\n this.#free = Stack.create(max);\n this.#size = 0;\n this.#calculatedSize = 0;\n if (typeof dispose === 'function') {\n this.#dispose = dispose;\n }\n if (typeof disposeAfter === 'function') {\n this.#disposeAfter = disposeAfter;\n this.#disposed = [];\n }\n else {\n this.#disposeAfter = undefined;\n this.#disposed = undefined;\n }\n this.#hasDispose = !!this.#dispose;\n this.#hasDisposeAfter = !!this.#disposeAfter;\n this.noDisposeOnSet = !!noDisposeOnSet;\n this.noUpdateTTL = !!noUpdateTTL;\n this.noDeleteOnFetchRejection = !!noDeleteOnFetchRejection;\n this.allowStaleOnFetchRejection = !!allowStaleOnFetchRejection;\n this.allowStaleOnFetchAbort = !!allowStaleOnFetchAbort;\n this.ignoreFetchAbort = !!ignoreFetchAbort;\n // NB: maxEntrySize is set to maxSize if it's set\n if (this.maxEntrySize !== 0) {\n if (this.#maxSize !== 0) {\n if (!isPosInt(this.#maxSize)) {\n throw new TypeError('maxSize must be a positive integer if specified');\n }\n }\n if (!isPosInt(this.maxEntrySize)) {\n throw new TypeError('maxEntrySize must be a positive integer if specified');\n }\n this.#initializeSizeTracking();\n }\n this.allowStale = !!allowStale;\n this.noDeleteOnStaleGet = !!noDeleteOnStaleGet;\n this.updateAgeOnGet = !!updateAgeOnGet;\n this.updateAgeOnHas = !!updateAgeOnHas;\n this.ttlResolution =\n isPosInt(ttlResolution) || ttlResolution === 0\n ? ttlResolution\n : 1;\n this.ttlAutopurge = !!ttlAutopurge;\n this.ttl = ttl || 0;\n if (this.ttl) {\n if (!isPosInt(this.ttl)) {\n throw new TypeError('ttl must be a positive integer if specified');\n }\n this.#initializeTTLTracking();\n }\n // do not allow completely unbounded caches\n if (this.#max === 0 && this.ttl === 0 && this.#maxSize === 0) {\n throw new TypeError('At least one of max, maxSize, or ttl is required');\n }\n if (!this.ttlAutopurge && !this.#max && !this.#maxSize) {\n const code = 'LRU_CACHE_UNBOUNDED';\n if (shouldWarn(code)) {\n warned.add(code);\n const msg = 'TTL caching without ttlAutopurge, max, or maxSize can ' +\n 'result in unbounded memory consumption.';\n emitWarning(msg, 'UnboundedCacheWarning', code, LRUCache);\n }\n }\n }\n /**\n * Return the number of ms left in the item's TTL. If item is not in cache,\n * returns `0`. Returns `Infinity` if item is in cache without a defined TTL.\n */\n getRemainingTTL(key) {\n return this.#keyMap.has(key) ? Infinity : 0;\n }\n #initializeTTLTracking() {\n const ttls = new ZeroArray(this.#max);\n const starts = new ZeroArray(this.#max);\n this.#ttls = ttls;\n this.#starts = starts;\n this.#setItemTTL = (index, ttl, start = perf.now()) => {\n starts[index] = ttl !== 0 ? start : 0;\n ttls[index] = ttl;\n if (ttl !== 0 && this.ttlAutopurge) {\n const t = setTimeout(() => {\n if (this.#isStale(index)) {\n this.#delete(this.#keyList[index], 'expire');\n }\n }, ttl + 1);\n // unref() not supported on all platforms\n /* c8 ignore start */\n if (t.unref) {\n t.unref();\n }\n /* c8 ignore stop */\n }\n };\n this.#updateItemAge = index => {\n starts[index] = ttls[index] !== 0 ? perf.now() : 0;\n };\n this.#statusTTL = (status, index) => {\n if (ttls[index]) {\n const ttl = ttls[index];\n const start = starts[index];\n /* c8 ignore next */\n if (!ttl || !start)\n return;\n status.ttl = ttl;\n status.start = start;\n status.now = cachedNow || getNow();\n const age = status.now - start;\n status.remainingTTL = ttl - age;\n }\n };\n // debounce calls to perf.now() to 1s so we're not hitting\n // that costly call repeatedly.\n let cachedNow = 0;\n const getNow = () => {\n const n = perf.now();\n if (this.ttlResolution > 0) {\n cachedNow = n;\n const t = setTimeout(() => (cachedNow = 0), this.ttlResolution);\n // not available on all platforms\n /* c8 ignore start */\n if (t.unref) {\n t.unref();\n }\n /* c8 ignore stop */\n }\n return n;\n };\n this.getRemainingTTL = key => {\n const index = this.#keyMap.get(key);\n if (index === undefined) {\n return 0;\n }\n const ttl = ttls[index];\n const start = starts[index];\n if (!ttl || !start) {\n return Infinity;\n }\n const age = (cachedNow || getNow()) - start;\n return ttl - age;\n };\n this.#isStale = index => {\n const s = starts[index];\n const t = ttls[index];\n return !!t && !!s && (cachedNow || getNow()) - s > t;\n };\n }\n // conditionally set private methods related to TTL\n #updateItemAge = () => { };\n #statusTTL = () => { };\n #setItemTTL = () => { };\n /* c8 ignore stop */\n #isStale = () => false;\n #initializeSizeTracking() {\n const sizes = new ZeroArray(this.#max);\n this.#calculatedSize = 0;\n this.#sizes = sizes;\n this.#removeItemSize = index => {\n this.#calculatedSize -= sizes[index];\n sizes[index] = 0;\n };\n this.#requireSize = (k, v, size, sizeCalculation) => {\n // provisionally accept background fetches.\n // actual value size will be checked when they return.\n if (this.#isBackgroundFetch(v)) {\n return 0;\n }\n if (!isPosInt(size)) {\n if (sizeCalculation) {\n if (typeof sizeCalculation !== 'function') {\n throw new TypeError('sizeCalculation must be a function');\n }\n size = sizeCalculation(v, k);\n if (!isPosInt(size)) {\n throw new TypeError('sizeCalculation return invalid (expect positive integer)');\n }\n }\n else {\n throw new TypeError('invalid size value (must be positive integer). ' +\n 'When maxSize or maxEntrySize is used, sizeCalculation ' +\n 'or size must be set.');\n }\n }\n return size;\n };\n this.#addItemSize = (index, size, status) => {\n sizes[index] = size;\n if (this.#maxSize) {\n const maxSize = this.#maxSize - sizes[index];\n while (this.#calculatedSize > maxSize) {\n this.#evict(true);\n }\n }\n this.#calculatedSize += sizes[index];\n if (status) {\n status.entrySize = size;\n status.totalCalculatedSize = this.#calculatedSize;\n }\n };\n }\n #removeItemSize = _i => { };\n #addItemSize = (_i, _s, _st) => { };\n #requireSize = (_k, _v, size, sizeCalculation) => {\n if (size || sizeCalculation) {\n throw new TypeError('cannot set size without setting maxSize or maxEntrySize on cache');\n }\n return 0;\n };\n *#indexes({ allowStale = this.allowStale } = {}) {\n if (this.#size) {\n for (let i = this.#tail; true;) {\n if (!this.#isValidIndex(i)) {\n break;\n }\n if (allowStale || !this.#isStale(i)) {\n yield i;\n }\n if (i === this.#head) {\n break;\n }\n else {\n i = this.#prev[i];\n }\n }\n }\n }\n *#rindexes({ allowStale = this.allowStale } = {}) {\n if (this.#size) {\n for (let i = this.#head; true;) {\n if (!this.#isValidIndex(i)) {\n break;\n }\n if (allowStale || !this.#isStale(i)) {\n yield i;\n }\n if (i === this.#tail) {\n break;\n }\n else {\n i = this.#next[i];\n }\n }\n }\n }\n #isValidIndex(index) {\n return (index !== undefined &&\n this.#keyMap.get(this.#keyList[index]) === index);\n }\n /**\n * Return a generator yielding `[key, value]` pairs,\n * in order from most recently used to least recently used.\n */\n *entries() {\n for (const i of this.#indexes()) {\n if (this.#valList[i] !== undefined &&\n this.#keyList[i] !== undefined &&\n !this.#isBackgroundFetch(this.#valList[i])) {\n yield [this.#keyList[i], this.#valList[i]];\n }\n }\n }\n /**\n * Inverse order version of {@link LRUCache.entries}\n *\n * Return a generator yielding `[key, value]` pairs,\n * in order from least recently used to most recently used.\n */\n *rentries() {\n for (const i of this.#rindexes()) {\n if (this.#valList[i] !== undefined &&\n this.#keyList[i] !== undefined &&\n !this.#isBackgroundFetch(this.#valList[i])) {\n yield [this.#keyList[i], this.#valList[i]];\n }\n }\n }\n /**\n * Return a generator yielding the keys in the cache,\n * in order from most recently used to least recently used.\n */\n *keys() {\n for (const i of this.#indexes()) {\n const k = this.#keyList[i];\n if (k !== undefined &&\n !this.#isBackgroundFetch(this.#valList[i])) {\n yield k;\n }\n }\n }\n /**\n * Inverse order version of {@link LRUCache.keys}\n *\n * Return a generator yielding the keys in the cache,\n * in order from least recently used to most recently used.\n */\n *rkeys() {\n for (const i of this.#rindexes()) {\n const k = this.#keyList[i];\n if (k !== undefined &&\n !this.#isBackgroundFetch(this.#valList[i])) {\n yield k;\n }\n }\n }\n /**\n * Return a generator yielding the values in the cache,\n * in order from most recently used to least recently used.\n */\n *values() {\n for (const i of this.#indexes()) {\n const v = this.#valList[i];\n if (v !== undefined &&\n !this.#isBackgroundFetch(this.#valList[i])) {\n yield this.#valList[i];\n }\n }\n }\n /**\n * Inverse order version of {@link LRUCache.values}\n *\n * Return a generator yielding the values in the cache,\n * in order from least recently used to most recently used.\n */\n *rvalues() {\n for (const i of this.#rindexes()) {\n const v = this.#valList[i];\n if (v !== undefined &&\n !this.#isBackgroundFetch(this.#valList[i])) {\n yield this.#valList[i];\n }\n }\n }\n /**\n * Iterating over the cache itself yields the same results as\n * {@link LRUCache.entries}\n */\n [Symbol.iterator]() {\n return this.entries();\n }\n /**\n * A String value that is used in the creation of the default string\n * description of an object. Called by the built-in method\n * `Object.prototype.toString`.\n */\n [Symbol.toStringTag] = 'LRUCache';\n /**\n * Find a value for which the supplied fn method returns a truthy value,\n * similar to `Array.find()`. fn is called as `fn(value, key, cache)`.\n */\n find(fn, getOptions = {}) {\n for (const i of this.#indexes()) {\n const v = this.#valList[i];\n const value = this.#isBackgroundFetch(v)\n ? v.__staleWhileFetching\n : v;\n if (value === undefined)\n continue;\n if (fn(value, this.#keyList[i], this)) {\n return this.get(this.#keyList[i], getOptions);\n }\n }\n }\n /**\n * Call the supplied function on each item in the cache, in order from most\n * recently used to least recently used.\n *\n * `fn` is called as `fn(value, key, cache)`.\n *\n * If `thisp` is provided, function will be called in the `this`-context of\n * the provided object, or the cache if no `thisp` object is provided.\n *\n * Does not update age or recenty of use, or iterate over stale values.\n */\n forEach(fn, thisp = this) {\n for (const i of this.#indexes()) {\n const v = this.#valList[i];\n const value = this.#isBackgroundFetch(v)\n ? v.__staleWhileFetching\n : v;\n if (value === undefined)\n continue;\n fn.call(thisp, value, this.#keyList[i], this);\n }\n }\n /**\n * The same as {@link LRUCache.forEach} but items are iterated over in\n * reverse order. (ie, less recently used items are iterated over first.)\n */\n rforEach(fn, thisp = this) {\n for (const i of this.#rindexes()) {\n const v = this.#valList[i];\n const value = this.#isBackgroundFetch(v)\n ? v.__staleWhileFetching\n : v;\n if (value === undefined)\n continue;\n fn.call(thisp, value, this.#keyList[i], this);\n }\n }\n /**\n * Delete any stale entries. Returns true if anything was removed,\n * false otherwise.\n */\n purgeStale() {\n let deleted = false;\n for (const i of this.#rindexes({ allowStale: true })) {\n if (this.#isStale(i)) {\n this.#delete(this.#keyList[i], 'expire');\n deleted = true;\n }\n }\n return deleted;\n }\n /**\n * Get the extended info about a given entry, to get its value, size, and\n * TTL info simultaneously. Returns `undefined` if the key is not present.\n *\n * Unlike {@link LRUCache#dump}, which is designed to be portable and survive\n * serialization, the `start` value is always the current timestamp, and the\n * `ttl` is a calculated remaining time to live (negative if expired).\n *\n * Always returns stale values, if their info is found in the cache, so be\n * sure to check for expirations (ie, a negative {@link LRUCache.Entry#ttl})\n * if relevant.\n */\n info(key) {\n const i = this.#keyMap.get(key);\n if (i === undefined)\n return undefined;\n const v = this.#valList[i];\n const value = this.#isBackgroundFetch(v)\n ? v.__staleWhileFetching\n : v;\n if (value === undefined)\n return undefined;\n const entry = { value };\n if (this.#ttls && this.#starts) {\n const ttl = this.#ttls[i];\n const start = this.#starts[i];\n if (ttl && start) {\n const remain = ttl - (perf.now() - start);\n entry.ttl = remain;\n entry.start = Date.now();\n }\n }\n if (this.#sizes) {\n entry.size = this.#sizes[i];\n }\n return entry;\n }\n /**\n * Return an array of [key, {@link LRUCache.Entry}] tuples which can be\n * passed to {@link LRLUCache#load}.\n *\n * The `start` fields are calculated relative to a portable `Date.now()`\n * timestamp, even if `performance.now()` is available.\n *\n * Stale entries are always included in the `dump`, even if\n * {@link LRUCache.OptionsBase.allowStale} is false.\n *\n * Note: this returns an actual array, not a generator, so it can be more\n * easily passed around.\n */\n dump() {\n const arr = [];\n for (const i of this.#indexes({ allowStale: true })) {\n const key = this.#keyList[i];\n const v = this.#valList[i];\n const value = this.#isBackgroundFetch(v)\n ? v.__staleWhileFetching\n : v;\n if (value === undefined || key === undefined)\n continue;\n const entry = { value };\n if (this.#ttls && this.#starts) {\n entry.ttl = this.#ttls[i];\n // always dump the start relative to a portable timestamp\n // it's ok for this to be a bit slow, it's a rare operation.\n const age = perf.now() - this.#starts[i];\n entry.start = Math.floor(Date.now() - age);\n }\n if (this.#sizes) {\n entry.size = this.#sizes[i];\n }\n arr.unshift([key, entry]);\n }\n return arr;\n }\n /**\n * Reset the cache and load in the items in entries in the order listed.\n *\n * The shape of the resulting cache may be different if the same options are\n * not used in both caches.\n *\n * The `start` fields are assumed to be calculated relative to a portable\n * `Date.now()` timestamp, even if `performance.now()` is available.\n */\n load(arr) {\n this.clear();\n for (const [key, entry] of arr) {\n if (entry.start) {\n // entry.start is a portable timestamp, but we may be using\n // node's performance.now(), so calculate the offset, so that\n // we get the intended remaining TTL, no matter how long it's\n // been on ice.\n //\n // it's ok for this to be a bit slow, it's a rare operation.\n const age = Date.now() - entry.start;\n entry.start = perf.now() - age;\n }\n this.set(key, entry.value, entry);\n }\n }\n /**\n * Add a value to the cache.\n *\n * Note: if `undefined` is specified as a value, this is an alias for\n * {@link LRUCache#delete}\n *\n * Fields on the {@link LRUCache.SetOptions} options param will override\n * their corresponding values in the constructor options for the scope\n * of this single `set()` operation.\n *\n * If `start` is provided, then that will set the effective start\n * time for the TTL calculation. Note that this must be a previous\n * value of `performance.now()` if supported, or a previous value of\n * `Date.now()` if not.\n *\n * Options object may also include `size`, which will prevent\n * calling the `sizeCalculation` function and just use the specified\n * number if it is a positive integer, and `noDisposeOnSet` which\n * will prevent calling a `dispose` function in the case of\n * overwrites.\n *\n * If the `size` (or return value of `sizeCalculation`) for a given\n * entry is greater than `maxEntrySize`, then the item will not be\n * added to the cache.\n *\n * Will update the recency of the entry.\n *\n * If the value is `undefined`, then this is an alias for\n * `cache.delete(key)`. `undefined` is never stored in the cache.\n */\n set(k, v, setOptions = {}) {\n if (v === undefined) {\n this.delete(k);\n return this;\n }\n const { ttl = this.ttl, start, noDisposeOnSet = this.noDisposeOnSet, sizeCalculation = this.sizeCalculation, status, } = setOptions;\n let { noUpdateTTL = this.noUpdateTTL } = setOptions;\n const size = this.#requireSize(k, v, setOptions.size || 0, sizeCalculation);\n // if the item doesn't fit, don't do anything\n // NB: maxEntrySize set to maxSize by default\n if (this.maxEntrySize && size > this.maxEntrySize) {\n if (status) {\n status.set = 'miss';\n status.maxEntrySizeExceeded = true;\n }\n // have to delete, in case something is there already.\n this.#delete(k, 'set');\n return this;\n }\n let index = this.#size === 0 ? undefined : this.#keyMap.get(k);\n if (index === undefined) {\n // addition\n index = (this.#size === 0\n ? this.#tail\n : this.#free.length !== 0\n ? this.#free.pop()\n : this.#size === this.#max\n ? this.#evict(false)\n : this.#size);\n this.#keyList[index] = k;\n this.#valList[index] = v;\n this.#keyMap.set(k, index);\n this.#next[this.#tail] = index;\n this.#prev[index] = this.#tail;\n this.#tail = index;\n this.#size++;\n this.#addItemSize(index, size, status);\n if (status)\n status.set = 'add';\n noUpdateTTL = false;\n }\n else {\n // update\n this.#moveToTail(index);\n const oldVal = this.#valList[index];\n if (v !== oldVal) {\n if (this.#hasFetchMethod && this.#isBackgroundFetch(oldVal)) {\n oldVal.__abortController.abort(new Error('replaced'));\n const { __staleWhileFetching: s } = oldVal;\n if (s !== undefined && !noDisposeOnSet) {\n if (this.#hasDispose) {\n this.#dispose?.(s, k, 'set');\n }\n if (this.#hasDisposeAfter) {\n this.#disposed?.push([s, k, 'set']);\n }\n }\n }\n else if (!noDisposeOnSet) {\n if (this.#hasDispose) {\n this.#dispose?.(oldVal, k, 'set');\n }\n if (this.#hasDisposeAfter) {\n this.#disposed?.push([oldVal, k, 'set']);\n }\n }\n this.#removeItemSize(index);\n this.#addItemSize(index, size, status);\n this.#valList[index] = v;\n if (status) {\n status.set = 'replace';\n const oldValue = oldVal && this.#isBackgroundFetch(oldVal)\n ? oldVal.__staleWhileFetching\n : oldVal;\n if (oldValue !== undefined)\n status.oldValue = oldValue;\n }\n }\n else if (status) {\n status.set = 'update';\n }\n }\n if (ttl !== 0 && !this.#ttls) {\n this.#initializeTTLTracking();\n }\n if (this.#ttls) {\n if (!noUpdateTTL) {\n this.#setItemTTL(index, ttl, start);\n }\n if (status)\n this.#statusTTL(status, index);\n }\n if (!noDisposeOnSet && this.#hasDisposeAfter && this.#disposed) {\n const dt = this.#disposed;\n let task;\n while ((task = dt?.shift())) {\n this.#disposeAfter?.(...task);\n }\n }\n return this;\n }\n /**\n * Evict the least recently used item, returning its value or\n * `undefined` if cache is empty.\n */\n pop() {\n try {\n while (this.#size) {\n const val = this.#valList[this.#head];\n this.#evict(true);\n if (this.#isBackgroundFetch(val)) {\n if (val.__staleWhileFetching) {\n return val.__staleWhileFetching;\n }\n }\n else if (val !== undefined) {\n return val;\n }\n }\n }\n finally {\n if (this.#hasDisposeAfter && this.#disposed) {\n const dt = this.#disposed;\n let task;\n while ((task = dt?.shift())) {\n this.#disposeAfter?.(...task);\n }\n }\n }\n }\n #evict(free) {\n const head = this.#head;\n const k = this.#keyList[head];\n const v = this.#valList[head];\n if (this.#hasFetchMethod && this.#isBackgroundFetch(v)) {\n v.__abortController.abort(new Error('evicted'));\n }\n else if (this.#hasDispose || this.#hasDisposeAfter) {\n if (this.#hasDispose) {\n this.#dispose?.(v, k, 'evict');\n }\n if (this.#hasDisposeAfter) {\n this.#disposed?.push([v, k, 'evict']);\n }\n }\n this.#removeItemSize(head);\n // if we aren't about to use the index, then null these out\n if (free) {\n this.#keyList[head] = undefined;\n this.#valList[head] = undefined;\n this.#free.push(head);\n }\n if (this.#size === 1) {\n this.#head = this.#tail = 0;\n this.#free.length = 0;\n }\n else {\n this.#head = this.#next[head];\n }\n this.#keyMap.delete(k);\n this.#size--;\n return head;\n }\n /**\n * Check if a key is in the cache, without updating the recency of use.\n * Will return false if the item is stale, even though it is technically\n * in the cache.\n *\n * Check if a key is in the cache, without updating the recency of\n * use. Age is updated if {@link LRUCache.OptionsBase.updateAgeOnHas} is set\n * to `true` in either the options or the constructor.\n *\n * Will return `false` if the item is stale, even though it is technically in\n * the cache. The difference can be determined (if it matters) by using a\n * `status` argument, and inspecting the `has` field.\n *\n * Will not update item age unless\n * {@link LRUCache.OptionsBase.updateAgeOnHas} is set.\n */\n has(k, hasOptions = {}) {\n const { updateAgeOnHas = this.updateAgeOnHas, status } = hasOptions;\n const index = this.#keyMap.get(k);\n if (index !== undefined) {\n const v = this.#valList[index];\n if (this.#isBackgroundFetch(v) &&\n v.__staleWhileFetching === undefined) {\n return false;\n }\n if (!this.#isStale(index)) {\n if (updateAgeOnHas) {\n this.#updateItemAge(index);\n }\n if (status) {\n status.has = 'hit';\n this.#statusTTL(status, index);\n }\n return true;\n }\n else if (status) {\n status.has = 'stale';\n this.#statusTTL(status, index);\n }\n }\n else if (status) {\n status.has = 'miss';\n }\n return false;\n }\n /**\n * Like {@link LRUCache#get} but doesn't update recency or delete stale\n * items.\n *\n * Returns `undefined` if the item is stale, unless\n * {@link LRUCache.OptionsBase.allowStale} is set.\n */\n peek(k, peekOptions = {}) {\n const { allowStale = this.allowStale } = peekOptions;\n const index = this.#keyMap.get(k);\n if (index === undefined ||\n (!allowStale && this.#isStale(index))) {\n return;\n }\n const v = this.#valList[index];\n // either stale and allowed, or forcing a refresh of non-stale value\n return this.#isBackgroundFetch(v) ? v.__staleWhileFetching : v;\n }\n #backgroundFetch(k, index, options, context) {\n const v = index === undefined ? undefined : this.#valList[index];\n if (this.#isBackgroundFetch(v)) {\n return v;\n }\n const ac = new AC();\n const { signal } = options;\n // when/if our AC signals, then stop listening to theirs.\n signal?.addEventListener('abort', () => ac.abort(signal.reason), {\n signal: ac.signal,\n });\n const fetchOpts = {\n signal: ac.signal,\n options,\n context,\n };\n const cb = (v, updateCache = false) => {\n const { aborted } = ac.signal;\n const ignoreAbort = options.ignoreFetchAbort && v !== undefined;\n if (options.status) {\n if (aborted && !updateCache) {\n options.status.fetchAborted = true;\n options.status.fetchError = ac.signal.reason;\n if (ignoreAbort)\n options.status.fetchAbortIgnored = true;\n }\n else {\n options.status.fetchResolved = true;\n }\n }\n if (aborted && !ignoreAbort && !updateCache) {\n return fetchFail(ac.signal.reason);\n }\n // either we didn't abort, and are still here, or we did, and ignored\n const bf = p;\n if (this.#valList[index] === p) {\n if (v === undefined) {\n if (bf.__staleWhileFetching) {\n this.#valList[index] = bf.__staleWhileFetching;\n }\n else {\n this.#delete(k, 'fetch');\n }\n }\n else {\n if (options.status)\n options.status.fetchUpdated = true;\n this.set(k, v, fetchOpts.options);\n }\n }\n return v;\n };\n const eb = (er) => {\n if (options.status) {\n options.status.fetchRejected = true;\n options.status.fetchError = er;\n }\n return fetchFail(er);\n };\n const fetchFail = (er) => {\n const { aborted } = ac.signal;\n const allowStaleAborted = aborted && options.allowStaleOnFetchAbort;\n const allowStale = allowStaleAborted || options.allowStaleOnFetchRejection;\n const noDelete = allowStale || options.noDeleteOnFetchRejection;\n const bf = p;\n if (this.#valList[index] === p) {\n // if we allow stale on fetch rejections, then we need to ensure that\n // the stale value is not removed from the cache when the fetch fails.\n const del = !noDelete || bf.__staleWhileFetching === undefined;\n if (del) {\n this.#delete(k, 'fetch');\n }\n else if (!allowStaleAborted) {\n // still replace the *promise* with the stale value,\n // since we are done with the promise at this point.\n // leave it untouched if we're still waiting for an\n // aborted background fetch that hasn't yet returned.\n this.#valList[index] = bf.__staleWhileFetching;\n }\n }\n if (allowStale) {\n if (options.status && bf.__staleWhileFetching !== undefined) {\n options.status.returnedStale = true;\n }\n return bf.__staleWhileFetching;\n }\n else if (bf.__returned === bf) {\n throw er;\n }\n };\n const pcall = (res, rej) => {\n const fmp = this.#fetchMethod?.(k, v, fetchOpts);\n if (fmp && fmp instanceof Promise) {\n fmp.then(v => res(v === undefined ? undefined : v), rej);\n }\n // ignored, we go until we finish, regardless.\n // defer check until we are actually aborting,\n // so fetchMethod can override.\n ac.signal.addEventListener('abort', () => {\n if (!options.ignoreFetchAbort ||\n options.allowStaleOnFetchAbort) {\n res(undefined);\n // when it eventually resolves, update the cache.\n if (options.allowStaleOnFetchAbort) {\n res = v => cb(v, true);\n }\n }\n });\n };\n if (options.status)\n options.status.fetchDispatched = true;\n const p = new Promise(pcall).then(cb, eb);\n const bf = Object.assign(p, {\n __abortController: ac,\n __staleWhileFetching: v,\n __returned: undefined,\n });\n if (index === undefined) {\n // internal, don't expose status.\n this.set(k, bf, { ...fetchOpts.options, status: undefined });\n index = this.#keyMap.get(k);\n }\n else {\n this.#valList[index] = bf;\n }\n return bf;\n }\n #isBackgroundFetch(p) {\n if (!this.#hasFetchMethod)\n return false;\n const b = p;\n return (!!b &&\n b instanceof Promise &&\n b.hasOwnProperty('__staleWhileFetching') &&\n b.__abortController instanceof AC);\n }\n async fetch(k, fetchOptions = {}) {\n const { \n // get options\n allowStale = this.allowStale, updateAgeOnGet = this.updateAgeOnGet, noDeleteOnStaleGet = this.noDeleteOnStaleGet, \n // set options\n ttl = this.ttl, noDisposeOnSet = this.noDisposeOnSet, size = 0, sizeCalculation = this.sizeCalculation, noUpdateTTL = this.noUpdateTTL, \n // fetch exclusive options\n noDeleteOnFetchRejection = this.noDeleteOnFetchRejection, allowStaleOnFetchRejection = this.allowStaleOnFetchRejection, ignoreFetchAbort = this.ignoreFetchAbort, allowStaleOnFetchAbort = this.allowStaleOnFetchAbort, context, forceRefresh = false, status, signal, } = fetchOptions;\n if (!this.#hasFetchMethod) {\n if (status)\n status.fetch = 'get';\n return this.get(k, {\n allowStale,\n updateAgeOnGet,\n noDeleteOnStaleGet,\n status,\n });\n }\n const options = {\n allowStale,\n updateAgeOnGet,\n noDeleteOnStaleGet,\n ttl,\n noDisposeOnSet,\n size,\n sizeCalculation,\n noUpdateTTL,\n noDeleteOnFetchRejection,\n allowStaleOnFetchRejection,\n allowStaleOnFetchAbort,\n ignoreFetchAbort,\n status,\n signal,\n };\n let index = this.#keyMap.get(k);\n if (index === undefined) {\n if (status)\n status.fetch = 'miss';\n const p = this.#backgroundFetch(k, index, options, context);\n return (p.__returned = p);\n }\n else {\n // in cache, maybe already fetching\n const v = this.#valList[index];\n if (this.#isBackgroundFetch(v)) {\n const stale = allowStale && v.__staleWhileFetching !== undefined;\n if (status) {\n status.fetch = 'inflight';\n if (stale)\n status.returnedStale = true;\n }\n return stale ? v.__staleWhileFetching : (v.__returned = v);\n }\n // if we force a refresh, that means do NOT serve the cached value,\n // unless we are already in the process of refreshing the cache.\n const isStale = this.#isStale(index);\n if (!forceRefresh && !isStale) {\n if (status)\n status.fetch = 'hit';\n this.#moveToTail(index);\n if (updateAgeOnGet) {\n this.#updateItemAge(index);\n }\n if (status)\n this.#statusTTL(status, index);\n return v;\n }\n // ok, it is stale or a forced refresh, and not already fetching.\n // refresh the cache.\n const p = this.#backgroundFetch(k, index, options, context);\n const hasStale = p.__staleWhileFetching !== undefined;\n const staleVal = hasStale && allowStale;\n if (status) {\n status.fetch = isStale ? 'stale' : 'refresh';\n if (staleVal && isStale)\n status.returnedStale = true;\n }\n return staleVal ? p.__staleWhileFetching : (p.__returned = p);\n }\n }\n async forceFetch(k, fetchOptions = {}) {\n const v = await this.fetch(k, fetchOptions);\n if (v === undefined)\n throw new Error('fetch() returned undefined');\n return v;\n }\n memo(k, memoOptions = {}) {\n const memoMethod = this.#memoMethod;\n if (!memoMethod) {\n throw new Error('no memoMethod provided to constructor');\n }\n const { context, forceRefresh, ...options } = memoOptions;\n const v = this.get(k, options);\n if (!forceRefresh && v !== undefined)\n return v;\n const vv = memoMethod(k, v, {\n options,\n context,\n });\n this.set(k, vv, options);\n return vv;\n }\n /**\n * Return a value from the cache. Will update the recency of the cache\n * entry found.\n *\n * If the key is not found, get() will return `undefined`.\n */\n get(k, getOptions = {}) {\n const { allowStale = this.allowStale, updateAgeOnGet = this.updateAgeOnGet, noDeleteOnStaleGet = this.noDeleteOnStaleGet, status, } = getOptions;\n const index = this.#keyMap.get(k);\n if (index !== undefined) {\n const value = this.#valList[index];\n const fetching = this.#isBackgroundFetch(value);\n if (status)\n this.#statusTTL(status, index);\n if (this.#isStale(index)) {\n if (status)\n status.get = 'stale';\n // delete only if not an in-flight background fetch\n if (!fetching) {\n if (!noDeleteOnStaleGet) {\n this.#delete(k, 'expire');\n }\n if (status && allowStale)\n status.returnedStale = true;\n return allowStale ? value : undefined;\n }\n else {\n if (status &&\n allowStale &&\n value.__staleWhileFetching !== undefined) {\n status.returnedStale = true;\n }\n return allowStale ? value.__staleWhileFetching : undefined;\n }\n }\n else {\n if (status)\n status.get = 'hit';\n // if we're currently fetching it, we don't actually have it yet\n // it's not stale, which means this isn't a staleWhileRefetching.\n // If it's not stale, and fetching, AND has a __staleWhileFetching\n // value, then that means the user fetched with {forceRefresh:true},\n // so it's safe to return that value.\n if (fetching) {\n return value.__staleWhileFetching;\n }\n this.#moveToTail(index);\n if (updateAgeOnGet) {\n this.#updateItemAge(index);\n }\n return value;\n }\n }\n else if (status) {\n status.get = 'miss';\n }\n }\n #connect(p, n) {\n this.#prev[n] = p;\n this.#next[p] = n;\n }\n #moveToTail(index) {\n // if tail already, nothing to do\n // if head, move head to next[index]\n // else\n // move next[prev[index]] to next[index] (head has no prev)\n // move prev[next[index]] to prev[index]\n // prev[index] = tail\n // next[tail] = index\n // tail = index\n if (index !== this.#tail) {\n if (index === this.#head) {\n this.#head = this.#next[index];\n }\n else {\n this.#connect(this.#prev[index], this.#next[index]);\n }\n this.#connect(this.#tail, index);\n this.#tail = index;\n }\n }\n /**\n * Deletes a key out of the cache.\n *\n * Returns true if the key was deleted, false otherwise.\n */\n delete(k) {\n return this.#delete(k, 'delete');\n }\n #delete(k, reason) {\n let deleted = false;\n if (this.#size !== 0) {\n const index = this.#keyMap.get(k);\n if (index !== undefined) {\n deleted = true;\n if (this.#size === 1) {\n this.#clear(reason);\n }\n else {\n this.#removeItemSize(index);\n const v = this.#valList[index];\n if (this.#isBackgroundFetch(v)) {\n v.__abortController.abort(new Error('deleted'));\n }\n else if (this.#hasDispose || this.#hasDisposeAfter) {\n if (this.#hasDispose) {\n this.#dispose?.(v, k, reason);\n }\n if (this.#hasDisposeAfter) {\n this.#disposed?.push([v, k, reason]);\n }\n }\n this.#keyMap.delete(k);\n this.#keyList[index] = undefined;\n this.#valList[index] = undefined;\n if (index === this.#tail) {\n this.#tail = this.#prev[index];\n }\n else if (index === this.#head) {\n this.#head = this.#next[index];\n }\n else {\n const pi = this.#prev[index];\n this.#next[pi] = this.#next[index];\n const ni = this.#next[index];\n this.#prev[ni] = this.#prev[index];\n }\n this.#size--;\n this.#free.push(index);\n }\n }\n }\n if (this.#hasDisposeAfter && this.#disposed?.length) {\n const dt = this.#disposed;\n let task;\n while ((task = dt?.shift())) {\n this.#disposeAfter?.(...task);\n }\n }\n return deleted;\n }\n /**\n * Clear the cache entirely, throwing away all values.\n */\n clear() {\n return this.#clear('delete');\n }\n #clear(reason) {\n for (const index of this.#rindexes({ allowStale: true })) {\n const v = this.#valList[index];\n if (this.#isBackgroundFetch(v)) {\n v.__abortController.abort(new Error('deleted'));\n }\n else {\n const k = this.#keyList[index];\n if (this.#hasDispose) {\n this.#dispose?.(v, k, reason);\n }\n if (this.#hasDisposeAfter) {\n this.#disposed?.push([v, k, reason]);\n }\n }\n }\n this.#keyMap.clear();\n this.#valList.fill(undefined);\n this.#keyList.fill(undefined);\n if (this.#ttls && this.#starts) {\n this.#ttls.fill(0);\n this.#starts.fill(0);\n }\n if (this.#sizes) {\n this.#sizes.fill(0);\n }\n this.#head = 0;\n this.#tail = 0;\n this.#free.length = 0;\n this.#calculatedSize = 0;\n this.#size = 0;\n if (this.#hasDisposeAfter && this.#disposed) {\n const dt = this.#disposed;\n let task;\n while ((task = dt?.shift())) {\n this.#disposeAfter?.(...task);\n }\n }\n }\n}\n//# sourceMappingURL=index.js.map"],"names":["e","Object","Symbol","performance","Date","Set","process","console","globalThis","Math","isFinite","Uint8Array","Uint16Array","Uint32Array","Number","Array","TypeError","i","Error","Map","t","setTimeout","s","a","Promise","n"],"mappings":"2BAAA,GAAoB,CAAC,CAAG,CAACA,EAAS,KACjC,IAAI,IAAI,KAAO,EACL,EAAoB,CAAC,CAAC,EAAY,IAAQ,CAAC,EAAoB,CAAC,CAACA,EAAS,IACzEC,OAAO,cAAc,CAACD,EAAS,EAAK,CAAE,WAAY,GAAM,IAAK,CAAU,CAAC,EAAI,AAAC,EAGzF,ECNA,EAAoB,CAAC,CAAG,CAAC,EAAK,IAAUC,OAAO,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,EAAK,GCClF,EAAoB,CAAC,CAAG,AAAC,IACrB,AAAkB,aAAlB,OAAOC,QAA0BA,OAAO,WAAW,EACrDD,OAAO,cAAc,CAAC,EAASC,OAAO,WAAW,CAAE,CAAE,MAAO,QAAS,GAEtED,OAAO,cAAc,CAAC,EAAS,aAAc,CAAE,MAAO,EAAK,EAC5D,E,wCCHA,IAAM,EAAO,AAAuB,UAAvB,OAAOE,aAChBA,aACA,AAA2B,YAA3B,OAAOA,YAAY,GAAG,CACpBA,YACAC,KACA,EAAS,IAAIC,IAEb,EAAW,AAAmB,UAAnB,OAAOC,SAA0BA,QAAUA,QAAU,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line at end of file diff --git a/packages/node_modules/module-details-from-path/index.js.map b/packages/node_modules/module-details-from-path/index.js.map new file mode 100644 index 00000000000..2c15ab13892 --- /dev/null +++ b/packages/node_modules/module-details-from-path/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"module-details-from-path/index.js","sources":["webpack:///./module-details-from-path/index.js"],"sourcesContent":["'use strict'\n\nvar sep = require('path').sep\n\nmodule.exports = function (file) {\n var segments = file.split(sep)\n var index = segments.lastIndexOf('node_modules')\n\n if (index === -1) return\n if (!segments[index + 1]) return\n\n var scoped = segments[index + 1][0] === '@'\n var name = scoped ? segments[index + 1] + '/' + segments[index + 2] : segments[index + 1]\n var offset = scoped ? 3 : 2\n\n var basedir = ''\n var lastBaseDirSegmentIndex = index + offset - 1\n for (var i = 0; i <= lastBaseDirSegmentIndex; i++) {\n if (i === lastBaseDirSegmentIndex) {\n basedir += segments[i]\n } else {\n basedir += segments[i] + sep\n }\n }\n\n var path = ''\n var lastSegmentIndex = segments.length - 1\n for (var i2 = index + offset; i2 <= lastSegmentIndex; i2++) {\n if (i2 === lastSegmentIndex) {\n path += segments[i2]\n } else {\n path += segments[i2] + sep\n }\n }\n\n return {\n name: name,\n basedir: basedir,\n path: path\n }\n}\n"],"names":[],"mappings":"gFAEA,IAAI,EAAM,aAEV,GAAO,OAAO,CAAG,SAAU,CAAI,EAC7B,IAAI,EAAW,EAAK,KAAK,CAAC,GACtB,EAAQ,EAAS,WAAW,CAAC,gBAEjC,GAAI,AAAU,KAAV,GACC,CAAQ,CAAC,EAAQ,EAAE,EAQxB,IAAK,IAND,EAAS,AAA2B,MAA3B,CAAQ,CAAC,EAAQ,EAAE,CAAC,EAAE,CAC/B,EAAO,EAAS,CAAQ,CAAC,EAAQ,EAAE,CAAG,IAAM,CAAQ,CAAC,EAAQ,EAAE,CAAG,CAAQ,CAAC,EAAQ,EAAE,CACrF,EAAS,EAAS,EAAI,EAEtB,EAAU,GACV,EAA0B,EAAQ,EAAS,EACtC,EAAI,EAAG,GAAK,EAAyB,IACxC,IAAM,EACR,GAAW,CAAQ,CAAC,EAAE,CAEtB,GAAW,CAAQ,CAAC,EAAE,CAAG,EAM7B,IAAK,IAFD,EAAO,GACP,EAAmB,EAAS,MAAM,CAAG,EAChC,EAAK,EAAQ,EAAQ,GAAM,EAAkB,IAChD,IAAO,EACT,GAAQ,CAAQ,CAAC,EAAG,CAEpB,GAAQ,CAAQ,CAAC,EAAG,CAAG,EAI3B,MAAO,CACL,KAAM,EACN,QAAS,EACT,KAAM,CACR,EACF,C"} \ No newline at end of file diff --git a/packages/node_modules/mutexify/promise/index.js.map b/packages/node_modules/mutexify/promise/index.js.map new file mode 100644 index 00000000000..a79684d4a6b --- /dev/null +++ b/packages/node_modules/mutexify/promise/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"mutexify/promise/index.js","sources":["webpack:///./mutexify/index.js","webpack:///./mutexify/promise.js","webpack:///./queue-tick/process-next-tick.js","webpack:///./queue-tick/queue-microtask.js"],"sourcesContent":["var queueTick = require('queue-tick')\n\nvar mutexify = function () {\n var queue = []\n var used = null\n\n var call = function () {\n used(release)\n }\n\n var acquire = function (fn) {\n if (used) return queue.push(fn)\n used = fn\n acquire.locked = true\n queueTick(call)\n return 0\n }\n\n acquire.locked = false\n\n var release = function (fn, err, value) {\n used = null\n acquire.locked = false\n if (queue.length) acquire(queue.shift())\n if (fn) fn(err, value)\n }\n\n return acquire\n}\n\nmodule.exports = mutexify\n","var mutexify = require('.')\n\nvar mutexifyPromise = function () {\n var lock = mutexify()\n\n var acquire = function () {\n return new Promise(lock)\n }\n\n Object.defineProperty(acquire, 'locked', {\n get: function () { return lock.locked },\n enumerable: true\n })\n\n return acquire\n}\n\nmodule.exports = mutexifyPromise\n","module.exports = (typeof process !== 'undefined' && typeof process.nextTick === 'function')\n ? process.nextTick.bind(process)\n : require('./queue-microtask')\n","module.exports = typeof queueMicrotask === 'function' ? queueMicrotask : (fn) => Promise.resolve().then(fn)\n"],"names":["Promise","Object","process","queueMicrotask"],"mappings":"mDAAA,IAAI,EAAY,EAAQ,oCA8BxB,GAAO,OAAO,CA5BC,WACb,IAAI,EAAQ,EAAE,CACV,EAAO,KAEP,EAAO,WACT,EAAK,EACP,EAEI,EAAU,SAAU,CAAE,SACxB,AAAI,EAAa,EAAM,IAAI,CAAC,IAC5B,EAAO,EACP,EAAQ,MAAM,CAAG,GACjB,EAAU,GACH,EACT,CAEA,GAAQ,MAAM,CAAG,GAEjB,IAAI,EAAU,SAAU,CAAE,CAAE,CAAG,CAAE,CAAK,EACpC,EAAO,KACP,EAAQ,MAAM,CAAG,GACb,EAAM,MAAM,EAAE,EAAQ,EAAM,KAAK,IACjC,GAAI,EAAG,EAAK,EAClB,EAEA,OAAO,CACT,C,0CC5BA,IAAI,EAAW,EAAQ,sBAiBvB,GAAO,OAAO,CAfQ,WACpB,IAAI,EAAO,IAEP,EAAU,WACZ,OAAO,IAAIA,QAAQ,EACrB,EAOA,OALAC,OAAO,cAAc,CAAC,EAAS,SAAU,CACvC,IAAK,WAAc,OAAO,EAAK,MAAM,AAAC,EACtC,WAAY,EACd,GAEO,CACT,C,sDCfA,EAAO,OAAO,CAAG,AAAC,AAAmB,aAAnB,OAAOC,SAA2B,AAA4B,YAA5B,OAAOA,QAAQ,QAAQ,CACvEA,QAAQ,QAAQ,CAAC,IAAI,CAACA,SACtB,EAAQ,kC,gDCFZ,EAAO,OAAO,CAAG,AAA0B,YAA1B,OAAOC,eAAgCA,eAAiB,AAAC,GAAOH,QAAQ,OAAO,GAAG,IAAI,CAAC,E"} \ No newline at end of file diff --git a/packages/node_modules/opentracing/index.js.map b/packages/node_modules/opentracing/index.js.map new file mode 100644 index 00000000000..65f1cf07b49 --- /dev/null +++ b/packages/node_modules/opentracing/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"opentracing/index.js","sources":["webpack:///./opentracing/lib/binary_carrier.js","webpack:///./opentracing/lib/constants.js","webpack:///./opentracing/lib/ext/tags.js","webpack:///./opentracing/lib/functions.js","webpack:///./opentracing/lib/global_tracer.js","webpack:///./opentracing/lib/index.js","webpack:///./opentracing/lib/mock_tracer/index.js","webpack:///./opentracing/lib/mock_tracer/mock_context.js","webpack:///./opentracing/lib/mock_tracer/mock_report.js","webpack:///./opentracing/lib/mock_tracer/mock_span.js","webpack:///./opentracing/lib/mock_tracer/mock_tracer.js","webpack:///./opentracing/lib/noop.js","webpack:///./opentracing/lib/reference.js","webpack:///./opentracing/lib/span.js","webpack:///./opentracing/lib/span_context.js","webpack:///./opentracing/lib/tracer.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\n/**\n * Convenience class to use as a binary carrier.\n *\n * Any valid Object with a field named `buffer` may be used as a binary carrier;\n * this class is only one such type of object that can be used.\n */\nvar BinaryCarrier = /** @class */ (function () {\n function BinaryCarrier(buffer) {\n this.buffer = buffer;\n }\n return BinaryCarrier;\n}());\nexports.default = BinaryCarrier;\n//# sourceMappingURL=binary_carrier.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\n/**\n * The FORMAT_BINARY format represents SpanContexts in an opaque binary\n * carrier.\n *\n * Tracer.inject() will set the buffer field to an Array-like (Array,\n * ArrayBuffer, or TypedBuffer) object containing the injected binary data.\n * Any valid Object can be used as long as the buffer field of the object\n * can be set.\n *\n * Tracer.extract() will look for `carrier.buffer`, and that field is\n * expected to be an Array-like object (Array, ArrayBuffer, or\n * TypedBuffer).\n */\nexports.FORMAT_BINARY = 'binary';\n/**\n * The FORMAT_TEXT_MAP format represents SpanContexts using a\n * string->string map (backed by a Javascript Object) as a carrier.\n *\n * NOTE: Unlike FORMAT_HTTP_HEADERS, FORMAT_TEXT_MAP places no restrictions\n * on the characters used in either the keys or the values of the map\n * entries.\n *\n * The FORMAT_TEXT_MAP carrier map may contain unrelated data (e.g.,\n * arbitrary gRPC metadata); as such, the Tracer implementation should use\n * a prefix or other convention to distinguish Tracer-specific key:value\n * pairs.\n */\nexports.FORMAT_TEXT_MAP = 'text_map';\n/**\n * The FORMAT_HTTP_HEADERS format represents SpanContexts using a\n * character-restricted string->string map (backed by a Javascript Object)\n * as a carrier.\n *\n * Keys and values in the FORMAT_HTTP_HEADERS carrier must be suitable for\n * use as HTTP headers (without modification or further escaping). That is,\n * the keys have a greatly restricted character set, casing for the keys\n * may not be preserved by various intermediaries, and the values should be\n * URL-escaped.\n *\n * The FORMAT_HTTP_HEADERS carrier map may contain unrelated data (e.g.,\n * arbitrary HTTP headers); as such, the Tracer implementation should use a\n * prefix or other convention to distinguish Tracer-specific key:value\n * pairs.\n */\nexports.FORMAT_HTTP_HEADERS = 'http_headers';\n/**\n * A Span may be the \"child of\" a parent Span. In a “child of” reference,\n * the parent Span depends on the child Span in some capacity.\n *\n * See more about reference types at https://github.com/opentracing/specification\n */\nexports.REFERENCE_CHILD_OF = 'child_of';\n/**\n * Some parent Spans do not depend in any way on the result of their child\n * Spans. In these cases, we say merely that the child Span “follows from”\n * the parent Span in a causal sense.\n *\n * See more about reference types at https://github.com/opentracing/specification\n */\nexports.REFERENCE_FOLLOWS_FROM = 'follows_from';\n//# sourceMappingURL=constants.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\n/** SPAN_KIND hints at relationship between spans, e.g. client/server */\nexports.SPAN_KIND = 'span.kind';\n/** Marks a span representing the client-side of an RPC or other remote call */\nexports.SPAN_KIND_RPC_CLIENT = 'client';\n/** Marks a span representing the server-side of an RPC or other remote call */\nexports.SPAN_KIND_RPC_SERVER = 'server';\n/** Marks a span representing the producing-side within a messaging system or other remote call */\nexports.SPAN_KIND_MESSAGING_PRODUCER = 'producer';\n/** Marks a span representing the consuming-side within a messaging system or other remote call */\nexports.SPAN_KIND_MESSAGING_CONSUMER = 'consumer';\n/**\n * ERROR (boolean) true if and only if the application considers the operation\n * represented by the Span to have failed\n */\nexports.ERROR = 'error';\n/**\n * COMPONENT (string) ia s low-cardinality identifier of the module, library,\n * or package that is generating a span.\n */\nexports.COMPONENT = 'component';\n/**\n * SAMPLING_PRIORITY (number) determines the priority of sampling this Span.\n * If greater than 0, a hint to the Tracer to do its best to capture the trace.\n * If 0, a hint to the trace to not-capture the trace. If absent, the Tracer\n * should use its default sampling mechanism.\n */\nexports.SAMPLING_PRIORITY = 'sampling.priority';\n// ---------------------------------------------------------------------------\n// PEER_* tags can be emitted by either client-side of server-side to describe\n// the other side/service in a peer-to-peer communications, like an RPC call.\n// ---------------------------------------------------------------------------\n/**\n * PEER_SERVICE (string) Remote service name (for some unspecified\n * definition of \"service\"). E.g., \"elasticsearch\", \"a_custom_microservice\", \"memcache\"\n */\nexports.PEER_SERVICE = 'peer.service';\n/** PEER_HOSTNAME (string) Remote hostname. E.g., \"opentracing.io\", \"internal.dns.name\" */\nexports.PEER_HOSTNAME = 'peer.hostname';\n/**\n * PEER_ADDRESS (string) Remote \"address\", suitable for use in a\n * networking client library. This may be a \"ip:port\", a bare\n * \"hostname\", a FQDN, or even a JDBC substring like \"mysql://prod-db:3306\"\n */\nexports.PEER_ADDRESS = 'peer.address';\n/**\n * PEER_HOST_IPV4 (number) Remote IPv4 address as a .-separated tuple.\n * E.g., \"127.0.0.1\"\n */\nexports.PEER_HOST_IPV4 = 'peer.ipv4';\n// PEER_HOST_IPV6 (string) Remote IPv6 address as a string of\n// colon-separated 4-char hex tuples. E.g., \"2001:0db8:85a3:0000:0000:8a2e:0370:7334\"\nexports.PEER_HOST_IPV6 = 'peer.ipv6';\n// PEER_PORT (number) Remote port. E.g., 80\nexports.PEER_PORT = 'peer.port';\n// ---------------------------------------------------------------------------\n// HTTP tags\n// ---------------------------------------------------------------------------\n/**\n * HTTP_URL (string) URL of the request being handled in this segment of the\n * trace, in standard URI format. E.g., \"https://domain.net/path/to?resource=here\"\n */\nexports.HTTP_URL = 'http.url';\n/**\n * HTTP_METHOD (string) HTTP method of the request for the associated Span. E.g.,\n * \"GET\", \"POST\"\n */\nexports.HTTP_METHOD = 'http.method';\n/**\n * HTTP_STATUS_CODE (number) HTTP response status code for the associated Span.\n * E.g., 200, 503, 404\n */\nexports.HTTP_STATUS_CODE = 'http.status_code';\n// -------------------------------------------------------------------------\n// Messaging tags\n// -------------------------------------------------------------------------\n/**\n * MESSAGE_BUS_DESTINATION (string) An address at which messages can be exchanged.\n * E.g. A Kafka record has an associated \"topic name\" that can be extracted\n * by the instrumented producer or consumer and stored using this tag.\n */\nexports.MESSAGE_BUS_DESTINATION = 'message_bus.destination';\n// --------------------------------------------------------------------------\n// Database tags\n// --------------------------------------------------------------------------\n/**\n * DB_INSTANCE (string) Database instance name. E.g., In java, if the\n * jdbc.url=\"jdbc:mysql://127.0.0.1:3306/customers\", the instance name is \"customers\".\n */\nexports.DB_INSTANCE = 'db.instance';\n/**\n * DB_STATEMENT (string) A database statement for the given database type.\n * E.g., for db.type=\"SQL\", \"SELECT * FROM wuser_table\";\n * for db.type=\"redis\", \"SET mykey 'WuValue'\".\n */\nexports.DB_STATEMENT = 'db.statement';\n/**\n * DB_TYPE (string) Database type. For any SQL database, \"sql\". For others,\n * the lower-case database category, e.g. \"cassandra\", \"hbase\", or \"redis\".\n */\nexports.DB_TYPE = 'db.type';\n/**\n * DB_USER (string) Username for accessing database. E.g., \"readonly_user\"\n * or \"reporting_user\"\n */\nexports.DB_USER = 'db.user';\n//# sourceMappingURL=tags.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar Constants = require(\"./constants\");\nvar reference_1 = require(\"./reference\");\nvar span_1 = require(\"./span\");\n/**\n * Return a new REFERENCE_CHILD_OF reference.\n *\n * @param {SpanContext} spanContext - the parent SpanContext instance to\n * reference.\n * @return a REFERENCE_CHILD_OF reference pointing to `spanContext`\n */\nfunction childOf(spanContext) {\n // Allow the user to pass a Span instead of a SpanContext\n if (spanContext instanceof span_1.default) {\n spanContext = spanContext.context();\n }\n return new reference_1.default(Constants.REFERENCE_CHILD_OF, spanContext);\n}\nexports.childOf = childOf;\n/**\n * Return a new REFERENCE_FOLLOWS_FROM reference.\n *\n * @param {SpanContext} spanContext - the parent SpanContext instance to\n * reference.\n * @return a REFERENCE_FOLLOWS_FROM reference pointing to `spanContext`\n */\nfunction followsFrom(spanContext) {\n // Allow the user to pass a Span instead of a SpanContext\n if (spanContext instanceof span_1.default) {\n spanContext = spanContext.context();\n }\n return new reference_1.default(Constants.REFERENCE_FOLLOWS_FROM, spanContext);\n}\nexports.followsFrom = followsFrom;\n//# sourceMappingURL=functions.js.map","\"use strict\";\nvar __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n return function (d, b) {\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n})();\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar tracer_1 = require(\"./tracer\");\nvar noopTracer = new tracer_1.default();\nvar _globalTracer = null;\n// Allows direct importing/requiring of the global tracer:\n//\n// let globalTracer = require('opentracing/global');\n// OR\n// import globalTracer from 'opentracing/global';\n//\n// Acts a bridge to the global tracer that can be safely called before the\n// global tracer is initialized. The purpose of the delegation is to avoid the\n// sometimes nearly intractible initialization order problems that can arise in\n// applications with a complex set of dependencies, while also avoiding the\n// case where\nvar GlobalTracerDelegate = /** @class */ (function (_super) {\n __extends(GlobalTracerDelegate, _super);\n function GlobalTracerDelegate() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n GlobalTracerDelegate.prototype.startSpan = function () {\n var tracer = _globalTracer || noopTracer;\n return tracer.startSpan.apply(tracer, arguments);\n };\n GlobalTracerDelegate.prototype.inject = function () {\n var tracer = _globalTracer || noopTracer;\n return tracer.inject.apply(tracer, arguments);\n };\n GlobalTracerDelegate.prototype.extract = function () {\n var tracer = _globalTracer || noopTracer;\n return tracer.extract.apply(tracer, arguments);\n };\n return GlobalTracerDelegate;\n}(tracer_1.default));\nvar globalTracerDelegate = new GlobalTracerDelegate();\n/**\n * Set the global Tracer.\n *\n * The behavior is undefined if this function is called more than once.\n *\n * @param {Tracer} tracer - the Tracer implementation\n */\nfunction initGlobalTracer(tracer) {\n _globalTracer = tracer;\n}\nexports.initGlobalTracer = initGlobalTracer;\n/**\n * Returns the global tracer.\n */\nfunction globalTracer() {\n // Return the delegate. Since the global tracer is largely a convenience\n // (the user can always create their own tracers), the delegate is used to\n // give the added convenience of not needing to worry about initialization\n // order.\n return globalTracerDelegate;\n}\nexports.globalTracer = globalTracer;\n//# sourceMappingURL=global_tracer.js.map","\"use strict\";\nfunction __export(m) {\n for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];\n}\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar binary_carrier_1 = require(\"./binary_carrier\");\nexports.BinaryCarrier = binary_carrier_1.default;\nvar Tags = require(\"./ext/tags\");\nexports.Tags = Tags;\nvar Noop = require(\"./noop\");\nvar reference_1 = require(\"./reference\");\nexports.Reference = reference_1.default;\nvar span_1 = require(\"./span\");\nexports.Span = span_1.default;\nvar span_context_1 = require(\"./span_context\");\nexports.SpanContext = span_context_1.default;\nvar tracer_1 = require(\"./tracer\");\nexports.Tracer = tracer_1.Tracer;\nvar mock_tracer_1 = require(\"./mock_tracer\");\nexports.MockTracer = mock_tracer_1.MockTracer;\n__export(require(\"./global_tracer\"));\n__export(require(\"./constants\"));\n__export(require(\"./functions\"));\n// Initialize the noops last to avoid a dependecy cycle between the classes.\nNoop.initialize();\n//# sourceMappingURL=index.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar mock_context_1 = require(\"./mock_context\");\nexports.MockContext = mock_context_1.default;\nvar mock_span_1 = require(\"./mock_span\");\nexports.MockSpan = mock_span_1.default;\nvar mock_tracer_1 = require(\"./mock_tracer\");\nexports.MockTracer = mock_tracer_1.default;\n//# sourceMappingURL=index.js.map","\"use strict\";\nvar __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n return function (d, b) {\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n})();\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar span_context_1 = require(\"../span_context\");\n/**\n * OpenTracing Context implementation designed for use in\n * unit tests.\n */\nvar MockContext = /** @class */ (function (_super) {\n __extends(MockContext, _super);\n function MockContext(span) {\n var _this = _super.call(this) || this;\n // Store a reference to the span itself since this is a mock tracer\n // intended to make debugging and unit testing easier.\n _this._span = span;\n return _this;\n }\n MockContext.prototype.span = function () {\n return this._span;\n };\n return MockContext;\n}(span_context_1.SpanContext));\nexports.MockContext = MockContext;\nexports.default = MockContext;\n//# sourceMappingURL=mock_context.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\n/**\n * Index a collection of reported MockSpans in a way that's easy to run unit\n * test assertions against.\n */\nvar MockReport = /** @class */ (function () {\n function MockReport(spans) {\n var _this = this;\n this.spans = spans;\n this.spansByUUID = {};\n this.spansByTag = {};\n this.debugSpans = [];\n this.unfinishedSpans = [];\n spans.forEach(function (span) {\n if (span._finishMs === 0) {\n _this.unfinishedSpans.push(span);\n }\n _this.spansByUUID[span.uuid()] = span;\n _this.debugSpans.push(span.debug());\n var tags = span.tags();\n Object.keys(tags).forEach(function (key) {\n var val = tags[key];\n _this.spansByTag[key] = _this.spansByTag[key] || {};\n _this.spansByTag[key][val] = _this.spansByTag[key][val] || [];\n _this.spansByTag[key][val].push(span);\n });\n });\n }\n MockReport.prototype.firstSpanWithTagValue = function (key, val) {\n var m = this.spansByTag[key];\n if (!m) {\n return null;\n }\n var n = m[val];\n if (!n) {\n return null;\n }\n return n[0];\n };\n return MockReport;\n}());\nexports.MockReport = MockReport;\nexports.default = MockReport;\n//# sourceMappingURL=mock_report.js.map","\"use strict\";\n/* eslint-disable import/no-extraneous-dependencies */\nvar __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n return function (d, b) {\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n})();\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar opentracing = require(\"../index\");\nvar mock_context_1 = require(\"./mock_context\");\n/**\n * OpenTracing Span implementation designed for use in unit tests.\n */\nvar MockSpan = /** @class */ (function (_super) {\n __extends(MockSpan, _super);\n //------------------------------------------------------------------------//\n // MockSpan-specific\n //------------------------------------------------------------------------//\n function MockSpan(tracer) {\n var _this = _super.call(this) || this;\n _this._mockTracer = tracer;\n _this._uuid = _this._generateUUID();\n _this._startMs = Date.now();\n _this._finishMs = 0;\n _this._operationName = '';\n _this._tags = {};\n _this._logs = [];\n return _this;\n }\n //------------------------------------------------------------------------//\n // OpenTracing implementation\n //------------------------------------------------------------------------//\n MockSpan.prototype._context = function () {\n return new mock_context_1.default(this);\n };\n MockSpan.prototype._setOperationName = function (name) {\n this._operationName = name;\n };\n MockSpan.prototype._addTags = function (set) {\n var keys = Object.keys(set);\n for (var _i = 0, keys_1 = keys; _i < keys_1.length; _i++) {\n var key = keys_1[_i];\n this._tags[key] = set[key];\n }\n };\n MockSpan.prototype._log = function (fields, timestamp) {\n this._logs.push({\n fields: fields,\n timestamp: timestamp\n });\n };\n MockSpan.prototype._finish = function (finishTime) {\n this._finishMs = finishTime || Date.now();\n };\n MockSpan.prototype.uuid = function () {\n return this._uuid;\n };\n MockSpan.prototype.operationName = function () {\n return this._operationName;\n };\n MockSpan.prototype.durationMs = function () {\n return this._finishMs - this._startMs;\n };\n MockSpan.prototype.tags = function () {\n return this._tags;\n };\n MockSpan.prototype.tracer = function () {\n return this._mockTracer;\n };\n MockSpan.prototype._generateUUID = function () {\n var p0 = (\"00000000\" + Math.abs((Math.random() * 0xFFFFFFFF) | 0).toString(16)).substr(-8);\n var p1 = (\"00000000\" + Math.abs((Math.random() * 0xFFFFFFFF) | 0).toString(16)).substr(-8);\n return \"\" + p0 + p1;\n };\n MockSpan.prototype.addReference = function (ref) {\n };\n /**\n * Returns a simplified object better for console.log()'ing.\n */\n MockSpan.prototype.debug = function () {\n var obj = {\n uuid: this._uuid,\n operation: this._operationName,\n millis: [this._finishMs - this._startMs, this._startMs, this._finishMs]\n };\n if (Object.keys(this._tags).length) {\n obj.tags = this._tags;\n }\n return obj;\n };\n return MockSpan;\n}(opentracing.Span));\nexports.MockSpan = MockSpan;\nexports.default = MockSpan;\n//# sourceMappingURL=mock_span.js.map","\"use strict\";\nvar __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n return function (d, b) {\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n})();\nObject.defineProperty(exports, \"__esModule\", { value: true });\n// TODO: Move mock-tracer to its own NPM package once it is complete and tested.\nvar opentracing = require(\"../index\");\nvar mock_report_1 = require(\"./mock_report\");\nvar mock_span_1 = require(\"./mock_span\");\n/**\n * OpenTracing Tracer implementation designed for use in unit tests.\n */\nvar MockTracer = /** @class */ (function (_super) {\n __extends(MockTracer, _super);\n //------------------------------------------------------------------------//\n // MockTracer-specific\n //------------------------------------------------------------------------//\n function MockTracer() {\n var _this = _super.call(this) || this;\n _this._spans = [];\n return _this;\n }\n //------------------------------------------------------------------------//\n // OpenTracing implementation\n //------------------------------------------------------------------------//\n MockTracer.prototype._startSpan = function (name, fields) {\n // _allocSpan is given it's own method so that derived classes can\n // allocate any type of object they want, but not have to duplicate\n // the other common logic in startSpan().\n var span = this._allocSpan();\n span.setOperationName(name);\n this._spans.push(span);\n if (fields.references) {\n for (var _i = 0, _a = fields.references; _i < _a.length; _i++) {\n var ref = _a[_i];\n span.addReference(ref);\n }\n }\n // Capture the stack at the time the span started\n span._startStack = new Error().stack;\n return span;\n };\n MockTracer.prototype._inject = function (span, format, carrier) {\n throw new Error('NOT YET IMPLEMENTED');\n };\n MockTracer.prototype._extract = function (format, carrier) {\n throw new Error('NOT YET IMPLEMENTED');\n };\n MockTracer.prototype._allocSpan = function () {\n return new mock_span_1.default(this);\n };\n /**\n * Discard any buffered data.\n */\n MockTracer.prototype.clear = function () {\n this._spans = [];\n };\n /**\n * Return the buffered data in a format convenient for making unit test\n * assertions.\n */\n MockTracer.prototype.report = function () {\n return new mock_report_1.default(this._spans);\n };\n return MockTracer;\n}(opentracing.Tracer));\nexports.MockTracer = MockTracer;\nexports.default = MockTracer;\n//# sourceMappingURL=mock_tracer.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar span_1 = require(\"./span\");\nvar span_context_1 = require(\"./span_context\");\nvar tracer_1 = require(\"./tracer\");\nexports.tracer = null;\nexports.spanContext = null;\nexports.span = null;\n// Deferred initialization to avoid a dependency cycle where Tracer depends on\n// Span which depends on the noop tracer.\nfunction initialize() {\n exports.tracer = new tracer_1.default();\n exports.span = new span_1.default();\n exports.spanContext = new span_context_1.default();\n}\nexports.initialize = initialize;\n//# sourceMappingURL=noop.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar span_1 = require(\"./span\");\n/**\n * Reference pairs a reference type constant (e.g., REFERENCE_CHILD_OF or\n * REFERENCE_FOLLOWS_FROM) with the SpanContext it points to.\n *\n * See the exported childOf() and followsFrom() functions at the package level.\n */\nvar Reference = /** @class */ (function () {\n /**\n * Initialize a new Reference instance.\n *\n * @param {string} type - the Reference type constant (e.g.,\n * REFERENCE_CHILD_OF or REFERENCE_FOLLOWS_FROM).\n * @param {SpanContext} referencedContext - the SpanContext being referred\n * to. As a convenience, a Span instance may be passed in instead\n * (in which case its .context() is used here).\n */\n function Reference(type, referencedContext) {\n this._type = type;\n this._referencedContext = (referencedContext instanceof span_1.default ?\n referencedContext.context() :\n referencedContext);\n }\n /**\n * @return {string} The Reference type (e.g., REFERENCE_CHILD_OF or\n * REFERENCE_FOLLOWS_FROM).\n */\n Reference.prototype.type = function () {\n return this._type;\n };\n /**\n * @return {SpanContext} The SpanContext being referred to (e.g., the\n * parent in a REFERENCE_CHILD_OF Reference).\n */\n Reference.prototype.referencedContext = function () {\n return this._referencedContext;\n };\n return Reference;\n}());\nexports.default = Reference;\n//# sourceMappingURL=reference.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar noop = require(\"./noop\");\n/**\n * Span represents a logical unit of work as part of a broader Trace. Examples\n * of span might include remote procedure calls or a in-process function calls\n * to sub-components. A Trace has a single, top-level \"root\" Span that in turn\n * may have zero or more child Spans, which in turn may have children.\n */\nvar Span = /** @class */ (function () {\n function Span() {\n }\n // ---------------------------------------------------------------------- //\n // OpenTracing API methods\n // ---------------------------------------------------------------------- //\n /**\n * Returns the SpanContext object associated with this Span.\n *\n * @return {SpanContext}\n */\n Span.prototype.context = function () {\n return this._context();\n };\n /**\n * Returns the Tracer object used to create this Span.\n *\n * @return {Tracer}\n */\n Span.prototype.tracer = function () {\n return this._tracer();\n };\n /**\n * Sets the string name for the logical operation this span represents.\n *\n * @param {string} name\n */\n Span.prototype.setOperationName = function (name) {\n this._setOperationName(name);\n return this;\n };\n /**\n * Sets a key:value pair on this Span that also propagates to future\n * children of the associated Span.\n *\n * setBaggageItem() enables powerful functionality given a full-stack\n * opentracing integration (e.g., arbitrary application data from a web\n * client can make it, transparently, all the way into the depths of a\n * storage system), and with it some powerful costs: use this feature with\n * care.\n *\n * IMPORTANT NOTE #1: setBaggageItem() will only propagate baggage items to\n * *future* causal descendants of the associated Span.\n *\n * IMPORTANT NOTE #2: Use this thoughtfully and with care. Every key and\n * value is copied into every local *and remote* child of the associated\n * Span, and that can add up to a lot of network and cpu overhead.\n *\n * @param {string} key\n * @param {string} value\n */\n Span.prototype.setBaggageItem = function (key, value) {\n this._setBaggageItem(key, value);\n return this;\n };\n /**\n * Returns the value for a baggage item given its key.\n *\n * @param {string} key\n * The key for the given trace attribute.\n * @return {string}\n * String value for the given key, or undefined if the key does not\n * correspond to a set trace attribute.\n */\n Span.prototype.getBaggageItem = function (key) {\n return this._getBaggageItem(key);\n };\n /**\n * Adds a single tag to the span. See `addTags()` for details.\n *\n * @param {string} key\n * @param {any} value\n */\n Span.prototype.setTag = function (key, value) {\n var _a;\n // NOTE: the call is normalized to a call to _addTags()\n this._addTags((_a = {}, _a[key] = value, _a));\n return this;\n };\n /**\n * Adds the given key value pairs to the set of span tags.\n *\n * Multiple calls to addTags() results in the tags being the superset of\n * all calls.\n *\n * The behavior of setting the same key multiple times on the same span\n * is undefined.\n *\n * The supported type of the values is implementation-dependent.\n * Implementations are expected to safely handle all types of values but\n * may choose to ignore unrecognized / unhandle-able values (e.g. objects\n * with cyclic references, function objects).\n *\n * @return {[type]} [description]\n */\n Span.prototype.addTags = function (keyValueMap) {\n this._addTags(keyValueMap);\n return this;\n };\n /**\n * Add a log record to this Span, optionally at a user-provided timestamp.\n *\n * For example:\n *\n * span.log({\n * size: rpc.size(), // numeric value\n * URI: rpc.URI(), // string value\n * payload: rpc.payload(), // Object value\n * \"keys can be arbitrary strings\": rpc.foo(),\n * });\n *\n * span.log({\n * \"error.description\": someError.description(),\n * }, someError.timestampMillis());\n *\n * @param {object} keyValuePairs\n * An object mapping string keys to arbitrary value types. All\n * Tracer implementations should support bool, string, and numeric\n * value types, and some may also support Object values.\n * @param {number} timestamp\n * An optional parameter specifying the timestamp in milliseconds\n * since the Unix epoch. Fractional values are allowed so that\n * timestamps with sub-millisecond accuracy can be represented. If\n * not specified, the implementation is expected to use its notion\n * of the current time of the call.\n */\n Span.prototype.log = function (keyValuePairs, timestamp) {\n this._log(keyValuePairs, timestamp);\n return this;\n };\n /**\n * DEPRECATED\n */\n Span.prototype.logEvent = function (eventName, payload) {\n return this._log({ event: eventName, payload: payload });\n };\n /**\n * Sets the end timestamp and finalizes Span state.\n *\n * With the exception of calls to Span.context() (which are always allowed),\n * finish() must be the last call made to any span instance, and to do\n * otherwise leads to undefined behavior.\n *\n * @param {number} finishTime\n * Optional finish time in milliseconds as a Unix timestamp. Decimal\n * values are supported for timestamps with sub-millisecond accuracy.\n * If not specified, the current time (as defined by the\n * implementation) will be used.\n */\n Span.prototype.finish = function (finishTime) {\n this._finish(finishTime);\n // Do not return `this`. The Span generally should not be used after it\n // is finished so chaining is not desired in this context.\n };\n // ---------------------------------------------------------------------- //\n // Derived classes can choose to implement the below\n // ---------------------------------------------------------------------- //\n // By default returns a no-op SpanContext.\n Span.prototype._context = function () {\n return noop.spanContext;\n };\n // By default returns a no-op tracer.\n //\n // The base class could store the tracer that created it, but it does not\n // in order to ensure the no-op span implementation has zero members,\n // which allows V8 to aggressively optimize calls to such objects.\n Span.prototype._tracer = function () {\n return noop.tracer;\n };\n // By default does nothing\n Span.prototype._setOperationName = function (name) {\n };\n // By default does nothing\n Span.prototype._setBaggageItem = function (key, value) {\n };\n // By default does nothing\n Span.prototype._getBaggageItem = function (key) {\n return undefined;\n };\n // By default does nothing\n //\n // NOTE: both setTag() and addTags() map to this function. keyValuePairs\n // will always be an associative array.\n Span.prototype._addTags = function (keyValuePairs) {\n };\n // By default does nothing\n Span.prototype._log = function (keyValuePairs, timestamp) {\n };\n // By default does nothing\n //\n // finishTime is expected to be either a number or undefined.\n Span.prototype._finish = function (finishTime) {\n };\n return Span;\n}());\nexports.Span = Span;\nexports.default = Span;\n//# sourceMappingURL=span.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\n/**\n * SpanContext represents Span state that must propagate to descendant Spans\n * and across process boundaries.\n *\n * SpanContext is logically divided into two pieces: the user-level \"Baggage\"\n * (see setBaggageItem and getBaggageItem) that propagates across Span\n * boundaries and any Tracer-implementation-specific fields that are needed to\n * identify or otherwise contextualize the associated Span instance (e.g., a\n * tuple).\n */\nvar SpanContext = /** @class */ (function () {\n function SpanContext() {\n }\n // The SpanContext is entirely implementation dependent\n /**\n * Returns a string representation of the implementation internal trace ID.\n *\n * @returns {string}\n */\n SpanContext.prototype.toTraceId = function () {\n return '';\n };\n /**\n * Returns a string representation of the implementation internal span ID.\n *\n * @returns {string}\n */\n SpanContext.prototype.toSpanId = function () {\n return '';\n };\n return SpanContext;\n}());\nexports.SpanContext = SpanContext;\nexports.default = SpanContext;\n//# sourceMappingURL=span_context.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar Functions = require(\"./functions\");\nvar Noop = require(\"./noop\");\nvar span_1 = require(\"./span\");\n/**\n * Tracer is the entry-point between the instrumentation API and the tracing\n * implementation.\n *\n * The default object acts as a no-op implementation.\n *\n * Note to implementators: derived classes can choose to directly implement the\n * methods in the \"OpenTracing API methods\" section, or optionally the subset of\n * underscore-prefixed methods to pick up the argument checking and handling\n * automatically from the base class.\n */\nvar Tracer = /** @class */ (function () {\n function Tracer() {\n }\n // ---------------------------------------------------------------------- //\n // OpenTracing API methods\n // ---------------------------------------------------------------------- //\n /**\n * Starts and returns a new Span representing a logical unit of work.\n *\n * For example:\n *\n * // Start a new (parentless) root Span:\n * var parent = Tracer.startSpan('DoWork');\n *\n * // Start a new (child) Span:\n * var child = Tracer.startSpan('load-from-db', {\n * childOf: parent.context(),\n * });\n *\n * // Start a new async (FollowsFrom) Span:\n * var child = Tracer.startSpan('async-cache-write', {\n * references: [\n * opentracing.followsFrom(parent.context())\n * ],\n * });\n *\n * @param {string} name - the name of the operation (REQUIRED).\n * @param {SpanOptions} [options] - options for the newly created span.\n * @return {Span} - a new Span object.\n */\n Tracer.prototype.startSpan = function (name, options) {\n if (options === void 0) { options = {}; }\n // Convert options.childOf to fields.references as needed.\n if (options.childOf) {\n // Convert from a Span or a SpanContext into a Reference.\n var childOf = Functions.childOf(options.childOf);\n if (options.references) {\n options.references.push(childOf);\n }\n else {\n options.references = [childOf];\n }\n delete (options.childOf);\n }\n return this._startSpan(name, options);\n };\n /**\n * Injects the given SpanContext instance for cross-process propagation\n * within `carrier`. The expected type of `carrier` depends on the value of\n * `format.\n *\n * OpenTracing defines a common set of `format` values (see\n * FORMAT_TEXT_MAP, FORMAT_HTTP_HEADERS, and FORMAT_BINARY), and each has\n * an expected carrier type.\n *\n * Consider this pseudocode example:\n *\n * var clientSpan = ...;\n * ...\n * // Inject clientSpan into a text carrier.\n * var headersCarrier = {};\n * Tracer.inject(clientSpan.context(), Tracer.FORMAT_HTTP_HEADERS, headersCarrier);\n * // Incorporate the textCarrier into the outbound HTTP request header\n * // map.\n * Object.assign(outboundHTTPReq.headers, headersCarrier);\n * // ... send the httpReq\n *\n * @param {SpanContext} spanContext - the SpanContext to inject into the\n * carrier object. As a convenience, a Span instance may be passed\n * in instead (in which case its .context() is used for the\n * inject()).\n * @param {string} format - the format of the carrier.\n * @param {any} carrier - see the documentation for the chosen `format`\n * for a description of the carrier object.\n */\n Tracer.prototype.inject = function (spanContext, format, carrier) {\n // Allow the user to pass a Span instead of a SpanContext\n if (spanContext instanceof span_1.default) {\n spanContext = spanContext.context();\n }\n return this._inject(spanContext, format, carrier);\n };\n /**\n * Returns a SpanContext instance extracted from `carrier` in the given\n * `format`.\n *\n * OpenTracing defines a common set of `format` values (see\n * FORMAT_TEXT_MAP, FORMAT_HTTP_HEADERS, and FORMAT_BINARY), and each has\n * an expected carrier type.\n *\n * Consider this pseudocode example:\n *\n * // Use the inbound HTTP request's headers as a text map carrier.\n * var headersCarrier = inboundHTTPReq.headers;\n * var wireCtx = Tracer.extract(Tracer.FORMAT_HTTP_HEADERS, headersCarrier);\n * var serverSpan = Tracer.startSpan('...', { childOf : wireCtx });\n *\n * @param {string} format - the format of the carrier.\n * @param {any} carrier - the type of the carrier object is determined by\n * the format.\n * @return {SpanContext}\n * The extracted SpanContext, or null if no such SpanContext could\n * be found in `carrier`\n */\n Tracer.prototype.extract = function (format, carrier) {\n return this._extract(format, carrier);\n };\n // ---------------------------------------------------------------------- //\n // Derived classes can choose to implement the below\n // ---------------------------------------------------------------------- //\n // NOTE: the input to this method is *always* an associative array. The\n // public-facing startSpan() method normalizes the arguments so that\n // all N implementations do not need to worry about variations in the call\n // signature.\n //\n // The default behavior returns a no-op span.\n Tracer.prototype._startSpan = function (name, fields) {\n return Noop.span;\n };\n // The default behavior is a no-op.\n Tracer.prototype._inject = function (spanContext, format, carrier) {\n };\n // The default behavior is to return a no-op SpanContext.\n Tracer.prototype._extract = function (format, carrier) {\n return Noop.spanContext;\n };\n return Tracer;\n}());\nexports.Tracer = Tracer;\nexports.default = Tracer;\n//# sourceMappingURL=tracer.js.map"],"names":["Object","e","Array","arguments","t","Date","Math","Error"],"mappings":"8EACAA,OAAO,cAAc,CAACC,EAAS,aAAc,CAAE,MAAO,EAAK,GAa3DA,EAAA,OAAe,CALX,SAAuB,CAAM,EACzB,IAAI,CAAC,MAAM,CAAG,CAClB,C,iDCVJD,OAAO,cAAc,CAACC,EAAS,aAAc,CAAE,MAAO,EAAK,GAc3DA,EAAQ,aAAa,CAAG,SAcxBA,EAAQ,eAAe,CAAG,WAiB1BA,EAAQ,mBAAmB,CAAG,eAO9BA,EAAQ,kBAAkB,CAAG,WAQ7BA,EAAQ,sBAAsB,CAAG,c,gDC5DjCD,OAAO,cAAc,CAACC,EAAS,aAAc,CAAE,MAAO,EAAK,GAE3DA,EAAQ,SAAS,CAAG,YAEpBA,EAAQ,oBAAoB,CAAG,SAE/BA,EAAQ,oBAAoB,CAAG,SAE/BA,EAAQ,4BAA4B,CAAG,WAEvCA,E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,EAAQ,UAAU,CAAG,CAAC,EAAQ,CAElC,OAAQ,EAAQ,OAAO,AAC3B,CACA,OAAO,IAAI,CAAC,UAAU,CAAC,EAAM,EACjC,EA8BA,EAAO,SAAS,CAAC,MAAM,CAAG,SAAU,CAAW,CAAE,CAAM,CAAE,CAAO,EAK5D,OAHI,aAAuB,EAAO,OAAO,EACrC,GAAc,EAAY,OAAO,EAAC,EAE/B,IAAI,CAAC,OAAO,CAAC,EAAa,EAAQ,EAC7C,EAuBA,EAAO,SAAS,CAAC,OAAO,CAAG,SAAU,CAAM,CAAE,CAAO,EAChD,OAAO,IAAI,CAAC,QAAQ,CAAC,EAAQ,EACjC,EAUA,EAAO,SAAS,CAAC,UAAU,CAAG,SAAU,CAAI,CAAE,CAAM,EAChD,OAAO,EAAK,IAAI,AACpB,EAEA,EAAO,SAAS,CAAC,OAAO,CAAG,SAAU,CAAW,CAAE,CAAM,CAAE,CAAO,EACjE,EAEA,EAAO,SAAS,CAAC,QAAQ,CAAG,SAAU,CAAM,CAAE,CAAO,EACjD,OAAO,EAAK,WAAW,AAC3B,EACO,CACX,GACAA,CAAAA,EAAQ,MAAM,CAAG,EACjBA,EAAA,OAAe,CAAG,C"} \ No newline at end of file diff --git a/packages/node_modules/path-to-regexp/index.js.map b/packages/node_modules/path-to-regexp/index.js.map new file mode 100644 index 00000000000..fe1da0cf770 --- /dev/null +++ b/packages/node_modules/path-to-regexp/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"path-to-regexp/index.js","sources":["webpack:///./path-to-regexp/index.js"],"sourcesContent":["/**\n * Expose `pathToRegexp`.\n */\n\nmodule.exports = pathToRegexp;\n\n/**\n * Match matching groups in a regular expression.\n */\nvar MATCHING_GROUP_REGEXP = /\\\\.|\\((?:\\?<(.*?)>)?(?!\\?)/g;\n\n/**\n * Normalize the given path string,\n * returning a regular expression.\n *\n * An empty array should be passed,\n * which will contain the placeholder\n * key names. For example \"/user/:id\" will\n * then contain [\"id\"].\n *\n * @param {String|RegExp|Array} path\n * @param {Array} keys\n * @param {Object} options\n * @return {RegExp}\n * @api private\n */\n\nfunction pathToRegexp(path, keys, options) {\n options = options || {};\n keys = keys || [];\n var strict = options.strict;\n var end = options.end !== false;\n var flags = options.sensitive ? '' : 'i';\n var lookahead = options.lookahead !== false;\n var extraOffset = 0;\n var keysOffset = keys.length;\n var i = 0;\n var name = 0;\n var pos = 0;\n var backtrack = '';\n var m;\n\n if (path instanceof RegExp) {\n while (m = MATCHING_GROUP_REGEXP.exec(path.source)) {\n if (m[0][0] === '\\\\') continue;\n\n keys.push({\n name: m[1] || name++,\n optional: false,\n offset: m.index\n });\n }\n\n return path;\n }\n\n if (Array.isArray(path)) {\n // Map array parts into regexps and return their source. We also pass\n // the same keys and options instance into every generation to get\n // consistent matching groups before we join the sources together.\n path = path.map(function (value) {\n return pathToRegexp(value, keys, options).source;\n });\n\n return new RegExp(path.join('|'), flags);\n }\n\n if (typeof path !== 'string') {\n throw new TypeError('path must be a string, array of strings, or regular expression');\n }\n\n path = path.replace(\n /\\\\.|(\\/)?(\\.)?:(\\w+)(\\(.*?\\))?(\\*)?(\\?)?|[.*]|\\/\\(/g,\n function (match, slash, format, key, capture, star, optional, offset) {\n if (match[0] === '\\\\') {\n backtrack += match;\n pos += 2;\n return match;\n }\n\n if (match === '.') {\n backtrack += '\\\\.';\n extraOffset += 1;\n pos += 1;\n return '\\\\.';\n }\n\n if (slash || format) {\n backtrack = '';\n } else {\n backtrack += path.slice(pos, offset);\n }\n\n pos = offset + match.length;\n\n if (match === '*') {\n extraOffset += 3;\n return '(.*)';\n }\n\n if (match === '/(') {\n backtrack += '/';\n extraOffset += 2;\n return '/(?:';\n }\n\n slash = slash || '';\n format = format ? '\\\\.' : '';\n optional = optional || '';\n capture = capture ?\n capture.replace(/\\\\.|\\*/, function (m) { return m === '*' ? '(.*)' : m; }) :\n (backtrack ? '((?:(?!/|' + backtrack + ').)+?)' : '([^/' + format + ']+?)');\n\n keys.push({\n name: key,\n optional: !!optional,\n offset: offset + extraOffset\n });\n\n var result = '(?:'\n + format + slash + capture\n + (star ? '((?:[/' + format + '].+?)?)' : '')\n + ')'\n + optional;\n\n extraOffset += result.length - match.length;\n\n return result;\n });\n\n // This is a workaround for handling unnamed matching groups.\n while (m = MATCHING_GROUP_REGEXP.exec(path)) {\n if (m[0][0] === '\\\\') continue;\n\n if (keysOffset + i === keys.length || keys[keysOffset + i].offset > m.index) {\n keys.splice(keysOffset + i, 0, {\n name: name++, // Unnamed matching groups must be consistently linear.\n optional: false,\n offset: m.index\n });\n }\n\n i++;\n }\n\n path += strict ? '' : path[path.length - 1] === '/' ? '?' : '/?';\n\n // If the path is non-ending, match until the end or a slash.\n if (end) {\n path += '$';\n } else if (path[path.length - 1] !== '/') {\n path += lookahead ? '(?=/|$)' : '(?:/|$)';\n }\n\n return new RegExp('^' + path, flags);\n};\n"],"names":["o","s","f","RegExp","Array","TypeError"],"mappings":"qDAIA,EAAO,OAAO,CAuBd,SAAS,EAAa,CAAI,CAAE,CAAI,CAAEA,CAAO,EAEvC,EAAO,GAAQ,EAAE,CACjB,IAUI,EAVAC,EAAS,AAFbD,CAAAA,EAAUA,GAAW,CAAC,GAED,MAAM,CACvB,EAAMA,AAAgB,KAAhBA,EAAQ,GAAG,CACjBE,EAAQF,EAAQ,SAAS,CAAG,GAAK,IACjC,EAAYA,AAAsB,KAAtBA,EAAQ,SAAS,CAC7B,EAAc,EACd,EAAa,EAAK,MAAM,CACxB,EAAI,EACJ,EAAO,EACP,EAAM,EACN,EAAY,GAGhB,GAAI,aAAgBG,OAAQ,CAC1B,KAAO,EAAI,EAAsB,IAAI,CAAC,EAAK,MAAM,GAC/B,OAAZ,CAAC,CAAC,EAAE,CAAC,EAAE,EAEX,EAAK,IAAI,CAAC,CACR,KAAM,CAAC,CAAC,EAAE,EAAI,IACd,SAAU,GACV,OAAQ,EAAE,KAAK,AACjB,GAGF,OAAO,CACT,CAEA,GAAIC,MAAM,OAAO,CAAC,GAQhB,OAAO,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EAAa,EAAE,CAAC,MAAM,CAAG,EAAE,KAAK,AAAD,GACxE,EAAK,MAAM,CAAC,EAAa,EAAG,EAAG,CAC7B,KAAM,IACN,SAAU,GACV,OAAQ,EAAE,KAAK,AACjB,GAGF,KAYF,OATA,GAAQJ,EAAS,GAAK,AAA0B,MAA1B,CAAI,CAAC,EAAK,MAAM,CAAG,EAAE,CAAW,IAAM,KAGxD,EACF,GAAQ,IACC,AAA0B,MAA1B,CAAI,CAAC,EAAK,MAAM,CAAG,EAAE,EAC9B,IAAQ,EAAY,UAAY,SAAQ,EAGnC,AAAIE,OAAO,IAAM,EAAMD,EAChC,EAlJA,IAAI,EAAwB,6B"} \ No newline at end of file diff --git a/packages/node_modules/pprof-format/index.js.map b/packages/node_modules/pprof-format/index.js.map new file mode 100644 index 00000000000..64327d14a04 --- /dev/null +++ b/packages/node_modules/pprof-format/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"pprof-format/index.js","sources":["webpack:///./pprof-format/dist/esm/index.js","webpack:///webpack/runtime/define_property_getters","webpack:///webpack/runtime/has_own_property","webpack:///webpack/runtime/make_namespace_object"],"sourcesContent":["/**\n * Unless explicitly stated otherwise all files in this repository are licensed under the MIT License.\n *\n * This product includes software developed at Datadog (https://www.datadoghq.com/ Copyright 2022 Datadog, Inc.\n */\nvar __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a getter\");\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot read private member from an object whose class did not declare it\");\n return kind === \"m\" ? f : kind === \"a\" ? f.call(receiver) : f ? f.value : state.get(receiver);\n};\nvar _StringTable_encodings, _StringTable_positions;\n/*!\n * Private helpers. These are only used by other helpers.\n */\nconst lowMaxBig = 2n ** 32n - 1n;\nconst lowMax = 2 ** 32 - 1;\nconst lowMaxPlus1 = lowMax + 1;\n// Buffer.from(string, 'utf8') is faster, when available\nconst toUtf8 = typeof Buffer === 'undefined'\n ? (value) => new TextEncoder().encode(value)\n : (value) => Buffer.from(value, 'utf8');\nfunction countNumberBytes(buffer) {\n if (!buffer.length)\n return 0;\n let i = 0;\n while (i < buffer.length && buffer[i++] >= 0b10000000)\n ;\n return i;\n}\nfunction decodeBigNumber(buffer) {\n if (!buffer.length)\n return BigInt(0);\n let value = BigInt(buffer[0] & 0b01111111);\n let i = 0;\n while (buffer[i++] >= 0b10000000) {\n value |= BigInt(buffer[i] & 0b01111111) << BigInt(7 * i);\n }\n return value;\n}\nfunction makeValue(value, offset = 0) {\n return { value, offset };\n}\nfunction getValue(mode, buffer) {\n switch (mode) {\n case kTypeVarInt:\n for (let i = 0; i < buffer.length; i++) {\n if (!(buffer[i] & 0b10000000)) {\n return makeValue(buffer.slice(0, i + 1));\n }\n }\n return makeValue(buffer);\n case kTypeLengthDelim: {\n const offset = countNumberBytes(buffer);\n const size = decodeNumber(buffer);\n return makeValue(buffer.slice(offset, Number(size) + offset), offset);\n }\n default:\n throw new Error(`Unrecognized value type: ${mode}`);\n }\n}\nfunction lowBits(number) {\n return typeof number !== 'bigint'\n ? (number >>> 0) % lowMaxPlus1\n : Number(number & lowMaxBig);\n}\nfunction highBits(number) {\n return typeof number !== 'bigint'\n ? (number / lowMaxPlus1) >>> 0\n : Number(number >> 32n & lowMaxBig);\n}\nfunction long(number) {\n const sign = number < 0;\n if (sign)\n number = -number;\n let lo = lowBits(number);\n let hi = highBits(number);\n if (sign) {\n hi = ~hi >>> 0;\n lo = ~lo >>> 0;\n if (++lo > lowMax) {\n lo = 0;\n if (++hi > lowMax) {\n hi = 0;\n }\n }\n }\n return [hi, lo];\n}\n/**\n * Public helpers. These are used in the type definitions.\n */\nconst kTypeVarInt = 0;\nconst kTypeLengthDelim = 2;\nfunction decodeNumber(buffer) {\n const size = countNumberBytes(buffer);\n if (size > 4)\n return decodeBigNumber(buffer);\n if (!buffer.length)\n return 0;\n let value = buffer[0] & 0b01111111;\n let i = 0;\n while (buffer[i++] >= 0b10000000) {\n value |= (buffer[i] & 0b01111111) << (7 * i);\n }\n return value;\n}\nfunction decodeNumbers(buffer) {\n const values = [];\n let start = 0;\n for (let i = 0; i < buffer.length; i++) {\n if ((buffer[i] & 0b10000000) === 0) {\n values.push(decodeNumber(buffer.slice(start, i + 1)));\n start = i + 1;\n }\n }\n return values;\n}\nfunction push(value, list) {\n if (list == null) {\n return [value];\n }\n list.push(value);\n return list;\n}\nfunction measureNumber(number) {\n if (number === 0 || number === 0n)\n return 0;\n const [hi, lo] = long(number);\n const a = lo;\n const b = (lo >>> 28 | hi << 4) >>> 0;\n const c = hi >>> 24;\n if (c !== 0) {\n return c < 128 ? 9 : 10;\n }\n if (b !== 0) {\n if (b < 16384) {\n return b < 128 ? 5 : 6;\n }\n return b < 2097152 ? 7 : 8;\n }\n if (a < 16384) {\n return a < 128 ? 1 : 2;\n }\n return a < 2097152 ? 3 : 4;\n}\nfunction measureValue(value) {\n if (typeof value === 'undefined')\n return 0;\n if (typeof value === 'number' || typeof value === 'bigint') {\n return measureNumber(value) || 1;\n }\n return value.length;\n}\nfunction measureArray(list) {\n let size = 0;\n for (const item of list) {\n size += measureValue(item);\n }\n return size;\n}\nfunction measureNumberField(number) {\n const length = measureNumber(number);\n return length ? 1 + length : 0;\n}\nfunction measureNumberArrayField(values) {\n let total = 0;\n for (const value of values) {\n // Arrays should always include zeros to keep positions consistent\n total += measureNumber(value) || 1;\n }\n // Packed arrays are encoded as Tag,Len,ConcatenatedElements\n // Tag is only one byte because field number is always < 16 in pprof\n return total ? 1 + measureNumber(total) + total : 0;\n}\nfunction measureLengthDelimField(value) {\n const length = measureValue(value);\n // Length delimited records / submessages are encoded as Tag,Len,EncodedRecord\n // Tag is only one byte because field number is always < 16 in pprof\n return length ? 1 + measureNumber(length) + length : 0;\n}\nfunction measureLengthDelimArrayField(values) {\n let total = 0;\n for (const value of values) {\n total += measureLengthDelimField(value);\n }\n return total;\n}\nfunction encodeNumber(buffer, i, number) {\n if (number === 0 || number === 0n) {\n buffer[i++] = 0;\n return i;\n }\n let [hi, lo] = long(number);\n while (hi) {\n buffer[i++] = lo & 127 | 128;\n lo = (lo >>> 7 | hi << 25) >>> 0;\n hi >>>= 7;\n }\n while (lo > 127) {\n buffer[i++] = lo & 127 | 128;\n lo = lo >>> 7;\n }\n buffer[i++] = lo;\n return i;\n}\nexport const emptyTableToken = Symbol();\nexport class StringTable {\n constructor(tok) {\n this.strings = new Array();\n _StringTable_encodings.set(this, new Array());\n _StringTable_positions.set(this, new Map());\n if (tok !== emptyTableToken) {\n this.dedup('');\n }\n }\n get encodedLength() {\n let size = 0;\n for (const encoded of __classPrivateFieldGet(this, _StringTable_encodings, \"f\")) {\n size += encoded.length;\n }\n return size;\n }\n _encodeToBuffer(buffer, offset) {\n for (const encoded of __classPrivateFieldGet(this, _StringTable_encodings, \"f\")) {\n buffer.set(encoded, offset);\n offset += encoded.length;\n }\n return offset;\n }\n encode(buffer = new Uint8Array(this.encodedLength)) {\n this._encodeToBuffer(buffer, 0);\n return buffer;\n }\n static _encodeStringFromUtf8(stringBuffer) {\n const buffer = new Uint8Array(1 + stringBuffer.length + (measureNumber(stringBuffer.length) || 1));\n let offset = 0;\n buffer[offset++] = 50; // (6 << 3) + kTypeLengthDelim\n offset = encodeNumber(buffer, offset, stringBuffer.length);\n if (stringBuffer.length > 0) {\n buffer.set(stringBuffer, offset++);\n }\n return buffer;\n }\n static _encodeString(string) {\n return StringTable._encodeStringFromUtf8(toUtf8(string));\n }\n dedup(string) {\n if (typeof string === 'number')\n return string;\n if (!__classPrivateFieldGet(this, _StringTable_positions, \"f\").has(string)) {\n const pos = this.strings.push(string) - 1;\n __classPrivateFieldGet(this, _StringTable_positions, \"f\").set(string, pos);\n // Encode strings on insertion\n __classPrivateFieldGet(this, _StringTable_encodings, \"f\").push(StringTable._encodeString(string));\n }\n return __classPrivateFieldGet(this, _StringTable_positions, \"f\").get(string);\n }\n _decodeString(buffer) {\n const string = new TextDecoder().decode(buffer);\n __classPrivateFieldGet(this, _StringTable_positions, \"f\").set(string, this.strings.push(string) - 1);\n __classPrivateFieldGet(this, _StringTable_encodings, \"f\").push(StringTable._encodeStringFromUtf8(buffer));\n }\n}\n_StringTable_encodings = new WeakMap(), _StringTable_positions = new WeakMap();\nfunction decode(buffer, decoder) {\n const data = {};\n let index = 0;\n while (index < buffer.length) {\n const field = buffer[index] >> 3;\n const mode = buffer[index] & 0b111;\n index++;\n const { offset, value } = getValue(mode, buffer.slice(index));\n index += value.length + offset;\n decoder(data, field, value);\n }\n return data;\n}\nexport class ValueType {\n static create(data) {\n return data instanceof ValueType ? data : new ValueType(data);\n }\n constructor(data) {\n this.type = data.type || 0;\n this.unit = data.unit || 0;\n }\n get length() {\n let total = 0;\n total += measureNumberField(this.type);\n total += measureNumberField(this.unit);\n return total;\n }\n _encodeToBuffer(buffer, offset = 0) {\n if (this.type) {\n buffer[offset++] = 8; // (1 << 3) + kTypeVarInt\n offset = encodeNumber(buffer, offset, this.type);\n }\n if (this.unit) {\n buffer[offset++] = 16; // (2 << 3) + kTypeVarInt\n offset = encodeNumber(buffer, offset, this.unit);\n }\n return offset;\n }\n encode(buffer = new Uint8Array(this.length)) {\n this._encodeToBuffer(buffer, 0);\n return buffer;\n }\n static decodeValue(data, field, buffer) {\n switch (field) {\n case 1:\n data.type = decodeNumber(buffer);\n break;\n case 2:\n data.unit = decodeNumber(buffer);\n break;\n }\n }\n static decode(buffer) {\n return new this(decode(buffer, this.decodeValue));\n }\n}\nexport class Label {\n static create(data) {\n return data instanceof Label ? data : new Label(data);\n }\n constructor(data) {\n this.key = data.key || 0;\n this.str = data.str || 0;\n this.num = data.num || 0;\n this.numUnit = data.numUnit || 0;\n }\n get length() {\n let total = 0;\n total += measureNumberField(this.key);\n total += measureNumberField(this.str);\n total += measureNumberField(this.num);\n total += measureNumberField(this.numUnit);\n return total;\n }\n _encodeToBuffer(buffer, offset = 0) {\n if (this.key) {\n buffer[offset++] = 8; // (1 << 3) + kTypeVarInt\n offset = encodeNumber(buffer, offset, this.key);\n }\n if (this.str) {\n buffer[offset++] = 16; // (2 << 3) + kTypeVarInt\n offset = encodeNumber(buffer, offset, this.str);\n }\n if (this.num) {\n buffer[offset++] = 24; // (3 << 3) + kTypeVarInt\n offset = encodeNumber(buffer, offset, this.num);\n }\n if (this.numUnit) {\n buffer[offset++] = 32; // (4 << 3) + kTypeVarInt\n offset = encodeNumber(buffer, offset, this.numUnit);\n }\n return offset;\n }\n encode(buffer = new Uint8Array(this.length)) {\n this._encodeToBuffer(buffer, 0);\n return buffer;\n }\n static decodeValue(data, field, buffer) {\n switch (field) {\n case 1:\n data.key = decodeNumber(buffer);\n break;\n case 2:\n data.str = decodeNumber(buffer);\n break;\n case 3:\n data.num = decodeNumber(buffer);\n break;\n case 4:\n data.numUnit = decodeNumber(buffer);\n break;\n }\n }\n static decode(buffer) {\n return new this(decode(buffer, this.decodeValue));\n }\n}\nexport class Sample {\n static create(data) {\n return data instanceof Sample ? data : new Sample(data);\n }\n constructor(data) {\n this.locationId = data.locationId || [];\n this.value = data.value || [];\n this.label = (data.label || []).map(Label.create);\n }\n get length() {\n let total = 0;\n total += measureNumberArrayField(this.locationId);\n total += measureNumberArrayField(this.value);\n total += measureLengthDelimArrayField(this.label);\n return total;\n }\n _encodeToBuffer(buffer, offset = 0) {\n if (this.locationId.length) {\n buffer[offset++] = 10; // (1 << 3) + kTypeLengthDelim\n offset = encodeNumber(buffer, offset, measureArray(this.locationId));\n for (const locationId of this.locationId) {\n offset = encodeNumber(buffer, offset, locationId);\n }\n }\n if (this.value.length) {\n buffer[offset++] = 18; // (2 << 3) + kTypeLengthDelim\n offset = encodeNumber(buffer, offset, measureArray(this.value));\n for (const value of this.value) {\n offset = encodeNumber(buffer, offset, value);\n }\n }\n for (const label of this.label) {\n buffer[offset++] = 26; // (3 << 3) + kTypeLengthDelim\n offset = encodeNumber(buffer, offset, label.length);\n offset = label._encodeToBuffer(buffer, offset);\n }\n return offset;\n }\n encode(buffer = new Uint8Array(this.length)) {\n this._encodeToBuffer(buffer, 0);\n return buffer;\n }\n static decodeValue(data, field, buffer) {\n switch (field) {\n case 1:\n data.locationId = decodeNumbers(buffer);\n break;\n case 2:\n data.value = decodeNumbers(buffer);\n break;\n case 3:\n data.label = push(Label.decode(buffer), data.label);\n break;\n }\n }\n static decode(buffer) {\n return new this(decode(buffer, this.decodeValue));\n }\n}\nexport class Mapping {\n static create(data) {\n return data instanceof Mapping ? data : new Mapping(data);\n }\n constructor(data) {\n this.id = data.id || 0;\n this.memoryStart = data.memoryStart || 0;\n this.memoryLimit = data.memoryLimit || 0;\n this.fileOffset = data.fileOffset || 0;\n this.filename = data.filename || 0;\n this.buildId = data.buildId || 0;\n this.hasFunctions = !!data.hasFunctions;\n this.hasFilenames = !!data.hasFilenames;\n this.hasLineNumbers = !!data.hasLineNumbers;\n this.hasInlineFrames = !!data.hasInlineFrames;\n }\n get length() {\n let total = 0;\n total += measureNumberField(this.id);\n total += measureNumberField(this.memoryStart);\n total += measureNumberField(this.memoryLimit);\n total += measureNumberField(this.fileOffset);\n total += measureNumberField(this.filename);\n total += measureNumberField(this.buildId);\n total += measureNumberField(this.hasFunctions ? 1 : 0);\n total += measureNumberField(this.hasFilenames ? 1 : 0);\n total += measureNumberField(this.hasLineNumbers ? 1 : 0);\n total += measureNumberField(this.hasInlineFrames ? 1 : 0);\n return total;\n }\n _encodeToBuffer(buffer, offset = 0) {\n if (this.id) {\n buffer[offset++] = 8; // (1 << 3) + kTypeVarInt\n offset = encodeNumber(buffer, offset, this.id);\n }\n if (this.memoryStart) {\n buffer[offset++] = 16; // (2 << 3) + kTypeVarInt\n offset = encodeNumber(buffer, offset, this.memoryStart);\n }\n if (this.memoryLimit) {\n buffer[offset++] = 24; // (3 << 3) + kTypeVarInt\n offset = encodeNumber(buffer, offset, this.memoryLimit);\n }\n if (this.fileOffset) {\n buffer[offset++] = 32; // (4 << 3) + kTypeVarInt\n offset = encodeNumber(buffer, offset, this.fileOffset);\n }\n if (this.filename) {\n buffer[offset++] = 40; // (5 << 3) + kTypeVarInt\n offset = encodeNumber(buffer, offset, this.filename);\n }\n if (this.buildId) {\n buffer[offset++] = 48; // (6 << 3) + kTypeVarInt\n offset = encodeNumber(buffer, offset, this.buildId);\n }\n if (this.hasFunctions) {\n buffer[offset++] = 56; // (7 << 3) + kTypeVarInt\n offset = encodeNumber(buffer, offset, 1);\n }\n if (this.hasFilenames) {\n buffer[offset++] = 64; // (8 << 3) + kTypeVarInt\n offset = encodeNumber(buffer, offset, 1);\n }\n if (this.hasLineNumbers) {\n buffer[offset++] = 72; // (9 << 3) + kTypeVarInt\n offset = encodeNumber(buffer, offset, 1);\n }\n if (this.hasInlineFrames) {\n buffer[offset++] = 80; // (10 << 3) + kTypeVarInt\n offset = encodeNumber(buffer, offset, 1);\n }\n return offset;\n }\n encode(buffer = new Uint8Array(this.length)) {\n this._encodeToBuffer(buffer, 0);\n return buffer;\n }\n static decodeValue(data, field, buffer) {\n switch (field) {\n case 1:\n data.id = decodeNumber(buffer);\n break;\n case 2:\n data.memoryStart = decodeNumber(buffer);\n break;\n case 3:\n data.memoryLimit = decodeNumber(buffer);\n break;\n case 4:\n data.fileOffset = decodeNumber(buffer);\n break;\n case 5:\n data.filename = decodeNumber(buffer);\n break;\n case 6:\n data.buildId = decodeNumber(buffer);\n break;\n case 7:\n data.hasFunctions = !!decodeNumber(buffer);\n break;\n case 8:\n data.hasFilenames = !!decodeNumber(buffer);\n break;\n case 9:\n data.hasLineNumbers = !!decodeNumber(buffer);\n break;\n case 10:\n data.hasInlineFrames = !!decodeNumber(buffer);\n break;\n }\n }\n static decode(buffer) {\n return new this(decode(buffer, this.decodeValue));\n }\n}\nexport class Line {\n static create(data) {\n return data instanceof Line ? data : new Line(data);\n }\n constructor(data) {\n this.functionId = data.functionId || 0;\n this.line = data.line || 0;\n }\n get length() {\n let total = 0;\n total += measureNumberField(this.functionId);\n total += measureNumberField(this.line);\n return total;\n }\n _encodeToBuffer(buffer, offset = 0) {\n if (this.functionId) {\n buffer[offset++] = 8; // (1 << 3) + kTypeVarInt\n offset = encodeNumber(buffer, offset, this.functionId);\n }\n if (this.line) {\n buffer[offset++] = 16; // (2 << 3) + kTypeVarInt\n offset = encodeNumber(buffer, offset, this.line);\n }\n return offset;\n }\n encode(buffer = new Uint8Array(this.length)) {\n this._encodeToBuffer(buffer, 0);\n return buffer;\n }\n static decodeValue(data, field, buffer) {\n switch (field) {\n case 1:\n data.functionId = decodeNumber(buffer);\n break;\n case 2:\n data.line = decodeNumber(buffer);\n break;\n }\n }\n static decode(buffer) {\n return new this(decode(buffer, this.decodeValue));\n }\n}\nexport class Location {\n static create(data) {\n return data instanceof Location ? data : new Location(data);\n }\n constructor(data) {\n this.id = data.id || 0;\n this.mappingId = data.mappingId || 0;\n this.address = data.address || 0;\n this.line = (data.line || []).map(Line.create);\n this.isFolded = !!data.isFolded;\n }\n get length() {\n let total = 0;\n total += measureNumberField(this.id);\n total += measureNumberField(this.mappingId);\n total += measureNumberField(this.address);\n total += measureLengthDelimArrayField(this.line);\n total += measureNumberField(this.isFolded ? 1 : 0);\n return total;\n }\n _encodeToBuffer(buffer, offset = 0) {\n if (this.id) {\n buffer[offset++] = 8; // (1 << 3) + kTypeVarInt\n offset = encodeNumber(buffer, offset, this.id);\n }\n if (this.mappingId) {\n buffer[offset++] = 16; // (2 << 3) + kTypeVarInt\n offset = encodeNumber(buffer, offset, this.mappingId);\n }\n if (this.address) {\n buffer[offset++] = 24; // (3 << 3) + kTypeVarInt\n offset = encodeNumber(buffer, offset, this.address);\n }\n for (const line of this.line) {\n buffer[offset++] = 34; // (4 << 3) + kTypeLengthDelim\n offset = encodeNumber(buffer, offset, line.length);\n offset = line._encodeToBuffer(buffer, offset);\n }\n if (this.isFolded) {\n buffer[offset++] = 40; // (5 << 3) + kTypeVarInt\n offset = encodeNumber(buffer, offset, 1);\n }\n return offset;\n }\n encode(buffer = new Uint8Array(this.length)) {\n this._encodeToBuffer(buffer, 0);\n return buffer;\n }\n static decodeValue(data, field, buffer) {\n switch (field) {\n case 1:\n data.id = decodeNumber(buffer);\n break;\n case 2:\n data.mappingId = decodeNumber(buffer);\n break;\n case 3:\n data.address = decodeNumber(buffer);\n break;\n case 4:\n data.line = push(Line.decode(buffer), data.line);\n break;\n case 5:\n data.isFolded = !!decodeNumber(buffer);\n break;\n }\n }\n static decode(buffer) {\n return new this(decode(buffer, this.decodeValue));\n }\n}\nexport class Function {\n static create(data) {\n return data instanceof Function ? data : new Function(data);\n }\n constructor(data) {\n this.id = data.id || 0;\n this.name = data.name || 0;\n this.systemName = data.systemName || 0;\n this.filename = data.filename || 0;\n this.startLine = data.startLine || 0;\n }\n get length() {\n let total = 0;\n total += measureNumberField(this.id);\n total += measureNumberField(this.name);\n total += measureNumberField(this.systemName);\n total += measureNumberField(this.filename);\n total += measureNumberField(this.startLine);\n return total;\n }\n _encodeToBuffer(buffer, offset = 0) {\n if (this.id) {\n buffer[offset++] = 8; // (1 << 3) + kTypeVarInt\n offset = encodeNumber(buffer, offset, this.id);\n }\n if (this.name) {\n buffer[offset++] = 16; // (2 << 3) + kTypeVarInt\n offset = encodeNumber(buffer, offset, this.name);\n }\n if (this.systemName) {\n buffer[offset++] = 24; // (3 << 3) + kTypeVarInt\n offset = encodeNumber(buffer, offset, this.systemName);\n }\n if (this.filename) {\n buffer[offset++] = 32; // (4 << 3) + kTypeVarInt\n offset = encodeNumber(buffer, offset, this.filename);\n }\n if (this.startLine) {\n buffer[offset++] = 40; // (5 << 3) + kTypeVarInt\n offset = encodeNumber(buffer, offset, this.startLine);\n }\n return offset;\n }\n encode(buffer = new Uint8Array(this.length)) {\n this._encodeToBuffer(buffer, 0);\n return buffer;\n }\n static decodeValue(data, field, buffer) {\n switch (field) {\n case 1:\n data.id = decodeNumber(buffer);\n break;\n case 2:\n data.name = decodeNumber(buffer);\n break;\n case 3:\n data.systemName = decodeNumber(buffer);\n break;\n case 4:\n data.filename = decodeNumber(buffer);\n break;\n case 5:\n data.startLine = decodeNumber(buffer);\n break;\n }\n }\n static decode(buffer) {\n return new this(decode(buffer, this.decodeValue));\n }\n}\nexport class Profile {\n constructor(data = {}) {\n this.sampleType = (data.sampleType || []).map(ValueType.create);\n this.sample = (data.sample || []).map(Sample.create);\n this.mapping = (data.mapping || []).map(Mapping.create);\n this.location = (data.location || []).map(Location.create);\n this.function = (data.function || []).map(Function.create);\n this.stringTable = data.stringTable || new StringTable();\n this.dropFrames = data.dropFrames || 0;\n this.keepFrames = data.keepFrames || 0;\n this.timeNanos = data.timeNanos || 0;\n this.durationNanos = data.durationNanos || 0;\n this.periodType = data.periodType ? ValueType.create(data.periodType) : undefined;\n this.period = data.period || 0;\n this.comment = data.comment || [];\n this.defaultSampleType = data.defaultSampleType || 0;\n }\n get length() {\n let total = 0;\n total += measureLengthDelimArrayField(this.sampleType);\n total += measureLengthDelimArrayField(this.sample);\n total += measureLengthDelimArrayField(this.mapping);\n total += measureLengthDelimArrayField(this.location);\n total += measureLengthDelimArrayField(this.function);\n total += this.stringTable.encodedLength;\n total += measureNumberField(this.dropFrames);\n total += measureNumberField(this.keepFrames);\n total += measureNumberField(this.timeNanos);\n total += measureNumberField(this.durationNanos);\n total += measureLengthDelimField(this.periodType);\n total += measureNumberField(this.period);\n total += measureNumberArrayField(this.comment);\n total += measureNumberField(this.defaultSampleType);\n return total;\n }\n _encodeSampleTypesToBuffer(buffer, offset = 0) {\n for (const sampleType of this.sampleType) {\n buffer[offset++] = 10; // (1 << 3) + kTypeLengthDelim\n offset = encodeNumber(buffer, offset, sampleType.length);\n offset = sampleType._encodeToBuffer(buffer, offset);\n }\n return offset;\n }\n _encodeSamplesToBuffer(buffer, offset = 0) {\n for (const sample of this.sample) {\n buffer[offset++] = 18; // (2 << 3) + kTypeLengthDelim\n offset = encodeNumber(buffer, offset, sample.length);\n offset = sample._encodeToBuffer(buffer, offset);\n }\n return offset;\n }\n _encodeMappingsToBuffer(buffer, offset = 0) {\n for (const mapping of this.mapping) {\n buffer[offset++] = 26; // (3 << 3) + kTypeLengthDelim\n offset = encodeNumber(buffer, offset, mapping.length);\n offset = mapping._encodeToBuffer(buffer, offset);\n }\n return offset;\n }\n _encodeLocationsToBuffer(buffer, offset = 0) {\n for (const location of this.location) {\n buffer[offset++] = 34; // (4 << 3) + kTypeLengthDelim\n offset = encodeNumber(buffer, offset, location.length);\n offset = location._encodeToBuffer(buffer, offset);\n }\n return offset;\n }\n _encodeFunctionsToBuffer(buffer, offset = 0) {\n for (const fun of this.function) {\n buffer[offset++] = 42; // (5 << 3) + kTypeLengthDelim\n offset = encodeNumber(buffer, offset, fun.length);\n offset = fun._encodeToBuffer(buffer, offset);\n }\n return offset;\n }\n _encodeBasicValuesToBuffer(buffer, offset = 0) {\n if (this.dropFrames) {\n buffer[offset++] = 56; // (7 << 3) + kTypeVarInt\n offset = encodeNumber(buffer, offset, this.dropFrames);\n }\n if (this.keepFrames) {\n buffer[offset++] = 64; // (8 << 3) + kTypeVarInt\n offset = encodeNumber(buffer, offset, this.keepFrames);\n }\n if (this.timeNanos) {\n buffer[offset++] = 72; // (9 << 3) + kTypeVarInt\n offset = encodeNumber(buffer, offset, this.timeNanos);\n }\n if (this.durationNanos) {\n buffer[offset++] = 80; // (10 << 3) + kTypeVarInt\n offset = encodeNumber(buffer, offset, this.durationNanos);\n }\n if (typeof this.periodType !== 'undefined') {\n buffer[offset++] = 90; // (11 << 3) + kTypeLengthDelim\n offset = encodeNumber(buffer, offset, this.periodType.length);\n offset = this.periodType._encodeToBuffer(buffer, offset);\n }\n if (this.period) {\n buffer[offset++] = 96; // (12 << 3) + kTypeVarInt\n offset = encodeNumber(buffer, offset, this.period);\n }\n if (this.comment.length) {\n buffer[offset++] = 106; // (13 << 3) + kTypeLengthDelim\n offset = encodeNumber(buffer, offset, measureArray(this.comment));\n for (const comment of this.comment) {\n offset = encodeNumber(buffer, offset, comment);\n }\n }\n if (this.defaultSampleType) {\n buffer[offset++] = 112; // (14 << 3) + kTypeVarInt\n offset = encodeNumber(buffer, offset, this.defaultSampleType);\n }\n return offset;\n }\n _encodeToBuffer(buffer, offset = 0) {\n offset = this._encodeSampleTypesToBuffer(buffer, offset);\n offset = this._encodeSamplesToBuffer(buffer, offset);\n offset = this._encodeMappingsToBuffer(buffer, offset);\n offset = this._encodeLocationsToBuffer(buffer, offset);\n offset = this._encodeFunctionsToBuffer(buffer, offset);\n offset = this.stringTable._encodeToBuffer(buffer, offset);\n offset = this._encodeBasicValuesToBuffer(buffer, offset);\n return offset;\n }\n async _encodeToBufferAsync(buffer, offset = 0) {\n offset = this._encodeSampleTypesToBuffer(buffer, offset);\n await new Promise(setImmediate);\n offset = this._encodeSamplesToBuffer(buffer, offset);\n await new Promise(setImmediate);\n offset = this._encodeMappingsToBuffer(buffer, offset);\n await new Promise(setImmediate);\n offset = this._encodeLocationsToBuffer(buffer, offset);\n await new Promise(setImmediate);\n offset = this._encodeFunctionsToBuffer(buffer, offset);\n await new Promise(setImmediate);\n offset = this.stringTable._encodeToBuffer(buffer, offset);\n await new Promise(setImmediate);\n offset = this._encodeBasicValuesToBuffer(buffer, offset);\n return offset;\n }\n encode(buffer = new Uint8Array(this.length)) {\n this._encodeToBuffer(buffer, 0);\n return buffer;\n }\n async encodeAsync(buffer = new Uint8Array(this.length)) {\n await this._encodeToBufferAsync(buffer, 0);\n return buffer;\n }\n static decodeValue(data, field, buffer) {\n switch (field) {\n case 1:\n data.sampleType = push(ValueType.decode(buffer), data.sampleType);\n break;\n case 2:\n data.sample = push(Sample.decode(buffer), data.sample);\n break;\n case 3:\n data.mapping = push(Mapping.decode(buffer), data.mapping);\n break;\n case 4:\n data.location = push(Location.decode(buffer), data.location);\n break;\n case 5:\n data.function = push(Function.decode(buffer), data.function);\n break;\n case 6: {\n if (data.stringTable === undefined) {\n data.stringTable = new StringTable(emptyTableToken);\n }\n data.stringTable._decodeString(buffer);\n break;\n }\n case 7:\n data.dropFrames = decodeNumber(buffer);\n break;\n case 8:\n data.keepFrames = decodeNumber(buffer);\n break;\n case 9:\n data.timeNanos = decodeNumber(buffer);\n break;\n case 10:\n data.durationNanos = decodeNumber(buffer);\n break;\n case 11:\n data.periodType = ValueType.decode(buffer);\n break;\n case 12:\n data.period = decodeNumber(buffer);\n break;\n case 13:\n data.comment = decodeNumbers(buffer);\n break;\n case 14:\n data.defaultSampleType = decodeNumber(buffer);\n break;\n }\n }\n static decode(buffer) {\n return new this(decode(buffer, this.decodeValue));\n }\n}\n//# sourceMappingURL=index.js.map","__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n }\n }\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};"],"names":["e","Object","Symbol","TypeError","Buffer","TextEncoder","c","s","Number","h","BigInt","i","t","Map","Uint8Array","TextDecoder","Error","WeakMap","L","P","Promise","setImmediate"],"mappings":"uBAUI,EAAwB,E,ICV5B,GAAoB,CAAC,CAAG,CAACA,EAAS,KACjC,IAAI,IAAI,KAAO,EACL,EAAoB,CAAC,CAAC,EAAY,IAAQ,CAAC,EAAoB,CAAC,CAACA,EAAS,IACzEC,OAAO,cAAc,CAACD,EAAS,EAAK,CAAE,WAAY,GAAM,IAAK,CAAU,CAAC,EAAI,AAAC,EAGzF,ECNA,EAAoB,CAAC,CAAG,CAAC,EAAK,IAAUC,OAAO,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,EAAK,GCClF,EAAoB,CAAC,CAAG,AAACD,IACrB,AAAkB,aAAlB,OAAOE,QAA0BA,OAAO,WAAW,EACrDD,OAAO,cAAc,CAACD,EAASE,OAAO,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C3B,KACJ,MAAK,GACD,EAAK,OAAO,CAAG,EAAc,GAC7B,KACJ,MAAK,GACD,EAAK,iBAAiB,CAAG,EAAa,EAE9C,CACJ,CACA,OAAO,OAAO,CAAM,CAAE,CAClB,OAAO,IAAI,IAAI,CAAC,EAAO,EAAQ,IAAI,CAAC,WAAW,EACnD,CACJ,C"} \ No newline at end of file diff --git a/packages/node_modules/protobufjs/index.js.map b/packages/node_modules/protobufjs/index.js.map new file mode 100644 index 00000000000..842df9698db --- /dev/null +++ b/packages/node_modules/protobufjs/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"protobufjs/index.js","sources":["webpack:///./@protobufjs/aspromise/index.js","webpack:///./@protobufjs/base64/index.js","webpack:///./@protobufjs/codegen/index.js","webpack:///./@protobufjs/eventemitter/index.js","webpack:///./@protobufjs/fetch/index.js","webpack:///./@protobufjs/float/index.js","webpack:///./@protobufjs/inquire/index.js","webpack:///./@protobufjs/path/index.js","webpack:///./@protobufjs/pool/index.js","webpack:///./@protobufjs/utf8/index.js","webpack:///./protobufjs/index.js","webpack:///./protobufjs/src/common.js","webpack:///./protobufjs/src/converter.js","webpack:///./protobufjs/src/decoder.js","webpack:///./protobufjs/src/encoder.js","webpack:///./protobufjs/src/enum.js","webpack:///./protobufjs/src/field.js","webpack:///./protobufjs/src/index-light.js","webpack:///./protobufjs/src/index-minimal.js","webpack:///./protobufjs/src/index.js","webpack:///./protobufjs/src/mapfield.js","webpack:///./protobufjs/src/message.js","webpack:///./protobufjs/src/method.js","webpack:///./protobufjs/src/namespace.js","webpack:///./protobufjs/src/object.js","webpack:///./protobufjs/src/oneof.js","webpack:///./protobufjs/src/parse.js","webpack:///./protobufjs/src/reader.js","webpack:///./protobufjs/src/reader_buffer.js","webpack:///./protobufjs/src/root.js","webpack:///./protobufjs/src/roots.js","webpack:///./protobufjs/src/rpc.js","webpack:///./protobufjs/src/rpc/service.js","webpack:///./protobufjs/src/service.js","webpack:///./protobufjs/src/tokenize.js","webpack:///./protobufjs/src/type.js","webpack:///./protobufjs/src/types.js","webpack:///./protobufjs/src/util.js","webpack:///./protobufjs/src/util/longbits.js","webpack:///./protobufjs/src/util/minimal.js","webpack:///./protobufjs/src/verifier.js","webpack:///./protobufjs/src/wrappers.js","webpack:///./protobufjs/src/writer.js","webpack:///./protobufjs/src/writer_buffer.js"],"sourcesContent":["\"use strict\";\r\nmodule.exports = asPromise;\r\n\r\n/**\r\n * Callback as used by {@link util.asPromise}.\r\n * @typedef asPromiseCallback\r\n * @type {function}\r\n * @param {Error|null} error Error, if any\r\n * @param {...*} params Additional arguments\r\n * @returns {undefined}\r\n */\r\n\r\n/**\r\n * Returns a promise from a node-style callback function.\r\n * @memberof util\r\n * @param {asPromiseCallback} fn Function to call\r\n * @param {*} ctx Function context\r\n * @param {...*} params Function arguments\r\n * @returns {Promise<*>} Promisified function\r\n */\r\nfunction asPromise(fn, ctx/*, varargs */) {\r\n var params = new Array(arguments.length - 1),\r\n offset = 0,\r\n index = 2,\r\n pending = true;\r\n while (index < arguments.length)\r\n params[offset++] = arguments[index++];\r\n return new Promise(function executor(resolve, reject) {\r\n params[offset] = function callback(err/*, varargs */) {\r\n if (pending) {\r\n pending = false;\r\n if (err)\r\n reject(err);\r\n else {\r\n var params = new Array(arguments.length - 1),\r\n offset = 0;\r\n while (offset < params.length)\r\n params[offset++] = arguments[offset];\r\n resolve.apply(null, params);\r\n }\r\n }\r\n };\r\n try {\r\n fn.apply(ctx || null, params);\r\n } catch (err) {\r\n if (pending) {\r\n pending = false;\r\n reject(err);\r\n }\r\n }\r\n });\r\n}\r\n","\"use strict\";\r\n\r\n/**\r\n * A minimal base64 implementation for number arrays.\r\n * @memberof util\r\n * @namespace\r\n */\r\nvar base64 = exports;\r\n\r\n/**\r\n * Calculates the byte length of a base64 encoded string.\r\n * @param {string} string Base64 encoded string\r\n * @returns {number} Byte length\r\n */\r\nbase64.length = function length(string) {\r\n var p = string.length;\r\n if (!p)\r\n return 0;\r\n var n = 0;\r\n while (--p % 4 > 1 && string.charAt(p) === \"=\")\r\n ++n;\r\n return Math.ceil(string.length * 3) / 4 - n;\r\n};\r\n\r\n// Base64 encoding table\r\nvar b64 = new Array(64);\r\n\r\n// Base64 decoding table\r\nvar s64 = new Array(123);\r\n\r\n// 65..90, 97..122, 48..57, 43, 47\r\nfor (var i = 0; i < 64;)\r\n s64[b64[i] = i < 26 ? i + 65 : i < 52 ? i + 71 : i < 62 ? i - 4 : i - 59 | 43] = i++;\r\n\r\n/**\r\n * Encodes a buffer to a base64 encoded string.\r\n * @param {Uint8Array} buffer Source buffer\r\n * @param {number} start Source start\r\n * @param {number} end Source end\r\n * @returns {string} Base64 encoded string\r\n */\r\nbase64.encode = function encode(buffer, start, end) {\r\n var parts = null,\r\n chunk = [];\r\n var i = 0, // output index\r\n j = 0, // goto index\r\n t; // temporary\r\n while (start < end) {\r\n var b = buffer[start++];\r\n switch (j) {\r\n case 0:\r\n chunk[i++] = b64[b >> 2];\r\n t = (b & 3) << 4;\r\n j = 1;\r\n break;\r\n case 1:\r\n chunk[i++] = b64[t | b >> 4];\r\n t = (b & 15) << 2;\r\n j = 2;\r\n break;\r\n case 2:\r\n chunk[i++] = b64[t | b >> 6];\r\n chunk[i++] = b64[b & 63];\r\n j = 0;\r\n break;\r\n }\r\n if (i > 8191) {\r\n (parts || (parts = [])).push(String.fromCharCode.apply(String, chunk));\r\n i = 0;\r\n }\r\n }\r\n if (j) {\r\n chunk[i++] = b64[t];\r\n chunk[i++] = 61;\r\n if (j === 1)\r\n chunk[i++] = 61;\r\n }\r\n if (parts) {\r\n if (i)\r\n parts.push(String.fromCharCode.apply(String, chunk.slice(0, i)));\r\n return parts.join(\"\");\r\n }\r\n return String.fromCharCode.apply(String, chunk.slice(0, i));\r\n};\r\n\r\nvar invalidEncoding = \"invalid encoding\";\r\n\r\n/**\r\n * Decodes a base64 encoded string to a buffer.\r\n * @param {string} string Source string\r\n * @param {Uint8Array} buffer Destination buffer\r\n * @param {number} offset Destination offset\r\n * @returns {number} Number of bytes written\r\n * @throws {Error} If encoding is invalid\r\n */\r\nbase64.decode = function decode(string, buffer, offset) {\r\n var start = offset;\r\n var j = 0, // goto index\r\n t; // temporary\r\n for (var i = 0; i < string.length;) {\r\n var c = string.charCodeAt(i++);\r\n if (c === 61 && j > 1)\r\n break;\r\n if ((c = s64[c]) === undefined)\r\n throw Error(invalidEncoding);\r\n switch (j) {\r\n case 0:\r\n t = c;\r\n j = 1;\r\n break;\r\n case 1:\r\n buffer[offset++] = t << 2 | (c & 48) >> 4;\r\n t = c;\r\n j = 2;\r\n break;\r\n case 2:\r\n buffer[offset++] = (t & 15) << 4 | (c & 60) >> 2;\r\n t = c;\r\n j = 3;\r\n break;\r\n case 3:\r\n buffer[offset++] = (t & 3) << 6 | c;\r\n j = 0;\r\n break;\r\n }\r\n }\r\n if (j === 1)\r\n throw Error(invalidEncoding);\r\n return offset - start;\r\n};\r\n\r\n/**\r\n * Tests if the specified string appears to be base64 encoded.\r\n * @param {string} string String to test\r\n * @returns {boolean} `true` if probably base64 encoded, otherwise false\r\n */\r\nbase64.test = function test(string) {\r\n return /^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(string);\r\n};\r\n","\"use strict\";\r\nmodule.exports = codegen;\r\n\r\n/**\r\n * Begins generating a function.\r\n * @memberof util\r\n * @param {string[]} functionParams Function parameter names\r\n * @param {string} [functionName] Function name if not anonymous\r\n * @returns {Codegen} Appender that appends code to the function's body\r\n */\r\nfunction codegen(functionParams, functionName) {\r\n\r\n /* istanbul ignore if */\r\n if (typeof functionParams === \"string\") {\r\n functionName = functionParams;\r\n functionParams = undefined;\r\n }\r\n\r\n var body = [];\r\n\r\n /**\r\n * Appends code to the function's body or finishes generation.\r\n * @typedef Codegen\r\n * @type {function}\r\n * @param {string|Object.} [formatStringOrScope] Format string or, to finish the function, an object of additional scope variables, if any\r\n * @param {...*} [formatParams] Format parameters\r\n * @returns {Codegen|Function} Itself or the generated function if finished\r\n * @throws {Error} If format parameter counts do not match\r\n */\r\n\r\n function Codegen(formatStringOrScope) {\r\n // note that explicit array handling below makes this ~50% faster\r\n\r\n // finish the function\r\n if (typeof formatStringOrScope !== \"string\") {\r\n var source = toString();\r\n if (codegen.verbose)\r\n console.log(\"codegen: \" + source); // eslint-disable-line no-console\r\n source = \"return \" + source;\r\n if (formatStringOrScope) {\r\n var scopeKeys = Object.keys(formatStringOrScope),\r\n scopeParams = new Array(scopeKeys.length + 1),\r\n scopeValues = new Array(scopeKeys.length),\r\n scopeOffset = 0;\r\n while (scopeOffset < scopeKeys.length) {\r\n scopeParams[scopeOffset] = scopeKeys[scopeOffset];\r\n scopeValues[scopeOffset] = formatStringOrScope[scopeKeys[scopeOffset++]];\r\n }\r\n scopeParams[scopeOffset] = source;\r\n return Function.apply(null, scopeParams).apply(null, scopeValues); // eslint-disable-line no-new-func\r\n }\r\n return Function(source)(); // eslint-disable-line no-new-func\r\n }\r\n\r\n // otherwise append to body\r\n var formatParams = new Array(arguments.length - 1),\r\n formatOffset = 0;\r\n while (formatOffset < formatParams.length)\r\n formatParams[formatOffset] = arguments[++formatOffset];\r\n formatOffset = 0;\r\n formatStringOrScope = formatStringOrScope.replace(/%([%dfijs])/g, function replace($0, $1) {\r\n var value = formatParams[formatOffset++];\r\n switch ($1) {\r\n case \"d\": case \"f\": return String(Number(value));\r\n case \"i\": return String(Math.floor(value));\r\n case \"j\": return JSON.stringify(value);\r\n case \"s\": return String(value);\r\n }\r\n return \"%\";\r\n });\r\n if (formatOffset !== formatParams.length)\r\n throw Error(\"parameter count mismatch\");\r\n body.push(formatStringOrScope);\r\n return Codegen;\r\n }\r\n\r\n function toString(functionNameOverride) {\r\n return \"function \" + (functionNameOverride || functionName || \"\") + \"(\" + (functionParams && functionParams.join(\",\") || \"\") + \"){\\n \" + body.join(\"\\n \") + \"\\n}\";\r\n }\r\n\r\n Codegen.toString = toString;\r\n return Codegen;\r\n}\r\n\r\n/**\r\n * Begins generating a function.\r\n * @memberof util\r\n * @function codegen\r\n * @param {string} [functionName] Function name if not anonymous\r\n * @returns {Codegen} Appender that appends code to the function's body\r\n * @variation 2\r\n */\r\n\r\n/**\r\n * When set to `true`, codegen will log generated code to console. Useful for debugging.\r\n * @name util.codegen.verbose\r\n * @type {boolean}\r\n */\r\ncodegen.verbose = false;\r\n","\"use strict\";\r\nmodule.exports = EventEmitter;\r\n\r\n/**\r\n * Constructs a new event emitter instance.\r\n * @classdesc A minimal event emitter.\r\n * @memberof util\r\n * @constructor\r\n */\r\nfunction EventEmitter() {\r\n\r\n /**\r\n * Registered listeners.\r\n * @type {Object.}\r\n * @private\r\n */\r\n this._listeners = {};\r\n}\r\n\r\n/**\r\n * Registers an event listener.\r\n * @param {string} evt Event name\r\n * @param {function} fn Listener\r\n * @param {*} [ctx] Listener context\r\n * @returns {util.EventEmitter} `this`\r\n */\r\nEventEmitter.prototype.on = function on(evt, fn, ctx) {\r\n (this._listeners[evt] || (this._listeners[evt] = [])).push({\r\n fn : fn,\r\n ctx : ctx || this\r\n });\r\n return this;\r\n};\r\n\r\n/**\r\n * Removes an event listener or any matching listeners if arguments are omitted.\r\n * @param {string} [evt] Event name. Removes all listeners if omitted.\r\n * @param {function} [fn] Listener to remove. Removes all listeners of `evt` if omitted.\r\n * @returns {util.EventEmitter} `this`\r\n */\r\nEventEmitter.prototype.off = function off(evt, fn) {\r\n if (evt === undefined)\r\n this._listeners = {};\r\n else {\r\n if (fn === undefined)\r\n this._listeners[evt] = [];\r\n else {\r\n var listeners = this._listeners[evt];\r\n for (var i = 0; i < listeners.length;)\r\n if (listeners[i].fn === fn)\r\n listeners.splice(i, 1);\r\n else\r\n ++i;\r\n }\r\n }\r\n return this;\r\n};\r\n\r\n/**\r\n * Emits an event by calling its listeners with the specified arguments.\r\n * @param {string} evt Event name\r\n * @param {...*} args Arguments\r\n * @returns {util.EventEmitter} `this`\r\n */\r\nEventEmitter.prototype.emit = function emit(evt) {\r\n var listeners = this._listeners[evt];\r\n if (listeners) {\r\n var args = [],\r\n i = 1;\r\n for (; i < arguments.length;)\r\n args.push(arguments[i++]);\r\n for (i = 0; i < listeners.length;)\r\n listeners[i].fn.apply(listeners[i++].ctx, args);\r\n }\r\n return this;\r\n};\r\n","\"use strict\";\r\nmodule.exports = fetch;\r\n\r\nvar asPromise = require(\"@protobufjs/aspromise\"),\r\n inquire = require(\"@protobufjs/inquire\");\r\n\r\nvar fs = inquire(\"fs\");\r\n\r\n/**\r\n * Node-style callback as used by {@link util.fetch}.\r\n * @typedef FetchCallback\r\n * @type {function}\r\n * @param {?Error} error Error, if any, otherwise `null`\r\n * @param {string} [contents] File contents, if there hasn't been an error\r\n * @returns {undefined}\r\n */\r\n\r\n/**\r\n * Options as used by {@link util.fetch}.\r\n * @typedef FetchOptions\r\n * @type {Object}\r\n * @property {boolean} [binary=false] Whether expecting a binary response\r\n * @property {boolean} [xhr=false] If `true`, forces the use of XMLHttpRequest\r\n */\r\n\r\n/**\r\n * Fetches the contents of a file.\r\n * @memberof util\r\n * @param {string} filename File path or url\r\n * @param {FetchOptions} options Fetch options\r\n * @param {FetchCallback} callback Callback function\r\n * @returns {undefined}\r\n */\r\nfunction fetch(filename, options, callback) {\r\n if (typeof options === \"function\") {\r\n callback = options;\r\n options = {};\r\n } else if (!options)\r\n options = {};\r\n\r\n if (!callback)\r\n return asPromise(fetch, this, filename, options); // eslint-disable-line no-invalid-this\r\n\r\n // if a node-like filesystem is present, try it first but fall back to XHR if nothing is found.\r\n if (!options.xhr && fs && fs.readFile)\r\n return fs.readFile(filename, function fetchReadFileCallback(err, contents) {\r\n return err && typeof XMLHttpRequest !== \"undefined\"\r\n ? fetch.xhr(filename, options, callback)\r\n : err\r\n ? callback(err)\r\n : callback(null, options.binary ? contents : contents.toString(\"utf8\"));\r\n });\r\n\r\n // use the XHR version otherwise.\r\n return fetch.xhr(filename, options, callback);\r\n}\r\n\r\n/**\r\n * Fetches the contents of a file.\r\n * @name util.fetch\r\n * @function\r\n * @param {string} path File path or url\r\n * @param {FetchCallback} callback Callback function\r\n * @returns {undefined}\r\n * @variation 2\r\n */\r\n\r\n/**\r\n * Fetches the contents of a file.\r\n * @name util.fetch\r\n * @function\r\n * @param {string} path File path or url\r\n * @param {FetchOptions} [options] Fetch options\r\n * @returns {Promise} Promise\r\n * @variation 3\r\n */\r\n\r\n/**/\r\nfetch.xhr = function fetch_xhr(filename, options, callback) {\r\n var xhr = new XMLHttpRequest();\r\n xhr.onreadystatechange /* works everywhere */ = function fetchOnReadyStateChange() {\r\n\r\n if (xhr.readyState !== 4)\r\n return undefined;\r\n\r\n // local cors security errors return status 0 / empty string, too. afaik this cannot be\r\n // reliably distinguished from an actually empty file for security reasons. feel free\r\n // to send a pull request if you are aware of a solution.\r\n if (xhr.status !== 0 && xhr.status !== 200)\r\n return callback(Error(\"status \" + xhr.status));\r\n\r\n // if binary data is expected, make sure that some sort of array is returned, even if\r\n // ArrayBuffers are not supported. the binary string fallback, however, is unsafe.\r\n if (options.binary) {\r\n var buffer = xhr.response;\r\n if (!buffer) {\r\n buffer = [];\r\n for (var i = 0; i < xhr.responseText.length; ++i)\r\n buffer.push(xhr.responseText.charCodeAt(i) & 255);\r\n }\r\n return callback(null, typeof Uint8Array !== \"undefined\" ? new Uint8Array(buffer) : buffer);\r\n }\r\n return callback(null, xhr.responseText);\r\n };\r\n\r\n if (options.binary) {\r\n // ref: https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/Sending_and_Receiving_Binary_Data#Receiving_binary_data_in_older_browsers\r\n if (\"overrideMimeType\" in xhr)\r\n xhr.overrideMimeType(\"text/plain; charset=x-user-defined\");\r\n xhr.responseType = \"arraybuffer\";\r\n }\r\n\r\n xhr.open(\"GET\", filename);\r\n xhr.send();\r\n};\r\n","\"use strict\";\r\n\r\nmodule.exports = factory(factory);\r\n\r\n/**\r\n * Reads / writes floats / doubles from / to buffers.\r\n * @name util.float\r\n * @namespace\r\n */\r\n\r\n/**\r\n * Writes a 32 bit float to a buffer using little endian byte order.\r\n * @name util.float.writeFloatLE\r\n * @function\r\n * @param {number} val Value to write\r\n * @param {Uint8Array} buf Target buffer\r\n * @param {number} pos Target buffer offset\r\n * @returns {undefined}\r\n */\r\n\r\n/**\r\n * Writes a 32 bit float to a buffer using big endian byte order.\r\n * @name util.float.writeFloatBE\r\n * @function\r\n * @param {number} val Value to write\r\n * @param {Uint8Array} buf Target buffer\r\n * @param {number} pos Target buffer offset\r\n * @returns {undefined}\r\n */\r\n\r\n/**\r\n * Reads a 32 bit float from a buffer using little endian byte order.\r\n * @name util.float.readFloatLE\r\n * @function\r\n * @param {Uint8Array} buf Source buffer\r\n * @param {number} pos Source buffer offset\r\n * @returns {number} Value read\r\n */\r\n\r\n/**\r\n * Reads a 32 bit float from a buffer using big endian byte order.\r\n * @name util.float.readFloatBE\r\n * @function\r\n * @param {Uint8Array} buf Source buffer\r\n * @param {number} pos Source buffer offset\r\n * @returns {number} Value read\r\n */\r\n\r\n/**\r\n * Writes a 64 bit double to a buffer using little endian byte order.\r\n * @name util.float.writeDoubleLE\r\n * @function\r\n * @param {number} val Value to write\r\n * @param {Uint8Array} buf Target buffer\r\n * @param {number} pos Target buffer offset\r\n * @returns {undefined}\r\n */\r\n\r\n/**\r\n * Writes a 64 bit double to a buffer using big endian byte order.\r\n * @name util.float.writeDoubleBE\r\n * @function\r\n * @param {number} val Value to write\r\n * @param {Uint8Array} buf Target buffer\r\n * @param {number} pos Target buffer offset\r\n * @returns {undefined}\r\n */\r\n\r\n/**\r\n * Reads a 64 bit double from a buffer using little endian byte order.\r\n * @name util.float.readDoubleLE\r\n * @function\r\n * @param {Uint8Array} buf Source buffer\r\n * @param {number} pos Source buffer offset\r\n * @returns {number} Value read\r\n */\r\n\r\n/**\r\n * Reads a 64 bit double from a buffer using big endian byte order.\r\n * @name util.float.readDoubleBE\r\n * @function\r\n * @param {Uint8Array} buf Source buffer\r\n * @param {number} pos Source buffer offset\r\n * @returns {number} Value read\r\n */\r\n\r\n// Factory function for the purpose of node-based testing in modified global environments\r\nfunction factory(exports) {\r\n\r\n // float: typed array\r\n if (typeof Float32Array !== \"undefined\") (function() {\r\n\r\n var f32 = new Float32Array([ -0 ]),\r\n f8b = new Uint8Array(f32.buffer),\r\n le = f8b[3] === 128;\r\n\r\n function writeFloat_f32_cpy(val, buf, pos) {\r\n f32[0] = val;\r\n buf[pos ] = f8b[0];\r\n buf[pos + 1] = f8b[1];\r\n buf[pos + 2] = f8b[2];\r\n buf[pos + 3] = f8b[3];\r\n }\r\n\r\n function writeFloat_f32_rev(val, buf, pos) {\r\n f32[0] = val;\r\n buf[pos ] = f8b[3];\r\n buf[pos + 1] = f8b[2];\r\n buf[pos + 2] = f8b[1];\r\n buf[pos + 3] = f8b[0];\r\n }\r\n\r\n /* istanbul ignore next */\r\n exports.writeFloatLE = le ? writeFloat_f32_cpy : writeFloat_f32_rev;\r\n /* istanbul ignore next */\r\n exports.writeFloatBE = le ? writeFloat_f32_rev : writeFloat_f32_cpy;\r\n\r\n function readFloat_f32_cpy(buf, pos) {\r\n f8b[0] = buf[pos ];\r\n f8b[1] = buf[pos + 1];\r\n f8b[2] = buf[pos + 2];\r\n f8b[3] = buf[pos + 3];\r\n return f32[0];\r\n }\r\n\r\n function readFloat_f32_rev(buf, pos) {\r\n f8b[3] = buf[pos ];\r\n f8b[2] = buf[pos + 1];\r\n f8b[1] = buf[pos + 2];\r\n f8b[0] = buf[pos + 3];\r\n return f32[0];\r\n }\r\n\r\n /* istanbul ignore next */\r\n exports.readFloatLE = le ? readFloat_f32_cpy : readFloat_f32_rev;\r\n /* istanbul ignore next */\r\n exports.readFloatBE = le ? readFloat_f32_rev : readFloat_f32_cpy;\r\n\r\n // float: ieee754\r\n })(); else (function() {\r\n\r\n function writeFloat_ieee754(writeUint, val, buf, pos) {\r\n var sign = val < 0 ? 1 : 0;\r\n if (sign)\r\n val = -val;\r\n if (val === 0)\r\n writeUint(1 / val > 0 ? /* positive */ 0 : /* negative 0 */ 2147483648, buf, pos);\r\n else if (isNaN(val))\r\n writeUint(2143289344, buf, pos);\r\n else if (val > 3.4028234663852886e+38) // +-Infinity\r\n writeUint((sign << 31 | 2139095040) >>> 0, buf, pos);\r\n else if (val < 1.1754943508222875e-38) // denormal\r\n writeUint((sign << 31 | Math.round(val / 1.401298464324817e-45)) >>> 0, buf, pos);\r\n else {\r\n var exponent = Math.floor(Math.log(val) / Math.LN2),\r\n mantissa = Math.round(val * Math.pow(2, -exponent) * 8388608) & 8388607;\r\n writeUint((sign << 31 | exponent + 127 << 23 | mantissa) >>> 0, buf, pos);\r\n }\r\n }\r\n\r\n exports.writeFloatLE = writeFloat_ieee754.bind(null, writeUintLE);\r\n exports.writeFloatBE = writeFloat_ieee754.bind(null, writeUintBE);\r\n\r\n function readFloat_ieee754(readUint, buf, pos) {\r\n var uint = readUint(buf, pos),\r\n sign = (uint >> 31) * 2 + 1,\r\n exponent = uint >>> 23 & 255,\r\n mantissa = uint & 8388607;\r\n return exponent === 255\r\n ? mantissa\r\n ? NaN\r\n : sign * Infinity\r\n : exponent === 0 // denormal\r\n ? sign * 1.401298464324817e-45 * mantissa\r\n : sign * Math.pow(2, exponent - 150) * (mantissa + 8388608);\r\n }\r\n\r\n exports.readFloatLE = readFloat_ieee754.bind(null, readUintLE);\r\n exports.readFloatBE = readFloat_ieee754.bind(null, readUintBE);\r\n\r\n })();\r\n\r\n // double: typed array\r\n if (typeof Float64Array !== \"undefined\") (function() {\r\n\r\n var f64 = new Float64Array([-0]),\r\n f8b = new Uint8Array(f64.buffer),\r\n le = f8b[7] === 128;\r\n\r\n function writeDouble_f64_cpy(val, buf, pos) {\r\n f64[0] = val;\r\n buf[pos ] = f8b[0];\r\n buf[pos + 1] = f8b[1];\r\n buf[pos + 2] = f8b[2];\r\n buf[pos + 3] = f8b[3];\r\n buf[pos + 4] = f8b[4];\r\n buf[pos + 5] = f8b[5];\r\n buf[pos + 6] = f8b[6];\r\n buf[pos + 7] = f8b[7];\r\n }\r\n\r\n function writeDouble_f64_rev(val, buf, pos) {\r\n f64[0] = val;\r\n buf[pos ] = f8b[7];\r\n buf[pos + 1] = f8b[6];\r\n buf[pos + 2] = f8b[5];\r\n buf[pos + 3] = f8b[4];\r\n buf[pos + 4] = f8b[3];\r\n buf[pos + 5] = f8b[2];\r\n buf[pos + 6] = f8b[1];\r\n buf[pos + 7] = f8b[0];\r\n }\r\n\r\n /* istanbul ignore next */\r\n exports.writeDoubleLE = le ? writeDouble_f64_cpy : writeDouble_f64_rev;\r\n /* istanbul ignore next */\r\n exports.writeDoubleBE = le ? writeDouble_f64_rev : writeDouble_f64_cpy;\r\n\r\n function readDouble_f64_cpy(buf, pos) {\r\n f8b[0] = buf[pos ];\r\n f8b[1] = buf[pos + 1];\r\n f8b[2] = buf[pos + 2];\r\n f8b[3] = buf[pos + 3];\r\n f8b[4] = buf[pos + 4];\r\n f8b[5] = buf[pos + 5];\r\n f8b[6] = buf[pos + 6];\r\n f8b[7] = buf[pos + 7];\r\n return f64[0];\r\n }\r\n\r\n function readDouble_f64_rev(buf, pos) {\r\n f8b[7] = buf[pos ];\r\n f8b[6] = buf[pos + 1];\r\n f8b[5] = buf[pos + 2];\r\n f8b[4] = buf[pos + 3];\r\n f8b[3] = buf[pos + 4];\r\n f8b[2] = buf[pos + 5];\r\n f8b[1] = buf[pos + 6];\r\n f8b[0] = buf[pos + 7];\r\n return f64[0];\r\n }\r\n\r\n /* istanbul ignore next */\r\n exports.readDoubleLE = le ? readDouble_f64_cpy : readDouble_f64_rev;\r\n /* istanbul ignore next */\r\n exports.readDoubleBE = le ? readDouble_f64_rev : readDouble_f64_cpy;\r\n\r\n // double: ieee754\r\n })(); else (function() {\r\n\r\n function writeDouble_ieee754(writeUint, off0, off1, val, buf, pos) {\r\n var sign = val < 0 ? 1 : 0;\r\n if (sign)\r\n val = -val;\r\n if (val === 0) {\r\n writeUint(0, buf, pos + off0);\r\n writeUint(1 / val > 0 ? /* positive */ 0 : /* negative 0 */ 2147483648, buf, pos + off1);\r\n } else if (isNaN(val)) {\r\n writeUint(0, buf, pos + off0);\r\n writeUint(2146959360, buf, pos + off1);\r\n } else if (val > 1.7976931348623157e+308) { // +-Infinity\r\n writeUint(0, buf, pos + off0);\r\n writeUint((sign << 31 | 2146435072) >>> 0, buf, pos + off1);\r\n } else {\r\n var mantissa;\r\n if (val < 2.2250738585072014e-308) { // denormal\r\n mantissa = val / 5e-324;\r\n writeUint(mantissa >>> 0, buf, pos + off0);\r\n writeUint((sign << 31 | mantissa / 4294967296) >>> 0, buf, pos + off1);\r\n } else {\r\n var exponent = Math.floor(Math.log(val) / Math.LN2);\r\n if (exponent === 1024)\r\n exponent = 1023;\r\n mantissa = val * Math.pow(2, -exponent);\r\n writeUint(mantissa * 4503599627370496 >>> 0, buf, pos + off0);\r\n writeUint((sign << 31 | exponent + 1023 << 20 | mantissa * 1048576 & 1048575) >>> 0, buf, pos + off1);\r\n }\r\n }\r\n }\r\n\r\n exports.writeDoubleLE = writeDouble_ieee754.bind(null, writeUintLE, 0, 4);\r\n exports.writeDoubleBE = writeDouble_ieee754.bind(null, writeUintBE, 4, 0);\r\n\r\n function readDouble_ieee754(readUint, off0, off1, buf, pos) {\r\n var lo = readUint(buf, pos + off0),\r\n hi = readUint(buf, pos + off1);\r\n var sign = (hi >> 31) * 2 + 1,\r\n exponent = hi >>> 20 & 2047,\r\n mantissa = 4294967296 * (hi & 1048575) + lo;\r\n return exponent === 2047\r\n ? mantissa\r\n ? NaN\r\n : sign * Infinity\r\n : exponent === 0 // denormal\r\n ? sign * 5e-324 * mantissa\r\n : sign * Math.pow(2, exponent - 1075) * (mantissa + 4503599627370496);\r\n }\r\n\r\n exports.readDoubleLE = readDouble_ieee754.bind(null, readUintLE, 0, 4);\r\n exports.readDoubleBE = readDouble_ieee754.bind(null, readUintBE, 4, 0);\r\n\r\n })();\r\n\r\n return exports;\r\n}\r\n\r\n// uint helpers\r\n\r\nfunction writeUintLE(val, buf, pos) {\r\n buf[pos ] = val & 255;\r\n buf[pos + 1] = val >>> 8 & 255;\r\n buf[pos + 2] = val >>> 16 & 255;\r\n buf[pos + 3] = val >>> 24;\r\n}\r\n\r\nfunction writeUintBE(val, buf, pos) {\r\n buf[pos ] = val >>> 24;\r\n buf[pos + 1] = val >>> 16 & 255;\r\n buf[pos + 2] = val >>> 8 & 255;\r\n buf[pos + 3] = val & 255;\r\n}\r\n\r\nfunction readUintLE(buf, pos) {\r\n return (buf[pos ]\r\n | buf[pos + 1] << 8\r\n | buf[pos + 2] << 16\r\n | buf[pos + 3] << 24) >>> 0;\r\n}\r\n\r\nfunction readUintBE(buf, pos) {\r\n return (buf[pos ] << 24\r\n | buf[pos + 1] << 16\r\n | buf[pos + 2] << 8\r\n | buf[pos + 3]) >>> 0;\r\n}\r\n","\"use strict\";\r\nmodule.exports = inquire;\r\n\r\n/**\r\n * Requires a module only if available.\r\n * @memberof util\r\n * @param {string} moduleName Module to require\r\n * @returns {?Object} Required module if available and not empty, otherwise `null`\r\n */\r\nfunction inquire(moduleName) {\r\n try {\r\n var mod = eval(\"quire\".replace(/^/,\"re\"))(moduleName); // eslint-disable-line no-eval\r\n if (mod && (mod.length || Object.keys(mod).length))\r\n return mod;\r\n } catch (e) {} // eslint-disable-line no-empty\r\n return null;\r\n}\r\n","\"use strict\";\r\n\r\n/**\r\n * A minimal path module to resolve Unix, Windows and URL paths alike.\r\n * @memberof util\r\n * @namespace\r\n */\r\nvar path = exports;\r\n\r\nvar isAbsolute =\r\n/**\r\n * Tests if the specified path is absolute.\r\n * @param {string} path Path to test\r\n * @returns {boolean} `true` if path is absolute\r\n */\r\npath.isAbsolute = function isAbsolute(path) {\r\n return /^(?:\\/|\\w+:)/.test(path);\r\n};\r\n\r\nvar normalize =\r\n/**\r\n * Normalizes the specified path.\r\n * @param {string} path Path to normalize\r\n * @returns {string} Normalized path\r\n */\r\npath.normalize = function normalize(path) {\r\n path = path.replace(/\\\\/g, \"/\")\r\n .replace(/\\/{2,}/g, \"/\");\r\n var parts = path.split(\"/\"),\r\n absolute = isAbsolute(path),\r\n prefix = \"\";\r\n if (absolute)\r\n prefix = parts.shift() + \"/\";\r\n for (var i = 0; i < parts.length;) {\r\n if (parts[i] === \"..\") {\r\n if (i > 0 && parts[i - 1] !== \"..\")\r\n parts.splice(--i, 2);\r\n else if (absolute)\r\n parts.splice(i, 1);\r\n else\r\n ++i;\r\n } else if (parts[i] === \".\")\r\n parts.splice(i, 1);\r\n else\r\n ++i;\r\n }\r\n return prefix + parts.join(\"/\");\r\n};\r\n\r\n/**\r\n * Resolves the specified include path against the specified origin path.\r\n * @param {string} originPath Path to the origin file\r\n * @param {string} includePath Include path relative to origin path\r\n * @param {boolean} [alreadyNormalized=false] `true` if both paths are already known to be normalized\r\n * @returns {string} Path to the include file\r\n */\r\npath.resolve = function resolve(originPath, includePath, alreadyNormalized) {\r\n if (!alreadyNormalized)\r\n includePath = normalize(includePath);\r\n if (isAbsolute(includePath))\r\n return includePath;\r\n if (!alreadyNormalized)\r\n originPath = normalize(originPath);\r\n return (originPath = originPath.replace(/(?:\\/|^)[^/]+$/, \"\")).length ? normalize(originPath + \"/\" + includePath) : includePath;\r\n};\r\n","\"use strict\";\r\nmodule.exports = pool;\r\n\r\n/**\r\n * An allocator as used by {@link util.pool}.\r\n * @typedef PoolAllocator\r\n * @type {function}\r\n * @param {number} size Buffer size\r\n * @returns {Uint8Array} Buffer\r\n */\r\n\r\n/**\r\n * A slicer as used by {@link util.pool}.\r\n * @typedef PoolSlicer\r\n * @type {function}\r\n * @param {number} start Start offset\r\n * @param {number} end End offset\r\n * @returns {Uint8Array} Buffer slice\r\n * @this {Uint8Array}\r\n */\r\n\r\n/**\r\n * A general purpose buffer pool.\r\n * @memberof util\r\n * @function\r\n * @param {PoolAllocator} alloc Allocator\r\n * @param {PoolSlicer} slice Slicer\r\n * @param {number} [size=8192] Slab size\r\n * @returns {PoolAllocator} Pooled allocator\r\n */\r\nfunction pool(alloc, slice, size) {\r\n var SIZE = size || 8192;\r\n var MAX = SIZE >>> 1;\r\n var slab = null;\r\n var offset = SIZE;\r\n return function pool_alloc(size) {\r\n if (size < 1 || size > MAX)\r\n return alloc(size);\r\n if (offset + size > SIZE) {\r\n slab = alloc(SIZE);\r\n offset = 0;\r\n }\r\n var buf = slice.call(slab, offset, offset += size);\r\n if (offset & 7) // align to 32 bit\r\n offset = (offset | 7) + 1;\r\n return buf;\r\n };\r\n}\r\n","\"use strict\";\r\n\r\n/**\r\n * A minimal UTF8 implementation for number arrays.\r\n * @memberof util\r\n * @namespace\r\n */\r\nvar utf8 = exports;\r\n\r\n/**\r\n * Calculates the UTF8 byte length of a string.\r\n * @param {string} string String\r\n * @returns {number} Byte length\r\n */\r\nutf8.length = function utf8_length(string) {\r\n var len = 0,\r\n c = 0;\r\n for (var i = 0; i < string.length; ++i) {\r\n c = string.charCodeAt(i);\r\n if (c < 128)\r\n len += 1;\r\n else if (c < 2048)\r\n len += 2;\r\n else if ((c & 0xFC00) === 0xD800 && (string.charCodeAt(i + 1) & 0xFC00) === 0xDC00) {\r\n ++i;\r\n len += 4;\r\n } else\r\n len += 3;\r\n }\r\n return len;\r\n};\r\n\r\n/**\r\n * Reads UTF8 bytes as a string.\r\n * @param {Uint8Array} buffer Source buffer\r\n * @param {number} start Source start\r\n * @param {number} end Source end\r\n * @returns {string} String read\r\n */\r\nutf8.read = function utf8_read(buffer, start, end) {\r\n var len = end - start;\r\n if (len < 1)\r\n return \"\";\r\n var parts = null,\r\n chunk = [],\r\n i = 0, // char offset\r\n t; // temporary\r\n while (start < end) {\r\n t = buffer[start++];\r\n if (t < 128)\r\n chunk[i++] = t;\r\n else if (t > 191 && t < 224)\r\n chunk[i++] = (t & 31) << 6 | buffer[start++] & 63;\r\n else if (t > 239 && t < 365) {\r\n t = ((t & 7) << 18 | (buffer[start++] & 63) << 12 | (buffer[start++] & 63) << 6 | buffer[start++] & 63) - 0x10000;\r\n chunk[i++] = 0xD800 + (t >> 10);\r\n chunk[i++] = 0xDC00 + (t & 1023);\r\n } else\r\n chunk[i++] = (t & 15) << 12 | (buffer[start++] & 63) << 6 | buffer[start++] & 63;\r\n if (i > 8191) {\r\n (parts || (parts = [])).push(String.fromCharCode.apply(String, chunk));\r\n i = 0;\r\n }\r\n }\r\n if (parts) {\r\n if (i)\r\n parts.push(String.fromCharCode.apply(String, chunk.slice(0, i)));\r\n return parts.join(\"\");\r\n }\r\n return String.fromCharCode.apply(String, chunk.slice(0, i));\r\n};\r\n\r\n/**\r\n * Writes a string as UTF8 bytes.\r\n * @param {string} string Source string\r\n * @param {Uint8Array} buffer Destination buffer\r\n * @param {number} offset Destination offset\r\n * @returns {number} Bytes written\r\n */\r\nutf8.write = function utf8_write(string, buffer, offset) {\r\n var start = offset,\r\n c1, // character 1\r\n c2; // character 2\r\n for (var i = 0; i < string.length; ++i) {\r\n c1 = string.charCodeAt(i);\r\n if (c1 < 128) {\r\n buffer[offset++] = c1;\r\n } else if (c1 < 2048) {\r\n buffer[offset++] = c1 >> 6 | 192;\r\n buffer[offset++] = c1 & 63 | 128;\r\n } else if ((c1 & 0xFC00) === 0xD800 && ((c2 = string.charCodeAt(i + 1)) & 0xFC00) === 0xDC00) {\r\n c1 = 0x10000 + ((c1 & 0x03FF) << 10) + (c2 & 0x03FF);\r\n ++i;\r\n buffer[offset++] = c1 >> 18 | 240;\r\n buffer[offset++] = c1 >> 12 & 63 | 128;\r\n buffer[offset++] = c1 >> 6 & 63 | 128;\r\n buffer[offset++] = c1 & 63 | 128;\r\n } else {\r\n buffer[offset++] = c1 >> 12 | 224;\r\n buffer[offset++] = c1 >> 6 & 63 | 128;\r\n buffer[offset++] = c1 & 63 | 128;\r\n }\r\n }\r\n return offset - start;\r\n};\r\n","// full library entry point.\n\n\"use strict\";\nmodule.exports = require(\"./src/index\");\n","\"use strict\";\nmodule.exports = common;\n\nvar commonRe = /\\/|\\./;\n\n/**\n * Provides common type definitions.\n * Can also be used to provide additional google types or your own custom types.\n * @param {string} name Short name as in `google/protobuf/[name].proto` or full file name\n * @param {Object.} json JSON definition within `google.protobuf` if a short name, otherwise the file's root definition\n * @returns {undefined}\n * @property {INamespace} google/protobuf/any.proto Any\n * @property {INamespace} google/protobuf/duration.proto Duration\n * @property {INamespace} google/protobuf/empty.proto Empty\n * @property {INamespace} google/protobuf/field_mask.proto FieldMask\n * @property {INamespace} google/protobuf/struct.proto Struct, Value, NullValue and ListValue\n * @property {INamespace} google/protobuf/timestamp.proto Timestamp\n * @property {INamespace} google/protobuf/wrappers.proto Wrappers\n * @example\n * // manually provides descriptor.proto (assumes google/protobuf/ namespace and .proto extension)\n * protobuf.common(\"descriptor\", descriptorJson);\n *\n * // manually provides a custom definition (uses my.foo namespace)\n * protobuf.common(\"my/foo/bar.proto\", myFooBarJson);\n */\nfunction common(name, json) {\n if (!commonRe.test(name)) {\n name = \"google/protobuf/\" + name + \".proto\";\n json = { nested: { google: { nested: { protobuf: { nested: json } } } } };\n }\n common[name] = json;\n}\n\n// Not provided because of limited use (feel free to discuss or to provide yourself):\n//\n// google/protobuf/descriptor.proto\n// google/protobuf/source_context.proto\n// google/protobuf/type.proto\n//\n// Stripped and pre-parsed versions of these non-bundled files are instead available as part of\n// the repository or package within the google/protobuf directory.\n\ncommon(\"any\", {\n\n /**\n * Properties of a google.protobuf.Any message.\n * @interface IAny\n * @type {Object}\n * @property {string} [typeUrl]\n * @property {Uint8Array} [bytes]\n * @memberof common\n */\n Any: {\n fields: {\n type_url: {\n type: \"string\",\n id: 1\n },\n value: {\n type: \"bytes\",\n id: 2\n }\n }\n }\n});\n\nvar timeType;\n\ncommon(\"duration\", {\n\n /**\n * Properties of a google.protobuf.Duration message.\n * @interface IDuration\n * @type {Object}\n * @property {number|Long} [seconds]\n * @property {number} [nanos]\n * @memberof common\n */\n Duration: timeType = {\n fields: {\n seconds: {\n type: \"int64\",\n id: 1\n },\n nanos: {\n type: \"int32\",\n id: 2\n }\n }\n }\n});\n\ncommon(\"timestamp\", {\n\n /**\n * Properties of a google.protobuf.Timestamp message.\n * @interface ITimestamp\n * @type {Object}\n * @property {number|Long} [seconds]\n * @property {number} [nanos]\n * @memberof common\n */\n Timestamp: timeType\n});\n\ncommon(\"empty\", {\n\n /**\n * Properties of a google.protobuf.Empty message.\n * @interface IEmpty\n * @memberof common\n */\n Empty: {\n fields: {}\n }\n});\n\ncommon(\"struct\", {\n\n /**\n * Properties of a google.protobuf.Struct message.\n * @interface IStruct\n * @type {Object}\n * @property {Object.} [fields]\n * @memberof common\n */\n Struct: {\n fields: {\n fields: {\n keyType: \"string\",\n type: \"Value\",\n id: 1\n }\n }\n },\n\n /**\n * Properties of a google.protobuf.Value message.\n * @interface IValue\n * @type {Object}\n * @property {string} [kind]\n * @property {0} [nullValue]\n * @property {number} [numberValue]\n * @property {string} [stringValue]\n * @property {boolean} [boolValue]\n * @property {IStruct} [structValue]\n * @property {IListValue} [listValue]\n * @memberof common\n */\n Value: {\n oneofs: {\n kind: {\n oneof: [\n \"nullValue\",\n \"numberValue\",\n \"stringValue\",\n \"boolValue\",\n \"structValue\",\n \"listValue\"\n ]\n }\n },\n fields: {\n nullValue: {\n type: \"NullValue\",\n id: 1\n },\n numberValue: {\n type: \"double\",\n id: 2\n },\n stringValue: {\n type: \"string\",\n id: 3\n },\n boolValue: {\n type: \"bool\",\n id: 4\n },\n structValue: {\n type: \"Struct\",\n id: 5\n },\n listValue: {\n type: \"ListValue\",\n id: 6\n }\n }\n },\n\n NullValue: {\n values: {\n NULL_VALUE: 0\n }\n },\n\n /**\n * Properties of a google.protobuf.ListValue message.\n * @interface IListValue\n * @type {Object}\n * @property {Array.} [values]\n * @memberof common\n */\n ListValue: {\n fields: {\n values: {\n rule: \"repeated\",\n type: \"Value\",\n id: 1\n }\n }\n }\n});\n\ncommon(\"wrappers\", {\n\n /**\n * Properties of a google.protobuf.DoubleValue message.\n * @interface IDoubleValue\n * @type {Object}\n * @property {number} [value]\n * @memberof common\n */\n DoubleValue: {\n fields: {\n value: {\n type: \"double\",\n id: 1\n }\n }\n },\n\n /**\n * Properties of a google.protobuf.FloatValue message.\n * @interface IFloatValue\n * @type {Object}\n * @property {number} [value]\n * @memberof common\n */\n FloatValue: {\n fields: {\n value: {\n type: \"float\",\n id: 1\n }\n }\n },\n\n /**\n * Properties of a google.protobuf.Int64Value message.\n * @interface IInt64Value\n * @type {Object}\n * @property {number|Long} [value]\n * @memberof common\n */\n Int64Value: {\n fields: {\n value: {\n type: \"int64\",\n id: 1\n }\n }\n },\n\n /**\n * Properties of a google.protobuf.UInt64Value message.\n * @interface IUInt64Value\n * @type {Object}\n * @property {number|Long} [value]\n * @memberof common\n */\n UInt64Value: {\n fields: {\n value: {\n type: \"uint64\",\n id: 1\n }\n }\n },\n\n /**\n * Properties of a google.protobuf.Int32Value message.\n * @interface IInt32Value\n * @type {Object}\n * @property {number} [value]\n * @memberof common\n */\n Int32Value: {\n fields: {\n value: {\n type: \"int32\",\n id: 1\n }\n }\n },\n\n /**\n * Properties of a google.protobuf.UInt32Value message.\n * @interface IUInt32Value\n * @type {Object}\n * @property {number} [value]\n * @memberof common\n */\n UInt32Value: {\n fields: {\n value: {\n type: \"uint32\",\n id: 1\n }\n }\n },\n\n /**\n * Properties of a google.protobuf.BoolValue message.\n * @interface IBoolValue\n * @type {Object}\n * @property {boolean} [value]\n * @memberof common\n */\n BoolValue: {\n fields: {\n value: {\n type: \"bool\",\n id: 1\n }\n }\n },\n\n /**\n * Properties of a google.protobuf.StringValue message.\n * @interface IStringValue\n * @type {Object}\n * @property {string} [value]\n * @memberof common\n */\n StringValue: {\n fields: {\n value: {\n type: \"string\",\n id: 1\n }\n }\n },\n\n /**\n * Properties of a google.protobuf.BytesValue message.\n * @interface IBytesValue\n * @type {Object}\n * @property {Uint8Array} [value]\n * @memberof common\n */\n BytesValue: {\n fields: {\n value: {\n type: \"bytes\",\n id: 1\n }\n }\n }\n});\n\ncommon(\"field_mask\", {\n\n /**\n * Properties of a google.protobuf.FieldMask message.\n * @interface IDoubleValue\n * @type {Object}\n * @property {number} [value]\n * @memberof common\n */\n FieldMask: {\n fields: {\n paths: {\n rule: \"repeated\",\n type: \"string\",\n id: 1\n }\n }\n }\n});\n\n/**\n * Gets the root definition of the specified common proto file.\n *\n * Bundled definitions are:\n * - google/protobuf/any.proto\n * - google/protobuf/duration.proto\n * - google/protobuf/empty.proto\n * - google/protobuf/field_mask.proto\n * - google/protobuf/struct.proto\n * - google/protobuf/timestamp.proto\n * - google/protobuf/wrappers.proto\n *\n * @param {string} file Proto file name\n * @returns {INamespace|null} Root definition or `null` if not defined\n */\ncommon.get = function get(file) {\n return common[file] || null;\n};\n","\"use strict\";\n/**\n * Runtime message from/to plain object converters.\n * @namespace\n */\nvar converter = exports;\n\nvar Enum = require(\"./enum\"),\n util = require(\"./util\");\n\n/**\n * Generates a partial value fromObject conveter.\n * @param {Codegen} gen Codegen instance\n * @param {Field} field Reflected field\n * @param {number} fieldIndex Field index\n * @param {string} prop Property reference\n * @returns {Codegen} Codegen instance\n * @ignore\n */\nfunction genValuePartial_fromObject(gen, field, fieldIndex, prop) {\n var defaultAlreadyEmitted = false;\n /* eslint-disable no-unexpected-multiline, block-scoped-var, no-redeclare */\n if (field.resolvedType) {\n if (field.resolvedType instanceof Enum) { gen\n (\"switch(d%s){\", prop);\n for (var values = field.resolvedType.values, keys = Object.keys(values), i = 0; i < keys.length; ++i) {\n // enum unknown values passthrough\n if (values[keys[i]] === field.typeDefault && !defaultAlreadyEmitted) { gen\n (\"default:\")\n (\"if(typeof(d%s)===\\\"number\\\"){m%s=d%s;break}\", prop, prop, prop);\n if (!field.repeated) gen // fallback to default value only for\n // arrays, to avoid leaving holes.\n (\"break\"); // for non-repeated fields, just ignore\n defaultAlreadyEmitted = true;\n }\n gen\n (\"case%j:\", keys[i])\n (\"case %i:\", values[keys[i]])\n (\"m%s=%j\", prop, values[keys[i]])\n (\"break\");\n } gen\n (\"}\");\n } else gen\n (\"if(typeof d%s!==\\\"object\\\")\", prop)\n (\"throw TypeError(%j)\", field.fullName + \": object expected\")\n (\"m%s=types[%i].fromObject(d%s)\", prop, fieldIndex, prop);\n } else {\n var isUnsigned = false;\n switch (field.type) {\n case \"double\":\n case \"float\": gen\n (\"m%s=Number(d%s)\", prop, prop); // also catches \"NaN\", \"Infinity\"\n break;\n case \"uint32\":\n case \"fixed32\": gen\n (\"m%s=d%s>>>0\", prop, prop);\n break;\n case \"int32\":\n case \"sint32\":\n case \"sfixed32\": gen\n (\"m%s=d%s|0\", prop, prop);\n break;\n case \"uint64\":\n isUnsigned = true;\n // eslint-disable-next-line no-fallthrough\n case \"int64\":\n case \"sint64\":\n case \"fixed64\":\n case \"sfixed64\": gen\n (\"if(util.Long)\")\n (\"(m%s=util.Long.fromValue(d%s)).unsigned=%j\", prop, prop, isUnsigned)\n (\"else if(typeof d%s===\\\"string\\\")\", prop)\n (\"m%s=parseInt(d%s,10)\", prop, prop)\n (\"else if(typeof d%s===\\\"number\\\")\", prop)\n (\"m%s=d%s\", prop, prop)\n (\"else if(typeof d%s===\\\"object\\\")\", prop)\n (\"m%s=new util.LongBits(d%s.low>>>0,d%s.high>>>0).toNumber(%s)\", prop, prop, prop, isUnsigned ? \"true\" : \"\");\n break;\n case \"bytes\": gen\n (\"if(typeof d%s===\\\"string\\\")\", prop)\n (\"util.base64.decode(d%s,m%s=util.newBuffer(util.base64.length(d%s)),0)\", prop, prop, prop)\n (\"else if(d%s.length >= 0)\", prop)\n (\"m%s=d%s\", prop, prop);\n break;\n case \"string\": gen\n (\"m%s=String(d%s)\", prop, prop);\n break;\n case \"bool\": gen\n (\"m%s=Boolean(d%s)\", prop, prop);\n break;\n /* default: gen\n (\"m%s=d%s\", prop, prop);\n break; */\n }\n }\n return gen;\n /* eslint-enable no-unexpected-multiline, block-scoped-var, no-redeclare */\n}\n\n/**\n * Generates a plain object to runtime message converter specific to the specified message type.\n * @param {Type} mtype Message type\n * @returns {Codegen} Codegen instance\n */\nconverter.fromObject = function fromObject(mtype) {\n /* eslint-disable no-unexpected-multiline, block-scoped-var, no-redeclare */\n var fields = mtype.fieldsArray;\n var gen = util.codegen([\"d\"], mtype.name + \"$fromObject\")\n (\"if(d instanceof this.ctor)\")\n (\"return d\");\n if (!fields.length) return gen\n (\"return new this.ctor\");\n gen\n (\"var m=new this.ctor\");\n for (var i = 0; i < fields.length; ++i) {\n var field = fields[i].resolve(),\n prop = util.safeProp(field.name);\n\n // Map fields\n if (field.map) { gen\n (\"if(d%s){\", prop)\n (\"if(typeof d%s!==\\\"object\\\")\", prop)\n (\"throw TypeError(%j)\", field.fullName + \": object expected\")\n (\"m%s={}\", prop)\n (\"for(var ks=Object.keys(d%s),i=0;i>>0,m%s.high>>>0).toNumber(%s):m%s\", prop, prop, prop, prop, isUnsigned ? \"true\": \"\", prop);\n break;\n case \"bytes\": gen\n (\"d%s=o.bytes===String?util.base64.encode(m%s,0,m%s.length):o.bytes===Array?Array.prototype.slice.call(m%s):m%s\", prop, prop, prop, prop, prop);\n break;\n default: gen\n (\"d%s=m%s\", prop, prop);\n break;\n }\n }\n return gen;\n /* eslint-enable no-unexpected-multiline, block-scoped-var, no-redeclare */\n}\n\n/**\n * Generates a runtime message to plain object converter specific to the specified message type.\n * @param {Type} mtype Message type\n * @returns {Codegen} Codegen instance\n */\nconverter.toObject = function toObject(mtype) {\n /* eslint-disable no-unexpected-multiline, block-scoped-var, no-redeclare */\n var fields = mtype.fieldsArray.slice().sort(util.compareFieldsById);\n if (!fields.length)\n return util.codegen()(\"return {}\");\n var gen = util.codegen([\"m\", \"o\"], mtype.name + \"$toObject\")\n (\"if(!o)\")\n (\"o={}\")\n (\"var d={}\");\n\n var repeatedFields = [],\n mapFields = [],\n normalFields = [],\n i = 0;\n for (; i < fields.length; ++i)\n if (!fields[i].partOf)\n ( fields[i].resolve().repeated ? repeatedFields\n : fields[i].map ? mapFields\n : normalFields).push(fields[i]);\n\n if (repeatedFields.length) { gen\n (\"if(o.arrays||o.defaults){\");\n for (i = 0; i < repeatedFields.length; ++i) gen\n (\"d%s=[]\", util.safeProp(repeatedFields[i].name));\n gen\n (\"}\");\n }\n\n if (mapFields.length) { gen\n (\"if(o.objects||o.defaults){\");\n for (i = 0; i < mapFields.length; ++i) gen\n (\"d%s={}\", util.safeProp(mapFields[i].name));\n gen\n (\"}\");\n }\n\n if (normalFields.length) { gen\n (\"if(o.defaults){\");\n for (i = 0; i < normalFields.length; ++i) {\n var field = normalFields[i],\n prop = util.safeProp(field.name);\n if (field.resolvedType instanceof Enum) gen\n (\"d%s=o.enums===String?%j:%j\", prop, field.resolvedType.valuesById[field.typeDefault], field.typeDefault);\n else if (field.long) gen\n (\"if(util.Long){\")\n (\"var n=new util.Long(%i,%i,%j)\", field.typeDefault.low, field.typeDefault.high, field.typeDefault.unsigned)\n (\"d%s=o.longs===String?n.toString():o.longs===Number?n.toNumber():n\", prop)\n (\"}else\")\n (\"d%s=o.longs===String?%j:%i\", prop, field.typeDefault.toString(), field.typeDefault.toNumber());\n else if (field.bytes) {\n var arrayDefault = \"[\" + Array.prototype.slice.call(field.typeDefault).join(\",\") + \"]\";\n gen\n (\"if(o.bytes===String)d%s=%j\", prop, String.fromCharCode.apply(String, field.typeDefault))\n (\"else{\")\n (\"d%s=%s\", prop, arrayDefault)\n (\"if(o.bytes!==Array)d%s=util.newBuffer(d%s)\", prop, prop)\n (\"}\");\n } else gen\n (\"d%s=%j\", prop, field.typeDefault); // also messages (=null)\n } gen\n (\"}\");\n }\n var hasKs2 = false;\n for (i = 0; i < fields.length; ++i) {\n var field = fields[i],\n index = mtype._fieldsArray.indexOf(field),\n prop = util.safeProp(field.name);\n if (field.map) {\n if (!hasKs2) { hasKs2 = true; gen\n (\"var ks2\");\n } gen\n (\"if(m%s&&(ks2=Object.keys(m%s)).length){\", prop, prop)\n (\"d%s={}\", prop)\n (\"for(var j=0;j>>3){\");\n\n var i = 0;\n for (; i < /* initializes */ mtype.fieldsArray.length; ++i) {\n var field = mtype._fieldsArray[i].resolve(),\n type = field.resolvedType instanceof Enum ? \"int32\" : field.type,\n ref = \"m\" + util.safeProp(field.name); gen\n (\"case %i: {\", field.id);\n\n // Map fields\n if (field.map) { gen\n (\"if(%s===util.emptyObject)\", ref)\n (\"%s={}\", ref)\n (\"var c2 = r.uint32()+r.pos\");\n\n if (types.defaults[field.keyType] !== undefined) gen\n (\"k=%j\", types.defaults[field.keyType]);\n else gen\n (\"k=null\");\n\n if (types.defaults[type] !== undefined) gen\n (\"value=%j\", types.defaults[type]);\n else gen\n (\"value=null\");\n\n gen\n (\"while(r.pos>>3){\")\n (\"case 1: k=r.%s(); break\", field.keyType)\n (\"case 2:\");\n\n if (types.basic[type] === undefined) gen\n (\"value=types[%i].decode(r,r.uint32())\", i); // can't be groups\n else gen\n (\"value=r.%s()\", type);\n\n gen\n (\"break\")\n (\"default:\")\n (\"r.skipType(tag2&7)\")\n (\"break\")\n (\"}\")\n (\"}\");\n\n if (types.long[field.keyType] !== undefined) gen\n (\"%s[typeof k===\\\"object\\\"?util.longToHash(k):k]=value\", ref);\n else gen\n (\"%s[k]=value\", ref);\n\n // Repeated fields\n } else if (field.repeated) { gen\n\n (\"if(!(%s&&%s.length))\", ref, ref)\n (\"%s=[]\", ref);\n\n // Packable (always check for forward and backward compatiblity)\n if (types.packed[type] !== undefined) gen\n (\"if((t&7)===2){\")\n (\"var c2=r.uint32()+r.pos\")\n (\"while(r.pos>> 0, (field.id << 3 | 4) >>> 0)\n : gen(\"types[%i].encode(%s,w.uint32(%i).fork()).ldelim()\", fieldIndex, ref, (field.id << 3 | 2) >>> 0);\n}\n\n/**\n * Generates an encoder specific to the specified message type.\n * @param {Type} mtype Message type\n * @returns {Codegen} Codegen instance\n */\nfunction encoder(mtype) {\n /* eslint-disable no-unexpected-multiline, block-scoped-var, no-redeclare */\n var gen = util.codegen([\"m\", \"w\"], mtype.name + \"$encode\")\n (\"if(!w)\")\n (\"w=Writer.create()\");\n\n var i, ref;\n\n // \"when a message is serialized its known fields should be written sequentially by field number\"\n var fields = /* initializes */ mtype.fieldsArray.slice().sort(util.compareFieldsById);\n\n for (var i = 0; i < fields.length; ++i) {\n var field = fields[i].resolve(),\n index = mtype._fieldsArray.indexOf(field),\n type = field.resolvedType instanceof Enum ? \"int32\" : field.type,\n wireType = types.basic[type];\n ref = \"m\" + util.safeProp(field.name);\n\n // Map fields\n if (field.map) {\n gen\n (\"if(%s!=null&&Object.hasOwnProperty.call(m,%j)){\", ref, field.name) // !== undefined && !== null\n (\"for(var ks=Object.keys(%s),i=0;i>> 0, 8 | types.mapKey[field.keyType], field.keyType);\n if (wireType === undefined) gen\n (\"types[%i].encode(%s[ks[i]],w.uint32(18).fork()).ldelim().ldelim()\", index, ref); // can't be groups\n else gen\n (\".uint32(%i).%s(%s[ks[i]]).ldelim()\", 16 | wireType, type, ref);\n gen\n (\"}\")\n (\"}\");\n\n // Repeated fields\n } else if (field.repeated) { gen\n (\"if(%s!=null&&%s.length){\", ref, ref); // !== undefined && !== null\n\n // Packed repeated\n if (field.packed && types.packed[type] !== undefined) { gen\n\n (\"w.uint32(%i).fork()\", (field.id << 3 | 2) >>> 0)\n (\"for(var i=0;i<%s.length;++i)\", ref)\n (\"w.%s(%s[i])\", type, ref)\n (\"w.ldelim()\");\n\n // Non-packed\n } else { gen\n\n (\"for(var i=0;i<%s.length;++i)\", ref);\n if (wireType === undefined)\n genTypePartial(gen, field, index, ref + \"[i]\");\n else gen\n (\"w.uint32(%i).%s(%s[i])\", (field.id << 3 | wireType) >>> 0, type, ref);\n\n } gen\n (\"}\");\n\n // Non-repeated\n } else {\n if (field.optional) gen\n (\"if(%s!=null&&Object.hasOwnProperty.call(m,%j))\", ref, field.name); // !== undefined && !== null\n\n if (wireType === undefined)\n genTypePartial(gen, field, index, ref);\n else gen\n (\"w.uint32(%i).%s(%s)\", (field.id << 3 | wireType) >>> 0, type, ref);\n\n }\n }\n\n return gen\n (\"return w\");\n /* eslint-enable no-unexpected-multiline, block-scoped-var, no-redeclare */\n}\n","\"use strict\";\nmodule.exports = Enum;\n\n// extends ReflectionObject\nvar ReflectionObject = require(\"./object\");\n((Enum.prototype = Object.create(ReflectionObject.prototype)).constructor = Enum).className = \"Enum\";\n\nvar Namespace = require(\"./namespace\"),\n util = require(\"./util\");\n\n/**\n * Constructs a new enum instance.\n * @classdesc Reflected enum.\n * @extends ReflectionObject\n * @constructor\n * @param {string} name Unique name within its namespace\n * @param {Object.} [values] Enum values as an object, by name\n * @param {Object.} [options] Declared options\n * @param {string} [comment] The comment for this enum\n * @param {Object.} [comments] The value comments for this enum\n * @param {Object.>|undefined} [valuesOptions] The value options for this enum\n */\nfunction Enum(name, values, options, comment, comments, valuesOptions) {\n ReflectionObject.call(this, name, options);\n\n if (values && typeof values !== \"object\")\n throw TypeError(\"values must be an object\");\n\n /**\n * Enum values by id.\n * @type {Object.}\n */\n this.valuesById = {};\n\n /**\n * Enum values by name.\n * @type {Object.}\n */\n this.values = Object.create(this.valuesById); // toJSON, marker\n\n /**\n * Enum comment text.\n * @type {string|null}\n */\n this.comment = comment;\n\n /**\n * Value comment texts, if any.\n * @type {Object.}\n */\n this.comments = comments || {};\n\n /**\n * Values options, if any\n * @type {Object>|undefined}\n */\n this.valuesOptions = valuesOptions;\n\n /**\n * Resolved values features, if any\n * @type {Object>|undefined}\n */\n this._valuesFeatures = {};\n\n /**\n * Reserved ranges, if any.\n * @type {Array.}\n */\n this.reserved = undefined; // toJSON\n\n // Note that values inherit valuesById on their prototype which makes them a TypeScript-\n // compatible enum. This is used by pbts to write actual enum definitions that work for\n // static and reflection code alike instead of emitting generic object definitions.\n\n if (values)\n for (var keys = Object.keys(values), i = 0; i < keys.length; ++i)\n if (typeof values[keys[i]] === \"number\") // use forward entries only\n this.valuesById[ this.values[keys[i]] = values[keys[i]] ] = keys[i];\n}\n\n/**\n * @override\n */\nEnum.prototype._resolveFeatures = function _resolveFeatures(edition) {\n edition = this._edition || edition;\n ReflectionObject.prototype._resolveFeatures.call(this, edition);\n\n Object.keys(this.values).forEach(key => {\n var parentFeaturesCopy = Object.assign({}, this._features);\n this._valuesFeatures[key] = Object.assign(parentFeaturesCopy, this.valuesOptions && this.valuesOptions[key] && this.valuesOptions[key].features);\n });\n\n return this;\n};\n\n/**\n * Enum descriptor.\n * @interface IEnum\n * @property {Object.} values Enum values\n * @property {Object.} [options] Enum options\n */\n\n/**\n * Constructs an enum from an enum descriptor.\n * @param {string} name Enum name\n * @param {IEnum} json Enum descriptor\n * @returns {Enum} Created enum\n * @throws {TypeError} If arguments are invalid\n */\nEnum.fromJSON = function fromJSON(name, json) {\n var enm = new Enum(name, json.values, json.options, json.comment, json.comments);\n enm.reserved = json.reserved;\n if (json.edition)\n enm._edition = json.edition;\n enm._defaultEdition = \"proto3\"; // For backwards-compatibility.\n return enm;\n};\n\n/**\n * Converts this enum to an enum descriptor.\n * @param {IToJSONOptions} [toJSONOptions] JSON conversion options\n * @returns {IEnum} Enum descriptor\n */\nEnum.prototype.toJSON = function toJSON(toJSONOptions) {\n var keepComments = toJSONOptions ? Boolean(toJSONOptions.keepComments) : false;\n return util.toObject([\n \"edition\" , this._editionToJSON(),\n \"options\" , this.options,\n \"valuesOptions\" , this.valuesOptions,\n \"values\" , this.values,\n \"reserved\" , this.reserved && this.reserved.length ? this.reserved : undefined,\n \"comment\" , keepComments ? this.comment : undefined,\n \"comments\" , keepComments ? this.comments : undefined\n ]);\n};\n\n/**\n * Adds a value to this enum.\n * @param {string} name Value name\n * @param {number} id Value id\n * @param {string} [comment] Comment, if any\n * @param {Object.|undefined} [options] Options, if any\n * @returns {Enum} `this`\n * @throws {TypeError} If arguments are invalid\n * @throws {Error} If there is already a value with this name or id\n */\nEnum.prototype.add = function add(name, id, comment, options) {\n // utilized by the parser but not by .fromJSON\n\n if (!util.isString(name))\n throw TypeError(\"name must be a string\");\n\n if (!util.isInteger(id))\n throw TypeError(\"id must be an integer\");\n\n if (this.values[name] !== undefined)\n throw Error(\"duplicate name '\" + name + \"' in \" + this);\n\n if (this.isReservedId(id))\n throw Error(\"id \" + id + \" is reserved in \" + this);\n\n if (this.isReservedName(name))\n throw Error(\"name '\" + name + \"' is reserved in \" + this);\n\n if (this.valuesById[id] !== undefined) {\n if (!(this.options && this.options.allow_alias))\n throw Error(\"duplicate id \" + id + \" in \" + this);\n this.values[name] = id;\n } else\n this.valuesById[this.values[name] = id] = name;\n\n if (options) {\n if (this.valuesOptions === undefined)\n this.valuesOptions = {};\n this.valuesOptions[name] = options || null;\n }\n\n this.comments[name] = comment || null;\n return this;\n};\n\n/**\n * Removes a value from this enum\n * @param {string} name Value name\n * @returns {Enum} `this`\n * @throws {TypeError} If arguments are invalid\n * @throws {Error} If `name` is not a name of this enum\n */\nEnum.prototype.remove = function remove(name) {\n\n if (!util.isString(name))\n throw TypeError(\"name must be a string\");\n\n var val = this.values[name];\n if (val == null)\n throw Error(\"name '\" + name + \"' does not exist in \" + this);\n\n delete this.valuesById[val];\n delete this.values[name];\n delete this.comments[name];\n if (this.valuesOptions)\n delete this.valuesOptions[name];\n\n return this;\n};\n\n/**\n * Tests if the specified id is reserved.\n * @param {number} id Id to test\n * @returns {boolean} `true` if reserved, otherwise `false`\n */\nEnum.prototype.isReservedId = function isReservedId(id) {\n return Namespace.isReservedId(this.reserved, id);\n};\n\n/**\n * Tests if the specified name is reserved.\n * @param {string} name Name to test\n * @returns {boolean} `true` if reserved, otherwise `false`\n */\nEnum.prototype.isReservedName = function isReservedName(name) {\n return Namespace.isReservedName(this.reserved, name);\n};\n","\"use strict\";\nmodule.exports = Field;\n\n// extends ReflectionObject\nvar ReflectionObject = require(\"./object\");\n((Field.prototype = Object.create(ReflectionObject.prototype)).constructor = Field).className = \"Field\";\n\nvar Enum = require(\"./enum\"),\n types = require(\"./types\"),\n util = require(\"./util\");\n\nvar Type; // cyclic\n\nvar ruleRe = /^required|optional|repeated$/;\n\n/**\n * Constructs a new message field instance. Note that {@link MapField|map fields} have their own class.\n * @name Field\n * @classdesc Reflected message field.\n * @extends FieldBase\n * @constructor\n * @param {string} name Unique name within its namespace\n * @param {number} id Unique id within its namespace\n * @param {string} type Value type\n * @param {string|Object.} [rule=\"optional\"] Field rule\n * @param {string|Object.} [extend] Extended type if different from parent\n * @param {Object.} [options] Declared options\n */\n\n/**\n * Constructs a field from a field descriptor.\n * @param {string} name Field name\n * @param {IField} json Field descriptor\n * @returns {Field} Created field\n * @throws {TypeError} If arguments are invalid\n */\nField.fromJSON = function fromJSON(name, json) {\n var field = new Field(name, json.id, json.type, json.rule, json.extend, json.options, json.comment);\n if (json.edition)\n field._edition = json.edition;\n field._defaultEdition = \"proto3\"; // For backwards-compatibility.\n return field;\n};\n\n/**\n * Not an actual constructor. Use {@link Field} instead.\n * @classdesc Base class of all reflected message fields. This is not an actual class but here for the sake of having consistent type definitions.\n * @exports FieldBase\n * @extends ReflectionObject\n * @constructor\n * @param {string} name Unique name within its namespace\n * @param {number} id Unique id within its namespace\n * @param {string} type Value type\n * @param {string|Object.} [rule=\"optional\"] Field rule\n * @param {string|Object.} [extend] Extended type if different from parent\n * @param {Object.} [options] Declared options\n * @param {string} [comment] Comment associated with this field\n */\nfunction Field(name, id, type, rule, extend, options, comment) {\n\n if (util.isObject(rule)) {\n comment = extend;\n options = rule;\n rule = extend = undefined;\n } else if (util.isObject(extend)) {\n comment = options;\n options = extend;\n extend = undefined;\n }\n\n ReflectionObject.call(this, name, options);\n\n if (!util.isInteger(id) || id < 0)\n throw TypeError(\"id must be a non-negative integer\");\n\n if (!util.isString(type))\n throw TypeError(\"type must be a string\");\n\n if (rule !== undefined && !ruleRe.test(rule = rule.toString().toLowerCase()))\n throw TypeError(\"rule must be a string rule\");\n\n if (extend !== undefined && !util.isString(extend))\n throw TypeError(\"extend must be a string\");\n\n /**\n * Field rule, if any.\n * @type {string|undefined}\n */\n if (rule === \"proto3_optional\") {\n rule = \"optional\";\n }\n this.rule = rule && rule !== \"optional\" ? rule : undefined; // toJSON\n\n /**\n * Field type.\n * @type {string}\n */\n this.type = type; // toJSON\n\n /**\n * Unique field id.\n * @type {number}\n */\n this.id = id; // toJSON, marker\n\n /**\n * Extended type if different from parent.\n * @type {string|undefined}\n */\n this.extend = extend || undefined; // toJSON\n\n /**\n * Whether this field is repeated.\n * @type {boolean}\n */\n this.repeated = rule === \"repeated\";\n\n /**\n * Whether this field is a map or not.\n * @type {boolean}\n */\n this.map = false;\n\n /**\n * Message this field belongs to.\n * @type {Type|null}\n */\n this.message = null;\n\n /**\n * OneOf this field belongs to, if any,\n * @type {OneOf|null}\n */\n this.partOf = null;\n\n /**\n * The field type's default value.\n * @type {*}\n */\n this.typeDefault = null;\n\n /**\n * The field's default value on prototypes.\n * @type {*}\n */\n this.defaultValue = null;\n\n /**\n * Whether this field's value should be treated as a long.\n * @type {boolean}\n */\n this.long = util.Long ? types.long[type] !== undefined : /* istanbul ignore next */ false;\n\n /**\n * Whether this field's value is a buffer.\n * @type {boolean}\n */\n this.bytes = type === \"bytes\";\n\n /**\n * Resolved type if not a basic type.\n * @type {Type|Enum|null}\n */\n this.resolvedType = null;\n\n /**\n * Sister-field within the extended type if a declaring extension field.\n * @type {Field|null}\n */\n this.extensionField = null;\n\n /**\n * Sister-field within the declaring namespace if an extended field.\n * @type {Field|null}\n */\n this.declaringField = null;\n\n /**\n * Comment for this field.\n * @type {string|null}\n */\n this.comment = comment;\n}\n\n/**\n * Determines whether this field is required.\n * @name Field#required\n * @type {boolean}\n * @readonly\n */\nObject.defineProperty(Field.prototype, \"required\", {\n get: function() {\n return this._features.field_presence === \"LEGACY_REQUIRED\";\n }\n});\n\n/**\n * Determines whether this field is not required.\n * @name Field#optional\n * @type {boolean}\n * @readonly\n */\nObject.defineProperty(Field.prototype, \"optional\", {\n get: function() {\n return !this.required;\n }\n});\n\n/**\n * Determines whether this field uses tag-delimited encoding. In proto2 this\n * corresponded to group syntax.\n * @name Field#delimited\n * @type {boolean}\n * @readonly\n */\nObject.defineProperty(Field.prototype, \"delimited\", {\n get: function() {\n return this.resolvedType instanceof Type &&\n this._features.message_encoding === \"DELIMITED\";\n }\n});\n\n/**\n * Determines whether this field is packed. Only relevant when repeated.\n * @name Field#packed\n * @type {boolean}\n * @readonly\n */\nObject.defineProperty(Field.prototype, \"packed\", {\n get: function() {\n return this._features.repeated_field_encoding === \"PACKED\";\n }\n});\n\n/**\n * Determines whether this field tracks presence.\n * @name Field#hasPresence\n * @type {boolean}\n * @readonly\n */\nObject.defineProperty(Field.prototype, \"hasPresence\", {\n get: function() {\n if (this.repeated || this.map) {\n return false;\n }\n return this.partOf || // oneofs\n this.declaringField || this.extensionField || // extensions\n this._features.field_presence !== \"IMPLICIT\";\n }\n});\n\n/**\n * @override\n */\nField.prototype.setOption = function setOption(name, value, ifNotSet) {\n return ReflectionObject.prototype.setOption.call(this, name, value, ifNotSet);\n};\n\n/**\n * Field descriptor.\n * @interface IField\n * @property {string} [rule=\"optional\"] Field rule\n * @property {string} type Field type\n * @property {number} id Field id\n * @property {Object.} [options] Field options\n */\n\n/**\n * Extension field descriptor.\n * @interface IExtensionField\n * @extends IField\n * @property {string} extend Extended type\n */\n\n/**\n * Converts this field to a field descriptor.\n * @param {IToJSONOptions} [toJSONOptions] JSON conversion options\n * @returns {IField} Field descriptor\n */\nField.prototype.toJSON = function toJSON(toJSONOptions) {\n var keepComments = toJSONOptions ? Boolean(toJSONOptions.keepComments) : false;\n return util.toObject([\n \"edition\" , this._editionToJSON(),\n \"rule\" , this.rule !== \"optional\" && this.rule || undefined,\n \"type\" , this.type,\n \"id\" , this.id,\n \"extend\" , this.extend,\n \"options\" , this.options,\n \"comment\" , keepComments ? this.comment : undefined\n ]);\n};\n\n/**\n * Resolves this field's type references.\n * @returns {Field} `this`\n * @throws {Error} If any reference cannot be resolved\n */\nField.prototype.resolve = function resolve() {\n\n if (this.resolved)\n return this;\n\n if ((this.typeDefault = types.defaults[this.type]) === undefined) { // if not a basic type, resolve it\n this.resolvedType = (this.declaringField ? this.declaringField.parent : this.parent).lookupTypeOrEnum(this.type);\n if (this.resolvedType instanceof Type)\n this.typeDefault = null;\n else // instanceof Enum\n this.typeDefault = this.resolvedType.values[Object.keys(this.resolvedType.values)[0]]; // first defined\n } else if (this.options && this.options.proto3_optional) {\n // proto3 scalar value marked optional; should default to null\n this.typeDefault = null;\n }\n\n // use explicitly set default value if present\n if (this.options && this.options[\"default\"] != null) {\n this.typeDefault = this.options[\"default\"];\n if (this.resolvedType instanceof Enum && typeof this.typeDefault === \"string\")\n this.typeDefault = this.resolvedType.values[this.typeDefault];\n }\n\n // remove unnecessary options\n if (this.options) {\n if (this.options.packed !== undefined && this.resolvedType && !(this.resolvedType instanceof Enum))\n delete this.options.packed;\n if (!Object.keys(this.options).length)\n this.options = undefined;\n }\n\n // convert to internal data type if necesssary\n if (this.long) {\n this.typeDefault = util.Long.fromNumber(this.typeDefault, this.type.charAt(0) === \"u\");\n\n /* istanbul ignore else */\n if (Object.freeze)\n Object.freeze(this.typeDefault); // long instances are meant to be immutable anyway (i.e. use small int cache that even requires it)\n\n } else if (this.bytes && typeof this.typeDefault === \"string\") {\n var buf;\n if (util.base64.test(this.typeDefault))\n util.base64.decode(this.typeDefault, buf = util.newBuffer(util.base64.length(this.typeDefault)), 0);\n else\n util.utf8.write(this.typeDefault, buf = util.newBuffer(util.utf8.length(this.typeDefault)), 0);\n this.typeDefault = buf;\n }\n\n // take special care of maps and repeated fields\n if (this.map)\n this.defaultValue = util.emptyObject;\n else if (this.repeated)\n this.defaultValue = util.emptyArray;\n else\n this.defaultValue = this.typeDefault;\n\n // ensure proper value on prototype\n if (this.parent instanceof Type)\n this.parent.ctor.prototype[this.name] = this.defaultValue;\n\n return ReflectionObject.prototype.resolve.call(this);\n};\n\n/**\n * Infers field features from legacy syntax that may have been specified differently.\n * in older editions.\n * @param {string|undefined} edition The edition this proto is on, or undefined if pre-editions\n * @returns {object} The feature values to override\n */\nField.prototype._inferLegacyProtoFeatures = function _inferLegacyProtoFeatures(edition) {\n if (edition !== \"proto2\" && edition !== \"proto3\") {\n return {};\n }\n\n var features = {};\n\n if (this.rule === \"required\") {\n features.field_presence = \"LEGACY_REQUIRED\";\n }\n if (this.parent && types.defaults[this.type] === undefined) {\n // We can't use resolvedType because types may not have been resolved yet. However,\n // legacy groups are always in the same scope as the field so we don't have to do a\n // full scan of the tree.\n var type = this.parent.get(this.type.split(\".\").pop());\n if (type && type instanceof Type && type.group) {\n features.message_encoding = \"DELIMITED\";\n }\n }\n if (this.getOption(\"packed\") === true) {\n features.repeated_field_encoding = \"PACKED\";\n } else if (this.getOption(\"packed\") === false) {\n features.repeated_field_encoding = \"EXPANDED\";\n }\n return features;\n};\n\n/**\n * @override\n */\nField.prototype._resolveFeatures = function _resolveFeatures(edition) {\n return ReflectionObject.prototype._resolveFeatures.call(this, this._edition || edition);\n};\n\n/**\n * Decorator function as returned by {@link Field.d} and {@link MapField.d} (TypeScript).\n * @typedef FieldDecorator\n * @type {function}\n * @param {Object} prototype Target prototype\n * @param {string} fieldName Field name\n * @returns {undefined}\n */\n\n/**\n * Field decorator (TypeScript).\n * @name Field.d\n * @function\n * @param {number} fieldId Field id\n * @param {\"double\"|\"float\"|\"int32\"|\"uint32\"|\"sint32\"|\"fixed32\"|\"sfixed32\"|\"int64\"|\"uint64\"|\"sint64\"|\"fixed64\"|\"sfixed64\"|\"string\"|\"bool\"|\"bytes\"|Object} fieldType Field type\n * @param {\"optional\"|\"required\"|\"repeated\"} [fieldRule=\"optional\"] Field rule\n * @param {T} [defaultValue] Default value\n * @returns {FieldDecorator} Decorator function\n * @template T extends number | number[] | Long | Long[] | string | string[] | boolean | boolean[] | Uint8Array | Uint8Array[] | Buffer | Buffer[]\n */\nField.d = function decorateField(fieldId, fieldType, fieldRule, defaultValue) {\n\n // submessage: decorate the submessage and use its name as the type\n if (typeof fieldType === \"function\")\n fieldType = util.decorateType(fieldType).name;\n\n // enum reference: create a reflected copy of the enum and keep reuseing it\n else if (fieldType && typeof fieldType === \"object\")\n fieldType = util.decorateEnum(fieldType).name;\n\n return function fieldDecorator(prototype, fieldName) {\n util.decorateType(prototype.constructor)\n .add(new Field(fieldName, fieldId, fieldType, fieldRule, { \"default\": defaultValue }));\n };\n};\n\n/**\n * Field decorator (TypeScript).\n * @name Field.d\n * @function\n * @param {number} fieldId Field id\n * @param {Constructor|string} fieldType Field type\n * @param {\"optional\"|\"required\"|\"repeated\"} [fieldRule=\"optional\"] Field rule\n * @returns {FieldDecorator} Decorator function\n * @template T extends Message\n * @variation 2\n */\n// like Field.d but without a default value\n\n// Sets up cyclic dependencies (called in index-light)\nField._configure = function configure(Type_) {\n Type = Type_;\n};\n","\"use strict\";\nvar protobuf = module.exports = require(\"./index-minimal\");\n\nprotobuf.build = \"light\";\n\n/**\n * A node-style callback as used by {@link load} and {@link Root#load}.\n * @typedef LoadCallback\n * @type {function}\n * @param {Error|null} error Error, if any, otherwise `null`\n * @param {Root} [root] Root, if there hasn't been an error\n * @returns {undefined}\n */\n\n/**\n * Loads one or multiple .proto or preprocessed .json files into a common root namespace and calls the callback.\n * @param {string|string[]} filename One or multiple files to load\n * @param {Root} root Root namespace, defaults to create a new one if omitted.\n * @param {LoadCallback} callback Callback function\n * @returns {undefined}\n * @see {@link Root#load}\n */\nfunction load(filename, root, callback) {\n if (typeof root === \"function\") {\n callback = root;\n root = new protobuf.Root();\n } else if (!root)\n root = new protobuf.Root();\n return root.load(filename, callback);\n}\n\n/**\n * Loads one or multiple .proto or preprocessed .json files into a common root namespace and calls the callback.\n * @name load\n * @function\n * @param {string|string[]} filename One or multiple files to load\n * @param {LoadCallback} callback Callback function\n * @returns {undefined}\n * @see {@link Root#load}\n * @variation 2\n */\n// function load(filename:string, callback:LoadCallback):undefined\n\n/**\n * Loads one or multiple .proto or preprocessed .json files into a common root namespace and returns a promise.\n * @name load\n * @function\n * @param {string|string[]} filename One or multiple files to load\n * @param {Root} [root] Root namespace, defaults to create a new one if omitted.\n * @returns {Promise} Promise\n * @see {@link Root#load}\n * @variation 3\n */\n// function load(filename:string, [root:Root]):Promise\n\nprotobuf.load = load;\n\n/**\n * Synchronously loads one or multiple .proto or preprocessed .json files into a common root namespace (node only).\n * @param {string|string[]} filename One or multiple files to load\n * @param {Root} [root] Root namespace, defaults to create a new one if omitted.\n * @returns {Root} Root namespace\n * @throws {Error} If synchronous fetching is not supported (i.e. in browsers) or if a file's syntax is invalid\n * @see {@link Root#loadSync}\n */\nfunction loadSync(filename, root) {\n if (!root)\n root = new protobuf.Root();\n return root.loadSync(filename);\n}\n\nprotobuf.loadSync = loadSync;\n\n// Serialization\nprotobuf.encoder = require(\"./encoder\");\nprotobuf.decoder = require(\"./decoder\");\nprotobuf.verifier = require(\"./verifier\");\nprotobuf.converter = require(\"./converter\");\n\n// Reflection\nprotobuf.ReflectionObject = require(\"./object\");\nprotobuf.Namespace = require(\"./namespace\");\nprotobuf.Root = require(\"./root\");\nprotobuf.Enum = require(\"./enum\");\nprotobuf.Type = require(\"./type\");\nprotobuf.Field = require(\"./field\");\nprotobuf.OneOf = require(\"./oneof\");\nprotobuf.MapField = require(\"./mapfield\");\nprotobuf.Service = require(\"./service\");\nprotobuf.Method = require(\"./method\");\n\n// Runtime\nprotobuf.Message = require(\"./message\");\nprotobuf.wrappers = require(\"./wrappers\");\n\n// Utility\nprotobuf.types = require(\"./types\");\nprotobuf.util = require(\"./util\");\n\n// Set up possibly cyclic reflection dependencies\nprotobuf.ReflectionObject._configure(protobuf.Root);\nprotobuf.Namespace._configure(protobuf.Type, protobuf.Service, protobuf.Enum);\nprotobuf.Root._configure(protobuf.Type);\nprotobuf.Field._configure(protobuf.Type);\n","\"use strict\";\nvar protobuf = exports;\n\n/**\n * Build type, one of `\"full\"`, `\"light\"` or `\"minimal\"`.\n * @name build\n * @type {string}\n * @const\n */\nprotobuf.build = \"minimal\";\n\n// Serialization\nprotobuf.Writer = require(\"./writer\");\nprotobuf.BufferWriter = require(\"./writer_buffer\");\nprotobuf.Reader = require(\"./reader\");\nprotobuf.BufferReader = require(\"./reader_buffer\");\n\n// Utility\nprotobuf.util = require(\"./util/minimal\");\nprotobuf.rpc = require(\"./rpc\");\nprotobuf.roots = require(\"./roots\");\nprotobuf.configure = configure;\n\n/* istanbul ignore next */\n/**\n * Reconfigures the library according to the environment.\n * @returns {undefined}\n */\nfunction configure() {\n protobuf.util._configure();\n protobuf.Writer._configure(protobuf.BufferWriter);\n protobuf.Reader._configure(protobuf.BufferReader);\n}\n\n// Set up buffer utility according to the environment\nconfigure();\n","\"use strict\";\nvar protobuf = module.exports = require(\"./index-light\");\n\nprotobuf.build = \"full\";\n\n// Parser\nprotobuf.tokenize = require(\"./tokenize\");\nprotobuf.parse = require(\"./parse\");\nprotobuf.common = require(\"./common\");\n\n// Configure parser\nprotobuf.Root._configure(protobuf.Type, protobuf.parse, protobuf.common);\n","\"use strict\";\nmodule.exports = MapField;\n\n// extends Field\nvar Field = require(\"./field\");\n((MapField.prototype = Object.create(Field.prototype)).constructor = MapField).className = \"MapField\";\n\nvar types = require(\"./types\"),\n util = require(\"./util\");\n\n/**\n * Constructs a new map field instance.\n * @classdesc Reflected map field.\n * @extends FieldBase\n * @constructor\n * @param {string} name Unique name within its namespace\n * @param {number} id Unique id within its namespace\n * @param {string} keyType Key type\n * @param {string} type Value type\n * @param {Object.} [options] Declared options\n * @param {string} [comment] Comment associated with this field\n */\nfunction MapField(name, id, keyType, type, options, comment) {\n Field.call(this, name, id, type, undefined, undefined, options, comment);\n\n /* istanbul ignore if */\n if (!util.isString(keyType))\n throw TypeError(\"keyType must be a string\");\n\n /**\n * Key type.\n * @type {string}\n */\n this.keyType = keyType; // toJSON, marker\n\n /**\n * Resolved key type if not a basic type.\n * @type {ReflectionObject|null}\n */\n this.resolvedKeyType = null;\n\n // Overrides Field#map\n this.map = true;\n}\n\n/**\n * Map field descriptor.\n * @interface IMapField\n * @extends {IField}\n * @property {string} keyType Key type\n */\n\n/**\n * Extension map field descriptor.\n * @interface IExtensionMapField\n * @extends IMapField\n * @property {string} extend Extended type\n */\n\n/**\n * Constructs a map field from a map field descriptor.\n * @param {string} name Field name\n * @param {IMapField} json Map field descriptor\n * @returns {MapField} Created map field\n * @throws {TypeError} If arguments are invalid\n */\nMapField.fromJSON = function fromJSON(name, json) {\n return new MapField(name, json.id, json.keyType, json.type, json.options, json.comment);\n};\n\n/**\n * Converts this map field to a map field descriptor.\n * @param {IToJSONOptions} [toJSONOptions] JSON conversion options\n * @returns {IMapField} Map field descriptor\n */\nMapField.prototype.toJSON = function toJSON(toJSONOptions) {\n var keepComments = toJSONOptions ? Boolean(toJSONOptions.keepComments) : false;\n return util.toObject([\n \"keyType\" , this.keyType,\n \"type\" , this.type,\n \"id\" , this.id,\n \"extend\" , this.extend,\n \"options\" , this.options,\n \"comment\" , keepComments ? this.comment : undefined\n ]);\n};\n\n/**\n * @override\n */\nMapField.prototype.resolve = function resolve() {\n if (this.resolved)\n return this;\n\n // Besides a value type, map fields have a key type that may be \"any scalar type except for floating point types and bytes\"\n if (types.mapKey[this.keyType] === undefined)\n throw Error(\"invalid key type: \" + this.keyType);\n\n return Field.prototype.resolve.call(this);\n};\n\n/**\n * Map field decorator (TypeScript).\n * @name MapField.d\n * @function\n * @param {number} fieldId Field id\n * @param {\"int32\"|\"uint32\"|\"sint32\"|\"fixed32\"|\"sfixed32\"|\"int64\"|\"uint64\"|\"sint64\"|\"fixed64\"|\"sfixed64\"|\"bool\"|\"string\"} fieldKeyType Field key type\n * @param {\"double\"|\"float\"|\"int32\"|\"uint32\"|\"sint32\"|\"fixed32\"|\"sfixed32\"|\"int64\"|\"uint64\"|\"sint64\"|\"fixed64\"|\"sfixed64\"|\"bool\"|\"string\"|\"bytes\"|Object|Constructor<{}>} fieldValueType Field value type\n * @returns {FieldDecorator} Decorator function\n * @template T extends { [key: string]: number | Long | string | boolean | Uint8Array | Buffer | number[] | Message<{}> }\n */\nMapField.d = function decorateMapField(fieldId, fieldKeyType, fieldValueType) {\n\n // submessage value: decorate the submessage and use its name as the type\n if (typeof fieldValueType === \"function\")\n fieldValueType = util.decorateType(fieldValueType).name;\n\n // enum reference value: create a reflected copy of the enum and keep reuseing it\n else if (fieldValueType && typeof fieldValueType === \"object\")\n fieldValueType = util.decorateEnum(fieldValueType).name;\n\n return function mapFieldDecorator(prototype, fieldName) {\n util.decorateType(prototype.constructor)\n .add(new MapField(fieldName, fieldId, fieldKeyType, fieldValueType));\n };\n};\n","\"use strict\";\nmodule.exports = Message;\n\nvar util = require(\"./util/minimal\");\n\n/**\n * Constructs a new message instance.\n * @classdesc Abstract runtime message.\n * @constructor\n * @param {Properties} [properties] Properties to set\n * @template T extends object = object\n */\nfunction Message(properties) {\n // not used internally\n if (properties)\n for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)\n this[keys[i]] = properties[keys[i]];\n}\n\n/**\n * Reference to the reflected type.\n * @name Message.$type\n * @type {Type}\n * @readonly\n */\n\n/**\n * Reference to the reflected type.\n * @name Message#$type\n * @type {Type}\n * @readonly\n */\n\n/*eslint-disable valid-jsdoc*/\n\n/**\n * Creates a new message of this type using the specified properties.\n * @param {Object.} [properties] Properties to set\n * @returns {Message} Message instance\n * @template T extends Message\n * @this Constructor\n */\nMessage.create = function create(properties) {\n return this.$type.create(properties);\n};\n\n/**\n * Encodes a message of this type.\n * @param {T|Object.} message Message to encode\n * @param {Writer} [writer] Writer to use\n * @returns {Writer} Writer\n * @template T extends Message\n * @this Constructor\n */\nMessage.encode = function encode(message, writer) {\n return this.$type.encode(message, writer);\n};\n\n/**\n * Encodes a message of this type preceeded by its length as a varint.\n * @param {T|Object.} message Message to encode\n * @param {Writer} [writer] Writer to use\n * @returns {Writer} Writer\n * @template T extends Message\n * @this Constructor\n */\nMessage.encodeDelimited = function encodeDelimited(message, writer) {\n return this.$type.encodeDelimited(message, writer);\n};\n\n/**\n * Decodes a message of this type.\n * @name Message.decode\n * @function\n * @param {Reader|Uint8Array} reader Reader or buffer to decode\n * @returns {T} Decoded message\n * @template T extends Message\n * @this Constructor\n */\nMessage.decode = function decode(reader) {\n return this.$type.decode(reader);\n};\n\n/**\n * Decodes a message of this type preceeded by its length as a varint.\n * @name Message.decodeDelimited\n * @function\n * @param {Reader|Uint8Array} reader Reader or buffer to decode\n * @returns {T} Decoded message\n * @template T extends Message\n * @this Constructor\n */\nMessage.decodeDelimited = function decodeDelimited(reader) {\n return this.$type.decodeDelimited(reader);\n};\n\n/**\n * Verifies a message of this type.\n * @name Message.verify\n * @function\n * @param {Object.} message Plain object to verify\n * @returns {string|null} `null` if valid, otherwise the reason why it is not\n */\nMessage.verify = function verify(message) {\n return this.$type.verify(message);\n};\n\n/**\n * Creates a new message of this type from a plain object. Also converts values to their respective internal types.\n * @param {Object.} object Plain object\n * @returns {T} Message instance\n * @template T extends Message\n * @this Constructor\n */\nMessage.fromObject = function fromObject(object) {\n return this.$type.fromObject(object);\n};\n\n/**\n * Creates a plain object from a message of this type. Also converts values to other types if specified.\n * @param {T} message Message instance\n * @param {IConversionOptions} [options] Conversion options\n * @returns {Object.} Plain object\n * @template T extends Message\n * @this Constructor\n */\nMessage.toObject = function toObject(message, options) {\n return this.$type.toObject(message, options);\n};\n\n/**\n * Converts this message to JSON.\n * @returns {Object.} JSON object\n */\nMessage.prototype.toJSON = function toJSON() {\n return this.$type.toObject(this, util.toJSONOptions);\n};\n\n/*eslint-enable valid-jsdoc*/","\"use strict\";\nmodule.exports = Method;\n\n// extends ReflectionObject\nvar ReflectionObject = require(\"./object\");\n((Method.prototype = Object.create(ReflectionObject.prototype)).constructor = Method).className = \"Method\";\n\nvar util = require(\"./util\");\n\n/**\n * Constructs a new service method instance.\n * @classdesc Reflected service method.\n * @extends ReflectionObject\n * @constructor\n * @param {string} name Method name\n * @param {string|undefined} type Method type, usually `\"rpc\"`\n * @param {string} requestType Request message type\n * @param {string} responseType Response message type\n * @param {boolean|Object.} [requestStream] Whether the request is streamed\n * @param {boolean|Object.} [responseStream] Whether the response is streamed\n * @param {Object.} [options] Declared options\n * @param {string} [comment] The comment for this method\n * @param {Object.} [parsedOptions] Declared options, properly parsed into an object\n */\nfunction Method(name, type, requestType, responseType, requestStream, responseStream, options, comment, parsedOptions) {\n\n /* istanbul ignore next */\n if (util.isObject(requestStream)) {\n options = requestStream;\n requestStream = responseStream = undefined;\n } else if (util.isObject(responseStream)) {\n options = responseStream;\n responseStream = undefined;\n }\n\n /* istanbul ignore if */\n if (!(type === undefined || util.isString(type)))\n throw TypeError(\"type must be a string\");\n\n /* istanbul ignore if */\n if (!util.isString(requestType))\n throw TypeError(\"requestType must be a string\");\n\n /* istanbul ignore if */\n if (!util.isString(responseType))\n throw TypeError(\"responseType must be a string\");\n\n ReflectionObject.call(this, name, options);\n\n /**\n * Method type.\n * @type {string}\n */\n this.type = type || \"rpc\"; // toJSON\n\n /**\n * Request type.\n * @type {string}\n */\n this.requestType = requestType; // toJSON, marker\n\n /**\n * Whether requests are streamed or not.\n * @type {boolean|undefined}\n */\n this.requestStream = requestStream ? true : undefined; // toJSON\n\n /**\n * Response type.\n * @type {string}\n */\n this.responseType = responseType; // toJSON\n\n /**\n * Whether responses are streamed or not.\n * @type {boolean|undefined}\n */\n this.responseStream = responseStream ? true : undefined; // toJSON\n\n /**\n * Resolved request type.\n * @type {Type|null}\n */\n this.resolvedRequestType = null;\n\n /**\n * Resolved response type.\n * @type {Type|null}\n */\n this.resolvedResponseType = null;\n\n /**\n * Comment for this method\n * @type {string|null}\n */\n this.comment = comment;\n\n /**\n * Options properly parsed into an object\n */\n this.parsedOptions = parsedOptions;\n}\n\n/**\n * Method descriptor.\n * @interface IMethod\n * @property {string} [type=\"rpc\"] Method type\n * @property {string} requestType Request type\n * @property {string} responseType Response type\n * @property {boolean} [requestStream=false] Whether requests are streamed\n * @property {boolean} [responseStream=false] Whether responses are streamed\n * @property {Object.} [options] Method options\n * @property {string} comment Method comments\n * @property {Object.} [parsedOptions] Method options properly parsed into an object\n */\n\n/**\n * Constructs a method from a method descriptor.\n * @param {string} name Method name\n * @param {IMethod} json Method descriptor\n * @returns {Method} Created method\n * @throws {TypeError} If arguments are invalid\n */\nMethod.fromJSON = function fromJSON(name, json) {\n return new Method(name, json.type, json.requestType, json.responseType, json.requestStream, json.responseStream, json.options, json.comment, json.parsedOptions);\n};\n\n/**\n * Converts this method to a method descriptor.\n * @param {IToJSONOptions} [toJSONOptions] JSON conversion options\n * @returns {IMethod} Method descriptor\n */\nMethod.prototype.toJSON = function toJSON(toJSONOptions) {\n var keepComments = toJSONOptions ? Boolean(toJSONOptions.keepComments) : false;\n return util.toObject([\n \"type\" , this.type !== \"rpc\" && /* istanbul ignore next */ this.type || undefined,\n \"requestType\" , this.requestType,\n \"requestStream\" , this.requestStream,\n \"responseType\" , this.responseType,\n \"responseStream\" , this.responseStream,\n \"options\" , this.options,\n \"comment\" , keepComments ? this.comment : undefined,\n \"parsedOptions\" , this.parsedOptions,\n ]);\n};\n\n/**\n * @override\n */\nMethod.prototype.resolve = function resolve() {\n\n /* istanbul ignore if */\n if (this.resolved)\n return this;\n\n this.resolvedRequestType = this.parent.lookupType(this.requestType);\n this.resolvedResponseType = this.parent.lookupType(this.responseType);\n\n return ReflectionObject.prototype.resolve.call(this);\n};\n","\"use strict\";\nmodule.exports = Namespace;\n\n// extends ReflectionObject\nvar ReflectionObject = require(\"./object\");\n((Namespace.prototype = Object.create(ReflectionObject.prototype)).constructor = Namespace).className = \"Namespace\";\n\nvar Field = require(\"./field\"),\n util = require(\"./util\"),\n OneOf = require(\"./oneof\");\n\nvar Type, // cyclic\n Service,\n Enum;\n\n/**\n * Constructs a new namespace instance.\n * @name Namespace\n * @classdesc Reflected namespace.\n * @extends NamespaceBase\n * @constructor\n * @param {string} name Namespace name\n * @param {Object.} [options] Declared options\n */\n\n/**\n * Constructs a namespace from JSON.\n * @memberof Namespace\n * @function\n * @param {string} name Namespace name\n * @param {Object.} json JSON object\n * @returns {Namespace} Created namespace\n * @throws {TypeError} If arguments are invalid\n */\nNamespace.fromJSON = function fromJSON(name, json) {\n return new Namespace(name, json.options).addJSON(json.nested);\n};\n\n/**\n * Converts an array of reflection objects to JSON.\n * @memberof Namespace\n * @param {ReflectionObject[]} array Object array\n * @param {IToJSONOptions} [toJSONOptions] JSON conversion options\n * @returns {Object.|undefined} JSON object or `undefined` when array is empty\n */\nfunction arrayToJSON(array, toJSONOptions) {\n if (!(array && array.length))\n return undefined;\n var obj = {};\n for (var i = 0; i < array.length; ++i)\n obj[array[i].name] = array[i].toJSON(toJSONOptions);\n return obj;\n}\n\nNamespace.arrayToJSON = arrayToJSON;\n\n/**\n * Tests if the specified id is reserved.\n * @param {Array.|undefined} reserved Array of reserved ranges and names\n * @param {number} id Id to test\n * @returns {boolean} `true` if reserved, otherwise `false`\n */\nNamespace.isReservedId = function isReservedId(reserved, id) {\n if (reserved)\n for (var i = 0; i < reserved.length; ++i)\n if (typeof reserved[i] !== \"string\" && reserved[i][0] <= id && reserved[i][1] > id)\n return true;\n return false;\n};\n\n/**\n * Tests if the specified name is reserved.\n * @param {Array.|undefined} reserved Array of reserved ranges and names\n * @param {string} name Name to test\n * @returns {boolean} `true` if reserved, otherwise `false`\n */\nNamespace.isReservedName = function isReservedName(reserved, name) {\n if (reserved)\n for (var i = 0; i < reserved.length; ++i)\n if (reserved[i] === name)\n return true;\n return false;\n};\n\n/**\n * Not an actual constructor. Use {@link Namespace} instead.\n * @classdesc Base class of all reflection objects containing nested objects. This is not an actual class but here for the sake of having consistent type definitions.\n * @exports NamespaceBase\n * @extends ReflectionObject\n * @abstract\n * @constructor\n * @param {string} name Namespace name\n * @param {Object.} [options] Declared options\n * @see {@link Namespace}\n */\nfunction Namespace(name, options) {\n ReflectionObject.call(this, name, options);\n\n /**\n * Nested objects by name.\n * @type {Object.|undefined}\n */\n this.nested = undefined; // toJSON\n\n /**\n * Cached nested objects as an array.\n * @type {ReflectionObject[]|null}\n * @private\n */\n this._nestedArray = null;\n\n /**\n * Cache lookup calls for any objects contains anywhere under this namespace.\n * This drastically speeds up resolve for large cross-linked protos where the same\n * types are looked up repeatedly.\n * @type {Object.}\n * @private\n */\n this._lookupCache = {};\n\n /**\n * Whether or not objects contained in this namespace need feature resolution.\n * @type {boolean}\n * @protected\n */\n this._needsRecursiveFeatureResolution = true;\n\n /**\n * Whether or not objects contained in this namespace need a resolve.\n * @type {boolean}\n * @protected\n */\n this._needsRecursiveResolve = true;\n}\n\nfunction clearCache(namespace) {\n namespace._nestedArray = null;\n namespace._lookupCache = {};\n\n // Also clear parent caches, since they include nested lookups.\n var parent = namespace;\n while(parent = parent.parent) {\n parent._lookupCache = {};\n }\n return namespace;\n}\n\n/**\n * Nested objects of this namespace as an array for iteration.\n * @name NamespaceBase#nestedArray\n * @type {ReflectionObject[]}\n * @readonly\n */\nObject.defineProperty(Namespace.prototype, \"nestedArray\", {\n get: function() {\n return this._nestedArray || (this._nestedArray = util.toArray(this.nested));\n }\n});\n\n/**\n * Namespace descriptor.\n * @interface INamespace\n * @property {Object.} [options] Namespace options\n * @property {Object.} [nested] Nested object descriptors\n */\n\n/**\n * Any extension field descriptor.\n * @typedef AnyExtensionField\n * @type {IExtensionField|IExtensionMapField}\n */\n\n/**\n * Any nested object descriptor.\n * @typedef AnyNestedObject\n * @type {IEnum|IType|IService|AnyExtensionField|INamespace|IOneOf}\n */\n\n/**\n * Converts this namespace to a namespace descriptor.\n * @param {IToJSONOptions} [toJSONOptions] JSON conversion options\n * @returns {INamespace} Namespace descriptor\n */\nNamespace.prototype.toJSON = function toJSON(toJSONOptions) {\n return util.toObject([\n \"options\" , this.options,\n \"nested\" , arrayToJSON(this.nestedArray, toJSONOptions)\n ]);\n};\n\n/**\n * Adds nested objects to this namespace from nested object descriptors.\n * @param {Object.} nestedJson Any nested object descriptors\n * @returns {Namespace} `this`\n */\nNamespace.prototype.addJSON = function addJSON(nestedJson) {\n var ns = this;\n /* istanbul ignore else */\n if (nestedJson) {\n for (var names = Object.keys(nestedJson), i = 0, nested; i < names.length; ++i) {\n nested = nestedJson[names[i]];\n ns.add( // most to least likely\n ( nested.fields !== undefined\n ? Type.fromJSON\n : nested.values !== undefined\n ? Enum.fromJSON\n : nested.methods !== undefined\n ? Service.fromJSON\n : nested.id !== undefined\n ? Field.fromJSON\n : Namespace.fromJSON )(names[i], nested)\n );\n }\n }\n return this;\n};\n\n/**\n * Gets the nested object of the specified name.\n * @param {string} name Nested object name\n * @returns {ReflectionObject|null} The reflection object or `null` if it doesn't exist\n */\nNamespace.prototype.get = function get(name) {\n return this.nested && this.nested[name]\n || null;\n};\n\n/**\n * Gets the values of the nested {@link Enum|enum} of the specified name.\n * This methods differs from {@link Namespace#get|get} in that it returns an enum's values directly and throws instead of returning `null`.\n * @param {string} name Nested enum name\n * @returns {Object.} Enum values\n * @throws {Error} If there is no such enum\n */\nNamespace.prototype.getEnum = function getEnum(name) {\n if (this.nested && this.nested[name] instanceof Enum)\n return this.nested[name].values;\n throw Error(\"no such enum: \" + name);\n};\n\n/**\n * Adds a nested object to this namespace.\n * @param {ReflectionObject} object Nested object to add\n * @returns {Namespace} `this`\n * @throws {TypeError} If arguments are invalid\n * @throws {Error} If there is already a nested object with this name\n */\nNamespace.prototype.add = function add(object) {\n\n if (!(object instanceof Field && object.extend !== undefined || object instanceof Type || object instanceof OneOf || object instanceof Enum || object instanceof Service || object instanceof Namespace))\n throw TypeError(\"object must be a valid nested object\");\n\n if (!this.nested)\n this.nested = {};\n else {\n var prev = this.get(object.name);\n if (prev) {\n if (prev instanceof Namespace && object instanceof Namespace && !(prev instanceof Type || prev instanceof Service)) {\n // replace plain namespace but keep existing nested elements and options\n var nested = prev.nestedArray;\n for (var i = 0; i < nested.length; ++i)\n object.add(nested[i]);\n this.remove(prev);\n if (!this.nested)\n this.nested = {};\n object.setOptions(prev.options, true);\n\n } else\n throw Error(\"duplicate name '\" + object.name + \"' in \" + this);\n }\n }\n this.nested[object.name] = object;\n\n if (!(this instanceof Type || this instanceof Service || this instanceof Enum || this instanceof Field)) {\n // This is a package or a root namespace.\n if (!object._edition) {\n // Make sure that some edition is set if it hasn't already been specified.\n object._edition = object._defaultEdition;\n }\n }\n\n this._needsRecursiveFeatureResolution = true;\n this._needsRecursiveResolve = true;\n\n // Also clear parent caches, since they need to recurse down.\n var parent = this;\n while(parent = parent.parent) {\n parent._needsRecursiveFeatureResolution = true;\n parent._needsRecursiveResolve = true;\n }\n\n object.onAdd(this);\n return clearCache(this);\n};\n\n/**\n * Removes a nested object from this namespace.\n * @param {ReflectionObject} object Nested object to remove\n * @returns {Namespace} `this`\n * @throws {TypeError} If arguments are invalid\n * @throws {Error} If `object` is not a member of this namespace\n */\nNamespace.prototype.remove = function remove(object) {\n\n if (!(object instanceof ReflectionObject))\n throw TypeError(\"object must be a ReflectionObject\");\n if (object.parent !== this)\n throw Error(object + \" is not a member of \" + this);\n\n delete this.nested[object.name];\n if (!Object.keys(this.nested).length)\n this.nested = undefined;\n\n object.onRemove(this);\n return clearCache(this);\n};\n\n/**\n * Defines additial namespaces within this one if not yet existing.\n * @param {string|string[]} path Path to create\n * @param {*} [json] Nested types to create from JSON\n * @returns {Namespace} Pointer to the last namespace created or `this` if path is empty\n */\nNamespace.prototype.define = function define(path, json) {\n\n if (util.isString(path))\n path = path.split(\".\");\n else if (!Array.isArray(path))\n throw TypeError(\"illegal path\");\n if (path && path.length && path[0] === \"\")\n throw Error(\"path must be relative\");\n\n var ptr = this;\n while (path.length > 0) {\n var part = path.shift();\n if (ptr.nested && ptr.nested[part]) {\n ptr = ptr.nested[part];\n if (!(ptr instanceof Namespace))\n throw Error(\"path conflicts with non-namespace objects\");\n } else\n ptr.add(ptr = new Namespace(part));\n }\n if (json)\n ptr.addJSON(json);\n return ptr;\n};\n\n/**\n * Resolves this namespace's and all its nested objects' type references. Useful to validate a reflection tree, but comes at a cost.\n * @returns {Namespace} `this`\n */\nNamespace.prototype.resolveAll = function resolveAll() {\n if (!this._needsRecursiveResolve) return this;\n\n this._resolveFeaturesRecursive(this._edition);\n\n var nested = this.nestedArray, i = 0;\n this.resolve();\n while (i < nested.length)\n if (nested[i] instanceof Namespace)\n nested[i++].resolveAll();\n else\n nested[i++].resolve();\n this._needsRecursiveResolve = false;\n return this;\n};\n\n/**\n * @override\n */\nNamespace.prototype._resolveFeaturesRecursive = function _resolveFeaturesRecursive(edition) {\n if (!this._needsRecursiveFeatureResolution) return this;\n this._needsRecursiveFeatureResolution = false;\n\n edition = this._edition || edition;\n\n ReflectionObject.prototype._resolveFeaturesRecursive.call(this, edition);\n this.nestedArray.forEach(nested => {\n nested._resolveFeaturesRecursive(edition);\n });\n return this;\n};\n\n/**\n * Recursively looks up the reflection object matching the specified path in the scope of this namespace.\n * @param {string|string[]} path Path to look up\n * @param {*|Array.<*>} filterTypes Filter types, any combination of the constructors of `protobuf.Type`, `protobuf.Enum`, `protobuf.Service` etc.\n * @param {boolean} [parentAlreadyChecked=false] If known, whether the parent has already been checked\n * @returns {ReflectionObject|null} Looked up object or `null` if none could be found\n */\nNamespace.prototype.lookup = function lookup(path, filterTypes, parentAlreadyChecked) {\n /* istanbul ignore next */\n if (typeof filterTypes === \"boolean\") {\n parentAlreadyChecked = filterTypes;\n filterTypes = undefined;\n } else if (filterTypes && !Array.isArray(filterTypes))\n filterTypes = [ filterTypes ];\n\n if (util.isString(path) && path.length) {\n if (path === \".\")\n return this.root;\n path = path.split(\".\");\n } else if (!path.length)\n return this;\n\n var flatPath = path.join(\".\");\n\n // Start at root if path is absolute\n if (path[0] === \"\")\n return this.root.lookup(path.slice(1), filterTypes);\n\n // Early bailout for objects with matching absolute paths\n var found = this.root._fullyQualifiedObjects && this.root._fullyQualifiedObjects[\".\" + flatPath];\n if (found && (!filterTypes || filterTypes.indexOf(found.constructor) > -1)) {\n return found;\n }\n\n // Do a regular lookup at this namespace and below\n found = this._lookupImpl(path, flatPath);\n if (found && (!filterTypes || filterTypes.indexOf(found.constructor) > -1)) {\n return found;\n }\n\n if (parentAlreadyChecked)\n return null;\n\n // If there hasn't been a match, walk up the tree and look more broadly\n var current = this;\n while (current.parent) {\n found = current.parent._lookupImpl(path, flatPath);\n if (found && (!filterTypes || filterTypes.indexOf(found.constructor) > -1)) {\n return found;\n }\n current = current.parent;\n }\n return null;\n};\n\n/**\n * Internal helper for lookup that handles searching just at this namespace and below along with caching.\n * @param {string[]} path Path to look up\n * @param {string} flatPath Flattened version of the path to use as a cache key\n * @returns {ReflectionObject|null} Looked up object or `null` if none could be found\n * @private\n */\nNamespace.prototype._lookupImpl = function lookup(path, flatPath) {\n if(Object.prototype.hasOwnProperty.call(this._lookupCache, flatPath)) {\n return this._lookupCache[flatPath];\n }\n\n // Test if the first part matches any nested object, and if so, traverse if path contains more\n var found = this.get(path[0]);\n var exact = null;\n if (found) {\n if (path.length === 1) {\n exact = found;\n } else if (found instanceof Namespace) {\n path = path.slice(1);\n exact = found._lookupImpl(path, path.join(\".\"));\n }\n\n // Otherwise try each nested namespace\n } else {\n for (var i = 0; i < this.nestedArray.length; ++i)\n if (this._nestedArray[i] instanceof Namespace && (found = this._nestedArray[i]._lookupImpl(path, flatPath)))\n exact = found;\n }\n\n // Set this even when null, so that when we walk up the tree we can quickly bail on repeated checks back down.\n this._lookupCache[flatPath] = exact;\n return exact;\n};\n\n/**\n * Looks up the reflection object at the specified path, relative to this namespace.\n * @name NamespaceBase#lookup\n * @function\n * @param {string|string[]} path Path to look up\n * @param {boolean} [parentAlreadyChecked=false] Whether the parent has already been checked\n * @returns {ReflectionObject|null} Looked up object or `null` if none could be found\n * @variation 2\n */\n// lookup(path: string, [parentAlreadyChecked: boolean])\n\n/**\n * Looks up the {@link Type|type} at the specified path, relative to this namespace.\n * Besides its signature, this methods differs from {@link Namespace#lookup|lookup} in that it throws instead of returning `null`.\n * @param {string|string[]} path Path to look up\n * @returns {Type} Looked up type\n * @throws {Error} If `path` does not point to a type\n */\nNamespace.prototype.lookupType = function lookupType(path) {\n var found = this.lookup(path, [ Type ]);\n if (!found)\n throw Error(\"no such type: \" + path);\n return found;\n};\n\n/**\n * Looks up the values of the {@link Enum|enum} at the specified path, relative to this namespace.\n * Besides its signature, this methods differs from {@link Namespace#lookup|lookup} in that it throws instead of returning `null`.\n * @param {string|string[]} path Path to look up\n * @returns {Enum} Looked up enum\n * @throws {Error} If `path` does not point to an enum\n */\nNamespace.prototype.lookupEnum = function lookupEnum(path) {\n var found = this.lookup(path, [ Enum ]);\n if (!found)\n throw Error(\"no such Enum '\" + path + \"' in \" + this);\n return found;\n};\n\n/**\n * Looks up the {@link Type|type} or {@link Enum|enum} at the specified path, relative to this namespace.\n * Besides its signature, this methods differs from {@link Namespace#lookup|lookup} in that it throws instead of returning `null`.\n * @param {string|string[]} path Path to look up\n * @returns {Type} Looked up type or enum\n * @throws {Error} If `path` does not point to a type or enum\n */\nNamespace.prototype.lookupTypeOrEnum = function lookupTypeOrEnum(path) {\n var found = this.lookup(path, [ Type, Enum ]);\n if (!found)\n throw Error(\"no such Type or Enum '\" + path + \"' in \" + this);\n return found;\n};\n\n/**\n * Looks up the {@link Service|service} at the specified path, relative to this namespace.\n * Besides its signature, this methods differs from {@link Namespace#lookup|lookup} in that it throws instead of returning `null`.\n * @param {string|string[]} path Path to look up\n * @returns {Service} Looked up service\n * @throws {Error} If `path` does not point to a service\n */\nNamespace.prototype.lookupService = function lookupService(path) {\n var found = this.lookup(path, [ Service ]);\n if (!found)\n throw Error(\"no such Service '\" + path + \"' in \" + this);\n return found;\n};\n\n// Sets up cyclic dependencies (called in index-light)\nNamespace._configure = function(Type_, Service_, Enum_) {\n Type = Type_;\n Service = Service_;\n Enum = Enum_;\n};\n","\"use strict\";\nmodule.exports = ReflectionObject;\n\nReflectionObject.className = \"ReflectionObject\";\n\nconst OneOf = require(\"./oneof\");\nvar util = require(\"./util\");\n\nvar Root; // cyclic\n\n/* eslint-disable no-warning-comments */\n// TODO: Replace with embedded proto.\nvar editions2023Defaults = {enum_type: \"OPEN\", field_presence: \"EXPLICIT\", json_format: \"ALLOW\", message_encoding: \"LENGTH_PREFIXED\", repeated_field_encoding: \"PACKED\", utf8_validation: \"VERIFY\"};\nvar proto2Defaults = {enum_type: \"CLOSED\", field_presence: \"EXPLICIT\", json_format: \"LEGACY_BEST_EFFORT\", message_encoding: \"LENGTH_PREFIXED\", repeated_field_encoding: \"EXPANDED\", utf8_validation: \"NONE\"};\nvar proto3Defaults = {enum_type: \"OPEN\", field_presence: \"IMPLICIT\", json_format: \"ALLOW\", message_encoding: \"LENGTH_PREFIXED\", repeated_field_encoding: \"PACKED\", utf8_validation: \"VERIFY\"};\n\n/**\n * Constructs a new reflection object instance.\n * @classdesc Base class of all reflection objects.\n * @constructor\n * @param {string} name Object name\n * @param {Object.} [options] Declared options\n * @abstract\n */\nfunction ReflectionObject(name, options) {\n\n if (!util.isString(name))\n throw TypeError(\"name must be a string\");\n\n if (options && !util.isObject(options))\n throw TypeError(\"options must be an object\");\n\n /**\n * Options.\n * @type {Object.|undefined}\n */\n this.options = options; // toJSON\n\n /**\n * Parsed Options.\n * @type {Array.>|undefined}\n */\n this.parsedOptions = null;\n\n /**\n * Unique name within its namespace.\n * @type {string}\n */\n this.name = name;\n\n /**\n * The edition specified for this object. Only relevant for top-level objects.\n * @type {string}\n * @private\n */\n this._edition = null;\n\n /**\n * The default edition to use for this object if none is specified. For legacy reasons,\n * this is proto2 except in the JSON parsing case where it was proto3.\n * @type {string}\n * @private\n */\n this._defaultEdition = \"proto2\";\n\n /**\n * Resolved Features.\n * @type {object}\n * @private\n */\n this._features = {};\n\n /**\n * Whether or not features have been resolved.\n * @type {boolean}\n * @private\n */\n this._featuresResolved = false;\n\n /**\n * Parent namespace.\n * @type {Namespace|null}\n */\n this.parent = null;\n\n /**\n * Whether already resolved or not.\n * @type {boolean}\n */\n this.resolved = false;\n\n /**\n * Comment text, if any.\n * @type {string|null}\n */\n this.comment = null;\n\n /**\n * Defining file name.\n * @type {string|null}\n */\n this.filename = null;\n}\n\nObject.defineProperties(ReflectionObject.prototype, {\n\n /**\n * Reference to the root namespace.\n * @name ReflectionObject#root\n * @type {Root}\n * @readonly\n */\n root: {\n get: function() {\n var ptr = this;\n while (ptr.parent !== null)\n ptr = ptr.parent;\n return ptr;\n }\n },\n\n /**\n * Full name including leading dot.\n * @name ReflectionObject#fullName\n * @type {string}\n * @readonly\n */\n fullName: {\n get: function() {\n var path = [ this.name ],\n ptr = this.parent;\n while (ptr) {\n path.unshift(ptr.name);\n ptr = ptr.parent;\n }\n return path.join(\".\");\n }\n }\n});\n\n/**\n * Converts this reflection object to its descriptor representation.\n * @returns {Object.} Descriptor\n * @abstract\n */\nReflectionObject.prototype.toJSON = /* istanbul ignore next */ function toJSON() {\n throw Error(); // not implemented, shouldn't happen\n};\n\n/**\n * Called when this object is added to a parent.\n * @param {ReflectionObject} parent Parent added to\n * @returns {undefined}\n */\nReflectionObject.prototype.onAdd = function onAdd(parent) {\n if (this.parent && this.parent !== parent)\n this.parent.remove(this);\n this.parent = parent;\n this.resolved = false;\n var root = parent.root;\n if (root instanceof Root)\n root._handleAdd(this);\n};\n\n/**\n * Called when this object is removed from a parent.\n * @param {ReflectionObject} parent Parent removed from\n * @returns {undefined}\n */\nReflectionObject.prototype.onRemove = function onRemove(parent) {\n var root = parent.root;\n if (root instanceof Root)\n root._handleRemove(this);\n this.parent = null;\n this.resolved = false;\n};\n\n/**\n * Resolves this objects type references.\n * @returns {ReflectionObject} `this`\n */\nReflectionObject.prototype.resolve = function resolve() {\n if (this.resolved)\n return this;\n if (this.root instanceof Root)\n this.resolved = true; // only if part of a root\n return this;\n};\n\n/**\n * Resolves this objects editions features.\n * @param {string} edition The edition we're currently resolving for.\n * @returns {ReflectionObject} `this`\n */\nReflectionObject.prototype._resolveFeaturesRecursive = function _resolveFeaturesRecursive(edition) {\n return this._resolveFeatures(this._edition || edition);\n};\n\n/**\n * Resolves child features from parent features\n * @param {string} edition The edition we're currently resolving for.\n * @returns {undefined}\n */\nReflectionObject.prototype._resolveFeatures = function _resolveFeatures(edition) {\n if (this._featuresResolved) {\n return;\n }\n\n var defaults = {};\n\n /* istanbul ignore if */\n if (!edition) {\n throw new Error(\"Unknown edition for \" + this.fullName);\n }\n\n var protoFeatures = Object.assign(this.options ? Object.assign({}, this.options.features) : {},\n this._inferLegacyProtoFeatures(edition));\n\n if (this._edition) {\n // For a namespace marked with a specific edition, reset defaults.\n /* istanbul ignore else */\n if (edition === \"proto2\") {\n defaults = Object.assign({}, proto2Defaults);\n } else if (edition === \"proto3\") {\n defaults = Object.assign({}, proto3Defaults);\n } else if (edition === \"2023\") {\n defaults = Object.assign({}, editions2023Defaults);\n } else {\n throw new Error(\"Unknown edition: \" + edition);\n }\n this._features = Object.assign(defaults, protoFeatures || {});\n this._featuresResolved = true;\n return;\n }\n\n // fields in Oneofs aren't actually children of them, so we have to\n // special-case it\n /* istanbul ignore else */\n if (this.partOf instanceof OneOf) {\n var lexicalParentFeaturesCopy = Object.assign({}, this.partOf._features);\n this._features = Object.assign(lexicalParentFeaturesCopy, protoFeatures || {});\n } else if (this.declaringField) {\n // Skip feature resolution of sister fields.\n } else if (this.parent) {\n var parentFeaturesCopy = Object.assign({}, this.parent._features);\n this._features = Object.assign(parentFeaturesCopy, protoFeatures || {});\n } else {\n throw new Error(\"Unable to find a parent for \" + this.fullName);\n }\n if (this.extensionField) {\n // Sister fields should have the same features as their extensions.\n this.extensionField._features = this._features;\n }\n this._featuresResolved = true;\n};\n\n/**\n * Infers features from legacy syntax that may have been specified differently.\n * in older editions.\n * @param {string|undefined} edition The edition this proto is on, or undefined if pre-editions\n * @returns {object} The feature values to override\n */\nReflectionObject.prototype._inferLegacyProtoFeatures = function _inferLegacyProtoFeatures(/*edition*/) {\n return {};\n};\n\n/**\n * Gets an option value.\n * @param {string} name Option name\n * @returns {*} Option value or `undefined` if not set\n */\nReflectionObject.prototype.getOption = function getOption(name) {\n if (this.options)\n return this.options[name];\n return undefined;\n};\n\n/**\n * Sets an option.\n * @param {string} name Option name\n * @param {*} value Option value\n * @param {boolean|undefined} [ifNotSet] Sets the option only if it isn't currently set\n * @returns {ReflectionObject} `this`\n */\nReflectionObject.prototype.setOption = function setOption(name, value, ifNotSet) {\n if (!this.options)\n this.options = {};\n if (/^features\\./.test(name)) {\n util.setProperty(this.options, name, value, ifNotSet);\n } else if (!ifNotSet || this.options[name] === undefined) {\n if (this.getOption(name) !== value) this.resolved = false;\n this.options[name] = value;\n }\n\n return this;\n};\n\n/**\n * Sets a parsed option.\n * @param {string} name parsed Option name\n * @param {*} value Option value\n * @param {string} propName dot '.' delimited full path of property within the option to set. if undefined\\empty, will add a new option with that value\n * @returns {ReflectionObject} `this`\n */\nReflectionObject.prototype.setParsedOption = function setParsedOption(name, value, propName) {\n if (!this.parsedOptions) {\n this.parsedOptions = [];\n }\n var parsedOptions = this.parsedOptions;\n if (propName) {\n // If setting a sub property of an option then try to merge it\n // with an existing option\n var opt = parsedOptions.find(function (opt) {\n return Object.prototype.hasOwnProperty.call(opt, name);\n });\n if (opt) {\n // If we found an existing option - just merge the property value\n // (If it's a feature, will just write over)\n var newValue = opt[name];\n util.setProperty(newValue, propName, value);\n } else {\n // otherwise, create a new option, set its property and add it to the list\n opt = {};\n opt[name] = util.setProperty({}, propName, value);\n parsedOptions.push(opt);\n }\n } else {\n // Always create a new option when setting the value of the option itself\n var newOpt = {};\n newOpt[name] = value;\n parsedOptions.push(newOpt);\n }\n\n return this;\n};\n\n/**\n * Sets multiple options.\n * @param {Object.} options Options to set\n * @param {boolean} [ifNotSet] Sets an option only if it isn't currently set\n * @returns {ReflectionObject} `this`\n */\nReflectionObject.prototype.setOptions = function setOptions(options, ifNotSet) {\n if (options)\n for (var keys = Object.keys(options), i = 0; i < keys.length; ++i)\n this.setOption(keys[i], options[keys[i]], ifNotSet);\n return this;\n};\n\n/**\n * Converts this instance to its string representation.\n * @returns {string} Class name[, space, full name]\n */\nReflectionObject.prototype.toString = function toString() {\n var className = this.constructor.className,\n fullName = this.fullName;\n if (fullName.length)\n return className + \" \" + fullName;\n return className;\n};\n\n/**\n * Converts the edition this object is pinned to for JSON format.\n * @returns {string|undefined} The edition string for JSON representation\n */\nReflectionObject.prototype._editionToJSON = function _editionToJSON() {\n if (!this._edition || this._edition === \"proto3\") {\n // Avoid emitting proto3 since we need to default to it for backwards\n // compatibility anyway.\n return undefined;\n }\n return this._edition;\n};\n\n// Sets up cyclic dependencies (called in index-light)\nReflectionObject._configure = function(Root_) {\n Root = Root_;\n};\n","\"use strict\";\nmodule.exports = OneOf;\n\n// extends ReflectionObject\nvar ReflectionObject = require(\"./object\");\n((OneOf.prototype = Object.create(ReflectionObject.prototype)).constructor = OneOf).className = \"OneOf\";\n\nvar Field = require(\"./field\"),\n util = require(\"./util\");\n\n/**\n * Constructs a new oneof instance.\n * @classdesc Reflected oneof.\n * @extends ReflectionObject\n * @constructor\n * @param {string} name Oneof name\n * @param {string[]|Object.} [fieldNames] Field names\n * @param {Object.} [options] Declared options\n * @param {string} [comment] Comment associated with this field\n */\nfunction OneOf(name, fieldNames, options, comment) {\n if (!Array.isArray(fieldNames)) {\n options = fieldNames;\n fieldNames = undefined;\n }\n ReflectionObject.call(this, name, options);\n\n /* istanbul ignore if */\n if (!(fieldNames === undefined || Array.isArray(fieldNames)))\n throw TypeError(\"fieldNames must be an Array\");\n\n /**\n * Field names that belong to this oneof.\n * @type {string[]}\n */\n this.oneof = fieldNames || []; // toJSON, marker\n\n /**\n * Fields that belong to this oneof as an array for iteration.\n * @type {Field[]}\n * @readonly\n */\n this.fieldsArray = []; // declared readonly for conformance, possibly not yet added to parent\n\n /**\n * Comment for this field.\n * @type {string|null}\n */\n this.comment = comment;\n}\n\n/**\n * Oneof descriptor.\n * @interface IOneOf\n * @property {Array.} oneof Oneof field names\n * @property {Object.} [options] Oneof options\n */\n\n/**\n * Constructs a oneof from a oneof descriptor.\n * @param {string} name Oneof name\n * @param {IOneOf} json Oneof descriptor\n * @returns {OneOf} Created oneof\n * @throws {TypeError} If arguments are invalid\n */\nOneOf.fromJSON = function fromJSON(name, json) {\n return new OneOf(name, json.oneof, json.options, json.comment);\n};\n\n/**\n * Converts this oneof to a oneof descriptor.\n * @param {IToJSONOptions} [toJSONOptions] JSON conversion options\n * @returns {IOneOf} Oneof descriptor\n */\nOneOf.prototype.toJSON = function toJSON(toJSONOptions) {\n var keepComments = toJSONOptions ? Boolean(toJSONOptions.keepComments) : false;\n return util.toObject([\n \"options\" , this.options,\n \"oneof\" , this.oneof,\n \"comment\" , keepComments ? this.comment : undefined\n ]);\n};\n\n/**\n * Adds the fields of the specified oneof to the parent if not already done so.\n * @param {OneOf} oneof The oneof\n * @returns {undefined}\n * @inner\n * @ignore\n */\nfunction addFieldsToParent(oneof) {\n if (oneof.parent)\n for (var i = 0; i < oneof.fieldsArray.length; ++i)\n if (!oneof.fieldsArray[i].parent)\n oneof.parent.add(oneof.fieldsArray[i]);\n}\n\n/**\n * Adds a field to this oneof and removes it from its current parent, if any.\n * @param {Field} field Field to add\n * @returns {OneOf} `this`\n */\nOneOf.prototype.add = function add(field) {\n\n /* istanbul ignore if */\n if (!(field instanceof Field))\n throw TypeError(\"field must be a Field\");\n\n if (field.parent && field.parent !== this.parent)\n field.parent.remove(field);\n this.oneof.push(field.name);\n this.fieldsArray.push(field);\n field.partOf = this; // field.parent remains null\n addFieldsToParent(this);\n return this;\n};\n\n/**\n * Removes a field from this oneof and puts it back to the oneof's parent.\n * @param {Field} field Field to remove\n * @returns {OneOf} `this`\n */\nOneOf.prototype.remove = function remove(field) {\n\n /* istanbul ignore if */\n if (!(field instanceof Field))\n throw TypeError(\"field must be a Field\");\n\n var index = this.fieldsArray.indexOf(field);\n\n /* istanbul ignore if */\n if (index < 0)\n throw Error(field + \" is not a member of \" + this);\n\n this.fieldsArray.splice(index, 1);\n index = this.oneof.indexOf(field.name);\n\n /* istanbul ignore else */\n if (index > -1) // theoretical\n this.oneof.splice(index, 1);\n\n field.partOf = null;\n return this;\n};\n\n/**\n * @override\n */\nOneOf.prototype.onAdd = function onAdd(parent) {\n ReflectionObject.prototype.onAdd.call(this, parent);\n var self = this;\n // Collect present fields\n for (var i = 0; i < this.oneof.length; ++i) {\n var field = parent.get(this.oneof[i]);\n if (field && !field.partOf) {\n field.partOf = self;\n self.fieldsArray.push(field);\n }\n }\n // Add not yet present fields\n addFieldsToParent(this);\n};\n\n/**\n * @override\n */\nOneOf.prototype.onRemove = function onRemove(parent) {\n for (var i = 0, field; i < this.fieldsArray.length; ++i)\n if ((field = this.fieldsArray[i]).parent)\n field.parent.remove(field);\n ReflectionObject.prototype.onRemove.call(this, parent);\n};\n\n/**\n * Determines whether this field corresponds to a synthetic oneof created for\n * a proto3 optional field. No behavioral logic should depend on this, but it\n * can be relevant for reflection.\n * @name OneOf#isProto3Optional\n * @type {boolean}\n * @readonly\n */\nObject.defineProperty(OneOf.prototype, \"isProto3Optional\", {\n get: function() {\n if (this.fieldsArray == null || this.fieldsArray.length !== 1) {\n return false;\n }\n\n var field = this.fieldsArray[0];\n return field.options != null && field.options[\"proto3_optional\"] === true;\n }\n});\n\n/**\n * Decorator function as returned by {@link OneOf.d} (TypeScript).\n * @typedef OneOfDecorator\n * @type {function}\n * @param {Object} prototype Target prototype\n * @param {string} oneofName OneOf name\n * @returns {undefined}\n */\n\n/**\n * OneOf decorator (TypeScript).\n * @function\n * @param {...string} fieldNames Field names\n * @returns {OneOfDecorator} Decorator function\n * @template T extends string\n */\nOneOf.d = function decorateOneOf() {\n var fieldNames = new Array(arguments.length),\n index = 0;\n while (index < arguments.length)\n fieldNames[index] = arguments[index++];\n return function oneOfDecorator(prototype, oneofName) {\n util.decorateType(prototype.constructor)\n .add(new OneOf(oneofName, fieldNames));\n Object.defineProperty(prototype, oneofName, {\n get: util.oneOfGetter(fieldNames),\n set: util.oneOfSetter(fieldNames)\n });\n };\n};\n","\"use strict\";\nmodule.exports = parse;\n\nparse.filename = null;\nparse.defaults = { keepCase: false };\n\nvar tokenize = require(\"./tokenize\"),\n Root = require(\"./root\"),\n Type = require(\"./type\"),\n Field = require(\"./field\"),\n MapField = require(\"./mapfield\"),\n OneOf = require(\"./oneof\"),\n Enum = require(\"./enum\"),\n Service = require(\"./service\"),\n Method = require(\"./method\"),\n ReflectionObject = require(\"./object\"),\n types = require(\"./types\"),\n util = require(\"./util\");\n\nvar base10Re = /^[1-9][0-9]*$/,\n base10NegRe = /^-?[1-9][0-9]*$/,\n base16Re = /^0[x][0-9a-fA-F]+$/,\n base16NegRe = /^-?0[x][0-9a-fA-F]+$/,\n base8Re = /^0[0-7]+$/,\n base8NegRe = /^-?0[0-7]+$/,\n numberRe = /^(?![eE])[0-9]*(?:\\.[0-9]*)?(?:[eE][+-]?[0-9]+)?$/,\n nameRe = /^[a-zA-Z_][a-zA-Z_0-9]*$/,\n typeRefRe = /^(?:\\.?[a-zA-Z_][a-zA-Z_0-9]*)(?:\\.[a-zA-Z_][a-zA-Z_0-9]*)*$/;\n\n/**\n * Result object returned from {@link parse}.\n * @interface IParserResult\n * @property {string|undefined} package Package name, if declared\n * @property {string[]|undefined} imports Imports, if any\n * @property {string[]|undefined} weakImports Weak imports, if any\n * @property {Root} root Populated root instance\n */\n\n/**\n * Options modifying the behavior of {@link parse}.\n * @interface IParseOptions\n * @property {boolean} [keepCase=false] Keeps field casing instead of converting to camel case\n * @property {boolean} [alternateCommentMode=false] Recognize double-slash comments in addition to doc-block comments.\n * @property {boolean} [preferTrailingComment=false] Use trailing comment when both leading comment and trailing comment exist.\n */\n\n/**\n * Options modifying the behavior of JSON serialization.\n * @interface IToJSONOptions\n * @property {boolean} [keepComments=false] Serializes comments.\n */\n\n/**\n * Parses the given .proto source and returns an object with the parsed contents.\n * @param {string} source Source contents\n * @param {Root} root Root to populate\n * @param {IParseOptions} [options] Parse options. Defaults to {@link parse.defaults} when omitted.\n * @returns {IParserResult} Parser result\n * @property {string} filename=null Currently processing file name for error reporting, if known\n * @property {IParseOptions} defaults Default {@link IParseOptions}\n */\nfunction parse(source, root, options) {\n /* eslint-disable callback-return */\n if (!(root instanceof Root)) {\n options = root;\n root = new Root();\n }\n if (!options)\n options = parse.defaults;\n\n var preferTrailingComment = options.preferTrailingComment || false;\n var tn = tokenize(source, options.alternateCommentMode || false),\n next = tn.next,\n push = tn.push,\n peek = tn.peek,\n skip = tn.skip,\n cmnt = tn.cmnt;\n\n var head = true,\n pkg,\n imports,\n weakImports,\n edition = \"proto2\";\n\n var ptr = root;\n\n var topLevelObjects = [];\n var topLevelOptions = {};\n\n var applyCase = options.keepCase ? function(name) { return name; } : util.camelCase;\n\n function resolveFileFeatures() {\n topLevelObjects.forEach(obj => {\n obj._edition = edition;\n Object.keys(topLevelOptions).forEach(opt => {\n if (obj.getOption(opt) !== undefined) return;\n obj.setOption(opt, topLevelOptions[opt], true);\n });\n });\n }\n\n /* istanbul ignore next */\n function illegal(token, name, insideTryCatch) {\n var filename = parse.filename;\n if (!insideTryCatch)\n parse.filename = null;\n return Error(\"illegal \" + (name || \"token\") + \" '\" + token + \"' (\" + (filename ? filename + \", \" : \"\") + \"line \" + tn.line + \")\");\n }\n\n function readString() {\n var values = [],\n token;\n do {\n /* istanbul ignore if */\n if ((token = next()) !== \"\\\"\" && token !== \"'\")\n throw illegal(token);\n\n values.push(next());\n skip(token);\n token = peek();\n } while (token === \"\\\"\" || token === \"'\");\n return values.join(\"\");\n }\n\n function readValue(acceptTypeRef) {\n var token = next();\n switch (token) {\n case \"'\":\n case \"\\\"\":\n push(token);\n return readString();\n case \"true\": case \"TRUE\":\n return true;\n case \"false\": case \"FALSE\":\n return false;\n }\n try {\n return parseNumber(token, /* insideTryCatch */ true);\n } catch (e) {\n /* istanbul ignore else */\n if (acceptTypeRef && typeRefRe.test(token))\n return token;\n\n /* istanbul ignore next */\n throw illegal(token, \"value\");\n }\n }\n\n function readRanges(target, acceptStrings) {\n var token, start;\n do {\n if (acceptStrings && ((token = peek()) === \"\\\"\" || token === \"'\")) {\n var str = readString();\n target.push(str);\n if (edition >= 2023) {\n throw illegal(str, \"id\");\n }\n } else {\n try {\n target.push([ start = parseId(next()), skip(\"to\", true) ? parseId(next()) : start ]);\n } catch (err) {\n if (acceptStrings && typeRefRe.test(token) && edition >= 2023) {\n target.push(token);\n } else {\n throw err;\n }\n }\n }\n } while (skip(\",\", true));\n var dummy = {options: undefined};\n dummy.setOption = function(name, value) {\n if (this.options === undefined) this.options = {};\n this.options[name] = value;\n };\n ifBlock(\n dummy,\n function parseRange_block(token) {\n /* istanbul ignore else */\n if (token === \"option\") {\n parseOption(dummy, token); // skip\n skip(\";\");\n } else\n throw illegal(token);\n },\n function parseRange_line() {\n parseInlineOptions(dummy); // skip\n });\n }\n\n function parseNumber(token, insideTryCatch) {\n var sign = 1;\n if (token.charAt(0) === \"-\") {\n sign = -1;\n token = token.substring(1);\n }\n switch (token) {\n case \"inf\": case \"INF\": case \"Inf\":\n return sign * Infinity;\n case \"nan\": case \"NAN\": case \"Nan\": case \"NaN\":\n return NaN;\n case \"0\":\n return 0;\n }\n if (base10Re.test(token))\n return sign * parseInt(token, 10);\n if (base16Re.test(token))\n return sign * parseInt(token, 16);\n if (base8Re.test(token))\n return sign * parseInt(token, 8);\n\n /* istanbul ignore else */\n if (numberRe.test(token))\n return sign * parseFloat(token);\n\n /* istanbul ignore next */\n throw illegal(token, \"number\", insideTryCatch);\n }\n\n function parseId(token, acceptNegative) {\n switch (token) {\n case \"max\": case \"MAX\": case \"Max\":\n return 536870911;\n case \"0\":\n return 0;\n }\n\n /* istanbul ignore if */\n if (!acceptNegative && token.charAt(0) === \"-\")\n throw illegal(token, \"id\");\n\n if (base10NegRe.test(token))\n return parseInt(token, 10);\n if (base16NegRe.test(token))\n return parseInt(token, 16);\n\n /* istanbul ignore else */\n if (base8NegRe.test(token))\n return parseInt(token, 8);\n\n /* istanbul ignore next */\n throw illegal(token, \"id\");\n }\n\n function parsePackage() {\n /* istanbul ignore if */\n if (pkg !== undefined)\n throw illegal(\"package\");\n\n pkg = next();\n\n /* istanbul ignore if */\n if (!typeRefRe.test(pkg))\n throw illegal(pkg, \"name\");\n\n ptr = ptr.define(pkg);\n\n skip(\";\");\n }\n\n function parseImport() {\n var token = peek();\n var whichImports;\n switch (token) {\n case \"weak\":\n whichImports = weakImports || (weakImports = []);\n next();\n break;\n case \"public\":\n next();\n // eslint-disable-next-line no-fallthrough\n default:\n whichImports = imports || (imports = []);\n break;\n }\n token = readString();\n skip(\";\");\n whichImports.push(token);\n }\n\n function parseSyntax() {\n skip(\"=\");\n edition = readString();\n\n /* istanbul ignore if */\n if (edition < 2023)\n throw illegal(edition, \"syntax\");\n\n skip(\";\");\n }\n\n function parseEdition() {\n skip(\"=\");\n edition = readString();\n const supportedEditions = [\"2023\"];\n\n /* istanbul ignore if */\n if (!supportedEditions.includes(edition))\n throw illegal(edition, \"edition\");\n\n skip(\";\");\n }\n\n\n function parseCommon(parent, token) {\n switch (token) {\n\n case \"option\":\n parseOption(parent, token);\n skip(\";\");\n return true;\n\n case \"message\":\n parseType(parent, token);\n return true;\n\n case \"enum\":\n parseEnum(parent, token);\n return true;\n\n case \"service\":\n parseService(parent, token);\n return true;\n\n case \"extend\":\n parseExtension(parent, token);\n return true;\n }\n return false;\n }\n\n function ifBlock(obj, fnIf, fnElse) {\n var trailingLine = tn.line;\n if (obj) {\n if(typeof obj.comment !== \"string\") {\n obj.comment = cmnt(); // try block-type comment\n }\n obj.filename = parse.filename;\n }\n if (skip(\"{\", true)) {\n var token;\n while ((token = next()) !== \"}\")\n fnIf(token);\n skip(\";\", true);\n } else {\n if (fnElse)\n fnElse();\n skip(\";\");\n if (obj && (typeof obj.comment !== \"string\" || preferTrailingComment))\n obj.comment = cmnt(trailingLine) || obj.comment; // try line-type comment\n }\n }\n\n function parseType(parent, token) {\n\n /* istanbul ignore if */\n if (!nameRe.test(token = next()))\n throw illegal(token, \"type name\");\n\n var type = new Type(token);\n ifBlock(type, function parseType_block(token) {\n if (parseCommon(type, token))\n return;\n\n switch (token) {\n\n case \"map\":\n parseMapField(type, token);\n break;\n\n case \"required\":\n if (edition !== \"proto2\")\n throw illegal(token);\n /* eslint-disable no-fallthrough */\n case \"repeated\":\n parseField(type, token);\n break;\n\n case \"optional\":\n /* istanbul ignore if */\n if (edition === \"proto3\") {\n parseField(type, \"proto3_optional\");\n } else if (edition !== \"proto2\") {\n throw illegal(token);\n } else {\n parseField(type, \"optional\");\n }\n break;\n\n case \"oneof\":\n parseOneOf(type, token);\n break;\n\n case \"extensions\":\n readRanges(type.extensions || (type.extensions = []));\n break;\n\n case \"reserved\":\n readRanges(type.reserved || (type.reserved = []), true);\n break;\n\n default:\n /* istanbul ignore if */\n if (edition === \"proto2\" || !typeRefRe.test(token)) {\n throw illegal(token);\n }\n\n push(token);\n parseField(type, \"optional\");\n break;\n }\n });\n parent.add(type);\n if (parent === ptr) {\n topLevelObjects.push(type);\n }\n }\n\n function parseField(parent, rule, extend) {\n var type = next();\n if (type === \"group\") {\n parseGroup(parent, rule);\n return;\n }\n // Type names can consume multiple tokens, in multiple variants:\n // package.subpackage field tokens: \"package.subpackage\" [TYPE NAME ENDS HERE] \"field\"\n // package . subpackage field tokens: \"package\" \".\" \"subpackage\" [TYPE NAME ENDS HERE] \"field\"\n // package. subpackage field tokens: \"package.\" \"subpackage\" [TYPE NAME ENDS HERE] \"field\"\n // package .subpackage field tokens: \"package\" \".subpackage\" [TYPE NAME ENDS HERE] \"field\"\n // Keep reading tokens until we get a type name with no period at the end,\n // and the next token does not start with a period.\n while (type.endsWith(\".\") || peek().startsWith(\".\")) {\n type += next();\n }\n\n /* istanbul ignore if */\n if (!typeRefRe.test(type))\n throw illegal(type, \"type\");\n\n var name = next();\n\n /* istanbul ignore if */\n\n if (!nameRe.test(name))\n throw illegal(name, \"name\");\n\n name = applyCase(name);\n skip(\"=\");\n\n var field = new Field(name, parseId(next()), type, rule, extend);\n\n ifBlock(field, function parseField_block(token) {\n\n /* istanbul ignore else */\n if (token === \"option\") {\n parseOption(field, token);\n skip(\";\");\n } else\n throw illegal(token);\n\n }, function parseField_line() {\n parseInlineOptions(field);\n });\n\n if (rule === \"proto3_optional\") {\n // for proto3 optional fields, we create a single-member Oneof to mimic \"optional\" behavior\n var oneof = new OneOf(\"_\" + name);\n field.setOption(\"proto3_optional\", true);\n oneof.add(field);\n parent.add(oneof);\n } else {\n parent.add(field);\n }\n if (parent === ptr) {\n topLevelObjects.push(field);\n }\n }\n\n function parseGroup(parent, rule) {\n if (edition >= 2023) {\n throw illegal(\"group\");\n }\n var name = next();\n\n /* istanbul ignore if */\n if (!nameRe.test(name))\n throw illegal(name, \"name\");\n\n var fieldName = util.lcFirst(name);\n if (name === fieldName)\n name = util.ucFirst(name);\n skip(\"=\");\n var id = parseId(next());\n var type = new Type(name);\n type.group = true;\n var field = new Field(fieldName, id, name, rule);\n field.filename = parse.filename;\n ifBlock(type, function parseGroup_block(token) {\n switch (token) {\n\n case \"option\":\n parseOption(type, token);\n skip(\";\");\n break;\n case \"required\":\n case \"repeated\":\n parseField(type, token);\n break;\n\n case \"optional\":\n /* istanbul ignore if */\n if (edition === \"proto3\") {\n parseField(type, \"proto3_optional\");\n } else {\n parseField(type, \"optional\");\n }\n break;\n\n case \"message\":\n parseType(type, token);\n break;\n\n case \"enum\":\n parseEnum(type, token);\n break;\n\n case \"reserved\":\n readRanges(type.reserved || (type.reserved = []), true);\n break;\n\n /* istanbul ignore next */\n default:\n throw illegal(token); // there are no groups with proto3 semantics\n }\n });\n parent.add(type)\n .add(field);\n }\n\n function parseMapField(parent) {\n skip(\"<\");\n var keyType = next();\n\n /* istanbul ignore if */\n if (types.mapKey[keyType] === undefined)\n throw illegal(keyType, \"type\");\n\n skip(\",\");\n var valueType = next();\n\n /* istanbul ignore if */\n if (!typeRefRe.test(valueType))\n throw illegal(valueType, \"type\");\n\n skip(\">\");\n var name = next();\n\n /* istanbul ignore if */\n if (!nameRe.test(name))\n throw illegal(name, \"name\");\n\n skip(\"=\");\n var field = new MapField(applyCase(name), parseId(next()), keyType, valueType);\n ifBlock(field, function parseMapField_block(token) {\n\n /* istanbul ignore else */\n if (token === \"option\") {\n parseOption(field, token);\n skip(\";\");\n } else\n throw illegal(token);\n\n }, function parseMapField_line() {\n parseInlineOptions(field);\n });\n parent.add(field);\n }\n\n function parseOneOf(parent, token) {\n\n /* istanbul ignore if */\n if (!nameRe.test(token = next()))\n throw illegal(token, \"name\");\n\n var oneof = new OneOf(applyCase(token));\n ifBlock(oneof, function parseOneOf_block(token) {\n if (token === \"option\") {\n parseOption(oneof, token);\n skip(\";\");\n } else {\n push(token);\n parseField(oneof, \"optional\");\n }\n });\n parent.add(oneof);\n }\n\n function parseEnum(parent, token) {\n\n /* istanbul ignore if */\n if (!nameRe.test(token = next()))\n throw illegal(token, \"name\");\n\n var enm = new Enum(token);\n ifBlock(enm, function parseEnum_block(token) {\n switch(token) {\n case \"option\":\n parseOption(enm, token);\n skip(\";\");\n break;\n\n case \"reserved\":\n readRanges(enm.reserved || (enm.reserved = []), true);\n if(enm.reserved === undefined) enm.reserved = [];\n break;\n\n default:\n parseEnumValue(enm, token);\n }\n });\n parent.add(enm);\n if (parent === ptr) {\n topLevelObjects.push(enm);\n }\n }\n\n function parseEnumValue(parent, token) {\n\n /* istanbul ignore if */\n if (!nameRe.test(token))\n throw illegal(token, \"name\");\n\n skip(\"=\");\n var value = parseId(next(), true),\n dummy = {\n options: undefined\n };\n dummy.getOption = function(name) {\n return this.options[name];\n };\n dummy.setOption = function(name, value) {\n ReflectionObject.prototype.setOption.call(dummy, name, value);\n };\n dummy.setParsedOption = function() {\n return undefined;\n };\n ifBlock(dummy, function parseEnumValue_block(token) {\n\n /* istanbul ignore else */\n if (token === \"option\") {\n parseOption(dummy, token); // skip\n skip(\";\");\n } else\n throw illegal(token);\n\n }, function parseEnumValue_line() {\n parseInlineOptions(dummy); // skip\n });\n parent.add(token, value, dummy.comment, dummy.parsedOptions || dummy.options);\n }\n\n function parseOption(parent, token) {\n var option;\n var propName;\n var isOption = true;\n if (token === \"option\") {\n token = next();\n }\n\n while (token !== \"=\") {\n if (token === \"(\") {\n var parensValue = next();\n skip(\")\");\n token = \"(\" + parensValue + \")\";\n }\n if (isOption) {\n isOption = false;\n if (token.includes(\".\") && !token.includes(\"(\")) {\n var tokens = token.split(\".\");\n option = tokens[0] + \".\";\n token = tokens[1];\n continue;\n }\n option = token;\n } else {\n propName = propName ? propName += token : token;\n }\n token = next();\n }\n var name = propName ? option.concat(propName) : option;\n var optionValue = parseOptionValue(parent, name);\n propName = propName && propName[0] === \".\" ? propName.slice(1) : propName;\n option = option && option[option.length - 1] === \".\" ? option.slice(0, -1) : option;\n setParsedOption(parent, option, optionValue, propName);\n }\n\n function parseOptionValue(parent, name) {\n // { a: \"foo\" b { c: \"bar\" } }\n if (skip(\"{\", true)) {\n var objectResult = {};\n\n while (!skip(\"}\", true)) {\n /* istanbul ignore if */\n if (!nameRe.test(token = next())) {\n throw illegal(token, \"name\");\n }\n if (token === null) {\n throw illegal(token, \"end of input\");\n }\n\n var value;\n var propName = token;\n\n skip(\":\", true);\n\n if (peek() === \"{\") {\n // option (my_option) = {\n // repeated_value: [ \"foo\", \"bar\" ]\n // };\n value = parseOptionValue(parent, name + \".\" + token);\n } else if (peek() === \"[\") {\n value = [];\n var lastValue;\n if (skip(\"[\", true)) {\n do {\n lastValue = readValue(true);\n value.push(lastValue);\n } while (skip(\",\", true));\n skip(\"]\");\n if (typeof lastValue !== \"undefined\") {\n setOption(parent, name + \".\" + token, lastValue);\n }\n }\n } else {\n value = readValue(true);\n setOption(parent, name + \".\" + token, value);\n }\n\n var prevValue = objectResult[propName];\n\n if (prevValue)\n value = [].concat(prevValue).concat(value);\n\n objectResult[propName] = value;\n\n // Semicolons and commas can be optional\n skip(\",\", true);\n skip(\";\", true);\n }\n\n return objectResult;\n }\n\n var simpleValue = readValue(true);\n setOption(parent, name, simpleValue);\n return simpleValue;\n // Does not enforce a delimiter to be universal\n }\n\n function setOption(parent, name, value) {\n if (ptr === parent && /^features\\./.test(name)) {\n topLevelOptions[name] = value;\n return;\n }\n if (parent.setOption)\n parent.setOption(name, value);\n }\n\n function setParsedOption(parent, name, value, propName) {\n if (parent.setParsedOption)\n parent.setParsedOption(name, value, propName);\n }\n\n function parseInlineOptions(parent) {\n if (skip(\"[\", true)) {\n do {\n parseOption(parent, \"option\");\n } while (skip(\",\", true));\n skip(\"]\");\n }\n return parent;\n }\n\n function parseService(parent, token) {\n\n /* istanbul ignore if */\n if (!nameRe.test(token = next()))\n throw illegal(token, \"service name\");\n\n var service = new Service(token);\n ifBlock(service, function parseService_block(token) {\n if (parseCommon(service, token)) {\n return;\n }\n\n /* istanbul ignore else */\n if (token === \"rpc\")\n parseMethod(service, token);\n else\n throw illegal(token);\n });\n parent.add(service);\n if (parent === ptr) {\n topLevelObjects.push(service);\n }\n }\n\n function parseMethod(parent, token) {\n // Get the comment of the preceding line now (if one exists) in case the\n // method is defined across multiple lines.\n var commentText = cmnt();\n\n var type = token;\n\n /* istanbul ignore if */\n if (!nameRe.test(token = next()))\n throw illegal(token, \"name\");\n\n var name = token,\n requestType, requestStream,\n responseType, responseStream;\n\n skip(\"(\");\n if (skip(\"stream\", true))\n requestStream = true;\n\n /* istanbul ignore if */\n if (!typeRefRe.test(token = next()))\n throw illegal(token);\n\n requestType = token;\n skip(\")\"); skip(\"returns\"); skip(\"(\");\n if (skip(\"stream\", true))\n responseStream = true;\n\n /* istanbul ignore if */\n if (!typeRefRe.test(token = next()))\n throw illegal(token);\n\n responseType = token;\n skip(\")\");\n\n var method = new Method(name, type, requestType, responseType, requestStream, responseStream);\n method.comment = commentText;\n ifBlock(method, function parseMethod_block(token) {\n\n /* istanbul ignore else */\n if (token === \"option\") {\n parseOption(method, token);\n skip(\";\");\n } else\n throw illegal(token);\n\n });\n parent.add(method);\n }\n\n function parseExtension(parent, token) {\n\n /* istanbul ignore if */\n if (!typeRefRe.test(token = next()))\n throw illegal(token, \"reference\");\n\n var reference = token;\n ifBlock(null, function parseExtension_block(token) {\n switch (token) {\n\n case \"required\":\n case \"repeated\":\n parseField(parent, token, reference);\n break;\n\n case \"optional\":\n /* istanbul ignore if */\n if (edition === \"proto3\") {\n parseField(parent, \"proto3_optional\", reference);\n } else {\n parseField(parent, \"optional\", reference);\n }\n break;\n\n default:\n /* istanbul ignore if */\n if (edition === \"proto2\" || !typeRefRe.test(token))\n throw illegal(token);\n push(token);\n parseField(parent, \"optional\", reference);\n break;\n }\n });\n }\n\n var token;\n while ((token = next()) !== null) {\n switch (token) {\n\n case \"package\":\n\n /* istanbul ignore if */\n if (!head)\n throw illegal(token);\n\n parsePackage();\n break;\n\n case \"import\":\n\n /* istanbul ignore if */\n if (!head)\n throw illegal(token);\n\n parseImport();\n break;\n\n case \"syntax\":\n\n /* istanbul ignore if */\n if (!head)\n throw illegal(token);\n\n parseSyntax();\n break;\n\n case \"edition\":\n /* istanbul ignore if */\n if (!head)\n throw illegal(token);\n parseEdition();\n break;\n\n case \"option\":\n parseOption(ptr, token);\n skip(\";\", true);\n break;\n\n default:\n\n /* istanbul ignore else */\n if (parseCommon(ptr, token)) {\n head = false;\n continue;\n }\n\n /* istanbul ignore next */\n throw illegal(token);\n }\n }\n\n resolveFileFeatures();\n\n parse.filename = null;\n return {\n \"package\" : pkg,\n \"imports\" : imports,\n weakImports : weakImports,\n root : root\n };\n}\n\n/**\n * Parses the given .proto source and returns an object with the parsed contents.\n * @name parse\n * @function\n * @param {string} source Source contents\n * @param {IParseOptions} [options] Parse options. Defaults to {@link parse.defaults} when omitted.\n * @returns {IParserResult} Parser result\n * @property {string} filename=null Currently processing file name for error reporting, if known\n * @property {IParseOptions} defaults Default {@link IParseOptions}\n * @variation 2\n */\n","\"use strict\";\nmodule.exports = Reader;\n\nvar util = require(\"./util/minimal\");\n\nvar BufferReader; // cyclic\n\nvar LongBits = util.LongBits,\n utf8 = util.utf8;\n\n/* istanbul ignore next */\nfunction indexOutOfRange(reader, writeLength) {\n return RangeError(\"index out of range: \" + reader.pos + \" + \" + (writeLength || 1) + \" > \" + reader.len);\n}\n\n/**\n * Constructs a new reader instance using the specified buffer.\n * @classdesc Wire format reader using `Uint8Array` if available, otherwise `Array`.\n * @constructor\n * @param {Uint8Array} buffer Buffer to read from\n */\nfunction Reader(buffer) {\n\n /**\n * Read buffer.\n * @type {Uint8Array}\n */\n this.buf = buffer;\n\n /**\n * Read buffer position.\n * @type {number}\n */\n this.pos = 0;\n\n /**\n * Read buffer length.\n * @type {number}\n */\n this.len = buffer.length;\n}\n\nvar create_array = typeof Uint8Array !== \"undefined\"\n ? function create_typed_array(buffer) {\n if (buffer instanceof Uint8Array || Array.isArray(buffer))\n return new Reader(buffer);\n throw Error(\"illegal buffer\");\n }\n /* istanbul ignore next */\n : function create_array(buffer) {\n if (Array.isArray(buffer))\n return new Reader(buffer);\n throw Error(\"illegal buffer\");\n };\n\nvar create = function create() {\n return util.Buffer\n ? function create_buffer_setup(buffer) {\n return (Reader.create = function create_buffer(buffer) {\n return util.Buffer.isBuffer(buffer)\n ? new BufferReader(buffer)\n /* istanbul ignore next */\n : create_array(buffer);\n })(buffer);\n }\n /* istanbul ignore next */\n : create_array;\n};\n\n/**\n * Creates a new reader using the specified buffer.\n * @function\n * @param {Uint8Array|Buffer} buffer Buffer to read from\n * @returns {Reader|BufferReader} A {@link BufferReader} if `buffer` is a Buffer, otherwise a {@link Reader}\n * @throws {Error} If `buffer` is not a valid buffer\n */\nReader.create = create();\n\nReader.prototype._slice = util.Array.prototype.subarray || /* istanbul ignore next */ util.Array.prototype.slice;\n\n/**\n * Reads a varint as an unsigned 32 bit value.\n * @function\n * @returns {number} Value read\n */\nReader.prototype.uint32 = (function read_uint32_setup() {\n var value = 4294967295; // optimizer type-hint, tends to deopt otherwise (?!)\n return function read_uint32() {\n value = ( this.buf[this.pos] & 127 ) >>> 0; if (this.buf[this.pos++] < 128) return value;\n value = (value | (this.buf[this.pos] & 127) << 7) >>> 0; if (this.buf[this.pos++] < 128) return value;\n value = (value | (this.buf[this.pos] & 127) << 14) >>> 0; if (this.buf[this.pos++] < 128) return value;\n value = (value | (this.buf[this.pos] & 127) << 21) >>> 0; if (this.buf[this.pos++] < 128) return value;\n value = (value | (this.buf[this.pos] & 15) << 28) >>> 0; if (this.buf[this.pos++] < 128) return value;\n\n /* istanbul ignore if */\n if ((this.pos += 5) > this.len) {\n this.pos = this.len;\n throw indexOutOfRange(this, 10);\n }\n return value;\n };\n})();\n\n/**\n * Reads a varint as a signed 32 bit value.\n * @returns {number} Value read\n */\nReader.prototype.int32 = function read_int32() {\n return this.uint32() | 0;\n};\n\n/**\n * Reads a zig-zag encoded varint as a signed 32 bit value.\n * @returns {number} Value read\n */\nReader.prototype.sint32 = function read_sint32() {\n var value = this.uint32();\n return value >>> 1 ^ -(value & 1) | 0;\n};\n\n/* eslint-disable no-invalid-this */\n\nfunction readLongVarint() {\n // tends to deopt with local vars for octet etc.\n var bits = new LongBits(0, 0);\n var i = 0;\n if (this.len - this.pos > 4) { // fast route (lo)\n for (; i < 4; ++i) {\n // 1st..4th\n bits.lo = (bits.lo | (this.buf[this.pos] & 127) << i * 7) >>> 0;\n if (this.buf[this.pos++] < 128)\n return bits;\n }\n // 5th\n bits.lo = (bits.lo | (this.buf[this.pos] & 127) << 28) >>> 0;\n bits.hi = (bits.hi | (this.buf[this.pos] & 127) >> 4) >>> 0;\n if (this.buf[this.pos++] < 128)\n return bits;\n i = 0;\n } else {\n for (; i < 3; ++i) {\n /* istanbul ignore if */\n if (this.pos >= this.len)\n throw indexOutOfRange(this);\n // 1st..3th\n bits.lo = (bits.lo | (this.buf[this.pos] & 127) << i * 7) >>> 0;\n if (this.buf[this.pos++] < 128)\n return bits;\n }\n // 4th\n bits.lo = (bits.lo | (this.buf[this.pos++] & 127) << i * 7) >>> 0;\n return bits;\n }\n if (this.len - this.pos > 4) { // fast route (hi)\n for (; i < 5; ++i) {\n // 6th..10th\n bits.hi = (bits.hi | (this.buf[this.pos] & 127) << i * 7 + 3) >>> 0;\n if (this.buf[this.pos++] < 128)\n return bits;\n }\n } else {\n for (; i < 5; ++i) {\n /* istanbul ignore if */\n if (this.pos >= this.len)\n throw indexOutOfRange(this);\n // 6th..10th\n bits.hi = (bits.hi | (this.buf[this.pos] & 127) << i * 7 + 3) >>> 0;\n if (this.buf[this.pos++] < 128)\n return bits;\n }\n }\n /* istanbul ignore next */\n throw Error(\"invalid varint encoding\");\n}\n\n/* eslint-enable no-invalid-this */\n\n/**\n * Reads a varint as a signed 64 bit value.\n * @name Reader#int64\n * @function\n * @returns {Long} Value read\n */\n\n/**\n * Reads a varint as an unsigned 64 bit value.\n * @name Reader#uint64\n * @function\n * @returns {Long} Value read\n */\n\n/**\n * Reads a zig-zag encoded varint as a signed 64 bit value.\n * @name Reader#sint64\n * @function\n * @returns {Long} Value read\n */\n\n/**\n * Reads a varint as a boolean.\n * @returns {boolean} Value read\n */\nReader.prototype.bool = function read_bool() {\n return this.uint32() !== 0;\n};\n\nfunction readFixed32_end(buf, end) { // note that this uses `end`, not `pos`\n return (buf[end - 4]\n | buf[end - 3] << 8\n | buf[end - 2] << 16\n | buf[end - 1] << 24) >>> 0;\n}\n\n/**\n * Reads fixed 32 bits as an unsigned 32 bit integer.\n * @returns {number} Value read\n */\nReader.prototype.fixed32 = function read_fixed32() {\n\n /* istanbul ignore if */\n if (this.pos + 4 > this.len)\n throw indexOutOfRange(this, 4);\n\n return readFixed32_end(this.buf, this.pos += 4);\n};\n\n/**\n * Reads fixed 32 bits as a signed 32 bit integer.\n * @returns {number} Value read\n */\nReader.prototype.sfixed32 = function read_sfixed32() {\n\n /* istanbul ignore if */\n if (this.pos + 4 > this.len)\n throw indexOutOfRange(this, 4);\n\n return readFixed32_end(this.buf, this.pos += 4) | 0;\n};\n\n/* eslint-disable no-invalid-this */\n\nfunction readFixed64(/* this: Reader */) {\n\n /* istanbul ignore if */\n if (this.pos + 8 > this.len)\n throw indexOutOfRange(this, 8);\n\n return new LongBits(readFixed32_end(this.buf, this.pos += 4), readFixed32_end(this.buf, this.pos += 4));\n}\n\n/* eslint-enable no-invalid-this */\n\n/**\n * Reads fixed 64 bits.\n * @name Reader#fixed64\n * @function\n * @returns {Long} Value read\n */\n\n/**\n * Reads zig-zag encoded fixed 64 bits.\n * @name Reader#sfixed64\n * @function\n * @returns {Long} Value read\n */\n\n/**\n * Reads a float (32 bit) as a number.\n * @function\n * @returns {number} Value read\n */\nReader.prototype.float = function read_float() {\n\n /* istanbul ignore if */\n if (this.pos + 4 > this.len)\n throw indexOutOfRange(this, 4);\n\n var value = util.float.readFloatLE(this.buf, this.pos);\n this.pos += 4;\n return value;\n};\n\n/**\n * Reads a double (64 bit float) as a number.\n * @function\n * @returns {number} Value read\n */\nReader.prototype.double = function read_double() {\n\n /* istanbul ignore if */\n if (this.pos + 8 > this.len)\n throw indexOutOfRange(this, 4);\n\n var value = util.float.readDoubleLE(this.buf, this.pos);\n this.pos += 8;\n return value;\n};\n\n/**\n * Reads a sequence of bytes preceeded by its length as a varint.\n * @returns {Uint8Array} Value read\n */\nReader.prototype.bytes = function read_bytes() {\n var length = this.uint32(),\n start = this.pos,\n end = this.pos + length;\n\n /* istanbul ignore if */\n if (end > this.len)\n throw indexOutOfRange(this, length);\n\n this.pos += length;\n if (Array.isArray(this.buf)) // plain array\n return this.buf.slice(start, end);\n\n if (start === end) { // fix for IE 10/Win8 and others' subarray returning array of size 1\n var nativeBuffer = util.Buffer;\n return nativeBuffer\n ? nativeBuffer.alloc(0)\n : new this.buf.constructor(0);\n }\n return this._slice.call(this.buf, start, end);\n};\n\n/**\n * Reads a string preceeded by its byte length as a varint.\n * @returns {string} Value read\n */\nReader.prototype.string = function read_string() {\n var bytes = this.bytes();\n return utf8.read(bytes, 0, bytes.length);\n};\n\n/**\n * Skips the specified number of bytes if specified, otherwise skips a varint.\n * @param {number} [length] Length if known, otherwise a varint is assumed\n * @returns {Reader} `this`\n */\nReader.prototype.skip = function skip(length) {\n if (typeof length === \"number\") {\n /* istanbul ignore if */\n if (this.pos + length > this.len)\n throw indexOutOfRange(this, length);\n this.pos += length;\n } else {\n do {\n /* istanbul ignore if */\n if (this.pos >= this.len)\n throw indexOutOfRange(this);\n } while (this.buf[this.pos++] & 128);\n }\n return this;\n};\n\n/**\n * Skips the next element of the specified wire type.\n * @param {number} wireType Wire type received\n * @returns {Reader} `this`\n */\nReader.prototype.skipType = function(wireType) {\n switch (wireType) {\n case 0:\n this.skip();\n break;\n case 1:\n this.skip(8);\n break;\n case 2:\n this.skip(this.uint32());\n break;\n case 3:\n while ((wireType = this.uint32() & 7) !== 4) {\n this.skipType(wireType);\n }\n break;\n case 5:\n this.skip(4);\n break;\n\n /* istanbul ignore next */\n default:\n throw Error(\"invalid wire type \" + wireType + \" at offset \" + this.pos);\n }\n return this;\n};\n\nReader._configure = function(BufferReader_) {\n BufferReader = BufferReader_;\n Reader.create = create();\n BufferReader._configure();\n\n var fn = util.Long ? \"toLong\" : /* istanbul ignore next */ \"toNumber\";\n util.merge(Reader.prototype, {\n\n int64: function read_int64() {\n return readLongVarint.call(this)[fn](false);\n },\n\n uint64: function read_uint64() {\n return readLongVarint.call(this)[fn](true);\n },\n\n sint64: function read_sint64() {\n return readLongVarint.call(this).zzDecode()[fn](false);\n },\n\n fixed64: function read_fixed64() {\n return readFixed64.call(this)[fn](true);\n },\n\n sfixed64: function read_sfixed64() {\n return readFixed64.call(this)[fn](false);\n }\n\n });\n};\n","\"use strict\";\nmodule.exports = BufferReader;\n\n// extends Reader\nvar Reader = require(\"./reader\");\n(BufferReader.prototype = Object.create(Reader.prototype)).constructor = BufferReader;\n\nvar util = require(\"./util/minimal\");\n\n/**\n * Constructs a new buffer reader instance.\n * @classdesc Wire format reader using node buffers.\n * @extends Reader\n * @constructor\n * @param {Buffer} buffer Buffer to read from\n */\nfunction BufferReader(buffer) {\n Reader.call(this, buffer);\n\n /**\n * Read buffer.\n * @name BufferReader#buf\n * @type {Buffer}\n */\n}\n\nBufferReader._configure = function () {\n /* istanbul ignore else */\n if (util.Buffer)\n BufferReader.prototype._slice = util.Buffer.prototype.slice;\n};\n\n\n/**\n * @override\n */\nBufferReader.prototype.string = function read_string_buffer() {\n var len = this.uint32(); // modifies pos\n return this.buf.utf8Slice\n ? this.buf.utf8Slice(this.pos, this.pos = Math.min(this.pos + len, this.len))\n : this.buf.toString(\"utf-8\", this.pos, this.pos = Math.min(this.pos + len, this.len));\n};\n\n/**\n * Reads a sequence of bytes preceeded by its length as a varint.\n * @name BufferReader#bytes\n * @function\n * @returns {Buffer} Value read\n */\n\nBufferReader._configure();\n","\"use strict\";\nmodule.exports = Root;\n\n// extends Namespace\nvar Namespace = require(\"./namespace\");\n((Root.prototype = Object.create(Namespace.prototype)).constructor = Root).className = \"Root\";\n\nvar Field = require(\"./field\"),\n Enum = require(\"./enum\"),\n OneOf = require(\"./oneof\"),\n util = require(\"./util\");\n\nvar Type, // cyclic\n parse, // might be excluded\n common; // \"\n\n/**\n * Constructs a new root namespace instance.\n * @classdesc Root namespace wrapping all types, enums, services, sub-namespaces etc. that belong together.\n * @extends NamespaceBase\n * @constructor\n * @param {Object.} [options] Top level options\n */\nfunction Root(options) {\n Namespace.call(this, \"\", options);\n\n /**\n * Deferred extension fields.\n * @type {Field[]}\n */\n this.deferred = [];\n\n /**\n * Resolved file names of loaded files.\n * @type {string[]}\n */\n this.files = [];\n\n /**\n * Edition, defaults to proto2 if unspecified.\n * @type {string}\n * @private\n */\n this._edition = \"proto2\";\n\n /**\n * Global lookup cache of fully qualified names.\n * @type {Object.}\n * @private\n */\n this._fullyQualifiedObjects = {};\n}\n\n/**\n * Loads a namespace descriptor into a root namespace.\n * @param {INamespace} json Namespace descriptor\n * @param {Root} [root] Root namespace, defaults to create a new one if omitted\n * @returns {Root} Root namespace\n */\nRoot.fromJSON = function fromJSON(json, root) {\n if (!root)\n root = new Root();\n if (json.options)\n root.setOptions(json.options);\n return root.addJSON(json.nested).resolveAll();\n};\n\n/**\n * Resolves the path of an imported file, relative to the importing origin.\n * This method exists so you can override it with your own logic in case your imports are scattered over multiple directories.\n * @function\n * @param {string} origin The file name of the importing file\n * @param {string} target The file name being imported\n * @returns {string|null} Resolved path to `target` or `null` to skip the file\n */\nRoot.prototype.resolvePath = util.path.resolve;\n\n/**\n * Fetch content from file path or url\n * This method exists so you can override it with your own logic.\n * @function\n * @param {string} path File path or url\n * @param {FetchCallback} callback Callback function\n * @returns {undefined}\n */\nRoot.prototype.fetch = util.fetch;\n\n// A symbol-like function to safely signal synchronous loading\n/* istanbul ignore next */\nfunction SYNC() {} // eslint-disable-line no-empty-function\n\n/**\n * Loads one or multiple .proto or preprocessed .json files into this root namespace and calls the callback.\n * @param {string|string[]} filename Names of one or multiple files to load\n * @param {IParseOptions} options Parse options\n * @param {LoadCallback} callback Callback function\n * @returns {undefined}\n */\nRoot.prototype.load = function load(filename, options, callback) {\n if (typeof options === \"function\") {\n callback = options;\n options = undefined;\n }\n var self = this;\n if (!callback) {\n return util.asPromise(load, self, filename, options);\n }\n\n var sync = callback === SYNC; // undocumented\n\n // Finishes loading by calling the callback (exactly once)\n function finish(err, root) {\n /* istanbul ignore if */\n if (!callback) {\n return;\n }\n if (sync) {\n throw err;\n }\n if (root) {\n root.resolveAll();\n }\n var cb = callback;\n callback = null;\n cb(err, root);\n }\n\n // Bundled definition existence checking\n function getBundledFileName(filename) {\n var idx = filename.lastIndexOf(\"google/protobuf/\");\n if (idx > -1) {\n var altname = filename.substring(idx);\n if (altname in common) return altname;\n }\n return null;\n }\n\n // Processes a single file\n function process(filename, source) {\n try {\n if (util.isString(source) && source.charAt(0) === \"{\")\n source = JSON.parse(source);\n if (!util.isString(source))\n self.setOptions(source.options).addJSON(source.nested);\n else {\n parse.filename = filename;\n var parsed = parse(source, self, options),\n resolved,\n i = 0;\n if (parsed.imports)\n for (; i < parsed.imports.length; ++i)\n if (resolved = getBundledFileName(parsed.imports[i]) || self.resolvePath(filename, parsed.imports[i]))\n fetch(resolved);\n if (parsed.weakImports)\n for (i = 0; i < parsed.weakImports.length; ++i)\n if (resolved = getBundledFileName(parsed.weakImports[i]) || self.resolvePath(filename, parsed.weakImports[i]))\n fetch(resolved, true);\n }\n } catch (err) {\n finish(err);\n }\n if (!sync && !queued) {\n finish(null, self); // only once anyway\n }\n }\n\n // Fetches a single file\n function fetch(filename, weak) {\n filename = getBundledFileName(filename) || filename;\n\n // Skip if already loaded / attempted\n if (self.files.indexOf(filename) > -1) {\n return;\n }\n self.files.push(filename);\n\n // Shortcut bundled definitions\n if (filename in common) {\n if (sync) {\n process(filename, common[filename]);\n } else {\n ++queued;\n setTimeout(function() {\n --queued;\n process(filename, common[filename]);\n });\n }\n return;\n }\n\n // Otherwise fetch from disk or network\n if (sync) {\n var source;\n try {\n source = util.fs.readFileSync(filename).toString(\"utf8\");\n } catch (err) {\n if (!weak)\n finish(err);\n return;\n }\n process(filename, source);\n } else {\n ++queued;\n self.fetch(filename, function(err, source) {\n --queued;\n /* istanbul ignore if */\n if (!callback) {\n return; // terminated meanwhile\n }\n if (err) {\n /* istanbul ignore else */\n if (!weak)\n finish(err);\n else if (!queued) // can't be covered reliably\n finish(null, self);\n return;\n }\n process(filename, source);\n });\n }\n }\n var queued = 0;\n\n // Assembling the root namespace doesn't require working type\n // references anymore, so we can load everything in parallel\n if (util.isString(filename)) {\n filename = [ filename ];\n }\n for (var i = 0, resolved; i < filename.length; ++i)\n if (resolved = self.resolvePath(\"\", filename[i]))\n fetch(resolved);\n if (sync) {\n self.resolveAll();\n return self;\n }\n if (!queued) {\n finish(null, self);\n }\n\n return self;\n};\n// function load(filename:string, options:IParseOptions, callback:LoadCallback):undefined\n\n/**\n * Loads one or multiple .proto or preprocessed .json files into this root namespace and calls the callback.\n * @function Root#load\n * @param {string|string[]} filename Names of one or multiple files to load\n * @param {LoadCallback} callback Callback function\n * @returns {undefined}\n * @variation 2\n */\n// function load(filename:string, callback:LoadCallback):undefined\n\n/**\n * Loads one or multiple .proto or preprocessed .json files into this root namespace and returns a promise.\n * @function Root#load\n * @param {string|string[]} filename Names of one or multiple files to load\n * @param {IParseOptions} [options] Parse options. Defaults to {@link parse.defaults} when omitted.\n * @returns {Promise} Promise\n * @variation 3\n */\n// function load(filename:string, [options:IParseOptions]):Promise\n\n/**\n * Synchronously loads one or multiple .proto or preprocessed .json files into this root namespace (node only).\n * @function Root#loadSync\n * @param {string|string[]} filename Names of one or multiple files to load\n * @param {IParseOptions} [options] Parse options. Defaults to {@link parse.defaults} when omitted.\n * @returns {Root} Root namespace\n * @throws {Error} If synchronous fetching is not supported (i.e. in browsers) or if a file's syntax is invalid\n */\nRoot.prototype.loadSync = function loadSync(filename, options) {\n if (!util.isNode)\n throw Error(\"not supported\");\n return this.load(filename, options, SYNC);\n};\n\n/**\n * @override\n */\nRoot.prototype.resolveAll = function resolveAll() {\n if (!this._needsRecursiveResolve) return this;\n\n if (this.deferred.length)\n throw Error(\"unresolvable extensions: \" + this.deferred.map(function(field) {\n return \"'extend \" + field.extend + \"' in \" + field.parent.fullName;\n }).join(\", \"));\n return Namespace.prototype.resolveAll.call(this);\n};\n\n// only uppercased (and thus conflict-free) children are exposed, see below\nvar exposeRe = /^[A-Z]/;\n\n/**\n * Handles a deferred declaring extension field by creating a sister field to represent it within its extended type.\n * @param {Root} root Root instance\n * @param {Field} field Declaring extension field witin the declaring type\n * @returns {boolean} `true` if successfully added to the extended type, `false` otherwise\n * @inner\n * @ignore\n */\nfunction tryHandleExtension(root, field) {\n var extendedType = field.parent.lookup(field.extend);\n if (extendedType) {\n var sisterField = new Field(field.fullName, field.id, field.type, field.rule, undefined, field.options);\n //do not allow to extend same field twice to prevent the error\n if (extendedType.get(sisterField.name)) {\n return true;\n }\n sisterField.declaringField = field;\n field.extensionField = sisterField;\n extendedType.add(sisterField);\n return true;\n }\n return false;\n}\n\n/**\n * Called when any object is added to this root or its sub-namespaces.\n * @param {ReflectionObject} object Object added\n * @returns {undefined}\n * @private\n */\nRoot.prototype._handleAdd = function _handleAdd(object) {\n if (object instanceof Field) {\n\n if (/* an extension field (implies not part of a oneof) */ object.extend !== undefined && /* not already handled */ !object.extensionField)\n if (!tryHandleExtension(this, object))\n this.deferred.push(object);\n\n } else if (object instanceof Enum) {\n\n if (exposeRe.test(object.name))\n object.parent[object.name] = object.values; // expose enum values as property of its parent\n\n } else if (!(object instanceof OneOf)) /* everything else is a namespace */ {\n\n if (object instanceof Type) // Try to handle any deferred extensions\n for (var i = 0; i < this.deferred.length;)\n if (tryHandleExtension(this, this.deferred[i]))\n this.deferred.splice(i, 1);\n else\n ++i;\n for (var j = 0; j < /* initializes */ object.nestedArray.length; ++j) // recurse into the namespace\n this._handleAdd(object._nestedArray[j]);\n if (exposeRe.test(object.name))\n object.parent[object.name] = object; // expose namespace as property of its parent\n }\n\n if (object instanceof Type || object instanceof Enum || object instanceof Field) {\n // Only store types and enums for quick lookup during resolve.\n this._fullyQualifiedObjects[object.fullName] = object;\n }\n\n // The above also adds uppercased (and thus conflict-free) nested types, services and enums as\n // properties of namespaces just like static code does. This allows using a .d.ts generated for\n // a static module with reflection-based solutions where the condition is met.\n};\n\n/**\n * Called when any object is removed from this root or its sub-namespaces.\n * @param {ReflectionObject} object Object removed\n * @returns {undefined}\n * @private\n */\nRoot.prototype._handleRemove = function _handleRemove(object) {\n if (object instanceof Field) {\n\n if (/* an extension field */ object.extend !== undefined) {\n if (/* already handled */ object.extensionField) { // remove its sister field\n object.extensionField.parent.remove(object.extensionField);\n object.extensionField = null;\n } else { // cancel the extension\n var index = this.deferred.indexOf(object);\n /* istanbul ignore else */\n if (index > -1)\n this.deferred.splice(index, 1);\n }\n }\n\n } else if (object instanceof Enum) {\n\n if (exposeRe.test(object.name))\n delete object.parent[object.name]; // unexpose enum values\n\n } else if (object instanceof Namespace) {\n\n for (var i = 0; i < /* initializes */ object.nestedArray.length; ++i) // recurse into the namespace\n this._handleRemove(object._nestedArray[i]);\n\n if (exposeRe.test(object.name))\n delete object.parent[object.name]; // unexpose namespaces\n\n }\n\n delete this._fullyQualifiedObjects[object.fullName];\n};\n\n// Sets up cyclic dependencies (called in index-light)\nRoot._configure = function(Type_, parse_, common_) {\n Type = Type_;\n parse = parse_;\n common = common_;\n};\n","\"use strict\";\nmodule.exports = {};\n\n/**\n * Named roots.\n * This is where pbjs stores generated structures (the option `-r, --root` specifies a name).\n * Can also be used manually to make roots available across modules.\n * @name roots\n * @type {Object.}\n * @example\n * // pbjs -r myroot -o compiled.js ...\n *\n * // in another module:\n * require(\"./compiled.js\");\n *\n * // in any subsequent module:\n * var root = protobuf.roots[\"myroot\"];\n */\n","\"use strict\";\n\n/**\n * Streaming RPC helpers.\n * @namespace\n */\nvar rpc = exports;\n\n/**\n * RPC implementation passed to {@link Service#create} performing a service request on network level, i.e. by utilizing http requests or websockets.\n * @typedef RPCImpl\n * @type {function}\n * @param {Method|rpc.ServiceMethod,Message<{}>>} method Reflected or static method being called\n * @param {Uint8Array} requestData Request data\n * @param {RPCImplCallback} callback Callback function\n * @returns {undefined}\n * @example\n * function rpcImpl(method, requestData, callback) {\n * if (protobuf.util.lcFirst(method.name) !== \"myMethod\") // compatible with static code\n * throw Error(\"no such method\");\n * asynchronouslyObtainAResponse(requestData, function(err, responseData) {\n * callback(err, responseData);\n * });\n * }\n */\n\n/**\n * Node-style callback as used by {@link RPCImpl}.\n * @typedef RPCImplCallback\n * @type {function}\n * @param {Error|null} error Error, if any, otherwise `null`\n * @param {Uint8Array|null} [response] Response data or `null` to signal end of stream, if there hasn't been an error\n * @returns {undefined}\n */\n\nrpc.Service = require(\"./rpc/service\");\n","\"use strict\";\nmodule.exports = Service;\n\nvar util = require(\"../util/minimal\");\n\n// Extends EventEmitter\n(Service.prototype = Object.create(util.EventEmitter.prototype)).constructor = Service;\n\n/**\n * A service method callback as used by {@link rpc.ServiceMethod|ServiceMethod}.\n *\n * Differs from {@link RPCImplCallback} in that it is an actual callback of a service method which may not return `response = null`.\n * @typedef rpc.ServiceMethodCallback\n * @template TRes extends Message\n * @type {function}\n * @param {Error|null} error Error, if any\n * @param {TRes} [response] Response message\n * @returns {undefined}\n */\n\n/**\n * A service method part of a {@link rpc.Service} as created by {@link Service.create}.\n * @typedef rpc.ServiceMethod\n * @template TReq extends Message\n * @template TRes extends Message\n * @type {function}\n * @param {TReq|Properties} request Request message or plain object\n * @param {rpc.ServiceMethodCallback} [callback] Node-style callback called with the error, if any, and the response message\n * @returns {Promise>} Promise if `callback` has been omitted, otherwise `undefined`\n */\n\n/**\n * Constructs a new RPC service instance.\n * @classdesc An RPC service as returned by {@link Service#create}.\n * @exports rpc.Service\n * @extends util.EventEmitter\n * @constructor\n * @param {RPCImpl} rpcImpl RPC implementation\n * @param {boolean} [requestDelimited=false] Whether requests are length-delimited\n * @param {boolean} [responseDelimited=false] Whether responses are length-delimited\n */\nfunction Service(rpcImpl, requestDelimited, responseDelimited) {\n\n if (typeof rpcImpl !== \"function\")\n throw TypeError(\"rpcImpl must be a function\");\n\n util.EventEmitter.call(this);\n\n /**\n * RPC implementation. Becomes `null` once the service is ended.\n * @type {RPCImpl|null}\n */\n this.rpcImpl = rpcImpl;\n\n /**\n * Whether requests are length-delimited.\n * @type {boolean}\n */\n this.requestDelimited = Boolean(requestDelimited);\n\n /**\n * Whether responses are length-delimited.\n * @type {boolean}\n */\n this.responseDelimited = Boolean(responseDelimited);\n}\n\n/**\n * Calls a service method through {@link rpc.Service#rpcImpl|rpcImpl}.\n * @param {Method|rpc.ServiceMethod} method Reflected or static method\n * @param {Constructor} requestCtor Request constructor\n * @param {Constructor} responseCtor Response constructor\n * @param {TReq|Properties} request Request message or plain object\n * @param {rpc.ServiceMethodCallback} callback Service callback\n * @returns {undefined}\n * @template TReq extends Message\n * @template TRes extends Message\n */\nService.prototype.rpcCall = function rpcCall(method, requestCtor, responseCtor, request, callback) {\n\n if (!request)\n throw TypeError(\"request must be specified\");\n\n var self = this;\n if (!callback)\n return util.asPromise(rpcCall, self, method, requestCtor, responseCtor, request);\n\n if (!self.rpcImpl) {\n setTimeout(function() { callback(Error(\"already ended\")); }, 0);\n return undefined;\n }\n\n try {\n return self.rpcImpl(\n method,\n requestCtor[self.requestDelimited ? \"encodeDelimited\" : \"encode\"](request).finish(),\n function rpcCallback(err, response) {\n\n if (err) {\n self.emit(\"error\", err, method);\n return callback(err);\n }\n\n if (response === null) {\n self.end(/* endedByRPC */ true);\n return undefined;\n }\n\n if (!(response instanceof responseCtor)) {\n try {\n response = responseCtor[self.responseDelimited ? \"decodeDelimited\" : \"decode\"](response);\n } catch (err) {\n self.emit(\"error\", err, method);\n return callback(err);\n }\n }\n\n self.emit(\"data\", response, method);\n return callback(null, response);\n }\n );\n } catch (err) {\n self.emit(\"error\", err, method);\n setTimeout(function() { callback(err); }, 0);\n return undefined;\n }\n};\n\n/**\n * Ends this service and emits the `end` event.\n * @param {boolean} [endedByRPC=false] Whether the service has been ended by the RPC implementation.\n * @returns {rpc.Service} `this`\n */\nService.prototype.end = function end(endedByRPC) {\n if (this.rpcImpl) {\n if (!endedByRPC) // signal end to rpcImpl\n this.rpcImpl(null, null, null);\n this.rpcImpl = null;\n this.emit(\"end\").off();\n }\n return this;\n};\n","\"use strict\";\nmodule.exports = Service;\n\n// extends Namespace\nvar Namespace = require(\"./namespace\");\n((Service.prototype = Object.create(Namespace.prototype)).constructor = Service).className = \"Service\";\n\nvar Method = require(\"./method\"),\n util = require(\"./util\"),\n rpc = require(\"./rpc\");\n\n/**\n * Constructs a new service instance.\n * @classdesc Reflected service.\n * @extends NamespaceBase\n * @constructor\n * @param {string} name Service name\n * @param {Object.} [options] Service options\n * @throws {TypeError} If arguments are invalid\n */\nfunction Service(name, options) {\n Namespace.call(this, name, options);\n\n /**\n * Service methods.\n * @type {Object.}\n */\n this.methods = {}; // toJSON, marker\n\n /**\n * Cached methods as an array.\n * @type {Method[]|null}\n * @private\n */\n this._methodsArray = null;\n}\n\n/**\n * Service descriptor.\n * @interface IService\n * @extends INamespace\n * @property {Object.} methods Method descriptors\n */\n\n/**\n * Constructs a service from a service descriptor.\n * @param {string} name Service name\n * @param {IService} json Service descriptor\n * @returns {Service} Created service\n * @throws {TypeError} If arguments are invalid\n */\nService.fromJSON = function fromJSON(name, json) {\n var service = new Service(name, json.options);\n /* istanbul ignore else */\n if (json.methods)\n for (var names = Object.keys(json.methods), i = 0; i < names.length; ++i)\n service.add(Method.fromJSON(names[i], json.methods[names[i]]));\n if (json.nested)\n service.addJSON(json.nested);\n if (json.edition)\n service._edition = json.edition;\n service.comment = json.comment;\n service._defaultEdition = \"proto3\"; // For backwards-compatibility.\n return service;\n};\n\n/**\n * Converts this service to a service descriptor.\n * @param {IToJSONOptions} [toJSONOptions] JSON conversion options\n * @returns {IService} Service descriptor\n */\nService.prototype.toJSON = function toJSON(toJSONOptions) {\n var inherited = Namespace.prototype.toJSON.call(this, toJSONOptions);\n var keepComments = toJSONOptions ? Boolean(toJSONOptions.keepComments) : false;\n return util.toObject([\n \"edition\" , this._editionToJSON(),\n \"options\" , inherited && inherited.options || undefined,\n \"methods\" , Namespace.arrayToJSON(this.methodsArray, toJSONOptions) || /* istanbul ignore next */ {},\n \"nested\" , inherited && inherited.nested || undefined,\n \"comment\" , keepComments ? this.comment : undefined\n ]);\n};\n\n/**\n * Methods of this service as an array for iteration.\n * @name Service#methodsArray\n * @type {Method[]}\n * @readonly\n */\nObject.defineProperty(Service.prototype, \"methodsArray\", {\n get: function() {\n return this._methodsArray || (this._methodsArray = util.toArray(this.methods));\n }\n});\n\nfunction clearCache(service) {\n service._methodsArray = null;\n return service;\n}\n\n/**\n * @override\n */\nService.prototype.get = function get(name) {\n return this.methods[name]\n || Namespace.prototype.get.call(this, name);\n};\n\n/**\n * @override\n */\nService.prototype.resolveAll = function resolveAll() {\n if (!this._needsRecursiveResolve) return this;\n\n Namespace.prototype.resolve.call(this);\n var methods = this.methodsArray;\n for (var i = 0; i < methods.length; ++i)\n methods[i].resolve();\n return this;\n};\n\n/**\n * @override\n */\nService.prototype._resolveFeaturesRecursive = function _resolveFeaturesRecursive(edition) {\n if (!this._needsRecursiveFeatureResolution) return this;\n\n edition = this._edition || edition;\n\n Namespace.prototype._resolveFeaturesRecursive.call(this, edition);\n this.methodsArray.forEach(method => {\n method._resolveFeaturesRecursive(edition);\n });\n return this;\n};\n\n/**\n * @override\n */\nService.prototype.add = function add(object) {\n\n /* istanbul ignore if */\n if (this.get(object.name))\n throw Error(\"duplicate name '\" + object.name + \"' in \" + this);\n\n if (object instanceof Method) {\n this.methods[object.name] = object;\n object.parent = this;\n return clearCache(this);\n }\n return Namespace.prototype.add.call(this, object);\n};\n\n/**\n * @override\n */\nService.prototype.remove = function remove(object) {\n if (object instanceof Method) {\n\n /* istanbul ignore if */\n if (this.methods[object.name] !== object)\n throw Error(object + \" is not a member of \" + this);\n\n delete this.methods[object.name];\n object.parent = null;\n return clearCache(this);\n }\n return Namespace.prototype.remove.call(this, object);\n};\n\n/**\n * Creates a runtime service using the specified rpc implementation.\n * @param {RPCImpl} rpcImpl RPC implementation\n * @param {boolean} [requestDelimited=false] Whether requests are length-delimited\n * @param {boolean} [responseDelimited=false] Whether responses are length-delimited\n * @returns {rpc.Service} RPC service. Useful where requests and/or responses are streamed.\n */\nService.prototype.create = function create(rpcImpl, requestDelimited, responseDelimited) {\n var rpcService = new rpc.Service(rpcImpl, requestDelimited, responseDelimited);\n for (var i = 0, method; i < /* initializes */ this.methodsArray.length; ++i) {\n var methodName = util.lcFirst((method = this._methodsArray[i]).resolve().name).replace(/[^$\\w_]/g, \"\");\n rpcService[methodName] = util.codegen([\"r\",\"c\"], util.isReserved(methodName) ? methodName + \"_\" : methodName)(\"return this.rpcCall(m,q,s,r,c)\")({\n m: method,\n q: method.resolvedRequestType.ctor,\n s: method.resolvedResponseType.ctor\n });\n }\n return rpcService;\n};\n","\"use strict\";\nmodule.exports = tokenize;\n\nvar delimRe = /[\\s{}=;:[\\],'\"()<>]/g,\n stringDoubleRe = /(?:\"([^\"\\\\]*(?:\\\\.[^\"\\\\]*)*)\")/g,\n stringSingleRe = /(?:'([^'\\\\]*(?:\\\\.[^'\\\\]*)*)')/g;\n\nvar setCommentRe = /^ *[*/]+ */,\n setCommentAltRe = /^\\s*\\*?\\/*/,\n setCommentSplitRe = /\\n/g,\n whitespaceRe = /\\s/,\n unescapeRe = /\\\\(.?)/g;\n\nvar unescapeMap = {\n \"0\": \"\\0\",\n \"r\": \"\\r\",\n \"n\": \"\\n\",\n \"t\": \"\\t\"\n};\n\n/**\n * Unescapes a string.\n * @param {string} str String to unescape\n * @returns {string} Unescaped string\n * @property {Object.} map Special characters map\n * @memberof tokenize\n */\nfunction unescape(str) {\n return str.replace(unescapeRe, function($0, $1) {\n switch ($1) {\n case \"\\\\\":\n case \"\":\n return $1;\n default:\n return unescapeMap[$1] || \"\";\n }\n });\n}\n\ntokenize.unescape = unescape;\n\n/**\n * Gets the next token and advances.\n * @typedef TokenizerHandleNext\n * @type {function}\n * @returns {string|null} Next token or `null` on eof\n */\n\n/**\n * Peeks for the next token.\n * @typedef TokenizerHandlePeek\n * @type {function}\n * @returns {string|null} Next token or `null` on eof\n */\n\n/**\n * Pushes a token back to the stack.\n * @typedef TokenizerHandlePush\n * @type {function}\n * @param {string} token Token\n * @returns {undefined}\n */\n\n/**\n * Skips the next token.\n * @typedef TokenizerHandleSkip\n * @type {function}\n * @param {string} expected Expected token\n * @param {boolean} [optional=false] If optional\n * @returns {boolean} Whether the token matched\n * @throws {Error} If the token didn't match and is not optional\n */\n\n/**\n * Gets the comment on the previous line or, alternatively, the line comment on the specified line.\n * @typedef TokenizerHandleCmnt\n * @type {function}\n * @param {number} [line] Line number\n * @returns {string|null} Comment text or `null` if none\n */\n\n/**\n * Handle object returned from {@link tokenize}.\n * @interface ITokenizerHandle\n * @property {TokenizerHandleNext} next Gets the next token and advances (`null` on eof)\n * @property {TokenizerHandlePeek} peek Peeks for the next token (`null` on eof)\n * @property {TokenizerHandlePush} push Pushes a token back to the stack\n * @property {TokenizerHandleSkip} skip Skips a token, returns its presence and advances or, if non-optional and not present, throws\n * @property {TokenizerHandleCmnt} cmnt Gets the comment on the previous line or the line comment on the specified line, if any\n * @property {number} line Current line number\n */\n\n/**\n * Tokenizes the given .proto source and returns an object with useful utility functions.\n * @param {string} source Source contents\n * @param {boolean} alternateCommentMode Whether we should activate alternate comment parsing mode.\n * @returns {ITokenizerHandle} Tokenizer handle\n */\nfunction tokenize(source, alternateCommentMode) {\n /* eslint-disable callback-return */\n source = source.toString();\n\n var offset = 0,\n length = source.length,\n line = 1,\n lastCommentLine = 0,\n comments = {};\n\n var stack = [];\n\n var stringDelim = null;\n\n /* istanbul ignore next */\n /**\n * Creates an error for illegal syntax.\n * @param {string} subject Subject\n * @returns {Error} Error created\n * @inner\n */\n function illegal(subject) {\n return Error(\"illegal \" + subject + \" (line \" + line + \")\");\n }\n\n /**\n * Reads a string till its end.\n * @returns {string} String read\n * @inner\n */\n function readString() {\n var re = stringDelim === \"'\" ? stringSingleRe : stringDoubleRe;\n re.lastIndex = offset - 1;\n var match = re.exec(source);\n if (!match)\n throw illegal(\"string\");\n offset = re.lastIndex;\n push(stringDelim);\n stringDelim = null;\n return unescape(match[1]);\n }\n\n /**\n * Gets the character at `pos` within the source.\n * @param {number} pos Position\n * @returns {string} Character\n * @inner\n */\n function charAt(pos) {\n return source.charAt(pos);\n }\n\n /**\n * Sets the current comment text.\n * @param {number} start Start offset\n * @param {number} end End offset\n * @param {boolean} isLeading set if a leading comment\n * @returns {undefined}\n * @inner\n */\n function setComment(start, end, isLeading) {\n var comment = {\n type: source.charAt(start++),\n lineEmpty: false,\n leading: isLeading,\n };\n var lookback;\n if (alternateCommentMode) {\n lookback = 2; // alternate comment parsing: \"//\" or \"/*\"\n } else {\n lookback = 3; // \"///\" or \"/**\"\n }\n var commentOffset = start - lookback,\n c;\n do {\n if (--commentOffset < 0 ||\n (c = source.charAt(commentOffset)) === \"\\n\") {\n comment.lineEmpty = true;\n break;\n }\n } while (c === \" \" || c === \"\\t\");\n var lines = source\n .substring(start, end)\n .split(setCommentSplitRe);\n for (var i = 0; i < lines.length; ++i)\n lines[i] = lines[i]\n .replace(alternateCommentMode ? setCommentAltRe : setCommentRe, \"\")\n .trim();\n comment.text = lines\n .join(\"\\n\")\n .trim();\n\n comments[line] = comment;\n lastCommentLine = line;\n }\n\n function isDoubleSlashCommentLine(startOffset) {\n var endOffset = findEndOfLine(startOffset);\n\n // see if remaining line matches comment pattern\n var lineText = source.substring(startOffset, endOffset);\n var isComment = /^\\s*\\/\\//.test(lineText);\n return isComment;\n }\n\n function findEndOfLine(cursor) {\n // find end of cursor's line\n var endOffset = cursor;\n while (endOffset < length && charAt(endOffset) !== \"\\n\") {\n endOffset++;\n }\n return endOffset;\n }\n\n /**\n * Obtains the next token.\n * @returns {string|null} Next token or `null` on eof\n * @inner\n */\n function next() {\n if (stack.length > 0)\n return stack.shift();\n if (stringDelim)\n return readString();\n var repeat,\n prev,\n curr,\n start,\n isDoc,\n isLeadingComment = offset === 0;\n do {\n if (offset === length)\n return null;\n repeat = false;\n while (whitespaceRe.test(curr = charAt(offset))) {\n if (curr === \"\\n\") {\n isLeadingComment = true;\n ++line;\n }\n if (++offset === length)\n return null;\n }\n\n if (charAt(offset) === \"/\") {\n if (++offset === length) {\n throw illegal(\"comment\");\n }\n if (charAt(offset) === \"/\") { // Line\n if (!alternateCommentMode) {\n // check for triple-slash comment\n isDoc = charAt(start = offset + 1) === \"/\";\n\n while (charAt(++offset) !== \"\\n\") {\n if (offset === length) {\n return null;\n }\n }\n ++offset;\n if (isDoc) {\n setComment(start, offset - 1, isLeadingComment);\n // Trailing comment cannot not be multi-line,\n // so leading comment state should be reset to handle potential next comments\n isLeadingComment = true;\n }\n ++line;\n repeat = true;\n } else {\n // check for double-slash comments, consolidating consecutive lines\n start = offset;\n isDoc = false;\n if (isDoubleSlashCommentLine(offset - 1)) {\n isDoc = true;\n do {\n offset = findEndOfLine(offset);\n if (offset === length) {\n break;\n }\n offset++;\n if (!isLeadingComment) {\n // Trailing comment cannot not be multi-line\n break;\n }\n } while (isDoubleSlashCommentLine(offset));\n } else {\n offset = Math.min(length, findEndOfLine(offset) + 1);\n }\n if (isDoc) {\n setComment(start, offset, isLeadingComment);\n isLeadingComment = true;\n }\n line++;\n repeat = true;\n }\n } else if ((curr = charAt(offset)) === \"*\") { /* Block */\n // check for /** (regular comment mode) or /* (alternate comment mode)\n start = offset + 1;\n isDoc = alternateCommentMode || charAt(start) === \"*\";\n do {\n if (curr === \"\\n\") {\n ++line;\n }\n if (++offset === length) {\n throw illegal(\"comment\");\n }\n prev = curr;\n curr = charAt(offset);\n } while (prev !== \"*\" || curr !== \"/\");\n ++offset;\n if (isDoc) {\n setComment(start, offset - 2, isLeadingComment);\n isLeadingComment = true;\n }\n repeat = true;\n } else {\n return \"/\";\n }\n }\n } while (repeat);\n\n // offset !== length if we got here\n\n var end = offset;\n delimRe.lastIndex = 0;\n var delim = delimRe.test(charAt(end++));\n if (!delim)\n while (end < length && !delimRe.test(charAt(end)))\n ++end;\n var token = source.substring(offset, offset = end);\n if (token === \"\\\"\" || token === \"'\")\n stringDelim = token;\n return token;\n }\n\n /**\n * Pushes a token back to the stack.\n * @param {string} token Token\n * @returns {undefined}\n * @inner\n */\n function push(token) {\n stack.push(token);\n }\n\n /**\n * Peeks for the next token.\n * @returns {string|null} Token or `null` on eof\n * @inner\n */\n function peek() {\n if (!stack.length) {\n var token = next();\n if (token === null)\n return null;\n push(token);\n }\n return stack[0];\n }\n\n /**\n * Skips a token.\n * @param {string} expected Expected token\n * @param {boolean} [optional=false] Whether the token is optional\n * @returns {boolean} `true` when skipped, `false` if not\n * @throws {Error} When a required token is not present\n * @inner\n */\n function skip(expected, optional) {\n var actual = peek(),\n equals = actual === expected;\n if (equals) {\n next();\n return true;\n }\n if (!optional)\n throw illegal(\"token '\" + actual + \"', '\" + expected + \"' expected\");\n return false;\n }\n\n /**\n * Gets a comment.\n * @param {number} [trailingLine] Line number if looking for a trailing comment\n * @returns {string|null} Comment text\n * @inner\n */\n function cmnt(trailingLine) {\n var ret = null;\n var comment;\n if (trailingLine === undefined) {\n comment = comments[line - 1];\n delete comments[line - 1];\n if (comment && (alternateCommentMode || comment.type === \"*\" || comment.lineEmpty)) {\n ret = comment.leading ? comment.text : null;\n }\n } else {\n /* istanbul ignore else */\n if (lastCommentLine < trailingLine) {\n peek();\n }\n comment = comments[trailingLine];\n delete comments[trailingLine];\n if (comment && !comment.lineEmpty && (alternateCommentMode || comment.type === \"/\")) {\n ret = comment.leading ? null : comment.text;\n }\n }\n return ret;\n }\n\n return Object.defineProperty({\n next: next,\n peek: peek,\n push: push,\n skip: skip,\n cmnt: cmnt\n }, \"line\", {\n get: function() { return line; }\n });\n /* eslint-enable callback-return */\n}\n","\"use strict\";\nmodule.exports = Type;\n\n// extends Namespace\nvar Namespace = require(\"./namespace\");\n((Type.prototype = Object.create(Namespace.prototype)).constructor = Type).className = \"Type\";\n\nvar Enum = require(\"./enum\"),\n OneOf = require(\"./oneof\"),\n Field = require(\"./field\"),\n MapField = require(\"./mapfield\"),\n Service = require(\"./service\"),\n Message = require(\"./message\"),\n Reader = require(\"./reader\"),\n Writer = require(\"./writer\"),\n util = require(\"./util\"),\n encoder = require(\"./encoder\"),\n decoder = require(\"./decoder\"),\n verifier = require(\"./verifier\"),\n converter = require(\"./converter\"),\n wrappers = require(\"./wrappers\");\n\n/**\n * Constructs a new reflected message type instance.\n * @classdesc Reflected message type.\n * @extends NamespaceBase\n * @constructor\n * @param {string} name Message name\n * @param {Object.} [options] Declared options\n */\nfunction Type(name, options) {\n Namespace.call(this, name, options);\n\n /**\n * Message fields.\n * @type {Object.}\n */\n this.fields = {}; // toJSON, marker\n\n /**\n * Oneofs declared within this namespace, if any.\n * @type {Object.}\n */\n this.oneofs = undefined; // toJSON\n\n /**\n * Extension ranges, if any.\n * @type {number[][]}\n */\n this.extensions = undefined; // toJSON\n\n /**\n * Reserved ranges, if any.\n * @type {Array.}\n */\n this.reserved = undefined; // toJSON\n\n /*?\n * Whether this type is a legacy group.\n * @type {boolean|undefined}\n */\n this.group = undefined; // toJSON\n\n /**\n * Cached fields by id.\n * @type {Object.|null}\n * @private\n */\n this._fieldsById = null;\n\n /**\n * Cached fields as an array.\n * @type {Field[]|null}\n * @private\n */\n this._fieldsArray = null;\n\n /**\n * Cached oneofs as an array.\n * @type {OneOf[]|null}\n * @private\n */\n this._oneofsArray = null;\n\n /**\n * Cached constructor.\n * @type {Constructor<{}>}\n * @private\n */\n this._ctor = null;\n}\n\nObject.defineProperties(Type.prototype, {\n\n /**\n * Message fields by id.\n * @name Type#fieldsById\n * @type {Object.}\n * @readonly\n */\n fieldsById: {\n get: function() {\n\n /* istanbul ignore if */\n if (this._fieldsById)\n return this._fieldsById;\n\n this._fieldsById = {};\n for (var names = Object.keys(this.fields), i = 0; i < names.length; ++i) {\n var field = this.fields[names[i]],\n id = field.id;\n\n /* istanbul ignore if */\n if (this._fieldsById[id])\n throw Error(\"duplicate id \" + id + \" in \" + this);\n\n this._fieldsById[id] = field;\n }\n return this._fieldsById;\n }\n },\n\n /**\n * Fields of this message as an array for iteration.\n * @name Type#fieldsArray\n * @type {Field[]}\n * @readonly\n */\n fieldsArray: {\n get: function() {\n return this._fieldsArray || (this._fieldsArray = util.toArray(this.fields));\n }\n },\n\n /**\n * Oneofs of this message as an array for iteration.\n * @name Type#oneofsArray\n * @type {OneOf[]}\n * @readonly\n */\n oneofsArray: {\n get: function() {\n return this._oneofsArray || (this._oneofsArray = util.toArray(this.oneofs));\n }\n },\n\n /**\n * The registered constructor, if any registered, otherwise a generic constructor.\n * Assigning a function replaces the internal constructor. If the function does not extend {@link Message} yet, its prototype will be setup accordingly and static methods will be populated. If it already extends {@link Message}, it will just replace the internal constructor.\n * @name Type#ctor\n * @type {Constructor<{}>}\n */\n ctor: {\n get: function() {\n return this._ctor || (this.ctor = Type.generateConstructor(this)());\n },\n set: function(ctor) {\n\n // Ensure proper prototype\n var prototype = ctor.prototype;\n if (!(prototype instanceof Message)) {\n (ctor.prototype = new Message()).constructor = ctor;\n util.merge(ctor.prototype, prototype);\n }\n\n // Classes and messages reference their reflected type\n ctor.$type = ctor.prototype.$type = this;\n\n // Mix in static methods\n util.merge(ctor, Message, true);\n\n this._ctor = ctor;\n\n // Messages have non-enumerable default values on their prototype\n var i = 0;\n for (; i < /* initializes */ this.fieldsArray.length; ++i)\n this._fieldsArray[i].resolve(); // ensures a proper value\n\n // Messages have non-enumerable getters and setters for each virtual oneof field\n var ctorProperties = {};\n for (i = 0; i < /* initializes */ this.oneofsArray.length; ++i)\n ctorProperties[this._oneofsArray[i].resolve().name] = {\n get: util.oneOfGetter(this._oneofsArray[i].oneof),\n set: util.oneOfSetter(this._oneofsArray[i].oneof)\n };\n if (i)\n Object.defineProperties(ctor.prototype, ctorProperties);\n }\n }\n});\n\n/**\n * Generates a constructor function for the specified type.\n * @param {Type} mtype Message type\n * @returns {Codegen} Codegen instance\n */\nType.generateConstructor = function generateConstructor(mtype) {\n /* eslint-disable no-unexpected-multiline */\n var gen = util.codegen([\"p\"], mtype.name);\n // explicitly initialize mutable object/array fields so that these aren't just inherited from the prototype\n for (var i = 0, field; i < mtype.fieldsArray.length; ++i)\n if ((field = mtype._fieldsArray[i]).map) gen\n (\"this%s={}\", util.safeProp(field.name));\n else if (field.repeated) gen\n (\"this%s=[]\", util.safeProp(field.name));\n return gen\n (\"if(p)for(var ks=Object.keys(p),i=0;i} [oneofs] Oneof descriptors\n * @property {Object.} fields Field descriptors\n * @property {number[][]} [extensions] Extension ranges\n * @property {Array.} [reserved] Reserved ranges\n * @property {boolean} [group=false] Whether a legacy group or not\n */\n\n/**\n * Creates a message type from a message type descriptor.\n * @param {string} name Message name\n * @param {IType} json Message type descriptor\n * @returns {Type} Created message type\n */\nType.fromJSON = function fromJSON(name, json) {\n var type = new Type(name, json.options);\n type.extensions = json.extensions;\n type.reserved = json.reserved;\n var names = Object.keys(json.fields),\n i = 0;\n for (; i < names.length; ++i)\n type.add(\n ( typeof json.fields[names[i]].keyType !== \"undefined\"\n ? MapField.fromJSON\n : Field.fromJSON )(names[i], json.fields[names[i]])\n );\n if (json.oneofs)\n for (names = Object.keys(json.oneofs), i = 0; i < names.length; ++i)\n type.add(OneOf.fromJSON(names[i], json.oneofs[names[i]]));\n if (json.nested)\n for (names = Object.keys(json.nested), i = 0; i < names.length; ++i) {\n var nested = json.nested[names[i]];\n type.add( // most to least likely\n ( nested.id !== undefined\n ? Field.fromJSON\n : nested.fields !== undefined\n ? Type.fromJSON\n : nested.values !== undefined\n ? Enum.fromJSON\n : nested.methods !== undefined\n ? Service.fromJSON\n : Namespace.fromJSON )(names[i], nested)\n );\n }\n if (json.extensions && json.extensions.length)\n type.extensions = json.extensions;\n if (json.reserved && json.reserved.length)\n type.reserved = json.reserved;\n if (json.group)\n type.group = true;\n if (json.comment)\n type.comment = json.comment;\n if (json.edition)\n type._edition = json.edition;\n type._defaultEdition = \"proto3\"; // For backwards-compatibility.\n return type;\n};\n\n/**\n * Converts this message type to a message type descriptor.\n * @param {IToJSONOptions} [toJSONOptions] JSON conversion options\n * @returns {IType} Message type descriptor\n */\nType.prototype.toJSON = function toJSON(toJSONOptions) {\n var inherited = Namespace.prototype.toJSON.call(this, toJSONOptions);\n var keepComments = toJSONOptions ? Boolean(toJSONOptions.keepComments) : false;\n return util.toObject([\n \"edition\" , this._editionToJSON(),\n \"options\" , inherited && inherited.options || undefined,\n \"oneofs\" , Namespace.arrayToJSON(this.oneofsArray, toJSONOptions),\n \"fields\" , Namespace.arrayToJSON(this.fieldsArray.filter(function(obj) { return !obj.declaringField; }), toJSONOptions) || {},\n \"extensions\" , this.extensions && this.extensions.length ? this.extensions : undefined,\n \"reserved\" , this.reserved && this.reserved.length ? this.reserved : undefined,\n \"group\" , this.group || undefined,\n \"nested\" , inherited && inherited.nested || undefined,\n \"comment\" , keepComments ? this.comment : undefined\n ]);\n};\n\n/**\n * @override\n */\nType.prototype.resolveAll = function resolveAll() {\n if (!this._needsRecursiveResolve) return this;\n\n Namespace.prototype.resolveAll.call(this);\n var oneofs = this.oneofsArray; i = 0;\n while (i < oneofs.length)\n oneofs[i++].resolve();\n var fields = this.fieldsArray, i = 0;\n while (i < fields.length)\n fields[i++].resolve();\n return this;\n};\n\n/**\n * @override\n */\nType.prototype._resolveFeaturesRecursive = function _resolveFeaturesRecursive(edition) {\n if (!this._needsRecursiveFeatureResolution) return this;\n\n edition = this._edition || edition;\n\n Namespace.prototype._resolveFeaturesRecursive.call(this, edition);\n this.oneofsArray.forEach(oneof => {\n oneof._resolveFeatures(edition);\n });\n this.fieldsArray.forEach(field => {\n field._resolveFeatures(edition);\n });\n return this;\n};\n\n/**\n * @override\n */\nType.prototype.get = function get(name) {\n return this.fields[name]\n || this.oneofs && this.oneofs[name]\n || this.nested && this.nested[name]\n || null;\n};\n\n/**\n * Adds a nested object to this type.\n * @param {ReflectionObject} object Nested object to add\n * @returns {Type} `this`\n * @throws {TypeError} If arguments are invalid\n * @throws {Error} If there is already a nested object with this name or, if a field, when there is already a field with this id\n */\nType.prototype.add = function add(object) {\n\n if (this.get(object.name))\n throw Error(\"duplicate name '\" + object.name + \"' in \" + this);\n\n if (object instanceof Field && object.extend === undefined) {\n // NOTE: Extension fields aren't actual fields on the declaring type, but nested objects.\n // The root object takes care of adding distinct sister-fields to the respective extended\n // type instead.\n\n // avoids calling the getter if not absolutely necessary because it's called quite frequently\n if (this._fieldsById ? /* istanbul ignore next */ this._fieldsById[object.id] : this.fieldsById[object.id])\n throw Error(\"duplicate id \" + object.id + \" in \" + this);\n if (this.isReservedId(object.id))\n throw Error(\"id \" + object.id + \" is reserved in \" + this);\n if (this.isReservedName(object.name))\n throw Error(\"name '\" + object.name + \"' is reserved in \" + this);\n\n if (object.parent)\n object.parent.remove(object);\n this.fields[object.name] = object;\n object.message = this;\n object.onAdd(this);\n return clearCache(this);\n }\n if (object instanceof OneOf) {\n if (!this.oneofs)\n this.oneofs = {};\n this.oneofs[object.name] = object;\n object.onAdd(this);\n return clearCache(this);\n }\n return Namespace.prototype.add.call(this, object);\n};\n\n/**\n * Removes a nested object from this type.\n * @param {ReflectionObject} object Nested object to remove\n * @returns {Type} `this`\n * @throws {TypeError} If arguments are invalid\n * @throws {Error} If `object` is not a member of this type\n */\nType.prototype.remove = function remove(object) {\n if (object instanceof Field && object.extend === undefined) {\n // See Type#add for the reason why extension fields are excluded here.\n\n /* istanbul ignore if */\n if (!this.fields || this.fields[object.name] !== object)\n throw Error(object + \" is not a member of \" + this);\n\n delete this.fields[object.name];\n object.parent = null;\n object.onRemove(this);\n return clearCache(this);\n }\n if (object instanceof OneOf) {\n\n /* istanbul ignore if */\n if (!this.oneofs || this.oneofs[object.name] !== object)\n throw Error(object + \" is not a member of \" + this);\n\n delete this.oneofs[object.name];\n object.parent = null;\n object.onRemove(this);\n return clearCache(this);\n }\n return Namespace.prototype.remove.call(this, object);\n};\n\n/**\n * Tests if the specified id is reserved.\n * @param {number} id Id to test\n * @returns {boolean} `true` if reserved, otherwise `false`\n */\nType.prototype.isReservedId = function isReservedId(id) {\n return Namespace.isReservedId(this.reserved, id);\n};\n\n/**\n * Tests if the specified name is reserved.\n * @param {string} name Name to test\n * @returns {boolean} `true` if reserved, otherwise `false`\n */\nType.prototype.isReservedName = function isReservedName(name) {\n return Namespace.isReservedName(this.reserved, name);\n};\n\n/**\n * Creates a new message of this type using the specified properties.\n * @param {Object.} [properties] Properties to set\n * @returns {Message<{}>} Message instance\n */\nType.prototype.create = function create(properties) {\n return new this.ctor(properties);\n};\n\n/**\n * Sets up {@link Type#encode|encode}, {@link Type#decode|decode} and {@link Type#verify|verify}.\n * @returns {Type} `this`\n */\nType.prototype.setup = function setup() {\n // Sets up everything at once so that the prototype chain does not have to be re-evaluated\n // multiple times (V8, soft-deopt prototype-check).\n\n var fullName = this.fullName,\n types = [];\n for (var i = 0; i < /* initializes */ this.fieldsArray.length; ++i)\n types.push(this._fieldsArray[i].resolve().resolvedType);\n\n // Replace setup methods with type-specific generated functions\n this.encode = encoder(this)({\n Writer : Writer,\n types : types,\n util : util\n });\n this.decode = decoder(this)({\n Reader : Reader,\n types : types,\n util : util\n });\n this.verify = verifier(this)({\n types : types,\n util : util\n });\n this.fromObject = converter.fromObject(this)({\n types : types,\n util : util\n });\n this.toObject = converter.toObject(this)({\n types : types,\n util : util\n });\n\n // Inject custom wrappers for common types\n var wrapper = wrappers[fullName];\n if (wrapper) {\n var originalThis = Object.create(this);\n // if (wrapper.fromObject) {\n originalThis.fromObject = this.fromObject;\n this.fromObject = wrapper.fromObject.bind(originalThis);\n // }\n // if (wrapper.toObject) {\n originalThis.toObject = this.toObject;\n this.toObject = wrapper.toObject.bind(originalThis);\n // }\n }\n\n return this;\n};\n\n/**\n * Encodes a message of this type. Does not implicitly {@link Type#verify|verify} messages.\n * @param {Message<{}>|Object.} message Message instance or plain object\n * @param {Writer} [writer] Writer to encode to\n * @returns {Writer} writer\n */\nType.prototype.encode = function encode_setup(message, writer) {\n return this.setup().encode(message, writer); // overrides this method\n};\n\n/**\n * Encodes a message of this type preceeded by its byte length as a varint. Does not implicitly {@link Type#verify|verify} messages.\n * @param {Message<{}>|Object.} message Message instance or plain object\n * @param {Writer} [writer] Writer to encode to\n * @returns {Writer} writer\n */\nType.prototype.encodeDelimited = function encodeDelimited(message, writer) {\n return this.encode(message, writer && writer.len ? writer.fork() : writer).ldelim();\n};\n\n/**\n * Decodes a message of this type.\n * @param {Reader|Uint8Array} reader Reader or buffer to decode from\n * @param {number} [length] Length of the message, if known beforehand\n * @returns {Message<{}>} Decoded message\n * @throws {Error} If the payload is not a reader or valid buffer\n * @throws {util.ProtocolError<{}>} If required fields are missing\n */\nType.prototype.decode = function decode_setup(reader, length) {\n return this.setup().decode(reader, length); // overrides this method\n};\n\n/**\n * Decodes a message of this type preceeded by its byte length as a varint.\n * @param {Reader|Uint8Array} reader Reader or buffer to decode from\n * @returns {Message<{}>} Decoded message\n * @throws {Error} If the payload is not a reader or valid buffer\n * @throws {util.ProtocolError} If required fields are missing\n */\nType.prototype.decodeDelimited = function decodeDelimited(reader) {\n if (!(reader instanceof Reader))\n reader = Reader.create(reader);\n return this.decode(reader, reader.uint32());\n};\n\n/**\n * Verifies that field values are valid and that required fields are present.\n * @param {Object.} message Plain object to verify\n * @returns {null|string} `null` if valid, otherwise the reason why it is not\n */\nType.prototype.verify = function verify_setup(message) {\n return this.setup().verify(message); // overrides this method\n};\n\n/**\n * Creates a new message of this type from a plain object. Also converts values to their respective internal types.\n * @param {Object.} object Plain object to convert\n * @returns {Message<{}>} Message instance\n */\nType.prototype.fromObject = function fromObject(object) {\n return this.setup().fromObject(object);\n};\n\n/**\n * Conversion options as used by {@link Type#toObject} and {@link Message.toObject}.\n * @interface IConversionOptions\n * @property {Function} [longs] Long conversion type.\n * Valid values are `String` and `Number` (the global types).\n * Defaults to copy the present value, which is a possibly unsafe number without and a {@link Long} with a long library.\n * @property {Function} [enums] Enum value conversion type.\n * Only valid value is `String` (the global type).\n * Defaults to copy the present value, which is the numeric id.\n * @property {Function} [bytes] Bytes value conversion type.\n * Valid values are `Array` and (a base64 encoded) `String` (the global types).\n * Defaults to copy the present value, which usually is a Buffer under node and an Uint8Array in the browser.\n * @property {boolean} [defaults=false] Also sets default values on the resulting object\n * @property {boolean} [arrays=false] Sets empty arrays for missing repeated fields even if `defaults=false`\n * @property {boolean} [objects=false] Sets empty objects for missing map fields even if `defaults=false`\n * @property {boolean} [oneofs=false] Includes virtual oneof properties set to the present field's name, if any\n * @property {boolean} [json=false] Performs additional JSON compatibility conversions, i.e. NaN and Infinity to strings\n */\n\n/**\n * Creates a plain object from a message of this type. Also converts values to other types if specified.\n * @param {Message<{}>} message Message instance\n * @param {IConversionOptions} [options] Conversion options\n * @returns {Object.} Plain object\n */\nType.prototype.toObject = function toObject(message, options) {\n return this.setup().toObject(message, options);\n};\n\n/**\n * Decorator function as returned by {@link Type.d} (TypeScript).\n * @typedef TypeDecorator\n * @type {function}\n * @param {Constructor} target Target constructor\n * @returns {undefined}\n * @template T extends Message\n */\n\n/**\n * Type decorator (TypeScript).\n * @param {string} [typeName] Type name, defaults to the constructor's name\n * @returns {TypeDecorator} Decorator function\n * @template T extends Message\n */\nType.d = function decorateType(typeName) {\n return function typeDecorator(target) {\n util.decorateType(target, typeName);\n };\n};\n","\"use strict\";\n\n/**\n * Common type constants.\n * @namespace\n */\nvar types = exports;\n\nvar util = require(\"./util\");\n\nvar s = [\n \"double\", // 0\n \"float\", // 1\n \"int32\", // 2\n \"uint32\", // 3\n \"sint32\", // 4\n \"fixed32\", // 5\n \"sfixed32\", // 6\n \"int64\", // 7\n \"uint64\", // 8\n \"sint64\", // 9\n \"fixed64\", // 10\n \"sfixed64\", // 11\n \"bool\", // 12\n \"string\", // 13\n \"bytes\" // 14\n];\n\nfunction bake(values, offset) {\n var i = 0, o = {};\n offset |= 0;\n while (i < values.length) o[s[i + offset]] = values[i++];\n return o;\n}\n\n/**\n * Basic type wire types.\n * @type {Object.}\n * @const\n * @property {number} double=1 Fixed64 wire type\n * @property {number} float=5 Fixed32 wire type\n * @property {number} int32=0 Varint wire type\n * @property {number} uint32=0 Varint wire type\n * @property {number} sint32=0 Varint wire type\n * @property {number} fixed32=5 Fixed32 wire type\n * @property {number} sfixed32=5 Fixed32 wire type\n * @property {number} int64=0 Varint wire type\n * @property {number} uint64=0 Varint wire type\n * @property {number} sint64=0 Varint wire type\n * @property {number} fixed64=1 Fixed64 wire type\n * @property {number} sfixed64=1 Fixed64 wire type\n * @property {number} bool=0 Varint wire type\n * @property {number} string=2 Ldelim wire type\n * @property {number} bytes=2 Ldelim wire type\n */\ntypes.basic = bake([\n /* double */ 1,\n /* float */ 5,\n /* int32 */ 0,\n /* uint32 */ 0,\n /* sint32 */ 0,\n /* fixed32 */ 5,\n /* sfixed32 */ 5,\n /* int64 */ 0,\n /* uint64 */ 0,\n /* sint64 */ 0,\n /* fixed64 */ 1,\n /* sfixed64 */ 1,\n /* bool */ 0,\n /* string */ 2,\n /* bytes */ 2\n]);\n\n/**\n * Basic type defaults.\n * @type {Object.}\n * @const\n * @property {number} double=0 Double default\n * @property {number} float=0 Float default\n * @property {number} int32=0 Int32 default\n * @property {number} uint32=0 Uint32 default\n * @property {number} sint32=0 Sint32 default\n * @property {number} fixed32=0 Fixed32 default\n * @property {number} sfixed32=0 Sfixed32 default\n * @property {number} int64=0 Int64 default\n * @property {number} uint64=0 Uint64 default\n * @property {number} sint64=0 Sint32 default\n * @property {number} fixed64=0 Fixed64 default\n * @property {number} sfixed64=0 Sfixed64 default\n * @property {boolean} bool=false Bool default\n * @property {string} string=\"\" String default\n * @property {Array.} bytes=Array(0) Bytes default\n * @property {null} message=null Message default\n */\ntypes.defaults = bake([\n /* double */ 0,\n /* float */ 0,\n /* int32 */ 0,\n /* uint32 */ 0,\n /* sint32 */ 0,\n /* fixed32 */ 0,\n /* sfixed32 */ 0,\n /* int64 */ 0,\n /* uint64 */ 0,\n /* sint64 */ 0,\n /* fixed64 */ 0,\n /* sfixed64 */ 0,\n /* bool */ false,\n /* string */ \"\",\n /* bytes */ util.emptyArray,\n /* message */ null\n]);\n\n/**\n * Basic long type wire types.\n * @type {Object.}\n * @const\n * @property {number} int64=0 Varint wire type\n * @property {number} uint64=0 Varint wire type\n * @property {number} sint64=0 Varint wire type\n * @property {number} fixed64=1 Fixed64 wire type\n * @property {number} sfixed64=1 Fixed64 wire type\n */\ntypes.long = bake([\n /* int64 */ 0,\n /* uint64 */ 0,\n /* sint64 */ 0,\n /* fixed64 */ 1,\n /* sfixed64 */ 1\n], 7);\n\n/**\n * Allowed types for map keys with their associated wire type.\n * @type {Object.}\n * @const\n * @property {number} int32=0 Varint wire type\n * @property {number} uint32=0 Varint wire type\n * @property {number} sint32=0 Varint wire type\n * @property {number} fixed32=5 Fixed32 wire type\n * @property {number} sfixed32=5 Fixed32 wire type\n * @property {number} int64=0 Varint wire type\n * @property {number} uint64=0 Varint wire type\n * @property {number} sint64=0 Varint wire type\n * @property {number} fixed64=1 Fixed64 wire type\n * @property {number} sfixed64=1 Fixed64 wire type\n * @property {number} bool=0 Varint wire type\n * @property {number} string=2 Ldelim wire type\n */\ntypes.mapKey = bake([\n /* int32 */ 0,\n /* uint32 */ 0,\n /* sint32 */ 0,\n /* fixed32 */ 5,\n /* sfixed32 */ 5,\n /* int64 */ 0,\n /* uint64 */ 0,\n /* sint64 */ 0,\n /* fixed64 */ 1,\n /* sfixed64 */ 1,\n /* bool */ 0,\n /* string */ 2\n], 2);\n\n/**\n * Allowed types for packed repeated fields with their associated wire type.\n * @type {Object.}\n * @const\n * @property {number} double=1 Fixed64 wire type\n * @property {number} float=5 Fixed32 wire type\n * @property {number} int32=0 Varint wire type\n * @property {number} uint32=0 Varint wire type\n * @property {number} sint32=0 Varint wire type\n * @property {number} fixed32=5 Fixed32 wire type\n * @property {number} sfixed32=5 Fixed32 wire type\n * @property {number} int64=0 Varint wire type\n * @property {number} uint64=0 Varint wire type\n * @property {number} sint64=0 Varint wire type\n * @property {number} fixed64=1 Fixed64 wire type\n * @property {number} sfixed64=1 Fixed64 wire type\n * @property {number} bool=0 Varint wire type\n */\ntypes.packed = bake([\n /* double */ 1,\n /* float */ 5,\n /* int32 */ 0,\n /* uint32 */ 0,\n /* sint32 */ 0,\n /* fixed32 */ 5,\n /* sfixed32 */ 5,\n /* int64 */ 0,\n /* uint64 */ 0,\n /* sint64 */ 0,\n /* fixed64 */ 1,\n /* sfixed64 */ 1,\n /* bool */ 0\n]);\n","\"use strict\";\n\n/**\n * Various utility functions.\n * @namespace\n */\nvar util = module.exports = require(\"./util/minimal\");\n\nvar roots = require(\"./roots\");\n\nvar Type, // cyclic\n Enum;\n\nutil.codegen = require(\"@protobufjs/codegen\");\nutil.fetch = require(\"@protobufjs/fetch\");\nutil.path = require(\"@protobufjs/path\");\n\n/**\n * Node's fs module if available.\n * @type {Object.}\n */\nutil.fs = util.inquire(\"fs\");\n\n/**\n * Converts an object's values to an array.\n * @param {Object.} object Object to convert\n * @returns {Array.<*>} Converted array\n */\nutil.toArray = function toArray(object) {\n if (object) {\n var keys = Object.keys(object),\n array = new Array(keys.length),\n index = 0;\n while (index < keys.length)\n array[index] = object[keys[index++]];\n return array;\n }\n return [];\n};\n\n/**\n * Converts an array of keys immediately followed by their respective value to an object, omitting undefined values.\n * @param {Array.<*>} array Array to convert\n * @returns {Object.} Converted object\n */\nutil.toObject = function toObject(array) {\n var object = {},\n index = 0;\n while (index < array.length) {\n var key = array[index++],\n val = array[index++];\n if (val !== undefined)\n object[key] = val;\n }\n return object;\n};\n\nvar safePropBackslashRe = /\\\\/g,\n safePropQuoteRe = /\"/g;\n\n/**\n * Tests whether the specified name is a reserved word in JS.\n * @param {string} name Name to test\n * @returns {boolean} `true` if reserved, otherwise `false`\n */\nutil.isReserved = function isReserved(name) {\n return /^(?:do|if|in|for|let|new|try|var|case|else|enum|eval|false|null|this|true|void|with|break|catch|class|const|super|throw|while|yield|delete|export|import|public|return|static|switch|typeof|default|extends|finally|package|private|continue|debugger|function|arguments|interface|protected|implements|instanceof)$/.test(name);\n};\n\n/**\n * Returns a safe property accessor for the specified property name.\n * @param {string} prop Property name\n * @returns {string} Safe accessor\n */\nutil.safeProp = function safeProp(prop) {\n if (!/^[$\\w_]+$/.test(prop) || util.isReserved(prop))\n return \"[\\\"\" + prop.replace(safePropBackslashRe, \"\\\\\\\\\").replace(safePropQuoteRe, \"\\\\\\\"\") + \"\\\"]\";\n return \".\" + prop;\n};\n\n/**\n * Converts the first character of a string to upper case.\n * @param {string} str String to convert\n * @returns {string} Converted string\n */\nutil.ucFirst = function ucFirst(str) {\n return str.charAt(0).toUpperCase() + str.substring(1);\n};\n\nvar camelCaseRe = /_([a-z])/g;\n\n/**\n * Converts a string to camel case.\n * @param {string} str String to convert\n * @returns {string} Converted string\n */\nutil.camelCase = function camelCase(str) {\n return str.substring(0, 1)\n + str.substring(1)\n .replace(camelCaseRe, function($0, $1) { return $1.toUpperCase(); });\n};\n\n/**\n * Compares reflected fields by id.\n * @param {Field} a First field\n * @param {Field} b Second field\n * @returns {number} Comparison value\n */\nutil.compareFieldsById = function compareFieldsById(a, b) {\n return a.id - b.id;\n};\n\n/**\n * Decorator helper for types (TypeScript).\n * @param {Constructor} ctor Constructor function\n * @param {string} [typeName] Type name, defaults to the constructor's name\n * @returns {Type} Reflected type\n * @template T extends Message\n * @property {Root} root Decorators root\n */\nutil.decorateType = function decorateType(ctor, typeName) {\n\n /* istanbul ignore if */\n if (ctor.$type) {\n if (typeName && ctor.$type.name !== typeName) {\n util.decorateRoot.remove(ctor.$type);\n ctor.$type.name = typeName;\n util.decorateRoot.add(ctor.$type);\n }\n return ctor.$type;\n }\n\n /* istanbul ignore next */\n if (!Type)\n Type = require(\"./type\");\n\n var type = new Type(typeName || ctor.name);\n util.decorateRoot.add(type);\n type.ctor = ctor; // sets up .encode, .decode etc.\n Object.defineProperty(ctor, \"$type\", { value: type, enumerable: false });\n Object.defineProperty(ctor.prototype, \"$type\", { value: type, enumerable: false });\n return type;\n};\n\nvar decorateEnumIndex = 0;\n\n/**\n * Decorator helper for enums (TypeScript).\n * @param {Object} object Enum object\n * @returns {Enum} Reflected enum\n */\nutil.decorateEnum = function decorateEnum(object) {\n\n /* istanbul ignore if */\n if (object.$type)\n return object.$type;\n\n /* istanbul ignore next */\n if (!Enum)\n Enum = require(\"./enum\");\n\n var enm = new Enum(\"Enum\" + decorateEnumIndex++, object);\n util.decorateRoot.add(enm);\n Object.defineProperty(object, \"$type\", { value: enm, enumerable: false });\n return enm;\n};\n\n\n/**\n * Sets the value of a property by property path. If a value already exists, it is turned to an array\n * @param {Object.} dst Destination object\n * @param {string} path dot '.' delimited path of the property to set\n * @param {Object} value the value to set\n * @param {boolean|undefined} [ifNotSet] Sets the option only if it isn't currently set\n * @returns {Object.} Destination object\n */\nutil.setProperty = function setProperty(dst, path, value, ifNotSet) {\n function setProp(dst, path, value) {\n var part = path.shift();\n if (part === \"__proto__\" || part === \"prototype\") {\n return dst;\n }\n if (path.length > 0) {\n dst[part] = setProp(dst[part] || {}, path, value);\n } else {\n var prevValue = dst[part];\n if (prevValue && ifNotSet)\n return dst;\n if (prevValue)\n value = [].concat(prevValue).concat(value);\n dst[part] = value;\n }\n return dst;\n }\n\n if (typeof dst !== \"object\")\n throw TypeError(\"dst must be an object\");\n if (!path)\n throw TypeError(\"path must be specified\");\n\n path = path.split(\".\");\n return setProp(dst, path, value);\n};\n\n/**\n * Decorator root (TypeScript).\n * @name util.decorateRoot\n * @type {Root}\n * @readonly\n */\nObject.defineProperty(util, \"decorateRoot\", {\n get: function() {\n return roots[\"decorated\"] || (roots[\"decorated\"] = new (require(\"./root\"))());\n }\n});\n","\"use strict\";\nmodule.exports = LongBits;\n\nvar util = require(\"../util/minimal\");\n\n/**\n * Constructs new long bits.\n * @classdesc Helper class for working with the low and high bits of a 64 bit value.\n * @memberof util\n * @constructor\n * @param {number} lo Low 32 bits, unsigned\n * @param {number} hi High 32 bits, unsigned\n */\nfunction LongBits(lo, hi) {\n\n // note that the casts below are theoretically unnecessary as of today, but older statically\n // generated converter code might still call the ctor with signed 32bits. kept for compat.\n\n /**\n * Low bits.\n * @type {number}\n */\n this.lo = lo >>> 0;\n\n /**\n * High bits.\n * @type {number}\n */\n this.hi = hi >>> 0;\n}\n\n/**\n * Zero bits.\n * @memberof util.LongBits\n * @type {util.LongBits}\n */\nvar zero = LongBits.zero = new LongBits(0, 0);\n\nzero.toNumber = function() { return 0; };\nzero.zzEncode = zero.zzDecode = function() { return this; };\nzero.length = function() { return 1; };\n\n/**\n * Zero hash.\n * @memberof util.LongBits\n * @type {string}\n */\nvar zeroHash = LongBits.zeroHash = \"\\0\\0\\0\\0\\0\\0\\0\\0\";\n\n/**\n * Constructs new long bits from the specified number.\n * @param {number} value Value\n * @returns {util.LongBits} Instance\n */\nLongBits.fromNumber = function fromNumber(value) {\n if (value === 0)\n return zero;\n var sign = value < 0;\n if (sign)\n value = -value;\n var lo = value >>> 0,\n hi = (value - lo) / 4294967296 >>> 0;\n if (sign) {\n hi = ~hi >>> 0;\n lo = ~lo >>> 0;\n if (++lo > 4294967295) {\n lo = 0;\n if (++hi > 4294967295)\n hi = 0;\n }\n }\n return new LongBits(lo, hi);\n};\n\n/**\n * Constructs new long bits from a number, long or string.\n * @param {Long|number|string} value Value\n * @returns {util.LongBits} Instance\n */\nLongBits.from = function from(value) {\n if (typeof value === \"number\")\n return LongBits.fromNumber(value);\n if (util.isString(value)) {\n /* istanbul ignore else */\n if (util.Long)\n value = util.Long.fromString(value);\n else\n return LongBits.fromNumber(parseInt(value, 10));\n }\n return value.low || value.high ? new LongBits(value.low >>> 0, value.high >>> 0) : zero;\n};\n\n/**\n * Converts this long bits to a possibly unsafe JavaScript number.\n * @param {boolean} [unsigned=false] Whether unsigned or not\n * @returns {number} Possibly unsafe number\n */\nLongBits.prototype.toNumber = function toNumber(unsigned) {\n if (!unsigned && this.hi >>> 31) {\n var lo = ~this.lo + 1 >>> 0,\n hi = ~this.hi >>> 0;\n if (!lo)\n hi = hi + 1 >>> 0;\n return -(lo + hi * 4294967296);\n }\n return this.lo + this.hi * 4294967296;\n};\n\n/**\n * Converts this long bits to a long.\n * @param {boolean} [unsigned=false] Whether unsigned or not\n * @returns {Long} Long\n */\nLongBits.prototype.toLong = function toLong(unsigned) {\n return util.Long\n ? new util.Long(this.lo | 0, this.hi | 0, Boolean(unsigned))\n /* istanbul ignore next */\n : { low: this.lo | 0, high: this.hi | 0, unsigned: Boolean(unsigned) };\n};\n\nvar charCodeAt = String.prototype.charCodeAt;\n\n/**\n * Constructs new long bits from the specified 8 characters long hash.\n * @param {string} hash Hash\n * @returns {util.LongBits} Bits\n */\nLongBits.fromHash = function fromHash(hash) {\n if (hash === zeroHash)\n return zero;\n return new LongBits(\n ( charCodeAt.call(hash, 0)\n | charCodeAt.call(hash, 1) << 8\n | charCodeAt.call(hash, 2) << 16\n | charCodeAt.call(hash, 3) << 24) >>> 0\n ,\n ( charCodeAt.call(hash, 4)\n | charCodeAt.call(hash, 5) << 8\n | charCodeAt.call(hash, 6) << 16\n | charCodeAt.call(hash, 7) << 24) >>> 0\n );\n};\n\n/**\n * Converts this long bits to a 8 characters long hash.\n * @returns {string} Hash\n */\nLongBits.prototype.toHash = function toHash() {\n return String.fromCharCode(\n this.lo & 255,\n this.lo >>> 8 & 255,\n this.lo >>> 16 & 255,\n this.lo >>> 24 ,\n this.hi & 255,\n this.hi >>> 8 & 255,\n this.hi >>> 16 & 255,\n this.hi >>> 24\n );\n};\n\n/**\n * Zig-zag encodes this long bits.\n * @returns {util.LongBits} `this`\n */\nLongBits.prototype.zzEncode = function zzEncode() {\n var mask = this.hi >> 31;\n this.hi = ((this.hi << 1 | this.lo >>> 31) ^ mask) >>> 0;\n this.lo = ( this.lo << 1 ^ mask) >>> 0;\n return this;\n};\n\n/**\n * Zig-zag decodes this long bits.\n * @returns {util.LongBits} `this`\n */\nLongBits.prototype.zzDecode = function zzDecode() {\n var mask = -(this.lo & 1);\n this.lo = ((this.lo >>> 1 | this.hi << 31) ^ mask) >>> 0;\n this.hi = ( this.hi >>> 1 ^ mask) >>> 0;\n return this;\n};\n\n/**\n * Calculates the length of this longbits when encoded as a varint.\n * @returns {number} Length\n */\nLongBits.prototype.length = function length() {\n var part0 = this.lo,\n part1 = (this.lo >>> 28 | this.hi << 4) >>> 0,\n part2 = this.hi >>> 24;\n return part2 === 0\n ? part1 === 0\n ? part0 < 16384\n ? part0 < 128 ? 1 : 2\n : part0 < 2097152 ? 3 : 4\n : part1 < 16384\n ? part1 < 128 ? 5 : 6\n : part1 < 2097152 ? 7 : 8\n : part2 < 128 ? 9 : 10;\n};\n","\"use strict\";\nvar util = exports;\n\n// used to return a Promise where callback is omitted\nutil.asPromise = require(\"@protobufjs/aspromise\");\n\n// converts to / from base64 encoded strings\nutil.base64 = require(\"@protobufjs/base64\");\n\n// base class of rpc.Service\nutil.EventEmitter = require(\"@protobufjs/eventemitter\");\n\n// float handling accross browsers\nutil.float = require(\"@protobufjs/float\");\n\n// requires modules optionally and hides the call from bundlers\nutil.inquire = require(\"@protobufjs/inquire\");\n\n// converts to / from utf8 encoded strings\nutil.utf8 = require(\"@protobufjs/utf8\");\n\n// provides a node-like buffer pool in the browser\nutil.pool = require(\"@protobufjs/pool\");\n\n// utility to work with the low and high bits of a 64 bit value\nutil.LongBits = require(\"./longbits\");\n\n/**\n * Whether running within node or not.\n * @memberof util\n * @type {boolean}\n */\nutil.isNode = Boolean(typeof global !== \"undefined\"\n && global\n && global.process\n && global.process.versions\n && global.process.versions.node);\n\n/**\n * Global object reference.\n * @memberof util\n * @type {Object}\n */\nutil.global = util.isNode && global\n || typeof window !== \"undefined\" && window\n || typeof self !== \"undefined\" && self\n || this; // eslint-disable-line no-invalid-this\n\n/**\n * An immuable empty array.\n * @memberof util\n * @type {Array.<*>}\n * @const\n */\nutil.emptyArray = Object.freeze ? Object.freeze([]) : /* istanbul ignore next */ []; // used on prototypes\n\n/**\n * An immutable empty object.\n * @type {Object}\n * @const\n */\nutil.emptyObject = Object.freeze ? Object.freeze({}) : /* istanbul ignore next */ {}; // used on prototypes\n\n/**\n * Tests if the specified value is an integer.\n * @function\n * @param {*} value Value to test\n * @returns {boolean} `true` if the value is an integer\n */\nutil.isInteger = Number.isInteger || /* istanbul ignore next */ function isInteger(value) {\n return typeof value === \"number\" && isFinite(value) && Math.floor(value) === value;\n};\n\n/**\n * Tests if the specified value is a string.\n * @param {*} value Value to test\n * @returns {boolean} `true` if the value is a string\n */\nutil.isString = function isString(value) {\n return typeof value === \"string\" || value instanceof String;\n};\n\n/**\n * Tests if the specified value is a non-null object.\n * @param {*} value Value to test\n * @returns {boolean} `true` if the value is a non-null object\n */\nutil.isObject = function isObject(value) {\n return value && typeof value === \"object\";\n};\n\n/**\n * Checks if a property on a message is considered to be present.\n * This is an alias of {@link util.isSet}.\n * @function\n * @param {Object} obj Plain object or message instance\n * @param {string} prop Property name\n * @returns {boolean} `true` if considered to be present, otherwise `false`\n */\nutil.isset =\n\n/**\n * Checks if a property on a message is considered to be present.\n * @param {Object} obj Plain object or message instance\n * @param {string} prop Property name\n * @returns {boolean} `true` if considered to be present, otherwise `false`\n */\nutil.isSet = function isSet(obj, prop) {\n var value = obj[prop];\n if (value != null && obj.hasOwnProperty(prop)) // eslint-disable-line eqeqeq, no-prototype-builtins\n return typeof value !== \"object\" || (Array.isArray(value) ? value.length : Object.keys(value).length) > 0;\n return false;\n};\n\n/**\n * Any compatible Buffer instance.\n * This is a minimal stand-alone definition of a Buffer instance. The actual type is that exported by node's typings.\n * @interface Buffer\n * @extends Uint8Array\n */\n\n/**\n * Node's Buffer class if available.\n * @type {Constructor}\n */\nutil.Buffer = (function() {\n try {\n var Buffer = util.inquire(\"buffer\").Buffer;\n // refuse to use non-node buffers if not explicitly assigned (perf reasons):\n return Buffer.prototype.utf8Write ? Buffer : /* istanbul ignore next */ null;\n } catch (e) {\n /* istanbul ignore next */\n return null;\n }\n})();\n\n// Internal alias of or polyfull for Buffer.from.\nutil._Buffer_from = null;\n\n// Internal alias of or polyfill for Buffer.allocUnsafe.\nutil._Buffer_allocUnsafe = null;\n\n/**\n * Creates a new buffer of whatever type supported by the environment.\n * @param {number|number[]} [sizeOrArray=0] Buffer size or number array\n * @returns {Uint8Array|Buffer} Buffer\n */\nutil.newBuffer = function newBuffer(sizeOrArray) {\n /* istanbul ignore next */\n return typeof sizeOrArray === \"number\"\n ? util.Buffer\n ? util._Buffer_allocUnsafe(sizeOrArray)\n : new util.Array(sizeOrArray)\n : util.Buffer\n ? util._Buffer_from(sizeOrArray)\n : typeof Uint8Array === \"undefined\"\n ? sizeOrArray\n : new Uint8Array(sizeOrArray);\n};\n\n/**\n * Array implementation used in the browser. `Uint8Array` if supported, otherwise `Array`.\n * @type {Constructor}\n */\nutil.Array = typeof Uint8Array !== \"undefined\" ? Uint8Array /* istanbul ignore next */ : Array;\n\n/**\n * Any compatible Long instance.\n * This is a minimal stand-alone definition of a Long instance. The actual type is that exported by long.js.\n * @interface Long\n * @property {number} low Low bits\n * @property {number} high High bits\n * @property {boolean} unsigned Whether unsigned or not\n */\n\n/**\n * Long.js's Long class if available.\n * @type {Constructor}\n */\nutil.Long = /* istanbul ignore next */ util.global.dcodeIO && /* istanbul ignore next */ util.global.dcodeIO.Long\n || /* istanbul ignore next */ util.global.Long\n || util.inquire(\"long\");\n\n/**\n * Regular expression used to verify 2 bit (`bool`) map keys.\n * @type {RegExp}\n * @const\n */\nutil.key2Re = /^true|false|0|1$/;\n\n/**\n * Regular expression used to verify 32 bit (`int32` etc.) map keys.\n * @type {RegExp}\n * @const\n */\nutil.key32Re = /^-?(?:0|[1-9][0-9]*)$/;\n\n/**\n * Regular expression used to verify 64 bit (`int64` etc.) map keys.\n * @type {RegExp}\n * @const\n */\nutil.key64Re = /^(?:[\\\\x00-\\\\xff]{8}|-?(?:0|[1-9][0-9]*))$/;\n\n/**\n * Converts a number or long to an 8 characters long hash string.\n * @param {Long|number} value Value to convert\n * @returns {string} Hash\n */\nutil.longToHash = function longToHash(value) {\n return value\n ? util.LongBits.from(value).toHash()\n : util.LongBits.zeroHash;\n};\n\n/**\n * Converts an 8 characters long hash string to a long or number.\n * @param {string} hash Hash\n * @param {boolean} [unsigned=false] Whether unsigned or not\n * @returns {Long|number} Original value\n */\nutil.longFromHash = function longFromHash(hash, unsigned) {\n var bits = util.LongBits.fromHash(hash);\n if (util.Long)\n return util.Long.fromBits(bits.lo, bits.hi, unsigned);\n return bits.toNumber(Boolean(unsigned));\n};\n\n/**\n * Merges the properties of the source object into the destination object.\n * @memberof util\n * @param {Object.} dst Destination object\n * @param {Object.} src Source object\n * @param {boolean} [ifNotSet=false] Merges only if the key is not already set\n * @returns {Object.} Destination object\n */\nfunction merge(dst, src, ifNotSet) { // used by converters\n for (var keys = Object.keys(src), i = 0; i < keys.length; ++i)\n if (dst[keys[i]] === undefined || !ifNotSet)\n dst[keys[i]] = src[keys[i]];\n return dst;\n}\n\nutil.merge = merge;\n\n/**\n * Converts the first character of a string to lower case.\n * @param {string} str String to convert\n * @returns {string} Converted string\n */\nutil.lcFirst = function lcFirst(str) {\n return str.charAt(0).toLowerCase() + str.substring(1);\n};\n\n/**\n * Creates a custom error constructor.\n * @memberof util\n * @param {string} name Error name\n * @returns {Constructor} Custom error constructor\n */\nfunction newError(name) {\n\n function CustomError(message, properties) {\n\n if (!(this instanceof CustomError))\n return new CustomError(message, properties);\n\n // Error.call(this, message);\n // ^ just returns a new error instance because the ctor can be called as a function\n\n Object.defineProperty(this, \"message\", { get: function() { return message; } });\n\n /* istanbul ignore next */\n if (Error.captureStackTrace) // node\n Error.captureStackTrace(this, CustomError);\n else\n Object.defineProperty(this, \"stack\", { value: new Error().stack || \"\" });\n\n if (properties)\n merge(this, properties);\n }\n\n CustomError.prototype = Object.create(Error.prototype, {\n constructor: {\n value: CustomError,\n writable: true,\n enumerable: false,\n configurable: true,\n },\n name: {\n get: function get() { return name; },\n set: undefined,\n enumerable: false,\n // configurable: false would accurately preserve the behavior of\n // the original, but I'm guessing that was not intentional.\n // For an actual error subclass, this property would\n // be configurable.\n configurable: true,\n },\n toString: {\n value: function value() { return this.name + \": \" + this.message; },\n writable: true,\n enumerable: false,\n configurable: true,\n },\n });\n\n return CustomError;\n}\n\nutil.newError = newError;\n\n/**\n * Constructs a new protocol error.\n * @classdesc Error subclass indicating a protocol specifc error.\n * @memberof util\n * @extends Error\n * @template T extends Message\n * @constructor\n * @param {string} message Error message\n * @param {Object.} [properties] Additional properties\n * @example\n * try {\n * MyMessage.decode(someBuffer); // throws if required fields are missing\n * } catch (e) {\n * if (e instanceof ProtocolError && e.instance)\n * console.log(\"decoded so far: \" + JSON.stringify(e.instance));\n * }\n */\nutil.ProtocolError = newError(\"ProtocolError\");\n\n/**\n * So far decoded message instance.\n * @name util.ProtocolError#instance\n * @type {Message}\n */\n\n/**\n * A OneOf getter as returned by {@link util.oneOfGetter}.\n * @typedef OneOfGetter\n * @type {function}\n * @returns {string|undefined} Set field name, if any\n */\n\n/**\n * Builds a getter for a oneof's present field name.\n * @param {string[]} fieldNames Field names\n * @returns {OneOfGetter} Unbound getter\n */\nutil.oneOfGetter = function getOneOf(fieldNames) {\n var fieldMap = {};\n for (var i = 0; i < fieldNames.length; ++i)\n fieldMap[fieldNames[i]] = 1;\n\n /**\n * @returns {string|undefined} Set field name, if any\n * @this Object\n * @ignore\n */\n return function() { // eslint-disable-line consistent-return\n for (var keys = Object.keys(this), i = keys.length - 1; i > -1; --i)\n if (fieldMap[keys[i]] === 1 && this[keys[i]] !== undefined && this[keys[i]] !== null)\n return keys[i];\n };\n};\n\n/**\n * A OneOf setter as returned by {@link util.oneOfSetter}.\n * @typedef OneOfSetter\n * @type {function}\n * @param {string|undefined} value Field name\n * @returns {undefined}\n */\n\n/**\n * Builds a setter for a oneof's present field name.\n * @param {string[]} fieldNames Field names\n * @returns {OneOfSetter} Unbound setter\n */\nutil.oneOfSetter = function setOneOf(fieldNames) {\n\n /**\n * @param {string} name Field name\n * @returns {undefined}\n * @this Object\n * @ignore\n */\n return function(name) {\n for (var i = 0; i < fieldNames.length; ++i)\n if (fieldNames[i] !== name)\n delete this[fieldNames[i]];\n };\n};\n\n/**\n * Default conversion options used for {@link Message#toJSON} implementations.\n *\n * These options are close to proto3's JSON mapping with the exception that internal types like Any are handled just like messages. More precisely:\n *\n * - Longs become strings\n * - Enums become string keys\n * - Bytes become base64 encoded strings\n * - (Sub-)Messages become plain objects\n * - Maps become plain objects with all string keys\n * - Repeated fields become arrays\n * - NaN and Infinity for float and double fields become strings\n *\n * @type {IConversionOptions}\n * @see https://developers.google.com/protocol-buffers/docs/proto3?hl=en#json\n */\nutil.toJSONOptions = {\n longs: String,\n enums: String,\n bytes: String,\n json: true\n};\n\n// Sets up buffer utility according to the environment (called in index-minimal)\nutil._configure = function() {\n var Buffer = util.Buffer;\n /* istanbul ignore if */\n if (!Buffer) {\n util._Buffer_from = util._Buffer_allocUnsafe = null;\n return;\n }\n // because node 4.x buffers are incompatible & immutable\n // see: https://github.com/dcodeIO/protobuf.js/pull/665\n util._Buffer_from = Buffer.from !== Uint8Array.from && Buffer.from ||\n /* istanbul ignore next */\n function Buffer_from(value, encoding) {\n return new Buffer(value, encoding);\n };\n util._Buffer_allocUnsafe = Buffer.allocUnsafe ||\n /* istanbul ignore next */\n function Buffer_allocUnsafe(size) {\n return new Buffer(size);\n };\n};\n","\"use strict\";\nmodule.exports = verifier;\n\nvar Enum = require(\"./enum\"),\n util = require(\"./util\");\n\nfunction invalid(field, expected) {\n return field.name + \": \" + expected + (field.repeated && expected !== \"array\" ? \"[]\" : field.map && expected !== \"object\" ? \"{k:\"+field.keyType+\"}\" : \"\") + \" expected\";\n}\n\n/**\n * Generates a partial value verifier.\n * @param {Codegen} gen Codegen instance\n * @param {Field} field Reflected field\n * @param {number} fieldIndex Field index\n * @param {string} ref Variable reference\n * @returns {Codegen} Codegen instance\n * @ignore\n */\nfunction genVerifyValue(gen, field, fieldIndex, ref) {\n /* eslint-disable no-unexpected-multiline */\n if (field.resolvedType) {\n if (field.resolvedType instanceof Enum) { gen\n (\"switch(%s){\", ref)\n (\"default:\")\n (\"return%j\", invalid(field, \"enum value\"));\n for (var keys = Object.keys(field.resolvedType.values), j = 0; j < keys.length; ++j) gen\n (\"case %i:\", field.resolvedType.values[keys[j]]);\n gen\n (\"break\")\n (\"}\");\n } else {\n gen\n (\"{\")\n (\"var e=types[%i].verify(%s);\", fieldIndex, ref)\n (\"if(e)\")\n (\"return%j+e\", field.name + \".\")\n (\"}\");\n }\n } else {\n switch (field.type) {\n case \"int32\":\n case \"uint32\":\n case \"sint32\":\n case \"fixed32\":\n case \"sfixed32\": gen\n (\"if(!util.isInteger(%s))\", ref)\n (\"return%j\", invalid(field, \"integer\"));\n break;\n case \"int64\":\n case \"uint64\":\n case \"sint64\":\n case \"fixed64\":\n case \"sfixed64\": gen\n (\"if(!util.isInteger(%s)&&!(%s&&util.isInteger(%s.low)&&util.isInteger(%s.high)))\", ref, ref, ref, ref)\n (\"return%j\", invalid(field, \"integer|Long\"));\n break;\n case \"float\":\n case \"double\": gen\n (\"if(typeof %s!==\\\"number\\\")\", ref)\n (\"return%j\", invalid(field, \"number\"));\n break;\n case \"bool\": gen\n (\"if(typeof %s!==\\\"boolean\\\")\", ref)\n (\"return%j\", invalid(field, \"boolean\"));\n break;\n case \"string\": gen\n (\"if(!util.isString(%s))\", ref)\n (\"return%j\", invalid(field, \"string\"));\n break;\n case \"bytes\": gen\n (\"if(!(%s&&typeof %s.length===\\\"number\\\"||util.isString(%s)))\", ref, ref, ref)\n (\"return%j\", invalid(field, \"buffer\"));\n break;\n }\n }\n return gen;\n /* eslint-enable no-unexpected-multiline */\n}\n\n/**\n * Generates a partial key verifier.\n * @param {Codegen} gen Codegen instance\n * @param {Field} field Reflected field\n * @param {string} ref Variable reference\n * @returns {Codegen} Codegen instance\n * @ignore\n */\nfunction genVerifyKey(gen, field, ref) {\n /* eslint-disable no-unexpected-multiline */\n switch (field.keyType) {\n case \"int32\":\n case \"uint32\":\n case \"sint32\":\n case \"fixed32\":\n case \"sfixed32\": gen\n (\"if(!util.key32Re.test(%s))\", ref)\n (\"return%j\", invalid(field, \"integer key\"));\n break;\n case \"int64\":\n case \"uint64\":\n case \"sint64\":\n case \"fixed64\":\n case \"sfixed64\": gen\n (\"if(!util.key64Re.test(%s))\", ref) // see comment above: x is ok, d is not\n (\"return%j\", invalid(field, \"integer|Long key\"));\n break;\n case \"bool\": gen\n (\"if(!util.key2Re.test(%s))\", ref)\n (\"return%j\", invalid(field, \"boolean key\"));\n break;\n }\n return gen;\n /* eslint-enable no-unexpected-multiline */\n}\n\n/**\n * Generates a verifier specific to the specified message type.\n * @param {Type} mtype Message type\n * @returns {Codegen} Codegen instance\n */\nfunction verifier(mtype) {\n /* eslint-disable no-unexpected-multiline */\n\n var gen = util.codegen([\"m\"], mtype.name + \"$verify\")\n (\"if(typeof m!==\\\"object\\\"||m===null)\")\n (\"return%j\", \"object expected\");\n var oneofs = mtype.oneofsArray,\n seenFirstField = {};\n if (oneofs.length) gen\n (\"var p={}\");\n\n for (var i = 0; i < /* initializes */ mtype.fieldsArray.length; ++i) {\n var field = mtype._fieldsArray[i].resolve(),\n ref = \"m\" + util.safeProp(field.name);\n\n if (field.optional) gen\n (\"if(%s!=null&&m.hasOwnProperty(%j)){\", ref, field.name); // !== undefined && !== null\n\n // map fields\n if (field.map) { gen\n (\"if(!util.isObject(%s))\", ref)\n (\"return%j\", invalid(field, \"object\"))\n (\"var k=Object.keys(%s)\", ref)\n (\"for(var i=0;i}\n * @const\n */\nvar wrappers = exports;\n\nvar Message = require(\"./message\");\n\n/**\n * From object converter part of an {@link IWrapper}.\n * @typedef WrapperFromObjectConverter\n * @type {function}\n * @param {Object.} object Plain object\n * @returns {Message<{}>} Message instance\n * @this Type\n */\n\n/**\n * To object converter part of an {@link IWrapper}.\n * @typedef WrapperToObjectConverter\n * @type {function}\n * @param {Message<{}>} message Message instance\n * @param {IConversionOptions} [options] Conversion options\n * @returns {Object.} Plain object\n * @this Type\n */\n\n/**\n * Common type wrapper part of {@link wrappers}.\n * @interface IWrapper\n * @property {WrapperFromObjectConverter} [fromObject] From object converter\n * @property {WrapperToObjectConverter} [toObject] To object converter\n */\n\n// Custom wrapper for Any\nwrappers[\".google.protobuf.Any\"] = {\n\n fromObject: function(object) {\n\n // unwrap value type if mapped\n if (object && object[\"@type\"]) {\n // Only use fully qualified type name after the last '/'\n var name = object[\"@type\"].substring(object[\"@type\"].lastIndexOf(\"/\") + 1);\n var type = this.lookup(name);\n /* istanbul ignore else */\n if (type) {\n // type_url does not accept leading \".\"\n var type_url = object[\"@type\"].charAt(0) === \".\" ?\n object[\"@type\"].slice(1) : object[\"@type\"];\n // type_url prefix is optional, but path seperator is required\n if (type_url.indexOf(\"/\") === -1) {\n type_url = \"/\" + type_url;\n }\n return this.create({\n type_url: type_url,\n value: type.encode(type.fromObject(object)).finish()\n });\n }\n }\n\n return this.fromObject(object);\n },\n\n toObject: function(message, options) {\n\n // Default prefix\n var googleApi = \"type.googleapis.com/\";\n var prefix = \"\";\n var name = \"\";\n\n // decode value if requested and unmapped\n if (options && options.json && message.type_url && message.value) {\n // Only use fully qualified type name after the last '/'\n name = message.type_url.substring(message.type_url.lastIndexOf(\"/\") + 1);\n // Separate the prefix used\n prefix = message.type_url.substring(0, message.type_url.lastIndexOf(\"/\") + 1);\n var type = this.lookup(name);\n /* istanbul ignore else */\n if (type)\n message = type.decode(message.value);\n }\n\n // wrap value if unmapped\n if (!(message instanceof this.ctor) && message instanceof Message) {\n var object = message.$type.toObject(message, options);\n var messageName = message.$type.fullName[0] === \".\" ?\n message.$type.fullName.slice(1) : message.$type.fullName;\n // Default to type.googleapis.com prefix if no prefix is used\n if (prefix === \"\") {\n prefix = googleApi;\n }\n name = prefix + messageName;\n object[\"@type\"] = name;\n return object;\n }\n\n return this.toObject(message, options);\n }\n};\n","\"use strict\";\nmodule.exports = Writer;\n\nvar util = require(\"./util/minimal\");\n\nvar BufferWriter; // cyclic\n\nvar LongBits = util.LongBits,\n base64 = util.base64,\n utf8 = util.utf8;\n\n/**\n * Constructs a new writer operation instance.\n * @classdesc Scheduled writer operation.\n * @constructor\n * @param {function(*, Uint8Array, number)} fn Function to call\n * @param {number} len Value byte length\n * @param {*} val Value to write\n * @ignore\n */\nfunction Op(fn, len, val) {\n\n /**\n * Function to call.\n * @type {function(Uint8Array, number, *)}\n */\n this.fn = fn;\n\n /**\n * Value byte length.\n * @type {number}\n */\n this.len = len;\n\n /**\n * Next operation.\n * @type {Writer.Op|undefined}\n */\n this.next = undefined;\n\n /**\n * Value to write.\n * @type {*}\n */\n this.val = val; // type varies\n}\n\n/* istanbul ignore next */\nfunction noop() {} // eslint-disable-line no-empty-function\n\n/**\n * Constructs a new writer state instance.\n * @classdesc Copied writer state.\n * @memberof Writer\n * @constructor\n * @param {Writer} writer Writer to copy state from\n * @ignore\n */\nfunction State(writer) {\n\n /**\n * Current head.\n * @type {Writer.Op}\n */\n this.head = writer.head;\n\n /**\n * Current tail.\n * @type {Writer.Op}\n */\n this.tail = writer.tail;\n\n /**\n * Current buffer length.\n * @type {number}\n */\n this.len = writer.len;\n\n /**\n * Next state.\n * @type {State|null}\n */\n this.next = writer.states;\n}\n\n/**\n * Constructs a new writer instance.\n * @classdesc Wire format writer using `Uint8Array` if available, otherwise `Array`.\n * @constructor\n */\nfunction Writer() {\n\n /**\n * Current length.\n * @type {number}\n */\n this.len = 0;\n\n /**\n * Operations head.\n * @type {Object}\n */\n this.head = new Op(noop, 0, 0);\n\n /**\n * Operations tail\n * @type {Object}\n */\n this.tail = this.head;\n\n /**\n * Linked forked states.\n * @type {Object|null}\n */\n this.states = null;\n\n // When a value is written, the writer calculates its byte length and puts it into a linked\n // list of operations to perform when finish() is called. This both allows us to allocate\n // buffers of the exact required size and reduces the amount of work we have to do compared\n // to first calculating over objects and then encoding over objects. In our case, the encoding\n // part is just a linked list walk calling operations with already prepared values.\n}\n\nvar create = function create() {\n return util.Buffer\n ? function create_buffer_setup() {\n return (Writer.create = function create_buffer() {\n return new BufferWriter();\n })();\n }\n /* istanbul ignore next */\n : function create_array() {\n return new Writer();\n };\n};\n\n/**\n * Creates a new writer.\n * @function\n * @returns {BufferWriter|Writer} A {@link BufferWriter} when Buffers are supported, otherwise a {@link Writer}\n */\nWriter.create = create();\n\n/**\n * Allocates a buffer of the specified size.\n * @param {number} size Buffer size\n * @returns {Uint8Array} Buffer\n */\nWriter.alloc = function alloc(size) {\n return new util.Array(size);\n};\n\n// Use Uint8Array buffer pool in the browser, just like node does with buffers\n/* istanbul ignore else */\nif (util.Array !== Array)\n Writer.alloc = util.pool(Writer.alloc, util.Array.prototype.subarray);\n\n/**\n * Pushes a new operation to the queue.\n * @param {function(Uint8Array, number, *)} fn Function to call\n * @param {number} len Value byte length\n * @param {number} val Value to write\n * @returns {Writer} `this`\n * @private\n */\nWriter.prototype._push = function push(fn, len, val) {\n this.tail = this.tail.next = new Op(fn, len, val);\n this.len += len;\n return this;\n};\n\nfunction writeByte(val, buf, pos) {\n buf[pos] = val & 255;\n}\n\nfunction writeVarint32(val, buf, pos) {\n while (val > 127) {\n buf[pos++] = val & 127 | 128;\n val >>>= 7;\n }\n buf[pos] = val;\n}\n\n/**\n * Constructs a new varint writer operation instance.\n * @classdesc Scheduled varint writer operation.\n * @extends Op\n * @constructor\n * @param {number} len Value byte length\n * @param {number} val Value to write\n * @ignore\n */\nfunction VarintOp(len, val) {\n this.len = len;\n this.next = undefined;\n this.val = val;\n}\n\nVarintOp.prototype = Object.create(Op.prototype);\nVarintOp.prototype.fn = writeVarint32;\n\n/**\n * Writes an unsigned 32 bit value as a varint.\n * @param {number} value Value to write\n * @returns {Writer} `this`\n */\nWriter.prototype.uint32 = function write_uint32(value) {\n // here, the call to this.push has been inlined and a varint specific Op subclass is used.\n // uint32 is by far the most frequently used operation and benefits significantly from this.\n this.len += (this.tail = this.tail.next = new VarintOp(\n (value = value >>> 0)\n < 128 ? 1\n : value < 16384 ? 2\n : value < 2097152 ? 3\n : value < 268435456 ? 4\n : 5,\n value)).len;\n return this;\n};\n\n/**\n * Writes a signed 32 bit value as a varint.\n * @function\n * @param {number} value Value to write\n * @returns {Writer} `this`\n */\nWriter.prototype.int32 = function write_int32(value) {\n return value < 0\n ? this._push(writeVarint64, 10, LongBits.fromNumber(value)) // 10 bytes per spec\n : this.uint32(value);\n};\n\n/**\n * Writes a 32 bit value as a varint, zig-zag encoded.\n * @param {number} value Value to write\n * @returns {Writer} `this`\n */\nWriter.prototype.sint32 = function write_sint32(value) {\n return this.uint32((value << 1 ^ value >> 31) >>> 0);\n};\n\nfunction writeVarint64(val, buf, pos) {\n while (val.hi) {\n buf[pos++] = val.lo & 127 | 128;\n val.lo = (val.lo >>> 7 | val.hi << 25) >>> 0;\n val.hi >>>= 7;\n }\n while (val.lo > 127) {\n buf[pos++] = val.lo & 127 | 128;\n val.lo = val.lo >>> 7;\n }\n buf[pos++] = val.lo;\n}\n\n/**\n * Writes an unsigned 64 bit value as a varint.\n * @param {Long|number|string} value Value to write\n * @returns {Writer} `this`\n * @throws {TypeError} If `value` is a string and no long library is present.\n */\nWriter.prototype.uint64 = function write_uint64(value) {\n var bits = LongBits.from(value);\n return this._push(writeVarint64, bits.length(), bits);\n};\n\n/**\n * Writes a signed 64 bit value as a varint.\n * @function\n * @param {Long|number|string} value Value to write\n * @returns {Writer} `this`\n * @throws {TypeError} If `value` is a string and no long library is present.\n */\nWriter.prototype.int64 = Writer.prototype.uint64;\n\n/**\n * Writes a signed 64 bit value as a varint, zig-zag encoded.\n * @param {Long|number|string} value Value to write\n * @returns {Writer} `this`\n * @throws {TypeError} If `value` is a string and no long library is present.\n */\nWriter.prototype.sint64 = function write_sint64(value) {\n var bits = LongBits.from(value).zzEncode();\n return this._push(writeVarint64, bits.length(), bits);\n};\n\n/**\n * Writes a boolish value as a varint.\n * @param {boolean} value Value to write\n * @returns {Writer} `this`\n */\nWriter.prototype.bool = function write_bool(value) {\n return this._push(writeByte, 1, value ? 1 : 0);\n};\n\nfunction writeFixed32(val, buf, pos) {\n buf[pos ] = val & 255;\n buf[pos + 1] = val >>> 8 & 255;\n buf[pos + 2] = val >>> 16 & 255;\n buf[pos + 3] = val >>> 24;\n}\n\n/**\n * Writes an unsigned 32 bit value as fixed 32 bits.\n * @param {number} value Value to write\n * @returns {Writer} `this`\n */\nWriter.prototype.fixed32 = function write_fixed32(value) {\n return this._push(writeFixed32, 4, value >>> 0);\n};\n\n/**\n * Writes a signed 32 bit value as fixed 32 bits.\n * @function\n * @param {number} value Value to write\n * @returns {Writer} `this`\n */\nWriter.prototype.sfixed32 = Writer.prototype.fixed32;\n\n/**\n * Writes an unsigned 64 bit value as fixed 64 bits.\n * @param {Long|number|string} value Value to write\n * @returns {Writer} `this`\n * @throws {TypeError} If `value` is a string and no long library is present.\n */\nWriter.prototype.fixed64 = function write_fixed64(value) {\n var bits = LongBits.from(value);\n return this._push(writeFixed32, 4, bits.lo)._push(writeFixed32, 4, bits.hi);\n};\n\n/**\n * Writes a signed 64 bit value as fixed 64 bits.\n * @function\n * @param {Long|number|string} value Value to write\n * @returns {Writer} `this`\n * @throws {TypeError} If `value` is a string and no long library is present.\n */\nWriter.prototype.sfixed64 = Writer.prototype.fixed64;\n\n/**\n * Writes a float (32 bit).\n * @function\n * @param {number} value Value to write\n * @returns {Writer} `this`\n */\nWriter.prototype.float = function write_float(value) {\n return this._push(util.float.writeFloatLE, 4, value);\n};\n\n/**\n * Writes a double (64 bit float).\n * @function\n * @param {number} value Value to write\n * @returns {Writer} `this`\n */\nWriter.prototype.double = function write_double(value) {\n return this._push(util.float.writeDoubleLE, 8, value);\n};\n\nvar writeBytes = util.Array.prototype.set\n ? function writeBytes_set(val, buf, pos) {\n buf.set(val, pos); // also works for plain array values\n }\n /* istanbul ignore next */\n : function writeBytes_for(val, buf, pos) {\n for (var i = 0; i < val.length; ++i)\n buf[pos + i] = val[i];\n };\n\n/**\n * Writes a sequence of bytes.\n * @param {Uint8Array|string} value Buffer or base64 encoded string to write\n * @returns {Writer} `this`\n */\nWriter.prototype.bytes = function write_bytes(value) {\n var len = value.length >>> 0;\n if (!len)\n return this._push(writeByte, 1, 0);\n if (util.isString(value)) {\n var buf = Writer.alloc(len = base64.length(value));\n base64.decode(value, buf, 0);\n value = buf;\n }\n return this.uint32(len)._push(writeBytes, len, value);\n};\n\n/**\n * Writes a string.\n * @param {string} value Value to write\n * @returns {Writer} `this`\n */\nWriter.prototype.string = function write_string(value) {\n var len = utf8.length(value);\n return len\n ? this.uint32(len)._push(utf8.write, len, value)\n : this._push(writeByte, 1, 0);\n};\n\n/**\n * Forks this writer's state by pushing it to a stack.\n * Calling {@link Writer#reset|reset} or {@link Writer#ldelim|ldelim} resets the writer to the previous state.\n * @returns {Writer} `this`\n */\nWriter.prototype.fork = function fork() {\n this.states = new State(this);\n this.head = this.tail = new Op(noop, 0, 0);\n this.len = 0;\n return this;\n};\n\n/**\n * Resets this instance to the last state.\n * @returns {Writer} `this`\n */\nWriter.prototype.reset = function reset() {\n if (this.states) {\n this.head = this.states.head;\n this.tail = this.states.tail;\n this.len = this.states.len;\n this.states = this.states.next;\n } else {\n this.head = this.tail = new Op(noop, 0, 0);\n this.len = 0;\n }\n return this;\n};\n\n/**\n * Resets to the last state and appends the fork state's current write length as a varint followed by its operations.\n * @returns {Writer} `this`\n */\nWriter.prototype.ldelim = function ldelim() {\n var head = this.head,\n tail = this.tail,\n len = this.len;\n this.reset().uint32(len);\n if (len) {\n this.tail.next = head.next; // skip noop\n this.tail = tail;\n this.len += len;\n }\n return this;\n};\n\n/**\n * Finishes the write operation.\n * @returns {Uint8Array} Finished buffer\n */\nWriter.prototype.finish = function finish() {\n var head = this.head.next, // skip noop\n buf = this.constructor.alloc(this.len),\n pos = 0;\n while (head) {\n head.fn(head.val, buf, pos);\n pos += head.len;\n head = head.next;\n }\n // this.head = this.tail = null;\n return buf;\n};\n\nWriter._configure = function(BufferWriter_) {\n BufferWriter = BufferWriter_;\n Writer.create = create();\n BufferWriter._configure();\n};\n","\"use strict\";\nmodule.exports = BufferWriter;\n\n// extends Writer\nvar Writer = require(\"./writer\");\n(BufferWriter.prototype = Object.create(Writer.prototype)).constructor = BufferWriter;\n\nvar util = require(\"./util/minimal\");\n\n/**\n * Constructs a new buffer writer instance.\n * @classdesc Wire format writer using node buffers.\n * @extends Writer\n * @constructor\n */\nfunction BufferWriter() {\n Writer.call(this);\n}\n\nBufferWriter._configure = function () {\n /**\n * Allocates a buffer of the specified size.\n * @function\n * @param {number} size Buffer size\n * @returns {Buffer} Buffer\n */\n BufferWriter.alloc = util._Buffer_allocUnsafe;\n\n BufferWriter.writeBytesBuffer = util.Buffer && util.Buffer.prototype instanceof Uint8Array && util.Buffer.prototype.set.name === \"set\"\n ? function writeBytesBuffer_set(val, buf, pos) {\n buf.set(val, pos); // faster than copy (requires node >= 4 where Buffers extend Uint8Array and set is properly inherited)\n // also works for plain array values\n }\n /* istanbul ignore next */\n : function writeBytesBuffer_copy(val, buf, pos) {\n if (val.copy) // Buffer values\n val.copy(buf, pos, 0, val.length);\n else for (var i = 0; i < val.length;) // plain array values\n buf[pos++] = val[i++];\n };\n};\n\n\n/**\n * @override\n */\nBufferWriter.prototype.bytes = function write_bytes_buffer(value) {\n if (util.isString(value))\n value = util._Buffer_from(value, \"base64\");\n var len = value.length >>> 0;\n this.uint32(len);\n if (len)\n this._push(BufferWriter.writeBytesBuffer, len, value);\n return this;\n};\n\nfunction writeStringBuffer(val, buf, pos) {\n if (val.length < 40) // plain js is faster for short strings (probably due to redundant assertions)\n util.utf8.write(val, buf, pos);\n else if (buf.utf8Write)\n buf.utf8Write(val, pos);\n else\n buf.write(val, pos);\n}\n\n/**\n * @override\n */\nBufferWriter.prototype.string = function write_string_buffer(value) {\n var len = util.Buffer.byteLength(value);\n this.uint32(len);\n if (len)\n this._push(writeStringBuffer, len, value);\n return this;\n};\n\n\n/**\n * Finishes the write operation.\n * @name BufferWriter#finish\n * @function\n * @returns {Buffer} Finished buffer\n */\n\nBufferWriter._configure();\n"],"names":["Array","arguments","o","Promise","e","Math","s","i","String","Error","console","Object","Function","Number","JSON","r","XMLHttpRequest","Uint8Array","Float32Array","isNaN","NaN","Float64Array","module","inquire","moduleName","mod","eval","t","p","h","f","TypeError","u","c","n","b","parseInt","parseFloat","RangeError","setTimeout","d","global","window","self","isFinite"],"mappings":"2FACA,EAAO,OAAO,CAAG,EAmBjB,SAAS,EAAU,CAAE,CAAE,CAAG,EAKtB,IAJA,IAAI,EAAU,AAAIA,MAAMC,UAAU,MAAM,CAAG,GACvCC,EAAU,EACV,EAAU,EACV,EAAU,GACP,EAAQD,UAAU,MAAM,EAC3B,CAAM,CAACC,IAAS,CAAGD,SAAS,CAAC,IAAQ,CACzC,OAAO,IAAIE,QAAQ,SAAkB,CAAO,CAAE,CAAM,EAChD,CAAM,CAACD,EAAO,CAAG,SAAkBE,CAAG,EAClC,GAAI,EAEA,GADA,EAAU,GACNA,EACA,EAAOA,OACN,CAGD,IAFA,IAAI,EAAS,AAAIJ,MAAMC,UAAU,MAAM,CAAG,GACtC,EAAS,EACN,EAAS,EAAO,MAAM,EACzB,CAAM,CAAC,IAAS,CAAGA,SAAS,CAAC,EAAO,CACxC,EAAQ,KAAK,CAAC,KAAM,EACxB,CAER,EACA,GAAI,CACA,EAAG,KAAK,CAAC,GAAO,KAAM,EAC1B,CAAE,MAAOG,EAAK,CACN,IACA,EAAU,GACV,EAAOA,GAEf,CACJ,EACJ,C,gDC5CA,IAAI,EAAS,CAOb,GAAO,MAAM,CAAG,SAAgB,CAAM,EAClC,IAAI,EAAI,EAAO,MAAM,CACrB,GAAI,CAAC,EACD,OAAO,EAEX,IADA,IAAI,EAAI,EACD,EAA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A,IAAI,CAAC,KAAK,CAAC,EAAmB,EAAK,GAChC,IAAI,AACf,EAUA,EAAa,UAAU,E"} \ No newline at end of file diff --git a/packages/node_modules/protobufjs/minimal/index.js.map b/packages/node_modules/protobufjs/minimal/index.js.map new file mode 100644 index 00000000000..ceaa9ca86d8 --- /dev/null +++ b/packages/node_modules/protobufjs/minimal/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"protobufjs/minimal/index.js","sources":["webpack:///./@protobufjs/aspromise/index.js","webpack:///./@protobufjs/base64/index.js","webpack:///./@protobufjs/eventemitter/index.js","webpack:///./@protobufjs/float/index.js","webpack:///./@protobufjs/inquire/index.js","webpack:///./@protobufjs/pool/index.js","webpack:///./@protobufjs/utf8/index.js","webpack:///./protobufjs/minimal.js","webpack:///./protobufjs/src/index-minimal.js","webpack:///./protobufjs/src/reader.js","webpack:///./protobufjs/src/reader_buffer.js","webpack:///./protobufjs/src/roots.js","webpack:///./protobufjs/src/rpc.js","webpack:///./protobufjs/src/rpc/service.js","webpack:///./protobufjs/src/util/longbits.js","webpack:///./protobufjs/src/util/minimal.js","webpack:///./protobufjs/src/writer.js","webpack:///./protobufjs/src/writer_buffer.js"],"sourcesContent":["\"use strict\";\r\nmodule.exports = asPromise;\r\n\r\n/**\r\n * Callback as used by {@link util.asPromise}.\r\n * @typedef asPromiseCallback\r\n * @type {function}\r\n * @param {Error|null} error Error, if any\r\n * @param {...*} params Additional arguments\r\n * @returns {undefined}\r\n */\r\n\r\n/**\r\n * Returns a promise from a node-style callback function.\r\n * @memberof util\r\n * @param {asPromiseCallback} fn Function to call\r\n * @param {*} ctx Function context\r\n * @param {...*} params Function arguments\r\n * @returns {Promise<*>} Promisified function\r\n */\r\nfunction asPromise(fn, ctx/*, varargs */) {\r\n var params = new Array(arguments.length - 1),\r\n offset = 0,\r\n index = 2,\r\n pending = true;\r\n while (index < arguments.length)\r\n params[offset++] = arguments[index++];\r\n return new Promise(function executor(resolve, reject) {\r\n params[offset] = function callback(err/*, varargs */) {\r\n if (pending) {\r\n pending = false;\r\n if (err)\r\n reject(err);\r\n else {\r\n var params = new Array(arguments.length - 1),\r\n offset = 0;\r\n while (offset < params.length)\r\n params[offset++] = arguments[offset];\r\n resolve.apply(null, params);\r\n }\r\n }\r\n };\r\n try {\r\n fn.apply(ctx || null, params);\r\n } catch (err) {\r\n if (pending) {\r\n pending = false;\r\n reject(err);\r\n }\r\n }\r\n });\r\n}\r\n","\"use strict\";\r\n\r\n/**\r\n * A minimal base64 implementation for number arrays.\r\n * @memberof util\r\n * @namespace\r\n */\r\nvar base64 = exports;\r\n\r\n/**\r\n * Calculates the byte length of a base64 encoded string.\r\n * @param {string} string Base64 encoded string\r\n * @returns {number} Byte length\r\n */\r\nbase64.length = function length(string) {\r\n var p = string.length;\r\n if (!p)\r\n return 0;\r\n var n = 0;\r\n while (--p % 4 > 1 && string.charAt(p) === \"=\")\r\n ++n;\r\n return Math.ceil(string.length * 3) / 4 - n;\r\n};\r\n\r\n// Base64 encoding table\r\nvar b64 = new Array(64);\r\n\r\n// Base64 decoding table\r\nvar s64 = new Array(123);\r\n\r\n// 65..90, 97..122, 48..57, 43, 47\r\nfor (var i = 0; i < 64;)\r\n s64[b64[i] = i < 26 ? i + 65 : i < 52 ? i + 71 : i < 62 ? i - 4 : i - 59 | 43] = i++;\r\n\r\n/**\r\n * Encodes a buffer to a base64 encoded string.\r\n * @param {Uint8Array} buffer Source buffer\r\n * @param {number} start Source start\r\n * @param {number} end Source end\r\n * @returns {string} Base64 encoded string\r\n */\r\nbase64.encode = function encode(buffer, start, end) {\r\n var parts = null,\r\n chunk = [];\r\n var i = 0, // output index\r\n j = 0, // goto index\r\n t; // temporary\r\n while (start < end) {\r\n var b = buffer[start++];\r\n switch (j) {\r\n case 0:\r\n chunk[i++] = b64[b >> 2];\r\n t = (b & 3) << 4;\r\n j = 1;\r\n break;\r\n case 1:\r\n chunk[i++] = b64[t | b >> 4];\r\n t = (b & 15) << 2;\r\n j = 2;\r\n break;\r\n case 2:\r\n chunk[i++] = b64[t | b >> 6];\r\n chunk[i++] = b64[b & 63];\r\n j = 0;\r\n break;\r\n }\r\n if (i > 8191) {\r\n (parts || (parts = [])).push(String.fromCharCode.apply(String, chunk));\r\n i = 0;\r\n }\r\n }\r\n if (j) {\r\n chunk[i++] = b64[t];\r\n chunk[i++] = 61;\r\n if (j === 1)\r\n chunk[i++] = 61;\r\n }\r\n if (parts) {\r\n if (i)\r\n parts.push(String.fromCharCode.apply(String, chunk.slice(0, i)));\r\n return parts.join(\"\");\r\n }\r\n return String.fromCharCode.apply(String, chunk.slice(0, i));\r\n};\r\n\r\nvar invalidEncoding = \"invalid encoding\";\r\n\r\n/**\r\n * Decodes a base64 encoded string to a buffer.\r\n * @param {string} string Source string\r\n * @param {Uint8Array} buffer Destination buffer\r\n * @param {number} offset Destination offset\r\n * @returns {number} Number of bytes written\r\n * @throws {Error} If encoding is invalid\r\n */\r\nbase64.decode = function decode(string, buffer, offset) {\r\n var start = offset;\r\n var j = 0, // goto index\r\n t; // temporary\r\n for (var i = 0; i < string.length;) {\r\n var c = string.charCodeAt(i++);\r\n if (c === 61 && j > 1)\r\n break;\r\n if ((c = s64[c]) === undefined)\r\n throw Error(invalidEncoding);\r\n switch (j) {\r\n case 0:\r\n t = c;\r\n j = 1;\r\n break;\r\n case 1:\r\n buffer[offset++] = t << 2 | (c & 48) >> 4;\r\n t = c;\r\n j = 2;\r\n break;\r\n case 2:\r\n buffer[offset++] = (t & 15) << 4 | (c & 60) >> 2;\r\n t = c;\r\n j = 3;\r\n break;\r\n case 3:\r\n buffer[offset++] = (t & 3) << 6 | c;\r\n j = 0;\r\n break;\r\n }\r\n }\r\n if (j === 1)\r\n throw Error(invalidEncoding);\r\n return offset - start;\r\n};\r\n\r\n/**\r\n * Tests if the specified string appears to be base64 encoded.\r\n * @param {string} string String to test\r\n * @returns {boolean} `true` if probably base64 encoded, otherwise false\r\n */\r\nbase64.test = function test(string) {\r\n return /^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(string);\r\n};\r\n","\"use strict\";\r\nmodule.exports = EventEmitter;\r\n\r\n/**\r\n * Constructs a new event emitter instance.\r\n * @classdesc A minimal event emitter.\r\n * @memberof util\r\n * @constructor\r\n */\r\nfunction EventEmitter() {\r\n\r\n /**\r\n * Registered listeners.\r\n * @type {Object.}\r\n * @private\r\n */\r\n this._listeners = {};\r\n}\r\n\r\n/**\r\n * Registers an event listener.\r\n * @param {string} evt Event name\r\n * @param {function} fn Listener\r\n * @param {*} [ctx] Listener context\r\n * @returns {util.EventEmitter} `this`\r\n */\r\nEventEmitter.prototype.on = function on(evt, fn, ctx) {\r\n (this._listeners[evt] || (this._listeners[evt] = [])).push({\r\n fn : fn,\r\n ctx : ctx || this\r\n });\r\n return this;\r\n};\r\n\r\n/**\r\n * Removes an event listener or any matching listeners if arguments are omitted.\r\n * @param {string} [evt] Event name. Removes all listeners if omitted.\r\n * @param {function} [fn] Listener to remove. Removes all listeners of `evt` if omitted.\r\n * @returns {util.EventEmitter} `this`\r\n */\r\nEventEmitter.prototype.off = function off(evt, fn) {\r\n if (evt === undefined)\r\n this._listeners = {};\r\n else {\r\n if (fn === undefined)\r\n this._listeners[evt] = [];\r\n else {\r\n var listeners = this._listeners[evt];\r\n for (var i = 0; i < listeners.length;)\r\n if (listeners[i].fn === fn)\r\n listeners.splice(i, 1);\r\n else\r\n ++i;\r\n }\r\n }\r\n return this;\r\n};\r\n\r\n/**\r\n * Emits an event by calling its listeners with the specified arguments.\r\n * @param {string} evt Event name\r\n * @param {...*} args Arguments\r\n * @returns {util.EventEmitter} `this`\r\n */\r\nEventEmitter.prototype.emit = function emit(evt) {\r\n var listeners = this._listeners[evt];\r\n if (listeners) {\r\n var args = [],\r\n i = 1;\r\n for (; i < arguments.length;)\r\n args.push(arguments[i++]);\r\n for (i = 0; i < listeners.length;)\r\n listeners[i].fn.apply(listeners[i++].ctx, args);\r\n }\r\n return this;\r\n};\r\n","\"use strict\";\r\n\r\nmodule.exports = factory(factory);\r\n\r\n/**\r\n * Reads / writes floats / doubles from / to buffers.\r\n * @name util.float\r\n * @namespace\r\n */\r\n\r\n/**\r\n * Writes a 32 bit float to a buffer using little endian byte order.\r\n * @name util.float.writeFloatLE\r\n * @function\r\n * @param {number} val Value to write\r\n * @param {Uint8Array} buf Target buffer\r\n * @param {number} pos Target buffer offset\r\n * @returns {undefined}\r\n */\r\n\r\n/**\r\n * Writes a 32 bit float to a buffer using big endian byte order.\r\n * @name util.float.writeFloatBE\r\n * @function\r\n * @param {number} val Value to write\r\n * @param {Uint8Array} buf Target buffer\r\n * @param {number} pos Target buffer offset\r\n * @returns {undefined}\r\n */\r\n\r\n/**\r\n * Reads a 32 bit float from a buffer using little endian byte order.\r\n * @name util.float.readFloatLE\r\n * @function\r\n * @param {Uint8Array} buf Source buffer\r\n * @param {number} pos Source buffer offset\r\n * @returns {number} Value read\r\n */\r\n\r\n/**\r\n * Reads a 32 bit float from a buffer using big endian byte order.\r\n * @name util.float.readFloatBE\r\n * @function\r\n * @param {Uint8Array} buf Source buffer\r\n * @param {number} pos Source buffer offset\r\n * @returns {number} Value read\r\n */\r\n\r\n/**\r\n * Writes a 64 bit double to a buffer using little endian byte order.\r\n * @name util.float.writeDoubleLE\r\n * @function\r\n * @param {number} val Value to write\r\n * @param {Uint8Array} buf Target buffer\r\n * @param {number} pos Target buffer offset\r\n * @returns {undefined}\r\n */\r\n\r\n/**\r\n * Writes a 64 bit double to a buffer using big endian byte order.\r\n * @name util.float.writeDoubleBE\r\n * @function\r\n * @param {number} val Value to write\r\n * @param {Uint8Array} buf Target buffer\r\n * @param {number} pos Target buffer offset\r\n * @returns {undefined}\r\n */\r\n\r\n/**\r\n * Reads a 64 bit double from a buffer using little endian byte order.\r\n * @name util.float.readDoubleLE\r\n * @function\r\n * @param {Uint8Array} buf Source buffer\r\n * @param {number} pos Source buffer offset\r\n * @returns {number} Value read\r\n */\r\n\r\n/**\r\n * Reads a 64 bit double from a buffer using big endian byte order.\r\n * @name util.float.readDoubleBE\r\n * @function\r\n * @param {Uint8Array} buf Source buffer\r\n * @param {number} pos Source buffer offset\r\n * @returns {number} Value read\r\n */\r\n\r\n// Factory function for the purpose of node-based testing in modified global environments\r\nfunction factory(exports) {\r\n\r\n // float: typed array\r\n if (typeof Float32Array !== \"undefined\") (function() {\r\n\r\n var f32 = new Float32Array([ -0 ]),\r\n f8b = new Uint8Array(f32.buffer),\r\n le = f8b[3] === 128;\r\n\r\n function writeFloat_f32_cpy(val, buf, pos) {\r\n f32[0] = val;\r\n buf[pos ] = f8b[0];\r\n buf[pos + 1] = f8b[1];\r\n buf[pos + 2] = f8b[2];\r\n buf[pos + 3] = f8b[3];\r\n }\r\n\r\n function writeFloat_f32_rev(val, buf, pos) {\r\n f32[0] = val;\r\n buf[pos ] = f8b[3];\r\n buf[pos + 1] = f8b[2];\r\n buf[pos + 2] = f8b[1];\r\n buf[pos + 3] = f8b[0];\r\n }\r\n\r\n /* istanbul ignore next */\r\n exports.writeFloatLE = le ? writeFloat_f32_cpy : writeFloat_f32_rev;\r\n /* istanbul ignore next */\r\n exports.writeFloatBE = le ? writeFloat_f32_rev : writeFloat_f32_cpy;\r\n\r\n function readFloat_f32_cpy(buf, pos) {\r\n f8b[0] = buf[pos ];\r\n f8b[1] = buf[pos + 1];\r\n f8b[2] = buf[pos + 2];\r\n f8b[3] = buf[pos + 3];\r\n return f32[0];\r\n }\r\n\r\n function readFloat_f32_rev(buf, pos) {\r\n f8b[3] = buf[pos ];\r\n f8b[2] = buf[pos + 1];\r\n f8b[1] = buf[pos + 2];\r\n f8b[0] = buf[pos + 3];\r\n return f32[0];\r\n }\r\n\r\n /* istanbul ignore next */\r\n exports.readFloatLE = le ? readFloat_f32_cpy : readFloat_f32_rev;\r\n /* istanbul ignore next */\r\n exports.readFloatBE = le ? readFloat_f32_rev : readFloat_f32_cpy;\r\n\r\n // float: ieee754\r\n })(); else (function() {\r\n\r\n function writeFloat_ieee754(writeUint, val, buf, pos) {\r\n var sign = val < 0 ? 1 : 0;\r\n if (sign)\r\n val = -val;\r\n if (val === 0)\r\n writeUint(1 / val > 0 ? /* positive */ 0 : /* negative 0 */ 2147483648, buf, pos);\r\n else if (isNaN(val))\r\n writeUint(2143289344, buf, pos);\r\n else if (val > 3.4028234663852886e+38) // +-Infinity\r\n writeUint((sign << 31 | 2139095040) >>> 0, buf, pos);\r\n else if (val < 1.1754943508222875e-38) // denormal\r\n writeUint((sign << 31 | Math.round(val / 1.401298464324817e-45)) >>> 0, buf, pos);\r\n else {\r\n var exponent = Math.floor(Math.log(val) / Math.LN2),\r\n mantissa = Math.round(val * Math.pow(2, -exponent) * 8388608) & 8388607;\r\n writeUint((sign << 31 | exponent + 127 << 23 | mantissa) >>> 0, buf, pos);\r\n }\r\n }\r\n\r\n exports.writeFloatLE = writeFloat_ieee754.bind(null, writeUintLE);\r\n exports.writeFloatBE = writeFloat_ieee754.bind(null, writeUintBE);\r\n\r\n function readFloat_ieee754(readUint, buf, pos) {\r\n var uint = readUint(buf, pos),\r\n sign = (uint >> 31) * 2 + 1,\r\n exponent = uint >>> 23 & 255,\r\n mantissa = uint & 8388607;\r\n return exponent === 255\r\n ? mantissa\r\n ? NaN\r\n : sign * Infinity\r\n : exponent === 0 // denormal\r\n ? sign * 1.401298464324817e-45 * mantissa\r\n : sign * Math.pow(2, exponent - 150) * (mantissa + 8388608);\r\n }\r\n\r\n exports.readFloatLE = readFloat_ieee754.bind(null, readUintLE);\r\n exports.readFloatBE = readFloat_ieee754.bind(null, readUintBE);\r\n\r\n })();\r\n\r\n // double: typed array\r\n if (typeof Float64Array !== \"undefined\") (function() {\r\n\r\n var f64 = new Float64Array([-0]),\r\n f8b = new Uint8Array(f64.buffer),\r\n le = f8b[7] === 128;\r\n\r\n function writeDouble_f64_cpy(val, buf, pos) {\r\n f64[0] = val;\r\n buf[pos ] = f8b[0];\r\n buf[pos + 1] = f8b[1];\r\n buf[pos + 2] = f8b[2];\r\n buf[pos + 3] = f8b[3];\r\n buf[pos + 4] = f8b[4];\r\n buf[pos + 5] = f8b[5];\r\n buf[pos + 6] = f8b[6];\r\n buf[pos + 7] = f8b[7];\r\n }\r\n\r\n function writeDouble_f64_rev(val, buf, pos) {\r\n f64[0] = val;\r\n buf[pos ] = f8b[7];\r\n buf[pos + 1] = f8b[6];\r\n buf[pos + 2] = f8b[5];\r\n buf[pos + 3] = f8b[4];\r\n buf[pos + 4] = f8b[3];\r\n buf[pos + 5] = f8b[2];\r\n buf[pos + 6] = f8b[1];\r\n buf[pos + 7] = f8b[0];\r\n }\r\n\r\n /* istanbul ignore next */\r\n exports.writeDoubleLE = le ? writeDouble_f64_cpy : writeDouble_f64_rev;\r\n /* istanbul ignore next */\r\n exports.writeDoubleBE = le ? writeDouble_f64_rev : writeDouble_f64_cpy;\r\n\r\n function readDouble_f64_cpy(buf, pos) {\r\n f8b[0] = buf[pos ];\r\n f8b[1] = buf[pos + 1];\r\n f8b[2] = buf[pos + 2];\r\n f8b[3] = buf[pos + 3];\r\n f8b[4] = buf[pos + 4];\r\n f8b[5] = buf[pos + 5];\r\n f8b[6] = buf[pos + 6];\r\n f8b[7] = buf[pos + 7];\r\n return f64[0];\r\n }\r\n\r\n function readDouble_f64_rev(buf, pos) {\r\n f8b[7] = buf[pos ];\r\n f8b[6] = buf[pos + 1];\r\n f8b[5] = buf[pos + 2];\r\n f8b[4] = buf[pos + 3];\r\n f8b[3] = buf[pos + 4];\r\n f8b[2] = buf[pos + 5];\r\n f8b[1] = buf[pos + 6];\r\n f8b[0] = buf[pos + 7];\r\n return f64[0];\r\n }\r\n\r\n /* istanbul ignore next */\r\n exports.readDoubleLE = le ? readDouble_f64_cpy : readDouble_f64_rev;\r\n /* istanbul ignore next */\r\n exports.readDoubleBE = le ? readDouble_f64_rev : readDouble_f64_cpy;\r\n\r\n // double: ieee754\r\n })(); else (function() {\r\n\r\n function writeDouble_ieee754(writeUint, off0, off1, val, buf, pos) {\r\n var sign = val < 0 ? 1 : 0;\r\n if (sign)\r\n val = -val;\r\n if (val === 0) {\r\n writeUint(0, buf, pos + off0);\r\n writeUint(1 / val > 0 ? /* positive */ 0 : /* negative 0 */ 2147483648, buf, pos + off1);\r\n } else if (isNaN(val)) {\r\n writeUint(0, buf, pos + off0);\r\n writeUint(2146959360, buf, pos + off1);\r\n } else if (val > 1.7976931348623157e+308) { // +-Infinity\r\n writeUint(0, buf, pos + off0);\r\n writeUint((sign << 31 | 2146435072) >>> 0, buf, pos + off1);\r\n } else {\r\n var mantissa;\r\n if (val < 2.2250738585072014e-308) { // denormal\r\n mantissa = val / 5e-324;\r\n writeUint(mantissa >>> 0, buf, pos + off0);\r\n writeUint((sign << 31 | mantissa / 4294967296) >>> 0, buf, pos + off1);\r\n } else {\r\n var exponent = Math.floor(Math.log(val) / Math.LN2);\r\n if (exponent === 1024)\r\n exponent = 1023;\r\n mantissa = val * Math.pow(2, -exponent);\r\n writeUint(mantissa * 4503599627370496 >>> 0, buf, pos + off0);\r\n writeUint((sign << 31 | exponent + 1023 << 20 | mantissa * 1048576 & 1048575) >>> 0, buf, pos + off1);\r\n }\r\n }\r\n }\r\n\r\n exports.writeDoubleLE = writeDouble_ieee754.bind(null, writeUintLE, 0, 4);\r\n exports.writeDoubleBE = writeDouble_ieee754.bind(null, writeUintBE, 4, 0);\r\n\r\n function readDouble_ieee754(readUint, off0, off1, buf, pos) {\r\n var lo = readUint(buf, pos + off0),\r\n hi = readUint(buf, pos + off1);\r\n var sign = (hi >> 31) * 2 + 1,\r\n exponent = hi >>> 20 & 2047,\r\n mantissa = 4294967296 * (hi & 1048575) + lo;\r\n return exponent === 2047\r\n ? mantissa\r\n ? NaN\r\n : sign * Infinity\r\n : exponent === 0 // denormal\r\n ? sign * 5e-324 * mantissa\r\n : sign * Math.pow(2, exponent - 1075) * (mantissa + 4503599627370496);\r\n }\r\n\r\n exports.readDoubleLE = readDouble_ieee754.bind(null, readUintLE, 0, 4);\r\n exports.readDoubleBE = readDouble_ieee754.bind(null, readUintBE, 4, 0);\r\n\r\n })();\r\n\r\n return exports;\r\n}\r\n\r\n// uint helpers\r\n\r\nfunction writeUintLE(val, buf, pos) {\r\n buf[pos ] = val & 255;\r\n buf[pos + 1] = val >>> 8 & 255;\r\n buf[pos + 2] = val >>> 16 & 255;\r\n buf[pos + 3] = val >>> 24;\r\n}\r\n\r\nfunction writeUintBE(val, buf, pos) {\r\n buf[pos ] = val >>> 24;\r\n buf[pos + 1] = val >>> 16 & 255;\r\n buf[pos + 2] = val >>> 8 & 255;\r\n buf[pos + 3] = val & 255;\r\n}\r\n\r\nfunction readUintLE(buf, pos) {\r\n return (buf[pos ]\r\n | buf[pos + 1] << 8\r\n | buf[pos + 2] << 16\r\n | buf[pos + 3] << 24) >>> 0;\r\n}\r\n\r\nfunction readUintBE(buf, pos) {\r\n return (buf[pos ] << 24\r\n | buf[pos + 1] << 16\r\n | buf[pos + 2] << 8\r\n | buf[pos + 3]) >>> 0;\r\n}\r\n","\"use strict\";\r\nmodule.exports = inquire;\r\n\r\n/**\r\n * Requires a module only if available.\r\n * @memberof util\r\n * @param {string} moduleName Module to require\r\n * @returns {?Object} Required module if available and not empty, otherwise `null`\r\n */\r\nfunction inquire(moduleName) {\r\n try {\r\n var mod = eval(\"quire\".replace(/^/,\"re\"))(moduleName); // eslint-disable-line no-eval\r\n if (mod && (mod.length || Object.keys(mod).length))\r\n return mod;\r\n } catch (e) {} // eslint-disable-line no-empty\r\n return null;\r\n}\r\n","\"use strict\";\r\nmodule.exports = pool;\r\n\r\n/**\r\n * An allocator as used by {@link util.pool}.\r\n * @typedef PoolAllocator\r\n * @type {function}\r\n * @param {number} size Buffer size\r\n * @returns {Uint8Array} Buffer\r\n */\r\n\r\n/**\r\n * A slicer as used by {@link util.pool}.\r\n * @typedef PoolSlicer\r\n * @type {function}\r\n * @param {number} start Start offset\r\n * @param {number} end End offset\r\n * @returns {Uint8Array} Buffer slice\r\n * @this {Uint8Array}\r\n */\r\n\r\n/**\r\n * A general purpose buffer pool.\r\n * @memberof util\r\n * @function\r\n * @param {PoolAllocator} alloc Allocator\r\n * @param {PoolSlicer} slice Slicer\r\n * @param {number} [size=8192] Slab size\r\n * @returns {PoolAllocator} Pooled allocator\r\n */\r\nfunction pool(alloc, slice, size) {\r\n var SIZE = size || 8192;\r\n var MAX = SIZE >>> 1;\r\n var slab = null;\r\n var offset = SIZE;\r\n return function pool_alloc(size) {\r\n if (size < 1 || size > MAX)\r\n return alloc(size);\r\n if (offset + size > SIZE) {\r\n slab = alloc(SIZE);\r\n offset = 0;\r\n }\r\n var buf = slice.call(slab, offset, offset += size);\r\n if (offset & 7) // align to 32 bit\r\n offset = (offset | 7) + 1;\r\n return buf;\r\n };\r\n}\r\n","\"use strict\";\r\n\r\n/**\r\n * A minimal UTF8 implementation for number arrays.\r\n * @memberof util\r\n * @namespace\r\n */\r\nvar utf8 = exports;\r\n\r\n/**\r\n * Calculates the UTF8 byte length of a string.\r\n * @param {string} string String\r\n * @returns {number} Byte length\r\n */\r\nutf8.length = function utf8_length(string) {\r\n var len = 0,\r\n c = 0;\r\n for (var i = 0; i < string.length; ++i) {\r\n c = string.charCodeAt(i);\r\n if (c < 128)\r\n len += 1;\r\n else if (c < 2048)\r\n len += 2;\r\n else if ((c & 0xFC00) === 0xD800 && (string.charCodeAt(i + 1) & 0xFC00) === 0xDC00) {\r\n ++i;\r\n len += 4;\r\n } else\r\n len += 3;\r\n }\r\n return len;\r\n};\r\n\r\n/**\r\n * Reads UTF8 bytes as a string.\r\n * @param {Uint8Array} buffer Source buffer\r\n * @param {number} start Source start\r\n * @param {number} end Source end\r\n * @returns {string} String read\r\n */\r\nutf8.read = function utf8_read(buffer, start, end) {\r\n var len = end - start;\r\n if (len < 1)\r\n return \"\";\r\n var parts = null,\r\n chunk = [],\r\n i = 0, // char offset\r\n t; // temporary\r\n while (start < end) {\r\n t = buffer[start++];\r\n if (t < 128)\r\n chunk[i++] = t;\r\n else if (t > 191 && t < 224)\r\n chunk[i++] = (t & 31) << 6 | buffer[start++] & 63;\r\n else if (t > 239 && t < 365) {\r\n t = ((t & 7) << 18 | (buffer[start++] & 63) << 12 | (buffer[start++] & 63) << 6 | buffer[start++] & 63) - 0x10000;\r\n chunk[i++] = 0xD800 + (t >> 10);\r\n chunk[i++] = 0xDC00 + (t & 1023);\r\n } else\r\n chunk[i++] = (t & 15) << 12 | (buffer[start++] & 63) << 6 | buffer[start++] & 63;\r\n if (i > 8191) {\r\n (parts || (parts = [])).push(String.fromCharCode.apply(String, chunk));\r\n i = 0;\r\n }\r\n }\r\n if (parts) {\r\n if (i)\r\n parts.push(String.fromCharCode.apply(String, chunk.slice(0, i)));\r\n return parts.join(\"\");\r\n }\r\n return String.fromCharCode.apply(String, chunk.slice(0, i));\r\n};\r\n\r\n/**\r\n * Writes a string as UTF8 bytes.\r\n * @param {string} string Source string\r\n * @param {Uint8Array} buffer Destination buffer\r\n * @param {number} offset Destination offset\r\n * @returns {number} Bytes written\r\n */\r\nutf8.write = function utf8_write(string, buffer, offset) {\r\n var start = offset,\r\n c1, // character 1\r\n c2; // character 2\r\n for (var i = 0; i < string.length; ++i) {\r\n c1 = string.charCodeAt(i);\r\n if (c1 < 128) {\r\n buffer[offset++] = c1;\r\n } else if (c1 < 2048) {\r\n buffer[offset++] = c1 >> 6 | 192;\r\n buffer[offset++] = c1 & 63 | 128;\r\n } else if ((c1 & 0xFC00) === 0xD800 && ((c2 = string.charCodeAt(i + 1)) & 0xFC00) === 0xDC00) {\r\n c1 = 0x10000 + ((c1 & 0x03FF) << 10) + (c2 & 0x03FF);\r\n ++i;\r\n buffer[offset++] = c1 >> 18 | 240;\r\n buffer[offset++] = c1 >> 12 & 63 | 128;\r\n buffer[offset++] = c1 >> 6 & 63 | 128;\r\n buffer[offset++] = c1 & 63 | 128;\r\n } else {\r\n buffer[offset++] = c1 >> 12 | 224;\r\n buffer[offset++] = c1 >> 6 & 63 | 128;\r\n buffer[offset++] = c1 & 63 | 128;\r\n }\r\n }\r\n return offset - start;\r\n};\r\n","// minimal library entry point.\n\n\"use strict\";\nmodule.exports = require(\"./src/index-minimal\");\n","\"use strict\";\nvar protobuf = exports;\n\n/**\n * Build type, one of `\"full\"`, `\"light\"` or `\"minimal\"`.\n * @name build\n * @type {string}\n * @const\n */\nprotobuf.build = \"minimal\";\n\n// Serialization\nprotobuf.Writer = require(\"./writer\");\nprotobuf.BufferWriter = require(\"./writer_buffer\");\nprotobuf.Reader = require(\"./reader\");\nprotobuf.BufferReader = require(\"./reader_buffer\");\n\n// Utility\nprotobuf.util = require(\"./util/minimal\");\nprotobuf.rpc = require(\"./rpc\");\nprotobuf.roots = require(\"./roots\");\nprotobuf.configure = configure;\n\n/* istanbul ignore next */\n/**\n * Reconfigures the library according to the environment.\n * @returns {undefined}\n */\nfunction configure() {\n protobuf.util._configure();\n protobuf.Writer._configure(protobuf.BufferWriter);\n protobuf.Reader._configure(protobuf.BufferReader);\n}\n\n// Set up buffer utility according to the environment\nconfigure();\n","\"use strict\";\nmodule.exports = Reader;\n\nvar util = require(\"./util/minimal\");\n\nvar BufferReader; // cyclic\n\nvar LongBits = util.LongBits,\n utf8 = util.utf8;\n\n/* istanbul ignore next */\nfunction indexOutOfRange(reader, writeLength) {\n return RangeError(\"index out of range: \" + reader.pos + \" + \" + (writeLength || 1) + \" > \" + reader.len);\n}\n\n/**\n * Constructs a new reader instance using the specified buffer.\n * @classdesc Wire format reader using `Uint8Array` if available, otherwise `Array`.\n * @constructor\n * @param {Uint8Array} buffer Buffer to read from\n */\nfunction Reader(buffer) {\n\n /**\n * Read buffer.\n * @type {Uint8Array}\n */\n this.buf = buffer;\n\n /**\n * Read buffer position.\n * @type {number}\n */\n this.pos = 0;\n\n /**\n * Read buffer length.\n * @type {number}\n */\n this.len = buffer.length;\n}\n\nvar create_array = typeof Uint8Array !== \"undefined\"\n ? function create_typed_array(buffer) {\n if (buffer instanceof Uint8Array || Array.isArray(buffer))\n return new Reader(buffer);\n throw Error(\"illegal buffer\");\n }\n /* istanbul ignore next */\n : function create_array(buffer) {\n if (Array.isArray(buffer))\n return new Reader(buffer);\n throw Error(\"illegal buffer\");\n };\n\nvar create = function create() {\n return util.Buffer\n ? function create_buffer_setup(buffer) {\n return (Reader.create = function create_buffer(buffer) {\n return util.Buffer.isBuffer(buffer)\n ? new BufferReader(buffer)\n /* istanbul ignore next */\n : create_array(buffer);\n })(buffer);\n }\n /* istanbul ignore next */\n : create_array;\n};\n\n/**\n * Creates a new reader using the specified buffer.\n * @function\n * @param {Uint8Array|Buffer} buffer Buffer to read from\n * @returns {Reader|BufferReader} A {@link BufferReader} if `buffer` is a Buffer, otherwise a {@link Reader}\n * @throws {Error} If `buffer` is not a valid buffer\n */\nReader.create = create();\n\nReader.prototype._slice = util.Array.prototype.subarray || /* istanbul ignore next */ util.Array.prototype.slice;\n\n/**\n * Reads a varint as an unsigned 32 bit value.\n * @function\n * @returns {number} Value read\n */\nReader.prototype.uint32 = (function read_uint32_setup() {\n var value = 4294967295; // optimizer type-hint, tends to deopt otherwise (?!)\n return function read_uint32() {\n value = ( this.buf[this.pos] & 127 ) >>> 0; if (this.buf[this.pos++] < 128) return value;\n value = (value | (this.buf[this.pos] & 127) << 7) >>> 0; if (this.buf[this.pos++] < 128) return value;\n value = (value | (this.buf[this.pos] & 127) << 14) >>> 0; if (this.buf[this.pos++] < 128) return value;\n value = (value | (this.buf[this.pos] & 127) << 21) >>> 0; if (this.buf[this.pos++] < 128) return value;\n value = (value | (this.buf[this.pos] & 15) << 28) >>> 0; if (this.buf[this.pos++] < 128) return value;\n\n /* istanbul ignore if */\n if ((this.pos += 5) > this.len) {\n this.pos = this.len;\n throw indexOutOfRange(this, 10);\n }\n return value;\n };\n})();\n\n/**\n * Reads a varint as a signed 32 bit value.\n * @returns {number} Value read\n */\nReader.prototype.int32 = function read_int32() {\n return this.uint32() | 0;\n};\n\n/**\n * Reads a zig-zag encoded varint as a signed 32 bit value.\n * @returns {number} Value read\n */\nReader.prototype.sint32 = function read_sint32() {\n var value = this.uint32();\n return value >>> 1 ^ -(value & 1) | 0;\n};\n\n/* eslint-disable no-invalid-this */\n\nfunction readLongVarint() {\n // tends to deopt with local vars for octet etc.\n var bits = new LongBits(0, 0);\n var i = 0;\n if (this.len - this.pos > 4) { // fast route (lo)\n for (; i < 4; ++i) {\n // 1st..4th\n bits.lo = (bits.lo | (this.buf[this.pos] & 127) << i * 7) >>> 0;\n if (this.buf[this.pos++] < 128)\n return bits;\n }\n // 5th\n bits.lo = (bits.lo | (this.buf[this.pos] & 127) << 28) >>> 0;\n bits.hi = (bits.hi | (this.buf[this.pos] & 127) >> 4) >>> 0;\n if (this.buf[this.pos++] < 128)\n return bits;\n i = 0;\n } else {\n for (; i < 3; ++i) {\n /* istanbul ignore if */\n if (this.pos >= this.len)\n throw indexOutOfRange(this);\n // 1st..3th\n bits.lo = (bits.lo | (this.buf[this.pos] & 127) << i * 7) >>> 0;\n if (this.buf[this.pos++] < 128)\n return bits;\n }\n // 4th\n bits.lo = (bits.lo | (this.buf[this.pos++] & 127) << i * 7) >>> 0;\n return bits;\n }\n if (this.len - this.pos > 4) { // fast route (hi)\n for (; i < 5; ++i) {\n // 6th..10th\n bits.hi = (bits.hi | (this.buf[this.pos] & 127) << i * 7 + 3) >>> 0;\n if (this.buf[this.pos++] < 128)\n return bits;\n }\n } else {\n for (; i < 5; ++i) {\n /* istanbul ignore if */\n if (this.pos >= this.len)\n throw indexOutOfRange(this);\n // 6th..10th\n bits.hi = (bits.hi | (this.buf[this.pos] & 127) << i * 7 + 3) >>> 0;\n if (this.buf[this.pos++] < 128)\n return bits;\n }\n }\n /* istanbul ignore next */\n throw Error(\"invalid varint encoding\");\n}\n\n/* eslint-enable no-invalid-this */\n\n/**\n * Reads a varint as a signed 64 bit value.\n * @name Reader#int64\n * @function\n * @returns {Long} Value read\n */\n\n/**\n * Reads a varint as an unsigned 64 bit value.\n * @name Reader#uint64\n * @function\n * @returns {Long} Value read\n */\n\n/**\n * Reads a zig-zag encoded varint as a signed 64 bit value.\n * @name Reader#sint64\n * @function\n * @returns {Long} Value read\n */\n\n/**\n * Reads a varint as a boolean.\n * @returns {boolean} Value read\n */\nReader.prototype.bool = function read_bool() {\n return this.uint32() !== 0;\n};\n\nfunction readFixed32_end(buf, end) { // note that this uses `end`, not `pos`\n return (buf[end - 4]\n | buf[end - 3] << 8\n | buf[end - 2] << 16\n | buf[end - 1] << 24) >>> 0;\n}\n\n/**\n * Reads fixed 32 bits as an unsigned 32 bit integer.\n * @returns {number} Value read\n */\nReader.prototype.fixed32 = function read_fixed32() {\n\n /* istanbul ignore if */\n if (this.pos + 4 > this.len)\n throw indexOutOfRange(this, 4);\n\n return readFixed32_end(this.buf, this.pos += 4);\n};\n\n/**\n * Reads fixed 32 bits as a signed 32 bit integer.\n * @returns {number} Value read\n */\nReader.prototype.sfixed32 = function read_sfixed32() {\n\n /* istanbul ignore if */\n if (this.pos + 4 > this.len)\n throw indexOutOfRange(this, 4);\n\n return readFixed32_end(this.buf, this.pos += 4) | 0;\n};\n\n/* eslint-disable no-invalid-this */\n\nfunction readFixed64(/* this: Reader */) {\n\n /* istanbul ignore if */\n if (this.pos + 8 > this.len)\n throw indexOutOfRange(this, 8);\n\n return new LongBits(readFixed32_end(this.buf, this.pos += 4), readFixed32_end(this.buf, this.pos += 4));\n}\n\n/* eslint-enable no-invalid-this */\n\n/**\n * Reads fixed 64 bits.\n * @name Reader#fixed64\n * @function\n * @returns {Long} Value read\n */\n\n/**\n * Reads zig-zag encoded fixed 64 bits.\n * @name Reader#sfixed64\n * @function\n * @returns {Long} Value read\n */\n\n/**\n * Reads a float (32 bit) as a number.\n * @function\n * @returns {number} Value read\n */\nReader.prototype.float = function read_float() {\n\n /* istanbul ignore if */\n if (this.pos + 4 > this.len)\n throw indexOutOfRange(this, 4);\n\n var value = util.float.readFloatLE(this.buf, this.pos);\n this.pos += 4;\n return value;\n};\n\n/**\n * Reads a double (64 bit float) as a number.\n * @function\n * @returns {number} Value read\n */\nReader.prototype.double = function read_double() {\n\n /* istanbul ignore if */\n if (this.pos + 8 > this.len)\n throw indexOutOfRange(this, 4);\n\n var value = util.float.readDoubleLE(this.buf, this.pos);\n this.pos += 8;\n return value;\n};\n\n/**\n * Reads a sequence of bytes preceeded by its length as a varint.\n * @returns {Uint8Array} Value read\n */\nReader.prototype.bytes = function read_bytes() {\n var length = this.uint32(),\n start = this.pos,\n end = this.pos + length;\n\n /* istanbul ignore if */\n if (end > this.len)\n throw indexOutOfRange(this, length);\n\n this.pos += length;\n if (Array.isArray(this.buf)) // plain array\n return this.buf.slice(start, end);\n\n if (start === end) { // fix for IE 10/Win8 and others' subarray returning array of size 1\n var nativeBuffer = util.Buffer;\n return nativeBuffer\n ? nativeBuffer.alloc(0)\n : new this.buf.constructor(0);\n }\n return this._slice.call(this.buf, start, end);\n};\n\n/**\n * Reads a string preceeded by its byte length as a varint.\n * @returns {string} Value read\n */\nReader.prototype.string = function read_string() {\n var bytes = this.bytes();\n return utf8.read(bytes, 0, bytes.length);\n};\n\n/**\n * Skips the specified number of bytes if specified, otherwise skips a varint.\n * @param {number} [length] Length if known, otherwise a varint is assumed\n * @returns {Reader} `this`\n */\nReader.prototype.skip = function skip(length) {\n if (typeof length === \"number\") {\n /* istanbul ignore if */\n if (this.pos + length > this.len)\n throw indexOutOfRange(this, length);\n this.pos += length;\n } else {\n do {\n /* istanbul ignore if */\n if (this.pos >= this.len)\n throw indexOutOfRange(this);\n } while (this.buf[this.pos++] & 128);\n }\n return this;\n};\n\n/**\n * Skips the next element of the specified wire type.\n * @param {number} wireType Wire type received\n * @returns {Reader} `this`\n */\nReader.prototype.skipType = function(wireType) {\n switch (wireType) {\n case 0:\n this.skip();\n break;\n case 1:\n this.skip(8);\n break;\n case 2:\n this.skip(this.uint32());\n break;\n case 3:\n while ((wireType = this.uint32() & 7) !== 4) {\n this.skipType(wireType);\n }\n break;\n case 5:\n this.skip(4);\n break;\n\n /* istanbul ignore next */\n default:\n throw Error(\"invalid wire type \" + wireType + \" at offset \" + this.pos);\n }\n return this;\n};\n\nReader._configure = function(BufferReader_) {\n BufferReader = BufferReader_;\n Reader.create = create();\n BufferReader._configure();\n\n var fn = util.Long ? \"toLong\" : /* istanbul ignore next */ \"toNumber\";\n util.merge(Reader.prototype, {\n\n int64: function read_int64() {\n return readLongVarint.call(this)[fn](false);\n },\n\n uint64: function read_uint64() {\n return readLongVarint.call(this)[fn](true);\n },\n\n sint64: function read_sint64() {\n return readLongVarint.call(this).zzDecode()[fn](false);\n },\n\n fixed64: function read_fixed64() {\n return readFixed64.call(this)[fn](true);\n },\n\n sfixed64: function read_sfixed64() {\n return readFixed64.call(this)[fn](false);\n }\n\n });\n};\n","\"use strict\";\nmodule.exports = BufferReader;\n\n// extends Reader\nvar Reader = require(\"./reader\");\n(BufferReader.prototype = Object.create(Reader.prototype)).constructor = BufferReader;\n\nvar util = require(\"./util/minimal\");\n\n/**\n * Constructs a new buffer reader instance.\n * @classdesc Wire format reader using node buffers.\n * @extends Reader\n * @constructor\n * @param {Buffer} buffer Buffer to read from\n */\nfunction BufferReader(buffer) {\n Reader.call(this, buffer);\n\n /**\n * Read buffer.\n * @name BufferReader#buf\n * @type {Buffer}\n */\n}\n\nBufferReader._configure = function () {\n /* istanbul ignore else */\n if (util.Buffer)\n BufferReader.prototype._slice = util.Buffer.prototype.slice;\n};\n\n\n/**\n * @override\n */\nBufferReader.prototype.string = function read_string_buffer() {\n var len = this.uint32(); // modifies pos\n return this.buf.utf8Slice\n ? this.buf.utf8Slice(this.pos, this.pos = Math.min(this.pos + len, this.len))\n : this.buf.toString(\"utf-8\", this.pos, this.pos = Math.min(this.pos + len, this.len));\n};\n\n/**\n * Reads a sequence of bytes preceeded by its length as a varint.\n * @name BufferReader#bytes\n * @function\n * @returns {Buffer} Value read\n */\n\nBufferReader._configure();\n","\"use strict\";\nmodule.exports = {};\n\n/**\n * Named roots.\n * This is where pbjs stores generated structures (the option `-r, --root` specifies a name).\n * Can also be used manually to make roots available across modules.\n * @name roots\n * @type {Object.}\n * @example\n * // pbjs -r myroot -o compiled.js ...\n *\n * // in another module:\n * require(\"./compiled.js\");\n *\n * // in any subsequent module:\n * var root = protobuf.roots[\"myroot\"];\n */\n","\"use strict\";\n\n/**\n * Streaming RPC helpers.\n * @namespace\n */\nvar rpc = exports;\n\n/**\n * RPC implementation passed to {@link Service#create} performing a service request on network level, i.e. by utilizing http requests or websockets.\n * @typedef RPCImpl\n * @type {function}\n * @param {Method|rpc.ServiceMethod,Message<{}>>} method Reflected or static method being called\n * @param {Uint8Array} requestData Request data\n * @param {RPCImplCallback} callback Callback function\n * @returns {undefined}\n * @example\n * function rpcImpl(method, requestData, callback) {\n * if (protobuf.util.lcFirst(method.name) !== \"myMethod\") // compatible with static code\n * throw Error(\"no such method\");\n * asynchronouslyObtainAResponse(requestData, function(err, responseData) {\n * callback(err, responseData);\n * });\n * }\n */\n\n/**\n * Node-style callback as used by {@link RPCImpl}.\n * @typedef RPCImplCallback\n * @type {function}\n * @param {Error|null} error Error, if any, otherwise `null`\n * @param {Uint8Array|null} [response] Response data or `null` to signal end of stream, if there hasn't been an error\n * @returns {undefined}\n */\n\nrpc.Service = require(\"./rpc/service\");\n","\"use strict\";\nmodule.exports = Service;\n\nvar util = require(\"../util/minimal\");\n\n// Extends EventEmitter\n(Service.prototype = Object.create(util.EventEmitter.prototype)).constructor = Service;\n\n/**\n * A service method callback as used by {@link rpc.ServiceMethod|ServiceMethod}.\n *\n * Differs from {@link RPCImplCallback} in that it is an actual callback of a service method which may not return `response = null`.\n * @typedef rpc.ServiceMethodCallback\n * @template TRes extends Message\n * @type {function}\n * @param {Error|null} error Error, if any\n * @param {TRes} [response] Response message\n * @returns {undefined}\n */\n\n/**\n * A service method part of a {@link rpc.Service} as created by {@link Service.create}.\n * @typedef rpc.ServiceMethod\n * @template TReq extends Message\n * @template TRes extends Message\n * @type {function}\n * @param {TReq|Properties} request Request message or plain object\n * @param {rpc.ServiceMethodCallback} [callback] Node-style callback called with the error, if any, and the response message\n * @returns {Promise>} Promise if `callback` has been omitted, otherwise `undefined`\n */\n\n/**\n * Constructs a new RPC service instance.\n * @classdesc An RPC service as returned by {@link Service#create}.\n * @exports rpc.Service\n * @extends util.EventEmitter\n * @constructor\n * @param {RPCImpl} rpcImpl RPC implementation\n * @param {boolean} [requestDelimited=false] Whether requests are length-delimited\n * @param {boolean} [responseDelimited=false] Whether responses are length-delimited\n */\nfunction Service(rpcImpl, requestDelimited, responseDelimited) {\n\n if (typeof rpcImpl !== \"function\")\n throw TypeError(\"rpcImpl must be a function\");\n\n util.EventEmitter.call(this);\n\n /**\n * RPC implementation. Becomes `null` once the service is ended.\n * @type {RPCImpl|null}\n */\n this.rpcImpl = rpcImpl;\n\n /**\n * Whether requests are length-delimited.\n * @type {boolean}\n */\n this.requestDelimited = Boolean(requestDelimited);\n\n /**\n * Whether responses are length-delimited.\n * @type {boolean}\n */\n this.responseDelimited = Boolean(responseDelimited);\n}\n\n/**\n * Calls a service method through {@link rpc.Service#rpcImpl|rpcImpl}.\n * @param {Method|rpc.ServiceMethod} method Reflected or static method\n * @param {Constructor} requestCtor Request constructor\n * @param {Constructor} responseCtor Response constructor\n * @param {TReq|Properties} request Request message or plain object\n * @param {rpc.ServiceMethodCallback} callback Service callback\n * @returns {undefined}\n * @template TReq extends Message\n * @template TRes extends Message\n */\nService.prototype.rpcCall = function rpcCall(method, requestCtor, responseCtor, request, callback) {\n\n if (!request)\n throw TypeError(\"request must be specified\");\n\n var self = this;\n if (!callback)\n return util.asPromise(rpcCall, self, method, requestCtor, responseCtor, request);\n\n if (!self.rpcImpl) {\n setTimeout(function() { callback(Error(\"already ended\")); }, 0);\n return undefined;\n }\n\n try {\n return self.rpcImpl(\n method,\n requestCtor[self.requestDelimited ? \"encodeDelimited\" : \"encode\"](request).finish(),\n function rpcCallback(err, response) {\n\n if (err) {\n self.emit(\"error\", err, method);\n return callback(err);\n }\n\n if (response === null) {\n self.end(/* endedByRPC */ true);\n return undefined;\n }\n\n if (!(response instanceof responseCtor)) {\n try {\n response = responseCtor[self.responseDelimited ? \"decodeDelimited\" : \"decode\"](response);\n } catch (err) {\n self.emit(\"error\", err, method);\n return callback(err);\n }\n }\n\n self.emit(\"data\", response, method);\n return callback(null, response);\n }\n );\n } catch (err) {\n self.emit(\"error\", err, method);\n setTimeout(function() { callback(err); }, 0);\n return undefined;\n }\n};\n\n/**\n * Ends this service and emits the `end` event.\n * @param {boolean} [endedByRPC=false] Whether the service has been ended by the RPC implementation.\n * @returns {rpc.Service} `this`\n */\nService.prototype.end = function end(endedByRPC) {\n if (this.rpcImpl) {\n if (!endedByRPC) // signal end to rpcImpl\n this.rpcImpl(null, null, null);\n this.rpcImpl = null;\n this.emit(\"end\").off();\n }\n return this;\n};\n","\"use strict\";\nmodule.exports = LongBits;\n\nvar util = require(\"../util/minimal\");\n\n/**\n * Constructs new long bits.\n * @classdesc Helper class for working with the low and high bits of a 64 bit value.\n * @memberof util\n * @constructor\n * @param {number} lo Low 32 bits, unsigned\n * @param {number} hi High 32 bits, unsigned\n */\nfunction LongBits(lo, hi) {\n\n // note that the casts below are theoretically unnecessary as of today, but older statically\n // generated converter code might still call the ctor with signed 32bits. kept for compat.\n\n /**\n * Low bits.\n * @type {number}\n */\n this.lo = lo >>> 0;\n\n /**\n * High bits.\n * @type {number}\n */\n this.hi = hi >>> 0;\n}\n\n/**\n * Zero bits.\n * @memberof util.LongBits\n * @type {util.LongBits}\n */\nvar zero = LongBits.zero = new LongBits(0, 0);\n\nzero.toNumber = function() { return 0; };\nzero.zzEncode = zero.zzDecode = function() { return this; };\nzero.length = function() { return 1; };\n\n/**\n * Zero hash.\n * @memberof util.LongBits\n * @type {string}\n */\nvar zeroHash = LongBits.zeroHash = \"\\0\\0\\0\\0\\0\\0\\0\\0\";\n\n/**\n * Constructs new long bits from the specified number.\n * @param {number} value Value\n * @returns {util.LongBits} Instance\n */\nLongBits.fromNumber = function fromNumber(value) {\n if (value === 0)\n return zero;\n var sign = value < 0;\n if (sign)\n value = -value;\n var lo = value >>> 0,\n hi = (value - lo) / 4294967296 >>> 0;\n if (sign) {\n hi = ~hi >>> 0;\n lo = ~lo >>> 0;\n if (++lo > 4294967295) {\n lo = 0;\n if (++hi > 4294967295)\n hi = 0;\n }\n }\n return new LongBits(lo, hi);\n};\n\n/**\n * Constructs new long bits from a number, long or string.\n * @param {Long|number|string} value Value\n * @returns {util.LongBits} Instance\n */\nLongBits.from = function from(value) {\n if (typeof value === \"number\")\n return LongBits.fromNumber(value);\n if (util.isString(value)) {\n /* istanbul ignore else */\n if (util.Long)\n value = util.Long.fromString(value);\n else\n return LongBits.fromNumber(parseInt(value, 10));\n }\n return value.low || value.high ? new LongBits(value.low >>> 0, value.high >>> 0) : zero;\n};\n\n/**\n * Converts this long bits to a possibly unsafe JavaScript number.\n * @param {boolean} [unsigned=false] Whether unsigned or not\n * @returns {number} Possibly unsafe number\n */\nLongBits.prototype.toNumber = function toNumber(unsigned) {\n if (!unsigned && this.hi >>> 31) {\n var lo = ~this.lo + 1 >>> 0,\n hi = ~this.hi >>> 0;\n if (!lo)\n hi = hi + 1 >>> 0;\n return -(lo + hi * 4294967296);\n }\n return this.lo + this.hi * 4294967296;\n};\n\n/**\n * Converts this long bits to a long.\n * @param {boolean} [unsigned=false] Whether unsigned or not\n * @returns {Long} Long\n */\nLongBits.prototype.toLong = function toLong(unsigned) {\n return util.Long\n ? new util.Long(this.lo | 0, this.hi | 0, Boolean(unsigned))\n /* istanbul ignore next */\n : { low: this.lo | 0, high: this.hi | 0, unsigned: Boolean(unsigned) };\n};\n\nvar charCodeAt = String.prototype.charCodeAt;\n\n/**\n * Constructs new long bits from the specified 8 characters long hash.\n * @param {string} hash Hash\n * @returns {util.LongBits} Bits\n */\nLongBits.fromHash = function fromHash(hash) {\n if (hash === zeroHash)\n return zero;\n return new LongBits(\n ( charCodeAt.call(hash, 0)\n | charCodeAt.call(hash, 1) << 8\n | charCodeAt.call(hash, 2) << 16\n | charCodeAt.call(hash, 3) << 24) >>> 0\n ,\n ( charCodeAt.call(hash, 4)\n | charCodeAt.call(hash, 5) << 8\n | charCodeAt.call(hash, 6) << 16\n | charCodeAt.call(hash, 7) << 24) >>> 0\n );\n};\n\n/**\n * Converts this long bits to a 8 characters long hash.\n * @returns {string} Hash\n */\nLongBits.prototype.toHash = function toHash() {\n return String.fromCharCode(\n this.lo & 255,\n this.lo >>> 8 & 255,\n this.lo >>> 16 & 255,\n this.lo >>> 24 ,\n this.hi & 255,\n this.hi >>> 8 & 255,\n this.hi >>> 16 & 255,\n this.hi >>> 24\n );\n};\n\n/**\n * Zig-zag encodes this long bits.\n * @returns {util.LongBits} `this`\n */\nLongBits.prototype.zzEncode = function zzEncode() {\n var mask = this.hi >> 31;\n this.hi = ((this.hi << 1 | this.lo >>> 31) ^ mask) >>> 0;\n this.lo = ( this.lo << 1 ^ mask) >>> 0;\n return this;\n};\n\n/**\n * Zig-zag decodes this long bits.\n * @returns {util.LongBits} `this`\n */\nLongBits.prototype.zzDecode = function zzDecode() {\n var mask = -(this.lo & 1);\n this.lo = ((this.lo >>> 1 | this.hi << 31) ^ mask) >>> 0;\n this.hi = ( this.hi >>> 1 ^ mask) >>> 0;\n return this;\n};\n\n/**\n * Calculates the length of this longbits when encoded as a varint.\n * @returns {number} Length\n */\nLongBits.prototype.length = function length() {\n var part0 = this.lo,\n part1 = (this.lo >>> 28 | this.hi << 4) >>> 0,\n part2 = this.hi >>> 24;\n return part2 === 0\n ? part1 === 0\n ? part0 < 16384\n ? part0 < 128 ? 1 : 2\n : part0 < 2097152 ? 3 : 4\n : part1 < 16384\n ? part1 < 128 ? 5 : 6\n : part1 < 2097152 ? 7 : 8\n : part2 < 128 ? 9 : 10;\n};\n","\"use strict\";\nvar util = exports;\n\n// used to return a Promise where callback is omitted\nutil.asPromise = require(\"@protobufjs/aspromise\");\n\n// converts to / from base64 encoded strings\nutil.base64 = require(\"@protobufjs/base64\");\n\n// base class of rpc.Service\nutil.EventEmitter = require(\"@protobufjs/eventemitter\");\n\n// float handling accross browsers\nutil.float = require(\"@protobufjs/float\");\n\n// requires modules optionally and hides the call from bundlers\nutil.inquire = require(\"@protobufjs/inquire\");\n\n// converts to / from utf8 encoded strings\nutil.utf8 = require(\"@protobufjs/utf8\");\n\n// provides a node-like buffer pool in the browser\nutil.pool = require(\"@protobufjs/pool\");\n\n// utility to work with the low and high bits of a 64 bit value\nutil.LongBits = require(\"./longbits\");\n\n/**\n * Whether running within node or not.\n * @memberof util\n * @type {boolean}\n */\nutil.isNode = Boolean(typeof global !== \"undefined\"\n && global\n && global.process\n && global.process.versions\n && global.process.versions.node);\n\n/**\n * Global object reference.\n * @memberof util\n * @type {Object}\n */\nutil.global = util.isNode && global\n || typeof window !== \"undefined\" && window\n || typeof self !== \"undefined\" && self\n || this; // eslint-disable-line no-invalid-this\n\n/**\n * An immuable empty array.\n * @memberof util\n * @type {Array.<*>}\n * @const\n */\nutil.emptyArray = Object.freeze ? Object.freeze([]) : /* istanbul ignore next */ []; // used on prototypes\n\n/**\n * An immutable empty object.\n * @type {Object}\n * @const\n */\nutil.emptyObject = Object.freeze ? Object.freeze({}) : /* istanbul ignore next */ {}; // used on prototypes\n\n/**\n * Tests if the specified value is an integer.\n * @function\n * @param {*} value Value to test\n * @returns {boolean} `true` if the value is an integer\n */\nutil.isInteger = Number.isInteger || /* istanbul ignore next */ function isInteger(value) {\n return typeof value === \"number\" && isFinite(value) && Math.floor(value) === value;\n};\n\n/**\n * Tests if the specified value is a string.\n * @param {*} value Value to test\n * @returns {boolean} `true` if the value is a string\n */\nutil.isString = function isString(value) {\n return typeof value === \"string\" || value instanceof String;\n};\n\n/**\n * Tests if the specified value is a non-null object.\n * @param {*} value Value to test\n * @returns {boolean} `true` if the value is a non-null object\n */\nutil.isObject = function isObject(value) {\n return value && typeof value === \"object\";\n};\n\n/**\n * Checks if a property on a message is considered to be present.\n * This is an alias of {@link util.isSet}.\n * @function\n * @param {Object} obj Plain object or message instance\n * @param {string} prop Property name\n * @returns {boolean} `true` if considered to be present, otherwise `false`\n */\nutil.isset =\n\n/**\n * Checks if a property on a message is considered to be present.\n * @param {Object} obj Plain object or message instance\n * @param {string} prop Property name\n * @returns {boolean} `true` if considered to be present, otherwise `false`\n */\nutil.isSet = function isSet(obj, prop) {\n var value = obj[prop];\n if (value != null && obj.hasOwnProperty(prop)) // eslint-disable-line eqeqeq, no-prototype-builtins\n return typeof value !== \"object\" || (Array.isArray(value) ? value.length : Object.keys(value).length) > 0;\n return false;\n};\n\n/**\n * Any compatible Buffer instance.\n * This is a minimal stand-alone definition of a Buffer instance. The actual type is that exported by node's typings.\n * @interface Buffer\n * @extends Uint8Array\n */\n\n/**\n * Node's Buffer class if available.\n * @type {Constructor}\n */\nutil.Buffer = (function() {\n try {\n var Buffer = util.inquire(\"buffer\").Buffer;\n // refuse to use non-node buffers if not explicitly assigned (perf reasons):\n return Buffer.prototype.utf8Write ? Buffer : /* istanbul ignore next */ null;\n } catch (e) {\n /* istanbul ignore next */\n return null;\n }\n})();\n\n// Internal alias of or polyfull for Buffer.from.\nutil._Buffer_from = null;\n\n// Internal alias of or polyfill for Buffer.allocUnsafe.\nutil._Buffer_allocUnsafe = null;\n\n/**\n * Creates a new buffer of whatever type supported by the environment.\n * @param {number|number[]} [sizeOrArray=0] Buffer size or number array\n * @returns {Uint8Array|Buffer} Buffer\n */\nutil.newBuffer = function newBuffer(sizeOrArray) {\n /* istanbul ignore next */\n return typeof sizeOrArray === \"number\"\n ? util.Buffer\n ? util._Buffer_allocUnsafe(sizeOrArray)\n : new util.Array(sizeOrArray)\n : util.Buffer\n ? util._Buffer_from(sizeOrArray)\n : typeof Uint8Array === \"undefined\"\n ? sizeOrArray\n : new Uint8Array(sizeOrArray);\n};\n\n/**\n * Array implementation used in the browser. `Uint8Array` if supported, otherwise `Array`.\n * @type {Constructor}\n */\nutil.Array = typeof Uint8Array !== \"undefined\" ? Uint8Array /* istanbul ignore next */ : Array;\n\n/**\n * Any compatible Long instance.\n * This is a minimal stand-alone definition of a Long instance. The actual type is that exported by long.js.\n * @interface Long\n * @property {number} low Low bits\n * @property {number} high High bits\n * @property {boolean} unsigned Whether unsigned or not\n */\n\n/**\n * Long.js's Long class if available.\n * @type {Constructor}\n */\nutil.Long = /* istanbul ignore next */ util.global.dcodeIO && /* istanbul ignore next */ util.global.dcodeIO.Long\n || /* istanbul ignore next */ util.global.Long\n || util.inquire(\"long\");\n\n/**\n * Regular expression used to verify 2 bit (`bool`) map keys.\n * @type {RegExp}\n * @const\n */\nutil.key2Re = /^true|false|0|1$/;\n\n/**\n * Regular expression used to verify 32 bit (`int32` etc.) map keys.\n * @type {RegExp}\n * @const\n */\nutil.key32Re = /^-?(?:0|[1-9][0-9]*)$/;\n\n/**\n * Regular expression used to verify 64 bit (`int64` etc.) map keys.\n * @type {RegExp}\n * @const\n */\nutil.key64Re = /^(?:[\\\\x00-\\\\xff]{8}|-?(?:0|[1-9][0-9]*))$/;\n\n/**\n * Converts a number or long to an 8 characters long hash string.\n * @param {Long|number} value Value to convert\n * @returns {string} Hash\n */\nutil.longToHash = function longToHash(value) {\n return value\n ? util.LongBits.from(value).toHash()\n : util.LongBits.zeroHash;\n};\n\n/**\n * Converts an 8 characters long hash string to a long or number.\n * @param {string} hash Hash\n * @param {boolean} [unsigned=false] Whether unsigned or not\n * @returns {Long|number} Original value\n */\nutil.longFromHash = function longFromHash(hash, unsigned) {\n var bits = util.LongBits.fromHash(hash);\n if (util.Long)\n return util.Long.fromBits(bits.lo, bits.hi, unsigned);\n return bits.toNumber(Boolean(unsigned));\n};\n\n/**\n * Merges the properties of the source object into the destination object.\n * @memberof util\n * @param {Object.} dst Destination object\n * @param {Object.} src Source object\n * @param {boolean} [ifNotSet=false] Merges only if the key is not already set\n * @returns {Object.} Destination object\n */\nfunction merge(dst, src, ifNotSet) { // used by converters\n for (var keys = Object.keys(src), i = 0; i < keys.length; ++i)\n if (dst[keys[i]] === undefined || !ifNotSet)\n dst[keys[i]] = src[keys[i]];\n return dst;\n}\n\nutil.merge = merge;\n\n/**\n * Converts the first character of a string to lower case.\n * @param {string} str String to convert\n * @returns {string} Converted string\n */\nutil.lcFirst = function lcFirst(str) {\n return str.charAt(0).toLowerCase() + str.substring(1);\n};\n\n/**\n * Creates a custom error constructor.\n * @memberof util\n * @param {string} name Error name\n * @returns {Constructor} Custom error constructor\n */\nfunction newError(name) {\n\n function CustomError(message, properties) {\n\n if (!(this instanceof CustomError))\n return new CustomError(message, properties);\n\n // Error.call(this, message);\n // ^ just returns a new error instance because the ctor can be called as a function\n\n Object.defineProperty(this, \"message\", { get: function() { return message; } });\n\n /* istanbul ignore next */\n if (Error.captureStackTrace) // node\n Error.captureStackTrace(this, CustomError);\n else\n Object.defineProperty(this, \"stack\", { value: new Error().stack || \"\" });\n\n if (properties)\n merge(this, properties);\n }\n\n CustomError.prototype = Object.create(Error.prototype, {\n constructor: {\n value: CustomError,\n writable: true,\n enumerable: false,\n configurable: true,\n },\n name: {\n get: function get() { return name; },\n set: undefined,\n enumerable: false,\n // configurable: false would accurately preserve the behavior of\n // the original, but I'm guessing that was not intentional.\n // For an actual error subclass, this property would\n // be configurable.\n configurable: true,\n },\n toString: {\n value: function value() { return this.name + \": \" + this.message; },\n writable: true,\n enumerable: false,\n configurable: true,\n },\n });\n\n return CustomError;\n}\n\nutil.newError = newError;\n\n/**\n * Constructs a new protocol error.\n * @classdesc Error subclass indicating a protocol specifc error.\n * @memberof util\n * @extends Error\n * @template T extends Message\n * @constructor\n * @param {string} message Error message\n * @param {Object.} [properties] Additional properties\n * @example\n * try {\n * MyMessage.decode(someBuffer); // throws if required fields are missing\n * } catch (e) {\n * if (e instanceof ProtocolError && e.instance)\n * console.log(\"decoded so far: \" + JSON.stringify(e.instance));\n * }\n */\nutil.ProtocolError = newError(\"ProtocolError\");\n\n/**\n * So far decoded message instance.\n * @name util.ProtocolError#instance\n * @type {Message}\n */\n\n/**\n * A OneOf getter as returned by {@link util.oneOfGetter}.\n * @typedef OneOfGetter\n * @type {function}\n * @returns {string|undefined} Set field name, if any\n */\n\n/**\n * Builds a getter for a oneof's present field name.\n * @param {string[]} fieldNames Field names\n * @returns {OneOfGetter} Unbound getter\n */\nutil.oneOfGetter = function getOneOf(fieldNames) {\n var fieldMap = {};\n for (var i = 0; i < fieldNames.length; ++i)\n fieldMap[fieldNames[i]] = 1;\n\n /**\n * @returns {string|undefined} Set field name, if any\n * @this Object\n * @ignore\n */\n return function() { // eslint-disable-line consistent-return\n for (var keys = Object.keys(this), i = keys.length - 1; i > -1; --i)\n if (fieldMap[keys[i]] === 1 && this[keys[i]] !== undefined && this[keys[i]] !== null)\n return keys[i];\n };\n};\n\n/**\n * A OneOf setter as returned by {@link util.oneOfSetter}.\n * @typedef OneOfSetter\n * @type {function}\n * @param {string|undefined} value Field name\n * @returns {undefined}\n */\n\n/**\n * Builds a setter for a oneof's present field name.\n * @param {string[]} fieldNames Field names\n * @returns {OneOfSetter} Unbound setter\n */\nutil.oneOfSetter = function setOneOf(fieldNames) {\n\n /**\n * @param {string} name Field name\n * @returns {undefined}\n * @this Object\n * @ignore\n */\n return function(name) {\n for (var i = 0; i < fieldNames.length; ++i)\n if (fieldNames[i] !== name)\n delete this[fieldNames[i]];\n };\n};\n\n/**\n * Default conversion options used for {@link Message#toJSON} implementations.\n *\n * These options are close to proto3's JSON mapping with the exception that internal types like Any are handled just like messages. More precisely:\n *\n * - Longs become strings\n * - Enums become string keys\n * - Bytes become base64 encoded strings\n * - (Sub-)Messages become plain objects\n * - Maps become plain objects with all string keys\n * - Repeated fields become arrays\n * - NaN and Infinity for float and double fields become strings\n *\n * @type {IConversionOptions}\n * @see https://developers.google.com/protocol-buffers/docs/proto3?hl=en#json\n */\nutil.toJSONOptions = {\n longs: String,\n enums: String,\n bytes: String,\n json: true\n};\n\n// Sets up buffer utility according to the environment (called in index-minimal)\nutil._configure = function() {\n var Buffer = util.Buffer;\n /* istanbul ignore if */\n if (!Buffer) {\n util._Buffer_from = util._Buffer_allocUnsafe = null;\n return;\n }\n // because node 4.x buffers are incompatible & immutable\n // see: https://github.com/dcodeIO/protobuf.js/pull/665\n util._Buffer_from = Buffer.from !== Uint8Array.from && Buffer.from ||\n /* istanbul ignore next */\n function Buffer_from(value, encoding) {\n return new Buffer(value, encoding);\n };\n util._Buffer_allocUnsafe = Buffer.allocUnsafe ||\n /* istanbul ignore next */\n function Buffer_allocUnsafe(size) {\n return new Buffer(size);\n };\n};\n","\"use strict\";\nmodule.exports = Writer;\n\nvar util = require(\"./util/minimal\");\n\nvar BufferWriter; // cyclic\n\nvar LongBits = util.LongBits,\n base64 = util.base64,\n utf8 = util.utf8;\n\n/**\n * Constructs a new writer operation instance.\n * @classdesc Scheduled writer operation.\n * @constructor\n * @param {function(*, Uint8Array, number)} fn Function to call\n * @param {number} len Value byte length\n * @param {*} val Value to write\n * @ignore\n */\nfunction Op(fn, len, val) {\n\n /**\n * Function to call.\n * @type {function(Uint8Array, number, *)}\n */\n this.fn = fn;\n\n /**\n * Value byte length.\n * @type {number}\n */\n this.len = len;\n\n /**\n * Next operation.\n * @type {Writer.Op|undefined}\n */\n this.next = undefined;\n\n /**\n * Value to write.\n * @type {*}\n */\n this.val = val; // type varies\n}\n\n/* istanbul ignore next */\nfunction noop() {} // eslint-disable-line no-empty-function\n\n/**\n * Constructs a new writer state instance.\n * @classdesc Copied writer state.\n * @memberof Writer\n * @constructor\n * @param {Writer} writer Writer to copy state from\n * @ignore\n */\nfunction State(writer) {\n\n /**\n * Current head.\n * @type {Writer.Op}\n */\n this.head = writer.head;\n\n /**\n * Current tail.\n * @type {Writer.Op}\n */\n this.tail = writer.tail;\n\n /**\n * Current buffer length.\n * @type {number}\n */\n this.len = writer.len;\n\n /**\n * Next state.\n * @type {State|null}\n */\n this.next = writer.states;\n}\n\n/**\n * Constructs a new writer instance.\n * @classdesc Wire format writer using `Uint8Array` if available, otherwise `Array`.\n * @constructor\n */\nfunction Writer() {\n\n /**\n * Current length.\n * @type {number}\n */\n this.len = 0;\n\n /**\n * Operations head.\n * @type {Object}\n */\n this.head = new Op(noop, 0, 0);\n\n /**\n * Operations tail\n * @type {Object}\n */\n this.tail = this.head;\n\n /**\n * Linked forked states.\n * @type {Object|null}\n */\n this.states = null;\n\n // When a value is written, the writer calculates its byte length and puts it into a linked\n // list of operations to perform when finish() is called. This both allows us to allocate\n // buffers of the exact required size and reduces the amount of work we have to do compared\n // to first calculating over objects and then encoding over objects. In our case, the encoding\n // part is just a linked list walk calling operations with already prepared values.\n}\n\nvar create = function create() {\n return util.Buffer\n ? function create_buffer_setup() {\n return (Writer.create = function create_buffer() {\n return new BufferWriter();\n })();\n }\n /* istanbul ignore next */\n : function create_array() {\n return new Writer();\n };\n};\n\n/**\n * Creates a new writer.\n * @function\n * @returns {BufferWriter|Writer} A {@link BufferWriter} when Buffers are supported, otherwise a {@link Writer}\n */\nWriter.create = create();\n\n/**\n * Allocates a buffer of the specified size.\n * @param {number} size Buffer size\n * @returns {Uint8Array} Buffer\n */\nWriter.alloc = function alloc(size) {\n return new util.Array(size);\n};\n\n// Use Uint8Array buffer pool in the browser, just like node does with buffers\n/* istanbul ignore else */\nif (util.Array !== Array)\n Writer.alloc = util.pool(Writer.alloc, util.Array.prototype.subarray);\n\n/**\n * Pushes a new operation to the queue.\n * @param {function(Uint8Array, number, *)} fn Function to call\n * @param {number} len Value byte length\n * @param {number} val Value to write\n * @returns {Writer} `this`\n * @private\n */\nWriter.prototype._push = function push(fn, len, val) {\n this.tail = this.tail.next = new Op(fn, len, val);\n this.len += len;\n return this;\n};\n\nfunction writeByte(val, buf, pos) {\n buf[pos] = val & 255;\n}\n\nfunction writeVarint32(val, buf, pos) {\n while (val > 127) {\n buf[pos++] = val & 127 | 128;\n val >>>= 7;\n }\n buf[pos] = val;\n}\n\n/**\n * Constructs a new varint writer operation instance.\n * @classdesc Scheduled varint writer operation.\n * @extends Op\n * @constructor\n * @param {number} len Value byte length\n * @param {number} val Value to write\n * @ignore\n */\nfunction VarintOp(len, val) {\n this.len = len;\n this.next = undefined;\n this.val = val;\n}\n\nVarintOp.prototype = Object.create(Op.prototype);\nVarintOp.prototype.fn = writeVarint32;\n\n/**\n * Writes an unsigned 32 bit value as a varint.\n * @param {number} value Value to write\n * @returns {Writer} `this`\n */\nWriter.prototype.uint32 = function write_uint32(value) {\n // here, the call to this.push has been inlined and a varint specific Op subclass is used.\n // uint32 is by far the most frequently used operation and benefits significantly from this.\n this.len += (this.tail = this.tail.next = new VarintOp(\n (value = value >>> 0)\n < 128 ? 1\n : value < 16384 ? 2\n : value < 2097152 ? 3\n : value < 268435456 ? 4\n : 5,\n value)).len;\n return this;\n};\n\n/**\n * Writes a signed 32 bit value as a varint.\n * @function\n * @param {number} value Value to write\n * @returns {Writer} `this`\n */\nWriter.prototype.int32 = function write_int32(value) {\n return value < 0\n ? this._push(writeVarint64, 10, LongBits.fromNumber(value)) // 10 bytes per spec\n : this.uint32(value);\n};\n\n/**\n * Writes a 32 bit value as a varint, zig-zag encoded.\n * @param {number} value Value to write\n * @returns {Writer} `this`\n */\nWriter.prototype.sint32 = function write_sint32(value) {\n return this.uint32((value << 1 ^ value >> 31) >>> 0);\n};\n\nfunction writeVarint64(val, buf, pos) {\n while (val.hi) {\n buf[pos++] = val.lo & 127 | 128;\n val.lo = (val.lo >>> 7 | val.hi << 25) >>> 0;\n val.hi >>>= 7;\n }\n while (val.lo > 127) {\n buf[pos++] = val.lo & 127 | 128;\n val.lo = val.lo >>> 7;\n }\n buf[pos++] = val.lo;\n}\n\n/**\n * Writes an unsigned 64 bit value as a varint.\n * @param {Long|number|string} value Value to write\n * @returns {Writer} `this`\n * @throws {TypeError} If `value` is a string and no long library is present.\n */\nWriter.prototype.uint64 = function write_uint64(value) {\n var bits = LongBits.from(value);\n return this._push(writeVarint64, bits.length(), bits);\n};\n\n/**\n * Writes a signed 64 bit value as a varint.\n * @function\n * @param {Long|number|string} value Value to write\n * @returns {Writer} `this`\n * @throws {TypeError} If `value` is a string and no long library is present.\n */\nWriter.prototype.int64 = Writer.prototype.uint64;\n\n/**\n * Writes a signed 64 bit value as a varint, zig-zag encoded.\n * @param {Long|number|string} value Value to write\n * @returns {Writer} `this`\n * @throws {TypeError} If `value` is a string and no long library is present.\n */\nWriter.prototype.sint64 = function write_sint64(value) {\n var bits = LongBits.from(value).zzEncode();\n return this._push(writeVarint64, bits.length(), bits);\n};\n\n/**\n * Writes a boolish value as a varint.\n * @param {boolean} value Value to write\n * @returns {Writer} `this`\n */\nWriter.prototype.bool = function write_bool(value) {\n return this._push(writeByte, 1, value ? 1 : 0);\n};\n\nfunction writeFixed32(val, buf, pos) {\n buf[pos ] = val & 255;\n buf[pos + 1] = val >>> 8 & 255;\n buf[pos + 2] = val >>> 16 & 255;\n buf[pos + 3] = val >>> 24;\n}\n\n/**\n * Writes an unsigned 32 bit value as fixed 32 bits.\n * @param {number} value Value to write\n * @returns {Writer} `this`\n */\nWriter.prototype.fixed32 = function write_fixed32(value) {\n return this._push(writeFixed32, 4, value >>> 0);\n};\n\n/**\n * Writes a signed 32 bit value as fixed 32 bits.\n * @function\n * @param {number} value Value to write\n * @returns {Writer} `this`\n */\nWriter.prototype.sfixed32 = Writer.prototype.fixed32;\n\n/**\n * Writes an unsigned 64 bit value as fixed 64 bits.\n * @param {Long|number|string} value Value to write\n * @returns {Writer} `this`\n * @throws {TypeError} If `value` is a string and no long library is present.\n */\nWriter.prototype.fixed64 = function write_fixed64(value) {\n var bits = LongBits.from(value);\n return this._push(writeFixed32, 4, bits.lo)._push(writeFixed32, 4, bits.hi);\n};\n\n/**\n * Writes a signed 64 bit value as fixed 64 bits.\n * @function\n * @param {Long|number|string} value Value to write\n * @returns {Writer} `this`\n * @throws {TypeError} If `value` is a string and no long library is present.\n */\nWriter.prototype.sfixed64 = Writer.prototype.fixed64;\n\n/**\n * Writes a float (32 bit).\n * @function\n * @param {number} value Value to write\n * @returns {Writer} `this`\n */\nWriter.prototype.float = function write_float(value) {\n return this._push(util.float.writeFloatLE, 4, value);\n};\n\n/**\n * Writes a double (64 bit float).\n * @function\n * @param {number} value Value to write\n * @returns {Writer} `this`\n */\nWriter.prototype.double = function write_double(value) {\n return this._push(util.float.writeDoubleLE, 8, value);\n};\n\nvar writeBytes = util.Array.prototype.set\n ? function writeBytes_set(val, buf, pos) {\n buf.set(val, pos); // also works for plain array values\n }\n /* istanbul ignore next */\n : function writeBytes_for(val, buf, pos) {\n for (var i = 0; i < val.length; ++i)\n buf[pos + i] = val[i];\n };\n\n/**\n * Writes a sequence of bytes.\n * @param {Uint8Array|string} value Buffer or base64 encoded string to write\n * @returns {Writer} `this`\n */\nWriter.prototype.bytes = function write_bytes(value) {\n var len = value.length >>> 0;\n if (!len)\n return this._push(writeByte, 1, 0);\n if (util.isString(value)) {\n var buf = Writer.alloc(len = base64.length(value));\n base64.decode(value, buf, 0);\n value = buf;\n }\n return this.uint32(len)._push(writeBytes, len, value);\n};\n\n/**\n * Writes a string.\n * @param {string} value Value to write\n * @returns {Writer} `this`\n */\nWriter.prototype.string = function write_string(value) {\n var len = utf8.length(value);\n return len\n ? this.uint32(len)._push(utf8.write, len, value)\n : this._push(writeByte, 1, 0);\n};\n\n/**\n * Forks this writer's state by pushing it to a stack.\n * Calling {@link Writer#reset|reset} or {@link Writer#ldelim|ldelim} resets the writer to the previous state.\n * @returns {Writer} `this`\n */\nWriter.prototype.fork = function fork() {\n this.states = new State(this);\n this.head = this.tail = new Op(noop, 0, 0);\n this.len = 0;\n return this;\n};\n\n/**\n * Resets this instance to the last state.\n * @returns {Writer} `this`\n */\nWriter.prototype.reset = function reset() {\n if (this.states) {\n this.head = this.states.head;\n this.tail = this.states.tail;\n this.len = this.states.len;\n this.states = this.states.next;\n } else {\n this.head = this.tail = new Op(noop, 0, 0);\n this.len = 0;\n }\n return this;\n};\n\n/**\n * Resets to the last state and appends the fork state's current write length as a varint followed by its operations.\n * @returns {Writer} `this`\n */\nWriter.prototype.ldelim = function ldelim() {\n var head = this.head,\n tail = this.tail,\n len = this.len;\n this.reset().uint32(len);\n if (len) {\n this.tail.next = head.next; // skip noop\n this.tail = tail;\n this.len += len;\n }\n return this;\n};\n\n/**\n * Finishes the write operation.\n * @returns {Uint8Array} Finished buffer\n */\nWriter.prototype.finish = function finish() {\n var head = this.head.next, // skip noop\n buf = this.constructor.alloc(this.len),\n pos = 0;\n while (head) {\n head.fn(head.val, buf, pos);\n pos += head.len;\n head = head.next;\n }\n // this.head = this.tail = null;\n return buf;\n};\n\nWriter._configure = function(BufferWriter_) {\n BufferWriter = BufferWriter_;\n Writer.create = create();\n BufferWriter._configure();\n};\n","\"use strict\";\nmodule.exports = BufferWriter;\n\n// extends Writer\nvar Writer = require(\"./writer\");\n(BufferWriter.prototype = Object.create(Writer.prototype)).constructor = BufferWriter;\n\nvar util = require(\"./util/minimal\");\n\n/**\n * Constructs a new buffer writer instance.\n * @classdesc Wire format writer using node buffers.\n * @extends Writer\n * @constructor\n */\nfunction BufferWriter() {\n Writer.call(this);\n}\n\nBufferWriter._configure = function () {\n /**\n * Allocates a buffer of the specified size.\n * @function\n * @param {number} size Buffer size\n * @returns {Buffer} Buffer\n */\n BufferWriter.alloc = util._Buffer_allocUnsafe;\n\n BufferWriter.writeBytesBuffer = util.Buffer && util.Buffer.prototype instanceof Uint8Array && util.Buffer.prototype.set.name === \"set\"\n ? function writeBytesBuffer_set(val, buf, pos) {\n buf.set(val, pos); // faster than copy (requires node >= 4 where Buffers extend Uint8Array and set is properly inherited)\n // also works for plain array values\n }\n /* istanbul ignore next */\n : function writeBytesBuffer_copy(val, buf, pos) {\n if (val.copy) // Buffer values\n val.copy(buf, pos, 0, val.length);\n else for (var i = 0; i < val.length;) // plain array values\n buf[pos++] = val[i++];\n };\n};\n\n\n/**\n * @override\n */\nBufferWriter.prototype.bytes = function write_bytes_buffer(value) {\n if (util.isString(value))\n value = util._Buffer_from(value, \"base64\");\n var len = value.length >>> 0;\n this.uint32(len);\n if (len)\n this._push(BufferWriter.writeBytesBuffer, len, value);\n return this;\n};\n\nfunction writeStringBuffer(val, buf, pos) {\n if (val.length < 40) // plain js is faster for short strings (probably due to redundant assertions)\n util.utf8.write(val, buf, pos);\n else if (buf.utf8Write)\n buf.utf8Write(val, pos);\n else\n buf.write(val, pos);\n}\n\n/**\n * @override\n */\nBufferWriter.prototype.string = function write_string_buffer(value) {\n var len = util.Buffer.byteLength(value);\n this.uint32(len);\n if (len)\n this._push(writeStringBuffer, len, value);\n return this;\n};\n\n\n/**\n * Finishes the write operation.\n * @name BufferWriter#finish\n * @function\n * @returns {Buffer} Finished buffer\n */\n\nBufferWriter._configure();\n"],"names":["Array","arguments","Promise","Math","e","String","Error","i","Float32Array","Uint8Array","isNaN","NaN","Float64Array","module","inquire","moduleName","mod","eval","Object","RangeError","r","TypeError","setTimeout","parseInt","global","window","self","Number","isFinite","u","c"],"mappings":"2FACA,EAAO,OAAO,CAAG,EAmBjB,SAAS,EAAU,CAAE,CAAE,CAAG,EAKtB,IAJA,IAAI,EAAU,AAAIA,MAAMC,UAAU,MAAM,CAAG,GACvC,EAAU,EACV,EAAU,EACV,EAAU,GACP,EAAQA,UAAU,MAAM,EAC3B,CAAM,CAAC,IAAS,CAAGA,SAAS,CAAC,IAAQ,CACzC,OAAO,IAAIC,QAAQ,SAAkB,CAAO,CAAE,CAAM,EAChD,CAAM,CAAC,EAAO,CAAG,SAAkB,CAAG,EAClC,GAAI,EAEA,GADA,EAAU,GACN,EACA,EAAO,OACN,CAGD,IAFA,IAAI,EAAS,AAAIF,MAAMC,UAAU,MAAM,CAAG,GACtC,EAAS,EACN,EAAS,EAAO,MAAM,EACzB,CAAM,CAAC,IAAS,CAAGA,SAAS,CAAC,EAAO,CACxC,EAAQ,KAAK,CAAC,KAAM,EACxB,CAER,EACA,GAAI,CACA,EAAG,KAAK,CAAC,GAAO,KAAM,EAC1B,CAAE,MAAO,EAAK,CACN,IACA,EAAU,GACV,EAAO,GAEf,CACJ,EACJ,C,gDC5CA,IAAI,EAAS,CAOb,GAAO,MAAM,CAAG,SAAgB,C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B,EAAa,KAAK,CAAG,EAAK,mBAAmB,CAE7C,EAAa,gBAAgB,CAAG,EAAK,MAAM,EAAI,EAAK,MAAM,CAAC,SAAS,YAAYT,YAAc,AAAmC,QAAnC,EAAK,MAAM,CAAC,SAAS,CAAC,GAAG,CAAC,IAAI,CACtH,SAA8B,CAAG,CAAE,CAAG,CAAE,CAAG,EAC3C,EAAI,GAAG,CAAC,EAAK,EAEf,EAEE,SAA+B,CAAG,CAAE,CAAG,CAAE,CAAG,EAC5C,GAAI,EAAI,IAAI,CACV,EAAI,IAAI,CAAC,EAAK,EAAK,EAAG,EAAI,MAAM,OAC7B,IAAK,IAAIF,EAAI,EAAGA,EAAI,EAAI,MAAM,EACjC,CAAG,CAAC,IAAM,CAAG,CAAG,CAACA,IAAI,AACzB,CACR,EAMA,EAAa,SAAS,CAAC,KAAK,CAAG,SAA4B,CAAK,EACxD,EAAK,QAAQ,CAAC,IACd,GAAQ,EAAK,YAAY,CAAC,EAAO,SAAQ,EAC7C,IAAI,EAAM,EAAM,MAAM,GAAK,EAI3B,OAHA,IAAI,CAAC,MAAM,CAAC,GACR,GACA,IAAI,CAAC,KAAK,CAAC,EAAa,gBAAgB,CAAE,EAAK,GAC5C,IAAI,AACf,EAcA,EAAa,SAAS,CAAC,MAAM,CAAG,SAA6B,CAAK,EAC9D,IAAI,EAAM,EAAK,MAAM,CAAC,UAAU,CAAC,GAIjC,OAHA,IAAI,CAAC,MAAM,CAAC,GACR,GACA,IAAI,CAAC,KAAK,CAAC,EAAmB,EAAK,GAChC,IAAI,AACf,EAUA,EAAa,UAAU,E"} \ No newline at end of file diff --git a/packages/node_modules/retry/index.js.map b/packages/node_modules/retry/index.js.map new file mode 100644 index 00000000000..07a7a72ddec --- /dev/null +++ b/packages/node_modules/retry/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"retry/index.js","sources":["webpack:///./retry/index.js","webpack:///./retry/lib/retry.js","webpack:///./retry/lib/retry_operation.js"],"sourcesContent":["module.exports = require('./lib/retry');","var RetryOperation = require('./retry_operation');\n\nexports.operation = function(options) {\n var timeouts = exports.timeouts(options);\n return new RetryOperation(timeouts, {\n forever: options && (options.forever || options.retries === Infinity),\n unref: options && options.unref,\n maxRetryTime: options && options.maxRetryTime\n });\n};\n\nexports.timeouts = function(options) {\n if (options instanceof Array) {\n return [].concat(options);\n }\n\n var opts = {\n retries: 10,\n factor: 2,\n minTimeout: 1 * 1000,\n maxTimeout: Infinity,\n randomize: false\n };\n for (var key in options) {\n opts[key] = options[key];\n }\n\n if (opts.minTimeout > opts.maxTimeout) {\n throw new Error('minTimeout is greater than maxTimeout');\n }\n\n var timeouts = [];\n for (var i = 0; i < opts.retries; i++) {\n timeouts.push(this.createTimeout(i, opts));\n }\n\n if (options && options.forever && !timeouts.length) {\n timeouts.push(this.createTimeout(i, opts));\n }\n\n // sort the array numerically ascending\n timeouts.sort(function(a,b) {\n return a - b;\n });\n\n return timeouts;\n};\n\nexports.createTimeout = function(attempt, opts) {\n var random = (opts.randomize)\n ? (Math.random() + 1)\n : 1;\n\n var timeout = Math.round(random * Math.max(opts.minTimeout, 1) * Math.pow(opts.factor, attempt));\n timeout = Math.min(timeout, opts.maxTimeout);\n\n return timeout;\n};\n\nexports.wrap = function(obj, options, methods) {\n if (options instanceof Array) {\n methods = options;\n options = null;\n }\n\n if (!methods) {\n methods = [];\n for (var key in obj) {\n if (typeof obj[key] === 'function') {\n methods.push(key);\n }\n }\n }\n\n for (var i = 0; i < methods.length; i++) {\n var method = methods[i];\n var original = obj[method];\n\n obj[method] = function retryWrapper(original) {\n var op = exports.operation(options);\n var args = Array.prototype.slice.call(arguments, 1);\n var callback = args.pop();\n\n args.push(function(err) {\n if (op.retry(err)) {\n return;\n }\n if (err) {\n arguments[0] = op.mainError();\n }\n callback.apply(this, arguments);\n });\n\n op.attempt(function() {\n original.apply(obj, args);\n });\n }.bind(obj, original);\n obj[method].options = options;\n }\n};\n","function RetryOperation(timeouts, options) {\n // Compatibility for the old (timeouts, retryForever) signature\n if (typeof options === 'boolean') {\n options = { forever: options };\n }\n\n this._originalTimeouts = JSON.parse(JSON.stringify(timeouts));\n this._timeouts = timeouts;\n this._options = options || {};\n this._maxRetryTime = options && options.maxRetryTime || Infinity;\n this._fn = null;\n this._errors = [];\n this._attempts = 1;\n this._operationTimeout = null;\n this._operationTimeoutCb = null;\n this._timeout = null;\n this._operationStart = null;\n this._timer = null;\n\n if (this._options.forever) {\n this._cachedTimeouts = this._timeouts.slice(0);\n }\n}\nmodule.exports = RetryOperation;\n\nRetryOperation.prototype.reset = function() {\n this._attempts = 1;\n this._timeouts = this._originalTimeouts.slice(0);\n}\n\nRetryOperation.prototype.stop = function() {\n if (this._timeout) {\n clearTimeout(this._timeout);\n }\n if (this._timer) {\n clearTimeout(this._timer);\n }\n\n this._timeouts = [];\n this._cachedTimeouts = null;\n};\n\nRetryOperation.prototype.retry = function(err) {\n if (this._timeout) {\n clearTimeout(this._timeout);\n }\n\n if (!err) {\n return false;\n }\n var currentTime = new Date().getTime();\n if (err && currentTime - this._operationStart >= this._maxRetryTime) {\n this._errors.push(err);\n this._errors.unshift(new Error('RetryOperation timeout occurred'));\n return false;\n }\n\n this._errors.push(err);\n\n var timeout = this._timeouts.shift();\n if (timeout === undefined) {\n if (this._cachedTimeouts) {\n // retry forever, only keep last error\n this._errors.splice(0, this._errors.length - 1);\n timeout = this._cachedTimeouts.slice(-1);\n } else {\n return false;\n }\n }\n\n var self = this;\n this._timer = setTimeout(function() {\n self._attempts++;\n\n if (self._operationTimeoutCb) {\n self._timeout = setTimeout(function() {\n self._operationTimeoutCb(self._attempts);\n }, self._operationTimeout);\n\n if (self._options.unref) {\n self._timeout.unref();\n }\n }\n\n self._fn(self._attempts);\n }, timeout);\n\n if (this._options.unref) {\n this._timer.unref();\n }\n\n return true;\n};\n\nRetryOperation.prototype.attempt = function(fn, timeoutOps) {\n this._fn = fn;\n\n if (timeoutOps) {\n if (timeoutOps.timeout) {\n this._operationTimeout = timeoutOps.timeout;\n }\n if (timeoutOps.cb) {\n this._operationTimeoutCb = timeoutOps.cb;\n }\n }\n\n var self = this;\n if (this._operationTimeoutCb) {\n this._timeout = setTimeout(function() {\n self._operationTimeoutCb();\n }, self._operationTimeout);\n }\n\n this._operationStart = new Date().getTime();\n\n this._fn(this._attempts);\n};\n\nRetryOperation.prototype.try = function(fn) {\n console.log('Using RetryOperation.try() is deprecated');\n this.attempt(fn);\n};\n\nRetryOperation.prototype.start = function(fn) {\n console.log('Using RetryOperation.start() is deprecated');\n this.attempt(fn);\n};\n\nRetryOperation.prototype.start = RetryOperation.prototype.try;\n\nRetryOperation.prototype.errors = function() {\n return this._errors;\n};\n\nRetryOperation.prototype.attempts = function() {\n return this._attempts;\n};\n\nRetryOperation.prototype.mainError = function() {\n if (this._errors.length === 0) {\n return null;\n }\n\n var counts = {};\n var mainError = null;\n var mainErrorCount = 0;\n\n for (var i = 0; i < this._errors.length; i++) {\n var error = this._errors[i];\n var message = error.message;\n var count = (counts[message] || 0) + 1;\n\n counts[message] = count;\n\n if (count >= mainErrorCount) {\n mainError = error;\n mainErrorCount = count;\n }\n }\n\n return mainError;\n};\n"],"names":["r","e","Array","Error","Math","o","arguments","t","JSON","clearTimeout","Date","setTimeout","console","i"],"mappings":"gDAAA,EAAO,OAAO,CAAGA,EAAjB,uB,yCCAA,IAAI,EAAiBA,EAAQ,iCAE7BC,CAAAA,EAAQ,SAAS,CAAG,SAAS,CAAO,EAElC,OAAO,IAAI,EADIA,EAAQ,QAAQ,CAAC,GACI,CAChC,QAAS,GAAY,GAAQ,OAAO,EAAI,EAAQ,OAAO,GAAK,GAAO,EACnE,MAAO,GAAW,EAAQ,KAAK,CAC/B,aAAc,GAAW,EAAQ,YAAY,AACjD,EACF,EAEAA,EAAQ,QAAQ,CAAG,SAAS,CAAO,EACjC,GAAI,aAAmBC,MACrB,MAAO,EAAE,CAAC,MAAM,CAAC,GAGnB,IAAI,EAAO,CACT,QAAS,GACT,OAAQ,EACR,WAAY,IACZ,W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AAQ,AAAC,EAAM,CAAC,EAAQ,EAAI,GAAK,CAErC,EAAM,CAAC,EAAQ,CAAG,EAEd,GAAS,IACX,EAAY,EACZ,EAAiB,EAErB,CAEA,OAAO,CACT,C"} \ No newline at end of file diff --git a/packages/node_modules/rfdc/index.js.map b/packages/node_modules/rfdc/index.js.map new file mode 100644 index 00000000000..6901bf0c52f --- /dev/null +++ b/packages/node_modules/rfdc/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"rfdc/index.js","sources":["webpack:///./rfdc/index.js"],"sourcesContent":["'use strict'\nmodule.exports = rfdc\n\nfunction copyBuffer (cur) {\n if (cur instanceof Buffer) {\n return Buffer.from(cur)\n }\n\n return new cur.constructor(cur.buffer.slice(), cur.byteOffset, cur.length)\n}\n\nfunction rfdc (opts) {\n opts = opts || {}\n if (opts.circles) return rfdcCircles(opts)\n\n const constructorHandlers = new Map()\n constructorHandlers.set(Date, (o) => new Date(o))\n constructorHandlers.set(Map, (o, fn) => new Map(cloneArray(Array.from(o), fn)))\n constructorHandlers.set(Set, (o, fn) => new Set(cloneArray(Array.from(o), fn)))\n if (opts.constructorHandlers) {\n for (const handler of opts.constructorHandlers) {\n constructorHandlers.set(handler[0], handler[1])\n }\n }\n\n let handler = null\n\n return opts.proto ? cloneProto : clone\n\n function cloneArray (a, fn) {\n const keys = Object.keys(a)\n const a2 = new Array(keys.length)\n for (let i = 0; i < keys.length; i++) {\n const k = keys[i]\n const cur = a[k]\n if (typeof cur !== 'object' || cur === null) {\n a2[k] = cur\n } else if (cur.constructor !== Object && (handler = constructorHandlers.get(cur.constructor))) {\n a2[k] = handler(cur, fn)\n } else if (ArrayBuffer.isView(cur)) {\n a2[k] = copyBuffer(cur)\n } else {\n a2[k] = fn(cur)\n }\n }\n return a2\n }\n\n function clone (o) {\n if (typeof o !== 'object' || o === null) return o\n if (Array.isArray(o)) return cloneArray(o, clone)\n if (o.constructor !== Object && (handler = constructorHandlers.get(o.constructor))) {\n return handler(o, clone)\n }\n const o2 = {}\n for (const k in o) {\n if (Object.hasOwnProperty.call(o, k) === false) continue\n const cur = o[k]\n if (typeof cur !== 'object' || cur === null) {\n o2[k] = cur\n } else if (cur.constructor !== Object && (handler = constructorHandlers.get(cur.constructor))) {\n o2[k] = handler(cur, clone)\n } else if (ArrayBuffer.isView(cur)) {\n o2[k] = copyBuffer(cur)\n } else {\n o2[k] = clone(cur)\n }\n }\n return o2\n }\n\n function cloneProto (o) {\n if (typeof o !== 'object' || o === null) return o\n if (Array.isArray(o)) return cloneArray(o, cloneProto)\n if (o.constructor !== Object && (handler = constructorHandlers.get(o.constructor))) {\n return handler(o, cloneProto)\n }\n const o2 = {}\n for (const k in o) {\n const cur = o[k]\n if (typeof cur !== 'object' || cur === null) {\n o2[k] = cur\n } else if (cur.constructor !== Object && (handler = constructorHandlers.get(cur.constructor))) {\n o2[k] = handler(cur, cloneProto)\n } else if (ArrayBuffer.isView(cur)) {\n o2[k] = copyBuffer(cur)\n } else {\n o2[k] = cloneProto(cur)\n }\n }\n return o2\n }\n}\n\nfunction rfdcCircles (opts) {\n const refs = []\n const refsNew = []\n\n const constructorHandlers = new Map()\n constructorHandlers.set(Date, (o) => new Date(o))\n constructorHandlers.set(Map, (o, fn) => new Map(cloneArray(Array.from(o), fn)))\n constructorHandlers.set(Set, (o, fn) => new Set(cloneArray(Array.from(o), fn)))\n if (opts.constructorHandlers) {\n for (const handler of opts.constructorHandlers) {\n constructorHandlers.set(handler[0], handler[1])\n }\n }\n\n let handler = null\n return opts.proto ? cloneProto : clone\n\n function cloneArray (a, fn) {\n const keys = Object.keys(a)\n const a2 = new Array(keys.length)\n for (let i = 0; i < keys.length; i++) {\n const k = keys[i]\n const cur = a[k]\n if (typeof cur !== 'object' || cur === null) {\n a2[k] = cur\n } else if (cur.constructor !== Object && (handler = constructorHandlers.get(cur.constructor))) {\n a2[k] = handler(cur, fn)\n } else if (ArrayBuffer.isView(cur)) {\n a2[k] = copyBuffer(cur)\n } else {\n const index = refs.indexOf(cur)\n if (index !== -1) {\n a2[k] = refsNew[index]\n } else {\n a2[k] = fn(cur)\n }\n }\n }\n return a2\n }\n\n function clone (o) {\n if (typeof o !== 'object' || o === null) return o\n if (Array.isArray(o)) return cloneArray(o, clone)\n if (o.constructor !== Object && (handler = constructorHandlers.get(o.constructor))) {\n return handler(o, clone)\n }\n const o2 = {}\n refs.push(o)\n refsNew.push(o2)\n for (const k in o) {\n if (Object.hasOwnProperty.call(o, k) === false) continue\n const cur = o[k]\n if (typeof cur !== 'object' || cur === null) {\n o2[k] = cur\n } else if (cur.constructor !== Object && (handler = constructorHandlers.get(cur.constructor))) {\n o2[k] = handler(cur, clone)\n } else if (ArrayBuffer.isView(cur)) {\n o2[k] = copyBuffer(cur)\n } else {\n const i = refs.indexOf(cur)\n if (i !== -1) {\n o2[k] = refsNew[i]\n } else {\n o2[k] = clone(cur)\n }\n }\n }\n refs.pop()\n refsNew.pop()\n return o2\n }\n\n function cloneProto (o) {\n if (typeof o !== 'object' || o === null) return o\n if (Array.isArray(o)) return cloneArray(o, cloneProto)\n if (o.constructor !== Object && (handler = constructorHandlers.get(o.constructor))) {\n return handler(o, cloneProto)\n }\n const o2 = {}\n refs.push(o)\n refsNew.push(o2)\n for (const k in o) {\n const cur = o[k]\n if (typeof cur !== 'object' || cur === null) {\n o2[k] = cur\n } else if (cur.constructor !== Object && (handler = constructorHandlers.get(cur.constructor))) {\n o2[k] = handler(cur, cloneProto)\n } else if (ArrayBuffer.isView(cur)) {\n o2[k] = copyBuffer(cur)\n } else {\n const i = refs.indexOf(cur)\n if (i !== -1) {\n o2[k] = refsNew[i]\n } else {\n o2[k] = cloneProto(cur)\n }\n }\n }\n refs.pop()\n refsNew.pop()\n return o2\n }\n}\n"],"names":["Buffer","r","Map","Date","Array","Set","Object","ArrayBuffer","f"],"mappings":"wDAGA,SAAS,EAAY,CAAG,SACtB,AAAI,aAAeA,OACVA,OAAO,IAAI,CAAC,GAGd,IAAI,EAAI,WAAW,CAAC,EAAI,MA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AAM,EAElB,CACA,OAAO,CACT,EAxCA,SAAS,EAAY,CAAC,CAAE,CAAE,EACxB,IAAM,EAAOD,OAAO,IAAI,CAAC,GACnB,EAAK,AAAIF,MAAM,EAAK,MAAM,EAChC,IAAK,IAAI,EAAI,EAAG,EAAI,EAAK,MAAM,CAAE,IAAK,CACpC,IAAM,EAAI,CAAI,CAAC,EAAE,CACX,EAAM,CAAC,CAAC,EAAE,AACZ,AAAe,WAAf,OAAO,GAAoB,AAAQ,OAAR,EAC7B,CAAE,CAAC,EAAE,CAAG,EACC,EAAI,WAAW,GAAKE,QAAW,GAAU,EAAoB,GAAG,CAAC,EAAI,WAAW,GACzF,CAAE,CAAC,EAAE,CAAG,EAAQ,EAAK,GACZC,YAAY,MAAM,CAAC,GAC5B,CAAE,CAAC,EAAE,CAAG,EAAW,GAEnB,CAAE,CAAC,EAAE,CAAG,EAAG,EAEf,CACA,OAAO,CACT,CA8CF,C"} \ No newline at end of file diff --git a/packages/node_modules/semifies/index.js.map b/packages/node_modules/semifies/index.js.map new file mode 100644 index 00000000000..195f00aef45 --- /dev/null +++ b/packages/node_modules/semifies/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"semifies/index.js","sources":["webpack:///./semifies/index.js"],"sourcesContent":["module.exports = satisfies\n\nfunction satisfies (v, t) {\n const [version] = parse(v, '')\n\n for (const checks of compile(t)) {\n if (checkAll(checks, version)) return true\n }\n\n return false\n}\n\nfunction checkAll (checks, v) {\n for (const [ok, t] of checks) {\n if (!test(v, t, ok)) return false\n }\n return true\n}\n\nfunction match (t) {\n if (t === 'latest') t = '>=0'\n return t.match(/^([^\\d+]*)(\\d.*)$/) || [null, '', '*.*.*']\n}\n\nfunction compile (t) {\n const result = []\n\n let checks = []\n\n const tokens = t.trim().split(/\\s+/)\n\n for (let i = 0; i < tokens.length; i++) {\n const t = tokens[i]\n\n if (t === '-') continue\n\n if (t === '||') {\n result.push(checks)\n checks = []\n continue\n }\n\n // untrim whitespace if this is a range spec\n if (/^[<>=~v^]+$/.test(t) && i + 1 < tokens.length) {\n tokens[i + 1] = t + tokens[i + 1]\n continue\n }\n\n const res = match(t)\n\n let cmp = res[1] || '='\n if (cmp.endsWith('v')) cmp = cmp.slice(0, -1)\n\n let [v, c] = parse(res[2], cmp)\n\n if (i + 2 < tokens.length && tokens[i + 1] === '-') {\n const m = match(tokens[i + 2])\n tokens[i + 2] = '<=' + (m[2].indexOf('-') === -1 ? m[2] + '.*.*' : m[2])\n c = '>='\n }\n\n if (c[0] === '~') {\n const digs = res[2].split('-')[0].split('.').length\n checks.push(['>=', v])\n checks.push(['<', digs === 1 ? inc(v, 0) : digs === 2 ? inc(v, 1) : inc(v, 1)])\n } else if (c[0] === '^') {\n const digs = v[0] !== 0 ? 0 : v[1] !== 0 ? 1 : 2\n checks.push(['>=', v])\n checks.push(['<', digs === 0 ? inc(v, 0) : digs === 1 ? inc(v, 1) : inc(v, 2)])\n } else {\n checks.push([c.replace('~', '').replace('^', ''), v])\n }\n }\n\n if (checks.length) result.push(checks)\n return result\n}\n\nfunction inc (v, n) {\n const cpy = v.slice(0)\n if (v[n] === -1) return cpy\n cpy[n++]++\n for (; n < 3; n++) cpy[n] = 0\n return cpy\n}\n\nfunction num (n) {\n return n === 'x' || n === 'X' || n === '*' || n === 'latest' ? -1 : Number(n)\n}\n\nfunction numOrString (s) {\n return /^\\d+$/.test(s) ? Number(s) : s\n}\n\nfunction ok (c, a, b) {\n return b === -1 // -1 means x\n ? c !== '<'\n : (c === '=' ? a === b : c === '>' ? a > b : c === '>=' ? a >= b : c === '<' ? a < b : c === '<=' ? a <= b : false)\n}\n\nfunction parse (v, c) {\n v = v.split('+')[0] // strip build\n const [a, b] = v.split('-')\n const nums = a.split('.').map(num).slice(0, 3)\n const last = Math.max(nums.length - 1, 0)\n\n if (c === '>') { // coerce to >=\n c = '>='\n nums.push(0, 0, 0)\n nums[last]++\n } else if (c === '') { // no comparision, just zero fill\n nums.push(0, 0, 0)\n } else { // anything else just wilcard\n nums.push(-1, -1, -1)\n }\n\n if (!b) return [nums.slice(0, 3), c]\n return [nums.slice(0, 3).concat(b.split('.').map(numOrString)), c]\n}\n\nfunction test (v, t, c) {\n if (!ok('=', v[0], t[0])) return ok(c, v[0], t[0])\n if (!ok('=', v[1], t[1])) return ok(c, v[1], t[1])\n if (!ok('=', v[2], t[2])) return ok(c, v[2], t[2])\n\n // no prerelease - final compare\n if (v.length === 3 && t.length === 3) return ok(c, v[2], t[2])\n\n // can never be less when comparing to a prerelease\n if (c[0] === '<' && (t.length === 3 || v.length === 3)) return false\n\n // can sometimes be higher\n if (c[0] === '>') {\n if (v.length === 3) return true\n if (t.length === 3) return false\n }\n\n for (let i = 3; i < Math.max(v.length, t.length); i++) {\n if (ok(c, v[i] || '', t[i] || '')) return true\n }\n\n return false\n}\n"],"names":["t","Number","Math","r"],"mappings":"+CAmBA,SAAS,EAAOA,CAAC,EAEf,MADIA,AAAM,WAANA,GAAgBA,CAAAA,EAAI,KAAI,EACrBA,EAAE,KAAK,CAAC,sBAAwB,CAAC,KAAM,GAAI,QAAQ,AAC5D,CAwDA,SAAS,EAAK,CAAC,CAAE,CAAC,EAChB,IAAM,EAAM,EAAE,KAAK,CAAC,GACpB,GAAI,AAAS,KAAT,CAAC,CAAC,EAAE,CAAS,OAAO,EAExB,IADA,CAAG,CAAC,IAAI,GACD,EAAI,EAAG,IAAK,CAAG,CAAC,EAAE,CAAG,EAC5B,OAAO,CACT,CAEA,SAAS,EAAK,CAAC,EACb,MAAO,AAAM,MAAN,GAAa,AAAM,MAAN,GAAa,AAAM,MAAN,GAAa,AAAM,WAAN,EAAiB,GAAKC,OAAO,EAC7E,CAEA,SAAS,EAAa,CAAC,EACrB,MAAO,QAAQ,IAAI,CAAC,GAAKA,OAAO,GAAK,CACvC,CAEA,SAAS,EAAI,CAAC,CAAE,CAAC,CAAE,CAAC,EAClB,OAAO,AAAM,KAAN,EACH,AAAM,MAAN,EACC,AAAM,MAAN,EAAY,IAAM,EAAI,AAA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EACT,EAhIc,EAAG,EAAG,GAAK,MAAO,GAE9B,MAAO,EACT,EAXiB,EAAQ,GAAU,MAAO,GAGxC,MAAO,EACT,C"} \ No newline at end of file diff --git a/packages/node_modules/shell-quote/index.js.map b/packages/node_modules/shell-quote/index.js.map new file mode 100644 index 00000000000..c916f443dd8 --- /dev/null +++ b/packages/node_modules/shell-quote/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"shell-quote/index.js","sources":["webpack:///./shell-quote/parse.js","webpack:///./shell-quote/quote.js","webpack:///./shell-quote/index.js"],"sourcesContent":["'use strict';\n\n// '<(' is process substitution operator and\n// can be parsed the same as control operator\nvar CONTROL = '(?:' + [\n\t'\\\\|\\\\|',\n\t'\\\\&\\\\&',\n\t';;',\n\t'\\\\|\\\\&',\n\t'\\\\<\\\\(',\n\t'\\\\<\\\\<\\\\<',\n\t'>>',\n\t'>\\\\&',\n\t'<\\\\&',\n\t'[&;()|<>]'\n].join('|') + ')';\nvar controlRE = new RegExp('^' + CONTROL + '$');\nvar META = '|&;()<> \\\\t';\nvar SINGLE_QUOTE = '\"((\\\\\\\\\"|[^\"])*?)\"';\nvar DOUBLE_QUOTE = '\\'((\\\\\\\\\\'|[^\\'])*?)\\'';\nvar hash = /^#$/;\n\nvar SQ = \"'\";\nvar DQ = '\"';\nvar DS = '$';\n\nvar TOKEN = '';\nvar mult = 0x100000000; // Math.pow(16, 8);\nfor (var i = 0; i < 4; i++) {\n\tTOKEN += (mult * Math.random()).toString(16);\n}\nvar startsWithToken = new RegExp('^' + TOKEN);\n\nfunction matchAll(s, r) {\n\tvar origIndex = r.lastIndex;\n\n\tvar matches = [];\n\tvar matchObj;\n\n\twhile ((matchObj = r.exec(s))) {\n\t\tmatches.push(matchObj);\n\t\tif (r.lastIndex === matchObj.index) {\n\t\t\tr.lastIndex += 1;\n\t\t}\n\t}\n\n\tr.lastIndex = origIndex;\n\n\treturn matches;\n}\n\nfunction getVar(env, pre, key) {\n\tvar r = typeof env === 'function' ? env(key) : env[key];\n\tif (typeof r === 'undefined' && key != '') {\n\t\tr = '';\n\t} else if (typeof r === 'undefined') {\n\t\tr = '$';\n\t}\n\n\tif (typeof r === 'object') {\n\t\treturn pre + TOKEN + JSON.stringify(r) + TOKEN;\n\t}\n\treturn pre + r;\n}\n\nfunction parseInternal(string, env, opts) {\n\tif (!opts) {\n\t\topts = {};\n\t}\n\tvar BS = opts.escape || '\\\\';\n\tvar BAREWORD = '(\\\\' + BS + '[\\'\"' + META + ']|[^\\\\s\\'\"' + META + '])+';\n\n\tvar chunker = new RegExp([\n\t\t'(' + CONTROL + ')', // control chars\n\t\t'(' + BAREWORD + '|' + SINGLE_QUOTE + '|' + DOUBLE_QUOTE + ')+'\n\t].join('|'), 'g');\n\n\tvar matches = matchAll(string, chunker);\n\n\tif (matches.length === 0) {\n\t\treturn [];\n\t}\n\tif (!env) {\n\t\tenv = {};\n\t}\n\n\tvar commented = false;\n\n\treturn matches.map(function (match) {\n\t\tvar s = match[0];\n\t\tif (!s || commented) {\n\t\t\treturn void undefined;\n\t\t}\n\t\tif (controlRE.test(s)) {\n\t\t\treturn { op: s };\n\t\t}\n\n\t\t// Hand-written scanner/parser for Bash quoting rules:\n\t\t//\n\t\t// 1. inside single quotes, all characters are printed literally.\n\t\t// 2. inside double quotes, all characters are printed literally\n\t\t// except variables prefixed by '$' and backslashes followed by\n\t\t// either a double quote or another backslash.\n\t\t// 3. outside of any quotes, backslashes are treated as escape\n\t\t// characters and not printed (unless they are themselves escaped)\n\t\t// 4. quote context can switch mid-token if there is no whitespace\n\t\t// between the two quote contexts (e.g. all'one'\"token\" parses as\n\t\t// \"allonetoken\")\n\t\tvar quote = false;\n\t\tvar esc = false;\n\t\tvar out = '';\n\t\tvar isGlob = false;\n\t\tvar i;\n\n\t\tfunction parseEnvVar() {\n\t\t\ti += 1;\n\t\t\tvar varend;\n\t\t\tvar varname;\n\t\t\tvar char = s.charAt(i);\n\n\t\t\tif (char === '{') {\n\t\t\t\ti += 1;\n\t\t\t\tif (s.charAt(i) === '}') {\n\t\t\t\t\tthrow new Error('Bad substitution: ' + s.slice(i - 2, i + 1));\n\t\t\t\t}\n\t\t\t\tvarend = s.indexOf('}', i);\n\t\t\t\tif (varend < 0) {\n\t\t\t\t\tthrow new Error('Bad substitution: ' + s.slice(i));\n\t\t\t\t}\n\t\t\t\tvarname = s.slice(i, varend);\n\t\t\t\ti = varend;\n\t\t\t} else if ((/[*@#?$!_-]/).test(char)) {\n\t\t\t\tvarname = char;\n\t\t\t\ti += 1;\n\t\t\t} else {\n\t\t\t\tvar slicedFromI = s.slice(i);\n\t\t\t\tvarend = slicedFromI.match(/[^\\w\\d_]/);\n\t\t\t\tif (!varend) {\n\t\t\t\t\tvarname = slicedFromI;\n\t\t\t\t\ti = s.length;\n\t\t\t\t} else {\n\t\t\t\t\tvarname = slicedFromI.slice(0, varend.index);\n\t\t\t\t\ti += varend.index - 1;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn getVar(env, '', varname);\n\t\t}\n\n\t\tfor (i = 0; i < s.length; i++) {\n\t\t\tvar c = s.charAt(i);\n\t\t\tisGlob = isGlob || (!quote && (c === '*' || c === '?'));\n\t\t\tif (esc) {\n\t\t\t\tout += c;\n\t\t\t\tesc = false;\n\t\t\t} else if (quote) {\n\t\t\t\tif (c === quote) {\n\t\t\t\t\tquote = false;\n\t\t\t\t} else if (quote == SQ) {\n\t\t\t\t\tout += c;\n\t\t\t\t} else { // Double quote\n\t\t\t\t\tif (c === BS) {\n\t\t\t\t\t\ti += 1;\n\t\t\t\t\t\tc = s.charAt(i);\n\t\t\t\t\t\tif (c === DQ || c === BS || c === DS) {\n\t\t\t\t\t\t\tout += c;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tout += BS + c;\n\t\t\t\t\t\t}\n\t\t\t\t\t} else if (c === DS) {\n\t\t\t\t\t\tout += parseEnvVar();\n\t\t\t\t\t} else {\n\t\t\t\t\t\tout += c;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else if (c === DQ || c === SQ) {\n\t\t\t\tquote = c;\n\t\t\t} else if (controlRE.test(c)) {\n\t\t\t\treturn { op: s };\n\t\t\t} else if (hash.test(c)) {\n\t\t\t\tcommented = true;\n\t\t\t\tvar commentObj = { comment: string.slice(match.index + i + 1) };\n\t\t\t\tif (out.length) {\n\t\t\t\t\treturn [out, commentObj];\n\t\t\t\t}\n\t\t\t\treturn [commentObj];\n\t\t\t} else if (c === BS) {\n\t\t\t\tesc = true;\n\t\t\t} else if (c === DS) {\n\t\t\t\tout += parseEnvVar();\n\t\t\t} else {\n\t\t\t\tout += c;\n\t\t\t}\n\t\t}\n\n\t\tif (isGlob) {\n\t\t\treturn { op: 'glob', pattern: out };\n\t\t}\n\n\t\treturn out;\n\t}).reduce(function (prev, arg) { // finalize parsed arguments\n\t\t// TODO: replace this whole reduce with a concat\n\t\treturn typeof arg === 'undefined' ? prev : prev.concat(arg);\n\t}, []);\n}\n\nmodule.exports = function parse(s, env, opts) {\n\tvar mapped = parseInternal(s, env, opts);\n\tif (typeof env !== 'function') {\n\t\treturn mapped;\n\t}\n\treturn mapped.reduce(function (acc, s) {\n\t\tif (typeof s === 'object') {\n\t\t\treturn acc.concat(s);\n\t\t}\n\t\tvar xs = s.split(RegExp('(' + TOKEN + '.*?' + TOKEN + ')', 'g'));\n\t\tif (xs.length === 1) {\n\t\t\treturn acc.concat(xs[0]);\n\t\t}\n\t\treturn acc.concat(xs.filter(Boolean).map(function (x) {\n\t\t\tif (startsWithToken.test(x)) {\n\t\t\t\treturn JSON.parse(x.split(TOKEN)[1]);\n\t\t\t}\n\t\t\treturn x;\n\t\t}));\n\t}, []);\n};\n","'use strict';\n\nmodule.exports = function quote(xs) {\n\treturn xs.map(function (s) {\n\t\tif (s === '') {\n\t\t\treturn '\\'\\'';\n\t\t}\n\t\tif (s && typeof s === 'object') {\n\t\t\treturn s.op.replace(/(.)/g, '\\\\$1');\n\t\t}\n\t\tif ((/[\"\\s\\\\]/).test(s) && !(/'/).test(s)) {\n\t\t\treturn \"'\" + s.replace(/(['])/g, '\\\\$1') + \"'\";\n\t\t}\n\t\tif ((/[\"'\\s]/).test(s)) {\n\t\t\treturn '\"' + s.replace(/([\"\\\\$`!])/g, '\\\\$1') + '\"';\n\t\t}\n\t\treturn String(s).replace(/([A-Za-z]:)?([#!\"$&'()*,:;<=>?@[\\\\\\]^`{|}])/g, '$1\\\\$2');\n\t}).join(' ');\n};\n","'use strict';\n\nexports.quote = require('./quote');\nexports.parse = require('./parse');\n"],"names":["RegExp","Math","e","r","c","Error","JSON","Boolean","String"],"mappings":"+DA4BA,IAAK,IAxBD,EAAU,sEAYV,EAAY,AAAIA,OAAO,IAAM,EAAU,KACvC,EAAO,cAGP,EAAO,MAMP,EAAQ,GAEH,EAAI,EAAG,EAAI,EAAG,IACtB,GAAS,AAAC,CAFA,YAEOC,KAAK,MAAM,EAAC,EAAG,QAAQ,CAAC,IAzB1C,IA2BI,EAAkB,AAAID,OAAO,IAAM,EA8KvC,GAAO,OAAO,CAAG,SAAe,CAAC,CAAE,CAAG,CAAE,CAAI,EAC3C,IAAI,EAAS,AA7Id,SAAuB,CAAM,CAAE,CAAG,CAAE,CAAI,EACnC,AAAC,GACJ,GAAO,CAAC,GAET,IAAI,EAAK,EAAK,MAAM,EAAI,KAQpB,EAAU,AA5Cf,SAAkB,CAAC,CAAE,CAAC,EAMrB,IALA,IAGI,EAHA,EAAY,EAAE,SAAS,CAEvB,EAAU,EAAE,CAGR,EAAW,EAAE,IAAI,CAAC,IACzB,EAAQ,IAAI,CAAC,GACT,EAAE,SAAS,GAAK,EAAS,KAAK,EACjC,GAAE,SAAS,EAAI,GAMjB,OAFA,EAAE,SAAS,CAAG,EAEP,CACR,EA4BwB,EALT,AAAIA,OAAO,CACxB,IAAM,EAAU,IAChB,IAJc,OAAQ,EAAK,OAAS,EAAO,aAAe,CAAG,EAI7D,kDACA,CAAC,IAAI,CAAC,KAAM,MAIb,GAAI,AAAmB,IAAnB,EAAQ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CAAC,GAEnB,IAAI,EAAK,EAAE,KAAK,CAACH,OAAO,IAAM,EAAQ,MAAQ,EAAQ,IAAK,aAC3D,AAAI,AAAc,IAAd,EAAG,MAAM,CACL,EAAI,MAAM,CAAC,CAAE,CAAC,EAAE,EAEjB,EAAI,MAAM,CAAC,EAAG,MAAM,CAACO,SAAS,GAAG,CAAC,SAAU,CAAC,SACnD,AAAI,EAAgB,IAAI,CAAC,GACjBD,KAAK,KAAK,CAAC,EAAE,KAAK,CAAC,EAAM,CAAC,EAAE,EAE7B,CACR,GACD,EAAG,EAAE,CACN,C,uCC/NA,EAAO,OAAO,CAAG,SAAe,CAAE,EACjC,OAAO,EAAG,GAAG,CAAC,SAAU,CAAC,QACxB,AAAI,AAAM,KAAN,EACI,KAEJ,GAAK,AAAa,UAAb,OAAO,EACR,EAAE,EAAE,CAAC,OAAO,CAAC,OAAQ,QAEzB,AAAC,UAAW,IAAI,CAAC,IAAM,CAAC,AAAC,IAAK,IAAI,CAAC,GAC/B,IAAM,EAAE,OAAO,CAAC,SAAU,QAAU,IAExC,AAAC,SAAU,IAAI,CAAC,GACZ,IAAM,EAAE,OAAO,CAAC,cAAe,QAAU,IAE1CE,OAAO,GAAG,OAAO,CAAC,+CAAgD,SAC1E,GAAG,IAAI,CAAC,IACT,C,qIChBA,C,EAAQ,KAAK,CAAGL,EAAhB,0BACA,A,EAAQ,KAAK,CAAGA,EAAhB,0B"} \ No newline at end of file diff --git a/packages/node_modules/source-map/index.js.map b/packages/node_modules/source-map/index.js.map new file mode 100644 index 00000000000..e0800e5b291 --- /dev/null +++ b/packages/node_modules/source-map/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"source-map/index.js","sources":["webpack:///./source-map/lib/array-set.js","webpack:///./source-map/lib/base64-vlq.js","webpack:///./source-map/lib/base64.js","webpack:///./source-map/lib/binary-search.js","webpack:///./source-map/lib/mapping-list.js","webpack:///./source-map/lib/read-wasm.js","webpack:///./source-map/lib/source-map-consumer.js","webpack:///./source-map/lib/source-map-generator.js","webpack:///./source-map/lib/source-node.js","webpack:///./source-map/lib/url.js","webpack:///./source-map/lib/util.js","webpack:///./source-map/lib/wasm.js","webpack:///./source-map/source-map.js"],"sourcesContent":["/* -*- Mode: js; js-indent-level: 2; -*- */\n/*\n * Copyright 2011 Mozilla Foundation and contributors\n * Licensed under the New BSD license. See LICENSE or:\n * http://opensource.org/licenses/BSD-3-Clause\n */\n\n/**\n * A data structure which is a combination of an array and a set. Adding a new\n * member is O(1), testing for membership is O(1), and finding the index of an\n * element is O(1). Removing elements from the set is not supported. Only\n * strings are supported for membership.\n */\nclass ArraySet {\n constructor() {\n this._array = [];\n this._set = new Map();\n }\n\n /**\n * Static method for creating ArraySet instances from an existing array.\n */\n static fromArray(aArray, aAllowDuplicates) {\n const set = new ArraySet();\n for (let i = 0, len = aArray.length; i < len; i++) {\n set.add(aArray[i], aAllowDuplicates);\n }\n return set;\n }\n\n /**\n * Return how many unique items are in this ArraySet. If duplicates have been\n * added, than those do not count towards the size.\n *\n * @returns Number\n */\n size() {\n return this._set.size;\n }\n\n /**\n * Add the given string to this set.\n *\n * @param String aStr\n */\n add(aStr, aAllowDuplicates) {\n const isDuplicate = this.has(aStr);\n const idx = this._array.length;\n if (!isDuplicate || aAllowDuplicates) {\n this._array.push(aStr);\n }\n if (!isDuplicate) {\n this._set.set(aStr, idx);\n }\n }\n\n /**\n * Is the given string a member of this set?\n *\n * @param String aStr\n */\n has(aStr) {\n return this._set.has(aStr);\n }\n\n /**\n * What is the index of the given string in the array?\n *\n * @param String aStr\n */\n indexOf(aStr) {\n const idx = this._set.get(aStr);\n if (idx >= 0) {\n return idx;\n }\n throw new Error('\"' + aStr + '\" is not in the set.');\n }\n\n /**\n * What is the element at the given index?\n *\n * @param Number aIdx\n */\n at(aIdx) {\n if (aIdx >= 0 && aIdx < this._array.length) {\n return this._array[aIdx];\n }\n throw new Error(\"No element indexed by \" + aIdx);\n }\n\n /**\n * Returns the array representation of this set (which has the proper indices\n * indicated by indexOf). Note that this is a copy of the internal array used\n * for storing the members so that no one can mess with internal state.\n */\n toArray() {\n return this._array.slice();\n }\n}\nexports.ArraySet = ArraySet;\n","/* -*- Mode: js; js-indent-level: 2; -*- */\n/*\n * Copyright 2011 Mozilla Foundation and contributors\n * Licensed under the New BSD license. See LICENSE or:\n * http://opensource.org/licenses/BSD-3-Clause\n *\n * Based on the Base 64 VLQ implementation in Closure Compiler:\n * https://code.google.com/p/closure-compiler/source/browse/trunk/src/com/google/debugging/sourcemap/Base64VLQ.java\n *\n * Copyright 2011 The Closure Compiler Authors. All rights reserved.\n * Redistribution and use in source and binary forms, with or without\n * modification, are permitted provided that the following conditions are\n * met:\n *\n * * Redistributions of source code must retain the above copyright\n * notice, this list of conditions and the following disclaimer.\n * * Redistributions in binary form must reproduce the above\n * copyright notice, this list of conditions and the following\n * disclaimer in the documentation and/or other materials provided\n * with the distribution.\n * * Neither the name of Google Inc. nor the names of its\n * contributors may be used to endorse or promote products derived\n * from this software without specific prior written permission.\n *\n * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS\n * \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT\n * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR\n * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT\n * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,\n * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT\n * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\n * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY\n * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\n * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n */\n\nconst base64 = require(\"./base64\");\n\n// A single base 64 digit can contain 6 bits of data. For the base 64 variable\n// length quantities we use in the source map spec, the first bit is the sign,\n// the next four bits are the actual value, and the 6th bit is the\n// continuation bit. The continuation bit tells us whether there are more\n// digits in this value following this digit.\n//\n// Continuation\n// | Sign\n// | |\n// V V\n// 101011\n\nconst VLQ_BASE_SHIFT = 5;\n\n// binary: 100000\nconst VLQ_BASE = 1 << VLQ_BASE_SHIFT;\n\n// binary: 011111\nconst VLQ_BASE_MASK = VLQ_BASE - 1;\n\n// binary: 100000\nconst VLQ_CONTINUATION_BIT = VLQ_BASE;\n\n/**\n * Converts from a two-complement value to a value where the sign bit is\n * placed in the least significant bit. For example, as decimals:\n * 1 becomes 2 (10 binary), -1 becomes 3 (11 binary)\n * 2 becomes 4 (100 binary), -2 becomes 5 (101 binary)\n */\nfunction toVLQSigned(aValue) {\n return aValue < 0 ? (-aValue << 1) + 1 : (aValue << 1) + 0;\n}\n\n/**\n * Returns the base 64 VLQ encoded value.\n */\nexports.encode = function base64VLQ_encode(aValue) {\n let encoded = \"\";\n let digit;\n\n let vlq = toVLQSigned(aValue);\n\n do {\n digit = vlq & VLQ_BASE_MASK;\n vlq >>>= VLQ_BASE_SHIFT;\n if (vlq > 0) {\n // There are still more digits in this value, so we must make sure the\n // continuation bit is marked.\n digit |= VLQ_CONTINUATION_BIT;\n }\n encoded += base64.encode(digit);\n } while (vlq > 0);\n\n return encoded;\n};\n","/* -*- Mode: js; js-indent-level: 2; -*- */\n/*\n * Copyright 2011 Mozilla Foundation and contributors\n * Licensed under the New BSD license. See LICENSE or:\n * http://opensource.org/licenses/BSD-3-Clause\n */\n\nconst intToCharMap =\n \"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\".split(\"\");\n\n/**\n * Encode an integer in the range of 0 to 63 to a single base 64 digit.\n */\nexports.encode = function (number) {\n if (0 <= number && number < intToCharMap.length) {\n return intToCharMap[number];\n }\n throw new TypeError(\"Must be between 0 and 63: \" + number);\n};\n","/* -*- Mode: js; js-indent-level: 2; -*- */\n/*\n * Copyright 2011 Mozilla Foundation and contributors\n * Licensed under the New BSD license. See LICENSE or:\n * http://opensource.org/licenses/BSD-3-Clause\n */\n\nexports.GREATEST_LOWER_BOUND = 1;\nexports.LEAST_UPPER_BOUND = 2;\n\n/**\n * Recursive implementation of binary search.\n *\n * @param aLow Indices here and lower do not contain the needle.\n * @param aHigh Indices here and higher do not contain the needle.\n * @param aNeedle The element being searched for.\n * @param aHaystack The non-empty array being searched.\n * @param aCompare Function which takes two elements and returns -1, 0, or 1.\n * @param aBias Either 'binarySearch.GREATEST_LOWER_BOUND' or\n * 'binarySearch.LEAST_UPPER_BOUND'. Specifies whether to return the\n * closest element that is smaller than or greater than the one we are\n * searching for, respectively, if the exact element cannot be found.\n */\nfunction recursiveSearch(aLow, aHigh, aNeedle, aHaystack, aCompare, aBias) {\n // This function terminates when one of the following is true:\n //\n // 1. We find the exact element we are looking for.\n //\n // 2. We did not find the exact element, but we can return the index of\n // the next-closest element.\n //\n // 3. We did not find the exact element, and there is no next-closest\n // element than the one we are searching for, so we return -1.\n const mid = Math.floor((aHigh - aLow) / 2) + aLow;\n const cmp = aCompare(aNeedle, aHaystack[mid], true);\n if (cmp === 0) {\n // Found the element we are looking for.\n return mid;\n } else if (cmp > 0) {\n // Our needle is greater than aHaystack[mid].\n if (aHigh - mid > 1) {\n // The element is in the upper half.\n return recursiveSearch(mid, aHigh, aNeedle, aHaystack, aCompare, aBias);\n }\n\n // The exact needle element was not found in this haystack. Determine if\n // we are in termination case (3) or (2) and return the appropriate thing.\n if (aBias === exports.LEAST_UPPER_BOUND) {\n return aHigh < aHaystack.length ? aHigh : -1;\n }\n return mid;\n }\n\n // Our needle is less than aHaystack[mid].\n if (mid - aLow > 1) {\n // The element is in the lower half.\n return recursiveSearch(aLow, mid, aNeedle, aHaystack, aCompare, aBias);\n }\n\n // we are in termination case (3) or (2) and return the appropriate thing.\n if (aBias == exports.LEAST_UPPER_BOUND) {\n return mid;\n }\n return aLow < 0 ? -1 : aLow;\n}\n\n/**\n * This is an implementation of binary search which will always try and return\n * the index of the closest element if there is no exact hit. This is because\n * mappings between original and generated line/col pairs are single points,\n * and there is an implicit region between each of them, so a miss just means\n * that you aren't on the very start of a region.\n *\n * @param aNeedle The element you are looking for.\n * @param aHaystack The array that is being searched.\n * @param aCompare A function which takes the needle and an element in the\n * array and returns -1, 0, or 1 depending on whether the needle is less\n * than, equal to, or greater than the element, respectively.\n * @param aBias Either 'binarySearch.GREATEST_LOWER_BOUND' or\n * 'binarySearch.LEAST_UPPER_BOUND'. Specifies whether to return the\n * closest element that is smaller than or greater than the one we are\n * searching for, respectively, if the exact element cannot be found.\n * Defaults to 'binarySearch.GREATEST_LOWER_BOUND'.\n */\nexports.search = function search(aNeedle, aHaystack, aCompare, aBias) {\n if (aHaystack.length === 0) {\n return -1;\n }\n\n let index = recursiveSearch(\n -1,\n aHaystack.length,\n aNeedle,\n aHaystack,\n aCompare,\n aBias || exports.GREATEST_LOWER_BOUND\n );\n if (index < 0) {\n return -1;\n }\n\n // We have found either the exact element, or the next-closest element to\n // the one we are searching for. However, there may be more than one such\n // element. Make sure we always return the smallest of these.\n while (index - 1 >= 0) {\n if (aCompare(aHaystack[index], aHaystack[index - 1], true) !== 0) {\n break;\n }\n --index;\n }\n\n return index;\n};\n","/* -*- Mode: js; js-indent-level: 2; -*- */\n/*\n * Copyright 2014 Mozilla Foundation and contributors\n * Licensed under the New BSD license. See LICENSE or:\n * http://opensource.org/licenses/BSD-3-Clause\n */\n\nconst util = require(\"./util\");\n\n/**\n * Determine whether mappingB is after mappingA with respect to generated\n * position.\n */\nfunction generatedPositionAfter(mappingA, mappingB) {\n // Optimized for most common case\n const lineA = mappingA.generatedLine;\n const lineB = mappingB.generatedLine;\n const columnA = mappingA.generatedColumn;\n const columnB = mappingB.generatedColumn;\n return (\n lineB > lineA ||\n (lineB == lineA && columnB >= columnA) ||\n util.compareByGeneratedPositionsInflated(mappingA, mappingB) <= 0\n );\n}\n\n/**\n * A data structure to provide a sorted view of accumulated mappings in a\n * performance conscious manner. It trades a negligible overhead in general\n * case for a large speedup in case of mappings being added in order.\n */\nclass MappingList {\n constructor() {\n this._array = [];\n this._sorted = true;\n // Serves as infimum\n this._last = { generatedLine: -1, generatedColumn: 0 };\n }\n\n /**\n * Iterate through internal items. This method takes the same arguments that\n * `Array.prototype.forEach` takes.\n *\n * NOTE: The order of the mappings is NOT guaranteed.\n */\n unsortedForEach(aCallback, aThisArg) {\n this._array.forEach(aCallback, aThisArg);\n }\n\n /**\n * Add the given source mapping.\n *\n * @param Object aMapping\n */\n add(aMapping) {\n if (generatedPositionAfter(this._last, aMapping)) {\n this._last = aMapping;\n this._array.push(aMapping);\n } else {\n this._sorted = false;\n this._array.push(aMapping);\n }\n }\n\n /**\n * Returns the flat, sorted array of mappings. The mappings are sorted by\n * generated position.\n *\n * WARNING: This method returns internal data without copying, for\n * performance. The return value must NOT be mutated, and should be treated as\n * an immutable borrow. If you want to take ownership, you must make your own\n * copy.\n */\n toArray() {\n if (!this._sorted) {\n this._array.sort(util.compareByGeneratedPositionsInflated);\n this._sorted = true;\n }\n return this._array;\n }\n}\n\nexports.MappingList = MappingList;\n","\"use strict\";\n\n// Note: This file is replaced with \"read-wasm-browser.js\" when this module is\n// bundled with a packager that takes package.json#browser fields into account.\n\nconst fs = require(\"fs\");\nconst path = require(\"path\");\n\nmodule.exports = function readWasm() {\n return new Promise((resolve, reject) => {\n const wasmPath = path.join(__dirname, \"mappings.wasm\");\n fs.readFile(wasmPath, null, (error, data) => {\n if (error) {\n reject(error);\n return;\n }\n\n resolve(data.buffer);\n });\n });\n};\n\nmodule.exports.initialize = _ => {\n console.debug(\n \"SourceMapConsumer.initialize is a no-op when running in node.js\"\n );\n};\n","/* -*- Mode: js; js-indent-level: 2; -*- */\n/*\n * Copyright 2011 Mozilla Foundation and contributors\n * Licensed under the New BSD license. See LICENSE or:\n * http://opensource.org/licenses/BSD-3-Clause\n */\n\nconst util = require(\"./util\");\nconst binarySearch = require(\"./binary-search\");\nconst ArraySet = require(\"./array-set\").ArraySet;\nconst base64VLQ = require(\"./base64-vlq\"); // eslint-disable-line no-unused-vars\nconst readWasm = require(\"../lib/read-wasm\");\nconst wasm = require(\"./wasm\");\n\nconst INTERNAL = Symbol(\"smcInternal\");\n\nclass SourceMapConsumer {\n constructor(aSourceMap, aSourceMapURL) {\n // If the constructor was called by super(), just return Promise.\n // Yes, this is a hack to retain the pre-existing API of the base-class\n // constructor also being an async factory function.\n if (aSourceMap == INTERNAL) {\n return Promise.resolve(this);\n }\n\n return _factory(aSourceMap, aSourceMapURL);\n }\n\n static initialize(opts) {\n readWasm.initialize(opts[\"lib/mappings.wasm\"]);\n }\n\n static fromSourceMap(aSourceMap, aSourceMapURL) {\n return _factoryBSM(aSourceMap, aSourceMapURL);\n }\n\n /**\n * Construct a new `SourceMapConsumer` from `rawSourceMap` and `sourceMapUrl`\n * (see the `SourceMapConsumer` constructor for details. Then, invoke the `async\n * function f(SourceMapConsumer) -> T` with the newly constructed consumer, wait\n * for `f` to complete, call `destroy` on the consumer, and return `f`'s return\n * value.\n *\n * You must not use the consumer after `f` completes!\n *\n * By using `with`, you do not have to remember to manually call `destroy` on\n * the consumer, since it will be called automatically once `f` completes.\n *\n * ```js\n * const xSquared = await SourceMapConsumer.with(\n * myRawSourceMap,\n * null,\n * async function (consumer) {\n * // Use `consumer` inside here and don't worry about remembering\n * // to call `destroy`.\n *\n * const x = await whatever(consumer);\n * return x * x;\n * }\n * );\n *\n * // You may not use that `consumer` anymore out here; it has\n * // been destroyed. But you can use `xSquared`.\n * console.log(xSquared);\n * ```\n */\n static async with(rawSourceMap, sourceMapUrl, f) {\n const consumer = await new SourceMapConsumer(rawSourceMap, sourceMapUrl);\n try {\n return await f(consumer);\n } finally {\n consumer.destroy();\n }\n }\n\n /**\n * Iterate over each mapping between an original source/line/column and a\n * generated line/column in this source map.\n *\n * @param Function aCallback\n * The function that is called with each mapping.\n * @param Object aContext\n * Optional. If specified, this object will be the value of `this` every\n * time that `aCallback` is called.\n * @param aOrder\n * Either `SourceMapConsumer.GENERATED_ORDER` or\n * `SourceMapConsumer.ORIGINAL_ORDER`. Specifies whether you want to\n * iterate over the mappings sorted by the generated file's line/column\n * order or the original's source/line/column order, respectively. Defaults to\n * `SourceMapConsumer.GENERATED_ORDER`.\n */\n eachMapping(aCallback, aContext, aOrder) {\n throw new Error(\"Subclasses must implement eachMapping\");\n }\n\n /**\n * Returns all generated line and column information for the original source,\n * line, and column provided. If no column is provided, returns all mappings\n * corresponding to a either the line we are searching for or the next\n * closest line that has any mappings. Otherwise, returns all mappings\n * corresponding to the given line and either the column we are searching for\n * or the next closest column that has any offsets.\n *\n * The only argument is an object with the following properties:\n *\n * - source: The filename of the original source.\n * - line: The line number in the original source. The line number is 1-based.\n * - column: Optional. the column number in the original source.\n * The column number is 0-based.\n *\n * and an array of objects is returned, each with the following properties:\n *\n * - line: The line number in the generated source, or null. The\n * line number is 1-based.\n * - column: The column number in the generated source, or null.\n * The column number is 0-based.\n */\n allGeneratedPositionsFor(aArgs) {\n throw new Error(\"Subclasses must implement allGeneratedPositionsFor\");\n }\n\n destroy() {\n throw new Error(\"Subclasses must implement destroy\");\n }\n}\n\n/**\n * The version of the source mapping spec that we are consuming.\n */\nSourceMapConsumer.prototype._version = 3;\nSourceMapConsumer.GENERATED_ORDER = 1;\nSourceMapConsumer.ORIGINAL_ORDER = 2;\n\nSourceMapConsumer.GREATEST_LOWER_BOUND = 1;\nSourceMapConsumer.LEAST_UPPER_BOUND = 2;\n\nexports.SourceMapConsumer = SourceMapConsumer;\n\n/**\n * A BasicSourceMapConsumer instance represents a parsed source map which we can\n * query for information about the original file positions by giving it a file\n * position in the generated source.\n *\n * The first parameter is the raw source map (either as a JSON string, or\n * already parsed to an object). According to the spec, source maps have the\n * following attributes:\n *\n * - version: Which version of the source map spec this map is following.\n * - sources: An array of URLs to the original source files.\n * - names: An array of identifiers which can be referenced by individual mappings.\n * - sourceRoot: Optional. The URL root from which all sources are relative.\n * - sourcesContent: Optional. An array of contents of the original source files.\n * - mappings: A string of base64 VLQs which contain the actual mappings.\n * - file: Optional. The generated file this source map is associated with.\n *\n * Here is an example source map, taken from the source map spec[0]:\n *\n * {\n * version : 3,\n * file: \"out.js\",\n * sourceRoot : \"\",\n * sources: [\"foo.js\", \"bar.js\"],\n * names: [\"src\", \"maps\", \"are\", \"fun\"],\n * mappings: \"AA,AB;;ABCDE;\"\n * }\n *\n * The second parameter, if given, is a string whose value is the URL\n * at which the source map was found. This URL is used to compute the\n * sources array.\n *\n * [0]: https://docs.google.com/document/d/1U1RGAehQwRypUTovF1KRlpiOFze0b-_2gc6fAH0KY0k/edit?pli=1#\n */\nclass BasicSourceMapConsumer extends SourceMapConsumer {\n constructor(aSourceMap, aSourceMapURL) {\n return super(INTERNAL).then(that => {\n let sourceMap = aSourceMap;\n if (typeof aSourceMap === \"string\") {\n sourceMap = util.parseSourceMapInput(aSourceMap);\n }\n\n const version = util.getArg(sourceMap, \"version\");\n const sources = util.getArg(sourceMap, \"sources\").map(String);\n // Sass 3.3 leaves out the 'names' array, so we deviate from the spec (which\n // requires the array) to play nice here.\n const names = util.getArg(sourceMap, \"names\", []);\n const sourceRoot = util.getArg(sourceMap, \"sourceRoot\", null);\n const sourcesContent = util.getArg(sourceMap, \"sourcesContent\", null);\n const mappings = util.getArg(sourceMap, \"mappings\");\n const file = util.getArg(sourceMap, \"file\", null);\n const x_google_ignoreList = util.getArg(\n sourceMap,\n \"x_google_ignoreList\",\n null\n );\n\n // Once again, Sass deviates from the spec and supplies the version as a\n // string rather than a number, so we use loose equality checking here.\n if (version != that._version) {\n throw new Error(\"Unsupported version: \" + version);\n }\n\n that._sourceLookupCache = new Map();\n\n // Pass `true` below to allow duplicate names and sources. While source maps\n // are intended to be compressed and deduplicated, the TypeScript compiler\n // sometimes generates source maps with duplicates in them. See Github issue\n // #72 and bugzil.la/889492.\n that._names = ArraySet.fromArray(names.map(String), true);\n that._sources = ArraySet.fromArray(sources, true);\n\n that._absoluteSources = ArraySet.fromArray(\n that._sources.toArray().map(function (s) {\n return util.computeSourceURL(sourceRoot, s, aSourceMapURL);\n }),\n true\n );\n\n that.sourceRoot = sourceRoot;\n that.sourcesContent = sourcesContent;\n that._mappings = mappings;\n that._sourceMapURL = aSourceMapURL;\n that.file = file;\n that.x_google_ignoreList = x_google_ignoreList;\n\n that._computedColumnSpans = false;\n that._mappingsPtr = 0;\n that._wasm = null;\n\n return wasm().then(w => {\n that._wasm = w;\n return that;\n });\n });\n }\n\n /**\n * Utility function to find the index of a source. Returns -1 if not\n * found.\n */\n _findSourceIndex(aSource) {\n // In the most common usecases, we'll be constantly looking up the index for the same source\n // files, so we cache the index lookup to avoid constantly recomputing the full URLs.\n const cachedIndex = this._sourceLookupCache.get(aSource);\n if (typeof cachedIndex === \"number\") {\n return cachedIndex;\n }\n\n // Treat the source as map-relative overall by default.\n const sourceAsMapRelative = util.computeSourceURL(\n null,\n aSource,\n this._sourceMapURL\n );\n if (this._absoluteSources.has(sourceAsMapRelative)) {\n const index = this._absoluteSources.indexOf(sourceAsMapRelative);\n this._sourceLookupCache.set(aSource, index);\n return index;\n }\n\n // Fall back to treating the source as sourceRoot-relative.\n const sourceAsSourceRootRelative = util.computeSourceURL(\n this.sourceRoot,\n aSource,\n this._sourceMapURL\n );\n if (this._absoluteSources.has(sourceAsSourceRootRelative)) {\n const index = this._absoluteSources.indexOf(sourceAsSourceRootRelative);\n this._sourceLookupCache.set(aSource, index);\n return index;\n }\n\n // To avoid this cache growing forever, we do not cache lookup misses.\n return -1;\n }\n\n /**\n * Create a BasicSourceMapConsumer from a SourceMapGenerator.\n *\n * @param SourceMapGenerator aSourceMap\n * The source map that will be consumed.\n * @param String aSourceMapURL\n * The URL at which the source map can be found (optional)\n * @returns BasicSourceMapConsumer\n */\n static fromSourceMap(aSourceMap, aSourceMapURL) {\n return new BasicSourceMapConsumer(aSourceMap.toString());\n }\n\n get sources() {\n return this._absoluteSources.toArray();\n }\n\n _getMappingsPtr() {\n if (this._mappingsPtr === 0) {\n this._parseMappings();\n }\n\n return this._mappingsPtr;\n }\n\n /**\n * Parse the mappings in a string in to a data structure which we can easily\n * query (the ordered arrays in the `this.__generatedMappings` and\n * `this.__originalMappings` properties).\n */\n _parseMappings() {\n const aStr = this._mappings;\n const size = aStr.length;\n\n // Interpret signed result of allocate_mappings as unsigned, otherwise\n // addresses higher than 2GB will be negative.\n const mappingsBufPtr = this._wasm.exports.allocate_mappings(size) >>> 0;\n const mappingsBuf = new Uint8Array(\n this._wasm.exports.memory.buffer,\n mappingsBufPtr,\n size\n );\n for (let i = 0; i < size; i++) {\n mappingsBuf[i] = aStr.charCodeAt(i);\n }\n\n const mappingsPtr = this._wasm.exports.parse_mappings(mappingsBufPtr);\n\n if (!mappingsPtr) {\n const error = this._wasm.exports.get_last_error();\n let msg = `Error parsing mappings (code ${error}): `;\n\n // XXX: keep these error codes in sync with `wasm-mappings`.\n switch (error) {\n case 1:\n msg +=\n \"the mappings contained a negative line, column, source index, or name index\";\n break;\n case 2:\n msg += \"the mappings contained a number larger than 2**32\";\n break;\n case 3:\n msg += \"reached EOF while in the middle of parsing a VLQ\";\n break;\n case 4:\n msg += \"invalid base 64 character while parsing a VLQ\";\n break;\n default:\n msg += \"unknown error code\";\n break;\n }\n\n throw new Error(msg);\n }\n\n this._mappingsPtr = mappingsPtr;\n }\n\n eachMapping(aCallback, aContext, aOrder) {\n const context = aContext || null;\n const order = aOrder || SourceMapConsumer.GENERATED_ORDER;\n\n this._wasm.withMappingCallback(\n mapping => {\n if (mapping.source !== null) {\n mapping.source = this._absoluteSources.at(mapping.source);\n\n if (mapping.name !== null) {\n mapping.name = this._names.at(mapping.name);\n }\n }\n if (this._computedColumnSpans && mapping.lastGeneratedColumn === null) {\n mapping.lastGeneratedColumn = Infinity;\n }\n\n aCallback.call(context, mapping);\n },\n () => {\n switch (order) {\n case SourceMapConsumer.GENERATED_ORDER:\n this._wasm.exports.by_generated_location(this._getMappingsPtr());\n break;\n case SourceMapConsumer.ORIGINAL_ORDER:\n this._wasm.exports.by_original_location(this._getMappingsPtr());\n break;\n default:\n throw new Error(\"Unknown order of iteration.\");\n }\n }\n );\n }\n\n allGeneratedPositionsFor(aArgs) {\n let source = util.getArg(aArgs, \"source\");\n const originalLine = util.getArg(aArgs, \"line\");\n const originalColumn = aArgs.column || 0;\n\n source = this._findSourceIndex(source);\n if (source < 0) {\n return [];\n }\n\n if (originalLine < 1) {\n throw new Error(\"Line numbers must be >= 1\");\n }\n\n if (originalColumn < 0) {\n throw new Error(\"Column numbers must be >= 0\");\n }\n\n const mappings = [];\n\n this._wasm.withMappingCallback(\n m => {\n let lastColumn = m.lastGeneratedColumn;\n if (this._computedColumnSpans && lastColumn === null) {\n lastColumn = Infinity;\n }\n mappings.push({\n line: m.generatedLine,\n column: m.generatedColumn,\n lastColumn,\n });\n },\n () => {\n this._wasm.exports.all_generated_locations_for(\n this._getMappingsPtr(),\n source,\n originalLine - 1,\n \"column\" in aArgs,\n originalColumn\n );\n }\n );\n\n return mappings;\n }\n\n destroy() {\n if (this._mappingsPtr !== 0) {\n this._wasm.exports.free_mappings(this._mappingsPtr);\n this._mappingsPtr = 0;\n }\n }\n\n /**\n * Compute the last column for each generated mapping. The last column is\n * inclusive.\n */\n computeColumnSpans() {\n if (this._computedColumnSpans) {\n return;\n }\n\n this._wasm.exports.compute_column_spans(this._getMappingsPtr());\n this._computedColumnSpans = true;\n }\n\n /**\n * Returns the original source, line, and column information for the generated\n * source's line and column positions provided. The only argument is an object\n * with the following properties:\n *\n * - line: The line number in the generated source. The line number\n * is 1-based.\n * - column: The column number in the generated source. The column\n * number is 0-based.\n * - bias: Either 'SourceMapConsumer.GREATEST_LOWER_BOUND' or\n * 'SourceMapConsumer.LEAST_UPPER_BOUND'. Specifies whether to return the\n * closest element that is smaller than or greater than the one we are\n * searching for, respectively, if the exact element cannot be found.\n * Defaults to 'SourceMapConsumer.GREATEST_LOWER_BOUND'.\n *\n * and an object is returned with the following properties:\n *\n * - source: The original source file, or null.\n * - line: The line number in the original source, or null. The\n * line number is 1-based.\n * - column: The column number in the original source, or null. The\n * column number is 0-based.\n * - name: The original identifier, or null.\n */\n originalPositionFor(aArgs) {\n const needle = {\n generatedLine: util.getArg(aArgs, \"line\"),\n generatedColumn: util.getArg(aArgs, \"column\"),\n };\n\n if (needle.generatedLine < 1) {\n throw new Error(\"Line numbers must be >= 1\");\n }\n\n if (needle.generatedColumn < 0) {\n throw new Error(\"Column numbers must be >= 0\");\n }\n\n let bias = util.getArg(\n aArgs,\n \"bias\",\n SourceMapConsumer.GREATEST_LOWER_BOUND\n );\n if (bias == null) {\n bias = SourceMapConsumer.GREATEST_LOWER_BOUND;\n }\n\n let mapping;\n this._wasm.withMappingCallback(\n m => (mapping = m),\n () => {\n this._wasm.exports.original_location_for(\n this._getMappingsPtr(),\n needle.generatedLine - 1,\n needle.generatedColumn,\n bias\n );\n }\n );\n\n if (mapping) {\n if (mapping.generatedLine === needle.generatedLine) {\n let source = util.getArg(mapping, \"source\", null);\n if (source !== null) {\n source = this._absoluteSources.at(source);\n }\n\n let name = util.getArg(mapping, \"name\", null);\n if (name !== null) {\n name = this._names.at(name);\n }\n\n return {\n source,\n line: util.getArg(mapping, \"originalLine\", null),\n column: util.getArg(mapping, \"originalColumn\", null),\n name,\n };\n }\n }\n\n return {\n source: null,\n line: null,\n column: null,\n name: null,\n };\n }\n\n /**\n * Return true if we have the source content for every source in the source\n * map, false otherwise.\n */\n hasContentsOfAllSources() {\n if (!this.sourcesContent) {\n return false;\n }\n return (\n this.sourcesContent.length >= this._sources.size() &&\n !this.sourcesContent.some(function (sc) {\n return sc == null;\n })\n );\n }\n\n /**\n * Returns the original source content. The only argument is the url of the\n * original source file. Returns null if no original source content is\n * available.\n */\n sourceContentFor(aSource, nullOnMissing) {\n if (!this.sourcesContent) {\n return null;\n }\n\n const index = this._findSourceIndex(aSource);\n if (index >= 0) {\n return this.sourcesContent[index];\n }\n\n // This function is used recursively from\n // IndexedSourceMapConsumer.prototype.sourceContentFor. In that case, we\n // don't want to throw if we can't find the source - we just want to\n // return null, so we provide a flag to exit gracefully.\n if (nullOnMissing) {\n return null;\n }\n\n throw new Error('\"' + aSource + '\" is not in the SourceMap.');\n }\n\n /**\n * Returns the generated line and column information for the original source,\n * line, and column positions provided. The only argument is an object with\n * the following properties:\n *\n * - source: The filename of the original source.\n * - line: The line number in the original source. The line number\n * is 1-based.\n * - column: The column number in the original source. The column\n * number is 0-based.\n * - bias: Either 'SourceMapConsumer.GREATEST_LOWER_BOUND' or\n * 'SourceMapConsumer.LEAST_UPPER_BOUND'. Specifies whether to return the\n * closest element that is smaller than or greater than the one we are\n * searching for, respectively, if the exact element cannot be found.\n * Defaults to 'SourceMapConsumer.GREATEST_LOWER_BOUND'.\n *\n * and an object is returned with the following properties:\n *\n * - line: The line number in the generated source, or null. The\n * line number is 1-based.\n * - column: The column number in the generated source, or null.\n * The column number is 0-based.\n */\n generatedPositionFor(aArgs) {\n let source = util.getArg(aArgs, \"source\");\n source = this._findSourceIndex(source);\n if (source < 0) {\n return {\n line: null,\n column: null,\n lastColumn: null,\n };\n }\n\n const needle = {\n source,\n originalLine: util.getArg(aArgs, \"line\"),\n originalColumn: util.getArg(aArgs, \"column\"),\n };\n\n if (needle.originalLine < 1) {\n throw new Error(\"Line numbers must be >= 1\");\n }\n\n if (needle.originalColumn < 0) {\n throw new Error(\"Column numbers must be >= 0\");\n }\n\n let bias = util.getArg(\n aArgs,\n \"bias\",\n SourceMapConsumer.GREATEST_LOWER_BOUND\n );\n if (bias == null) {\n bias = SourceMapConsumer.GREATEST_LOWER_BOUND;\n }\n\n let mapping;\n this._wasm.withMappingCallback(\n m => (mapping = m),\n () => {\n this._wasm.exports.generated_location_for(\n this._getMappingsPtr(),\n needle.source,\n needle.originalLine - 1,\n needle.originalColumn,\n bias\n );\n }\n );\n\n if (mapping) {\n if (mapping.source === needle.source) {\n let lastColumn = mapping.lastGeneratedColumn;\n if (this._computedColumnSpans && lastColumn === null) {\n lastColumn = Infinity;\n }\n return {\n line: util.getArg(mapping, \"generatedLine\", null),\n column: util.getArg(mapping, \"generatedColumn\", null),\n lastColumn,\n };\n }\n }\n\n return {\n line: null,\n column: null,\n lastColumn: null,\n };\n }\n}\n\nBasicSourceMapConsumer.prototype.consumer = SourceMapConsumer;\nexports.BasicSourceMapConsumer = BasicSourceMapConsumer;\n\n/**\n * An IndexedSourceMapConsumer instance represents a parsed source map which\n * we can query for information. It differs from BasicSourceMapConsumer in\n * that it takes \"indexed\" source maps (i.e. ones with a \"sections\" field) as\n * input.\n *\n * The first parameter is a raw source map (either as a JSON string, or already\n * parsed to an object). According to the spec for indexed source maps, they\n * have the following attributes:\n *\n * - version: Which version of the source map spec this map is following.\n * - file: Optional. The generated file this source map is associated with.\n * - sections: A list of section definitions.\n *\n * Each value under the \"sections\" field has two fields:\n * - offset: The offset into the original specified at which this section\n * begins to apply, defined as an object with a \"line\" and \"column\"\n * field.\n * - map: A source map definition. This source map could also be indexed,\n * but doesn't have to be.\n *\n * Instead of the \"map\" field, it's also possible to have a \"url\" field\n * specifying a URL to retrieve a source map from, but that's currently\n * unsupported.\n *\n * Here's an example source map, taken from the source map spec[0], but\n * modified to omit a section which uses the \"url\" field.\n *\n * {\n * version : 3,\n * file: \"app.js\",\n * sections: [{\n * offset: {line:100, column:10},\n * map: {\n * version : 3,\n * file: \"section.js\",\n * sources: [\"foo.js\", \"bar.js\"],\n * names: [\"src\", \"maps\", \"are\", \"fun\"],\n * mappings: \"AAAA,E;;ABCDE;\"\n * }\n * }],\n * }\n *\n * The second parameter, if given, is a string whose value is the URL\n * at which the source map was found. This URL is used to compute the\n * sources array.\n *\n * [0]: https://docs.google.com/document/d/1U1RGAehQwRypUTovF1KRlpiOFze0b-_2gc6fAH0KY0k/edit#heading=h.535es3xeprgt\n */\nclass IndexedSourceMapConsumer extends SourceMapConsumer {\n constructor(aSourceMap, aSourceMapURL) {\n return super(INTERNAL).then(that => {\n let sourceMap = aSourceMap;\n if (typeof aSourceMap === \"string\") {\n sourceMap = util.parseSourceMapInput(aSourceMap);\n }\n\n const version = util.getArg(sourceMap, \"version\");\n const sections = util.getArg(sourceMap, \"sections\");\n\n if (version != that._version) {\n throw new Error(\"Unsupported version: \" + version);\n }\n\n let lastOffset = {\n line: -1,\n column: 0,\n };\n return Promise.all(\n sections.map(s => {\n if (s.url) {\n // The url field will require support for asynchronicity.\n // See https://github.com/mozilla/source-map/issues/16\n throw new Error(\n \"Support for url field in sections not implemented.\"\n );\n }\n const offset = util.getArg(s, \"offset\");\n const offsetLine = util.getArg(offset, \"line\");\n const offsetColumn = util.getArg(offset, \"column\");\n\n if (\n offsetLine < lastOffset.line ||\n (offsetLine === lastOffset.line && offsetColumn < lastOffset.column)\n ) {\n throw new Error(\n \"Section offsets must be ordered and non-overlapping.\"\n );\n }\n lastOffset = offset;\n\n const cons = new SourceMapConsumer(\n util.getArg(s, \"map\"),\n aSourceMapURL\n );\n return cons.then(consumer => {\n return {\n generatedOffset: {\n // The offset fields are 0-based, but we use 1-based indices when\n // encoding/decoding from VLQ.\n generatedLine: offsetLine + 1,\n generatedColumn: offsetColumn + 1,\n },\n consumer,\n };\n });\n })\n ).then(s => {\n that._sections = s;\n return that;\n });\n });\n }\n\n /**\n * The list of original sources.\n */\n get sources() {\n const sources = [];\n for (let i = 0; i < this._sections.length; i++) {\n for (let j = 0; j < this._sections[i].consumer.sources.length; j++) {\n sources.push(this._sections[i].consumer.sources[j]);\n }\n }\n return sources;\n }\n\n /**\n * Returns the original source, line, and column information for the generated\n * source's line and column positions provided. The only argument is an object\n * with the following properties:\n *\n * - line: The line number in the generated source. The line number\n * is 1-based.\n * - column: The column number in the generated source. The column\n * number is 0-based.\n *\n * and an object is returned with the following properties:\n *\n * - source: The original source file, or null.\n * - line: The line number in the original source, or null. The\n * line number is 1-based.\n * - column: The column number in the original source, or null. The\n * column number is 0-based.\n * - name: The original identifier, or null.\n */\n originalPositionFor(aArgs) {\n const needle = {\n generatedLine: util.getArg(aArgs, \"line\"),\n generatedColumn: util.getArg(aArgs, \"column\"),\n };\n\n // Find the section containing the generated position we're trying to map\n // to an original position.\n const sectionIndex = binarySearch.search(\n needle,\n this._sections,\n function (aNeedle, section) {\n const cmp =\n aNeedle.generatedLine - section.generatedOffset.generatedLine;\n if (cmp) {\n return cmp;\n }\n\n // The generated column is 0-based, but the section offset column is\n // stored 1-based.\n return (\n aNeedle.generatedColumn -\n (section.generatedOffset.generatedColumn - 1)\n );\n }\n );\n const section = this._sections[sectionIndex];\n\n if (!section) {\n return {\n source: null,\n line: null,\n column: null,\n name: null,\n };\n }\n\n return section.consumer.originalPositionFor({\n line: needle.generatedLine - (section.generatedOffset.generatedLine - 1),\n column:\n needle.generatedColumn -\n (section.generatedOffset.generatedLine === needle.generatedLine\n ? section.generatedOffset.generatedColumn - 1\n : 0),\n bias: aArgs.bias,\n });\n }\n\n /**\n * Return true if we have the source content for every source in the source\n * map, false otherwise.\n */\n hasContentsOfAllSources() {\n return this._sections.every(function (s) {\n return s.consumer.hasContentsOfAllSources();\n });\n }\n\n /**\n * Returns the original source content. The only argument is the url of the\n * original source file. Returns null if no original source content is\n * available.\n */\n sourceContentFor(aSource, nullOnMissing) {\n for (let i = 0; i < this._sections.length; i++) {\n const section = this._sections[i];\n\n const content = section.consumer.sourceContentFor(aSource, true);\n if (content) {\n return content;\n }\n }\n if (nullOnMissing) {\n return null;\n }\n throw new Error('\"' + aSource + '\" is not in the SourceMap.');\n }\n\n _findSectionIndex(source) {\n for (let i = 0; i < this._sections.length; i++) {\n const { consumer } = this._sections[i];\n if (consumer._findSourceIndex(source) !== -1) {\n return i;\n }\n }\n return -1;\n }\n\n /**\n * Returns the generated line and column information for the original source,\n * line, and column positions provided. The only argument is an object with\n * the following properties:\n *\n * - source: The filename of the original source.\n * - line: The line number in the original source. The line number\n * is 1-based.\n * - column: The column number in the original source. The column\n * number is 0-based.\n *\n * and an object is returned with the following properties:\n *\n * - line: The line number in the generated source, or null. The\n * line number is 1-based.\n * - column: The column number in the generated source, or null.\n * The column number is 0-based.\n */\n generatedPositionFor(aArgs) {\n const index = this._findSectionIndex(util.getArg(aArgs, \"source\"));\n const section = index >= 0 ? this._sections[index] : null;\n const nextSection =\n index >= 0 && index + 1 < this._sections.length\n ? this._sections[index + 1]\n : null;\n\n const generatedPosition =\n section && section.consumer.generatedPositionFor(aArgs);\n if (generatedPosition && generatedPosition.line !== null) {\n const lineShift = section.generatedOffset.generatedLine - 1;\n const columnShift = section.generatedOffset.generatedColumn - 1;\n\n if (generatedPosition.line === 1) {\n generatedPosition.column += columnShift;\n if (typeof generatedPosition.lastColumn === \"number\") {\n generatedPosition.lastColumn += columnShift;\n }\n }\n\n if (\n generatedPosition.lastColumn === Infinity &&\n nextSection &&\n generatedPosition.line === nextSection.generatedOffset.generatedLine\n ) {\n generatedPosition.lastColumn =\n nextSection.generatedOffset.generatedColumn - 2;\n }\n generatedPosition.line += lineShift;\n\n return generatedPosition;\n }\n\n return {\n line: null,\n column: null,\n lastColumn: null,\n };\n }\n\n allGeneratedPositionsFor(aArgs) {\n const index = this._findSectionIndex(util.getArg(aArgs, \"source\"));\n const section = index >= 0 ? this._sections[index] : null;\n const nextSection =\n index >= 0 && index + 1 < this._sections.length\n ? this._sections[index + 1]\n : null;\n\n if (!section) return [];\n\n return section.consumer\n .allGeneratedPositionsFor(aArgs)\n .map(generatedPosition => {\n const lineShift = section.generatedOffset.generatedLine - 1;\n const columnShift = section.generatedOffset.generatedColumn - 1;\n\n if (generatedPosition.line === 1) {\n generatedPosition.column += columnShift;\n if (typeof generatedPosition.lastColumn === \"number\") {\n generatedPosition.lastColumn += columnShift;\n }\n }\n\n if (\n generatedPosition.lastColumn === Infinity &&\n nextSection &&\n generatedPosition.line === nextSection.generatedOffset.generatedLine\n ) {\n generatedPosition.lastColumn =\n nextSection.generatedOffset.generatedColumn - 2;\n }\n generatedPosition.line += lineShift;\n\n return generatedPosition;\n });\n }\n\n eachMapping(aCallback, aContext, aOrder) {\n this._sections.forEach((section, index) => {\n const nextSection =\n index + 1 < this._sections.length ? this._sections[index + 1] : null;\n const { generatedOffset } = section;\n\n const lineShift = generatedOffset.generatedLine - 1;\n const columnShift = generatedOffset.generatedColumn - 1;\n\n section.consumer.eachMapping(\n function (mapping) {\n if (mapping.generatedLine === 1) {\n mapping.generatedColumn += columnShift;\n\n if (typeof mapping.lastGeneratedColumn === \"number\") {\n mapping.lastGeneratedColumn += columnShift;\n }\n }\n\n if (\n mapping.lastGeneratedColumn === Infinity &&\n nextSection &&\n mapping.generatedLine === nextSection.generatedOffset.generatedLine\n ) {\n mapping.lastGeneratedColumn =\n nextSection.generatedOffset.generatedColumn - 2;\n }\n mapping.generatedLine += lineShift;\n\n aCallback.call(this, mapping);\n },\n aContext,\n aOrder\n );\n });\n }\n\n computeColumnSpans() {\n for (let i = 0; i < this._sections.length; i++) {\n this._sections[i].consumer.computeColumnSpans();\n }\n }\n\n destroy() {\n for (let i = 0; i < this._sections.length; i++) {\n this._sections[i].consumer.destroy();\n }\n }\n}\nexports.IndexedSourceMapConsumer = IndexedSourceMapConsumer;\n\n/*\n * Cheat to get around inter-twingled classes. `factory()` can be at the end\n * where it has access to non-hoisted classes, but it gets hoisted itself.\n */\nfunction _factory(aSourceMap, aSourceMapURL) {\n let sourceMap = aSourceMap;\n if (typeof aSourceMap === \"string\") {\n sourceMap = util.parseSourceMapInput(aSourceMap);\n }\n\n const consumer =\n sourceMap.sections != null\n ? new IndexedSourceMapConsumer(sourceMap, aSourceMapURL)\n : new BasicSourceMapConsumer(sourceMap, aSourceMapURL);\n return Promise.resolve(consumer);\n}\n\nfunction _factoryBSM(aSourceMap, aSourceMapURL) {\n return BasicSourceMapConsumer.fromSourceMap(aSourceMap, aSourceMapURL);\n}\n","/* -*- Mode: js; js-indent-level: 2; -*- */\n/*\n * Copyright 2011 Mozilla Foundation and contributors\n * Licensed under the New BSD license. See LICENSE or:\n * http://opensource.org/licenses/BSD-3-Clause\n */\n\nconst base64VLQ = require(\"./base64-vlq\");\nconst util = require(\"./util\");\nconst ArraySet = require(\"./array-set\").ArraySet;\nconst MappingList = require(\"./mapping-list\").MappingList;\n\n/**\n * An instance of the SourceMapGenerator represents a source map which is\n * being built incrementally. You may pass an object with the following\n * properties:\n *\n * - file: The filename of the generated source.\n * - sourceRoot: A root for all relative URLs in this source map.\n */\nclass SourceMapGenerator {\n constructor(aArgs) {\n if (!aArgs) {\n aArgs = {};\n }\n this._file = util.getArg(aArgs, \"file\", null);\n this._sourceRoot = util.getArg(aArgs, \"sourceRoot\", null);\n this._skipValidation = util.getArg(aArgs, \"skipValidation\", false);\n this._sources = new ArraySet();\n this._names = new ArraySet();\n this._mappings = new MappingList();\n this._sourcesContents = null;\n }\n\n /**\n * Creates a new SourceMapGenerator based on a SourceMapConsumer\n *\n * @param aSourceMapConsumer The SourceMap.\n */\n static fromSourceMap(aSourceMapConsumer) {\n const sourceRoot = aSourceMapConsumer.sourceRoot;\n const generator = new SourceMapGenerator({\n file: aSourceMapConsumer.file,\n sourceRoot,\n });\n aSourceMapConsumer.eachMapping(function (mapping) {\n const newMapping = {\n generated: {\n line: mapping.generatedLine,\n column: mapping.generatedColumn,\n },\n };\n\n if (mapping.source != null) {\n newMapping.source = mapping.source;\n if (sourceRoot != null) {\n newMapping.source = util.relative(sourceRoot, newMapping.source);\n }\n\n newMapping.original = {\n line: mapping.originalLine,\n column: mapping.originalColumn,\n };\n\n if (mapping.name != null) {\n newMapping.name = mapping.name;\n }\n }\n\n generator.addMapping(newMapping);\n });\n aSourceMapConsumer.sources.forEach(function (sourceFile) {\n let sourceRelative = sourceFile;\n if (sourceRoot != null) {\n sourceRelative = util.relative(sourceRoot, sourceFile);\n }\n\n if (!generator._sources.has(sourceRelative)) {\n generator._sources.add(sourceRelative);\n }\n\n const content = aSourceMapConsumer.sourceContentFor(sourceFile);\n if (content != null) {\n generator.setSourceContent(sourceFile, content);\n }\n });\n return generator;\n }\n\n /**\n * Add a single mapping from original source line and column to the generated\n * source's line and column for this source map being created. The mapping\n * object should have the following properties:\n *\n * - generated: An object with the generated line and column positions.\n * - original: An object with the original line and column positions.\n * - source: The original source file (relative to the sourceRoot).\n * - name: An optional original token name for this mapping.\n */\n addMapping(aArgs) {\n const generated = util.getArg(aArgs, \"generated\");\n const original = util.getArg(aArgs, \"original\", null);\n let source = util.getArg(aArgs, \"source\", null);\n let name = util.getArg(aArgs, \"name\", null);\n\n if (!this._skipValidation) {\n this._validateMapping(generated, original, source, name);\n }\n\n if (source != null) {\n source = String(source);\n if (!this._sources.has(source)) {\n this._sources.add(source);\n }\n }\n\n if (name != null) {\n name = String(name);\n if (!this._names.has(name)) {\n this._names.add(name);\n }\n }\n\n this._mappings.add({\n generatedLine: generated.line,\n generatedColumn: generated.column,\n originalLine: original && original.line,\n originalColumn: original && original.column,\n source,\n name,\n });\n }\n\n /**\n * Set the source content for a source file.\n */\n setSourceContent(aSourceFile, aSourceContent) {\n let source = aSourceFile;\n if (this._sourceRoot != null) {\n source = util.relative(this._sourceRoot, source);\n }\n\n if (aSourceContent != null) {\n // Add the source content to the _sourcesContents map.\n // Create a new _sourcesContents map if the property is null.\n if (!this._sourcesContents) {\n this._sourcesContents = Object.create(null);\n }\n this._sourcesContents[util.toSetString(source)] = aSourceContent;\n } else if (this._sourcesContents) {\n // Remove the source file from the _sourcesContents map.\n // If the _sourcesContents map is empty, set the property to null.\n delete this._sourcesContents[util.toSetString(source)];\n if (Object.keys(this._sourcesContents).length === 0) {\n this._sourcesContents = null;\n }\n }\n }\n\n /**\n * Applies the mappings of a sub-source-map for a specific source file to the\n * source map being generated. Each mapping to the supplied source file is\n * rewritten using the supplied source map. Note: The resolution for the\n * resulting mappings is the minimium of this map and the supplied map.\n *\n * @param aSourceMapConsumer The source map to be applied.\n * @param aSourceFile Optional. The filename of the source file.\n * If omitted, SourceMapConsumer's file property will be used.\n * @param aSourceMapPath Optional. The dirname of the path to the source map\n * to be applied. If relative, it is relative to the SourceMapConsumer.\n * This parameter is needed when the two source maps aren't in the same\n * directory, and the source map to be applied contains relative source\n * paths. If so, those relative source paths need to be rewritten\n * relative to the SourceMapGenerator.\n */\n applySourceMap(aSourceMapConsumer, aSourceFile, aSourceMapPath) {\n let sourceFile = aSourceFile;\n // If aSourceFile is omitted, we will use the file property of the SourceMap\n if (aSourceFile == null) {\n if (aSourceMapConsumer.file == null) {\n throw new Error(\n \"SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, \" +\n 'or the source map\\'s \"file\" property. Both were omitted.'\n );\n }\n sourceFile = aSourceMapConsumer.file;\n }\n const sourceRoot = this._sourceRoot;\n // Make \"sourceFile\" relative if an absolute Url is passed.\n if (sourceRoot != null) {\n sourceFile = util.relative(sourceRoot, sourceFile);\n }\n // Applying the SourceMap can add and remove items from the sources and\n // the names array.\n const newSources =\n this._mappings.toArray().length > 0 ? new ArraySet() : this._sources;\n const newNames = new ArraySet();\n\n // Find mappings for the \"sourceFile\"\n this._mappings.unsortedForEach(function (mapping) {\n if (mapping.source === sourceFile && mapping.originalLine != null) {\n // Check if it can be mapped by the source map, then update the mapping.\n const original = aSourceMapConsumer.originalPositionFor({\n line: mapping.originalLine,\n column: mapping.originalColumn,\n });\n if (original.source != null) {\n // Copy mapping\n mapping.source = original.source;\n if (aSourceMapPath != null) {\n mapping.source = util.join(aSourceMapPath, mapping.source);\n }\n if (sourceRoot != null) {\n mapping.source = util.relative(sourceRoot, mapping.source);\n }\n mapping.originalLine = original.line;\n mapping.originalColumn = original.column;\n if (original.name != null) {\n mapping.name = original.name;\n }\n }\n }\n\n const source = mapping.source;\n if (source != null && !newSources.has(source)) {\n newSources.add(source);\n }\n\n const name = mapping.name;\n if (name != null && !newNames.has(name)) {\n newNames.add(name);\n }\n }, this);\n this._sources = newSources;\n this._names = newNames;\n\n // Copy sourcesContents of applied map.\n aSourceMapConsumer.sources.forEach(function (srcFile) {\n const content = aSourceMapConsumer.sourceContentFor(srcFile);\n if (content != null) {\n if (aSourceMapPath != null) {\n srcFile = util.join(aSourceMapPath, srcFile);\n }\n if (sourceRoot != null) {\n srcFile = util.relative(sourceRoot, srcFile);\n }\n this.setSourceContent(srcFile, content);\n }\n }, this);\n }\n\n /**\n * A mapping can have one of the three levels of data:\n *\n * 1. Just the generated position.\n * 2. The Generated position, original position, and original source.\n * 3. Generated and original position, original source, as well as a name\n * token.\n *\n * To maintain consistency, we validate that any new mapping being added falls\n * in to one of these categories.\n */\n _validateMapping(aGenerated, aOriginal, aSource, aName) {\n // When aOriginal is truthy but has empty values for .line and .column,\n // it is most likely a programmer error. In this case we throw a very\n // specific error message to try to guide them the right way.\n // For example: https://github.com/Polymer/polymer-bundler/pull/519\n if (\n aOriginal &&\n typeof aOriginal.line !== \"number\" &&\n typeof aOriginal.column !== \"number\"\n ) {\n throw new Error(\n \"original.line and original.column are not numbers -- you probably meant to omit \" +\n \"the original mapping entirely and only map the generated position. If so, pass \" +\n \"null for the original mapping instead of an object with empty or null values.\"\n );\n }\n\n if (\n aGenerated &&\n \"line\" in aGenerated &&\n \"column\" in aGenerated &&\n aGenerated.line > 0 &&\n aGenerated.column >= 0 &&\n !aOriginal &&\n !aSource &&\n !aName\n ) {\n // Case 1.\n } else if (\n aGenerated &&\n \"line\" in aGenerated &&\n \"column\" in aGenerated &&\n aOriginal &&\n \"line\" in aOriginal &&\n \"column\" in aOriginal &&\n aGenerated.line > 0 &&\n aGenerated.column >= 0 &&\n aOriginal.line > 0 &&\n aOriginal.column >= 0 &&\n aSource\n ) {\n // Cases 2 and 3.\n } else {\n throw new Error(\n \"Invalid mapping: \" +\n JSON.stringify({\n generated: aGenerated,\n source: aSource,\n original: aOriginal,\n name: aName,\n })\n );\n }\n }\n\n /**\n * Serialize the accumulated mappings in to the stream of base 64 VLQs\n * specified by the source map format.\n */\n _serializeMappings() {\n let previousGeneratedColumn = 0;\n let previousGeneratedLine = 1;\n let previousOriginalColumn = 0;\n let previousOriginalLine = 0;\n let previousName = 0;\n let previousSource = 0;\n let result = \"\";\n let next;\n let mapping;\n let nameIdx;\n let sourceIdx;\n\n const mappings = this._mappings.toArray();\n for (let i = 0, len = mappings.length; i < len; i++) {\n mapping = mappings[i];\n next = \"\";\n\n if (mapping.generatedLine !== previousGeneratedLine) {\n previousGeneratedColumn = 0;\n while (mapping.generatedLine !== previousGeneratedLine) {\n next += \";\";\n previousGeneratedLine++;\n }\n } else if (i > 0) {\n if (\n !util.compareByGeneratedPositionsInflated(mapping, mappings[i - 1])\n ) {\n continue;\n }\n next += \",\";\n }\n\n next += base64VLQ.encode(\n mapping.generatedColumn - previousGeneratedColumn\n );\n previousGeneratedColumn = mapping.generatedColumn;\n\n if (mapping.source != null) {\n sourceIdx = this._sources.indexOf(mapping.source);\n next += base64VLQ.encode(sourceIdx - previousSource);\n previousSource = sourceIdx;\n\n // lines are stored 0-based in SourceMap spec version 3\n next += base64VLQ.encode(\n mapping.originalLine - 1 - previousOriginalLine\n );\n previousOriginalLine = mapping.originalLine - 1;\n\n next += base64VLQ.encode(\n mapping.originalColumn - previousOriginalColumn\n );\n previousOriginalColumn = mapping.originalColumn;\n\n if (mapping.name != null) {\n nameIdx = this._names.indexOf(mapping.name);\n next += base64VLQ.encode(nameIdx - previousName);\n previousName = nameIdx;\n }\n }\n\n result += next;\n }\n\n return result;\n }\n\n _generateSourcesContent(aSources, aSourceRoot) {\n return aSources.map(function (source) {\n if (!this._sourcesContents) {\n return null;\n }\n if (aSourceRoot != null) {\n source = util.relative(aSourceRoot, source);\n }\n const key = util.toSetString(source);\n return Object.prototype.hasOwnProperty.call(this._sourcesContents, key)\n ? this._sourcesContents[key]\n : null;\n }, this);\n }\n\n /**\n * Externalize the source map.\n */\n toJSON() {\n const map = {\n version: this._version,\n sources: this._sources.toArray(),\n names: this._names.toArray(),\n mappings: this._serializeMappings(),\n };\n if (this._file != null) {\n map.file = this._file;\n }\n if (this._sourceRoot != null) {\n map.sourceRoot = this._sourceRoot;\n }\n if (this._sourcesContents) {\n map.sourcesContent = this._generateSourcesContent(\n map.sources,\n map.sourceRoot\n );\n }\n\n return map;\n }\n\n /**\n * Render the source map being generated to a string.\n */\n toString() {\n return JSON.stringify(this.toJSON());\n }\n}\n\nSourceMapGenerator.prototype._version = 3;\nexports.SourceMapGenerator = SourceMapGenerator;\n","/* -*- Mode: js; js-indent-level: 2; -*- */\n/*\n * Copyright 2011 Mozilla Foundation and contributors\n * Licensed under the New BSD license. See LICENSE or:\n * http://opensource.org/licenses/BSD-3-Clause\n */\n\nconst SourceMapGenerator = require(\"./source-map-generator\").SourceMapGenerator;\nconst util = require(\"./util\");\n\n// Matches a Windows-style `\\r\\n` newline or a `\\n` newline used by all other\n// operating systems these days (capturing the result).\nconst REGEX_NEWLINE = /(\\r?\\n)/;\n\n// Newline character code for charCodeAt() comparisons\nconst NEWLINE_CODE = 10;\n\n// Private symbol for identifying `SourceNode`s when multiple versions of\n// the source-map library are loaded. This MUST NOT CHANGE across\n// versions!\nconst isSourceNode = \"$$$isSourceNode$$$\";\n\n/**\n * SourceNodes provide a way to abstract over interpolating/concatenating\n * snippets of generated JavaScript source code while maintaining the line and\n * column information associated with the original source code.\n *\n * @param aLine The original line number.\n * @param aColumn The original column number.\n * @param aSource The original source's filename.\n * @param aChunks Optional. An array of strings which are snippets of\n * generated JS, or other SourceNodes.\n * @param aName The original identifier.\n */\nclass SourceNode {\n constructor(aLine, aColumn, aSource, aChunks, aName) {\n this.children = [];\n this.sourceContents = {};\n this.line = aLine == null ? null : aLine;\n this.column = aColumn == null ? null : aColumn;\n this.source = aSource == null ? null : aSource;\n this.name = aName == null ? null : aName;\n this[isSourceNode] = true;\n if (aChunks != null) this.add(aChunks);\n }\n\n /**\n * Creates a SourceNode from generated code and a SourceMapConsumer.\n *\n * @param aGeneratedCode The generated code\n * @param aSourceMapConsumer The SourceMap for the generated code\n * @param aRelativePath Optional. The path that relative sources in the\n * SourceMapConsumer should be relative to.\n */\n static fromStringWithSourceMap(\n aGeneratedCode,\n aSourceMapConsumer,\n aRelativePath\n ) {\n // The SourceNode we want to fill with the generated code\n // and the SourceMap\n const node = new SourceNode();\n\n // All even indices of this array are one line of the generated code,\n // while all odd indices are the newlines between two adjacent lines\n // (since `REGEX_NEWLINE` captures its match).\n // Processed fragments are accessed by calling `shiftNextLine`.\n const remainingLines = aGeneratedCode.split(REGEX_NEWLINE);\n let remainingLinesIndex = 0;\n const shiftNextLine = function () {\n const lineContents = getNextLine();\n // The last line of a file might not have a newline.\n const newLine = getNextLine() || \"\";\n return lineContents + newLine;\n\n function getNextLine() {\n return remainingLinesIndex < remainingLines.length\n ? remainingLines[remainingLinesIndex++]\n : undefined;\n }\n };\n\n // We need to remember the position of \"remainingLines\"\n let lastGeneratedLine = 1,\n lastGeneratedColumn = 0;\n\n // The generate SourceNodes we need a code range.\n // To extract it current and last mapping is used.\n // Here we store the last mapping.\n let lastMapping = null;\n let nextLine;\n\n aSourceMapConsumer.eachMapping(function (mapping) {\n if (lastMapping !== null) {\n // We add the code from \"lastMapping\" to \"mapping\":\n // First check if there is a new line in between.\n if (lastGeneratedLine < mapping.generatedLine) {\n // Associate first line with \"lastMapping\"\n addMappingWithCode(lastMapping, shiftNextLine());\n lastGeneratedLine++;\n lastGeneratedColumn = 0;\n // The remaining code is added without mapping\n } else {\n // There is no new line in between.\n // Associate the code between \"lastGeneratedColumn\" and\n // \"mapping.generatedColumn\" with \"lastMapping\"\n nextLine = remainingLines[remainingLinesIndex] || \"\";\n const code = nextLine.substr(\n 0,\n mapping.generatedColumn - lastGeneratedColumn\n );\n remainingLines[remainingLinesIndex] = nextLine.substr(\n mapping.generatedColumn - lastGeneratedColumn\n );\n lastGeneratedColumn = mapping.generatedColumn;\n addMappingWithCode(lastMapping, code);\n // No more remaining code, continue\n lastMapping = mapping;\n return;\n }\n }\n // We add the generated code until the first mapping\n // to the SourceNode without any mapping.\n // Each line is added as separate string.\n while (lastGeneratedLine < mapping.generatedLine) {\n node.add(shiftNextLine());\n lastGeneratedLine++;\n }\n if (lastGeneratedColumn < mapping.generatedColumn) {\n nextLine = remainingLines[remainingLinesIndex] || \"\";\n node.add(nextLine.substr(0, mapping.generatedColumn));\n remainingLines[remainingLinesIndex] = nextLine.substr(\n mapping.generatedColumn\n );\n lastGeneratedColumn = mapping.generatedColumn;\n }\n lastMapping = mapping;\n }, this);\n // We have processed all mappings.\n if (remainingLinesIndex < remainingLines.length) {\n if (lastMapping) {\n // Associate the remaining code in the current line with \"lastMapping\"\n addMappingWithCode(lastMapping, shiftNextLine());\n }\n // and add the remaining lines without any mapping\n node.add(remainingLines.splice(remainingLinesIndex).join(\"\"));\n }\n\n // Copy sourcesContent into SourceNode\n aSourceMapConsumer.sources.forEach(function (sourceFile) {\n const content = aSourceMapConsumer.sourceContentFor(sourceFile);\n if (content != null) {\n if (aRelativePath != null) {\n sourceFile = util.join(aRelativePath, sourceFile);\n }\n node.setSourceContent(sourceFile, content);\n }\n });\n\n return node;\n\n function addMappingWithCode(mapping, code) {\n if (mapping === null || mapping.source === undefined) {\n node.add(code);\n } else {\n const source = aRelativePath\n ? util.join(aRelativePath, mapping.source)\n : mapping.source;\n node.add(\n new SourceNode(\n mapping.originalLine,\n mapping.originalColumn,\n source,\n code,\n mapping.name\n )\n );\n }\n }\n }\n\n /**\n * Add a chunk of generated JS to this source node.\n *\n * @param aChunk A string snippet of generated JS code, another instance of\n * SourceNode, or an array where each member is one of those things.\n */\n add(aChunk) {\n if (Array.isArray(aChunk)) {\n aChunk.forEach(function (chunk) {\n this.add(chunk);\n }, this);\n } else if (aChunk[isSourceNode] || typeof aChunk === \"string\") {\n if (aChunk) {\n this.children.push(aChunk);\n }\n } else {\n throw new TypeError(\n \"Expected a SourceNode, string, or an array of SourceNodes and strings. Got \" +\n aChunk\n );\n }\n return this;\n }\n\n /**\n * Add a chunk of generated JS to the beginning of this source node.\n *\n * @param aChunk A string snippet of generated JS code, another instance of\n * SourceNode, or an array where each member is one of those things.\n */\n prepend(aChunk) {\n if (Array.isArray(aChunk)) {\n for (let i = aChunk.length - 1; i >= 0; i--) {\n this.prepend(aChunk[i]);\n }\n } else if (aChunk[isSourceNode] || typeof aChunk === \"string\") {\n this.children.unshift(aChunk);\n } else {\n throw new TypeError(\n \"Expected a SourceNode, string, or an array of SourceNodes and strings. Got \" +\n aChunk\n );\n }\n return this;\n }\n\n /**\n * Walk over the tree of JS snippets in this node and its children. The\n * walking function is called once for each snippet of JS and is passed that\n * snippet and the its original associated source's line/column location.\n *\n * @param aFn The traversal function.\n */\n walk(aFn) {\n let chunk;\n for (let i = 0, len = this.children.length; i < len; i++) {\n chunk = this.children[i];\n if (chunk[isSourceNode]) {\n chunk.walk(aFn);\n } else if (chunk !== \"\") {\n aFn(chunk, {\n source: this.source,\n line: this.line,\n column: this.column,\n name: this.name,\n });\n }\n }\n }\n\n /**\n * Like `String.prototype.join` except for SourceNodes. Inserts `aStr` between\n * each of `this.children`.\n *\n * @param aSep The separator.\n */\n join(aSep) {\n let newChildren;\n let i;\n const len = this.children.length;\n if (len > 0) {\n newChildren = [];\n for (i = 0; i < len - 1; i++) {\n newChildren.push(this.children[i]);\n newChildren.push(aSep);\n }\n newChildren.push(this.children[i]);\n this.children = newChildren;\n }\n return this;\n }\n\n /**\n * Call String.prototype.replace on the very right-most source snippet. Useful\n * for trimming whitespace from the end of a source node, etc.\n *\n * @param aPattern The pattern to replace.\n * @param aReplacement The thing to replace the pattern with.\n */\n replaceRight(aPattern, aReplacement) {\n const lastChild = this.children[this.children.length - 1];\n if (lastChild[isSourceNode]) {\n lastChild.replaceRight(aPattern, aReplacement);\n } else if (typeof lastChild === \"string\") {\n this.children[this.children.length - 1] = lastChild.replace(\n aPattern,\n aReplacement\n );\n } else {\n this.children.push(\"\".replace(aPattern, aReplacement));\n }\n return this;\n }\n\n /**\n * Set the source content for a source file. This will be added to the SourceMapGenerator\n * in the sourcesContent field.\n *\n * @param aSourceFile The filename of the source file\n * @param aSourceContent The content of the source file\n */\n setSourceContent(aSourceFile, aSourceContent) {\n this.sourceContents[util.toSetString(aSourceFile)] = aSourceContent;\n }\n\n /**\n * Walk over the tree of SourceNodes. The walking function is called for each\n * source file content and is passed the filename and source content.\n *\n * @param aFn The traversal function.\n */\n walkSourceContents(aFn) {\n for (let i = 0, len = this.children.length; i < len; i++) {\n if (this.children[i][isSourceNode]) {\n this.children[i].walkSourceContents(aFn);\n }\n }\n\n const sources = Object.keys(this.sourceContents);\n for (let i = 0, len = sources.length; i < len; i++) {\n aFn(util.fromSetString(sources[i]), this.sourceContents[sources[i]]);\n }\n }\n\n /**\n * Return the string representation of this source node. Walks over the tree\n * and concatenates all the various snippets together to one string.\n */\n toString() {\n let str = \"\";\n this.walk(function (chunk) {\n str += chunk;\n });\n return str;\n }\n\n /**\n * Returns the string representation of this source node along with a source\n * map.\n */\n toStringWithSourceMap(aArgs) {\n const generated = {\n code: \"\",\n line: 1,\n column: 0,\n };\n const map = new SourceMapGenerator(aArgs);\n let sourceMappingActive = false;\n let lastOriginalSource = null;\n let lastOriginalLine = null;\n let lastOriginalColumn = null;\n let lastOriginalName = null;\n this.walk(function (chunk, original) {\n generated.code += chunk;\n if (\n original.source !== null &&\n original.line !== null &&\n original.column !== null\n ) {\n if (\n lastOriginalSource !== original.source ||\n lastOriginalLine !== original.line ||\n lastOriginalColumn !== original.column ||\n lastOriginalName !== original.name\n ) {\n map.addMapping({\n source: original.source,\n original: {\n line: original.line,\n column: original.column,\n },\n generated: {\n line: generated.line,\n column: generated.column,\n },\n name: original.name,\n });\n }\n lastOriginalSource = original.source;\n lastOriginalLine = original.line;\n lastOriginalColumn = original.column;\n lastOriginalName = original.name;\n sourceMappingActive = true;\n } else if (sourceMappingActive) {\n map.addMapping({\n generated: {\n line: generated.line,\n column: generated.column,\n },\n });\n lastOriginalSource = null;\n sourceMappingActive = false;\n }\n for (let idx = 0, length = chunk.length; idx < length; idx++) {\n if (chunk.charCodeAt(idx) === NEWLINE_CODE) {\n generated.line++;\n generated.column = 0;\n // Mappings end at eol\n if (idx + 1 === length) {\n lastOriginalSource = null;\n sourceMappingActive = false;\n } else if (sourceMappingActive) {\n map.addMapping({\n source: original.source,\n original: {\n line: original.line,\n column: original.column,\n },\n generated: {\n line: generated.line,\n column: generated.column,\n },\n name: original.name,\n });\n }\n } else {\n generated.column++;\n }\n }\n });\n this.walkSourceContents(function (sourceFile, sourceContent) {\n map.setSourceContent(sourceFile, sourceContent);\n });\n\n return { code: generated.code, map };\n }\n}\n\nexports.SourceNode = SourceNode;\n","/* -*- Mode: js; js-indent-level: 2; -*- */\n/*\n * Copyright 2011 Mozilla Foundation and contributors\n * Licensed under the New BSD license. See LICENSE or:\n * http://opensource.org/licenses/BSD-3-Clause\n */\n\"use strict\";\n\n// Note: This file is overridden in the 'package.json#browser' field to\n// substitute lib/url-browser.js instead.\n\n// Use the URL global for Node 10, and the 'url' module for Node 8.\nmodule.exports = typeof URL === \"function\" ? URL : require(\"url\").URL;\n","/* -*- Mode: js; js-indent-level: 2; -*- */\n/*\n * Copyright 2011 Mozilla Foundation and contributors\n * Licensed under the New BSD license. See LICENSE or:\n * http://opensource.org/licenses/BSD-3-Clause\n */\n\nconst URL = require(\"./url\");\n\n/**\n * This is a helper function for getting values from parameter/options\n * objects.\n *\n * @param args The object we are extracting values from\n * @param name The name of the property we are getting.\n * @param defaultValue An optional value to return if the property is missing\n * from the object. If this is not specified and the property is missing, an\n * error will be thrown.\n */\nfunction getArg(aArgs, aName, aDefaultValue) {\n if (aName in aArgs) {\n return aArgs[aName];\n } else if (arguments.length === 3) {\n return aDefaultValue;\n }\n throw new Error('\"' + aName + '\" is a required argument.');\n}\nexports.getArg = getArg;\n\nconst supportsNullProto = (function () {\n const obj = Object.create(null);\n return !(\"__proto__\" in obj);\n})();\n\nfunction identity(s) {\n return s;\n}\n\n/**\n * Because behavior goes wacky when you set `__proto__` on objects, we\n * have to prefix all the strings in our set with an arbitrary character.\n *\n * See https://github.com/mozilla/source-map/pull/31 and\n * https://github.com/mozilla/source-map/issues/30\n *\n * @param String aStr\n */\nfunction toSetString(aStr) {\n if (isProtoString(aStr)) {\n return \"$\" + aStr;\n }\n\n return aStr;\n}\nexports.toSetString = supportsNullProto ? identity : toSetString;\n\nfunction fromSetString(aStr) {\n if (isProtoString(aStr)) {\n return aStr.slice(1);\n }\n\n return aStr;\n}\nexports.fromSetString = supportsNullProto ? identity : fromSetString;\n\nfunction isProtoString(s) {\n if (!s) {\n return false;\n }\n\n const length = s.length;\n\n if (length < 9 /* \"__proto__\".length */) {\n return false;\n }\n\n /* eslint-disable no-multi-spaces */\n if (\n s.charCodeAt(length - 1) !== 95 /* '_' */ ||\n s.charCodeAt(length - 2) !== 95 /* '_' */ ||\n s.charCodeAt(length - 3) !== 111 /* 'o' */ ||\n s.charCodeAt(length - 4) !== 116 /* 't' */ ||\n s.charCodeAt(length - 5) !== 111 /* 'o' */ ||\n s.charCodeAt(length - 6) !== 114 /* 'r' */ ||\n s.charCodeAt(length - 7) !== 112 /* 'p' */ ||\n s.charCodeAt(length - 8) !== 95 /* '_' */ ||\n s.charCodeAt(length - 9) !== 95 /* '_' */\n ) {\n return false;\n }\n /* eslint-enable no-multi-spaces */\n\n for (let i = length - 10; i >= 0; i--) {\n if (s.charCodeAt(i) !== 36 /* '$' */) {\n return false;\n }\n }\n\n return true;\n}\n\nfunction strcmp(aStr1, aStr2) {\n if (aStr1 === aStr2) {\n return 0;\n }\n\n if (aStr1 === null) {\n return 1; // aStr2 !== null\n }\n\n if (aStr2 === null) {\n return -1; // aStr1 !== null\n }\n\n if (aStr1 > aStr2) {\n return 1;\n }\n\n return -1;\n}\n\n/**\n * Comparator between two mappings with inflated source and name strings where\n * the generated positions are compared.\n */\nfunction compareByGeneratedPositionsInflated(mappingA, mappingB) {\n let cmp = mappingA.generatedLine - mappingB.generatedLine;\n if (cmp !== 0) {\n return cmp;\n }\n\n cmp = mappingA.generatedColumn - mappingB.generatedColumn;\n if (cmp !== 0) {\n return cmp;\n }\n\n cmp = strcmp(mappingA.source, mappingB.source);\n if (cmp !== 0) {\n return cmp;\n }\n\n cmp = mappingA.originalLine - mappingB.originalLine;\n if (cmp !== 0) {\n return cmp;\n }\n\n cmp = mappingA.originalColumn - mappingB.originalColumn;\n if (cmp !== 0) {\n return cmp;\n }\n\n return strcmp(mappingA.name, mappingB.name);\n}\nexports.compareByGeneratedPositionsInflated =\n compareByGeneratedPositionsInflated;\n\n/**\n * Strip any JSON XSSI avoidance prefix from the string (as documented\n * in the source maps specification), and then parse the string as\n * JSON.\n */\nfunction parseSourceMapInput(str) {\n return JSON.parse(str.replace(/^\\)]}'[^\\n]*\\n/, \"\"));\n}\nexports.parseSourceMapInput = parseSourceMapInput;\n\n// We use 'http' as the base here because we want URLs processed relative\n// to the safe base to be treated as \"special\" URLs during parsing using\n// the WHATWG URL parsing. This ensures that backslash normalization\n// applies to the path and such.\nconst PROTOCOL = \"http:\";\nconst PROTOCOL_AND_HOST = `${PROTOCOL}//host`;\n\n/**\n * Make it easy to create small utilities that tweak a URL's path.\n */\nfunction createSafeHandler(cb) {\n return input => {\n const type = getURLType(input);\n const base = buildSafeBase(input);\n const url = new URL(input, base);\n\n cb(url);\n\n const result = url.toString();\n\n if (type === \"absolute\") {\n return result;\n } else if (type === \"scheme-relative\") {\n return result.slice(PROTOCOL.length);\n } else if (type === \"path-absolute\") {\n return result.slice(PROTOCOL_AND_HOST.length);\n }\n\n // This assumes that the callback will only change\n // the path, search and hash values.\n return computeRelativeURL(base, result);\n };\n}\n\nfunction withBase(url, base) {\n return new URL(url, base).toString();\n}\n\nfunction buildUniqueSegment(prefix, str) {\n let id = 0;\n do {\n const ident = prefix + id++;\n if (str.indexOf(ident) === -1) return ident;\n } while (true);\n}\n\nfunction buildSafeBase(str) {\n const maxDotParts = str.split(\"..\").length - 1;\n\n // If we used a segment that also existed in `str`, then we would be unable\n // to compute relative paths. For example, if `segment` were just \"a\":\n //\n // const url = \"../../a/\"\n // const base = buildSafeBase(url); // http://host/a/a/\n // const joined = \"http://host/a/\";\n // const result = relative(base, joined);\n //\n // Expected: \"../../a/\";\n // Actual: \"a/\"\n //\n const segment = buildUniqueSegment(\"p\", str);\n\n let base = `${PROTOCOL_AND_HOST}/`;\n for (let i = 0; i < maxDotParts; i++) {\n base += `${segment}/`;\n }\n return base;\n}\n\nconst ABSOLUTE_SCHEME = /^[A-Za-z0-9\\+\\-\\.]+:/;\nfunction getURLType(url) {\n if (url[0] === \"/\") {\n if (url[1] === \"/\") return \"scheme-relative\";\n return \"path-absolute\";\n }\n\n return ABSOLUTE_SCHEME.test(url) ? \"absolute\" : \"path-relative\";\n}\n\n/**\n * Given two URLs that are assumed to be on the same\n * protocol/host/user/password build a relative URL from the\n * path, params, and hash values.\n *\n * @param rootURL The root URL that the target will be relative to.\n * @param targetURL The target that the relative URL points to.\n * @return A rootURL-relative, normalized URL value.\n */\nfunction computeRelativeURL(rootURL, targetURL) {\n if (typeof rootURL === \"string\") rootURL = new URL(rootURL);\n if (typeof targetURL === \"string\") targetURL = new URL(targetURL);\n\n const targetParts = targetURL.pathname.split(\"/\");\n const rootParts = rootURL.pathname.split(\"/\");\n\n // If we've got a URL path ending with a \"/\", we remove it since we'd\n // otherwise be relative to the wrong location.\n if (rootParts.length > 0 && !rootParts[rootParts.length - 1]) {\n rootParts.pop();\n }\n\n while (\n targetParts.length > 0 &&\n rootParts.length > 0 &&\n targetParts[0] === rootParts[0]\n ) {\n targetParts.shift();\n rootParts.shift();\n }\n\n const relativePath = rootParts\n .map(() => \"..\")\n .concat(targetParts)\n .join(\"/\");\n\n return relativePath + targetURL.search + targetURL.hash;\n}\n\n/**\n * Given a URL, ensure that it is treated as a directory URL.\n *\n * @param url\n * @return A normalized URL value.\n */\nconst ensureDirectory = createSafeHandler(url => {\n url.pathname = url.pathname.replace(/\\/?$/, \"/\");\n});\n\n/**\n * Given a URL, strip off any filename if one is present.\n *\n * @param url\n * @return A normalized URL value.\n */\nconst trimFilename = createSafeHandler(url => {\n url.href = new URL(\".\", url.toString()).toString();\n});\n\n/**\n * Normalize a given URL.\n * * Convert backslashes.\n * * Remove any \"..\" and \".\" segments.\n *\n * @param url\n * @return A normalized URL value.\n */\nconst normalize = createSafeHandler(url => {});\nexports.normalize = normalize;\n\n/**\n * Joins two paths/URLs.\n *\n * All returned URLs will be normalized.\n *\n * @param aRoot The root path or URL. Assumed to reference a directory.\n * @param aPath The path or URL to be joined with the root.\n * @return A joined and normalized URL value.\n */\nfunction join(aRoot, aPath) {\n const pathType = getURLType(aPath);\n const rootType = getURLType(aRoot);\n\n aRoot = ensureDirectory(aRoot);\n\n if (pathType === \"absolute\") {\n return withBase(aPath, undefined);\n }\n if (rootType === \"absolute\") {\n return withBase(aPath, aRoot);\n }\n\n if (pathType === \"scheme-relative\") {\n return normalize(aPath);\n }\n if (rootType === \"scheme-relative\") {\n return withBase(aPath, withBase(aRoot, PROTOCOL_AND_HOST)).slice(\n PROTOCOL.length\n );\n }\n\n if (pathType === \"path-absolute\") {\n return normalize(aPath);\n }\n if (rootType === \"path-absolute\") {\n return withBase(aPath, withBase(aRoot, PROTOCOL_AND_HOST)).slice(\n PROTOCOL_AND_HOST.length\n );\n }\n\n const base = buildSafeBase(aPath + aRoot);\n const newPath = withBase(aPath, withBase(aRoot, base));\n return computeRelativeURL(base, newPath);\n}\nexports.join = join;\n\n/**\n * Make a path relative to a URL or another path. If returning a\n * relative URL is not possible, the original target will be returned.\n * All returned URLs will be normalized.\n *\n * @param aRoot The root path or URL.\n * @param aPath The path or URL to be made relative to aRoot.\n * @return A rootURL-relative (if possible), normalized URL value.\n */\nfunction relative(rootURL, targetURL) {\n const result = relativeIfPossible(rootURL, targetURL);\n\n return typeof result === \"string\" ? result : normalize(targetURL);\n}\nexports.relative = relative;\n\nfunction relativeIfPossible(rootURL, targetURL) {\n const urlType = getURLType(rootURL);\n if (urlType !== getURLType(targetURL)) {\n return null;\n }\n\n const base = buildSafeBase(rootURL + targetURL);\n const root = new URL(rootURL, base);\n const target = new URL(targetURL, base);\n\n try {\n new URL(\"\", target.toString());\n } catch (err) {\n // Bail if the URL doesn't support things being relative to it,\n // For example, data: and blob: URLs.\n return null;\n }\n\n if (\n target.protocol !== root.protocol ||\n target.user !== root.user ||\n target.password !== root.password ||\n target.hostname !== root.hostname ||\n target.port !== root.port\n ) {\n return null;\n }\n\n return computeRelativeURL(root, target);\n}\n\n/**\n * Compute the URL of a source given the the source root, the source's\n * URL, and the source map's URL.\n */\nfunction computeSourceURL(sourceRoot, sourceURL, sourceMapURL) {\n // The source map spec states that \"sourceRoot\" and \"sources\" entries are to be appended. While\n // that is a little vague, implementations have generally interpreted that as joining the\n // URLs with a `/` between then, assuming the \"sourceRoot\" doesn't already end with one.\n // For example,\n //\n // sourceRoot: \"some-dir\",\n // sources: [\"/some-path.js\"]\n //\n // and\n //\n // sourceRoot: \"some-dir/\",\n // sources: [\"/some-path.js\"]\n //\n // must behave as \"some-dir/some-path.js\".\n //\n // With this library's the transition to a more URL-focused implementation, that behavior is\n // preserved here. To acheive that, we trim the \"/\" from absolute-path when a sourceRoot value\n // is present in order to make the sources entries behave as if they are relative to the\n // \"sourceRoot\", as they would have if the two strings were simply concated.\n if (sourceRoot && getURLType(sourceURL) === \"path-absolute\") {\n sourceURL = sourceURL.replace(/^\\//, \"\");\n }\n\n let url = normalize(sourceURL || \"\");\n\n // Parsing URLs can be expensive, so we only perform these joins when needed.\n if (sourceRoot) url = join(sourceRoot, url);\n if (sourceMapURL) url = join(trimFilename(sourceMapURL), url);\n return url;\n}\nexports.computeSourceURL = computeSourceURL;\n","const readWasm = require(\"../lib/read-wasm\");\n\n/**\n * Provide the JIT with a nice shape / hidden class.\n */\nfunction Mapping() {\n this.generatedLine = 0;\n this.generatedColumn = 0;\n this.lastGeneratedColumn = null;\n this.source = null;\n this.originalLine = null;\n this.originalColumn = null;\n this.name = null;\n}\n\nlet cachedWasm = null;\n\nmodule.exports = function wasm() {\n if (cachedWasm) {\n return cachedWasm;\n }\n\n const callbackStack = [];\n\n cachedWasm = readWasm()\n .then(buffer => {\n return WebAssembly.instantiate(buffer, {\n env: {\n mapping_callback(\n generatedLine,\n generatedColumn,\n\n hasLastGeneratedColumn,\n lastGeneratedColumn,\n\n hasOriginal,\n source,\n originalLine,\n originalColumn,\n\n hasName,\n name\n ) {\n const mapping = new Mapping();\n // JS uses 1-based line numbers, wasm uses 0-based.\n mapping.generatedLine = generatedLine + 1;\n mapping.generatedColumn = generatedColumn;\n\n if (hasLastGeneratedColumn) {\n // JS uses inclusive last generated column, wasm uses exclusive.\n mapping.lastGeneratedColumn = lastGeneratedColumn - 1;\n }\n\n if (hasOriginal) {\n mapping.source = source;\n // JS uses 1-based line numbers, wasm uses 0-based.\n mapping.originalLine = originalLine + 1;\n mapping.originalColumn = originalColumn;\n\n if (hasName) {\n mapping.name = name;\n }\n }\n\n callbackStack[callbackStack.length - 1](mapping);\n },\n\n start_all_generated_locations_for() {\n console.time(\"all_generated_locations_for\");\n },\n end_all_generated_locations_for() {\n console.timeEnd(\"all_generated_locations_for\");\n },\n\n start_compute_column_spans() {\n console.time(\"compute_column_spans\");\n },\n end_compute_column_spans() {\n console.timeEnd(\"compute_column_spans\");\n },\n\n start_generated_location_for() {\n console.time(\"generated_location_for\");\n },\n end_generated_location_for() {\n console.timeEnd(\"generated_location_for\");\n },\n\n start_original_location_for() {\n console.time(\"original_location_for\");\n },\n end_original_location_for() {\n console.timeEnd(\"original_location_for\");\n },\n\n start_parse_mappings() {\n console.time(\"parse_mappings\");\n },\n end_parse_mappings() {\n console.timeEnd(\"parse_mappings\");\n },\n\n start_sort_by_generated_location() {\n console.time(\"sort_by_generated_location\");\n },\n end_sort_by_generated_location() {\n console.timeEnd(\"sort_by_generated_location\");\n },\n\n start_sort_by_original_location() {\n console.time(\"sort_by_original_location\");\n },\n end_sort_by_original_location() {\n console.timeEnd(\"sort_by_original_location\");\n },\n },\n });\n })\n .then(Wasm => {\n return {\n exports: Wasm.instance.exports,\n withMappingCallback: (mappingCallback, f) => {\n callbackStack.push(mappingCallback);\n try {\n f();\n } finally {\n callbackStack.pop();\n }\n },\n };\n })\n .then(null, e => {\n cachedWasm = null;\n throw e;\n });\n\n return cachedWasm;\n};\n","/*\n * Copyright 2009-2011 Mozilla Foundation and contributors\n * Licensed under the New BSD license. See LICENSE or:\n * http://opensource.org/licenses/BSD-3-Clause\n */\nexports.SourceMapGenerator =\n require(\"./lib/source-map-generator\").SourceMapGenerator;\nexports.SourceMapConsumer =\n require(\"./lib/source-map-consumer\").SourceMapConsumer;\nexports.SourceNode = require(\"./lib/source-node\").SourceNode;\n"],"names":["Map","Error","TypeError","Math","Promise","__dirname","console","Symbol","t","String","Uint8Array","e","o","n","l","s","Object","JSON","m","i","Array","URL","arguments","c","r","WebAssembly"],"mappings":"2DAaA,MAAM,EACJ,aAAc,CACZ,IAAI,CAAC,MAAM,CAAG,EAAE,CAChB,IAAI,CAAC,IAAI,CAAG,IAAIA,GAClB,CAKA,OAAO,UAAU,CAAM,CAAE,CAAgB,CAAE,CACzC,IAAM,EAAM,IAAI,EAChB,IAAK,IAAI,EAAI,EAAG,EAAM,EAAO,MAAM,CAAE,EAAI,EAAK,IAC5C,EAAI,GAAG,CAAC,CAAM,CAAC,EAAE,CAAE,GAErB,OAAO,CACT,CAQA,MAAO,CACL,OAAO,IAAI,CAAC,IAAI,CAAC,IAAI,AACvB,CAOA,IAAI,CAAI,CAAE,CAAgB,CAAE,CAC1B,IAAM,EAAc,IAAI,CAAC,GAAG,CAAC,GACvB,EAAM,IAAI,CAAC,MAAM,CAAC,MAAM,AAC1B,GAAC,GAAe,CAAe,GACjC,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,GAEf,AAAC,GACH,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,EAAM,EAExB,CAOA,IAAI,CAAI,CAAE,CACR,OAAO,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,EACvB,CA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L,QAAS,EAAK,QAAQ,CAAC,OAAO,CAC9B,oBAAqB,CAAC,EAAiB,KACrC,EAAc,IAAI,CAAC,GACnB,GAAI,CACF,GACF,QAAU,CACR,EAAc,GAAG,EACnB,CACF,CACF,IAED,IAAI,CAAC,KAAMK,IAEV,MADA,EAAa,KACPA,CACR,EAGJ,C,0SCpIA,C,EAAQ,kBAAkB,CAA1B,gEAC0D,CAC1D,A,EAAQ,iBAAiB,CAAzB,8DACwD,CACxD,A,EAAQ,UAAU,CAAG,EAArB,6CAA4D,C"} \ No newline at end of file diff --git a/packages/node_modules/source-map/lib/util/index.js.map b/packages/node_modules/source-map/lib/util/index.js.map new file mode 100644 index 00000000000..bd9c1d40346 --- /dev/null +++ b/packages/node_modules/source-map/lib/util/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"source-map/lib/util/index.js","sources":["webpack:///./source-map/lib/url.js","webpack:///./source-map/lib/util.js"],"sourcesContent":["/* -*- Mode: js; js-indent-level: 2; -*- */\n/*\n * Copyright 2011 Mozilla Foundation and contributors\n * Licensed under the New BSD license. See LICENSE or:\n * http://opensource.org/licenses/BSD-3-Clause\n */\n\"use strict\";\n\n// Note: This file is overridden in the 'package.json#browser' field to\n// substitute lib/url-browser.js instead.\n\n// Use the URL global for Node 10, and the 'url' module for Node 8.\nmodule.exports = typeof URL === \"function\" ? URL : require(\"url\").URL;\n","/* -*- Mode: js; js-indent-level: 2; -*- */\n/*\n * Copyright 2011 Mozilla Foundation and contributors\n * Licensed under the New BSD license. See LICENSE or:\n * http://opensource.org/licenses/BSD-3-Clause\n */\n\nconst URL = require(\"./url\");\n\n/**\n * This is a helper function for getting values from parameter/options\n * objects.\n *\n * @param args The object we are extracting values from\n * @param name The name of the property we are getting.\n * @param defaultValue An optional value to return if the property is missing\n * from the object. If this is not specified and the property is missing, an\n * error will be thrown.\n */\nfunction getArg(aArgs, aName, aDefaultValue) {\n if (aName in aArgs) {\n return aArgs[aName];\n } else if (arguments.length === 3) {\n return aDefaultValue;\n }\n throw new Error('\"' + aName + '\" is a required argument.');\n}\nexports.getArg = getArg;\n\nconst supportsNullProto = (function () {\n const obj = Object.create(null);\n return !(\"__proto__\" in obj);\n})();\n\nfunction identity(s) {\n return s;\n}\n\n/**\n * Because behavior goes wacky when you set `__proto__` on objects, we\n * have to prefix all the strings in our set with an arbitrary character.\n *\n * See https://github.com/mozilla/source-map/pull/31 and\n * https://github.com/mozilla/source-map/issues/30\n *\n * @param String aStr\n */\nfunction toSetString(aStr) {\n if (isProtoString(aStr)) {\n return \"$\" + aStr;\n }\n\n return aStr;\n}\nexports.toSetString = supportsNullProto ? identity : toSetString;\n\nfunction fromSetString(aStr) {\n if (isProtoString(aStr)) {\n return aStr.slice(1);\n }\n\n return aStr;\n}\nexports.fromSetString = supportsNullProto ? identity : fromSetString;\n\nfunction isProtoString(s) {\n if (!s) {\n return false;\n }\n\n const length = s.length;\n\n if (length < 9 /* \"__proto__\".length */) {\n return false;\n }\n\n /* eslint-disable no-multi-spaces */\n if (\n s.charCodeAt(length - 1) !== 95 /* '_' */ ||\n s.charCodeAt(length - 2) !== 95 /* '_' */ ||\n s.charCodeAt(length - 3) !== 111 /* 'o' */ ||\n s.charCodeAt(length - 4) !== 116 /* 't' */ ||\n s.charCodeAt(length - 5) !== 111 /* 'o' */ ||\n s.charCodeAt(length - 6) !== 114 /* 'r' */ ||\n s.charCodeAt(length - 7) !== 112 /* 'p' */ ||\n s.charCodeAt(length - 8) !== 95 /* '_' */ ||\n s.charCodeAt(length - 9) !== 95 /* '_' */\n ) {\n return false;\n }\n /* eslint-enable no-multi-spaces */\n\n for (let i = length - 10; i >= 0; i--) {\n if (s.charCodeAt(i) !== 36 /* '$' */) {\n return false;\n }\n }\n\n return true;\n}\n\nfunction strcmp(aStr1, aStr2) {\n if (aStr1 === aStr2) {\n return 0;\n }\n\n if (aStr1 === null) {\n return 1; // aStr2 !== null\n }\n\n if (aStr2 === null) {\n return -1; // aStr1 !== null\n }\n\n if (aStr1 > aStr2) {\n return 1;\n }\n\n return -1;\n}\n\n/**\n * Comparator between two mappings with inflated source and name strings where\n * the generated positions are compared.\n */\nfunction compareByGeneratedPositionsInflated(mappingA, mappingB) {\n let cmp = mappingA.generatedLine - mappingB.generatedLine;\n if (cmp !== 0) {\n return cmp;\n }\n\n cmp = mappingA.generatedColumn - mappingB.generatedColumn;\n if (cmp !== 0) {\n return cmp;\n }\n\n cmp = strcmp(mappingA.source, mappingB.source);\n if (cmp !== 0) {\n return cmp;\n }\n\n cmp = mappingA.originalLine - mappingB.originalLine;\n if (cmp !== 0) {\n return cmp;\n }\n\n cmp = mappingA.originalColumn - mappingB.originalColumn;\n if (cmp !== 0) {\n return cmp;\n }\n\n return strcmp(mappingA.name, mappingB.name);\n}\nexports.compareByGeneratedPositionsInflated =\n compareByGeneratedPositionsInflated;\n\n/**\n * Strip any JSON XSSI avoidance prefix from the string (as documented\n * in the source maps specification), and then parse the string as\n * JSON.\n */\nfunction parseSourceMapInput(str) {\n return JSON.parse(str.replace(/^\\)]}'[^\\n]*\\n/, \"\"));\n}\nexports.parseSourceMapInput = parseSourceMapInput;\n\n// We use 'http' as the base here because we want URLs processed relative\n// to the safe base to be treated as \"special\" URLs during parsing using\n// the WHATWG URL parsing. This ensures that backslash normalization\n// applies to the path and such.\nconst PROTOCOL = \"http:\";\nconst PROTOCOL_AND_HOST = `${PROTOCOL}//host`;\n\n/**\n * Make it easy to create small utilities that tweak a URL's path.\n */\nfunction createSafeHandler(cb) {\n return input => {\n const type = getURLType(input);\n const base = buildSafeBase(input);\n const url = new URL(input, base);\n\n cb(url);\n\n const result = url.toString();\n\n if (type === \"absolute\") {\n return result;\n } else if (type === \"scheme-relative\") {\n return result.slice(PROTOCOL.length);\n } else if (type === \"path-absolute\") {\n return result.slice(PROTOCOL_AND_HOST.length);\n }\n\n // This assumes that the callback will only change\n // the path, search and hash values.\n return computeRelativeURL(base, result);\n };\n}\n\nfunction withBase(url, base) {\n return new URL(url, base).toString();\n}\n\nfunction buildUniqueSegment(prefix, str) {\n let id = 0;\n do {\n const ident = prefix + id++;\n if (str.indexOf(ident) === -1) return ident;\n } while (true);\n}\n\nfunction buildSafeBase(str) {\n const maxDotParts = str.split(\"..\").length - 1;\n\n // If we used a segment that also existed in `str`, then we would be unable\n // to compute relative paths. For example, if `segment` were just \"a\":\n //\n // const url = \"../../a/\"\n // const base = buildSafeBase(url); // http://host/a/a/\n // const joined = \"http://host/a/\";\n // const result = relative(base, joined);\n //\n // Expected: \"../../a/\";\n // Actual: \"a/\"\n //\n const segment = buildUniqueSegment(\"p\", str);\n\n let base = `${PROTOCOL_AND_HOST}/`;\n for (let i = 0; i < maxDotParts; i++) {\n base += `${segment}/`;\n }\n return base;\n}\n\nconst ABSOLUTE_SCHEME = /^[A-Za-z0-9\\+\\-\\.]+:/;\nfunction getURLType(url) {\n if (url[0] === \"/\") {\n if (url[1] === \"/\") return \"scheme-relative\";\n return \"path-absolute\";\n }\n\n return ABSOLUTE_SCHEME.test(url) ? \"absolute\" : \"path-relative\";\n}\n\n/**\n * Given two URLs that are assumed to be on the same\n * protocol/host/user/password build a relative URL from the\n * path, params, and hash values.\n *\n * @param rootURL The root URL that the target will be relative to.\n * @param targetURL The target that the relative URL points to.\n * @return A rootURL-relative, normalized URL value.\n */\nfunction computeRelativeURL(rootURL, targetURL) {\n if (typeof rootURL === \"string\") rootURL = new URL(rootURL);\n if (typeof targetURL === \"string\") targetURL = new URL(targetURL);\n\n const targetParts = targetURL.pathname.split(\"/\");\n const rootParts = rootURL.pathname.split(\"/\");\n\n // If we've got a URL path ending with a \"/\", we remove it since we'd\n // otherwise be relative to the wrong location.\n if (rootParts.length > 0 && !rootParts[rootParts.length - 1]) {\n rootParts.pop();\n }\n\n while (\n targetParts.length > 0 &&\n rootParts.length > 0 &&\n targetParts[0] === rootParts[0]\n ) {\n targetParts.shift();\n rootParts.shift();\n }\n\n const relativePath = rootParts\n .map(() => \"..\")\n .concat(targetParts)\n .join(\"/\");\n\n return relativePath + targetURL.search + targetURL.hash;\n}\n\n/**\n * Given a URL, ensure that it is treated as a directory URL.\n *\n * @param url\n * @return A normalized URL value.\n */\nconst ensureDirectory = createSafeHandler(url => {\n url.pathname = url.pathname.replace(/\\/?$/, \"/\");\n});\n\n/**\n * Given a URL, strip off any filename if one is present.\n *\n * @param url\n * @return A normalized URL value.\n */\nconst trimFilename = createSafeHandler(url => {\n url.href = new URL(\".\", url.toString()).toString();\n});\n\n/**\n * Normalize a given URL.\n * * Convert backslashes.\n * * Remove any \"..\" and \".\" segments.\n *\n * @param url\n * @return A normalized URL value.\n */\nconst normalize = createSafeHandler(url => {});\nexports.normalize = normalize;\n\n/**\n * Joins two paths/URLs.\n *\n * All returned URLs will be normalized.\n *\n * @param aRoot The root path or URL. Assumed to reference a directory.\n * @param aPath The path or URL to be joined with the root.\n * @return A joined and normalized URL value.\n */\nfunction join(aRoot, aPath) {\n const pathType = getURLType(aPath);\n const rootType = getURLType(aRoot);\n\n aRoot = ensureDirectory(aRoot);\n\n if (pathType === \"absolute\") {\n return withBase(aPath, undefined);\n }\n if (rootType === \"absolute\") {\n return withBase(aPath, aRoot);\n }\n\n if (pathType === \"scheme-relative\") {\n return normalize(aPath);\n }\n if (rootType === \"scheme-relative\") {\n return withBase(aPath, withBase(aRoot, PROTOCOL_AND_HOST)).slice(\n PROTOCOL.length\n );\n }\n\n if (pathType === \"path-absolute\") {\n return normalize(aPath);\n }\n if (rootType === \"path-absolute\") {\n return withBase(aPath, withBase(aRoot, PROTOCOL_AND_HOST)).slice(\n PROTOCOL_AND_HOST.length\n );\n }\n\n const base = buildSafeBase(aPath + aRoot);\n const newPath = withBase(aPath, withBase(aRoot, base));\n return computeRelativeURL(base, newPath);\n}\nexports.join = join;\n\n/**\n * Make a path relative to a URL or another path. If returning a\n * relative URL is not possible, the original target will be returned.\n * All returned URLs will be normalized.\n *\n * @param aRoot The root path or URL.\n * @param aPath The path or URL to be made relative to aRoot.\n * @return A rootURL-relative (if possible), normalized URL value.\n */\nfunction relative(rootURL, targetURL) {\n const result = relativeIfPossible(rootURL, targetURL);\n\n return typeof result === \"string\" ? result : normalize(targetURL);\n}\nexports.relative = relative;\n\nfunction relativeIfPossible(rootURL, targetURL) {\n const urlType = getURLType(rootURL);\n if (urlType !== getURLType(targetURL)) {\n return null;\n }\n\n const base = buildSafeBase(rootURL + targetURL);\n const root = new URL(rootURL, base);\n const target = new URL(targetURL, base);\n\n try {\n new URL(\"\", target.toString());\n } catch (err) {\n // Bail if the URL doesn't support things being relative to it,\n // For example, data: and blob: URLs.\n return null;\n }\n\n if (\n target.protocol !== root.protocol ||\n target.user !== root.user ||\n target.password !== root.password ||\n target.hostname !== root.hostname ||\n target.port !== root.port\n ) {\n return null;\n }\n\n return computeRelativeURL(root, target);\n}\n\n/**\n * Compute the URL of a source given the the source root, the source's\n * URL, and the source map's URL.\n */\nfunction computeSourceURL(sourceRoot, sourceURL, sourceMapURL) {\n // The source map spec states that \"sourceRoot\" and \"sources\" entries are to be appended. While\n // that is a little vague, implementations have generally interpreted that as joining the\n // URLs with a `/` between then, assuming the \"sourceRoot\" doesn't already end with one.\n // For example,\n //\n // sourceRoot: \"some-dir\",\n // sources: [\"/some-path.js\"]\n //\n // and\n //\n // sourceRoot: \"some-dir/\",\n // sources: [\"/some-path.js\"]\n //\n // must behave as \"some-dir/some-path.js\".\n //\n // With this library's the transition to a more URL-focused implementation, that behavior is\n // preserved here. To acheive that, we trim the \"/\" from absolute-path when a sourceRoot value\n // is present in order to make the sources entries behave as if they are relative to the\n // \"sourceRoot\", as they would have if the two strings were simply concated.\n if (sourceRoot && getURLType(sourceURL) === \"path-absolute\") {\n sourceURL = sourceURL.replace(/^\\//, \"\");\n }\n\n let url = normalize(sourceURL || \"\");\n\n // Parsing URLs can be expensive, so we only perform these joins when needed.\n if (sourceRoot) url = join(sourceRoot, url);\n if (sourceMapURL) url = join(trimFilename(sourceMapURL), url);\n return url;\n}\nexports.computeSourceURL = computeSourceURL;\n"],"names":["URL","r","arguments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IAAI,EACzB,EAAO,QAAQ,GAAK,EAAK,QAAQ,EACjC,EAAO,QAAQ,GAAK,EAAK,QAAQ,EACjC,EAAO,IAAI,GAAK,EAAK,IAAI,CAElB,KAGF,EAAmB,EAAM,EAClC,EAnCoC,EAASD,GAE3C,MAAO,AAAkB,UAAlB,OAAOR,EAAsBA,EAAS,EAAUQ,EACzD,EAqEA,A,EAAQ,gBAAgB,CA/BxB,SAA0B,CAAU,CAAE,CAAS,CAAE,CAAY,EAoBvD,GAAcF,AAA0B,kBAA1BA,EAAW,IAC3B,GAAY,EAAU,OAAO,CAAC,MAAO,GAAE,EAGzC,IAAI,EAAM,EAAU,GAAa,IAKjC,OAFI,GAAY,GAAM,EAAK,EAAY,EAAG,EACtC,GAAc,GAAM,EAAK,EAAa,GAAe,EAAG,EACrD,CACT,C"} \ No newline at end of file diff --git a/packages/node_modules/tlhunter-sorted-set/index.js.map b/packages/node_modules/tlhunter-sorted-set/index.js.map new file mode 100644 index 00000000000..66253d463fd --- /dev/null +++ b/packages/node_modules/tlhunter-sorted-set/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"tlhunter-sorted-set/index.js","sources":["webpack:///./tlhunter-sorted-set/lib/intersect.js","webpack:///./tlhunter-sorted-set/lib/set.js"],"sourcesContent":["function binaryIntersect(a, b) {\n let lookup = Object.create(null), result = [];\n for (; a; a = a.next[0].next)\n lookup[a.key] = true;\n for (; b; b = b.next[0].next)\n if (lookup[b.key])\n result.push(b.key);\n return result;\n}\n\nfunction ternaryIntersect(a, b, c) {\n let lookup = Object.create(null), result = [];\n for (; a; a = a.next[0].next)\n lookup[a.key] = 0;\n for (; b; b = b.next[0].next)\n if (lookup[b.key] === 0)\n lookup[b.key] = 1;\n for (; c; c = c.next[0].next)\n if (lookup[c.key] === 1)\n result.push(c.key);\n return result;\n}\n\nfunction intersect(nodes) {\n let result, node, lookup, x, i, j, n;\n if (!nodes.length)\n return [];\n for (i = nodes.length - 1; i >= 0; i--) {\n if (!nodes[i].length) // abort\n return [];\n nodes[i] = nodes[i]._head.next[0].next;\n }\n if (nodes.length === 1)\n return nodes[0].toArray({field: 'key'});\n if (nodes.length === 2)\n return binaryIntersect(nodes[0], nodes[1]);\n if (nodes.length === 3)\n return ternaryIntersect(nodes[0], nodes[1], nodes[2]);\n /*return nodes[0].length <= nodes[1].length ?\n binaryIntersect(nodes[0], nodes[1]) :\n binaryIntersect(nodes[1], nodes[0]);*/\n lookup = Object.create(null);\n for (node = nodes.shift(); node; node = node.next[0].next)\n lookup[node.key] = 0;\n for (i = 0, n = nodes.length - 1; i < n; i++) {\n x = 0;\n j = i + 1;\n for (node = nodes[i]; node; node = node.next[0].next) {\n if (lookup[node.key] === i) {\n lookup[node.key] = j;\n x++;\n }\n }\n if (!x) // useful?\n return [];\n }\n result = [];\n for (node = nodes[i]; node; node = node.next[0].next)\n if (lookup[node.key] === i)\n result.push(node.key);\n return result;\n}\n\nmodule.exports = intersect;\n","'use strict';\n\n/*\n * TODO\n * rename most instances of \"key\" to \"member\"\n * rename most instances of \"value\" to \"score\"\n * rename private _foo methods to #foo\n */\n\nconst intersect = require('./intersect.js');\n\nconst slice = Array.prototype.slice;\nconst P = 1 / Math.E;\n\nclass SortedSet {\n constructor(options = {}) {\n this._unique = !!options.unique;\n this.empty();\n }\n\n static intersect () {\n return intersect.call(SortedSet, slice.call(arguments));\n }\n\n add(key, value) {\n let current;\n\n if (value == null) {\n return this.rem(key);\n }\n\n current = this._map.get(key);\n\n if (current !== undefined) {\n if (value === current) {\n return current;\n }\n this._remove(key, current);\n }\n\n let node = this._insert(key, value);\n if (!node) {\n current === undefined || this._insert(key, current);\n // TODO: can we defer _remove until after insert?\n throw new Error('unique constraint violated');\n }\n\n this._map.set(key, value);\n return current === undefined ? null : current;\n }\n\n card() {\n // Returns the sorted set cardinality (number of elements)\n if (this.length) {\n return this.length;\n }\n return 0;\n }\n\n count(min, max) {\n if (!this.length) {\n return 0;\n }\n\n if (min == null) {\n min = -Infinity;\n }\n if (max == null) {\n max = Infinity;\n }\n\n if (min <= this._head.next[0].next.value && max >= this._tail.value) {\n return this.length;\n }\n\n if (max < min || min > this._tail.value || max < this._head.next[0].next.value) {\n return 0;\n }\n\n let i;\n let node = this._first(min);\n let count = 0;\n\n if (!node) {\n return 0;\n }\n\n for (i = node.next.length - 1; i >= 0; i -= 1) {\n while (node.next[i].next && node.next[i].next.value <= max) {\n count += node.next[i].span;\n node = node.next[i].next;\n }\n }\n\n // feels hacky and error prone\n return count && count + 1;\n }\n\n del(key) {\n // Alias for .rem\n return this.rem(key);\n }\n\n empty() {\n this.length = 0;\n this._level = 1;\n this._map = new Map();\n this._head = new Node(32, null, 0);\n this._tail = null;\n\n for (let i = 0; i < 32; i += 1) {\n // hrm\n this._head.next[i] = new Level(null, 0);\n }\n }\n\n get(key) {\n // Alias for\n return this.score(key);\n }\n\n has(key) {\n return this._map.has(key)\n }\n\n incrBy(increment, key) {\n // Increases the score of the member specified by key.\n // If member does not exist, a new member is created with\n // the increment as its score.\n //\n // Parameters:\n // increment\n // number\n // key\n // string\n //\n // Return\n // number, the new score of the member\n //\n // TODO: Shortcut, could optimize to half\n\n let score = this.score(key);\n\n if (score) {\n this.add(key, score + increment);\n return score + increment;\n }\n\n this.add(key, increment);\n return increment;\n }\n\n intersect() {\n // intersect values\n let maps = slice.call(arguments);\n maps.unshift(this);\n return intersect.call(this, maps);\n }\n\n intersectKeys() {\n let maps = slice.call(arguments);\n maps.unshift(this);\n return intersectKeys.call(this, maps);\n }\n\n keys() {\n if (!this.length) {\n return [];\n }\n\n let i;\n let array = new Array(this.length);\n let node = this._head.next[0].next;\n\n for (i = 0; node; node = node.next[0].next) {\n array[i] = node.key;\n i += 1;\n }\n\n return array;\n }\n\n range (start, stop, options) {\n // Parameters:\n // start\n // inclusive\n // stop\n // inclusive\n // options (optional)\n // withScores (optional, default to false)\n //\n // Return:\n // an array\n\n if (this.length === 0) {\n return [];\n }\n\n if (start == null) {\n start = 0;\n } else if (start < 0) {\n start = Math.max(this.length + start, 0);\n }\n\n if (stop == null) {\n stop = this.length - 1;\n } else if (stop < 0) {\n stop = this.length + stop;\n }\n\n if (start > stop || start >= this.length) {\n return [];\n }\n\n if (stop >= this.length) {\n stop = this.length - 1;\n }\n\n if (typeof options !== 'object') {\n options = {\n withScores: false,\n };\n }\n\n let i = 0;\n let length = stop - start + 1;\n let result\n try {\n result = new Array(length);\n } catch(e) {\n console.log('start', start);\n console.log('stop', stop);\n console.log('Invalid length', length);\n throw e;\n }\n\n let node = start > 0 ? this._get(start) : this._head.next[0].next;\n\n if (options.withScores) {\n for (; length--; node = node.next[0].next) {\n result[i] = [node.key, node.value];\n i += 1;\n }\n } else {\n for (; length--; node = node.next[0].next) {\n result[i] = node.key;\n i += 1;\n }\n }\n\n return result;\n };\n\n rangeByScore(min, max, options) {\n // Return members with score within inclusive range [min, max].\n //\n // Parameters:\n // min (number)\n // max (number)\n // options (object, optional)\n // withScores (bool, optional, default false)\n\n if (!this.length) {\n return [];\n }\n\n if (typeof options !== 'object') {\n options = {\n withScores: false,\n };\n }\n\n if (min == null) {\n min = -Infinity;\n }\n if (max == null) {\n max = Infinity;\n }\n\n if (min <= this._head.next[0].next.value && max >= this._tail.value) {\n return this.toArray({ withScores: options.withScores });\n }\n\n if (max < min || min > this._tail.value || max < this._head.next[0].next.value) {\n return [];\n }\n\n let node = this._first(min);\n let result = [];\n\n if (options.withScores) {\n for (; node && node.value <= max; node = node.next[0].next) {\n result.push([node.key, node.value]);\n }\n } else {\n for (; node && node.value <= max; node = node.next[0].next) {\n result.push(node.key);\n }\n }\n\n return result;\n }\n\n rank(key) {\n // Rank of key, ordered by value.\n //\n // Return\n // integer\n // if member exists\n /// null\n // if member does not exist\n\n let value = this._map.get(key);\n\n if (value === undefined) {\n return null;\n }\n\n let i;\n let node = this._head;\n let next = null;\n let rank = -1;\n\n for (i = this._level - 1; i >= 0; i -= 1) {\n while ((next = node.next[i].next) && (next.value < value || (next.value === value && next.key <= key))) {\n rank += node.next[i].span;\n node = next;\n }\n if (node.key && node.key === key) {\n return rank;\n }\n }\n\n return null;\n }\n\n rem(key) {\n // Remove single member by key.\n //\n // Return\n // value of the removed key\n // or null if key does not exist.\n\n let value = this._map.get(key);\n if (value !== undefined) {\n this._remove(key, value);\n this._map.delete(key);\n return value;\n }\n return null;\n }\n\n remRangeByRank (start, end) {\n // Parameters:\n // start\n // inclusive\n // end\n // exclusive\n //\n // Return\n // positive integer, the number of removed keys.\n\n let len = this.length;\n\n if (!len) {\n return 0;\n }\n\n if (start == null) {\n start = 0;\n } else if (start < 0) {\n start = Math.max(len + start, 0);\n }\n\n if (end == null) {\n end = len;\n } else if (end < 0) {\n end = len + end;\n }\n\n if (start > end || start >= len) {\n return 0;\n }\n if (end > len) {\n end = len;\n }\n\n if (start === 0 && end === len) {\n this.empty();\n return len;\n }\n\n let node = this._head;\n let update = new Array(32)\n let result, i, next;\n let traversed = -1;\n\n for (i = this._level - 1; i >= 0; i -= 1) {\n while ((next = node.next[i].next) && (traversed + node.next[i].span) < start) {\n traversed += node.next[i].span;\n node = next;\n }\n update[i] = node;\n }\n\n let removed = 0;\n traversed += 1;\n node = node.next[0].next;\n\n while (node && traversed < end) {\n next = node.next[0].next;\n this._removeNode(node, update);\n this._map.delete(node.key);\n removed += 1;\n traversed += 1;\n node = next;\n }\n\n this.length -= removed;\n return removed;\n }\n\n remRangeByScore(min, max) {\n // Remove members with value between min and max (inclusive).\n //\n // Return\n // positive integer, the number of removed elements.\n\n let result;\n let removed = 0;\n\n if (!this.length) {\n return 0;\n }\n\n if (min == null) {\n min = -Infinity;\n }\n if (max == null) {\n max = Infinity;\n }\n\n if (min <= this._head.next[0].next.value && max >= this._tail.value) {\n removed = this.length;\n this.empty();\n return removed;\n }\n\n let next, i;\n let node = this._head;\n let update = new Array(32);\n\n for (i = this._level - 1; i >= 0; i -= 1) {\n while ((next = node.next[i].next) && next.value < min) {\n node = next;\n }\n update[i] = node;\n }\n node = node.next[0].next;\n\n while (node && node.value <= max) {\n next = node.next[0].next;\n this._removeNode(node, update);\n this._map.delete(node.key);\n removed += 1;\n node = next;\n }\n\n this.length -= removed;\n return removed;\n }\n\n score (member) {\n // Return\n // number, the score of member in the sorted set.\n // null, if member does not exist in the sorted set.\n let score = this._map.get(member);\n return score === undefined ? null : score;\n }\n\n set(key, value) {\n // Alias for\n return this.add(key, value);\n }\n\n slice(start, end, options) {\n // Almost alias for range. Only difference is that\n // the end is exclusive i.e. not included in the range.\n if (typeof end === 'number' && end !== 0) {\n end -= 1;\n }\n return this.range(start, end, options);\n }\n\n toArray(options) {\n // The whole set, ordered from smallest to largest.\n //\n // Parameters\n // options (optional)\n // withScores (optional, default false)\n // bool\n\n if (!this.length) {\n return [];\n }\n\n if (typeof options !== 'object') {\n options = {\n withScores: false,\n };\n }\n\n let i;\n let array = new Array(this.length);\n let node = this._head.next[0].next;\n\n if (options.withScores) {\n for (i = 0; node; node = node.next[0].next) {\n array[i] = [node.key, node.value];\n i += 1;\n }\n } else {\n for (i = 0; node; node = node.next[0].next) {\n array[i] = node.key;\n i += 1;\n }\n }\n\n return array;\n }\n\n values() {\n // Return values as an array, the smallest value first.\n\n if (!this.length) {\n return [];\n }\n\n let i;\n let array = new Array(this.length);\n let node = this._head.next[0].next;\n\n for (i = 0; node; node = node.next[0].next) {\n array[i] = node.value;\n i += 1;\n }\n\n return array;\n }\n\n _first(min) {\n let node = this._tail;\n\n if (!node || node.value < min) {\n return null;\n }\n\n node = this._head;\n for (let next = null, i = this._level - 1; i >= 0; i -= 1) {\n while ((next = node.next[i].next) && next.value < min) {\n node = next;\n }\n }\n\n return node.next[0].next;\n }\n\n _get(index) {\n // Find and return the node at index.\n // Return null if not found.\n //\n // TODO: optimize when index is less than log(N) from the end\n let i;\n let node = this._head;\n let distance = -1;\n\n for (i = this._level - 1; i >= 0; i -= 1) {\n while (node.next[i].next && (distance + node.next[i].span) <= index) {\n distance += node.next[i].span;\n node = node.next[i].next;\n }\n if (distance === index) {\n return node;\n }\n }\n return null;\n }\n\n _insert(key, value) {\n // precondition: does not already have key\n // in unique mode, returns null if the value already exists\n let update = new Array(32);\n let rank = new Array(32);\n let node = this._head;\n let next = null;\n let i;\n\n for (i = this._level - 1; i >= 0; i -= 1) {\n rank[i] = (i === (this._level - 1) ? 0 : rank[i + 1]);\n // TODO: optimize some more?\n while ((next = node.next[i].next) && next.value <= value) {\n if (next.value === value) {\n if (this._unique) {\n return null;\n }\n if (next.key >= key) {\n break;\n }\n }\n rank[i] += node.next[i].span;\n node = next;\n }\n if (this._unique && node.value === value) {\n return null;\n }\n update[i] = node;\n }\n\n if (this._unique && node.value === value) {\n return null;\n }\n\n let level = randomLevel();\n if (level > this._level) {\n // TODO: optimize\n for (i = this._level; i < level; i += 1) {\n rank[i] = 0;\n update[i] = this._head;\n update[i].next[i].span = this.length;\n }\n this._level = level;\n }\n\n node = new Node(level, key, value);\n for (i = 0; i < level; i += 1) {\n node.next[i] = new Level(update[i].next[i].next, update[i].next[i].span - (rank[0] - rank[i]));\n update[i].next[i].next = node;\n update[i].next[i].span = (rank[0] - rank[i]) + 1;\n }\n\n for (i = level; i < this._level; i += 1) {\n update[i].next[i].span++;\n }\n\n node.prev = (update[0] === this._head) ? null : update[0];\n if (node.next[0].next) {\n node.next[0].next.prev = node;\n } else {\n this._tail = node;\n }\n\n this.length += 1;\n return node;\n }\n\n _next(value, node) {\n // find node after node when value >= specified value\n //\n let next, i;\n\n if (!this._tail || this._tail.value < value) {\n return null;\n }\n\n // search upwards\n for (next = null; (next = node.next[node.next.length - 1].next) && next.value < value; ) {\n node = next;\n }\n if (node.value === value) {\n return node;\n }\n\n // search downwards\n for (i = node.next.length - 1; i >= 0; i -= 1) {\n while ((next = node.next[i].next) && next.value < value) {\n node = next;\n }\n\n if (node.value === value) {\n return node;\n }\n }\n return node.next[0].next;\n }\n\n _remove(key, value) {\n let update = new Array(32);\n let node = this._head;\n let i, next;\n\n for (i = this._level - 1; i >= 0; i -= 1) {\n while ((next = node.next[i].next) && (next.value < value || (next.value === value && next.key < key))) {\n node = next;\n }\n update[i] = node;\n }\n\n node = node.next[0].next;\n\n if (!node || value !== node.value || node.key !== key) {\n return false;\n }\n\n // delete\n this._removeNode(node, update);\n this.length -= 1;\n }\n\n _removeNode(node, update) {\n let next = null;\n let i = 0;\n let n = this._level;\n\n for (; i < n; i += 1) {\n if (update[i].next[i].next === node) {\n update[i].next[i].span += node.next[i].span - 1;\n update[i].next[i].next = node.next[i].next;\n } else {\n update[i].next[i].span -= 1;\n }\n }\n if (next = node.next[0].next) {\n next.prev = node.prev;\n } else {\n this._tail = node.prev;\n }\n\n while (this._level > 1 && !this._head.next[this._level - 1].next) {\n this._level -= 1;\n }\n }\n}\n\nfunction randomLevel() {\n let level = 1;\n while (Math.random() < P) {\n level += 1;\n }\n return level < 32 ? level : 32;\n}\n\nfunction Level(next, span) {\n this.next = next;\n this.span = span;\n}\n\n// value is score, sorted\n// key is obj, unique\nfunction Node(level, key, value) {\n this.key = key;\n this.value = value;\n this.next = new Array(level);\n this.prev = null;\n}\n\nfunction Entry(key, value) {\n this.key = key;\n this.value = value;\n}\n\nmodule.exports = SortedSet;\n"],"names":["n","i","Object","r","Array","Math","arguments","Error","Map","intersectKeys","console","l"],"mappings":"kEA+DA,EAAO,OAAO,CAxCd,SAAmB,CAAK,EACtB,IAAI,EAAQA,EAAM,EAAQ,EAAGC,EAAG,EAAG,EACnC,GAAI,CAAC,EAAM,MAAM,CACf,MAAO,EAAE,CACX,IAAKA,EAAI,EAAM,MAAM,CAAG,EAAGA,GAAK,EAAGA,IAAK,CACtC,GAAI,CAAC,CAAK,CAACA,EAAE,CAAC,MAAM,CAClB,MAAO,EAAE,AACX,EAAK,CAACA,EAAE,CAAG,CAAK,CAACA,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,AACxC,CACA,GAAI,AAAiB,IAAjB,EAAM,MAAM,CACd,OAAO,CAAK,CAAC,EAAE,CAAC,OAAO,CAAC,CAAC,MAAO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,CAAC,IAAI,CAAG,EACZ,IAAI,CAAC,IAAI,CAAG,CACd,CAIA,SAAS,EAAK,CAAK,CAAE,CAAG,CAAE,CAAK,EAC7B,IAAI,CAAC,GAAG,CAAG,EACX,IAAI,CAAC,KAAK,CAAG,EACb,IAAI,CAAC,IAAI,CAAG,AAAII,MAAM,GACtB,IAAI,CAAC,IAAI,CAAG,IACd,CAOA,EAAO,OAAO,CAAG,C"} \ No newline at end of file diff --git a/packages/node_modules/ttl-set/index.js.map b/packages/node_modules/ttl-set/index.js.map new file mode 100644 index 00000000000..11105589a49 --- /dev/null +++ b/packages/node_modules/ttl-set/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"ttl-set/index.js","sources":["webpack:///./fast-fifo/fixed-size.js","webpack:///./fast-fifo/index.js","webpack:///./ttl-set/index.js"],"sourcesContent":["module.exports = class FixedFIFO {\n constructor (hwm) {\n if (!(hwm > 0) || ((hwm - 1) & hwm) !== 0) throw new Error('Max size for a FixedFIFO should be a power of two')\n this.buffer = new Array(hwm)\n this.mask = hwm - 1\n this.top = 0\n this.btm = 0\n this.next = null\n }\n\n clear () {\n this.top = this.btm = 0\n this.next = null\n this.buffer.fill(undefined)\n }\n\n push (data) {\n if (this.buffer[this.top] !== undefined) return false\n this.buffer[this.top] = data\n this.top = (this.top + 1) & this.mask\n return true\n }\n\n shift () {\n const last = this.buffer[this.btm]\n if (last === undefined) return undefined\n this.buffer[this.btm] = undefined\n this.btm = (this.btm + 1) & this.mask\n return last\n }\n\n peek () {\n return this.buffer[this.btm]\n }\n\n isEmpty () {\n return this.buffer[this.btm] === undefined\n }\n}\n","const FixedFIFO = require('./fixed-size')\n\nmodule.exports = class FastFIFO {\n constructor (hwm) {\n this.hwm = hwm || 16\n this.head = new FixedFIFO(this.hwm)\n this.tail = this.head\n this.length = 0\n }\n\n clear () {\n this.head = this.tail\n this.head.clear()\n this.length = 0\n }\n\n push (val) {\n this.length++\n if (!this.head.push(val)) {\n const prev = this.head\n this.head = prev.next = new FixedFIFO(2 * this.head.buffer.length)\n this.head.push(val)\n }\n }\n\n shift () {\n if (this.length !== 0) this.length--\n const val = this.tail.shift()\n if (val === undefined && this.tail.next) {\n const next = this.tail.next\n this.tail.next = null\n this.tail = next\n return this.tail.shift()\n }\n\n return val\n }\n\n peek () {\n const val = this.tail.peek()\n if (val === undefined && this.tail.next) return this.tail.next.peek()\n return val\n }\n\n isEmpty () {\n return this.length === 0\n }\n}\n","'use strict'\n\nconst FIFO = require('fast-fifo')\n\nmodule.exports = class TTLSet {\n constructor (ttl) {\n this._ttl = ttl\n this._list = new FIFO()\n this._index = new Set()\n this._timer = null\n }\n\n add (value) {\n this._index.add(value)\n this._list.push([Date.now(), value])\n if (this._timer === null) {\n this._timer = setTimeout(this._prune.bind(this), this._ttl).unref()\n }\n }\n\n clear () {\n this._list.clear()\n this._index.clear()\n clearTimeout(this._timer)\n this._timer = null\n }\n\n has (value) {\n return this._index.has(value)\n }\n\n get size () {\n return this._index.size\n }\n\n _prune () {\n while (true) {\n const val = this._list.peek()\n if (val === undefined) {\n this._timer = null\n return\n }\n if (val[0] > Date.now() - this._ttl) break\n const evicted = this._list.shift()\n this._index.delete(evicted[1])\n }\n this._timer = setTimeout(this._prune.bind(this), Date.now() - this._list.peek()[0]).unref()\n }\n}\n"],"names":["Error","Array","t","Set","Date","setTimeout","clearTimeout"],"mappings":"qDAAA,EAAO,OAAO,CAAG,MACf,YAAa,CAAG,CAAE,CAChB,GAAI,CAAE,GAAM,IAAM,AAAC,CAAC,EAAM,EAAK,CAAE,GAAO,EAAG,MAAM,AAAIA,MAAM,oDAC3D,KAAI,CAAC,MAAM,CAAG,AAAIC,MAAM,GACxB,IAAI,CAAC,IAAI,CAAG,EAAM,EAClB,IAAI,CAAC,GAAG,CAAG,EACX,IAAI,CAAC,GAAG,CAAG,EACX,IAAI,CAAC,IAAI,CAAG,IACd,CAEA,OAAS,CACP,IAAI,CAAC,GAAG,CAAG,IAAI,CAAC,GAAG,CAAG,EACtB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AI,CAAC,MAAM,EACb,KAAI,CAAC,MAAM,CAAGC,WAAW,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,EAAG,IAAI,CAAC,IAAI,EAAE,KAAK,EAAC,CAEtE,CAEA,OAAS,CACP,IAAI,CAAC,KAAK,CAAC,KAAK,GAChB,IAAI,CAAC,MAAM,CAAC,KAAK,GACjBC,aAAa,IAAI,CAAC,MAAM,EACxB,IAAI,CAAC,MAAM,CAAG,IAChB,CAEA,IAAK,CAAK,CAAE,CACV,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,EACzB,CAEA,IAAI,MAAQ,CACV,OAAO,IAAI,CAAC,MAAM,CAAC,IAAI,AACzB,CAEA,QAAU,CACR,OAAa,CACX,IAAM,EAAM,IAAI,CAAC,KAAK,CAAC,IAAI,GAC3B,GAAI,AAAQ,SAAR,EAAmB,CACrB,IAAI,CAAC,MAAM,CAAG,KACd,MACF,CACA,GAAI,CAAG,CAAC,EAAE,CAAGF,KAAK,GAAG,GAAK,IAAI,CAAC,IAAI,CAAE,MACrC,IAAM,EAAU,IAAI,CAAC,KAAK,CAAC,KAAK,GAChC,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,CAAO,CAAC,EAAE,CAC/B,CACA,IAAI,CAAC,MAAM,CAAGC,WAAW,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,EAAGD,KAAK,GAAG,GAAK,IAAI,CAAC,KAAK,CAAC,IAAI,EAAE,CAAC,EAAE,EAAE,KAAK,EAC3F,CACF,C"} \ No newline at end of file diff --git a/vendor/package.json b/vendor/package.json index 1a04cbcef78..e96536043d7 100644 --- a/vendor/package.json +++ b/vendor/package.json @@ -4,6 +4,7 @@ "postinstall": "rspack" }, "dependencies": { + "@datadog/openfeature-node-server": "^0.2.0", "@datadog/sketches-js": "2.1.1", "@isaacs/ttlcache": "^2.0.1", "@opentelemetry/core": ">=1.14.0 <1.31.0", diff --git a/vendor/rspack.config.js b/vendor/rspack.config.js index 08e764bac42..2177b6c5207 100644 --- a/vendor/rspack.config.js +++ b/vendor/rspack.config.js @@ -8,7 +8,7 @@ // object or switch to our own internal loader and remove the dependency. // TODO: Vendor `dc-polyfill` and figure out why it fails the tests. -const { CopyRspackPlugin } = require('@rspack/core') +const { CopyRspackPlugin, SourceMapDevToolPlugin } = require('@rspack/core') const { LicenseWebpackPlugin } = require('license-webpack-plugin') const { join } = require('path') const { dependencies } = require('./package.json') @@ -28,7 +28,7 @@ module.exports = { entry: Object.fromEntries(include.difference(exclude).entries()), target: 'node', mode: 'production', - devtool: false, + devtool: 'hidden-source-map', context: join(__dirname, 'node_modules'), optimization: { checkIds: 'named', @@ -36,6 +36,7 @@ module.exports = { }, externals: { '@openfeature/core': '@openfeature/core', + '@openfeature/server-sdk': '@openfeature/server-sdk', '@opentelemetry/api': '@opentelemetry/api' }, plugins: [ diff --git a/vendor/yarn.lock b/vendor/yarn.lock index f7afbd04ea1..c3579e49a9f 100644 --- a/vendor/yarn.lock +++ b/vendor/yarn.lock @@ -2,6 +2,21 @@ # yarn lockfile v1 +"@datadog/flagging-core@0.2.0": + version "0.2.0" + resolved "https://registry.yarnpkg.com/@datadog/flagging-core/-/flagging-core-0.2.0.tgz#d29d81486068b870c41cebb2524721a71184eb16" + integrity sha512-DocYjr8NFJZfsnqzu3MuBUNqgbJquq1doimkKEXI5UImLmz/tR0LO09dd651pBhoz1Pa4SKcnPaxWFLTqxWtsA== + dependencies: + spark-md5 "^3.0.2" + +"@datadog/openfeature-node-server@^0.2.0": + version "0.2.0" + resolved "https://registry.yarnpkg.com/@datadog/openfeature-node-server/-/openfeature-node-server-0.2.0.tgz#905032cc6d7d1eb1d6620aabe323ed552366d65a" + integrity sha512-Jn8lShFyqNji0tiKntLcCRwu3xrhg93fTTJS3gHSPKMfBDBKxjB9uF8Hu5Ayn2k0QuwJexx5atN9GSiWX0h5qg== + dependencies: + "@datadog/flagging-core" "0.2.0" + "@openfeature/server-sdk" "~1.18.0" + "@datadog/sketches-js@2.1.1": version "2.1.1" resolved "https://registry.yarnpkg.com/@datadog/sketches-js/-/sketches-js-2.1.1.tgz#9ec2251b3c932b4f43e1d164461fa6cb6f28b7d0" @@ -151,6 +166,11 @@ "@emnapi/runtime" "^1.5.0" "@tybys/wasm-util" "^0.10.1" +"@openfeature/server-sdk@~1.18.0": + version "1.18.0" + resolved "https://registry.yarnpkg.com/@openfeature/server-sdk/-/server-sdk-1.18.0.tgz#5fed5f1d0900b2535878db18a78295bbaebb997b" + integrity sha512-uP8nqEGBS58s3iWXx6d8vnJ6ZVt3DACJL4PWADOAuwIS4xXpID91783e9f6zQ0i1ijQpj3yx+3ZuCB2LfQMUMA== + "@opentelemetry/core@1.30.1", "@opentelemetry/core@>=1.14.0 <1.31.0": version "1.30.1" resolved "https://registry.yarnpkg.com/@opentelemetry/core/-/core-1.30.1.tgz#a0b468bb396358df801881709ea38299fc30ab27" @@ -1745,6 +1765,11 @@ source-map@^0.7.4: resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.7.6.tgz#a3658ab87e5b6429c8a1f3ba0083d4c61ca3ef02" integrity sha512-i5uvt8C3ikiWeNZSVZNWcfZPItFQOsYTUAOkcUPGd8DqDy1uOUikjt5dG+uRlwyvR108Fb9DOd4GvXfT0N2/uQ== +spark-md5@^3.0.2: + version "3.0.2" + resolved "https://registry.yarnpkg.com/spark-md5/-/spark-md5-3.0.2.tgz#7952c4a30784347abcee73268e473b9c0167e3fc" + integrity sha512-wcFzz9cDfbuqe0FZzfi2or1sgyIrsDwmPwfZC4hiNidPdPINjeUwNfv5kldczoEAcjl9Y1L3SM7Uz2PUEQzxQw== + spdy-transport@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/spdy-transport/-/spdy-transport-3.0.0.tgz#00d4863a6400ad75df93361a1608605e5dcdcf31" diff --git a/yarn.lock b/yarn.lock index d0c24e8e49a..7ef12d34ce9 100644 --- a/yarn.lock +++ b/yarn.lock @@ -204,13 +204,6 @@ "@babel/helper-string-parser" "^7.27.1" "@babel/helper-validator-identifier" "^7.28.5" -"@datadog/flagging-core@0.2.0": - version "0.2.0" - resolved "https://registry.yarnpkg.com/@datadog/flagging-core/-/flagging-core-0.2.0.tgz#d29d81486068b870c41cebb2524721a71184eb16" - integrity sha512-DocYjr8NFJZfsnqzu3MuBUNqgbJquq1doimkKEXI5UImLmz/tR0LO09dd651pBhoz1Pa4SKcnPaxWFLTqxWtsA== - dependencies: - spark-md5 "^3.0.2" - "@datadog/libdatadog@0.7.0": version "0.7.0" resolved "https://registry.yarnpkg.com/@datadog/libdatadog/-/libdatadog-0.7.0.tgz#81e07d3040c628892db697ccd01ae3c4d2a76315" @@ -238,14 +231,6 @@ node-addon-api "^6.1.0" node-gyp-build "^3.9.0" -"@datadog/openfeature-node-server@^0.2.0": - version "0.2.0" - resolved "https://registry.yarnpkg.com/@datadog/openfeature-node-server/-/openfeature-node-server-0.2.0.tgz#905032cc6d7d1eb1d6620aabe323ed552366d65a" - integrity sha512-Jn8lShFyqNji0tiKntLcCRwu3xrhg93fTTJS3gHSPKMfBDBKxjB9uF8Hu5Ayn2k0QuwJexx5atN9GSiWX0h5qg== - dependencies: - "@datadog/flagging-core" "0.2.0" - "@openfeature/server-sdk" "~1.18.0" - "@datadog/pprof@5.12.0": version "5.12.0" resolved "https://registry.yarnpkg.com/@datadog/pprof/-/pprof-5.12.0.tgz#1f0a592aec5ea3a48ad795d069e8a925d21667db" @@ -672,16 +657,11 @@ "@octokit/request-error" "^7.0.0" "@octokit/webhooks-methods" "^6.0.0" -"@openfeature/core@^1.9.0": +"@openfeature/core@^1.8.1": version "1.9.1" resolved "https://registry.yarnpkg.com/@openfeature/core/-/core-1.9.1.tgz#9925a04ed0745e92dd7b3793b35cff1ed89d54c1" integrity sha512-YySPtH4s/rKKnHRU0xyFGrqMU8XA+OIPNWDrlEFxE6DCVWCIrxE5YpiB94YD2jMFn6SSdA0cwQ8vLkCkl8lm8A== -"@openfeature/server-sdk@~1.18.0": - version "1.18.0" - resolved "https://registry.yarnpkg.com/@openfeature/server-sdk/-/server-sdk-1.18.0.tgz#5fed5f1d0900b2535878db18a78295bbaebb997b" - integrity sha512-uP8nqEGBS58s3iWXx6d8vnJ6ZVt3DACJL4PWADOAuwIS4xXpID91783e9f6zQ0i1ijQpj3yx+3ZuCB2LfQMUMA== - "@openfeature/server-sdk@~1.20.0": version "1.20.0" resolved "https://registry.yarnpkg.com/@openfeature/server-sdk/-/server-sdk-1.20.0.tgz#43a5d3cffd915742ff64eeef53b7132279df4823" @@ -4363,11 +4343,6 @@ source-map@^0.7.4: resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.7.6.tgz#a3658ab87e5b6429c8a1f3ba0083d4c61ca3ef02" integrity sha512-i5uvt8C3ikiWeNZSVZNWcfZPItFQOsYTUAOkcUPGd8DqDy1uOUikjt5dG+uRlwyvR108Fb9DOd4GvXfT0N2/uQ== -spark-md5@^3.0.2: - version "3.0.2" - resolved "https://registry.yarnpkg.com/spark-md5/-/spark-md5-3.0.2.tgz#7952c4a30784347abcee73268e473b9c0167e3fc" - integrity sha512-wcFzz9cDfbuqe0FZzfi2or1sgyIrsDwmPwfZC4hiNidPdPINjeUwNfv5kldczoEAcjl9Y1L3SM7Uz2PUEQzxQw== - spawn-wrap@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/spawn-wrap/-/spawn-wrap-2.0.0.tgz#103685b8b8f9b79771318827aa78650a610d457e" From c1bdbc5fb5b2c98056a7a97d2d2f69ddd9afabaf Mon Sep 17 00:00:00 2001 From: rochdev Date: Fri, 5 Dec 2025 14:48:37 -0500 Subject: [PATCH 73/95] fix 3rd-party license --- LICENSE-3rdparty.csv | 1 + 1 file changed, 1 insertion(+) diff --git a/LICENSE-3rdparty.csv b/LICENSE-3rdparty.csv index f93cfaff60d..c7d556e43c3 100644 --- a/LICENSE-3rdparty.csv +++ b/LICENSE-3rdparty.csv @@ -11,6 +11,7 @@ "@isaacs/ttlcache","https://github.com/isaacs/ttlcache","['BlueOak-1.0.0']","['Isaac Z. Schlueter']" "@jsep-plugin/assignment","https://github.com/EricSmekens/jsep","['MIT']","['Shelly']" "@jsep-plugin/regex","https://github.com/EricSmekens/jsep","['MIT']","['Shelly']" +"@openfeature/core","https://github.com/open-feature/js-sdk","['Apache-2.0']","['open-feature']" "@openfeature/server-sdk","https://github.com/open-feature/js-sdk","['Apache-2.0']","['open-feature']" "@opentelemetry/api","https://github.com/open-telemetry/opentelemetry-js","['Apache-2.0']","['OpenTelemetry Authors']" "@opentelemetry/api-logs","https://github.com/open-telemetry/opentelemetry-js","['Apache-2.0']","['OpenTelemetry Authors']" From b294059e12aa07e76e9adcbabc132b911fa4c091 Mon Sep 17 00:00:00 2001 From: rochdev Date: Fri, 5 Dec 2025 14:53:58 -0500 Subject: [PATCH 74/95] include types in package --- package.json | 1 + 1 file changed, 1 insertion(+) diff --git a/package.json b/package.json index acea7181305..8ae58a39b17 100644 --- a/package.json +++ b/package.json @@ -116,6 +116,7 @@ "packages/*/lib/**/*", "packages/*/src/**/*", "packages/node_modules/**/*.js", + "packages/node_modules/**/*.ts", "packages/node_modules/**/LICENSE", "packages/datadog-instrumentations/orchestrion.yml", "README.md", From 58c597af8199e94ed35fa768da6c08bd4b600539 Mon Sep 17 00:00:00 2001 From: rochdev Date: Fri, 5 Dec 2025 14:55:16 -0500 Subject: [PATCH 75/95] include wasm in package --- package.json | 1 + 1 file changed, 1 insertion(+) diff --git a/package.json b/package.json index 8ae58a39b17..7c004cd0678 100644 --- a/package.json +++ b/package.json @@ -117,6 +117,7 @@ "packages/*/src/**/*", "packages/node_modules/**/*.js", "packages/node_modules/**/*.ts", + "packages/node_modules/**/*.wasm", "packages/node_modules/**/LICENSE", "packages/datadog-instrumentations/orchestrion.yml", "README.md", From 6d8139f998ee72e8aab8dbfe0ad0b72540067443 Mon Sep 17 00:00:00 2001 From: rochdev Date: Fri, 5 Dec 2025 15:00:41 -0500 Subject: [PATCH 76/95] code cleanup --- vendor/rspack.config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vendor/rspack.config.js b/vendor/rspack.config.js index 2177b6c5207..dce560c5be9 100644 --- a/vendor/rspack.config.js +++ b/vendor/rspack.config.js @@ -8,7 +8,7 @@ // object or switch to our own internal loader and remove the dependency. // TODO: Vendor `dc-polyfill` and figure out why it fails the tests. -const { CopyRspackPlugin, SourceMapDevToolPlugin } = require('@rspack/core') +const { CopyRspackPlugin } = require('@rspack/core') const { LicenseWebpackPlugin } = require('license-webpack-plugin') const { join } = require('path') const { dependencies } = require('./package.json') From df54919c10bd3cf94a4a2248eddeeaf734ed1e6f Mon Sep 17 00:00:00 2001 From: rochdev Date: Tue, 9 Dec 2025 10:31:29 -0500 Subject: [PATCH 77/95] add comments --- vendor/rspack.config.js | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/vendor/rspack.config.js b/vendor/rspack.config.js index dce560c5be9..09b5981cd88 100644 --- a/vendor/rspack.config.js +++ b/vendor/rspack.config.js @@ -17,7 +17,7 @@ const include = new Set([ ...Object.keys(dependencies), 'mutexify/promise', 'protobufjs/minimal', // peer dependency for `@datadog/sketches-js` - 'source-map/lib/util' + 'source-map/lib/util' // TODO: remove usage of dependency internals ]) const exclude = new Set([ @@ -28,12 +28,20 @@ module.exports = { entry: Object.fromEntries(include.difference(exclude).entries()), target: 'node', mode: 'production', + // Using `hidden` removes the URL comment from source files since we don't + // publish the maps that the comments would be referencing. Since the maps + // have the same filename as the source files this doesn't matter anyway. devtool: 'hidden-source-map', context: join(__dirname, 'node_modules'), optimization: { + // Here we used `named` instead of the default of `deterministic` since the + // default is only deterministic with the same dependencies, but when a + // dependency is added it would change the IDs of other ones resulting in + // unnecessary noise. checkIds: 'named', moduleIds: 'named', }, + // These are shared between dd-trace and users, so they need to be external. externals: { '@openfeature/core': '@openfeature/core', '@openfeature/server-sdk': '@openfeature/server-sdk', @@ -50,11 +58,14 @@ module.exports = { }), new CopyRspackPlugin({ patterns: [ + // The OpenTracing types are exposed in the public API of dd-trace so + // they need to be available in the package. { from: '**/*.d.ts', context: join(__dirname, 'node_modules', 'opentracing', 'lib'), to: 'opentracing' }, + // Binaries need to be copied manually. { from: 'source-map/lib/mappings.wasm', to: 'source-map' From d55599893c72f3ae370719b975774134ade611af Mon Sep 17 00:00:00 2001 From: rochdev Date: Tue, 9 Dec 2025 10:37:31 -0500 Subject: [PATCH 78/95] add more comments --- .github/workflows/platform.yml | 1 + .github/workflows/project.yml | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/.github/workflows/platform.yml b/.github/workflows/platform.yml index 8eccc9a98b4..4fca4214403 100644 --- a/.github/workflows/platform.yml +++ b/.github/workflows/platform.yml @@ -65,6 +65,7 @@ jobs: steps: - uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0 - uses: ./.github/actions/node/active-lts + # Running `yarn` also automatically runs `rspack` as a postinstall script. - run: yarn --frozen-lockfile working-directory: vendor # Licenses are pulled from internet and not deterministic so revert them. diff --git a/.github/workflows/project.yml b/.github/workflows/project.yml index c6ebb5bce89..a3c53dd42ce 100644 --- a/.github/workflows/project.yml +++ b/.github/workflows/project.yml @@ -51,6 +51,10 @@ jobs: - uses: ./.github/actions/install - run: npm run lint + # The package size is especially useful in constrained environments, so the + # computation is done only on the package that would be installed there. + # In order to do that, the current folder is wiped and replaced with what + # would be installed is those environments before running the computation. package-size-report: runs-on: ubuntu-latest permissions: From 3a5b6d76994ccf5f31e6472528ff00b4ec8be0b8 Mon Sep 17 00:00:00 2001 From: rochdev Date: Tue, 9 Dec 2025 10:42:16 -0500 Subject: [PATCH 79/95] switch dependabot automation to pull request trigger --- .github/chainguard/dependabot-automation.sts.yaml | 2 +- .github/workflows/dependabot-automation.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/chainguard/dependabot-automation.sts.yaml b/.github/chainguard/dependabot-automation.sts.yaml index 619d5ad3ad8..107ec3ee508 100644 --- a/.github/chainguard/dependabot-automation.sts.yaml +++ b/.github/chainguard/dependabot-automation.sts.yaml @@ -3,7 +3,7 @@ issuer: https://token.actions.githubusercontent.com subject: repo:DataDog/dd-trace-js:pull_request claim_pattern: - event_name: pull_request_target + event_name: pull_request ref: refs/heads/master ref_protected: "true" job_workflow_ref: DataDog/dd-trace-js/.github/workflows/dependabot-automation.yml@refs/heads/master diff --git a/.github/workflows/dependabot-automation.yml b/.github/workflows/dependabot-automation.yml index 2efb5242a78..220977775ee 100644 --- a/.github/workflows/dependabot-automation.yml +++ b/.github/workflows/dependabot-automation.yml @@ -1,7 +1,7 @@ name: 'Dependabot Automation' on: - pull_request_target: + pull_request: types: - opened From f0fe3867918d0b36885e82901384c2ed08072f04 Mon Sep 17 00:00:00 2001 From: rochdev Date: Tue, 9 Dec 2025 14:14:50 -0500 Subject: [PATCH 80/95] stricter eslint rules --- eslint.config.mjs | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/eslint.config.mjs b/eslint.config.mjs index 505f824bdc0..2a670689c33 100644 --- a/eslint.config.mjs +++ b/eslint.config.mjs @@ -7,12 +7,15 @@ import eslintPluginMocha from 'eslint-plugin-mocha' import eslintPluginN from 'eslint-plugin-n' import eslintPluginPromise from 'eslint-plugin-promise' import eslintPluginUnicorn from 'eslint-plugin-unicorn' +import { readFileSync } from 'fs' import globals from 'globals' import eslintProcessEnv from './eslint-rules/eslint-process-env.mjs' import eslintEnvAliases from './eslint-rules/eslint-env-aliases.mjs' import eslintSafeTypeOfObject from './eslint-rules/eslint-safe-typeof-object.mjs' +const { dependencies } = JSON.parse(readFileSync('./vendor/package.json', 'utf8')) + const SRC_FILES = [ '*.js', '*.mjs', @@ -355,8 +358,12 @@ export default [ dynamicImports: 'always-multiline' }], 'import/no-extraneous-dependencies': 'error', - 'n/no-extraneous-require': 'off', - 'n/no-unpublished-require': 'off', + 'n/no-extraneous-require': ['error', { + allowModules: Object.keys(dependencies) + }], + 'n/no-unpublished-require': ['error', { + allowModules: Object.keys(dependencies) + }], 'n/no-restricted-require': ['error', ['diagnostics_channel']], 'n/hashbang': 'off', // TODO: Enable this rule once we have a plan to address it 'n/no-process-exit': 'off', // TODO: Enable this rule once we have a plan to address it @@ -584,6 +591,13 @@ export default [ 'mocha/no-sibling-hooks': 'off', 'mocha/no-top-level-hooks': 'off', 'n/handle-callback-err': 'off', + 'n/no-extraneous-require': ['error', { + allowModules: [ + ...Object.keys(dependencies), + 'mocha', + 'chai' + ] + }], 'n/no-missing-require': 'off', 'require-await': 'off' } From d314eebef8e0478bb44c8e5564e12552e9dbbed3 Mon Sep 17 00:00:00 2001 From: rochdev Date: Tue, 9 Dec 2025 14:34:18 -0500 Subject: [PATCH 81/95] code cleanup --- integration-tests/playwright/playwright.spec.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/integration-tests/playwright/playwright.spec.js b/integration-tests/playwright/playwright.spec.js index 17a0b2b129e..5c1befc9e89 100644 --- a/integration-tests/playwright/playwright.spec.js +++ b/integration-tests/playwright/playwright.spec.js @@ -297,8 +297,6 @@ versions.forEach((version) => { stdio: 'inherit' } ) - childProcess.stdout.pipe(process.stdout) - childProcess.stderr.pipe(process.stderr) childProcess.stdout.on('data', chunk => { testOutput += chunk.toString() }) From 045ced61c14806ddf37f2d0d8cc8e0f25797fb58 Mon Sep 17 00:00:00 2001 From: rochdev Date: Tue, 9 Dec 2025 14:38:52 -0500 Subject: [PATCH 82/95] move openfeature-node-server back to dependencies --- package.json | 5 +- .../@datadog/openfeature-node-server/LICENSE | 201 ------------------ .../@datadog/openfeature-node-server/index.js | 1 - .../openfeature-node-server/index.js.map | 1 - vendor/package.json | 1 - vendor/yarn.lock | 25 --- yarn.lock | 25 +++ 7 files changed, 28 insertions(+), 231 deletions(-) delete mode 100644 packages/node_modules/@datadog/openfeature-node-server/LICENSE delete mode 100644 packages/node_modules/@datadog/openfeature-node-server/index.js delete mode 100644 packages/node_modules/@datadog/openfeature-node-server/index.js.map diff --git a/package.json b/package.json index 7c004cd0678..73c5ae9901a 100644 --- a/package.json +++ b/package.json @@ -134,10 +134,9 @@ "@datadog/native-appsec": "10.3.0", "@datadog/native-iast-taint-tracking": "4.1.0", "@datadog/native-metrics": "3.1.1", + "@datadog/openfeature-node-server": "^0.2.0", "@datadog/pprof": "5.12.0", "@datadog/wasm-js-rewriter": "5.0.1", - "@openfeature/core": "^1.8.1", - "@openfeature/server-sdk": "~1.20.0", "@opentelemetry/api": ">=1.0.0 <1.10.0", "@opentelemetry/api-logs": "<1.0.0" }, @@ -146,6 +145,8 @@ "@eslint/eslintrc": "^3.3.1", "@eslint/js": "^9.39.0", "@msgpack/msgpack": "^3.1.2", + "@openfeature/core": "^1.8.1", + "@openfeature/server-sdk": "~1.20.0", "@stylistic/eslint-plugin": "^5.5.0", "@types/chai": "^4.3.16", "@types/mocha": "^10.0.10", diff --git a/packages/node_modules/@datadog/openfeature-node-server/LICENSE b/packages/node_modules/@datadog/openfeature-node-server/LICENSE deleted file mode 100644 index 4a0027eec4e..00000000000 --- a/packages/node_modules/@datadog/openfeature-node-server/LICENSE +++ /dev/null @@ -1,201 +0,0 @@ - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "[]" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright 2025 Datadog, Inc. - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. diff --git a/packages/node_modules/@datadog/openfeature-node-server/index.js b/packages/node_modules/@datadog/openfeature-node-server/index.js deleted file mode 100644 index 3dd941155a0..00000000000 --- a/packages/node_modules/@datadog/openfeature-node-server/index.js +++ /dev/null @@ -1 +0,0 @@ -(()=>{var e={"./spark-md5/spark-md5.js":function(e){e.exports=function(e){"use strict";var t=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"];function r(e,t){var r=e[0],n=e[1],a=e[2],i=e[3];r+=(n&a|~n&i)+t[0]-0x28955b88|0,i+=((r=(r<<7|r>>>25)+n|0)&n|~r&a)+t[1]-0x173848aa|0,a+=((i=(i<<12|i>>>20)+r|0)&r|~i&n)+t[2]+0x242070db|0,n+=((a=(a<<17|a>>>15)+i|0)&i|~a&r)+t[3]-0x3e423112|0,r+=((n=(n<<22|n>>>10)+a|0)&a|~n&i)+t[4]-0xa83f051|0,i+=((r=(r<<7|r>>>25)+n|0)&n|~r&a)+t[5]+0x4787c62a|0,a+=((i=(i<<12|i>>>20)+r|0)&r|~i&n)+t[6]-0x57cfb9ed|0,n+=((a=(a<<17|a>>>15)+i|0)&i|~a&r)+t[7]-0x2b96aff|0,r+=((n=(n<<22|n>>>10)+a|0)&a|~n&i)+t[8]+0x698098d8|0,i+=((r=(r<<7|r>>>25)+n|0)&n|~r&a)+t[9]-0x74bb0851|0,a+=((i=(i<<12|i>>>20)+r|0)&r|~i&n)+t[10]-42063|0,n+=((a=(a<<17|a>>>15)+i|0)&i|~a&r)+t[11]-0x76a32842|0,r+=((n=(n<<22|n>>>10)+a|0)&a|~n&i)+t[12]+0x6b901122|0,i+=((r=(r<<7|r>>>25)+n|0)&n|~r&a)+t[13]-0x2678e6d|0,a+=((i=(i<<12|i>>>20)+r|0)&r|~i&n)+t[14]-0x5986bc72|0,n+=((a=(a<<17|a>>>15)+i|0)&i|~a&r)+t[15]+0x49b40821|0,r+=((n=(n<<22|n>>>10)+a|0)&i|a&~i)+t[1]-0x9e1da9e|0,i+=((r=(r<<5|r>>>27)+n|0)&a|n&~a)+t[6]-0x3fbf4cc0|0,a+=((i=(i<<9|i>>>23)+r|0)&n|r&~n)+t[11]+0x265e5a51|0,n+=((a=(a<<14|a>>>18)+i|0)&r|i&~r)+t[0]-0x16493856|0,r+=((n=(n<<20|n>>>12)+a|0)&i|a&~i)+t[5]-0x29d0efa3|0,i+=((r=(r<<5|r>>>27)+n|0)&a|n&~a)+t[10]+0x2441453|0,a+=((i=(i<<9|i>>>23)+r|0)&n|r&~n)+t[15]-0x275e197f|0,n+=((a=(a<<14|a>>>18)+i|0)&r|i&~r)+t[4]-0x182c0438|0,r+=((n=(n<<20|n>>>12)+a|0)&i|a&~i)+t[9]+0x21e1cde6|0,i+=((r=(r<<5|r>>>27)+n|0)&a|n&~a)+t[14]-0x3cc8f82a|0,a+=((i=(i<<9|i>>>23)+r|0)&n|r&~n)+t[3]-0xb2af279|0,n+=((a=(a<<14|a>>>18)+i|0)&r|i&~r)+t[8]+0x455a14ed|0,r+=((n=(n<<20|n>>>12)+a|0)&i|a&~i)+t[13]-0x561c16fb|0,i+=((r=(r<<5|r>>>27)+n|0)&a|n&~a)+t[2]-0x3105c08|0,a+=((i=(i<<9|i>>>23)+r|0)&n|r&~n)+t[7]+0x676f02d9|0,n+=((a=(a<<14|a>>>18)+i|0)&r|i&~r)+t[12]-0x72d5b376|0,r+=((n=(n<<20|n>>>12)+a|0)^a^i)+t[5]-378558|0,i+=((r=(r<<4|r>>>28)+n|0)^n^a)+t[8]-0x788e097f|0,a+=((i=(i<<11|i>>>21)+r|0)^r^n)+t[11]+0x6d9d6122|0,n+=((a=(a<<16|a>>>16)+i|0)^i^r)+t[14]-0x21ac7f4|0,r+=((n=(n<<23|n>>>9)+a|0)^a^i)+t[1]-0x5b4115bc|0,i+=((r=(r<<4|r>>>28)+n|0)^n^a)+t[4]+0x4bdecfa9|0,a+=((i=(i<<11|i>>>21)+r|0)^r^n)+t[7]-0x944b4a0|0,n+=((a=(a<<16|a>>>16)+i|0)^i^r)+t[10]-0x41404390|0,r+=((n=(n<<23|n>>>9)+a|0)^a^i)+t[13]+0x289b7ec6|0,i+=((r=(r<<4|r>>>28)+n|0)^n^a)+t[0]-0x155ed806|0,a+=((i=(i<<11|i>>>21)+r|0)^r^n)+t[3]-0x2b10cf7b|0,n+=((a=(a<<16|a>>>16)+i|0)^i^r)+t[6]+0x4881d05|0,r+=((n=(n<<23|n>>>9)+a|0)^a^i)+t[9]-0x262b2fc7|0,i+=((r=(r<<4|r>>>28)+n|0)^n^a)+t[12]-0x1924661b|0,a+=((i=(i<<11|i>>>21)+r|0)^r^n)+t[15]+0x1fa27cf8|0,n+=((a=(a<<16|a>>>16)+i|0)^i^r)+t[2]-0x3b53a99b|0,n=(n<<23|n>>>9)+a|0,r+=(a^(n|~i))+t[0]-0xbd6ddbc|0,r=(r<<6|r>>>26)+n|0,i+=(n^(r|~a))+t[7]+0x432aff97|0,i=(i<<10|i>>>22)+r|0,a+=(r^(i|~n))+t[14]-0x546bdc59|0,a=(a<<15|a>>>17)+i|0,n+=(i^(a|~r))+t[5]-0x36c5fc7|0,n=(n<<21|n>>>11)+a|0,r+=(a^(n|~i))+t[12]+0x655b59c3|0,r=(r<<6|r>>>26)+n|0,i+=(n^(r|~a))+t[3]-0x70f3336e|0,i=(i<<10|i>>>22)+r|0,a+=(r^(i|~n))+t[10]-1051523|0,a=(a<<15|a>>>17)+i|0,n+=(i^(a|~r))+t[1]-0x7a7ba22f|0,n=(n<<21|n>>>11)+a|0,r+=(a^(n|~i))+t[8]+0x6fa87e4f|0,r=(r<<6|r>>>26)+n|0,i+=(n^(r|~a))+t[15]-0x1d31920|0,i=(i<<10|i>>>22)+r|0,a+=(r^(i|~n))+t[6]-0x5cfebcec|0,a=(a<<15|a>>>17)+i|0,n+=(i^(a|~r))+t[13]+0x4e0811a1|0,n=(n<<21|n>>>11)+a|0,r+=(a^(n|~i))+t[4]-0x8ac817e|0,r=(r<<6|r>>>26)+n|0,i+=(n^(r|~a))+t[11]-0x42c50dcb|0,i=(i<<10|i>>>22)+r|0,a+=(r^(i|~n))+t[2]+0x2ad7d2bb|0,a=(a<<15|a>>>17)+i|0,n+=(i^(a|~r))+t[9]-0x14792c6f|0,n=(n<<21|n>>>11)+a|0,e[0]=r+e[0]|0,e[1]=n+e[1]|0,e[2]=a+e[2]|0,e[3]=i+e[3]|0}function n(e){var t,r=[];for(t=0;t<64;t+=4)r[t>>2]=e.charCodeAt(t)+(e.charCodeAt(t+1)<<8)+(e.charCodeAt(t+2)<<16)+(e.charCodeAt(t+3)<<24);return r}function a(e){var t,r=[];for(t=0;t<64;t+=4)r[t>>2]=e[t]+(e[t+1]<<8)+(e[t+2]<<16)+(e[t+3]<<24);return r}function i(e){var t,a,i,s,o,u,l=e.length,h=[0x67452301,-0x10325477,-0x67452302,0x10325476];for(t=64;t<=l;t+=64)r(h,n(e.substring(t-64,t)));for(a=(e=e.substring(t-64)).length,i=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],t=0;t>2]|=e.charCodeAt(t)<<(t%4<<3);if(i[t>>2]|=128<<(t%4<<3),t>55)for(r(h,i),t=0;t<16;t+=1)i[t]=0;return o=parseInt((s=(s=8*l).toString(16).match(/(.*?)(.{0,8})$/))[2],16),u=parseInt(s[1],16)||0,i[14]=o,i[15]=u,r(h,i),h}function s(e){var r;for(r=0;r>8*r+4&15]+t[e>>8*r&15];return n}(e[r]);return e.join("")}function o(e){return/[\u0080-\uFFFF]/.test(e)&&(e=unescape(encodeURIComponent(e))),e}function u(e){var t,r=[],n=e.length;for(t=0;tl)?new ArrayBuffer(0):(i=new Uint8Array(a=new ArrayBuffer(n=l-u)),s=new Uint8Array(this,u,n),i.set(s),a)}}(),l.prototype.append=function(e){return this.appendBinary(o(e)),this},l.prototype.appendBinary=function(e){this._buff+=e,this._length+=e.length;var t,a=this._buff.length;for(t=64;t<=a;t+=64)r(this._hash,n(this._buff.substring(t-64,t)));return this._buff=this._buff.substring(t-64),this},l.prototype.end=function(e){var t,r,n=this._buff,a=n.length,i=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(t=0;t>2]|=n.charCodeAt(t)<<(t%4<<3);return this._finish(i,a),r=s(this._hash),e&&(r=u(r)),this.reset(),r},l.prototype.reset=function(){return this._buff="",this._length=0,this._hash=[0x67452301,-0x10325477,-0x67452302,0x10325476],this},l.prototype.getState=function(){return{buff:this._buff,length:this._length,hash:this._hash.slice()}},l.prototype.setState=function(e){return this._buff=e.buff,this._length=e.length,this._hash=e.hash,this},l.prototype.destroy=function(){delete this._hash,delete this._buff,delete this._length},l.prototype._finish=function(e,t){var n,a,i,s=t;if(e[s>>2]|=128<<(s%4<<3),s>55)for(r(this._hash,e),s=0;s<16;s+=1)e[s]=0;a=parseInt((n=(n=8*this._length).toString(16).match(/(.*?)(.{0,8})$/))[2],16),i=parseInt(n[1],16)||0,e[14]=a,e[15]=i,r(this._hash,e)},l.hash=function(e,t){return l.hashBinary(o(e),t)},l.hashBinary=function(e,t){var r=s(i(e));return t?u(r):r},l.ArrayBuffer=function(){this.reset()},l.ArrayBuffer.prototype.append=function(e){var t,n,i,s=(t=this._buff.buffer,(n=new Uint8Array(t.byteLength+e.byteLength)).set(new Uint8Array(t)),n.set(new Uint8Array(e),t.byteLength),n),o=s.length;for(this._length+=e.byteLength,i=64;i<=o;i+=64)r(this._hash,a(s.subarray(i-64,i)));return this._buff=new Uint8Array(i-64>2]|=n[t]<<(t%4<<3);return this._finish(i,a),r=s(this._hash),e&&(r=u(r)),this.reset(),r},l.ArrayBuffer.prototype.reset=function(){return this._buff=new Uint8Array(0),this._length=0,this._hash=[0x67452301,-0x10325477,-0x67452302,0x10325476],this},l.ArrayBuffer.prototype.getState=function(){var e,t=l.prototype.getState.call(this);return e=t.buff,t.buff=String.fromCharCode.apply(null,new Uint8Array(e)),t},l.ArrayBuffer.prototype.setState=function(e){return e.buff=function(e,t){var r,n=e.length,a=new ArrayBuffer(n),i=new Uint8Array(a);for(r=0;r>2]|=e[t]<<(t%4<<3);if(i[t>>2]|=128<<(t%4<<3),t>55)for(r(h,i),t=0;t<16;t+=1)i[t]=0;return o=parseInt((s=(s=8*l).toString(16).match(/(.*?)(.{0,8})$/))[2],16),u=parseInt(s[1],16)||0,i[14]=o,i[15]=u,r(h,i),h}(new Uint8Array(e)));return t?u(n):n},l}()}},t={};function r(n){var a=t[n];if(void 0!==a)return a.exports;var i=t[n]={exports:{}};return e[n](i,i.exports,r),i.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};(()=>{"use strict";r.r(n),r.d(n,{DatadogNodeServerProvider:()=>v});var e,t,a=r("./spark-md5/spark-md5.js"),i=r.n(a);function s(e,t=""){return new(i())().append(t).append(e).end()}function o(e){return s(JSON.stringify({flag:{key:e.flag.key},subject:{id:e.subject.id,attributes:e.subject.attributes}}))}function u(e){return s(JSON.stringify(e))}class l{constructor(e){this.delegate=e}init(){return Promise.resolve()}has(e){return this.get(e)===u(e)}get(e){return this.delegate.get(o(e))}set(e){this.delegate.set(o(e),u(e))}entries(){return this.delegate.entries()}clear(){this.delegate.clear()}}class h{constructor(e){this.capacity=e,this.cache=new Map,this.size=this.cache.size}[(Symbol.toStringTag,Symbol.iterator)](){return this.cache[Symbol.iterator]()}forEach(e){this.cache.forEach(e)}entries(){return this.cache.entries()}clear(){this.cache.clear()}delete(e){return this.cache.delete(e)}keys(){return this.cache.keys()}values(){return this.cache.values()}has(e){return this.cache.has(e)}get(e){if(!this.has(e))return;let t=this.cache.get(e);return void 0!==t&&(this.delete(e),this.cache.set(e,t)),t}set(e,t){if(0===this.capacity)return this;if(this.cache.has(e))this.cache.delete(e);else if(this.cache.size>=this.capacity){let e=this.cache.keys().next().value;e&&this.delete(e)}return this.cache.set(e,t),this}}class f extends l{constructor(e){super(new h(e))}}let c=require("@openfeature/server-sdk");(e=t||(t={})).MATCHES="MATCHES",e.NOT_MATCHES="NOT_MATCHES",e.GTE="GTE",e.GT="GT",e.LTE="LTE",e.LT="LT",e.ONE_OF="ONE_OF",e.NOT_ONE_OF="NOT_ONE_OF",e.IS_NULL="IS_NULL";class d{}class g extends d{getShard(e,t){return parseInt(s(e).slice(0,8),16)%t}}function y(e,r,n,a,i,s){if(!e)return{value:a,reason:"ERROR",errorCode:c.ErrorCode.PROVIDER_NOT_READY};let{targetingKey:o,...u}=i;if(!o)return{value:a,reason:"ERROR",errorCode:c.ErrorCode.TARGETING_KEY_MISSING};let l={id:o,...u};try{return function(e,r,n,a,i,s){if(!(null==e?void 0:e.enabled))return s.debug("returning default assignment because flag is disabled",{flagKey:e?e.key:"undefined",subjectKey:n}),{value:i,reason:c.StandardResolutionReasons.DISABLED};if(!function(e,t){if("boolean"===e)return"BOOLEAN"===t;if("string"===e)return"STRING"===t;if("number"===e)return"INTEGER"===t||"NUMERIC"===t;if("object"===e)return"JSON"===t;throw Error(`Invalid expected type: ${e}`)}(r,e.variationType))return s.debug("variant value type mismatch, returning default value",{flagKey:e.key,subjectKey:n,expectedType:r,variantType:e.variationType}),{value:i,reason:c.StandardResolutionReasons.ERROR,errorCode:c.ErrorCode.TYPE_MISMATCH};let o=new Date;for(let r of e.allocations){if(r.startAt&&o=new Date(r.endAt)){s.debug("allocation after end date",{flagKey:e.key,subjectKey:n,allocationKey:r.key,endAt:r.endAt});continue}if(!function(e,r,n){return null==e||!e.length||(n.debug("evaluating rules",{rules:JSON.stringify(e),subjectAttributes:r}),e.some(e=>!(function(e,r){return r.map(r=>(function(e,r){var n,a,i;let s=e[r.attribute];if(r.operator===t.IS_NULL)return r.value?null==s:null!=s;if(null!=s)switch(r.operator){case t.GTE:case t.GT:case t.LTE:case t.LT:return n=s,a=r.value,((e,n)=>r.operator===t.GTE?e>=n:r.operator===t.GT?e>n:r.operator===t.LTE?e<=n:e{let i=function(e,t,r){var n,a;let i=new g().getShard((n=e.salt,a=t,`${n}-${a}`),e.totalShards);return e.ranges.some(e=>{var t,r;return t=i,(r=e).start<=t&&t{this.resolve=()=>{this.cleanup(),e()},this.reject=e=>{this.cleanup(),t(e)}}),new Promise(()=>{this.timeoutId=setTimeout(()=>{t()},e)})])}async wait(){try{await this.promise}finally{this.cleanup()}}complete(){this.resolve&&this.resolve()}fail(e){this.reject&&this.reject(e)}isInitializing(){return void 0!==this.resolve}cleanup(){this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=void 0),this.resolve=void 0,this.reject=void 0}}class v{constructor(e){this.options=e,this.metadata={name:"datadog-node-server"},this.runsOn="server",this.hooks=[],this.events=new c.OpenFeatureEventEmitter,this.exposureCache=new f(5e4)}getConfiguration(){return this.configuration}setConfiguration(e){var t,r,n;let a=null==(t=this.configuration)?void 0:t.createdAt,i=!!this.configuration;if(i&&this.configuration!==e){this.events.emit(c.ProviderEvents.ConfigurationChanged),a!==(null==e?void 0:e.createdAt)&&(null==(r=this.exposureCache)||r.clear()),this.configuration=e;return}this.configuration=e,(null==(n=this.initController)?void 0:n.isInitializing())?this.initController.complete():i||this.events.emit(c.ProviderEvents.Ready)}setError(e){var t;(null==(t=this.initController)?void 0:t.isInitializing())?this.initController.fail(e):this.events.emit(c.ProviderEvents.Error,{error:e})}async initialize(){var e,t;if(this.configuration)return;let r=null!=(e=this.options.initializationTimeoutMs)?e:3e4;this.initController=new p(r,()=>this.setError(Error(`Initialization timeout after ${r}ms`))),await this.initController.wait(),await (null==(t=this.exposureCache)?void 0:t.init())}async resolveBooleanEvaluation(e,t,r,n){let a=y(this.configuration,"boolean",e,t,r,n);return this.handleExposure(e,r,a),a}async resolveStringEvaluation(e,t,r,n){let a=y(this.configuration,"string",e,t,r,n);return this.handleExposure(e,r,a),a}async resolveNumberEvaluation(e,t,r,n){let a=y(this.configuration,"number",e,t,r,n);return this.handleExposure(e,r,a),a}async resolveObjectEvaluation(e,t,r,n){let a=y(this.configuration,"object",e,t,r,n);return this.handleExposure(e,r,a),a}handleExposure(e,t,r){var n,a,i;let s=Date.now(),o=function(e,t){var r,n;if(!(null==(r=t.flagMetadata)?void 0:r.doLog))return;let a=null==(n=t.flagMetadata)?void 0:n.allocationKey,i=t.variant;if(!a||!i)return;let{targetingKey:s="",...o}=e;return{allocation:{key:a},flag:{key:t.flagKey},variant:{key:i},subject:{id:s,attributes:o}}}(t,{...r,flagKey:e,flagMetadata:null!=(n=r.flagMetadata)?n:{}});!o||(null==(a=this.exposureCache)?void 0:a.has(o))||this.options.exposureChannel.hasSubscribers&&(this.options.exposureChannel.publish({...o,timestamp:s}),null==(i=this.exposureCache)||i.set(o))}}})(),module.exports=n})(); \ No newline at end of file diff --git a/packages/node_modules/@datadog/openfeature-node-server/index.js.map b/packages/node_modules/@datadog/openfeature-node-server/index.js.map deleted file mode 100644 index 3515d535486..00000000000 --- a/packages/node_modules/@datadog/openfeature-node-server/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"@datadog/openfeature-node-server/index.js","sources":["webpack:///./spark-md5/spark-md5.js","webpack:///webpack/runtime/compat_get_default_export","webpack:///webpack/runtime/define_property_getters","webpack:///webpack/runtime/has_own_property","webpack:///webpack/runtime/make_namespace_object","webpack:///./@datadog/openfeature-node-server/esm/rules/rules.js","webpack:///./@datadog/flagging-core/esm/obfuscation.js","webpack:///./@datadog/flagging-core/esm/cache/abstract-assignment-cache.js","webpack:///./@datadog/flagging-core/esm/cache/lru-cache.js","webpack:///./@datadog/flagging-core/esm/cache/lru-in-memory-assignment-cache.js","webpack:///./@datadog/openfeature-node-server/esm/shards/sharders.js","webpack:///./@datadog/openfeature-node-server/esm/configuration/evaluation.js","webpack:///./@datadog/openfeature-node-server/esm/configuration/evaluateForSubject.js","webpack:///./@datadog/openfeature-node-server/esm/shards/matchesShard.js","webpack:///./@datadog/openfeature-node-server/esm/configuration/ufc-v1.js","webpack:///./@datadog/openfeature-node-server/esm/initialization-controller.js","webpack:///./@datadog/openfeature-node-server/esm/provider.js","webpack:///./@datadog/flagging-core/esm/configuration/exposureEvent.js"],"sourcesContent":["(function (factory) {\n if (typeof exports === 'object') {\n // Node/CommonJS\n module.exports = factory();\n } else if (typeof define === 'function' && define.amd) {\n // AMD\n define(factory);\n } else {\n // Browser globals (with support for web workers)\n var glob;\n\n try {\n glob = window;\n } catch (e) {\n glob = self;\n }\n\n glob.SparkMD5 = factory();\n }\n}(function (undefined) {\n\n 'use strict';\n\n /*\n * Fastest md5 implementation around (JKM md5).\n * Credits: Joseph Myers\n *\n * @see http://www.myersdaily.org/joseph/javascript/md5-text.html\n * @see http://jsperf.com/md5-shootout/7\n */\n\n /* this function is much faster,\n so if possible we use it. Some IEs\n are the only ones I know of that\n need the idiotic second function,\n generated by an if clause. */\n var add32 = function (a, b) {\n return (a + b) & 0xFFFFFFFF;\n },\n hex_chr = ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'a', 'b', 'c', 'd', 'e', 'f'];\n\n\n function cmn(q, a, b, x, s, t) {\n a = add32(add32(a, q), add32(x, t));\n return add32((a << s) | (a >>> (32 - s)), b);\n }\n\n function md5cycle(x, k) {\n var a = x[0],\n b = x[1],\n c = x[2],\n d = x[3];\n\n a += (b & c | ~b & d) + k[0] - 680876936 | 0;\n a = (a << 7 | a >>> 25) + b | 0;\n d += (a & b | ~a & c) + k[1] - 389564586 | 0;\n d = (d << 12 | d >>> 20) + a | 0;\n c += (d & a | ~d & b) + k[2] + 606105819 | 0;\n c = (c << 17 | c >>> 15) + d | 0;\n b += (c & d | ~c & a) + k[3] - 1044525330 | 0;\n b = (b << 22 | b >>> 10) + c | 0;\n a += (b & c | ~b & d) + k[4] - 176418897 | 0;\n a = (a << 7 | a >>> 25) + b | 0;\n d += (a & b | ~a & c) + k[5] + 1200080426 | 0;\n d = (d << 12 | d >>> 20) + a | 0;\n c += (d & a | ~d & b) + k[6] - 1473231341 | 0;\n c = (c << 17 | c >>> 15) + d | 0;\n b += (c & d | ~c & a) + k[7] - 45705983 | 0;\n b = (b << 22 | b >>> 10) + c | 0;\n a += (b & c | ~b & d) + k[8] + 1770035416 | 0;\n a = (a << 7 | a >>> 25) + b | 0;\n d += (a & b | ~a & c) + k[9] - 1958414417 | 0;\n d = (d << 12 | d >>> 20) + a | 0;\n c += (d & a | ~d & b) + k[10] - 42063 | 0;\n c = (c << 17 | c >>> 15) + d | 0;\n b += (c & d | ~c & a) + k[11] - 1990404162 | 0;\n b = (b << 22 | b >>> 10) + c | 0;\n a += (b & c | ~b & d) + k[12] + 1804603682 | 0;\n a = (a << 7 | a >>> 25) + b | 0;\n d += (a & b | ~a & c) + k[13] - 40341101 | 0;\n d = (d << 12 | d >>> 20) + a | 0;\n c += (d & a | ~d & b) + k[14] - 1502002290 | 0;\n c = (c << 17 | c >>> 15) + d | 0;\n b += (c & d | ~c & a) + k[15] + 1236535329 | 0;\n b = (b << 22 | b >>> 10) + c | 0;\n\n a += (b & d | c & ~d) + k[1] - 165796510 | 0;\n a = (a << 5 | a >>> 27) + b | 0;\n d += (a & c | b & ~c) + k[6] - 1069501632 | 0;\n d = (d << 9 | d >>> 23) + a | 0;\n c += (d & b | a & ~b) + k[11] + 643717713 | 0;\n c = (c << 14 | c >>> 18) + d | 0;\n b += (c & a | d & ~a) + k[0] - 373897302 | 0;\n b = (b << 20 | b >>> 12) + c | 0;\n a += (b & d | c & ~d) + k[5] - 701558691 | 0;\n a = (a << 5 | a >>> 27) + b | 0;\n d += (a & c | b & ~c) + k[10] + 38016083 | 0;\n d = (d << 9 | d >>> 23) + a | 0;\n c += (d & b | a & ~b) + k[15] - 660478335 | 0;\n c = (c << 14 | c >>> 18) + d | 0;\n b += (c & a | d & ~a) + k[4] - 405537848 | 0;\n b = (b << 20 | b >>> 12) + c | 0;\n a += (b & d | c & ~d) + k[9] + 568446438 | 0;\n a = (a << 5 | a >>> 27) + b | 0;\n d += (a & c | b & ~c) + k[14] - 1019803690 | 0;\n d = (d << 9 | d >>> 23) + a | 0;\n c += (d & b | a & ~b) + k[3] - 187363961 | 0;\n c = (c << 14 | c >>> 18) + d | 0;\n b += (c & a | d & ~a) + k[8] + 1163531501 | 0;\n b = (b << 20 | b >>> 12) + c | 0;\n a += (b & d | c & ~d) + k[13] - 1444681467 | 0;\n a = (a << 5 | a >>> 27) + b | 0;\n d += (a & c | b & ~c) + k[2] - 51403784 | 0;\n d = (d << 9 | d >>> 23) + a | 0;\n c += (d & b | a & ~b) + k[7] + 1735328473 | 0;\n c = (c << 14 | c >>> 18) + d | 0;\n b += (c & a | d & ~a) + k[12] - 1926607734 | 0;\n b = (b << 20 | b >>> 12) + c | 0;\n\n a += (b ^ c ^ d) + k[5] - 378558 | 0;\n a = (a << 4 | a >>> 28) + b | 0;\n d += (a ^ b ^ c) + k[8] - 2022574463 | 0;\n d = (d << 11 | d >>> 21) + a | 0;\n c += (d ^ a ^ b) + k[11] + 1839030562 | 0;\n c = (c << 16 | c >>> 16) + d | 0;\n b += (c ^ d ^ a) + k[14] - 35309556 | 0;\n b = (b << 23 | b >>> 9) + c | 0;\n a += (b ^ c ^ d) + k[1] - 1530992060 | 0;\n a = (a << 4 | a >>> 28) + b | 0;\n d += (a ^ b ^ c) + k[4] + 1272893353 | 0;\n d = (d << 11 | d >>> 21) + a | 0;\n c += (d ^ a ^ b) + k[7] - 155497632 | 0;\n c = (c << 16 | c >>> 16) + d | 0;\n b += (c ^ d ^ a) + k[10] - 1094730640 | 0;\n b = (b << 23 | b >>> 9) + c | 0;\n a += (b ^ c ^ d) + k[13] + 681279174 | 0;\n a = (a << 4 | a >>> 28) + b | 0;\n d += (a ^ b ^ c) + k[0] - 358537222 | 0;\n d = (d << 11 | d >>> 21) + a | 0;\n c += (d ^ a ^ b) + k[3] - 722521979 | 0;\n c = (c << 16 | c >>> 16) + d | 0;\n b += (c ^ d ^ a) + k[6] + 76029189 | 0;\n b = (b << 23 | b >>> 9) + c | 0;\n a += (b ^ c ^ d) + k[9] - 640364487 | 0;\n a = (a << 4 | a >>> 28) + b | 0;\n d += (a ^ b ^ c) + k[12] - 421815835 | 0;\n d = (d << 11 | d >>> 21) + a | 0;\n c += (d ^ a ^ b) + k[15] + 530742520 | 0;\n c = (c << 16 | c >>> 16) + d | 0;\n b += (c ^ d ^ a) + k[2] - 995338651 | 0;\n b = (b << 23 | b >>> 9) + c | 0;\n\n a += (c ^ (b | ~d)) + k[0] - 198630844 | 0;\n a = (a << 6 | a >>> 26) + b | 0;\n d += (b ^ (a | ~c)) + k[7] + 1126891415 | 0;\n d = (d << 10 | d >>> 22) + a | 0;\n c += (a ^ (d | ~b)) + k[14] - 1416354905 | 0;\n c = (c << 15 | c >>> 17) + d | 0;\n b += (d ^ (c | ~a)) + k[5] - 57434055 | 0;\n b = (b << 21 |b >>> 11) + c | 0;\n a += (c ^ (b | ~d)) + k[12] + 1700485571 | 0;\n a = (a << 6 | a >>> 26) + b | 0;\n d += (b ^ (a | ~c)) + k[3] - 1894986606 | 0;\n d = (d << 10 | d >>> 22) + a | 0;\n c += (a ^ (d | ~b)) + k[10] - 1051523 | 0;\n c = (c << 15 | c >>> 17) + d | 0;\n b += (d ^ (c | ~a)) + k[1] - 2054922799 | 0;\n b = (b << 21 |b >>> 11) + c | 0;\n a += (c ^ (b | ~d)) + k[8] + 1873313359 | 0;\n a = (a << 6 | a >>> 26) + b | 0;\n d += (b ^ (a | ~c)) + k[15] - 30611744 | 0;\n d = (d << 10 | d >>> 22) + a | 0;\n c += (a ^ (d | ~b)) + k[6] - 1560198380 | 0;\n c = (c << 15 | c >>> 17) + d | 0;\n b += (d ^ (c | ~a)) + k[13] + 1309151649 | 0;\n b = (b << 21 |b >>> 11) + c | 0;\n a += (c ^ (b | ~d)) + k[4] - 145523070 | 0;\n a = (a << 6 | a >>> 26) + b | 0;\n d += (b ^ (a | ~c)) + k[11] - 1120210379 | 0;\n d = (d << 10 | d >>> 22) + a | 0;\n c += (a ^ (d | ~b)) + k[2] + 718787259 | 0;\n c = (c << 15 | c >>> 17) + d | 0;\n b += (d ^ (c | ~a)) + k[9] - 343485551 | 0;\n b = (b << 21 | b >>> 11) + c | 0;\n\n x[0] = a + x[0] | 0;\n x[1] = b + x[1] | 0;\n x[2] = c + x[2] | 0;\n x[3] = d + x[3] | 0;\n }\n\n function md5blk(s) {\n var md5blks = [],\n i; /* Andy King said do it this way. */\n\n for (i = 0; i < 64; i += 4) {\n md5blks[i >> 2] = s.charCodeAt(i) + (s.charCodeAt(i + 1) << 8) + (s.charCodeAt(i + 2) << 16) + (s.charCodeAt(i + 3) << 24);\n }\n return md5blks;\n }\n\n function md5blk_array(a) {\n var md5blks = [],\n i; /* Andy King said do it this way. */\n\n for (i = 0; i < 64; i += 4) {\n md5blks[i >> 2] = a[i] + (a[i + 1] << 8) + (a[i + 2] << 16) + (a[i + 3] << 24);\n }\n return md5blks;\n }\n\n function md51(s) {\n var n = s.length,\n state = [1732584193, -271733879, -1732584194, 271733878],\n i,\n length,\n tail,\n tmp,\n lo,\n hi;\n\n for (i = 64; i <= n; i += 64) {\n md5cycle(state, md5blk(s.substring(i - 64, i)));\n }\n s = s.substring(i - 64);\n length = s.length;\n tail = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];\n for (i = 0; i < length; i += 1) {\n tail[i >> 2] |= s.charCodeAt(i) << ((i % 4) << 3);\n }\n tail[i >> 2] |= 0x80 << ((i % 4) << 3);\n if (i > 55) {\n md5cycle(state, tail);\n for (i = 0; i < 16; i += 1) {\n tail[i] = 0;\n }\n }\n\n // Beware that the final length might not fit in 32 bits so we take care of that\n tmp = n * 8;\n tmp = tmp.toString(16).match(/(.*?)(.{0,8})$/);\n lo = parseInt(tmp[2], 16);\n hi = parseInt(tmp[1], 16) || 0;\n\n tail[14] = lo;\n tail[15] = hi;\n\n md5cycle(state, tail);\n return state;\n }\n\n function md51_array(a) {\n var n = a.length,\n state = [1732584193, -271733879, -1732584194, 271733878],\n i,\n length,\n tail,\n tmp,\n lo,\n hi;\n\n for (i = 64; i <= n; i += 64) {\n md5cycle(state, md5blk_array(a.subarray(i - 64, i)));\n }\n\n // Not sure if it is a bug, however IE10 will always produce a sub array of length 1\n // containing the last element of the parent array if the sub array specified starts\n // beyond the length of the parent array - weird.\n // https://connect.microsoft.com/IE/feedback/details/771452/typed-array-subarray-issue\n a = (i - 64) < n ? a.subarray(i - 64) : new Uint8Array(0);\n\n length = a.length;\n tail = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];\n for (i = 0; i < length; i += 1) {\n tail[i >> 2] |= a[i] << ((i % 4) << 3);\n }\n\n tail[i >> 2] |= 0x80 << ((i % 4) << 3);\n if (i > 55) {\n md5cycle(state, tail);\n for (i = 0; i < 16; i += 1) {\n tail[i] = 0;\n }\n }\n\n // Beware that the final length might not fit in 32 bits so we take care of that\n tmp = n * 8;\n tmp = tmp.toString(16).match(/(.*?)(.{0,8})$/);\n lo = parseInt(tmp[2], 16);\n hi = parseInt(tmp[1], 16) || 0;\n\n tail[14] = lo;\n tail[15] = hi;\n\n md5cycle(state, tail);\n\n return state;\n }\n\n function rhex(n) {\n var s = '',\n j;\n for (j = 0; j < 4; j += 1) {\n s += hex_chr[(n >> (j * 8 + 4)) & 0x0F] + hex_chr[(n >> (j * 8)) & 0x0F];\n }\n return s;\n }\n\n function hex(x) {\n var i;\n for (i = 0; i < x.length; i += 1) {\n x[i] = rhex(x[i]);\n }\n return x.join('');\n }\n\n // In some cases the fast add32 function cannot be used..\n if (hex(md51('hello')) !== '5d41402abc4b2a76b9719d911017c592') {\n add32 = function (x, y) {\n var lsw = (x & 0xFFFF) + (y & 0xFFFF),\n msw = (x >> 16) + (y >> 16) + (lsw >> 16);\n return (msw << 16) | (lsw & 0xFFFF);\n };\n }\n\n // ---------------------------------------------------\n\n /**\n * ArrayBuffer slice polyfill.\n *\n * @see https://github.com/ttaubert/node-arraybuffer-slice\n */\n\n if (typeof ArrayBuffer !== 'undefined' && !ArrayBuffer.prototype.slice) {\n (function () {\n function clamp(val, length) {\n val = (val | 0) || 0;\n\n if (val < 0) {\n return Math.max(val + length, 0);\n }\n\n return Math.min(val, length);\n }\n\n ArrayBuffer.prototype.slice = function (from, to) {\n var length = this.byteLength,\n begin = clamp(from, length),\n end = length,\n num,\n target,\n targetArray,\n sourceArray;\n\n if (to !== undefined) {\n end = clamp(to, length);\n }\n\n if (begin > end) {\n return new ArrayBuffer(0);\n }\n\n num = end - begin;\n target = new ArrayBuffer(num);\n targetArray = new Uint8Array(target);\n\n sourceArray = new Uint8Array(this, begin, num);\n targetArray.set(sourceArray);\n\n return target;\n };\n })();\n }\n\n // ---------------------------------------------------\n\n /**\n * Helpers.\n */\n\n function toUtf8(str) {\n if (/[\\u0080-\\uFFFF]/.test(str)) {\n str = unescape(encodeURIComponent(str));\n }\n\n return str;\n }\n\n function utf8Str2ArrayBuffer(str, returnUInt8Array) {\n var length = str.length,\n buff = new ArrayBuffer(length),\n arr = new Uint8Array(buff),\n i;\n\n for (i = 0; i < length; i += 1) {\n arr[i] = str.charCodeAt(i);\n }\n\n return returnUInt8Array ? arr : buff;\n }\n\n function arrayBuffer2Utf8Str(buff) {\n return String.fromCharCode.apply(null, new Uint8Array(buff));\n }\n\n function concatenateArrayBuffers(first, second, returnUInt8Array) {\n var result = new Uint8Array(first.byteLength + second.byteLength);\n\n result.set(new Uint8Array(first));\n result.set(new Uint8Array(second), first.byteLength);\n\n return returnUInt8Array ? result : result.buffer;\n }\n\n function hexToBinaryString(hex) {\n var bytes = [],\n length = hex.length,\n x;\n\n for (x = 0; x < length - 1; x += 2) {\n bytes.push(parseInt(hex.substr(x, 2), 16));\n }\n\n return String.fromCharCode.apply(String, bytes);\n }\n\n // ---------------------------------------------------\n\n /**\n * SparkMD5 OOP implementation.\n *\n * Use this class to perform an incremental md5, otherwise use the\n * static methods instead.\n */\n\n function SparkMD5() {\n // call reset to init the instance\n this.reset();\n }\n\n /**\n * Appends a string.\n * A conversion will be applied if an utf8 string is detected.\n *\n * @param {String} str The string to be appended\n *\n * @return {SparkMD5} The instance itself\n */\n SparkMD5.prototype.append = function (str) {\n // Converts the string to utf8 bytes if necessary\n // Then append as binary\n this.appendBinary(toUtf8(str));\n\n return this;\n };\n\n /**\n * Appends a binary string.\n *\n * @param {String} contents The binary string to be appended\n *\n * @return {SparkMD5} The instance itself\n */\n SparkMD5.prototype.appendBinary = function (contents) {\n this._buff += contents;\n this._length += contents.length;\n\n var length = this._buff.length,\n i;\n\n for (i = 64; i <= length; i += 64) {\n md5cycle(this._hash, md5blk(this._buff.substring(i - 64, i)));\n }\n\n this._buff = this._buff.substring(i - 64);\n\n return this;\n };\n\n /**\n * Finishes the incremental computation, reseting the internal state and\n * returning the result.\n *\n * @param {Boolean} raw True to get the raw string, false to get the hex string\n *\n * @return {String} The result\n */\n SparkMD5.prototype.end = function (raw) {\n var buff = this._buff,\n length = buff.length,\n i,\n tail = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],\n ret;\n\n for (i = 0; i < length; i += 1) {\n tail[i >> 2] |= buff.charCodeAt(i) << ((i % 4) << 3);\n }\n\n this._finish(tail, length);\n ret = hex(this._hash);\n\n if (raw) {\n ret = hexToBinaryString(ret);\n }\n\n this.reset();\n\n return ret;\n };\n\n /**\n * Resets the internal state of the computation.\n *\n * @return {SparkMD5} The instance itself\n */\n SparkMD5.prototype.reset = function () {\n this._buff = '';\n this._length = 0;\n this._hash = [1732584193, -271733879, -1732584194, 271733878];\n\n return this;\n };\n\n /**\n * Gets the internal state of the computation.\n *\n * @return {Object} The state\n */\n SparkMD5.prototype.getState = function () {\n return {\n buff: this._buff,\n length: this._length,\n hash: this._hash.slice()\n };\n };\n\n /**\n * Gets the internal state of the computation.\n *\n * @param {Object} state The state\n *\n * @return {SparkMD5} The instance itself\n */\n SparkMD5.prototype.setState = function (state) {\n this._buff = state.buff;\n this._length = state.length;\n this._hash = state.hash;\n\n return this;\n };\n\n /**\n * Releases memory used by the incremental buffer and other additional\n * resources. If you plan to use the instance again, use reset instead.\n */\n SparkMD5.prototype.destroy = function () {\n delete this._hash;\n delete this._buff;\n delete this._length;\n };\n\n /**\n * Finish the final calculation based on the tail.\n *\n * @param {Array} tail The tail (will be modified)\n * @param {Number} length The length of the remaining buffer\n */\n SparkMD5.prototype._finish = function (tail, length) {\n var i = length,\n tmp,\n lo,\n hi;\n\n tail[i >> 2] |= 0x80 << ((i % 4) << 3);\n if (i > 55) {\n md5cycle(this._hash, tail);\n for (i = 0; i < 16; i += 1) {\n tail[i] = 0;\n }\n }\n\n // Do the final computation based on the tail and length\n // Beware that the final length may not fit in 32 bits so we take care of that\n tmp = this._length * 8;\n tmp = tmp.toString(16).match(/(.*?)(.{0,8})$/);\n lo = parseInt(tmp[2], 16);\n hi = parseInt(tmp[1], 16) || 0;\n\n tail[14] = lo;\n tail[15] = hi;\n md5cycle(this._hash, tail);\n };\n\n /**\n * Performs the md5 hash on a string.\n * A conversion will be applied if utf8 string is detected.\n *\n * @param {String} str The string\n * @param {Boolean} [raw] True to get the raw string, false to get the hex string\n *\n * @return {String} The result\n */\n SparkMD5.hash = function (str, raw) {\n // Converts the string to utf8 bytes if necessary\n // Then compute it using the binary function\n return SparkMD5.hashBinary(toUtf8(str), raw);\n };\n\n /**\n * Performs the md5 hash on a binary string.\n *\n * @param {String} content The binary string\n * @param {Boolean} [raw] True to get the raw string, false to get the hex string\n *\n * @return {String} The result\n */\n SparkMD5.hashBinary = function (content, raw) {\n var hash = md51(content),\n ret = hex(hash);\n\n return raw ? hexToBinaryString(ret) : ret;\n };\n\n // ---------------------------------------------------\n\n /**\n * SparkMD5 OOP implementation for array buffers.\n *\n * Use this class to perform an incremental md5 ONLY for array buffers.\n */\n SparkMD5.ArrayBuffer = function () {\n // call reset to init the instance\n this.reset();\n };\n\n /**\n * Appends an array buffer.\n *\n * @param {ArrayBuffer} arr The array to be appended\n *\n * @return {SparkMD5.ArrayBuffer} The instance itself\n */\n SparkMD5.ArrayBuffer.prototype.append = function (arr) {\n var buff = concatenateArrayBuffers(this._buff.buffer, arr, true),\n length = buff.length,\n i;\n\n this._length += arr.byteLength;\n\n for (i = 64; i <= length; i += 64) {\n md5cycle(this._hash, md5blk_array(buff.subarray(i - 64, i)));\n }\n\n this._buff = (i - 64) < length ? new Uint8Array(buff.buffer.slice(i - 64)) : new Uint8Array(0);\n\n return this;\n };\n\n /**\n * Finishes the incremental computation, reseting the internal state and\n * returning the result.\n *\n * @param {Boolean} raw True to get the raw string, false to get the hex string\n *\n * @return {String} The result\n */\n SparkMD5.ArrayBuffer.prototype.end = function (raw) {\n var buff = this._buff,\n length = buff.length,\n tail = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],\n i,\n ret;\n\n for (i = 0; i < length; i += 1) {\n tail[i >> 2] |= buff[i] << ((i % 4) << 3);\n }\n\n this._finish(tail, length);\n ret = hex(this._hash);\n\n if (raw) {\n ret = hexToBinaryString(ret);\n }\n\n this.reset();\n\n return ret;\n };\n\n /**\n * Resets the internal state of the computation.\n *\n * @return {SparkMD5.ArrayBuffer} The instance itself\n */\n SparkMD5.ArrayBuffer.prototype.reset = function () {\n this._buff = new Uint8Array(0);\n this._length = 0;\n this._hash = [1732584193, -271733879, -1732584194, 271733878];\n\n return this;\n };\n\n /**\n * Gets the internal state of the computation.\n *\n * @return {Object} The state\n */\n SparkMD5.ArrayBuffer.prototype.getState = function () {\n var state = SparkMD5.prototype.getState.call(this);\n\n // Convert buffer to a string\n state.buff = arrayBuffer2Utf8Str(state.buff);\n\n return state;\n };\n\n /**\n * Gets the internal state of the computation.\n *\n * @param {Object} state The state\n *\n * @return {SparkMD5.ArrayBuffer} The instance itself\n */\n SparkMD5.ArrayBuffer.prototype.setState = function (state) {\n // Convert string to buffer\n state.buff = utf8Str2ArrayBuffer(state.buff, true);\n\n return SparkMD5.prototype.setState.call(this, state);\n };\n\n SparkMD5.ArrayBuffer.prototype.destroy = SparkMD5.prototype.destroy;\n\n SparkMD5.ArrayBuffer.prototype._finish = SparkMD5.prototype._finish;\n\n /**\n * Performs the md5 hash on an array buffer.\n *\n * @param {ArrayBuffer} arr The array buffer\n * @param {Boolean} [raw] True to get the raw string, false to get the hex one\n *\n * @return {String} The result\n */\n SparkMD5.ArrayBuffer.hash = function (arr, raw) {\n var hash = md51_array(new Uint8Array(arr)),\n ret = hex(hash);\n\n return raw ? hexToBinaryString(ret) : ret;\n };\n\n return SparkMD5;\n}));\n","// getDefaultExport function for compatibility with non-ESM modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};\n","__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n }\n }\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","export var OperatorType;\n(function (OperatorType) {\n OperatorType[\"MATCHES\"] = \"MATCHES\";\n OperatorType[\"NOT_MATCHES\"] = \"NOT_MATCHES\";\n OperatorType[\"GTE\"] = \"GTE\";\n OperatorType[\"GT\"] = \"GT\";\n OperatorType[\"LTE\"] = \"LTE\";\n OperatorType[\"LT\"] = \"LT\";\n OperatorType[\"ONE_OF\"] = \"ONE_OF\";\n OperatorType[\"NOT_ONE_OF\"] = \"NOT_ONE_OF\";\n OperatorType[\"IS_NULL\"] = \"IS_NULL\";\n})(OperatorType || (OperatorType = {}));\nexport function matchesRule(rule, subjectAttributes) {\n const conditionEvaluations = evaluateRuleConditions(subjectAttributes, rule.conditions);\n // TODO: short-circuit return when false condition is found\n return !conditionEvaluations.includes(false);\n}\nfunction evaluateRuleConditions(subjectAttributes, conditions) {\n return conditions.map((condition) => evaluateCondition(subjectAttributes, condition));\n}\nfunction evaluateCondition(subjectAttributes, condition) {\n const value = subjectAttributes[condition.attribute];\n if (condition.operator === OperatorType.IS_NULL) {\n if (condition.value) {\n return value === null || value === undefined;\n }\n return value !== null && value !== undefined;\n }\n if (value !== null && value !== undefined) {\n switch (condition.operator) {\n case OperatorType.GTE:\n case OperatorType.GT:\n case OperatorType.LTE:\n case OperatorType.LT: {\n const comparator = (a, b) => condition.operator === OperatorType.GTE\n ? a >= b\n : condition.operator === OperatorType.GT\n ? a > b\n : condition.operator === OperatorType.LTE\n ? a <= b\n : a < b;\n return compareNumber(value, condition.value, comparator);\n }\n case OperatorType.MATCHES:\n // ReDoS mitigation should happen on user input to avoid event loop saturation (https://datadoghq.atlassian.net/browse/FFL-1060)\n return new RegExp(condition.value).test(String(value)); // dd-iac-scan ignore-line\n case OperatorType.NOT_MATCHES:\n // ReDoS mitigation should happen on user input to avoid event loop saturation (https://datadoghq.atlassian.net/browse/FFL-1060)\n return !new RegExp(condition.value).test(String(value)); // dd-iac-scan ignore-line\n case OperatorType.ONE_OF:\n return isOneOf(value.toString(), condition.value);\n case OperatorType.NOT_ONE_OF:\n return isNotOneOf(value.toString(), condition.value);\n }\n }\n return false;\n}\nfunction isOneOf(attributeValue, conditionValues) {\n return conditionValues.includes(attributeValue);\n}\nfunction isNotOneOf(attributeValue, conditionValues) {\n return !isOneOf(attributeValue, conditionValues);\n}\nfunction compareNumber(attributeValue, conditionValue, compareFn) {\n return compareFn(Number(attributeValue), Number(conditionValue));\n}\n//# sourceMappingURL=rules.js.map","import SparkMD5 from 'spark-md5';\nexport function getMD5Hash(input, salt = '') {\n return new SparkMD5().append(salt).append(input).end();\n}\n/**\n * Builds a storage key suffix from an API key.\n * @param apiKey - The API key to build the suffix from\n * @returns A string suffix for storage keys\n * @public\n */\nexport function buildStorageKeySuffix(apiKey) {\n // Note that we hash the API key and use the first 16 characters of the digest.\n const hashed = getMD5Hash(apiKey);\n return hashed.slice(0, 16);\n}\n//# sourceMappingURL=obfuscation.js.map","import { getMD5Hash } from '../obfuscation';\n/** Converts an {@link AssignmentCacheKey} to a string. */\nexport function assignmentCacheKeyToString(exposureEvent) {\n const key = {\n flag: {\n key: exposureEvent.flag.key,\n },\n subject: {\n id: exposureEvent.subject.id,\n attributes: exposureEvent.subject.attributes,\n },\n };\n return getMD5Hash(JSON.stringify(key));\n}\n/** Converts an {@link AssignmentCacheValue} to a string. */\nexport function assignmentCacheValueToString(cacheValue) {\n return getMD5Hash(JSON.stringify(cacheValue));\n}\nexport class AbstractAssignmentCache {\n // key -> variation value hash\n constructor(delegate) {\n this.delegate = delegate;\n }\n init() {\n return Promise.resolve();\n }\n /** Returns whether the provided {@link AssignmentCacheEntry} is present in the cache. */\n has(entry) {\n return this.get(entry) === assignmentCacheValueToString(entry);\n }\n get(key) {\n return this.delegate.get(assignmentCacheKeyToString(key));\n }\n /**\n * Stores the provided {@link AssignmentCacheEntry} in the cache. If the key already exists, it\n * will be overwritten.\n */\n set(entry) {\n this.delegate.set(assignmentCacheKeyToString(entry), assignmentCacheValueToString(entry));\n }\n /**\n * Returns an array with all {@link AssignmentCacheEntry} entries in the cache as an array of\n * {@link string}s.\n */\n entries() {\n return this.delegate.entries();\n }\n /** Clears all entries from the cache. */\n clear() {\n this.delegate.clear();\n }\n}\n//# sourceMappingURL=abstract-assignment-cache.js.map","/**\n * LRUCache is a simple implementation of a Least Recently Used (LRU) cache.\n *\n * Old items are evicted when the cache reaches its capacity.\n *\n * The cache is implemented as a Map, which maintains insertion order:\n * ```\n * Iteration happens in insertion order, which corresponds to the order in which each key-value pair\n * was first inserted into the map by the set() method (that is, there wasn't a key with the same\n * value already in the map when set() was called).\n * ```\n * Source: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map\n */\nexport class LRUCache {\n constructor(capacity) {\n this.capacity = capacity;\n this.cache = new Map();\n this.size = this.cache.size;\n }\n [(Symbol.toStringTag, Symbol.iterator)]() {\n return this.cache[Symbol.iterator]();\n }\n forEach(callbackFn) {\n this.cache.forEach(callbackFn);\n }\n entries() {\n return this.cache.entries();\n }\n clear() {\n this.cache.clear();\n }\n delete(key) {\n return this.cache.delete(key);\n }\n keys() {\n return this.cache.keys();\n }\n values() {\n return this.cache.values();\n }\n has(key) {\n return this.cache.has(key);\n }\n get(key) {\n if (!this.has(key)) {\n return undefined;\n }\n const value = this.cache.get(key);\n if (value !== undefined) {\n // the delete and set operations are used together to ensure that the most recently accessed\n // or added item is always considered the \"newest\" in terms of access order.\n // This is crucial for maintaining the correct order of elements in the cache,\n // which directly impacts which item is considered the least recently used (LRU) and\n // thus eligible for eviction when the cache reaches its capacity.\n this.delete(key);\n this.cache.set(key, value);\n }\n return value;\n }\n set(key, value) {\n if (this.capacity === 0) {\n return this;\n }\n if (this.cache.has(key)) {\n this.cache.delete(key);\n }\n else if (this.cache.size >= this.capacity) {\n // To evict the least recently used (LRU) item, we retrieve the first key in the Map.\n // This is possible because the Map object in JavaScript maintains the insertion order of the keys.\n // Therefore, the first key represents the oldest entry, which is the least recently used item in our cache.\n // We use Map.prototype.keys().next().value to obtain this oldest key and then delete it from the cache.\n const oldestKey = this.cache.keys().next().value;\n if (oldestKey) {\n this.delete(oldestKey);\n }\n }\n this.cache.set(key, value);\n return this;\n }\n}\n//# sourceMappingURL=lru-cache.js.map","import { AbstractAssignmentCache } from './abstract-assignment-cache';\nimport { LRUCache } from './lru-cache';\n/**\n * A cache that uses the LRU algorithm to evict the least recently used items.\n *\n * It is used to limit the size of the cache.\n *\n * The primary use case is for server-side SDKs, where the cache is shared across\n * multiple users. In this case, the cache size should be set to the maximum number\n * of users that can be active at the same time.\n * @param {number} maxSize - Maximum cache size\n */\nexport class LRUInMemoryAssignmentCache extends AbstractAssignmentCache {\n constructor(maxSize) {\n super(new LRUCache(maxSize));\n }\n}\n//# sourceMappingURL=lru-in-memory-assignment-cache.js.map","import { getMD5Hash } from '@datadog/flagging-core';\nexport class Sharder {\n}\nexport class MD5Sharder extends Sharder {\n getShard(input, totalShards) {\n const hashOutput = getMD5Hash(input);\n // get the first 4 bytes of the md5 hex string and parse it using base 16\n // (8 hex characters represent 4 bytes, e.g. 0xffffffff represents the max 4-byte integer)\n const intFromHash = parseInt(hashOutput.slice(0, 8), 16);\n return intFromHash % totalShards;\n }\n}\nexport class DeterministicSharder extends Sharder {\n constructor(lookup) {\n super();\n this.lookup = lookup;\n }\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n getShard(input, _totalShards) {\n var _a;\n return (_a = this.lookup[input]) !== null && _a !== void 0 ? _a : 0;\n }\n}\n//# sourceMappingURL=sharders.js.map","import { ErrorCode, StandardResolutionReasons, } from '@openfeature/server-sdk';\nimport { evaluateForSubject } from './evaluateForSubject';\nexport function evaluate(config, type, flagKey, defaultValue, context, logger) {\n if (!config) {\n return {\n value: defaultValue,\n reason: 'ERROR',\n errorCode: ErrorCode.PROVIDER_NOT_READY,\n };\n }\n const { targetingKey: subjectKey, ...remainingContext } = context;\n if (!subjectKey) {\n return {\n value: defaultValue,\n reason: 'ERROR',\n errorCode: ErrorCode.TARGETING_KEY_MISSING,\n };\n }\n // Include the subjectKey as an \"id\" attribute for rule matching\n const subjectAttributes = {\n id: subjectKey,\n ...remainingContext,\n };\n try {\n const resultWithDetails = evaluateForSubject(config.flags[flagKey], type, subjectKey, subjectAttributes, defaultValue, logger);\n return resultWithDetails;\n }\n catch (error) {\n logger.error('Error evaluating flag', { error });\n return {\n value: defaultValue,\n reason: StandardResolutionReasons.ERROR,\n errorCode: ErrorCode.GENERAL,\n };\n }\n}\n//# sourceMappingURL=evaluation.js.map","import { ErrorCode, StandardResolutionReasons, } from '@openfeature/server-sdk';\nimport { matchesRule } from '../rules/rules';\nimport { matchesShard } from '../shards/matchesShard';\nimport { variantTypeToFlagValueType } from './ufc-v1';\nexport function evaluateForSubject(flag, type, subjectKey, subjectAttributes, defaultValue, logger) {\n if (!(flag === null || flag === void 0 ? void 0 : flag.enabled)) {\n logger.debug(`returning default assignment because flag is disabled`, {\n flagKey: flag ? flag.key : 'undefined',\n subjectKey,\n });\n return {\n value: defaultValue,\n reason: StandardResolutionReasons.DISABLED,\n };\n }\n const isValid = validateTypeMatch(type, flag.variationType);\n if (!isValid) {\n logger.debug(`variant value type mismatch, returning default value`, {\n flagKey: flag.key,\n subjectKey,\n expectedType: type,\n variantType: flag.variationType,\n });\n return {\n value: defaultValue,\n reason: StandardResolutionReasons.ERROR,\n errorCode: ErrorCode.TYPE_MISMATCH,\n };\n }\n const now = new Date();\n for (const allocation of flag.allocations) {\n if (allocation.startAt && now < new Date(allocation.startAt)) {\n logger.debug(`allocation before start date`, {\n flagKey: flag.key,\n subjectKey,\n allocationKey: allocation.key,\n startAt: allocation.startAt,\n });\n continue;\n }\n if (allocation.endAt && now >= new Date(allocation.endAt)) {\n logger.debug(`allocation after end date`, {\n flagKey: flag.key,\n subjectKey,\n allocationKey: allocation.key,\n endAt: allocation.endAt,\n });\n continue;\n }\n const matched = containsMatchingRule(allocation.rules, subjectAttributes, logger);\n if (!matched) {\n continue;\n }\n const selectedSplit = selectSplitUsingSharding(allocation.splits, subjectKey, flag.key, logger);\n if (selectedSplit) {\n const variant = flag.variations[selectedSplit.variationKey];\n if (variant) {\n logger.debug(`evaluated a flag`, {\n flagKey: flag.key,\n subjectKey,\n assignment: variant.value,\n });\n return {\n value: variant.value,\n reason: StandardResolutionReasons.TARGETING_MATCH,\n variant: variant.key,\n flagMetadata: {\n allocationKey: allocation.key,\n variationType: variantTypeToFlagValueType(flag.variationType),\n doLog: !!allocation.doLog,\n },\n };\n }\n }\n else {\n logger.debug(`no matching split found for subject`, {\n flagKey: flag.key,\n subjectKey,\n allocationKey: allocation.key,\n });\n }\n }\n // This shouldn't happen since a default allocation is generated by the server\n logger.debug(`returning default assignment because no allocation matched`, {\n flagKey: flag.key,\n subjectKey,\n });\n return {\n value: defaultValue,\n reason: StandardResolutionReasons.DEFAULT,\n };\n}\nfunction validateTypeMatch(expectedType, variantType) {\n if (expectedType === 'boolean') {\n return variantType === 'BOOLEAN';\n }\n if (expectedType === 'string') {\n return variantType === 'STRING';\n }\n if (expectedType === 'number') {\n return variantType === 'INTEGER' || variantType === 'NUMERIC';\n }\n if (expectedType === 'object') {\n return variantType === 'JSON';\n }\n throw new Error(`Invalid expected type: ${expectedType}`);\n}\nexport function containsMatchingRule(rules, subjectAttributes, logger) {\n if (!(rules === null || rules === void 0 ? void 0 : rules.length)) {\n return true;\n }\n logger.debug(`evaluating rules`, {\n rules: JSON.stringify(rules),\n subjectAttributes,\n });\n return rules.some((rule) => matchesRule(rule, subjectAttributes));\n}\nfunction selectSplitUsingSharding(splits, subjectKey, flagKey, logger) {\n if (!splits || splits.length === 0) {\n return null;\n }\n for (const split of splits) {\n logger.debug(`evaluating split sharding`, {\n flagKey,\n subjectKey,\n variationKey: split.variationKey,\n shards: split.shards,\n });\n const matches = split.shards.every((shard) => {\n const shardMatches = matchesShard(shard, subjectKey);\n logger.debug(`shard match result`, {\n flagKey,\n subjectKey,\n variationKey: split.variationKey,\n shard: shard,\n matches: shardMatches,\n });\n return shardMatches;\n });\n if (matches) {\n logger.debug(`subject matches split`, {\n flagKey,\n subjectKey,\n variationKey: split.variationKey,\n });\n return split;\n }\n }\n logger.debug(`subject matches no splits`, {\n flagKey,\n subjectKey,\n });\n return null;\n}\n//# sourceMappingURL=evaluateForSubject.js.map","import { MD5Sharder } from './sharders';\nexport function matchesShard(shard, subjectKey, customSharder) {\n const sharder = customSharder !== null && customSharder !== void 0 ? customSharder : new MD5Sharder();\n const assignedShard = sharder.getShard(hashKey(shard.salt, subjectKey), shard.totalShards);\n return shard.ranges.some((range) => isInShardRange(assignedShard, range));\n}\nfunction isInShardRange(shard, range) {\n return range.start <= shard && shard < range.end;\n}\nfunction hashKey(salt, subjectKey) {\n return `${salt}-${subjectKey}`;\n}\n//# sourceMappingURL=matchesShard.js.map","export function variantTypeToFlagValueType(variantType) {\n if (variantType === 'BOOLEAN') {\n return 'boolean';\n }\n if (variantType === 'STRING') {\n return 'string';\n }\n if (variantType === 'INTEGER' || variantType === 'NUMERIC') {\n return 'number';\n }\n if (variantType === 'JSON') {\n return 'object';\n }\n throw new Error(`Cannot convert variant type to flag value type: ${variantType}`);\n}\n//# sourceMappingURL=ufc-v1.js.map","/**\n * Manages deferred initialization with timeout support.\n * Encapsulates the pattern of waiting for external resolution/rejection\n * with automatic timeout handling and cleanup.\n */\nexport class InitializationController {\n constructor(timeoutMs, onTimeout) {\n this.promise = Promise.race([\n // Deferred promise - resolved/rejected externally\n new Promise((resolve, reject) => {\n this.resolve = () => {\n this.cleanup();\n resolve();\n };\n this.reject = (reason) => {\n this.cleanup();\n reject(reason);\n };\n }),\n // Timeout promise\n new Promise(() => {\n this.timeoutId = setTimeout(() => {\n onTimeout();\n }, timeoutMs);\n }),\n ]);\n }\n /**\n * Wait for initialization to complete (or timeout)\n */\n async wait() {\n try {\n await this.promise;\n }\n finally {\n this.cleanup();\n }\n }\n /**\n * Complete initialization successfully\n */\n complete() {\n if (this.resolve) {\n this.resolve();\n }\n }\n /**\n * Fail initialization with an error\n */\n fail(error) {\n if (this.reject) {\n this.reject(error);\n }\n }\n /**\n * Check if initialization is still in progress\n */\n isInitializing() {\n return this.resolve !== undefined;\n }\n cleanup() {\n if (this.timeoutId) {\n clearTimeout(this.timeoutId);\n this.timeoutId = undefined;\n }\n this.resolve = undefined;\n this.reject = undefined;\n }\n}\n//# sourceMappingURL=initialization-controller.js.map","import { createExposureEvent, LRUInMemoryAssignmentCache, } from '@datadog/flagging-core';\nimport { OpenFeatureEventEmitter, ProviderEvents } from '@openfeature/server-sdk';\nimport { evaluate } from './configuration/evaluation';\nimport { InitializationController } from './initialization-controller';\n/**\n * Default timeout in milliseconds for provider initialization.\n */\nconst DEFAULT_INITIALIZATION_TIMEOUT_MS = 30000;\nexport class DatadogNodeServerProvider {\n constructor(options) {\n this.options = options;\n this.metadata = {\n name: 'datadog-node-server',\n };\n this.runsOn = 'server';\n this.hooks = [];\n this.events = new OpenFeatureEventEmitter();\n this.exposureCache = new LRUInMemoryAssignmentCache(50000);\n }\n /**\n * Used by dd-source-js\n */\n getConfiguration() {\n return this.configuration;\n }\n /**\n * Used by dd-source-js\n */\n setConfiguration(configuration) {\n var _a, _b, _c;\n const prevCreatedAt = (_a = this.configuration) === null || _a === void 0 ? void 0 : _a.createdAt;\n const hadConfiguration = !!this.configuration;\n if (hadConfiguration && this.configuration !== configuration) {\n this.events.emit(ProviderEvents.ConfigurationChanged);\n const newCreatedAt = configuration === null || configuration === void 0 ? void 0 : configuration.createdAt;\n if (prevCreatedAt !== newCreatedAt) {\n (_b = this.exposureCache) === null || _b === void 0 ? void 0 : _b.clear();\n }\n this.configuration = configuration;\n return;\n }\n this.configuration = configuration;\n if ((_c = this.initController) === null || _c === void 0 ? void 0 : _c.isInitializing()) {\n // First configuration during initialization - resolve the initialization promise\n // This will cause OpenFeature SDK to emit PROVIDER_READY\n this.initController.complete();\n }\n else if (!hadConfiguration) {\n // Configuration is being set after initialization completed/failed (e.g., after timeout)\n // Emit PROVIDER_READY to signal recovery from error state\n this.events.emit(ProviderEvents.Ready);\n }\n }\n /**\n * Used by dd-source-js\n */\n setError(error) {\n var _a;\n if ((_a = this.initController) === null || _a === void 0 ? void 0 : _a.isInitializing()) {\n this.initController.fail(error);\n }\n else {\n this.events.emit(ProviderEvents.Error, { error });\n }\n }\n /**\n * Used by the OpenFeature SDK to set the status based on initialization.\n * Status of 'PROVIDER_READY' is emitted with a resolved promise.\n * Status of 'PROVIDER_ERROR' is emitted with a rejected promise.\n *\n * Since we aren't loading the configuration in this Provider, we will simulate\n * loading functionality via InitializationController.\n * See setConfiguration and setError for more details.\n */\n async initialize() {\n var _a, _b;\n if (this.configuration) {\n return;\n }\n const timeoutMs = (_a = this.options.initializationTimeoutMs) !== null && _a !== void 0 ? _a : DEFAULT_INITIALIZATION_TIMEOUT_MS;\n this.initController = new InitializationController(timeoutMs, () => this.setError(new Error(`Initialization timeout after ${timeoutMs}ms`)));\n await this.initController.wait();\n await ((_b = this.exposureCache) === null || _b === void 0 ? void 0 : _b.init());\n }\n async resolveBooleanEvaluation(flagKey, defaultValue, context, _logger) {\n const resolutionDetails = evaluate(this.configuration, 'boolean', flagKey, defaultValue, context, _logger);\n this.handleExposure(flagKey, context, resolutionDetails);\n return resolutionDetails;\n }\n async resolveStringEvaluation(flagKey, defaultValue, context, _logger) {\n const resolutionDetails = evaluate(this.configuration, 'string', flagKey, defaultValue, context, _logger);\n this.handleExposure(flagKey, context, resolutionDetails);\n return resolutionDetails;\n }\n async resolveNumberEvaluation(flagKey, defaultValue, context, _logger) {\n const resolutionDetails = evaluate(this.configuration, 'number', flagKey, defaultValue, context, _logger);\n this.handleExposure(flagKey, context, resolutionDetails);\n return resolutionDetails;\n }\n async resolveObjectEvaluation(flagKey, defaultValue, context, _logger) {\n // type safety: OpenFeature interface requires us to return a\n // specific T for *any* value of T (which could be any subtype of\n // JsonValue). We can't even theoretically implement it in a\n // type-sound way because there's no runtime information passed to\n // learn what type the user expects. So it's up to the user to\n // make sure they pass the appropriate type.\n const resolutionDetails = evaluate(this.configuration, 'object', flagKey, defaultValue, context, _logger);\n this.handleExposure(flagKey, context, resolutionDetails);\n return resolutionDetails;\n }\n handleExposure(flagKey, context, resolutionDetails) {\n var _a, _b, _c;\n const timestamp = Date.now();\n const evalutationDetails = {\n ...resolutionDetails,\n flagKey: flagKey,\n flagMetadata: (_a = resolutionDetails.flagMetadata) !== null && _a !== void 0 ? _a : {},\n };\n const exposureEvent = createExposureEvent(context, evalutationDetails);\n if (!exposureEvent) {\n return;\n }\n const hasLoggedAssignment = (_b = this.exposureCache) === null || _b === void 0 ? void 0 : _b.has(exposureEvent);\n if (hasLoggedAssignment) {\n return;\n }\n if (this.options.exposureChannel.hasSubscribers) {\n this.options.exposureChannel.publish({ ...exposureEvent, timestamp });\n (_c = this.exposureCache) === null || _c === void 0 ? void 0 : _c.set(exposureEvent);\n }\n }\n}\n//# sourceMappingURL=provider.js.map","export function createExposureEvent(context, details) {\n var _a, _b;\n // Only log if doLog flag is true\n if (!((_a = details.flagMetadata) === null || _a === void 0 ? void 0 : _a.doLog)) {\n return;\n }\n // Skip logging if allocation key or variant is missing (this should never happen)\n const allocationKey = (_b = details.flagMetadata) === null || _b === void 0 ? void 0 : _b.allocationKey;\n const variantKey = details.variant;\n if (!allocationKey || !variantKey) {\n return;\n }\n const { targetingKey: id = '', ...attributes } = context;\n return {\n allocation: {\n key: allocationKey,\n },\n flag: {\n key: details.flagKey,\n },\n variant: {\n key: variantKey,\n },\n subject: {\n id,\n attributes,\n },\n };\n}\n//# sourceMappingURL=exposureEvent.js.map"],"names":["parseInt","unescape","encodeURIComponent","String","ArrayBuffer","Math","n","s","Uint8Array","r","i","e","Object","Symbol","JSON","Promise","Map","t","Error","Date","Number","RegExp","setTimeout","clearTimeout","a"],"mappings":"oDAGQ,EAAO,OAAO,CAAG,AAgBvB,SAAU,CAAS,EAEjB,aAeA,IAGI,EAAU,CAAC,IAAK,IAAK,IAAK,IAAK,IAAK,IAAK,IAAK,IAAK,IAAK,IAAK,IAAK,IAAK,IAAK,IAAK,IAAK,IAAI,CAQ9F,SAAS,EAAS,CAAC,CAAE,CAAC,EAClB,IAAI,EAAI,CAAC,CAAC,EAAE,CACR,EAAI,CAAC,CAAC,EAAE,CACR,EAAI,CAAC,CAAC,EAAE,CACR,EAAI,CAAC,CAAC,EAAE,CAEZ,GAAK,AAAC,GAAI,EAAI,CAAC,EAAI,GAAK,CAAC,CAAC,EAAE,CAAG,WAAY,EAE3C,GAAK,AAAC,CADN,GAAK,AAAC,IAAK,EAAI,IAAM,EAAC,EAAK,EAAI,GACrB,EAAI,CAAC,EAAI,GAAK,CAAC,CAAC,EAAE,CAAG,WAAY,EAE3C,GAAK,AAAC,CADN,GAAK,AAAC,IAAK,GAAK,IAAM,EAAC,EAAK,EAAI,GACtB,EAAI,CAAC,EAAI,GAAK,CAAC,CAAC,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YAAY,AAAD,EAA+B,KAAK,EAAI,EAAG,aAAa,CACjG,EAAa,EAAQ,OAAO,CAClC,GAAI,CAACA,GAAiB,CAAC,EACnB,OAEJ,GAAM,CAAE,aAAc,EAAK,EAAE,CAAE,GAAG,EAAY,CAAG,EACjD,MAAO,CACH,WAAY,CACR,IAAKA,CACT,EACA,KAAM,CACF,IAAK,EAAQ,OAAO,AACxB,EACA,QAAS,CACL,IAAK,CACT,EACA,QAAS,CACL,KACA,YACJ,CACJ,CACJ,ED0FkD,EALf,CACvB,GAAGf,CAAiB,CACpB,QAAS,EACT,aAAc,MAAC,GAAKA,EAAkB,YAAY,AAAD,EAA+B,EAAK,CAAC,CAC1F,EAEA,AAAI,EAAC,GAGuB,OAAC,GAAK,IAAI,CAAC,aAAa,AAAD,EAA+B,KAAK,EAAI,EAAG,GAAG,CAAC,EAAa,GAI3G,IAAI,CAAC,OAAO,CAAC,eAAe,CAAC,cAAc,GAC3C,IAAI,CAAC,OAAO,CAAC,eAAe,CAAC,OAAO,CAAC,CAAE,GAAG,CAAa,CAAE,WAAU,GACnE,MAAC,GAAK,IAAI,CAAC,aAAa,AAAD,GAAwC,EAAG,GAAG,CAAC,GAE9E,CACJ,C"} \ No newline at end of file diff --git a/vendor/package.json b/vendor/package.json index e96536043d7..1a04cbcef78 100644 --- a/vendor/package.json +++ b/vendor/package.json @@ -4,7 +4,6 @@ "postinstall": "rspack" }, "dependencies": { - "@datadog/openfeature-node-server": "^0.2.0", "@datadog/sketches-js": "2.1.1", "@isaacs/ttlcache": "^2.0.1", "@opentelemetry/core": ">=1.14.0 <1.31.0", diff --git a/vendor/yarn.lock b/vendor/yarn.lock index c3579e49a9f..f7afbd04ea1 100644 --- a/vendor/yarn.lock +++ b/vendor/yarn.lock @@ -2,21 +2,6 @@ # yarn lockfile v1 -"@datadog/flagging-core@0.2.0": - version "0.2.0" - resolved "https://registry.yarnpkg.com/@datadog/flagging-core/-/flagging-core-0.2.0.tgz#d29d81486068b870c41cebb2524721a71184eb16" - integrity sha512-DocYjr8NFJZfsnqzu3MuBUNqgbJquq1doimkKEXI5UImLmz/tR0LO09dd651pBhoz1Pa4SKcnPaxWFLTqxWtsA== - dependencies: - spark-md5 "^3.0.2" - -"@datadog/openfeature-node-server@^0.2.0": - version "0.2.0" - resolved "https://registry.yarnpkg.com/@datadog/openfeature-node-server/-/openfeature-node-server-0.2.0.tgz#905032cc6d7d1eb1d6620aabe323ed552366d65a" - integrity sha512-Jn8lShFyqNji0tiKntLcCRwu3xrhg93fTTJS3gHSPKMfBDBKxjB9uF8Hu5Ayn2k0QuwJexx5atN9GSiWX0h5qg== - dependencies: - "@datadog/flagging-core" "0.2.0" - "@openfeature/server-sdk" "~1.18.0" - "@datadog/sketches-js@2.1.1": version "2.1.1" resolved "https://registry.yarnpkg.com/@datadog/sketches-js/-/sketches-js-2.1.1.tgz#9ec2251b3c932b4f43e1d164461fa6cb6f28b7d0" @@ -166,11 +151,6 @@ "@emnapi/runtime" "^1.5.0" "@tybys/wasm-util" "^0.10.1" -"@openfeature/server-sdk@~1.18.0": - version "1.18.0" - resolved "https://registry.yarnpkg.com/@openfeature/server-sdk/-/server-sdk-1.18.0.tgz#5fed5f1d0900b2535878db18a78295bbaebb997b" - integrity sha512-uP8nqEGBS58s3iWXx6d8vnJ6ZVt3DACJL4PWADOAuwIS4xXpID91783e9f6zQ0i1ijQpj3yx+3ZuCB2LfQMUMA== - "@opentelemetry/core@1.30.1", "@opentelemetry/core@>=1.14.0 <1.31.0": version "1.30.1" resolved "https://registry.yarnpkg.com/@opentelemetry/core/-/core-1.30.1.tgz#a0b468bb396358df801881709ea38299fc30ab27" @@ -1765,11 +1745,6 @@ source-map@^0.7.4: resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.7.6.tgz#a3658ab87e5b6429c8a1f3ba0083d4c61ca3ef02" integrity sha512-i5uvt8C3ikiWeNZSVZNWcfZPItFQOsYTUAOkcUPGd8DqDy1uOUikjt5dG+uRlwyvR108Fb9DOd4GvXfT0N2/uQ== -spark-md5@^3.0.2: - version "3.0.2" - resolved "https://registry.yarnpkg.com/spark-md5/-/spark-md5-3.0.2.tgz#7952c4a30784347abcee73268e473b9c0167e3fc" - integrity sha512-wcFzz9cDfbuqe0FZzfi2or1sgyIrsDwmPwfZC4hiNidPdPINjeUwNfv5kldczoEAcjl9Y1L3SM7Uz2PUEQzxQw== - spdy-transport@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/spdy-transport/-/spdy-transport-3.0.0.tgz#00d4863a6400ad75df93361a1608605e5dcdcf31" diff --git a/yarn.lock b/yarn.lock index 7ef12d34ce9..cc81dd94f47 100644 --- a/yarn.lock +++ b/yarn.lock @@ -204,6 +204,13 @@ "@babel/helper-string-parser" "^7.27.1" "@babel/helper-validator-identifier" "^7.28.5" +"@datadog/flagging-core@0.2.0": + version "0.2.0" + resolved "https://registry.yarnpkg.com/@datadog/flagging-core/-/flagging-core-0.2.0.tgz#d29d81486068b870c41cebb2524721a71184eb16" + integrity sha512-DocYjr8NFJZfsnqzu3MuBUNqgbJquq1doimkKEXI5UImLmz/tR0LO09dd651pBhoz1Pa4SKcnPaxWFLTqxWtsA== + dependencies: + spark-md5 "^3.0.2" + "@datadog/libdatadog@0.7.0": version "0.7.0" resolved "https://registry.yarnpkg.com/@datadog/libdatadog/-/libdatadog-0.7.0.tgz#81e07d3040c628892db697ccd01ae3c4d2a76315" @@ -231,6 +238,14 @@ node-addon-api "^6.1.0" node-gyp-build "^3.9.0" +"@datadog/openfeature-node-server@^0.2.0": + version "0.2.0" + resolved "https://registry.yarnpkg.com/@datadog/openfeature-node-server/-/openfeature-node-server-0.2.0.tgz#905032cc6d7d1eb1d6620aabe323ed552366d65a" + integrity sha512-Jn8lShFyqNji0tiKntLcCRwu3xrhg93fTTJS3gHSPKMfBDBKxjB9uF8Hu5Ayn2k0QuwJexx5atN9GSiWX0h5qg== + dependencies: + "@datadog/flagging-core" "0.2.0" + "@openfeature/server-sdk" "~1.18.0" + "@datadog/pprof@5.12.0": version "5.12.0" resolved "https://registry.yarnpkg.com/@datadog/pprof/-/pprof-5.12.0.tgz#1f0a592aec5ea3a48ad795d069e8a925d21667db" @@ -662,6 +677,11 @@ resolved "https://registry.yarnpkg.com/@openfeature/core/-/core-1.9.1.tgz#9925a04ed0745e92dd7b3793b35cff1ed89d54c1" integrity sha512-YySPtH4s/rKKnHRU0xyFGrqMU8XA+OIPNWDrlEFxE6DCVWCIrxE5YpiB94YD2jMFn6SSdA0cwQ8vLkCkl8lm8A== +"@openfeature/server-sdk@~1.18.0": + version "1.18.0" + resolved "https://registry.yarnpkg.com/@openfeature/server-sdk/-/server-sdk-1.18.0.tgz#5fed5f1d0900b2535878db18a78295bbaebb997b" + integrity sha512-uP8nqEGBS58s3iWXx6d8vnJ6ZVt3DACJL4PWADOAuwIS4xXpID91783e9f6zQ0i1ijQpj3yx+3ZuCB2LfQMUMA== + "@openfeature/server-sdk@~1.20.0": version "1.20.0" resolved "https://registry.yarnpkg.com/@openfeature/server-sdk/-/server-sdk-1.20.0.tgz#43a5d3cffd915742ff64eeef53b7132279df4823" @@ -4343,6 +4363,11 @@ source-map@^0.7.4: resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.7.6.tgz#a3658ab87e5b6429c8a1f3ba0083d4c61ca3ef02" integrity sha512-i5uvt8C3ikiWeNZSVZNWcfZPItFQOsYTUAOkcUPGd8DqDy1uOUikjt5dG+uRlwyvR108Fb9DOd4GvXfT0N2/uQ== +spark-md5@^3.0.2: + version "3.0.2" + resolved "https://registry.yarnpkg.com/spark-md5/-/spark-md5-3.0.2.tgz#7952c4a30784347abcee73268e473b9c0167e3fc" + integrity sha512-wcFzz9cDfbuqe0FZzfi2or1sgyIrsDwmPwfZC4hiNidPdPINjeUwNfv5kldczoEAcjl9Y1L3SM7Uz2PUEQzxQw== + spawn-wrap@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/spawn-wrap/-/spawn-wrap-2.0.0.tgz#103685b8b8f9b79771318827aa78650a610d457e" From 11b56b56ab38ac653ec329cfefe305255facde85 Mon Sep 17 00:00:00 2001 From: rochdev Date: Tue, 9 Dec 2025 14:39:27 -0500 Subject: [PATCH 83/95] code cleanup --- packages/datadog-plugin-graphql/src/execute.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/datadog-plugin-graphql/src/execute.js b/packages/datadog-plugin-graphql/src/execute.js index 013b3cec5d8..a6435f20bde 100644 --- a/packages/datadog-plugin-graphql/src/execute.js +++ b/packages/datadog-plugin-graphql/src/execute.js @@ -66,7 +66,7 @@ function addVariableTags (config, span, variableValues) { span.addTags(tags) } -function getSignature (document, operationName, operationType, calculate, self) { +function getSignature (document, operationName, operationType, calculate) { if (calculate !== false && tools !== false) { try { try { From 2c3682dbe937b935d48577cd4d7edf1706421651 Mon Sep 17 00:00:00 2001 From: rochdev Date: Tue, 9 Dec 2025 14:50:45 -0500 Subject: [PATCH 84/95] use shared and hidden global for graphql tools --- .../datadog-instrumentations/src/graphql.js | 8 +++++--- .../src/tools/transforms.js | 18 +++++++++++------- 2 files changed, 16 insertions(+), 10 deletions(-) diff --git a/packages/datadog-instrumentations/src/graphql.js b/packages/datadog-instrumentations/src/graphql.js index 43280d687a2..88f23e11291 100644 --- a/packages/datadog-instrumentations/src/graphql.js +++ b/packages/datadog-instrumentations/src/graphql.js @@ -6,6 +6,8 @@ const { } = require('./helpers/instrument') const shimmer = require('../../datadog-shimmer') +const ddGlobal = globalThis[Symbol.for('dd-trace')] ??= {} + /** cached objects */ const contexts = new WeakMap() @@ -365,16 +367,16 @@ addHook({ name: 'graphql', file: 'language/printer.js', versions: ['>=0.10'] }, // HACK: It's possible `graphql` is loaded before `@apollo/gateway` so we // can't use a channel as the latter plugin would load after the publish // happened. Not sure how to handle this so for now use a global. - globalThis._dd_graphql_printer = printer + ddGlobal.graphql_printer = printer return printer }) addHook({ name: 'graphql', file: 'language/visitor.js', versions: ['>=0.10'] }, visitor => { - globalThis._dd_graphql_visitor = visitor + ddGlobal.graphql_visitor = visitor return visitor }) addHook({ name: 'graphql', file: 'utilities/index.js', versions: ['>=0.10'] }, utilities => { - globalThis._dd_graphql_utilities = utilities + ddGlobal.graphql_utilities = utilities return utilities }) diff --git a/packages/datadog-plugin-graphql/src/tools/transforms.js b/packages/datadog-plugin-graphql/src/tools/transforms.js index 2d178498417..4a54af101b0 100644 --- a/packages/datadog-plugin-graphql/src/tools/transforms.js +++ b/packages/datadog-plugin-graphql/src/tools/transforms.js @@ -5,9 +5,13 @@ var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); +const ddGlobal = globalThis[Symbol.for('dd-trace')]; +const visitor_1 = ddGlobal.graphql_visitor; +const printer_1 = ddGlobal.graphql_printer; +const utilities_1 = ddGlobal.graphql_utilities; const lodash_sortby_1 = __importDefault(require("lodash.sortby")); function hideLiterals(ast) { - return globalThis._dd_graphql_visitor.visit(ast, { + return visitor_1.visit(ast, { IntValue(node) { return Object.assign({}, node, { value: "0" }); }, @@ -27,7 +31,7 @@ function hideLiterals(ast) { } exports.hideLiterals = hideLiterals; function hideStringAndNumericLiterals(ast) { - return globalThis._dd_graphql_visitor.visit(ast, { + return visitor_1.visit(ast, { IntValue(node) { return Object.assign({}, node, { value: "0" }); }, @@ -41,7 +45,7 @@ function hideStringAndNumericLiterals(ast) { } exports.hideStringAndNumericLiterals = hideStringAndNumericLiterals; function dropUnusedDefinitions(ast, operationName) { - const separated = globalThis._dd_graphql_utilities.separateOperations(ast)[operationName]; + const separated = utilities_1.separateOperations(ast)[operationName]; if (!separated) { return ast; } @@ -55,7 +59,7 @@ function sorted(items) { return undefined; } function sortAST(ast) { - return globalThis._dd_graphql_visitor.visit(ast, { + return visitor_1.visit(ast, { OperationDefinition(node) { return Object.assign({}, node, { variableDefinitions: sorted(node.variableDefinitions, "variable.name.value") }); }, @@ -81,7 +85,7 @@ function sortAST(ast) { } exports.sortAST = sortAST; function removeAliases(ast) { - return globalThis._dd_graphql_visitor.visit(ast, { + return visitor_1.visit(ast, { Field(node) { return Object.assign({}, node, { alias: undefined }); } @@ -89,12 +93,12 @@ function removeAliases(ast) { } exports.removeAliases = removeAliases; function printWithReducedWhitespace(ast) { - const sanitizedAST = globalThis._dd_graphql_visitor.visit(ast, { + const sanitizedAST = visitor_1.visit(ast, { StringValue(node) { return Object.assign({}, node, { value: Buffer.from(node.value, "utf8").toString("hex"), block: false }); } }); - const withWhitespace = globalThis._dd_graphql_printer.print(sanitizedAST); + const withWhitespace = printer_1.print(sanitizedAST); const minimizedButStillHex = withWhitespace .replace(/\s+/g, " ") .replace(/([^_a-zA-Z0-9]) /g, (_, c) => c) From d3b6c9ebc98a2732ca91ca380837de18db747a9f Mon Sep 17 00:00:00 2001 From: rochdev Date: Tue, 9 Dec 2025 16:40:23 -0500 Subject: [PATCH 85/95] add comment --- packages/datadog-esbuild/index.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/datadog-esbuild/index.js b/packages/datadog-esbuild/index.js index 7d9a2fad4a5..51197364985 100644 --- a/packages/datadog-esbuild/index.js +++ b/packages/datadog-esbuild/index.js @@ -270,7 +270,10 @@ ${build.initialOptions.banner.js}` } } } catch { - // Skip vendored dependencies which never have a `package.json`. + // Skip vendored dependencies which never have a `package.json`. This + // will use the default resolve logic of ESBuild which is what we want + // since those files should be treated as regular files and not modules + // even though they are in a `node_modules` folder. } } }) From 8d56371db9322c08457a0ef273a63d586342bd9d Mon Sep 17 00:00:00 2001 From: rochdev Date: Tue, 9 Dec 2025 16:50:12 -0500 Subject: [PATCH 86/95] code cleanup and add comment --- vendor/rspack.config.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vendor/rspack.config.js b/vendor/rspack.config.js index 09b5981cd88..9daf3c1aec7 100644 --- a/vendor/rspack.config.js +++ b/vendor/rspack.config.js @@ -4,6 +4,8 @@ // version with an instrumentation. // TODO: Stop depending on `@openfeature/server-sdk` and `@openfeature/core` and // instead intercept the user version with an instrumentation. +// TODO: Vendor `@datadog/openfeature-node-server` when the above has been +// addressed. // TODO: Fix `import-in-the-middle` so that it doesn't interfere with the global // object or switch to our own internal loader and remove the dependency. // TODO: Vendor `dc-polyfill` and figure out why it fails the tests. @@ -43,8 +45,6 @@ module.exports = { }, // These are shared between dd-trace and users, so they need to be external. externals: { - '@openfeature/core': '@openfeature/core', - '@openfeature/server-sdk': '@openfeature/server-sdk', '@opentelemetry/api': '@opentelemetry/api' }, plugins: [ From 77e521f8dcb8a90145c0ee183d4f4508226fa048 Mon Sep 17 00:00:00 2001 From: rochdev Date: Tue, 9 Dec 2025 16:54:41 -0500 Subject: [PATCH 87/95] fix 3rd party licenses and add missing eslint ignore --- LICENSE-3rdparty.csv | 1 - packages/datadog-esbuild/index.js | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/LICENSE-3rdparty.csv b/LICENSE-3rdparty.csv index c7d556e43c3..f93cfaff60d 100644 --- a/LICENSE-3rdparty.csv +++ b/LICENSE-3rdparty.csv @@ -11,7 +11,6 @@ "@isaacs/ttlcache","https://github.com/isaacs/ttlcache","['BlueOak-1.0.0']","['Isaac Z. Schlueter']" "@jsep-plugin/assignment","https://github.com/EricSmekens/jsep","['MIT']","['Shelly']" "@jsep-plugin/regex","https://github.com/EricSmekens/jsep","['MIT']","['Shelly']" -"@openfeature/core","https://github.com/open-feature/js-sdk","['Apache-2.0']","['open-feature']" "@openfeature/server-sdk","https://github.com/open-feature/js-sdk","['Apache-2.0']","['open-feature']" "@opentelemetry/api","https://github.com/open-telemetry/opentelemetry-js","['Apache-2.0']","['OpenTelemetry Authors']" "@opentelemetry/api-logs","https://github.com/open-telemetry/opentelemetry-js","['Apache-2.0']","['OpenTelemetry Authors']" diff --git a/packages/datadog-esbuild/index.js b/packages/datadog-esbuild/index.js index 51197364985..5399d22cbb5 100644 --- a/packages/datadog-esbuild/index.js +++ b/packages/datadog-esbuild/index.js @@ -114,6 +114,7 @@ ${build.initialOptions.banner.js}` } try { + // eslint-disable-next-line n/no-unpublished-require require.resolve('@openfeature/core') } catch (error) { build.initialOptions.external ??= [] From 8b5d0625eeaa37da8ca9e9a2025b62a2f0b592bd Mon Sep 17 00:00:00 2001 From: rochdev Date: Wed, 10 Dec 2025 09:47:42 -0500 Subject: [PATCH 88/95] code cleanup --- scripts/check_licenses.js | 17 ++--------------- 1 file changed, 2 insertions(+), 15 deletions(-) diff --git a/scripts/check_licenses.js b/scripts/check_licenses.js index 7d86a14c366..4fe923b662f 100644 --- a/scripts/check_licenses.js +++ b/scripts/check_licenses.js @@ -41,20 +41,6 @@ function getProdDeps () { // Add root package (dd-trace) to the set of dependencies manually as it is not included in the yarn list output. const deps = new Set([rootPackageName]) - // Use yarn to get full tree of production (non-dev) dependencies (format is ndjson) - const stdout = execSync('yarn list --production --json', { - encoding: 'utf8', - stdio: ['ignore', 'pipe', 'inherit'] - }) - - for (const line of stdout.split('\n')) { - if (!line) continue - const parsed = JSON.parse(line) - if (parsed.type === 'tree' && parsed.data && Array.isArray(parsed.data.trees)) { - collectFromTrees(parsed.data.trees, deps) - } - } - addProdDeps(deps, process.cwd()) addProdDeps(deps, join(process.cwd(), 'vendor')) @@ -65,6 +51,7 @@ function getProdDeps () { } function addProdDeps (deps, cwd) { + // Use yarn to get full tree of production (non-dev) dependencies (format is ndjson) const stdout = execSync('yarn list --production --json', { encoding: 'utf8', stdio: ['ignore', 'pipe', 'inherit'], @@ -74,7 +61,7 @@ function addProdDeps (deps, cwd) { for (const line of stdout.split('\n')) { if (!line) continue const parsed = JSON.parse(line) - if (parsed.type === 'tree' && parsed.data && Array.isArray(parsed.data.trees)) { + if (parsed.type === 'tree' && Array.isArray(parsed.data?.trees)) { collectFromTrees(parsed.data.trees, deps) } } From 199a698ecb3ad41ab1ec1699e154054c90a83a14 Mon Sep 17 00:00:00 2001 From: rochdev Date: Wed, 10 Dec 2025 10:29:38 -0500 Subject: [PATCH 89/95] normalize dependabot lag time --- .github/dependabot.yml | 37 +++++++++++++++++++++++++++++++++++-- 1 file changed, 35 insertions(+), 2 deletions(-) diff --git a/.github/dependabot.yml b/.github/dependabot.yml index d1fec1c3e6e..e9719844caf 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -92,7 +92,38 @@ updates: - "minor" - "patch" - # Instrumented library support range + # OTEL in our supported ranges + - package-ecosystem: "npm" + directories: + - "/" + schedule: + interval: "weekly" + open-pull-requests-limit: 1 + cooldown: + default-days: 5 + # Widen range across major versions, if possible. Ignore / manually update otherwise. + versioning-strategy: "widen" + labels: + - dependabot + - dependencies + - javascript + - semver-patch + - OTEL + ignore: + - dependency-name: "@opentelemetry/core" + # 2.0.0 onwards only supports Node.js 18.19.0 and above + update-types: ["version-update:semver-major"] + - dependency-name: "@opentelemetry/resources" + # 2.0.0 onwards only supports Node.js 18.19.0 and above + update-types: ["version-update:semver-major"] + allow: + - dependency-name: "@opentelemetry/*" + groups: + otel-dependencies: + patterns: + - "*" + + # Vendored dependencies - package-ecosystem: "npm" directories: - "/vendor" @@ -100,7 +131,7 @@ updates: interval: "weekly" open-pull-requests-limit: 100 cooldown: - default-days: 1 + default-days: 5 labels: - dependabot - dependencies @@ -134,6 +165,8 @@ updates: update-types: - "minor" - "patch" + + # Instrumented library support range - package-ecosystem: "npm" directories: - "/packages/dd-trace/test/plugins/versions" From 5f29f96dc8ea845f6c501115ef0be01bd9b168a6 Mon Sep 17 00:00:00 2001 From: rochdev Date: Wed, 10 Dec 2025 11:00:20 -0500 Subject: [PATCH 90/95] only include ts definition files and not source files --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 73c5ae9901a..f2399233e9f 100644 --- a/package.json +++ b/package.json @@ -116,7 +116,7 @@ "packages/*/lib/**/*", "packages/*/src/**/*", "packages/node_modules/**/*.js", - "packages/node_modules/**/*.ts", + "packages/node_modules/**/*.d.ts", "packages/node_modules/**/*.wasm", "packages/node_modules/**/LICENSE", "packages/datadog-instrumentations/orchestrion.yml", From 01427979b5dc70583fba459b5243144c38237718 Mon Sep 17 00:00:00 2001 From: rochdev Date: Wed, 10 Dec 2025 11:01:03 -0500 Subject: [PATCH 91/95] code cleanup --- packages/datadog-plugin-graphql/src/execute.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/datadog-plugin-graphql/src/execute.js b/packages/datadog-plugin-graphql/src/execute.js index a6435f20bde..ede87f96f2e 100644 --- a/packages/datadog-plugin-graphql/src/execute.js +++ b/packages/datadog-plugin-graphql/src/execute.js @@ -21,7 +21,7 @@ class GraphQLExecutePlugin extends TracingPlugin { const span = this.startSpan(this.operationName(), { service: this.config.service || this.serviceName(), - resource: getSignature(document, name, type, this.config.signature, this), + resource: getSignature(document, name, type, this.config.signature), kind: this.constructor.kind, type: this.constructor.type, meta: { From 8a6fc0dda5fd06e6ec1c7c17ca85b5571b55ed4e Mon Sep 17 00:00:00 2001 From: rochdev Date: Wed, 10 Dec 2025 11:01:50 -0500 Subject: [PATCH 92/95] remove unnecessary cleanup of license files --- .github/workflows/platform.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/platform.yml b/.github/workflows/platform.yml index 4fca4214403..1c1d9380eb6 100644 --- a/.github/workflows/platform.yml +++ b/.github/workflows/platform.yml @@ -68,8 +68,6 @@ jobs: # Running `yarn` also automatically runs `rspack` as a postinstall script. - run: yarn --frozen-lockfile working-directory: vendor - # Licenses are pulled from internet and not deterministic so revert them. - - run: git checkout packages/node_modules/**/*/LICENSE - run: git diff --exit-code core: From 728004dcf4979741648791a0b256fa533c34a0e1 Mon Sep 17 00:00:00 2001 From: rochdev Date: Wed, 10 Dec 2025 11:04:51 -0500 Subject: [PATCH 93/95] hide implementation detail of regexp-escape bundle --- loader-hook.mjs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/loader-hook.mjs b/loader-hook.mjs index 81e7f031b22..264039dcce0 100644 --- a/loader-hook.mjs +++ b/loader-hook.mjs @@ -1,8 +1,10 @@ -import regexpEscape from './packages/node_modules/escape-string-regexp/index.js' +import regexpEscapeModule from './packages/node_modules/escape-string-regexp/index.js' import * as iitm from 'import-in-the-middle/hook.mjs' import hooks from './packages/datadog-instrumentations/src/helpers/hooks.js' import configHelper from './packages/dd-trace/src/config-helper.js' +const regexpEscape = regexpEscapeModule.default + // For some reason `getEnvironmentVariable` is not otherwise available to ESM. const env = configHelper.getEnvironmentVariable @@ -33,7 +35,7 @@ function addSecurityControls (data) { .map(sc => sc.trim()) for (const subpath of securityControls) { - data.include.push(new RegExp(regexpEscape.default(subpath))) + data.include.push(new RegExp(regexpEscape(subpath))) } } From bfd14168e4227f03cff41adbb266b9c4908d23ad Mon Sep 17 00:00:00 2001 From: rochdev Date: Wed, 10 Dec 2025 11:12:57 -0500 Subject: [PATCH 94/95] add logging when package.json is skipped with esbuild --- packages/datadog-esbuild/index.js | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/packages/datadog-esbuild/index.js b/packages/datadog-esbuild/index.js index 5399d22cbb5..ea1279e0270 100644 --- a/packages/datadog-esbuild/index.js +++ b/packages/datadog-esbuild/index.js @@ -270,11 +270,21 @@ ${build.initialOptions.banner.js}` isESM } } - } catch { + } catch (e) { // Skip vendored dependencies which never have a `package.json`. This // will use the default resolve logic of ESBuild which is what we want // since those files should be treated as regular files and not modules // even though they are in a `node_modules` folder. + if (e.code === 'ENOENT') { + if (DEBUG) { + console.log([ + 'Skipping `package.json` lookup.', + 'This usually means the package was vendored but could indicate an issue otherwise.' + ].join(' ')) + } + } else { + throw e + } } } }) From 5bf77bd01480b625f0870516b29b26aff816e4f7 Mon Sep 17 00:00:00 2001 From: rochdev Date: Thu, 11 Dec 2025 12:08:58 -0500 Subject: [PATCH 95/95] fix dependabot config --- .github/dependabot.yml | 31 ------------------------------- 1 file changed, 31 deletions(-) diff --git a/.github/dependabot.yml b/.github/dependabot.yml index e9719844caf..508a6232c72 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -92,37 +92,6 @@ updates: - "minor" - "patch" - # OTEL in our supported ranges - - package-ecosystem: "npm" - directories: - - "/" - schedule: - interval: "weekly" - open-pull-requests-limit: 1 - cooldown: - default-days: 5 - # Widen range across major versions, if possible. Ignore / manually update otherwise. - versioning-strategy: "widen" - labels: - - dependabot - - dependencies - - javascript - - semver-patch - - OTEL - ignore: - - dependency-name: "@opentelemetry/core" - # 2.0.0 onwards only supports Node.js 18.19.0 and above - update-types: ["version-update:semver-major"] - - dependency-name: "@opentelemetry/resources" - # 2.0.0 onwards only supports Node.js 18.19.0 and above - update-types: ["version-update:semver-major"] - allow: - - dependency-name: "@opentelemetry/*" - groups: - otel-dependencies: - patterns: - - "*" - # Vendored dependencies - package-ecosystem: "npm" directories: