camstack 1.2.184 → 1.2.185
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/dist/cli.js +63404 -346
- package/dist/{launcher-DYASWHKK.js → launcher-6Q2JLZCB.js} +1867 -724
- package/package.json +4 -2
- package/dist/chunk-CTW2RQUZ.js +0 -62742
- package/dist/discover-TF6TGNJS.js +0 -16
|
@@ -24024,9 +24024,9 @@ var require_zod = __commonJS({
|
|
|
24024
24024
|
}
|
|
24025
24025
|
});
|
|
24026
24026
|
|
|
24027
|
-
// ../system/dist/dist-
|
|
24028
|
-
var
|
|
24029
|
-
"../system/dist/dist-
|
|
24027
|
+
// ../system/dist/dist-DxiDI8hZ.js
|
|
24028
|
+
var require_dist_DxiDI8hZ = __commonJS({
|
|
24029
|
+
"../system/dist/dist-DxiDI8hZ.js"(exports) {
|
|
24030
24030
|
"use strict";
|
|
24031
24031
|
var zod = require_zod();
|
|
24032
24032
|
__require("crypto");
|
|
@@ -24082,7 +24082,12 @@ var require_dist_CpYg1PaO = __commonJS({
|
|
|
24082
24082
|
EventCategory2["RecordingStopped"] = "recording.stopped";
|
|
24083
24083
|
EventCategory2["RecordingError"] = "recording.error";
|
|
24084
24084
|
EventCategory2["RecordingHealthDegraded"] = "recording.health.degraded";
|
|
24085
|
+
EventCategory2["RecordingHealthStalled"] = "recording.health.stalled";
|
|
24086
|
+
EventCategory2["RecordingHealthOk"] = "recording.health.ok";
|
|
24085
24087
|
EventCategory2["RecordingStorageCritical"] = "recording.storage.critical";
|
|
24088
|
+
EventCategory2["StorageLocationLow"] = "storage.location.low";
|
|
24089
|
+
EventCategory2["StorageLocationCritical"] = "storage.location.critical";
|
|
24090
|
+
EventCategory2["StorageLocationOk"] = "storage.location.ok";
|
|
24086
24091
|
EventCategory2["RecordingSegmentWritten"] = "recording.segment.written";
|
|
24087
24092
|
EventCategory2["RecordingPolicyFallback"] = "recording.policy.fallback";
|
|
24088
24093
|
EventCategory2["RecordingRetentionCompleted"] = "recording.retention.completed";
|
|
@@ -32274,7 +32279,14 @@ var require_dist_CpYg1PaO = __commonJS({
|
|
|
32274
32279
|
/** Broker kinds this provider can create, with a display label. */
|
|
32275
32280
|
kinds: zod.z.array(zod.z.object({
|
|
32276
32281
|
kind: zod.z.string(),
|
|
32277
|
-
label: zod.z.string()
|
|
32282
|
+
label: zod.z.string(),
|
|
32283
|
+
/**
|
|
32284
|
+
* Relative hub path to start an interactive account link (OAuth popup).
|
|
32285
|
+
* May include `{{brokerId}}`; admin-ui substitutes and appends `?popup=1`.
|
|
32286
|
+
*/
|
|
32287
|
+
interactiveConnectPath: zod.z.string().min(1).optional(),
|
|
32288
|
+
/** Relative hub path to disconnect the linked account (same popup pattern). */
|
|
32289
|
+
interactiveDisconnectPath: zod.z.string().min(1).optional()
|
|
32278
32290
|
}))
|
|
32279
32291
|
});
|
|
32280
32292
|
var ListInputSchema = zod.z.object({
|
|
@@ -38651,6 +38663,13 @@ var require_dist_CpYg1PaO = __commonJS({
|
|
|
38651
38663
|
publicEndpoint: resolvePublicEndpoint(hubPalette, flags)
|
|
38652
38664
|
};
|
|
38653
38665
|
}
|
|
38666
|
+
var HUB_MDNS_SERVICE_TYPE = "camstack";
|
|
38667
|
+
var HUB_MDNS_TXT_KEYS = {
|
|
38668
|
+
nodeId: "nodeId",
|
|
38669
|
+
version: "version",
|
|
38670
|
+
role: "role",
|
|
38671
|
+
url: "url"
|
|
38672
|
+
};
|
|
38654
38673
|
var AI_CAP_TRANSPORT_TIMEOUT_MS = 6e5;
|
|
38655
38674
|
var AI_MODEL_INSTALL_TIMEOUT_MS = 60 * 6e4;
|
|
38656
38675
|
var LlmUsageSchema = zod.z.object({
|
|
@@ -41038,6 +41057,12 @@ var require_dist_CpYg1PaO = __commonJS({
|
|
|
41038
41057
|
"node-updating",
|
|
41039
41058
|
"node-inference-unavailable",
|
|
41040
41059
|
"detection-blind",
|
|
41060
|
+
"recording-stalled",
|
|
41061
|
+
"recording-healthy",
|
|
41062
|
+
"recording-degraded",
|
|
41063
|
+
"storage-location-low",
|
|
41064
|
+
"storage-location-critical",
|
|
41065
|
+
"storage-location-ok",
|
|
41041
41066
|
"addon-crash-loop",
|
|
41042
41067
|
"addon-update-available",
|
|
41043
41068
|
"server-update-available",
|
|
@@ -76852,6 +76877,9 @@ var require_dist_CpYg1PaO = __commonJS({
|
|
|
76852
76877
|
"stream-online": "device-events",
|
|
76853
76878
|
"stream-offline": "device-events",
|
|
76854
76879
|
"detection-blind": "device-events",
|
|
76880
|
+
"recording-stalled": "device-events",
|
|
76881
|
+
"recording-healthy": "device-events",
|
|
76882
|
+
"recording-degraded": "device-events",
|
|
76855
76883
|
"node-online": "system",
|
|
76856
76884
|
"node-offline": "system",
|
|
76857
76885
|
"node-restarting": "system",
|
|
@@ -76865,6 +76893,9 @@ var require_dist_CpYg1PaO = __commonJS({
|
|
|
76865
76893
|
"wrapper-update-available": "system",
|
|
76866
76894
|
"backup-completed": "system",
|
|
76867
76895
|
"export-completed": "system",
|
|
76896
|
+
"storage-location-low": "system",
|
|
76897
|
+
"storage-location-critical": "system",
|
|
76898
|
+
"storage-location-ok": "system",
|
|
76868
76899
|
"alarm-triggered": "alarm",
|
|
76869
76900
|
"alarm-armed": "alarm",
|
|
76870
76901
|
"alarm-disarmed": "alarm",
|
|
@@ -76926,6 +76957,16 @@ var require_dist_CpYg1PaO = __commonJS({
|
|
|
76926
76957
|
label: "Detecting nothing",
|
|
76927
76958
|
kinds: ["detection-blind"]
|
|
76928
76959
|
},
|
|
76960
|
+
{
|
|
76961
|
+
id: "recording",
|
|
76962
|
+
family: "device-events",
|
|
76963
|
+
label: "Recording",
|
|
76964
|
+
kinds: [
|
|
76965
|
+
"recording-stalled",
|
|
76966
|
+
"recording-healthy",
|
|
76967
|
+
"recording-degraded"
|
|
76968
|
+
]
|
|
76969
|
+
},
|
|
76929
76970
|
{
|
|
76930
76971
|
id: "nodes",
|
|
76931
76972
|
family: "system",
|
|
@@ -76966,6 +77007,16 @@ var require_dist_CpYg1PaO = __commonJS({
|
|
|
76966
77007
|
label: "Backups & exports",
|
|
76967
77008
|
kinds: ["backup-completed", "export-completed"]
|
|
76968
77009
|
},
|
|
77010
|
+
{
|
|
77011
|
+
id: "storage",
|
|
77012
|
+
family: "system",
|
|
77013
|
+
label: "Storage locations",
|
|
77014
|
+
kinds: [
|
|
77015
|
+
"storage-location-low",
|
|
77016
|
+
"storage-location-critical",
|
|
77017
|
+
"storage-location-ok"
|
|
77018
|
+
]
|
|
77019
|
+
},
|
|
76969
77020
|
{
|
|
76970
77021
|
id: "alarm",
|
|
76971
77022
|
family: "alarm",
|
|
@@ -77021,6 +77072,9 @@ var require_dist_CpYg1PaO = __commonJS({
|
|
|
77021
77072
|
"stream-online",
|
|
77022
77073
|
"stream-offline",
|
|
77023
77074
|
"detection-blind",
|
|
77075
|
+
"recording-stalled",
|
|
77076
|
+
"recording-healthy",
|
|
77077
|
+
"recording-degraded",
|
|
77024
77078
|
...ALARM
|
|
77025
77079
|
];
|
|
77026
77080
|
var SUMMARISABLE = [...systemEventKindsOfFamily("device-events"), ...systemEventKindsOfFamily("system")];
|
|
@@ -77185,6 +77239,11 @@ var require_dist_CpYg1PaO = __commonJS({
|
|
|
77185
77239
|
[...RULE_TEXT],
|
|
77186
77240
|
[...RULE_TEXT],
|
|
77187
77241
|
[...RULE_TEXT],
|
|
77242
|
+
[...RULE_TEXT],
|
|
77243
|
+
[...RULE_TEXT],
|
|
77244
|
+
[...RULE_TEXT],
|
|
77245
|
+
[...RULE_TEXT],
|
|
77246
|
+
[...RULE_TEXT],
|
|
77188
77247
|
([...RULE_TEXT], [...UPDATES]),
|
|
77189
77248
|
([...RULE_TEXT], [...PACKAGE_UPDATES]),
|
|
77190
77249
|
([...RULE_TEXT], [...PACKAGE_UPDATES]),
|
|
@@ -77947,6 +78006,18 @@ var require_dist_CpYg1PaO = __commonJS({
|
|
|
77947
78006
|
return HF_REPO;
|
|
77948
78007
|
}
|
|
77949
78008
|
});
|
|
78009
|
+
Object.defineProperty(exports, "HUB_MDNS_SERVICE_TYPE", {
|
|
78010
|
+
enumerable: true,
|
|
78011
|
+
get: function() {
|
|
78012
|
+
return HUB_MDNS_SERVICE_TYPE;
|
|
78013
|
+
}
|
|
78014
|
+
});
|
|
78015
|
+
Object.defineProperty(exports, "HUB_MDNS_TXT_KEYS", {
|
|
78016
|
+
enumerable: true,
|
|
78017
|
+
get: function() {
|
|
78018
|
+
return HUB_MDNS_TXT_KEYS;
|
|
78019
|
+
}
|
|
78020
|
+
});
|
|
77950
78021
|
Object.defineProperty(exports, "KEYCHAIN_RESET_TRIGGER_ACTOR", {
|
|
77951
78022
|
enumerable: true,
|
|
77952
78023
|
get: function() {
|
|
@@ -79060,11 +79131,11 @@ var require_dist_CpYg1PaO = __commonJS({
|
|
|
79060
79131
|
}
|
|
79061
79132
|
});
|
|
79062
79133
|
|
|
79063
|
-
// ../system/dist/jwt-signing-key-
|
|
79064
|
-
var
|
|
79065
|
-
"../system/dist/jwt-signing-key-
|
|
79134
|
+
// ../system/dist/jwt-signing-key-CsC-FxSm.js
|
|
79135
|
+
var require_jwt_signing_key_CsC_FxSm = __commonJS({
|
|
79136
|
+
"../system/dist/jwt-signing-key-CsC-FxSm.js"(exports) {
|
|
79066
79137
|
"use strict";
|
|
79067
|
-
var require_dist10 =
|
|
79138
|
+
var require_dist10 = require_dist_DxiDI8hZ();
|
|
79068
79139
|
var node_crypto = __require("crypto");
|
|
79069
79140
|
var SYSTEM_SECRET_OWNER = "system";
|
|
79070
79141
|
var JWT_SIGNING_KEY_REF = require_dist10.buildSecretRef({
|
|
@@ -79216,7 +79287,7 @@ var require_alerts_addon = __commonJS({
|
|
|
79216
79287
|
[Symbol.toStringTag]: { value: "Module" }
|
|
79217
79288
|
});
|
|
79218
79289
|
require_chunk_Cek0wNdY();
|
|
79219
|
-
var require_dist10 =
|
|
79290
|
+
var require_dist10 = require_dist_DxiDI8hZ();
|
|
79220
79291
|
function deviceLabelFromEventData(data) {
|
|
79221
79292
|
const name = stringNonEmpty(data["name"]) ?? stringNonEmpty(data["deviceName"]);
|
|
79222
79293
|
if (name !== void 0) return name;
|
|
@@ -80040,7 +80111,7 @@ var require_calendars_addon = __commonJS({
|
|
|
80040
80111
|
[Symbol.toStringTag]: { value: "Module" }
|
|
80041
80112
|
});
|
|
80042
80113
|
require_chunk_Cek0wNdY();
|
|
80043
|
-
var require_dist10 =
|
|
80114
|
+
var require_dist10 = require_dist_DxiDI8hZ();
|
|
80044
80115
|
var require_settle_sources = require_settle_sources_Bhsy57y();
|
|
80045
80116
|
var zod = require_zod();
|
|
80046
80117
|
var CALENDAR_COLOR_PALETTE = [
|
|
@@ -80254,11 +80325,11 @@ var require_calendars = __commonJS({
|
|
|
80254
80325
|
}
|
|
80255
80326
|
});
|
|
80256
80327
|
|
|
80257
|
-
// ../system/dist/composition-sources-
|
|
80258
|
-
var
|
|
80259
|
-
"../system/dist/composition-sources-
|
|
80328
|
+
// ../system/dist/composition-sources-DBcOVpGn.js
|
|
80329
|
+
var require_composition_sources_DBcOVpGn = __commonJS({
|
|
80330
|
+
"../system/dist/composition-sources-DBcOVpGn.js"(exports) {
|
|
80260
80331
|
"use strict";
|
|
80261
|
-
var require_dist10 =
|
|
80332
|
+
var require_dist10 = require_dist_DxiDI8hZ();
|
|
80262
80333
|
function normalizedNativeOwner(owner) {
|
|
80263
80334
|
const trimmed = owner?.trim();
|
|
80264
80335
|
return trimmed ? trimmed : null;
|
|
@@ -80373,8 +80444,8 @@ var require_composer_addon = __commonJS({
|
|
|
80373
80444
|
[Symbol.toStringTag]: { value: "Module" }
|
|
80374
80445
|
});
|
|
80375
80446
|
require_chunk_Cek0wNdY();
|
|
80376
|
-
var require_dist10 =
|
|
80377
|
-
var require_composition_sources =
|
|
80447
|
+
var require_dist10 = require_dist_DxiDI8hZ();
|
|
80448
|
+
var require_composition_sources = require_composition_sources_DBcOVpGn();
|
|
80378
80449
|
var zod = require_zod();
|
|
80379
80450
|
function isRecord$2(value) {
|
|
80380
80451
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
@@ -84184,7 +84255,7 @@ var require_console_logging = __commonJS({
|
|
|
84184
84255
|
[Symbol.toStringTag]: { value: "Module" }
|
|
84185
84256
|
});
|
|
84186
84257
|
require_chunk_Cek0wNdY();
|
|
84187
|
-
var require_dist10 =
|
|
84258
|
+
var require_dist10 = require_dist_DxiDI8hZ();
|
|
84188
84259
|
var require_formatter = require_formatter_DqAKDlvN();
|
|
84189
84260
|
var LEVEL_RANK = {
|
|
84190
84261
|
debug: 0,
|
|
@@ -88253,8 +88324,8 @@ var require_core_blocks_addon = __commonJS({
|
|
|
88253
88324
|
"use strict";
|
|
88254
88325
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
88255
88326
|
var require_chunk = require_chunk_Cek0wNdY();
|
|
88256
|
-
var require_dist10 =
|
|
88257
|
-
var require_composition_sources =
|
|
88327
|
+
var require_dist10 = require_dist_DxiDI8hZ();
|
|
88328
|
+
var require_composition_sources = require_composition_sources_DBcOVpGn();
|
|
88258
88329
|
var node_crypto = __require("crypto");
|
|
88259
88330
|
var _camstack_types_node = require_node();
|
|
88260
88331
|
var node_fs_promises = __require("fs/promises");
|
|
@@ -90126,11 +90197,11 @@ var require_core_blocks = __commonJS({
|
|
|
90126
90197
|
}
|
|
90127
90198
|
});
|
|
90128
90199
|
|
|
90129
|
-
// ../system/dist/retired-settings-keys-
|
|
90130
|
-
var
|
|
90131
|
-
"../system/dist/retired-settings-keys-
|
|
90200
|
+
// ../system/dist/retired-settings-keys-Cl1tnkmq.js
|
|
90201
|
+
var require_retired_settings_keys_Cl1tnkmq = __commonJS({
|
|
90202
|
+
"../system/dist/retired-settings-keys-Cl1tnkmq.js"(exports) {
|
|
90132
90203
|
"use strict";
|
|
90133
|
-
var require_dist10 =
|
|
90204
|
+
var require_dist10 = require_dist_DxiDI8hZ();
|
|
90134
90205
|
function settingsStoreIsAuthoritativeHere(env) {
|
|
90135
90206
|
const raw = (env["CAMSTACK_ROLE"] ?? "").trim().toLowerCase();
|
|
90136
90207
|
return raw === "" || raw === "hub";
|
|
@@ -90419,8 +90490,8 @@ var require_device_manager_addon = __commonJS({
|
|
|
90419
90490
|
[Symbol.toStringTag]: { value: "Module" }
|
|
90420
90491
|
});
|
|
90421
90492
|
require_chunk_Cek0wNdY();
|
|
90422
|
-
var require_dist10 =
|
|
90423
|
-
var require_retired_settings_keys =
|
|
90493
|
+
var require_dist10 = require_dist_DxiDI8hZ();
|
|
90494
|
+
var require_retired_settings_keys = require_retired_settings_keys_Cl1tnkmq();
|
|
90424
90495
|
var zod = require_zod();
|
|
90425
90496
|
var node_crypto = __require("crypto");
|
|
90426
90497
|
var _camstack_types_node = require_node();
|
|
@@ -98794,7 +98865,7 @@ var require_hub_forwarder = __commonJS({
|
|
|
98794
98865
|
[Symbol.toStringTag]: { value: "Module" }
|
|
98795
98866
|
});
|
|
98796
98867
|
require_chunk_Cek0wNdY();
|
|
98797
|
-
var require_dist10 =
|
|
98868
|
+
var require_dist10 = require_dist_DxiDI8hZ();
|
|
98798
98869
|
var require_formatter = require_formatter_DqAKDlvN();
|
|
98799
98870
|
var DEFAULT_OUTBOUND_BUFFER_SIZE = 500;
|
|
98800
98871
|
var HubForwarderDestination = class {
|
|
@@ -98931,7 +99002,7 @@ var require_liveness_monitor_addon = __commonJS({
|
|
|
98931
99002
|
"use strict";
|
|
98932
99003
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
98933
99004
|
require_chunk_Cek0wNdY();
|
|
98934
|
-
var require_dist10 =
|
|
99005
|
+
var require_dist10 = require_dist_DxiDI8hZ();
|
|
98935
99006
|
var NO_DEVICES = "liveness:no-devices";
|
|
98936
99007
|
var ALL_OFFLINE = "liveness:all-devices-offline";
|
|
98937
99008
|
var NO_FOOTAGE_PREFIX = "liveness:no-footage:";
|
|
@@ -99138,12 +99209,11 @@ var require_liveness_monitor = __commonJS({
|
|
|
99138
99209
|
}
|
|
99139
99210
|
});
|
|
99140
99211
|
|
|
99141
|
-
// ../system/dist/
|
|
99142
|
-
var
|
|
99143
|
-
"../system/dist/
|
|
99212
|
+
// ../system/dist/safe-buffer-D3aoa-7X.js
|
|
99213
|
+
var require_safe_buffer_D3aoa_7X = __commonJS({
|
|
99214
|
+
"../system/dist/safe-buffer-D3aoa-7X.js"(exports) {
|
|
99144
99215
|
"use strict";
|
|
99145
|
-
var
|
|
99146
|
-
var require_safe_buffer4 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports2, module2) => {
|
|
99216
|
+
var require_safe_buffer4 = /* @__PURE__ */ require_chunk_Cek0wNdY().__commonJSMin(((exports2, module2) => {
|
|
99147
99217
|
var buffer = __require("buffer");
|
|
99148
99218
|
var Buffer2 = buffer.Buffer;
|
|
99149
99219
|
function copyProps(src, dst) {
|
|
@@ -99180,7 +99250,20 @@ var require_ms_t68_FaqE = __commonJS({
|
|
|
99180
99250
|
return buffer.SlowBuffer(size);
|
|
99181
99251
|
};
|
|
99182
99252
|
}));
|
|
99183
|
-
|
|
99253
|
+
Object.defineProperty(exports, "require_safe_buffer", {
|
|
99254
|
+
enumerable: true,
|
|
99255
|
+
get: function() {
|
|
99256
|
+
return require_safe_buffer4;
|
|
99257
|
+
}
|
|
99258
|
+
});
|
|
99259
|
+
}
|
|
99260
|
+
});
|
|
99261
|
+
|
|
99262
|
+
// ../system/dist/ms-LB3giGoU.js
|
|
99263
|
+
var require_ms_LB3giGoU = __commonJS({
|
|
99264
|
+
"../system/dist/ms-LB3giGoU.js"(exports) {
|
|
99265
|
+
"use strict";
|
|
99266
|
+
var require_ms4 = /* @__PURE__ */ require_chunk_Cek0wNdY().__commonJSMin(((exports2, module2) => {
|
|
99184
99267
|
var s = 1e3;
|
|
99185
99268
|
var m = s * 60;
|
|
99186
99269
|
var h = m * 60;
|
|
@@ -99270,12 +99353,6 @@ var require_ms_t68_FaqE = __commonJS({
|
|
|
99270
99353
|
return require_ms4;
|
|
99271
99354
|
}
|
|
99272
99355
|
});
|
|
99273
|
-
Object.defineProperty(exports, "require_safe_buffer", {
|
|
99274
|
-
enumerable: true,
|
|
99275
|
-
get: function() {
|
|
99276
|
-
return require_safe_buffer4;
|
|
99277
|
-
}
|
|
99278
|
-
});
|
|
99279
99356
|
}
|
|
99280
99357
|
});
|
|
99281
99358
|
|
|
@@ -99288,9 +99365,10 @@ var require_local_auth_addon = __commonJS({
|
|
|
99288
99365
|
[Symbol.toStringTag]: { value: "Module" }
|
|
99289
99366
|
});
|
|
99290
99367
|
var require_chunk = require_chunk_Cek0wNdY();
|
|
99291
|
-
var require_dist10 =
|
|
99292
|
-
var
|
|
99293
|
-
var
|
|
99368
|
+
var require_dist10 = require_dist_DxiDI8hZ();
|
|
99369
|
+
var require_safe_buffer$1 = require_safe_buffer_D3aoa_7X();
|
|
99370
|
+
var require_ms$1 = require_ms_LB3giGoU();
|
|
99371
|
+
var require_jwt_signing_key = require_jwt_signing_key_CsC_FxSm();
|
|
99294
99372
|
var node_crypto = __require("crypto");
|
|
99295
99373
|
node_crypto = require_chunk.__toESM(node_crypto);
|
|
99296
99374
|
var crypto$1 = __require("crypto");
|
|
@@ -100951,7 +101029,7 @@ var require_local_auth_addon = __commonJS({
|
|
|
100951
101029
|
}, progressCallback);
|
|
100952
101030
|
}
|
|
100953
101031
|
var require_data_stream = /* @__PURE__ */ require_chunk.__commonJSMin(((exports2, module2) => {
|
|
100954
|
-
var Buffer2 =
|
|
101032
|
+
var Buffer2 = require_safe_buffer$1.require_safe_buffer().Buffer;
|
|
100955
101033
|
var Stream$2 = __require("stream");
|
|
100956
101034
|
var util$3 = __require("util");
|
|
100957
101035
|
function DataStream(data) {
|
|
@@ -101010,7 +101088,7 @@ var require_local_auth_addon = __commonJS({
|
|
|
101010
101088
|
module2.exports = getParamBytesForAlg;
|
|
101011
101089
|
}));
|
|
101012
101090
|
var require_ecdsa_sig_formatter = /* @__PURE__ */ require_chunk.__commonJSMin(((exports2, module2) => {
|
|
101013
|
-
var Buffer2 =
|
|
101091
|
+
var Buffer2 = require_safe_buffer$1.require_safe_buffer().Buffer;
|
|
101014
101092
|
var getParamBytesForAlg = require_param_bytes_for_alg();
|
|
101015
101093
|
var MAX_OCTET = 128, CLASS_UNIVERSAL = 0, PRIMITIVE_BIT = 32, TAG_SEQ = 16, TAG_INT = 2, ENCODED_TAG_SEQ = TAG_SEQ | PRIMITIVE_BIT | CLASS_UNIVERSAL << 6, ENCODED_TAG_INT = TAG_INT | CLASS_UNIVERSAL << 6;
|
|
101016
101094
|
function base64Url(base64) {
|
|
@@ -101123,7 +101201,7 @@ var require_local_auth_addon = __commonJS({
|
|
|
101123
101201
|
};
|
|
101124
101202
|
}));
|
|
101125
101203
|
var require_jwa = /* @__PURE__ */ require_chunk.__commonJSMin(((exports2, module2) => {
|
|
101126
|
-
var Buffer2 =
|
|
101204
|
+
var Buffer2 = require_safe_buffer$1.require_safe_buffer().Buffer;
|
|
101127
101205
|
var crypto$2 = __require("crypto");
|
|
101128
101206
|
var formatEcdsa = require_ecdsa_sig_formatter();
|
|
101129
101207
|
var util$2 = __require("util");
|
|
@@ -101305,7 +101383,7 @@ var require_local_auth_addon = __commonJS({
|
|
|
101305
101383
|
};
|
|
101306
101384
|
}));
|
|
101307
101385
|
var require_sign_stream = /* @__PURE__ */ require_chunk.__commonJSMin(((exports2, module2) => {
|
|
101308
|
-
var Buffer2 =
|
|
101386
|
+
var Buffer2 = require_safe_buffer$1.require_safe_buffer().Buffer;
|
|
101309
101387
|
var DataStream = require_data_stream();
|
|
101310
101388
|
var jwa = require_jwa();
|
|
101311
101389
|
var Stream$1 = __require("stream");
|
|
@@ -101372,7 +101450,7 @@ var require_local_auth_addon = __commonJS({
|
|
|
101372
101450
|
module2.exports = SignStream;
|
|
101373
101451
|
}));
|
|
101374
101452
|
var require_verify_stream = /* @__PURE__ */ require_chunk.__commonJSMin(((exports2, module2) => {
|
|
101375
|
-
var Buffer2 =
|
|
101453
|
+
var Buffer2 = require_safe_buffer$1.require_safe_buffer().Buffer;
|
|
101376
101454
|
var DataStream = require_data_stream();
|
|
101377
101455
|
var jwa = require_jwa();
|
|
101378
101456
|
var Stream = __require("stream");
|
|
@@ -104086,11 +104164,20 @@ var require_local_auth_addon = __commonJS({
|
|
|
104086
104164
|
}
|
|
104087
104165
|
return false;
|
|
104088
104166
|
}
|
|
104167
|
+
/**
|
|
104168
|
+
* Delete the token row. `true` when a row was removed; `false` when the id
|
|
104169
|
+
* was already gone (unknown or previously revoked).
|
|
104170
|
+
*/
|
|
104089
104171
|
async revoke(tokenId) {
|
|
104172
|
+
if ((await this.store.query.query({
|
|
104173
|
+
collection: TOKENS_COLLECTION,
|
|
104174
|
+
filter: { where: { id: tokenId } }
|
|
104175
|
+
})).length === 0) return false;
|
|
104090
104176
|
await this.store.delete.mutate({
|
|
104091
104177
|
collection: TOKENS_COLLECTION,
|
|
104092
104178
|
key: tokenId
|
|
104093
104179
|
});
|
|
104180
|
+
return true;
|
|
104094
104181
|
}
|
|
104095
104182
|
async listForUser(userId) {
|
|
104096
104183
|
return (await this.store.query.query({
|
|
@@ -104782,10 +104869,11 @@ var require_local_auth_addon = __commonJS({
|
|
|
104782
104869
|
var MAX_LIST = 500;
|
|
104783
104870
|
function parseRecord(data) {
|
|
104784
104871
|
const id = data["id"];
|
|
104785
|
-
const
|
|
104872
|
+
const rawAt = data["at"];
|
|
104873
|
+
const at = typeof rawAt === "number" ? rawAt : typeof rawAt === "string" && rawAt.trim() !== "" && Number.isFinite(Number(rawAt)) ? Number(rawAt) : null;
|
|
104786
104874
|
const action = data["action"];
|
|
104787
104875
|
const known = AUTH_AUDIT_ACTIONS.find((a2) => a2 === action);
|
|
104788
|
-
if (typeof id !== "string" ||
|
|
104876
|
+
if (typeof id !== "string" || at === null || known === void 0) return null;
|
|
104789
104877
|
let detail;
|
|
104790
104878
|
if (typeof data["detail"] === "string") try {
|
|
104791
104879
|
const parsed = JSON.parse(data["detail"]);
|
|
@@ -107655,6 +107743,19 @@ var require_local_auth_addon = __commonJS({
|
|
|
107655
107743
|
return true;
|
|
107656
107744
|
}
|
|
107657
107745
|
/**
|
|
107746
|
+
* Delete one session row. Used by hub bulk revoke when the link is already
|
|
107747
|
+
* revoked ("Remove revoked"): absence fails closed the same way as a
|
|
107748
|
+
* revoked row, so dropping it only clears the list.
|
|
107749
|
+
*/
|
|
107750
|
+
async remove(id) {
|
|
107751
|
+
if (await this.getById(id) === null) return false;
|
|
107752
|
+
await this.store.delete.mutate({
|
|
107753
|
+
collection: SESSIONS_COLLECTION,
|
|
107754
|
+
key: id
|
|
107755
|
+
});
|
|
107756
|
+
return true;
|
|
107757
|
+
}
|
|
107758
|
+
/**
|
|
107658
107759
|
* Delete sessions revoked longer ago than `horizonMs`.
|
|
107659
107760
|
*
|
|
107660
107761
|
* Safe because an ABSENT session already fails closed exactly like a revoked
|
|
@@ -107885,7 +107986,7 @@ var require_local_auth_addon = __commonJS({
|
|
|
107885
107986
|
},
|
|
107886
107987
|
revokeScopedToken: async (input) => {
|
|
107887
107988
|
if (!this.scopedTokenManager) throw new Error("Scoped token management not available");
|
|
107888
|
-
await this.scopedTokenManager.revoke(input.id);
|
|
107989
|
+
if (!await this.scopedTokenManager.revoke(input.id)) throw new Error(`Scoped token not found: ${input.id}`);
|
|
107889
107990
|
return { success: true };
|
|
107890
107991
|
},
|
|
107891
107992
|
validateScopedToken: async (input) => {
|
|
@@ -108017,6 +108118,14 @@ var require_local_auth_addon = __commonJS({
|
|
|
108017
108118
|
list: async () => this.adminTokens === null ? [] : this.adminTokens.list(),
|
|
108018
108119
|
revoke: async (id) => this.adminTokens === null ? false : this.adminTokens.revoke(id)
|
|
108019
108120
|
},
|
|
108121
|
+
scopedTokens: { revoke: async (id) => this.scopedTokenManager === null ? false : this.scopedTokenManager.revoke(id) },
|
|
108122
|
+
oauthSessions: { revoke: async (id) => {
|
|
108123
|
+
if (this.oauthSessionManager === null) return false;
|
|
108124
|
+
const session = await this.oauthSessionManager.getById(id);
|
|
108125
|
+
if (session === null) return false;
|
|
108126
|
+
if (session.revokedAt !== null) return this.oauthSessionManager.remove(id);
|
|
108127
|
+
return this.oauthSessionManager.markRevoked(id);
|
|
108128
|
+
} },
|
|
108020
108129
|
audit: {
|
|
108021
108130
|
record: async (event) => {
|
|
108022
108131
|
await this.auditLog?.record(event);
|
|
@@ -108155,7 +108264,7 @@ var require_loki_logging = __commonJS({
|
|
|
108155
108264
|
[Symbol.toStringTag]: { value: "Module" }
|
|
108156
108265
|
});
|
|
108157
108266
|
require_chunk_Cek0wNdY();
|
|
108158
|
-
var require_dist10 =
|
|
108267
|
+
var require_dist10 = require_dist_DxiDI8hZ();
|
|
108159
108268
|
function sanitizeLabelName(raw) {
|
|
108160
108269
|
const replaced = raw.replaceAll(/[^a-zA-Z0-9_]/g, "_");
|
|
108161
108270
|
return /^[a-zA-Z_]/.test(replaced) ? replaced : `_${replaced}`;
|
|
@@ -108920,7 +109029,7 @@ var require_native_metrics_addon = __commonJS({
|
|
|
108920
109029
|
[Symbol.toStringTag]: { value: "Module" }
|
|
108921
109030
|
});
|
|
108922
109031
|
var require_chunk = require_chunk_Cek0wNdY();
|
|
108923
|
-
var require_dist10 =
|
|
109032
|
+
var require_dist10 = require_dist_DxiDI8hZ();
|
|
108924
109033
|
var require_proc_stat = require_proc_stat_DL_WUOhl();
|
|
108925
109034
|
var node_fs_promises = __require("fs/promises");
|
|
108926
109035
|
var node_os = __require("os");
|
|
@@ -111798,7 +111907,7 @@ var require_filesystem_storage_addon = __commonJS({
|
|
|
111798
111907
|
[Symbol.toStringTag]: { value: "Module" }
|
|
111799
111908
|
});
|
|
111800
111909
|
var require_chunk = require_chunk_Cek0wNdY();
|
|
111801
|
-
var require_dist10 =
|
|
111910
|
+
var require_dist10 = require_dist_DxiDI8hZ();
|
|
111802
111911
|
var node_crypto = __require("crypto");
|
|
111803
111912
|
var node_fs_promises = __require("fs/promises");
|
|
111804
111913
|
var node_path = __require("path");
|
|
@@ -113080,8 +113189,8 @@ var require_sqlite_settings_addon = __commonJS({
|
|
|
113080
113189
|
[Symbol.toStringTag]: { value: "Module" }
|
|
113081
113190
|
});
|
|
113082
113191
|
var require_chunk = require_chunk_Cek0wNdY();
|
|
113083
|
-
var require_dist10 =
|
|
113084
|
-
var require_retired_settings_keys =
|
|
113192
|
+
var require_dist10 = require_dist_DxiDI8hZ();
|
|
113193
|
+
var require_retired_settings_keys = require_retired_settings_keys_Cl1tnkmq();
|
|
113085
113194
|
var require_sqlite_snapshot_protocol = require_sqlite_snapshot_protocol_B9OndqZv();
|
|
113086
113195
|
var require_wal_checkpoint_policy = require_wal_checkpoint_policy_d2z2qPqx();
|
|
113087
113196
|
var node_crypto = __require("crypto");
|
|
@@ -116294,7 +116403,7 @@ var require_storage_orchestrator_addon = __commonJS({
|
|
|
116294
116403
|
[Symbol.toStringTag]: { value: "Module" }
|
|
116295
116404
|
});
|
|
116296
116405
|
var require_chunk = require_chunk_Cek0wNdY();
|
|
116297
|
-
var require_dist10 =
|
|
116406
|
+
var require_dist10 = require_dist_DxiDI8hZ();
|
|
116298
116407
|
var require_hub_cap_forward = require_hub_cap_forward_W8oEm4ME();
|
|
116299
116408
|
var zod = require_zod();
|
|
116300
116409
|
var node_crypto = __require("crypto");
|
|
@@ -119018,6 +119127,62 @@ var require_storage_orchestrator_addon = __commonJS({
|
|
|
119018
119127
|
return reclaimedAny;
|
|
119019
119128
|
}
|
|
119020
119129
|
};
|
|
119130
|
+
var DEFAULT_STORAGE_LOCATION_BAND_CONFIG = {
|
|
119131
|
+
lowPercent: 15,
|
|
119132
|
+
criticalPercent: 5
|
|
119133
|
+
};
|
|
119134
|
+
function bandOf(freePercent, config) {
|
|
119135
|
+
if (freePercent === null) return {
|
|
119136
|
+
band: "critical",
|
|
119137
|
+
reason: "capacity-unreadable"
|
|
119138
|
+
};
|
|
119139
|
+
if (freePercent <= config.criticalPercent) return {
|
|
119140
|
+
band: "critical",
|
|
119141
|
+
reason: "free-below-critical"
|
|
119142
|
+
};
|
|
119143
|
+
if (freePercent <= config.lowPercent) return {
|
|
119144
|
+
band: "low",
|
|
119145
|
+
reason: "free-below-warn"
|
|
119146
|
+
};
|
|
119147
|
+
return {
|
|
119148
|
+
band: "ok",
|
|
119149
|
+
reason: "free-ok"
|
|
119150
|
+
};
|
|
119151
|
+
}
|
|
119152
|
+
var StorageLocationBandMonitor = class {
|
|
119153
|
+
config;
|
|
119154
|
+
band = /* @__PURE__ */ new Map();
|
|
119155
|
+
constructor(config = DEFAULT_STORAGE_LOCATION_BAND_CONFIG) {
|
|
119156
|
+
this.config = config;
|
|
119157
|
+
}
|
|
119158
|
+
/**
|
|
119159
|
+
* Observe one sweep of managed locations. Locations missing from `samples`
|
|
119160
|
+
* drop their episode without emitting `ok` (disabled / removed).
|
|
119161
|
+
*/
|
|
119162
|
+
observe(samples) {
|
|
119163
|
+
const seen = /* @__PURE__ */ new Set();
|
|
119164
|
+
const out = [];
|
|
119165
|
+
for (const sample of samples) {
|
|
119166
|
+
seen.add(sample.locationId);
|
|
119167
|
+
const { band, reason } = bandOf(sample.freePercent, this.config);
|
|
119168
|
+
const previous = this.band.get(sample.locationId) ?? null;
|
|
119169
|
+
if (previous === band) continue;
|
|
119170
|
+
this.band.set(sample.locationId, band);
|
|
119171
|
+
if (previous === null && band === "ok") continue;
|
|
119172
|
+
out.push({
|
|
119173
|
+
locationId: sample.locationId,
|
|
119174
|
+
...sample.nodeId !== void 0 ? { nodeId: sample.nodeId } : {},
|
|
119175
|
+
...sample.locationName !== void 0 ? { locationName: sample.locationName } : {},
|
|
119176
|
+
band,
|
|
119177
|
+
freePercent: sample.freePercent,
|
|
119178
|
+
reason,
|
|
119179
|
+
previous
|
|
119180
|
+
});
|
|
119181
|
+
}
|
|
119182
|
+
for (const id of [...this.band.keys()]) if (!seen.has(id)) this.band.delete(id);
|
|
119183
|
+
return out;
|
|
119184
|
+
}
|
|
119185
|
+
};
|
|
119021
119186
|
var STORAGE_PROVIDER_CAP_NAME = "storage-provider";
|
|
119022
119187
|
var DATA_STORE_PROVIDER_CAP_NAME = "data-store-provider";
|
|
119023
119188
|
var STORAGE_EVICTABLE_CAP_NAME = "storage-evictable";
|
|
@@ -119028,6 +119193,7 @@ var require_storage_orchestrator_addon = __commonJS({
|
|
|
119028
119193
|
var StorageOrchestratorAddon = class extends require_dist10.BaseAddon {
|
|
119029
119194
|
service = null;
|
|
119030
119195
|
pressureManager = null;
|
|
119196
|
+
locationBandMonitor = new StorageLocationBandMonitor();
|
|
119031
119197
|
/**
|
|
119032
119198
|
* How much of each location CamStack itself holds (D388).
|
|
119033
119199
|
*
|
|
@@ -119531,6 +119697,7 @@ var require_storage_orchestrator_addon = __commonJS({
|
|
|
119531
119697
|
this.pressureSweepInFlight = true;
|
|
119532
119698
|
try {
|
|
119533
119699
|
await this.pressureManager.sweep();
|
|
119700
|
+
await this.emitLocationBandEvents();
|
|
119534
119701
|
} catch (err) {
|
|
119535
119702
|
this.ctxIfReady?.logger.warn("storage pressure sweep failed", { meta: { error: err instanceof Error ? err.message : String(err) } });
|
|
119536
119703
|
} finally {
|
|
@@ -119538,6 +119705,57 @@ var require_storage_orchestrator_addon = __commonJS({
|
|
|
119538
119705
|
}
|
|
119539
119706
|
}
|
|
119540
119707
|
/**
|
|
119708
|
+
* Sample free space for every managed location and emit NC band edges.
|
|
119709
|
+
* A failed capacity read stays `null` (critical) — never folded to 0 (D393).
|
|
119710
|
+
*/
|
|
119711
|
+
async emitLocationBandEvents() {
|
|
119712
|
+
const svc = this.service;
|
|
119713
|
+
const ctx = this.ctxIfReady;
|
|
119714
|
+
if (!svc || !ctx) return;
|
|
119715
|
+
const thresholds = await this.resolveLocationThresholds();
|
|
119716
|
+
const byId = new Map(svc.listLocations().map((loc) => [loc.id, loc]));
|
|
119717
|
+
const samples = await Promise.all([...thresholds.keys()].map(async (locationId) => {
|
|
119718
|
+
const loc = byId.get(locationId);
|
|
119719
|
+
if (loc === void 0 || !require_dist10.mayReadLocation(loc)) return {
|
|
119720
|
+
locationId,
|
|
119721
|
+
freePercent: null
|
|
119722
|
+
};
|
|
119723
|
+
const capacity = await this.volumeCapacityOf(locationId).catch(() => null);
|
|
119724
|
+
const freePercent = capacity === null ? null : freePercentOf(capacity);
|
|
119725
|
+
return {
|
|
119726
|
+
locationId,
|
|
119727
|
+
nodeId: loc.nodeId,
|
|
119728
|
+
locationName: loc.displayName,
|
|
119729
|
+
freePercent
|
|
119730
|
+
};
|
|
119731
|
+
}));
|
|
119732
|
+
for (const edge of this.locationBandMonitor.observe(samples)) {
|
|
119733
|
+
const category = edge.band === "low" ? require_dist10.EventCategory.StorageLocationLow : edge.band === "critical" ? require_dist10.EventCategory.StorageLocationCritical : require_dist10.EventCategory.StorageLocationOk;
|
|
119734
|
+
ctx.logger.info("storage: location band changed", { meta: {
|
|
119735
|
+
locationId: edge.locationId,
|
|
119736
|
+
band: edge.band,
|
|
119737
|
+
freePercent: edge.freePercent,
|
|
119738
|
+
reason: edge.reason
|
|
119739
|
+
} });
|
|
119740
|
+
ctx.eventBus.emit({
|
|
119741
|
+
id: (0, node_crypto.randomUUID)(),
|
|
119742
|
+
timestamp: /* @__PURE__ */ new Date(),
|
|
119743
|
+
source: {
|
|
119744
|
+
type: "addon",
|
|
119745
|
+
id: this.ctx.id
|
|
119746
|
+
},
|
|
119747
|
+
category,
|
|
119748
|
+
data: {
|
|
119749
|
+
locationId: edge.locationId,
|
|
119750
|
+
...edge.nodeId !== void 0 ? { nodeId: edge.nodeId } : {},
|
|
119751
|
+
...edge.locationName !== void 0 ? { locationName: edge.locationName } : {},
|
|
119752
|
+
freePercent: edge.freePercent,
|
|
119753
|
+
reason: edge.reason
|
|
119754
|
+
}
|
|
119755
|
+
});
|
|
119756
|
+
}
|
|
119757
|
+
}
|
|
119758
|
+
/**
|
|
119541
119759
|
* locationId → resolved `minFreePercent`. The policy is intrinsic to the
|
|
119542
119760
|
* location's provider (`shouldSaveDiskSpace` gates the guard, `minFreePercent`
|
|
119543
119761
|
* is the default), overridable per-location via `config.minFreePercent`.
|
|
@@ -120072,11 +120290,11 @@ var require_storage_orchestrator = __commonJS({
|
|
|
120072
120290
|
}
|
|
120073
120291
|
});
|
|
120074
120292
|
|
|
120075
|
-
// ../system/dist/constants-
|
|
120076
|
-
var
|
|
120077
|
-
"../system/dist/constants-
|
|
120293
|
+
// ../system/dist/constants-C4jZO_qO.js
|
|
120294
|
+
var require_constants_C4jZO_qO = __commonJS({
|
|
120295
|
+
"../system/dist/constants-C4jZO_qO.js"(exports) {
|
|
120078
120296
|
"use strict";
|
|
120079
|
-
var require_dist10 =
|
|
120297
|
+
var require_dist10 = require_dist_DxiDI8hZ();
|
|
120080
120298
|
var node_crypto = __require("crypto");
|
|
120081
120299
|
var CLUSTER_SECRET_REF = require_dist10.buildSecretRef({
|
|
120082
120300
|
owner: "system",
|
|
@@ -120265,9 +120483,9 @@ var require_constants_Dq3Xlo3 = __commonJS({
|
|
|
120265
120483
|
}
|
|
120266
120484
|
});
|
|
120267
120485
|
|
|
120268
|
-
// ../system/dist/x509.es-
|
|
120269
|
-
var
|
|
120270
|
-
"../system/dist/x509.es-
|
|
120486
|
+
// ../system/dist/x509.es-Dzl0BbmG.js
|
|
120487
|
+
var require_x509_es_Dzl0BbmG = __commonJS({
|
|
120488
|
+
"../system/dist/x509.es-Dzl0BbmG.js"(exports) {
|
|
120271
120489
|
"use strict";
|
|
120272
120490
|
var require_chunk = require_chunk_Cek0wNdY();
|
|
120273
120491
|
(/* @__PURE__ */ require_chunk.__commonJSMin((() => {
|
|
@@ -120461,15 +120679,15 @@ var require_x509_es_BhTzcFhZ = __commonJS({
|
|
|
120461
120679
|
GetMetadataProvider(O, P, true).OrdinaryDefineOwnMetadata(MetadataKey, MetadataValue, O, P);
|
|
120462
120680
|
}
|
|
120463
120681
|
function OrdinaryMetadataKeys(O, P) {
|
|
120464
|
-
var
|
|
120682
|
+
var ownKeys2 = OrdinaryOwnMetadataKeys(O, P);
|
|
120465
120683
|
var parent = OrdinaryGetPrototypeOf(O);
|
|
120466
|
-
if (parent === null) return
|
|
120684
|
+
if (parent === null) return ownKeys2;
|
|
120467
120685
|
var parentKeys = OrdinaryMetadataKeys(parent, P);
|
|
120468
|
-
if (parentKeys.length <= 0) return
|
|
120469
|
-
if (
|
|
120686
|
+
if (parentKeys.length <= 0) return ownKeys2;
|
|
120687
|
+
if (ownKeys2.length <= 0) return parentKeys;
|
|
120470
120688
|
var set = new _Set();
|
|
120471
120689
|
var keys = [];
|
|
120472
|
-
for (var _i = 0, ownKeys_1 =
|
|
120690
|
+
for (var _i = 0, ownKeys_1 = ownKeys2; _i < ownKeys_1.length; _i++) {
|
|
120473
120691
|
var key = ownKeys_1[_i];
|
|
120474
120692
|
var hasKey = set.has(key);
|
|
120475
120693
|
if (!hasKey) {
|
|
@@ -125032,12 +125250,380 @@ ${values.join("\n")}` : `${blockName} :`;
|
|
|
125032
125250
|
return asn.result.toString();
|
|
125033
125251
|
}
|
|
125034
125252
|
};
|
|
125253
|
+
var tslib_es6_exports = /* @__PURE__ */ require_chunk.__exportAll({
|
|
125254
|
+
__addDisposableResource: () => __addDisposableResource,
|
|
125255
|
+
__assign: () => __assign,
|
|
125256
|
+
__asyncDelegator: () => __asyncDelegator,
|
|
125257
|
+
__asyncGenerator: () => __asyncGenerator,
|
|
125258
|
+
__asyncValues: () => __asyncValues,
|
|
125259
|
+
__await: () => __await,
|
|
125260
|
+
__awaiter: () => __awaiter$1,
|
|
125261
|
+
__classPrivateFieldGet: () => __classPrivateFieldGet,
|
|
125262
|
+
__classPrivateFieldIn: () => __classPrivateFieldIn,
|
|
125263
|
+
__classPrivateFieldSet: () => __classPrivateFieldSet,
|
|
125264
|
+
__createBinding: () => __createBinding,
|
|
125265
|
+
__decorate: () => __decorate,
|
|
125266
|
+
__disposeResources: () => __disposeResources,
|
|
125267
|
+
__esDecorate: () => __esDecorate,
|
|
125268
|
+
__exportStar: () => __exportStar,
|
|
125269
|
+
__extends: () => __extends$1,
|
|
125270
|
+
__generator: () => __generator$1,
|
|
125271
|
+
__importDefault: () => __importDefault,
|
|
125272
|
+
__importStar: () => __importStar,
|
|
125273
|
+
__makeTemplateObject: () => __makeTemplateObject,
|
|
125274
|
+
__metadata: () => __metadata,
|
|
125275
|
+
__param: () => __param,
|
|
125276
|
+
__propKey: () => __propKey,
|
|
125277
|
+
__read: () => __read$1,
|
|
125278
|
+
__rest: () => __rest,
|
|
125279
|
+
__rewriteRelativeImportExtension: () => __rewriteRelativeImportExtension,
|
|
125280
|
+
__runInitializers: () => __runInitializers,
|
|
125281
|
+
__setFunctionName: () => __setFunctionName,
|
|
125282
|
+
__spread: () => __spread$1,
|
|
125283
|
+
__spreadArray: () => __spreadArray4,
|
|
125284
|
+
__spreadArrays: () => __spreadArrays,
|
|
125285
|
+
__values: () => __values$1,
|
|
125286
|
+
default: () => tslib_es6_default
|
|
125287
|
+
});
|
|
125288
|
+
function __extends$1(d, b) {
|
|
125289
|
+
if (typeof b !== "function" && b !== null) throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
125290
|
+
extendStatics$1(d, b);
|
|
125291
|
+
function __() {
|
|
125292
|
+
this.constructor = d;
|
|
125293
|
+
}
|
|
125294
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
125295
|
+
}
|
|
125296
|
+
function __rest(s, e) {
|
|
125297
|
+
var t = {};
|
|
125298
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
125299
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function") {
|
|
125300
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
125301
|
+
}
|
|
125302
|
+
return t;
|
|
125303
|
+
}
|
|
125035
125304
|
function __decorate(decorators, target, key, desc) {
|
|
125036
125305
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
125037
125306
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
125038
125307
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
125039
125308
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
125040
125309
|
}
|
|
125310
|
+
function __param(paramIndex, decorator) {
|
|
125311
|
+
return function(target, key) {
|
|
125312
|
+
decorator(target, key, paramIndex);
|
|
125313
|
+
};
|
|
125314
|
+
}
|
|
125315
|
+
function __esDecorate(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
|
|
125316
|
+
function accept(f) {
|
|
125317
|
+
if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected");
|
|
125318
|
+
return f;
|
|
125319
|
+
}
|
|
125320
|
+
var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value";
|
|
125321
|
+
var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null;
|
|
125322
|
+
var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});
|
|
125323
|
+
var _, done = false;
|
|
125324
|
+
for (var i = decorators.length - 1; i >= 0; i--) {
|
|
125325
|
+
var context = {};
|
|
125326
|
+
for (var p in contextIn) context[p] = p === "access" ? {} : contextIn[p];
|
|
125327
|
+
for (var p in contextIn.access) context.access[p] = contextIn.access[p];
|
|
125328
|
+
context.addInitializer = function(f) {
|
|
125329
|
+
if (done) throw new TypeError("Cannot add initializers after decoration has completed");
|
|
125330
|
+
extraInitializers.push(accept(f || null));
|
|
125331
|
+
};
|
|
125332
|
+
var result = (0, decorators[i])(kind === "accessor" ? {
|
|
125333
|
+
get: descriptor.get,
|
|
125334
|
+
set: descriptor.set
|
|
125335
|
+
} : descriptor[key], context);
|
|
125336
|
+
if (kind === "accessor") {
|
|
125337
|
+
if (result === void 0) continue;
|
|
125338
|
+
if (result === null || typeof result !== "object") throw new TypeError("Object expected");
|
|
125339
|
+
if (_ = accept(result.get)) descriptor.get = _;
|
|
125340
|
+
if (_ = accept(result.set)) descriptor.set = _;
|
|
125341
|
+
if (_ = accept(result.init)) initializers.unshift(_);
|
|
125342
|
+
} else if (_ = accept(result)) if (kind === "field") initializers.unshift(_);
|
|
125343
|
+
else descriptor[key] = _;
|
|
125344
|
+
}
|
|
125345
|
+
if (target) Object.defineProperty(target, contextIn.name, descriptor);
|
|
125346
|
+
done = true;
|
|
125347
|
+
}
|
|
125348
|
+
function __runInitializers(thisArg, initializers, value) {
|
|
125349
|
+
var useValue = arguments.length > 2;
|
|
125350
|
+
for (var i = 0; i < initializers.length; i++) value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);
|
|
125351
|
+
return useValue ? value : void 0;
|
|
125352
|
+
}
|
|
125353
|
+
function __propKey(x) {
|
|
125354
|
+
return typeof x === "symbol" ? x : "".concat(x);
|
|
125355
|
+
}
|
|
125356
|
+
function __setFunctionName(f, name, prefix) {
|
|
125357
|
+
if (typeof name === "symbol") name = name.description ? "[".concat(name.description, "]") : "";
|
|
125358
|
+
return Object.defineProperty(f, "name", {
|
|
125359
|
+
configurable: true,
|
|
125360
|
+
value: prefix ? "".concat(prefix, " ", name) : name
|
|
125361
|
+
});
|
|
125362
|
+
}
|
|
125363
|
+
function __metadata(metadataKey, metadataValue) {
|
|
125364
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue);
|
|
125365
|
+
}
|
|
125366
|
+
function __awaiter$1(thisArg, _arguments, P, generator) {
|
|
125367
|
+
function adopt(value) {
|
|
125368
|
+
return value instanceof P ? value : new P(function(resolve) {
|
|
125369
|
+
resolve(value);
|
|
125370
|
+
});
|
|
125371
|
+
}
|
|
125372
|
+
return new (P || (P = Promise))(function(resolve, reject) {
|
|
125373
|
+
function fulfilled(value) {
|
|
125374
|
+
try {
|
|
125375
|
+
step(generator.next(value));
|
|
125376
|
+
} catch (e) {
|
|
125377
|
+
reject(e);
|
|
125378
|
+
}
|
|
125379
|
+
}
|
|
125380
|
+
function rejected(value) {
|
|
125381
|
+
try {
|
|
125382
|
+
step(generator["throw"](value));
|
|
125383
|
+
} catch (e) {
|
|
125384
|
+
reject(e);
|
|
125385
|
+
}
|
|
125386
|
+
}
|
|
125387
|
+
function step(result) {
|
|
125388
|
+
result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);
|
|
125389
|
+
}
|
|
125390
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
125391
|
+
});
|
|
125392
|
+
}
|
|
125393
|
+
function __generator$1(thisArg, body) {
|
|
125394
|
+
var _ = {
|
|
125395
|
+
label: 0,
|
|
125396
|
+
sent: function() {
|
|
125397
|
+
if (t[0] & 1) throw t[1];
|
|
125398
|
+
return t[1];
|
|
125399
|
+
},
|
|
125400
|
+
trys: [],
|
|
125401
|
+
ops: []
|
|
125402
|
+
}, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
125403
|
+
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() {
|
|
125404
|
+
return this;
|
|
125405
|
+
}), g;
|
|
125406
|
+
function verb(n) {
|
|
125407
|
+
return function(v) {
|
|
125408
|
+
return step([n, v]);
|
|
125409
|
+
};
|
|
125410
|
+
}
|
|
125411
|
+
function step(op) {
|
|
125412
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
125413
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
125414
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
125415
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
125416
|
+
switch (op[0]) {
|
|
125417
|
+
case 0:
|
|
125418
|
+
case 1:
|
|
125419
|
+
t = op;
|
|
125420
|
+
break;
|
|
125421
|
+
case 4:
|
|
125422
|
+
_.label++;
|
|
125423
|
+
return {
|
|
125424
|
+
value: op[1],
|
|
125425
|
+
done: false
|
|
125426
|
+
};
|
|
125427
|
+
case 5:
|
|
125428
|
+
_.label++;
|
|
125429
|
+
y = op[1];
|
|
125430
|
+
op = [0];
|
|
125431
|
+
continue;
|
|
125432
|
+
case 7:
|
|
125433
|
+
op = _.ops.pop();
|
|
125434
|
+
_.trys.pop();
|
|
125435
|
+
continue;
|
|
125436
|
+
default:
|
|
125437
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
|
|
125438
|
+
_ = 0;
|
|
125439
|
+
continue;
|
|
125440
|
+
}
|
|
125441
|
+
if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
|
|
125442
|
+
_.label = op[1];
|
|
125443
|
+
break;
|
|
125444
|
+
}
|
|
125445
|
+
if (op[0] === 6 && _.label < t[1]) {
|
|
125446
|
+
_.label = t[1];
|
|
125447
|
+
t = op;
|
|
125448
|
+
break;
|
|
125449
|
+
}
|
|
125450
|
+
if (t && _.label < t[2]) {
|
|
125451
|
+
_.label = t[2];
|
|
125452
|
+
_.ops.push(op);
|
|
125453
|
+
break;
|
|
125454
|
+
}
|
|
125455
|
+
if (t[2]) _.ops.pop();
|
|
125456
|
+
_.trys.pop();
|
|
125457
|
+
continue;
|
|
125458
|
+
}
|
|
125459
|
+
op = body.call(thisArg, _);
|
|
125460
|
+
} catch (e) {
|
|
125461
|
+
op = [6, e];
|
|
125462
|
+
y = 0;
|
|
125463
|
+
} finally {
|
|
125464
|
+
f = t = 0;
|
|
125465
|
+
}
|
|
125466
|
+
if (op[0] & 5) throw op[1];
|
|
125467
|
+
return {
|
|
125468
|
+
value: op[0] ? op[1] : void 0,
|
|
125469
|
+
done: true
|
|
125470
|
+
};
|
|
125471
|
+
}
|
|
125472
|
+
}
|
|
125473
|
+
function __exportStar(m, o) {
|
|
125474
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);
|
|
125475
|
+
}
|
|
125476
|
+
function __values$1(o) {
|
|
125477
|
+
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
125478
|
+
if (m) return m.call(o);
|
|
125479
|
+
if (o && typeof o.length === "number") return { next: function() {
|
|
125480
|
+
if (o && i >= o.length) o = void 0;
|
|
125481
|
+
return {
|
|
125482
|
+
value: o && o[i++],
|
|
125483
|
+
done: !o
|
|
125484
|
+
};
|
|
125485
|
+
} };
|
|
125486
|
+
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
125487
|
+
}
|
|
125488
|
+
function __read$1(o, n) {
|
|
125489
|
+
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
125490
|
+
if (!m) return o;
|
|
125491
|
+
var i = m.call(o), r, ar = [], e;
|
|
125492
|
+
try {
|
|
125493
|
+
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
125494
|
+
} catch (error) {
|
|
125495
|
+
e = { error };
|
|
125496
|
+
} finally {
|
|
125497
|
+
try {
|
|
125498
|
+
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
125499
|
+
} finally {
|
|
125500
|
+
if (e) throw e.error;
|
|
125501
|
+
}
|
|
125502
|
+
}
|
|
125503
|
+
return ar;
|
|
125504
|
+
}
|
|
125505
|
+
function __spread$1() {
|
|
125506
|
+
for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read$1(arguments[i]));
|
|
125507
|
+
return ar;
|
|
125508
|
+
}
|
|
125509
|
+
function __spreadArrays() {
|
|
125510
|
+
for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
|
|
125511
|
+
for (var r = Array(s), k = 0, i = 0; i < il; i++) for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++) r[k] = a[j];
|
|
125512
|
+
return r;
|
|
125513
|
+
}
|
|
125514
|
+
function __spreadArray4(to, from, pack) {
|
|
125515
|
+
if (pack || arguments.length === 2) {
|
|
125516
|
+
for (var i = 0, l = from.length, ar; i < l; i++) if (ar || !(i in from)) {
|
|
125517
|
+
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
125518
|
+
ar[i] = from[i];
|
|
125519
|
+
}
|
|
125520
|
+
}
|
|
125521
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
|
125522
|
+
}
|
|
125523
|
+
function __await(v) {
|
|
125524
|
+
return this instanceof __await ? (this.v = v, this) : new __await(v);
|
|
125525
|
+
}
|
|
125526
|
+
function __asyncGenerator(thisArg, _arguments, generator) {
|
|
125527
|
+
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
125528
|
+
var g = generator.apply(thisArg, _arguments || []), i, q = [];
|
|
125529
|
+
return i = Object.create((typeof AsyncIterator === "function" ? AsyncIterator : Object).prototype), verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function() {
|
|
125530
|
+
return this;
|
|
125531
|
+
}, i;
|
|
125532
|
+
function awaitReturn(f) {
|
|
125533
|
+
return function(v) {
|
|
125534
|
+
return Promise.resolve(v).then(f, reject);
|
|
125535
|
+
};
|
|
125536
|
+
}
|
|
125537
|
+
function verb(n, f) {
|
|
125538
|
+
if (g[n]) {
|
|
125539
|
+
i[n] = function(v) {
|
|
125540
|
+
return new Promise(function(a, b) {
|
|
125541
|
+
q.push([
|
|
125542
|
+
n,
|
|
125543
|
+
v,
|
|
125544
|
+
a,
|
|
125545
|
+
b
|
|
125546
|
+
]) > 1 || resume(n, v);
|
|
125547
|
+
});
|
|
125548
|
+
};
|
|
125549
|
+
if (f) i[n] = f(i[n]);
|
|
125550
|
+
}
|
|
125551
|
+
}
|
|
125552
|
+
function resume(n, v) {
|
|
125553
|
+
try {
|
|
125554
|
+
step(g[n](v));
|
|
125555
|
+
} catch (e) {
|
|
125556
|
+
settle(q[0][3], e);
|
|
125557
|
+
}
|
|
125558
|
+
}
|
|
125559
|
+
function step(r) {
|
|
125560
|
+
r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r);
|
|
125561
|
+
}
|
|
125562
|
+
function fulfill(value) {
|
|
125563
|
+
resume("next", value);
|
|
125564
|
+
}
|
|
125565
|
+
function reject(value) {
|
|
125566
|
+
resume("throw", value);
|
|
125567
|
+
}
|
|
125568
|
+
function settle(f, v) {
|
|
125569
|
+
if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]);
|
|
125570
|
+
}
|
|
125571
|
+
}
|
|
125572
|
+
function __asyncDelegator(o) {
|
|
125573
|
+
var i, p;
|
|
125574
|
+
return i = {}, verb("next"), verb("throw", function(e) {
|
|
125575
|
+
throw e;
|
|
125576
|
+
}), verb("return"), i[Symbol.iterator] = function() {
|
|
125577
|
+
return this;
|
|
125578
|
+
}, i;
|
|
125579
|
+
function verb(n, f) {
|
|
125580
|
+
i[n] = o[n] ? function(v) {
|
|
125581
|
+
return (p = !p) ? {
|
|
125582
|
+
value: __await(o[n](v)),
|
|
125583
|
+
done: false
|
|
125584
|
+
} : f ? f(v) : v;
|
|
125585
|
+
} : f;
|
|
125586
|
+
}
|
|
125587
|
+
}
|
|
125588
|
+
function __asyncValues(o) {
|
|
125589
|
+
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
125590
|
+
var m = o[Symbol.asyncIterator], i;
|
|
125591
|
+
return m ? m.call(o) : (o = typeof __values$1 === "function" ? __values$1(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function() {
|
|
125592
|
+
return this;
|
|
125593
|
+
}, i);
|
|
125594
|
+
function verb(n) {
|
|
125595
|
+
i[n] = o[n] && function(v) {
|
|
125596
|
+
return new Promise(function(resolve, reject) {
|
|
125597
|
+
v = o[n](v), settle(resolve, reject, v.done, v.value);
|
|
125598
|
+
});
|
|
125599
|
+
};
|
|
125600
|
+
}
|
|
125601
|
+
function settle(resolve, reject, d, v) {
|
|
125602
|
+
Promise.resolve(v).then(function(v2) {
|
|
125603
|
+
resolve({
|
|
125604
|
+
value: v2,
|
|
125605
|
+
done: d
|
|
125606
|
+
});
|
|
125607
|
+
}, reject);
|
|
125608
|
+
}
|
|
125609
|
+
}
|
|
125610
|
+
function __makeTemplateObject(cooked, raw) {
|
|
125611
|
+
if (Object.defineProperty) Object.defineProperty(cooked, "raw", { value: raw });
|
|
125612
|
+
else cooked.raw = raw;
|
|
125613
|
+
return cooked;
|
|
125614
|
+
}
|
|
125615
|
+
function __importStar(mod) {
|
|
125616
|
+
if (mod && mod.__esModule) return mod;
|
|
125617
|
+
var result = {};
|
|
125618
|
+
if (mod != null) {
|
|
125619
|
+
for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
125620
|
+
}
|
|
125621
|
+
__setModuleDefault(result, mod);
|
|
125622
|
+
return result;
|
|
125623
|
+
}
|
|
125624
|
+
function __importDefault(mod) {
|
|
125625
|
+
return mod && mod.__esModule ? mod : { default: mod };
|
|
125626
|
+
}
|
|
125041
125627
|
function __classPrivateFieldGet(receiver, state, kind, f) {
|
|
125042
125628
|
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
125043
125629
|
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
@@ -125049,6 +125635,165 @@ ${values.join("\n")}` : `${blockName} :`;
|
|
|
125049
125635
|
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
125050
125636
|
return kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value), value;
|
|
125051
125637
|
}
|
|
125638
|
+
function __classPrivateFieldIn(state, receiver) {
|
|
125639
|
+
if (receiver === null || typeof receiver !== "object" && typeof receiver !== "function") throw new TypeError("Cannot use 'in' operator on non-object");
|
|
125640
|
+
return typeof state === "function" ? receiver === state : state.has(receiver);
|
|
125641
|
+
}
|
|
125642
|
+
function __addDisposableResource(env, value, async) {
|
|
125643
|
+
if (value !== null && value !== void 0) {
|
|
125644
|
+
if (typeof value !== "object" && typeof value !== "function") throw new TypeError("Object expected.");
|
|
125645
|
+
var dispose, inner;
|
|
125646
|
+
if (async) {
|
|
125647
|
+
if (!Symbol.asyncDispose) throw new TypeError("Symbol.asyncDispose is not defined.");
|
|
125648
|
+
dispose = value[Symbol.asyncDispose];
|
|
125649
|
+
}
|
|
125650
|
+
if (dispose === void 0) {
|
|
125651
|
+
if (!Symbol.dispose) throw new TypeError("Symbol.dispose is not defined.");
|
|
125652
|
+
dispose = value[Symbol.dispose];
|
|
125653
|
+
if (async) inner = dispose;
|
|
125654
|
+
}
|
|
125655
|
+
if (typeof dispose !== "function") throw new TypeError("Object not disposable.");
|
|
125656
|
+
if (inner) dispose = function() {
|
|
125657
|
+
try {
|
|
125658
|
+
inner.call(this);
|
|
125659
|
+
} catch (e) {
|
|
125660
|
+
return Promise.reject(e);
|
|
125661
|
+
}
|
|
125662
|
+
};
|
|
125663
|
+
env.stack.push({
|
|
125664
|
+
value,
|
|
125665
|
+
dispose,
|
|
125666
|
+
async
|
|
125667
|
+
});
|
|
125668
|
+
} else if (async) env.stack.push({ async: true });
|
|
125669
|
+
return value;
|
|
125670
|
+
}
|
|
125671
|
+
function __disposeResources(env) {
|
|
125672
|
+
function fail(e) {
|
|
125673
|
+
env.error = env.hasError ? new _SuppressedError(e, env.error, "An error was suppressed during disposal.") : e;
|
|
125674
|
+
env.hasError = true;
|
|
125675
|
+
}
|
|
125676
|
+
var r, s = 0;
|
|
125677
|
+
function next() {
|
|
125678
|
+
while (r = env.stack.pop()) try {
|
|
125679
|
+
if (!r.async && s === 1) return s = 0, env.stack.push(r), Promise.resolve().then(next);
|
|
125680
|
+
if (r.dispose) {
|
|
125681
|
+
var result = r.dispose.call(r.value);
|
|
125682
|
+
if (r.async) return s |= 2, Promise.resolve(result).then(next, function(e) {
|
|
125683
|
+
fail(e);
|
|
125684
|
+
return next();
|
|
125685
|
+
});
|
|
125686
|
+
} else s |= 1;
|
|
125687
|
+
} catch (e) {
|
|
125688
|
+
fail(e);
|
|
125689
|
+
}
|
|
125690
|
+
if (s === 1) return env.hasError ? Promise.reject(env.error) : Promise.resolve();
|
|
125691
|
+
if (env.hasError) throw env.error;
|
|
125692
|
+
}
|
|
125693
|
+
return next();
|
|
125694
|
+
}
|
|
125695
|
+
function __rewriteRelativeImportExtension(path, preserveJsx) {
|
|
125696
|
+
if (typeof path === "string" && /^\.\.?\//.test(path)) return path.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i, function(m, tsx, d, ext, cm) {
|
|
125697
|
+
return tsx ? preserveJsx ? ".jsx" : ".js" : d && (!ext || !cm) ? m : d + ext + "." + cm.toLowerCase() + "js";
|
|
125698
|
+
});
|
|
125699
|
+
return path;
|
|
125700
|
+
}
|
|
125701
|
+
var extendStatics$1;
|
|
125702
|
+
var __assign;
|
|
125703
|
+
var __createBinding;
|
|
125704
|
+
var __setModuleDefault;
|
|
125705
|
+
var ownKeys;
|
|
125706
|
+
var _SuppressedError;
|
|
125707
|
+
var tslib_es6_default;
|
|
125708
|
+
var init_tslib_es6 = require_chunk.__esmMin((() => {
|
|
125709
|
+
extendStatics$1 = function(d, b) {
|
|
125710
|
+
extendStatics$1 = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
|
|
125711
|
+
d2.__proto__ = b2;
|
|
125712
|
+
} || function(d2, b2) {
|
|
125713
|
+
for (var p in b2) if (Object.prototype.hasOwnProperty.call(b2, p)) d2[p] = b2[p];
|
|
125714
|
+
};
|
|
125715
|
+
return extendStatics$1(d, b);
|
|
125716
|
+
};
|
|
125717
|
+
__assign = function() {
|
|
125718
|
+
__assign = Object.assign || function __assign2(t) {
|
|
125719
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
125720
|
+
s = arguments[i];
|
|
125721
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
125722
|
+
}
|
|
125723
|
+
return t;
|
|
125724
|
+
};
|
|
125725
|
+
return __assign.apply(this, arguments);
|
|
125726
|
+
};
|
|
125727
|
+
__createBinding = Object.create ? (function(o, m, k, k2) {
|
|
125728
|
+
if (k2 === void 0) k2 = k;
|
|
125729
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
125730
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) desc = {
|
|
125731
|
+
enumerable: true,
|
|
125732
|
+
get: function() {
|
|
125733
|
+
return m[k];
|
|
125734
|
+
}
|
|
125735
|
+
};
|
|
125736
|
+
Object.defineProperty(o, k2, desc);
|
|
125737
|
+
}) : (function(o, m, k, k2) {
|
|
125738
|
+
if (k2 === void 0) k2 = k;
|
|
125739
|
+
o[k2] = m[k];
|
|
125740
|
+
});
|
|
125741
|
+
__setModuleDefault = Object.create ? (function(o, v) {
|
|
125742
|
+
Object.defineProperty(o, "default", {
|
|
125743
|
+
enumerable: true,
|
|
125744
|
+
value: v
|
|
125745
|
+
});
|
|
125746
|
+
}) : function(o, v) {
|
|
125747
|
+
o["default"] = v;
|
|
125748
|
+
};
|
|
125749
|
+
ownKeys = function(o) {
|
|
125750
|
+
ownKeys = Object.getOwnPropertyNames || function(o2) {
|
|
125751
|
+
var ar = [];
|
|
125752
|
+
for (var k in o2) if (Object.prototype.hasOwnProperty.call(o2, k)) ar[ar.length] = k;
|
|
125753
|
+
return ar;
|
|
125754
|
+
};
|
|
125755
|
+
return ownKeys(o);
|
|
125756
|
+
};
|
|
125757
|
+
_SuppressedError = typeof SuppressedError === "function" ? SuppressedError : function(error, suppressed, message) {
|
|
125758
|
+
var e = new Error(message);
|
|
125759
|
+
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
125760
|
+
};
|
|
125761
|
+
tslib_es6_default = {
|
|
125762
|
+
__extends: __extends$1,
|
|
125763
|
+
__assign,
|
|
125764
|
+
__rest,
|
|
125765
|
+
__decorate,
|
|
125766
|
+
__param,
|
|
125767
|
+
__esDecorate,
|
|
125768
|
+
__runInitializers,
|
|
125769
|
+
__propKey,
|
|
125770
|
+
__setFunctionName,
|
|
125771
|
+
__metadata,
|
|
125772
|
+
__awaiter: __awaiter$1,
|
|
125773
|
+
__generator: __generator$1,
|
|
125774
|
+
__createBinding,
|
|
125775
|
+
__exportStar,
|
|
125776
|
+
__values: __values$1,
|
|
125777
|
+
__read: __read$1,
|
|
125778
|
+
__spread: __spread$1,
|
|
125779
|
+
__spreadArrays,
|
|
125780
|
+
__spreadArray: __spreadArray4,
|
|
125781
|
+
__await,
|
|
125782
|
+
__asyncGenerator,
|
|
125783
|
+
__asyncDelegator,
|
|
125784
|
+
__asyncValues,
|
|
125785
|
+
__makeTemplateObject,
|
|
125786
|
+
__importStar,
|
|
125787
|
+
__importDefault,
|
|
125788
|
+
__classPrivateFieldGet,
|
|
125789
|
+
__classPrivateFieldSet,
|
|
125790
|
+
__classPrivateFieldIn,
|
|
125791
|
+
__addDisposableResource,
|
|
125792
|
+
__disposeResources,
|
|
125793
|
+
__rewriteRelativeImportExtension
|
|
125794
|
+
};
|
|
125795
|
+
}));
|
|
125796
|
+
init_tslib_es6();
|
|
125052
125797
|
function groupPairs(pairs, group) {
|
|
125053
125798
|
if (!group) return pairs.join("");
|
|
125054
125799
|
if (!Number.isInteger(group.size) || group.size < 1) throw new RangeError("Hex group size must be a positive integer");
|
|
@@ -125281,6 +126026,7 @@ ${values.join("\n")}` : `${blockName} :`;
|
|
|
125281
126026
|
}
|
|
125282
126027
|
};
|
|
125283
126028
|
Name$1 = Name_1 = __decorate([AsnType({ type: AsnTypeTypes.Sequence })], Name$1);
|
|
126029
|
+
init_tslib_es6();
|
|
125284
126030
|
var AsnIpConverter = {
|
|
125285
126031
|
fromASN: (value) => IpConverter.toString(AsnOctetStringConverter.fromASN(value)),
|
|
125286
126032
|
toASN: (value) => AsnOctetStringConverter.toASN(IpConverter.fromString(value))
|
|
@@ -125387,6 +126133,7 @@ ${values.join("\n")}` : `${blockName} :`;
|
|
|
125387
126133
|
var id_ad_timeStamping = `${id_ad}.3`;
|
|
125388
126134
|
var id_ad_caRepository = `${id_ad}.5`;
|
|
125389
126135
|
var id_ce = "2.5.29";
|
|
126136
|
+
init_tslib_es6();
|
|
125390
126137
|
var AuthorityInfoAccessSyntax_1;
|
|
125391
126138
|
var id_pe_authorityInfoAccess = `${id_pe}.1`;
|
|
125392
126139
|
var AccessDescription = class {
|
|
@@ -125408,6 +126155,7 @@ ${values.join("\n")}` : `${blockName} :`;
|
|
|
125408
126155
|
type: AsnTypeTypes.Sequence,
|
|
125409
126156
|
itemType: AccessDescription
|
|
125410
126157
|
})], AuthorityInfoAccessSyntax);
|
|
126158
|
+
init_tslib_es6();
|
|
125411
126159
|
var id_ce_authorityKeyIdentifier = `${id_ce}.35`;
|
|
125412
126160
|
var KeyIdentifier = class extends OctetString {
|
|
125413
126161
|
};
|
|
@@ -125439,6 +126187,7 @@ ${values.join("\n")}` : `${blockName} :`;
|
|
|
125439
126187
|
implicit: true,
|
|
125440
126188
|
converter: AsnIntegerArrayBufferConverter
|
|
125441
126189
|
})], AuthorityKeyIdentifier.prototype, "authorityCertSerialNumber", void 0);
|
|
126190
|
+
init_tslib_es6();
|
|
125442
126191
|
var id_ce_basicConstraints = `${id_ce}.19`;
|
|
125443
126192
|
var BasicConstraints = class {
|
|
125444
126193
|
cA = false;
|
|
@@ -125455,6 +126204,7 @@ ${values.join("\n")}` : `${blockName} :`;
|
|
|
125455
126204
|
type: AsnPropTypes.Integer,
|
|
125456
126205
|
optional: true
|
|
125457
126206
|
})], BasicConstraints.prototype, "pathLenConstraint", void 0);
|
|
126207
|
+
init_tslib_es6();
|
|
125458
126208
|
var GeneralNames_1;
|
|
125459
126209
|
var GeneralNames$1 = GeneralNames_1 = class GeneralNames extends AsnArray {
|
|
125460
126210
|
constructor(items) {
|
|
@@ -125466,6 +126216,7 @@ ${values.join("\n")}` : `${blockName} :`;
|
|
|
125466
126216
|
type: AsnTypeTypes.Sequence,
|
|
125467
126217
|
itemType: GeneralName$1
|
|
125468
126218
|
})], GeneralNames$1);
|
|
126219
|
+
init_tslib_es6();
|
|
125469
126220
|
var CertificateIssuer_1;
|
|
125470
126221
|
`${id_ce}`;
|
|
125471
126222
|
var CertificateIssuer = CertificateIssuer_1 = class CertificateIssuer extends GeneralNames$1 {
|
|
@@ -125475,6 +126226,7 @@ ${values.join("\n")}` : `${blockName} :`;
|
|
|
125475
126226
|
}
|
|
125476
126227
|
};
|
|
125477
126228
|
CertificateIssuer = CertificateIssuer_1 = __decorate([AsnType({ type: AsnTypeTypes.Sequence })], CertificateIssuer);
|
|
126229
|
+
init_tslib_es6();
|
|
125478
126230
|
var CertificatePolicies_1;
|
|
125479
126231
|
var id_ce_certificatePolicies = `${id_ce}.32`;
|
|
125480
126232
|
`${id_ce_certificatePolicies}`;
|
|
@@ -125564,6 +126316,7 @@ ${values.join("\n")}` : `${blockName} :`;
|
|
|
125564
126316
|
type: AsnTypeTypes.Sequence,
|
|
125565
126317
|
itemType: PolicyInformation
|
|
125566
126318
|
})], CertificatePolicies);
|
|
126319
|
+
init_tslib_es6();
|
|
125567
126320
|
`${id_ce}`;
|
|
125568
126321
|
var CRLNumber = class CRLNumber {
|
|
125569
126322
|
value;
|
|
@@ -125573,10 +126326,12 @@ ${values.join("\n")}` : `${blockName} :`;
|
|
|
125573
126326
|
};
|
|
125574
126327
|
__decorate([AsnProp({ type: AsnPropTypes.Integer })], CRLNumber.prototype, "value", void 0);
|
|
125575
126328
|
CRLNumber = __decorate([AsnType({ type: AsnTypeTypes.Choice })], CRLNumber);
|
|
126329
|
+
init_tslib_es6();
|
|
125576
126330
|
`${id_ce}`;
|
|
125577
126331
|
var BaseCRLNumber = class BaseCRLNumber extends CRLNumber {
|
|
125578
126332
|
};
|
|
125579
126333
|
BaseCRLNumber = __decorate([AsnType({ type: AsnTypeTypes.Choice })], BaseCRLNumber);
|
|
126334
|
+
init_tslib_es6();
|
|
125580
126335
|
var CRLDistributionPoints_1;
|
|
125581
126336
|
var id_ce_cRLDistributionPoints = `${id_ce}.31`;
|
|
125582
126337
|
var ReasonFlags;
|
|
@@ -125665,6 +126420,7 @@ ${values.join("\n")}` : `${blockName} :`;
|
|
|
125665
126420
|
type: AsnTypeTypes.Sequence,
|
|
125666
126421
|
itemType: DistributionPoint
|
|
125667
126422
|
})], CRLDistributionPoints);
|
|
126423
|
+
init_tslib_es6();
|
|
125668
126424
|
var FreshestCRL_1;
|
|
125669
126425
|
`${id_ce}`;
|
|
125670
126426
|
var FreshestCRL = FreshestCRL_1 = class FreshestCRL extends CRLDistributionPoints {
|
|
@@ -125677,6 +126433,7 @@ ${values.join("\n")}` : `${blockName} :`;
|
|
|
125677
126433
|
type: AsnTypeTypes.Sequence,
|
|
125678
126434
|
itemType: DistributionPoint
|
|
125679
126435
|
})], FreshestCRL);
|
|
126436
|
+
init_tslib_es6();
|
|
125680
126437
|
`${id_ce}`;
|
|
125681
126438
|
var IssuingDistributionPoint = class IssuingDistributionPoint2 {
|
|
125682
126439
|
static ONLY = false;
|
|
@@ -125725,6 +126482,7 @@ ${values.join("\n")}` : `${blockName} :`;
|
|
|
125725
126482
|
defaultValue: IssuingDistributionPoint.ONLY,
|
|
125726
126483
|
implicit: true
|
|
125727
126484
|
})], IssuingDistributionPoint.prototype, "onlyContainsAttributeCerts", void 0);
|
|
126485
|
+
init_tslib_es6();
|
|
125728
126486
|
`${id_ce}`;
|
|
125729
126487
|
var CRLReasons;
|
|
125730
126488
|
(function(CRLReasons2) {
|
|
@@ -125753,6 +126511,7 @@ ${values.join("\n")}` : `${blockName} :`;
|
|
|
125753
126511
|
};
|
|
125754
126512
|
__decorate([AsnProp({ type: AsnPropTypes.Enumerated })], CRLReason.prototype, "reason", void 0);
|
|
125755
126513
|
CRLReason = __decorate([AsnType({ type: AsnTypeTypes.Choice })], CRLReason);
|
|
126514
|
+
init_tslib_es6();
|
|
125756
126515
|
var ExtendedKeyUsage_1;
|
|
125757
126516
|
var id_ce_extKeyUsage = `${id_ce}.37`;
|
|
125758
126517
|
var ExtendedKeyUsage$1 = ExtendedKeyUsage_1 = class ExtendedKeyUsage extends AsnArray {
|
|
@@ -125772,6 +126531,7 @@ ${values.join("\n")}` : `${blockName} :`;
|
|
|
125772
126531
|
var id_kp_emailProtection = `${id_kp}.4`;
|
|
125773
126532
|
var id_kp_timeStamping = `${id_kp}.8`;
|
|
125774
126533
|
var id_kp_OCSPSigning = `${id_kp}.9`;
|
|
126534
|
+
init_tslib_es6();
|
|
125775
126535
|
`${id_ce}`;
|
|
125776
126536
|
var InhibitAnyPolicy = class InhibitAnyPolicy {
|
|
125777
126537
|
value;
|
|
@@ -125784,6 +126544,7 @@ ${values.join("\n")}` : `${blockName} :`;
|
|
|
125784
126544
|
converter: AsnIntegerArrayBufferConverter
|
|
125785
126545
|
})], InhibitAnyPolicy.prototype, "value", void 0);
|
|
125786
126546
|
InhibitAnyPolicy = __decorate([AsnType({ type: AsnTypeTypes.Choice })], InhibitAnyPolicy);
|
|
126547
|
+
init_tslib_es6();
|
|
125787
126548
|
`${id_ce}`;
|
|
125788
126549
|
var InvalidityDate = class InvalidityDate {
|
|
125789
126550
|
value = /* @__PURE__ */ new Date();
|
|
@@ -125793,6 +126554,7 @@ ${values.join("\n")}` : `${blockName} :`;
|
|
|
125793
126554
|
};
|
|
125794
126555
|
__decorate([AsnProp({ type: AsnPropTypes.GeneralizedTime })], InvalidityDate.prototype, "value", void 0);
|
|
125795
126556
|
InvalidityDate = __decorate([AsnType({ type: AsnTypeTypes.Choice })], InvalidityDate);
|
|
126557
|
+
init_tslib_es6();
|
|
125796
126558
|
var IssueAlternativeName_1;
|
|
125797
126559
|
var id_ce_issuerAltName = `${id_ce}.18`;
|
|
125798
126560
|
var IssueAlternativeName = IssueAlternativeName_1 = class IssueAlternativeName extends GeneralNames$1 {
|
|
@@ -125834,6 +126596,7 @@ ${values.join("\n")}` : `${blockName} :`;
|
|
|
125834
126596
|
return `[${this.toJSON().join(", ")}]`;
|
|
125835
126597
|
}
|
|
125836
126598
|
};
|
|
126599
|
+
init_tslib_es6();
|
|
125837
126600
|
var GeneralSubtrees_1;
|
|
125838
126601
|
`${id_ce}`;
|
|
125839
126602
|
var GeneralSubtree = class {
|
|
@@ -125886,6 +126649,7 @@ ${values.join("\n")}` : `${blockName} :`;
|
|
|
125886
126649
|
optional: true,
|
|
125887
126650
|
implicit: true
|
|
125888
126651
|
})], NameConstraints.prototype, "excludedSubtrees", void 0);
|
|
126652
|
+
init_tslib_es6();
|
|
125889
126653
|
`${id_ce}`;
|
|
125890
126654
|
var PolicyConstraints = class {
|
|
125891
126655
|
requireExplicitPolicy;
|
|
@@ -125908,6 +126672,7 @@ ${values.join("\n")}` : `${blockName} :`;
|
|
|
125908
126672
|
optional: true,
|
|
125909
126673
|
converter: AsnIntegerArrayBufferConverter
|
|
125910
126674
|
})], PolicyConstraints.prototype, "inhibitPolicyMapping", void 0);
|
|
126675
|
+
init_tslib_es6();
|
|
125911
126676
|
var PolicyMappings_1;
|
|
125912
126677
|
`${id_ce}`;
|
|
125913
126678
|
var PolicyMapping = class {
|
|
@@ -125929,6 +126694,7 @@ ${values.join("\n")}` : `${blockName} :`;
|
|
|
125929
126694
|
type: AsnTypeTypes.Sequence,
|
|
125930
126695
|
itemType: PolicyMapping
|
|
125931
126696
|
})], PolicyMappings);
|
|
126697
|
+
init_tslib_es6();
|
|
125932
126698
|
var SubjectAlternativeName_1;
|
|
125933
126699
|
var id_ce_subjectAltName = `${id_ce}.17`;
|
|
125934
126700
|
var SubjectAlternativeName = SubjectAlternativeName_1 = class SubjectAlternativeName extends GeneralNames$1 {
|
|
@@ -125938,6 +126704,7 @@ ${values.join("\n")}` : `${blockName} :`;
|
|
|
125938
126704
|
}
|
|
125939
126705
|
};
|
|
125940
126706
|
SubjectAlternativeName = SubjectAlternativeName_1 = __decorate([AsnType({ type: AsnTypeTypes.Sequence })], SubjectAlternativeName);
|
|
126707
|
+
init_tslib_es6();
|
|
125941
126708
|
var Attribute$2 = class {
|
|
125942
126709
|
type = "";
|
|
125943
126710
|
values = [];
|
|
@@ -125950,6 +126717,7 @@ ${values.join("\n")}` : `${blockName} :`;
|
|
|
125950
126717
|
type: AsnPropTypes.Any,
|
|
125951
126718
|
repeated: "set"
|
|
125952
126719
|
})], Attribute$2.prototype, "values", void 0);
|
|
126720
|
+
init_tslib_es6();
|
|
125953
126721
|
var SubjectDirectoryAttributes_1;
|
|
125954
126722
|
`${id_ce}`;
|
|
125955
126723
|
var SubjectDirectoryAttributes = SubjectDirectoryAttributes_1 = class SubjectDirectoryAttributes extends AsnArray {
|
|
@@ -125965,6 +126733,7 @@ ${values.join("\n")}` : `${blockName} :`;
|
|
|
125965
126733
|
var id_ce_subjectKeyIdentifier = `${id_ce}.14`;
|
|
125966
126734
|
var SubjectKeyIdentifier = class extends KeyIdentifier {
|
|
125967
126735
|
};
|
|
126736
|
+
init_tslib_es6();
|
|
125968
126737
|
`${id_ce}`;
|
|
125969
126738
|
var PrivateKeyUsagePeriod = class {
|
|
125970
126739
|
notBefore;
|
|
@@ -125985,6 +126754,7 @@ ${values.join("\n")}` : `${blockName} :`;
|
|
|
125985
126754
|
implicit: true,
|
|
125986
126755
|
optional: true
|
|
125987
126756
|
})], PrivateKeyUsagePeriod.prototype, "notAfter", void 0);
|
|
126757
|
+
init_tslib_es6();
|
|
125988
126758
|
var EntrustInfoFlags;
|
|
125989
126759
|
(function(EntrustInfoFlags2) {
|
|
125990
126760
|
EntrustInfoFlags2[EntrustInfoFlags2["keyUpdateAllowed"] = 1] = "keyUpdateAllowed";
|
|
@@ -126013,6 +126783,7 @@ ${values.join("\n")}` : `${blockName} :`;
|
|
|
126013
126783
|
};
|
|
126014
126784
|
__decorate([AsnProp({ type: AsnPropTypes.GeneralString })], EntrustVersionInfo.prototype, "entrustVers", void 0);
|
|
126015
126785
|
__decorate([AsnProp({ type: EntrustInfo })], EntrustVersionInfo.prototype, "entrustInfoFlags", void 0);
|
|
126786
|
+
init_tslib_es6();
|
|
126016
126787
|
var SubjectInfoAccessSyntax_1;
|
|
126017
126788
|
`${id_pe}`;
|
|
126018
126789
|
var SubjectInfoAccessSyntax = SubjectInfoAccessSyntax_1 = class SubjectInfoAccessSyntax extends AsnArray {
|
|
@@ -126025,6 +126796,7 @@ ${values.join("\n")}` : `${blockName} :`;
|
|
|
126025
126796
|
type: AsnTypeTypes.Sequence,
|
|
126026
126797
|
itemType: AccessDescription
|
|
126027
126798
|
})], SubjectInfoAccessSyntax);
|
|
126799
|
+
init_tslib_es6();
|
|
126028
126800
|
var AlgorithmIdentifier = class AlgorithmIdentifier2 {
|
|
126029
126801
|
algorithm = "";
|
|
126030
126802
|
parameters;
|
|
@@ -126040,6 +126812,7 @@ ${values.join("\n")}` : `${blockName} :`;
|
|
|
126040
126812
|
type: AsnPropTypes.Any,
|
|
126041
126813
|
optional: true
|
|
126042
126814
|
})], AlgorithmIdentifier.prototype, "parameters", void 0);
|
|
126815
|
+
init_tslib_es6();
|
|
126043
126816
|
var SubjectPublicKeyInfo = class {
|
|
126044
126817
|
algorithm = new AlgorithmIdentifier();
|
|
126045
126818
|
subjectPublicKey = /* @__PURE__ */ new ArrayBuffer(0);
|
|
@@ -126049,6 +126822,7 @@ ${values.join("\n")}` : `${blockName} :`;
|
|
|
126049
126822
|
};
|
|
126050
126823
|
__decorate([AsnProp({ type: AlgorithmIdentifier })], SubjectPublicKeyInfo.prototype, "algorithm", void 0);
|
|
126051
126824
|
__decorate([AsnProp({ type: AsnPropTypes.BitString })], SubjectPublicKeyInfo.prototype, "subjectPublicKey", void 0);
|
|
126825
|
+
init_tslib_es6();
|
|
126052
126826
|
var Time = class Time {
|
|
126053
126827
|
utcTime;
|
|
126054
126828
|
generalTime;
|
|
@@ -126069,6 +126843,7 @@ ${values.join("\n")}` : `${blockName} :`;
|
|
|
126069
126843
|
__decorate([AsnProp({ type: AsnPropTypes.UTCTime })], Time.prototype, "utcTime", void 0);
|
|
126070
126844
|
__decorate([AsnProp({ type: AsnPropTypes.GeneralizedTime })], Time.prototype, "generalTime", void 0);
|
|
126071
126845
|
Time = __decorate([AsnType({ type: AsnTypeTypes.Choice })], Time);
|
|
126846
|
+
init_tslib_es6();
|
|
126072
126847
|
var Validity = class {
|
|
126073
126848
|
notBefore = new Time(/* @__PURE__ */ new Date());
|
|
126074
126849
|
notAfter = new Time(/* @__PURE__ */ new Date());
|
|
@@ -126081,6 +126856,7 @@ ${values.join("\n")}` : `${blockName} :`;
|
|
|
126081
126856
|
};
|
|
126082
126857
|
__decorate([AsnProp({ type: Time })], Validity.prototype, "notBefore", void 0);
|
|
126083
126858
|
__decorate([AsnProp({ type: Time })], Validity.prototype, "notAfter", void 0);
|
|
126859
|
+
init_tslib_es6();
|
|
126084
126860
|
var Extensions_1;
|
|
126085
126861
|
var Extension$1 = class Extension$12 {
|
|
126086
126862
|
static CRITICAL = false;
|
|
@@ -126113,6 +126889,7 @@ ${values.join("\n")}` : `${blockName} :`;
|
|
|
126113
126889
|
Version2[Version2["v2"] = 1] = "v2";
|
|
126114
126890
|
Version2[Version2["v3"] = 2] = "v3";
|
|
126115
126891
|
})(Version$1 || (Version$1 = {}));
|
|
126892
|
+
init_tslib_es6();
|
|
126116
126893
|
var TBSCertificate = class {
|
|
126117
126894
|
version = Version$1.v1;
|
|
126118
126895
|
serialNumber = /* @__PURE__ */ new ArrayBuffer(0);
|
|
@@ -126159,6 +126936,7 @@ ${values.join("\n")}` : `${blockName} :`;
|
|
|
126159
126936
|
context: 3,
|
|
126160
126937
|
optional: true
|
|
126161
126938
|
})], TBSCertificate.prototype, "extensions", void 0);
|
|
126939
|
+
init_tslib_es6();
|
|
126162
126940
|
var Certificate = class {
|
|
126163
126941
|
tbsCertificate = new TBSCertificate();
|
|
126164
126942
|
tbsCertificateRaw;
|
|
@@ -126174,6 +126952,7 @@ ${values.join("\n")}` : `${blockName} :`;
|
|
|
126174
126952
|
})], Certificate.prototype, "tbsCertificate", void 0);
|
|
126175
126953
|
__decorate([AsnProp({ type: AlgorithmIdentifier })], Certificate.prototype, "signatureAlgorithm", void 0);
|
|
126176
126954
|
__decorate([AsnProp({ type: AsnPropTypes.BitString })], Certificate.prototype, "signatureValue", void 0);
|
|
126955
|
+
init_tslib_es6();
|
|
126177
126956
|
var RevokedCertificate = class {
|
|
126178
126957
|
userCertificate = /* @__PURE__ */ new ArrayBuffer(0);
|
|
126179
126958
|
revocationDate = new Time();
|
|
@@ -126226,6 +127005,7 @@ ${values.join("\n")}` : `${blockName} :`;
|
|
|
126226
127005
|
context: 0,
|
|
126227
127006
|
repeated: "sequence"
|
|
126228
127007
|
})], TBSCertList.prototype, "crlExtensions", void 0);
|
|
127008
|
+
init_tslib_es6();
|
|
126229
127009
|
var CertificateList = class {
|
|
126230
127010
|
tbsCertList = new TBSCertList();
|
|
126231
127011
|
tbsCertListRaw;
|
|
@@ -126241,6 +127021,7 @@ ${values.join("\n")}` : `${blockName} :`;
|
|
|
126241
127021
|
})], CertificateList.prototype, "tbsCertList", void 0);
|
|
126242
127022
|
__decorate([AsnProp({ type: AlgorithmIdentifier })], CertificateList.prototype, "signatureAlgorithm", void 0);
|
|
126243
127023
|
__decorate([AsnProp({ type: AsnPropTypes.BitString })], CertificateList.prototype, "signature", void 0);
|
|
127024
|
+
init_tslib_es6();
|
|
126244
127025
|
var IssuerAndSerialNumber = class {
|
|
126245
127026
|
issuer = new Name$1();
|
|
126246
127027
|
serialNumber = /* @__PURE__ */ new ArrayBuffer(0);
|
|
@@ -126253,6 +127034,7 @@ ${values.join("\n")}` : `${blockName} :`;
|
|
|
126253
127034
|
type: AsnPropTypes.Integer,
|
|
126254
127035
|
converter: AsnIntegerArrayBufferConverter
|
|
126255
127036
|
})], IssuerAndSerialNumber.prototype, "serialNumber", void 0);
|
|
127037
|
+
init_tslib_es6();
|
|
126256
127038
|
var SignerIdentifier = class SignerIdentifier {
|
|
126257
127039
|
subjectKeyIdentifier;
|
|
126258
127040
|
issuerAndSerialNumber;
|
|
@@ -126267,6 +127049,7 @@ ${values.join("\n")}` : `${blockName} :`;
|
|
|
126267
127049
|
})], SignerIdentifier.prototype, "subjectKeyIdentifier", void 0);
|
|
126268
127050
|
__decorate([AsnProp({ type: IssuerAndSerialNumber })], SignerIdentifier.prototype, "issuerAndSerialNumber", void 0);
|
|
126269
127051
|
SignerIdentifier = __decorate([AsnType({ type: AsnTypeTypes.Choice })], SignerIdentifier);
|
|
127052
|
+
init_tslib_es6();
|
|
126270
127053
|
var CMSVersion;
|
|
126271
127054
|
(function(CMSVersion2) {
|
|
126272
127055
|
CMSVersion2[CMSVersion2["v0"] = 0] = "v0";
|
|
@@ -126294,6 +127077,7 @@ ${values.join("\n")}` : `${blockName} :`;
|
|
|
126294
127077
|
var KeyDerivationAlgorithmIdentifier = class KeyDerivationAlgorithmIdentifier extends AlgorithmIdentifier {
|
|
126295
127078
|
};
|
|
126296
127079
|
KeyDerivationAlgorithmIdentifier = __decorate([AsnType({ type: AsnTypeTypes.Sequence })], KeyDerivationAlgorithmIdentifier);
|
|
127080
|
+
init_tslib_es6();
|
|
126297
127081
|
var Attribute$1 = class {
|
|
126298
127082
|
attrType = "";
|
|
126299
127083
|
attrValues = [];
|
|
@@ -126306,6 +127090,7 @@ ${values.join("\n")}` : `${blockName} :`;
|
|
|
126306
127090
|
type: AsnPropTypes.Any,
|
|
126307
127091
|
repeated: "set"
|
|
126308
127092
|
})], Attribute$1.prototype, "attrValues", void 0);
|
|
127093
|
+
init_tslib_es6();
|
|
126309
127094
|
var SignerInfos_1;
|
|
126310
127095
|
var SignerInfo = class {
|
|
126311
127096
|
version = CMSVersion.v0;
|
|
@@ -126350,12 +127135,15 @@ ${values.join("\n")}` : `${blockName} :`;
|
|
|
126350
127135
|
type: AsnTypeTypes.Set,
|
|
126351
127136
|
itemType: SignerInfo
|
|
126352
127137
|
})], SignerInfos);
|
|
127138
|
+
init_tslib_es6();
|
|
126353
127139
|
var CounterSignature$1 = class CounterSignature extends SignerInfo {
|
|
126354
127140
|
};
|
|
126355
127141
|
CounterSignature$1 = __decorate([AsnType({ type: AsnTypeTypes.Sequence })], CounterSignature$1);
|
|
127142
|
+
init_tslib_es6();
|
|
126356
127143
|
var SigningTime$1 = class SigningTime extends Time {
|
|
126357
127144
|
};
|
|
126358
127145
|
SigningTime$1 = __decorate([AsnType({ type: AsnTypeTypes.Choice })], SigningTime$1);
|
|
127146
|
+
init_tslib_es6();
|
|
126359
127147
|
var ACClearAttrs = class {
|
|
126360
127148
|
acIssuer = new GeneralName$1();
|
|
126361
127149
|
acSerial = 0;
|
|
@@ -126370,6 +127158,7 @@ ${values.join("\n")}` : `${blockName} :`;
|
|
|
126370
127158
|
type: Attribute$2,
|
|
126371
127159
|
repeated: "sequence"
|
|
126372
127160
|
})], ACClearAttrs.prototype, "attrs", void 0);
|
|
127161
|
+
init_tslib_es6();
|
|
126373
127162
|
var AttrSpec_1;
|
|
126374
127163
|
var AttrSpec = AttrSpec_1 = class AttrSpec extends AsnArray {
|
|
126375
127164
|
constructor(items) {
|
|
@@ -126381,6 +127170,7 @@ ${values.join("\n")}` : `${blockName} :`;
|
|
|
126381
127170
|
type: AsnTypeTypes.Sequence,
|
|
126382
127171
|
itemType: AsnPropTypes.ObjectIdentifier
|
|
126383
127172
|
})], AttrSpec);
|
|
127173
|
+
init_tslib_es6();
|
|
126384
127174
|
var AAControls = class {
|
|
126385
127175
|
pathLenConstraint;
|
|
126386
127176
|
permittedAttrs;
|
|
@@ -126410,6 +127200,7 @@ ${values.join("\n")}` : `${blockName} :`;
|
|
|
126410
127200
|
type: AsnPropTypes.Boolean,
|
|
126411
127201
|
defaultValue: true
|
|
126412
127202
|
})], AAControls.prototype, "permitUnSpecified", void 0);
|
|
127203
|
+
init_tslib_es6();
|
|
126413
127204
|
var IssuerSerial = class {
|
|
126414
127205
|
issuer = new GeneralNames$1();
|
|
126415
127206
|
serial = /* @__PURE__ */ new ArrayBuffer(0);
|
|
@@ -126427,6 +127218,7 @@ ${values.join("\n")}` : `${blockName} :`;
|
|
|
126427
127218
|
type: AsnPropTypes.BitString,
|
|
126428
127219
|
optional: true
|
|
126429
127220
|
})], IssuerSerial.prototype, "issuerUID", void 0);
|
|
127221
|
+
init_tslib_es6();
|
|
126430
127222
|
var DigestedObjectType;
|
|
126431
127223
|
(function(DigestedObjectType2) {
|
|
126432
127224
|
DigestedObjectType2[DigestedObjectType2["publicKey"] = 0] = "publicKey";
|
|
@@ -126449,6 +127241,7 @@ ${values.join("\n")}` : `${blockName} :`;
|
|
|
126449
127241
|
})], ObjectDigestInfo.prototype, "otherObjectTypeID", void 0);
|
|
126450
127242
|
__decorate([AsnProp({ type: AlgorithmIdentifier })], ObjectDigestInfo.prototype, "digestAlgorithm", void 0);
|
|
126451
127243
|
__decorate([AsnProp({ type: AsnPropTypes.BitString })], ObjectDigestInfo.prototype, "objectDigest", void 0);
|
|
127244
|
+
init_tslib_es6();
|
|
126452
127245
|
var V2Form = class {
|
|
126453
127246
|
issuerName;
|
|
126454
127247
|
baseCertificateID;
|
|
@@ -126473,6 +127266,7 @@ ${values.join("\n")}` : `${blockName} :`;
|
|
|
126473
127266
|
implicit: true,
|
|
126474
127267
|
optional: true
|
|
126475
127268
|
})], V2Form.prototype, "objectDigestInfo", void 0);
|
|
127269
|
+
init_tslib_es6();
|
|
126476
127270
|
var AttCertIssuer = class AttCertIssuer {
|
|
126477
127271
|
v1Form;
|
|
126478
127272
|
v2Form;
|
|
@@ -126490,6 +127284,7 @@ ${values.join("\n")}` : `${blockName} :`;
|
|
|
126490
127284
|
implicit: true
|
|
126491
127285
|
})], AttCertIssuer.prototype, "v2Form", void 0);
|
|
126492
127286
|
AttCertIssuer = __decorate([AsnType({ type: AsnTypeTypes.Choice })], AttCertIssuer);
|
|
127287
|
+
init_tslib_es6();
|
|
126493
127288
|
var AttCertValidityPeriod = class {
|
|
126494
127289
|
notBeforeTime = /* @__PURE__ */ new Date();
|
|
126495
127290
|
notAfterTime = /* @__PURE__ */ new Date();
|
|
@@ -126499,6 +127294,7 @@ ${values.join("\n")}` : `${blockName} :`;
|
|
|
126499
127294
|
};
|
|
126500
127295
|
__decorate([AsnProp({ type: AsnPropTypes.GeneralizedTime })], AttCertValidityPeriod.prototype, "notBeforeTime", void 0);
|
|
126501
127296
|
__decorate([AsnProp({ type: AsnPropTypes.GeneralizedTime })], AttCertValidityPeriod.prototype, "notAfterTime", void 0);
|
|
127297
|
+
init_tslib_es6();
|
|
126502
127298
|
var Holder = class {
|
|
126503
127299
|
baseCertificateID;
|
|
126504
127300
|
entityName;
|
|
@@ -126525,6 +127321,7 @@ ${values.join("\n")}` : `${blockName} :`;
|
|
|
126525
127321
|
context: 2,
|
|
126526
127322
|
optional: true
|
|
126527
127323
|
})], Holder.prototype, "objectDigestInfo", void 0);
|
|
127324
|
+
init_tslib_es6();
|
|
126528
127325
|
var AttCertVersion;
|
|
126529
127326
|
(function(AttCertVersion2) {
|
|
126530
127327
|
AttCertVersion2[AttCertVersion2["v2"] = 1] = "v2";
|
|
@@ -126564,6 +127361,7 @@ ${values.join("\n")}` : `${blockName} :`;
|
|
|
126564
127361
|
type: Extensions,
|
|
126565
127362
|
optional: true
|
|
126566
127363
|
})], AttributeCertificateInfo.prototype, "extensions", void 0);
|
|
127364
|
+
init_tslib_es6();
|
|
126567
127365
|
var AttributeCertificate = class {
|
|
126568
127366
|
acinfo = new AttributeCertificateInfo();
|
|
126569
127367
|
signatureAlgorithm = new AlgorithmIdentifier();
|
|
@@ -126586,6 +127384,7 @@ ${values.join("\n")}` : `${blockName} :`;
|
|
|
126586
127384
|
})(ClassListFlags || (ClassListFlags = {}));
|
|
126587
127385
|
var ClassList = class extends BitString {
|
|
126588
127386
|
};
|
|
127387
|
+
init_tslib_es6();
|
|
126589
127388
|
var SecurityCategory = class {
|
|
126590
127389
|
type = "";
|
|
126591
127390
|
value = /* @__PURE__ */ new ArrayBuffer(0);
|
|
@@ -126603,6 +127402,7 @@ ${values.join("\n")}` : `${blockName} :`;
|
|
|
126603
127402
|
implicit: true,
|
|
126604
127403
|
context: 1
|
|
126605
127404
|
})], SecurityCategory.prototype, "value", void 0);
|
|
127405
|
+
init_tslib_es6();
|
|
126606
127406
|
var Clearance = class {
|
|
126607
127407
|
policyId = "";
|
|
126608
127408
|
classList = new ClassList(ClassListFlags.unclassified);
|
|
@@ -126620,6 +127420,7 @@ ${values.join("\n")}` : `${blockName} :`;
|
|
|
126620
127420
|
type: SecurityCategory,
|
|
126621
127421
|
repeated: "set"
|
|
126622
127422
|
})], Clearance.prototype, "securityCategories", void 0);
|
|
127423
|
+
init_tslib_es6();
|
|
126623
127424
|
var IetfAttrSyntaxValueChoices = class {
|
|
126624
127425
|
cotets;
|
|
126625
127426
|
oid;
|
|
@@ -126660,6 +127461,7 @@ ${values.join("\n")}` : `${blockName} :`;
|
|
|
126660
127461
|
`${id_aca}`;
|
|
126661
127462
|
var id_at = "2.5.4";
|
|
126662
127463
|
`${id_at}`;
|
|
127464
|
+
init_tslib_es6();
|
|
126663
127465
|
var Targets_1;
|
|
126664
127466
|
var TargetCert = class {
|
|
126665
127467
|
targetCertificate = new IssuerSerial();
|
|
@@ -126712,6 +127514,7 @@ ${values.join("\n")}` : `${blockName} :`;
|
|
|
126712
127514
|
type: AsnTypeTypes.Sequence,
|
|
126713
127515
|
itemType: Target
|
|
126714
127516
|
})], Targets);
|
|
127517
|
+
init_tslib_es6();
|
|
126715
127518
|
var ProxyInfo_1;
|
|
126716
127519
|
var ProxyInfo = ProxyInfo_1 = class ProxyInfo extends AsnArray {
|
|
126717
127520
|
constructor(items) {
|
|
@@ -126723,6 +127526,7 @@ ${values.join("\n")}` : `${blockName} :`;
|
|
|
126723
127526
|
type: AsnTypeTypes.Sequence,
|
|
126724
127527
|
itemType: Targets
|
|
126725
127528
|
})], ProxyInfo);
|
|
127529
|
+
init_tslib_es6();
|
|
126726
127530
|
var RoleSyntax = class {
|
|
126727
127531
|
roleAuthority;
|
|
126728
127532
|
roleName;
|
|
@@ -126741,6 +127545,7 @@ ${values.join("\n")}` : `${blockName} :`;
|
|
|
126741
127545
|
implicit: true,
|
|
126742
127546
|
context: 1
|
|
126743
127547
|
})], RoleSyntax.prototype, "roleName", void 0);
|
|
127548
|
+
init_tslib_es6();
|
|
126744
127549
|
var SvceAuthInfo = class {
|
|
126745
127550
|
service = new GeneralName$1();
|
|
126746
127551
|
ident = new GeneralName$1();
|
|
@@ -126755,6 +127560,7 @@ ${values.join("\n")}` : `${blockName} :`;
|
|
|
126755
127560
|
type: OctetString,
|
|
126756
127561
|
optional: true
|
|
126757
127562
|
})], SvceAuthInfo.prototype, "authInfo", void 0);
|
|
127563
|
+
init_tslib_es6();
|
|
126758
127564
|
var CertificateSet_1;
|
|
126759
127565
|
var OtherCertificateFormat = class {
|
|
126760
127566
|
otherCertFormat = "";
|
|
@@ -126795,6 +127601,7 @@ ${values.join("\n")}` : `${blockName} :`;
|
|
|
126795
127601
|
type: AsnTypeTypes.Set,
|
|
126796
127602
|
itemType: CertificateChoices
|
|
126797
127603
|
})], CertificateSet);
|
|
127604
|
+
init_tslib_es6();
|
|
126798
127605
|
var ContentInfo = class {
|
|
126799
127606
|
contentType = "";
|
|
126800
127607
|
content = /* @__PURE__ */ new ArrayBuffer(0);
|
|
@@ -126807,6 +127614,7 @@ ${values.join("\n")}` : `${blockName} :`;
|
|
|
126807
127614
|
type: AsnPropTypes.Any,
|
|
126808
127615
|
context: 0
|
|
126809
127616
|
})], ContentInfo.prototype, "content", void 0);
|
|
127617
|
+
init_tslib_es6();
|
|
126810
127618
|
var EncapsulatedContent = class EncapsulatedContent {
|
|
126811
127619
|
single;
|
|
126812
127620
|
any;
|
|
@@ -126830,6 +127638,7 @@ ${values.join("\n")}` : `${blockName} :`;
|
|
|
126830
127638
|
context: 0,
|
|
126831
127639
|
optional: true
|
|
126832
127640
|
})], EncapsulatedContentInfo.prototype, "eContent", void 0);
|
|
127641
|
+
init_tslib_es6();
|
|
126833
127642
|
var EncryptedContent = class EncryptedContent {
|
|
126834
127643
|
value;
|
|
126835
127644
|
constructedValue;
|
|
@@ -126866,6 +127675,7 @@ ${values.join("\n")}` : `${blockName} :`;
|
|
|
126866
127675
|
type: EncryptedContent,
|
|
126867
127676
|
optional: true
|
|
126868
127677
|
})], EncryptedContentInfo.prototype, "encryptedContent", void 0);
|
|
127678
|
+
init_tslib_es6();
|
|
126869
127679
|
var OtherKeyAttribute = class {
|
|
126870
127680
|
keyAttrId = "";
|
|
126871
127681
|
keyAttr;
|
|
@@ -126878,6 +127688,7 @@ ${values.join("\n")}` : `${blockName} :`;
|
|
|
126878
127688
|
type: AsnPropTypes.Any,
|
|
126879
127689
|
optional: true
|
|
126880
127690
|
})], OtherKeyAttribute.prototype, "keyAttr", void 0);
|
|
127691
|
+
init_tslib_es6();
|
|
126881
127692
|
var RecipientEncryptedKeys_1;
|
|
126882
127693
|
var RecipientKeyIdentifier = class {
|
|
126883
127694
|
subjectKeyIdentifier = new SubjectKeyIdentifier();
|
|
@@ -126989,6 +127800,7 @@ ${values.join("\n")}` : `${blockName} :`;
|
|
|
126989
127800
|
})], KeyAgreeRecipientInfo.prototype, "ukm", void 0);
|
|
126990
127801
|
__decorate([AsnProp({ type: KeyEncryptionAlgorithmIdentifier })], KeyAgreeRecipientInfo.prototype, "keyEncryptionAlgorithm", void 0);
|
|
126991
127802
|
__decorate([AsnProp({ type: RecipientEncryptedKeys })], KeyAgreeRecipientInfo.prototype, "recipientEncryptedKeys", void 0);
|
|
127803
|
+
init_tslib_es6();
|
|
126992
127804
|
var RecipientIdentifier = class RecipientIdentifier {
|
|
126993
127805
|
subjectKeyIdentifier;
|
|
126994
127806
|
issuerAndSerialNumber;
|
|
@@ -127016,6 +127828,7 @@ ${values.join("\n")}` : `${blockName} :`;
|
|
|
127016
127828
|
__decorate([AsnProp({ type: RecipientIdentifier })], KeyTransRecipientInfo.prototype, "rid", void 0);
|
|
127017
127829
|
__decorate([AsnProp({ type: KeyEncryptionAlgorithmIdentifier })], KeyTransRecipientInfo.prototype, "keyEncryptionAlgorithm", void 0);
|
|
127018
127830
|
__decorate([AsnProp({ type: OctetString })], KeyTransRecipientInfo.prototype, "encryptedKey", void 0);
|
|
127831
|
+
init_tslib_es6();
|
|
127019
127832
|
var KEKIdentifier = class {
|
|
127020
127833
|
keyIdentifier = new OctetString();
|
|
127021
127834
|
date;
|
|
@@ -127046,6 +127859,7 @@ ${values.join("\n")}` : `${blockName} :`;
|
|
|
127046
127859
|
__decorate([AsnProp({ type: KEKIdentifier })], KEKRecipientInfo.prototype, "kekid", void 0);
|
|
127047
127860
|
__decorate([AsnProp({ type: KeyEncryptionAlgorithmIdentifier })], KEKRecipientInfo.prototype, "keyEncryptionAlgorithm", void 0);
|
|
127048
127861
|
__decorate([AsnProp({ type: OctetString })], KEKRecipientInfo.prototype, "encryptedKey", void 0);
|
|
127862
|
+
init_tslib_es6();
|
|
127049
127863
|
var PasswordRecipientInfo = class {
|
|
127050
127864
|
version = CMSVersion.v0;
|
|
127051
127865
|
keyDerivationAlgorithm;
|
|
@@ -127063,6 +127877,7 @@ ${values.join("\n")}` : `${blockName} :`;
|
|
|
127063
127877
|
})], PasswordRecipientInfo.prototype, "keyDerivationAlgorithm", void 0);
|
|
127064
127878
|
__decorate([AsnProp({ type: KeyEncryptionAlgorithmIdentifier })], PasswordRecipientInfo.prototype, "keyEncryptionAlgorithm", void 0);
|
|
127065
127879
|
__decorate([AsnProp({ type: OctetString })], PasswordRecipientInfo.prototype, "encryptedKey", void 0);
|
|
127880
|
+
init_tslib_es6();
|
|
127066
127881
|
var OtherRecipientInfo = class {
|
|
127067
127882
|
oriType = "";
|
|
127068
127883
|
oriValue = /* @__PURE__ */ new ArrayBuffer(0);
|
|
@@ -127111,6 +127926,7 @@ ${values.join("\n")}` : `${blockName} :`;
|
|
|
127111
127926
|
optional: true
|
|
127112
127927
|
})], RecipientInfo.prototype, "ori", void 0);
|
|
127113
127928
|
RecipientInfo = __decorate([AsnType({ type: AsnTypeTypes.Choice })], RecipientInfo);
|
|
127929
|
+
init_tslib_es6();
|
|
127114
127930
|
var RecipientInfos_1;
|
|
127115
127931
|
var RecipientInfos = RecipientInfos_1 = class RecipientInfos extends AsnArray {
|
|
127116
127932
|
constructor(items) {
|
|
@@ -127122,6 +127938,7 @@ ${values.join("\n")}` : `${blockName} :`;
|
|
|
127122
127938
|
type: AsnTypeTypes.Set,
|
|
127123
127939
|
itemType: RecipientInfo
|
|
127124
127940
|
})], RecipientInfos);
|
|
127941
|
+
init_tslib_es6();
|
|
127125
127942
|
var RevocationInfoChoices_1;
|
|
127126
127943
|
var id_ri = `${id_pkix}.16`;
|
|
127127
127944
|
`${id_ri}`;
|
|
@@ -127157,6 +127974,7 @@ ${values.join("\n")}` : `${blockName} :`;
|
|
|
127157
127974
|
type: AsnTypeTypes.Set,
|
|
127158
127975
|
itemType: RevocationInfoChoice
|
|
127159
127976
|
})], RevocationInfoChoices);
|
|
127977
|
+
init_tslib_es6();
|
|
127160
127978
|
var OriginatorInfo = class {
|
|
127161
127979
|
certs;
|
|
127162
127980
|
crls;
|
|
@@ -127176,6 +127994,7 @@ ${values.join("\n")}` : `${blockName} :`;
|
|
|
127176
127994
|
implicit: true,
|
|
127177
127995
|
optional: true
|
|
127178
127996
|
})], OriginatorInfo.prototype, "crls", void 0);
|
|
127997
|
+
init_tslib_es6();
|
|
127179
127998
|
var UnprotectedAttributes_1;
|
|
127180
127999
|
var UnprotectedAttributes = UnprotectedAttributes_1 = class UnprotectedAttributes extends AsnArray {
|
|
127181
128000
|
constructor(items) {
|
|
@@ -127213,6 +128032,7 @@ ${values.join("\n")}` : `${blockName} :`;
|
|
|
127213
128032
|
optional: true
|
|
127214
128033
|
})], EnvelopedData.prototype, "unprotectedAttrs", void 0);
|
|
127215
128034
|
var id_signedData = "1.2.840.113549.1.7.2";
|
|
128035
|
+
init_tslib_es6();
|
|
127216
128036
|
var DigestAlgorithmIdentifiers_1;
|
|
127217
128037
|
var DigestAlgorithmIdentifiers = DigestAlgorithmIdentifiers_1 = class DigestAlgorithmIdentifiers extends AsnArray {
|
|
127218
128038
|
constructor(items) {
|
|
@@ -127268,6 +128088,7 @@ ${values.join("\n")}` : `${blockName} :`;
|
|
|
127268
128088
|
var ecdsaWithSHA256 = create$1(id_ecdsaWithSHA256);
|
|
127269
128089
|
var ecdsaWithSHA384 = create$1(id_ecdsaWithSHA384);
|
|
127270
128090
|
var ecdsaWithSHA512 = create$1(id_ecdsaWithSHA512);
|
|
128091
|
+
init_tslib_es6();
|
|
127271
128092
|
var FieldID = class FieldID {
|
|
127272
128093
|
fieldType;
|
|
127273
128094
|
parameters;
|
|
@@ -127323,6 +128144,7 @@ ${values.join("\n")}` : `${blockName} :`;
|
|
|
127323
128144
|
optional: true
|
|
127324
128145
|
})], SpecifiedECDomain.prototype, "cofactor", void 0);
|
|
127325
128146
|
SpecifiedECDomain = __decorate([AsnType({ type: AsnTypeTypes.Sequence })], SpecifiedECDomain);
|
|
128147
|
+
init_tslib_es6();
|
|
127326
128148
|
var ECParameters = class ECParameters {
|
|
127327
128149
|
namedCurve;
|
|
127328
128150
|
implicitCurve;
|
|
@@ -127335,6 +128157,7 @@ ${values.join("\n")}` : `${blockName} :`;
|
|
|
127335
128157
|
__decorate([AsnProp({ type: AsnPropTypes.Null })], ECParameters.prototype, "implicitCurve", void 0);
|
|
127336
128158
|
__decorate([AsnProp({ type: SpecifiedECDomain })], ECParameters.prototype, "specifiedCurve", void 0);
|
|
127337
128159
|
ECParameters = __decorate([AsnType({ type: AsnTypeTypes.Choice })], ECParameters);
|
|
128160
|
+
init_tslib_es6();
|
|
127338
128161
|
var ECPrivateKey = class {
|
|
127339
128162
|
version = 1;
|
|
127340
128163
|
privateKey = new OctetString();
|
|
@@ -127356,6 +128179,7 @@ ${values.join("\n")}` : `${blockName} :`;
|
|
|
127356
128179
|
context: 1,
|
|
127357
128180
|
optional: true
|
|
127358
128181
|
})], ECPrivateKey.prototype, "publicKey", void 0);
|
|
128182
|
+
init_tslib_es6();
|
|
127359
128183
|
var ECDSASigValue = class {
|
|
127360
128184
|
r = /* @__PURE__ */ new ArrayBuffer(0);
|
|
127361
128185
|
s = /* @__PURE__ */ new ArrayBuffer(0);
|
|
@@ -127449,6 +128273,7 @@ ${values.join("\n")}` : `${blockName} :`;
|
|
|
127449
128273
|
create(id_sha512WithRSAEncryption);
|
|
127450
128274
|
create(id_sha512_224WithRSAEncryption);
|
|
127451
128275
|
create(id_sha512_256WithRSAEncryption);
|
|
128276
|
+
init_tslib_es6();
|
|
127452
128277
|
var RsaEsOaepParams = class {
|
|
127453
128278
|
hashAlgorithm = new AlgorithmIdentifier(sha1);
|
|
127454
128279
|
maskGenAlgorithm = new AlgorithmIdentifier({
|
|
@@ -127479,6 +128304,7 @@ ${values.join("\n")}` : `${blockName} :`;
|
|
|
127479
128304
|
algorithm: id_RSAES_OAEP,
|
|
127480
128305
|
parameters: AsnConvert.serialize(new RsaEsOaepParams())
|
|
127481
128306
|
});
|
|
128307
|
+
init_tslib_es6();
|
|
127482
128308
|
var RsaSaPssParams = class {
|
|
127483
128309
|
hashAlgorithm = new AlgorithmIdentifier(sha1);
|
|
127484
128310
|
maskGenAlgorithm = new AlgorithmIdentifier({
|
|
@@ -127515,6 +128341,7 @@ ${values.join("\n")}` : `${blockName} :`;
|
|
|
127515
128341
|
algorithm: id_RSASSA_PSS,
|
|
127516
128342
|
parameters: AsnConvert.serialize(new RsaSaPssParams())
|
|
127517
128343
|
});
|
|
128344
|
+
init_tslib_es6();
|
|
127518
128345
|
var DigestInfo = class {
|
|
127519
128346
|
digestAlgorithm = new AlgorithmIdentifier();
|
|
127520
128347
|
digest = new OctetString();
|
|
@@ -127524,6 +128351,7 @@ ${values.join("\n")}` : `${blockName} :`;
|
|
|
127524
128351
|
};
|
|
127525
128352
|
__decorate([AsnProp({ type: AlgorithmIdentifier })], DigestInfo.prototype, "digestAlgorithm", void 0);
|
|
127526
128353
|
__decorate([AsnProp({ type: OctetString })], DigestInfo.prototype, "digest", void 0);
|
|
128354
|
+
init_tslib_es6();
|
|
127527
128355
|
var OtherPrimeInfos_1;
|
|
127528
128356
|
var OtherPrimeInfo = class {
|
|
127529
128357
|
prime = /* @__PURE__ */ new ArrayBuffer(0);
|
|
@@ -127555,6 +128383,7 @@ ${values.join("\n")}` : `${blockName} :`;
|
|
|
127555
128383
|
type: AsnTypeTypes.Sequence,
|
|
127556
128384
|
itemType: OtherPrimeInfo
|
|
127557
128385
|
})], OtherPrimeInfos);
|
|
128386
|
+
init_tslib_es6();
|
|
127558
128387
|
var RSAPrivateKey = class {
|
|
127559
128388
|
version = 0;
|
|
127560
128389
|
modulus = /* @__PURE__ */ new ArrayBuffer(0);
|
|
@@ -127607,6 +128436,7 @@ ${values.join("\n")}` : `${blockName} :`;
|
|
|
127607
128436
|
type: OtherPrimeInfos,
|
|
127608
128437
|
optional: true
|
|
127609
128438
|
})], RSAPrivateKey.prototype, "otherPrimeInfos", void 0);
|
|
128439
|
+
init_tslib_es6();
|
|
127610
128440
|
var RSAPublicKey = class {
|
|
127611
128441
|
modulus = /* @__PURE__ */ new ArrayBuffer(0);
|
|
127612
128442
|
publicExponent = /* @__PURE__ */ new ArrayBuffer(0);
|
|
@@ -128267,6 +129097,7 @@ ${values.join("\n")}` : `${blockName} :`;
|
|
|
128267
129097
|
};
|
|
128268
129098
|
}
|
|
128269
129099
|
if (typeof Reflect === "undefined" || !Reflect.getMetadata) throw new Error(`tsyringe requires a reflect polyfill. Please add 'import "reflect-metadata"' to the top of your entry point.`);
|
|
129100
|
+
init_tslib_es6();
|
|
128270
129101
|
var PKCS12AttrSet_1;
|
|
128271
129102
|
var PKCS12Attribute = class {
|
|
128272
129103
|
attrId = "";
|
|
@@ -128290,6 +129121,7 @@ ${values.join("\n")}` : `${blockName} :`;
|
|
|
128290
129121
|
type: AsnTypeTypes.Sequence,
|
|
128291
129122
|
itemType: PKCS12Attribute
|
|
128292
129123
|
})], PKCS12AttrSet);
|
|
129124
|
+
init_tslib_es6();
|
|
128293
129125
|
var AuthenticatedSafe_1;
|
|
128294
129126
|
var AuthenticatedSafe = AuthenticatedSafe_1 = class AuthenticatedSafe extends AsnArray {
|
|
128295
129127
|
constructor(items) {
|
|
@@ -128317,6 +129149,7 @@ ${values.join("\n")}` : `${blockName} :`;
|
|
|
128317
129149
|
`${id_bagtypes}`;
|
|
128318
129150
|
`${id_bagtypes}`;
|
|
128319
129151
|
var id_pkcs_9 = "1.2.840.113549.1.9";
|
|
129152
|
+
init_tslib_es6();
|
|
128320
129153
|
var CertBag = class {
|
|
128321
129154
|
certId = "";
|
|
128322
129155
|
certValue = /* @__PURE__ */ new ArrayBuffer(0);
|
|
@@ -128332,6 +129165,7 @@ ${values.join("\n")}` : `${blockName} :`;
|
|
|
128332
129165
|
var id_certTypes$1 = `${id_pkcs_9}.22`;
|
|
128333
129166
|
`${id_certTypes$1}`;
|
|
128334
129167
|
`${id_certTypes$1}`;
|
|
129168
|
+
init_tslib_es6();
|
|
128335
129169
|
var CRLBag = class {
|
|
128336
129170
|
crlId = "";
|
|
128337
129171
|
crltValue = /* @__PURE__ */ new ArrayBuffer(0);
|
|
@@ -128345,6 +129179,7 @@ ${values.join("\n")}` : `${blockName} :`;
|
|
|
128345
129179
|
context: 0
|
|
128346
129180
|
})], CRLBag.prototype, "crltValue", void 0);
|
|
128347
129181
|
`${id_pkcs_9}`;
|
|
129182
|
+
init_tslib_es6();
|
|
128348
129183
|
var EncryptedData = class extends OctetString {
|
|
128349
129184
|
};
|
|
128350
129185
|
var EncryptedPrivateKeyInfo$1 = class {
|
|
@@ -128356,6 +129191,7 @@ ${values.join("\n")}` : `${blockName} :`;
|
|
|
128356
129191
|
};
|
|
128357
129192
|
__decorate([AsnProp({ type: AlgorithmIdentifier })], EncryptedPrivateKeyInfo$1.prototype, "encryptionAlgorithm", void 0);
|
|
128358
129193
|
__decorate([AsnProp({ type: EncryptedData })], EncryptedPrivateKeyInfo$1.prototype, "encryptedData", void 0);
|
|
129194
|
+
init_tslib_es6();
|
|
128359
129195
|
var Attributes_1$1;
|
|
128360
129196
|
var Version;
|
|
128361
129197
|
(function(Version2) {
|
|
@@ -128391,12 +129227,15 @@ ${values.join("\n")}` : `${blockName} :`;
|
|
|
128391
129227
|
context: 0,
|
|
128392
129228
|
optional: true
|
|
128393
129229
|
})], PrivateKeyInfo.prototype, "attributes", void 0);
|
|
129230
|
+
init_tslib_es6();
|
|
128394
129231
|
var KeyBag = class KeyBag extends PrivateKeyInfo {
|
|
128395
129232
|
};
|
|
128396
129233
|
KeyBag = __decorate([AsnType({ type: AsnTypeTypes.Sequence })], KeyBag);
|
|
129234
|
+
init_tslib_es6();
|
|
128397
129235
|
var PKCS8ShroudedKeyBag = class PKCS8ShroudedKeyBag extends EncryptedPrivateKeyInfo$1 {
|
|
128398
129236
|
};
|
|
128399
129237
|
PKCS8ShroudedKeyBag = __decorate([AsnType({ type: AsnTypeTypes.Sequence })], PKCS8ShroudedKeyBag);
|
|
129238
|
+
init_tslib_es6();
|
|
128400
129239
|
var SecretBag = class {
|
|
128401
129240
|
secretTypeId = "";
|
|
128402
129241
|
secretValue = /* @__PURE__ */ new ArrayBuffer(0);
|
|
@@ -128409,6 +129248,7 @@ ${values.join("\n")}` : `${blockName} :`;
|
|
|
128409
129248
|
type: AsnPropTypes.Any,
|
|
128410
129249
|
context: 0
|
|
128411
129250
|
})], SecretBag.prototype, "secretValue", void 0);
|
|
129251
|
+
init_tslib_es6();
|
|
128412
129252
|
var MacData = class {
|
|
128413
129253
|
mac = new DigestInfo();
|
|
128414
129254
|
macSalt = new OctetString();
|
|
@@ -128423,6 +129263,7 @@ ${values.join("\n")}` : `${blockName} :`;
|
|
|
128423
129263
|
type: AsnPropTypes.Integer,
|
|
128424
129264
|
defaultValue: 1
|
|
128425
129265
|
})], MacData.prototype, "iterations", void 0);
|
|
129266
|
+
init_tslib_es6();
|
|
128426
129267
|
var PFX = class {
|
|
128427
129268
|
version = 3;
|
|
128428
129269
|
authSafe = new ContentInfo();
|
|
@@ -128437,6 +129278,7 @@ ${values.join("\n")}` : `${blockName} :`;
|
|
|
128437
129278
|
type: MacData,
|
|
128438
129279
|
optional: true
|
|
128439
129280
|
})], PFX.prototype, "macData", void 0);
|
|
129281
|
+
init_tslib_es6();
|
|
128440
129282
|
var SafeContents_1;
|
|
128441
129283
|
var SafeBag = class {
|
|
128442
129284
|
bagId = "";
|
|
@@ -128466,6 +129308,7 @@ ${values.join("\n")}` : `${blockName} :`;
|
|
|
128466
129308
|
type: AsnTypeTypes.Sequence,
|
|
128467
129309
|
itemType: SafeBag
|
|
128468
129310
|
})], SafeContents);
|
|
129311
|
+
init_tslib_es6();
|
|
128469
129312
|
var ExtensionRequest_1;
|
|
128470
129313
|
var ExtendedCertificateAttributes_1;
|
|
128471
129314
|
var SMIMECapabilities_1;
|
|
@@ -128659,6 +129502,7 @@ ${values.join("\n")}` : `${blockName} :`;
|
|
|
128659
129502
|
type: AsnTypeTypes.Sequence,
|
|
128660
129503
|
itemType: SMIMECapability
|
|
128661
129504
|
})], SMIMECapabilities);
|
|
129505
|
+
init_tslib_es6();
|
|
128662
129506
|
var Attributes_1;
|
|
128663
129507
|
var Attributes = Attributes_1 = class Attributes extends AsnArray {
|
|
128664
129508
|
constructor(items) {
|
|
@@ -128670,6 +129514,7 @@ ${values.join("\n")}` : `${blockName} :`;
|
|
|
128670
129514
|
type: AsnTypeTypes.Sequence,
|
|
128671
129515
|
itemType: Attribute$2
|
|
128672
129516
|
})], Attributes);
|
|
129517
|
+
init_tslib_es6();
|
|
128673
129518
|
var CertificationRequestInfo = class {
|
|
128674
129519
|
version = 0;
|
|
128675
129520
|
subject = new Name$1();
|
|
@@ -128688,6 +129533,7 @@ ${values.join("\n")}` : `${blockName} :`;
|
|
|
128688
129533
|
context: 0,
|
|
128689
129534
|
optional: true
|
|
128690
129535
|
})], CertificationRequestInfo.prototype, "attributes", void 0);
|
|
129536
|
+
init_tslib_es6();
|
|
128691
129537
|
var CertificationRequest = class {
|
|
128692
129538
|
certificationRequestInfo = new CertificationRequestInfo();
|
|
128693
129539
|
certificationRequestInfoRaw;
|
|
@@ -128703,6 +129549,7 @@ ${values.join("\n")}` : `${blockName} :`;
|
|
|
128703
129549
|
})], CertificationRequest.prototype, "certificationRequestInfo", void 0);
|
|
128704
129550
|
__decorate([AsnProp({ type: AlgorithmIdentifier })], CertificationRequest.prototype, "signatureAlgorithm", void 0);
|
|
128705
129551
|
__decorate([AsnProp({ type: AsnPropTypes.BitString })], CertificationRequest.prototype, "signature", void 0);
|
|
129552
|
+
init_tslib_es6();
|
|
128706
129553
|
var diAlgorithm = "crypto.algorithm";
|
|
128707
129554
|
var AlgorithmProvider = class {
|
|
128708
129555
|
getAlgorithms() {
|
|
@@ -131046,6 +131893,567 @@ ${values.join("\n")}` : `${blockName} :`;
|
|
|
131046
131893
|
return cryptoProvider;
|
|
131047
131894
|
}
|
|
131048
131895
|
});
|
|
131896
|
+
Object.defineProperty(exports, "init_tslib_es6", {
|
|
131897
|
+
enumerable: true,
|
|
131898
|
+
get: function() {
|
|
131899
|
+
return init_tslib_es6;
|
|
131900
|
+
}
|
|
131901
|
+
});
|
|
131902
|
+
Object.defineProperty(exports, "tslib_es6_exports", {
|
|
131903
|
+
enumerable: true,
|
|
131904
|
+
get: function() {
|
|
131905
|
+
return tslib_es6_exports;
|
|
131906
|
+
}
|
|
131907
|
+
});
|
|
131908
|
+
}
|
|
131909
|
+
});
|
|
131910
|
+
|
|
131911
|
+
// ../system/dist/src-CnAqG6EF.js
|
|
131912
|
+
var require_src_CnAqG6EF = __commonJS({
|
|
131913
|
+
"../system/dist/src-CnAqG6EF.js"(exports) {
|
|
131914
|
+
"use strict";
|
|
131915
|
+
var require_chunk = require_chunk_Cek0wNdY();
|
|
131916
|
+
var require_ms$1 = require_ms_LB3giGoU();
|
|
131917
|
+
var require_common4 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports2, module2) => {
|
|
131918
|
+
function setup(env) {
|
|
131919
|
+
createDebug.debug = createDebug;
|
|
131920
|
+
createDebug.default = createDebug;
|
|
131921
|
+
createDebug.coerce = coerce;
|
|
131922
|
+
createDebug.disable = disable;
|
|
131923
|
+
createDebug.enable = enable;
|
|
131924
|
+
createDebug.enabled = enabled;
|
|
131925
|
+
createDebug.humanize = require_ms$1.require_ms();
|
|
131926
|
+
createDebug.destroy = destroy;
|
|
131927
|
+
Object.keys(env).forEach((key) => {
|
|
131928
|
+
createDebug[key] = env[key];
|
|
131929
|
+
});
|
|
131930
|
+
createDebug.names = [];
|
|
131931
|
+
createDebug.skips = [];
|
|
131932
|
+
createDebug.formatters = {};
|
|
131933
|
+
function selectColor(namespace) {
|
|
131934
|
+
let hash = 0;
|
|
131935
|
+
for (let i = 0; i < namespace.length; i++) {
|
|
131936
|
+
hash = (hash << 5) - hash + namespace.charCodeAt(i);
|
|
131937
|
+
hash |= 0;
|
|
131938
|
+
}
|
|
131939
|
+
return createDebug.colors[Math.abs(hash) % createDebug.colors.length];
|
|
131940
|
+
}
|
|
131941
|
+
createDebug.selectColor = selectColor;
|
|
131942
|
+
function createDebug(namespace) {
|
|
131943
|
+
let prevTime;
|
|
131944
|
+
let enableOverride = null;
|
|
131945
|
+
let namespacesCache;
|
|
131946
|
+
let enabledCache;
|
|
131947
|
+
function debug(...args) {
|
|
131948
|
+
if (!debug.enabled) return;
|
|
131949
|
+
const self2 = debug;
|
|
131950
|
+
const curr = Number(/* @__PURE__ */ new Date());
|
|
131951
|
+
self2.diff = curr - (prevTime || curr);
|
|
131952
|
+
self2.prev = prevTime;
|
|
131953
|
+
self2.curr = curr;
|
|
131954
|
+
prevTime = curr;
|
|
131955
|
+
args[0] = createDebug.coerce(args[0]);
|
|
131956
|
+
if (typeof args[0] !== "string") args.unshift("%O");
|
|
131957
|
+
let index = 0;
|
|
131958
|
+
args[0] = args[0].replace(/%([a-zA-Z%])/g, (match, format2) => {
|
|
131959
|
+
if (match === "%%") return "%";
|
|
131960
|
+
index++;
|
|
131961
|
+
const formatter = createDebug.formatters[format2];
|
|
131962
|
+
if (typeof formatter === "function") {
|
|
131963
|
+
const val = args[index];
|
|
131964
|
+
match = formatter.call(self2, val);
|
|
131965
|
+
args.splice(index, 1);
|
|
131966
|
+
index--;
|
|
131967
|
+
}
|
|
131968
|
+
return match;
|
|
131969
|
+
});
|
|
131970
|
+
createDebug.formatArgs.call(self2, args);
|
|
131971
|
+
(self2.log || createDebug.log).apply(self2, args);
|
|
131972
|
+
}
|
|
131973
|
+
debug.namespace = namespace;
|
|
131974
|
+
debug.useColors = createDebug.useColors();
|
|
131975
|
+
debug.color = createDebug.selectColor(namespace);
|
|
131976
|
+
debug.extend = extend;
|
|
131977
|
+
debug.destroy = createDebug.destroy;
|
|
131978
|
+
Object.defineProperty(debug, "enabled", {
|
|
131979
|
+
enumerable: true,
|
|
131980
|
+
configurable: false,
|
|
131981
|
+
get: () => {
|
|
131982
|
+
if (enableOverride !== null) return enableOverride;
|
|
131983
|
+
if (namespacesCache !== createDebug.namespaces) {
|
|
131984
|
+
namespacesCache = createDebug.namespaces;
|
|
131985
|
+
enabledCache = createDebug.enabled(namespace);
|
|
131986
|
+
}
|
|
131987
|
+
return enabledCache;
|
|
131988
|
+
},
|
|
131989
|
+
set: (v) => {
|
|
131990
|
+
enableOverride = v;
|
|
131991
|
+
}
|
|
131992
|
+
});
|
|
131993
|
+
if (typeof createDebug.init === "function") createDebug.init(debug);
|
|
131994
|
+
return debug;
|
|
131995
|
+
}
|
|
131996
|
+
function extend(namespace, delimiter) {
|
|
131997
|
+
const newDebug = createDebug(this.namespace + (typeof delimiter === "undefined" ? ":" : delimiter) + namespace);
|
|
131998
|
+
newDebug.log = this.log;
|
|
131999
|
+
return newDebug;
|
|
132000
|
+
}
|
|
132001
|
+
function enable(namespaces) {
|
|
132002
|
+
createDebug.save(namespaces);
|
|
132003
|
+
createDebug.namespaces = namespaces;
|
|
132004
|
+
createDebug.names = [];
|
|
132005
|
+
createDebug.skips = [];
|
|
132006
|
+
const split = (typeof namespaces === "string" ? namespaces : "").trim().replace(/\s+/g, ",").split(",").filter(Boolean);
|
|
132007
|
+
for (const ns of split) if (ns[0] === "-") createDebug.skips.push(ns.slice(1));
|
|
132008
|
+
else createDebug.names.push(ns);
|
|
132009
|
+
}
|
|
132010
|
+
function matchesTemplate(search, template) {
|
|
132011
|
+
let searchIndex = 0;
|
|
132012
|
+
let templateIndex = 0;
|
|
132013
|
+
let starIndex = -1;
|
|
132014
|
+
let matchIndex = 0;
|
|
132015
|
+
while (searchIndex < search.length) if (templateIndex < template.length && (template[templateIndex] === search[searchIndex] || template[templateIndex] === "*")) if (template[templateIndex] === "*") {
|
|
132016
|
+
starIndex = templateIndex;
|
|
132017
|
+
matchIndex = searchIndex;
|
|
132018
|
+
templateIndex++;
|
|
132019
|
+
} else {
|
|
132020
|
+
searchIndex++;
|
|
132021
|
+
templateIndex++;
|
|
132022
|
+
}
|
|
132023
|
+
else if (starIndex !== -1) {
|
|
132024
|
+
templateIndex = starIndex + 1;
|
|
132025
|
+
matchIndex++;
|
|
132026
|
+
searchIndex = matchIndex;
|
|
132027
|
+
} else return false;
|
|
132028
|
+
while (templateIndex < template.length && template[templateIndex] === "*") templateIndex++;
|
|
132029
|
+
return templateIndex === template.length;
|
|
132030
|
+
}
|
|
132031
|
+
function disable() {
|
|
132032
|
+
const namespaces = [...createDebug.names, ...createDebug.skips.map((namespace) => "-" + namespace)].join(",");
|
|
132033
|
+
createDebug.enable("");
|
|
132034
|
+
return namespaces;
|
|
132035
|
+
}
|
|
132036
|
+
function enabled(name) {
|
|
132037
|
+
for (const skip of createDebug.skips) if (matchesTemplate(name, skip)) return false;
|
|
132038
|
+
for (const ns of createDebug.names) if (matchesTemplate(name, ns)) return true;
|
|
132039
|
+
return false;
|
|
132040
|
+
}
|
|
132041
|
+
function coerce(val) {
|
|
132042
|
+
if (val instanceof Error) return val.stack || val.message;
|
|
132043
|
+
return val;
|
|
132044
|
+
}
|
|
132045
|
+
function destroy() {
|
|
132046
|
+
console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");
|
|
132047
|
+
}
|
|
132048
|
+
createDebug.enable(createDebug.load());
|
|
132049
|
+
return createDebug;
|
|
132050
|
+
}
|
|
132051
|
+
module2.exports = setup;
|
|
132052
|
+
}));
|
|
132053
|
+
var require_browser = /* @__PURE__ */ require_chunk.__commonJSMin(((exports2, module2) => {
|
|
132054
|
+
exports2.formatArgs = formatArgs;
|
|
132055
|
+
exports2.save = save;
|
|
132056
|
+
exports2.load = load2;
|
|
132057
|
+
exports2.useColors = useColors;
|
|
132058
|
+
exports2.storage = localstorage();
|
|
132059
|
+
exports2.destroy = /* @__PURE__ */ (() => {
|
|
132060
|
+
let warned = false;
|
|
132061
|
+
return () => {
|
|
132062
|
+
if (!warned) {
|
|
132063
|
+
warned = true;
|
|
132064
|
+
console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");
|
|
132065
|
+
}
|
|
132066
|
+
};
|
|
132067
|
+
})();
|
|
132068
|
+
exports2.colors = [
|
|
132069
|
+
"#0000CC",
|
|
132070
|
+
"#0000FF",
|
|
132071
|
+
"#0033CC",
|
|
132072
|
+
"#0033FF",
|
|
132073
|
+
"#0066CC",
|
|
132074
|
+
"#0066FF",
|
|
132075
|
+
"#0099CC",
|
|
132076
|
+
"#0099FF",
|
|
132077
|
+
"#00CC00",
|
|
132078
|
+
"#00CC33",
|
|
132079
|
+
"#00CC66",
|
|
132080
|
+
"#00CC99",
|
|
132081
|
+
"#00CCCC",
|
|
132082
|
+
"#00CCFF",
|
|
132083
|
+
"#3300CC",
|
|
132084
|
+
"#3300FF",
|
|
132085
|
+
"#3333CC",
|
|
132086
|
+
"#3333FF",
|
|
132087
|
+
"#3366CC",
|
|
132088
|
+
"#3366FF",
|
|
132089
|
+
"#3399CC",
|
|
132090
|
+
"#3399FF",
|
|
132091
|
+
"#33CC00",
|
|
132092
|
+
"#33CC33",
|
|
132093
|
+
"#33CC66",
|
|
132094
|
+
"#33CC99",
|
|
132095
|
+
"#33CCCC",
|
|
132096
|
+
"#33CCFF",
|
|
132097
|
+
"#6600CC",
|
|
132098
|
+
"#6600FF",
|
|
132099
|
+
"#6633CC",
|
|
132100
|
+
"#6633FF",
|
|
132101
|
+
"#66CC00",
|
|
132102
|
+
"#66CC33",
|
|
132103
|
+
"#9900CC",
|
|
132104
|
+
"#9900FF",
|
|
132105
|
+
"#9933CC",
|
|
132106
|
+
"#9933FF",
|
|
132107
|
+
"#99CC00",
|
|
132108
|
+
"#99CC33",
|
|
132109
|
+
"#CC0000",
|
|
132110
|
+
"#CC0033",
|
|
132111
|
+
"#CC0066",
|
|
132112
|
+
"#CC0099",
|
|
132113
|
+
"#CC00CC",
|
|
132114
|
+
"#CC00FF",
|
|
132115
|
+
"#CC3300",
|
|
132116
|
+
"#CC3333",
|
|
132117
|
+
"#CC3366",
|
|
132118
|
+
"#CC3399",
|
|
132119
|
+
"#CC33CC",
|
|
132120
|
+
"#CC33FF",
|
|
132121
|
+
"#CC6600",
|
|
132122
|
+
"#CC6633",
|
|
132123
|
+
"#CC9900",
|
|
132124
|
+
"#CC9933",
|
|
132125
|
+
"#CCCC00",
|
|
132126
|
+
"#CCCC33",
|
|
132127
|
+
"#FF0000",
|
|
132128
|
+
"#FF0033",
|
|
132129
|
+
"#FF0066",
|
|
132130
|
+
"#FF0099",
|
|
132131
|
+
"#FF00CC",
|
|
132132
|
+
"#FF00FF",
|
|
132133
|
+
"#FF3300",
|
|
132134
|
+
"#FF3333",
|
|
132135
|
+
"#FF3366",
|
|
132136
|
+
"#FF3399",
|
|
132137
|
+
"#FF33CC",
|
|
132138
|
+
"#FF33FF",
|
|
132139
|
+
"#FF6600",
|
|
132140
|
+
"#FF6633",
|
|
132141
|
+
"#FF9900",
|
|
132142
|
+
"#FF9933",
|
|
132143
|
+
"#FFCC00",
|
|
132144
|
+
"#FFCC33"
|
|
132145
|
+
];
|
|
132146
|
+
function useColors() {
|
|
132147
|
+
if (typeof window !== "undefined" && window.process && (window.process.type === "renderer" || window.process.__nwjs)) return true;
|
|
132148
|
+
if (typeof navigator !== "undefined" && navigator.userAgent && navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)) return false;
|
|
132149
|
+
let m;
|
|
132150
|
+
return typeof document !== "undefined" && document.documentElement && document.documentElement.style && document.documentElement.style.WebkitAppearance || typeof window !== "undefined" && window.console && (window.console.firebug || window.console.exception && window.console.table) || typeof navigator !== "undefined" && navigator.userAgent && (m = navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)) && parseInt(m[1], 10) >= 31 || typeof navigator !== "undefined" && navigator.userAgent && navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/);
|
|
132151
|
+
}
|
|
132152
|
+
function formatArgs(args) {
|
|
132153
|
+
args[0] = (this.useColors ? "%c" : "") + this.namespace + (this.useColors ? " %c" : " ") + args[0] + (this.useColors ? "%c " : " ") + "+" + module2.exports.humanize(this.diff);
|
|
132154
|
+
if (!this.useColors) return;
|
|
132155
|
+
const c = "color: " + this.color;
|
|
132156
|
+
args.splice(1, 0, c, "color: inherit");
|
|
132157
|
+
let index = 0;
|
|
132158
|
+
let lastC = 0;
|
|
132159
|
+
args[0].replace(/%[a-zA-Z%]/g, (match) => {
|
|
132160
|
+
if (match === "%%") return;
|
|
132161
|
+
index++;
|
|
132162
|
+
if (match === "%c") lastC = index;
|
|
132163
|
+
});
|
|
132164
|
+
args.splice(lastC, 0, c);
|
|
132165
|
+
}
|
|
132166
|
+
exports2.log = console.debug || console.log || (() => {
|
|
132167
|
+
});
|
|
132168
|
+
function save(namespaces) {
|
|
132169
|
+
try {
|
|
132170
|
+
if (namespaces) exports2.storage.setItem("debug", namespaces);
|
|
132171
|
+
else exports2.storage.removeItem("debug");
|
|
132172
|
+
} catch (error) {
|
|
132173
|
+
}
|
|
132174
|
+
}
|
|
132175
|
+
function load2() {
|
|
132176
|
+
let r;
|
|
132177
|
+
try {
|
|
132178
|
+
r = exports2.storage.getItem("debug") || exports2.storage.getItem("DEBUG");
|
|
132179
|
+
} catch (error) {
|
|
132180
|
+
}
|
|
132181
|
+
if (!r && typeof process !== "undefined" && "env" in process) r = process.env.DEBUG;
|
|
132182
|
+
return r;
|
|
132183
|
+
}
|
|
132184
|
+
function localstorage() {
|
|
132185
|
+
try {
|
|
132186
|
+
return localStorage;
|
|
132187
|
+
} catch (error) {
|
|
132188
|
+
}
|
|
132189
|
+
}
|
|
132190
|
+
module2.exports = require_common4()(exports2);
|
|
132191
|
+
var { formatters } = module2.exports;
|
|
132192
|
+
formatters.j = function(v) {
|
|
132193
|
+
try {
|
|
132194
|
+
return JSON.stringify(v);
|
|
132195
|
+
} catch (error) {
|
|
132196
|
+
return "[UnexpectedJSONParseError]: " + error.message;
|
|
132197
|
+
}
|
|
132198
|
+
};
|
|
132199
|
+
}));
|
|
132200
|
+
var require_has_flag3 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports2, module2) => {
|
|
132201
|
+
module2.exports = (flag, argv = process.argv) => {
|
|
132202
|
+
const prefix = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--";
|
|
132203
|
+
const position = argv.indexOf(prefix + flag);
|
|
132204
|
+
const terminatorPosition = argv.indexOf("--");
|
|
132205
|
+
return position !== -1 && (terminatorPosition === -1 || position < terminatorPosition);
|
|
132206
|
+
};
|
|
132207
|
+
}));
|
|
132208
|
+
var require_supports_color2 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports2, module2) => {
|
|
132209
|
+
var os = __require("os");
|
|
132210
|
+
var tty$1 = __require("tty");
|
|
132211
|
+
var hasFlag = require_has_flag3();
|
|
132212
|
+
var { env } = process;
|
|
132213
|
+
var flagForceColor;
|
|
132214
|
+
if (hasFlag("no-color") || hasFlag("no-colors") || hasFlag("color=false") || hasFlag("color=never")) flagForceColor = 0;
|
|
132215
|
+
else if (hasFlag("color") || hasFlag("colors") || hasFlag("color=true") || hasFlag("color=always")) flagForceColor = 1;
|
|
132216
|
+
function envForceColor() {
|
|
132217
|
+
if ("FORCE_COLOR" in env) {
|
|
132218
|
+
if (env.FORCE_COLOR === "true") return 1;
|
|
132219
|
+
if (env.FORCE_COLOR === "false") return 0;
|
|
132220
|
+
return env.FORCE_COLOR.length === 0 ? 1 : Math.min(Number.parseInt(env.FORCE_COLOR, 10), 3);
|
|
132221
|
+
}
|
|
132222
|
+
}
|
|
132223
|
+
function translateLevel(level) {
|
|
132224
|
+
if (level === 0) return false;
|
|
132225
|
+
return {
|
|
132226
|
+
level,
|
|
132227
|
+
hasBasic: true,
|
|
132228
|
+
has256: level >= 2,
|
|
132229
|
+
has16m: level >= 3
|
|
132230
|
+
};
|
|
132231
|
+
}
|
|
132232
|
+
function supportsColor(haveStream, { streamIsTTY, sniffFlags = true } = {}) {
|
|
132233
|
+
const noFlagForceColor = envForceColor();
|
|
132234
|
+
if (noFlagForceColor !== void 0) flagForceColor = noFlagForceColor;
|
|
132235
|
+
const forceColor = sniffFlags ? flagForceColor : noFlagForceColor;
|
|
132236
|
+
if (forceColor === 0) return 0;
|
|
132237
|
+
if (sniffFlags) {
|
|
132238
|
+
if (hasFlag("color=16m") || hasFlag("color=full") || hasFlag("color=truecolor")) return 3;
|
|
132239
|
+
if (hasFlag("color=256")) return 2;
|
|
132240
|
+
}
|
|
132241
|
+
if (haveStream && !streamIsTTY && forceColor === void 0) return 0;
|
|
132242
|
+
const min = forceColor || 0;
|
|
132243
|
+
if (env.TERM === "dumb") return min;
|
|
132244
|
+
if (process.platform === "win32") {
|
|
132245
|
+
const osRelease = os.release().split(".");
|
|
132246
|
+
if (Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) return Number(osRelease[2]) >= 14931 ? 3 : 2;
|
|
132247
|
+
return 1;
|
|
132248
|
+
}
|
|
132249
|
+
if ("CI" in env) {
|
|
132250
|
+
if ([
|
|
132251
|
+
"TRAVIS",
|
|
132252
|
+
"CIRCLECI",
|
|
132253
|
+
"APPVEYOR",
|
|
132254
|
+
"GITLAB_CI",
|
|
132255
|
+
"GITHUB_ACTIONS",
|
|
132256
|
+
"BUILDKITE",
|
|
132257
|
+
"DRONE"
|
|
132258
|
+
].some((sign) => sign in env) || env.CI_NAME === "codeship") return 1;
|
|
132259
|
+
return min;
|
|
132260
|
+
}
|
|
132261
|
+
if ("TEAMCITY_VERSION" in env) return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0;
|
|
132262
|
+
if (env.COLORTERM === "truecolor") return 3;
|
|
132263
|
+
if ("TERM_PROGRAM" in env) {
|
|
132264
|
+
const version = Number.parseInt((env.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
|
|
132265
|
+
switch (env.TERM_PROGRAM) {
|
|
132266
|
+
case "iTerm.app":
|
|
132267
|
+
return version >= 3 ? 3 : 2;
|
|
132268
|
+
case "Apple_Terminal":
|
|
132269
|
+
return 2;
|
|
132270
|
+
}
|
|
132271
|
+
}
|
|
132272
|
+
if (/-256(color)?$/i.test(env.TERM)) return 2;
|
|
132273
|
+
if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)) return 1;
|
|
132274
|
+
if ("COLORTERM" in env) return 1;
|
|
132275
|
+
return min;
|
|
132276
|
+
}
|
|
132277
|
+
function getSupportLevel(stream, options = {}) {
|
|
132278
|
+
return translateLevel(supportsColor(stream, {
|
|
132279
|
+
streamIsTTY: stream && stream.isTTY,
|
|
132280
|
+
...options
|
|
132281
|
+
}));
|
|
132282
|
+
}
|
|
132283
|
+
module2.exports = {
|
|
132284
|
+
supportsColor: getSupportLevel,
|
|
132285
|
+
stdout: getSupportLevel({ isTTY: tty$1.isatty(1) }),
|
|
132286
|
+
stderr: getSupportLevel({ isTTY: tty$1.isatty(2) })
|
|
132287
|
+
};
|
|
132288
|
+
}));
|
|
132289
|
+
var require_node7 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports2, module2) => {
|
|
132290
|
+
var tty = __require("tty");
|
|
132291
|
+
var util = __require("util");
|
|
132292
|
+
exports2.init = init;
|
|
132293
|
+
exports2.log = log;
|
|
132294
|
+
exports2.formatArgs = formatArgs;
|
|
132295
|
+
exports2.save = save;
|
|
132296
|
+
exports2.load = load2;
|
|
132297
|
+
exports2.useColors = useColors;
|
|
132298
|
+
exports2.destroy = util.deprecate(() => {
|
|
132299
|
+
}, "Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");
|
|
132300
|
+
exports2.colors = [
|
|
132301
|
+
6,
|
|
132302
|
+
2,
|
|
132303
|
+
3,
|
|
132304
|
+
4,
|
|
132305
|
+
5,
|
|
132306
|
+
1
|
|
132307
|
+
];
|
|
132308
|
+
try {
|
|
132309
|
+
const supportsColor = require_supports_color2();
|
|
132310
|
+
if (supportsColor && (supportsColor.stderr || supportsColor).level >= 2) exports2.colors = [
|
|
132311
|
+
20,
|
|
132312
|
+
21,
|
|
132313
|
+
26,
|
|
132314
|
+
27,
|
|
132315
|
+
32,
|
|
132316
|
+
33,
|
|
132317
|
+
38,
|
|
132318
|
+
39,
|
|
132319
|
+
40,
|
|
132320
|
+
41,
|
|
132321
|
+
42,
|
|
132322
|
+
43,
|
|
132323
|
+
44,
|
|
132324
|
+
45,
|
|
132325
|
+
56,
|
|
132326
|
+
57,
|
|
132327
|
+
62,
|
|
132328
|
+
63,
|
|
132329
|
+
68,
|
|
132330
|
+
69,
|
|
132331
|
+
74,
|
|
132332
|
+
75,
|
|
132333
|
+
76,
|
|
132334
|
+
77,
|
|
132335
|
+
78,
|
|
132336
|
+
79,
|
|
132337
|
+
80,
|
|
132338
|
+
81,
|
|
132339
|
+
92,
|
|
132340
|
+
93,
|
|
132341
|
+
98,
|
|
132342
|
+
99,
|
|
132343
|
+
112,
|
|
132344
|
+
113,
|
|
132345
|
+
128,
|
|
132346
|
+
129,
|
|
132347
|
+
134,
|
|
132348
|
+
135,
|
|
132349
|
+
148,
|
|
132350
|
+
149,
|
|
132351
|
+
160,
|
|
132352
|
+
161,
|
|
132353
|
+
162,
|
|
132354
|
+
163,
|
|
132355
|
+
164,
|
|
132356
|
+
165,
|
|
132357
|
+
166,
|
|
132358
|
+
167,
|
|
132359
|
+
168,
|
|
132360
|
+
169,
|
|
132361
|
+
170,
|
|
132362
|
+
171,
|
|
132363
|
+
172,
|
|
132364
|
+
173,
|
|
132365
|
+
178,
|
|
132366
|
+
179,
|
|
132367
|
+
184,
|
|
132368
|
+
185,
|
|
132369
|
+
196,
|
|
132370
|
+
197,
|
|
132371
|
+
198,
|
|
132372
|
+
199,
|
|
132373
|
+
200,
|
|
132374
|
+
201,
|
|
132375
|
+
202,
|
|
132376
|
+
203,
|
|
132377
|
+
204,
|
|
132378
|
+
205,
|
|
132379
|
+
206,
|
|
132380
|
+
207,
|
|
132381
|
+
208,
|
|
132382
|
+
209,
|
|
132383
|
+
214,
|
|
132384
|
+
215,
|
|
132385
|
+
220,
|
|
132386
|
+
221
|
|
132387
|
+
];
|
|
132388
|
+
} catch (error) {
|
|
132389
|
+
}
|
|
132390
|
+
exports2.inspectOpts = Object.keys(process.env).filter((key) => {
|
|
132391
|
+
return /^debug_/i.test(key);
|
|
132392
|
+
}).reduce((obj, key) => {
|
|
132393
|
+
const prop = key.substring(6).toLowerCase().replace(/_([a-z])/g, (_, k) => {
|
|
132394
|
+
return k.toUpperCase();
|
|
132395
|
+
});
|
|
132396
|
+
let val = process.env[key];
|
|
132397
|
+
if (/^(yes|on|true|enabled)$/i.test(val)) val = true;
|
|
132398
|
+
else if (/^(no|off|false|disabled)$/i.test(val)) val = false;
|
|
132399
|
+
else if (val === "null") val = null;
|
|
132400
|
+
else val = Number(val);
|
|
132401
|
+
obj[prop] = val;
|
|
132402
|
+
return obj;
|
|
132403
|
+
}, {});
|
|
132404
|
+
function useColors() {
|
|
132405
|
+
return "colors" in exports2.inspectOpts ? Boolean(exports2.inspectOpts.colors) : tty.isatty(process.stderr.fd);
|
|
132406
|
+
}
|
|
132407
|
+
function formatArgs(args) {
|
|
132408
|
+
const { namespace: name, useColors: useColors2 } = this;
|
|
132409
|
+
if (useColors2) {
|
|
132410
|
+
const c = this.color;
|
|
132411
|
+
const colorCode = "\x1B[3" + (c < 8 ? c : "8;5;" + c);
|
|
132412
|
+
const prefix = ` ${colorCode};1m${name} \x1B[0m`;
|
|
132413
|
+
args[0] = prefix + args[0].split("\n").join("\n" + prefix);
|
|
132414
|
+
args.push(colorCode + "m+" + module2.exports.humanize(this.diff) + "\x1B[0m");
|
|
132415
|
+
} else args[0] = getDate() + name + " " + args[0];
|
|
132416
|
+
}
|
|
132417
|
+
function getDate() {
|
|
132418
|
+
if (exports2.inspectOpts.hideDate) return "";
|
|
132419
|
+
return (/* @__PURE__ */ new Date()).toISOString() + " ";
|
|
132420
|
+
}
|
|
132421
|
+
function log(...args) {
|
|
132422
|
+
return process.stderr.write(util.formatWithOptions(exports2.inspectOpts, ...args) + "\n");
|
|
132423
|
+
}
|
|
132424
|
+
function save(namespaces) {
|
|
132425
|
+
if (namespaces) process.env.DEBUG = namespaces;
|
|
132426
|
+
else delete process.env.DEBUG;
|
|
132427
|
+
}
|
|
132428
|
+
function load2() {
|
|
132429
|
+
return process.env.DEBUG;
|
|
132430
|
+
}
|
|
132431
|
+
function init(debug) {
|
|
132432
|
+
debug.inspectOpts = {};
|
|
132433
|
+
const keys = Object.keys(exports2.inspectOpts);
|
|
132434
|
+
for (let i = 0; i < keys.length; i++) debug.inspectOpts[keys[i]] = exports2.inspectOpts[keys[i]];
|
|
132435
|
+
}
|
|
132436
|
+
module2.exports = require_common4()(exports2);
|
|
132437
|
+
var { formatters } = module2.exports;
|
|
132438
|
+
formatters.o = function(v) {
|
|
132439
|
+
this.inspectOpts.colors = this.useColors;
|
|
132440
|
+
return util.inspect(v, this.inspectOpts).split("\n").map((str) => str.trim()).join(" ");
|
|
132441
|
+
};
|
|
132442
|
+
formatters.O = function(v) {
|
|
132443
|
+
this.inspectOpts.colors = this.useColors;
|
|
132444
|
+
return util.inspect(v, this.inspectOpts);
|
|
132445
|
+
};
|
|
132446
|
+
}));
|
|
132447
|
+
var require_src2 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports2, module2) => {
|
|
132448
|
+
if (typeof process === "undefined" || process.type === "renderer" || process.browser === true || process.__nwjs) module2.exports = require_browser();
|
|
132449
|
+
else module2.exports = require_node7();
|
|
132450
|
+
}));
|
|
132451
|
+
Object.defineProperty(exports, "require_src", {
|
|
132452
|
+
enumerable: true,
|
|
132453
|
+
get: function() {
|
|
132454
|
+
return require_src2;
|
|
132455
|
+
}
|
|
132456
|
+
});
|
|
131049
132457
|
}
|
|
131050
132458
|
});
|
|
131051
132459
|
|
|
@@ -147534,10 +148942,11 @@ var require_system_config_addon = __commonJS({
|
|
|
147534
148942
|
[Symbol.toStringTag]: { value: "Module" }
|
|
147535
148943
|
});
|
|
147536
148944
|
var require_chunk = require_chunk_Cek0wNdY();
|
|
147537
|
-
var require_dist10 =
|
|
147538
|
-
var
|
|
147539
|
-
var require_constants$8 =
|
|
147540
|
-
var require_x509_es =
|
|
148945
|
+
var require_dist10 = require_dist_DxiDI8hZ();
|
|
148946
|
+
var require_safe_buffer$1 = require_safe_buffer_D3aoa_7X();
|
|
148947
|
+
var require_constants$8 = require_constants_C4jZO_qO();
|
|
148948
|
+
var require_x509_es = require_x509_es_Dzl0BbmG();
|
|
148949
|
+
var require_src$1 = require_src_CnAqG6EF();
|
|
147541
148950
|
var zod = require_zod();
|
|
147542
148951
|
var node_crypto = __require("crypto");
|
|
147543
148952
|
var node_net = __require("net");
|
|
@@ -158828,7 +160237,7 @@ globstar while`, t, d, e, u, m), this.matchOne(t.slice(d), e.slice(u), s)) retur
|
|
|
158828
160237
|
}));
|
|
158829
160238
|
var require_utils$3 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports2, module2) => {
|
|
158830
160239
|
var kleur = require_kleur2();
|
|
158831
|
-
var os$
|
|
160240
|
+
var os$18 = __require("os");
|
|
158832
160241
|
var path$40 = __require("path");
|
|
158833
160242
|
var fs$20 = __require("fs");
|
|
158834
160243
|
var { TimeoutError } = require_errors$2();
|
|
@@ -158920,7 +160329,7 @@ globstar while`, t, d, e, u, m), this.matchOne(t.slice(d), e.slice(u), s)) retur
|
|
|
158920
160329
|
* @returns
|
|
158921
160330
|
*/
|
|
158922
160331
|
getNodeID() {
|
|
158923
|
-
return os$
|
|
160332
|
+
return os$18.hostname().toLowerCase() + "-" + process.pid;
|
|
158924
160333
|
},
|
|
158925
160334
|
/**
|
|
158926
160335
|
* Get list of local IPs
|
|
@@ -158930,7 +160339,7 @@ globstar while`, t, d, e, u, m), this.matchOne(t.slice(d), e.slice(u), s)) retur
|
|
|
158930
160339
|
getIpList() {
|
|
158931
160340
|
const list = [];
|
|
158932
160341
|
const ilist = [];
|
|
158933
|
-
const interfaces = os$
|
|
160342
|
+
const interfaces = os$18.networkInterfaces();
|
|
158934
160343
|
for (let iface in interfaces) for (let i in interfaces[iface]) {
|
|
158935
160344
|
const f = interfaces[iface]?.[i];
|
|
158936
160345
|
if (f.family === "IPv4") if (f.internal) {
|
|
@@ -160407,7 +161816,7 @@ globstar while`, t, d, e, u, m), this.matchOne(t.slice(d), e.slice(u), s)) retur
|
|
|
160407
161816
|
var require_datadog$2 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports2, module2) => {
|
|
160408
161817
|
var BaseReporter = require_base$8();
|
|
160409
161818
|
var _ = require_lodash2();
|
|
160410
|
-
var os$
|
|
161819
|
+
var os$17 = __require("os");
|
|
160411
161820
|
var { MoleculerError } = require_errors$2();
|
|
160412
161821
|
var METRIC = require_constants$6();
|
|
160413
161822
|
var { isFunction } = require_utils$3();
|
|
@@ -160421,7 +161830,7 @@ globstar while`, t, d, e, u, m), this.matchOne(t.slice(d), e.slice(u), s)) retur
|
|
|
160421
161830
|
constructor(opts) {
|
|
160422
161831
|
super(opts);
|
|
160423
161832
|
this.opts = _.defaultsDeep(this.opts, {
|
|
160424
|
-
host: os$
|
|
161833
|
+
host: os$17.hostname(),
|
|
160425
161834
|
baseUrl: BASE_URL,
|
|
160426
161835
|
apiVersion: "v1",
|
|
160427
161836
|
path: "/series",
|
|
@@ -161017,17 +162426,17 @@ globstar while`, t, d, e, u, m), this.matchOne(t.slice(d), e.slice(u), s)) retur
|
|
|
161017
162426
|
});
|
|
161018
162427
|
}));
|
|
161019
162428
|
var require_cpu_usage$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports2, module2) => {
|
|
161020
|
-
var os$
|
|
162429
|
+
var os$16 = __require("os");
|
|
161021
162430
|
module2.exports = function getCpuUsage(sampleTime = 100) {
|
|
161022
162431
|
return new Promise((resolve, reject) => {
|
|
161023
162432
|
try {
|
|
161024
|
-
const first = os$
|
|
162433
|
+
const first = os$16.cpus().map((cpu) => cpu.times);
|
|
161025
162434
|
setTimeout(() => {
|
|
161026
162435
|
try {
|
|
161027
|
-
const second = os$
|
|
162436
|
+
const second = os$16.cpus().map((cpu) => cpu.times);
|
|
161028
162437
|
setTimeout(() => {
|
|
161029
162438
|
try {
|
|
161030
|
-
const third = os$
|
|
162439
|
+
const third = os$16.cpus().map((cpu) => cpu.times);
|
|
161031
162440
|
const usages = [];
|
|
161032
162441
|
for (let i = 0; i < first.length; i++) {
|
|
161033
162442
|
const first_idle = first[i].idle;
|
|
@@ -161058,7 +162467,7 @@ globstar while`, t, d, e, u, m), this.matchOne(t.slice(d), e.slice(u), s)) retur
|
|
|
161058
162467
|
};
|
|
161059
162468
|
}));
|
|
161060
162469
|
var require_commons2 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports2, module2) => {
|
|
161061
|
-
var os$
|
|
162470
|
+
var os$15 = __require("os");
|
|
161062
162471
|
var METRIC = require_constants$6();
|
|
161063
162472
|
var cpuUsage = require_cpu_usage$1();
|
|
161064
162473
|
var v8;
|
|
@@ -161235,27 +162644,27 @@ globstar while`, t, d, e, u, m), this.matchOne(t.slice(d), e.slice(u), s)) retur
|
|
|
161235
162644
|
name: METRIC.OS_TYPE,
|
|
161236
162645
|
type: METRIC.TYPE_INFO,
|
|
161237
162646
|
description: "OS type"
|
|
161238
|
-
}).set(os$
|
|
162647
|
+
}).set(os$15.type());
|
|
161239
162648
|
this.register({
|
|
161240
162649
|
name: METRIC.OS_RELEASE,
|
|
161241
162650
|
type: METRIC.TYPE_INFO,
|
|
161242
162651
|
description: "OS release"
|
|
161243
|
-
}).set(os$
|
|
162652
|
+
}).set(os$15.release());
|
|
161244
162653
|
this.register({
|
|
161245
162654
|
name: METRIC.OS_HOSTNAME,
|
|
161246
162655
|
type: METRIC.TYPE_INFO,
|
|
161247
162656
|
description: "Hostname"
|
|
161248
|
-
}).set(os$
|
|
162657
|
+
}).set(os$15.hostname());
|
|
161249
162658
|
this.register({
|
|
161250
162659
|
name: METRIC.OS_ARCH,
|
|
161251
162660
|
type: METRIC.TYPE_INFO,
|
|
161252
162661
|
description: "OS architecture"
|
|
161253
|
-
}).set(os$
|
|
162662
|
+
}).set(os$15.arch());
|
|
161254
162663
|
this.register({
|
|
161255
162664
|
name: METRIC.OS_PLATFORM,
|
|
161256
162665
|
type: METRIC.TYPE_INFO,
|
|
161257
162666
|
description: "OS platform"
|
|
161258
|
-
}).set(os$
|
|
162667
|
+
}).set(os$15.platform());
|
|
161259
162668
|
const userInfo = getUserInfo();
|
|
161260
162669
|
this.register({
|
|
161261
162670
|
name: METRIC.OS_USER_UID,
|
|
@@ -161401,22 +162810,22 @@ globstar while`, t, d, e, u, m), this.matchOne(t.slice(d), e.slice(u), s)) retur
|
|
|
161401
162810
|
}
|
|
161402
162811
|
this.set(METRIC.PROCESS_UPTIME, process.uptime());
|
|
161403
162812
|
this.set(METRIC.PROCESS_INTERNAL_ACTIVE_HANDLES, process.getActiveResourcesInfo().length);
|
|
161404
|
-
const freeMem = os$
|
|
161405
|
-
const totalMem = os$
|
|
162813
|
+
const freeMem = os$15.freemem();
|
|
162814
|
+
const totalMem = os$15.totalmem();
|
|
161406
162815
|
const usedMem = totalMem - freeMem;
|
|
161407
162816
|
this.set(METRIC.OS_MEMORY_FREE, freeMem);
|
|
161408
162817
|
this.set(METRIC.OS_MEMORY_USED, usedMem);
|
|
161409
162818
|
this.set(METRIC.OS_MEMORY_TOTAL, totalMem);
|
|
161410
|
-
this.set(METRIC.OS_UPTIME, os$
|
|
161411
|
-
this.set(METRIC.OS_TYPE, os$
|
|
161412
|
-
this.set(METRIC.OS_RELEASE, os$
|
|
161413
|
-
this.set(METRIC.OS_HOSTNAME, os$
|
|
161414
|
-
this.set(METRIC.OS_ARCH, os$
|
|
161415
|
-
this.set(METRIC.OS_PLATFORM, os$
|
|
162819
|
+
this.set(METRIC.OS_UPTIME, os$15.uptime());
|
|
162820
|
+
this.set(METRIC.OS_TYPE, os$15.type());
|
|
162821
|
+
this.set(METRIC.OS_RELEASE, os$15.release());
|
|
162822
|
+
this.set(METRIC.OS_HOSTNAME, os$15.hostname());
|
|
162823
|
+
this.set(METRIC.OS_ARCH, os$15.arch());
|
|
162824
|
+
this.set(METRIC.OS_PLATFORM, os$15.platform());
|
|
161416
162825
|
const getNetworkInterfaces = () => {
|
|
161417
162826
|
const list = [];
|
|
161418
162827
|
const ilist = [];
|
|
161419
|
-
const interfaces2 = os$
|
|
162828
|
+
const interfaces2 = os$15.networkInterfaces();
|
|
161420
162829
|
for (let iface in interfaces2) for (let i in interfaces2[iface]) {
|
|
161421
162830
|
const f = interfaces2[iface][i];
|
|
161422
162831
|
if (f.internal) ilist.push({
|
|
@@ -161446,7 +162855,7 @@ globstar while`, t, d, e, u, m), this.matchOne(t.slice(d), e.slice(u), s)) retur
|
|
|
161446
162855
|
this.set(METRIC.OS_DATETIME_ISO, d.toISOString());
|
|
161447
162856
|
this.set(METRIC.OS_DATETIME_UTC, d.toUTCString());
|
|
161448
162857
|
this.set(METRIC.OS_DATETIME_TZ_OFFSET, d.getTimezoneOffset());
|
|
161449
|
-
const load3 = os$
|
|
162858
|
+
const load3 = os$15.loadavg();
|
|
161450
162859
|
this.set(METRIC.OS_CPU_LOAD_1, load3[0]);
|
|
161451
162860
|
this.set(METRIC.OS_CPU_LOAD_5, load3[1]);
|
|
161452
162861
|
this.set(METRIC.OS_CPU_LOAD_15, load3[2]);
|
|
@@ -161454,7 +162863,7 @@ globstar while`, t, d, e, u, m), this.matchOne(t.slice(d), e.slice(u), s)) retur
|
|
|
161454
162863
|
return this.broker.Promise.resolve().then(() => cpuUsage().then((res) => {
|
|
161455
162864
|
this.set(METRIC.OS_CPU_UTILIZATION, res.avg);
|
|
161456
162865
|
try {
|
|
161457
|
-
const cpus = os$
|
|
162866
|
+
const cpus = os$15.cpus();
|
|
161458
162867
|
this.set(METRIC.OS_CPU_TOTAL, cpus.length);
|
|
161459
162868
|
this.set(METRIC.OS_CPU_USER, cpus.reduce((a, b) => a + b.times.user, 0));
|
|
161460
162869
|
this.set(METRIC.OS_CPU_SYSTEM, cpus.reduce((a, b) => a + b.times.sys, 0));
|
|
@@ -161473,7 +162882,7 @@ globstar while`, t, d, e, u, m), this.matchOne(t.slice(d), e.slice(u), s)) retur
|
|
|
161473
162882
|
}
|
|
161474
162883
|
function getUserInfo() {
|
|
161475
162884
|
try {
|
|
161476
|
-
return os$
|
|
162885
|
+
return os$15.userInfo();
|
|
161477
162886
|
} catch {
|
|
161478
162887
|
return {};
|
|
161479
162888
|
}
|
|
@@ -164872,14 +166281,14 @@ globstar while`, t, d, e, u, m), this.matchOne(t.slice(d), e.slice(u), s)) retur
|
|
|
164872
166281
|
}));
|
|
164873
166282
|
var require_inherits2 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports2, module2) => {
|
|
164874
166283
|
try {
|
|
164875
|
-
var util$
|
|
164876
|
-
if (typeof util$
|
|
164877
|
-
module2.exports = util$
|
|
166284
|
+
var util$9 = __require("util");
|
|
166285
|
+
if (typeof util$9.inherits !== "function") throw "";
|
|
166286
|
+
module2.exports = util$9.inherits;
|
|
164878
166287
|
} catch (e) {
|
|
164879
166288
|
module2.exports = require_inherits_browser2();
|
|
164880
166289
|
}
|
|
164881
166290
|
}));
|
|
164882
|
-
var require_node$
|
|
166291
|
+
var require_node$2 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports2, module2) => {
|
|
164883
166292
|
module2.exports = __require("util").deprecate;
|
|
164884
166293
|
}));
|
|
164885
166294
|
var require__stream_writable = /* @__PURE__ */ require_chunk.__commonJSMin(((exports2, module2) => {
|
|
@@ -164894,7 +166303,7 @@ globstar while`, t, d, e, u, m), this.matchOne(t.slice(d), e.slice(u), s)) retur
|
|
|
164894
166303
|
}
|
|
164895
166304
|
var Duplex;
|
|
164896
166305
|
Writable.WritableState = WritableState;
|
|
164897
|
-
var internalUtil = { deprecate: require_node$
|
|
166306
|
+
var internalUtil = { deprecate: require_node$2() };
|
|
164898
166307
|
var Stream = require_stream$1();
|
|
164899
166308
|
var Buffer$13 = __require("buffer").Buffer;
|
|
164900
166309
|
var OurUint8Array = (typeof global !== "undefined" ? global : typeof window !== "undefined" ? window : typeof self !== "undefined" ? self : {}).Uint8Array || function() {
|
|
@@ -165365,7 +166774,7 @@ globstar while`, t, d, e, u, m), this.matchOne(t.slice(d), e.slice(u), s)) retur
|
|
|
165365
166774
|
});
|
|
165366
166775
|
}));
|
|
165367
166776
|
var require_string_decoder4 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports2) => {
|
|
165368
|
-
var Buffer2 =
|
|
166777
|
+
var Buffer2 = require_safe_buffer$1.require_safe_buffer().Buffer;
|
|
165369
166778
|
var isEncoding = Buffer2.isEncoding || function(encoding) {
|
|
165370
166779
|
encoding = "" + encoding;
|
|
165371
166780
|
switch (encoding && encoding.toLowerCase()) {
|
|
@@ -167113,7 +168522,7 @@ globstar while`, t, d, e, u, m), this.matchOne(t.slice(d), e.slice(u), s)) retur
|
|
|
167113
168522
|
module2.exports.encoder = Encoder;
|
|
167114
168523
|
}));
|
|
167115
168524
|
var require_helpers$2 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports2) => {
|
|
167116
|
-
var util$
|
|
168525
|
+
var util$8 = __require("util");
|
|
167117
168526
|
exports2.IncompleteBufferError = IncompleteBufferError;
|
|
167118
168527
|
function IncompleteBufferError(message2) {
|
|
167119
168528
|
Error.call(this);
|
|
@@ -167121,7 +168530,7 @@ globstar while`, t, d, e, u, m), this.matchOne(t.slice(d), e.slice(u), s)) retur
|
|
|
167121
168530
|
this.name = this.constructor.name;
|
|
167122
168531
|
this.message = message2 || "unable to decode";
|
|
167123
168532
|
}
|
|
167124
|
-
util$
|
|
168533
|
+
util$8.inherits(IncompleteBufferError, Error);
|
|
167125
168534
|
exports2.isFloat = function isFloat(n) {
|
|
167126
168535
|
return n % 1 !== 0;
|
|
167127
168536
|
};
|
|
@@ -167342,7 +168751,7 @@ globstar while`, t, d, e, u, m), this.matchOne(t.slice(d), e.slice(u), s)) retur
|
|
|
167342
168751
|
}
|
|
167343
168752
|
}));
|
|
167344
168753
|
var require_encoder2 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports2, module2) => {
|
|
167345
|
-
var Buffer2 =
|
|
168754
|
+
var Buffer2 = require_safe_buffer$1.require_safe_buffer().Buffer;
|
|
167346
168755
|
var bl = require_bl$1();
|
|
167347
168756
|
var isFloat = require_helpers$2().isFloat;
|
|
167348
168757
|
module2.exports = function buildEncode(encodingTypes, options) {
|
|
@@ -167663,7 +169072,7 @@ globstar while`, t, d, e, u, m), this.matchOne(t.slice(d), e.slice(u), s)) retur
|
|
|
167663
169072
|
};
|
|
167664
169073
|
}));
|
|
167665
169074
|
var require_msgpack52 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports2, module2) => {
|
|
167666
|
-
var Buffer2 =
|
|
169075
|
+
var Buffer2 = require_safe_buffer$1.require_safe_buffer().Buffer;
|
|
167667
169076
|
var assert$3 = __require("assert");
|
|
167668
169077
|
var bl = require_bl$1();
|
|
167669
169078
|
var streams = require_streams2();
|
|
@@ -168247,7 +169656,7 @@ globstar while`, t, d, e, u, m), this.matchOne(t.slice(d), e.slice(u), s)) retur
|
|
|
168247
169656
|
var require_cbor_extract2 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports2, module2) => {
|
|
168248
169657
|
module2.exports = require_node_gyp_build_optional_packages2()(__dirname);
|
|
168249
169658
|
}));
|
|
168250
|
-
var require_node$
|
|
169659
|
+
var require_node$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports2) => {
|
|
168251
169660
|
var stream$1 = __require("stream");
|
|
168252
169661
|
var module$1$1 = __require("module");
|
|
168253
169662
|
var _documentCurrentScript = typeof document !== "undefined" ? document.currentScript : null;
|
|
@@ -170414,7 +171823,7 @@ globstar while`, t, d, e, u, m), this.matchOne(t.slice(d), e.slice(u), s)) retur
|
|
|
170414
171823
|
init(broker) {
|
|
170415
171824
|
super.init(broker);
|
|
170416
171825
|
try {
|
|
170417
|
-
const Cbor = require_node$
|
|
171826
|
+
const Cbor = require_node$1();
|
|
170418
171827
|
this.encoder = new Cbor.Encoder(this.opts);
|
|
170419
171828
|
} catch (err) {
|
|
170420
171829
|
this.broker.fatal("The 'cbor-x' package is missing! Please install it with 'npm install cbor-x --save' command!", err, true);
|
|
@@ -171087,7 +172496,7 @@ globstar while`, t, d, e, u, m), this.matchOne(t.slice(d), e.slice(u), s)) retur
|
|
|
171087
172496
|
register
|
|
171088
172497
|
});
|
|
171089
172498
|
}));
|
|
171090
|
-
var
|
|
172499
|
+
var require_node7 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports2, module2) => {
|
|
171091
172500
|
var Node = class {
|
|
171092
172501
|
/**
|
|
171093
172502
|
* Creates an instance of Node.
|
|
@@ -171189,8 +172598,8 @@ globstar while`, t, d, e, u, m), this.matchOne(t.slice(d), e.slice(u), s)) retur
|
|
|
171189
172598
|
}));
|
|
171190
172599
|
var require_node_catalog2 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports2, module2) => {
|
|
171191
172600
|
var _ = require_lodash2();
|
|
171192
|
-
var os$
|
|
171193
|
-
var Node =
|
|
172601
|
+
var os$14 = __require("os");
|
|
172602
|
+
var Node = require_node7();
|
|
171194
172603
|
var { getIpList } = require_utils$3();
|
|
171195
172604
|
var NodeCatalog = class {
|
|
171196
172605
|
/**
|
|
@@ -171220,7 +172629,7 @@ globstar while`, t, d, e, u, m), this.matchOne(t.slice(d), e.slice(u), s)) retur
|
|
|
171220
172629
|
node.local = true;
|
|
171221
172630
|
node.ipList = getIpList();
|
|
171222
172631
|
node.instanceID = this.broker.instanceID;
|
|
171223
|
-
node.hostname = os$
|
|
172632
|
+
node.hostname = os$14.hostname();
|
|
171224
172633
|
node.client = {
|
|
171225
172634
|
type: "nodejs",
|
|
171226
172635
|
version: this.broker.MOLECULER_VERSION,
|
|
@@ -172776,7 +174185,7 @@ globstar while`, t, d, e, u, m), this.matchOne(t.slice(d), e.slice(u), s)) retur
|
|
|
172776
174185
|
var BaseLogger = require_base$4();
|
|
172777
174186
|
var _ = require_lodash2();
|
|
172778
174187
|
var kleur = require_kleur2();
|
|
172779
|
-
var util$
|
|
174188
|
+
var util$7 = __require("util");
|
|
172780
174189
|
var { isObject: isObject2, isFunction } = require_utils$3();
|
|
172781
174190
|
function getColor(type2) {
|
|
172782
174191
|
switch (type2) {
|
|
@@ -172814,7 +174223,7 @@ globstar while`, t, d, e, u, m), this.matchOne(t.slice(d), e.slice(u), s)) retur
|
|
|
172814
174223
|
init(loggerFactory) {
|
|
172815
174224
|
super.init(loggerFactory);
|
|
172816
174225
|
if (!this.opts.colors) kleur.enabled = false;
|
|
172817
|
-
this.objectPrinter = this.opts.objectPrinter ? this.opts.objectPrinter : (o) => util$
|
|
174226
|
+
this.objectPrinter = this.opts.objectPrinter ? this.opts.objectPrinter : (o) => util$7.inspect(o, {
|
|
172818
174227
|
showHidden: false,
|
|
172819
174228
|
depth: 2,
|
|
172820
174229
|
colors: kleur.enabled,
|
|
@@ -173044,9 +174453,9 @@ globstar while`, t, d, e, u, m), this.matchOne(t.slice(d), e.slice(u), s)) retur
|
|
|
173044
174453
|
var require_datadog$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports2, module2) => {
|
|
173045
174454
|
var BaseLogger = require_base$4();
|
|
173046
174455
|
var _ = require_lodash2();
|
|
173047
|
-
var os$
|
|
174456
|
+
var os$13 = __require("os");
|
|
173048
174457
|
var { MoleculerError } = require_errors$2();
|
|
173049
|
-
var util$
|
|
174458
|
+
var util$6 = __require("util");
|
|
173050
174459
|
var { isObject: isObject2 } = require_utils$3();
|
|
173051
174460
|
var DatadogLogger = class extends BaseLogger {
|
|
173052
174461
|
/**
|
|
@@ -173061,7 +174470,7 @@ globstar while`, t, d, e, u, m), this.matchOne(t.slice(d), e.slice(u), s)) retur
|
|
|
173061
174470
|
apiKey: process.env.DATADOG_API_KEY,
|
|
173062
174471
|
ddSource: "moleculer",
|
|
173063
174472
|
env: void 0,
|
|
173064
|
-
hostname: os$
|
|
174473
|
+
hostname: os$13.hostname(),
|
|
173065
174474
|
objectPrinter: null,
|
|
173066
174475
|
interval: 10 * 1e3
|
|
173067
174476
|
});
|
|
@@ -173076,7 +174485,7 @@ globstar while`, t, d, e, u, m), this.matchOne(t.slice(d), e.slice(u), s)) retur
|
|
|
173076
174485
|
*/
|
|
173077
174486
|
init(loggerFactory) {
|
|
173078
174487
|
super.init(loggerFactory);
|
|
173079
|
-
this.objectPrinter = this.opts.objectPrinter ? this.opts.objectPrinter : (o) => util$
|
|
174488
|
+
this.objectPrinter = this.opts.objectPrinter ? this.opts.objectPrinter : (o) => util$6.inspect(o, {
|
|
173080
174489
|
showHidden: false,
|
|
173081
174490
|
depth: 2,
|
|
173082
174491
|
colors: false,
|
|
@@ -173183,540 +174592,6 @@ globstar while`, t, d, e, u, m), this.matchOne(t.slice(d), e.slice(u), s)) retur
|
|
|
173183
174592
|
};
|
|
173184
174593
|
module2.exports = DatadogLogger;
|
|
173185
174594
|
}));
|
|
173186
|
-
var require_common$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports2, module2) => {
|
|
173187
|
-
function setup(env) {
|
|
173188
|
-
createDebug.debug = createDebug;
|
|
173189
|
-
createDebug.default = createDebug;
|
|
173190
|
-
createDebug.coerce = coerce;
|
|
173191
|
-
createDebug.disable = disable;
|
|
173192
|
-
createDebug.enable = enable;
|
|
173193
|
-
createDebug.enabled = enabled;
|
|
173194
|
-
createDebug.humanize = require_ms$1.require_ms();
|
|
173195
|
-
createDebug.destroy = destroy;
|
|
173196
|
-
Object.keys(env).forEach((key) => {
|
|
173197
|
-
createDebug[key] = env[key];
|
|
173198
|
-
});
|
|
173199
|
-
createDebug.names = [];
|
|
173200
|
-
createDebug.skips = [];
|
|
173201
|
-
createDebug.formatters = {};
|
|
173202
|
-
function selectColor(namespace) {
|
|
173203
|
-
let hash = 0;
|
|
173204
|
-
for (let i = 0; i < namespace.length; i++) {
|
|
173205
|
-
hash = (hash << 5) - hash + namespace.charCodeAt(i);
|
|
173206
|
-
hash |= 0;
|
|
173207
|
-
}
|
|
173208
|
-
return createDebug.colors[Math.abs(hash) % createDebug.colors.length];
|
|
173209
|
-
}
|
|
173210
|
-
createDebug.selectColor = selectColor;
|
|
173211
|
-
function createDebug(namespace) {
|
|
173212
|
-
let prevTime;
|
|
173213
|
-
let enableOverride = null;
|
|
173214
|
-
let namespacesCache;
|
|
173215
|
-
let enabledCache;
|
|
173216
|
-
function debug(...args) {
|
|
173217
|
-
if (!debug.enabled) return;
|
|
173218
|
-
const self2 = debug;
|
|
173219
|
-
const curr = Number(/* @__PURE__ */ new Date());
|
|
173220
|
-
self2.diff = curr - (prevTime || curr);
|
|
173221
|
-
self2.prev = prevTime;
|
|
173222
|
-
self2.curr = curr;
|
|
173223
|
-
prevTime = curr;
|
|
173224
|
-
args[0] = createDebug.coerce(args[0]);
|
|
173225
|
-
if (typeof args[0] !== "string") args.unshift("%O");
|
|
173226
|
-
let index = 0;
|
|
173227
|
-
args[0] = args[0].replace(/%([a-zA-Z%])/g, (match, format2) => {
|
|
173228
|
-
if (match === "%%") return "%";
|
|
173229
|
-
index++;
|
|
173230
|
-
const formatter = createDebug.formatters[format2];
|
|
173231
|
-
if (typeof formatter === "function") {
|
|
173232
|
-
const val = args[index];
|
|
173233
|
-
match = formatter.call(self2, val);
|
|
173234
|
-
args.splice(index, 1);
|
|
173235
|
-
index--;
|
|
173236
|
-
}
|
|
173237
|
-
return match;
|
|
173238
|
-
});
|
|
173239
|
-
createDebug.formatArgs.call(self2, args);
|
|
173240
|
-
(self2.log || createDebug.log).apply(self2, args);
|
|
173241
|
-
}
|
|
173242
|
-
debug.namespace = namespace;
|
|
173243
|
-
debug.useColors = createDebug.useColors();
|
|
173244
|
-
debug.color = createDebug.selectColor(namespace);
|
|
173245
|
-
debug.extend = extend;
|
|
173246
|
-
debug.destroy = createDebug.destroy;
|
|
173247
|
-
Object.defineProperty(debug, "enabled", {
|
|
173248
|
-
enumerable: true,
|
|
173249
|
-
configurable: false,
|
|
173250
|
-
get: () => {
|
|
173251
|
-
if (enableOverride !== null) return enableOverride;
|
|
173252
|
-
if (namespacesCache !== createDebug.namespaces) {
|
|
173253
|
-
namespacesCache = createDebug.namespaces;
|
|
173254
|
-
enabledCache = createDebug.enabled(namespace);
|
|
173255
|
-
}
|
|
173256
|
-
return enabledCache;
|
|
173257
|
-
},
|
|
173258
|
-
set: (v2) => {
|
|
173259
|
-
enableOverride = v2;
|
|
173260
|
-
}
|
|
173261
|
-
});
|
|
173262
|
-
if (typeof createDebug.init === "function") createDebug.init(debug);
|
|
173263
|
-
return debug;
|
|
173264
|
-
}
|
|
173265
|
-
function extend(namespace, delimiter) {
|
|
173266
|
-
const newDebug = createDebug(this.namespace + (typeof delimiter === "undefined" ? ":" : delimiter) + namespace);
|
|
173267
|
-
newDebug.log = this.log;
|
|
173268
|
-
return newDebug;
|
|
173269
|
-
}
|
|
173270
|
-
function enable(namespaces) {
|
|
173271
|
-
createDebug.save(namespaces);
|
|
173272
|
-
createDebug.namespaces = namespaces;
|
|
173273
|
-
createDebug.names = [];
|
|
173274
|
-
createDebug.skips = [];
|
|
173275
|
-
const split = (typeof namespaces === "string" ? namespaces : "").trim().replace(/\s+/g, ",").split(",").filter(Boolean);
|
|
173276
|
-
for (const ns2 of split) if (ns2[0] === "-") createDebug.skips.push(ns2.slice(1));
|
|
173277
|
-
else createDebug.names.push(ns2);
|
|
173278
|
-
}
|
|
173279
|
-
function matchesTemplate(search, template) {
|
|
173280
|
-
let searchIndex = 0;
|
|
173281
|
-
let templateIndex = 0;
|
|
173282
|
-
let starIndex = -1;
|
|
173283
|
-
let matchIndex = 0;
|
|
173284
|
-
while (searchIndex < search.length) if (templateIndex < template.length && (template[templateIndex] === search[searchIndex] || template[templateIndex] === "*")) if (template[templateIndex] === "*") {
|
|
173285
|
-
starIndex = templateIndex;
|
|
173286
|
-
matchIndex = searchIndex;
|
|
173287
|
-
templateIndex++;
|
|
173288
|
-
} else {
|
|
173289
|
-
searchIndex++;
|
|
173290
|
-
templateIndex++;
|
|
173291
|
-
}
|
|
173292
|
-
else if (starIndex !== -1) {
|
|
173293
|
-
templateIndex = starIndex + 1;
|
|
173294
|
-
matchIndex++;
|
|
173295
|
-
searchIndex = matchIndex;
|
|
173296
|
-
} else return false;
|
|
173297
|
-
while (templateIndex < template.length && template[templateIndex] === "*") templateIndex++;
|
|
173298
|
-
return templateIndex === template.length;
|
|
173299
|
-
}
|
|
173300
|
-
function disable() {
|
|
173301
|
-
const namespaces = [...createDebug.names, ...createDebug.skips.map((namespace) => "-" + namespace)].join(",");
|
|
173302
|
-
createDebug.enable("");
|
|
173303
|
-
return namespaces;
|
|
173304
|
-
}
|
|
173305
|
-
function enabled(name2) {
|
|
173306
|
-
for (const skip of createDebug.skips) if (matchesTemplate(name2, skip)) return false;
|
|
173307
|
-
for (const ns2 of createDebug.names) if (matchesTemplate(name2, ns2)) return true;
|
|
173308
|
-
return false;
|
|
173309
|
-
}
|
|
173310
|
-
function coerce(val) {
|
|
173311
|
-
if (val instanceof Error) return val.stack || val.message;
|
|
173312
|
-
return val;
|
|
173313
|
-
}
|
|
173314
|
-
function destroy() {
|
|
173315
|
-
console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");
|
|
173316
|
-
}
|
|
173317
|
-
createDebug.enable(createDebug.load());
|
|
173318
|
-
return createDebug;
|
|
173319
|
-
}
|
|
173320
|
-
module2.exports = setup;
|
|
173321
|
-
}));
|
|
173322
|
-
var require_browser = /* @__PURE__ */ require_chunk.__commonJSMin(((exports2, module2) => {
|
|
173323
|
-
exports2.formatArgs = formatArgs;
|
|
173324
|
-
exports2.save = save;
|
|
173325
|
-
exports2.load = load3;
|
|
173326
|
-
exports2.useColors = useColors;
|
|
173327
|
-
exports2.storage = localstorage();
|
|
173328
|
-
exports2.destroy = /* @__PURE__ */ (() => {
|
|
173329
|
-
let warned = false;
|
|
173330
|
-
return () => {
|
|
173331
|
-
if (!warned) {
|
|
173332
|
-
warned = true;
|
|
173333
|
-
console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");
|
|
173334
|
-
}
|
|
173335
|
-
};
|
|
173336
|
-
})();
|
|
173337
|
-
exports2.colors = [
|
|
173338
|
-
"#0000CC",
|
|
173339
|
-
"#0000FF",
|
|
173340
|
-
"#0033CC",
|
|
173341
|
-
"#0033FF",
|
|
173342
|
-
"#0066CC",
|
|
173343
|
-
"#0066FF",
|
|
173344
|
-
"#0099CC",
|
|
173345
|
-
"#0099FF",
|
|
173346
|
-
"#00CC00",
|
|
173347
|
-
"#00CC33",
|
|
173348
|
-
"#00CC66",
|
|
173349
|
-
"#00CC99",
|
|
173350
|
-
"#00CCCC",
|
|
173351
|
-
"#00CCFF",
|
|
173352
|
-
"#3300CC",
|
|
173353
|
-
"#3300FF",
|
|
173354
|
-
"#3333CC",
|
|
173355
|
-
"#3333FF",
|
|
173356
|
-
"#3366CC",
|
|
173357
|
-
"#3366FF",
|
|
173358
|
-
"#3399CC",
|
|
173359
|
-
"#3399FF",
|
|
173360
|
-
"#33CC00",
|
|
173361
|
-
"#33CC33",
|
|
173362
|
-
"#33CC66",
|
|
173363
|
-
"#33CC99",
|
|
173364
|
-
"#33CCCC",
|
|
173365
|
-
"#33CCFF",
|
|
173366
|
-
"#6600CC",
|
|
173367
|
-
"#6600FF",
|
|
173368
|
-
"#6633CC",
|
|
173369
|
-
"#6633FF",
|
|
173370
|
-
"#66CC00",
|
|
173371
|
-
"#66CC33",
|
|
173372
|
-
"#9900CC",
|
|
173373
|
-
"#9900FF",
|
|
173374
|
-
"#9933CC",
|
|
173375
|
-
"#9933FF",
|
|
173376
|
-
"#99CC00",
|
|
173377
|
-
"#99CC33",
|
|
173378
|
-
"#CC0000",
|
|
173379
|
-
"#CC0033",
|
|
173380
|
-
"#CC0066",
|
|
173381
|
-
"#CC0099",
|
|
173382
|
-
"#CC00CC",
|
|
173383
|
-
"#CC00FF",
|
|
173384
|
-
"#CC3300",
|
|
173385
|
-
"#CC3333",
|
|
173386
|
-
"#CC3366",
|
|
173387
|
-
"#CC3399",
|
|
173388
|
-
"#CC33CC",
|
|
173389
|
-
"#CC33FF",
|
|
173390
|
-
"#CC6600",
|
|
173391
|
-
"#CC6633",
|
|
173392
|
-
"#CC9900",
|
|
173393
|
-
"#CC9933",
|
|
173394
|
-
"#CCCC00",
|
|
173395
|
-
"#CCCC33",
|
|
173396
|
-
"#FF0000",
|
|
173397
|
-
"#FF0033",
|
|
173398
|
-
"#FF0066",
|
|
173399
|
-
"#FF0099",
|
|
173400
|
-
"#FF00CC",
|
|
173401
|
-
"#FF00FF",
|
|
173402
|
-
"#FF3300",
|
|
173403
|
-
"#FF3333",
|
|
173404
|
-
"#FF3366",
|
|
173405
|
-
"#FF3399",
|
|
173406
|
-
"#FF33CC",
|
|
173407
|
-
"#FF33FF",
|
|
173408
|
-
"#FF6600",
|
|
173409
|
-
"#FF6633",
|
|
173410
|
-
"#FF9900",
|
|
173411
|
-
"#FF9933",
|
|
173412
|
-
"#FFCC00",
|
|
173413
|
-
"#FFCC33"
|
|
173414
|
-
];
|
|
173415
|
-
function useColors() {
|
|
173416
|
-
if (typeof window !== "undefined" && window.process && (window.process.type === "renderer" || window.process.__nwjs)) return true;
|
|
173417
|
-
if (typeof navigator !== "undefined" && navigator.userAgent && navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)) return false;
|
|
173418
|
-
let m;
|
|
173419
|
-
return typeof document !== "undefined" && document.documentElement && document.documentElement.style && document.documentElement.style.WebkitAppearance || typeof window !== "undefined" && window.console && (window.console.firebug || window.console.exception && window.console.table) || typeof navigator !== "undefined" && navigator.userAgent && (m = navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)) && parseInt(m[1], 10) >= 31 || typeof navigator !== "undefined" && navigator.userAgent && navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/);
|
|
173420
|
-
}
|
|
173421
|
-
function formatArgs(args) {
|
|
173422
|
-
args[0] = (this.useColors ? "%c" : "") + this.namespace + (this.useColors ? " %c" : " ") + args[0] + (this.useColors ? "%c " : " ") + "+" + module2.exports.humanize(this.diff);
|
|
173423
|
-
if (!this.useColors) return;
|
|
173424
|
-
const c = "color: " + this.color;
|
|
173425
|
-
args.splice(1, 0, c, "color: inherit");
|
|
173426
|
-
let index = 0;
|
|
173427
|
-
let lastC = 0;
|
|
173428
|
-
args[0].replace(/%[a-zA-Z%]/g, (match) => {
|
|
173429
|
-
if (match === "%%") return;
|
|
173430
|
-
index++;
|
|
173431
|
-
if (match === "%c") lastC = index;
|
|
173432
|
-
});
|
|
173433
|
-
args.splice(lastC, 0, c);
|
|
173434
|
-
}
|
|
173435
|
-
exports2.log = console.debug || console.log || (() => {
|
|
173436
|
-
});
|
|
173437
|
-
function save(namespaces) {
|
|
173438
|
-
try {
|
|
173439
|
-
if (namespaces) exports2.storage.setItem("debug", namespaces);
|
|
173440
|
-
else exports2.storage.removeItem("debug");
|
|
173441
|
-
} catch (error) {
|
|
173442
|
-
}
|
|
173443
|
-
}
|
|
173444
|
-
function load3() {
|
|
173445
|
-
let r;
|
|
173446
|
-
try {
|
|
173447
|
-
r = exports2.storage.getItem("debug") || exports2.storage.getItem("DEBUG");
|
|
173448
|
-
} catch (error) {
|
|
173449
|
-
}
|
|
173450
|
-
if (!r && typeof process !== "undefined" && "env" in process) r = process.env.DEBUG;
|
|
173451
|
-
return r;
|
|
173452
|
-
}
|
|
173453
|
-
function localstorage() {
|
|
173454
|
-
try {
|
|
173455
|
-
return localStorage;
|
|
173456
|
-
} catch (error) {
|
|
173457
|
-
}
|
|
173458
|
-
}
|
|
173459
|
-
module2.exports = require_common$1()(exports2);
|
|
173460
|
-
var { formatters } = module2.exports;
|
|
173461
|
-
formatters.j = function(v2) {
|
|
173462
|
-
try {
|
|
173463
|
-
return JSON.stringify(v2);
|
|
173464
|
-
} catch (error) {
|
|
173465
|
-
return "[UnexpectedJSONParseError]: " + error.message;
|
|
173466
|
-
}
|
|
173467
|
-
};
|
|
173468
|
-
}));
|
|
173469
|
-
var require_has_flag$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports2, module2) => {
|
|
173470
|
-
module2.exports = (flag, argv = process.argv) => {
|
|
173471
|
-
const prefix = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--";
|
|
173472
|
-
const position = argv.indexOf(prefix + flag);
|
|
173473
|
-
const terminatorPosition = argv.indexOf("--");
|
|
173474
|
-
return position !== -1 && (terminatorPosition === -1 || position < terminatorPosition);
|
|
173475
|
-
};
|
|
173476
|
-
}));
|
|
173477
|
-
var require_supports_color$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports2, module2) => {
|
|
173478
|
-
var os$13 = __require("os");
|
|
173479
|
-
var tty$1 = __require("tty");
|
|
173480
|
-
var hasFlag = require_has_flag$1();
|
|
173481
|
-
var { env } = process;
|
|
173482
|
-
var flagForceColor;
|
|
173483
|
-
if (hasFlag("no-color") || hasFlag("no-colors") || hasFlag("color=false") || hasFlag("color=never")) flagForceColor = 0;
|
|
173484
|
-
else if (hasFlag("color") || hasFlag("colors") || hasFlag("color=true") || hasFlag("color=always")) flagForceColor = 1;
|
|
173485
|
-
function envForceColor() {
|
|
173486
|
-
if ("FORCE_COLOR" in env) {
|
|
173487
|
-
if (env.FORCE_COLOR === "true") return 1;
|
|
173488
|
-
if (env.FORCE_COLOR === "false") return 0;
|
|
173489
|
-
return env.FORCE_COLOR.length === 0 ? 1 : Math.min(Number.parseInt(env.FORCE_COLOR, 10), 3);
|
|
173490
|
-
}
|
|
173491
|
-
}
|
|
173492
|
-
function translateLevel(level) {
|
|
173493
|
-
if (level === 0) return false;
|
|
173494
|
-
return {
|
|
173495
|
-
level,
|
|
173496
|
-
hasBasic: true,
|
|
173497
|
-
has256: level >= 2,
|
|
173498
|
-
has16m: level >= 3
|
|
173499
|
-
};
|
|
173500
|
-
}
|
|
173501
|
-
function supportsColor(haveStream, { streamIsTTY, sniffFlags = true } = {}) {
|
|
173502
|
-
const noFlagForceColor = envForceColor();
|
|
173503
|
-
if (noFlagForceColor !== void 0) flagForceColor = noFlagForceColor;
|
|
173504
|
-
const forceColor = sniffFlags ? flagForceColor : noFlagForceColor;
|
|
173505
|
-
if (forceColor === 0) return 0;
|
|
173506
|
-
if (sniffFlags) {
|
|
173507
|
-
if (hasFlag("color=16m") || hasFlag("color=full") || hasFlag("color=truecolor")) return 3;
|
|
173508
|
-
if (hasFlag("color=256")) return 2;
|
|
173509
|
-
}
|
|
173510
|
-
if (haveStream && !streamIsTTY && forceColor === void 0) return 0;
|
|
173511
|
-
const min = forceColor || 0;
|
|
173512
|
-
if (env.TERM === "dumb") return min;
|
|
173513
|
-
if (process.platform === "win32") {
|
|
173514
|
-
const osRelease = os$13.release().split(".");
|
|
173515
|
-
if (Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) return Number(osRelease[2]) >= 14931 ? 3 : 2;
|
|
173516
|
-
return 1;
|
|
173517
|
-
}
|
|
173518
|
-
if ("CI" in env) {
|
|
173519
|
-
if ([
|
|
173520
|
-
"TRAVIS",
|
|
173521
|
-
"CIRCLECI",
|
|
173522
|
-
"APPVEYOR",
|
|
173523
|
-
"GITLAB_CI",
|
|
173524
|
-
"GITHUB_ACTIONS",
|
|
173525
|
-
"BUILDKITE",
|
|
173526
|
-
"DRONE"
|
|
173527
|
-
].some((sign2) => sign2 in env) || env.CI_NAME === "codeship") return 1;
|
|
173528
|
-
return min;
|
|
173529
|
-
}
|
|
173530
|
-
if ("TEAMCITY_VERSION" in env) return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0;
|
|
173531
|
-
if (env.COLORTERM === "truecolor") return 3;
|
|
173532
|
-
if ("TERM_PROGRAM" in env) {
|
|
173533
|
-
const version2 = Number.parseInt((env.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
|
|
173534
|
-
switch (env.TERM_PROGRAM) {
|
|
173535
|
-
case "iTerm.app":
|
|
173536
|
-
return version2 >= 3 ? 3 : 2;
|
|
173537
|
-
case "Apple_Terminal":
|
|
173538
|
-
return 2;
|
|
173539
|
-
}
|
|
173540
|
-
}
|
|
173541
|
-
if (/-256(color)?$/i.test(env.TERM)) return 2;
|
|
173542
|
-
if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)) return 1;
|
|
173543
|
-
if ("COLORTERM" in env) return 1;
|
|
173544
|
-
return min;
|
|
173545
|
-
}
|
|
173546
|
-
function getSupportLevel(stream, options = {}) {
|
|
173547
|
-
return translateLevel(supportsColor(stream, {
|
|
173548
|
-
streamIsTTY: stream && stream.isTTY,
|
|
173549
|
-
...options
|
|
173550
|
-
}));
|
|
173551
|
-
}
|
|
173552
|
-
module2.exports = {
|
|
173553
|
-
supportsColor: getSupportLevel,
|
|
173554
|
-
stdout: getSupportLevel({ isTTY: tty$1.isatty(1) }),
|
|
173555
|
-
stderr: getSupportLevel({ isTTY: tty$1.isatty(2) })
|
|
173556
|
-
};
|
|
173557
|
-
}));
|
|
173558
|
-
var require_node7 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports2, module2) => {
|
|
173559
|
-
var tty = __require("tty");
|
|
173560
|
-
var util$6 = __require("util");
|
|
173561
|
-
exports2.init = init2;
|
|
173562
|
-
exports2.log = log;
|
|
173563
|
-
exports2.formatArgs = formatArgs;
|
|
173564
|
-
exports2.save = save;
|
|
173565
|
-
exports2.load = load3;
|
|
173566
|
-
exports2.useColors = useColors;
|
|
173567
|
-
exports2.destroy = util$6.deprecate(() => {
|
|
173568
|
-
}, "Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");
|
|
173569
|
-
exports2.colors = [
|
|
173570
|
-
6,
|
|
173571
|
-
2,
|
|
173572
|
-
3,
|
|
173573
|
-
4,
|
|
173574
|
-
5,
|
|
173575
|
-
1
|
|
173576
|
-
];
|
|
173577
|
-
try {
|
|
173578
|
-
const supportsColor = require_supports_color$1();
|
|
173579
|
-
if (supportsColor && (supportsColor.stderr || supportsColor).level >= 2) exports2.colors = [
|
|
173580
|
-
20,
|
|
173581
|
-
21,
|
|
173582
|
-
26,
|
|
173583
|
-
27,
|
|
173584
|
-
32,
|
|
173585
|
-
33,
|
|
173586
|
-
38,
|
|
173587
|
-
39,
|
|
173588
|
-
40,
|
|
173589
|
-
41,
|
|
173590
|
-
42,
|
|
173591
|
-
43,
|
|
173592
|
-
44,
|
|
173593
|
-
45,
|
|
173594
|
-
56,
|
|
173595
|
-
57,
|
|
173596
|
-
62,
|
|
173597
|
-
63,
|
|
173598
|
-
68,
|
|
173599
|
-
69,
|
|
173600
|
-
74,
|
|
173601
|
-
75,
|
|
173602
|
-
76,
|
|
173603
|
-
77,
|
|
173604
|
-
78,
|
|
173605
|
-
79,
|
|
173606
|
-
80,
|
|
173607
|
-
81,
|
|
173608
|
-
92,
|
|
173609
|
-
93,
|
|
173610
|
-
98,
|
|
173611
|
-
99,
|
|
173612
|
-
112,
|
|
173613
|
-
113,
|
|
173614
|
-
128,
|
|
173615
|
-
129,
|
|
173616
|
-
134,
|
|
173617
|
-
135,
|
|
173618
|
-
148,
|
|
173619
|
-
149,
|
|
173620
|
-
160,
|
|
173621
|
-
161,
|
|
173622
|
-
162,
|
|
173623
|
-
163,
|
|
173624
|
-
164,
|
|
173625
|
-
165,
|
|
173626
|
-
166,
|
|
173627
|
-
167,
|
|
173628
|
-
168,
|
|
173629
|
-
169,
|
|
173630
|
-
170,
|
|
173631
|
-
171,
|
|
173632
|
-
172,
|
|
173633
|
-
173,
|
|
173634
|
-
178,
|
|
173635
|
-
179,
|
|
173636
|
-
184,
|
|
173637
|
-
185,
|
|
173638
|
-
196,
|
|
173639
|
-
197,
|
|
173640
|
-
198,
|
|
173641
|
-
199,
|
|
173642
|
-
200,
|
|
173643
|
-
201,
|
|
173644
|
-
202,
|
|
173645
|
-
203,
|
|
173646
|
-
204,
|
|
173647
|
-
205,
|
|
173648
|
-
206,
|
|
173649
|
-
207,
|
|
173650
|
-
208,
|
|
173651
|
-
209,
|
|
173652
|
-
214,
|
|
173653
|
-
215,
|
|
173654
|
-
220,
|
|
173655
|
-
221
|
|
173656
|
-
];
|
|
173657
|
-
} catch (error) {
|
|
173658
|
-
}
|
|
173659
|
-
exports2.inspectOpts = Object.keys(process.env).filter((key) => {
|
|
173660
|
-
return /^debug_/i.test(key);
|
|
173661
|
-
}).reduce((obj, key) => {
|
|
173662
|
-
const prop = key.substring(6).toLowerCase().replace(/_([a-z])/g, (_, k2) => {
|
|
173663
|
-
return k2.toUpperCase();
|
|
173664
|
-
});
|
|
173665
|
-
let val = process.env[key];
|
|
173666
|
-
if (/^(yes|on|true|enabled)$/i.test(val)) val = true;
|
|
173667
|
-
else if (/^(no|off|false|disabled)$/i.test(val)) val = false;
|
|
173668
|
-
else if (val === "null") val = null;
|
|
173669
|
-
else val = Number(val);
|
|
173670
|
-
obj[prop] = val;
|
|
173671
|
-
return obj;
|
|
173672
|
-
}, {});
|
|
173673
|
-
function useColors() {
|
|
173674
|
-
return "colors" in exports2.inspectOpts ? Boolean(exports2.inspectOpts.colors) : tty.isatty(process.stderr.fd);
|
|
173675
|
-
}
|
|
173676
|
-
function formatArgs(args) {
|
|
173677
|
-
const { namespace: name2, useColors: useColors2 } = this;
|
|
173678
|
-
if (useColors2) {
|
|
173679
|
-
const c = this.color;
|
|
173680
|
-
const colorCode = "\x1B[3" + (c < 8 ? c : "8;5;" + c);
|
|
173681
|
-
const prefix = ` ${colorCode};1m${name2} \x1B[0m`;
|
|
173682
|
-
args[0] = prefix + args[0].split("\n").join("\n" + prefix);
|
|
173683
|
-
args.push(colorCode + "m+" + module2.exports.humanize(this.diff) + "\x1B[0m");
|
|
173684
|
-
} else args[0] = getDate() + name2 + " " + args[0];
|
|
173685
|
-
}
|
|
173686
|
-
function getDate() {
|
|
173687
|
-
if (exports2.inspectOpts.hideDate) return "";
|
|
173688
|
-
return (/* @__PURE__ */ new Date()).toISOString() + " ";
|
|
173689
|
-
}
|
|
173690
|
-
function log(...args) {
|
|
173691
|
-
return process.stderr.write(util$6.formatWithOptions(exports2.inspectOpts, ...args) + "\n");
|
|
173692
|
-
}
|
|
173693
|
-
function save(namespaces) {
|
|
173694
|
-
if (namespaces) process.env.DEBUG = namespaces;
|
|
173695
|
-
else delete process.env.DEBUG;
|
|
173696
|
-
}
|
|
173697
|
-
function load3() {
|
|
173698
|
-
return process.env.DEBUG;
|
|
173699
|
-
}
|
|
173700
|
-
function init2(debug) {
|
|
173701
|
-
debug.inspectOpts = {};
|
|
173702
|
-
const keys = Object.keys(exports2.inspectOpts);
|
|
173703
|
-
for (let i = 0; i < keys.length; i++) debug.inspectOpts[keys[i]] = exports2.inspectOpts[keys[i]];
|
|
173704
|
-
}
|
|
173705
|
-
module2.exports = require_common$1()(exports2);
|
|
173706
|
-
var { formatters } = module2.exports;
|
|
173707
|
-
formatters.o = function(v2) {
|
|
173708
|
-
this.inspectOpts.colors = this.useColors;
|
|
173709
|
-
return util$6.inspect(v2, this.inspectOpts).split("\n").map((str) => str.trim()).join(" ");
|
|
173710
|
-
};
|
|
173711
|
-
formatters.O = function(v2) {
|
|
173712
|
-
this.inspectOpts.colors = this.useColors;
|
|
173713
|
-
return util$6.inspect(v2, this.inspectOpts);
|
|
173714
|
-
};
|
|
173715
|
-
}));
|
|
173716
|
-
var require_src2 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports2, module2) => {
|
|
173717
|
-
if (typeof process === "undefined" || process.type === "renderer" || process.browser === true || process.__nwjs) module2.exports = require_browser();
|
|
173718
|
-
else module2.exports = require_node7();
|
|
173719
|
-
}));
|
|
173720
174595
|
var require_debug3 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports2, module2) => {
|
|
173721
174596
|
var BaseLogger = require_base$4();
|
|
173722
174597
|
var _ = require_lodash2();
|
|
@@ -173739,7 +174614,7 @@ globstar while`, t, d, e, u, m), this.matchOne(t.slice(d), e.slice(u), s)) retur
|
|
|
173739
174614
|
init(loggerFactory) {
|
|
173740
174615
|
super.init(loggerFactory);
|
|
173741
174616
|
try {
|
|
173742
|
-
this.debug =
|
|
174617
|
+
this.debug = require_src$1.require_src()("moleculer");
|
|
173743
174618
|
} catch (err) {
|
|
173744
174619
|
this.broker.fatal("The 'debug' package is missing! Please install it with 'npm install debug --save' command!", err, true);
|
|
173745
174620
|
}
|
|
@@ -173997,7 +174872,7 @@ globstar while`, t, d, e, u, m), this.matchOne(t.slice(d), e.slice(u), s)) retur
|
|
|
173997
174872
|
}));
|
|
173998
174873
|
var require_configuration2 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports2, module2) => {
|
|
173999
174874
|
var util$5 = __require("util");
|
|
174000
|
-
var debug =
|
|
174875
|
+
var debug = require_src$1.require_src()("log4js:configuration");
|
|
174001
174876
|
var preProcessingListeners = [];
|
|
174002
174877
|
var listeners = [];
|
|
174003
174878
|
var not = (thing) => !thing;
|
|
@@ -174667,7 +175542,7 @@ globstar while`, t, d, e, u, m), this.matchOne(t.slice(d), e.slice(u), s)) retur
|
|
|
174667
175542
|
};
|
|
174668
175543
|
}));
|
|
174669
175544
|
var require_clustering2 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports2, module2) => {
|
|
174670
|
-
var debug =
|
|
175545
|
+
var debug = require_src$1.require_src()("log4js:clustering");
|
|
174671
175546
|
var LoggingEvent = require_LoggingEvent2();
|
|
174672
175547
|
var configuration = require_configuration2();
|
|
174673
175548
|
var disabled = false;
|
|
@@ -174825,7 +175700,7 @@ globstar while`, t, d, e, u, m), this.matchOne(t.slice(d), e.slice(u), s)) retur
|
|
|
174825
175700
|
module2.exports.configure = configure;
|
|
174826
175701
|
}));
|
|
174827
175702
|
var require_categoryFilter2 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports2, module2) => {
|
|
174828
|
-
var debug =
|
|
175703
|
+
var debug = require_src$1.require_src()("log4js:categoryFilter");
|
|
174829
175704
|
function categoryFilter(excludes, appender) {
|
|
174830
175705
|
if (typeof excludes === "string") excludes = [excludes];
|
|
174831
175706
|
return (logEvent) => {
|
|
@@ -174843,7 +175718,7 @@ globstar while`, t, d, e, u, m), this.matchOne(t.slice(d), e.slice(u), s)) retur
|
|
|
174843
175718
|
module2.exports.configure = configure;
|
|
174844
175719
|
}));
|
|
174845
175720
|
var require_noLogFilter2 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports2, module2) => {
|
|
174846
|
-
var debug =
|
|
175721
|
+
var debug = require_src$1.require_src()("log4js:noLogFilter");
|
|
174847
175722
|
function removeNullOrEmptyRegexp(regexp) {
|
|
174848
175723
|
return regexp.filter((el) => el != null && el !== "");
|
|
174849
175724
|
}
|
|
@@ -177220,7 +178095,7 @@ globstar while`, t, d, e, u, m), this.matchOne(t.slice(d), e.slice(u), s)) retur
|
|
|
177220
178095
|
module2.exports.ABSOLUTETIME_FORMAT = "hh:mm:ss.SSS";
|
|
177221
178096
|
}));
|
|
177222
178097
|
var require_fileNameFormatter2 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports2, module2) => {
|
|
177223
|
-
var debug =
|
|
178098
|
+
var debug = require_src$1.require_src()("streamroller:fileNameFormatter");
|
|
177224
178099
|
var path$17 = __require("path");
|
|
177225
178100
|
var FILENAME_SEP = ".";
|
|
177226
178101
|
var ZIP_EXT = ".gz";
|
|
@@ -177250,7 +178125,7 @@ globstar while`, t, d, e, u, m), this.matchOne(t.slice(d), e.slice(u), s)) retur
|
|
|
177250
178125
|
};
|
|
177251
178126
|
}));
|
|
177252
178127
|
var require_fileNameParser2 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports2, module2) => {
|
|
177253
|
-
var debug =
|
|
178128
|
+
var debug = require_src$1.require_src()("streamroller:fileNameParser");
|
|
177254
178129
|
var FILENAME_SEP = ".";
|
|
177255
178130
|
var ZIP_EXT = ".gz";
|
|
177256
178131
|
var format2 = require_lib$3();
|
|
@@ -177327,7 +178202,7 @@ globstar while`, t, d, e, u, m), this.matchOne(t.slice(d), e.slice(u), s)) retur
|
|
|
177327
178202
|
};
|
|
177328
178203
|
}));
|
|
177329
178204
|
var require_moveAndMaybeCompressFile2 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports2, module2) => {
|
|
177330
|
-
var debug =
|
|
178205
|
+
var debug = require_src$1.require_src()("streamroller:moveAndMaybeCompressFile");
|
|
177331
178206
|
var fs2 = require_lib$4();
|
|
177332
178207
|
var zlib$1 = __require("zlib");
|
|
177333
178208
|
var moveAndMaybeCompressFile = async (sourceFilePath, targetFilePath, needCompress) => {
|
|
@@ -177362,7 +178237,7 @@ globstar while`, t, d, e, u, m), this.matchOne(t.slice(d), e.slice(u), s)) retur
|
|
|
177362
178237
|
module2.exports = moveAndMaybeCompressFile;
|
|
177363
178238
|
}));
|
|
177364
178239
|
var require_RollingFileWriteStream2 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports2, module2) => {
|
|
177365
|
-
var debug =
|
|
178240
|
+
var debug = require_src$1.require_src()("streamroller:RollingFileWriteStream");
|
|
177366
178241
|
var fs2 = require_lib$4();
|
|
177367
178242
|
var path$16 = __require("path");
|
|
177368
178243
|
var newNow = require_now2();
|
|
@@ -177594,7 +178469,7 @@ globstar while`, t, d, e, u, m), this.matchOne(t.slice(d), e.slice(u), s)) retur
|
|
|
177594
178469
|
};
|
|
177595
178470
|
}));
|
|
177596
178471
|
var require_file5 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports2, module2) => {
|
|
177597
|
-
var debug =
|
|
178472
|
+
var debug = require_src$1.require_src()("log4js:file");
|
|
177598
178473
|
var path$15 = __require("path");
|
|
177599
178474
|
var streams = require_lib$2();
|
|
177600
178475
|
var eol$2 = __require("os").EOL;
|
|
@@ -177675,7 +178550,7 @@ globstar while`, t, d, e, u, m), this.matchOne(t.slice(d), e.slice(u), s)) retur
|
|
|
177675
178550
|
module2.exports.configure = configure;
|
|
177676
178551
|
}));
|
|
177677
178552
|
var require_fileSync2 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports2, module2) => {
|
|
177678
|
-
var debug =
|
|
178553
|
+
var debug = require_src$1.require_src()("log4js:fileSync");
|
|
177679
178554
|
var path$14 = __require("path");
|
|
177680
178555
|
var fs$13 = __require("fs");
|
|
177681
178556
|
var eol = __require("os").EOL || "\n";
|
|
@@ -177794,7 +178669,7 @@ globstar while`, t, d, e, u, m), this.matchOne(t.slice(d), e.slice(u), s)) retur
|
|
|
177794
178669
|
}));
|
|
177795
178670
|
var require_appenders2 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports2, module2) => {
|
|
177796
178671
|
var path$13 = __require("path");
|
|
177797
|
-
var debug =
|
|
178672
|
+
var debug = require_src$1.require_src()("log4js:appenders");
|
|
177798
178673
|
var configuration = require_configuration2();
|
|
177799
178674
|
var clustering = require_clustering2();
|
|
177800
178675
|
var levels = require_levels$1();
|
|
@@ -177877,7 +178752,7 @@ globstar while`, t, d, e, u, m), this.matchOne(t.slice(d), e.slice(u), s)) retur
|
|
|
177877
178752
|
module2.exports = appenders;
|
|
177878
178753
|
}));
|
|
177879
178754
|
var require_categories2 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports2, module2) => {
|
|
177880
|
-
var debug =
|
|
178755
|
+
var debug = require_src$1.require_src()("log4js:categories");
|
|
177881
178756
|
var configuration = require_configuration2();
|
|
177882
178757
|
var levels = require_levels$1();
|
|
177883
178758
|
var appenders = require_appenders2();
|
|
@@ -177986,7 +178861,7 @@ globstar while`, t, d, e, u, m), this.matchOne(t.slice(d), e.slice(u), s)) retur
|
|
|
177986
178861
|
};
|
|
177987
178862
|
}));
|
|
177988
178863
|
var require_logger3 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports2, module2) => {
|
|
177989
|
-
var debug =
|
|
178864
|
+
var debug = require_src$1.require_src()("log4js:logger");
|
|
177990
178865
|
var LoggingEvent = require_LoggingEvent2();
|
|
177991
178866
|
var levels = require_levels$1();
|
|
177992
178867
|
var clustering = require_clustering2();
|
|
@@ -178211,7 +179086,7 @@ globstar while`, t, d, e, u, m), this.matchOne(t.slice(d), e.slice(u), s)) retur
|
|
|
178211
179086
|
};
|
|
178212
179087
|
}));
|
|
178213
179088
|
var require_log4js$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports2, module2) => {
|
|
178214
|
-
var debug =
|
|
179089
|
+
var debug = require_src$1.require_src()("log4js:main");
|
|
178215
179090
|
var fs$12 = __require("fs");
|
|
178216
179091
|
var deepClone = require_rfdc2()({ proto: true });
|
|
178217
179092
|
var configuration = require_configuration2();
|
|
@@ -191307,7 +192182,7 @@ ${originalIndentation}`;
|
|
|
191307
192182
|
var { EventEmitter: EventEmitter$4 } = __require("events");
|
|
191308
192183
|
var Packet = require_packet2();
|
|
191309
192184
|
var constants = require_constants$4();
|
|
191310
|
-
var debug =
|
|
192185
|
+
var debug = require_src$1.require_src()("mqtt-packet:parser");
|
|
191311
192186
|
module2.exports = class Parser extends EventEmitter$4 {
|
|
191312
192187
|
constructor() {
|
|
191313
192188
|
super();
|
|
@@ -191927,7 +192802,7 @@ ${originalIndentation}`;
|
|
|
191927
192802
|
var zeroBuf = Buffer$2.from([0]);
|
|
191928
192803
|
var numbers = require_numbers2();
|
|
191929
192804
|
var nextTick = require_process_nextick_args2().nextTick;
|
|
191930
|
-
var debug =
|
|
192805
|
+
var debug = require_src$1.require_src()("mqtt-packet:writeToStream");
|
|
191931
192806
|
var numCache = numbers.cache;
|
|
191932
192807
|
var generateNumber = numbers.generateNumber;
|
|
191933
192808
|
var generateCache = numbers.generateCache;
|
|
@@ -197795,8 +198670,8 @@ ${originalIndentation}`;
|
|
|
197795
198670
|
}));
|
|
197796
198671
|
var require_number_allocator$1 = /* @__PURE__ */ require_chunk.__commonJSMin(((exports2, module2) => {
|
|
197797
198672
|
var SortedSet = (init_esm3(), require_chunk.__toCommonJS(esm_exports3)).OrderedSet;
|
|
197798
|
-
var debugTrace =
|
|
197799
|
-
var debugError =
|
|
198673
|
+
var debugTrace = require_src$1.require_src()("number-allocator:trace");
|
|
198674
|
+
var debugError = require_src$1.require_src()("number-allocator:error");
|
|
197800
198675
|
function Interval(low, high) {
|
|
197801
198676
|
this.low = low;
|
|
197802
198677
|
this.high = high;
|
|
@@ -198688,7 +199563,7 @@ ${originalIndentation}`;
|
|
|
198688
199563
|
var mqtt_packet_1 = __importDefault(require_mqtt$2());
|
|
198689
199564
|
var readable_stream_1 = require_ours2();
|
|
198690
199565
|
var default_1 = __importDefault(require_default3());
|
|
198691
|
-
var debug_1 = __importDefault(
|
|
199566
|
+
var debug_1 = __importDefault(require_src$1.require_src());
|
|
198692
199567
|
var validations = __importStar(require_validations2());
|
|
198693
199568
|
var store_1 = __importDefault(require_store2());
|
|
198694
199569
|
var handlers_1 = __importDefault(require_handlers2());
|
|
@@ -199818,7 +200693,7 @@ ${originalIndentation}`;
|
|
|
199818
200693
|
exports2.streamBuilder = exports2.browserStreamBuilder = void 0;
|
|
199819
200694
|
var buffer_1$3 = __require("buffer");
|
|
199820
200695
|
var ws_1 = __importDefault(require_ws());
|
|
199821
|
-
var debug_1 = __importDefault(
|
|
200696
|
+
var debug_1 = __importDefault(require_src$1.require_src());
|
|
199822
200697
|
var readable_stream_1 = require_ours2();
|
|
199823
200698
|
var is_browser_1 = __importDefault(require_is_browser2());
|
|
199824
200699
|
var BufferedDuplex_1 = require_BufferedDuplex2();
|
|
@@ -203667,7 +204542,7 @@ ${originalIndentation}`;
|
|
|
203667
204542
|
};
|
|
203668
204543
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
203669
204544
|
exports2.default = openSocks;
|
|
203670
|
-
var debug_1 = __importDefault(
|
|
204545
|
+
var debug_1 = __importDefault(require_src$1.require_src());
|
|
203671
204546
|
var stream_1 = __require("stream");
|
|
203672
204547
|
var socks_1 = require_build$1();
|
|
203673
204548
|
var dns = __importStar(__require("dns"));
|
|
@@ -203802,7 +204677,7 @@ ${originalIndentation}`;
|
|
|
203802
204677
|
};
|
|
203803
204678
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
203804
204679
|
var net_1$1 = __importDefault(__require("net"));
|
|
203805
|
-
var debug_1 = __importDefault(
|
|
204680
|
+
var debug_1 = __importDefault(require_src$1.require_src());
|
|
203806
204681
|
var socks_1 = __importDefault(require_socks2());
|
|
203807
204682
|
var debug = (0, debug_1.default)("mqttjs:tcp");
|
|
203808
204683
|
var buildStream = (client, opts) => {
|
|
@@ -203827,7 +204702,7 @@ ${originalIndentation}`;
|
|
|
203827
204702
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
203828
204703
|
var tls_1 = __require("tls");
|
|
203829
204704
|
var net_1 = __importDefault(__require("net"));
|
|
203830
|
-
var debug_1 = __importDefault(
|
|
204705
|
+
var debug_1 = __importDefault(require_src$1.require_src());
|
|
203831
204706
|
var socks_1 = __importDefault(require_socks2());
|
|
203832
204707
|
var debug = (0, debug_1.default)("mqttjs:tls");
|
|
203833
204708
|
function connect(opts) {
|
|
@@ -204049,7 +204924,7 @@ ${originalIndentation}`;
|
|
|
204049
204924
|
};
|
|
204050
204925
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
204051
204926
|
exports2.connectAsync = connectAsync;
|
|
204052
|
-
var debug_1 = __importDefault(
|
|
204927
|
+
var debug_1 = __importDefault(require_src$1.require_src());
|
|
204053
204928
|
var url_1 = __importDefault(__require("url"));
|
|
204054
204929
|
var client_1 = __importDefault(require_client3());
|
|
204055
204930
|
var is_browser_1 = __importDefault(require_is_browser2());
|
|
@@ -207139,7 +208014,7 @@ ${originalIndentation}`;
|
|
|
207139
208014
|
var { isObject: isObject2, isString: isString2 } = require_utils$3();
|
|
207140
208015
|
var fs$10 = __require("fs");
|
|
207141
208016
|
var kleur = require_kleur2();
|
|
207142
|
-
var Node =
|
|
208017
|
+
var Node = require_node7();
|
|
207143
208018
|
var P2 = require_packets2();
|
|
207144
208019
|
var { resolvePacketID } = require_constants15();
|
|
207145
208020
|
var { MoleculerServerError } = require_errors$2();
|
|
@@ -227326,7 +228201,7 @@ var require_winston_logging = __commonJS({
|
|
|
227326
228201
|
[Symbol.toStringTag]: { value: "Module" }
|
|
227327
228202
|
});
|
|
227328
228203
|
var require_chunk = require_chunk_Cek0wNdY();
|
|
227329
|
-
var require_dist10 =
|
|
228204
|
+
var require_dist10 = require_dist_DxiDI8hZ();
|
|
227330
228205
|
var require_formatter = require_formatter_DqAKDlvN();
|
|
227331
228206
|
var node_path = __require("path");
|
|
227332
228207
|
node_path = require_chunk.__toESM(node_path);
|
|
@@ -227463,12 +228338,12 @@ var require_winston_logging = __commonJS({
|
|
|
227463
228338
|
}
|
|
227464
228339
|
});
|
|
227465
228340
|
|
|
227466
|
-
// ../system/dist/event-loop-stall-monitor-
|
|
227467
|
-
var
|
|
227468
|
-
"../system/dist/event-loop-stall-monitor-
|
|
228341
|
+
// ../system/dist/event-loop-stall-monitor-E2hFvhDg.js
|
|
228342
|
+
var require_event_loop_stall_monitor_E2hFvhDg = __commonJS({
|
|
228343
|
+
"../system/dist/event-loop-stall-monitor-E2hFvhDg.js"(exports) {
|
|
227469
228344
|
"use strict";
|
|
227470
228345
|
var require_chunk = require_chunk_Cek0wNdY();
|
|
227471
|
-
var require_dist10 =
|
|
228346
|
+
var require_dist10 = require_dist_DxiDI8hZ();
|
|
227472
228347
|
var node_crypto = __require("crypto");
|
|
227473
228348
|
var node_path = __require("path");
|
|
227474
228349
|
node_path = require_chunk.__toESM(node_path);
|
|
@@ -228680,12 +229555,12 @@ var require_event_loop_stall_monitor_IeiQqOdV = __commonJS({
|
|
|
228680
229555
|
}
|
|
228681
229556
|
});
|
|
228682
229557
|
|
|
228683
|
-
// ../system/dist/tls-
|
|
228684
|
-
var
|
|
228685
|
-
"../system/dist/tls-
|
|
229558
|
+
// ../system/dist/tls-C0TRPfqc.js
|
|
229559
|
+
var require_tls_C0TRPfqc = __commonJS({
|
|
229560
|
+
"../system/dist/tls-C0TRPfqc.js"(exports) {
|
|
228686
229561
|
"use strict";
|
|
228687
229562
|
var require_chunk = require_chunk_Cek0wNdY();
|
|
228688
|
-
var require_x509_es =
|
|
229563
|
+
var require_x509_es = require_x509_es_Dzl0BbmG();
|
|
228689
229564
|
var node_crypto = __require("crypto");
|
|
228690
229565
|
var node_net = __require("net");
|
|
228691
229566
|
var node_fs_promises = __require("fs/promises");
|
|
@@ -229634,9 +230509,9 @@ ${ca.certPem.trimEnd()}
|
|
|
229634
230509
|
}
|
|
229635
230510
|
});
|
|
229636
230511
|
|
|
229637
|
-
// ../types/dist/event-category-
|
|
229638
|
-
var
|
|
229639
|
-
"../types/dist/event-category-
|
|
230512
|
+
// ../types/dist/event-category-T43rdQWR.js
|
|
230513
|
+
var require_event_category_T43rdQWR = __commonJS({
|
|
230514
|
+
"../types/dist/event-category-T43rdQWR.js"(exports) {
|
|
229640
230515
|
"use strict";
|
|
229641
230516
|
var EventCategory = /* @__PURE__ */ (function(EventCategory2) {
|
|
229642
230517
|
EventCategory2["SystemBoot"] = "system.boot";
|
|
@@ -229690,7 +230565,12 @@ var require_event_category_CHduMGvg = __commonJS({
|
|
|
229690
230565
|
EventCategory2["RecordingStopped"] = "recording.stopped";
|
|
229691
230566
|
EventCategory2["RecordingError"] = "recording.error";
|
|
229692
230567
|
EventCategory2["RecordingHealthDegraded"] = "recording.health.degraded";
|
|
230568
|
+
EventCategory2["RecordingHealthStalled"] = "recording.health.stalled";
|
|
230569
|
+
EventCategory2["RecordingHealthOk"] = "recording.health.ok";
|
|
229693
230570
|
EventCategory2["RecordingStorageCritical"] = "recording.storage.critical";
|
|
230571
|
+
EventCategory2["StorageLocationLow"] = "storage.location.low";
|
|
230572
|
+
EventCategory2["StorageLocationCritical"] = "storage.location.critical";
|
|
230573
|
+
EventCategory2["StorageLocationOk"] = "storage.location.ok";
|
|
229694
230574
|
EventCategory2["RecordingSegmentWritten"] = "recording.segment.written";
|
|
229695
230575
|
EventCategory2["RecordingPolicyFallback"] = "recording.policy.fallback";
|
|
229696
230576
|
EventCategory2["RecordingRetentionCompleted"] = "recording.retention.completed";
|
|
@@ -229830,11 +230710,11 @@ var require_event_category_CHduMGvg = __commonJS({
|
|
|
229830
230710
|
}
|
|
229831
230711
|
});
|
|
229832
230712
|
|
|
229833
|
-
// ../types/dist/sleep-
|
|
229834
|
-
var
|
|
229835
|
-
"../types/dist/sleep-
|
|
230713
|
+
// ../types/dist/sleep-SgkKj2bk.js
|
|
230714
|
+
var require_sleep_SgkKj2bk = __commonJS({
|
|
230715
|
+
"../types/dist/sleep-SgkKj2bk.js"(exports) {
|
|
229836
230716
|
"use strict";
|
|
229837
|
-
var require_event_category =
|
|
230717
|
+
var require_event_category = require_event_category_T43rdQWR();
|
|
229838
230718
|
var zod = require_zod();
|
|
229839
230719
|
var AUDIO_CHUNK_FORMATS = [
|
|
229840
230720
|
"f32le",
|
|
@@ -235467,8 +236347,8 @@ var require_addon = __commonJS({
|
|
|
235467
236347
|
"../types/dist/addon.js"(exports) {
|
|
235468
236348
|
"use strict";
|
|
235469
236349
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
235470
|
-
var require_sleep =
|
|
235471
|
-
var require_event_category =
|
|
236350
|
+
var require_sleep = require_sleep_SgkKj2bk();
|
|
236351
|
+
var require_event_category = require_event_category_T43rdQWR();
|
|
235472
236352
|
var require_err_msg = require_err_msg_Dx2Kor0g();
|
|
235473
236353
|
var CAP_INPUT_DEFAULTS = Object.freeze({
|
|
235474
236354
|
"addons": { "getLogs": { "limit": 100 } },
|
|
@@ -242436,12 +243316,12 @@ var require_dist2 = __commonJS({
|
|
|
242436
243316
|
}
|
|
242437
243317
|
});
|
|
242438
243318
|
|
|
242439
|
-
// ../system/dist/child-cap-dispatch-
|
|
242440
|
-
var
|
|
242441
|
-
"../system/dist/child-cap-dispatch-
|
|
243319
|
+
// ../system/dist/child-cap-dispatch-B87B0FrC.js
|
|
243320
|
+
var require_child_cap_dispatch_B87B0FrC = __commonJS({
|
|
243321
|
+
"../system/dist/child-cap-dispatch-B87B0FrC.js"(exports) {
|
|
242442
243322
|
"use strict";
|
|
242443
243323
|
var require_chunk = require_chunk_Cek0wNdY();
|
|
242444
|
-
var require_dist10 =
|
|
243324
|
+
var require_dist10 = require_dist_DxiDI8hZ();
|
|
242445
243325
|
var require_proc_stat = require_proc_stat_DL_WUOhl();
|
|
242446
243326
|
require_hub_cap_forward_W8oEm4ME();
|
|
242447
243327
|
var node_crypto = __require("crypto");
|
|
@@ -253371,12 +254251,12 @@ var require_custom_action_registry_acBY3mHA = __commonJS({
|
|
|
253371
254251
|
}
|
|
253372
254252
|
});
|
|
253373
254253
|
|
|
253374
|
-
// ../system/dist/restore-archive-
|
|
253375
|
-
var
|
|
253376
|
-
"../system/dist/restore-archive-
|
|
254254
|
+
// ../system/dist/restore-archive-BtKjaVua.js
|
|
254255
|
+
var require_restore_archive_BtKjaVua = __commonJS({
|
|
254256
|
+
"../system/dist/restore-archive-BtKjaVua.js"(exports) {
|
|
253377
254257
|
"use strict";
|
|
253378
254258
|
var require_chunk = require_chunk_Cek0wNdY();
|
|
253379
|
-
var require_dist10 =
|
|
254259
|
+
var require_dist10 = require_dist_DxiDI8hZ();
|
|
253380
254260
|
var node_crypto = __require("crypto");
|
|
253381
254261
|
var buffer = __require("buffer");
|
|
253382
254262
|
var node_fs_promises = __require("fs/promises");
|
|
@@ -257745,8 +258625,8 @@ var require_dist3 = __commonJS({
|
|
|
257745
258625
|
"use strict";
|
|
257746
258626
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
257747
258627
|
var require_chunk = require_chunk_Cek0wNdY();
|
|
257748
|
-
var require_dist10 =
|
|
257749
|
-
var require_jwt_signing_key =
|
|
258628
|
+
var require_dist10 = require_dist_DxiDI8hZ();
|
|
258629
|
+
var require_jwt_signing_key = require_jwt_signing_key_CsC_FxSm();
|
|
257750
258630
|
var require_builtins_alerts_alerts_addon = require_alerts_addon();
|
|
257751
258631
|
require_alerts();
|
|
257752
258632
|
var require_builtins_calendars_calendars_addon = require_calendars_addon();
|
|
@@ -257772,17 +258652,17 @@ var require_dist3 = __commonJS({
|
|
|
257772
258652
|
var require_hub_cap_forward = require_hub_cap_forward_W8oEm4ME();
|
|
257773
258653
|
var require_builtins_storage_orchestrator_storage_orchestrator_addon = require_storage_orchestrator_addon();
|
|
257774
258654
|
require_storage_orchestrator();
|
|
257775
|
-
var require_constants15 =
|
|
258655
|
+
var require_constants15 = require_constants_C4jZO_qO();
|
|
257776
258656
|
var require_builtins_system_config_system_config_addon = require_system_config_addon();
|
|
257777
258657
|
require_system_config();
|
|
257778
258658
|
var require_builtins_winston_logging_index = require_winston_logging();
|
|
257779
|
-
var require_event_loop_stall_monitor =
|
|
257780
|
-
var require_tls2 =
|
|
257781
|
-
var require_child_cap_dispatch =
|
|
258659
|
+
var require_event_loop_stall_monitor = require_event_loop_stall_monitor_E2hFvhDg();
|
|
258660
|
+
var require_tls2 = require_tls_C0TRPfqc();
|
|
258661
|
+
var require_child_cap_dispatch = require_child_cap_dispatch_B87B0FrC();
|
|
257782
258662
|
var require_platform_key_source = require_platform_key_source_Di7HrlGR();
|
|
257783
258663
|
var require_resource_monitor = require_resource_monitor_BgWGRxN5();
|
|
257784
258664
|
var require_custom_action_registry = require_custom_action_registry_acBY3mHA();
|
|
257785
|
-
var require_restore_archive =
|
|
258665
|
+
var require_restore_archive = require_restore_archive_BtKjaVua();
|
|
257786
258666
|
var zod = require_zod();
|
|
257787
258667
|
var node_crypto = __require("crypto");
|
|
257788
258668
|
var _camstack_types_node = require_node();
|
|
@@ -270509,7 +271389,7 @@ var require_enums = __commonJS({
|
|
|
270509
271389
|
"../types/dist/enums.js"(exports) {
|
|
270510
271390
|
"use strict";
|
|
270511
271391
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
270512
|
-
var require_event_category =
|
|
271392
|
+
var require_event_category = require_event_category_T43rdQWR();
|
|
270513
271393
|
var EventSourceType = /* @__PURE__ */ (function(EventSourceType2) {
|
|
270514
271394
|
EventSourceType2["Addon"] = "addon";
|
|
270515
271395
|
EventSourceType2["Core"] = "core";
|
|
@@ -270529,8 +271409,8 @@ var require_dist4 = __commonJS({
|
|
|
270529
271409
|
"../types/dist/index.js"(exports) {
|
|
270530
271410
|
"use strict";
|
|
270531
271411
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
270532
|
-
var require_sleep =
|
|
270533
|
-
var require_event_category =
|
|
271412
|
+
var require_sleep = require_sleep_SgkKj2bk();
|
|
271413
|
+
var require_event_category = require_event_category_T43rdQWR();
|
|
270534
271414
|
var require_composition = require_composition_BLWAivB2();
|
|
270535
271415
|
var require_node_color2 = require_node_color();
|
|
270536
271416
|
var require_err_msg = require_err_msg_Dx2Kor0g();
|
|
@@ -276362,7 +277242,14 @@ ${recipe.triggers.map((t, i) => emitTrigger(t, i)).join("\n\n")}
|
|
|
276362
277242
|
/** Broker kinds this provider can create, with a display label. */
|
|
276363
277243
|
kinds: zod.z.array(zod.z.object({
|
|
276364
277244
|
kind: zod.z.string(),
|
|
276365
|
-
label: zod.z.string()
|
|
277245
|
+
label: zod.z.string(),
|
|
277246
|
+
/**
|
|
277247
|
+
* Relative hub path to start an interactive account link (OAuth popup).
|
|
277248
|
+
* May include `{{brokerId}}`; admin-ui substitutes and appends `?popup=1`.
|
|
277249
|
+
*/
|
|
277250
|
+
interactiveConnectPath: zod.z.string().min(1).optional(),
|
|
277251
|
+
/** Relative hub path to disconnect the linked account (same popup pattern). */
|
|
277252
|
+
interactiveDisconnectPath: zod.z.string().min(1).optional()
|
|
276366
277253
|
}))
|
|
276367
277254
|
});
|
|
276368
277255
|
var ListInputSchema = zod.z.object({
|
|
@@ -283050,6 +283937,15 @@ ${recipe.triggers.map((t, i) => emitTrigger(t, i)).join("\n\n")}
|
|
|
283050
283937
|
function hubAddressHostname(baseUrl) {
|
|
283051
283938
|
return baseUrl === null ? null : hostnameOf(baseUrl);
|
|
283052
283939
|
}
|
|
283940
|
+
var HUB_MDNS_SERVICE_TYPE = "camstack";
|
|
283941
|
+
var HUB_MDNS_QUERY_NAME = "_camstack._tcp.local";
|
|
283942
|
+
var HUB_MDNS_TXT_KEYS = {
|
|
283943
|
+
nodeId: "nodeId",
|
|
283944
|
+
version: "version",
|
|
283945
|
+
role: "role",
|
|
283946
|
+
url: "url"
|
|
283947
|
+
};
|
|
283948
|
+
var HUB_MDNS_ROLE = "hub";
|
|
283053
283949
|
var AI_CAP_TRANSPORT_TIMEOUT_MS = 6e5;
|
|
283054
283950
|
var AI_MODEL_INSTALL_TIMEOUT_MS = 60 * 6e4;
|
|
283055
283951
|
var LlmUsageSchema = zod.z.object({
|
|
@@ -285792,6 +286688,12 @@ ${recipe.triggers.map((t, i) => emitTrigger(t, i)).join("\n\n")}
|
|
|
285792
286688
|
"node-updating",
|
|
285793
286689
|
"node-inference-unavailable",
|
|
285794
286690
|
"detection-blind",
|
|
286691
|
+
"recording-stalled",
|
|
286692
|
+
"recording-healthy",
|
|
286693
|
+
"recording-degraded",
|
|
286694
|
+
"storage-location-low",
|
|
286695
|
+
"storage-location-critical",
|
|
286696
|
+
"storage-location-ok",
|
|
285795
286697
|
"addon-crash-loop",
|
|
285796
286698
|
"addon-update-available",
|
|
285797
286699
|
"server-update-available",
|
|
@@ -286863,6 +287765,30 @@ ${recipe.triggers.map((t, i) => emitTrigger(t, i)).join("\n\n")}
|
|
|
286863
287765
|
value: "detection-blind",
|
|
286864
287766
|
label: "Camera detecting nothing"
|
|
286865
287767
|
},
|
|
287768
|
+
{
|
|
287769
|
+
value: "recording-stalled",
|
|
287770
|
+
label: "Recording stalled"
|
|
287771
|
+
},
|
|
287772
|
+
{
|
|
287773
|
+
value: "recording-healthy",
|
|
287774
|
+
label: "Recording healthy again"
|
|
287775
|
+
},
|
|
287776
|
+
{
|
|
287777
|
+
value: "recording-degraded",
|
|
287778
|
+
label: "Recording degraded (restart storm)"
|
|
287779
|
+
},
|
|
287780
|
+
{
|
|
287781
|
+
value: "storage-location-low",
|
|
287782
|
+
label: "Storage location low"
|
|
287783
|
+
},
|
|
287784
|
+
{
|
|
287785
|
+
value: "storage-location-critical",
|
|
287786
|
+
label: "Storage location critical"
|
|
287787
|
+
},
|
|
287788
|
+
{
|
|
287789
|
+
value: "storage-location-ok",
|
|
287790
|
+
label: "Storage location ok again"
|
|
287791
|
+
},
|
|
286866
287792
|
{
|
|
286867
287793
|
value: "addon-crash-loop",
|
|
286868
287794
|
label: "Addon stopped after repeated crashes"
|
|
@@ -328574,11 +329500,11 @@ ${recipe.triggers.map((t, i) => emitTrigger(t, i)).join("\n\n")}
|
|
|
328574
329500
|
function systemEventFilterApplies(kind, filter) {
|
|
328575
329501
|
switch (filter) {
|
|
328576
329502
|
case "deviceIds":
|
|
328577
|
-
return kind.startsWith("device-") || kind.startsWith("stream-") || kind === "detection-blind" || kind === "alarm-triggered";
|
|
329503
|
+
return kind.startsWith("device-") || kind.startsWith("stream-") || kind === "detection-blind" || kind.startsWith("recording-") || kind === "alarm-triggered";
|
|
328578
329504
|
case "deviceTypes":
|
|
328579
329505
|
return kind.startsWith("device-") || kind === "detection-blind";
|
|
328580
329506
|
case "nodeIds":
|
|
328581
|
-
return kind.startsWith("node-") || kind === "addon-crash-loop" || kind === "addon-update-available" || kind === "addon-updated" || kind === "server-update-available" || kind === "wrapper-update-available" || kind === "server-updated";
|
|
329507
|
+
return kind.startsWith("node-") || kind === "addon-crash-loop" || kind === "addon-update-available" || kind === "addon-updated" || kind === "server-update-available" || kind === "wrapper-update-available" || kind === "server-updated" || kind.startsWith("storage-location-");
|
|
328582
329508
|
case "packageNames":
|
|
328583
329509
|
return kind.endsWith("update-available") || kind === "addon-updated" || kind === "node-updating" || kind === "server-updated";
|
|
328584
329510
|
case "consumableLowPercent":
|
|
@@ -328611,6 +329537,9 @@ ${recipe.triggers.map((t, i) => emitTrigger(t, i)).join("\n\n")}
|
|
|
328611
329537
|
"stream-online": "device-events",
|
|
328612
329538
|
"stream-offline": "device-events",
|
|
328613
329539
|
"detection-blind": "device-events",
|
|
329540
|
+
"recording-stalled": "device-events",
|
|
329541
|
+
"recording-healthy": "device-events",
|
|
329542
|
+
"recording-degraded": "device-events",
|
|
328614
329543
|
"node-online": "system",
|
|
328615
329544
|
"node-offline": "system",
|
|
328616
329545
|
"node-restarting": "system",
|
|
@@ -328624,6 +329553,9 @@ ${recipe.triggers.map((t, i) => emitTrigger(t, i)).join("\n\n")}
|
|
|
328624
329553
|
"wrapper-update-available": "system",
|
|
328625
329554
|
"backup-completed": "system",
|
|
328626
329555
|
"export-completed": "system",
|
|
329556
|
+
"storage-location-low": "system",
|
|
329557
|
+
"storage-location-critical": "system",
|
|
329558
|
+
"storage-location-ok": "system",
|
|
328627
329559
|
"alarm-triggered": "alarm",
|
|
328628
329560
|
"alarm-armed": "alarm",
|
|
328629
329561
|
"alarm-disarmed": "alarm",
|
|
@@ -328696,6 +329628,16 @@ ${recipe.triggers.map((t, i) => emitTrigger(t, i)).join("\n\n")}
|
|
|
328696
329628
|
label: "Detecting nothing",
|
|
328697
329629
|
kinds: ["detection-blind"]
|
|
328698
329630
|
},
|
|
329631
|
+
{
|
|
329632
|
+
id: "recording",
|
|
329633
|
+
family: "device-events",
|
|
329634
|
+
label: "Recording",
|
|
329635
|
+
kinds: [
|
|
329636
|
+
"recording-stalled",
|
|
329637
|
+
"recording-healthy",
|
|
329638
|
+
"recording-degraded"
|
|
329639
|
+
]
|
|
329640
|
+
},
|
|
328699
329641
|
{
|
|
328700
329642
|
id: "nodes",
|
|
328701
329643
|
family: "system",
|
|
@@ -328736,6 +329678,16 @@ ${recipe.triggers.map((t, i) => emitTrigger(t, i)).join("\n\n")}
|
|
|
328736
329678
|
label: "Backups & exports",
|
|
328737
329679
|
kinds: ["backup-completed", "export-completed"]
|
|
328738
329680
|
},
|
|
329681
|
+
{
|
|
329682
|
+
id: "storage",
|
|
329683
|
+
family: "system",
|
|
329684
|
+
label: "Storage locations",
|
|
329685
|
+
kinds: [
|
|
329686
|
+
"storage-location-low",
|
|
329687
|
+
"storage-location-critical",
|
|
329688
|
+
"storage-location-ok"
|
|
329689
|
+
]
|
|
329690
|
+
},
|
|
328739
329691
|
{
|
|
328740
329692
|
id: "alarm",
|
|
328741
329693
|
family: "alarm",
|
|
@@ -329846,6 +330798,9 @@ ${recipe.triggers.map((t, i) => emitTrigger(t, i)).join("\n\n")}
|
|
|
329846
330798
|
"stream-online",
|
|
329847
330799
|
"stream-offline",
|
|
329848
330800
|
"detection-blind",
|
|
330801
|
+
"recording-stalled",
|
|
330802
|
+
"recording-healthy",
|
|
330803
|
+
"recording-degraded",
|
|
329849
330804
|
...ALARM
|
|
329850
330805
|
];
|
|
329851
330806
|
var SUMMARISABLE = [...systemEventKindsOfFamily("device-events"), ...systemEventKindsOfFamily("system")];
|
|
@@ -330332,7 +331287,10 @@ ${recipe.triggers.map((t, i) => emitTrigger(t, i)).join("\n\n")}
|
|
|
330332
331287
|
"addon-crash-loop",
|
|
330333
331288
|
...UPDATES,
|
|
330334
331289
|
"addon-updated",
|
|
330335
|
-
"server-updated"
|
|
331290
|
+
"server-updated",
|
|
331291
|
+
"storage-location-low",
|
|
331292
|
+
"storage-location-critical",
|
|
331293
|
+
"storage-location-ok"
|
|
330336
331294
|
]
|
|
330337
331295
|
},
|
|
330338
331296
|
{
|
|
@@ -330351,7 +331309,10 @@ ${recipe.triggers.map((t, i) => emitTrigger(t, i)).join("\n\n")}
|
|
|
330351
331309
|
"node-inference-unavailable",
|
|
330352
331310
|
"addon-crash-loop",
|
|
330353
331311
|
...UPDATES,
|
|
330354
|
-
"server-updated"
|
|
331312
|
+
"server-updated",
|
|
331313
|
+
"storage-location-low",
|
|
331314
|
+
"storage-location-critical",
|
|
331315
|
+
"storage-location-ok"
|
|
330355
331316
|
]
|
|
330356
331317
|
},
|
|
330357
331318
|
{
|
|
@@ -330408,7 +331369,69 @@ ${recipe.triggers.map((t, i) => emitTrigger(t, i)).join("\n\n")}
|
|
|
330408
331369
|
families: ["rule"],
|
|
330409
331370
|
fields: [...RULE_TEXT],
|
|
330410
331371
|
kinds: ["system"],
|
|
330411
|
-
systemEventKinds: ["detection-blind"]
|
|
331372
|
+
systemEventKinds: ["detection-blind", "recording-stalled"]
|
|
331373
|
+
},
|
|
331374
|
+
{
|
|
331375
|
+
name: "message",
|
|
331376
|
+
label: "Detail",
|
|
331377
|
+
example: "writer restart budget exhausted",
|
|
331378
|
+
group: "system",
|
|
331379
|
+
families: ["rule"],
|
|
331380
|
+
fields: [...RULE_TEXT],
|
|
331381
|
+
kinds: ["system"],
|
|
331382
|
+
systemEventKinds: ["recording-degraded"]
|
|
331383
|
+
},
|
|
331384
|
+
{
|
|
331385
|
+
name: "locationName",
|
|
331386
|
+
label: "Storage location",
|
|
331387
|
+
example: "Recordings",
|
|
331388
|
+
group: "system",
|
|
331389
|
+
families: ["rule"],
|
|
331390
|
+
fields: [...RULE_TEXT],
|
|
331391
|
+
kinds: ["system"],
|
|
331392
|
+
systemEventKinds: [
|
|
331393
|
+
"storage-location-low",
|
|
331394
|
+
"storage-location-critical",
|
|
331395
|
+
"storage-location-ok"
|
|
331396
|
+
]
|
|
331397
|
+
},
|
|
331398
|
+
{
|
|
331399
|
+
name: "locationId",
|
|
331400
|
+
label: "Storage location id",
|
|
331401
|
+
example: "recordings:default",
|
|
331402
|
+
group: "system",
|
|
331403
|
+
families: ["rule"],
|
|
331404
|
+
fields: [...RULE_TEXT],
|
|
331405
|
+
kinds: ["system"],
|
|
331406
|
+
systemEventKinds: [
|
|
331407
|
+
"storage-location-low",
|
|
331408
|
+
"storage-location-critical",
|
|
331409
|
+
"storage-location-ok"
|
|
331410
|
+
]
|
|
331411
|
+
},
|
|
331412
|
+
{
|
|
331413
|
+
name: "freePercent",
|
|
331414
|
+
label: "Free space (%)",
|
|
331415
|
+
example: "12",
|
|
331416
|
+
group: "system",
|
|
331417
|
+
families: ["rule"],
|
|
331418
|
+
fields: [...RULE_TEXT],
|
|
331419
|
+
kinds: ["system"],
|
|
331420
|
+
systemEventKinds: ["storage-location-low"]
|
|
331421
|
+
},
|
|
331422
|
+
{
|
|
331423
|
+
name: "reason",
|
|
331424
|
+
label: "Reason",
|
|
331425
|
+
example: "capacity-unreadable",
|
|
331426
|
+
group: "system",
|
|
331427
|
+
families: ["rule"],
|
|
331428
|
+
fields: [...RULE_TEXT],
|
|
331429
|
+
kinds: ["system"],
|
|
331430
|
+
systemEventKinds: [
|
|
331431
|
+
"storage-location-low",
|
|
331432
|
+
"storage-location-critical",
|
|
331433
|
+
"storage-location-ok"
|
|
331434
|
+
]
|
|
330412
331435
|
},
|
|
330413
331436
|
{
|
|
330414
331437
|
name: "package",
|
|
@@ -335262,6 +336285,10 @@ ${recipe.triggers.map((t, i) => emitTrigger(t, i)).join("\n\n")}
|
|
|
335262
336285
|
exports.HF_REPO = HF_REPO;
|
|
335263
336286
|
exports.HOURS_PER_DAY = HOURS_PER_DAY;
|
|
335264
336287
|
exports.HUB_ADDRESS_ROLES = HUB_ADDRESS_ROLES;
|
|
336288
|
+
exports.HUB_MDNS_QUERY_NAME = HUB_MDNS_QUERY_NAME;
|
|
336289
|
+
exports.HUB_MDNS_ROLE = HUB_MDNS_ROLE;
|
|
336290
|
+
exports.HUB_MDNS_SERVICE_TYPE = HUB_MDNS_SERVICE_TYPE;
|
|
336291
|
+
exports.HUB_MDNS_TXT_KEYS = HUB_MDNS_TXT_KEYS;
|
|
335265
336292
|
exports.HUB_VIEWER_MOUNT = HUB_VIEWER_MOUNT;
|
|
335266
336293
|
exports.HWACCEL_OPTIONS = HWACCEL_OPTIONS;
|
|
335267
336294
|
exports.HardwareClassIdSchema = HardwareClassIdSchema;
|
|
@@ -503079,6 +504106,56 @@ var require_share_token_service = __commonJS({
|
|
|
503079
504106
|
});
|
|
503080
504107
|
return record;
|
|
503081
504108
|
}
|
|
504109
|
+
/**
|
|
504110
|
+
* Slide `expiresAt` forward from NOW for a still-valid token. Same raw
|
|
504111
|
+
* credential, same id — Home Assistant remints without flooding
|
|
504112
|
+
* `share_view_tokens`. Throws when missing, expired, never-expiring,
|
|
504113
|
+
* or the caller is not the owner/admin; refuses `'never'` as ttlSec.
|
|
504114
|
+
*/
|
|
504115
|
+
async extend(input) {
|
|
504116
|
+
if (!Number.isInteger(input.ttlSec) || input.ttlSec < exports.SHARE_TOKEN_TTL_MIN_SEC || input.ttlSec > exports.SHARE_TOKEN_TTL_MAX_SEC) {
|
|
504117
|
+
throw new Error(`Share token TTL out of bounds \u2014 got ${input.ttlSec}s, allowed [${exports.SHARE_TOKEN_TTL_MIN_SEC}s, ${exports.SHARE_TOKEN_TTL_MAX_SEC}s]`);
|
|
504118
|
+
}
|
|
504119
|
+
const results = await (await this.store()).query({
|
|
504120
|
+
collection: SHARE_TOKENS_COLLECTION,
|
|
504121
|
+
filter: { where: { id: input.id } }
|
|
504122
|
+
});
|
|
504123
|
+
const first = results[0];
|
|
504124
|
+
if (!first) {
|
|
504125
|
+
throw new Error(`Share token not found: ${input.id}`);
|
|
504126
|
+
}
|
|
504127
|
+
const record = parseShareToken(first.data);
|
|
504128
|
+
if (!record) {
|
|
504129
|
+
throw new Error(`Share token not found: ${input.id}`);
|
|
504130
|
+
}
|
|
504131
|
+
if (!input.callerIsAdmin && record.userId !== input.callerUserId) {
|
|
504132
|
+
throw new Error("Only the token owner or an admin can extend a share token");
|
|
504133
|
+
}
|
|
504134
|
+
if (record.expiresAt === null) {
|
|
504135
|
+
throw new Error("A never-expiring share token cannot be extended");
|
|
504136
|
+
}
|
|
504137
|
+
const now = Date.now();
|
|
504138
|
+
if (now > record.expiresAt) {
|
|
504139
|
+
throw new Error(`Share token expired: ${input.id}`);
|
|
504140
|
+
}
|
|
504141
|
+
const updated = {
|
|
504142
|
+
...record,
|
|
504143
|
+
expiresAt: now + input.ttlSec * 1e3
|
|
504144
|
+
};
|
|
504145
|
+
await (await this.store()).update({
|
|
504146
|
+
collection: SHARE_TOKENS_COLLECTION,
|
|
504147
|
+
id: record.id,
|
|
504148
|
+
data: { ...updated }
|
|
504149
|
+
});
|
|
504150
|
+
this.logger?.info("Share token extended", {
|
|
504151
|
+
meta: {
|
|
504152
|
+
id: updated.id,
|
|
504153
|
+
byUserId: input.callerUserId,
|
|
504154
|
+
expiresAt: updated.expiresAt
|
|
504155
|
+
}
|
|
504156
|
+
});
|
|
504157
|
+
return updated;
|
|
504158
|
+
}
|
|
503082
504159
|
/**
|
|
503083
504160
|
* Revoke (delete) a share token. Only the minting user or an admin may
|
|
503084
504161
|
* revoke. Returns `false` when the token doesn't exist; throws on a
|
|
@@ -506202,7 +507279,13 @@ var require_auth_revoke_credentials_procedures = __commonJS({
|
|
|
506202
507279
|
var hub_sessions_js_1 = require_hub_sessions();
|
|
506203
507280
|
var trpc_middleware_js_1 = require_trpc_middleware();
|
|
506204
507281
|
exports.REVOKE_CREDENTIALS_MAX = 500;
|
|
506205
|
-
exports.RevocableCredentialKindSchema = zod_1.z.enum([
|
|
507282
|
+
exports.RevocableCredentialKindSchema = zod_1.z.enum([
|
|
507283
|
+
"share-link",
|
|
507284
|
+
"admin-token",
|
|
507285
|
+
"login-session",
|
|
507286
|
+
"scoped-token",
|
|
507287
|
+
"oauth-session"
|
|
507288
|
+
]);
|
|
506206
507289
|
exports.RevokeSkipReasonSchema = zod_1.z.enum(["current-session", "not-active"]);
|
|
506207
507290
|
var RevokeCredentialsInputSchema = zod_1.z.object({
|
|
506208
507291
|
kind: exports.RevocableCredentialKindSchema,
|
|
@@ -506248,6 +507331,12 @@ var require_auth_revoke_credentials_procedures = __commonJS({
|
|
|
506248
507331
|
if (kind === "admin-token") {
|
|
506249
507332
|
return async (id) => await internal.adminTokens.revoke(id) ? null : "not-active";
|
|
506250
507333
|
}
|
|
507334
|
+
if (kind === "scoped-token") {
|
|
507335
|
+
return async (id) => await internal.scopedTokens.revoke(id) ? null : "not-active";
|
|
507336
|
+
}
|
|
507337
|
+
if (kind === "oauth-session") {
|
|
507338
|
+
return async (id) => await internal.oauthSessions.revoke(id) ? null : "not-active";
|
|
507339
|
+
}
|
|
506251
507340
|
return async (id) => {
|
|
506252
507341
|
if (id === caller.sessionId)
|
|
506253
507342
|
return "current-session";
|
|
@@ -507199,6 +508288,42 @@ var require_auth_router = __commonJS({
|
|
|
507199
508288
|
});
|
|
507200
508289
|
return { id: record.id, token: token2, expiresAt: record.expiresAt };
|
|
507201
508290
|
}),
|
|
508291
|
+
/**
|
|
508292
|
+
* Slide expiry on a still-valid share token (same `csv_*`). Used by the
|
|
508293
|
+
* Home Assistant embed cache so a long-lived dashboard does not mint a
|
|
508294
|
+
* new row every hour. Expired / missing → NOT_FOUND (caller must create).
|
|
508295
|
+
*/
|
|
508296
|
+
extendShareToken: trpc_middleware_js_1.protectedProcedure.input(zod_1.z.object({
|
|
508297
|
+
id: zod_1.z.string().min(1),
|
|
508298
|
+
ttlSec: zod_1.z.number().int().min(share_token_service_js_1.SHARE_TOKEN_TTL_MIN_SEC).max(share_token_service_js_1.SHARE_TOKEN_TTL_MAX_SEC)
|
|
508299
|
+
})).output(zod_1.z.object({ id: zod_1.z.string(), expiresAt: zod_1.z.number() })).mutation(async ({ input, ctx }) => {
|
|
508300
|
+
assertRealUserSession(ctx.user);
|
|
508301
|
+
const service = requireShareTokens();
|
|
508302
|
+
try {
|
|
508303
|
+
const record = await service.extend({
|
|
508304
|
+
id: input.id,
|
|
508305
|
+
ttlSec: input.ttlSec,
|
|
508306
|
+
callerUserId: ctx.user.id,
|
|
508307
|
+
callerIsAdmin: ctx.user.isAdmin
|
|
508308
|
+
});
|
|
508309
|
+
if (record.expiresAt === null) {
|
|
508310
|
+
throw new server_1.TRPCError({
|
|
508311
|
+
code: "BAD_REQUEST",
|
|
508312
|
+
message: "A never-expiring share token cannot be extended"
|
|
508313
|
+
});
|
|
508314
|
+
}
|
|
508315
|
+
return { id: record.id, expiresAt: record.expiresAt };
|
|
508316
|
+
} catch (error) {
|
|
508317
|
+
const message = error instanceof Error ? error.message : "Share token extend failed";
|
|
508318
|
+
if (/not found|expired/i.test(message)) {
|
|
508319
|
+
throw new server_1.TRPCError({ code: "NOT_FOUND", message });
|
|
508320
|
+
}
|
|
508321
|
+
if (/owner or an admin|never-expiring/i.test(message)) {
|
|
508322
|
+
throw new server_1.TRPCError({ code: "FORBIDDEN", message });
|
|
508323
|
+
}
|
|
508324
|
+
throw new server_1.TRPCError({ code: "BAD_REQUEST", message });
|
|
508325
|
+
}
|
|
508326
|
+
}),
|
|
507202
508327
|
revokeShareToken: trpc_middleware_js_1.protectedProcedure.input(zod_1.z.object({ id: zod_1.z.string().min(1) })).output(zod_1.z.object({ success: zod_1.z.boolean() })).mutation(async ({ input, ctx }) => {
|
|
507203
508328
|
assertRealUserSession(ctx.user);
|
|
507204
508329
|
const service = requireShareTokens();
|
|
@@ -507208,6 +508333,24 @@ var require_auth_router = __commonJS({
|
|
|
507208
508333
|
callerUserId: ctx.user.id,
|
|
507209
508334
|
callerIsAdmin: ctx.user.isAdmin
|
|
507210
508335
|
});
|
|
508336
|
+
if (removed) {
|
|
508337
|
+
const internal = registry === null ? null : (0, hub_sessions_js_1.userManagementInternal)(registry);
|
|
508338
|
+
if (internal !== null) {
|
|
508339
|
+
const ip = network.clientAddress(ctx.req).ip;
|
|
508340
|
+
await internal.audit.record({
|
|
508341
|
+
action: "credentials-revoked",
|
|
508342
|
+
userId: ctx.user.id,
|
|
508343
|
+
...ip !== null ? { ip } : {},
|
|
508344
|
+
detail: {
|
|
508345
|
+
kind: "share-link",
|
|
508346
|
+
requested: 1,
|
|
508347
|
+
revoked: 1,
|
|
508348
|
+
skipped: 0,
|
|
508349
|
+
ids: input.id
|
|
508350
|
+
}
|
|
508351
|
+
});
|
|
508352
|
+
}
|
|
508353
|
+
}
|
|
507211
508354
|
return { success: removed };
|
|
507212
508355
|
} catch (error) {
|
|
507213
508356
|
throw new server_1.TRPCError({
|