@sentio/runtime 2.62.0-rc.1 → 2.62.0-rc.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/{chunk-XO4AFKZ6.js → chunk-K56YKGVF.js} +416 -2087
- package/lib/chunk-K56YKGVF.js.map +1 -0
- package/lib/chunk-KVSDPGUI.js +50 -0
- package/lib/chunk-KVSDPGUI.js.map +1 -0
- package/lib/chunk-L2A6JPIQ.js +21 -0
- package/lib/chunk-L2A6JPIQ.js.map +1 -0
- package/lib/{chunk-4M76KZSL.js → chunk-NR3YQ5NY.js} +13 -54
- package/lib/{chunk-4M76KZSL.js.map → chunk-NR3YQ5NY.js.map} +1 -1
- package/lib/{chunk-DPHTMNDV.js → chunk-PCB4OKW7.js} +2 -2
- package/lib/chunk-W3VN25ER.js +1703 -0
- package/lib/chunk-W3VN25ER.js.map +1 -0
- package/lib/getMachineId-bsd-WJ6BLVOD.js +41 -0
- package/lib/getMachineId-bsd-WJ6BLVOD.js.map +1 -0
- package/lib/getMachineId-darwin-TW74DVT5.js +41 -0
- package/lib/getMachineId-darwin-TW74DVT5.js.map +1 -0
- package/lib/getMachineId-linux-MDJOKOMI.js +33 -0
- package/lib/getMachineId-linux-MDJOKOMI.js.map +1 -0
- package/lib/getMachineId-unsupported-X2EJZ25K.js +24 -0
- package/lib/getMachineId-unsupported-X2EJZ25K.js.map +1 -0
- package/lib/getMachineId-win-VE7DMTAF.js +43 -0
- package/lib/getMachineId-win-VE7DMTAF.js.map +1 -0
- package/lib/index.js +4 -2
- package/lib/index.js.map +1 -1
- package/lib/processor-runner.js +5251 -10219
- package/lib/processor-runner.js.map +1 -1
- package/lib/service-worker.js +5 -3
- package/lib/service-worker.js.map +1 -1
- package/lib/test-processor.test.js.map +1 -1
- package/package.json +2 -2
- package/src/otlp.ts +5 -6
- package/lib/chunk-XO4AFKZ6.js.map +0 -1
- /package/lib/{chunk-DPHTMNDV.js.map → chunk-PCB4OKW7.js.map} +0 -0
@@ -6,12 +6,6 @@ import {
|
|
6
6
|
ProcessResult,
|
7
7
|
ProcessResult2,
|
8
8
|
StateResult,
|
9
|
-
__commonJS,
|
10
|
-
__esm,
|
11
|
-
__export,
|
12
|
-
__require,
|
13
|
-
__toCommonJS,
|
14
|
-
__toESM,
|
15
9
|
require_aspromise,
|
16
10
|
require_index_minimal,
|
17
11
|
require_inquire,
|
@@ -21,7 +15,19 @@ import {
|
|
21
15
|
require_roots,
|
22
16
|
require_rpc,
|
23
17
|
require_writer
|
24
|
-
} from "./chunk-
|
18
|
+
} from "./chunk-NR3YQ5NY.js";
|
19
|
+
import {
|
20
|
+
init_esm,
|
21
|
+
metrics
|
22
|
+
} from "./chunk-W3VN25ER.js";
|
23
|
+
import {
|
24
|
+
__commonJS,
|
25
|
+
__esm,
|
26
|
+
__export,
|
27
|
+
__require,
|
28
|
+
__toCommonJS,
|
29
|
+
__toESM
|
30
|
+
} from "./chunk-KVSDPGUI.js";
|
25
31
|
|
26
32
|
// ../../node_modules/.pnpm/universalify@2.0.1/node_modules/universalify/index.js
|
27
33
|
var require_universalify = __commonJS({
|
@@ -480,8 +486,8 @@ var require_graceful_fs = __commonJS({
|
|
480
486
|
}
|
481
487
|
function noop() {
|
482
488
|
}
|
483
|
-
function publishQueue(
|
484
|
-
Object.defineProperty(
|
489
|
+
function publishQueue(context, queue2) {
|
490
|
+
Object.defineProperty(context, gracefulQueue, {
|
485
491
|
get: function() {
|
486
492
|
return queue2;
|
487
493
|
}
|
@@ -2386,12 +2392,12 @@ var require_logging = __commonJS({
|
|
2386
2392
|
}
|
2387
2393
|
}
|
2388
2394
|
var allEnabled = enabledTracers.has("all");
|
2389
|
-
function
|
2395
|
+
function trace(severity, tracer, text) {
|
2390
2396
|
if (isTracerEnabled(tracer)) {
|
2391
2397
|
(0, exports.log)(severity, (/* @__PURE__ */ new Date()).toISOString() + " | v" + clientVersion + " " + process_1.pid + " | " + tracer + " | " + text);
|
2392
2398
|
}
|
2393
2399
|
}
|
2394
|
-
exports.trace =
|
2400
|
+
exports.trace = trace;
|
2395
2401
|
function isTracerEnabled(tracer) {
|
2396
2402
|
return !disabledTracers.has(tracer) && (allEnabled || enabledTracers.has(tracer));
|
2397
2403
|
}
|
@@ -3982,7 +3988,7 @@ var require_resolving_load_balancer = __commonJS({
|
|
3982
3988
|
var uri_parser_1 = require_uri_parser();
|
3983
3989
|
var load_balancer_child_handler_1 = require_load_balancer_child_handler();
|
3984
3990
|
var TRACER_NAME = "resolving_load_balancer";
|
3985
|
-
function
|
3991
|
+
function trace(text) {
|
3986
3992
|
logging.trace(constants_2.LogVerbosity.DEBUG, TRACER_NAME, text);
|
3987
3993
|
}
|
3988
3994
|
var NAME_MATCH_LEVEL_ORDER = [
|
@@ -4082,7 +4088,7 @@ var require_resolving_load_balancer = __commonJS({
|
|
4082
4088
|
createSubchannel: channelControlHelper.createSubchannel.bind(channelControlHelper),
|
4083
4089
|
requestReresolution: () => {
|
4084
4090
|
if (this.backoffTimeout.isRunning()) {
|
4085
|
-
|
4091
|
+
trace("requestReresolution delayed by backoff timer until " + this.backoffTimeout.getEndTime().toISOString());
|
4086
4092
|
this.continueResolving = true;
|
4087
4093
|
} else {
|
4088
4094
|
this.updateResolution();
|
@@ -4157,7 +4163,7 @@ var require_resolving_load_balancer = __commonJS({
|
|
4157
4163
|
this.backoffTimeout.runOnce();
|
4158
4164
|
}
|
4159
4165
|
updateState(connectivityState, picker) {
|
4160
|
-
|
4166
|
+
trace((0, uri_parser_1.uriToString)(this.target) + " " + connectivity_state_1.ConnectivityState[this.currentState] + " -> " + connectivity_state_1.ConnectivityState[connectivityState]);
|
4161
4167
|
if (connectivityState === connectivity_state_1.ConnectivityState.IDLE) {
|
4162
4168
|
picker = new picker_1.QueuePicker(this, picker);
|
4163
4169
|
}
|
@@ -4548,7 +4554,7 @@ function throwIteratorAccessError() {
|
|
4548
4554
|
throw new RangeError("Iterator access denied!");
|
4549
4555
|
}
|
4550
4556
|
var extendStatics, TreeNode, TreeNodeEnableIndex, ContainerIterator, Base, Container, TreeContainer, TreeIterator, OrderedMapIterator, OrderedMap;
|
4551
|
-
var
|
4557
|
+
var init_esm2 = __esm({
|
4552
4558
|
"../../node_modules/.pnpm/@js-sdsl+ordered-map@4.4.2/node_modules/@js-sdsl/ordered-map/dist/esm/index.js"() {
|
4553
4559
|
"use strict";
|
4554
4560
|
extendStatics = function(e, r) {
|
@@ -5496,14 +5502,14 @@ ${callerStack}`;
|
|
5496
5502
|
}
|
5497
5503
|
_write(chunk, encoding, cb) {
|
5498
5504
|
var _a;
|
5499
|
-
const
|
5505
|
+
const context = {
|
5500
5506
|
callback: cb
|
5501
5507
|
};
|
5502
5508
|
const flags = Number(encoding);
|
5503
5509
|
if (!Number.isNaN(flags)) {
|
5504
|
-
|
5510
|
+
context.flags = flags;
|
5505
5511
|
}
|
5506
|
-
(_a = this.call) === null || _a === void 0 ? void 0 : _a.sendMessageWithContext(
|
5512
|
+
(_a = this.call) === null || _a === void 0 ? void 0 : _a.sendMessageWithContext(context, chunk);
|
5507
5513
|
}
|
5508
5514
|
_final(cb) {
|
5509
5515
|
var _a;
|
@@ -5532,14 +5538,14 @@ ${callerStack}`;
|
|
5532
5538
|
}
|
5533
5539
|
_write(chunk, encoding, cb) {
|
5534
5540
|
var _a;
|
5535
|
-
const
|
5541
|
+
const context = {
|
5536
5542
|
callback: cb
|
5537
5543
|
};
|
5538
5544
|
const flags = Number(encoding);
|
5539
5545
|
if (!Number.isNaN(flags)) {
|
5540
|
-
|
5546
|
+
context.flags = flags;
|
5541
5547
|
}
|
5542
|
-
(_a = this.call) === null || _a === void 0 ? void 0 : _a.sendMessageWithContext(
|
5548
|
+
(_a = this.call) === null || _a === void 0 ? void 0 : _a.sendMessageWithContext(context, chunk);
|
5543
5549
|
}
|
5544
5550
|
_final(cb) {
|
5545
5551
|
var _a;
|
@@ -5792,15 +5798,15 @@ var require_client_interceptors = __commonJS({
|
|
5792
5798
|
});
|
5793
5799
|
}
|
5794
5800
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
5795
|
-
sendMessageWithContext(
|
5801
|
+
sendMessageWithContext(context, message) {
|
5796
5802
|
this.processingMessage = true;
|
5797
5803
|
this.requester.sendMessage(message, (finalMessage) => {
|
5798
5804
|
this.processingMessage = false;
|
5799
5805
|
if (this.processingMetadata) {
|
5800
|
-
this.pendingMessageContext =
|
5806
|
+
this.pendingMessageContext = context;
|
5801
5807
|
this.pendingMessage = message;
|
5802
5808
|
} else {
|
5803
|
-
this.nextCall.sendMessageWithContext(
|
5809
|
+
this.nextCall.sendMessageWithContext(context, finalMessage);
|
5804
5810
|
this.processPendingHalfClose();
|
5805
5811
|
}
|
5806
5812
|
});
|
@@ -5848,7 +5854,7 @@ var require_client_interceptors = __commonJS({
|
|
5848
5854
|
return this.call.getPeer();
|
5849
5855
|
}
|
5850
5856
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
5851
|
-
sendMessageWithContext(
|
5857
|
+
sendMessageWithContext(context, message) {
|
5852
5858
|
let serialized;
|
5853
5859
|
try {
|
5854
5860
|
serialized = this.methodDefinition.requestSerialize(message);
|
@@ -5856,7 +5862,7 @@ var require_client_interceptors = __commonJS({
|
|
5856
5862
|
this.call.cancelWithStatus(constants_1.Status.INTERNAL, `Request message serialization failure: ${(0, error_1.getErrorMessage)(e)}`);
|
5857
5863
|
return;
|
5858
5864
|
}
|
5859
|
-
this.call.sendMessageWithContext(
|
5865
|
+
this.call.sendMessageWithContext(context, serialized);
|
5860
5866
|
}
|
5861
5867
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
5862
5868
|
sendMessage(message) {
|
@@ -9307,12 +9313,12 @@ var require_tokenize = __commonJS({
|
|
9307
9313
|
return Error("illegal " + subject + " (line " + line + ")");
|
9308
9314
|
}
|
9309
9315
|
function readString() {
|
9310
|
-
var
|
9311
|
-
|
9312
|
-
var match =
|
9316
|
+
var re = stringDelim === "'" ? stringSingleRe : stringDoubleRe;
|
9317
|
+
re.lastIndex = offset - 1;
|
9318
|
+
var match = re.exec(source);
|
9313
9319
|
if (!match)
|
9314
9320
|
throw illegal("string");
|
9315
|
-
offset =
|
9321
|
+
offset = re.lastIndex;
|
9316
9322
|
push(stringDelim);
|
9317
9323
|
stringDelim = null;
|
9318
9324
|
return unescape(match[1]);
|
@@ -12913,7 +12919,7 @@ var require_channelz = __commonJS({
|
|
12913
12919
|
Object.defineProperty(exports, "__esModule", { value: true });
|
12914
12920
|
exports.setup = exports.getChannelzServiceDefinition = exports.getChannelzHandlers = exports.unregisterChannelzRef = exports.registerChannelzSocket = exports.registerChannelzServer = exports.registerChannelzSubchannel = exports.registerChannelzChannel = exports.ChannelzCallTrackerStub = exports.ChannelzCallTracker = exports.ChannelzChildrenTrackerStub = exports.ChannelzChildrenTracker = exports.ChannelzTrace = exports.ChannelzTraceStub = void 0;
|
12915
12921
|
var net_1 = __require("net");
|
12916
|
-
var ordered_map_1 = (
|
12922
|
+
var ordered_map_1 = (init_esm2(), __toCommonJS(esm_exports));
|
12917
12923
|
var connectivity_state_1 = require_connectivity_state();
|
12918
12924
|
var constants_1 = require_constants();
|
12919
12925
|
var subchannel_address_1 = require_subchannel_address();
|
@@ -13813,7 +13819,7 @@ var require_resolver_dns = __commonJS({
|
|
13813
13819
|
var backoff_timeout_1 = require_backoff_timeout();
|
13814
13820
|
var environment_1 = require_environment();
|
13815
13821
|
var TRACER_NAME = "dns_resolver";
|
13816
|
-
function
|
13822
|
+
function trace(text) {
|
13817
13823
|
logging.trace(constants_2.LogVerbosity.DEBUG, TRACER_NAME, text);
|
13818
13824
|
}
|
13819
13825
|
exports.DEFAULT_PORT = 443;
|
@@ -13833,7 +13839,7 @@ var require_resolver_dns = __commonJS({
|
|
13833
13839
|
this.isServiceConfigEnabled = true;
|
13834
13840
|
this.returnedIpResult = false;
|
13835
13841
|
this.alternativeResolver = new dns_1.promises.Resolver();
|
13836
|
-
|
13842
|
+
trace("Resolver constructed for target " + (0, uri_parser_1.uriToString)(target));
|
13837
13843
|
if (target.authority) {
|
13838
13844
|
this.alternativeResolver.setServers([target.authority]);
|
13839
13845
|
}
|
@@ -13893,7 +13899,7 @@ var require_resolver_dns = __commonJS({
|
|
13893
13899
|
startResolution() {
|
13894
13900
|
if (this.ipResult !== null) {
|
13895
13901
|
if (!this.returnedIpResult) {
|
13896
|
-
|
13902
|
+
trace("Returning IP address for target " + (0, uri_parser_1.uriToString)(this.target));
|
13897
13903
|
setImmediate(() => {
|
13898
13904
|
this.listener.onSuccessfulResolution(this.ipResult, null, null, null, {});
|
13899
13905
|
});
|
@@ -13905,7 +13911,7 @@ var require_resolver_dns = __commonJS({
|
|
13905
13911
|
return;
|
13906
13912
|
}
|
13907
13913
|
if (this.dnsHostname === null) {
|
13908
|
-
|
13914
|
+
trace("Failed to parse DNS address " + (0, uri_parser_1.uriToString)(this.target));
|
13909
13915
|
setImmediate(() => {
|
13910
13916
|
this.listener.onError({
|
13911
13917
|
code: constants_1.Status.UNAVAILABLE,
|
@@ -13918,7 +13924,7 @@ var require_resolver_dns = __commonJS({
|
|
13918
13924
|
if (this.pendingLookupPromise !== null) {
|
13919
13925
|
return;
|
13920
13926
|
}
|
13921
|
-
|
13927
|
+
trace("Looking up DNS hostname " + this.dnsHostname);
|
13922
13928
|
this.latestLookupResult = null;
|
13923
13929
|
const hostname = this.dnsHostname;
|
13924
13930
|
this.pendingLookupPromise = this.lookup(hostname);
|
@@ -13933,7 +13939,7 @@ var require_resolver_dns = __commonJS({
|
|
13933
13939
|
addresses: [address]
|
13934
13940
|
}));
|
13935
13941
|
const allAddressesString = "[" + addressList.map((addr) => addr.host + ":" + addr.port).join(",") + "]";
|
13936
|
-
|
13942
|
+
trace("Resolved addresses for target " + (0, uri_parser_1.uriToString)(this.target) + ": " + allAddressesString);
|
13937
13943
|
if (this.latestLookupResult.length === 0) {
|
13938
13944
|
this.listener.onError(this.defaultResolutionError);
|
13939
13945
|
return;
|
@@ -13943,7 +13949,7 @@ var require_resolver_dns = __commonJS({
|
|
13943
13949
|
if (this.pendingLookupPromise === null) {
|
13944
13950
|
return;
|
13945
13951
|
}
|
13946
|
-
|
13952
|
+
trace("Resolution error for target " + (0, uri_parser_1.uriToString)(this.target) + ": " + err.message);
|
13947
13953
|
this.pendingLookupPromise = null;
|
13948
13954
|
this.stopNextResolutionTimer();
|
13949
13955
|
this.listener.onError(this.defaultResolutionError);
|
@@ -13974,7 +13980,7 @@ var require_resolver_dns = __commonJS({
|
|
13974
13980
|
}
|
13975
13981
|
async lookup(hostname) {
|
13976
13982
|
if (environment_1.GRPC_NODE_USE_ALTERNATIVE_RESOLVER) {
|
13977
|
-
|
13983
|
+
trace("Using alternative DNS resolver.");
|
13978
13984
|
const records = await Promise.allSettled([
|
13979
13985
|
this.alternativeResolver.resolve4(hostname),
|
13980
13986
|
this.alternativeResolver.resolve6(hostname)
|
@@ -13994,7 +14000,7 @@ var require_resolver_dns = __commonJS({
|
|
13994
14000
|
}
|
13995
14001
|
async resolveTxt(hostname) {
|
13996
14002
|
if (environment_1.GRPC_NODE_USE_ALTERNATIVE_RESOLVER) {
|
13997
|
-
|
14003
|
+
trace("Using alternative DNS resolver.");
|
13998
14004
|
return this.alternativeResolver.resolveTxt(hostname);
|
13999
14005
|
}
|
14000
14006
|
return dns_1.promises.resolveTxt(hostname);
|
@@ -14027,9 +14033,9 @@ var require_resolver_dns = __commonJS({
|
|
14027
14033
|
if (this.pendingLookupPromise === null) {
|
14028
14034
|
if (this.isNextResolutionTimerRunning || this.backoff.isRunning()) {
|
14029
14035
|
if (this.isNextResolutionTimerRunning) {
|
14030
|
-
|
14036
|
+
trace('resolution update delayed by "min time between resolutions" rate limit');
|
14031
14037
|
} else {
|
14032
|
-
|
14038
|
+
trace("resolution update delayed by backoff timer until " + this.backoff.getEndTime().toISOString());
|
14033
14039
|
}
|
14034
14040
|
this.continueResolving = true;
|
14035
14041
|
} else {
|
@@ -14088,7 +14094,7 @@ var require_http_proxy = __commonJS({
|
|
14088
14094
|
var url_1 = __require("url");
|
14089
14095
|
var resolver_dns_1 = require_resolver_dns();
|
14090
14096
|
var TRACER_NAME = "proxy";
|
14091
|
-
function
|
14097
|
+
function trace(text) {
|
14092
14098
|
logging.trace(constants_1.LogVerbosity.DEBUG, TRACER_NAME, text);
|
14093
14099
|
}
|
14094
14100
|
function getProxyInfo() {
|
@@ -14137,7 +14143,7 @@ var require_http_proxy = __commonJS({
|
|
14137
14143
|
if (userCred) {
|
14138
14144
|
result.creds = userCred;
|
14139
14145
|
}
|
14140
|
-
|
14146
|
+
trace("Proxy server " + result.address + " set by environment variable " + envVar);
|
14141
14147
|
return result;
|
14142
14148
|
}
|
14143
14149
|
function getNoProxyHostList() {
|
@@ -14148,7 +14154,7 @@ var require_http_proxy = __commonJS({
|
|
14148
14154
|
envVar = "no_proxy";
|
14149
14155
|
}
|
14150
14156
|
if (noProxyStr) {
|
14151
|
-
|
14157
|
+
trace("No proxy server list set by environment variable " + envVar);
|
14152
14158
|
return noProxyStr.split(",");
|
14153
14159
|
} else {
|
14154
14160
|
return [];
|
@@ -14177,7 +14183,7 @@ var require_http_proxy = __commonJS({
|
|
14177
14183
|
const serverHost = hostPort.host;
|
14178
14184
|
for (const host of getNoProxyHostList()) {
|
14179
14185
|
if (host === serverHost) {
|
14180
|
-
|
14186
|
+
trace("Not using proxy for target in no_proxy list: " + (0, uri_parser_1.uriToString)(target));
|
14181
14187
|
return noProxyResult;
|
14182
14188
|
}
|
14183
14189
|
}
|
@@ -14229,7 +14235,7 @@ var require_http_proxy = __commonJS({
|
|
14229
14235
|
}
|
14230
14236
|
options.headers = headers;
|
14231
14237
|
const proxyAddressString = (0, subchannel_address_1.subchannelAddressToString)(address);
|
14232
|
-
|
14238
|
+
trace("Using proxy " + proxyAddressString + " to connect to " + options.path);
|
14233
14239
|
return new Promise((resolve, reject) => {
|
14234
14240
|
const request = http2.request(options);
|
14235
14241
|
request.once("connect", (res, socket, head) => {
|
@@ -14237,7 +14243,7 @@ var require_http_proxy = __commonJS({
|
|
14237
14243
|
request.removeAllListeners();
|
14238
14244
|
socket.removeAllListeners();
|
14239
14245
|
if (res.statusCode === 200) {
|
14240
|
-
|
14246
|
+
trace("Successfully connected to " + options.path + " through proxy " + proxyAddressString);
|
14241
14247
|
if (head.length > 0) {
|
14242
14248
|
socket.unshift(head);
|
14243
14249
|
}
|
@@ -14246,15 +14252,15 @@ var require_http_proxy = __commonJS({
|
|
14246
14252
|
const hostPort2 = (0, uri_parser_1.splitHostPort)(targetPath);
|
14247
14253
|
const remoteHost = (_a2 = hostPort2 === null || hostPort2 === void 0 ? void 0 : hostPort2.host) !== null && _a2 !== void 0 ? _a2 : targetPath;
|
14248
14254
|
const cts = tls.connect(Object.assign({ host: remoteHost, servername: remoteHost, socket }, connectionOptions), () => {
|
14249
|
-
|
14255
|
+
trace("Successfully established a TLS connection to " + options.path + " through proxy " + proxyAddressString);
|
14250
14256
|
resolve({ socket: cts, realTarget: parsedTarget });
|
14251
14257
|
});
|
14252
14258
|
cts.on("error", (error) => {
|
14253
|
-
|
14259
|
+
trace("Failed to establish a TLS connection to " + options.path + " through proxy " + proxyAddressString + " with error " + error.message);
|
14254
14260
|
reject();
|
14255
14261
|
});
|
14256
14262
|
} else {
|
14257
|
-
|
14263
|
+
trace("Successfully established a plaintext connection to " + options.path + " through proxy " + proxyAddressString);
|
14258
14264
|
resolve({
|
14259
14265
|
socket,
|
14260
14266
|
realTarget: parsedTarget
|
@@ -14714,7 +14720,7 @@ var require_subchannel_call = __commonJS({
|
|
14714
14720
|
}
|
14715
14721
|
this.http2Stream.resume();
|
14716
14722
|
}
|
14717
|
-
sendMessageWithContext(
|
14723
|
+
sendMessageWithContext(context, message) {
|
14718
14724
|
this.trace("write() called with message of length " + message.length);
|
14719
14725
|
const cb = (error) => {
|
14720
14726
|
process.nextTick(() => {
|
@@ -14726,7 +14732,7 @@ var require_subchannel_call = __commonJS({
|
|
14726
14732
|
if (error) {
|
14727
14733
|
this.cancelWithStatus(code, `Write error: ${error.message}`);
|
14728
14734
|
}
|
14729
|
-
(_a =
|
14735
|
+
(_a = context.callback) === null || _a === void 0 ? void 0 : _a.call(context);
|
14730
14736
|
});
|
14731
14737
|
};
|
14732
14738
|
this.trace("sending data chunk of length " + message.length);
|
@@ -16038,12 +16044,12 @@ var require_load_balancing_call = __commonJS({
|
|
16038
16044
|
this.metadata = metadata;
|
16039
16045
|
this.doPick();
|
16040
16046
|
}
|
16041
|
-
sendMessageWithContext(
|
16047
|
+
sendMessageWithContext(context, message) {
|
16042
16048
|
this.trace("write() called with message of length " + message.length);
|
16043
16049
|
if (this.child) {
|
16044
|
-
this.child.sendMessageWithContext(
|
16050
|
+
this.child.sendMessageWithContext(context, message);
|
16045
16051
|
} else {
|
16046
|
-
this.pendingMessage = { context
|
16052
|
+
this.pendingMessage = { context, message };
|
16047
16053
|
}
|
16048
16054
|
}
|
16049
16055
|
startRead() {
|
@@ -16185,15 +16191,15 @@ var require_resolving_call = __commonJS({
|
|
16185
16191
|
});
|
16186
16192
|
}
|
16187
16193
|
}
|
16188
|
-
sendMessageOnChild(
|
16194
|
+
sendMessageOnChild(context, message) {
|
16189
16195
|
if (!this.child) {
|
16190
16196
|
throw new Error("sendMessageonChild called with child not populated");
|
16191
16197
|
}
|
16192
16198
|
const child = this.child;
|
16193
16199
|
this.writeFilterPending = true;
|
16194
|
-
this.filterStack.sendMessage(Promise.resolve({ message, flags:
|
16200
|
+
this.filterStack.sendMessage(Promise.resolve({ message, flags: context.flags })).then((filteredMessage) => {
|
16195
16201
|
this.writeFilterPending = false;
|
16196
|
-
child.sendMessageWithContext(
|
16202
|
+
child.sendMessageWithContext(context, filteredMessage.message);
|
16197
16203
|
if (this.pendingHalfClose) {
|
16198
16204
|
child.halfClose();
|
16199
16205
|
}
|
@@ -16312,12 +16318,12 @@ var require_resolving_call = __commonJS({
|
|
16312
16318
|
this.listener = listener;
|
16313
16319
|
this.getConfig();
|
16314
16320
|
}
|
16315
|
-
sendMessageWithContext(
|
16321
|
+
sendMessageWithContext(context, message) {
|
16316
16322
|
this.trace("write() called with message of length " + message.length);
|
16317
16323
|
if (this.child) {
|
16318
|
-
this.sendMessageOnChild(
|
16324
|
+
this.sendMessageOnChild(context, message);
|
16319
16325
|
} else {
|
16320
|
-
this.pendingMessage = { context
|
16326
|
+
this.pendingMessage = { context, message };
|
16321
16327
|
}
|
16322
16328
|
}
|
16323
16329
|
startRead() {
|
@@ -16860,12 +16866,12 @@ var require_retrying_call = __commonJS({
|
|
16860
16866
|
}
|
16861
16867
|
}
|
16862
16868
|
}
|
16863
|
-
sendMessageWithContext(
|
16869
|
+
sendMessageWithContext(context, message) {
|
16864
16870
|
var _a;
|
16865
16871
|
this.trace("write() called with message of length " + message.length);
|
16866
16872
|
const writeObj = {
|
16867
16873
|
message,
|
16868
|
-
flags:
|
16874
|
+
flags: context.flags
|
16869
16875
|
};
|
16870
16876
|
const messageIndex = this.getNextBufferIndex();
|
16871
16877
|
const bufferEntry = {
|
@@ -16875,7 +16881,7 @@ var require_retrying_call = __commonJS({
|
|
16875
16881
|
};
|
16876
16882
|
this.writeBuffer.push(bufferEntry);
|
16877
16883
|
if (bufferEntry.allocated) {
|
16878
|
-
(_a =
|
16884
|
+
(_a = context.callback) === null || _a === void 0 ? void 0 : _a.call(context);
|
16879
16885
|
for (const [callIndex, call] of this.underlyingCalls.entries()) {
|
16880
16886
|
if (call.state === "ACTIVE" && call.nextMessageToSend === messageIndex) {
|
16881
16887
|
call.call.sendMessageWithContext({
|
@@ -16891,7 +16897,7 @@ var require_retrying_call = __commonJS({
|
|
16891
16897
|
return;
|
16892
16898
|
}
|
16893
16899
|
const call = this.underlyingCalls[this.committedCallIndex];
|
16894
|
-
bufferEntry.callback =
|
16900
|
+
bufferEntry.callback = context.callback;
|
16895
16901
|
if (call.state === "ACTIVE" && call.nextMessageToSend === messageIndex) {
|
16896
16902
|
call.call.sendMessageWithContext({
|
16897
16903
|
callback: (error) => {
|
@@ -18039,7 +18045,7 @@ var require_server_interceptors = __commonJS({
|
|
18039
18045
|
var stream_decoder_1 = require_stream_decoder();
|
18040
18046
|
var logging = require_logging();
|
18041
18047
|
var TRACER_NAME = "server_call";
|
18042
|
-
function
|
18048
|
+
function trace(text) {
|
18043
18049
|
logging.trace(constants_1.LogVerbosity.DEBUG, TRACER_NAME, text);
|
18044
18050
|
}
|
18045
18051
|
var ServerListenerBuilder = class {
|
@@ -18355,7 +18361,7 @@ var require_server_interceptors = __commonJS({
|
|
18355
18361
|
});
|
18356
18362
|
this.stream.once("close", () => {
|
18357
18363
|
var _a2;
|
18358
|
-
|
18364
|
+
trace("Request to method " + ((_a2 = this.handler) === null || _a2 === void 0 ? void 0 : _a2.path) + " stream closed with rstCode " + this.stream.rstCode);
|
18359
18365
|
if (this.callEventTracker && !this.streamEnded) {
|
18360
18366
|
this.streamEnded = true;
|
18361
18367
|
this.callEventTracker.onStreamEnd(false);
|
@@ -18384,7 +18390,7 @@ var require_server_interceptors = __commonJS({
|
|
18384
18390
|
this.decoder = new stream_decoder_1.StreamDecoder(this.maxReceiveMessageSize);
|
18385
18391
|
const metadata = metadata_1.Metadata.fromHttp2Headers(headers);
|
18386
18392
|
if (logging.isTracerEnabled(TRACER_NAME)) {
|
18387
|
-
|
18393
|
+
trace("Request to " + this.handler.path + " received headers " + JSON.stringify(metadata.toJSON()));
|
18388
18394
|
}
|
18389
18395
|
const timeoutHeader = metadata.get(GRPC_TIMEOUT_HEADER);
|
18390
18396
|
if (timeoutHeader.length > 0) {
|
@@ -18552,7 +18558,7 @@ var require_server_interceptors = __commonJS({
|
|
18552
18558
|
if (this.checkCancelled()) {
|
18553
18559
|
return;
|
18554
18560
|
}
|
18555
|
-
|
18561
|
+
trace("Request to " + this.handler.path + " received data frame of size " + data.length);
|
18556
18562
|
let rawMessages;
|
18557
18563
|
try {
|
18558
18564
|
rawMessages = this.decoder.write(data);
|
@@ -18582,7 +18588,7 @@ var require_server_interceptors = __commonJS({
|
|
18582
18588
|
this.maybePushNextMessage();
|
18583
18589
|
}
|
18584
18590
|
start(listener) {
|
18585
|
-
|
18591
|
+
trace("Request to " + this.handler.path + " start called");
|
18586
18592
|
if (this.checkCancelled()) {
|
18587
18593
|
return;
|
18588
18594
|
}
|
@@ -18625,7 +18631,7 @@ var require_server_interceptors = __commonJS({
|
|
18625
18631
|
return;
|
18626
18632
|
}
|
18627
18633
|
this.maybeSendMetadata();
|
18628
|
-
|
18634
|
+
trace("Request to " + this.handler.path + " sent data frame of size " + response.length);
|
18629
18635
|
this.stream.write(response, (error) => {
|
18630
18636
|
var _a;
|
18631
18637
|
if (error) {
|
@@ -18645,7 +18651,7 @@ var require_server_interceptors = __commonJS({
|
|
18645
18651
|
if (this.checkCancelled()) {
|
18646
18652
|
return;
|
18647
18653
|
}
|
18648
|
-
|
18654
|
+
trace("Request to method " + ((_a = this.handler) === null || _a === void 0 ? void 0 : _a.path) + " ended with status code: " + constants_1.Status[status.code] + " details: " + status.details);
|
18649
18655
|
if (this.metadataSent) {
|
18650
18656
|
if (!this.wantTrailers) {
|
18651
18657
|
this.wantTrailers = true;
|
@@ -18676,7 +18682,7 @@ var require_server_interceptors = __commonJS({
|
|
18676
18682
|
}
|
18677
18683
|
}
|
18678
18684
|
startRead() {
|
18679
|
-
|
18685
|
+
trace("Request to " + this.handler.path + " startRead called");
|
18680
18686
|
if (this.checkCancelled()) {
|
18681
18687
|
return;
|
18682
18688
|
}
|
@@ -18748,14 +18754,14 @@ var require_server = __commonJS({
|
|
18748
18754
|
var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});
|
18749
18755
|
var _, done = false;
|
18750
18756
|
for (var i = decorators.length - 1; i >= 0; i--) {
|
18751
|
-
var
|
18752
|
-
for (var p in contextIn)
|
18753
|
-
for (var p in contextIn.access)
|
18754
|
-
|
18757
|
+
var context = {};
|
18758
|
+
for (var p in contextIn) context[p] = p === "access" ? {} : contextIn[p];
|
18759
|
+
for (var p in contextIn.access) context.access[p] = contextIn.access[p];
|
18760
|
+
context.addInitializer = function(f) {
|
18755
18761
|
if (done) throw new TypeError("Cannot add initializers after decoration has completed");
|
18756
18762
|
extraInitializers.push(accept(f || null));
|
18757
18763
|
};
|
18758
|
-
var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key],
|
18764
|
+
var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);
|
18759
18765
|
if (kind === "accessor") {
|
18760
18766
|
if (result === void 0) continue;
|
18761
18767
|
if (result === null || typeof result !== "object") throw new TypeError("Object expected");
|
@@ -18793,7 +18799,7 @@ var require_server = __commonJS({
|
|
18793
18799
|
function noop() {
|
18794
18800
|
}
|
18795
18801
|
function deprecate(message) {
|
18796
|
-
return function(target,
|
18802
|
+
return function(target, context) {
|
18797
18803
|
return util.deprecate(target, message);
|
18798
18804
|
};
|
18799
18805
|
}
|
@@ -20240,7 +20246,7 @@ var require_load_balancer_pick_first = __commonJS({
|
|
20240
20246
|
var subchannel_address_2 = require_subchannel_address();
|
20241
20247
|
var net_1 = __require("net");
|
20242
20248
|
var TRACER_NAME = "pick_first";
|
20243
|
-
function
|
20249
|
+
function trace(text) {
|
20244
20250
|
logging.trace(constants_1.LogVerbosity.DEBUG, TRACER_NAME, text);
|
20245
20251
|
}
|
20246
20252
|
var TYPE_NAME = "pick_first";
|
@@ -20453,7 +20459,7 @@ var require_load_balancer_pick_first = __commonJS({
|
|
20453
20459
|
clearTimeout(this.connectionDelayTimeout);
|
20454
20460
|
this.currentSubchannelIndex = subchannelIndex;
|
20455
20461
|
if (this.children[subchannelIndex].subchannel.getConnectivityState() === connectivity_state_1.ConnectivityState.IDLE) {
|
20456
|
-
|
20462
|
+
trace("Start connecting to subchannel with address " + this.children[subchannelIndex].subchannel.getAddress());
|
20457
20463
|
process.nextTick(() => {
|
20458
20464
|
var _a2;
|
20459
20465
|
(_a2 = this.children[subchannelIndex]) === null || _a2 === void 0 ? void 0 : _a2.subchannel.startConnecting();
|
@@ -20472,7 +20478,7 @@ var require_load_balancer_pick_first = __commonJS({
|
|
20472
20478
|
* @param subchannel
|
20473
20479
|
*/
|
20474
20480
|
pickSubchannel(subchannel) {
|
20475
|
-
|
20481
|
+
trace("Pick subchannel with address " + subchannel.getAddress());
|
20476
20482
|
this.stickyTransientFailureMode = false;
|
20477
20483
|
subchannel.ref();
|
20478
20484
|
this.channelControlHelper.addChannelzChild(subchannel.getChannelzRef());
|
@@ -20485,7 +20491,7 @@ var require_load_balancer_pick_first = __commonJS({
|
|
20485
20491
|
this.calculateAndReportNewState();
|
20486
20492
|
}
|
20487
20493
|
updateState(newState, picker) {
|
20488
|
-
|
20494
|
+
trace(connectivity_state_1.ConnectivityState[this.currentState] + " -> " + connectivity_state_1.ConnectivityState[newState]);
|
20489
20495
|
this.currentState = newState;
|
20490
20496
|
this.channelControlHelper.updateState(newState, picker);
|
20491
20497
|
}
|
@@ -20499,7 +20505,7 @@ var require_load_balancer_pick_first = __commonJS({
|
|
20499
20505
|
this.children = [];
|
20500
20506
|
}
|
20501
20507
|
connectToAddressList(addressList) {
|
20502
|
-
|
20508
|
+
trace("connectToAddressList([" + addressList.map((address) => (0, subchannel_address_1.subchannelAddressToString)(address)) + "])");
|
20503
20509
|
const newChildrenList = addressList.map((address) => ({
|
20504
20510
|
subchannel: this.channelControlHelper.createSubchannel(address, {}, null),
|
20505
20511
|
hasReportedTransientFailure: false
|
@@ -20535,7 +20541,7 @@ var require_load_balancer_pick_first = __commonJS({
|
|
20535
20541
|
endpointList = shuffled(endpointList);
|
20536
20542
|
}
|
20537
20543
|
const rawAddressList = [].concat(...endpointList.map((endpoint) => endpoint.addresses));
|
20538
|
-
|
20544
|
+
trace("updateAddressList([" + rawAddressList.map((address) => (0, subchannel_address_1.subchannelAddressToString)(address)) + "])");
|
20539
20545
|
if (rawAddressList.length === 0) {
|
20540
20546
|
throw new Error("No addresses in endpoint list passed to pick_first");
|
20541
20547
|
}
|
@@ -20625,7 +20631,7 @@ var require_certificate_provider = __commonJS({
|
|
20625
20631
|
var constants_1 = require_constants();
|
20626
20632
|
var util_1 = __require("util");
|
20627
20633
|
var TRACER_NAME = "certificate_provider";
|
20628
|
-
function
|
20634
|
+
function trace(text) {
|
20629
20635
|
logging.trace(constants_1.LogVerbosity.DEBUG, TRACER_NAME, text);
|
20630
20636
|
}
|
20631
20637
|
var readFilePromise = (0, util_1.promisify)(fs2.readFile);
|
@@ -20645,7 +20651,7 @@ var require_certificate_provider = __commonJS({
|
|
20645
20651
|
if (config.certificateFile === void 0 && config.caCertificateFile === void 0) {
|
20646
20652
|
throw new Error("At least one of certificateFile and caCertificateFile must be set");
|
20647
20653
|
}
|
20648
|
-
|
20654
|
+
trace("File watcher constructed with config " + JSON.stringify(config));
|
20649
20655
|
}
|
20650
20656
|
updateCertificates() {
|
20651
20657
|
if (this.fileResultPromise) {
|
@@ -20660,7 +20666,7 @@ var require_certificate_provider = __commonJS({
|
|
20660
20666
|
if (!this.refreshTimer) {
|
20661
20667
|
return;
|
20662
20668
|
}
|
20663
|
-
|
20669
|
+
trace("File watcher read certificates certificate" + (certificateResult ? "!=" : "==") + "null, privateKey" + (privateKeyResult ? "!=" : "==") + "null, CA certificate" + (caCertificateResult ? "!=" : "==") + "null");
|
20664
20670
|
this.lastUpdateTime = /* @__PURE__ */ new Date();
|
20665
20671
|
this.fileResultPromise = null;
|
20666
20672
|
if (certificateResult.status === "fulfilled" && privateKeyResult.status === "fulfilled") {
|
@@ -20683,7 +20689,7 @@ var require_certificate_provider = __commonJS({
|
|
20683
20689
|
listener(this.latestCaUpdate);
|
20684
20690
|
}
|
20685
20691
|
});
|
20686
|
-
|
20692
|
+
trace("File watcher initiated certificate update");
|
20687
20693
|
}
|
20688
20694
|
maybeStartWatchingFiles() {
|
20689
20695
|
if (!this.refreshTimer) {
|
@@ -20696,7 +20702,7 @@ var require_certificate_provider = __commonJS({
|
|
20696
20702
|
this.latestIdentityUpdate = null;
|
20697
20703
|
}
|
20698
20704
|
this.refreshTimer = setInterval(() => this.updateCertificates(), this.config.refreshIntervalMs);
|
20699
|
-
|
20705
|
+
trace("File watcher started watching");
|
20700
20706
|
}
|
20701
20707
|
}
|
20702
20708
|
maybeStopWatchingFiles() {
|
@@ -20903,7 +20909,7 @@ var require_resolver_ip = __commonJS({
|
|
20903
20909
|
var uri_parser_1 = require_uri_parser();
|
20904
20910
|
var logging = require_logging();
|
20905
20911
|
var TRACER_NAME = "ip_resolver";
|
20906
|
-
function
|
20912
|
+
function trace(text) {
|
20907
20913
|
logging.trace(constants_1.LogVerbosity.DEBUG, TRACER_NAME, text);
|
20908
20914
|
}
|
20909
20915
|
var IPV4_SCHEME = "ipv4";
|
@@ -20916,7 +20922,7 @@ var require_resolver_ip = __commonJS({
|
|
20916
20922
|
this.endpoints = [];
|
20917
20923
|
this.error = null;
|
20918
20924
|
this.hasReturnedResult = false;
|
20919
|
-
|
20925
|
+
trace("Resolver constructed for target " + (0, uri_parser_1.uriToString)(target));
|
20920
20926
|
const addresses = [];
|
20921
20927
|
if (!(target.scheme === IPV4_SCHEME || target.scheme === IPV6_SCHEME)) {
|
20922
20928
|
this.error = {
|
@@ -20951,7 +20957,7 @@ var require_resolver_ip = __commonJS({
|
|
20951
20957
|
});
|
20952
20958
|
}
|
20953
20959
|
this.endpoints = addresses.map((address) => ({ addresses: [address] }));
|
20954
|
-
|
20960
|
+
trace("Parsed " + target.scheme + " address list " + addresses);
|
20955
20961
|
}
|
20956
20962
|
updateResolution() {
|
20957
20963
|
if (!this.hasReturnedResult) {
|
@@ -20994,7 +21000,7 @@ var require_load_balancer_round_robin = __commonJS({
|
|
20994
21000
|
var subchannel_address_1 = require_subchannel_address();
|
20995
21001
|
var load_balancer_pick_first_1 = require_load_balancer_pick_first();
|
20996
21002
|
var TRACER_NAME = "round_robin";
|
20997
|
-
function
|
21003
|
+
function trace(text) {
|
20998
21004
|
logging.trace(constants_1.LogVerbosity.DEBUG, TRACER_NAME, text);
|
20999
21005
|
}
|
21000
21006
|
var TYPE_NAME = "round_robin";
|
@@ -21089,7 +21095,7 @@ var require_load_balancer_round_robin = __commonJS({
|
|
21089
21095
|
}
|
21090
21096
|
}
|
21091
21097
|
updateState(newState, picker) {
|
21092
|
-
|
21098
|
+
trace(connectivity_state_1.ConnectivityState[this.currentState] + " -> " + connectivity_state_1.ConnectivityState[newState]);
|
21093
21099
|
if (newState === connectivity_state_1.ConnectivityState.READY) {
|
21094
21100
|
this.currentReadyPicker = picker;
|
21095
21101
|
} else {
|
@@ -21105,7 +21111,7 @@ var require_load_balancer_round_robin = __commonJS({
|
|
21105
21111
|
}
|
21106
21112
|
updateAddressList(endpointList, lbConfig) {
|
21107
21113
|
this.resetSubchannelList();
|
21108
|
-
|
21114
|
+
trace("Connect to endpoint list " + endpointList.map(subchannel_address_1.endpointToString));
|
21109
21115
|
this.updatesPaused = true;
|
21110
21116
|
this.children = endpointList.map((endpoint) => new load_balancer_pick_first_1.LeafLoadBalancer(endpoint, this.childChannelControlHelper, this.credentials, this.options));
|
21111
21117
|
for (const child of this.children) {
|
@@ -21151,7 +21157,7 @@ var require_load_balancer_outlier_detection = __commonJS({
|
|
21151
21157
|
var subchannel_interface_1 = require_subchannel_interface();
|
21152
21158
|
var logging = require_logging();
|
21153
21159
|
var TRACER_NAME = "outlier_detection";
|
21154
|
-
function
|
21160
|
+
function trace(text) {
|
21155
21161
|
logging.trace(constants_1.LogVerbosity.DEBUG, TRACER_NAME, text);
|
21156
21162
|
}
|
21157
21163
|
var TYPE_NAME = "outlier_detection";
|
@@ -21421,20 +21427,20 @@ var require_load_balancer_outlier_detection = __commonJS({
|
|
21421
21427
|
if (!successRateConfig) {
|
21422
21428
|
return;
|
21423
21429
|
}
|
21424
|
-
|
21430
|
+
trace("Running success rate check");
|
21425
21431
|
const targetRequestVolume = successRateConfig.request_volume;
|
21426
21432
|
let addresesWithTargetVolume = 0;
|
21427
21433
|
const successRates = [];
|
21428
21434
|
for (const [endpoint, mapEntry] of this.entryMap.entries()) {
|
21429
21435
|
const successes = mapEntry.counter.getLastSuccesses();
|
21430
21436
|
const failures = mapEntry.counter.getLastFailures();
|
21431
|
-
|
21437
|
+
trace("Stats for " + (0, subchannel_address_1.endpointToString)(endpoint) + ": successes=" + successes + " failures=" + failures + " targetRequestVolume=" + targetRequestVolume);
|
21432
21438
|
if (successes + failures >= targetRequestVolume) {
|
21433
21439
|
addresesWithTargetVolume += 1;
|
21434
21440
|
successRates.push(successes / (successes + failures));
|
21435
21441
|
}
|
21436
21442
|
}
|
21437
|
-
|
21443
|
+
trace("Found " + addresesWithTargetVolume + " success rate candidates; currentEjectionPercent=" + this.getCurrentEjectionPercent() + " successRates=[" + successRates + "]");
|
21438
21444
|
if (addresesWithTargetVolume < successRateConfig.minimum_hosts) {
|
21439
21445
|
return;
|
21440
21446
|
}
|
@@ -21447,7 +21453,7 @@ var require_load_balancer_outlier_detection = __commonJS({
|
|
21447
21453
|
const successRateVariance = successRateDeviationSum / successRates.length;
|
21448
21454
|
const successRateStdev = Math.sqrt(successRateVariance);
|
21449
21455
|
const ejectionThreshold = successRateMean - successRateStdev * (successRateConfig.stdev_factor / 1e3);
|
21450
|
-
|
21456
|
+
trace("stdev=" + successRateStdev + " ejectionThreshold=" + ejectionThreshold);
|
21451
21457
|
for (const [address, mapEntry] of this.entryMap.entries()) {
|
21452
21458
|
if (this.getCurrentEjectionPercent() >= this.latestConfig.getMaxEjectionPercent()) {
|
21453
21459
|
break;
|
@@ -21458,12 +21464,12 @@ var require_load_balancer_outlier_detection = __commonJS({
|
|
21458
21464
|
continue;
|
21459
21465
|
}
|
21460
21466
|
const successRate = successes / (successes + failures);
|
21461
|
-
|
21467
|
+
trace("Checking candidate " + address + " successRate=" + successRate);
|
21462
21468
|
if (successRate < ejectionThreshold) {
|
21463
21469
|
const randomNumber = Math.random() * 100;
|
21464
|
-
|
21470
|
+
trace("Candidate " + address + " randomNumber=" + randomNumber + " enforcement_percentage=" + successRateConfig.enforcement_percentage);
|
21465
21471
|
if (randomNumber < successRateConfig.enforcement_percentage) {
|
21466
|
-
|
21472
|
+
trace("Ejecting candidate " + address);
|
21467
21473
|
this.eject(mapEntry, ejectionTimestamp);
|
21468
21474
|
}
|
21469
21475
|
}
|
@@ -21477,7 +21483,7 @@ var require_load_balancer_outlier_detection = __commonJS({
|
|
21477
21483
|
if (!failurePercentageConfig) {
|
21478
21484
|
return;
|
21479
21485
|
}
|
21480
|
-
|
21486
|
+
trace("Running failure percentage check. threshold=" + failurePercentageConfig.threshold + " request volume threshold=" + failurePercentageConfig.request_volume);
|
21481
21487
|
let addressesWithTargetVolume = 0;
|
21482
21488
|
for (const mapEntry of this.entryMap.values()) {
|
21483
21489
|
const successes = mapEntry.counter.getLastSuccesses();
|
@@ -21495,16 +21501,16 @@ var require_load_balancer_outlier_detection = __commonJS({
|
|
21495
21501
|
}
|
21496
21502
|
const successes = mapEntry.counter.getLastSuccesses();
|
21497
21503
|
const failures = mapEntry.counter.getLastFailures();
|
21498
|
-
|
21504
|
+
trace("Candidate successes=" + successes + " failures=" + failures);
|
21499
21505
|
if (successes + failures < failurePercentageConfig.request_volume) {
|
21500
21506
|
continue;
|
21501
21507
|
}
|
21502
21508
|
const failurePercentage = failures * 100 / (failures + successes);
|
21503
21509
|
if (failurePercentage > failurePercentageConfig.threshold) {
|
21504
21510
|
const randomNumber = Math.random() * 100;
|
21505
|
-
|
21511
|
+
trace("Candidate " + address + " randomNumber=" + randomNumber + " enforcement_percentage=" + failurePercentageConfig.enforcement_percentage);
|
21506
21512
|
if (randomNumber < failurePercentageConfig.enforcement_percentage) {
|
21507
|
-
|
21513
|
+
trace("Ejecting candidate " + address);
|
21508
21514
|
this.eject(mapEntry, ejectionTimestamp);
|
21509
21515
|
}
|
21510
21516
|
}
|
@@ -21535,7 +21541,7 @@ var require_load_balancer_outlier_detection = __commonJS({
|
|
21535
21541
|
}
|
21536
21542
|
runChecks() {
|
21537
21543
|
const ejectionTimestamp = /* @__PURE__ */ new Date();
|
21538
|
-
|
21544
|
+
trace("Ejection timer running");
|
21539
21545
|
this.switchAllBuckets();
|
21540
21546
|
if (!this.latestConfig) {
|
21541
21547
|
return;
|
@@ -21555,7 +21561,7 @@ var require_load_balancer_outlier_detection = __commonJS({
|
|
21555
21561
|
const returnTime = new Date(mapEntry.currentEjectionTimestamp.getTime());
|
21556
21562
|
returnTime.setMilliseconds(returnTime.getMilliseconds() + Math.min(baseEjectionTimeMs * mapEntry.ejectionTimeMultiplier, Math.max(baseEjectionTimeMs, maxEjectionTimeMs)));
|
21557
21563
|
if (returnTime < /* @__PURE__ */ new Date()) {
|
21558
|
-
|
21564
|
+
trace("Unejecting " + address);
|
21559
21565
|
this.uneject(mapEntry);
|
21560
21566
|
}
|
21561
21567
|
}
|
@@ -21567,7 +21573,7 @@ var require_load_balancer_outlier_detection = __commonJS({
|
|
21567
21573
|
}
|
21568
21574
|
for (const endpoint of endpointList) {
|
21569
21575
|
if (!this.entryMap.has(endpoint)) {
|
21570
|
-
|
21576
|
+
trace("Adding map entry for " + (0, subchannel_address_1.endpointToString)(endpoint));
|
21571
21577
|
this.entryMap.set(endpoint, {
|
21572
21578
|
counter: new CallCounter(),
|
21573
21579
|
currentEjectionTimestamp: null,
|
@@ -21581,18 +21587,18 @@ var require_load_balancer_outlier_detection = __commonJS({
|
|
21581
21587
|
this.childBalancer.updateAddressList(endpointList, childPolicy, attributes);
|
21582
21588
|
if (lbConfig.getSuccessRateEjectionConfig() || lbConfig.getFailurePercentageEjectionConfig()) {
|
21583
21589
|
if (this.timerStartTime) {
|
21584
|
-
|
21590
|
+
trace("Previous timer existed. Replacing timer");
|
21585
21591
|
clearTimeout(this.ejectionTimer);
|
21586
21592
|
const remainingDelay = lbConfig.getIntervalMs() - ((/* @__PURE__ */ new Date()).getTime() - this.timerStartTime.getTime());
|
21587
21593
|
this.startTimer(remainingDelay);
|
21588
21594
|
} else {
|
21589
|
-
|
21595
|
+
trace("Starting new timer");
|
21590
21596
|
this.timerStartTime = /* @__PURE__ */ new Date();
|
21591
21597
|
this.startTimer(lbConfig.getIntervalMs());
|
21592
21598
|
this.switchAllBuckets();
|
21593
21599
|
}
|
21594
21600
|
} else {
|
21595
|
-
|
21601
|
+
trace("Counting disabled. Cancelling timer.");
|
21596
21602
|
this.timerStartTime = null;
|
21597
21603
|
clearTimeout(this.ejectionTimer);
|
21598
21604
|
for (const mapEntry of this.entryMap.values()) {
|
@@ -22069,10 +22075,10 @@ var require_composeServerMiddleware = __commonJS({
|
|
22069
22075
|
Object.defineProperty(exports, "__esModule", { value: true });
|
22070
22076
|
exports.composeServerMiddleware = void 0;
|
22071
22077
|
function composeServerMiddleware(middleware1, middleware2) {
|
22072
|
-
return (call,
|
22078
|
+
return (call, context) => {
|
22073
22079
|
return middleware1(Object.assign(Object.assign({}, call), { next: (request, context1) => {
|
22074
22080
|
return middleware2(Object.assign(Object.assign({}, call), { request }), context1);
|
22075
|
-
} }),
|
22081
|
+
} }), context);
|
22076
22082
|
};
|
22077
22083
|
}
|
22078
22084
|
exports.composeServerMiddleware = composeServerMiddleware;
|
@@ -22146,9 +22152,9 @@ var require_lib2 = __commonJS({
|
|
22146
22152
|
}
|
22147
22153
|
});
|
22148
22154
|
|
22149
|
-
// ../../node_modules/.pnpm/nice-grpc@2.1.
|
22155
|
+
// ../../node_modules/.pnpm/nice-grpc@2.1.12/node_modules/nice-grpc/lib/service-definitions/grpc-js.js
|
22150
22156
|
var require_grpc_js = __commonJS({
|
22151
|
-
"../../node_modules/.pnpm/nice-grpc@2.1.
|
22157
|
+
"../../node_modules/.pnpm/nice-grpc@2.1.12/node_modules/nice-grpc/lib/service-definitions/grpc-js.js"(exports) {
|
22152
22158
|
"use strict";
|
22153
22159
|
Object.defineProperty(exports, "__esModule", { value: true });
|
22154
22160
|
exports.fromGrpcJsServiceDefinition = fromGrpcJsServiceDefinition;
|
@@ -22175,9 +22181,9 @@ var require_grpc_js = __commonJS({
|
|
22175
22181
|
}
|
22176
22182
|
});
|
22177
22183
|
|
22178
|
-
// ../../node_modules/.pnpm/nice-grpc@2.1.
|
22184
|
+
// ../../node_modules/.pnpm/nice-grpc@2.1.12/node_modules/nice-grpc/lib/service-definitions/ts-proto.js
|
22179
22185
|
var require_ts_proto = __commonJS({
|
22180
|
-
"../../node_modules/.pnpm/nice-grpc@2.1.
|
22186
|
+
"../../node_modules/.pnpm/nice-grpc@2.1.12/node_modules/nice-grpc/lib/service-definitions/ts-proto.js"(exports) {
|
22181
22187
|
"use strict";
|
22182
22188
|
Object.defineProperty(exports, "__esModule", { value: true });
|
22183
22189
|
exports.fromTsProtoServiceDefinition = fromTsProtoServiceDefinition;
|
@@ -22208,9 +22214,9 @@ var require_ts_proto = __commonJS({
|
|
22208
22214
|
}
|
22209
22215
|
});
|
22210
22216
|
|
22211
|
-
// ../../node_modules/.pnpm/nice-grpc@2.1.
|
22217
|
+
// ../../node_modules/.pnpm/nice-grpc@2.1.12/node_modules/nice-grpc/lib/service-definitions/index.js
|
22212
22218
|
var require_service_definitions = __commonJS({
|
22213
|
-
"../../node_modules/.pnpm/nice-grpc@2.1.
|
22219
|
+
"../../node_modules/.pnpm/nice-grpc@2.1.12/node_modules/nice-grpc/lib/service-definitions/index.js"(exports) {
|
22214
22220
|
"use strict";
|
22215
22221
|
Object.defineProperty(exports, "__esModule", { value: true });
|
22216
22222
|
exports.normalizeServiceDefinition = normalizeServiceDefinition;
|
@@ -22795,9 +22801,9 @@ var init_es2 = __esm({
|
|
22795
22801
|
}
|
22796
22802
|
});
|
22797
22803
|
|
22798
|
-
// ../../node_modules/.pnpm/nice-grpc@2.1.
|
22804
|
+
// ../../node_modules/.pnpm/nice-grpc@2.1.12/node_modules/nice-grpc/lib/utils/convertMetadata.js
|
22799
22805
|
var require_convertMetadata = __commonJS({
|
22800
|
-
"../../node_modules/.pnpm/nice-grpc@2.1.
|
22806
|
+
"../../node_modules/.pnpm/nice-grpc@2.1.12/node_modules/nice-grpc/lib/utils/convertMetadata.js"(exports) {
|
22801
22807
|
"use strict";
|
22802
22808
|
var __createBinding = exports && exports.__createBinding || (Object.create ? function(o, m, k, k2) {
|
22803
22809
|
if (k2 === void 0) k2 = k;
|
@@ -22817,15 +22823,25 @@ var require_convertMetadata = __commonJS({
|
|
22817
22823
|
} : function(o, v) {
|
22818
22824
|
o["default"] = v;
|
22819
22825
|
});
|
22820
|
-
var __importStar = exports && exports.__importStar || function(
|
22821
|
-
|
22822
|
-
|
22823
|
-
|
22824
|
-
|
22825
|
-
|
22826
|
-
|
22827
|
-
|
22828
|
-
|
22826
|
+
var __importStar = exports && exports.__importStar || /* @__PURE__ */ function() {
|
22827
|
+
var ownKeys = function(o) {
|
22828
|
+
ownKeys = Object.getOwnPropertyNames || function(o2) {
|
22829
|
+
var ar = [];
|
22830
|
+
for (var k in o2) if (Object.prototype.hasOwnProperty.call(o2, k)) ar[ar.length] = k;
|
22831
|
+
return ar;
|
22832
|
+
};
|
22833
|
+
return ownKeys(o);
|
22834
|
+
};
|
22835
|
+
return function(mod2) {
|
22836
|
+
if (mod2 && mod2.__esModule) return mod2;
|
22837
|
+
var result = {};
|
22838
|
+
if (mod2 != null) {
|
22839
|
+
for (var k = ownKeys(mod2), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod2, k[i]);
|
22840
|
+
}
|
22841
|
+
__setModuleDefault(result, mod2);
|
22842
|
+
return result;
|
22843
|
+
};
|
22844
|
+
}();
|
22829
22845
|
Object.defineProperty(exports, "__esModule", { value: true });
|
22830
22846
|
exports.convertMetadataToGrpcJs = convertMetadataToGrpcJs;
|
22831
22847
|
exports.convertMetadataFromGrpcJs = convertMetadataFromGrpcJs;
|
@@ -22851,9 +22867,9 @@ var require_convertMetadata = __commonJS({
|
|
22851
22867
|
}
|
22852
22868
|
});
|
22853
22869
|
|
22854
|
-
// ../../node_modules/.pnpm/nice-grpc@2.1.
|
22870
|
+
// ../../node_modules/.pnpm/nice-grpc@2.1.12/node_modules/nice-grpc/lib/utils/isAsyncIterable.js
|
22855
22871
|
var require_isAsyncIterable = __commonJS({
|
22856
|
-
"../../node_modules/.pnpm/nice-grpc@2.1.
|
22872
|
+
"../../node_modules/.pnpm/nice-grpc@2.1.12/node_modules/nice-grpc/lib/utils/isAsyncIterable.js"(exports) {
|
22857
22873
|
"use strict";
|
22858
22874
|
Object.defineProperty(exports, "__esModule", { value: true });
|
22859
22875
|
exports.isAsyncIterable = isAsyncIterable2;
|
@@ -22863,9 +22879,9 @@ var require_isAsyncIterable = __commonJS({
|
|
22863
22879
|
}
|
22864
22880
|
});
|
22865
22881
|
|
22866
|
-
// ../../node_modules/.pnpm/nice-grpc@2.1.
|
22882
|
+
// ../../node_modules/.pnpm/nice-grpc@2.1.12/node_modules/nice-grpc/lib/utils/readableToAsyncIterable.js
|
22867
22883
|
var require_readableToAsyncIterable = __commonJS({
|
22868
|
-
"../../node_modules/.pnpm/nice-grpc@2.1.
|
22884
|
+
"../../node_modules/.pnpm/nice-grpc@2.1.12/node_modules/nice-grpc/lib/utils/readableToAsyncIterable.js"(exports) {
|
22869
22885
|
"use strict";
|
22870
22886
|
Object.defineProperty(exports, "__esModule", { value: true });
|
22871
22887
|
exports.readableToAsyncIterable = readableToAsyncIterable;
|
@@ -22927,9 +22943,9 @@ var require_readableToAsyncIterable = __commonJS({
|
|
22927
22943
|
}
|
22928
22944
|
});
|
22929
22945
|
|
22930
|
-
// ../../node_modules/.pnpm/nice-grpc@2.1.
|
22946
|
+
// ../../node_modules/.pnpm/nice-grpc@2.1.12/node_modules/nice-grpc/lib/server/createCallContext.js
|
22931
22947
|
var require_createCallContext = __commonJS({
|
22932
|
-
"../../node_modules/.pnpm/nice-grpc@2.1.
|
22948
|
+
"../../node_modules/.pnpm/nice-grpc@2.1.12/node_modules/nice-grpc/lib/server/createCallContext.js"(exports) {
|
22933
22949
|
"use strict";
|
22934
22950
|
Object.defineProperty(exports, "__esModule", { value: true });
|
22935
22951
|
exports.createCallContext = createCallContext;
|
@@ -22961,7 +22977,7 @@ var require_createCallContext = __commonJS({
|
|
22961
22977
|
});
|
22962
22978
|
}
|
22963
22979
|
let headerSent = false;
|
22964
|
-
const
|
22980
|
+
const context = {
|
22965
22981
|
metadata: (0, convertMetadata_1.convertMetadataFromGrpcJs)(call.metadata),
|
22966
22982
|
peer: call.getPeer(),
|
22967
22983
|
header,
|
@@ -22969,20 +22985,28 @@ var require_createCallContext = __commonJS({
|
|
22969
22985
|
if (headerSent) {
|
22970
22986
|
return;
|
22971
22987
|
}
|
22972
|
-
|
22988
|
+
if (!isEmptyMetadata(header)) {
|
22989
|
+
call.sendMetadata((0, convertMetadata_1.convertMetadataToGrpcJs)(header));
|
22990
|
+
}
|
22973
22991
|
headerSent = true;
|
22974
22992
|
},
|
22975
22993
|
trailer,
|
22976
22994
|
signal: maybeCancel.signal
|
22977
22995
|
};
|
22978
|
-
return { context
|
22996
|
+
return { context, maybeCancel };
|
22997
|
+
}
|
22998
|
+
function isEmptyMetadata(metadata) {
|
22999
|
+
for (const _ of metadata) {
|
23000
|
+
return false;
|
23001
|
+
}
|
23002
|
+
return true;
|
22979
23003
|
}
|
22980
23004
|
}
|
22981
23005
|
});
|
22982
23006
|
|
22983
|
-
// ../../node_modules/.pnpm/nice-grpc@2.1.
|
23007
|
+
// ../../node_modules/.pnpm/nice-grpc@2.1.12/node_modules/nice-grpc/lib/server/createErrorStatusObject.js
|
22984
23008
|
var require_createErrorStatusObject = __commonJS({
|
22985
|
-
"../../node_modules/.pnpm/nice-grpc@2.1.
|
23009
|
+
"../../node_modules/.pnpm/nice-grpc@2.1.12/node_modules/nice-grpc/lib/server/createErrorStatusObject.js"(exports) {
|
22986
23010
|
"use strict";
|
22987
23011
|
Object.defineProperty(exports, "__esModule", { value: true });
|
22988
23012
|
exports.createErrorStatusObject = createErrorStatusObject;
|
@@ -23014,9 +23038,9 @@ var require_createErrorStatusObject = __commonJS({
|
|
23014
23038
|
}
|
23015
23039
|
});
|
23016
23040
|
|
23017
|
-
// ../../node_modules/.pnpm/nice-grpc@2.1.
|
23041
|
+
// ../../node_modules/.pnpm/nice-grpc@2.1.12/node_modules/nice-grpc/lib/server/handleBidiStreamingCall.js
|
23018
23042
|
var require_handleBidiStreamingCall = __commonJS({
|
23019
|
-
"../../node_modules/.pnpm/nice-grpc@2.1.
|
23043
|
+
"../../node_modules/.pnpm/nice-grpc@2.1.12/node_modules/nice-grpc/lib/server/handleBidiStreamingCall.js"(exports) {
|
23020
23044
|
"use strict";
|
23021
23045
|
Object.defineProperty(exports, "__esModule", { value: true });
|
23022
23046
|
exports.createBidiStreamingMethodHandler = createBidiStreamingMethodHandler;
|
@@ -23033,33 +23057,33 @@ var require_handleBidiStreamingCall = __commonJS({
|
|
23033
23057
|
responseStream: definition.responseStream,
|
23034
23058
|
options: definition.options
|
23035
23059
|
};
|
23036
|
-
async function* bidiStreamingMethodHandler(request,
|
23060
|
+
async function* bidiStreamingMethodHandler(request, context) {
|
23037
23061
|
if (!(0, isAsyncIterable_1.isAsyncIterable)(request)) {
|
23038
23062
|
throw new Error("A middleware passed invalid request to next(): expected a single message for bidirectional streaming method");
|
23039
23063
|
}
|
23040
|
-
yield* implementation(request,
|
23064
|
+
yield* implementation(request, context);
|
23041
23065
|
}
|
23042
|
-
const handler = middleware == null ? bidiStreamingMethodHandler : (request,
|
23066
|
+
const handler = middleware == null ? bidiStreamingMethodHandler : (request, context) => middleware({
|
23043
23067
|
method: methodDescriptor,
|
23044
23068
|
requestStream: true,
|
23045
23069
|
request,
|
23046
23070
|
responseStream: true,
|
23047
23071
|
next: bidiStreamingMethodHandler
|
23048
|
-
},
|
23072
|
+
}, context);
|
23049
23073
|
return (call) => {
|
23050
|
-
const { context
|
23074
|
+
const { context, maybeCancel } = (0, createCallContext_1.createCallContext)(call);
|
23051
23075
|
Promise.resolve().then(async () => {
|
23052
|
-
const iterable = handler((0, readableToAsyncIterable_1.readableToAsyncIterable)(call),
|
23076
|
+
const iterable = handler((0, readableToAsyncIterable_1.readableToAsyncIterable)(call), context);
|
23053
23077
|
const iterator = iterable[Symbol.asyncIterator]();
|
23054
23078
|
try {
|
23055
23079
|
let result = await iterator.next();
|
23056
23080
|
while (true) {
|
23057
23081
|
if (!result.done) {
|
23058
23082
|
try {
|
23059
|
-
|
23083
|
+
context.sendHeader();
|
23060
23084
|
const shouldContinue = call.write(result.value);
|
23061
23085
|
if (!shouldContinue) {
|
23062
|
-
await (0, abort_controller_x_1.waitForEvent)(
|
23086
|
+
await (0, abort_controller_x_1.waitForEvent)(context.signal, call, "drain");
|
23063
23087
|
}
|
23064
23088
|
} catch (err) {
|
23065
23089
|
result = (0, abort_controller_x_1.isAbortError)(err) ? await iterator.return() : await iterator.throw(err);
|
@@ -23076,21 +23100,21 @@ var require_handleBidiStreamingCall = __commonJS({
|
|
23076
23100
|
}
|
23077
23101
|
} finally {
|
23078
23102
|
maybeCancel.cancel = void 0;
|
23079
|
-
|
23103
|
+
context.sendHeader();
|
23080
23104
|
}
|
23081
23105
|
}).then(() => {
|
23082
|
-
call.end((0, convertMetadata_1.convertMetadataToGrpcJs)(
|
23106
|
+
call.end((0, convertMetadata_1.convertMetadataToGrpcJs)(context.trailer));
|
23083
23107
|
}, (err) => {
|
23084
|
-
call.emit("error", (0, createErrorStatusObject_1.createErrorStatusObject)(definition.path, err, (0, convertMetadata_1.convertMetadataToGrpcJs)(
|
23108
|
+
call.emit("error", (0, createErrorStatusObject_1.createErrorStatusObject)(definition.path, err, (0, convertMetadata_1.convertMetadataToGrpcJs)(context.trailer)));
|
23085
23109
|
});
|
23086
23110
|
};
|
23087
23111
|
}
|
23088
23112
|
}
|
23089
23113
|
});
|
23090
23114
|
|
23091
|
-
// ../../node_modules/.pnpm/nice-grpc@2.1.
|
23115
|
+
// ../../node_modules/.pnpm/nice-grpc@2.1.12/node_modules/nice-grpc/lib/server/handleClientStreamingCall.js
|
23092
23116
|
var require_handleClientStreamingCall = __commonJS({
|
23093
|
-
"../../node_modules/.pnpm/nice-grpc@2.1.
|
23117
|
+
"../../node_modules/.pnpm/nice-grpc@2.1.12/node_modules/nice-grpc/lib/server/handleClientStreamingCall.js"(exports) {
|
23094
23118
|
"use strict";
|
23095
23119
|
Object.defineProperty(exports, "__esModule", { value: true });
|
23096
23120
|
exports.createClientStreamingMethodHandler = createClientStreamingMethodHandler;
|
@@ -23106,23 +23130,23 @@ var require_handleClientStreamingCall = __commonJS({
|
|
23106
23130
|
responseStream: definition.responseStream,
|
23107
23131
|
options: definition.options
|
23108
23132
|
};
|
23109
|
-
async function* clientStreamingMethodHandler(request,
|
23133
|
+
async function* clientStreamingMethodHandler(request, context) {
|
23110
23134
|
if (!(0, isAsyncIterable_1.isAsyncIterable)(request)) {
|
23111
23135
|
throw new Error("A middleware passed invalid request to next(): expected a single message for client streaming method");
|
23112
23136
|
}
|
23113
|
-
return await implementation(request,
|
23137
|
+
return await implementation(request, context);
|
23114
23138
|
}
|
23115
|
-
const handler = middleware == null ? clientStreamingMethodHandler : (request,
|
23139
|
+
const handler = middleware == null ? clientStreamingMethodHandler : (request, context) => middleware({
|
23116
23140
|
method: methodDescriptor,
|
23117
23141
|
requestStream: true,
|
23118
23142
|
request,
|
23119
23143
|
responseStream: false,
|
23120
23144
|
next: clientStreamingMethodHandler
|
23121
|
-
},
|
23145
|
+
}, context);
|
23122
23146
|
return (call, callback) => {
|
23123
|
-
const { context
|
23147
|
+
const { context, maybeCancel } = (0, createCallContext_1.createCallContext)(call);
|
23124
23148
|
Promise.resolve().then(async () => {
|
23125
|
-
const iterable = handler((0, readableToAsyncIterable_1.readableToAsyncIterable)(call),
|
23149
|
+
const iterable = handler((0, readableToAsyncIterable_1.readableToAsyncIterable)(call), context);
|
23126
23150
|
const iterator = iterable[Symbol.asyncIterator]();
|
23127
23151
|
try {
|
23128
23152
|
let result = await iterator.next();
|
@@ -23139,21 +23163,21 @@ var require_handleClientStreamingCall = __commonJS({
|
|
23139
23163
|
}
|
23140
23164
|
} finally {
|
23141
23165
|
maybeCancel.cancel = void 0;
|
23142
|
-
|
23166
|
+
context.sendHeader();
|
23143
23167
|
}
|
23144
23168
|
}).then((res) => {
|
23145
|
-
callback(null, res, (0, convertMetadata_1.convertMetadataToGrpcJs)(
|
23169
|
+
callback(null, res, (0, convertMetadata_1.convertMetadataToGrpcJs)(context.trailer));
|
23146
23170
|
}, (err) => {
|
23147
|
-
callback((0, createErrorStatusObject_1.createErrorStatusObject)(definition.path, err, (0, convertMetadata_1.convertMetadataToGrpcJs)(
|
23171
|
+
callback((0, createErrorStatusObject_1.createErrorStatusObject)(definition.path, err, (0, convertMetadata_1.convertMetadataToGrpcJs)(context.trailer)));
|
23148
23172
|
});
|
23149
23173
|
};
|
23150
23174
|
}
|
23151
23175
|
}
|
23152
23176
|
});
|
23153
23177
|
|
23154
|
-
// ../../node_modules/.pnpm/nice-grpc@2.1.
|
23178
|
+
// ../../node_modules/.pnpm/nice-grpc@2.1.12/node_modules/nice-grpc/lib/server/handleServerStreamingCall.js
|
23155
23179
|
var require_handleServerStreamingCall = __commonJS({
|
23156
|
-
"../../node_modules/.pnpm/nice-grpc@2.1.
|
23180
|
+
"../../node_modules/.pnpm/nice-grpc@2.1.12/node_modules/nice-grpc/lib/server/handleServerStreamingCall.js"(exports) {
|
23157
23181
|
"use strict";
|
23158
23182
|
Object.defineProperty(exports, "__esModule", { value: true });
|
23159
23183
|
exports.createServerStreamingMethodHandler = createServerStreamingMethodHandler;
|
@@ -23169,33 +23193,33 @@ var require_handleServerStreamingCall = __commonJS({
|
|
23169
23193
|
responseStream: definition.responseStream,
|
23170
23194
|
options: definition.options
|
23171
23195
|
};
|
23172
|
-
async function* serverStreamingMethodHandler(request,
|
23196
|
+
async function* serverStreamingMethodHandler(request, context) {
|
23173
23197
|
if ((0, isAsyncIterable_1.isAsyncIterable)(request)) {
|
23174
23198
|
throw new Error("A middleware passed invalid request to next(): expected a single message for server streaming method");
|
23175
23199
|
}
|
23176
|
-
yield* implementation(request,
|
23200
|
+
yield* implementation(request, context);
|
23177
23201
|
}
|
23178
|
-
const handler = middleware == null ? serverStreamingMethodHandler : (request,
|
23202
|
+
const handler = middleware == null ? serverStreamingMethodHandler : (request, context) => middleware({
|
23179
23203
|
method: methodDescriptor,
|
23180
23204
|
requestStream: false,
|
23181
23205
|
request,
|
23182
23206
|
responseStream: true,
|
23183
23207
|
next: serverStreamingMethodHandler
|
23184
|
-
},
|
23208
|
+
}, context);
|
23185
23209
|
return (call) => {
|
23186
|
-
const { context
|
23210
|
+
const { context, maybeCancel } = (0, createCallContext_1.createCallContext)(call);
|
23187
23211
|
Promise.resolve().then(async () => {
|
23188
|
-
const iterable = handler(call.request,
|
23212
|
+
const iterable = handler(call.request, context);
|
23189
23213
|
const iterator = iterable[Symbol.asyncIterator]();
|
23190
23214
|
try {
|
23191
23215
|
let result = await iterator.next();
|
23192
23216
|
while (true) {
|
23193
23217
|
if (!result.done) {
|
23194
23218
|
try {
|
23195
|
-
|
23219
|
+
context.sendHeader();
|
23196
23220
|
const shouldContinue = call.write(result.value);
|
23197
23221
|
if (!shouldContinue) {
|
23198
|
-
await (0, abort_controller_x_1.waitForEvent)(
|
23222
|
+
await (0, abort_controller_x_1.waitForEvent)(context.signal, call, "drain");
|
23199
23223
|
}
|
23200
23224
|
} catch (err) {
|
23201
23225
|
result = (0, abort_controller_x_1.isAbortError)(err) ? await iterator.return() : await iterator.throw(err);
|
@@ -23212,21 +23236,21 @@ var require_handleServerStreamingCall = __commonJS({
|
|
23212
23236
|
}
|
23213
23237
|
} finally {
|
23214
23238
|
maybeCancel.cancel = void 0;
|
23215
|
-
|
23239
|
+
context.sendHeader();
|
23216
23240
|
}
|
23217
23241
|
}).then(() => {
|
23218
|
-
call.end((0, convertMetadata_1.convertMetadataToGrpcJs)(
|
23242
|
+
call.end((0, convertMetadata_1.convertMetadataToGrpcJs)(context.trailer));
|
23219
23243
|
}, (err) => {
|
23220
|
-
call.emit("error", (0, createErrorStatusObject_1.createErrorStatusObject)(definition.path, err, (0, convertMetadata_1.convertMetadataToGrpcJs)(
|
23244
|
+
call.emit("error", (0, createErrorStatusObject_1.createErrorStatusObject)(definition.path, err, (0, convertMetadata_1.convertMetadataToGrpcJs)(context.trailer)));
|
23221
23245
|
});
|
23222
23246
|
};
|
23223
23247
|
}
|
23224
23248
|
}
|
23225
23249
|
});
|
23226
23250
|
|
23227
|
-
// ../../node_modules/.pnpm/nice-grpc@2.1.
|
23251
|
+
// ../../node_modules/.pnpm/nice-grpc@2.1.12/node_modules/nice-grpc/lib/server/handleUnaryCall.js
|
23228
23252
|
var require_handleUnaryCall = __commonJS({
|
23229
|
-
"../../node_modules/.pnpm/nice-grpc@2.1.
|
23253
|
+
"../../node_modules/.pnpm/nice-grpc@2.1.12/node_modules/nice-grpc/lib/server/handleUnaryCall.js"(exports) {
|
23230
23254
|
"use strict";
|
23231
23255
|
Object.defineProperty(exports, "__esModule", { value: true });
|
23232
23256
|
exports.createUnaryMethodHandler = createUnaryMethodHandler;
|
@@ -23241,23 +23265,23 @@ var require_handleUnaryCall = __commonJS({
|
|
23241
23265
|
responseStream: definition.responseStream,
|
23242
23266
|
options: definition.options
|
23243
23267
|
};
|
23244
|
-
async function* unaryMethodHandler(request,
|
23268
|
+
async function* unaryMethodHandler(request, context) {
|
23245
23269
|
if ((0, isAsyncIterable_1.isAsyncIterable)(request)) {
|
23246
23270
|
throw new Error("A middleware passed invalid request to next(): expected a single message for unary method");
|
23247
23271
|
}
|
23248
|
-
return await implementation(request,
|
23272
|
+
return await implementation(request, context);
|
23249
23273
|
}
|
23250
|
-
const handler = middleware == null ? unaryMethodHandler : (request,
|
23274
|
+
const handler = middleware == null ? unaryMethodHandler : (request, context) => middleware({
|
23251
23275
|
method: methodDescriptor,
|
23252
23276
|
requestStream: false,
|
23253
23277
|
request,
|
23254
23278
|
responseStream: false,
|
23255
23279
|
next: unaryMethodHandler
|
23256
|
-
},
|
23280
|
+
}, context);
|
23257
23281
|
return (call, callback) => {
|
23258
|
-
const { context
|
23282
|
+
const { context, maybeCancel } = (0, createCallContext_1.createCallContext)(call);
|
23259
23283
|
Promise.resolve().then(async () => {
|
23260
|
-
const iterable = handler(call.request,
|
23284
|
+
const iterable = handler(call.request, context);
|
23261
23285
|
const iterator = iterable[Symbol.asyncIterator]();
|
23262
23286
|
try {
|
23263
23287
|
let result = await iterator.next();
|
@@ -23274,21 +23298,21 @@ var require_handleUnaryCall = __commonJS({
|
|
23274
23298
|
}
|
23275
23299
|
} finally {
|
23276
23300
|
maybeCancel.cancel = void 0;
|
23277
|
-
|
23301
|
+
context.sendHeader();
|
23278
23302
|
}
|
23279
23303
|
}).then((res) => {
|
23280
|
-
callback(null, res, (0, convertMetadata_1.convertMetadataToGrpcJs)(
|
23304
|
+
callback(null, res, (0, convertMetadata_1.convertMetadataToGrpcJs)(context.trailer));
|
23281
23305
|
}, (err) => {
|
23282
|
-
callback((0, createErrorStatusObject_1.createErrorStatusObject)(definition.path, err, (0, convertMetadata_1.convertMetadataToGrpcJs)(
|
23306
|
+
callback((0, createErrorStatusObject_1.createErrorStatusObject)(definition.path, err, (0, convertMetadata_1.convertMetadataToGrpcJs)(context.trailer)));
|
23283
23307
|
});
|
23284
23308
|
};
|
23285
23309
|
}
|
23286
23310
|
}
|
23287
23311
|
});
|
23288
23312
|
|
23289
|
-
// ../../node_modules/.pnpm/nice-grpc@2.1.
|
23313
|
+
// ../../node_modules/.pnpm/nice-grpc@2.1.12/node_modules/nice-grpc/lib/server/Server.js
|
23290
23314
|
var require_Server = __commonJS({
|
23291
|
-
"../../node_modules/.pnpm/nice-grpc@2.1.
|
23315
|
+
"../../node_modules/.pnpm/nice-grpc@2.1.12/node_modules/nice-grpc/lib/server/Server.js"(exports) {
|
23292
23316
|
"use strict";
|
23293
23317
|
Object.defineProperty(exports, "__esModule", { value: true });
|
23294
23318
|
exports.createServer = createServer;
|
@@ -23397,17 +23421,17 @@ var require_Server = __commonJS({
|
|
23397
23421
|
}
|
23398
23422
|
});
|
23399
23423
|
|
23400
|
-
// ../../node_modules/.pnpm/nice-grpc@2.1.
|
23424
|
+
// ../../node_modules/.pnpm/nice-grpc@2.1.12/node_modules/nice-grpc/lib/server/ServiceImplementation.js
|
23401
23425
|
var require_ServiceImplementation = __commonJS({
|
23402
|
-
"../../node_modules/.pnpm/nice-grpc@2.1.
|
23426
|
+
"../../node_modules/.pnpm/nice-grpc@2.1.12/node_modules/nice-grpc/lib/server/ServiceImplementation.js"(exports) {
|
23403
23427
|
"use strict";
|
23404
23428
|
Object.defineProperty(exports, "__esModule", { value: true });
|
23405
23429
|
}
|
23406
23430
|
});
|
23407
23431
|
|
23408
|
-
// ../../node_modules/.pnpm/nice-grpc@2.1.
|
23432
|
+
// ../../node_modules/.pnpm/nice-grpc@2.1.12/node_modules/nice-grpc/lib/client/channel.js
|
23409
23433
|
var require_channel2 = __commonJS({
|
23410
|
-
"../../node_modules/.pnpm/nice-grpc@2.1.
|
23434
|
+
"../../node_modules/.pnpm/nice-grpc@2.1.12/node_modules/nice-grpc/lib/client/channel.js"(exports) {
|
23411
23435
|
"use strict";
|
23412
23436
|
Object.defineProperty(exports, "__esModule", { value: true });
|
23413
23437
|
exports.createChannel = createChannel;
|
@@ -23446,9 +23470,9 @@ var require_channel2 = __commonJS({
|
|
23446
23470
|
}
|
23447
23471
|
});
|
23448
23472
|
|
23449
|
-
// ../../node_modules/.pnpm/nice-grpc@2.1.
|
23473
|
+
// ../../node_modules/.pnpm/nice-grpc@2.1.12/node_modules/nice-grpc/lib/client/wrapClientError.js
|
23450
23474
|
var require_wrapClientError = __commonJS({
|
23451
|
-
"../../node_modules/.pnpm/nice-grpc@2.1.
|
23475
|
+
"../../node_modules/.pnpm/nice-grpc@2.1.12/node_modules/nice-grpc/lib/client/wrapClientError.js"(exports) {
|
23452
23476
|
"use strict";
|
23453
23477
|
Object.defineProperty(exports, "__esModule", { value: true });
|
23454
23478
|
exports.wrapClientError = wrapClientError;
|
@@ -23466,9 +23490,9 @@ var require_wrapClientError = __commonJS({
|
|
23466
23490
|
}
|
23467
23491
|
});
|
23468
23492
|
|
23469
|
-
// ../../node_modules/.pnpm/nice-grpc@2.1.
|
23493
|
+
// ../../node_modules/.pnpm/nice-grpc@2.1.12/node_modules/nice-grpc/lib/client/createBidiStreamingMethod.js
|
23470
23494
|
var require_createBidiStreamingMethod = __commonJS({
|
23471
|
-
"../../node_modules/.pnpm/nice-grpc@2.1.
|
23495
|
+
"../../node_modules/.pnpm/nice-grpc@2.1.12/node_modules/nice-grpc/lib/client/createBidiStreamingMethod.js"(exports) {
|
23472
23496
|
"use strict";
|
23473
23497
|
Object.defineProperty(exports, "__esModule", { value: true });
|
23474
23498
|
exports.createBidiStreamingMethod = createBidiStreamingMethod;
|
@@ -23575,9 +23599,9 @@ var require_createBidiStreamingMethod = __commonJS({
|
|
23575
23599
|
}
|
23576
23600
|
});
|
23577
23601
|
|
23578
|
-
// ../../node_modules/.pnpm/nice-grpc@2.1.
|
23602
|
+
// ../../node_modules/.pnpm/nice-grpc@2.1.12/node_modules/nice-grpc/lib/client/createClientStreamingMethod.js
|
23579
23603
|
var require_createClientStreamingMethod = __commonJS({
|
23580
|
-
"../../node_modules/.pnpm/nice-grpc@2.1.
|
23604
|
+
"../../node_modules/.pnpm/nice-grpc@2.1.12/node_modules/nice-grpc/lib/client/createClientStreamingMethod.js"(exports) {
|
23581
23605
|
"use strict";
|
23582
23606
|
Object.defineProperty(exports, "__esModule", { value: true });
|
23583
23607
|
exports.createClientStreamingMethod = createClientStreamingMethod;
|
@@ -23669,9 +23693,9 @@ var require_createClientStreamingMethod = __commonJS({
|
|
23669
23693
|
}
|
23670
23694
|
});
|
23671
23695
|
|
23672
|
-
// ../../node_modules/.pnpm/nice-grpc@2.1.
|
23696
|
+
// ../../node_modules/.pnpm/nice-grpc@2.1.12/node_modules/nice-grpc/lib/client/createServerStreamingMethod.js
|
23673
23697
|
var require_createServerStreamingMethod = __commonJS({
|
23674
|
-
"../../node_modules/.pnpm/nice-grpc@2.1.
|
23698
|
+
"../../node_modules/.pnpm/nice-grpc@2.1.12/node_modules/nice-grpc/lib/client/createServerStreamingMethod.js"(exports) {
|
23675
23699
|
"use strict";
|
23676
23700
|
Object.defineProperty(exports, "__esModule", { value: true });
|
23677
23701
|
exports.createServerStreamingMethod = createServerStreamingMethod;
|
@@ -23754,9 +23778,9 @@ var require_createServerStreamingMethod = __commonJS({
|
|
23754
23778
|
}
|
23755
23779
|
});
|
23756
23780
|
|
23757
|
-
// ../../node_modules/.pnpm/nice-grpc@2.1.
|
23781
|
+
// ../../node_modules/.pnpm/nice-grpc@2.1.12/node_modules/nice-grpc/lib/client/createUnaryMethod.js
|
23758
23782
|
var require_createUnaryMethod = __commonJS({
|
23759
|
-
"../../node_modules/.pnpm/nice-grpc@2.1.
|
23783
|
+
"../../node_modules/.pnpm/nice-grpc@2.1.12/node_modules/nice-grpc/lib/client/createUnaryMethod.js"(exports) {
|
23760
23784
|
"use strict";
|
23761
23785
|
Object.defineProperty(exports, "__esModule", { value: true });
|
23762
23786
|
exports.createUnaryMethod = createUnaryMethod;
|
@@ -23828,9 +23852,9 @@ var require_createUnaryMethod = __commonJS({
|
|
23828
23852
|
}
|
23829
23853
|
});
|
23830
23854
|
|
23831
|
-
// ../../node_modules/.pnpm/nice-grpc@2.1.
|
23855
|
+
// ../../node_modules/.pnpm/nice-grpc@2.1.12/node_modules/nice-grpc/lib/client/ClientFactory.js
|
23832
23856
|
var require_ClientFactory = __commonJS({
|
23833
|
-
"../../node_modules/.pnpm/nice-grpc@2.1.
|
23857
|
+
"../../node_modules/.pnpm/nice-grpc@2.1.12/node_modules/nice-grpc/lib/client/ClientFactory.js"(exports) {
|
23834
23858
|
"use strict";
|
23835
23859
|
Object.defineProperty(exports, "__esModule", { value: true });
|
23836
23860
|
exports.createClientFactory = createClientFactory;
|
@@ -23886,17 +23910,17 @@ var require_ClientFactory = __commonJS({
|
|
23886
23910
|
}
|
23887
23911
|
});
|
23888
23912
|
|
23889
|
-
// ../../node_modules/.pnpm/nice-grpc@2.1.
|
23913
|
+
// ../../node_modules/.pnpm/nice-grpc@2.1.12/node_modules/nice-grpc/lib/client/Client.js
|
23890
23914
|
var require_Client = __commonJS({
|
23891
|
-
"../../node_modules/.pnpm/nice-grpc@2.1.
|
23915
|
+
"../../node_modules/.pnpm/nice-grpc@2.1.12/node_modules/nice-grpc/lib/client/Client.js"(exports) {
|
23892
23916
|
"use strict";
|
23893
23917
|
Object.defineProperty(exports, "__esModule", { value: true });
|
23894
23918
|
}
|
23895
23919
|
});
|
23896
23920
|
|
23897
|
-
// ../../node_modules/.pnpm/nice-grpc@2.1.
|
23921
|
+
// ../../node_modules/.pnpm/nice-grpc@2.1.12/node_modules/nice-grpc/lib/index.js
|
23898
23922
|
var require_lib3 = __commonJS({
|
23899
|
-
"../../node_modules/.pnpm/nice-grpc@2.1.
|
23923
|
+
"../../node_modules/.pnpm/nice-grpc@2.1.12/node_modules/nice-grpc/lib/index.js"(exports) {
|
23900
23924
|
"use strict";
|
23901
23925
|
var __createBinding = exports && exports.__createBinding || (Object.create ? function(o, m, k, k2) {
|
23902
23926
|
if (k2 === void 0) k2 = k;
|
@@ -25049,9 +25073,9 @@ var require_errorDetailsServerMiddleware = __commonJS({
|
|
25049
25073
|
var ErrorDetails_1 = require_ErrorDetails();
|
25050
25074
|
var status_1 = require_status();
|
25051
25075
|
var RichServerError_1 = require_RichServerError();
|
25052
|
-
var errorDetailsServerMiddleware = async function* errorDetailsServerMiddleware2(call,
|
25076
|
+
var errorDetailsServerMiddleware = async function* errorDetailsServerMiddleware2(call, context) {
|
25053
25077
|
try {
|
25054
|
-
return yield* call.next(call.request,
|
25078
|
+
return yield* call.next(call.request, context);
|
25055
25079
|
} catch (err) {
|
25056
25080
|
if (err instanceof RichServerError_1.RichServerError) {
|
25057
25081
|
const status = status_1.Status.fromPartial({
|
@@ -25059,7 +25083,7 @@ var require_errorDetailsServerMiddleware = __commonJS({
|
|
25059
25083
|
message: err.details,
|
25060
25084
|
details: (0, ErrorDetails_1.encodeErrorDetails)(err.extra)
|
25061
25085
|
});
|
25062
|
-
|
25086
|
+
context.trailer.set("grpc-status-details-bin", status_1.Status.encode(status).finish());
|
25063
25087
|
}
|
25064
25088
|
throw err;
|
25065
25089
|
}
|
@@ -25167,1679 +25191,6 @@ var require_lib4 = __commonJS({
|
|
25167
25191
|
}
|
25168
25192
|
});
|
25169
25193
|
|
25170
|
-
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/esm/platform/node/globalThis.js
|
25171
|
-
var _globalThis;
|
25172
|
-
var init_globalThis = __esm({
|
25173
|
-
"../../node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/esm/platform/node/globalThis.js"() {
|
25174
|
-
"use strict";
|
25175
|
-
_globalThis = typeof globalThis === "object" ? globalThis : global;
|
25176
|
-
}
|
25177
|
-
});
|
25178
|
-
|
25179
|
-
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/esm/platform/node/index.js
|
25180
|
-
var init_node = __esm({
|
25181
|
-
"../../node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/esm/platform/node/index.js"() {
|
25182
|
-
"use strict";
|
25183
|
-
init_globalThis();
|
25184
|
-
}
|
25185
|
-
});
|
25186
|
-
|
25187
|
-
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/esm/platform/index.js
|
25188
|
-
var init_platform = __esm({
|
25189
|
-
"../../node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/esm/platform/index.js"() {
|
25190
|
-
"use strict";
|
25191
|
-
init_node();
|
25192
|
-
}
|
25193
|
-
});
|
25194
|
-
|
25195
|
-
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/esm/version.js
|
25196
|
-
var VERSION;
|
25197
|
-
var init_version = __esm({
|
25198
|
-
"../../node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/esm/version.js"() {
|
25199
|
-
"use strict";
|
25200
|
-
VERSION = "1.9.0";
|
25201
|
-
}
|
25202
|
-
});
|
25203
|
-
|
25204
|
-
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/esm/internal/semver.js
|
25205
|
-
function _makeCompatibilityCheck(ownVersion) {
|
25206
|
-
var acceptedVersions = /* @__PURE__ */ new Set([ownVersion]);
|
25207
|
-
var rejectedVersions = /* @__PURE__ */ new Set();
|
25208
|
-
var myVersionMatch = ownVersion.match(re);
|
25209
|
-
if (!myVersionMatch) {
|
25210
|
-
return function() {
|
25211
|
-
return false;
|
25212
|
-
};
|
25213
|
-
}
|
25214
|
-
var ownVersionParsed = {
|
25215
|
-
major: +myVersionMatch[1],
|
25216
|
-
minor: +myVersionMatch[2],
|
25217
|
-
patch: +myVersionMatch[3],
|
25218
|
-
prerelease: myVersionMatch[4]
|
25219
|
-
};
|
25220
|
-
if (ownVersionParsed.prerelease != null) {
|
25221
|
-
return function isExactmatch(globalVersion) {
|
25222
|
-
return globalVersion === ownVersion;
|
25223
|
-
};
|
25224
|
-
}
|
25225
|
-
function _reject(v) {
|
25226
|
-
rejectedVersions.add(v);
|
25227
|
-
return false;
|
25228
|
-
}
|
25229
|
-
function _accept(v) {
|
25230
|
-
acceptedVersions.add(v);
|
25231
|
-
return true;
|
25232
|
-
}
|
25233
|
-
return function isCompatible2(globalVersion) {
|
25234
|
-
if (acceptedVersions.has(globalVersion)) {
|
25235
|
-
return true;
|
25236
|
-
}
|
25237
|
-
if (rejectedVersions.has(globalVersion)) {
|
25238
|
-
return false;
|
25239
|
-
}
|
25240
|
-
var globalVersionMatch = globalVersion.match(re);
|
25241
|
-
if (!globalVersionMatch) {
|
25242
|
-
return _reject(globalVersion);
|
25243
|
-
}
|
25244
|
-
var globalVersionParsed = {
|
25245
|
-
major: +globalVersionMatch[1],
|
25246
|
-
minor: +globalVersionMatch[2],
|
25247
|
-
patch: +globalVersionMatch[3],
|
25248
|
-
prerelease: globalVersionMatch[4]
|
25249
|
-
};
|
25250
|
-
if (globalVersionParsed.prerelease != null) {
|
25251
|
-
return _reject(globalVersion);
|
25252
|
-
}
|
25253
|
-
if (ownVersionParsed.major !== globalVersionParsed.major) {
|
25254
|
-
return _reject(globalVersion);
|
25255
|
-
}
|
25256
|
-
if (ownVersionParsed.major === 0) {
|
25257
|
-
if (ownVersionParsed.minor === globalVersionParsed.minor && ownVersionParsed.patch <= globalVersionParsed.patch) {
|
25258
|
-
return _accept(globalVersion);
|
25259
|
-
}
|
25260
|
-
return _reject(globalVersion);
|
25261
|
-
}
|
25262
|
-
if (ownVersionParsed.minor <= globalVersionParsed.minor) {
|
25263
|
-
return _accept(globalVersion);
|
25264
|
-
}
|
25265
|
-
return _reject(globalVersion);
|
25266
|
-
};
|
25267
|
-
}
|
25268
|
-
var re, isCompatible;
|
25269
|
-
var init_semver = __esm({
|
25270
|
-
"../../node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/esm/internal/semver.js"() {
|
25271
|
-
"use strict";
|
25272
|
-
init_version();
|
25273
|
-
re = /^(\d+)\.(\d+)\.(\d+)(-(.+))?$/;
|
25274
|
-
isCompatible = _makeCompatibilityCheck(VERSION);
|
25275
|
-
}
|
25276
|
-
});
|
25277
|
-
|
25278
|
-
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/esm/internal/global-utils.js
|
25279
|
-
function registerGlobal(type, instance, diag3, allowOverride) {
|
25280
|
-
var _a;
|
25281
|
-
if (allowOverride === void 0) {
|
25282
|
-
allowOverride = false;
|
25283
|
-
}
|
25284
|
-
var api = _global[GLOBAL_OPENTELEMETRY_API_KEY] = (_a = _global[GLOBAL_OPENTELEMETRY_API_KEY]) !== null && _a !== void 0 ? _a : {
|
25285
|
-
version: VERSION
|
25286
|
-
};
|
25287
|
-
if (!allowOverride && api[type]) {
|
25288
|
-
var err = new Error("@opentelemetry/api: Attempted duplicate registration of API: " + type);
|
25289
|
-
diag3.error(err.stack || err.message);
|
25290
|
-
return false;
|
25291
|
-
}
|
25292
|
-
if (api.version !== VERSION) {
|
25293
|
-
var err = new Error("@opentelemetry/api: Registration of version v" + api.version + " for " + type + " does not match previously registered API v" + VERSION);
|
25294
|
-
diag3.error(err.stack || err.message);
|
25295
|
-
return false;
|
25296
|
-
}
|
25297
|
-
api[type] = instance;
|
25298
|
-
diag3.debug("@opentelemetry/api: Registered a global for " + type + " v" + VERSION + ".");
|
25299
|
-
return true;
|
25300
|
-
}
|
25301
|
-
function getGlobal(type) {
|
25302
|
-
var _a, _b;
|
25303
|
-
var globalVersion = (_a = _global[GLOBAL_OPENTELEMETRY_API_KEY]) === null || _a === void 0 ? void 0 : _a.version;
|
25304
|
-
if (!globalVersion || !isCompatible(globalVersion)) {
|
25305
|
-
return;
|
25306
|
-
}
|
25307
|
-
return (_b = _global[GLOBAL_OPENTELEMETRY_API_KEY]) === null || _b === void 0 ? void 0 : _b[type];
|
25308
|
-
}
|
25309
|
-
function unregisterGlobal(type, diag3) {
|
25310
|
-
diag3.debug("@opentelemetry/api: Unregistering a global for " + type + " v" + VERSION + ".");
|
25311
|
-
var api = _global[GLOBAL_OPENTELEMETRY_API_KEY];
|
25312
|
-
if (api) {
|
25313
|
-
delete api[type];
|
25314
|
-
}
|
25315
|
-
}
|
25316
|
-
var major, GLOBAL_OPENTELEMETRY_API_KEY, _global;
|
25317
|
-
var init_global_utils = __esm({
|
25318
|
-
"../../node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/esm/internal/global-utils.js"() {
|
25319
|
-
"use strict";
|
25320
|
-
init_platform();
|
25321
|
-
init_version();
|
25322
|
-
init_semver();
|
25323
|
-
major = VERSION.split(".")[0];
|
25324
|
-
GLOBAL_OPENTELEMETRY_API_KEY = Symbol.for("opentelemetry.js.api." + major);
|
25325
|
-
_global = _globalThis;
|
25326
|
-
}
|
25327
|
-
});
|
25328
|
-
|
25329
|
-
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/esm/diag/ComponentLogger.js
|
25330
|
-
function logProxy(funcName, namespace, args) {
|
25331
|
-
var logger = getGlobal("diag");
|
25332
|
-
if (!logger) {
|
25333
|
-
return;
|
25334
|
-
}
|
25335
|
-
args.unshift(namespace);
|
25336
|
-
return logger[funcName].apply(logger, __spreadArray([], __read(args), false));
|
25337
|
-
}
|
25338
|
-
var __read, __spreadArray, DiagComponentLogger;
|
25339
|
-
var init_ComponentLogger = __esm({
|
25340
|
-
"../../node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/esm/diag/ComponentLogger.js"() {
|
25341
|
-
"use strict";
|
25342
|
-
init_global_utils();
|
25343
|
-
__read = function(o, n2) {
|
25344
|
-
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
25345
|
-
if (!m) return o;
|
25346
|
-
var i = m.call(o), r, ar = [], e;
|
25347
|
-
try {
|
25348
|
-
while ((n2 === void 0 || n2-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
25349
|
-
} catch (error) {
|
25350
|
-
e = { error };
|
25351
|
-
} finally {
|
25352
|
-
try {
|
25353
|
-
if (r && !r.done && (m = i["return"])) m.call(i);
|
25354
|
-
} finally {
|
25355
|
-
if (e) throw e.error;
|
25356
|
-
}
|
25357
|
-
}
|
25358
|
-
return ar;
|
25359
|
-
};
|
25360
|
-
__spreadArray = function(to, from2, pack2) {
|
25361
|
-
if (pack2 || arguments.length === 2) for (var i = 0, l = from2.length, ar; i < l; i++) {
|
25362
|
-
if (ar || !(i in from2)) {
|
25363
|
-
if (!ar) ar = Array.prototype.slice.call(from2, 0, i);
|
25364
|
-
ar[i] = from2[i];
|
25365
|
-
}
|
25366
|
-
}
|
25367
|
-
return to.concat(ar || Array.prototype.slice.call(from2));
|
25368
|
-
};
|
25369
|
-
DiagComponentLogger = /** @class */
|
25370
|
-
function() {
|
25371
|
-
function DiagComponentLogger2(props) {
|
25372
|
-
this._namespace = props.namespace || "DiagComponentLogger";
|
25373
|
-
}
|
25374
|
-
DiagComponentLogger2.prototype.debug = function() {
|
25375
|
-
var args = [];
|
25376
|
-
for (var _i = 0; _i < arguments.length; _i++) {
|
25377
|
-
args[_i] = arguments[_i];
|
25378
|
-
}
|
25379
|
-
return logProxy("debug", this._namespace, args);
|
25380
|
-
};
|
25381
|
-
DiagComponentLogger2.prototype.error = function() {
|
25382
|
-
var args = [];
|
25383
|
-
for (var _i = 0; _i < arguments.length; _i++) {
|
25384
|
-
args[_i] = arguments[_i];
|
25385
|
-
}
|
25386
|
-
return logProxy("error", this._namespace, args);
|
25387
|
-
};
|
25388
|
-
DiagComponentLogger2.prototype.info = function() {
|
25389
|
-
var args = [];
|
25390
|
-
for (var _i = 0; _i < arguments.length; _i++) {
|
25391
|
-
args[_i] = arguments[_i];
|
25392
|
-
}
|
25393
|
-
return logProxy("info", this._namespace, args);
|
25394
|
-
};
|
25395
|
-
DiagComponentLogger2.prototype.warn = function() {
|
25396
|
-
var args = [];
|
25397
|
-
for (var _i = 0; _i < arguments.length; _i++) {
|
25398
|
-
args[_i] = arguments[_i];
|
25399
|
-
}
|
25400
|
-
return logProxy("warn", this._namespace, args);
|
25401
|
-
};
|
25402
|
-
DiagComponentLogger2.prototype.verbose = function() {
|
25403
|
-
var args = [];
|
25404
|
-
for (var _i = 0; _i < arguments.length; _i++) {
|
25405
|
-
args[_i] = arguments[_i];
|
25406
|
-
}
|
25407
|
-
return logProxy("verbose", this._namespace, args);
|
25408
|
-
};
|
25409
|
-
return DiagComponentLogger2;
|
25410
|
-
}();
|
25411
|
-
}
|
25412
|
-
});
|
25413
|
-
|
25414
|
-
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/esm/diag/types.js
|
25415
|
-
var DiagLogLevel;
|
25416
|
-
var init_types = __esm({
|
25417
|
-
"../../node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/esm/diag/types.js"() {
|
25418
|
-
"use strict";
|
25419
|
-
(function(DiagLogLevel2) {
|
25420
|
-
DiagLogLevel2[DiagLogLevel2["NONE"] = 0] = "NONE";
|
25421
|
-
DiagLogLevel2[DiagLogLevel2["ERROR"] = 30] = "ERROR";
|
25422
|
-
DiagLogLevel2[DiagLogLevel2["WARN"] = 50] = "WARN";
|
25423
|
-
DiagLogLevel2[DiagLogLevel2["INFO"] = 60] = "INFO";
|
25424
|
-
DiagLogLevel2[DiagLogLevel2["DEBUG"] = 70] = "DEBUG";
|
25425
|
-
DiagLogLevel2[DiagLogLevel2["VERBOSE"] = 80] = "VERBOSE";
|
25426
|
-
DiagLogLevel2[DiagLogLevel2["ALL"] = 9999] = "ALL";
|
25427
|
-
})(DiagLogLevel || (DiagLogLevel = {}));
|
25428
|
-
}
|
25429
|
-
});
|
25430
|
-
|
25431
|
-
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/esm/diag/internal/logLevelLogger.js
|
25432
|
-
function createLogLevelDiagLogger(maxLevel, logger) {
|
25433
|
-
if (maxLevel < DiagLogLevel.NONE) {
|
25434
|
-
maxLevel = DiagLogLevel.NONE;
|
25435
|
-
} else if (maxLevel > DiagLogLevel.ALL) {
|
25436
|
-
maxLevel = DiagLogLevel.ALL;
|
25437
|
-
}
|
25438
|
-
logger = logger || {};
|
25439
|
-
function _filterFunc(funcName, theLevel) {
|
25440
|
-
var theFunc = logger[funcName];
|
25441
|
-
if (typeof theFunc === "function" && maxLevel >= theLevel) {
|
25442
|
-
return theFunc.bind(logger);
|
25443
|
-
}
|
25444
|
-
return function() {
|
25445
|
-
};
|
25446
|
-
}
|
25447
|
-
return {
|
25448
|
-
error: _filterFunc("error", DiagLogLevel.ERROR),
|
25449
|
-
warn: _filterFunc("warn", DiagLogLevel.WARN),
|
25450
|
-
info: _filterFunc("info", DiagLogLevel.INFO),
|
25451
|
-
debug: _filterFunc("debug", DiagLogLevel.DEBUG),
|
25452
|
-
verbose: _filterFunc("verbose", DiagLogLevel.VERBOSE)
|
25453
|
-
};
|
25454
|
-
}
|
25455
|
-
var init_logLevelLogger = __esm({
|
25456
|
-
"../../node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/esm/diag/internal/logLevelLogger.js"() {
|
25457
|
-
"use strict";
|
25458
|
-
init_types();
|
25459
|
-
}
|
25460
|
-
});
|
25461
|
-
|
25462
|
-
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/esm/api/diag.js
|
25463
|
-
var __read2, __spreadArray2, API_NAME, DiagAPI;
|
25464
|
-
var init_diag = __esm({
|
25465
|
-
"../../node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/esm/api/diag.js"() {
|
25466
|
-
"use strict";
|
25467
|
-
init_ComponentLogger();
|
25468
|
-
init_logLevelLogger();
|
25469
|
-
init_types();
|
25470
|
-
init_global_utils();
|
25471
|
-
__read2 = function(o, n2) {
|
25472
|
-
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
25473
|
-
if (!m) return o;
|
25474
|
-
var i = m.call(o), r, ar = [], e;
|
25475
|
-
try {
|
25476
|
-
while ((n2 === void 0 || n2-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
25477
|
-
} catch (error) {
|
25478
|
-
e = { error };
|
25479
|
-
} finally {
|
25480
|
-
try {
|
25481
|
-
if (r && !r.done && (m = i["return"])) m.call(i);
|
25482
|
-
} finally {
|
25483
|
-
if (e) throw e.error;
|
25484
|
-
}
|
25485
|
-
}
|
25486
|
-
return ar;
|
25487
|
-
};
|
25488
|
-
__spreadArray2 = function(to, from2, pack2) {
|
25489
|
-
if (pack2 || arguments.length === 2) for (var i = 0, l = from2.length, ar; i < l; i++) {
|
25490
|
-
if (ar || !(i in from2)) {
|
25491
|
-
if (!ar) ar = Array.prototype.slice.call(from2, 0, i);
|
25492
|
-
ar[i] = from2[i];
|
25493
|
-
}
|
25494
|
-
}
|
25495
|
-
return to.concat(ar || Array.prototype.slice.call(from2));
|
25496
|
-
};
|
25497
|
-
API_NAME = "diag";
|
25498
|
-
DiagAPI = /** @class */
|
25499
|
-
function() {
|
25500
|
-
function DiagAPI2() {
|
25501
|
-
function _logProxy(funcName) {
|
25502
|
-
return function() {
|
25503
|
-
var args = [];
|
25504
|
-
for (var _i = 0; _i < arguments.length; _i++) {
|
25505
|
-
args[_i] = arguments[_i];
|
25506
|
-
}
|
25507
|
-
var logger = getGlobal("diag");
|
25508
|
-
if (!logger)
|
25509
|
-
return;
|
25510
|
-
return logger[funcName].apply(logger, __spreadArray2([], __read2(args), false));
|
25511
|
-
};
|
25512
|
-
}
|
25513
|
-
var self2 = this;
|
25514
|
-
var setLogger = function(logger, optionsOrLogLevel) {
|
25515
|
-
var _a, _b, _c;
|
25516
|
-
if (optionsOrLogLevel === void 0) {
|
25517
|
-
optionsOrLogLevel = { logLevel: DiagLogLevel.INFO };
|
25518
|
-
}
|
25519
|
-
if (logger === self2) {
|
25520
|
-
var err = new Error("Cannot use diag as the logger for itself. Please use a DiagLogger implementation like ConsoleDiagLogger or a custom implementation");
|
25521
|
-
self2.error((_a = err.stack) !== null && _a !== void 0 ? _a : err.message);
|
25522
|
-
return false;
|
25523
|
-
}
|
25524
|
-
if (typeof optionsOrLogLevel === "number") {
|
25525
|
-
optionsOrLogLevel = {
|
25526
|
-
logLevel: optionsOrLogLevel
|
25527
|
-
};
|
25528
|
-
}
|
25529
|
-
var oldLogger = getGlobal("diag");
|
25530
|
-
var newLogger = createLogLevelDiagLogger((_b = optionsOrLogLevel.logLevel) !== null && _b !== void 0 ? _b : DiagLogLevel.INFO, logger);
|
25531
|
-
if (oldLogger && !optionsOrLogLevel.suppressOverrideMessage) {
|
25532
|
-
var stack = (_c = new Error().stack) !== null && _c !== void 0 ? _c : "<failed to generate stacktrace>";
|
25533
|
-
oldLogger.warn("Current logger will be overwritten from " + stack);
|
25534
|
-
newLogger.warn("Current logger will overwrite one already registered from " + stack);
|
25535
|
-
}
|
25536
|
-
return registerGlobal("diag", newLogger, self2, true);
|
25537
|
-
};
|
25538
|
-
self2.setLogger = setLogger;
|
25539
|
-
self2.disable = function() {
|
25540
|
-
unregisterGlobal(API_NAME, self2);
|
25541
|
-
};
|
25542
|
-
self2.createComponentLogger = function(options) {
|
25543
|
-
return new DiagComponentLogger(options);
|
25544
|
-
};
|
25545
|
-
self2.verbose = _logProxy("verbose");
|
25546
|
-
self2.debug = _logProxy("debug");
|
25547
|
-
self2.info = _logProxy("info");
|
25548
|
-
self2.warn = _logProxy("warn");
|
25549
|
-
self2.error = _logProxy("error");
|
25550
|
-
}
|
25551
|
-
DiagAPI2.instance = function() {
|
25552
|
-
if (!this._instance) {
|
25553
|
-
this._instance = new DiagAPI2();
|
25554
|
-
}
|
25555
|
-
return this._instance;
|
25556
|
-
};
|
25557
|
-
return DiagAPI2;
|
25558
|
-
}();
|
25559
|
-
}
|
25560
|
-
});
|
25561
|
-
|
25562
|
-
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/esm/baggage/internal/baggage-impl.js
|
25563
|
-
var __read3, __values, BaggageImpl;
|
25564
|
-
var init_baggage_impl = __esm({
|
25565
|
-
"../../node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/esm/baggage/internal/baggage-impl.js"() {
|
25566
|
-
"use strict";
|
25567
|
-
__read3 = function(o, n2) {
|
25568
|
-
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
25569
|
-
if (!m) return o;
|
25570
|
-
var i = m.call(o), r, ar = [], e;
|
25571
|
-
try {
|
25572
|
-
while ((n2 === void 0 || n2-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
25573
|
-
} catch (error) {
|
25574
|
-
e = { error };
|
25575
|
-
} finally {
|
25576
|
-
try {
|
25577
|
-
if (r && !r.done && (m = i["return"])) m.call(i);
|
25578
|
-
} finally {
|
25579
|
-
if (e) throw e.error;
|
25580
|
-
}
|
25581
|
-
}
|
25582
|
-
return ar;
|
25583
|
-
};
|
25584
|
-
__values = function(o) {
|
25585
|
-
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
25586
|
-
if (m) return m.call(o);
|
25587
|
-
if (o && typeof o.length === "number") return {
|
25588
|
-
next: function() {
|
25589
|
-
if (o && i >= o.length) o = void 0;
|
25590
|
-
return { value: o && o[i++], done: !o };
|
25591
|
-
}
|
25592
|
-
};
|
25593
|
-
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
25594
|
-
};
|
25595
|
-
BaggageImpl = /** @class */
|
25596
|
-
function() {
|
25597
|
-
function BaggageImpl2(entries) {
|
25598
|
-
this._entries = entries ? new Map(entries) : /* @__PURE__ */ new Map();
|
25599
|
-
}
|
25600
|
-
BaggageImpl2.prototype.getEntry = function(key) {
|
25601
|
-
var entry = this._entries.get(key);
|
25602
|
-
if (!entry) {
|
25603
|
-
return void 0;
|
25604
|
-
}
|
25605
|
-
return Object.assign({}, entry);
|
25606
|
-
};
|
25607
|
-
BaggageImpl2.prototype.getAllEntries = function() {
|
25608
|
-
return Array.from(this._entries.entries()).map(function(_a) {
|
25609
|
-
var _b = __read3(_a, 2), k = _b[0], v = _b[1];
|
25610
|
-
return [k, v];
|
25611
|
-
});
|
25612
|
-
};
|
25613
|
-
BaggageImpl2.prototype.setEntry = function(key, entry) {
|
25614
|
-
var newBaggage = new BaggageImpl2(this._entries);
|
25615
|
-
newBaggage._entries.set(key, entry);
|
25616
|
-
return newBaggage;
|
25617
|
-
};
|
25618
|
-
BaggageImpl2.prototype.removeEntry = function(key) {
|
25619
|
-
var newBaggage = new BaggageImpl2(this._entries);
|
25620
|
-
newBaggage._entries.delete(key);
|
25621
|
-
return newBaggage;
|
25622
|
-
};
|
25623
|
-
BaggageImpl2.prototype.removeEntries = function() {
|
25624
|
-
var e_1, _a;
|
25625
|
-
var keys = [];
|
25626
|
-
for (var _i = 0; _i < arguments.length; _i++) {
|
25627
|
-
keys[_i] = arguments[_i];
|
25628
|
-
}
|
25629
|
-
var newBaggage = new BaggageImpl2(this._entries);
|
25630
|
-
try {
|
25631
|
-
for (var keys_1 = __values(keys), keys_1_1 = keys_1.next(); !keys_1_1.done; keys_1_1 = keys_1.next()) {
|
25632
|
-
var key = keys_1_1.value;
|
25633
|
-
newBaggage._entries.delete(key);
|
25634
|
-
}
|
25635
|
-
} catch (e_1_1) {
|
25636
|
-
e_1 = { error: e_1_1 };
|
25637
|
-
} finally {
|
25638
|
-
try {
|
25639
|
-
if (keys_1_1 && !keys_1_1.done && (_a = keys_1.return)) _a.call(keys_1);
|
25640
|
-
} finally {
|
25641
|
-
if (e_1) throw e_1.error;
|
25642
|
-
}
|
25643
|
-
}
|
25644
|
-
return newBaggage;
|
25645
|
-
};
|
25646
|
-
BaggageImpl2.prototype.clear = function() {
|
25647
|
-
return new BaggageImpl2();
|
25648
|
-
};
|
25649
|
-
return BaggageImpl2;
|
25650
|
-
}();
|
25651
|
-
}
|
25652
|
-
});
|
25653
|
-
|
25654
|
-
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/esm/baggage/internal/symbol.js
|
25655
|
-
var baggageEntryMetadataSymbol;
|
25656
|
-
var init_symbol = __esm({
|
25657
|
-
"../../node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/esm/baggage/internal/symbol.js"() {
|
25658
|
-
"use strict";
|
25659
|
-
baggageEntryMetadataSymbol = Symbol("BaggageEntryMetadata");
|
25660
|
-
}
|
25661
|
-
});
|
25662
|
-
|
25663
|
-
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/esm/baggage/utils.js
|
25664
|
-
function createBaggage(entries) {
|
25665
|
-
if (entries === void 0) {
|
25666
|
-
entries = {};
|
25667
|
-
}
|
25668
|
-
return new BaggageImpl(new Map(Object.entries(entries)));
|
25669
|
-
}
|
25670
|
-
function baggageEntryMetadataFromString(str) {
|
25671
|
-
if (typeof str !== "string") {
|
25672
|
-
diag.error("Cannot create baggage metadata from unknown type: " + typeof str);
|
25673
|
-
str = "";
|
25674
|
-
}
|
25675
|
-
return {
|
25676
|
-
__TYPE__: baggageEntryMetadataSymbol,
|
25677
|
-
toString: function() {
|
25678
|
-
return str;
|
25679
|
-
}
|
25680
|
-
};
|
25681
|
-
}
|
25682
|
-
var diag;
|
25683
|
-
var init_utils = __esm({
|
25684
|
-
"../../node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/esm/baggage/utils.js"() {
|
25685
|
-
"use strict";
|
25686
|
-
init_diag();
|
25687
|
-
init_baggage_impl();
|
25688
|
-
init_symbol();
|
25689
|
-
diag = DiagAPI.instance();
|
25690
|
-
}
|
25691
|
-
});
|
25692
|
-
|
25693
|
-
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/esm/context/context.js
|
25694
|
-
function createContextKey(description) {
|
25695
|
-
return Symbol.for(description);
|
25696
|
-
}
|
25697
|
-
var BaseContext, ROOT_CONTEXT;
|
25698
|
-
var init_context = __esm({
|
25699
|
-
"../../node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/esm/context/context.js"() {
|
25700
|
-
"use strict";
|
25701
|
-
BaseContext = /** @class */
|
25702
|
-
/* @__PURE__ */ function() {
|
25703
|
-
function BaseContext2(parentContext) {
|
25704
|
-
var self2 = this;
|
25705
|
-
self2._currentContext = parentContext ? new Map(parentContext) : /* @__PURE__ */ new Map();
|
25706
|
-
self2.getValue = function(key) {
|
25707
|
-
return self2._currentContext.get(key);
|
25708
|
-
};
|
25709
|
-
self2.setValue = function(key, value) {
|
25710
|
-
var context2 = new BaseContext2(self2._currentContext);
|
25711
|
-
context2._currentContext.set(key, value);
|
25712
|
-
return context2;
|
25713
|
-
};
|
25714
|
-
self2.deleteValue = function(key) {
|
25715
|
-
var context2 = new BaseContext2(self2._currentContext);
|
25716
|
-
context2._currentContext.delete(key);
|
25717
|
-
return context2;
|
25718
|
-
};
|
25719
|
-
}
|
25720
|
-
return BaseContext2;
|
25721
|
-
}();
|
25722
|
-
ROOT_CONTEXT = new BaseContext();
|
25723
|
-
}
|
25724
|
-
});
|
25725
|
-
|
25726
|
-
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/esm/diag/consoleLogger.js
|
25727
|
-
var consoleMap, DiagConsoleLogger;
|
25728
|
-
var init_consoleLogger = __esm({
|
25729
|
-
"../../node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/esm/diag/consoleLogger.js"() {
|
25730
|
-
"use strict";
|
25731
|
-
consoleMap = [
|
25732
|
-
{ n: "error", c: "error" },
|
25733
|
-
{ n: "warn", c: "warn" },
|
25734
|
-
{ n: "info", c: "info" },
|
25735
|
-
{ n: "debug", c: "debug" },
|
25736
|
-
{ n: "verbose", c: "trace" }
|
25737
|
-
];
|
25738
|
-
DiagConsoleLogger = /** @class */
|
25739
|
-
/* @__PURE__ */ function() {
|
25740
|
-
function DiagConsoleLogger2() {
|
25741
|
-
function _consoleFunc(funcName) {
|
25742
|
-
return function() {
|
25743
|
-
var args = [];
|
25744
|
-
for (var _i = 0; _i < arguments.length; _i++) {
|
25745
|
-
args[_i] = arguments[_i];
|
25746
|
-
}
|
25747
|
-
if (console) {
|
25748
|
-
var theFunc = console[funcName];
|
25749
|
-
if (typeof theFunc !== "function") {
|
25750
|
-
theFunc = console.log;
|
25751
|
-
}
|
25752
|
-
if (typeof theFunc === "function") {
|
25753
|
-
return theFunc.apply(console, args);
|
25754
|
-
}
|
25755
|
-
}
|
25756
|
-
};
|
25757
|
-
}
|
25758
|
-
for (var i = 0; i < consoleMap.length; i++) {
|
25759
|
-
this[consoleMap[i].n] = _consoleFunc(consoleMap[i].c);
|
25760
|
-
}
|
25761
|
-
}
|
25762
|
-
return DiagConsoleLogger2;
|
25763
|
-
}();
|
25764
|
-
}
|
25765
|
-
});
|
25766
|
-
|
25767
|
-
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/esm/metrics/NoopMeter.js
|
25768
|
-
function createNoopMeter() {
|
25769
|
-
return NOOP_METER;
|
25770
|
-
}
|
25771
|
-
var __extends2, NoopMeter, NoopMetric, NoopCounterMetric, NoopUpDownCounterMetric, NoopGaugeMetric, NoopHistogramMetric, NoopObservableMetric, NoopObservableCounterMetric, NoopObservableGaugeMetric, NoopObservableUpDownCounterMetric, NOOP_METER, NOOP_COUNTER_METRIC, NOOP_GAUGE_METRIC, NOOP_HISTOGRAM_METRIC, NOOP_UP_DOWN_COUNTER_METRIC, NOOP_OBSERVABLE_COUNTER_METRIC, NOOP_OBSERVABLE_GAUGE_METRIC, NOOP_OBSERVABLE_UP_DOWN_COUNTER_METRIC;
|
25772
|
-
var init_NoopMeter = __esm({
|
25773
|
-
"../../node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/esm/metrics/NoopMeter.js"() {
|
25774
|
-
"use strict";
|
25775
|
-
__extends2 = /* @__PURE__ */ function() {
|
25776
|
-
var extendStatics2 = function(d, b2) {
|
25777
|
-
extendStatics2 = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b3) {
|
25778
|
-
d2.__proto__ = b3;
|
25779
|
-
} || function(d2, b3) {
|
25780
|
-
for (var p in b3) if (Object.prototype.hasOwnProperty.call(b3, p)) d2[p] = b3[p];
|
25781
|
-
};
|
25782
|
-
return extendStatics2(d, b2);
|
25783
|
-
};
|
25784
|
-
return function(d, b2) {
|
25785
|
-
if (typeof b2 !== "function" && b2 !== null)
|
25786
|
-
throw new TypeError("Class extends value " + String(b2) + " is not a constructor or null");
|
25787
|
-
extendStatics2(d, b2);
|
25788
|
-
function __() {
|
25789
|
-
this.constructor = d;
|
25790
|
-
}
|
25791
|
-
d.prototype = b2 === null ? Object.create(b2) : (__.prototype = b2.prototype, new __());
|
25792
|
-
};
|
25793
|
-
}();
|
25794
|
-
NoopMeter = /** @class */
|
25795
|
-
function() {
|
25796
|
-
function NoopMeter2() {
|
25797
|
-
}
|
25798
|
-
NoopMeter2.prototype.createGauge = function(_name, _options) {
|
25799
|
-
return NOOP_GAUGE_METRIC;
|
25800
|
-
};
|
25801
|
-
NoopMeter2.prototype.createHistogram = function(_name, _options) {
|
25802
|
-
return NOOP_HISTOGRAM_METRIC;
|
25803
|
-
};
|
25804
|
-
NoopMeter2.prototype.createCounter = function(_name, _options) {
|
25805
|
-
return NOOP_COUNTER_METRIC;
|
25806
|
-
};
|
25807
|
-
NoopMeter2.prototype.createUpDownCounter = function(_name, _options) {
|
25808
|
-
return NOOP_UP_DOWN_COUNTER_METRIC;
|
25809
|
-
};
|
25810
|
-
NoopMeter2.prototype.createObservableGauge = function(_name, _options) {
|
25811
|
-
return NOOP_OBSERVABLE_GAUGE_METRIC;
|
25812
|
-
};
|
25813
|
-
NoopMeter2.prototype.createObservableCounter = function(_name, _options) {
|
25814
|
-
return NOOP_OBSERVABLE_COUNTER_METRIC;
|
25815
|
-
};
|
25816
|
-
NoopMeter2.prototype.createObservableUpDownCounter = function(_name, _options) {
|
25817
|
-
return NOOP_OBSERVABLE_UP_DOWN_COUNTER_METRIC;
|
25818
|
-
};
|
25819
|
-
NoopMeter2.prototype.addBatchObservableCallback = function(_callback, _observables) {
|
25820
|
-
};
|
25821
|
-
NoopMeter2.prototype.removeBatchObservableCallback = function(_callback) {
|
25822
|
-
};
|
25823
|
-
return NoopMeter2;
|
25824
|
-
}();
|
25825
|
-
NoopMetric = /** @class */
|
25826
|
-
/* @__PURE__ */ function() {
|
25827
|
-
function NoopMetric2() {
|
25828
|
-
}
|
25829
|
-
return NoopMetric2;
|
25830
|
-
}();
|
25831
|
-
NoopCounterMetric = /** @class */
|
25832
|
-
function(_super) {
|
25833
|
-
__extends2(NoopCounterMetric2, _super);
|
25834
|
-
function NoopCounterMetric2() {
|
25835
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
25836
|
-
}
|
25837
|
-
NoopCounterMetric2.prototype.add = function(_value, _attributes) {
|
25838
|
-
};
|
25839
|
-
return NoopCounterMetric2;
|
25840
|
-
}(NoopMetric);
|
25841
|
-
NoopUpDownCounterMetric = /** @class */
|
25842
|
-
function(_super) {
|
25843
|
-
__extends2(NoopUpDownCounterMetric2, _super);
|
25844
|
-
function NoopUpDownCounterMetric2() {
|
25845
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
25846
|
-
}
|
25847
|
-
NoopUpDownCounterMetric2.prototype.add = function(_value, _attributes) {
|
25848
|
-
};
|
25849
|
-
return NoopUpDownCounterMetric2;
|
25850
|
-
}(NoopMetric);
|
25851
|
-
NoopGaugeMetric = /** @class */
|
25852
|
-
function(_super) {
|
25853
|
-
__extends2(NoopGaugeMetric2, _super);
|
25854
|
-
function NoopGaugeMetric2() {
|
25855
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
25856
|
-
}
|
25857
|
-
NoopGaugeMetric2.prototype.record = function(_value, _attributes) {
|
25858
|
-
};
|
25859
|
-
return NoopGaugeMetric2;
|
25860
|
-
}(NoopMetric);
|
25861
|
-
NoopHistogramMetric = /** @class */
|
25862
|
-
function(_super) {
|
25863
|
-
__extends2(NoopHistogramMetric2, _super);
|
25864
|
-
function NoopHistogramMetric2() {
|
25865
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
25866
|
-
}
|
25867
|
-
NoopHistogramMetric2.prototype.record = function(_value, _attributes) {
|
25868
|
-
};
|
25869
|
-
return NoopHistogramMetric2;
|
25870
|
-
}(NoopMetric);
|
25871
|
-
NoopObservableMetric = /** @class */
|
25872
|
-
function() {
|
25873
|
-
function NoopObservableMetric2() {
|
25874
|
-
}
|
25875
|
-
NoopObservableMetric2.prototype.addCallback = function(_callback) {
|
25876
|
-
};
|
25877
|
-
NoopObservableMetric2.prototype.removeCallback = function(_callback) {
|
25878
|
-
};
|
25879
|
-
return NoopObservableMetric2;
|
25880
|
-
}();
|
25881
|
-
NoopObservableCounterMetric = /** @class */
|
25882
|
-
function(_super) {
|
25883
|
-
__extends2(NoopObservableCounterMetric2, _super);
|
25884
|
-
function NoopObservableCounterMetric2() {
|
25885
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
25886
|
-
}
|
25887
|
-
return NoopObservableCounterMetric2;
|
25888
|
-
}(NoopObservableMetric);
|
25889
|
-
NoopObservableGaugeMetric = /** @class */
|
25890
|
-
function(_super) {
|
25891
|
-
__extends2(NoopObservableGaugeMetric2, _super);
|
25892
|
-
function NoopObservableGaugeMetric2() {
|
25893
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
25894
|
-
}
|
25895
|
-
return NoopObservableGaugeMetric2;
|
25896
|
-
}(NoopObservableMetric);
|
25897
|
-
NoopObservableUpDownCounterMetric = /** @class */
|
25898
|
-
function(_super) {
|
25899
|
-
__extends2(NoopObservableUpDownCounterMetric2, _super);
|
25900
|
-
function NoopObservableUpDownCounterMetric2() {
|
25901
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
25902
|
-
}
|
25903
|
-
return NoopObservableUpDownCounterMetric2;
|
25904
|
-
}(NoopObservableMetric);
|
25905
|
-
NOOP_METER = new NoopMeter();
|
25906
|
-
NOOP_COUNTER_METRIC = new NoopCounterMetric();
|
25907
|
-
NOOP_GAUGE_METRIC = new NoopGaugeMetric();
|
25908
|
-
NOOP_HISTOGRAM_METRIC = new NoopHistogramMetric();
|
25909
|
-
NOOP_UP_DOWN_COUNTER_METRIC = new NoopUpDownCounterMetric();
|
25910
|
-
NOOP_OBSERVABLE_COUNTER_METRIC = new NoopObservableCounterMetric();
|
25911
|
-
NOOP_OBSERVABLE_GAUGE_METRIC = new NoopObservableGaugeMetric();
|
25912
|
-
NOOP_OBSERVABLE_UP_DOWN_COUNTER_METRIC = new NoopObservableUpDownCounterMetric();
|
25913
|
-
}
|
25914
|
-
});
|
25915
|
-
|
25916
|
-
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/esm/metrics/Metric.js
|
25917
|
-
var ValueType;
|
25918
|
-
var init_Metric = __esm({
|
25919
|
-
"../../node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/esm/metrics/Metric.js"() {
|
25920
|
-
"use strict";
|
25921
|
-
(function(ValueType2) {
|
25922
|
-
ValueType2[ValueType2["INT"] = 0] = "INT";
|
25923
|
-
ValueType2[ValueType2["DOUBLE"] = 1] = "DOUBLE";
|
25924
|
-
})(ValueType || (ValueType = {}));
|
25925
|
-
}
|
25926
|
-
});
|
25927
|
-
|
25928
|
-
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/esm/propagation/TextMapPropagator.js
|
25929
|
-
var defaultTextMapGetter, defaultTextMapSetter;
|
25930
|
-
var init_TextMapPropagator = __esm({
|
25931
|
-
"../../node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/esm/propagation/TextMapPropagator.js"() {
|
25932
|
-
"use strict";
|
25933
|
-
defaultTextMapGetter = {
|
25934
|
-
get: function(carrier, key) {
|
25935
|
-
if (carrier == null) {
|
25936
|
-
return void 0;
|
25937
|
-
}
|
25938
|
-
return carrier[key];
|
25939
|
-
},
|
25940
|
-
keys: function(carrier) {
|
25941
|
-
if (carrier == null) {
|
25942
|
-
return [];
|
25943
|
-
}
|
25944
|
-
return Object.keys(carrier);
|
25945
|
-
}
|
25946
|
-
};
|
25947
|
-
defaultTextMapSetter = {
|
25948
|
-
set: function(carrier, key, value) {
|
25949
|
-
if (carrier == null) {
|
25950
|
-
return;
|
25951
|
-
}
|
25952
|
-
carrier[key] = value;
|
25953
|
-
}
|
25954
|
-
};
|
25955
|
-
}
|
25956
|
-
});
|
25957
|
-
|
25958
|
-
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/esm/context/NoopContextManager.js
|
25959
|
-
var __read4, __spreadArray3, NoopContextManager;
|
25960
|
-
var init_NoopContextManager = __esm({
|
25961
|
-
"../../node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/esm/context/NoopContextManager.js"() {
|
25962
|
-
"use strict";
|
25963
|
-
init_context();
|
25964
|
-
__read4 = function(o, n2) {
|
25965
|
-
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
25966
|
-
if (!m) return o;
|
25967
|
-
var i = m.call(o), r, ar = [], e;
|
25968
|
-
try {
|
25969
|
-
while ((n2 === void 0 || n2-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
25970
|
-
} catch (error) {
|
25971
|
-
e = { error };
|
25972
|
-
} finally {
|
25973
|
-
try {
|
25974
|
-
if (r && !r.done && (m = i["return"])) m.call(i);
|
25975
|
-
} finally {
|
25976
|
-
if (e) throw e.error;
|
25977
|
-
}
|
25978
|
-
}
|
25979
|
-
return ar;
|
25980
|
-
};
|
25981
|
-
__spreadArray3 = function(to, from2, pack2) {
|
25982
|
-
if (pack2 || arguments.length === 2) for (var i = 0, l = from2.length, ar; i < l; i++) {
|
25983
|
-
if (ar || !(i in from2)) {
|
25984
|
-
if (!ar) ar = Array.prototype.slice.call(from2, 0, i);
|
25985
|
-
ar[i] = from2[i];
|
25986
|
-
}
|
25987
|
-
}
|
25988
|
-
return to.concat(ar || Array.prototype.slice.call(from2));
|
25989
|
-
};
|
25990
|
-
NoopContextManager = /** @class */
|
25991
|
-
function() {
|
25992
|
-
function NoopContextManager2() {
|
25993
|
-
}
|
25994
|
-
NoopContextManager2.prototype.active = function() {
|
25995
|
-
return ROOT_CONTEXT;
|
25996
|
-
};
|
25997
|
-
NoopContextManager2.prototype.with = function(_context, fn, thisArg) {
|
25998
|
-
var args = [];
|
25999
|
-
for (var _i = 3; _i < arguments.length; _i++) {
|
26000
|
-
args[_i - 3] = arguments[_i];
|
26001
|
-
}
|
26002
|
-
return fn.call.apply(fn, __spreadArray3([thisArg], __read4(args), false));
|
26003
|
-
};
|
26004
|
-
NoopContextManager2.prototype.bind = function(_context, target) {
|
26005
|
-
return target;
|
26006
|
-
};
|
26007
|
-
NoopContextManager2.prototype.enable = function() {
|
26008
|
-
return this;
|
26009
|
-
};
|
26010
|
-
NoopContextManager2.prototype.disable = function() {
|
26011
|
-
return this;
|
26012
|
-
};
|
26013
|
-
return NoopContextManager2;
|
26014
|
-
}();
|
26015
|
-
}
|
26016
|
-
});
|
26017
|
-
|
26018
|
-
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/esm/api/context.js
|
26019
|
-
var __read5, __spreadArray4, API_NAME2, NOOP_CONTEXT_MANAGER, ContextAPI;
|
26020
|
-
var init_context2 = __esm({
|
26021
|
-
"../../node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/esm/api/context.js"() {
|
26022
|
-
"use strict";
|
26023
|
-
init_NoopContextManager();
|
26024
|
-
init_global_utils();
|
26025
|
-
init_diag();
|
26026
|
-
__read5 = function(o, n2) {
|
26027
|
-
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
26028
|
-
if (!m) return o;
|
26029
|
-
var i = m.call(o), r, ar = [], e;
|
26030
|
-
try {
|
26031
|
-
while ((n2 === void 0 || n2-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
26032
|
-
} catch (error) {
|
26033
|
-
e = { error };
|
26034
|
-
} finally {
|
26035
|
-
try {
|
26036
|
-
if (r && !r.done && (m = i["return"])) m.call(i);
|
26037
|
-
} finally {
|
26038
|
-
if (e) throw e.error;
|
26039
|
-
}
|
26040
|
-
}
|
26041
|
-
return ar;
|
26042
|
-
};
|
26043
|
-
__spreadArray4 = function(to, from2, pack2) {
|
26044
|
-
if (pack2 || arguments.length === 2) for (var i = 0, l = from2.length, ar; i < l; i++) {
|
26045
|
-
if (ar || !(i in from2)) {
|
26046
|
-
if (!ar) ar = Array.prototype.slice.call(from2, 0, i);
|
26047
|
-
ar[i] = from2[i];
|
26048
|
-
}
|
26049
|
-
}
|
26050
|
-
return to.concat(ar || Array.prototype.slice.call(from2));
|
26051
|
-
};
|
26052
|
-
API_NAME2 = "context";
|
26053
|
-
NOOP_CONTEXT_MANAGER = new NoopContextManager();
|
26054
|
-
ContextAPI = /** @class */
|
26055
|
-
function() {
|
26056
|
-
function ContextAPI2() {
|
26057
|
-
}
|
26058
|
-
ContextAPI2.getInstance = function() {
|
26059
|
-
if (!this._instance) {
|
26060
|
-
this._instance = new ContextAPI2();
|
26061
|
-
}
|
26062
|
-
return this._instance;
|
26063
|
-
};
|
26064
|
-
ContextAPI2.prototype.setGlobalContextManager = function(contextManager) {
|
26065
|
-
return registerGlobal(API_NAME2, contextManager, DiagAPI.instance());
|
26066
|
-
};
|
26067
|
-
ContextAPI2.prototype.active = function() {
|
26068
|
-
return this._getContextManager().active();
|
26069
|
-
};
|
26070
|
-
ContextAPI2.prototype.with = function(context2, fn, thisArg) {
|
26071
|
-
var _a;
|
26072
|
-
var args = [];
|
26073
|
-
for (var _i = 3; _i < arguments.length; _i++) {
|
26074
|
-
args[_i - 3] = arguments[_i];
|
26075
|
-
}
|
26076
|
-
return (_a = this._getContextManager()).with.apply(_a, __spreadArray4([context2, fn, thisArg], __read5(args), false));
|
26077
|
-
};
|
26078
|
-
ContextAPI2.prototype.bind = function(context2, target) {
|
26079
|
-
return this._getContextManager().bind(context2, target);
|
26080
|
-
};
|
26081
|
-
ContextAPI2.prototype._getContextManager = function() {
|
26082
|
-
return getGlobal(API_NAME2) || NOOP_CONTEXT_MANAGER;
|
26083
|
-
};
|
26084
|
-
ContextAPI2.prototype.disable = function() {
|
26085
|
-
this._getContextManager().disable();
|
26086
|
-
unregisterGlobal(API_NAME2, DiagAPI.instance());
|
26087
|
-
};
|
26088
|
-
return ContextAPI2;
|
26089
|
-
}();
|
26090
|
-
}
|
26091
|
-
});
|
26092
|
-
|
26093
|
-
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/esm/trace/trace_flags.js
|
26094
|
-
var TraceFlags;
|
26095
|
-
var init_trace_flags = __esm({
|
26096
|
-
"../../node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/esm/trace/trace_flags.js"() {
|
26097
|
-
"use strict";
|
26098
|
-
(function(TraceFlags2) {
|
26099
|
-
TraceFlags2[TraceFlags2["NONE"] = 0] = "NONE";
|
26100
|
-
TraceFlags2[TraceFlags2["SAMPLED"] = 1] = "SAMPLED";
|
26101
|
-
})(TraceFlags || (TraceFlags = {}));
|
26102
|
-
}
|
26103
|
-
});
|
26104
|
-
|
26105
|
-
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/esm/trace/invalid-span-constants.js
|
26106
|
-
var INVALID_SPANID, INVALID_TRACEID, INVALID_SPAN_CONTEXT;
|
26107
|
-
var init_invalid_span_constants = __esm({
|
26108
|
-
"../../node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/esm/trace/invalid-span-constants.js"() {
|
26109
|
-
"use strict";
|
26110
|
-
init_trace_flags();
|
26111
|
-
INVALID_SPANID = "0000000000000000";
|
26112
|
-
INVALID_TRACEID = "00000000000000000000000000000000";
|
26113
|
-
INVALID_SPAN_CONTEXT = {
|
26114
|
-
traceId: INVALID_TRACEID,
|
26115
|
-
spanId: INVALID_SPANID,
|
26116
|
-
traceFlags: TraceFlags.NONE
|
26117
|
-
};
|
26118
|
-
}
|
26119
|
-
});
|
26120
|
-
|
26121
|
-
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/esm/trace/NonRecordingSpan.js
|
26122
|
-
var NonRecordingSpan;
|
26123
|
-
var init_NonRecordingSpan = __esm({
|
26124
|
-
"../../node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/esm/trace/NonRecordingSpan.js"() {
|
26125
|
-
"use strict";
|
26126
|
-
init_invalid_span_constants();
|
26127
|
-
NonRecordingSpan = /** @class */
|
26128
|
-
function() {
|
26129
|
-
function NonRecordingSpan2(_spanContext) {
|
26130
|
-
if (_spanContext === void 0) {
|
26131
|
-
_spanContext = INVALID_SPAN_CONTEXT;
|
26132
|
-
}
|
26133
|
-
this._spanContext = _spanContext;
|
26134
|
-
}
|
26135
|
-
NonRecordingSpan2.prototype.spanContext = function() {
|
26136
|
-
return this._spanContext;
|
26137
|
-
};
|
26138
|
-
NonRecordingSpan2.prototype.setAttribute = function(_key, _value) {
|
26139
|
-
return this;
|
26140
|
-
};
|
26141
|
-
NonRecordingSpan2.prototype.setAttributes = function(_attributes) {
|
26142
|
-
return this;
|
26143
|
-
};
|
26144
|
-
NonRecordingSpan2.prototype.addEvent = function(_name, _attributes) {
|
26145
|
-
return this;
|
26146
|
-
};
|
26147
|
-
NonRecordingSpan2.prototype.addLink = function(_link) {
|
26148
|
-
return this;
|
26149
|
-
};
|
26150
|
-
NonRecordingSpan2.prototype.addLinks = function(_links) {
|
26151
|
-
return this;
|
26152
|
-
};
|
26153
|
-
NonRecordingSpan2.prototype.setStatus = function(_status) {
|
26154
|
-
return this;
|
26155
|
-
};
|
26156
|
-
NonRecordingSpan2.prototype.updateName = function(_name) {
|
26157
|
-
return this;
|
26158
|
-
};
|
26159
|
-
NonRecordingSpan2.prototype.end = function(_endTime) {
|
26160
|
-
};
|
26161
|
-
NonRecordingSpan2.prototype.isRecording = function() {
|
26162
|
-
return false;
|
26163
|
-
};
|
26164
|
-
NonRecordingSpan2.prototype.recordException = function(_exception, _time) {
|
26165
|
-
};
|
26166
|
-
return NonRecordingSpan2;
|
26167
|
-
}();
|
26168
|
-
}
|
26169
|
-
});
|
26170
|
-
|
26171
|
-
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/esm/trace/context-utils.js
|
26172
|
-
function getSpan(context2) {
|
26173
|
-
return context2.getValue(SPAN_KEY) || void 0;
|
26174
|
-
}
|
26175
|
-
function getActiveSpan() {
|
26176
|
-
return getSpan(ContextAPI.getInstance().active());
|
26177
|
-
}
|
26178
|
-
function setSpan(context2, span) {
|
26179
|
-
return context2.setValue(SPAN_KEY, span);
|
26180
|
-
}
|
26181
|
-
function deleteSpan(context2) {
|
26182
|
-
return context2.deleteValue(SPAN_KEY);
|
26183
|
-
}
|
26184
|
-
function setSpanContext(context2, spanContext) {
|
26185
|
-
return setSpan(context2, new NonRecordingSpan(spanContext));
|
26186
|
-
}
|
26187
|
-
function getSpanContext(context2) {
|
26188
|
-
var _a;
|
26189
|
-
return (_a = getSpan(context2)) === null || _a === void 0 ? void 0 : _a.spanContext();
|
26190
|
-
}
|
26191
|
-
var SPAN_KEY;
|
26192
|
-
var init_context_utils = __esm({
|
26193
|
-
"../../node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/esm/trace/context-utils.js"() {
|
26194
|
-
"use strict";
|
26195
|
-
init_context();
|
26196
|
-
init_NonRecordingSpan();
|
26197
|
-
init_context2();
|
26198
|
-
SPAN_KEY = createContextKey("OpenTelemetry Context Key SPAN");
|
26199
|
-
}
|
26200
|
-
});
|
26201
|
-
|
26202
|
-
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/esm/trace/spancontext-utils.js
|
26203
|
-
function isValidTraceId(traceId) {
|
26204
|
-
return VALID_TRACEID_REGEX.test(traceId) && traceId !== INVALID_TRACEID;
|
26205
|
-
}
|
26206
|
-
function isValidSpanId(spanId) {
|
26207
|
-
return VALID_SPANID_REGEX.test(spanId) && spanId !== INVALID_SPANID;
|
26208
|
-
}
|
26209
|
-
function isSpanContextValid(spanContext) {
|
26210
|
-
return isValidTraceId(spanContext.traceId) && isValidSpanId(spanContext.spanId);
|
26211
|
-
}
|
26212
|
-
function wrapSpanContext(spanContext) {
|
26213
|
-
return new NonRecordingSpan(spanContext);
|
26214
|
-
}
|
26215
|
-
var VALID_TRACEID_REGEX, VALID_SPANID_REGEX;
|
26216
|
-
var init_spancontext_utils = __esm({
|
26217
|
-
"../../node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/esm/trace/spancontext-utils.js"() {
|
26218
|
-
"use strict";
|
26219
|
-
init_invalid_span_constants();
|
26220
|
-
init_NonRecordingSpan();
|
26221
|
-
VALID_TRACEID_REGEX = /^([0-9a-f]{32})$/i;
|
26222
|
-
VALID_SPANID_REGEX = /^[0-9a-f]{16}$/i;
|
26223
|
-
}
|
26224
|
-
});
|
26225
|
-
|
26226
|
-
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/esm/trace/NoopTracer.js
|
26227
|
-
function isSpanContext(spanContext) {
|
26228
|
-
return typeof spanContext === "object" && typeof spanContext["spanId"] === "string" && typeof spanContext["traceId"] === "string" && typeof spanContext["traceFlags"] === "number";
|
26229
|
-
}
|
26230
|
-
var contextApi, NoopTracer;
|
26231
|
-
var init_NoopTracer = __esm({
|
26232
|
-
"../../node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/esm/trace/NoopTracer.js"() {
|
26233
|
-
"use strict";
|
26234
|
-
init_context2();
|
26235
|
-
init_context_utils();
|
26236
|
-
init_NonRecordingSpan();
|
26237
|
-
init_spancontext_utils();
|
26238
|
-
contextApi = ContextAPI.getInstance();
|
26239
|
-
NoopTracer = /** @class */
|
26240
|
-
function() {
|
26241
|
-
function NoopTracer2() {
|
26242
|
-
}
|
26243
|
-
NoopTracer2.prototype.startSpan = function(name, options, context2) {
|
26244
|
-
if (context2 === void 0) {
|
26245
|
-
context2 = contextApi.active();
|
26246
|
-
}
|
26247
|
-
var root = Boolean(options === null || options === void 0 ? void 0 : options.root);
|
26248
|
-
if (root) {
|
26249
|
-
return new NonRecordingSpan();
|
26250
|
-
}
|
26251
|
-
var parentFromContext = context2 && getSpanContext(context2);
|
26252
|
-
if (isSpanContext(parentFromContext) && isSpanContextValid(parentFromContext)) {
|
26253
|
-
return new NonRecordingSpan(parentFromContext);
|
26254
|
-
} else {
|
26255
|
-
return new NonRecordingSpan();
|
26256
|
-
}
|
26257
|
-
};
|
26258
|
-
NoopTracer2.prototype.startActiveSpan = function(name, arg2, arg3, arg4) {
|
26259
|
-
var opts;
|
26260
|
-
var ctx;
|
26261
|
-
var fn;
|
26262
|
-
if (arguments.length < 2) {
|
26263
|
-
return;
|
26264
|
-
} else if (arguments.length === 2) {
|
26265
|
-
fn = arg2;
|
26266
|
-
} else if (arguments.length === 3) {
|
26267
|
-
opts = arg2;
|
26268
|
-
fn = arg3;
|
26269
|
-
} else {
|
26270
|
-
opts = arg2;
|
26271
|
-
ctx = arg3;
|
26272
|
-
fn = arg4;
|
26273
|
-
}
|
26274
|
-
var parentContext = ctx !== null && ctx !== void 0 ? ctx : contextApi.active();
|
26275
|
-
var span = this.startSpan(name, opts, parentContext);
|
26276
|
-
var contextWithSpanSet = setSpan(parentContext, span);
|
26277
|
-
return contextApi.with(contextWithSpanSet, fn, void 0, span);
|
26278
|
-
};
|
26279
|
-
return NoopTracer2;
|
26280
|
-
}();
|
26281
|
-
}
|
26282
|
-
});
|
26283
|
-
|
26284
|
-
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/esm/trace/ProxyTracer.js
|
26285
|
-
var NOOP_TRACER, ProxyTracer;
|
26286
|
-
var init_ProxyTracer = __esm({
|
26287
|
-
"../../node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/esm/trace/ProxyTracer.js"() {
|
26288
|
-
"use strict";
|
26289
|
-
init_NoopTracer();
|
26290
|
-
NOOP_TRACER = new NoopTracer();
|
26291
|
-
ProxyTracer = /** @class */
|
26292
|
-
function() {
|
26293
|
-
function ProxyTracer2(_provider, name, version2, options) {
|
26294
|
-
this._provider = _provider;
|
26295
|
-
this.name = name;
|
26296
|
-
this.version = version2;
|
26297
|
-
this.options = options;
|
26298
|
-
}
|
26299
|
-
ProxyTracer2.prototype.startSpan = function(name, options, context2) {
|
26300
|
-
return this._getTracer().startSpan(name, options, context2);
|
26301
|
-
};
|
26302
|
-
ProxyTracer2.prototype.startActiveSpan = function(_name, _options, _context, _fn) {
|
26303
|
-
var tracer = this._getTracer();
|
26304
|
-
return Reflect.apply(tracer.startActiveSpan, tracer, arguments);
|
26305
|
-
};
|
26306
|
-
ProxyTracer2.prototype._getTracer = function() {
|
26307
|
-
if (this._delegate) {
|
26308
|
-
return this._delegate;
|
26309
|
-
}
|
26310
|
-
var tracer = this._provider.getDelegateTracer(this.name, this.version, this.options);
|
26311
|
-
if (!tracer) {
|
26312
|
-
return NOOP_TRACER;
|
26313
|
-
}
|
26314
|
-
this._delegate = tracer;
|
26315
|
-
return this._delegate;
|
26316
|
-
};
|
26317
|
-
return ProxyTracer2;
|
26318
|
-
}();
|
26319
|
-
}
|
26320
|
-
});
|
26321
|
-
|
26322
|
-
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/esm/trace/NoopTracerProvider.js
|
26323
|
-
var NoopTracerProvider;
|
26324
|
-
var init_NoopTracerProvider = __esm({
|
26325
|
-
"../../node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/esm/trace/NoopTracerProvider.js"() {
|
26326
|
-
"use strict";
|
26327
|
-
init_NoopTracer();
|
26328
|
-
NoopTracerProvider = /** @class */
|
26329
|
-
function() {
|
26330
|
-
function NoopTracerProvider2() {
|
26331
|
-
}
|
26332
|
-
NoopTracerProvider2.prototype.getTracer = function(_name, _version, _options) {
|
26333
|
-
return new NoopTracer();
|
26334
|
-
};
|
26335
|
-
return NoopTracerProvider2;
|
26336
|
-
}();
|
26337
|
-
}
|
26338
|
-
});
|
26339
|
-
|
26340
|
-
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/esm/trace/ProxyTracerProvider.js
|
26341
|
-
var NOOP_TRACER_PROVIDER, ProxyTracerProvider;
|
26342
|
-
var init_ProxyTracerProvider = __esm({
|
26343
|
-
"../../node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/esm/trace/ProxyTracerProvider.js"() {
|
26344
|
-
"use strict";
|
26345
|
-
init_ProxyTracer();
|
26346
|
-
init_NoopTracerProvider();
|
26347
|
-
NOOP_TRACER_PROVIDER = new NoopTracerProvider();
|
26348
|
-
ProxyTracerProvider = /** @class */
|
26349
|
-
function() {
|
26350
|
-
function ProxyTracerProvider2() {
|
26351
|
-
}
|
26352
|
-
ProxyTracerProvider2.prototype.getTracer = function(name, version2, options) {
|
26353
|
-
var _a;
|
26354
|
-
return (_a = this.getDelegateTracer(name, version2, options)) !== null && _a !== void 0 ? _a : new ProxyTracer(this, name, version2, options);
|
26355
|
-
};
|
26356
|
-
ProxyTracerProvider2.prototype.getDelegate = function() {
|
26357
|
-
var _a;
|
26358
|
-
return (_a = this._delegate) !== null && _a !== void 0 ? _a : NOOP_TRACER_PROVIDER;
|
26359
|
-
};
|
26360
|
-
ProxyTracerProvider2.prototype.setDelegate = function(delegate) {
|
26361
|
-
this._delegate = delegate;
|
26362
|
-
};
|
26363
|
-
ProxyTracerProvider2.prototype.getDelegateTracer = function(name, version2, options) {
|
26364
|
-
var _a;
|
26365
|
-
return (_a = this._delegate) === null || _a === void 0 ? void 0 : _a.getTracer(name, version2, options);
|
26366
|
-
};
|
26367
|
-
return ProxyTracerProvider2;
|
26368
|
-
}();
|
26369
|
-
}
|
26370
|
-
});
|
26371
|
-
|
26372
|
-
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/esm/trace/SamplingResult.js
|
26373
|
-
var SamplingDecision;
|
26374
|
-
var init_SamplingResult = __esm({
|
26375
|
-
"../../node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/esm/trace/SamplingResult.js"() {
|
26376
|
-
"use strict";
|
26377
|
-
(function(SamplingDecision2) {
|
26378
|
-
SamplingDecision2[SamplingDecision2["NOT_RECORD"] = 0] = "NOT_RECORD";
|
26379
|
-
SamplingDecision2[SamplingDecision2["RECORD"] = 1] = "RECORD";
|
26380
|
-
SamplingDecision2[SamplingDecision2["RECORD_AND_SAMPLED"] = 2] = "RECORD_AND_SAMPLED";
|
26381
|
-
})(SamplingDecision || (SamplingDecision = {}));
|
26382
|
-
}
|
26383
|
-
});
|
26384
|
-
|
26385
|
-
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/esm/trace/span_kind.js
|
26386
|
-
var SpanKind;
|
26387
|
-
var init_span_kind = __esm({
|
26388
|
-
"../../node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/esm/trace/span_kind.js"() {
|
26389
|
-
"use strict";
|
26390
|
-
(function(SpanKind2) {
|
26391
|
-
SpanKind2[SpanKind2["INTERNAL"] = 0] = "INTERNAL";
|
26392
|
-
SpanKind2[SpanKind2["SERVER"] = 1] = "SERVER";
|
26393
|
-
SpanKind2[SpanKind2["CLIENT"] = 2] = "CLIENT";
|
26394
|
-
SpanKind2[SpanKind2["PRODUCER"] = 3] = "PRODUCER";
|
26395
|
-
SpanKind2[SpanKind2["CONSUMER"] = 4] = "CONSUMER";
|
26396
|
-
})(SpanKind || (SpanKind = {}));
|
26397
|
-
}
|
26398
|
-
});
|
26399
|
-
|
26400
|
-
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/esm/trace/status.js
|
26401
|
-
var SpanStatusCode;
|
26402
|
-
var init_status = __esm({
|
26403
|
-
"../../node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/esm/trace/status.js"() {
|
26404
|
-
"use strict";
|
26405
|
-
(function(SpanStatusCode2) {
|
26406
|
-
SpanStatusCode2[SpanStatusCode2["UNSET"] = 0] = "UNSET";
|
26407
|
-
SpanStatusCode2[SpanStatusCode2["OK"] = 1] = "OK";
|
26408
|
-
SpanStatusCode2[SpanStatusCode2["ERROR"] = 2] = "ERROR";
|
26409
|
-
})(SpanStatusCode || (SpanStatusCode = {}));
|
26410
|
-
}
|
26411
|
-
});
|
26412
|
-
|
26413
|
-
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/esm/trace/internal/tracestate-validators.js
|
26414
|
-
function validateKey(key) {
|
26415
|
-
return VALID_KEY_REGEX.test(key);
|
26416
|
-
}
|
26417
|
-
function validateValue(value) {
|
26418
|
-
return VALID_VALUE_BASE_REGEX.test(value) && !INVALID_VALUE_COMMA_EQUAL_REGEX.test(value);
|
26419
|
-
}
|
26420
|
-
var VALID_KEY_CHAR_RANGE, VALID_KEY, VALID_VENDOR_KEY, VALID_KEY_REGEX, VALID_VALUE_BASE_REGEX, INVALID_VALUE_COMMA_EQUAL_REGEX;
|
26421
|
-
var init_tracestate_validators = __esm({
|
26422
|
-
"../../node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/esm/trace/internal/tracestate-validators.js"() {
|
26423
|
-
"use strict";
|
26424
|
-
VALID_KEY_CHAR_RANGE = "[_0-9a-z-*/]";
|
26425
|
-
VALID_KEY = "[a-z]" + VALID_KEY_CHAR_RANGE + "{0,255}";
|
26426
|
-
VALID_VENDOR_KEY = "[a-z0-9]" + VALID_KEY_CHAR_RANGE + "{0,240}@[a-z]" + VALID_KEY_CHAR_RANGE + "{0,13}";
|
26427
|
-
VALID_KEY_REGEX = new RegExp("^(?:" + VALID_KEY + "|" + VALID_VENDOR_KEY + ")$");
|
26428
|
-
VALID_VALUE_BASE_REGEX = /^[ -~]{0,255}[!-~]$/;
|
26429
|
-
INVALID_VALUE_COMMA_EQUAL_REGEX = /,|=/;
|
26430
|
-
}
|
26431
|
-
});
|
26432
|
-
|
26433
|
-
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/esm/trace/internal/tracestate-impl.js
|
26434
|
-
var MAX_TRACE_STATE_ITEMS, MAX_TRACE_STATE_LEN, LIST_MEMBERS_SEPARATOR, LIST_MEMBER_KEY_VALUE_SPLITTER, TraceStateImpl;
|
26435
|
-
var init_tracestate_impl = __esm({
|
26436
|
-
"../../node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/esm/trace/internal/tracestate-impl.js"() {
|
26437
|
-
"use strict";
|
26438
|
-
init_tracestate_validators();
|
26439
|
-
MAX_TRACE_STATE_ITEMS = 32;
|
26440
|
-
MAX_TRACE_STATE_LEN = 512;
|
26441
|
-
LIST_MEMBERS_SEPARATOR = ",";
|
26442
|
-
LIST_MEMBER_KEY_VALUE_SPLITTER = "=";
|
26443
|
-
TraceStateImpl = /** @class */
|
26444
|
-
function() {
|
26445
|
-
function TraceStateImpl2(rawTraceState) {
|
26446
|
-
this._internalState = /* @__PURE__ */ new Map();
|
26447
|
-
if (rawTraceState)
|
26448
|
-
this._parse(rawTraceState);
|
26449
|
-
}
|
26450
|
-
TraceStateImpl2.prototype.set = function(key, value) {
|
26451
|
-
var traceState = this._clone();
|
26452
|
-
if (traceState._internalState.has(key)) {
|
26453
|
-
traceState._internalState.delete(key);
|
26454
|
-
}
|
26455
|
-
traceState._internalState.set(key, value);
|
26456
|
-
return traceState;
|
26457
|
-
};
|
26458
|
-
TraceStateImpl2.prototype.unset = function(key) {
|
26459
|
-
var traceState = this._clone();
|
26460
|
-
traceState._internalState.delete(key);
|
26461
|
-
return traceState;
|
26462
|
-
};
|
26463
|
-
TraceStateImpl2.prototype.get = function(key) {
|
26464
|
-
return this._internalState.get(key);
|
26465
|
-
};
|
26466
|
-
TraceStateImpl2.prototype.serialize = function() {
|
26467
|
-
var _this = this;
|
26468
|
-
return this._keys().reduce(function(agg, key) {
|
26469
|
-
agg.push(key + LIST_MEMBER_KEY_VALUE_SPLITTER + _this.get(key));
|
26470
|
-
return agg;
|
26471
|
-
}, []).join(LIST_MEMBERS_SEPARATOR);
|
26472
|
-
};
|
26473
|
-
TraceStateImpl2.prototype._parse = function(rawTraceState) {
|
26474
|
-
if (rawTraceState.length > MAX_TRACE_STATE_LEN)
|
26475
|
-
return;
|
26476
|
-
this._internalState = rawTraceState.split(LIST_MEMBERS_SEPARATOR).reverse().reduce(function(agg, part) {
|
26477
|
-
var listMember = part.trim();
|
26478
|
-
var i = listMember.indexOf(LIST_MEMBER_KEY_VALUE_SPLITTER);
|
26479
|
-
if (i !== -1) {
|
26480
|
-
var key = listMember.slice(0, i);
|
26481
|
-
var value = listMember.slice(i + 1, part.length);
|
26482
|
-
if (validateKey(key) && validateValue(value)) {
|
26483
|
-
agg.set(key, value);
|
26484
|
-
} else {
|
26485
|
-
}
|
26486
|
-
}
|
26487
|
-
return agg;
|
26488
|
-
}, /* @__PURE__ */ new Map());
|
26489
|
-
if (this._internalState.size > MAX_TRACE_STATE_ITEMS) {
|
26490
|
-
this._internalState = new Map(Array.from(this._internalState.entries()).reverse().slice(0, MAX_TRACE_STATE_ITEMS));
|
26491
|
-
}
|
26492
|
-
};
|
26493
|
-
TraceStateImpl2.prototype._keys = function() {
|
26494
|
-
return Array.from(this._internalState.keys()).reverse();
|
26495
|
-
};
|
26496
|
-
TraceStateImpl2.prototype._clone = function() {
|
26497
|
-
var traceState = new TraceStateImpl2();
|
26498
|
-
traceState._internalState = new Map(this._internalState);
|
26499
|
-
return traceState;
|
26500
|
-
};
|
26501
|
-
return TraceStateImpl2;
|
26502
|
-
}();
|
26503
|
-
}
|
26504
|
-
});
|
26505
|
-
|
26506
|
-
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/esm/trace/internal/utils.js
|
26507
|
-
function createTraceState(rawTraceState) {
|
26508
|
-
return new TraceStateImpl(rawTraceState);
|
26509
|
-
}
|
26510
|
-
var init_utils2 = __esm({
|
26511
|
-
"../../node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/esm/trace/internal/utils.js"() {
|
26512
|
-
"use strict";
|
26513
|
-
init_tracestate_impl();
|
26514
|
-
}
|
26515
|
-
});
|
26516
|
-
|
26517
|
-
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/esm/context-api.js
|
26518
|
-
var context;
|
26519
|
-
var init_context_api = __esm({
|
26520
|
-
"../../node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/esm/context-api.js"() {
|
26521
|
-
"use strict";
|
26522
|
-
init_context2();
|
26523
|
-
context = ContextAPI.getInstance();
|
26524
|
-
}
|
26525
|
-
});
|
26526
|
-
|
26527
|
-
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/esm/diag-api.js
|
26528
|
-
var diag2;
|
26529
|
-
var init_diag_api = __esm({
|
26530
|
-
"../../node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/esm/diag-api.js"() {
|
26531
|
-
"use strict";
|
26532
|
-
init_diag();
|
26533
|
-
diag2 = DiagAPI.instance();
|
26534
|
-
}
|
26535
|
-
});
|
26536
|
-
|
26537
|
-
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/esm/metrics/NoopMeterProvider.js
|
26538
|
-
var NoopMeterProvider, NOOP_METER_PROVIDER;
|
26539
|
-
var init_NoopMeterProvider = __esm({
|
26540
|
-
"../../node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/esm/metrics/NoopMeterProvider.js"() {
|
26541
|
-
"use strict";
|
26542
|
-
init_NoopMeter();
|
26543
|
-
NoopMeterProvider = /** @class */
|
26544
|
-
function() {
|
26545
|
-
function NoopMeterProvider2() {
|
26546
|
-
}
|
26547
|
-
NoopMeterProvider2.prototype.getMeter = function(_name, _version, _options) {
|
26548
|
-
return NOOP_METER;
|
26549
|
-
};
|
26550
|
-
return NoopMeterProvider2;
|
26551
|
-
}();
|
26552
|
-
NOOP_METER_PROVIDER = new NoopMeterProvider();
|
26553
|
-
}
|
26554
|
-
});
|
26555
|
-
|
26556
|
-
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/esm/api/metrics.js
|
26557
|
-
var API_NAME3, MetricsAPI;
|
26558
|
-
var init_metrics = __esm({
|
26559
|
-
"../../node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/esm/api/metrics.js"() {
|
26560
|
-
"use strict";
|
26561
|
-
init_NoopMeterProvider();
|
26562
|
-
init_global_utils();
|
26563
|
-
init_diag();
|
26564
|
-
API_NAME3 = "metrics";
|
26565
|
-
MetricsAPI = /** @class */
|
26566
|
-
function() {
|
26567
|
-
function MetricsAPI2() {
|
26568
|
-
}
|
26569
|
-
MetricsAPI2.getInstance = function() {
|
26570
|
-
if (!this._instance) {
|
26571
|
-
this._instance = new MetricsAPI2();
|
26572
|
-
}
|
26573
|
-
return this._instance;
|
26574
|
-
};
|
26575
|
-
MetricsAPI2.prototype.setGlobalMeterProvider = function(provider) {
|
26576
|
-
return registerGlobal(API_NAME3, provider, DiagAPI.instance());
|
26577
|
-
};
|
26578
|
-
MetricsAPI2.prototype.getMeterProvider = function() {
|
26579
|
-
return getGlobal(API_NAME3) || NOOP_METER_PROVIDER;
|
26580
|
-
};
|
26581
|
-
MetricsAPI2.prototype.getMeter = function(name, version2, options) {
|
26582
|
-
return this.getMeterProvider().getMeter(name, version2, options);
|
26583
|
-
};
|
26584
|
-
MetricsAPI2.prototype.disable = function() {
|
26585
|
-
unregisterGlobal(API_NAME3, DiagAPI.instance());
|
26586
|
-
};
|
26587
|
-
return MetricsAPI2;
|
26588
|
-
}();
|
26589
|
-
}
|
26590
|
-
});
|
26591
|
-
|
26592
|
-
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/esm/metrics-api.js
|
26593
|
-
var metrics;
|
26594
|
-
var init_metrics_api = __esm({
|
26595
|
-
"../../node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/esm/metrics-api.js"() {
|
26596
|
-
"use strict";
|
26597
|
-
init_metrics();
|
26598
|
-
metrics = MetricsAPI.getInstance();
|
26599
|
-
}
|
26600
|
-
});
|
26601
|
-
|
26602
|
-
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/esm/propagation/NoopTextMapPropagator.js
|
26603
|
-
var NoopTextMapPropagator;
|
26604
|
-
var init_NoopTextMapPropagator = __esm({
|
26605
|
-
"../../node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/esm/propagation/NoopTextMapPropagator.js"() {
|
26606
|
-
"use strict";
|
26607
|
-
NoopTextMapPropagator = /** @class */
|
26608
|
-
function() {
|
26609
|
-
function NoopTextMapPropagator2() {
|
26610
|
-
}
|
26611
|
-
NoopTextMapPropagator2.prototype.inject = function(_context, _carrier) {
|
26612
|
-
};
|
26613
|
-
NoopTextMapPropagator2.prototype.extract = function(context2, _carrier) {
|
26614
|
-
return context2;
|
26615
|
-
};
|
26616
|
-
NoopTextMapPropagator2.prototype.fields = function() {
|
26617
|
-
return [];
|
26618
|
-
};
|
26619
|
-
return NoopTextMapPropagator2;
|
26620
|
-
}();
|
26621
|
-
}
|
26622
|
-
});
|
26623
|
-
|
26624
|
-
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/esm/baggage/context-helpers.js
|
26625
|
-
function getBaggage(context2) {
|
26626
|
-
return context2.getValue(BAGGAGE_KEY) || void 0;
|
26627
|
-
}
|
26628
|
-
function getActiveBaggage() {
|
26629
|
-
return getBaggage(ContextAPI.getInstance().active());
|
26630
|
-
}
|
26631
|
-
function setBaggage(context2, baggage) {
|
26632
|
-
return context2.setValue(BAGGAGE_KEY, baggage);
|
26633
|
-
}
|
26634
|
-
function deleteBaggage(context2) {
|
26635
|
-
return context2.deleteValue(BAGGAGE_KEY);
|
26636
|
-
}
|
26637
|
-
var BAGGAGE_KEY;
|
26638
|
-
var init_context_helpers = __esm({
|
26639
|
-
"../../node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/esm/baggage/context-helpers.js"() {
|
26640
|
-
"use strict";
|
26641
|
-
init_context2();
|
26642
|
-
init_context();
|
26643
|
-
BAGGAGE_KEY = createContextKey("OpenTelemetry Baggage Key");
|
26644
|
-
}
|
26645
|
-
});
|
26646
|
-
|
26647
|
-
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/esm/api/propagation.js
|
26648
|
-
var API_NAME4, NOOP_TEXT_MAP_PROPAGATOR, PropagationAPI;
|
26649
|
-
var init_propagation = __esm({
|
26650
|
-
"../../node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/esm/api/propagation.js"() {
|
26651
|
-
"use strict";
|
26652
|
-
init_global_utils();
|
26653
|
-
init_NoopTextMapPropagator();
|
26654
|
-
init_TextMapPropagator();
|
26655
|
-
init_context_helpers();
|
26656
|
-
init_utils();
|
26657
|
-
init_diag();
|
26658
|
-
API_NAME4 = "propagation";
|
26659
|
-
NOOP_TEXT_MAP_PROPAGATOR = new NoopTextMapPropagator();
|
26660
|
-
PropagationAPI = /** @class */
|
26661
|
-
function() {
|
26662
|
-
function PropagationAPI2() {
|
26663
|
-
this.createBaggage = createBaggage;
|
26664
|
-
this.getBaggage = getBaggage;
|
26665
|
-
this.getActiveBaggage = getActiveBaggage;
|
26666
|
-
this.setBaggage = setBaggage;
|
26667
|
-
this.deleteBaggage = deleteBaggage;
|
26668
|
-
}
|
26669
|
-
PropagationAPI2.getInstance = function() {
|
26670
|
-
if (!this._instance) {
|
26671
|
-
this._instance = new PropagationAPI2();
|
26672
|
-
}
|
26673
|
-
return this._instance;
|
26674
|
-
};
|
26675
|
-
PropagationAPI2.prototype.setGlobalPropagator = function(propagator) {
|
26676
|
-
return registerGlobal(API_NAME4, propagator, DiagAPI.instance());
|
26677
|
-
};
|
26678
|
-
PropagationAPI2.prototype.inject = function(context2, carrier, setter) {
|
26679
|
-
if (setter === void 0) {
|
26680
|
-
setter = defaultTextMapSetter;
|
26681
|
-
}
|
26682
|
-
return this._getGlobalPropagator().inject(context2, carrier, setter);
|
26683
|
-
};
|
26684
|
-
PropagationAPI2.prototype.extract = function(context2, carrier, getter) {
|
26685
|
-
if (getter === void 0) {
|
26686
|
-
getter = defaultTextMapGetter;
|
26687
|
-
}
|
26688
|
-
return this._getGlobalPropagator().extract(context2, carrier, getter);
|
26689
|
-
};
|
26690
|
-
PropagationAPI2.prototype.fields = function() {
|
26691
|
-
return this._getGlobalPropagator().fields();
|
26692
|
-
};
|
26693
|
-
PropagationAPI2.prototype.disable = function() {
|
26694
|
-
unregisterGlobal(API_NAME4, DiagAPI.instance());
|
26695
|
-
};
|
26696
|
-
PropagationAPI2.prototype._getGlobalPropagator = function() {
|
26697
|
-
return getGlobal(API_NAME4) || NOOP_TEXT_MAP_PROPAGATOR;
|
26698
|
-
};
|
26699
|
-
return PropagationAPI2;
|
26700
|
-
}();
|
26701
|
-
}
|
26702
|
-
});
|
26703
|
-
|
26704
|
-
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/esm/propagation-api.js
|
26705
|
-
var propagation;
|
26706
|
-
var init_propagation_api = __esm({
|
26707
|
-
"../../node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/esm/propagation-api.js"() {
|
26708
|
-
"use strict";
|
26709
|
-
init_propagation();
|
26710
|
-
propagation = PropagationAPI.getInstance();
|
26711
|
-
}
|
26712
|
-
});
|
26713
|
-
|
26714
|
-
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/esm/api/trace.js
|
26715
|
-
var API_NAME5, TraceAPI;
|
26716
|
-
var init_trace = __esm({
|
26717
|
-
"../../node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/esm/api/trace.js"() {
|
26718
|
-
"use strict";
|
26719
|
-
init_global_utils();
|
26720
|
-
init_ProxyTracerProvider();
|
26721
|
-
init_spancontext_utils();
|
26722
|
-
init_context_utils();
|
26723
|
-
init_diag();
|
26724
|
-
API_NAME5 = "trace";
|
26725
|
-
TraceAPI = /** @class */
|
26726
|
-
function() {
|
26727
|
-
function TraceAPI2() {
|
26728
|
-
this._proxyTracerProvider = new ProxyTracerProvider();
|
26729
|
-
this.wrapSpanContext = wrapSpanContext;
|
26730
|
-
this.isSpanContextValid = isSpanContextValid;
|
26731
|
-
this.deleteSpan = deleteSpan;
|
26732
|
-
this.getSpan = getSpan;
|
26733
|
-
this.getActiveSpan = getActiveSpan;
|
26734
|
-
this.getSpanContext = getSpanContext;
|
26735
|
-
this.setSpan = setSpan;
|
26736
|
-
this.setSpanContext = setSpanContext;
|
26737
|
-
}
|
26738
|
-
TraceAPI2.getInstance = function() {
|
26739
|
-
if (!this._instance) {
|
26740
|
-
this._instance = new TraceAPI2();
|
26741
|
-
}
|
26742
|
-
return this._instance;
|
26743
|
-
};
|
26744
|
-
TraceAPI2.prototype.setGlobalTracerProvider = function(provider) {
|
26745
|
-
var success = registerGlobal(API_NAME5, this._proxyTracerProvider, DiagAPI.instance());
|
26746
|
-
if (success) {
|
26747
|
-
this._proxyTracerProvider.setDelegate(provider);
|
26748
|
-
}
|
26749
|
-
return success;
|
26750
|
-
};
|
26751
|
-
TraceAPI2.prototype.getTracerProvider = function() {
|
26752
|
-
return getGlobal(API_NAME5) || this._proxyTracerProvider;
|
26753
|
-
};
|
26754
|
-
TraceAPI2.prototype.getTracer = function(name, version2) {
|
26755
|
-
return this.getTracerProvider().getTracer(name, version2);
|
26756
|
-
};
|
26757
|
-
TraceAPI2.prototype.disable = function() {
|
26758
|
-
unregisterGlobal(API_NAME5, DiagAPI.instance());
|
26759
|
-
this._proxyTracerProvider = new ProxyTracerProvider();
|
26760
|
-
};
|
26761
|
-
return TraceAPI2;
|
26762
|
-
}();
|
26763
|
-
}
|
26764
|
-
});
|
26765
|
-
|
26766
|
-
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/esm/trace-api.js
|
26767
|
-
var trace;
|
26768
|
-
var init_trace_api = __esm({
|
26769
|
-
"../../node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/esm/trace-api.js"() {
|
26770
|
-
"use strict";
|
26771
|
-
init_trace();
|
26772
|
-
trace = TraceAPI.getInstance();
|
26773
|
-
}
|
26774
|
-
});
|
26775
|
-
|
26776
|
-
// ../../node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/esm/index.js
|
26777
|
-
var esm_exports2 = {};
|
26778
|
-
__export(esm_exports2, {
|
26779
|
-
DiagConsoleLogger: () => DiagConsoleLogger,
|
26780
|
-
DiagLogLevel: () => DiagLogLevel,
|
26781
|
-
INVALID_SPANID: () => INVALID_SPANID,
|
26782
|
-
INVALID_SPAN_CONTEXT: () => INVALID_SPAN_CONTEXT,
|
26783
|
-
INVALID_TRACEID: () => INVALID_TRACEID,
|
26784
|
-
ProxyTracer: () => ProxyTracer,
|
26785
|
-
ProxyTracerProvider: () => ProxyTracerProvider,
|
26786
|
-
ROOT_CONTEXT: () => ROOT_CONTEXT,
|
26787
|
-
SamplingDecision: () => SamplingDecision,
|
26788
|
-
SpanKind: () => SpanKind,
|
26789
|
-
SpanStatusCode: () => SpanStatusCode,
|
26790
|
-
TraceFlags: () => TraceFlags,
|
26791
|
-
ValueType: () => ValueType,
|
26792
|
-
baggageEntryMetadataFromString: () => baggageEntryMetadataFromString,
|
26793
|
-
context: () => context,
|
26794
|
-
createContextKey: () => createContextKey,
|
26795
|
-
createNoopMeter: () => createNoopMeter,
|
26796
|
-
createTraceState: () => createTraceState,
|
26797
|
-
default: () => esm_default,
|
26798
|
-
defaultTextMapGetter: () => defaultTextMapGetter,
|
26799
|
-
defaultTextMapSetter: () => defaultTextMapSetter,
|
26800
|
-
diag: () => diag2,
|
26801
|
-
isSpanContextValid: () => isSpanContextValid,
|
26802
|
-
isValidSpanId: () => isValidSpanId,
|
26803
|
-
isValidTraceId: () => isValidTraceId,
|
26804
|
-
metrics: () => metrics,
|
26805
|
-
propagation: () => propagation,
|
26806
|
-
trace: () => trace
|
26807
|
-
});
|
26808
|
-
var esm_default;
|
26809
|
-
var init_esm2 = __esm({
|
26810
|
-
"../../node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/esm/index.js"() {
|
26811
|
-
"use strict";
|
26812
|
-
init_utils();
|
26813
|
-
init_context();
|
26814
|
-
init_consoleLogger();
|
26815
|
-
init_types();
|
26816
|
-
init_NoopMeter();
|
26817
|
-
init_Metric();
|
26818
|
-
init_TextMapPropagator();
|
26819
|
-
init_ProxyTracer();
|
26820
|
-
init_ProxyTracerProvider();
|
26821
|
-
init_SamplingResult();
|
26822
|
-
init_span_kind();
|
26823
|
-
init_status();
|
26824
|
-
init_trace_flags();
|
26825
|
-
init_utils2();
|
26826
|
-
init_spancontext_utils();
|
26827
|
-
init_invalid_span_constants();
|
26828
|
-
init_context_api();
|
26829
|
-
init_diag_api();
|
26830
|
-
init_metrics_api();
|
26831
|
-
init_propagation_api();
|
26832
|
-
init_trace_api();
|
26833
|
-
esm_default = {
|
26834
|
-
context,
|
26835
|
-
diag: diag2,
|
26836
|
-
metrics,
|
26837
|
-
propagation,
|
26838
|
-
trace
|
26839
|
-
};
|
26840
|
-
}
|
26841
|
-
});
|
26842
|
-
|
26843
25194
|
// ../../node_modules/.pnpm/rxjs@7.8.1/node_modules/rxjs/dist/cjs/internal/util/isFunction.js
|
26844
25195
|
var require_isFunction = __commonJS({
|
26845
25196
|
"../../node_modules/.pnpm/rxjs@7.8.1/node_modules/rxjs/dist/cjs/internal/util/isFunction.js"(exports) {
|
@@ -26913,7 +25264,7 @@ var require_arrRemove = __commonJS({
|
|
26913
25264
|
var require_Subscription = __commonJS({
|
26914
25265
|
"../../node_modules/.pnpm/rxjs@7.8.1/node_modules/rxjs/dist/cjs/internal/Subscription.js"(exports) {
|
26915
25266
|
"use strict";
|
26916
|
-
var
|
25267
|
+
var __values2 = exports && exports.__values || function(o) {
|
26917
25268
|
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
26918
25269
|
if (m) return m.call(o);
|
26919
25270
|
if (o && typeof o.length === "number") return {
|
@@ -26924,7 +25275,7 @@ var require_Subscription = __commonJS({
|
|
26924
25275
|
};
|
26925
25276
|
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
26926
25277
|
};
|
26927
|
-
var
|
25278
|
+
var __read = exports && exports.__read || function(o, n2) {
|
26928
25279
|
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
26929
25280
|
if (!m) return o;
|
26930
25281
|
var i = m.call(o), r, ar = [], e;
|
@@ -26941,7 +25292,7 @@ var require_Subscription = __commonJS({
|
|
26941
25292
|
}
|
26942
25293
|
return ar;
|
26943
25294
|
};
|
26944
|
-
var
|
25295
|
+
var __spreadArray = exports && exports.__spreadArray || function(to, from2) {
|
26945
25296
|
for (var i = 0, il = from2.length, j = to.length; i < il; i++, j++)
|
26946
25297
|
to[j] = from2[i];
|
26947
25298
|
return to;
|
@@ -26968,7 +25319,7 @@ var require_Subscription = __commonJS({
|
|
26968
25319
|
this._parentage = null;
|
26969
25320
|
if (Array.isArray(_parentage)) {
|
26970
25321
|
try {
|
26971
|
-
for (var _parentage_1 =
|
25322
|
+
for (var _parentage_1 = __values2(_parentage), _parentage_1_1 = _parentage_1.next(); !_parentage_1_1.done; _parentage_1_1 = _parentage_1.next()) {
|
26972
25323
|
var parent_1 = _parentage_1_1.value;
|
26973
25324
|
parent_1.remove(this);
|
26974
25325
|
}
|
@@ -26997,14 +25348,14 @@ var require_Subscription = __commonJS({
|
|
26997
25348
|
if (_finalizers) {
|
26998
25349
|
this._finalizers = null;
|
26999
25350
|
try {
|
27000
|
-
for (var _finalizers_1 =
|
25351
|
+
for (var _finalizers_1 = __values2(_finalizers), _finalizers_1_1 = _finalizers_1.next(); !_finalizers_1_1.done; _finalizers_1_1 = _finalizers_1.next()) {
|
27001
25352
|
var finalizer = _finalizers_1_1.value;
|
27002
25353
|
try {
|
27003
25354
|
execFinalizer(finalizer);
|
27004
25355
|
} catch (err) {
|
27005
25356
|
errors = errors !== null && errors !== void 0 ? errors : [];
|
27006
25357
|
if (err instanceof UnsubscriptionError_1.UnsubscriptionError) {
|
27007
|
-
errors =
|
25358
|
+
errors = __spreadArray(__spreadArray([], __read(errors)), __read(err.errors));
|
27008
25359
|
} else {
|
27009
25360
|
errors.push(err);
|
27010
25361
|
}
|
@@ -27107,7 +25458,7 @@ var require_config = __commonJS({
|
|
27107
25458
|
var require_timeoutProvider = __commonJS({
|
27108
25459
|
"../../node_modules/.pnpm/rxjs@7.8.1/node_modules/rxjs/dist/cjs/internal/scheduler/timeoutProvider.js"(exports) {
|
27109
25460
|
"use strict";
|
27110
|
-
var
|
25461
|
+
var __read = exports && exports.__read || function(o, n2) {
|
27111
25462
|
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
27112
25463
|
if (!m) return o;
|
27113
25464
|
var i = m.call(o), r, ar = [], e;
|
@@ -27124,7 +25475,7 @@ var require_timeoutProvider = __commonJS({
|
|
27124
25475
|
}
|
27125
25476
|
return ar;
|
27126
25477
|
};
|
27127
|
-
var
|
25478
|
+
var __spreadArray = exports && exports.__spreadArray || function(to, from2) {
|
27128
25479
|
for (var i = 0, il = from2.length, j = to.length; i < il; i++, j++)
|
27129
25480
|
to[j] = from2[i];
|
27130
25481
|
return to;
|
@@ -27139,9 +25490,9 @@ var require_timeoutProvider = __commonJS({
|
|
27139
25490
|
}
|
27140
25491
|
var delegate = exports.timeoutProvider.delegate;
|
27141
25492
|
if (delegate === null || delegate === void 0 ? void 0 : delegate.setTimeout) {
|
27142
|
-
return delegate.setTimeout.apply(delegate,
|
25493
|
+
return delegate.setTimeout.apply(delegate, __spreadArray([handler, timeout], __read(args)));
|
27143
25494
|
}
|
27144
|
-
return setTimeout.apply(void 0,
|
25495
|
+
return setTimeout.apply(void 0, __spreadArray([handler, timeout], __read(args)));
|
27145
25496
|
},
|
27146
25497
|
clearTimeout: function(handle) {
|
27147
25498
|
var delegate = exports.timeoutProvider.delegate;
|
@@ -27221,17 +25572,17 @@ var require_errorContext = __commonJS({
|
|
27221
25572
|
Object.defineProperty(exports, "__esModule", { value: true });
|
27222
25573
|
exports.captureError = exports.errorContext = void 0;
|
27223
25574
|
var config_1 = require_config();
|
27224
|
-
var
|
25575
|
+
var context = null;
|
27225
25576
|
function errorContext(cb) {
|
27226
25577
|
if (config_1.config.useDeprecatedSynchronousErrorHandling) {
|
27227
|
-
var isRoot = !
|
25578
|
+
var isRoot = !context;
|
27228
25579
|
if (isRoot) {
|
27229
|
-
|
25580
|
+
context = { errorThrown: false, error: null };
|
27230
25581
|
}
|
27231
25582
|
cb();
|
27232
25583
|
if (isRoot) {
|
27233
|
-
var _a =
|
27234
|
-
|
25584
|
+
var _a = context, errorThrown = _a.errorThrown, error = _a.error;
|
25585
|
+
context = null;
|
27235
25586
|
if (errorThrown) {
|
27236
25587
|
throw error;
|
27237
25588
|
}
|
@@ -27242,9 +25593,9 @@ var require_errorContext = __commonJS({
|
|
27242
25593
|
}
|
27243
25594
|
exports.errorContext = errorContext;
|
27244
25595
|
function captureError(err) {
|
27245
|
-
if (config_1.config.useDeprecatedSynchronousErrorHandling &&
|
27246
|
-
|
27247
|
-
|
25596
|
+
if (config_1.config.useDeprecatedSynchronousErrorHandling && context) {
|
25597
|
+
context.errorThrown = true;
|
25598
|
+
context.error = err;
|
27248
25599
|
}
|
27249
25600
|
}
|
27250
25601
|
exports.captureError = captureError;
|
@@ -27255,7 +25606,7 @@ var require_errorContext = __commonJS({
|
|
27255
25606
|
var require_Subscriber = __commonJS({
|
27256
25607
|
"../../node_modules/.pnpm/rxjs@7.8.1/node_modules/rxjs/dist/cjs/internal/Subscriber.js"(exports) {
|
27257
25608
|
"use strict";
|
27258
|
-
var
|
25609
|
+
var __extends2 = exports && exports.__extends || /* @__PURE__ */ function() {
|
27259
25610
|
var extendStatics2 = function(d, b2) {
|
27260
25611
|
extendStatics2 = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b3) {
|
27261
25612
|
d2.__proto__ = b3;
|
@@ -27285,7 +25636,7 @@ var require_Subscriber = __commonJS({
|
|
27285
25636
|
var timeoutProvider_1 = require_timeoutProvider();
|
27286
25637
|
var errorContext_1 = require_errorContext();
|
27287
25638
|
var Subscriber = function(_super) {
|
27288
|
-
|
25639
|
+
__extends2(Subscriber2, _super);
|
27289
25640
|
function Subscriber2(destination) {
|
27290
25641
|
var _this = _super.call(this) || this;
|
27291
25642
|
_this.isStopped = false;
|
@@ -27395,7 +25746,7 @@ var require_Subscriber = __commonJS({
|
|
27395
25746
|
return ConsumerObserver2;
|
27396
25747
|
}();
|
27397
25748
|
var SafeSubscriber = function(_super) {
|
27398
|
-
|
25749
|
+
__extends2(SafeSubscriber2, _super);
|
27399
25750
|
function SafeSubscriber2(observerOrNext, error, complete) {
|
27400
25751
|
var _this = _super.call(this) || this;
|
27401
25752
|
var partialObserver;
|
@@ -27649,7 +26000,7 @@ var require_lift = __commonJS({
|
|
27649
26000
|
var require_OperatorSubscriber = __commonJS({
|
27650
26001
|
"../../node_modules/.pnpm/rxjs@7.8.1/node_modules/rxjs/dist/cjs/internal/operators/OperatorSubscriber.js"(exports) {
|
27651
26002
|
"use strict";
|
27652
|
-
var
|
26003
|
+
var __extends2 = exports && exports.__extends || /* @__PURE__ */ function() {
|
27653
26004
|
var extendStatics2 = function(d, b2) {
|
27654
26005
|
extendStatics2 = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b3) {
|
27655
26006
|
d2.__proto__ = b3;
|
@@ -27676,7 +26027,7 @@ var require_OperatorSubscriber = __commonJS({
|
|
27676
26027
|
}
|
27677
26028
|
exports.createOperatorSubscriber = createOperatorSubscriber;
|
27678
26029
|
var OperatorSubscriber = function(_super) {
|
27679
|
-
|
26030
|
+
__extends2(OperatorSubscriber2, _super);
|
27680
26031
|
function OperatorSubscriber2(destination, onNext, onComplete, onError, onFinalize, shouldUnsubscribe) {
|
27681
26032
|
var _this = _super.call(this, destination) || this;
|
27682
26033
|
_this.onFinalize = onFinalize;
|
@@ -27761,7 +26112,7 @@ var require_refCount = __commonJS({
|
|
27761
26112
|
var require_ConnectableObservable = __commonJS({
|
27762
26113
|
"../../node_modules/.pnpm/rxjs@7.8.1/node_modules/rxjs/dist/cjs/internal/observable/ConnectableObservable.js"(exports) {
|
27763
26114
|
"use strict";
|
27764
|
-
var
|
26115
|
+
var __extends2 = exports && exports.__extends || /* @__PURE__ */ function() {
|
27765
26116
|
var extendStatics2 = function(d, b2) {
|
27766
26117
|
extendStatics2 = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b3) {
|
27767
26118
|
d2.__proto__ = b3;
|
@@ -27788,7 +26139,7 @@ var require_ConnectableObservable = __commonJS({
|
|
27788
26139
|
var OperatorSubscriber_1 = require_OperatorSubscriber();
|
27789
26140
|
var lift_1 = require_lift();
|
27790
26141
|
var ConnectableObservable = function(_super) {
|
27791
|
-
|
26142
|
+
__extends2(ConnectableObservable2, _super);
|
27792
26143
|
function ConnectableObservable2(source, subjectFactory) {
|
27793
26144
|
var _this = _super.call(this) || this;
|
27794
26145
|
_this.source = source;
|
@@ -27867,7 +26218,7 @@ var require_performanceTimestampProvider = __commonJS({
|
|
27867
26218
|
var require_animationFrameProvider = __commonJS({
|
27868
26219
|
"../../node_modules/.pnpm/rxjs@7.8.1/node_modules/rxjs/dist/cjs/internal/scheduler/animationFrameProvider.js"(exports) {
|
27869
26220
|
"use strict";
|
27870
|
-
var
|
26221
|
+
var __read = exports && exports.__read || function(o, n2) {
|
27871
26222
|
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
27872
26223
|
if (!m) return o;
|
27873
26224
|
var i = m.call(o), r, ar = [], e;
|
@@ -27884,7 +26235,7 @@ var require_animationFrameProvider = __commonJS({
|
|
27884
26235
|
}
|
27885
26236
|
return ar;
|
27886
26237
|
};
|
27887
|
-
var
|
26238
|
+
var __spreadArray = exports && exports.__spreadArray || function(to, from2) {
|
27888
26239
|
for (var i = 0, il = from2.length, j = to.length; i < il; i++, j++)
|
27889
26240
|
to[j] = from2[i];
|
27890
26241
|
return to;
|
@@ -27915,7 +26266,7 @@ var require_animationFrameProvider = __commonJS({
|
|
27915
26266
|
args[_i] = arguments[_i];
|
27916
26267
|
}
|
27917
26268
|
var delegate = exports.animationFrameProvider.delegate;
|
27918
|
-
return ((delegate === null || delegate === void 0 ? void 0 : delegate.requestAnimationFrame) || requestAnimationFrame).apply(void 0,
|
26269
|
+
return ((delegate === null || delegate === void 0 ? void 0 : delegate.requestAnimationFrame) || requestAnimationFrame).apply(void 0, __spreadArray([], __read(args)));
|
27919
26270
|
},
|
27920
26271
|
cancelAnimationFrame: function() {
|
27921
26272
|
var args = [];
|
@@ -27923,7 +26274,7 @@ var require_animationFrameProvider = __commonJS({
|
|
27923
26274
|
args[_i] = arguments[_i];
|
27924
26275
|
}
|
27925
26276
|
var delegate = exports.animationFrameProvider.delegate;
|
27926
|
-
return ((delegate === null || delegate === void 0 ? void 0 : delegate.cancelAnimationFrame) || cancelAnimationFrame).apply(void 0,
|
26277
|
+
return ((delegate === null || delegate === void 0 ? void 0 : delegate.cancelAnimationFrame) || cancelAnimationFrame).apply(void 0, __spreadArray([], __read(args)));
|
27927
26278
|
},
|
27928
26279
|
delegate: void 0
|
27929
26280
|
};
|
@@ -27994,7 +26345,7 @@ var require_ObjectUnsubscribedError = __commonJS({
|
|
27994
26345
|
var require_Subject = __commonJS({
|
27995
26346
|
"../../node_modules/.pnpm/rxjs@7.8.1/node_modules/rxjs/dist/cjs/internal/Subject.js"(exports) {
|
27996
26347
|
"use strict";
|
27997
|
-
var
|
26348
|
+
var __extends2 = exports && exports.__extends || /* @__PURE__ */ function() {
|
27998
26349
|
var extendStatics2 = function(d, b2) {
|
27999
26350
|
extendStatics2 = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b3) {
|
28000
26351
|
d2.__proto__ = b3;
|
@@ -28013,7 +26364,7 @@ var require_Subject = __commonJS({
|
|
28013
26364
|
d.prototype = b2 === null ? Object.create(b2) : (__.prototype = b2.prototype, new __());
|
28014
26365
|
};
|
28015
26366
|
}();
|
28016
|
-
var
|
26367
|
+
var __values2 = exports && exports.__values || function(o) {
|
28017
26368
|
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
28018
26369
|
if (m) return m.call(o);
|
28019
26370
|
if (o && typeof o.length === "number") return {
|
@@ -28032,7 +26383,7 @@ var require_Subject = __commonJS({
|
|
28032
26383
|
var arrRemove_1 = require_arrRemove();
|
28033
26384
|
var errorContext_1 = require_errorContext();
|
28034
26385
|
var Subject2 = function(_super) {
|
28035
|
-
|
26386
|
+
__extends2(Subject3, _super);
|
28036
26387
|
function Subject3() {
|
28037
26388
|
var _this = _super.call(this) || this;
|
28038
26389
|
_this.closed = false;
|
@@ -28063,7 +26414,7 @@ var require_Subject = __commonJS({
|
|
28063
26414
|
_this.currentObservers = Array.from(_this.observers);
|
28064
26415
|
}
|
28065
26416
|
try {
|
28066
|
-
for (var _b =
|
26417
|
+
for (var _b = __values2(_this.currentObservers), _c = _b.next(); !_c.done; _c = _b.next()) {
|
28067
26418
|
var observer = _c.value;
|
28068
26419
|
observer.next(value);
|
28069
26420
|
}
|
@@ -28160,7 +26511,7 @@ var require_Subject = __commonJS({
|
|
28160
26511
|
}(Observable_1.Observable);
|
28161
26512
|
exports.Subject = Subject2;
|
28162
26513
|
var AnonymousSubject = function(_super) {
|
28163
|
-
|
26514
|
+
__extends2(AnonymousSubject2, _super);
|
28164
26515
|
function AnonymousSubject2(destination, source) {
|
28165
26516
|
var _this = _super.call(this) || this;
|
28166
26517
|
_this.destination = destination;
|
@@ -28193,7 +26544,7 @@ var require_Subject = __commonJS({
|
|
28193
26544
|
var require_BehaviorSubject = __commonJS({
|
28194
26545
|
"../../node_modules/.pnpm/rxjs@7.8.1/node_modules/rxjs/dist/cjs/internal/BehaviorSubject.js"(exports) {
|
28195
26546
|
"use strict";
|
28196
|
-
var
|
26547
|
+
var __extends2 = exports && exports.__extends || /* @__PURE__ */ function() {
|
28197
26548
|
var extendStatics2 = function(d, b2) {
|
28198
26549
|
extendStatics2 = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b3) {
|
28199
26550
|
d2.__proto__ = b3;
|
@@ -28216,7 +26567,7 @@ var require_BehaviorSubject = __commonJS({
|
|
28216
26567
|
exports.BehaviorSubject = void 0;
|
28217
26568
|
var Subject_1 = require_Subject();
|
28218
26569
|
var BehaviorSubject = function(_super) {
|
28219
|
-
|
26570
|
+
__extends2(BehaviorSubject2, _super);
|
28220
26571
|
function BehaviorSubject2(_value) {
|
28221
26572
|
var _this = _super.call(this) || this;
|
28222
26573
|
_this._value = _value;
|
@@ -28270,7 +26621,7 @@ var require_dateTimestampProvider = __commonJS({
|
|
28270
26621
|
var require_ReplaySubject = __commonJS({
|
28271
26622
|
"../../node_modules/.pnpm/rxjs@7.8.1/node_modules/rxjs/dist/cjs/internal/ReplaySubject.js"(exports) {
|
28272
26623
|
"use strict";
|
28273
|
-
var
|
26624
|
+
var __extends2 = exports && exports.__extends || /* @__PURE__ */ function() {
|
28274
26625
|
var extendStatics2 = function(d, b2) {
|
28275
26626
|
extendStatics2 = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b3) {
|
28276
26627
|
d2.__proto__ = b3;
|
@@ -28294,7 +26645,7 @@ var require_ReplaySubject = __commonJS({
|
|
28294
26645
|
var Subject_1 = require_Subject();
|
28295
26646
|
var dateTimestampProvider_1 = require_dateTimestampProvider();
|
28296
26647
|
var ReplaySubject = function(_super) {
|
28297
|
-
|
26648
|
+
__extends2(ReplaySubject2, _super);
|
28298
26649
|
function ReplaySubject2(_bufferSize, _windowTime, _timestampProvider) {
|
28299
26650
|
if (_bufferSize === void 0) {
|
28300
26651
|
_bufferSize = Infinity;
|
@@ -28360,7 +26711,7 @@ var require_ReplaySubject = __commonJS({
|
|
28360
26711
|
var require_AsyncSubject = __commonJS({
|
28361
26712
|
"../../node_modules/.pnpm/rxjs@7.8.1/node_modules/rxjs/dist/cjs/internal/AsyncSubject.js"(exports) {
|
28362
26713
|
"use strict";
|
28363
|
-
var
|
26714
|
+
var __extends2 = exports && exports.__extends || /* @__PURE__ */ function() {
|
28364
26715
|
var extendStatics2 = function(d, b2) {
|
28365
26716
|
extendStatics2 = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b3) {
|
28366
26717
|
d2.__proto__ = b3;
|
@@ -28383,7 +26734,7 @@ var require_AsyncSubject = __commonJS({
|
|
28383
26734
|
exports.AsyncSubject = void 0;
|
28384
26735
|
var Subject_1 = require_Subject();
|
28385
26736
|
var AsyncSubject = function(_super) {
|
28386
|
-
|
26737
|
+
__extends2(AsyncSubject2, _super);
|
28387
26738
|
function AsyncSubject2() {
|
28388
26739
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
28389
26740
|
_this._value = null;
|
@@ -28424,7 +26775,7 @@ var require_AsyncSubject = __commonJS({
|
|
28424
26775
|
var require_Action = __commonJS({
|
28425
26776
|
"../../node_modules/.pnpm/rxjs@7.8.1/node_modules/rxjs/dist/cjs/internal/scheduler/Action.js"(exports) {
|
28426
26777
|
"use strict";
|
28427
|
-
var
|
26778
|
+
var __extends2 = exports && exports.__extends || /* @__PURE__ */ function() {
|
28428
26779
|
var extendStatics2 = function(d, b2) {
|
28429
26780
|
extendStatics2 = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b3) {
|
28430
26781
|
d2.__proto__ = b3;
|
@@ -28447,7 +26798,7 @@ var require_Action = __commonJS({
|
|
28447
26798
|
exports.Action = void 0;
|
28448
26799
|
var Subscription_1 = require_Subscription();
|
28449
26800
|
var Action = function(_super) {
|
28450
|
-
|
26801
|
+
__extends2(Action2, _super);
|
28451
26802
|
function Action2(scheduler, work) {
|
28452
26803
|
return _super.call(this) || this;
|
28453
26804
|
}
|
@@ -28467,7 +26818,7 @@ var require_Action = __commonJS({
|
|
28467
26818
|
var require_intervalProvider = __commonJS({
|
28468
26819
|
"../../node_modules/.pnpm/rxjs@7.8.1/node_modules/rxjs/dist/cjs/internal/scheduler/intervalProvider.js"(exports) {
|
28469
26820
|
"use strict";
|
28470
|
-
var
|
26821
|
+
var __read = exports && exports.__read || function(o, n2) {
|
28471
26822
|
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
28472
26823
|
if (!m) return o;
|
28473
26824
|
var i = m.call(o), r, ar = [], e;
|
@@ -28484,7 +26835,7 @@ var require_intervalProvider = __commonJS({
|
|
28484
26835
|
}
|
28485
26836
|
return ar;
|
28486
26837
|
};
|
28487
|
-
var
|
26838
|
+
var __spreadArray = exports && exports.__spreadArray || function(to, from2) {
|
28488
26839
|
for (var i = 0, il = from2.length, j = to.length; i < il; i++, j++)
|
28489
26840
|
to[j] = from2[i];
|
28490
26841
|
return to;
|
@@ -28499,9 +26850,9 @@ var require_intervalProvider = __commonJS({
|
|
28499
26850
|
}
|
28500
26851
|
var delegate = exports.intervalProvider.delegate;
|
28501
26852
|
if (delegate === null || delegate === void 0 ? void 0 : delegate.setInterval) {
|
28502
|
-
return delegate.setInterval.apply(delegate,
|
26853
|
+
return delegate.setInterval.apply(delegate, __spreadArray([handler, timeout], __read(args)));
|
28503
26854
|
}
|
28504
|
-
return setInterval.apply(void 0,
|
26855
|
+
return setInterval.apply(void 0, __spreadArray([handler, timeout], __read(args)));
|
28505
26856
|
},
|
28506
26857
|
clearInterval: function(handle) {
|
28507
26858
|
var delegate = exports.intervalProvider.delegate;
|
@@ -28516,7 +26867,7 @@ var require_intervalProvider = __commonJS({
|
|
28516
26867
|
var require_AsyncAction = __commonJS({
|
28517
26868
|
"../../node_modules/.pnpm/rxjs@7.8.1/node_modules/rxjs/dist/cjs/internal/scheduler/AsyncAction.js"(exports) {
|
28518
26869
|
"use strict";
|
28519
|
-
var
|
26870
|
+
var __extends2 = exports && exports.__extends || /* @__PURE__ */ function() {
|
28520
26871
|
var extendStatics2 = function(d, b2) {
|
28521
26872
|
extendStatics2 = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b3) {
|
28522
26873
|
d2.__proto__ = b3;
|
@@ -28541,7 +26892,7 @@ var require_AsyncAction = __commonJS({
|
|
28541
26892
|
var intervalProvider_1 = require_intervalProvider();
|
28542
26893
|
var arrRemove_1 = require_arrRemove();
|
28543
26894
|
var AsyncAction = function(_super) {
|
28544
|
-
|
26895
|
+
__extends2(AsyncAction2, _super);
|
28545
26896
|
function AsyncAction2(scheduler, work) {
|
28546
26897
|
var _this = _super.call(this, scheduler, work) || this;
|
28547
26898
|
_this.scheduler = scheduler;
|
@@ -28676,7 +27027,7 @@ var require_Immediate = __commonJS({
|
|
28676
27027
|
var require_immediateProvider = __commonJS({
|
28677
27028
|
"../../node_modules/.pnpm/rxjs@7.8.1/node_modules/rxjs/dist/cjs/internal/scheduler/immediateProvider.js"(exports) {
|
28678
27029
|
"use strict";
|
28679
|
-
var
|
27030
|
+
var __read = exports && exports.__read || function(o, n2) {
|
28680
27031
|
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
28681
27032
|
if (!m) return o;
|
28682
27033
|
var i = m.call(o), r, ar = [], e;
|
@@ -28693,7 +27044,7 @@ var require_immediateProvider = __commonJS({
|
|
28693
27044
|
}
|
28694
27045
|
return ar;
|
28695
27046
|
};
|
28696
|
-
var
|
27047
|
+
var __spreadArray = exports && exports.__spreadArray || function(to, from2) {
|
28697
27048
|
for (var i = 0, il = from2.length, j = to.length; i < il; i++, j++)
|
28698
27049
|
to[j] = from2[i];
|
28699
27050
|
return to;
|
@@ -28710,7 +27061,7 @@ var require_immediateProvider = __commonJS({
|
|
28710
27061
|
args[_i] = arguments[_i];
|
28711
27062
|
}
|
28712
27063
|
var delegate = exports.immediateProvider.delegate;
|
28713
|
-
return ((delegate === null || delegate === void 0 ? void 0 : delegate.setImmediate) || setImmediate2).apply(void 0,
|
27064
|
+
return ((delegate === null || delegate === void 0 ? void 0 : delegate.setImmediate) || setImmediate2).apply(void 0, __spreadArray([], __read(args)));
|
28714
27065
|
},
|
28715
27066
|
clearImmediate: function(handle) {
|
28716
27067
|
var delegate = exports.immediateProvider.delegate;
|
@@ -28725,7 +27076,7 @@ var require_immediateProvider = __commonJS({
|
|
28725
27076
|
var require_AsapAction = __commonJS({
|
28726
27077
|
"../../node_modules/.pnpm/rxjs@7.8.1/node_modules/rxjs/dist/cjs/internal/scheduler/AsapAction.js"(exports) {
|
28727
27078
|
"use strict";
|
28728
|
-
var
|
27079
|
+
var __extends2 = exports && exports.__extends || /* @__PURE__ */ function() {
|
28729
27080
|
var extendStatics2 = function(d, b2) {
|
28730
27081
|
extendStatics2 = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b3) {
|
28731
27082
|
d2.__proto__ = b3;
|
@@ -28749,7 +27100,7 @@ var require_AsapAction = __commonJS({
|
|
28749
27100
|
var AsyncAction_1 = require_AsyncAction();
|
28750
27101
|
var immediateProvider_1 = require_immediateProvider();
|
28751
27102
|
var AsapAction = function(_super) {
|
28752
|
-
|
27103
|
+
__extends2(AsapAction2, _super);
|
28753
27104
|
function AsapAction2(scheduler, work) {
|
28754
27105
|
var _this = _super.call(this, scheduler, work) || this;
|
28755
27106
|
_this.scheduler = scheduler;
|
@@ -28821,7 +27172,7 @@ var require_Scheduler = __commonJS({
|
|
28821
27172
|
var require_AsyncScheduler = __commonJS({
|
28822
27173
|
"../../node_modules/.pnpm/rxjs@7.8.1/node_modules/rxjs/dist/cjs/internal/scheduler/AsyncScheduler.js"(exports) {
|
28823
27174
|
"use strict";
|
28824
|
-
var
|
27175
|
+
var __extends2 = exports && exports.__extends || /* @__PURE__ */ function() {
|
28825
27176
|
var extendStatics2 = function(d, b2) {
|
28826
27177
|
extendStatics2 = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b3) {
|
28827
27178
|
d2.__proto__ = b3;
|
@@ -28844,7 +27195,7 @@ var require_AsyncScheduler = __commonJS({
|
|
28844
27195
|
exports.AsyncScheduler = void 0;
|
28845
27196
|
var Scheduler_1 = require_Scheduler();
|
28846
27197
|
var AsyncScheduler = function(_super) {
|
28847
|
-
|
27198
|
+
__extends2(AsyncScheduler2, _super);
|
28848
27199
|
function AsyncScheduler2(SchedulerAction, now) {
|
28849
27200
|
if (now === void 0) {
|
28850
27201
|
now = Scheduler_1.Scheduler.now;
|
@@ -28885,7 +27236,7 @@ var require_AsyncScheduler = __commonJS({
|
|
28885
27236
|
var require_AsapScheduler = __commonJS({
|
28886
27237
|
"../../node_modules/.pnpm/rxjs@7.8.1/node_modules/rxjs/dist/cjs/internal/scheduler/AsapScheduler.js"(exports) {
|
28887
27238
|
"use strict";
|
28888
|
-
var
|
27239
|
+
var __extends2 = exports && exports.__extends || /* @__PURE__ */ function() {
|
28889
27240
|
var extendStatics2 = function(d, b2) {
|
28890
27241
|
extendStatics2 = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b3) {
|
28891
27242
|
d2.__proto__ = b3;
|
@@ -28908,7 +27259,7 @@ var require_AsapScheduler = __commonJS({
|
|
28908
27259
|
exports.AsapScheduler = void 0;
|
28909
27260
|
var AsyncScheduler_1 = require_AsyncScheduler();
|
28910
27261
|
var AsapScheduler = function(_super) {
|
28911
|
-
|
27262
|
+
__extends2(AsapScheduler2, _super);
|
28912
27263
|
function AsapScheduler2() {
|
28913
27264
|
return _super !== null && _super.apply(this, arguments) || this;
|
28914
27265
|
}
|
@@ -28968,7 +27319,7 @@ var require_async = __commonJS({
|
|
28968
27319
|
var require_QueueAction = __commonJS({
|
28969
27320
|
"../../node_modules/.pnpm/rxjs@7.8.1/node_modules/rxjs/dist/cjs/internal/scheduler/QueueAction.js"(exports) {
|
28970
27321
|
"use strict";
|
28971
|
-
var
|
27322
|
+
var __extends2 = exports && exports.__extends || /* @__PURE__ */ function() {
|
28972
27323
|
var extendStatics2 = function(d, b2) {
|
28973
27324
|
extendStatics2 = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b3) {
|
28974
27325
|
d2.__proto__ = b3;
|
@@ -28991,7 +27342,7 @@ var require_QueueAction = __commonJS({
|
|
28991
27342
|
exports.QueueAction = void 0;
|
28992
27343
|
var AsyncAction_1 = require_AsyncAction();
|
28993
27344
|
var QueueAction = function(_super) {
|
28994
|
-
|
27345
|
+
__extends2(QueueAction2, _super);
|
28995
27346
|
function QueueAction2(scheduler, work) {
|
28996
27347
|
var _this = _super.call(this, scheduler, work) || this;
|
28997
27348
|
_this.scheduler = scheduler;
|
@@ -29033,7 +27384,7 @@ var require_QueueAction = __commonJS({
|
|
29033
27384
|
var require_QueueScheduler = __commonJS({
|
29034
27385
|
"../../node_modules/.pnpm/rxjs@7.8.1/node_modules/rxjs/dist/cjs/internal/scheduler/QueueScheduler.js"(exports) {
|
29035
27386
|
"use strict";
|
29036
|
-
var
|
27387
|
+
var __extends2 = exports && exports.__extends || /* @__PURE__ */ function() {
|
29037
27388
|
var extendStatics2 = function(d, b2) {
|
29038
27389
|
extendStatics2 = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b3) {
|
29039
27390
|
d2.__proto__ = b3;
|
@@ -29056,7 +27407,7 @@ var require_QueueScheduler = __commonJS({
|
|
29056
27407
|
exports.QueueScheduler = void 0;
|
29057
27408
|
var AsyncScheduler_1 = require_AsyncScheduler();
|
29058
27409
|
var QueueScheduler = function(_super) {
|
29059
|
-
|
27410
|
+
__extends2(QueueScheduler2, _super);
|
29060
27411
|
function QueueScheduler2() {
|
29061
27412
|
return _super !== null && _super.apply(this, arguments) || this;
|
29062
27413
|
}
|
@@ -29083,7 +27434,7 @@ var require_queue = __commonJS({
|
|
29083
27434
|
var require_AnimationFrameAction = __commonJS({
|
29084
27435
|
"../../node_modules/.pnpm/rxjs@7.8.1/node_modules/rxjs/dist/cjs/internal/scheduler/AnimationFrameAction.js"(exports) {
|
29085
27436
|
"use strict";
|
29086
|
-
var
|
27437
|
+
var __extends2 = exports && exports.__extends || /* @__PURE__ */ function() {
|
29087
27438
|
var extendStatics2 = function(d, b2) {
|
29088
27439
|
extendStatics2 = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b3) {
|
29089
27440
|
d2.__proto__ = b3;
|
@@ -29107,7 +27458,7 @@ var require_AnimationFrameAction = __commonJS({
|
|
29107
27458
|
var AsyncAction_1 = require_AsyncAction();
|
29108
27459
|
var animationFrameProvider_1 = require_animationFrameProvider();
|
29109
27460
|
var AnimationFrameAction = function(_super) {
|
29110
|
-
|
27461
|
+
__extends2(AnimationFrameAction2, _super);
|
29111
27462
|
function AnimationFrameAction2(scheduler, work) {
|
29112
27463
|
var _this = _super.call(this, scheduler, work) || this;
|
29113
27464
|
_this.scheduler = scheduler;
|
@@ -29151,7 +27502,7 @@ var require_AnimationFrameAction = __commonJS({
|
|
29151
27502
|
var require_AnimationFrameScheduler = __commonJS({
|
29152
27503
|
"../../node_modules/.pnpm/rxjs@7.8.1/node_modules/rxjs/dist/cjs/internal/scheduler/AnimationFrameScheduler.js"(exports) {
|
29153
27504
|
"use strict";
|
29154
|
-
var
|
27505
|
+
var __extends2 = exports && exports.__extends || /* @__PURE__ */ function() {
|
29155
27506
|
var extendStatics2 = function(d, b2) {
|
29156
27507
|
extendStatics2 = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b3) {
|
29157
27508
|
d2.__proto__ = b3;
|
@@ -29174,7 +27525,7 @@ var require_AnimationFrameScheduler = __commonJS({
|
|
29174
27525
|
exports.AnimationFrameScheduler = void 0;
|
29175
27526
|
var AsyncScheduler_1 = require_AsyncScheduler();
|
29176
27527
|
var AnimationFrameScheduler = function(_super) {
|
29177
|
-
|
27528
|
+
__extends2(AnimationFrameScheduler2, _super);
|
29178
27529
|
function AnimationFrameScheduler2() {
|
29179
27530
|
return _super !== null && _super.apply(this, arguments) || this;
|
29180
27531
|
}
|
@@ -29221,7 +27572,7 @@ var require_animationFrame = __commonJS({
|
|
29221
27572
|
var require_VirtualTimeScheduler = __commonJS({
|
29222
27573
|
"../../node_modules/.pnpm/rxjs@7.8.1/node_modules/rxjs/dist/cjs/internal/scheduler/VirtualTimeScheduler.js"(exports) {
|
29223
27574
|
"use strict";
|
29224
|
-
var
|
27575
|
+
var __extends2 = exports && exports.__extends || /* @__PURE__ */ function() {
|
29225
27576
|
var extendStatics2 = function(d, b2) {
|
29226
27577
|
extendStatics2 = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b3) {
|
29227
27578
|
d2.__proto__ = b3;
|
@@ -29246,7 +27597,7 @@ var require_VirtualTimeScheduler = __commonJS({
|
|
29246
27597
|
var Subscription_1 = require_Subscription();
|
29247
27598
|
var AsyncScheduler_1 = require_AsyncScheduler();
|
29248
27599
|
var VirtualTimeScheduler = function(_super) {
|
29249
|
-
|
27600
|
+
__extends2(VirtualTimeScheduler2, _super);
|
29250
27601
|
function VirtualTimeScheduler2(schedulerActionCtor, maxFrames) {
|
29251
27602
|
if (schedulerActionCtor === void 0) {
|
29252
27603
|
schedulerActionCtor = VirtualAction;
|
@@ -29285,7 +27636,7 @@ var require_VirtualTimeScheduler = __commonJS({
|
|
29285
27636
|
}(AsyncScheduler_1.AsyncScheduler);
|
29286
27637
|
exports.VirtualTimeScheduler = VirtualTimeScheduler;
|
29287
27638
|
var VirtualAction = function(_super) {
|
29288
|
-
|
27639
|
+
__extends2(VirtualAction2, _super);
|
29289
27640
|
function VirtualAction2(scheduler, work, index) {
|
29290
27641
|
if (index === void 0) {
|
29291
27642
|
index = scheduler.index += 1;
|
@@ -29781,7 +28132,7 @@ var require_innerFrom = __commonJS({
|
|
29781
28132
|
var __asyncValues2 = exports && exports.__asyncValues || function(o) {
|
29782
28133
|
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
|
29783
28134
|
var m = o[Symbol.asyncIterator], i;
|
29784
|
-
return m ? m.call(o) : (o = typeof
|
28135
|
+
return m ? m.call(o) : (o = typeof __values2 === "function" ? __values2(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function() {
|
29785
28136
|
return this;
|
29786
28137
|
}, i);
|
29787
28138
|
function verb(n2) {
|
@@ -29797,7 +28148,7 @@ var require_innerFrom = __commonJS({
|
|
29797
28148
|
}, reject);
|
29798
28149
|
}
|
29799
28150
|
};
|
29800
|
-
var
|
28151
|
+
var __values2 = exports && exports.__values || function(o) {
|
29801
28152
|
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
29802
28153
|
if (m) return m.call(o);
|
29803
28154
|
if (o && typeof o.length === "number") return {
|
@@ -29884,7 +28235,7 @@ var require_innerFrom = __commonJS({
|
|
29884
28235
|
return new Observable_1.Observable(function(subscriber) {
|
29885
28236
|
var e_1, _a;
|
29886
28237
|
try {
|
29887
|
-
for (var iterable_1 =
|
28238
|
+
for (var iterable_1 = __values2(iterable), iterable_1_1 = iterable_1.next(); !iterable_1_1.done; iterable_1_1 = iterable_1.next()) {
|
29888
28239
|
var value = iterable_1_1.value;
|
29889
28240
|
subscriber.next(value);
|
29890
28241
|
if (subscriber.closed) {
|
@@ -30626,7 +28977,7 @@ var require_map = __commonJS({
|
|
30626
28977
|
var require_mapOneOrManyArgs = __commonJS({
|
30627
28978
|
"../../node_modules/.pnpm/rxjs@7.8.1/node_modules/rxjs/dist/cjs/internal/util/mapOneOrManyArgs.js"(exports) {
|
30628
28979
|
"use strict";
|
30629
|
-
var
|
28980
|
+
var __read = exports && exports.__read || function(o, n2) {
|
30630
28981
|
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
30631
28982
|
if (!m) return o;
|
30632
28983
|
var i = m.call(o), r, ar = [], e;
|
@@ -30643,7 +28994,7 @@ var require_mapOneOrManyArgs = __commonJS({
|
|
30643
28994
|
}
|
30644
28995
|
return ar;
|
30645
28996
|
};
|
30646
|
-
var
|
28997
|
+
var __spreadArray = exports && exports.__spreadArray || function(to, from2) {
|
30647
28998
|
for (var i = 0, il = from2.length, j = to.length; i < il; i++, j++)
|
30648
28999
|
to[j] = from2[i];
|
30649
29000
|
return to;
|
@@ -30653,7 +29004,7 @@ var require_mapOneOrManyArgs = __commonJS({
|
|
30653
29004
|
var map_1 = require_map();
|
30654
29005
|
var isArray = Array.isArray;
|
30655
29006
|
function callOrApply(fn, args) {
|
30656
|
-
return isArray(args) ? fn.apply(void 0,
|
29007
|
+
return isArray(args) ? fn.apply(void 0, __spreadArray([], __read(args))) : fn(args);
|
30657
29008
|
}
|
30658
29009
|
function mapOneOrManyArgs(fn) {
|
30659
29010
|
return map_1.map(function(args) {
|
@@ -30668,7 +29019,7 @@ var require_mapOneOrManyArgs = __commonJS({
|
|
30668
29019
|
var require_bindCallbackInternals = __commonJS({
|
30669
29020
|
"../../node_modules/.pnpm/rxjs@7.8.1/node_modules/rxjs/dist/cjs/internal/observable/bindCallbackInternals.js"(exports) {
|
30670
29021
|
"use strict";
|
30671
|
-
var
|
29022
|
+
var __read = exports && exports.__read || function(o, n2) {
|
30672
29023
|
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
30673
29024
|
if (!m) return o;
|
30674
29025
|
var i = m.call(o), r, ar = [], e;
|
@@ -30685,7 +29036,7 @@ var require_bindCallbackInternals = __commonJS({
|
|
30685
29036
|
}
|
30686
29037
|
return ar;
|
30687
29038
|
};
|
30688
|
-
var
|
29039
|
+
var __spreadArray = exports && exports.__spreadArray || function(to, from2) {
|
30689
29040
|
for (var i = 0, il = from2.length, j = to.length; i < il; i++, j++)
|
30690
29041
|
to[j] = from2[i];
|
30691
29042
|
return to;
|
@@ -30735,7 +29086,7 @@ var require_bindCallbackInternals = __commonJS({
|
|
30735
29086
|
uninitialized = false;
|
30736
29087
|
var isAsync_1 = false;
|
30737
29088
|
var isComplete_1 = false;
|
30738
|
-
callbackFunc.apply(_this,
|
29089
|
+
callbackFunc.apply(_this, __spreadArray(__spreadArray([], __read(args)), [
|
30739
29090
|
function() {
|
30740
29091
|
var results = [];
|
30741
29092
|
for (var _i2 = 0; _i2 < arguments.length; _i2++) {
|
@@ -31203,7 +29554,7 @@ var require_forkJoin = __commonJS({
|
|
31203
29554
|
var require_fromEvent = __commonJS({
|
31204
29555
|
"../../node_modules/.pnpm/rxjs@7.8.1/node_modules/rxjs/dist/cjs/internal/observable/fromEvent.js"(exports) {
|
31205
29556
|
"use strict";
|
31206
|
-
var
|
29557
|
+
var __read = exports && exports.__read || function(o, n2) {
|
31207
29558
|
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
31208
29559
|
if (!m) return o;
|
31209
29560
|
var i = m.call(o), r, ar = [], e;
|
@@ -31239,7 +29590,7 @@ var require_fromEvent = __commonJS({
|
|
31239
29590
|
if (resultSelector) {
|
31240
29591
|
return fromEvent(target, eventName, options).pipe(mapOneOrManyArgs_1.mapOneOrManyArgs(resultSelector));
|
31241
29592
|
}
|
31242
|
-
var _a =
|
29593
|
+
var _a = __read(isEventTarget2(target) ? eventTargetMethods.map(function(methodName) {
|
31243
29594
|
return function(handler) {
|
31244
29595
|
return target[methodName](eventName, handler, options);
|
31245
29596
|
};
|
@@ -31802,7 +30153,7 @@ var require_using = __commonJS({
|
|
31802
30153
|
var require_zip = __commonJS({
|
31803
30154
|
"../../node_modules/.pnpm/rxjs@7.8.1/node_modules/rxjs/dist/cjs/internal/observable/zip.js"(exports) {
|
31804
30155
|
"use strict";
|
31805
|
-
var
|
30156
|
+
var __read = exports && exports.__read || function(o, n2) {
|
31806
30157
|
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
31807
30158
|
if (!m) return o;
|
31808
30159
|
var i = m.call(o), r, ar = [], e;
|
@@ -31819,7 +30170,7 @@ var require_zip = __commonJS({
|
|
31819
30170
|
}
|
31820
30171
|
return ar;
|
31821
30172
|
};
|
31822
|
-
var
|
30173
|
+
var __spreadArray = exports && exports.__spreadArray || function(to, from2) {
|
31823
30174
|
for (var i = 0, il = from2.length, j = to.length; i < il; i++, j++)
|
31824
30175
|
to[j] = from2[i];
|
31825
30176
|
return to;
|
@@ -31858,7 +30209,7 @@ var require_zip = __commonJS({
|
|
31858
30209
|
var result = buffers.map(function(buffer) {
|
31859
30210
|
return buffer.shift();
|
31860
30211
|
});
|
31861
|
-
subscriber.next(resultSelector ? resultSelector.apply(void 0,
|
30212
|
+
subscriber.next(resultSelector ? resultSelector.apply(void 0, __spreadArray([], __read(result))) : result);
|
31862
30213
|
if (buffers.some(function(buffer, i) {
|
31863
30214
|
return !buffer.length && completed[i];
|
31864
30215
|
})) {
|
@@ -31994,7 +30345,7 @@ var require_buffer = __commonJS({
|
|
31994
30345
|
var require_bufferCount = __commonJS({
|
31995
30346
|
"../../node_modules/.pnpm/rxjs@7.8.1/node_modules/rxjs/dist/cjs/internal/operators/bufferCount.js"(exports) {
|
31996
30347
|
"use strict";
|
31997
|
-
var
|
30348
|
+
var __values2 = exports && exports.__values || function(o) {
|
31998
30349
|
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
31999
30350
|
if (m) return m.call(o);
|
32000
30351
|
if (o && typeof o.length === "number") return {
|
@@ -32025,7 +30376,7 @@ var require_bufferCount = __commonJS({
|
|
32025
30376
|
buffers.push([]);
|
32026
30377
|
}
|
32027
30378
|
try {
|
32028
|
-
for (var buffers_1 =
|
30379
|
+
for (var buffers_1 = __values2(buffers), buffers_1_1 = buffers_1.next(); !buffers_1_1.done; buffers_1_1 = buffers_1.next()) {
|
32029
30380
|
var buffer = buffers_1_1.value;
|
32030
30381
|
buffer.push(value);
|
32031
30382
|
if (bufferSize <= buffer.length) {
|
@@ -32044,7 +30395,7 @@ var require_bufferCount = __commonJS({
|
|
32044
30395
|
}
|
32045
30396
|
if (toEmit) {
|
32046
30397
|
try {
|
32047
|
-
for (var toEmit_1 =
|
30398
|
+
for (var toEmit_1 = __values2(toEmit), toEmit_1_1 = toEmit_1.next(); !toEmit_1_1.done; toEmit_1_1 = toEmit_1.next()) {
|
32048
30399
|
var buffer = toEmit_1_1.value;
|
32049
30400
|
arrRemove_1.arrRemove(buffers, buffer);
|
32050
30401
|
subscriber.next(buffer);
|
@@ -32062,7 +30413,7 @@ var require_bufferCount = __commonJS({
|
|
32062
30413
|
}, function() {
|
32063
30414
|
var e_3, _a;
|
32064
30415
|
try {
|
32065
|
-
for (var buffers_2 =
|
30416
|
+
for (var buffers_2 = __values2(buffers), buffers_2_1 = buffers_2.next(); !buffers_2_1.done; buffers_2_1 = buffers_2.next()) {
|
32066
30417
|
var buffer = buffers_2_1.value;
|
32067
30418
|
subscriber.next(buffer);
|
32068
30419
|
}
|
@@ -32089,7 +30440,7 @@ var require_bufferCount = __commonJS({
|
|
32089
30440
|
var require_bufferTime = __commonJS({
|
32090
30441
|
"../../node_modules/.pnpm/rxjs@7.8.1/node_modules/rxjs/dist/cjs/internal/operators/bufferTime.js"(exports) {
|
32091
30442
|
"use strict";
|
32092
|
-
var
|
30443
|
+
var __values2 = exports && exports.__values || function(o) {
|
32093
30444
|
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
32094
30445
|
if (m) return m.call(o);
|
32095
30446
|
if (o && typeof o.length === "number") return {
|
@@ -32153,7 +30504,7 @@ var require_bufferTime = __commonJS({
|
|
32153
30504
|
var e_1, _a2;
|
32154
30505
|
var recordsCopy = bufferRecords.slice();
|
32155
30506
|
try {
|
32156
|
-
for (var recordsCopy_1 =
|
30507
|
+
for (var recordsCopy_1 = __values2(recordsCopy), recordsCopy_1_1 = recordsCopy_1.next(); !recordsCopy_1_1.done; recordsCopy_1_1 = recordsCopy_1.next()) {
|
32157
30508
|
var record = recordsCopy_1_1.value;
|
32158
30509
|
var buffer = record.buffer;
|
32159
30510
|
buffer.push(value);
|
@@ -32189,7 +30540,7 @@ var require_bufferTime = __commonJS({
|
|
32189
30540
|
var require_bufferToggle = __commonJS({
|
32190
30541
|
"../../node_modules/.pnpm/rxjs@7.8.1/node_modules/rxjs/dist/cjs/internal/operators/bufferToggle.js"(exports) {
|
32191
30542
|
"use strict";
|
32192
|
-
var
|
30543
|
+
var __values2 = exports && exports.__values || function(o) {
|
32193
30544
|
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
32194
30545
|
if (m) return m.call(o);
|
32195
30546
|
if (o && typeof o.length === "number") return {
|
@@ -32225,7 +30576,7 @@ var require_bufferToggle = __commonJS({
|
|
32225
30576
|
source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(value) {
|
32226
30577
|
var e_1, _a;
|
32227
30578
|
try {
|
32228
|
-
for (var buffers_1 =
|
30579
|
+
for (var buffers_1 = __values2(buffers), buffers_1_1 = buffers_1.next(); !buffers_1_1.done; buffers_1_1 = buffers_1.next()) {
|
32229
30580
|
var buffer = buffers_1_1.value;
|
32230
30581
|
buffer.push(value);
|
32231
30582
|
}
|
@@ -32432,7 +30783,7 @@ var require_combineAll = __commonJS({
|
|
32432
30783
|
var require_combineLatest2 = __commonJS({
|
32433
30784
|
"../../node_modules/.pnpm/rxjs@7.8.1/node_modules/rxjs/dist/cjs/internal/operators/combineLatest.js"(exports) {
|
32434
30785
|
"use strict";
|
32435
|
-
var
|
30786
|
+
var __read = exports && exports.__read || function(o, n2) {
|
32436
30787
|
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
32437
30788
|
if (!m) return o;
|
32438
30789
|
var i = m.call(o), r, ar = [], e;
|
@@ -32449,7 +30800,7 @@ var require_combineLatest2 = __commonJS({
|
|
32449
30800
|
}
|
32450
30801
|
return ar;
|
32451
30802
|
};
|
32452
|
-
var
|
30803
|
+
var __spreadArray = exports && exports.__spreadArray || function(to, from2) {
|
32453
30804
|
for (var i = 0, il = from2.length, j = to.length; i < il; i++, j++)
|
32454
30805
|
to[j] = from2[i];
|
32455
30806
|
return to;
|
@@ -32468,8 +30819,8 @@ var require_combineLatest2 = __commonJS({
|
|
32468
30819
|
args[_i] = arguments[_i];
|
32469
30820
|
}
|
32470
30821
|
var resultSelector = args_1.popResultSelector(args);
|
32471
|
-
return resultSelector ? pipe_1.pipe(combineLatest.apply(void 0,
|
32472
|
-
combineLatest_1.combineLatestInit(
|
30822
|
+
return resultSelector ? pipe_1.pipe(combineLatest.apply(void 0, __spreadArray([], __read(args))), mapOneOrManyArgs_1.mapOneOrManyArgs(resultSelector)) : lift_1.operate(function(source, subscriber) {
|
30823
|
+
combineLatest_1.combineLatestInit(__spreadArray([source], __read(argsOrArgArray_1.argsOrArgArray(args))))(subscriber);
|
32473
30824
|
});
|
32474
30825
|
}
|
32475
30826
|
exports.combineLatest = combineLatest;
|
@@ -32480,7 +30831,7 @@ var require_combineLatest2 = __commonJS({
|
|
32480
30831
|
var require_combineLatestWith = __commonJS({
|
32481
30832
|
"../../node_modules/.pnpm/rxjs@7.8.1/node_modules/rxjs/dist/cjs/internal/operators/combineLatestWith.js"(exports) {
|
32482
30833
|
"use strict";
|
32483
|
-
var
|
30834
|
+
var __read = exports && exports.__read || function(o, n2) {
|
32484
30835
|
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
32485
30836
|
if (!m) return o;
|
32486
30837
|
var i = m.call(o), r, ar = [], e;
|
@@ -32497,7 +30848,7 @@ var require_combineLatestWith = __commonJS({
|
|
32497
30848
|
}
|
32498
30849
|
return ar;
|
32499
30850
|
};
|
32500
|
-
var
|
30851
|
+
var __spreadArray = exports && exports.__spreadArray || function(to, from2) {
|
32501
30852
|
for (var i = 0, il = from2.length, j = to.length; i < il; i++, j++)
|
32502
30853
|
to[j] = from2[i];
|
32503
30854
|
return to;
|
@@ -32510,7 +30861,7 @@ var require_combineLatestWith = __commonJS({
|
|
32510
30861
|
for (var _i = 0; _i < arguments.length; _i++) {
|
32511
30862
|
otherSources[_i] = arguments[_i];
|
32512
30863
|
}
|
32513
|
-
return combineLatest_1.combineLatest.apply(void 0,
|
30864
|
+
return combineLatest_1.combineLatest.apply(void 0, __spreadArray([], __read(otherSources)));
|
32514
30865
|
}
|
32515
30866
|
exports.combineLatestWith = combineLatestWith;
|
32516
30867
|
}
|
@@ -32554,7 +30905,7 @@ var require_concatMapTo = __commonJS({
|
|
32554
30905
|
var require_concat2 = __commonJS({
|
32555
30906
|
"../../node_modules/.pnpm/rxjs@7.8.1/node_modules/rxjs/dist/cjs/internal/operators/concat.js"(exports) {
|
32556
30907
|
"use strict";
|
32557
|
-
var
|
30908
|
+
var __read = exports && exports.__read || function(o, n2) {
|
32558
30909
|
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
32559
30910
|
if (!m) return o;
|
32560
30911
|
var i = m.call(o), r, ar = [], e;
|
@@ -32571,7 +30922,7 @@ var require_concat2 = __commonJS({
|
|
32571
30922
|
}
|
32572
30923
|
return ar;
|
32573
30924
|
};
|
32574
|
-
var
|
30925
|
+
var __spreadArray = exports && exports.__spreadArray || function(to, from2) {
|
32575
30926
|
for (var i = 0, il = from2.length, j = to.length; i < il; i++, j++)
|
32576
30927
|
to[j] = from2[i];
|
32577
30928
|
return to;
|
@@ -32589,7 +30940,7 @@ var require_concat2 = __commonJS({
|
|
32589
30940
|
}
|
32590
30941
|
var scheduler = args_1.popScheduler(args);
|
32591
30942
|
return lift_1.operate(function(source, subscriber) {
|
32592
|
-
concatAll_1.concatAll()(from_1.from(
|
30943
|
+
concatAll_1.concatAll()(from_1.from(__spreadArray([source], __read(args)), scheduler)).subscribe(subscriber);
|
32593
30944
|
});
|
32594
30945
|
}
|
32595
30946
|
exports.concat = concat2;
|
@@ -32600,7 +30951,7 @@ var require_concat2 = __commonJS({
|
|
32600
30951
|
var require_concatWith = __commonJS({
|
32601
30952
|
"../../node_modules/.pnpm/rxjs@7.8.1/node_modules/rxjs/dist/cjs/internal/operators/concatWith.js"(exports) {
|
32602
30953
|
"use strict";
|
32603
|
-
var
|
30954
|
+
var __read = exports && exports.__read || function(o, n2) {
|
32604
30955
|
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
32605
30956
|
if (!m) return o;
|
32606
30957
|
var i = m.call(o), r, ar = [], e;
|
@@ -32617,7 +30968,7 @@ var require_concatWith = __commonJS({
|
|
32617
30968
|
}
|
32618
30969
|
return ar;
|
32619
30970
|
};
|
32620
|
-
var
|
30971
|
+
var __spreadArray = exports && exports.__spreadArray || function(to, from2) {
|
32621
30972
|
for (var i = 0, il = from2.length, j = to.length; i < il; i++, j++)
|
32622
30973
|
to[j] = from2[i];
|
32623
30974
|
return to;
|
@@ -32630,7 +30981,7 @@ var require_concatWith = __commonJS({
|
|
32630
30981
|
for (var _i = 0; _i < arguments.length; _i++) {
|
32631
30982
|
otherSources[_i] = arguments[_i];
|
32632
30983
|
}
|
32633
|
-
return concat_1.concat.apply(void 0,
|
30984
|
+
return concat_1.concat.apply(void 0, __spreadArray([], __read(otherSources)));
|
32634
30985
|
}
|
32635
30986
|
exports.concatWith = concatWith;
|
32636
30987
|
}
|
@@ -33093,7 +31444,7 @@ var require_elementAt = __commonJS({
|
|
33093
31444
|
var require_endWith = __commonJS({
|
33094
31445
|
"../../node_modules/.pnpm/rxjs@7.8.1/node_modules/rxjs/dist/cjs/internal/operators/endWith.js"(exports) {
|
33095
31446
|
"use strict";
|
33096
|
-
var
|
31447
|
+
var __read = exports && exports.__read || function(o, n2) {
|
33097
31448
|
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
33098
31449
|
if (!m) return o;
|
33099
31450
|
var i = m.call(o), r, ar = [], e;
|
@@ -33110,7 +31461,7 @@ var require_endWith = __commonJS({
|
|
33110
31461
|
}
|
33111
31462
|
return ar;
|
33112
31463
|
};
|
33113
|
-
var
|
31464
|
+
var __spreadArray = exports && exports.__spreadArray || function(to, from2) {
|
33114
31465
|
for (var i = 0, il = from2.length, j = to.length; i < il; i++, j++)
|
33115
31466
|
to[j] = from2[i];
|
33116
31467
|
return to;
|
@@ -33125,7 +31476,7 @@ var require_endWith = __commonJS({
|
|
33125
31476
|
values[_i] = arguments[_i];
|
33126
31477
|
}
|
33127
31478
|
return function(source) {
|
33128
|
-
return concat_1.concat(source, of_1.of.apply(void 0,
|
31479
|
+
return concat_1.concat(source, of_1.of.apply(void 0, __spreadArray([], __read(values))));
|
33129
31480
|
};
|
33130
31481
|
}
|
33131
31482
|
exports.endWith = endWith;
|
@@ -33449,7 +31800,7 @@ var require_isEmpty = __commonJS({
|
|
33449
31800
|
var require_takeLast = __commonJS({
|
33450
31801
|
"../../node_modules/.pnpm/rxjs@7.8.1/node_modules/rxjs/dist/cjs/internal/operators/takeLast.js"(exports) {
|
33451
31802
|
"use strict";
|
33452
|
-
var
|
31803
|
+
var __values2 = exports && exports.__values || function(o) {
|
33453
31804
|
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
33454
31805
|
if (m) return m.call(o);
|
33455
31806
|
if (o && typeof o.length === "number") return {
|
@@ -33476,7 +31827,7 @@ var require_takeLast = __commonJS({
|
|
33476
31827
|
}, function() {
|
33477
31828
|
var e_1, _a;
|
33478
31829
|
try {
|
33479
|
-
for (var buffer_1 =
|
31830
|
+
for (var buffer_1 = __values2(buffer), buffer_1_1 = buffer_1.next(); !buffer_1_1.done; buffer_1_1 = buffer_1.next()) {
|
33480
31831
|
var value = buffer_1_1.value;
|
33481
31832
|
subscriber.next(value);
|
33482
31833
|
}
|
@@ -33640,7 +31991,7 @@ var require_mergeScan = __commonJS({
|
|
33640
31991
|
var require_merge2 = __commonJS({
|
33641
31992
|
"../../node_modules/.pnpm/rxjs@7.8.1/node_modules/rxjs/dist/cjs/internal/operators/merge.js"(exports) {
|
33642
31993
|
"use strict";
|
33643
|
-
var
|
31994
|
+
var __read = exports && exports.__read || function(o, n2) {
|
33644
31995
|
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
33645
31996
|
if (!m) return o;
|
33646
31997
|
var i = m.call(o), r, ar = [], e;
|
@@ -33657,7 +32008,7 @@ var require_merge2 = __commonJS({
|
|
33657
32008
|
}
|
33658
32009
|
return ar;
|
33659
32010
|
};
|
33660
|
-
var
|
32011
|
+
var __spreadArray = exports && exports.__spreadArray || function(to, from2) {
|
33661
32012
|
for (var i = 0, il = from2.length, j = to.length; i < il; i++, j++)
|
33662
32013
|
to[j] = from2[i];
|
33663
32014
|
return to;
|
@@ -33678,7 +32029,7 @@ var require_merge2 = __commonJS({
|
|
33678
32029
|
var concurrent = args_1.popNumber(args, Infinity);
|
33679
32030
|
args = argsOrArgArray_1.argsOrArgArray(args);
|
33680
32031
|
return lift_1.operate(function(source, subscriber) {
|
33681
|
-
mergeAll_1.mergeAll(concurrent)(from_1.from(
|
32032
|
+
mergeAll_1.mergeAll(concurrent)(from_1.from(__spreadArray([source], __read(args)), scheduler)).subscribe(subscriber);
|
33682
32033
|
});
|
33683
32034
|
}
|
33684
32035
|
exports.merge = merge;
|
@@ -33689,7 +32040,7 @@ var require_merge2 = __commonJS({
|
|
33689
32040
|
var require_mergeWith = __commonJS({
|
33690
32041
|
"../../node_modules/.pnpm/rxjs@7.8.1/node_modules/rxjs/dist/cjs/internal/operators/mergeWith.js"(exports) {
|
33691
32042
|
"use strict";
|
33692
|
-
var
|
32043
|
+
var __read = exports && exports.__read || function(o, n2) {
|
33693
32044
|
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
33694
32045
|
if (!m) return o;
|
33695
32046
|
var i = m.call(o), r, ar = [], e;
|
@@ -33706,7 +32057,7 @@ var require_mergeWith = __commonJS({
|
|
33706
32057
|
}
|
33707
32058
|
return ar;
|
33708
32059
|
};
|
33709
|
-
var
|
32060
|
+
var __spreadArray = exports && exports.__spreadArray || function(to, from2) {
|
33710
32061
|
for (var i = 0, il = from2.length, j = to.length; i < il; i++, j++)
|
33711
32062
|
to[j] = from2[i];
|
33712
32063
|
return to;
|
@@ -33719,7 +32070,7 @@ var require_mergeWith = __commonJS({
|
|
33719
32070
|
for (var _i = 0; _i < arguments.length; _i++) {
|
33720
32071
|
otherSources[_i] = arguments[_i];
|
33721
32072
|
}
|
33722
|
-
return merge_1.merge.apply(void 0,
|
32073
|
+
return merge_1.merge.apply(void 0, __spreadArray([], __read(otherSources)));
|
33723
32074
|
}
|
33724
32075
|
exports.mergeWith = mergeWith;
|
33725
32076
|
}
|
@@ -33774,7 +32125,7 @@ var require_multicast = __commonJS({
|
|
33774
32125
|
var require_onErrorResumeNextWith = __commonJS({
|
33775
32126
|
"../../node_modules/.pnpm/rxjs@7.8.1/node_modules/rxjs/dist/cjs/internal/operators/onErrorResumeNextWith.js"(exports) {
|
33776
32127
|
"use strict";
|
33777
|
-
var
|
32128
|
+
var __read = exports && exports.__read || function(o, n2) {
|
33778
32129
|
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
33779
32130
|
if (!m) return o;
|
33780
32131
|
var i = m.call(o), r, ar = [], e;
|
@@ -33791,7 +32142,7 @@ var require_onErrorResumeNextWith = __commonJS({
|
|
33791
32142
|
}
|
33792
32143
|
return ar;
|
33793
32144
|
};
|
33794
|
-
var
|
32145
|
+
var __spreadArray = exports && exports.__spreadArray || function(to, from2) {
|
33795
32146
|
for (var i = 0, il = from2.length, j = to.length; i < il; i++, j++)
|
33796
32147
|
to[j] = from2[i];
|
33797
32148
|
return to;
|
@@ -33807,7 +32158,7 @@ var require_onErrorResumeNextWith = __commonJS({
|
|
33807
32158
|
}
|
33808
32159
|
var nextSources = argsOrArgArray_1.argsOrArgArray(sources);
|
33809
32160
|
return function(source) {
|
33810
|
-
return onErrorResumeNext_1.onErrorResumeNext.apply(void 0,
|
32161
|
+
return onErrorResumeNext_1.onErrorResumeNext.apply(void 0, __spreadArray([source], __read(nextSources)));
|
33811
32162
|
};
|
33812
32163
|
}
|
33813
32164
|
exports.onErrorResumeNextWith = onErrorResumeNextWith;
|
@@ -33958,7 +32309,7 @@ var require_publishReplay = __commonJS({
|
|
33958
32309
|
var require_raceWith = __commonJS({
|
33959
32310
|
"../../node_modules/.pnpm/rxjs@7.8.1/node_modules/rxjs/dist/cjs/internal/operators/raceWith.js"(exports) {
|
33960
32311
|
"use strict";
|
33961
|
-
var
|
32312
|
+
var __read = exports && exports.__read || function(o, n2) {
|
33962
32313
|
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
33963
32314
|
if (!m) return o;
|
33964
32315
|
var i = m.call(o), r, ar = [], e;
|
@@ -33975,7 +32326,7 @@ var require_raceWith = __commonJS({
|
|
33975
32326
|
}
|
33976
32327
|
return ar;
|
33977
32328
|
};
|
33978
|
-
var
|
32329
|
+
var __spreadArray = exports && exports.__spreadArray || function(to, from2) {
|
33979
32330
|
for (var i = 0, il = from2.length, j = to.length; i < il; i++, j++)
|
33980
32331
|
to[j] = from2[i];
|
33981
32332
|
return to;
|
@@ -33991,7 +32342,7 @@ var require_raceWith = __commonJS({
|
|
33991
32342
|
otherSources[_i] = arguments[_i];
|
33992
32343
|
}
|
33993
32344
|
return !otherSources.length ? identity_1.identity : lift_1.operate(function(source, subscriber) {
|
33994
|
-
race_1.raceInit(
|
32345
|
+
race_1.raceInit(__spreadArray([source], __read(otherSources)))(subscriber);
|
33995
32346
|
});
|
33996
32347
|
}
|
33997
32348
|
exports.raceWith = raceWith;
|
@@ -34356,7 +32707,7 @@ var require_sequenceEqual = __commonJS({
|
|
34356
32707
|
var require_share = __commonJS({
|
34357
32708
|
"../../node_modules/.pnpm/rxjs@7.8.1/node_modules/rxjs/dist/cjs/internal/operators/share.js"(exports) {
|
34358
32709
|
"use strict";
|
34359
|
-
var
|
32710
|
+
var __read = exports && exports.__read || function(o, n2) {
|
34360
32711
|
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
34361
32712
|
if (!m) return o;
|
34362
32713
|
var i = m.call(o), r, ar = [], e;
|
@@ -34373,7 +32724,7 @@ var require_share = __commonJS({
|
|
34373
32724
|
}
|
34374
32725
|
return ar;
|
34375
32726
|
};
|
34376
|
-
var
|
32727
|
+
var __spreadArray = exports && exports.__spreadArray || function(to, from2) {
|
34377
32728
|
for (var i = 0, il = from2.length, j = to.length; i < il; i++, j++)
|
34378
32729
|
to[j] = from2[i];
|
34379
32730
|
return to;
|
@@ -34467,7 +32818,7 @@ var require_share = __commonJS({
|
|
34467
32818
|
reset();
|
34468
32819
|
}
|
34469
32820
|
});
|
34470
|
-
return innerFrom_1.innerFrom(on.apply(void 0,
|
32821
|
+
return innerFrom_1.innerFrom(on.apply(void 0, __spreadArray([], __read(args)))).subscribe(onSubscriber);
|
34471
32822
|
}
|
34472
32823
|
}
|
34473
32824
|
});
|
@@ -35060,7 +33411,7 @@ var require_window = __commonJS({
|
|
35060
33411
|
var require_windowCount = __commonJS({
|
35061
33412
|
"../../node_modules/.pnpm/rxjs@7.8.1/node_modules/rxjs/dist/cjs/internal/operators/windowCount.js"(exports) {
|
35062
33413
|
"use strict";
|
35063
|
-
var
|
33414
|
+
var __values2 = exports && exports.__values || function(o) {
|
35064
33415
|
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
35065
33416
|
if (m) return m.call(o);
|
35066
33417
|
if (o && typeof o.length === "number") return {
|
@@ -35089,7 +33440,7 @@ var require_windowCount = __commonJS({
|
|
35089
33440
|
source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(value) {
|
35090
33441
|
var e_1, _a;
|
35091
33442
|
try {
|
35092
|
-
for (var windows_1 =
|
33443
|
+
for (var windows_1 = __values2(windows), windows_1_1 = windows_1.next(); !windows_1_1.done; windows_1_1 = windows_1.next()) {
|
35093
33444
|
var window_1 = windows_1_1.value;
|
35094
33445
|
window_1.next(value);
|
35095
33446
|
}
|
@@ -35225,7 +33576,7 @@ var require_windowTime = __commonJS({
|
|
35225
33576
|
var require_windowToggle = __commonJS({
|
35226
33577
|
"../../node_modules/.pnpm/rxjs@7.8.1/node_modules/rxjs/dist/cjs/internal/operators/windowToggle.js"(exports) {
|
35227
33578
|
"use strict";
|
35228
|
-
var
|
33579
|
+
var __values2 = exports && exports.__values || function(o) {
|
35229
33580
|
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
35230
33581
|
if (m) return m.call(o);
|
35231
33582
|
if (o && typeof o.length === "number") return {
|
@@ -35277,7 +33628,7 @@ var require_windowToggle = __commonJS({
|
|
35277
33628
|
var e_1, _a;
|
35278
33629
|
var windowsCopy = windows.slice();
|
35279
33630
|
try {
|
35280
|
-
for (var windowsCopy_1 =
|
33631
|
+
for (var windowsCopy_1 = __values2(windowsCopy), windowsCopy_1_1 = windowsCopy_1.next(); !windowsCopy_1_1.done; windowsCopy_1_1 = windowsCopy_1.next()) {
|
35281
33632
|
var window_1 = windowsCopy_1_1.value;
|
35282
33633
|
window_1.next(value);
|
35283
33634
|
}
|
@@ -35358,7 +33709,7 @@ var require_windowWhen = __commonJS({
|
|
35358
33709
|
var require_withLatestFrom = __commonJS({
|
35359
33710
|
"../../node_modules/.pnpm/rxjs@7.8.1/node_modules/rxjs/dist/cjs/internal/operators/withLatestFrom.js"(exports) {
|
35360
33711
|
"use strict";
|
35361
|
-
var
|
33712
|
+
var __read = exports && exports.__read || function(o, n2) {
|
35362
33713
|
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
35363
33714
|
if (!m) return o;
|
35364
33715
|
var i = m.call(o), r, ar = [], e;
|
@@ -35375,7 +33726,7 @@ var require_withLatestFrom = __commonJS({
|
|
35375
33726
|
}
|
35376
33727
|
return ar;
|
35377
33728
|
};
|
35378
|
-
var
|
33729
|
+
var __spreadArray = exports && exports.__spreadArray || function(to, from2) {
|
35379
33730
|
for (var i = 0, il = from2.length, j = to.length; i < il; i++, j++)
|
35380
33731
|
to[j] = from2[i];
|
35381
33732
|
return to;
|
@@ -35415,8 +33766,8 @@ var require_withLatestFrom = __commonJS({
|
|
35415
33766
|
}
|
35416
33767
|
source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function(value) {
|
35417
33768
|
if (ready) {
|
35418
|
-
var values =
|
35419
|
-
subscriber.next(project ? project.apply(void 0,
|
33769
|
+
var values = __spreadArray([value], __read(otherValues));
|
33770
|
+
subscriber.next(project ? project.apply(void 0, __spreadArray([], __read(values))) : values);
|
35420
33771
|
}
|
35421
33772
|
}));
|
35422
33773
|
});
|
@@ -35444,7 +33795,7 @@ var require_zipAll = __commonJS({
|
|
35444
33795
|
var require_zip2 = __commonJS({
|
35445
33796
|
"../../node_modules/.pnpm/rxjs@7.8.1/node_modules/rxjs/dist/cjs/internal/operators/zip.js"(exports) {
|
35446
33797
|
"use strict";
|
35447
|
-
var
|
33798
|
+
var __read = exports && exports.__read || function(o, n2) {
|
35448
33799
|
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
35449
33800
|
if (!m) return o;
|
35450
33801
|
var i = m.call(o), r, ar = [], e;
|
@@ -35461,7 +33812,7 @@ var require_zip2 = __commonJS({
|
|
35461
33812
|
}
|
35462
33813
|
return ar;
|
35463
33814
|
};
|
35464
|
-
var
|
33815
|
+
var __spreadArray = exports && exports.__spreadArray || function(to, from2) {
|
35465
33816
|
for (var i = 0, il = from2.length, j = to.length; i < il; i++, j++)
|
35466
33817
|
to[j] = from2[i];
|
35467
33818
|
return to;
|
@@ -35476,7 +33827,7 @@ var require_zip2 = __commonJS({
|
|
35476
33827
|
sources[_i] = arguments[_i];
|
35477
33828
|
}
|
35478
33829
|
return lift_1.operate(function(source, subscriber) {
|
35479
|
-
zip_1.zip.apply(void 0,
|
33830
|
+
zip_1.zip.apply(void 0, __spreadArray([source], __read(sources))).subscribe(subscriber);
|
35480
33831
|
});
|
35481
33832
|
}
|
35482
33833
|
exports.zip = zip;
|
@@ -35487,7 +33838,7 @@ var require_zip2 = __commonJS({
|
|
35487
33838
|
var require_zipWith = __commonJS({
|
35488
33839
|
"../../node_modules/.pnpm/rxjs@7.8.1/node_modules/rxjs/dist/cjs/internal/operators/zipWith.js"(exports) {
|
35489
33840
|
"use strict";
|
35490
|
-
var
|
33841
|
+
var __read = exports && exports.__read || function(o, n2) {
|
35491
33842
|
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
35492
33843
|
if (!m) return o;
|
35493
33844
|
var i = m.call(o), r, ar = [], e;
|
@@ -35504,7 +33855,7 @@ var require_zipWith = __commonJS({
|
|
35504
33855
|
}
|
35505
33856
|
return ar;
|
35506
33857
|
};
|
35507
|
-
var
|
33858
|
+
var __spreadArray = exports && exports.__spreadArray || function(to, from2) {
|
35508
33859
|
for (var i = 0, il = from2.length, j = to.length; i < il; i++, j++)
|
35509
33860
|
to[j] = from2[i];
|
35510
33861
|
return to;
|
@@ -35517,7 +33868,7 @@ var require_zipWith = __commonJS({
|
|
35517
33868
|
for (var _i = 0; _i < arguments.length; _i++) {
|
35518
33869
|
otherInputs[_i] = arguments[_i];
|
35519
33870
|
}
|
35520
|
-
return zip_1.zip.apply(void 0,
|
33871
|
+
return zip_1.zip.apply(void 0, __spreadArray([], __read(otherInputs)));
|
35521
33872
|
}
|
35522
33873
|
exports.zipWith = zipWith;
|
35523
33874
|
}
|
@@ -36246,16 +34597,16 @@ var require_eventemitter3 = __commonJS({
|
|
36246
34597
|
Events.prototype = /* @__PURE__ */ Object.create(null);
|
36247
34598
|
if (!new Events().__proto__) prefix = false;
|
36248
34599
|
}
|
36249
|
-
function EE(fn,
|
34600
|
+
function EE(fn, context, once) {
|
36250
34601
|
this.fn = fn;
|
36251
|
-
this.context =
|
34602
|
+
this.context = context;
|
36252
34603
|
this.once = once || false;
|
36253
34604
|
}
|
36254
|
-
function addListener(emitter, event, fn,
|
34605
|
+
function addListener(emitter, event, fn, context, once) {
|
36255
34606
|
if (typeof fn !== "function") {
|
36256
34607
|
throw new TypeError("The listener must be a function");
|
36257
34608
|
}
|
36258
|
-
var listener = new EE(fn,
|
34609
|
+
var listener = new EE(fn, context || emitter, once), evt = prefix ? prefix + event : event;
|
36259
34610
|
if (!emitter._events[evt]) emitter._events[evt] = listener, emitter._eventsCount++;
|
36260
34611
|
else if (!emitter._events[evt].fn) emitter._events[evt].push(listener);
|
36261
34612
|
else emitter._events[evt] = [emitter._events[evt], listener];
|
@@ -36346,13 +34697,13 @@ var require_eventemitter3 = __commonJS({
|
|
36346
34697
|
}
|
36347
34698
|
return true;
|
36348
34699
|
};
|
36349
|
-
EventEmitter2.prototype.on = function on(event, fn,
|
36350
|
-
return addListener(this, event, fn,
|
34700
|
+
EventEmitter2.prototype.on = function on(event, fn, context) {
|
34701
|
+
return addListener(this, event, fn, context, false);
|
36351
34702
|
};
|
36352
|
-
EventEmitter2.prototype.once = function once(event, fn,
|
36353
|
-
return addListener(this, event, fn,
|
34703
|
+
EventEmitter2.prototype.once = function once(event, fn, context) {
|
34704
|
+
return addListener(this, event, fn, context, true);
|
36354
34705
|
};
|
36355
|
-
EventEmitter2.prototype.removeListener = function removeListener(event, fn,
|
34706
|
+
EventEmitter2.prototype.removeListener = function removeListener(event, fn, context, once) {
|
36356
34707
|
var evt = prefix ? prefix + event : event;
|
36357
34708
|
if (!this._events[evt]) return this;
|
36358
34709
|
if (!fn) {
|
@@ -36361,12 +34712,12 @@ var require_eventemitter3 = __commonJS({
|
|
36361
34712
|
}
|
36362
34713
|
var listeners = this._events[evt];
|
36363
34714
|
if (listeners.fn) {
|
36364
|
-
if (listeners.fn === fn && (!once || listeners.once) && (!
|
34715
|
+
if (listeners.fn === fn && (!once || listeners.once) && (!context || listeners.context === context)) {
|
36365
34716
|
clearEvent(this, evt);
|
36366
34717
|
}
|
36367
34718
|
} else {
|
36368
34719
|
for (var i = 0, events = [], length = listeners.length; i < length; i++) {
|
36369
|
-
if (listeners[i].fn !== fn || once && !listeners[i].once ||
|
34720
|
+
if (listeners[i].fn !== fn || once && !listeners[i].once || context && listeners[i].context !== context) {
|
36370
34721
|
events.push(listeners[i]);
|
36371
34722
|
}
|
36372
34723
|
}
|
@@ -38130,12 +36481,12 @@ function makeEthCallKey(param) {
|
|
38130
36481
|
return `${chainId}|${address}|${blockTag}|${param.calldata}`.toLowerCase();
|
38131
36482
|
}
|
38132
36483
|
function parseSemver(version2) {
|
38133
|
-
const [semVer,
|
36484
|
+
const [semVer, major, minor, patch, prerelease, buildmetadata] = version2.match(
|
38134
36485
|
/^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/
|
38135
36486
|
) ?? [];
|
38136
36487
|
return {
|
38137
36488
|
semVer,
|
38138
|
-
major: parseInt(
|
36489
|
+
major: parseInt(major),
|
38139
36490
|
minor: parseInt(minor),
|
38140
36491
|
patch: parseInt(patch),
|
38141
36492
|
prerelease,
|
@@ -38229,7 +36580,7 @@ function deepFreeze(object2) {
|
|
38229
36580
|
import("node:process").then((p) => p.stdout.write(""));
|
38230
36581
|
|
38231
36582
|
// src/metrics.ts
|
38232
|
-
|
36583
|
+
init_esm();
|
38233
36584
|
import { AsyncLocalStorage } from "node:async_hooks";
|
38234
36585
|
var getMeter = () => metrics.getMeter("processor");
|
38235
36586
|
var C = class {
|
@@ -56085,7 +54436,7 @@ var LRUCache = class _LRUCache {
|
|
56085
54436
|
free: c.#free,
|
56086
54437
|
// methods
|
56087
54438
|
isBackgroundFetch: (p) => c.#isBackgroundFetch(p),
|
56088
|
-
backgroundFetch: (k, index, options,
|
54439
|
+
backgroundFetch: (k, index, options, context) => c.#backgroundFetch(k, index, options, context),
|
56089
54440
|
moveToTail: (index) => c.#moveToTail(index),
|
56090
54441
|
indexes: (options) => c.#indexes(options),
|
56091
54442
|
rindexes: (options) => c.#rindexes(options),
|
@@ -56872,7 +55223,7 @@ var LRUCache = class _LRUCache {
|
|
56872
55223
|
const v = this.#valList[index];
|
56873
55224
|
return this.#isBackgroundFetch(v) ? v.__staleWhileFetching : v;
|
56874
55225
|
}
|
56875
|
-
#backgroundFetch(k, index, options,
|
55226
|
+
#backgroundFetch(k, index, options, context) {
|
56876
55227
|
const v = index === void 0 ? void 0 : this.#valList[index];
|
56877
55228
|
if (this.#isBackgroundFetch(v)) {
|
56878
55229
|
return v;
|
@@ -56885,7 +55236,7 @@ var LRUCache = class _LRUCache {
|
|
56885
55236
|
const fetchOpts = {
|
56886
55237
|
signal: ac.signal,
|
56887
55238
|
options,
|
56888
|
-
context
|
55239
|
+
context
|
56889
55240
|
};
|
56890
55241
|
const cb = (v2, updateCache = false) => {
|
56891
55242
|
const { aborted } = ac.signal;
|
@@ -57002,7 +55353,7 @@ var LRUCache = class _LRUCache {
|
|
57002
55353
|
allowStaleOnFetchRejection = this.allowStaleOnFetchRejection,
|
57003
55354
|
ignoreFetchAbort = this.ignoreFetchAbort,
|
57004
55355
|
allowStaleOnFetchAbort = this.allowStaleOnFetchAbort,
|
57005
|
-
context
|
55356
|
+
context,
|
57006
55357
|
forceRefresh = false,
|
57007
55358
|
status,
|
57008
55359
|
signal
|
@@ -57037,7 +55388,7 @@ var LRUCache = class _LRUCache {
|
|
57037
55388
|
if (index === void 0) {
|
57038
55389
|
if (status)
|
57039
55390
|
status.fetch = "miss";
|
57040
|
-
const p = this.#backgroundFetch(k, index, options,
|
55391
|
+
const p = this.#backgroundFetch(k, index, options, context);
|
57041
55392
|
return p.__returned = p;
|
57042
55393
|
} else {
|
57043
55394
|
const v = this.#valList[index];
|
@@ -57062,7 +55413,7 @@ var LRUCache = class _LRUCache {
|
|
57062
55413
|
this.#statusTTL(status, index);
|
57063
55414
|
return v;
|
57064
55415
|
}
|
57065
|
-
const p = this.#backgroundFetch(k, index, options,
|
55416
|
+
const p = this.#backgroundFetch(k, index, options, context);
|
57066
55417
|
const hasStale = p.__staleWhileFetching !== void 0;
|
57067
55418
|
const staleVal = hasStale && allowStale;
|
57068
55419
|
if (status) {
|
@@ -57084,13 +55435,13 @@ var LRUCache = class _LRUCache {
|
|
57084
55435
|
if (!memoMethod) {
|
57085
55436
|
throw new Error("no memoMethod provided to constructor");
|
57086
55437
|
}
|
57087
|
-
const { context
|
55438
|
+
const { context, forceRefresh, ...options } = memoOptions;
|
57088
55439
|
const v = this.get(k, options);
|
57089
55440
|
if (!forceRefresh && v !== void 0)
|
57090
55441
|
return v;
|
57091
55442
|
const vv = memoMethod(k, v, {
|
57092
55443
|
options,
|
57093
|
-
context
|
55444
|
+
context
|
57094
55445
|
});
|
57095
55446
|
this.set(k, vv, options);
|
57096
55447
|
return vv;
|
@@ -57436,7 +55787,7 @@ function __awaiter(thisArg, _arguments, P, generator) {
|
|
57436
55787
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
57437
55788
|
});
|
57438
55789
|
}
|
57439
|
-
function
|
55790
|
+
function __values(o) {
|
57440
55791
|
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
57441
55792
|
if (m) return m.call(o);
|
57442
55793
|
if (o && typeof o.length === "number") return {
|
@@ -57494,7 +55845,7 @@ function __asyncGenerator(thisArg, _arguments, generator) {
|
|
57494
55845
|
function __asyncValues(o) {
|
57495
55846
|
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
|
57496
55847
|
var m = o[Symbol.asyncIterator], i;
|
57497
|
-
return m ? m.call(o) : (o = typeof
|
55848
|
+
return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function() {
|
57498
55849
|
return this;
|
57499
55850
|
}, i);
|
57500
55851
|
function verb(n2) {
|
@@ -59571,7 +57922,7 @@ var ProcessorServiceImpl = class {
|
|
59571
57922
|
this.enablePreprocess = process.env["ENABLE_PREPROCESS"] ? process.env["ENABLE_PREPROCESS"].toLowerCase() == "true" : false;
|
59572
57923
|
this.enablePartition = options?.["enable-partition"] == true;
|
59573
57924
|
}
|
59574
|
-
async getConfig(request,
|
57925
|
+
async getConfig(request, context) {
|
59575
57926
|
if (!this.started) {
|
59576
57927
|
throw new import_nice_grpc.ServerError(import_nice_grpc.Status.UNAVAILABLE, "Service Not started.");
|
59577
57928
|
}
|
@@ -59584,7 +57935,7 @@ var ProcessorServiceImpl = class {
|
|
59584
57935
|
// this.processorConfig = ProcessConfigResponse.fromPartial({})
|
59585
57936
|
// await PluginManager.INSTANCE.configure(this.processorConfig)
|
59586
57937
|
// }
|
59587
|
-
async start(request,
|
57938
|
+
async start(request, context) {
|
59588
57939
|
if (this.started) {
|
59589
57940
|
return {};
|
59590
57941
|
}
|
@@ -59598,7 +57949,7 @@ var ProcessorServiceImpl = class {
|
|
59598
57949
|
this.started = true;
|
59599
57950
|
return {};
|
59600
57951
|
}
|
59601
|
-
async stop(request,
|
57952
|
+
async stop(request, context) {
|
59602
57953
|
console.log("Server Shutting down in 5 seconds");
|
59603
57954
|
if (this.shutdownHandler) {
|
59604
57955
|
setTimeout(this.shutdownHandler, 5e3);
|
@@ -59758,7 +58109,7 @@ var ProcessorServiceImpl = class {
|
|
59758
58109
|
recordRuntimeInfo(result, request.handlerType);
|
59759
58110
|
return result;
|
59760
58111
|
}
|
59761
|
-
async *processBindingsStream(requests,
|
58112
|
+
async *processBindingsStream(requests, context) {
|
59762
58113
|
if (!this.started) {
|
59763
58114
|
throw new import_nice_grpc.ServerError(import_nice_grpc.Status.UNAVAILABLE, "Service Not started.");
|
59764
58115
|
}
|
@@ -59772,7 +58123,7 @@ var ProcessorServiceImpl = class {
|
|
59772
58123
|
console.error(e);
|
59773
58124
|
subject.error(e);
|
59774
58125
|
});
|
59775
|
-
yield* from(subject).pipe(withAbort(
|
58126
|
+
yield* from(subject).pipe(withAbort(context.signal));
|
59776
58127
|
}
|
59777
58128
|
async handlePreprocessRequests(requests, subject) {
|
59778
58129
|
const contexts = new Contexts();
|
@@ -59811,7 +58162,7 @@ var ProcessorServiceImpl = class {
|
|
59811
58162
|
}
|
59812
58163
|
}
|
59813
58164
|
}
|
59814
|
-
async *preprocessBindingsStream(requests,
|
58165
|
+
async *preprocessBindingsStream(requests, context) {
|
59815
58166
|
if (!this.started) {
|
59816
58167
|
throw new import_nice_grpc.ServerError(import_nice_grpc.Status.UNAVAILABLE, "Service Not started.");
|
59817
58168
|
}
|
@@ -59822,7 +58173,7 @@ var ProcessorServiceImpl = class {
|
|
59822
58173
|
console.error(e);
|
59823
58174
|
subject.error(e);
|
59824
58175
|
});
|
59825
|
-
yield* from(subject).pipe(withAbort(
|
58176
|
+
yield* from(subject).pipe(withAbort(context.signal));
|
59826
58177
|
}
|
59827
58178
|
dbContexts = new Contexts();
|
59828
58179
|
async handleRequests(requests, subject) {
|
@@ -59917,13 +58268,13 @@ var Contexts = class {
|
|
59917
58268
|
return this.contexts.get(processId);
|
59918
58269
|
}
|
59919
58270
|
new(processId, subject) {
|
59920
|
-
const
|
59921
|
-
this.contexts.set(processId,
|
59922
|
-
return
|
58271
|
+
const context = new StoreContext(subject, processId);
|
58272
|
+
this.contexts.set(processId, context);
|
58273
|
+
return context;
|
59923
58274
|
}
|
59924
58275
|
delete(processId) {
|
59925
|
-
const
|
59926
|
-
|
58276
|
+
const context = this.get(processId);
|
58277
|
+
context?.close();
|
59927
58278
|
this.contexts.delete(processId);
|
59928
58279
|
}
|
59929
58280
|
};
|
@@ -59951,28 +58302,6 @@ export {
|
|
59951
58302
|
withAbort,
|
59952
58303
|
GLOBAL_CONFIG,
|
59953
58304
|
freezeGlobalConfig,
|
59954
|
-
DiagLogLevel,
|
59955
|
-
baggageEntryMetadataFromString,
|
59956
|
-
createContextKey,
|
59957
|
-
DiagConsoleLogger,
|
59958
|
-
createNoopMeter,
|
59959
|
-
ValueType,
|
59960
|
-
TraceFlags,
|
59961
|
-
INVALID_SPAN_CONTEXT,
|
59962
|
-
isValidTraceId,
|
59963
|
-
isValidSpanId,
|
59964
|
-
isSpanContextValid,
|
59965
|
-
ProxyTracerProvider,
|
59966
|
-
SamplingDecision,
|
59967
|
-
SpanKind,
|
59968
|
-
SpanStatusCode,
|
59969
|
-
context,
|
59970
|
-
diag2 as diag,
|
59971
|
-
metrics,
|
59972
|
-
propagation,
|
59973
|
-
trace,
|
59974
|
-
esm_exports2 as esm_exports,
|
59975
|
-
init_esm2 as init_esm,
|
59976
58305
|
dbMetrics,
|
59977
58306
|
providerMetrics,
|
59978
58307
|
processMetrics,
|
@@ -60071,4 +58400,4 @@ long/umd/index.js:
|
|
60071
58400
|
@noble/curves/esm/secp256k1.js:
|
60072
58401
|
(*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) *)
|
60073
58402
|
*/
|
60074
|
-
//# sourceMappingURL=chunk-
|
58403
|
+
//# sourceMappingURL=chunk-K56YKGVF.js.map
|